| 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 1519f47202dd1d77186bb4c789ec0332fbf1ef94..8a0f05a8ace3e8397c8f7c97ccfc03f7b0a82fa5 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);
|
| }
|
|
|
| -buildUnnamed1731() {
|
| +buildUnnamed1498() {
|
| var o = new core.List<api.Method>();
|
| o.add(buildMethod());
|
| o.add(buildMethod());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1731(core.List<api.Method> o) {
|
| +checkUnnamed1498(core.List<api.Method> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMethod(o[0]);
|
| checkMethod(o[1]);
|
| }
|
|
|
| -buildUnnamed1732() {
|
| +buildUnnamed1499() {
|
| var o = new core.List<api.Mixin>();
|
| o.add(buildMixin());
|
| o.add(buildMixin());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1732(core.List<api.Mixin> o) {
|
| +checkUnnamed1499(core.List<api.Mixin> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMixin(o[0]);
|
| checkMixin(o[1]);
|
| }
|
|
|
| -buildUnnamed1733() {
|
| +buildUnnamed1500() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1733(core.List<api.Option> o) {
|
| +checkUnnamed1500(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 = buildUnnamed1731();
|
| - o.mixins = buildUnnamed1732();
|
| + o.methods = buildUnnamed1498();
|
| + o.mixins = buildUnnamed1499();
|
| o.name = "foo";
|
| - o.options = buildUnnamed1733();
|
| + o.options = buildUnnamed1500();
|
| o.sourceContext = buildSourceContext();
|
| o.syntax = "foo";
|
| o.version = "foo";
|
| @@ -110,10 +110,10 @@ buildApi() {
|
| checkApi(api.Api o) {
|
| buildCounterApi++;
|
| if (buildCounterApi < 3) {
|
| - checkUnnamed1731(o.methods);
|
| - checkUnnamed1732(o.mixins);
|
| + checkUnnamed1498(o.methods);
|
| + checkUnnamed1499(o.mixins);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1733(o.options);
|
| + checkUnnamed1500(o.options);
|
| checkSourceContext(o.sourceContext);
|
| unittest.expect(o.syntax, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals('foo'));
|
| @@ -167,27 +167,27 @@ checkAuthRequirement(api.AuthRequirement o) {
|
| buildCounterAuthRequirement--;
|
| }
|
|
|
| -buildUnnamed1734() {
|
| +buildUnnamed1501() {
|
| var o = new core.List<api.AuthProvider>();
|
| o.add(buildAuthProvider());
|
| o.add(buildAuthProvider());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1734(core.List<api.AuthProvider> o) {
|
| +checkUnnamed1501(core.List<api.AuthProvider> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuthProvider(o[0]);
|
| checkAuthProvider(o[1]);
|
| }
|
|
|
| -buildUnnamed1735() {
|
| +buildUnnamed1502() {
|
| var o = new core.List<api.AuthenticationRule>();
|
| o.add(buildAuthenticationRule());
|
| o.add(buildAuthenticationRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1735(core.List<api.AuthenticationRule> o) {
|
| +checkUnnamed1502(core.List<api.AuthenticationRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuthenticationRule(o[0]);
|
| checkAuthenticationRule(o[1]);
|
| @@ -198,8 +198,8 @@ buildAuthentication() {
|
| var o = new api.Authentication();
|
| buildCounterAuthentication++;
|
| if (buildCounterAuthentication < 3) {
|
| - o.providers = buildUnnamed1734();
|
| - o.rules = buildUnnamed1735();
|
| + o.providers = buildUnnamed1501();
|
| + o.rules = buildUnnamed1502();
|
| }
|
| buildCounterAuthentication--;
|
| return o;
|
| @@ -208,20 +208,20 @@ buildAuthentication() {
|
| checkAuthentication(api.Authentication o) {
|
| buildCounterAuthentication++;
|
| if (buildCounterAuthentication < 3) {
|
| - checkUnnamed1734(o.providers);
|
| - checkUnnamed1735(o.rules);
|
| + checkUnnamed1501(o.providers);
|
| + checkUnnamed1502(o.rules);
|
| }
|
| buildCounterAuthentication--;
|
| }
|
|
|
| -buildUnnamed1736() {
|
| +buildUnnamed1503() {
|
| var o = new core.List<api.AuthRequirement>();
|
| o.add(buildAuthRequirement());
|
| o.add(buildAuthRequirement());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1736(core.List<api.AuthRequirement> o) {
|
| +checkUnnamed1503(core.List<api.AuthRequirement> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuthRequirement(o[0]);
|
| checkAuthRequirement(o[1]);
|
| @@ -234,7 +234,7 @@ buildAuthenticationRule() {
|
| if (buildCounterAuthenticationRule < 3) {
|
| o.allowWithoutCredential = true;
|
| o.oauth = buildOAuthRequirements();
|
| - o.requirements = buildUnnamed1736();
|
| + o.requirements = buildUnnamed1503();
|
| o.selector = "foo";
|
| }
|
| buildCounterAuthenticationRule--;
|
| @@ -246,20 +246,39 @@ checkAuthenticationRule(api.AuthenticationRule o) {
|
| if (buildCounterAuthenticationRule < 3) {
|
| unittest.expect(o.allowWithoutCredential, unittest.isTrue);
|
| checkOAuthRequirements(o.oauth);
|
| - checkUnnamed1736(o.requirements);
|
| + checkUnnamed1503(o.requirements);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterAuthenticationRule--;
|
| }
|
|
|
| -buildUnnamed1737() {
|
| +core.int buildCounterAuthorizationConfig = 0;
|
| +buildAuthorizationConfig() {
|
| + var o = new api.AuthorizationConfig();
|
| + buildCounterAuthorizationConfig++;
|
| + if (buildCounterAuthorizationConfig < 3) {
|
| + o.provider = "foo";
|
| + }
|
| + buildCounterAuthorizationConfig--;
|
| + return o;
|
| +}
|
| +
|
| +checkAuthorizationConfig(api.AuthorizationConfig o) {
|
| + buildCounterAuthorizationConfig++;
|
| + if (buildCounterAuthorizationConfig < 3) {
|
| + unittest.expect(o.provider, unittest.equals('foo'));
|
| + }
|
| + buildCounterAuthorizationConfig--;
|
| +}
|
| +
|
| +buildUnnamed1504() {
|
| var o = new core.List<api.BackendRule>();
|
| o.add(buildBackendRule());
|
| o.add(buildBackendRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1737(core.List<api.BackendRule> o) {
|
| +checkUnnamed1504(core.List<api.BackendRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBackendRule(o[0]);
|
| checkBackendRule(o[1]);
|
| @@ -270,7 +289,7 @@ buildBackend() {
|
| var o = new api.Backend();
|
| buildCounterBackend++;
|
| if (buildCounterBackend < 3) {
|
| - o.rules = buildUnnamed1737();
|
| + o.rules = buildUnnamed1504();
|
| }
|
| buildCounterBackend--;
|
| return o;
|
| @@ -279,7 +298,7 @@ buildBackend() {
|
| checkBackend(api.Backend o) {
|
| buildCounterBackend++;
|
| if (buildCounterBackend < 3) {
|
| - checkUnnamed1737(o.rules);
|
| + checkUnnamed1504(o.rules);
|
| }
|
| buildCounterBackend--;
|
| }
|
| @@ -307,14 +326,14 @@ checkBackendRule(api.BackendRule o) {
|
| buildCounterBackendRule--;
|
| }
|
|
|
| -buildUnnamed1738() {
|
| +buildUnnamed1505() {
|
| var o = new core.List<api.ContextRule>();
|
| o.add(buildContextRule());
|
| o.add(buildContextRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1738(core.List<api.ContextRule> o) {
|
| +checkUnnamed1505(core.List<api.ContextRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContextRule(o[0]);
|
| checkContextRule(o[1]);
|
| @@ -325,7 +344,7 @@ buildContext() {
|
| var o = new api.Context();
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - o.rules = buildUnnamed1738();
|
| + o.rules = buildUnnamed1505();
|
| }
|
| buildCounterContext--;
|
| return o;
|
| @@ -334,32 +353,32 @@ buildContext() {
|
| checkContext(api.Context o) {
|
| buildCounterContext++;
|
| if (buildCounterContext < 3) {
|
| - checkUnnamed1738(o.rules);
|
| + checkUnnamed1505(o.rules);
|
| }
|
| buildCounterContext--;
|
| }
|
|
|
| -buildUnnamed1739() {
|
| +buildUnnamed1506() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1739(core.List<core.String> o) {
|
| +checkUnnamed1506(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1740() {
|
| +buildUnnamed1507() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1740(core.List<core.String> o) {
|
| +checkUnnamed1507(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -370,8 +389,8 @@ buildContextRule() {
|
| var o = new api.ContextRule();
|
| buildCounterContextRule++;
|
| if (buildCounterContextRule < 3) {
|
| - o.provided = buildUnnamed1739();
|
| - o.requested = buildUnnamed1740();
|
| + o.provided = buildUnnamed1506();
|
| + o.requested = buildUnnamed1507();
|
| o.selector = "foo";
|
| }
|
| buildCounterContextRule--;
|
| @@ -381,8 +400,8 @@ buildContextRule() {
|
| checkContextRule(api.ContextRule o) {
|
| buildCounterContextRule++;
|
| if (buildCounterContextRule < 3) {
|
| - checkUnnamed1739(o.provided);
|
| - checkUnnamed1740(o.requested);
|
| + checkUnnamed1506(o.provided);
|
| + checkUnnamed1507(o.requested);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterContextRule--;
|
| @@ -407,27 +426,27 @@ checkControl(api.Control o) {
|
| buildCounterControl--;
|
| }
|
|
|
| -buildUnnamed1741() {
|
| +buildUnnamed1508() {
|
| var o = new core.List<api.CustomErrorRule>();
|
| o.add(buildCustomErrorRule());
|
| o.add(buildCustomErrorRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1741(core.List<api.CustomErrorRule> o) {
|
| +checkUnnamed1508(core.List<api.CustomErrorRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCustomErrorRule(o[0]);
|
| checkCustomErrorRule(o[1]);
|
| }
|
|
|
| -buildUnnamed1742() {
|
| +buildUnnamed1509() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1742(core.List<core.String> o) {
|
| +checkUnnamed1509(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -438,8 +457,8 @@ buildCustomError() {
|
| var o = new api.CustomError();
|
| buildCounterCustomError++;
|
| if (buildCounterCustomError < 3) {
|
| - o.rules = buildUnnamed1741();
|
| - o.types = buildUnnamed1742();
|
| + o.rules = buildUnnamed1508();
|
| + o.types = buildUnnamed1509();
|
| }
|
| buildCounterCustomError--;
|
| return o;
|
| @@ -448,8 +467,8 @@ buildCustomError() {
|
| checkCustomError(api.CustomError o) {
|
| buildCounterCustomError++;
|
| if (buildCounterCustomError < 3) {
|
| - checkUnnamed1741(o.rules);
|
| - checkUnnamed1742(o.types);
|
| + checkUnnamed1508(o.rules);
|
| + checkUnnamed1509(o.types);
|
| }
|
| buildCounterCustomError--;
|
| }
|
| @@ -513,27 +532,27 @@ checkDisableServiceRequest(api.DisableServiceRequest o) {
|
| buildCounterDisableServiceRequest--;
|
| }
|
|
|
| -buildUnnamed1743() {
|
| +buildUnnamed1510() {
|
| var o = new core.List<api.Page>();
|
| o.add(buildPage());
|
| o.add(buildPage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1743(core.List<api.Page> o) {
|
| +checkUnnamed1510(core.List<api.Page> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPage(o[0]);
|
| checkPage(o[1]);
|
| }
|
|
|
| -buildUnnamed1744() {
|
| +buildUnnamed1511() {
|
| var o = new core.List<api.DocumentationRule>();
|
| o.add(buildDocumentationRule());
|
| o.add(buildDocumentationRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1744(core.List<api.DocumentationRule> o) {
|
| +checkUnnamed1511(core.List<api.DocumentationRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDocumentationRule(o[0]);
|
| checkDocumentationRule(o[1]);
|
| @@ -546,8 +565,8 @@ buildDocumentation() {
|
| if (buildCounterDocumentation < 3) {
|
| o.documentationRootUrl = "foo";
|
| o.overview = "foo";
|
| - o.pages = buildUnnamed1743();
|
| - o.rules = buildUnnamed1744();
|
| + o.pages = buildUnnamed1510();
|
| + o.rules = buildUnnamed1511();
|
| o.summary = "foo";
|
| }
|
| buildCounterDocumentation--;
|
| @@ -559,8 +578,8 @@ checkDocumentation(api.Documentation o) {
|
| if (buildCounterDocumentation < 3) {
|
| unittest.expect(o.documentationRootUrl, unittest.equals('foo'));
|
| unittest.expect(o.overview, unittest.equals('foo'));
|
| - checkUnnamed1743(o.pages);
|
| - checkUnnamed1744(o.rules);
|
| + checkUnnamed1510(o.pages);
|
| + checkUnnamed1511(o.rules);
|
| unittest.expect(o.summary, unittest.equals('foo'));
|
| }
|
| buildCounterDocumentation--;
|
| @@ -606,59 +625,40 @@ checkEnableServiceRequest(api.EnableServiceRequest o) {
|
| buildCounterEnableServiceRequest--;
|
| }
|
|
|
| -core.int buildCounterEnabledService = 0;
|
| -buildEnabledService() {
|
| - var o = new api.EnabledService();
|
| - buildCounterEnabledService++;
|
| - if (buildCounterEnabledService < 3) {
|
| - o.service = buildService();
|
| - }
|
| - buildCounterEnabledService--;
|
| - return o;
|
| -}
|
| -
|
| -checkEnabledService(api.EnabledService o) {
|
| - buildCounterEnabledService++;
|
| - if (buildCounterEnabledService < 3) {
|
| - checkService(o.service);
|
| - }
|
| - buildCounterEnabledService--;
|
| -}
|
| -
|
| -buildUnnamed1745() {
|
| +buildUnnamed1512() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1745(core.List<core.String> o) {
|
| +checkUnnamed1512(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1746() {
|
| +buildUnnamed1513() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1746(core.List<core.String> o) {
|
| +checkUnnamed1513(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1747() {
|
| +buildUnnamed1514() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1747(core.List<core.String> o) {
|
| +checkUnnamed1514(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -669,10 +669,10 @@ buildEndpoint() {
|
| var o = new api.Endpoint();
|
| buildCounterEndpoint++;
|
| if (buildCounterEndpoint < 3) {
|
| - o.aliases = buildUnnamed1745();
|
| + o.aliases = buildUnnamed1512();
|
| o.allowCors = true;
|
| - o.apis = buildUnnamed1746();
|
| - o.features = buildUnnamed1747();
|
| + o.apis = buildUnnamed1513();
|
| + o.features = buildUnnamed1514();
|
| o.name = "foo";
|
| }
|
| buildCounterEndpoint--;
|
| @@ -682,36 +682,36 @@ buildEndpoint() {
|
| checkEndpoint(api.Endpoint o) {
|
| buildCounterEndpoint++;
|
| if (buildCounterEndpoint < 3) {
|
| - checkUnnamed1745(o.aliases);
|
| + checkUnnamed1512(o.aliases);
|
| unittest.expect(o.allowCors, unittest.isTrue);
|
| - checkUnnamed1746(o.apis);
|
| - checkUnnamed1747(o.features);
|
| + checkUnnamed1513(o.apis);
|
| + checkUnnamed1514(o.features);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterEndpoint--;
|
| }
|
|
|
| -buildUnnamed1748() {
|
| +buildUnnamed1515() {
|
| var o = new core.List<api.EnumValue>();
|
| o.add(buildEnumValue());
|
| o.add(buildEnumValue());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1748(core.List<api.EnumValue> o) {
|
| +checkUnnamed1515(core.List<api.EnumValue> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEnumValue(o[0]);
|
| checkEnumValue(o[1]);
|
| }
|
|
|
| -buildUnnamed1749() {
|
| +buildUnnamed1516() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1749(core.List<api.Option> o) {
|
| +checkUnnamed1516(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -722,9 +722,9 @@ buildEnum() {
|
| var o = new api.Enum();
|
| buildCounterEnum++;
|
| if (buildCounterEnum < 3) {
|
| - o.enumvalue = buildUnnamed1748();
|
| + o.enumvalue = buildUnnamed1515();
|
| o.name = "foo";
|
| - o.options = buildUnnamed1749();
|
| + o.options = buildUnnamed1516();
|
| o.sourceContext = buildSourceContext();
|
| o.syntax = "foo";
|
| }
|
| @@ -735,23 +735,23 @@ buildEnum() {
|
| checkEnum(api.Enum o) {
|
| buildCounterEnum++;
|
| if (buildCounterEnum < 3) {
|
| - checkUnnamed1748(o.enumvalue);
|
| + checkUnnamed1515(o.enumvalue);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1749(o.options);
|
| + checkUnnamed1516(o.options);
|
| checkSourceContext(o.sourceContext);
|
| unittest.expect(o.syntax, unittest.equals('foo'));
|
| }
|
| buildCounterEnum--;
|
| }
|
|
|
| -buildUnnamed1750() {
|
| +buildUnnamed1517() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1750(core.List<api.Option> o) {
|
| +checkUnnamed1517(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -764,7 +764,7 @@ buildEnumValue() {
|
| if (buildCounterEnumValue < 3) {
|
| o.name = "foo";
|
| o.number = 42;
|
| - o.options = buildUnnamed1750();
|
| + o.options = buildUnnamed1517();
|
| }
|
| buildCounterEnumValue--;
|
| return o;
|
| @@ -775,19 +775,38 @@ checkEnumValue(api.EnumValue o) {
|
| if (buildCounterEnumValue < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.number, unittest.equals(42));
|
| - checkUnnamed1750(o.options);
|
| + checkUnnamed1517(o.options);
|
| }
|
| buildCounterEnumValue--;
|
| }
|
|
|
| -buildUnnamed1751() {
|
| +core.int buildCounterExperimental = 0;
|
| +buildExperimental() {
|
| + var o = new api.Experimental();
|
| + buildCounterExperimental++;
|
| + if (buildCounterExperimental < 3) {
|
| + o.authorization = buildAuthorizationConfig();
|
| + }
|
| + buildCounterExperimental--;
|
| + return o;
|
| +}
|
| +
|
| +checkExperimental(api.Experimental o) {
|
| + buildCounterExperimental++;
|
| + if (buildCounterExperimental < 3) {
|
| + checkAuthorizationConfig(o.authorization);
|
| + }
|
| + buildCounterExperimental--;
|
| +}
|
| +
|
| +buildUnnamed1518() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1751(core.List<api.Option> o) {
|
| +checkUnnamed1518(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -805,7 +824,7 @@ buildField() {
|
| o.name = "foo";
|
| o.number = 42;
|
| o.oneofIndex = 42;
|
| - o.options = buildUnnamed1751();
|
| + o.options = buildUnnamed1518();
|
| o.packed = true;
|
| o.typeUrl = "foo";
|
| }
|
| @@ -823,21 +842,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));
|
| - checkUnnamed1751(o.options);
|
| + checkUnnamed1518(o.options);
|
| unittest.expect(o.packed, unittest.isTrue);
|
| unittest.expect(o.typeUrl, unittest.equals('foo'));
|
| }
|
| buildCounterField--;
|
| }
|
|
|
| -buildUnnamed1752() {
|
| +buildUnnamed1519() {
|
| var o = new core.List<api.HttpRule>();
|
| o.add(buildHttpRule());
|
| o.add(buildHttpRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1752(core.List<api.HttpRule> o) {
|
| +checkUnnamed1519(core.List<api.HttpRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHttpRule(o[0]);
|
| checkHttpRule(o[1]);
|
| @@ -848,7 +867,7 @@ buildHttp() {
|
| var o = new api.Http();
|
| buildCounterHttp++;
|
| if (buildCounterHttp < 3) {
|
| - o.rules = buildUnnamed1752();
|
| + o.rules = buildUnnamed1519();
|
| }
|
| buildCounterHttp--;
|
| return o;
|
| @@ -857,19 +876,19 @@ buildHttp() {
|
| checkHttp(api.Http o) {
|
| buildCounterHttp++;
|
| if (buildCounterHttp < 3) {
|
| - checkUnnamed1752(o.rules);
|
| + checkUnnamed1519(o.rules);
|
| }
|
| buildCounterHttp--;
|
| }
|
|
|
| -buildUnnamed1753() {
|
| +buildUnnamed1520() {
|
| var o = new core.List<api.HttpRule>();
|
| o.add(buildHttpRule());
|
| o.add(buildHttpRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1753(core.List<api.HttpRule> o) {
|
| +checkUnnamed1520(core.List<api.HttpRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHttpRule(o[0]);
|
| checkHttpRule(o[1]);
|
| @@ -880,7 +899,7 @@ buildHttpRule() {
|
| var o = new api.HttpRule();
|
| buildCounterHttpRule++;
|
| if (buildCounterHttpRule < 3) {
|
| - o.additionalBindings = buildUnnamed1753();
|
| + o.additionalBindings = buildUnnamed1520();
|
| o.body = "foo";
|
| o.custom = buildCustomHttpPattern();
|
| o.delete = "foo";
|
| @@ -900,7 +919,7 @@ buildHttpRule() {
|
| checkHttpRule(api.HttpRule o) {
|
| buildCounterHttpRule++;
|
| if (buildCounterHttpRule < 3) {
|
| - checkUnnamed1753(o.additionalBindings);
|
| + checkUnnamed1520(o.additionalBindings);
|
| unittest.expect(o.body, unittest.equals('foo'));
|
| checkCustomHttpPattern(o.custom);
|
| unittest.expect(o.delete, unittest.equals('foo'));
|
| @@ -939,17 +958,17 @@ checkLabelDescriptor(api.LabelDescriptor o) {
|
| buildCounterLabelDescriptor--;
|
| }
|
|
|
| -buildUnnamed1754() {
|
| - var o = new core.List<api.EnabledService>();
|
| - o.add(buildEnabledService());
|
| - o.add(buildEnabledService());
|
| +buildUnnamed1521() {
|
| + var o = new core.List<api.PublishedService>();
|
| + o.add(buildPublishedService());
|
| + o.add(buildPublishedService());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1754(core.List<api.EnabledService> o) {
|
| +checkUnnamed1521(core.List<api.PublishedService> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkEnabledService(o[0]);
|
| - checkEnabledService(o[1]);
|
| + checkPublishedService(o[0]);
|
| + checkPublishedService(o[1]);
|
| }
|
|
|
| core.int buildCounterListEnabledServicesResponse = 0;
|
| @@ -958,7 +977,7 @@ buildListEnabledServicesResponse() {
|
| buildCounterListEnabledServicesResponse++;
|
| if (buildCounterListEnabledServicesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.services = buildUnnamed1754();
|
| + o.services = buildUnnamed1521();
|
| }
|
| buildCounterListEnabledServicesResponse--;
|
| return o;
|
| @@ -968,19 +987,19 @@ checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) {
|
| buildCounterListEnabledServicesResponse++;
|
| if (buildCounterListEnabledServicesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1754(o.services);
|
| + checkUnnamed1521(o.services);
|
| }
|
| buildCounterListEnabledServicesResponse--;
|
| }
|
|
|
| -buildUnnamed1755() {
|
| +buildUnnamed1522() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1755(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed1522(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -993,7 +1012,7 @@ buildLogDescriptor() {
|
| if (buildCounterLogDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed1755();
|
| + o.labels = buildUnnamed1522();
|
| o.name = "foo";
|
| }
|
| buildCounterLogDescriptor--;
|
| @@ -1005,33 +1024,33 @@ checkLogDescriptor(api.LogDescriptor o) {
|
| if (buildCounterLogDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed1755(o.labels);
|
| + checkUnnamed1522(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLogDescriptor--;
|
| }
|
|
|
| -buildUnnamed1756() {
|
| +buildUnnamed1523() {
|
| var o = new core.List<api.LoggingDestination>();
|
| o.add(buildLoggingDestination());
|
| o.add(buildLoggingDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1756(core.List<api.LoggingDestination> o) {
|
| +checkUnnamed1523(core.List<api.LoggingDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLoggingDestination(o[0]);
|
| checkLoggingDestination(o[1]);
|
| }
|
|
|
| -buildUnnamed1757() {
|
| +buildUnnamed1524() {
|
| var o = new core.List<api.LoggingDestination>();
|
| o.add(buildLoggingDestination());
|
| o.add(buildLoggingDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1757(core.List<api.LoggingDestination> o) {
|
| +checkUnnamed1524(core.List<api.LoggingDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLoggingDestination(o[0]);
|
| checkLoggingDestination(o[1]);
|
| @@ -1042,8 +1061,8 @@ buildLogging() {
|
| var o = new api.Logging();
|
| buildCounterLogging++;
|
| if (buildCounterLogging < 3) {
|
| - o.consumerDestinations = buildUnnamed1756();
|
| - o.producerDestinations = buildUnnamed1757();
|
| + o.consumerDestinations = buildUnnamed1523();
|
| + o.producerDestinations = buildUnnamed1524();
|
| }
|
| buildCounterLogging--;
|
| return o;
|
| @@ -1052,20 +1071,20 @@ buildLogging() {
|
| checkLogging(api.Logging o) {
|
| buildCounterLogging++;
|
| if (buildCounterLogging < 3) {
|
| - checkUnnamed1756(o.consumerDestinations);
|
| - checkUnnamed1757(o.producerDestinations);
|
| + checkUnnamed1523(o.consumerDestinations);
|
| + checkUnnamed1524(o.producerDestinations);
|
| }
|
| buildCounterLogging--;
|
| }
|
|
|
| -buildUnnamed1758() {
|
| +buildUnnamed1525() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1758(core.List<core.String> o) {
|
| +checkUnnamed1525(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1076,7 +1095,7 @@ buildLoggingDestination() {
|
| var o = new api.LoggingDestination();
|
| buildCounterLoggingDestination++;
|
| if (buildCounterLoggingDestination < 3) {
|
| - o.logs = buildUnnamed1758();
|
| + o.logs = buildUnnamed1525();
|
| o.monitoredResource = "foo";
|
| }
|
| buildCounterLoggingDestination--;
|
| @@ -1086,7 +1105,7 @@ buildLoggingDestination() {
|
| checkLoggingDestination(api.LoggingDestination o) {
|
| buildCounterLoggingDestination++;
|
| if (buildCounterLoggingDestination < 3) {
|
| - checkUnnamed1758(o.logs);
|
| + checkUnnamed1525(o.logs);
|
| unittest.expect(o.monitoredResource, unittest.equals('foo'));
|
| }
|
| buildCounterLoggingDestination--;
|
| @@ -1097,6 +1116,7 @@ buildMediaDownload() {
|
| var o = new api.MediaDownload();
|
| buildCounterMediaDownload++;
|
| if (buildCounterMediaDownload < 3) {
|
| + o.downloadService = "foo";
|
| o.enabled = true;
|
| }
|
| buildCounterMediaDownload--;
|
| @@ -1106,6 +1126,7 @@ buildMediaDownload() {
|
| checkMediaDownload(api.MediaDownload o) {
|
| buildCounterMediaDownload++;
|
| if (buildCounterMediaDownload < 3) {
|
| + unittest.expect(o.downloadService, unittest.equals('foo'));
|
| unittest.expect(o.enabled, unittest.isTrue);
|
| }
|
| buildCounterMediaDownload--;
|
| @@ -1117,6 +1138,7 @@ buildMediaUpload() {
|
| buildCounterMediaUpload++;
|
| if (buildCounterMediaUpload < 3) {
|
| o.enabled = true;
|
| + o.uploadService = "foo";
|
| }
|
| buildCounterMediaUpload--;
|
| return o;
|
| @@ -1126,18 +1148,19 @@ checkMediaUpload(api.MediaUpload o) {
|
| buildCounterMediaUpload++;
|
| if (buildCounterMediaUpload < 3) {
|
| unittest.expect(o.enabled, unittest.isTrue);
|
| + unittest.expect(o.uploadService, unittest.equals('foo'));
|
| }
|
| buildCounterMediaUpload--;
|
| }
|
|
|
| -buildUnnamed1759() {
|
| +buildUnnamed1526() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1759(core.List<api.Option> o) {
|
| +checkUnnamed1526(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -1149,7 +1172,7 @@ buildMethod() {
|
| buildCounterMethod++;
|
| if (buildCounterMethod < 3) {
|
| o.name = "foo";
|
| - o.options = buildUnnamed1759();
|
| + o.options = buildUnnamed1526();
|
| o.requestStreaming = true;
|
| o.requestTypeUrl = "foo";
|
| o.responseStreaming = true;
|
| @@ -1164,7 +1187,7 @@ checkMethod(api.Method o) {
|
| buildCounterMethod++;
|
| if (buildCounterMethod < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1759(o.options);
|
| + checkUnnamed1526(o.options);
|
| unittest.expect(o.requestStreaming, unittest.isTrue);
|
| unittest.expect(o.requestTypeUrl, unittest.equals('foo'));
|
| unittest.expect(o.responseStreaming, unittest.isTrue);
|
| @@ -1174,14 +1197,14 @@ checkMethod(api.Method o) {
|
| buildCounterMethod--;
|
| }
|
|
|
| -buildUnnamed1760() {
|
| +buildUnnamed1527() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1760(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed1527(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -1194,7 +1217,7 @@ buildMetricDescriptor() {
|
| if (buildCounterMetricDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed1760();
|
| + o.labels = buildUnnamed1527();
|
| o.metricKind = "foo";
|
| o.name = "foo";
|
| o.type = "foo";
|
| @@ -1210,7 +1233,7 @@ checkMetricDescriptor(api.MetricDescriptor o) {
|
| if (buildCounterMetricDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed1760(o.labels);
|
| + checkUnnamed1527(o.labels);
|
| unittest.expect(o.metricKind, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| @@ -1241,14 +1264,14 @@ checkMixin(api.Mixin o) {
|
| buildCounterMixin--;
|
| }
|
|
|
| -buildUnnamed1761() {
|
| +buildUnnamed1528() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1761(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed1528(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -1261,7 +1284,7 @@ buildMonitoredResourceDescriptor() {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed1761();
|
| + o.labels = buildUnnamed1528();
|
| o.name = "foo";
|
| o.type = "foo";
|
| }
|
| @@ -1274,34 +1297,34 @@ checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed1761(o.labels);
|
| + checkUnnamed1528(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoredResourceDescriptor--;
|
| }
|
|
|
| -buildUnnamed1762() {
|
| +buildUnnamed1529() {
|
| var o = new core.List<api.MonitoringDestination>();
|
| o.add(buildMonitoringDestination());
|
| o.add(buildMonitoringDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1762(core.List<api.MonitoringDestination> o) {
|
| +checkUnnamed1529(core.List<api.MonitoringDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoringDestination(o[0]);
|
| checkMonitoringDestination(o[1]);
|
| }
|
|
|
| -buildUnnamed1763() {
|
| +buildUnnamed1530() {
|
| var o = new core.List<api.MonitoringDestination>();
|
| o.add(buildMonitoringDestination());
|
| o.add(buildMonitoringDestination());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1763(core.List<api.MonitoringDestination> o) {
|
| +checkUnnamed1530(core.List<api.MonitoringDestination> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoringDestination(o[0]);
|
| checkMonitoringDestination(o[1]);
|
| @@ -1312,8 +1335,8 @@ buildMonitoring() {
|
| var o = new api.Monitoring();
|
| buildCounterMonitoring++;
|
| if (buildCounterMonitoring < 3) {
|
| - o.consumerDestinations = buildUnnamed1762();
|
| - o.producerDestinations = buildUnnamed1763();
|
| + o.consumerDestinations = buildUnnamed1529();
|
| + o.producerDestinations = buildUnnamed1530();
|
| }
|
| buildCounterMonitoring--;
|
| return o;
|
| @@ -1322,20 +1345,20 @@ buildMonitoring() {
|
| checkMonitoring(api.Monitoring o) {
|
| buildCounterMonitoring++;
|
| if (buildCounterMonitoring < 3) {
|
| - checkUnnamed1762(o.consumerDestinations);
|
| - checkUnnamed1763(o.producerDestinations);
|
| + checkUnnamed1529(o.consumerDestinations);
|
| + checkUnnamed1530(o.producerDestinations);
|
| }
|
| buildCounterMonitoring--;
|
| }
|
|
|
| -buildUnnamed1764() {
|
| +buildUnnamed1531() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1764(core.List<core.String> o) {
|
| +checkUnnamed1531(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1346,7 +1369,7 @@ buildMonitoringDestination() {
|
| var o = new api.MonitoringDestination();
|
| buildCounterMonitoringDestination++;
|
| if (buildCounterMonitoringDestination < 3) {
|
| - o.metrics = buildUnnamed1764();
|
| + o.metrics = buildUnnamed1531();
|
| o.monitoredResource = "foo";
|
| }
|
| buildCounterMonitoringDestination--;
|
| @@ -1356,7 +1379,7 @@ buildMonitoringDestination() {
|
| checkMonitoringDestination(api.MonitoringDestination o) {
|
| buildCounterMonitoringDestination++;
|
| if (buildCounterMonitoringDestination < 3) {
|
| - checkUnnamed1764(o.metrics);
|
| + checkUnnamed1531(o.metrics);
|
| unittest.expect(o.monitoredResource, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoringDestination--;
|
| @@ -1381,27 +1404,27 @@ checkOAuthRequirements(api.OAuthRequirements o) {
|
| buildCounterOAuthRequirements--;
|
| }
|
|
|
| -buildUnnamed1765() {
|
| +buildUnnamed1532() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1765(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1532(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'));
|
| }
|
|
|
| -buildUnnamed1766() {
|
| +buildUnnamed1533() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1766(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1533(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'));
|
| @@ -1414,9 +1437,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed1765();
|
| + o.metadata = buildUnnamed1532();
|
| o.name = "foo";
|
| - o.response = buildUnnamed1766();
|
| + o.response = buildUnnamed1533();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -1427,21 +1450,21 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed1765(o.metadata);
|
| + checkUnnamed1532(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1766(o.response);
|
| + checkUnnamed1533(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
|
|
| -buildUnnamed1767() {
|
| +buildUnnamed1534() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1767(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1534(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'));
|
| @@ -1453,7 +1476,7 @@ buildOption() {
|
| buildCounterOption++;
|
| if (buildCounterOption < 3) {
|
| o.name = "foo";
|
| - o.value = buildUnnamed1767();
|
| + o.value = buildUnnamed1534();
|
| }
|
| buildCounterOption--;
|
| return o;
|
| @@ -1463,19 +1486,19 @@ checkOption(api.Option o) {
|
| buildCounterOption++;
|
| if (buildCounterOption < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1767(o.value);
|
| + checkUnnamed1534(o.value);
|
| }
|
| buildCounterOption--;
|
| }
|
|
|
| -buildUnnamed1768() {
|
| +buildUnnamed1535() {
|
| var o = new core.List<api.Page>();
|
| o.add(buildPage());
|
| o.add(buildPage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1768(core.List<api.Page> o) {
|
| +checkUnnamed1535(core.List<api.Page> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPage(o[0]);
|
| checkPage(o[1]);
|
| @@ -1488,7 +1511,7 @@ buildPage() {
|
| if (buildCounterPage < 3) {
|
| o.content = "foo";
|
| o.name = "foo";
|
| - o.subpages = buildUnnamed1768();
|
| + o.subpages = buildUnnamed1535();
|
| }
|
| buildCounterPage--;
|
| return o;
|
| @@ -1499,110 +1522,165 @@ checkPage(api.Page o) {
|
| if (buildCounterPage < 3) {
|
| unittest.expect(o.content, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1768(o.subpages);
|
| + checkUnnamed1535(o.subpages);
|
| }
|
| buildCounterPage--;
|
| }
|
|
|
| -buildUnnamed1769() {
|
| +core.int buildCounterPublishedService = 0;
|
| +buildPublishedService() {
|
| + var o = new api.PublishedService();
|
| + buildCounterPublishedService++;
|
| + if (buildCounterPublishedService < 3) {
|
| + o.name = "foo";
|
| + o.service = buildService();
|
| + }
|
| + buildCounterPublishedService--;
|
| + return o;
|
| +}
|
| +
|
| +checkPublishedService(api.PublishedService o) {
|
| + buildCounterPublishedService++;
|
| + if (buildCounterPublishedService < 3) {
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + checkService(o.service);
|
| + }
|
| + buildCounterPublishedService--;
|
| +}
|
| +
|
| +buildUnnamed1536() {
|
| + var o = new core.List<api.PublishedService>();
|
| + o.add(buildPublishedService());
|
| + o.add(buildPublishedService());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed1536(core.List<api.PublishedService> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkPublishedService(o[0]);
|
| + checkPublishedService(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterSearchServicesResponse = 0;
|
| +buildSearchServicesResponse() {
|
| + var o = new api.SearchServicesResponse();
|
| + buildCounterSearchServicesResponse++;
|
| + if (buildCounterSearchServicesResponse < 3) {
|
| + o.nextPageToken = "foo";
|
| + o.services = buildUnnamed1536();
|
| + }
|
| + buildCounterSearchServicesResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkSearchServicesResponse(api.SearchServicesResponse o) {
|
| + buildCounterSearchServicesResponse++;
|
| + if (buildCounterSearchServicesResponse < 3) {
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + checkUnnamed1536(o.services);
|
| + }
|
| + buildCounterSearchServicesResponse--;
|
| +}
|
| +
|
| +buildUnnamed1537() {
|
| var o = new core.List<api.Api>();
|
| o.add(buildApi());
|
| o.add(buildApi());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1769(core.List<api.Api> o) {
|
| +checkUnnamed1537(core.List<api.Api> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkApi(o[0]);
|
| checkApi(o[1]);
|
| }
|
|
|
| -buildUnnamed1770() {
|
| +buildUnnamed1538() {
|
| var o = new core.List<api.Endpoint>();
|
| o.add(buildEndpoint());
|
| o.add(buildEndpoint());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1770(core.List<api.Endpoint> o) {
|
| +checkUnnamed1538(core.List<api.Endpoint> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEndpoint(o[0]);
|
| checkEndpoint(o[1]);
|
| }
|
|
|
| -buildUnnamed1771() {
|
| +buildUnnamed1539() {
|
| var o = new core.List<api.Enum>();
|
| o.add(buildEnum());
|
| o.add(buildEnum());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1771(core.List<api.Enum> o) {
|
| +checkUnnamed1539(core.List<api.Enum> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEnum(o[0]);
|
| checkEnum(o[1]);
|
| }
|
|
|
| -buildUnnamed1772() {
|
| +buildUnnamed1540() {
|
| var o = new core.List<api.LogDescriptor>();
|
| o.add(buildLogDescriptor());
|
| o.add(buildLogDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1772(core.List<api.LogDescriptor> o) {
|
| +checkUnnamed1540(core.List<api.LogDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogDescriptor(o[0]);
|
| checkLogDescriptor(o[1]);
|
| }
|
|
|
| -buildUnnamed1773() {
|
| +buildUnnamed1541() {
|
| var o = new core.List<api.MetricDescriptor>();
|
| o.add(buildMetricDescriptor());
|
| o.add(buildMetricDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1773(core.List<api.MetricDescriptor> o) {
|
| +checkUnnamed1541(core.List<api.MetricDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetricDescriptor(o[0]);
|
| checkMetricDescriptor(o[1]);
|
| }
|
|
|
| -buildUnnamed1774() {
|
| +buildUnnamed1542() {
|
| var o = new core.List<api.MonitoredResourceDescriptor>();
|
| o.add(buildMonitoredResourceDescriptor());
|
| o.add(buildMonitoredResourceDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1774(core.List<api.MonitoredResourceDescriptor> o) {
|
| +checkUnnamed1542(core.List<api.MonitoredResourceDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoredResourceDescriptor(o[0]);
|
| checkMonitoredResourceDescriptor(o[1]);
|
| }
|
|
|
| -buildUnnamed1775() {
|
| +buildUnnamed1543() {
|
| var o = new core.List<api.Type>();
|
| o.add(buildType());
|
| o.add(buildType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1775(core.List<api.Type> o) {
|
| +checkUnnamed1543(core.List<api.Type> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkType(o[0]);
|
| checkType(o[1]);
|
| }
|
|
|
| -buildUnnamed1776() {
|
| +buildUnnamed1544() {
|
| var o = new core.List<api.Type>();
|
| o.add(buildType());
|
| o.add(buildType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1776(core.List<api.Type> o) {
|
| +checkUnnamed1544(core.List<api.Type> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkType(o[0]);
|
| checkType(o[1]);
|
| @@ -1613,7 +1691,7 @@ buildService() {
|
| var o = new api.Service();
|
| buildCounterService++;
|
| if (buildCounterService < 3) {
|
| - o.apis = buildUnnamed1769();
|
| + o.apis = buildUnnamed1537();
|
| o.authentication = buildAuthentication();
|
| o.backend = buildBackend();
|
| o.configVersion = 42;
|
| @@ -1621,21 +1699,22 @@ buildService() {
|
| o.control = buildControl();
|
| o.customError = buildCustomError();
|
| o.documentation = buildDocumentation();
|
| - o.endpoints = buildUnnamed1770();
|
| - o.enums = buildUnnamed1771();
|
| + o.endpoints = buildUnnamed1538();
|
| + o.enums = buildUnnamed1539();
|
| + o.experimental = buildExperimental();
|
| o.http = buildHttp();
|
| o.id = "foo";
|
| o.logging = buildLogging();
|
| - o.logs = buildUnnamed1772();
|
| - o.metrics = buildUnnamed1773();
|
| - o.monitoredResources = buildUnnamed1774();
|
| + o.logs = buildUnnamed1540();
|
| + o.metrics = buildUnnamed1541();
|
| + o.monitoredResources = buildUnnamed1542();
|
| o.monitoring = buildMonitoring();
|
| o.name = "foo";
|
| o.producerProjectId = "foo";
|
| o.systemParameters = buildSystemParameters();
|
| - o.systemTypes = buildUnnamed1775();
|
| + o.systemTypes = buildUnnamed1543();
|
| o.title = "foo";
|
| - o.types = buildUnnamed1776();
|
| + o.types = buildUnnamed1544();
|
| o.usage = buildUsage();
|
| o.visibility = buildVisibility();
|
| }
|
| @@ -1646,7 +1725,7 @@ buildService() {
|
| checkService(api.Service o) {
|
| buildCounterService++;
|
| if (buildCounterService < 3) {
|
| - checkUnnamed1769(o.apis);
|
| + checkUnnamed1537(o.apis);
|
| checkAuthentication(o.authentication);
|
| checkBackend(o.backend);
|
| unittest.expect(o.configVersion, unittest.equals(42));
|
| @@ -1654,21 +1733,22 @@ checkService(api.Service o) {
|
| checkControl(o.control);
|
| checkCustomError(o.customError);
|
| checkDocumentation(o.documentation);
|
| - checkUnnamed1770(o.endpoints);
|
| - checkUnnamed1771(o.enums);
|
| + checkUnnamed1538(o.endpoints);
|
| + checkUnnamed1539(o.enums);
|
| + checkExperimental(o.experimental);
|
| checkHttp(o.http);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkLogging(o.logging);
|
| - checkUnnamed1772(o.logs);
|
| - checkUnnamed1773(o.metrics);
|
| - checkUnnamed1774(o.monitoredResources);
|
| + checkUnnamed1540(o.logs);
|
| + checkUnnamed1541(o.metrics);
|
| + checkUnnamed1542(o.monitoredResources);
|
| checkMonitoring(o.monitoring);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.producerProjectId, unittest.equals('foo'));
|
| checkSystemParameters(o.systemParameters);
|
| - checkUnnamed1775(o.systemTypes);
|
| + checkUnnamed1543(o.systemTypes);
|
| unittest.expect(o.title, unittest.equals('foo'));
|
| - checkUnnamed1776(o.types);
|
| + checkUnnamed1544(o.types);
|
| checkUsage(o.usage);
|
| checkVisibility(o.visibility);
|
| }
|
| @@ -1694,30 +1774,30 @@ checkSourceContext(api.SourceContext o) {
|
| buildCounterSourceContext--;
|
| }
|
|
|
| -buildUnnamed1777() {
|
| +buildUnnamed1545() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1777(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1545(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'));
|
| }
|
|
|
| -buildUnnamed1778() {
|
| +buildUnnamed1546() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed1777());
|
| - o.add(buildUnnamed1777());
|
| + o.add(buildUnnamed1545());
|
| + o.add(buildUnnamed1545());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1778(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1546(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1777(o[0]);
|
| - checkUnnamed1777(o[1]);
|
| + checkUnnamed1545(o[0]);
|
| + checkUnnamed1545(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1726,7 +1806,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed1778();
|
| + o.details = buildUnnamed1546();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1737,7 +1817,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed1778(o.details);
|
| + checkUnnamed1546(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| @@ -1766,14 +1846,14 @@ checkSystemParameter(api.SystemParameter o) {
|
| buildCounterSystemParameter--;
|
| }
|
|
|
| -buildUnnamed1779() {
|
| +buildUnnamed1547() {
|
| var o = new core.List<api.SystemParameter>();
|
| o.add(buildSystemParameter());
|
| o.add(buildSystemParameter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1779(core.List<api.SystemParameter> o) {
|
| +checkUnnamed1547(core.List<api.SystemParameter> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSystemParameter(o[0]);
|
| checkSystemParameter(o[1]);
|
| @@ -1784,7 +1864,7 @@ buildSystemParameterRule() {
|
| var o = new api.SystemParameterRule();
|
| buildCounterSystemParameterRule++;
|
| if (buildCounterSystemParameterRule < 3) {
|
| - o.parameters = buildUnnamed1779();
|
| + o.parameters = buildUnnamed1547();
|
| o.selector = "foo";
|
| }
|
| buildCounterSystemParameterRule--;
|
| @@ -1794,20 +1874,20 @@ buildSystemParameterRule() {
|
| checkSystemParameterRule(api.SystemParameterRule o) {
|
| buildCounterSystemParameterRule++;
|
| if (buildCounterSystemParameterRule < 3) {
|
| - checkUnnamed1779(o.parameters);
|
| + checkUnnamed1547(o.parameters);
|
| unittest.expect(o.selector, unittest.equals('foo'));
|
| }
|
| buildCounterSystemParameterRule--;
|
| }
|
|
|
| -buildUnnamed1780() {
|
| +buildUnnamed1548() {
|
| var o = new core.List<api.SystemParameterRule>();
|
| o.add(buildSystemParameterRule());
|
| o.add(buildSystemParameterRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1780(core.List<api.SystemParameterRule> o) {
|
| +checkUnnamed1548(core.List<api.SystemParameterRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSystemParameterRule(o[0]);
|
| checkSystemParameterRule(o[1]);
|
| @@ -1818,7 +1898,7 @@ buildSystemParameters() {
|
| var o = new api.SystemParameters();
|
| buildCounterSystemParameters++;
|
| if (buildCounterSystemParameters < 3) {
|
| - o.rules = buildUnnamed1780();
|
| + o.rules = buildUnnamed1548();
|
| }
|
| buildCounterSystemParameters--;
|
| return o;
|
| @@ -1827,45 +1907,45 @@ buildSystemParameters() {
|
| checkSystemParameters(api.SystemParameters o) {
|
| buildCounterSystemParameters++;
|
| if (buildCounterSystemParameters < 3) {
|
| - checkUnnamed1780(o.rules);
|
| + checkUnnamed1548(o.rules);
|
| }
|
| buildCounterSystemParameters--;
|
| }
|
|
|
| -buildUnnamed1781() {
|
| +buildUnnamed1549() {
|
| var o = new core.List<api.Field>();
|
| o.add(buildField());
|
| o.add(buildField());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1781(core.List<api.Field> o) {
|
| +checkUnnamed1549(core.List<api.Field> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkField(o[0]);
|
| checkField(o[1]);
|
| }
|
|
|
| -buildUnnamed1782() {
|
| +buildUnnamed1550() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1782(core.List<core.String> o) {
|
| +checkUnnamed1550(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1783() {
|
| +buildUnnamed1551() {
|
| var o = new core.List<api.Option>();
|
| o.add(buildOption());
|
| o.add(buildOption());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1783(core.List<api.Option> o) {
|
| +checkUnnamed1551(core.List<api.Option> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOption(o[0]);
|
| checkOption(o[1]);
|
| @@ -1876,10 +1956,10 @@ buildType() {
|
| var o = new api.Type();
|
| buildCounterType++;
|
| if (buildCounterType < 3) {
|
| - o.fields = buildUnnamed1781();
|
| + o.fields = buildUnnamed1549();
|
| o.name = "foo";
|
| - o.oneofs = buildUnnamed1782();
|
| - o.options = buildUnnamed1783();
|
| + o.oneofs = buildUnnamed1550();
|
| + o.options = buildUnnamed1551();
|
| o.sourceContext = buildSourceContext();
|
| o.syntax = "foo";
|
| }
|
| @@ -1890,37 +1970,37 @@ buildType() {
|
| checkType(api.Type o) {
|
| buildCounterType++;
|
| if (buildCounterType < 3) {
|
| - checkUnnamed1781(o.fields);
|
| + checkUnnamed1549(o.fields);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1782(o.oneofs);
|
| - checkUnnamed1783(o.options);
|
| + checkUnnamed1550(o.oneofs);
|
| + checkUnnamed1551(o.options);
|
| checkSourceContext(o.sourceContext);
|
| unittest.expect(o.syntax, unittest.equals('foo'));
|
| }
|
| buildCounterType--;
|
| }
|
|
|
| -buildUnnamed1784() {
|
| +buildUnnamed1552() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1784(core.List<core.String> o) {
|
| +checkUnnamed1552(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1785() {
|
| +buildUnnamed1553() {
|
| var o = new core.List<api.UsageRule>();
|
| o.add(buildUsageRule());
|
| o.add(buildUsageRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1785(core.List<api.UsageRule> o) {
|
| +checkUnnamed1553(core.List<api.UsageRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUsageRule(o[0]);
|
| checkUsageRule(o[1]);
|
| @@ -1932,8 +2012,8 @@ buildUsage() {
|
| buildCounterUsage++;
|
| if (buildCounterUsage < 3) {
|
| o.producerNotificationChannel = "foo";
|
| - o.requirements = buildUnnamed1784();
|
| - o.rules = buildUnnamed1785();
|
| + o.requirements = buildUnnamed1552();
|
| + o.rules = buildUnnamed1553();
|
| }
|
| buildCounterUsage--;
|
| return o;
|
| @@ -1943,8 +2023,8 @@ checkUsage(api.Usage o) {
|
| buildCounterUsage++;
|
| if (buildCounterUsage < 3) {
|
| unittest.expect(o.producerNotificationChannel, unittest.equals('foo'));
|
| - checkUnnamed1784(o.requirements);
|
| - checkUnnamed1785(o.rules);
|
| + checkUnnamed1552(o.requirements);
|
| + checkUnnamed1553(o.rules);
|
| }
|
| buildCounterUsage--;
|
| }
|
| @@ -1970,14 +2050,14 @@ checkUsageRule(api.UsageRule o) {
|
| buildCounterUsageRule--;
|
| }
|
|
|
| -buildUnnamed1786() {
|
| +buildUnnamed1554() {
|
| var o = new core.List<api.VisibilityRule>();
|
| o.add(buildVisibilityRule());
|
| o.add(buildVisibilityRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1786(core.List<api.VisibilityRule> o) {
|
| +checkUnnamed1554(core.List<api.VisibilityRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVisibilityRule(o[0]);
|
| checkVisibilityRule(o[1]);
|
| @@ -1988,7 +2068,7 @@ buildVisibility() {
|
| var o = new api.Visibility();
|
| buildCounterVisibility++;
|
| if (buildCounterVisibility < 3) {
|
| - o.rules = buildUnnamed1786();
|
| + o.rules = buildUnnamed1554();
|
| }
|
| buildCounterVisibility--;
|
| return o;
|
| @@ -1997,7 +2077,7 @@ buildVisibility() {
|
| checkVisibility(api.Visibility o) {
|
| buildCounterVisibility++;
|
| if (buildCounterVisibility < 3) {
|
| - checkUnnamed1786(o.rules);
|
| + checkUnnamed1554(o.rules);
|
| }
|
| buildCounterVisibility--;
|
| }
|
| @@ -2070,6 +2150,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-AuthorizationConfig", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAuthorizationConfig();
|
| + var od = new api.AuthorizationConfig.fromJson(o.toJson());
|
| + checkAuthorizationConfig(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-Backend", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildBackend();
|
| @@ -2178,15 +2267,6 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("obj-schema-EnabledService", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildEnabledService();
|
| - var od = new api.EnabledService.fromJson(o.toJson());
|
| - checkEnabledService(od);
|
| - });
|
| - });
|
| -
|
| -
|
| unittest.group("obj-schema-Endpoint", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildEndpoint();
|
| @@ -2214,6 +2294,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-Experimental", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildExperimental();
|
| + var od = new api.Experimental.fromJson(o.toJson());
|
| + checkExperimental(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-Field", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildField();
|
| @@ -2394,6 +2483,24 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-PublishedService", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildPublishedService();
|
| + var od = new api.PublishedService.fromJson(o.toJson());
|
| + checkPublishedService(od);
|
| + });
|
| + });
|
| +
|
| +
|
| + unittest.group("obj-schema-SearchServicesResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildSearchServicesResponse();
|
| + var od = new api.SearchServicesResponse.fromJson(o.toJson());
|
| + checkSearchServicesResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-Service", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildService();
|
| @@ -2597,8 +2704,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsServicesResourceApi res = new api.ServiceuserApi(mock).projects.services;
|
| var arg_parent = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2626,8 +2733,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -2636,7 +2743,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListEnabledServicesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListEnabledServicesResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListEnabledServicesResponse response) {
|
| checkListEnabledServicesResponse(response);
|
| })));
|
| });
|
| @@ -2644,5 +2751,56 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("resource-ServicesResourceApi", () {
|
| + unittest.test("method--search", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ServicesResourceApi res = new api.ServiceuserApi(mock).services;
|
| + var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/services:search"));
|
| + pathOffset += 18;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildSearchServicesResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.SearchServicesResponse response) {
|
| + checkSearchServicesResponse(response);
|
| + })));
|
| + });
|
| +
|
| + });
|
| +
|
| +
|
| }
|
|
|
|
|