| Index: generated/googleapis/test/serviceuser/v1_test.dart
|
| diff --git a/generated/googleapis/test/serviceuser/v1_test.dart b/generated/googleapis/test/serviceuser/v1_test.dart
|
| index de9fb289550fa5c21cfc791e7bd9cf8f3f8c95da..e7c13a34fae1aed5bee7fc2cb553096ecc2515cf 100644
|
| --- a/generated/googleapis/test/serviceuser/v1_test.dart
|
| +++ b/generated/googleapis/test/serviceuser/v1_test.dart
|
| @@ -51,40 +51,40 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed1759() {
|
| +buildUnnamed1776() {
|
| var o = new core.List<api.Method>();
|
| o.add(buildMethod());
|
| o.add(buildMethod());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1759(core.List<api.Method> o) {
|
| +checkUnnamed1776(core.List<api.Method> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMethod(o[0]);
|
| checkMethod(o[1]);
|
| }
|
|
|
| -buildUnnamed1760() {
|
| +buildUnnamed1777() {
|
| var o = new core.List<api.Mixin>();
|
| o.add(buildMixin());
|
| o.add(buildMixin());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1760(core.List<api.Mixin> o) {
|
| +checkUnnamed1777(core.List<api.Mixin> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMixin(o[0]);
|
| checkMixin(o[1]);
|
| }
|
|
|
| -buildUnnamed1761() {
|
| +buildUnnamed1778() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1761(core.List<api.Option> o) {
|
| +checkUnnamed1778(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -95,10 +95,10 @@ buildApi() {
|
| var o = new api.Api();
|
| buildCounterApi++;
|
| if (buildCounterApi < 3) {
|
| - o.methods = buildUnnamed1759();
|
| - o.mixins = buildUnnamed1760();
|
| + o.methods = buildUnnamed1776();
|
| + o.mixins = buildUnnamed1777();
|
| o.name = "foo";
|
| - o.options = buildUnnamed1761();
|
| + o.options = buildUnnamed1778();
|
| o.sourceContext = buildSourceContext();
|
| o.syntax = "foo";
|
| o.version = "foo";
|
| @@ -110,10 +110,10 @@ buildApi() {
|
| checkApi(api.Api o) {
|
| buildCounterApi++;
|
| if (buildCounterApi < 3) {
|
| - checkUnnamed1759(o.methods);
|
| - checkUnnamed1760(o.mixins);
|
| + checkUnnamed1776(o.methods);
|
| + checkUnnamed1777(o.mixins);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1761(o.options);
|
| + checkUnnamed1778(o.options);
|
| checkSourceContext(o.sourceContext);
|
| unittest.expect(o.syntax, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals('foo'));
|
| @@ -127,6 +127,7 @@ buildAuthProvider() {
|
| buildCounterAuthProvider++;
|
| if (buildCounterAuthProvider < 3) {
|
| o.audiences = "foo";
|
| + o.authorizationUrl = "foo";
|
| o.id = "foo";
|
| o.issuer = "foo";
|
| o.jwksUri = "foo";
|
| @@ -139,6 +140,7 @@ checkAuthProvider(api.AuthProvider o) {
|
| buildCounterAuthProvider++;
|
| if (buildCounterAuthProvider < 3) {
|
| unittest.expect(o.audiences, unittest.equals('foo'));
|
| + unittest.expect(o.authorizationUrl, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.issuer, unittest.equals('foo'));
|
| unittest.expect(o.jwksUri, unittest.equals('foo'));
|
| @@ -167,27 +169,27 @@ checkAuthRequirement(api.AuthRequirement o) {
|
| buildCounterAuthRequirement--;
|
| }
|
|
|
| -buildUnnamed1762() {
|
| +buildUnnamed1779() {
|
| var o = new core.List<api.AuthProvider>();
|
| o.add(buildAuthProvider());
|
| o.add(buildAuthProvider());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1762(core.List<api.AuthProvider> o) {
|
| +checkUnnamed1779(core.List<api.AuthProvider> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuthProvider(o[0]);
|
| checkAuthProvider(o[1]);
|
| }
|
|
|
| -buildUnnamed1763() {
|
| +buildUnnamed1780() {
|
| var o = new core.List<api.AuthenticationRule>();
|
| o.add(buildAuthenticationRule());
|
| o.add(buildAuthenticationRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1763(core.List<api.AuthenticationRule> o) {
|
| +checkUnnamed1780(core.List<api.AuthenticationRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuthenticationRule(o[0]);
|
| checkAuthenticationRule(o[1]);
|
| @@ -198,8 +200,8 @@ buildAuthentication() {
|
| var o = new api.Authentication();
|
| buildCounterAuthentication++;
|
| if (buildCounterAuthentication < 3) {
|
| - o.providers = buildUnnamed1762();
|
| - o.rules = buildUnnamed1763();
|
| + o.providers = buildUnnamed1779();
|
| + o.rules = buildUnnamed1780();
|
| }
|
| buildCounterAuthentication--;
|
| return o;
|
| @@ -208,20 +210,20 @@ buildAuthentication() {
|
| checkAuthentication(api.Authentication o) {
|
| buildCounterAuthentication++;
|
| if (buildCounterAuthentication < 3) {
|
| - checkUnnamed1762(o.providers);
|
| - checkUnnamed1763(o.rules);
|
| + checkUnnamed1779(o.providers);
|
| + checkUnnamed1780(o.rules);
|
| }
|
| buildCounterAuthentication--;
|
| }
|
|
|
| -buildUnnamed1764() {
|
| +buildUnnamed1781() {
|
| var o = new core.List<api.AuthRequirement>();
|
| o.add(buildAuthRequirement());
|
| o.add(buildAuthRequirement());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1764(core.List<api.AuthRequirement> o) {
|
| +checkUnnamed1781(core.List<api.AuthRequirement> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuthRequirement(o[0]);
|
| checkAuthRequirement(o[1]);
|
| @@ -235,7 +237,7 @@ buildAuthenticationRule() {
|
| o.allowWithoutCredential = true;
|
| o.customAuth = buildCustomAuthRequirements();
|
| o.oauth = buildOAuthRequirements();
|
| - o.requirements = buildUnnamed1764();
|
| + o.requirements = buildUnnamed1781();
|
| o.selector = "foo";
|
| }
|
| buildCounterAuthenticationRule--;
|
| @@ -248,7 +250,7 @@ checkAuthenticationRule(api.AuthenticationRule o) {
|
| unittest.expect(o.allowWithoutCredential, unittest.isTrue);
|
| checkCustomAuthRequirements(o.customAuth);
|
| checkOAuthRequirements(o.oauth);
|
| - checkUnnamed1764(o.requirements);
|
| + checkUnnamed1781(o.requirements);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterAuthenticationRule--;
|
| @@ -273,14 +275,35 @@ checkAuthorizationConfig(api.AuthorizationConfig o) {
|
| buildCounterAuthorizationConfig--;
|
| }
|
|
|
| -buildUnnamed1765() {
|
| +core.int buildCounterAuthorizationRule = 0;
|
| +buildAuthorizationRule() {
|
| + var o = new api.AuthorizationRule();
|
| + buildCounterAuthorizationRule++;
|
| + if (buildCounterAuthorizationRule < 3) {
|
| + o.permissions = "foo";
|
| + o.selector = "foo";
|
| + }
|
| + buildCounterAuthorizationRule--;
|
| + return o;
|
| +}
|
| +
|
| +checkAuthorizationRule(api.AuthorizationRule o) {
|
| + buildCounterAuthorizationRule++;
|
| + if (buildCounterAuthorizationRule < 3) {
|
| + unittest.expect(o.permissions, unittest.equals('foo'));
|
| + unittest.expect(o.selector, unittest.equals('foo'));
|
| + }
|
| + buildCounterAuthorizationRule--;
|
| +}
|
| +
|
| +buildUnnamed1782() {
|
| var o = new core.List<api.BackendRule>();
|
| o.add(buildBackendRule());
|
| o.add(buildBackendRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1765(core.List<api.BackendRule> o) {
|
| +checkUnnamed1782(core.List<api.BackendRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackendRule(o[0]);
|
| checkBackendRule(o[1]);
|
| @@ -291,7 +314,7 @@ buildBackend() {
|
| var o = new api.Backend();
|
| buildCounterBackend++;
|
| if (buildCounterBackend < 3) {
|
| - o.rules = buildUnnamed1765();
|
| + o.rules = buildUnnamed1782();
|
| }
|
| buildCounterBackend--;
|
| return o;
|
| @@ -300,7 +323,7 @@ buildBackend() {
|
| checkBackend(api.Backend o) {
|
| buildCounterBackend++;
|
| if (buildCounterBackend < 3) {
|
| - checkUnnamed1765(o.rules);
|
| + checkUnnamed1782(o.rules);
|
| }
|
| buildCounterBackend--;
|
| }
|
| @@ -330,14 +353,14 @@ checkBackendRule(api.BackendRule o) {
|
| buildCounterBackendRule--;
|
| }
|
|
|
| -buildUnnamed1766() {
|
| +buildUnnamed1783() {
|
| var o = new core.List<api.ContextRule>();
|
| o.add(buildContextRule());
|
| o.add(buildContextRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1766(core.List<api.ContextRule> o) {
|
| +checkUnnamed1783(core.List<api.ContextRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContextRule(o[0]);
|
| checkContextRule(o[1]);
|
| @@ -348,7 +371,7 @@ buildContext() {
|
| var o = new api.Context();
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - o.rules = buildUnnamed1766();
|
| + o.rules = buildUnnamed1783();
|
| }
|
| buildCounterContext--;
|
| return o;
|
| @@ -357,32 +380,32 @@ buildContext() {
|
| checkContext(api.Context o) {
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - checkUnnamed1766(o.rules);
|
| + checkUnnamed1783(o.rules);
|
| }
|
| buildCounterContext--;
|
| }
|
|
|
| -buildUnnamed1767() {
|
| +buildUnnamed1784() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1767(core.List<core.String> o) {
|
| +checkUnnamed1784(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1768() {
|
| +buildUnnamed1785() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1768(core.List<core.String> o) {
|
| +checkUnnamed1785(core.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,8 +416,8 @@ buildContextRule() {
|
| var o = new api.ContextRule();
|
| buildCounterContextRule++;
|
| if (buildCounterContextRule < 3) {
|
| - o.provided = buildUnnamed1767();
|
| - o.requested = buildUnnamed1768();
|
| + o.provided = buildUnnamed1784();
|
| + o.requested = buildUnnamed1785();
|
| o.selector = "foo";
|
| }
|
| buildCounterContextRule--;
|
| @@ -404,8 +427,8 @@ buildContextRule() {
|
| checkContextRule(api.ContextRule o) {
|
| buildCounterContextRule++;
|
| if (buildCounterContextRule < 3) {
|
| - checkUnnamed1767(o.provided);
|
| - checkUnnamed1768(o.requested);
|
| + checkUnnamed1784(o.provided);
|
| + checkUnnamed1785(o.requested);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterContextRule--;
|
| @@ -449,27 +472,27 @@ checkCustomAuthRequirements(api.CustomAuthRequirements o) {
|
| buildCounterCustomAuthRequirements--;
|
| }
|
|
|
| -buildUnnamed1769() {
|
| +buildUnnamed1786() {
|
| var o = new core.List<api.CustomErrorRule>();
|
| o.add(buildCustomErrorRule());
|
| o.add(buildCustomErrorRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1769(core.List<api.CustomErrorRule> o) {
|
| +checkUnnamed1786(core.List<api.CustomErrorRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomErrorRule(o[0]);
|
| checkCustomErrorRule(o[1]);
|
| }
|
|
|
| -buildUnnamed1770() {
|
| +buildUnnamed1787() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1770(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'));
|
| @@ -480,8 +503,8 @@ buildCustomError() {
|
| var o = new api.CustomError();
|
| buildCounterCustomError++;
|
| if (buildCounterCustomError < 3) {
|
| - o.rules = buildUnnamed1769();
|
| - o.types = buildUnnamed1770();
|
| + o.rules = buildUnnamed1786();
|
| + o.types = buildUnnamed1787();
|
| }
|
| buildCounterCustomError--;
|
| return o;
|
| @@ -490,8 +513,8 @@ buildCustomError() {
|
| checkCustomError(api.CustomError o) {
|
| buildCounterCustomError++;
|
| if (buildCounterCustomError < 3) {
|
| - checkUnnamed1769(o.rules);
|
| - checkUnnamed1770(o.types);
|
| + checkUnnamed1786(o.rules);
|
| + checkUnnamed1787(o.types);
|
| }
|
| buildCounterCustomError--;
|
| }
|
| @@ -555,27 +578,27 @@ checkDisableServiceRequest(api.DisableServiceRequest o) {
|
| buildCounterDisableServiceRequest--;
|
| }
|
|
|
| -buildUnnamed1771() {
|
| +buildUnnamed1788() {
|
| var o = new core.List<api.Page>();
|
| o.add(buildPage());
|
| o.add(buildPage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1771(core.List<api.Page> o) {
|
| +checkUnnamed1788(core.List<api.Page> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPage(o[0]);
|
| checkPage(o[1]);
|
| }
|
|
|
| -buildUnnamed1772() {
|
| +buildUnnamed1789() {
|
| var o = new core.List<api.DocumentationRule>();
|
| o.add(buildDocumentationRule());
|
| o.add(buildDocumentationRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1772(core.List<api.DocumentationRule> o) {
|
| +checkUnnamed1789(core.List<api.DocumentationRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDocumentationRule(o[0]);
|
| checkDocumentationRule(o[1]);
|
| @@ -588,8 +611,8 @@ buildDocumentation() {
|
| if (buildCounterDocumentation < 3) {
|
| o.documentationRootUrl = "foo";
|
| o.overview = "foo";
|
| - o.pages = buildUnnamed1771();
|
| - o.rules = buildUnnamed1772();
|
| + o.pages = buildUnnamed1788();
|
| + o.rules = buildUnnamed1789();
|
| o.summary = "foo";
|
| }
|
| buildCounterDocumentation--;
|
| @@ -601,8 +624,8 @@ checkDocumentation(api.Documentation o) {
|
| if (buildCounterDocumentation < 3) {
|
| unittest.expect(o.documentationRootUrl, unittest.equals('foo'));
|
| unittest.expect(o.overview, unittest.equals('foo'));
|
| - checkUnnamed1771(o.pages);
|
| - checkUnnamed1772(o.rules);
|
| + checkUnnamed1788(o.pages);
|
| + checkUnnamed1789(o.rules);
|
| unittest.expect(o.summary, unittest.equals('foo'));
|
| }
|
| buildCounterDocumentation--;
|
| @@ -648,40 +671,40 @@ checkEnableServiceRequest(api.EnableServiceRequest o) {
|
| buildCounterEnableServiceRequest--;
|
| }
|
|
|
| -buildUnnamed1773() {
|
| +buildUnnamed1790() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1773(core.List<core.String> o) {
|
| +checkUnnamed1790(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1774() {
|
| +buildUnnamed1791() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1774(core.List<core.String> o) {
|
| +checkUnnamed1791(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1775() {
|
| +buildUnnamed1792() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1775(core.List<core.String> o) {
|
| +checkUnnamed1792(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -692,10 +715,10 @@ buildEndpoint() {
|
| var o = new api.Endpoint();
|
| buildCounterEndpoint++;
|
| if (buildCounterEndpoint < 3) {
|
| - o.aliases = buildUnnamed1773();
|
| + o.aliases = buildUnnamed1790();
|
| o.allowCors = true;
|
| - o.apis = buildUnnamed1774();
|
| - o.features = buildUnnamed1775();
|
| + o.apis = buildUnnamed1791();
|
| + o.features = buildUnnamed1792();
|
| o.name = "foo";
|
| o.target = "foo";
|
| }
|
| @@ -706,37 +729,37 @@ buildEndpoint() {
|
| checkEndpoint(api.Endpoint o) {
|
| buildCounterEndpoint++;
|
| if (buildCounterEndpoint < 3) {
|
| - checkUnnamed1773(o.aliases);
|
| + checkUnnamed1790(o.aliases);
|
| unittest.expect(o.allowCors, unittest.isTrue);
|
| - checkUnnamed1774(o.apis);
|
| - checkUnnamed1775(o.features);
|
| + checkUnnamed1791(o.apis);
|
| + checkUnnamed1792(o.features);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| }
|
| buildCounterEndpoint--;
|
| }
|
|
|
| -buildUnnamed1776() {
|
| +buildUnnamed1793() {
|
| var o = new core.List<api.EnumValue>();
|
| o.add(buildEnumValue());
|
| o.add(buildEnumValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1776(core.List<api.EnumValue> o) {
|
| +checkUnnamed1793(core.List<api.EnumValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEnumValue(o[0]);
|
| checkEnumValue(o[1]);
|
| }
|
|
|
| -buildUnnamed1777() {
|
| +buildUnnamed1794() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1777(core.List<api.Option> o) {
|
| +checkUnnamed1794(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -747,9 +770,9 @@ buildEnum() {
|
| var o = new api.Enum();
|
| buildCounterEnum++;
|
| if (buildCounterEnum < 3) {
|
| - o.enumvalue = buildUnnamed1776();
|
| + o.enumvalue = buildUnnamed1793();
|
| o.name = "foo";
|
| - o.options = buildUnnamed1777();
|
| + o.options = buildUnnamed1794();
|
| o.sourceContext = buildSourceContext();
|
| o.syntax = "foo";
|
| }
|
| @@ -760,23 +783,23 @@ buildEnum() {
|
| checkEnum(api.Enum o) {
|
| buildCounterEnum++;
|
| if (buildCounterEnum < 3) {
|
| - checkUnnamed1776(o.enumvalue);
|
| + checkUnnamed1793(o.enumvalue);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1777(o.options);
|
| + checkUnnamed1794(o.options);
|
| checkSourceContext(o.sourceContext);
|
| unittest.expect(o.syntax, unittest.equals('foo'));
|
| }
|
| buildCounterEnum--;
|
| }
|
|
|
| -buildUnnamed1778() {
|
| +buildUnnamed1795() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1778(core.List<api.Option> o) {
|
| +checkUnnamed1795(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -789,7 +812,7 @@ buildEnumValue() {
|
| if (buildCounterEnumValue < 3) {
|
| o.name = "foo";
|
| o.number = 42;
|
| - o.options = buildUnnamed1778();
|
| + o.options = buildUnnamed1795();
|
| }
|
| buildCounterEnumValue--;
|
| return o;
|
| @@ -800,7 +823,7 @@ checkEnumValue(api.EnumValue o) {
|
| if (buildCounterEnumValue < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.number, unittest.equals(42));
|
| - checkUnnamed1778(o.options);
|
| + checkUnnamed1795(o.options);
|
| }
|
| buildCounterEnumValue--;
|
| }
|
| @@ -824,14 +847,14 @@ checkExperimental(api.Experimental o) {
|
| buildCounterExperimental--;
|
| }
|
|
|
| -buildUnnamed1779() {
|
| +buildUnnamed1796() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1779(core.List<api.Option> o) {
|
| +checkUnnamed1796(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -849,7 +872,7 @@ buildField() {
|
| o.name = "foo";
|
| o.number = 42;
|
| o.oneofIndex = 42;
|
| - o.options = buildUnnamed1779();
|
| + o.options = buildUnnamed1796();
|
| o.packed = true;
|
| o.typeUrl = "foo";
|
| }
|
| @@ -867,21 +890,21 @@ checkField(api.Field o) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.number, unittest.equals(42));
|
| unittest.expect(o.oneofIndex, unittest.equals(42));
|
| - checkUnnamed1779(o.options);
|
| + checkUnnamed1796(o.options);
|
| unittest.expect(o.packed, unittest.isTrue);
|
| unittest.expect(o.typeUrl, unittest.equals('foo'));
|
| }
|
| buildCounterField--;
|
| }
|
|
|
| -buildUnnamed1780() {
|
| +buildUnnamed1797() {
|
| var o = new core.List<api.HttpRule>();
|
| o.add(buildHttpRule());
|
| o.add(buildHttpRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1780(core.List<api.HttpRule> o) {
|
| +checkUnnamed1797(core.List<api.HttpRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHttpRule(o[0]);
|
| checkHttpRule(o[1]);
|
| @@ -893,7 +916,7 @@ buildHttp() {
|
| buildCounterHttp++;
|
| if (buildCounterHttp < 3) {
|
| o.fullyDecodeReservedExpansion = true;
|
| - o.rules = buildUnnamed1780();
|
| + o.rules = buildUnnamed1797();
|
| }
|
| buildCounterHttp--;
|
| return o;
|
| @@ -903,30 +926,44 @@ checkHttp(api.Http o) {
|
| buildCounterHttp++;
|
| if (buildCounterHttp < 3) {
|
| unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue);
|
| - checkUnnamed1780(o.rules);
|
| + checkUnnamed1797(o.rules);
|
| }
|
| buildCounterHttp--;
|
| }
|
|
|
| -buildUnnamed1781() {
|
| +buildUnnamed1798() {
|
| var o = new core.List<api.HttpRule>();
|
| o.add(buildHttpRule());
|
| o.add(buildHttpRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1781(core.List<api.HttpRule> o) {
|
| +checkUnnamed1798(core.List<api.HttpRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHttpRule(o[0]);
|
| checkHttpRule(o[1]);
|
| }
|
|
|
| +buildUnnamed1799() {
|
| + var o = new core.List<api.AuthorizationRule>();
|
| + o.add(buildAuthorizationRule());
|
| + o.add(buildAuthorizationRule());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1799(core.List<api.AuthorizationRule> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkAuthorizationRule(o[0]);
|
| + checkAuthorizationRule(o[1]);
|
| +}
|
| +
|
| core.int buildCounterHttpRule = 0;
|
| buildHttpRule() {
|
| var o = new api.HttpRule();
|
| buildCounterHttpRule++;
|
| if (buildCounterHttpRule < 3) {
|
| - o.additionalBindings = buildUnnamed1781();
|
| + o.additionalBindings = buildUnnamed1798();
|
| + o.authorizations = buildUnnamed1799();
|
| o.body = "foo";
|
| o.custom = buildCustomHttpPattern();
|
| o.delete = "foo";
|
| @@ -948,7 +985,8 @@ buildHttpRule() {
|
| checkHttpRule(api.HttpRule o) {
|
| buildCounterHttpRule++;
|
| if (buildCounterHttpRule < 3) {
|
| - checkUnnamed1781(o.additionalBindings);
|
| + checkUnnamed1798(o.additionalBindings);
|
| + checkUnnamed1799(o.authorizations);
|
| unittest.expect(o.body, unittest.equals('foo'));
|
| checkCustomHttpPattern(o.custom);
|
| unittest.expect(o.delete, unittest.equals('foo'));
|
| @@ -989,14 +1027,14 @@ checkLabelDescriptor(api.LabelDescriptor o) {
|
| buildCounterLabelDescriptor--;
|
| }
|
|
|
| -buildUnnamed1782() {
|
| +buildUnnamed1800() {
|
| var o = new core.List<api.PublishedService>();
|
| o.add(buildPublishedService());
|
| o.add(buildPublishedService());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1782(core.List<api.PublishedService> o) {
|
| +checkUnnamed1800(core.List<api.PublishedService> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPublishedService(o[0]);
|
| checkPublishedService(o[1]);
|
| @@ -1008,7 +1046,7 @@ buildListEnabledServicesResponse() {
|
| buildCounterListEnabledServicesResponse++;
|
| if (buildCounterListEnabledServicesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.services = buildUnnamed1782();
|
| + o.services = buildUnnamed1800();
|
| }
|
| buildCounterListEnabledServicesResponse--;
|
| return o;
|
| @@ -1018,19 +1056,19 @@ checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) {
|
| buildCounterListEnabledServicesResponse++;
|
| if (buildCounterListEnabledServicesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1782(o.services);
|
| + checkUnnamed1800(o.services);
|
| }
|
| buildCounterListEnabledServicesResponse--;
|
| }
|
|
|
| -buildUnnamed1783() {
|
| +buildUnnamed1801() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1783(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed1801(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -1043,7 +1081,7 @@ buildLogDescriptor() {
|
| if (buildCounterLogDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed1783();
|
| + o.labels = buildUnnamed1801();
|
| o.name = "foo";
|
| }
|
| buildCounterLogDescriptor--;
|
| @@ -1055,33 +1093,33 @@ checkLogDescriptor(api.LogDescriptor o) {
|
| if (buildCounterLogDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed1783(o.labels);
|
| + checkUnnamed1801(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLogDescriptor--;
|
| }
|
|
|
| -buildUnnamed1784() {
|
| +buildUnnamed1802() {
|
| var o = new core.List<api.LoggingDestination>();
|
| o.add(buildLoggingDestination());
|
| o.add(buildLoggingDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1784(core.List<api.LoggingDestination> o) {
|
| +checkUnnamed1802(core.List<api.LoggingDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLoggingDestination(o[0]);
|
| checkLoggingDestination(o[1]);
|
| }
|
|
|
| -buildUnnamed1785() {
|
| +buildUnnamed1803() {
|
| var o = new core.List<api.LoggingDestination>();
|
| o.add(buildLoggingDestination());
|
| o.add(buildLoggingDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1785(core.List<api.LoggingDestination> o) {
|
| +checkUnnamed1803(core.List<api.LoggingDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLoggingDestination(o[0]);
|
| checkLoggingDestination(o[1]);
|
| @@ -1092,8 +1130,8 @@ buildLogging() {
|
| var o = new api.Logging();
|
| buildCounterLogging++;
|
| if (buildCounterLogging < 3) {
|
| - o.consumerDestinations = buildUnnamed1784();
|
| - o.producerDestinations = buildUnnamed1785();
|
| + o.consumerDestinations = buildUnnamed1802();
|
| + o.producerDestinations = buildUnnamed1803();
|
| }
|
| buildCounterLogging--;
|
| return o;
|
| @@ -1102,20 +1140,20 @@ buildLogging() {
|
| checkLogging(api.Logging o) {
|
| buildCounterLogging++;
|
| if (buildCounterLogging < 3) {
|
| - checkUnnamed1784(o.consumerDestinations);
|
| - checkUnnamed1785(o.producerDestinations);
|
| + checkUnnamed1802(o.consumerDestinations);
|
| + checkUnnamed1803(o.producerDestinations);
|
| }
|
| buildCounterLogging--;
|
| }
|
|
|
| -buildUnnamed1786() {
|
| +buildUnnamed1804() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1786(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'));
|
| @@ -1126,7 +1164,7 @@ buildLoggingDestination() {
|
| var o = new api.LoggingDestination();
|
| buildCounterLoggingDestination++;
|
| if (buildCounterLoggingDestination < 3) {
|
| - o.logs = buildUnnamed1786();
|
| + o.logs = buildUnnamed1804();
|
| o.monitoredResource = "foo";
|
| }
|
| buildCounterLoggingDestination--;
|
| @@ -1136,7 +1174,7 @@ buildLoggingDestination() {
|
| checkLoggingDestination(api.LoggingDestination o) {
|
| buildCounterLoggingDestination++;
|
| if (buildCounterLoggingDestination < 3) {
|
| - checkUnnamed1786(o.logs);
|
| + checkUnnamed1804(o.logs);
|
| unittest.expect(o.monitoredResource, unittest.equals('foo'));
|
| }
|
| buildCounterLoggingDestination--;
|
| @@ -1171,14 +1209,14 @@ checkMediaDownload(api.MediaDownload o) {
|
| buildCounterMediaDownload--;
|
| }
|
|
|
| -buildUnnamed1787() {
|
| +buildUnnamed1805() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1787(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'));
|
| @@ -1193,7 +1231,7 @@ buildMediaUpload() {
|
| o.dropzone = "foo";
|
| o.enabled = true;
|
| o.maxSize = "foo";
|
| - o.mimeTypes = buildUnnamed1787();
|
| + o.mimeTypes = buildUnnamed1805();
|
| o.progressNotification = true;
|
| o.startNotification = true;
|
| o.uploadService = "foo";
|
| @@ -1209,7 +1247,7 @@ checkMediaUpload(api.MediaUpload o) {
|
| unittest.expect(o.dropzone, unittest.equals('foo'));
|
| unittest.expect(o.enabled, unittest.isTrue);
|
| unittest.expect(o.maxSize, unittest.equals('foo'));
|
| - checkUnnamed1787(o.mimeTypes);
|
| + checkUnnamed1805(o.mimeTypes);
|
| unittest.expect(o.progressNotification, unittest.isTrue);
|
| unittest.expect(o.startNotification, unittest.isTrue);
|
| unittest.expect(o.uploadService, unittest.equals('foo'));
|
| @@ -1217,14 +1255,14 @@ checkMediaUpload(api.MediaUpload o) {
|
| buildCounterMediaUpload--;
|
| }
|
|
|
| -buildUnnamed1788() {
|
| +buildUnnamed1806() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1788(core.List<api.Option> o) {
|
| +checkUnnamed1806(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -1236,7 +1274,7 @@ buildMethod() {
|
| buildCounterMethod++;
|
| if (buildCounterMethod < 3) {
|
| o.name = "foo";
|
| - o.options = buildUnnamed1788();
|
| + o.options = buildUnnamed1806();
|
| o.requestStreaming = true;
|
| o.requestTypeUrl = "foo";
|
| o.responseStreaming = true;
|
| @@ -1251,7 +1289,7 @@ checkMethod(api.Method o) {
|
| buildCounterMethod++;
|
| if (buildCounterMethod < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1788(o.options);
|
| + checkUnnamed1806(o.options);
|
| unittest.expect(o.requestStreaming, unittest.isTrue);
|
| unittest.expect(o.requestTypeUrl, unittest.equals('foo'));
|
| unittest.expect(o.responseStreaming, unittest.isTrue);
|
| @@ -1261,14 +1299,14 @@ checkMethod(api.Method o) {
|
| buildCounterMethod--;
|
| }
|
|
|
| -buildUnnamed1789() {
|
| +buildUnnamed1807() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1789(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed1807(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -1281,7 +1319,7 @@ buildMetricDescriptor() {
|
| if (buildCounterMetricDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed1789();
|
| + o.labels = buildUnnamed1807();
|
| o.metricKind = "foo";
|
| o.name = "foo";
|
| o.type = "foo";
|
| @@ -1297,7 +1335,7 @@ checkMetricDescriptor(api.MetricDescriptor o) {
|
| if (buildCounterMetricDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed1789(o.labels);
|
| + checkUnnamed1807(o.labels);
|
| unittest.expect(o.metricKind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| @@ -1307,14 +1345,14 @@ checkMetricDescriptor(api.MetricDescriptor o) {
|
| buildCounterMetricDescriptor--;
|
| }
|
|
|
| -buildUnnamed1790() {
|
| +buildUnnamed1808() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1790(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1808(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -1325,7 +1363,7 @@ buildMetricRule() {
|
| var o = new api.MetricRule();
|
| buildCounterMetricRule++;
|
| if (buildCounterMetricRule < 3) {
|
| - o.metricCosts = buildUnnamed1790();
|
| + o.metricCosts = buildUnnamed1808();
|
| o.selector = "foo";
|
| }
|
| buildCounterMetricRule--;
|
| @@ -1335,7 +1373,7 @@ buildMetricRule() {
|
| checkMetricRule(api.MetricRule o) {
|
| buildCounterMetricRule++;
|
| if (buildCounterMetricRule < 3) {
|
| - checkUnnamed1790(o.metricCosts);
|
| + checkUnnamed1808(o.metricCosts);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterMetricRule--;
|
| @@ -1362,14 +1400,14 @@ checkMixin(api.Mixin o) {
|
| buildCounterMixin--;
|
| }
|
|
|
| -buildUnnamed1791() {
|
| +buildUnnamed1809() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1791(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed1809(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -1382,7 +1420,7 @@ buildMonitoredResourceDescriptor() {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed1791();
|
| + o.labels = buildUnnamed1809();
|
| o.name = "foo";
|
| o.type = "foo";
|
| }
|
| @@ -1395,34 +1433,34 @@ checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed1791(o.labels);
|
| + checkUnnamed1809(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoredResourceDescriptor--;
|
| }
|
|
|
| -buildUnnamed1792() {
|
| +buildUnnamed1810() {
|
| var o = new core.List<api.MonitoringDestination>();
|
| o.add(buildMonitoringDestination());
|
| o.add(buildMonitoringDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1792(core.List<api.MonitoringDestination> o) {
|
| +checkUnnamed1810(core.List<api.MonitoringDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoringDestination(o[0]);
|
| checkMonitoringDestination(o[1]);
|
| }
|
|
|
| -buildUnnamed1793() {
|
| +buildUnnamed1811() {
|
| var o = new core.List<api.MonitoringDestination>();
|
| o.add(buildMonitoringDestination());
|
| o.add(buildMonitoringDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1793(core.List<api.MonitoringDestination> o) {
|
| +checkUnnamed1811(core.List<api.MonitoringDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoringDestination(o[0]);
|
| checkMonitoringDestination(o[1]);
|
| @@ -1433,8 +1471,8 @@ buildMonitoring() {
|
| var o = new api.Monitoring();
|
| buildCounterMonitoring++;
|
| if (buildCounterMonitoring < 3) {
|
| - o.consumerDestinations = buildUnnamed1792();
|
| - o.producerDestinations = buildUnnamed1793();
|
| + o.consumerDestinations = buildUnnamed1810();
|
| + o.producerDestinations = buildUnnamed1811();
|
| }
|
| buildCounterMonitoring--;
|
| return o;
|
| @@ -1443,20 +1481,20 @@ buildMonitoring() {
|
| checkMonitoring(api.Monitoring o) {
|
| buildCounterMonitoring++;
|
| if (buildCounterMonitoring < 3) {
|
| - checkUnnamed1792(o.consumerDestinations);
|
| - checkUnnamed1793(o.producerDestinations);
|
| + checkUnnamed1810(o.consumerDestinations);
|
| + checkUnnamed1811(o.producerDestinations);
|
| }
|
| buildCounterMonitoring--;
|
| }
|
|
|
| -buildUnnamed1794() {
|
| +buildUnnamed1812() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1794(core.List<core.String> o) {
|
| +checkUnnamed1812(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1467,7 +1505,7 @@ buildMonitoringDestination() {
|
| var o = new api.MonitoringDestination();
|
| buildCounterMonitoringDestination++;
|
| if (buildCounterMonitoringDestination < 3) {
|
| - o.metrics = buildUnnamed1794();
|
| + o.metrics = buildUnnamed1812();
|
| o.monitoredResource = "foo";
|
| }
|
| buildCounterMonitoringDestination--;
|
| @@ -1477,7 +1515,7 @@ buildMonitoringDestination() {
|
| checkMonitoringDestination(api.MonitoringDestination o) {
|
| buildCounterMonitoringDestination++;
|
| if (buildCounterMonitoringDestination < 3) {
|
| - checkUnnamed1794(o.metrics);
|
| + checkUnnamed1812(o.metrics);
|
| unittest.expect(o.monitoredResource, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoringDestination--;
|
| @@ -1502,27 +1540,27 @@ checkOAuthRequirements(api.OAuthRequirements o) {
|
| buildCounterOAuthRequirements--;
|
| }
|
|
|
| -buildUnnamed1795() {
|
| +buildUnnamed1813() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1795(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1813(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'));
|
| }
|
|
|
| -buildUnnamed1796() {
|
| +buildUnnamed1814() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1796(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1814(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'));
|
| @@ -1535,9 +1573,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed1795();
|
| + o.metadata = buildUnnamed1813();
|
| o.name = "foo";
|
| - o.response = buildUnnamed1796();
|
| + o.response = buildUnnamed1814();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -1548,34 +1586,34 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed1795(o.metadata);
|
| + checkUnnamed1813(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1796(o.response);
|
| + checkUnnamed1814(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
|
|
| -buildUnnamed1797() {
|
| +buildUnnamed1815() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1797(core.List<core.String> o) {
|
| +checkUnnamed1815(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1798() {
|
| +buildUnnamed1816() {
|
| var o = new core.List<api.Step>();
|
| o.add(buildStep());
|
| o.add(buildStep());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1798(core.List<api.Step> o) {
|
| +checkUnnamed1816(core.List<api.Step> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkStep(o[0]);
|
| checkStep(o[1]);
|
| @@ -1587,9 +1625,9 @@ buildOperationMetadata() {
|
| buildCounterOperationMetadata++;
|
| if (buildCounterOperationMetadata < 3) {
|
| o.progressPercentage = 42;
|
| - o.resourceNames = buildUnnamed1797();
|
| + o.resourceNames = buildUnnamed1815();
|
| o.startTime = "foo";
|
| - o.steps = buildUnnamed1798();
|
| + o.steps = buildUnnamed1816();
|
| }
|
| buildCounterOperationMetadata--;
|
| return o;
|
| @@ -1599,21 +1637,21 @@ checkOperationMetadata(api.OperationMetadata o) {
|
| buildCounterOperationMetadata++;
|
| if (buildCounterOperationMetadata < 3) {
|
| unittest.expect(o.progressPercentage, unittest.equals(42));
|
| - checkUnnamed1797(o.resourceNames);
|
| + checkUnnamed1815(o.resourceNames);
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| - checkUnnamed1798(o.steps);
|
| + checkUnnamed1816(o.steps);
|
| }
|
| buildCounterOperationMetadata--;
|
| }
|
|
|
| -buildUnnamed1799() {
|
| +buildUnnamed1817() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1799(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1817(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'));
|
| @@ -1625,7 +1663,7 @@ buildOption() {
|
| buildCounterOption++;
|
| if (buildCounterOption < 3) {
|
| o.name = "foo";
|
| - o.value = buildUnnamed1799();
|
| + o.value = buildUnnamed1817();
|
| }
|
| buildCounterOption--;
|
| return o;
|
| @@ -1635,19 +1673,19 @@ checkOption(api.Option o) {
|
| buildCounterOption++;
|
| if (buildCounterOption < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1799(o.value);
|
| + checkUnnamed1817(o.value);
|
| }
|
| buildCounterOption--;
|
| }
|
|
|
| -buildUnnamed1800() {
|
| +buildUnnamed1818() {
|
| var o = new core.List<api.Page>();
|
| o.add(buildPage());
|
| o.add(buildPage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1800(core.List<api.Page> o) {
|
| +checkUnnamed1818(core.List<api.Page> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPage(o[0]);
|
| checkPage(o[1]);
|
| @@ -1660,7 +1698,7 @@ buildPage() {
|
| if (buildCounterPage < 3) {
|
| o.content = "foo";
|
| o.name = "foo";
|
| - o.subpages = buildUnnamed1800();
|
| + o.subpages = buildUnnamed1818();
|
| }
|
| buildCounterPage--;
|
| return o;
|
| @@ -1671,7 +1709,7 @@ checkPage(api.Page o) {
|
| if (buildCounterPage < 3) {
|
| unittest.expect(o.content, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1800(o.subpages);
|
| + checkUnnamed1818(o.subpages);
|
| }
|
| buildCounterPage--;
|
| }
|
| @@ -1697,27 +1735,27 @@ checkPublishedService(api.PublishedService o) {
|
| buildCounterPublishedService--;
|
| }
|
|
|
| -buildUnnamed1801() {
|
| +buildUnnamed1819() {
|
| var o = new core.List<api.QuotaLimit>();
|
| o.add(buildQuotaLimit());
|
| o.add(buildQuotaLimit());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1801(core.List<api.QuotaLimit> o) {
|
| +checkUnnamed1819(core.List<api.QuotaLimit> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkQuotaLimit(o[0]);
|
| checkQuotaLimit(o[1]);
|
| }
|
|
|
| -buildUnnamed1802() {
|
| +buildUnnamed1820() {
|
| var o = new core.List<api.MetricRule>();
|
| o.add(buildMetricRule());
|
| o.add(buildMetricRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1802(core.List<api.MetricRule> o) {
|
| +checkUnnamed1820(core.List<api.MetricRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetricRule(o[0]);
|
| checkMetricRule(o[1]);
|
| @@ -1728,8 +1766,8 @@ buildQuota() {
|
| var o = new api.Quota();
|
| buildCounterQuota++;
|
| if (buildCounterQuota < 3) {
|
| - o.limits = buildUnnamed1801();
|
| - o.metricRules = buildUnnamed1802();
|
| + o.limits = buildUnnamed1819();
|
| + o.metricRules = buildUnnamed1820();
|
| }
|
| buildCounterQuota--;
|
| return o;
|
| @@ -1738,20 +1776,20 @@ buildQuota() {
|
| checkQuota(api.Quota o) {
|
| buildCounterQuota++;
|
| if (buildCounterQuota < 3) {
|
| - checkUnnamed1801(o.limits);
|
| - checkUnnamed1802(o.metricRules);
|
| + checkUnnamed1819(o.limits);
|
| + checkUnnamed1820(o.metricRules);
|
| }
|
| buildCounterQuota--;
|
| }
|
|
|
| -buildUnnamed1803() {
|
| +buildUnnamed1821() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1803(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'));
|
| @@ -1771,7 +1809,7 @@ buildQuotaLimit() {
|
| o.metric = "foo";
|
| o.name = "foo";
|
| o.unit = "foo";
|
| - o.values = buildUnnamed1803();
|
| + o.values = buildUnnamed1821();
|
| }
|
| buildCounterQuotaLimit--;
|
| return o;
|
| @@ -1789,19 +1827,19 @@ checkQuotaLimit(api.QuotaLimit o) {
|
| unittest.expect(o.metric, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.unit, unittest.equals('foo'));
|
| - checkUnnamed1803(o.values);
|
| + checkUnnamed1821(o.values);
|
| }
|
| buildCounterQuotaLimit--;
|
| }
|
|
|
| -buildUnnamed1804() {
|
| +buildUnnamed1822() {
|
| var o = new core.List<api.PublishedService>();
|
| o.add(buildPublishedService());
|
| o.add(buildPublishedService());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1804(core.List<api.PublishedService> o) {
|
| +checkUnnamed1822(core.List<api.PublishedService> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPublishedService(o[0]);
|
| checkPublishedService(o[1]);
|
| @@ -1813,7 +1851,7 @@ buildSearchServicesResponse() {
|
| buildCounterSearchServicesResponse++;
|
| if (buildCounterSearchServicesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.services = buildUnnamed1804();
|
| + o.services = buildUnnamed1822();
|
| }
|
| buildCounterSearchServicesResponse--;
|
| return o;
|
| @@ -1823,110 +1861,110 @@ checkSearchServicesResponse(api.SearchServicesResponse o) {
|
| buildCounterSearchServicesResponse++;
|
| if (buildCounterSearchServicesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1804(o.services);
|
| + checkUnnamed1822(o.services);
|
| }
|
| buildCounterSearchServicesResponse--;
|
| }
|
|
|
| -buildUnnamed1805() {
|
| +buildUnnamed1823() {
|
| var o = new core.List<api.Api>();
|
| o.add(buildApi());
|
| o.add(buildApi());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1805(core.List<api.Api> o) {
|
| +checkUnnamed1823(core.List<api.Api> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkApi(o[0]);
|
| checkApi(o[1]);
|
| }
|
|
|
| -buildUnnamed1806() {
|
| +buildUnnamed1824() {
|
| var o = new core.List<api.Endpoint>();
|
| o.add(buildEndpoint());
|
| o.add(buildEndpoint());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1806(core.List<api.Endpoint> o) {
|
| +checkUnnamed1824(core.List<api.Endpoint> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEndpoint(o[0]);
|
| checkEndpoint(o[1]);
|
| }
|
|
|
| -buildUnnamed1807() {
|
| +buildUnnamed1825() {
|
| var o = new core.List<api.Enum>();
|
| o.add(buildEnum());
|
| o.add(buildEnum());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1807(core.List<api.Enum> o) {
|
| +checkUnnamed1825(core.List<api.Enum> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEnum(o[0]);
|
| checkEnum(o[1]);
|
| }
|
|
|
| -buildUnnamed1808() {
|
| +buildUnnamed1826() {
|
| var o = new core.List<api.LogDescriptor>();
|
| o.add(buildLogDescriptor());
|
| o.add(buildLogDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1808(core.List<api.LogDescriptor> o) {
|
| +checkUnnamed1826(core.List<api.LogDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogDescriptor(o[0]);
|
| checkLogDescriptor(o[1]);
|
| }
|
|
|
| -buildUnnamed1809() {
|
| +buildUnnamed1827() {
|
| var o = new core.List<api.MetricDescriptor>();
|
| o.add(buildMetricDescriptor());
|
| o.add(buildMetricDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1809(core.List<api.MetricDescriptor> o) {
|
| +checkUnnamed1827(core.List<api.MetricDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetricDescriptor(o[0]);
|
| checkMetricDescriptor(o[1]);
|
| }
|
|
|
| -buildUnnamed1810() {
|
| +buildUnnamed1828() {
|
| var o = new core.List<api.MonitoredResourceDescriptor>();
|
| o.add(buildMonitoredResourceDescriptor());
|
| o.add(buildMonitoredResourceDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1810(core.List<api.MonitoredResourceDescriptor> o) {
|
| +checkUnnamed1828(core.List<api.MonitoredResourceDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoredResourceDescriptor(o[0]);
|
| checkMonitoredResourceDescriptor(o[1]);
|
| }
|
|
|
| -buildUnnamed1811() {
|
| +buildUnnamed1829() {
|
| var o = new core.List<api.Type>();
|
| o.add(buildType());
|
| o.add(buildType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1811(core.List<api.Type> o) {
|
| +checkUnnamed1829(core.List<api.Type> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkType(o[0]);
|
| checkType(o[1]);
|
| }
|
|
|
| -buildUnnamed1812() {
|
| +buildUnnamed1830() {
|
| var o = new core.List<api.Type>();
|
| o.add(buildType());
|
| o.add(buildType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1812(core.List<api.Type> o) {
|
| +checkUnnamed1830(core.List<api.Type> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkType(o[0]);
|
| checkType(o[1]);
|
| @@ -1937,7 +1975,7 @@ buildService() {
|
| var o = new api.Service();
|
| buildCounterService++;
|
| if (buildCounterService < 3) {
|
| - o.apis = buildUnnamed1805();
|
| + o.apis = buildUnnamed1823();
|
| o.authentication = buildAuthentication();
|
| o.backend = buildBackend();
|
| o.configVersion = 42;
|
| @@ -1945,24 +1983,24 @@ buildService() {
|
| o.control = buildControl();
|
| o.customError = buildCustomError();
|
| o.documentation = buildDocumentation();
|
| - o.endpoints = buildUnnamed1806();
|
| - o.enums = buildUnnamed1807();
|
| + o.endpoints = buildUnnamed1824();
|
| + o.enums = buildUnnamed1825();
|
| o.experimental = buildExperimental();
|
| o.http = buildHttp();
|
| o.id = "foo";
|
| o.logging = buildLogging();
|
| - o.logs = buildUnnamed1808();
|
| - o.metrics = buildUnnamed1809();
|
| - o.monitoredResources = buildUnnamed1810();
|
| + o.logs = buildUnnamed1826();
|
| + o.metrics = buildUnnamed1827();
|
| + o.monitoredResources = buildUnnamed1828();
|
| o.monitoring = buildMonitoring();
|
| o.name = "foo";
|
| o.producerProjectId = "foo";
|
| o.quota = buildQuota();
|
| o.sourceInfo = buildSourceInfo();
|
| o.systemParameters = buildSystemParameters();
|
| - o.systemTypes = buildUnnamed1811();
|
| + o.systemTypes = buildUnnamed1829();
|
| o.title = "foo";
|
| - o.types = buildUnnamed1812();
|
| + o.types = buildUnnamed1830();
|
| o.usage = buildUsage();
|
| o.visibility = buildVisibility();
|
| }
|
| @@ -1973,7 +2011,7 @@ buildService() {
|
| checkService(api.Service o) {
|
| buildCounterService++;
|
| if (buildCounterService < 3) {
|
| - checkUnnamed1805(o.apis);
|
| + checkUnnamed1823(o.apis);
|
| checkAuthentication(o.authentication);
|
| checkBackend(o.backend);
|
| unittest.expect(o.configVersion, unittest.equals(42));
|
| @@ -1981,24 +2019,24 @@ checkService(api.Service o) {
|
| checkControl(o.control);
|
| checkCustomError(o.customError);
|
| checkDocumentation(o.documentation);
|
| - checkUnnamed1806(o.endpoints);
|
| - checkUnnamed1807(o.enums);
|
| + checkUnnamed1824(o.endpoints);
|
| + checkUnnamed1825(o.enums);
|
| checkExperimental(o.experimental);
|
| checkHttp(o.http);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkLogging(o.logging);
|
| - checkUnnamed1808(o.logs);
|
| - checkUnnamed1809(o.metrics);
|
| - checkUnnamed1810(o.monitoredResources);
|
| + checkUnnamed1826(o.logs);
|
| + checkUnnamed1827(o.metrics);
|
| + checkUnnamed1828(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);
|
| - checkUnnamed1811(o.systemTypes);
|
| + checkUnnamed1829(o.systemTypes);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| - checkUnnamed1812(o.types);
|
| + checkUnnamed1830(o.types);
|
| checkUsage(o.usage);
|
| checkVisibility(o.visibility);
|
| }
|
| @@ -2024,30 +2062,30 @@ checkSourceContext(api.SourceContext o) {
|
| buildCounterSourceContext--;
|
| }
|
|
|
| -buildUnnamed1813() {
|
| +buildUnnamed1831() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1813(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1831(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'));
|
| }
|
|
|
| -buildUnnamed1814() {
|
| +buildUnnamed1832() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed1813());
|
| - o.add(buildUnnamed1813());
|
| + o.add(buildUnnamed1831());
|
| + o.add(buildUnnamed1831());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1814(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1832(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1813(o[0]);
|
| - checkUnnamed1813(o[1]);
|
| + checkUnnamed1831(o[0]);
|
| + checkUnnamed1831(o[1]);
|
| }
|
|
|
| core.int buildCounterSourceInfo = 0;
|
| @@ -2055,7 +2093,7 @@ buildSourceInfo() {
|
| var o = new api.SourceInfo();
|
| buildCounterSourceInfo++;
|
| if (buildCounterSourceInfo < 3) {
|
| - o.sourceFiles = buildUnnamed1814();
|
| + o.sourceFiles = buildUnnamed1832();
|
| }
|
| buildCounterSourceInfo--;
|
| return o;
|
| @@ -2064,35 +2102,35 @@ buildSourceInfo() {
|
| checkSourceInfo(api.SourceInfo o) {
|
| buildCounterSourceInfo++;
|
| if (buildCounterSourceInfo < 3) {
|
| - checkUnnamed1814(o.sourceFiles);
|
| + checkUnnamed1832(o.sourceFiles);
|
| }
|
| buildCounterSourceInfo--;
|
| }
|
|
|
| -buildUnnamed1815() {
|
| +buildUnnamed1833() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1815(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1833(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'));
|
| }
|
|
|
| -buildUnnamed1816() {
|
| +buildUnnamed1834() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed1815());
|
| - o.add(buildUnnamed1815());
|
| + o.add(buildUnnamed1833());
|
| + o.add(buildUnnamed1833());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1816(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1834(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1815(o[0]);
|
| - checkUnnamed1815(o[1]);
|
| + checkUnnamed1833(o[0]);
|
| + checkUnnamed1833(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -2101,7 +2139,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed1816();
|
| + o.details = buildUnnamed1834();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -2112,7 +2150,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed1816(o.details);
|
| + checkUnnamed1834(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| @@ -2162,14 +2200,14 @@ checkSystemParameter(api.SystemParameter o) {
|
| buildCounterSystemParameter--;
|
| }
|
|
|
| -buildUnnamed1817() {
|
| +buildUnnamed1835() {
|
| var o = new core.List<api.SystemParameter>();
|
| o.add(buildSystemParameter());
|
| o.add(buildSystemParameter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1817(core.List<api.SystemParameter> o) {
|
| +checkUnnamed1835(core.List<api.SystemParameter> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSystemParameter(o[0]);
|
| checkSystemParameter(o[1]);
|
| @@ -2180,7 +2218,7 @@ buildSystemParameterRule() {
|
| var o = new api.SystemParameterRule();
|
| buildCounterSystemParameterRule++;
|
| if (buildCounterSystemParameterRule < 3) {
|
| - o.parameters = buildUnnamed1817();
|
| + o.parameters = buildUnnamed1835();
|
| o.selector = "foo";
|
| }
|
| buildCounterSystemParameterRule--;
|
| @@ -2190,20 +2228,20 @@ buildSystemParameterRule() {
|
| checkSystemParameterRule(api.SystemParameterRule o) {
|
| buildCounterSystemParameterRule++;
|
| if (buildCounterSystemParameterRule < 3) {
|
| - checkUnnamed1817(o.parameters);
|
| + checkUnnamed1835(o.parameters);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterSystemParameterRule--;
|
| }
|
|
|
| -buildUnnamed1818() {
|
| +buildUnnamed1836() {
|
| var o = new core.List<api.SystemParameterRule>();
|
| o.add(buildSystemParameterRule());
|
| o.add(buildSystemParameterRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1818(core.List<api.SystemParameterRule> o) {
|
| +checkUnnamed1836(core.List<api.SystemParameterRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSystemParameterRule(o[0]);
|
| checkSystemParameterRule(o[1]);
|
| @@ -2214,7 +2252,7 @@ buildSystemParameters() {
|
| var o = new api.SystemParameters();
|
| buildCounterSystemParameters++;
|
| if (buildCounterSystemParameters < 3) {
|
| - o.rules = buildUnnamed1818();
|
| + o.rules = buildUnnamed1836();
|
| }
|
| buildCounterSystemParameters--;
|
| return o;
|
| @@ -2223,45 +2261,45 @@ buildSystemParameters() {
|
| checkSystemParameters(api.SystemParameters o) {
|
| buildCounterSystemParameters++;
|
| if (buildCounterSystemParameters < 3) {
|
| - checkUnnamed1818(o.rules);
|
| + checkUnnamed1836(o.rules);
|
| }
|
| buildCounterSystemParameters--;
|
| }
|
|
|
| -buildUnnamed1819() {
|
| +buildUnnamed1837() {
|
| var o = new core.List<api.Field>();
|
| o.add(buildField());
|
| o.add(buildField());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1819(core.List<api.Field> o) {
|
| +checkUnnamed1837(core.List<api.Field> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkField(o[0]);
|
| checkField(o[1]);
|
| }
|
|
|
| -buildUnnamed1820() {
|
| +buildUnnamed1838() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1820(core.List<core.String> o) {
|
| +checkUnnamed1838(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1821() {
|
| +buildUnnamed1839() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1821(core.List<api.Option> o) {
|
| +checkUnnamed1839(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -2272,10 +2310,10 @@ buildType() {
|
| var o = new api.Type();
|
| buildCounterType++;
|
| if (buildCounterType < 3) {
|
| - o.fields = buildUnnamed1819();
|
| + o.fields = buildUnnamed1837();
|
| o.name = "foo";
|
| - o.oneofs = buildUnnamed1820();
|
| - o.options = buildUnnamed1821();
|
| + o.oneofs = buildUnnamed1838();
|
| + o.options = buildUnnamed1839();
|
| o.sourceContext = buildSourceContext();
|
| o.syntax = "foo";
|
| }
|
| @@ -2286,37 +2324,37 @@ buildType() {
|
| checkType(api.Type o) {
|
| buildCounterType++;
|
| if (buildCounterType < 3) {
|
| - checkUnnamed1819(o.fields);
|
| + checkUnnamed1837(o.fields);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1820(o.oneofs);
|
| - checkUnnamed1821(o.options);
|
| + checkUnnamed1838(o.oneofs);
|
| + checkUnnamed1839(o.options);
|
| checkSourceContext(o.sourceContext);
|
| unittest.expect(o.syntax, unittest.equals('foo'));
|
| }
|
| buildCounterType--;
|
| }
|
|
|
| -buildUnnamed1822() {
|
| +buildUnnamed1840() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1822(core.List<core.String> o) {
|
| +checkUnnamed1840(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1823() {
|
| +buildUnnamed1841() {
|
| var o = new core.List<api.UsageRule>();
|
| o.add(buildUsageRule());
|
| o.add(buildUsageRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1823(core.List<api.UsageRule> o) {
|
| +checkUnnamed1841(core.List<api.UsageRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUsageRule(o[0]);
|
| checkUsageRule(o[1]);
|
| @@ -2328,8 +2366,8 @@ buildUsage() {
|
| buildCounterUsage++;
|
| if (buildCounterUsage < 3) {
|
| o.producerNotificationChannel = "foo";
|
| - o.requirements = buildUnnamed1822();
|
| - o.rules = buildUnnamed1823();
|
| + o.requirements = buildUnnamed1840();
|
| + o.rules = buildUnnamed1841();
|
| }
|
| buildCounterUsage--;
|
| return o;
|
| @@ -2339,8 +2377,8 @@ checkUsage(api.Usage o) {
|
| buildCounterUsage++;
|
| if (buildCounterUsage < 3) {
|
| unittest.expect(o.producerNotificationChannel, unittest.equals('foo'));
|
| - checkUnnamed1822(o.requirements);
|
| - checkUnnamed1823(o.rules);
|
| + checkUnnamed1840(o.requirements);
|
| + checkUnnamed1841(o.rules);
|
| }
|
| buildCounterUsage--;
|
| }
|
| @@ -2368,14 +2406,14 @@ checkUsageRule(api.UsageRule o) {
|
| buildCounterUsageRule--;
|
| }
|
|
|
| -buildUnnamed1824() {
|
| +buildUnnamed1842() {
|
| var o = new core.List<api.VisibilityRule>();
|
| o.add(buildVisibilityRule());
|
| o.add(buildVisibilityRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1824(core.List<api.VisibilityRule> o) {
|
| +checkUnnamed1842(core.List<api.VisibilityRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVisibilityRule(o[0]);
|
| checkVisibilityRule(o[1]);
|
| @@ -2386,7 +2424,7 @@ buildVisibility() {
|
| var o = new api.Visibility();
|
| buildCounterVisibility++;
|
| if (buildCounterVisibility < 3) {
|
| - o.rules = buildUnnamed1824();
|
| + o.rules = buildUnnamed1842();
|
| }
|
| buildCounterVisibility--;
|
| return o;
|
| @@ -2395,7 +2433,7 @@ buildVisibility() {
|
| checkVisibility(api.Visibility o) {
|
| buildCounterVisibility++;
|
| if (buildCounterVisibility < 3) {
|
| - checkUnnamed1824(o.rules);
|
| + checkUnnamed1842(o.rules);
|
| }
|
| buildCounterVisibility--;
|
| }
|
| @@ -2477,6 +2515,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-AuthorizationRule", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAuthorizationRule();
|
| + var od = new api.AuthorizationRule.fromJson(o.toJson());
|
| + checkAuthorizationRule(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-Backend", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildBackend();
|
|
|