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 3d9c307ee4eca26237bf0b7a597c599e52bbc84b..97cd8aa1cb6ef510391c4609357fbe8731782735 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--; |
} |
-buildUnnamed1616() { |
+buildUnnamed1617() { |
var o = new core.List<api.AuditLogConfig>(); |
o.add(buildAuditLogConfig()); |
o.add(buildAuditLogConfig()); |
return o; |
} |
-checkUnnamed1616(core.List<api.AuditLogConfig> o) { |
+checkUnnamed1617(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 = buildUnnamed1616(); |
+ o.auditLogConfigs = buildUnnamed1617(); |
o.service = "foo"; |
} |
buildCounterAuditConfig--; |
@@ -98,20 +98,20 @@ buildAuditConfig() { |
checkAuditConfig(api.AuditConfig o) { |
buildCounterAuditConfig++; |
if (buildCounterAuditConfig < 3) { |
- checkUnnamed1616(o.auditLogConfigs); |
+ checkUnnamed1617(o.auditLogConfigs); |
unittest.expect(o.service, unittest.equals('foo')); |
} |
buildCounterAuditConfig--; |
} |
-buildUnnamed1617() { |
+buildUnnamed1618() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1617(core.List<core.String> o) { |
+checkUnnamed1618(core.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 = buildUnnamed1617(); |
+ o.exemptedMembers = buildUnnamed1618(); |
o.logType = "foo"; |
} |
buildCounterAuditLogConfig--; |
@@ -132,20 +132,20 @@ buildAuditLogConfig() { |
checkAuditLogConfig(api.AuditLogConfig o) { |
buildCounterAuditLogConfig++; |
if (buildCounterAuditLogConfig < 3) { |
- checkUnnamed1617(o.exemptedMembers); |
+ checkUnnamed1618(o.exemptedMembers); |
unittest.expect(o.logType, unittest.equals('foo')); |
} |
buildCounterAuditLogConfig--; |
} |
-buildUnnamed1618() { |
+buildUnnamed1619() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1618(core.List<core.String> o) { |
+checkUnnamed1619(core.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 = buildUnnamed1618(); |
+ o.members = buildUnnamed1619(); |
o.role = "foo"; |
} |
buildCounterBinding--; |
@@ -166,7 +166,7 @@ buildBinding() { |
checkBinding(api.Binding o) { |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
- checkUnnamed1618(o.members); |
+ checkUnnamed1619(o.members); |
unittest.expect(o.role, unittest.equals('foo')); |
} |
buildCounterBinding--; |
@@ -338,14 +338,14 @@ checkGetAncestryRequest(api.GetAncestryRequest o) { |
buildCounterGetAncestryRequest--; |
} |
-buildUnnamed1619() { |
+buildUnnamed1620() { |
var o = new core.List<api.Ancestor>(); |
o.add(buildAncestor()); |
o.add(buildAncestor()); |
return o; |
} |
-checkUnnamed1619(core.List<api.Ancestor> o) { |
+checkUnnamed1620(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 = buildUnnamed1619(); |
+ o.ancestor = buildUnnamed1620(); |
} |
buildCounterGetAncestryResponse--; |
return o; |
@@ -365,7 +365,7 @@ buildGetAncestryResponse() { |
checkGetAncestryResponse(api.GetAncestryResponse o) { |
buildCounterGetAncestryResponse++; |
if (buildCounterGetAncestryResponse < 3) { |
- checkUnnamed1619(o.ancestor); |
+ checkUnnamed1620(o.ancestor); |
} |
buildCounterGetAncestryResponse--; |
} |
@@ -425,14 +425,14 @@ checkGetOrgPolicyRequest(api.GetOrgPolicyRequest o) { |
buildCounterGetOrgPolicyRequest--; |
} |
-buildUnnamed1620() { |
+buildUnnamed1621() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1620(core.List<core.String> 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')); |
@@ -448,7 +448,7 @@ buildLien() { |
o.origin = "foo"; |
o.parent = "foo"; |
o.reason = "foo"; |
- o.restrictions = buildUnnamed1620(); |
+ o.restrictions = buildUnnamed1621(); |
} |
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')); |
- checkUnnamed1620(o.restrictions); |
+ checkUnnamed1621(o.restrictions); |
} |
buildCounterLien--; |
} |
@@ -488,14 +488,14 @@ checkListAvailableOrgPolicyConstraintsRequest(api.ListAvailableOrgPolicyConstrai |
buildCounterListAvailableOrgPolicyConstraintsRequest--; |
} |
-buildUnnamed1621() { |
+buildUnnamed1622() { |
var o = new core.List<api.Constraint>(); |
o.add(buildConstraint()); |
o.add(buildConstraint()); |
return o; |
} |
-checkUnnamed1621(core.List<api.Constraint> o) { |
+checkUnnamed1622(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 = buildUnnamed1621(); |
+ o.constraints = buildUnnamed1622(); |
o.nextPageToken = "foo"; |
} |
buildCounterListAvailableOrgPolicyConstraintsResponse--; |
@@ -516,7 +516,7 @@ buildListAvailableOrgPolicyConstraintsResponse() { |
checkListAvailableOrgPolicyConstraintsResponse(api.ListAvailableOrgPolicyConstraintsResponse o) { |
buildCounterListAvailableOrgPolicyConstraintsResponse++; |
if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { |
- checkUnnamed1621(o.constraints); |
+ checkUnnamed1622(o.constraints); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListAvailableOrgPolicyConstraintsResponse--; |
@@ -541,14 +541,14 @@ checkListConstraint(api.ListConstraint o) { |
buildCounterListConstraint--; |
} |
-buildUnnamed1622() { |
+buildUnnamed1623() { |
var o = new core.List<api.Lien>(); |
o.add(buildLien()); |
o.add(buildLien()); |
return o; |
} |
-checkUnnamed1622(core.List<api.Lien> o) { |
+checkUnnamed1623(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 = buildUnnamed1622(); |
+ o.liens = buildUnnamed1623(); |
o.nextPageToken = "foo"; |
} |
buildCounterListLiensResponse--; |
@@ -569,7 +569,7 @@ buildListLiensResponse() { |
checkListLiensResponse(api.ListLiensResponse o) { |
buildCounterListLiensResponse++; |
if (buildCounterListLiensResponse < 3) { |
- checkUnnamed1622(o.liens); |
+ checkUnnamed1623(o.liens); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListLiensResponse--; |
@@ -596,14 +596,14 @@ checkListOrgPoliciesRequest(api.ListOrgPoliciesRequest o) { |
buildCounterListOrgPoliciesRequest--; |
} |
-buildUnnamed1623() { |
+buildUnnamed1624() { |
var o = new core.List<api.OrgPolicy>(); |
o.add(buildOrgPolicy()); |
o.add(buildOrgPolicy()); |
return o; |
} |
-checkUnnamed1623(core.List<api.OrgPolicy> o) { |
+checkUnnamed1624(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 = buildUnnamed1623(); |
+ o.policies = buildUnnamed1624(); |
} |
buildCounterListOrgPoliciesResponse--; |
return o; |
@@ -625,32 +625,32 @@ checkListOrgPoliciesResponse(api.ListOrgPoliciesResponse o) { |
buildCounterListOrgPoliciesResponse++; |
if (buildCounterListOrgPoliciesResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1623(o.policies); |
+ checkUnnamed1624(o.policies); |
} |
buildCounterListOrgPoliciesResponse--; |
} |
-buildUnnamed1624() { |
+buildUnnamed1625() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1624(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')); |
} |
-buildUnnamed1625() { |
+buildUnnamed1626() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1625(core.List<core.String> o) { |
+checkUnnamed1626(core.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 = buildUnnamed1624(); |
- o.deniedValues = buildUnnamed1625(); |
+ o.allowedValues = buildUnnamed1625(); |
+ o.deniedValues = buildUnnamed1626(); |
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')); |
- checkUnnamed1624(o.allowedValues); |
- checkUnnamed1625(o.deniedValues); |
+ checkUnnamed1625(o.allowedValues); |
+ checkUnnamed1626(o.deniedValues); |
unittest.expect(o.inheritFromParent, unittest.isTrue); |
unittest.expect(o.suggestedValue, unittest.equals('foo')); |
} |
buildCounterListPolicy--; |
} |
-buildUnnamed1626() { |
+buildUnnamed1627() { |
var o = new core.List<api.Project>(); |
o.add(buildProject()); |
o.add(buildProject()); |
return o; |
} |
-checkUnnamed1626(core.List<api.Project> o) { |
+checkUnnamed1627(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 = buildUnnamed1626(); |
+ o.projects = buildUnnamed1627(); |
} |
buildCounterListProjectsResponse--; |
return o; |
@@ -712,32 +712,32 @@ checkListProjectsResponse(api.ListProjectsResponse o) { |
buildCounterListProjectsResponse++; |
if (buildCounterListProjectsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1626(o.projects); |
+ checkUnnamed1627(o.projects); |
} |
buildCounterListProjectsResponse--; |
} |
-buildUnnamed1627() { |
+buildUnnamed1628() { |
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; |
} |
-checkUnnamed1627(core.Map<core.String, core.Object> o) { |
+checkUnnamed1628(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')); |
} |
-buildUnnamed1628() { |
+buildUnnamed1629() { |
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; |
} |
-checkUnnamed1628(core.Map<core.String, core.Object> o) { |
+checkUnnamed1629(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 = buildUnnamed1627(); |
+ o.metadata = buildUnnamed1628(); |
o.name = "foo"; |
- o.response = buildUnnamed1628(); |
+ o.response = buildUnnamed1629(); |
} |
buildCounterOperation--; |
return o; |
@@ -763,9 +763,9 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed1627(o.metadata); |
+ checkUnnamed1628(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1628(o.response); |
+ checkUnnamed1629(o.response); |
} |
buildCounterOperation--; |
} |
@@ -847,27 +847,27 @@ checkOrganizationOwner(api.OrganizationOwner o) { |
buildCounterOrganizationOwner--; |
} |
-buildUnnamed1629() { |
+buildUnnamed1630() { |
var o = new core.List<api.AuditConfig>(); |
o.add(buildAuditConfig()); |
o.add(buildAuditConfig()); |
return o; |
} |
-checkUnnamed1629(core.List<api.AuditConfig> o) { |
+checkUnnamed1630(core.List<api.AuditConfig> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuditConfig(o[0]); |
checkAuditConfig(o[1]); |
} |
-buildUnnamed1630() { |
+buildUnnamed1631() { |
var o = new core.List<api.Binding>(); |
o.add(buildBinding()); |
o.add(buildBinding()); |
return o; |
} |
-checkUnnamed1630(core.List<api.Binding> o) { |
+checkUnnamed1631(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 = buildUnnamed1629(); |
- o.bindings = buildUnnamed1630(); |
+ o.auditConfigs = buildUnnamed1630(); |
+ o.bindings = buildUnnamed1631(); |
o.etag = "foo"; |
o.version = 42; |
} |
@@ -890,22 +890,22 @@ buildPolicy() { |
checkPolicy(api.Policy o) { |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- checkUnnamed1629(o.auditConfigs); |
- checkUnnamed1630(o.bindings); |
+ checkUnnamed1630(o.auditConfigs); |
+ checkUnnamed1631(o.bindings); |
unittest.expect(o.etag, unittest.equals('foo')); |
unittest.expect(o.version, unittest.equals(42)); |
} |
buildCounterPolicy--; |
} |
-buildUnnamed1631() { |
+buildUnnamed1632() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed1631(core.Map<core.String, core.String> o) { |
+checkUnnamed1632(core.Map<core.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 = buildUnnamed1631(); |
+ o.labels = buildUnnamed1632(); |
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')); |
- checkUnnamed1631(o.labels); |
+ checkUnnamed1632(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--; |
} |
-buildUnnamed1632() { |
+buildUnnamed1633() { |
var o = new core.List<api.Organization>(); |
o.add(buildOrganization()); |
o.add(buildOrganization()); |
return o; |
} |
-checkUnnamed1632(core.List<api.Organization> o) { |
+checkUnnamed1633(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 = buildUnnamed1632(); |
+ o.organizations = buildUnnamed1633(); |
} |
buildCounterSearchOrganizationsResponse--; |
return o; |
@@ -1055,7 +1055,7 @@ checkSearchOrganizationsResponse(api.SearchOrganizationsResponse o) { |
buildCounterSearchOrganizationsResponse++; |
if (buildCounterSearchOrganizationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1632(o.organizations); |
+ checkUnnamed1633(o.organizations); |
} |
buildCounterSearchOrganizationsResponse--; |
} |
@@ -1100,30 +1100,30 @@ checkSetOrgPolicyRequest(api.SetOrgPolicyRequest o) { |
buildCounterSetOrgPolicyRequest--; |
} |
-buildUnnamed1633() { |
+buildUnnamed1634() { |
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; |
} |
-checkUnnamed1633(core.Map<core.String, core.Object> o) { |
+checkUnnamed1634(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')); |
} |
-buildUnnamed1634() { |
+buildUnnamed1635() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed1633()); |
- o.add(buildUnnamed1633()); |
+ o.add(buildUnnamed1634()); |
+ o.add(buildUnnamed1634()); |
return o; |
} |
-checkUnnamed1634(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed1635(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1633(o[0]); |
- checkUnnamed1633(o[1]); |
+ checkUnnamed1634(o[0]); |
+ checkUnnamed1634(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -1132,7 +1132,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed1634(); |
+ o.details = buildUnnamed1635(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -1143,20 +1143,20 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed1634(o.details); |
+ checkUnnamed1635(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
} |
-buildUnnamed1635() { |
+buildUnnamed1636() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1635(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')); |
@@ -1167,7 +1167,7 @@ buildTestIamPermissionsRequest() { |
var o = new api.TestIamPermissionsRequest(); |
buildCounterTestIamPermissionsRequest++; |
if (buildCounterTestIamPermissionsRequest < 3) { |
- o.permissions = buildUnnamed1635(); |
+ o.permissions = buildUnnamed1636(); |
} |
buildCounterTestIamPermissionsRequest--; |
return o; |
@@ -1176,19 +1176,19 @@ buildTestIamPermissionsRequest() { |
checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
buildCounterTestIamPermissionsRequest++; |
if (buildCounterTestIamPermissionsRequest < 3) { |
- checkUnnamed1635(o.permissions); |
+ checkUnnamed1636(o.permissions); |
} |
buildCounterTestIamPermissionsRequest--; |
} |
-buildUnnamed1636() { |
+buildUnnamed1637() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1636(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')); |
@@ -1199,7 +1199,7 @@ buildTestIamPermissionsResponse() { |
var o = new api.TestIamPermissionsResponse(); |
buildCounterTestIamPermissionsResponse++; |
if (buildCounterTestIamPermissionsResponse < 3) { |
- o.permissions = buildUnnamed1636(); |
+ o.permissions = buildUnnamed1637(); |
} |
buildCounterTestIamPermissionsResponse--; |
return o; |
@@ -1208,7 +1208,7 @@ buildTestIamPermissionsResponse() { |
checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
buildCounterTestIamPermissionsResponse++; |
if (buildCounterTestIamPermissionsResponse < 3) { |
- checkUnnamed1636(o.permissions); |
+ checkUnnamed1637(o.permissions); |
} |
buildCounterTestIamPermissionsResponse--; |
} |
@@ -1660,55 +1660,6 @@ main() { |
}))); |
}); |
- unittest.test("method--clearOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; |
- var arg_request = buildClearOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ClearOrgPolicyRequest.fromJson(json); |
- checkClearOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildEmpty()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.clearOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.Empty response) { |
- checkEmpty(response); |
- }))); |
- }); |
- |
unittest.test("method--getEffectiveOrgPolicy", () { |
var mock = new HttpServerMock(); |
@@ -1758,55 +1709,6 @@ main() { |
}))); |
}); |
- unittest.test("method--getEffectiveOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; |
- var arg_request = buildGetEffectiveOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); |
- checkGetEffectiveOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.getEffectiveOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--getOrgPolicy", () { |
var mock = new HttpServerMock(); |
@@ -1856,55 +1758,6 @@ main() { |
}))); |
}); |
- unittest.test("method--getOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; |
- var arg_request = buildGetOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.GetOrgPolicyRequest.fromJson(json); |
- checkGetOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.getOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--listAvailableOrgPolicyConstraints", () { |
var mock = new HttpServerMock(); |
@@ -2052,55 +1905,6 @@ main() { |
}))); |
}); |
- unittest.test("method--setOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; |
- var arg_request = buildSetOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.SetOrgPolicyRequest.fromJson(json); |
- checkSetOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.setOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
}); |
@@ -2348,16 +2152,12 @@ main() { |
}))); |
}); |
- unittest.test("method--clearOrgPolicyV1", () { |
+ unittest.test("method--get", () { |
var mock = new HttpServerMock(); |
api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; |
- var arg_request = buildClearOrgPolicyRequest(); |
- var arg_resource = "foo"; |
+ var arg_name = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ClearOrgPolicyRequest.fromJson(json); |
- checkClearOrgPolicyRequest(obj); |
- |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
@@ -2389,60 +2189,15 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildEmpty()); |
+ var resp = convert.JSON.encode(buildOrganization()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.clearOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.Empty response) { |
- checkEmpty(response); |
+ res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { |
+ checkOrganization(response); |
}))); |
}); |
- unittest.test("method--get", () { |
- |
- var mock = new HttpServerMock(); |
- api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; |
- var arg_name = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrganization()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { |
- checkOrganization(response); |
- }))); |
- }); |
- |
- unittest.test("method--getEffectiveOrgPolicy", () { |
+ unittest.test("method--getEffectiveOrgPolicy", () { |
var mock = new HttpServerMock(); |
api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; |
@@ -2491,55 +2246,6 @@ main() { |
}))); |
}); |
- unittest.test("method--getEffectiveOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; |
- var arg_request = buildGetEffectiveOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); |
- checkGetEffectiveOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.getEffectiveOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--getIamPolicy", () { |
var mock = new HttpServerMock(); |
@@ -2638,55 +2344,6 @@ main() { |
}))); |
}); |
- unittest.test("method--getOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; |
- var arg_request = buildGetOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.GetOrgPolicyRequest.fromJson(json); |
- checkGetOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.getOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--listAvailableOrgPolicyConstraints", () { |
var mock = new HttpServerMock(); |
@@ -2930,55 +2587,6 @@ main() { |
}))); |
}); |
- unittest.test("method--setOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; |
- var arg_request = buildSetOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.SetOrgPolicyRequest.fromJson(json); |
- checkSetOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.setOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--testIamPermissions", () { |
var mock = new HttpServerMock(); |
@@ -3081,55 +2689,6 @@ main() { |
}))); |
}); |
- unittest.test("method--clearOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; |
- var arg_request = buildClearOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ClearOrgPolicyRequest.fromJson(json); |
- checkClearOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildEmpty()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.clearOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.Empty response) { |
- checkEmpty(response); |
- }))); |
- }); |
- |
unittest.test("method--create", () { |
var mock = new HttpServerMock(); |
@@ -3375,55 +2934,6 @@ main() { |
}))); |
}); |
- unittest.test("method--getEffectiveOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; |
- var arg_request = buildGetEffectiveOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); |
- checkGetEffectiveOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.getEffectiveOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--getIamPolicy", () { |
var mock = new HttpServerMock(); |
@@ -3528,55 +3038,6 @@ main() { |
}))); |
}); |
- unittest.test("method--getOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; |
- var arg_request = buildGetOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.GetOrgPolicyRequest.fromJson(json); |
- checkGetOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.getOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--list", () { |
var mock = new HttpServerMock(); |
@@ -3828,55 +3289,6 @@ main() { |
}))); |
}); |
- unittest.test("method--setOrgPolicyV1", () { |
- |
- var mock = new HttpServerMock(); |
- api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; |
- var arg_request = buildSetOrgPolicyRequest(); |
- var arg_resource = "foo"; |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.SetOrgPolicyRequest.fromJson(json); |
- checkSetOrgPolicyRequest(obj); |
- |
- var path = (req.url).path; |
- var pathOffset = 0; |
- var index; |
- var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
- pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
- pathOffset += 3; |
- // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
- |
- var query = (req.url).query; |
- var queryOffset = 0; |
- var queryMap = {}; |
- addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
- parseBool(n) { |
- if (n == "true") return true; |
- if (n == "false") return false; |
- if (n == null) return null; |
- throw new core.ArgumentError("Invalid boolean: $n"); |
- } |
- if (query.length > 0) { |
- for (var part in query.split("&")) { |
- var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
- } |
- } |
- |
- |
- var h = { |
- "content-type" : "application/json; charset=utf-8", |
- }; |
- var resp = convert.JSON.encode(buildOrgPolicy()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.setOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((api.OrgPolicy response) { |
- checkOrgPolicy(response); |
- }))); |
- }); |
- |
unittest.test("method--testIamPermissions", () { |
var mock = new HttpServerMock(); |