| Index: generated/googleapis/test/cloudresourcemanager/v1_test.dart
|
| diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
|
| index e85866583682d257a9fc1bb46f6b7a955c38966e..2a2d3464c031c365d6ed64741cf540b42eb7fb6c 100644
|
| --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart
|
| +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
|
| @@ -70,14 +70,14 @@ checkAncestor(api.Ancestor o) {
|
| buildCounterAncestor--;
|
| }
|
|
|
| -buildUnnamed1825() {
|
| +buildUnnamed1843() {
|
| var o = new core.List<api.AuditLogConfig>();
|
| o.add(buildAuditLogConfig());
|
| o.add(buildAuditLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1825(core.List<api.AuditLogConfig> o) {
|
| +checkUnnamed1843(core.List<api.AuditLogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditLogConfig(o[0]);
|
| checkAuditLogConfig(o[1]);
|
| @@ -88,7 +88,7 @@ buildAuditConfig() {
|
| var o = new api.AuditConfig();
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - o.auditLogConfigs = buildUnnamed1825();
|
| + o.auditLogConfigs = buildUnnamed1843();
|
| o.service = "foo";
|
| }
|
| buildCounterAuditConfig--;
|
| @@ -98,20 +98,20 @@ buildAuditConfig() {
|
| checkAuditConfig(api.AuditConfig o) {
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - checkUnnamed1825(o.auditLogConfigs);
|
| + checkUnnamed1843(o.auditLogConfigs);
|
| unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| buildCounterAuditConfig--;
|
| }
|
|
|
| -buildUnnamed1826() {
|
| +buildUnnamed1844() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1826(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'));
|
| @@ -122,7 +122,7 @@ buildAuditLogConfig() {
|
| var o = new api.AuditLogConfig();
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - o.exemptedMembers = buildUnnamed1826();
|
| + o.exemptedMembers = buildUnnamed1844();
|
| o.logType = "foo";
|
| }
|
| buildCounterAuditLogConfig--;
|
| @@ -132,20 +132,20 @@ buildAuditLogConfig() {
|
| checkAuditLogConfig(api.AuditLogConfig o) {
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - checkUnnamed1826(o.exemptedMembers);
|
| + checkUnnamed1844(o.exemptedMembers);
|
| unittest.expect(o.logType, unittest.equals('foo'));
|
| }
|
| buildCounterAuditLogConfig--;
|
| }
|
|
|
| -buildUnnamed1827() {
|
| +buildUnnamed1845() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1827(core.List<core.String> o) {
|
| +checkUnnamed1845(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -156,7 +156,7 @@ buildBinding() {
|
| var o = new api.Binding();
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - o.members = buildUnnamed1827();
|
| + o.members = buildUnnamed1845();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -166,7 +166,7 @@ buildBinding() {
|
| checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - checkUnnamed1827(o.members);
|
| + checkUnnamed1845(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| @@ -338,14 +338,14 @@ checkGetAncestryRequest(api.GetAncestryRequest o) {
|
| buildCounterGetAncestryRequest--;
|
| }
|
|
|
| -buildUnnamed1828() {
|
| +buildUnnamed1846() {
|
| var o = new core.List<api.Ancestor>();
|
| o.add(buildAncestor());
|
| o.add(buildAncestor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1828(core.List<api.Ancestor> o) {
|
| +checkUnnamed1846(core.List<api.Ancestor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAncestor(o[0]);
|
| checkAncestor(o[1]);
|
| @@ -356,7 +356,7 @@ buildGetAncestryResponse() {
|
| var o = new api.GetAncestryResponse();
|
| buildCounterGetAncestryResponse++;
|
| if (buildCounterGetAncestryResponse < 3) {
|
| - o.ancestor = buildUnnamed1828();
|
| + o.ancestor = buildUnnamed1846();
|
| }
|
| buildCounterGetAncestryResponse--;
|
| return o;
|
| @@ -365,7 +365,7 @@ buildGetAncestryResponse() {
|
| checkGetAncestryResponse(api.GetAncestryResponse o) {
|
| buildCounterGetAncestryResponse++;
|
| if (buildCounterGetAncestryResponse < 3) {
|
| - checkUnnamed1828(o.ancestor);
|
| + checkUnnamed1846(o.ancestor);
|
| }
|
| buildCounterGetAncestryResponse--;
|
| }
|
| @@ -425,14 +425,14 @@ checkGetOrgPolicyRequest(api.GetOrgPolicyRequest o) {
|
| buildCounterGetOrgPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed1829() {
|
| +buildUnnamed1847() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1829(core.List<core.String> o) {
|
| +checkUnnamed1847(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -448,7 +448,7 @@ buildLien() {
|
| o.origin = "foo";
|
| o.parent = "foo";
|
| o.reason = "foo";
|
| - o.restrictions = buildUnnamed1829();
|
| + o.restrictions = buildUnnamed1847();
|
| }
|
| buildCounterLien--;
|
| return o;
|
| @@ -462,7 +462,7 @@ checkLien(api.Lien o) {
|
| unittest.expect(o.origin, unittest.equals('foo'));
|
| unittest.expect(o.parent, unittest.equals('foo'));
|
| unittest.expect(o.reason, unittest.equals('foo'));
|
| - checkUnnamed1829(o.restrictions);
|
| + checkUnnamed1847(o.restrictions);
|
| }
|
| buildCounterLien--;
|
| }
|
| @@ -488,14 +488,14 @@ checkListAvailableOrgPolicyConstraintsRequest(api.ListAvailableOrgPolicyConstrai
|
| buildCounterListAvailableOrgPolicyConstraintsRequest--;
|
| }
|
|
|
| -buildUnnamed1830() {
|
| +buildUnnamed1848() {
|
| var o = new core.List<api.Constraint>();
|
| o.add(buildConstraint());
|
| o.add(buildConstraint());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1830(core.List<api.Constraint> o) {
|
| +checkUnnamed1848(core.List<api.Constraint> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkConstraint(o[0]);
|
| checkConstraint(o[1]);
|
| @@ -506,7 +506,7 @@ buildListAvailableOrgPolicyConstraintsResponse() {
|
| var o = new api.ListAvailableOrgPolicyConstraintsResponse();
|
| buildCounterListAvailableOrgPolicyConstraintsResponse++;
|
| if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) {
|
| - o.constraints = buildUnnamed1830();
|
| + o.constraints = buildUnnamed1848();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListAvailableOrgPolicyConstraintsResponse--;
|
| @@ -516,7 +516,7 @@ buildListAvailableOrgPolicyConstraintsResponse() {
|
| checkListAvailableOrgPolicyConstraintsResponse(api.ListAvailableOrgPolicyConstraintsResponse o) {
|
| buildCounterListAvailableOrgPolicyConstraintsResponse++;
|
| if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) {
|
| - checkUnnamed1830(o.constraints);
|
| + checkUnnamed1848(o.constraints);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListAvailableOrgPolicyConstraintsResponse--;
|
| @@ -541,14 +541,14 @@ checkListConstraint(api.ListConstraint o) {
|
| buildCounterListConstraint--;
|
| }
|
|
|
| -buildUnnamed1831() {
|
| +buildUnnamed1849() {
|
| var o = new core.List<api.Lien>();
|
| o.add(buildLien());
|
| o.add(buildLien());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1831(core.List<api.Lien> o) {
|
| +checkUnnamed1849(core.List<api.Lien> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLien(o[0]);
|
| checkLien(o[1]);
|
| @@ -559,7 +559,7 @@ buildListLiensResponse() {
|
| var o = new api.ListLiensResponse();
|
| buildCounterListLiensResponse++;
|
| if (buildCounterListLiensResponse < 3) {
|
| - o.liens = buildUnnamed1831();
|
| + o.liens = buildUnnamed1849();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLiensResponse--;
|
| @@ -569,7 +569,7 @@ buildListLiensResponse() {
|
| checkListLiensResponse(api.ListLiensResponse o) {
|
| buildCounterListLiensResponse++;
|
| if (buildCounterListLiensResponse < 3) {
|
| - checkUnnamed1831(o.liens);
|
| + checkUnnamed1849(o.liens);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLiensResponse--;
|
| @@ -596,14 +596,14 @@ checkListOrgPoliciesRequest(api.ListOrgPoliciesRequest o) {
|
| buildCounterListOrgPoliciesRequest--;
|
| }
|
|
|
| -buildUnnamed1832() {
|
| +buildUnnamed1850() {
|
| var o = new core.List<api.OrgPolicy>();
|
| o.add(buildOrgPolicy());
|
| o.add(buildOrgPolicy());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1832(core.List<api.OrgPolicy> o) {
|
| +checkUnnamed1850(core.List<api.OrgPolicy> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrgPolicy(o[0]);
|
| checkOrgPolicy(o[1]);
|
| @@ -615,7 +615,7 @@ buildListOrgPoliciesResponse() {
|
| buildCounterListOrgPoliciesResponse++;
|
| if (buildCounterListOrgPoliciesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.policies = buildUnnamed1832();
|
| + o.policies = buildUnnamed1850();
|
| }
|
| buildCounterListOrgPoliciesResponse--;
|
| return o;
|
| @@ -625,32 +625,32 @@ checkListOrgPoliciesResponse(api.ListOrgPoliciesResponse o) {
|
| buildCounterListOrgPoliciesResponse++;
|
| if (buildCounterListOrgPoliciesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1832(o.policies);
|
| + checkUnnamed1850(o.policies);
|
| }
|
| buildCounterListOrgPoliciesResponse--;
|
| }
|
|
|
| -buildUnnamed1833() {
|
| +buildUnnamed1851() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1833(core.List<core.String> o) {
|
| +checkUnnamed1851(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1834() {
|
| +buildUnnamed1852() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1834(core.List<core.String> o) {
|
| +checkUnnamed1852(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -662,8 +662,8 @@ buildListPolicy() {
|
| buildCounterListPolicy++;
|
| if (buildCounterListPolicy < 3) {
|
| o.allValues = "foo";
|
| - o.allowedValues = buildUnnamed1833();
|
| - o.deniedValues = buildUnnamed1834();
|
| + o.allowedValues = buildUnnamed1851();
|
| + o.deniedValues = buildUnnamed1852();
|
| o.inheritFromParent = true;
|
| o.suggestedValue = "foo";
|
| }
|
| @@ -675,22 +675,22 @@ checkListPolicy(api.ListPolicy o) {
|
| buildCounterListPolicy++;
|
| if (buildCounterListPolicy < 3) {
|
| unittest.expect(o.allValues, unittest.equals('foo'));
|
| - checkUnnamed1833(o.allowedValues);
|
| - checkUnnamed1834(o.deniedValues);
|
| + checkUnnamed1851(o.allowedValues);
|
| + checkUnnamed1852(o.deniedValues);
|
| unittest.expect(o.inheritFromParent, unittest.isTrue);
|
| unittest.expect(o.suggestedValue, unittest.equals('foo'));
|
| }
|
| buildCounterListPolicy--;
|
| }
|
|
|
| -buildUnnamed1835() {
|
| +buildUnnamed1853() {
|
| var o = new core.List<api.Project>();
|
| o.add(buildProject());
|
| o.add(buildProject());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1835(core.List<api.Project> o) {
|
| +checkUnnamed1853(core.List<api.Project> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProject(o[0]);
|
| checkProject(o[1]);
|
| @@ -702,7 +702,7 @@ buildListProjectsResponse() {
|
| buildCounterListProjectsResponse++;
|
| if (buildCounterListProjectsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.projects = buildUnnamed1835();
|
| + o.projects = buildUnnamed1853();
|
| }
|
| buildCounterListProjectsResponse--;
|
| return o;
|
| @@ -712,32 +712,32 @@ checkListProjectsResponse(api.ListProjectsResponse o) {
|
| buildCounterListProjectsResponse++;
|
| if (buildCounterListProjectsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1835(o.projects);
|
| + checkUnnamed1853(o.projects);
|
| }
|
| buildCounterListProjectsResponse--;
|
| }
|
|
|
| -buildUnnamed1836() {
|
| +buildUnnamed1854() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1836(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1854(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'));
|
| }
|
|
|
| -buildUnnamed1837() {
|
| +buildUnnamed1855() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1837(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1855(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| @@ -750,9 +750,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed1836();
|
| + o.metadata = buildUnnamed1854();
|
| o.name = "foo";
|
| - o.response = buildUnnamed1837();
|
| + o.response = buildUnnamed1855();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -763,9 +763,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed1836(o.metadata);
|
| + checkUnnamed1854(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1837(o.response);
|
| + checkUnnamed1855(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -847,27 +847,27 @@ checkOrganizationOwner(api.OrganizationOwner o) {
|
| buildCounterOrganizationOwner--;
|
| }
|
|
|
| -buildUnnamed1838() {
|
| +buildUnnamed1856() {
|
| var o = new core.List<api.AuditConfig>();
|
| o.add(buildAuditConfig());
|
| o.add(buildAuditConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1838(core.List<api.AuditConfig> o) {
|
| +checkUnnamed1856(core.List<api.AuditConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditConfig(o[0]);
|
| checkAuditConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed1839() {
|
| +buildUnnamed1857() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1839(core.List<api.Binding> o) {
|
| +checkUnnamed1857(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| @@ -878,8 +878,8 @@ buildPolicy() {
|
| var o = new api.Policy();
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - o.auditConfigs = buildUnnamed1838();
|
| - o.bindings = buildUnnamed1839();
|
| + o.auditConfigs = buildUnnamed1856();
|
| + o.bindings = buildUnnamed1857();
|
| o.etag = "foo";
|
| o.version = 42;
|
| }
|
| @@ -890,22 +890,22 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed1838(o.auditConfigs);
|
| - checkUnnamed1839(o.bindings);
|
| + checkUnnamed1856(o.auditConfigs);
|
| + checkUnnamed1857(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| buildCounterPolicy--;
|
| }
|
|
|
| -buildUnnamed1840() {
|
| +buildUnnamed1858() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1840(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1858(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -917,7 +917,7 @@ buildProject() {
|
| buildCounterProject++;
|
| if (buildCounterProject < 3) {
|
| o.createTime = "foo";
|
| - o.labels = buildUnnamed1840();
|
| + o.labels = buildUnnamed1858();
|
| o.lifecycleState = "foo";
|
| o.name = "foo";
|
| o.parent = buildResourceId();
|
| @@ -932,7 +932,7 @@ checkProject(api.Project o) {
|
| buildCounterProject++;
|
| if (buildCounterProject < 3) {
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| - checkUnnamed1840(o.labels);
|
| + checkUnnamed1858(o.labels);
|
| unittest.expect(o.lifecycleState, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkResourceId(o.parent);
|
| @@ -1026,14 +1026,14 @@ checkSearchOrganizationsRequest(api.SearchOrganizationsRequest o) {
|
| buildCounterSearchOrganizationsRequest--;
|
| }
|
|
|
| -buildUnnamed1841() {
|
| +buildUnnamed1859() {
|
| var o = new core.List<api.Organization>();
|
| o.add(buildOrganization());
|
| o.add(buildOrganization());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1841(core.List<api.Organization> o) {
|
| +checkUnnamed1859(core.List<api.Organization> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOrganization(o[0]);
|
| checkOrganization(o[1]);
|
| @@ -1045,7 +1045,7 @@ buildSearchOrganizationsResponse() {
|
| buildCounterSearchOrganizationsResponse++;
|
| if (buildCounterSearchOrganizationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.organizations = buildUnnamed1841();
|
| + o.organizations = buildUnnamed1859();
|
| }
|
| buildCounterSearchOrganizationsResponse--;
|
| return o;
|
| @@ -1055,7 +1055,7 @@ checkSearchOrganizationsResponse(api.SearchOrganizationsResponse o) {
|
| buildCounterSearchOrganizationsResponse++;
|
| if (buildCounterSearchOrganizationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1841(o.organizations);
|
| + checkUnnamed1859(o.organizations);
|
| }
|
| buildCounterSearchOrganizationsResponse--;
|
| }
|
| @@ -1100,30 +1100,30 @@ checkSetOrgPolicyRequest(api.SetOrgPolicyRequest o) {
|
| buildCounterSetOrgPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed1842() {
|
| +buildUnnamed1860() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1842(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1860(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'));
|
| }
|
|
|
| -buildUnnamed1843() {
|
| +buildUnnamed1861() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed1842());
|
| - o.add(buildUnnamed1842());
|
| + o.add(buildUnnamed1860());
|
| + o.add(buildUnnamed1860());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1843(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1861(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1842(o[0]);
|
| - checkUnnamed1842(o[1]);
|
| + checkUnnamed1860(o[0]);
|
| + checkUnnamed1860(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1132,7 +1132,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed1843();
|
| + o.details = buildUnnamed1861();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1143,20 +1143,20 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed1843(o.details);
|
| + checkUnnamed1861(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| }
|
|
|
| -buildUnnamed1844() {
|
| +buildUnnamed1862() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1844(core.List<core.String> o) {
|
| +checkUnnamed1862(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1167,7 +1167,7 @@ buildTestIamPermissionsRequest() {
|
| var o = new api.TestIamPermissionsRequest();
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - o.permissions = buildUnnamed1844();
|
| + o.permissions = buildUnnamed1862();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -1176,19 +1176,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed1844(o.permissions);
|
| + checkUnnamed1862(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed1845() {
|
| +buildUnnamed1863() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1845(core.List<core.String> o) {
|
| +checkUnnamed1863(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1199,7 +1199,7 @@ buildTestIamPermissionsResponse() {
|
| var o = new api.TestIamPermissionsResponse();
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - o.permissions = buildUnnamed1845();
|
| + o.permissions = buildUnnamed1863();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -1208,7 +1208,7 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed1845(o.permissions);
|
| + checkUnnamed1863(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
| @@ -3042,9 +3042,9 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects;
|
| + var arg_pageSize = 42;
|
| var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| - var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -3071,9 +3071,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -3082,7 +3082,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListProjectsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProjectsResponse response) {
|
| + res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListProjectsResponse response) {
|
| checkListProjectsResponse(response);
|
| })));
|
| });
|
|
|