| Index: generated/googleapis/test/appengine/v1_test.dart
|
| diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart
|
| index c3ed74a71087a3856b8186dcf2d607978326f299..683f208ec34c0eed7207d8485713e84fc7c472c9 100644
|
| --- a/generated/googleapis/test/appengine/v1_test.dart
|
| +++ b/generated/googleapis/test/appengine/v1_test.dart
|
| @@ -1,12 +1,10 @@
|
| library googleapis.appengine.v1.test;
|
|
|
| import "dart:core" as core;
|
| -import "dart:collection" as collection;
|
| import "dart:async" as async;
|
| import "dart:convert" as convert;
|
|
|
| import 'package:http/http.dart' as http;
|
| -import 'package:http/testing.dart' as http_testing;
|
| import 'package:test/test.dart' as unittest;
|
|
|
| import 'package:googleapis/appengine/v1.dart' as api;
|
| @@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient {
|
|
|
| async.Future<http.StreamedResponse> send(http.BaseRequest request) {
|
| if (_expectJson) {
|
| - return request.finalize()
|
| + return request
|
| + .finalize()
|
| .transform(convert.UTF8.decoder)
|
| .join('')
|
| .then((core.String jsonString) {
|
| @@ -45,8 +44,8 @@ class HttpServerMock extends http.BaseClient {
|
| }
|
| }
|
|
|
| -http.StreamedResponse stringResponse(
|
| - core.int status, core.Map<core.String, core.String> headers, core.String body) {
|
| +http.StreamedResponse stringResponse(core.int status,
|
| + core.Map<core.String, core.String> headers, core.String body) {
|
| var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
| @@ -97,14 +96,14 @@ checkApiEndpointHandler(api.ApiEndpointHandler o) {
|
| buildCounterApiEndpointHandler--;
|
| }
|
|
|
| -buildUnnamed2681() {
|
| +buildUnnamed2668() {
|
| var o = new core.List<api.UrlDispatchRule>();
|
| o.add(buildUrlDispatchRule());
|
| o.add(buildUrlDispatchRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2681(core.List<api.UrlDispatchRule> o) {
|
| +checkUnnamed2668(core.List<api.UrlDispatchRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlDispatchRule(o[0]);
|
| checkUrlDispatchRule(o[1]);
|
| @@ -120,7 +119,8 @@ buildApplication() {
|
| o.defaultBucket = "foo";
|
| o.defaultCookieExpiration = "foo";
|
| o.defaultHostname = "foo";
|
| - o.dispatchRules = buildUnnamed2681();
|
| + o.dispatchRules = buildUnnamed2668();
|
| + o.featureSettings = buildFeatureSettings();
|
| o.gcrDomain = "foo";
|
| o.iap = buildIdentityAwareProxy();
|
| o.id = "foo";
|
| @@ -140,7 +140,8 @@ checkApplication(api.Application o) {
|
| unittest.expect(o.defaultBucket, unittest.equals('foo'));
|
| unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
|
| unittest.expect(o.defaultHostname, unittest.equals('foo'));
|
| - checkUnnamed2681(o.dispatchRules);
|
| + checkUnnamed2668(o.dispatchRules);
|
| + checkFeatureSettings(o.featureSettings);
|
| unittest.expect(o.gcrDomain, unittest.equals('foo'));
|
| checkIdentityAwareProxy(o.iap);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| @@ -151,6 +152,86 @@ checkApplication(api.Application o) {
|
| buildCounterApplication--;
|
| }
|
|
|
| +buildUnnamed2669() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2669(core.List<core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| +}
|
| +
|
| +buildUnnamed2670() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2670(core.List<core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| +}
|
| +
|
| +core.int buildCounterAuthorizedCertificate = 0;
|
| +buildAuthorizedCertificate() {
|
| + var o = new api.AuthorizedCertificate();
|
| + buildCounterAuthorizedCertificate++;
|
| + if (buildCounterAuthorizedCertificate < 3) {
|
| + o.certificateRawData = buildCertificateRawData();
|
| + o.displayName = "foo";
|
| + o.domainMappingsCount = 42;
|
| + o.domainNames = buildUnnamed2669();
|
| + o.expireTime = "foo";
|
| + o.id = "foo";
|
| + o.name = "foo";
|
| + o.visibleDomainMappings = buildUnnamed2670();
|
| + }
|
| + buildCounterAuthorizedCertificate--;
|
| + return o;
|
| +}
|
| +
|
| +checkAuthorizedCertificate(api.AuthorizedCertificate o) {
|
| + buildCounterAuthorizedCertificate++;
|
| + if (buildCounterAuthorizedCertificate < 3) {
|
| + checkCertificateRawData(o.certificateRawData);
|
| + unittest.expect(o.displayName, unittest.equals('foo'));
|
| + unittest.expect(o.domainMappingsCount, unittest.equals(42));
|
| + checkUnnamed2669(o.domainNames);
|
| + unittest.expect(o.expireTime, unittest.equals('foo'));
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + checkUnnamed2670(o.visibleDomainMappings);
|
| + }
|
| + buildCounterAuthorizedCertificate--;
|
| +}
|
| +
|
| +core.int buildCounterAuthorizedDomain = 0;
|
| +buildAuthorizedDomain() {
|
| + var o = new api.AuthorizedDomain();
|
| + buildCounterAuthorizedDomain++;
|
| + if (buildCounterAuthorizedDomain < 3) {
|
| + o.id = "foo";
|
| + o.name = "foo";
|
| + }
|
| + buildCounterAuthorizedDomain--;
|
| + return o;
|
| +}
|
| +
|
| +checkAuthorizedDomain(api.AuthorizedDomain o) {
|
| + buildCounterAuthorizedDomain++;
|
| + if (buildCounterAuthorizedDomain < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + }
|
| + buildCounterAuthorizedDomain--;
|
| +}
|
| +
|
| core.int buildCounterAutomaticScaling = 0;
|
| buildAutomaticScaling() {
|
| var o = new api.AutomaticScaling();
|
| @@ -213,6 +294,27 @@ checkBasicScaling(api.BasicScaling o) {
|
| buildCounterBasicScaling--;
|
| }
|
|
|
| +core.int buildCounterCertificateRawData = 0;
|
| +buildCertificateRawData() {
|
| + var o = new api.CertificateRawData();
|
| + buildCounterCertificateRawData++;
|
| + if (buildCounterCertificateRawData < 3) {
|
| + o.privateKey = "foo";
|
| + o.publicCertificate = "foo";
|
| + }
|
| + buildCounterCertificateRawData--;
|
| + return o;
|
| +}
|
| +
|
| +checkCertificateRawData(api.CertificateRawData o) {
|
| + buildCounterCertificateRawData++;
|
| + if (buildCounterCertificateRawData < 3) {
|
| + unittest.expect(o.privateKey, unittest.equals('foo'));
|
| + unittest.expect(o.publicCertificate, unittest.equals('foo'));
|
| + }
|
| + buildCounterCertificateRawData--;
|
| +}
|
| +
|
| core.int buildCounterContainerInfo = 0;
|
| buildContainerInfo() {
|
| var o = new api.ContainerInfo();
|
| @@ -272,14 +374,14 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) {
|
| buildCounterDebugInstanceRequest--;
|
| }
|
|
|
| -buildUnnamed2682() {
|
| +buildUnnamed2671() {
|
| var o = new core.Map<core.String, api.FileInfo>();
|
| o["x"] = buildFileInfo();
|
| o["y"] = buildFileInfo();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2682(core.Map<core.String, api.FileInfo> o) {
|
| +checkUnnamed2671(core.Map<core.String, api.FileInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFileInfo(o["x"]);
|
| checkFileInfo(o["y"]);
|
| @@ -291,7 +393,7 @@ buildDeployment() {
|
| buildCounterDeployment++;
|
| if (buildCounterDeployment < 3) {
|
| o.container = buildContainerInfo();
|
| - o.files = buildUnnamed2682();
|
| + o.files = buildUnnamed2671();
|
| o.zip = buildZipInfo();
|
| }
|
| buildCounterDeployment--;
|
| @@ -302,7 +404,7 @@ checkDeployment(api.Deployment o) {
|
| buildCounterDeployment++;
|
| if (buildCounterDeployment < 3) {
|
| checkContainerInfo(o.container);
|
| - checkUnnamed2682(o.files);
|
| + checkUnnamed2671(o.files);
|
| checkZipInfo(o.zip);
|
| }
|
| buildCounterDeployment--;
|
| @@ -333,6 +435,59 @@ checkDiskUtilization(api.DiskUtilization o) {
|
| buildCounterDiskUtilization--;
|
| }
|
|
|
| +buildUnnamed2672() {
|
| + var o = new core.List<api.ResourceRecord>();
|
| + o.add(buildResourceRecord());
|
| + o.add(buildResourceRecord());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2672(core.List<api.ResourceRecord> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkResourceRecord(o[0]);
|
| + checkResourceRecord(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterDomainMapping = 0;
|
| +buildDomainMapping() {
|
| + var o = new api.DomainMapping();
|
| + buildCounterDomainMapping++;
|
| + if (buildCounterDomainMapping < 3) {
|
| + o.id = "foo";
|
| + o.name = "foo";
|
| + o.resourceRecords = buildUnnamed2672();
|
| + o.sslSettings = buildSslSettings();
|
| + }
|
| + buildCounterDomainMapping--;
|
| + return o;
|
| +}
|
| +
|
| +checkDomainMapping(api.DomainMapping o) {
|
| + buildCounterDomainMapping++;
|
| + if (buildCounterDomainMapping < 3) {
|
| + unittest.expect(o.id, unittest.equals('foo'));
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + checkUnnamed2672(o.resourceRecords);
|
| + checkSslSettings(o.sslSettings);
|
| + }
|
| + buildCounterDomainMapping--;
|
| +}
|
| +
|
| +core.int buildCounterEmpty = 0;
|
| +buildEmpty() {
|
| + var o = new api.Empty();
|
| + buildCounterEmpty++;
|
| + if (buildCounterEmpty < 3) {}
|
| + buildCounterEmpty--;
|
| + return o;
|
| +}
|
| +
|
| +checkEmpty(api.Empty o) {
|
| + buildCounterEmpty++;
|
| + if (buildCounterEmpty < 3) {}
|
| + buildCounterEmpty--;
|
| +}
|
| +
|
| core.int buildCounterEndpointsApiService = 0;
|
| buildEndpointsApiService() {
|
| var o = new api.EndpointsApiService();
|
| @@ -377,6 +532,25 @@ checkErrorHandler(api.ErrorHandler o) {
|
| buildCounterErrorHandler--;
|
| }
|
|
|
| +core.int buildCounterFeatureSettings = 0;
|
| +buildFeatureSettings() {
|
| + var o = new api.FeatureSettings();
|
| + buildCounterFeatureSettings++;
|
| + if (buildCounterFeatureSettings < 3) {
|
| + o.splitHealthChecks = true;
|
| + }
|
| + buildCounterFeatureSettings--;
|
| + return o;
|
| +}
|
| +
|
| +checkFeatureSettings(api.FeatureSettings o) {
|
| + buildCounterFeatureSettings++;
|
| + if (buildCounterFeatureSettings < 3) {
|
| + unittest.expect(o.splitHealthChecks, unittest.isTrue);
|
| + }
|
| + buildCounterFeatureSettings--;
|
| +}
|
| +
|
| core.int buildCounterFileInfo = 0;
|
| buildFileInfo() {
|
| var o = new api.FileInfo();
|
| @@ -526,14 +700,117 @@ checkLibrary(api.Library o) {
|
| buildCounterLibrary--;
|
| }
|
|
|
| -buildUnnamed2683() {
|
| +buildUnnamed2673() {
|
| + var o = new core.List<api.AuthorizedCertificate>();
|
| + o.add(buildAuthorizedCertificate());
|
| + o.add(buildAuthorizedCertificate());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2673(core.List<api.AuthorizedCertificate> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkAuthorizedCertificate(o[0]);
|
| + checkAuthorizedCertificate(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterListAuthorizedCertificatesResponse = 0;
|
| +buildListAuthorizedCertificatesResponse() {
|
| + var o = new api.ListAuthorizedCertificatesResponse();
|
| + buildCounterListAuthorizedCertificatesResponse++;
|
| + if (buildCounterListAuthorizedCertificatesResponse < 3) {
|
| + o.certificates = buildUnnamed2673();
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterListAuthorizedCertificatesResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkListAuthorizedCertificatesResponse(
|
| + api.ListAuthorizedCertificatesResponse o) {
|
| + buildCounterListAuthorizedCertificatesResponse++;
|
| + if (buildCounterListAuthorizedCertificatesResponse < 3) {
|
| + checkUnnamed2673(o.certificates);
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterListAuthorizedCertificatesResponse--;
|
| +}
|
| +
|
| +buildUnnamed2674() {
|
| + var o = new core.List<api.AuthorizedDomain>();
|
| + o.add(buildAuthorizedDomain());
|
| + o.add(buildAuthorizedDomain());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2674(core.List<api.AuthorizedDomain> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkAuthorizedDomain(o[0]);
|
| + checkAuthorizedDomain(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterListAuthorizedDomainsResponse = 0;
|
| +buildListAuthorizedDomainsResponse() {
|
| + var o = new api.ListAuthorizedDomainsResponse();
|
| + buildCounterListAuthorizedDomainsResponse++;
|
| + if (buildCounterListAuthorizedDomainsResponse < 3) {
|
| + o.domains = buildUnnamed2674();
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterListAuthorizedDomainsResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) {
|
| + buildCounterListAuthorizedDomainsResponse++;
|
| + if (buildCounterListAuthorizedDomainsResponse < 3) {
|
| + checkUnnamed2674(o.domains);
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterListAuthorizedDomainsResponse--;
|
| +}
|
| +
|
| +buildUnnamed2675() {
|
| + var o = new core.List<api.DomainMapping>();
|
| + o.add(buildDomainMapping());
|
| + o.add(buildDomainMapping());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed2675(core.List<api.DomainMapping> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkDomainMapping(o[0]);
|
| + checkDomainMapping(o[1]);
|
| +}
|
| +
|
| +core.int buildCounterListDomainMappingsResponse = 0;
|
| +buildListDomainMappingsResponse() {
|
| + var o = new api.ListDomainMappingsResponse();
|
| + buildCounterListDomainMappingsResponse++;
|
| + if (buildCounterListDomainMappingsResponse < 3) {
|
| + o.domainMappings = buildUnnamed2675();
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterListDomainMappingsResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) {
|
| + buildCounterListDomainMappingsResponse++;
|
| + if (buildCounterListDomainMappingsResponse < 3) {
|
| + checkUnnamed2675(o.domainMappings);
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterListDomainMappingsResponse--;
|
| +}
|
| +
|
| +buildUnnamed2676() {
|
| var o = new core.List<api.Instance>();
|
| o.add(buildInstance());
|
| o.add(buildInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2683(core.List<api.Instance> o) {
|
| +checkUnnamed2676(core.List<api.Instance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstance(o[0]);
|
| checkInstance(o[1]);
|
| @@ -544,7 +821,7 @@ buildListInstancesResponse() {
|
| var o = new api.ListInstancesResponse();
|
| buildCounterListInstancesResponse++;
|
| if (buildCounterListInstancesResponse < 3) {
|
| - o.instances = buildUnnamed2683();
|
| + o.instances = buildUnnamed2676();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListInstancesResponse--;
|
| @@ -554,20 +831,20 @@ buildListInstancesResponse() {
|
| checkListInstancesResponse(api.ListInstancesResponse o) {
|
| buildCounterListInstancesResponse++;
|
| if (buildCounterListInstancesResponse < 3) {
|
| - checkUnnamed2683(o.instances);
|
| + checkUnnamed2676(o.instances);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListInstancesResponse--;
|
| }
|
|
|
| -buildUnnamed2684() {
|
| +buildUnnamed2677() {
|
| var o = new core.List<api.Location>();
|
| o.add(buildLocation());
|
| o.add(buildLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2684(core.List<api.Location> o) {
|
| +checkUnnamed2677(core.List<api.Location> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocation(o[0]);
|
| checkLocation(o[1]);
|
| @@ -578,7 +855,7 @@ buildListLocationsResponse() {
|
| var o = new api.ListLocationsResponse();
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - o.locations = buildUnnamed2684();
|
| + o.locations = buildUnnamed2677();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLocationsResponse--;
|
| @@ -588,20 +865,20 @@ buildListLocationsResponse() {
|
| checkListLocationsResponse(api.ListLocationsResponse o) {
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - checkUnnamed2684(o.locations);
|
| + checkUnnamed2677(o.locations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLocationsResponse--;
|
| }
|
|
|
| -buildUnnamed2685() {
|
| +buildUnnamed2678() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2685(core.List<api.Operation> o) {
|
| +checkUnnamed2678(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -613,7 +890,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed2685();
|
| + o.operations = buildUnnamed2678();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -623,19 +900,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2685(o.operations);
|
| + checkUnnamed2678(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed2686() {
|
| +buildUnnamed2679() {
|
| var o = new core.List<api.Service>();
|
| o.add(buildService());
|
| o.add(buildService());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2686(core.List<api.Service> o) {
|
| +checkUnnamed2679(core.List<api.Service> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkService(o[0]);
|
| checkService(o[1]);
|
| @@ -647,7 +924,7 @@ buildListServicesResponse() {
|
| buildCounterListServicesResponse++;
|
| if (buildCounterListServicesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.services = buildUnnamed2686();
|
| + o.services = buildUnnamed2679();
|
| }
|
| buildCounterListServicesResponse--;
|
| return o;
|
| @@ -657,19 +934,19 @@ checkListServicesResponse(api.ListServicesResponse o) {
|
| buildCounterListServicesResponse++;
|
| if (buildCounterListServicesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2686(o.services);
|
| + checkUnnamed2679(o.services);
|
| }
|
| buildCounterListServicesResponse--;
|
| }
|
|
|
| -buildUnnamed2687() {
|
| +buildUnnamed2680() {
|
| var o = new core.List<api.Version>();
|
| o.add(buildVersion());
|
| o.add(buildVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2687(core.List<api.Version> o) {
|
| +checkUnnamed2680(core.List<api.Version> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVersion(o[0]);
|
| checkVersion(o[1]);
|
| @@ -681,7 +958,7 @@ buildListVersionsResponse() {
|
| buildCounterListVersionsResponse++;
|
| if (buildCounterListVersionsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.versions = buildUnnamed2687();
|
| + o.versions = buildUnnamed2680();
|
| }
|
| buildCounterListVersionsResponse--;
|
| return o;
|
| @@ -691,7 +968,7 @@ checkListVersionsResponse(api.ListVersionsResponse o) {
|
| buildCounterListVersionsResponse++;
|
| if (buildCounterListVersionsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2687(o.versions);
|
| + checkUnnamed2680(o.versions);
|
| }
|
| buildCounterListVersionsResponse--;
|
| }
|
| @@ -727,30 +1004,46 @@ checkLivenessCheck(api.LivenessCheck o) {
|
| buildCounterLivenessCheck--;
|
| }
|
|
|
| -buildUnnamed2688() {
|
| +buildUnnamed2681() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2688(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2681(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'));
|
| }
|
|
|
| -buildUnnamed2689() {
|
| +buildUnnamed2682() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2689(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2682(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'));
|
| + var casted1 = (o["x"]) as core.Map;
|
| + unittest.expect(casted1, unittest.hasLength(3));
|
| + unittest.expect(casted1["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted1["bool"], unittest.equals(true));
|
| + unittest.expect(casted1["string"], unittest.equals('foo'));
|
| + var casted2 = (o["y"]) as core.Map;
|
| + unittest.expect(casted2, unittest.hasLength(3));
|
| + unittest.expect(casted2["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted2["bool"], unittest.equals(true));
|
| + unittest.expect(casted2["string"], unittest.equals('foo'));
|
| }
|
|
|
| core.int buildCounterLocation = 0;
|
| @@ -758,9 +1051,9 @@ buildLocation() {
|
| var o = new api.Location();
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - o.labels = buildUnnamed2688();
|
| + o.labels = buildUnnamed2681();
|
| o.locationId = "foo";
|
| - o.metadata = buildUnnamed2689();
|
| + o.metadata = buildUnnamed2682();
|
| o.name = "foo";
|
| }
|
| buildCounterLocation--;
|
| @@ -770,9 +1063,9 @@ buildLocation() {
|
| checkLocation(api.Location o) {
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - checkUnnamed2688(o.labels);
|
| + checkUnnamed2681(o.labels);
|
| unittest.expect(o.locationId, unittest.equals('foo'));
|
| - checkUnnamed2689(o.metadata);
|
| + checkUnnamed2682(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLocation--;
|
| @@ -818,14 +1111,14 @@ checkManualScaling(api.ManualScaling o) {
|
| buildCounterManualScaling--;
|
| }
|
|
|
| -buildUnnamed2690() {
|
| +buildUnnamed2683() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2690(core.List<core.String> o) {
|
| +checkUnnamed2683(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -836,7 +1129,7 @@ buildNetwork() {
|
| var o = new api.Network();
|
| buildCounterNetwork++;
|
| if (buildCounterNetwork < 3) {
|
| - o.forwardedPorts = buildUnnamed2690();
|
| + o.forwardedPorts = buildUnnamed2683();
|
| o.instanceTag = "foo";
|
| o.name = "foo";
|
| o.subnetworkName = "foo";
|
| @@ -848,7 +1141,7 @@ buildNetwork() {
|
| checkNetwork(api.Network o) {
|
| buildCounterNetwork++;
|
| if (buildCounterNetwork < 3) {
|
| - checkUnnamed2690(o.forwardedPorts);
|
| + checkUnnamed2683(o.forwardedPorts);
|
| unittest.expect(o.instanceTag, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.subnetworkName, unittest.equals('foo'));
|
| @@ -881,30 +1174,62 @@ checkNetworkUtilization(api.NetworkUtilization o) {
|
| buildCounterNetworkUtilization--;
|
| }
|
|
|
| -buildUnnamed2691() {
|
| +buildUnnamed2684() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2691(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2684(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'));
|
| + 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'));
|
| }
|
|
|
| -buildUnnamed2692() {
|
| +buildUnnamed2685() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2692(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2685(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| - var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| + var casted5 = (o["x"]) as core.Map;
|
| + unittest.expect(casted5, unittest.hasLength(3));
|
| + unittest.expect(casted5["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted5["bool"], unittest.equals(true));
|
| + unittest.expect(casted5["string"], unittest.equals('foo'));
|
| + var casted6 = (o["y"]) as core.Map;
|
| + unittest.expect(casted6, unittest.hasLength(3));
|
| + unittest.expect(casted6["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted6["bool"], unittest.equals(true));
|
| + unittest.expect(casted6["string"], unittest.equals('foo'));
|
| }
|
|
|
| core.int buildCounterOperation = 0;
|
| @@ -914,9 +1239,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed2691();
|
| + o.metadata = buildUnnamed2684();
|
| o.name = "foo";
|
| - o.response = buildUnnamed2692();
|
| + o.response = buildUnnamed2685();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -927,9 +1252,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed2691(o.metadata);
|
| + checkUnnamed2684(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2692(o.response);
|
| + checkUnnamed2685(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -990,14 +1315,14 @@ checkOperationMetadataExperimental(api.OperationMetadataExperimental o) {
|
| buildCounterOperationMetadataExperimental--;
|
| }
|
|
|
| -buildUnnamed2693() {
|
| +buildUnnamed2686() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2693(core.List<core.String> o) {
|
| +checkUnnamed2686(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1014,7 +1339,7 @@ buildOperationMetadataV1() {
|
| o.method = "foo";
|
| o.target = "foo";
|
| o.user = "foo";
|
| - o.warning = buildUnnamed2693();
|
| + o.warning = buildUnnamed2686();
|
| }
|
| buildCounterOperationMetadataV1--;
|
| return o;
|
| @@ -1029,19 +1354,19 @@ checkOperationMetadataV1(api.OperationMetadataV1 o) {
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| unittest.expect(o.user, unittest.equals('foo'));
|
| - checkUnnamed2693(o.warning);
|
| + checkUnnamed2686(o.warning);
|
| }
|
| buildCounterOperationMetadataV1--;
|
| }
|
|
|
| -buildUnnamed2694() {
|
| +buildUnnamed2687() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2694(core.List<core.String> o) {
|
| +checkUnnamed2687(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1058,7 +1383,7 @@ buildOperationMetadataV1Alpha() {
|
| o.method = "foo";
|
| o.target = "foo";
|
| o.user = "foo";
|
| - o.warning = buildUnnamed2694();
|
| + o.warning = buildUnnamed2687();
|
| }
|
| buildCounterOperationMetadataV1Alpha--;
|
| return o;
|
| @@ -1073,19 +1398,19 @@ checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| unittest.expect(o.user, unittest.equals('foo'));
|
| - checkUnnamed2694(o.warning);
|
| + checkUnnamed2687(o.warning);
|
| }
|
| buildCounterOperationMetadataV1Alpha--;
|
| }
|
|
|
| -buildUnnamed2695() {
|
| +buildUnnamed2688() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2695(core.List<core.String> o) {
|
| +checkUnnamed2688(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1102,7 +1427,7 @@ buildOperationMetadataV1Beta() {
|
| o.method = "foo";
|
| o.target = "foo";
|
| o.user = "foo";
|
| - o.warning = buildUnnamed2695();
|
| + o.warning = buildUnnamed2688();
|
| }
|
| buildCounterOperationMetadataV1Beta--;
|
| return o;
|
| @@ -1117,7 +1442,7 @@ checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| unittest.expect(o.user, unittest.equals('foo'));
|
| - checkUnnamed2695(o.warning);
|
| + checkUnnamed2688(o.warning);
|
| }
|
| buildCounterOperationMetadataV1Beta--;
|
| }
|
| @@ -1184,16 +1509,14 @@ core.int buildCounterRepairApplicationRequest = 0;
|
| buildRepairApplicationRequest() {
|
| var o = new api.RepairApplicationRequest();
|
| buildCounterRepairApplicationRequest++;
|
| - if (buildCounterRepairApplicationRequest < 3) {
|
| - }
|
| + if (buildCounterRepairApplicationRequest < 3) {}
|
| buildCounterRepairApplicationRequest--;
|
| return o;
|
| }
|
|
|
| checkRepairApplicationRequest(api.RepairApplicationRequest o) {
|
| buildCounterRepairApplicationRequest++;
|
| - if (buildCounterRepairApplicationRequest < 3) {
|
| - }
|
| + if (buildCounterRepairApplicationRequest < 3) {}
|
| buildCounterRepairApplicationRequest--;
|
| }
|
|
|
| @@ -1218,14 +1541,37 @@ checkRequestUtilization(api.RequestUtilization o) {
|
| buildCounterRequestUtilization--;
|
| }
|
|
|
| -buildUnnamed2696() {
|
| +core.int buildCounterResourceRecord = 0;
|
| +buildResourceRecord() {
|
| + var o = new api.ResourceRecord();
|
| + buildCounterResourceRecord++;
|
| + if (buildCounterResourceRecord < 3) {
|
| + o.name = "foo";
|
| + o.rrdata = "foo";
|
| + o.type = "foo";
|
| + }
|
| + buildCounterResourceRecord--;
|
| + return o;
|
| +}
|
| +
|
| +checkResourceRecord(api.ResourceRecord o) {
|
| + buildCounterResourceRecord++;
|
| + if (buildCounterResourceRecord < 3) {
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.rrdata, unittest.equals('foo'));
|
| + unittest.expect(o.type, unittest.equals('foo'));
|
| + }
|
| + buildCounterResourceRecord--;
|
| +}
|
| +
|
| +buildUnnamed2689() {
|
| var o = new core.List<api.Volume>();
|
| o.add(buildVolume());
|
| o.add(buildVolume());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2696(core.List<api.Volume> o) {
|
| +checkUnnamed2689(core.List<api.Volume> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVolume(o[0]);
|
| checkVolume(o[1]);
|
| @@ -1239,7 +1585,7 @@ buildResources() {
|
| o.cpu = 42.0;
|
| o.diskGb = 42.0;
|
| o.memoryGb = 42.0;
|
| - o.volumes = buildUnnamed2696();
|
| + o.volumes = buildUnnamed2689();
|
| }
|
| buildCounterResources--;
|
| return o;
|
| @@ -1251,7 +1597,7 @@ checkResources(api.Resources o) {
|
| unittest.expect(o.cpu, unittest.equals(42.0));
|
| unittest.expect(o.diskGb, unittest.equals(42.0));
|
| unittest.expect(o.memoryGb, unittest.equals(42.0));
|
| - checkUnnamed2696(o.volumes);
|
| + checkUnnamed2689(o.volumes);
|
| }
|
| buildCounterResources--;
|
| }
|
| @@ -1298,14 +1644,33 @@ checkService(api.Service o) {
|
| buildCounterService--;
|
| }
|
|
|
| -buildUnnamed2697() {
|
| +core.int buildCounterSslSettings = 0;
|
| +buildSslSettings() {
|
| + var o = new api.SslSettings();
|
| + buildCounterSslSettings++;
|
| + if (buildCounterSslSettings < 3) {
|
| + o.certificateId = "foo";
|
| + }
|
| + buildCounterSslSettings--;
|
| + return o;
|
| +}
|
| +
|
| +checkSslSettings(api.SslSettings o) {
|
| + buildCounterSslSettings++;
|
| + if (buildCounterSslSettings < 3) {
|
| + unittest.expect(o.certificateId, unittest.equals('foo'));
|
| + }
|
| + buildCounterSslSettings--;
|
| +}
|
| +
|
| +buildUnnamed2690() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2697(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2690(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'));
|
| @@ -1318,7 +1683,7 @@ buildStaticFilesHandler() {
|
| if (buildCounterStaticFilesHandler < 3) {
|
| o.applicationReadable = true;
|
| o.expiration = "foo";
|
| - o.httpHeaders = buildUnnamed2697();
|
| + o.httpHeaders = buildUnnamed2690();
|
| o.mimeType = "foo";
|
| o.path = "foo";
|
| o.requireMatchingFile = true;
|
| @@ -1333,7 +1698,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
|
| if (buildCounterStaticFilesHandler < 3) {
|
| unittest.expect(o.applicationReadable, unittest.isTrue);
|
| unittest.expect(o.expiration, unittest.equals('foo'));
|
| - checkUnnamed2697(o.httpHeaders);
|
| + checkUnnamed2690(o.httpHeaders);
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.path, unittest.equals('foo'));
|
| unittest.expect(o.requireMatchingFile, unittest.isTrue);
|
| @@ -1342,30 +1707,46 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
|
| buildCounterStaticFilesHandler--;
|
| }
|
|
|
| -buildUnnamed2698() {
|
| +buildUnnamed2691() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2698(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2691(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
|
| - var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
|
| + var 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'));
|
| }
|
|
|
| -buildUnnamed2699() {
|
| +buildUnnamed2692() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed2698());
|
| - o.add(buildUnnamed2698());
|
| + o.add(buildUnnamed2691());
|
| + o.add(buildUnnamed2691());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2699(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed2692(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2698(o[0]);
|
| - checkUnnamed2698(o[1]);
|
| + checkUnnamed2691(o[0]);
|
| + checkUnnamed2691(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1374,7 +1755,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed2699();
|
| + o.details = buildUnnamed2692();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1385,20 +1766,20 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed2699(o.details);
|
| + checkUnnamed2692(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| }
|
|
|
| -buildUnnamed2700() {
|
| +buildUnnamed2693() {
|
| var o = new core.Map<core.String, core.double>();
|
| o["x"] = 42.0;
|
| o["y"] = 42.0;
|
| return o;
|
| }
|
|
|
| -checkUnnamed2700(core.Map<core.String, core.double> o) {
|
| +checkUnnamed2693(core.Map<core.String, core.double> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals(42.0));
|
| unittest.expect(o["y"], unittest.equals(42.0));
|
| @@ -1409,7 +1790,7 @@ buildTrafficSplit() {
|
| var o = new api.TrafficSplit();
|
| buildCounterTrafficSplit++;
|
| if (buildCounterTrafficSplit < 3) {
|
| - o.allocations = buildUnnamed2700();
|
| + o.allocations = buildUnnamed2693();
|
| o.shardBy = "foo";
|
| }
|
| buildCounterTrafficSplit--;
|
| @@ -1419,7 +1800,7 @@ buildTrafficSplit() {
|
| checkTrafficSplit(api.TrafficSplit o) {
|
| buildCounterTrafficSplit++;
|
| if (buildCounterTrafficSplit < 3) {
|
| - checkUnnamed2700(o.allocations);
|
| + checkUnnamed2693(o.allocations);
|
| unittest.expect(o.shardBy, unittest.equals('foo'));
|
| }
|
| buildCounterTrafficSplit--;
|
| @@ -1481,79 +1862,79 @@ checkUrlMap(api.UrlMap o) {
|
| buildCounterUrlMap--;
|
| }
|
|
|
| -buildUnnamed2701() {
|
| +buildUnnamed2694() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2701(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2694(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2702() {
|
| +buildUnnamed2695() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2702(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2695(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'));
|
| }
|
|
|
| -buildUnnamed2703() {
|
| +buildUnnamed2696() {
|
| var o = new core.List<api.ErrorHandler>();
|
| o.add(buildErrorHandler());
|
| o.add(buildErrorHandler());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2703(core.List<api.ErrorHandler> o) {
|
| +checkUnnamed2696(core.List<api.ErrorHandler> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkErrorHandler(o[0]);
|
| checkErrorHandler(o[1]);
|
| }
|
|
|
| -buildUnnamed2704() {
|
| +buildUnnamed2697() {
|
| var o = new core.List<api.UrlMap>();
|
| o.add(buildUrlMap());
|
| o.add(buildUrlMap());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2704(core.List<api.UrlMap> o) {
|
| +checkUnnamed2697(core.List<api.UrlMap> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlMap(o[0]);
|
| checkUrlMap(o[1]);
|
| }
|
|
|
| -buildUnnamed2705() {
|
| +buildUnnamed2698() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2705(core.List<core.String> o) {
|
| +checkUnnamed2698(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2706() {
|
| +buildUnnamed2699() {
|
| var o = new core.List<api.Library>();
|
| o.add(buildLibrary());
|
| o.add(buildLibrary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2706(core.List<api.Library> o) {
|
| +checkUnnamed2699(core.List<api.Library> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLibrary(o[0]);
|
| checkLibrary(o[1]);
|
| @@ -1567,7 +1948,7 @@ buildVersion() {
|
| o.apiConfig = buildApiConfigHandler();
|
| o.automaticScaling = buildAutomaticScaling();
|
| o.basicScaling = buildBasicScaling();
|
| - o.betaSettings = buildUnnamed2701();
|
| + o.betaSettings = buildUnnamed2694();
|
| o.createTime = "foo";
|
| o.createdBy = "foo";
|
| o.defaultExpiration = "foo";
|
| @@ -1575,14 +1956,14 @@ buildVersion() {
|
| o.diskUsageBytes = "foo";
|
| o.endpointsApiService = buildEndpointsApiService();
|
| o.env = "foo";
|
| - o.envVariables = buildUnnamed2702();
|
| - o.errorHandlers = buildUnnamed2703();
|
| - o.handlers = buildUnnamed2704();
|
| + o.envVariables = buildUnnamed2695();
|
| + o.errorHandlers = buildUnnamed2696();
|
| + o.handlers = buildUnnamed2697();
|
| o.healthCheck = buildHealthCheck();
|
| o.id = "foo";
|
| - o.inboundServices = buildUnnamed2705();
|
| + o.inboundServices = buildUnnamed2698();
|
| o.instanceClass = "foo";
|
| - o.libraries = buildUnnamed2706();
|
| + o.libraries = buildUnnamed2699();
|
| o.livenessCheck = buildLivenessCheck();
|
| o.manualScaling = buildManualScaling();
|
| o.name = "foo";
|
| @@ -1607,7 +1988,7 @@ checkVersion(api.Version o) {
|
| checkApiConfigHandler(o.apiConfig);
|
| checkAutomaticScaling(o.automaticScaling);
|
| checkBasicScaling(o.basicScaling);
|
| - checkUnnamed2701(o.betaSettings);
|
| + checkUnnamed2694(o.betaSettings);
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| unittest.expect(o.createdBy, unittest.equals('foo'));
|
| unittest.expect(o.defaultExpiration, unittest.equals('foo'));
|
| @@ -1615,14 +1996,14 @@ checkVersion(api.Version o) {
|
| unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
|
| checkEndpointsApiService(o.endpointsApiService);
|
| unittest.expect(o.env, unittest.equals('foo'));
|
| - checkUnnamed2702(o.envVariables);
|
| - checkUnnamed2703(o.errorHandlers);
|
| - checkUnnamed2704(o.handlers);
|
| + checkUnnamed2695(o.envVariables);
|
| + checkUnnamed2696(o.errorHandlers);
|
| + checkUnnamed2697(o.handlers);
|
| checkHealthCheck(o.healthCheck);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2705(o.inboundServices);
|
| + checkUnnamed2698(o.inboundServices);
|
| unittest.expect(o.instanceClass, unittest.equals('foo'));
|
| - checkUnnamed2706(o.libraries);
|
| + checkUnnamed2699(o.libraries);
|
| checkLivenessCheck(o.livenessCheck);
|
| checkManualScaling(o.manualScaling);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -1684,7 +2065,6 @@ checkZipInfo(api.ZipInfo o) {
|
| buildCounterZipInfo--;
|
| }
|
|
|
| -
|
| main() {
|
| unittest.group("obj-schema-ApiConfigHandler", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -1694,7 +2074,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ApiEndpointHandler", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildApiEndpointHandler();
|
| @@ -1703,7 +2082,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Application", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildApplication();
|
| @@ -1712,6 +2090,21 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-AuthorizedCertificate", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAuthorizedCertificate();
|
| + var od = new api.AuthorizedCertificate.fromJson(o.toJson());
|
| + checkAuthorizedCertificate(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-AuthorizedDomain", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildAuthorizedDomain();
|
| + var od = new api.AuthorizedDomain.fromJson(o.toJson());
|
| + checkAuthorizedDomain(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-AutomaticScaling", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -1721,7 +2114,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-BasicScaling", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildBasicScaling();
|
| @@ -1730,6 +2122,13 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-CertificateRawData", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildCertificateRawData();
|
| + var od = new api.CertificateRawData.fromJson(o.toJson());
|
| + checkCertificateRawData(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-ContainerInfo", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -1739,7 +2138,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-CpuUtilization", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCpuUtilization();
|
| @@ -1748,7 +2146,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-DebugInstanceRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildDebugInstanceRequest();
|
| @@ -1757,7 +2154,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Deployment", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildDeployment();
|
| @@ -1766,7 +2162,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-DiskUtilization", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildDiskUtilization();
|
| @@ -1775,6 +2170,21 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-DomainMapping", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildDomainMapping();
|
| + var od = new api.DomainMapping.fromJson(o.toJson());
|
| + checkDomainMapping(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-Empty", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildEmpty();
|
| + var od = new api.Empty.fromJson(o.toJson());
|
| + checkEmpty(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-EndpointsApiService", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -1784,7 +2194,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ErrorHandler", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildErrorHandler();
|
| @@ -1793,6 +2202,13 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-FeatureSettings", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildFeatureSettings();
|
| + var od = new api.FeatureSettings.fromJson(o.toJson());
|
| + checkFeatureSettings(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-FileInfo", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -1802,7 +2218,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-HealthCheck", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildHealthCheck();
|
| @@ -1811,7 +2226,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-IdentityAwareProxy", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildIdentityAwareProxy();
|
| @@ -1820,7 +2234,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Instance", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildInstance();
|
| @@ -1829,7 +2242,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Library", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLibrary();
|
| @@ -1838,6 +2250,29 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-ListAuthorizedCertificatesResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildListAuthorizedCertificatesResponse();
|
| + var od = new api.ListAuthorizedCertificatesResponse.fromJson(o.toJson());
|
| + checkListAuthorizedCertificatesResponse(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-ListAuthorizedDomainsResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildListAuthorizedDomainsResponse();
|
| + var od = new api.ListAuthorizedDomainsResponse.fromJson(o.toJson());
|
| + checkListAuthorizedDomainsResponse(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-ListDomainMappingsResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildListDomainMappingsResponse();
|
| + var od = new api.ListDomainMappingsResponse.fromJson(o.toJson());
|
| + checkListDomainMappingsResponse(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-ListInstancesResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -1847,7 +2282,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListLocationsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListLocationsResponse();
|
| @@ -1856,7 +2290,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListOperationsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListOperationsResponse();
|
| @@ -1865,7 +2298,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListServicesResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListServicesResponse();
|
| @@ -1874,7 +2306,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListVersionsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListVersionsResponse();
|
| @@ -1883,7 +2314,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-LivenessCheck", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLivenessCheck();
|
| @@ -1892,7 +2322,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Location", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLocation();
|
| @@ -1901,7 +2330,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-LocationMetadata", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLocationMetadata();
|
| @@ -1910,7 +2338,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ManualScaling", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildManualScaling();
|
| @@ -1919,7 +2346,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Network", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildNetwork();
|
| @@ -1928,7 +2354,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-NetworkUtilization", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildNetworkUtilization();
|
| @@ -1937,7 +2362,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Operation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperation();
|
| @@ -1946,7 +2370,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadata", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadata();
|
| @@ -1955,7 +2378,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadataExperimental", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadataExperimental();
|
| @@ -1964,7 +2386,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadataV1", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadataV1();
|
| @@ -1973,7 +2394,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadataV1Alpha", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadataV1Alpha();
|
| @@ -1982,7 +2402,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadataV1Beta", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadataV1Beta();
|
| @@ -1991,7 +2410,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadataV1Beta5", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadataV1Beta5();
|
| @@ -2000,7 +2418,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ReadinessCheck", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReadinessCheck();
|
| @@ -2009,7 +2426,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-RepairApplicationRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildRepairApplicationRequest();
|
| @@ -2018,7 +2434,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-RequestUtilization", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildRequestUtilization();
|
| @@ -2027,6 +2442,13 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-ResourceRecord", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildResourceRecord();
|
| + var od = new api.ResourceRecord.fromJson(o.toJson());
|
| + checkResourceRecord(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-Resources", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -2036,7 +2458,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ScriptHandler", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildScriptHandler();
|
| @@ -2045,7 +2466,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Service", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildService();
|
| @@ -2054,6 +2474,13 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-SslSettings", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildSslSettings();
|
| + var od = new api.SslSettings.fromJson(o.toJson());
|
| + checkSslSettings(od);
|
| + });
|
| + });
|
|
|
| unittest.group("obj-schema-StaticFilesHandler", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -2063,7 +2490,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Status", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildStatus();
|
| @@ -2072,7 +2498,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-TrafficSplit", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildTrafficSplit();
|
| @@ -2081,70 +2506,760 @@ main() {
|
| });
|
| });
|
|
|
| + unittest.group("obj-schema-UrlDispatchRule", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildUrlDispatchRule();
|
| + var od = new api.UrlDispatchRule.fromJson(o.toJson());
|
| + checkUrlDispatchRule(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-UrlMap", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildUrlMap();
|
| + var od = new api.UrlMap.fromJson(o.toJson());
|
| + checkUrlMap(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-Version", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildVersion();
|
| + var od = new api.Version.fromJson(o.toJson());
|
| + checkVersion(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-Volume", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildVolume();
|
| + var od = new api.Volume.fromJson(o.toJson());
|
| + checkVolume(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("obj-schema-ZipInfo", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildZipInfo();
|
| + var od = new api.ZipInfo.fromJson(o.toJson());
|
| + checkZipInfo(od);
|
| + });
|
| + });
|
| +
|
| + unittest.group("resource-AppsResourceApi", () {
|
| + unittest.test("method--create", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| + var arg_request = buildApplication();
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.Application.fromJson(json);
|
| + checkApplication(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 7),
|
| + unittest.equals("v1/apps"));
|
| + pathOffset += 7;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--get", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| + var arg_appsId = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildApplication());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .get(arg_appsId)
|
| + .then(unittest.expectAsync1(((api.Application response) {
|
| + checkApplication(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--patch", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| + var arg_request = buildApplication();
|
| + var arg_appsId = "foo";
|
| + var arg_updateMask = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.Application.fromJson(json);
|
| + checkApplication(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| +
|
| + 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["updateMask"].first, unittest.equals(arg_updateMask));
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .patch(arg_request, arg_appsId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--repair", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| + var arg_request = buildRepairApplicationRequest();
|
| + var arg_appsId = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.RepairApplicationRequest.fromJson(json);
|
| + checkRepairApplicationRequest(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf(":repair", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 7),
|
| + unittest.equals(":repair"));
|
| + pathOffset += 7;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .repair(arg_request, arg_appsId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
| + });
|
| +
|
| + unittest.group("resource-AppsAuthorizedCertificatesResourceApi", () {
|
| + unittest.test("method--create", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsAuthorizedCertificatesResourceApi res =
|
| + new api.AppengineApi(mock).apps.authorizedCertificates;
|
| + var arg_request = buildAuthorizedCertificate();
|
| + var arg_appsId = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.AuthorizedCertificate.fromJson(json);
|
| + checkAuthorizedCertificate(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/authorizedCertificates", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("/authorizedCertificates"));
|
| + pathOffset += 23;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAuthorizedCertificate());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .create(arg_request, arg_appsId)
|
| + .then(unittest.expectAsync1(((api.AuthorizedCertificate response) {
|
| + checkAuthorizedCertificate(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--delete", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsAuthorizedCertificatesResourceApi res =
|
| + new api.AppengineApi(mock).apps.authorizedCertificates;
|
| + var arg_appsId = "foo";
|
| + var arg_authorizedCertificatesId = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/authorizedCertificates/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 24),
|
| + unittest.equals("/authorizedCertificates/"));
|
| + pathOffset += 24;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(
|
| + subPart, unittest.equals("$arg_authorizedCertificatesId"));
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildEmpty());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .delete(arg_appsId, arg_authorizedCertificatesId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| + checkEmpty(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--get", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsAuthorizedCertificatesResourceApi res =
|
| + new api.AppengineApi(mock).apps.authorizedCertificates;
|
| + var arg_appsId = "foo";
|
| + var arg_authorizedCertificatesId = "foo";
|
| + var arg_view = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/authorizedCertificates/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 24),
|
| + unittest.equals("/authorizedCertificates/"));
|
| + pathOffset += 24;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(
|
| + subPart, unittest.equals("$arg_authorizedCertificatesId"));
|
| +
|
| + 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["view"].first, unittest.equals(arg_view));
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAuthorizedCertificate());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .get(arg_appsId, arg_authorizedCertificatesId, view: arg_view)
|
| + .then(unittest.expectAsync1(((api.AuthorizedCertificate response) {
|
| + checkAuthorizedCertificate(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--list", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsAuthorizedCertificatesResourceApi res =
|
| + new api.AppengineApi(mock).apps.authorizedCertificates;
|
| + var arg_appsId = "foo";
|
| + var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_view = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/authorizedCertificates", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("/authorizedCertificates"));
|
| + pathOffset += 23;
|
| +
|
| + 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));
|
| + unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp =
|
| + convert.JSON.encode(buildListAuthorizedCertificatesResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .list(arg_appsId,
|
| + pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view)
|
| + .then(unittest
|
| + .expectAsync1(((api.ListAuthorizedCertificatesResponse response) {
|
| + checkListAuthorizedCertificatesResponse(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--patch", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsAuthorizedCertificatesResourceApi res =
|
| + new api.AppengineApi(mock).apps.authorizedCertificates;
|
| + var arg_request = buildAuthorizedCertificate();
|
| + var arg_appsId = "foo";
|
| + var arg_authorizedCertificatesId = "foo";
|
| + var arg_updateMask = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.AuthorizedCertificate.fromJson(json);
|
| + checkAuthorizedCertificate(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/authorizedCertificates/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 24),
|
| + unittest.equals("/authorizedCertificates/"));
|
| + pathOffset += 24;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(
|
| + subPart, unittest.equals("$arg_authorizedCertificatesId"));
|
|
|
| - unittest.group("obj-schema-UrlDispatchRule", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlDispatchRule();
|
| - var od = new api.UrlDispatchRule.fromJson(o.toJson());
|
| - checkUrlDispatchRule(od);
|
| - });
|
| - });
|
| + 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["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| - unittest.group("obj-schema-UrlMap", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildUrlMap();
|
| - var od = new api.UrlMap.fromJson(o.toJson());
|
| - checkUrlMap(od);
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildAuthorizedCertificate());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .patch(arg_request, arg_appsId, arg_authorizedCertificatesId,
|
| + updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.AuthorizedCertificate response) {
|
| + checkAuthorizedCertificate(response);
|
| + })));
|
| });
|
| });
|
|
|
| + unittest.group("resource-AppsAuthorizedDomainsResourceApi", () {
|
| + unittest.test("method--list", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsAuthorizedDomainsResourceApi res =
|
| + new api.AppengineApi(mock).apps.authorizedDomains;
|
| + var arg_appsId = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/authorizedDomains", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("/authorizedDomains"));
|
| + pathOffset += 18;
|
|
|
| - unittest.group("obj-schema-Version", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVersion();
|
| - var od = new api.Version.fromJson(o.toJson());
|
| - checkVersion(od);
|
| - });
|
| - });
|
| + 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(core.int.parse(queryMap["pageSize"].first),
|
| + unittest.equals(arg_pageSize));
|
| + unittest.expect(
|
| + queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
| - unittest.group("obj-schema-Volume", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVolume();
|
| - var od = new api.Volume.fromJson(o.toJson());
|
| - checkVolume(od);
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken)
|
| + .then(unittest
|
| + .expectAsync1(((api.ListAuthorizedDomainsResponse response) {
|
| + checkListAuthorizedDomainsResponse(response);
|
| + })));
|
| });
|
| });
|
|
|
| + unittest.group("resource-AppsDomainMappingsResourceApi", () {
|
| + unittest.test("method--create", () {
|
| + var mock = new HttpServerMock();
|
| + api.AppsDomainMappingsResourceApi res =
|
| + new api.AppengineApi(mock).apps.domainMappings;
|
| + var arg_request = buildDomainMapping();
|
| + var arg_appsId = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.DomainMapping.fromJson(json);
|
| + checkDomainMapping(obj);
|
|
|
| - unittest.group("obj-schema-ZipInfo", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildZipInfo();
|
| - var od = new api.ZipInfo.fromJson(o.toJson());
|
| - checkZipInfo(od);
|
| - });
|
| - });
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/domainMappings", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("/domainMappings"));
|
| + pathOffset += 15;
|
| +
|
| + 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.group("resource-AppsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .create(arg_request, arg_appsId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| + checkOperation(response);
|
| + })));
|
| + });
|
|
|
| + unittest.test("method--delete", () {
|
| var mock = new HttpServerMock();
|
| - api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| - var arg_request = buildApplication();
|
| + api.AppsDomainMappingsResourceApi res =
|
| + new api.AppengineApi(mock).apps.domainMappings;
|
| + var arg_appsId = "foo";
|
| + var arg_domainMappingsId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.Application.fromJson(json);
|
| - checkApplication(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("v1/apps"));
|
| - pathOffset += 7;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| + pathOffset += 8;
|
| + index = path.indexOf("/domainMappings/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16),
|
| + unittest.equals("/domainMappings/"));
|
| + pathOffset += 16;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_domainMappingsId"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -2156,42 +3271,57 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .delete(arg_appsId, arg_domainMappingsId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| + api.AppsDomainMappingsResourceApi res =
|
| + new api.AppengineApi(mock).apps.domainMappings;
|
| var arg_appsId = "foo";
|
| + var arg_domainMappingsId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| + index = path.indexOf("/domainMappings/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16),
|
| + unittest.equals("/domainMappings/"));
|
| + pathOffset += 16;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(subPart, unittest.equals("$arg_domainMappingsId"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -2203,47 +3333,55 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildApplication());
|
| + var resp = convert.JSON.encode(buildDomainMapping());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId).then(unittest.expectAsync1(((api.Application response) {
|
| - checkApplication(response);
|
| + res
|
| + .get(arg_appsId, arg_domainMappingsId)
|
| + .then(unittest.expectAsync1(((api.DomainMapping response) {
|
| + checkDomainMapping(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--patch", () {
|
| -
|
| + unittest.test("method--list", () {
|
| var mock = new HttpServerMock();
|
| - api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| - var arg_request = buildApplication();
|
| + api.AppsDomainMappingsResourceApi res =
|
| + new api.AppengineApi(mock).apps.domainMappings;
|
| var arg_appsId = "foo";
|
| - var arg_updateMask = "foo";
|
| + var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.Application.fromJson(json);
|
| - checkApplication(obj);
|
| -
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| + index = path.indexOf("/domainMappings", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("/domainMappings"));
|
| + pathOffset += 15;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -2255,51 +3393,67 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + 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",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildOperation());
|
| + var resp = convert.JSON.encode(buildListDomainMappingsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) {
|
| - checkOperation(response);
|
| + res
|
| + .list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize)
|
| + .then(
|
| + unittest.expectAsync1(((api.ListDomainMappingsResponse response) {
|
| + checkListDomainMappingsResponse(response);
|
| })));
|
| });
|
|
|
| - unittest.test("method--repair", () {
|
| -
|
| + unittest.test("method--patch", () {
|
| var mock = new HttpServerMock();
|
| - api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| - var arg_request = buildRepairApplicationRequest();
|
| + api.AppsDomainMappingsResourceApi res =
|
| + new api.AppengineApi(mock).apps.domainMappings;
|
| + var arg_request = buildDomainMapping();
|
| var arg_appsId = "foo";
|
| + var arg_domainMappingsId = "foo";
|
| + var arg_updateMask = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.RepairApplicationRequest.fromJson(json);
|
| - checkRepairApplicationRequest(obj);
|
| + var obj = new api.DomainMapping.fromJson(json);
|
| + checkDomainMapping(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| - index = path.indexOf(":repair", pathOffset);
|
| + index = path.indexOf("/domainMappings/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":repair"));
|
| - pathOffset += 7;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16),
|
| + unittest.equals("/domainMappings/"));
|
| + pathOffset += 16;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_domainMappingsId"));
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -2311,33 +3465,37 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.repair(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .patch(arg_request, arg_appsId, arg_domainMappingsId,
|
| + updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-AppsLocationsResourceApi", () {
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations;
|
| + api.AppsLocationsResourceApi res =
|
| + new api.AppengineApi(mock).apps.locations;
|
| var arg_appsId = "foo";
|
| var arg_locationsId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| @@ -2345,16 +3503,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/locations/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/locations/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("/locations/"));
|
| pathOffset += 11;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2370,48 +3532,55 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildLocation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Location response) {
|
| + res
|
| + .get(arg_appsId, arg_locationsId)
|
| + .then(unittest.expectAsync1(((api.Location response) {
|
| checkLocation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations;
|
| + api.AppsLocationsResourceApi res =
|
| + new api.AppengineApi(mock).apps.locations;
|
| var arg_appsId = "foo";
|
| + var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| var arg_filter = "foo";
|
| - var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/locations", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/locations"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/locations"));
|
| pathOffset += 10;
|
|
|
| var query = (req.url).query;
|
| @@ -2424,36 +3593,42 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + 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));
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| -
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListLocationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
|
| + res
|
| + .list(arg_appsId,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize,
|
| + filter: arg_filter)
|
| + .then(unittest.expectAsync1(((api.ListLocationsResponse response) {
|
| checkListLocationsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-AppsOperationsResourceApi", () {
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations;
|
| + api.AppsOperationsResourceApi res =
|
| + new api.AppengineApi(mock).apps.operations;
|
| var arg_appsId = "foo";
|
| var arg_operationsId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| @@ -2461,16 +3636,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/operations/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/operations/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("/operations/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2486,29 +3665,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .get(arg_appsId, arg_operationsId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations;
|
| + api.AppsOperationsResourceApi res =
|
| + new api.AppengineApi(mock).apps.operations;
|
| var arg_appsId = "foo";
|
| var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| @@ -2518,16 +3700,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/operations", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/operations"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("/operations"));
|
| pathOffset += 11;
|
|
|
| var query = (req.url).query;
|
| @@ -2540,36 +3726,42 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| -
|
| + unittest.expect(
|
| + queryMap["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",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListOperationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) {
|
| + res
|
| + .list(arg_appsId,
|
| + filter: arg_filter,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize)
|
| + .then(unittest.expectAsync1(((api.ListOperationsResponse response) {
|
| checkListOperationsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-AppsServicesResourceApi", () {
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services;
|
| + api.AppsServicesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| @@ -2577,16 +3769,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2602,29 +3798,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .delete(arg_appsId, arg_servicesId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services;
|
| + api.AppsServicesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| @@ -2632,16 +3831,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2657,29 +3860,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildService());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Service response) {
|
| + res
|
| + .get(arg_appsId, arg_servicesId)
|
| + .then(unittest.expectAsync1(((api.Service response) {
|
| checkService(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services;
|
| + api.AppsServicesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services;
|
| var arg_appsId = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| @@ -2688,16 +3894,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/services"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9),
|
| + unittest.equals("/services"));
|
| pathOffset += 9;
|
|
|
| var query = (req.url).query;
|
| @@ -2710,36 +3920,41 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| -
|
| + unittest.expect(
|
| + queryMap["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",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListServicesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServicesResponse response) {
|
| + res
|
| + .list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize)
|
| + .then(unittest.expectAsync1(((api.ListServicesResponse response) {
|
| checkListServicesResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services;
|
| + api.AppsServicesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services;
|
| var arg_request = buildService();
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| - var arg_migrateTraffic = true;
|
| var arg_updateMask = "foo";
|
| + var arg_migrateTraffic = true;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Service.fromJson(json);
|
| checkService(obj);
|
| @@ -2748,16 +3963,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2773,35 +3992,39 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic"));
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| + unittest.expect(queryMap["migrateTraffic"].first,
|
| + unittest.equals("$arg_migrateTraffic"));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .patch(arg_request, arg_appsId, arg_servicesId,
|
| + updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-AppsServicesVersionsResourceApi", () {
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions;
|
| + api.AppsServicesVersionsResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions;
|
| var arg_request = buildVersion();
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| @@ -2813,23 +4036,29 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/versions"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9),
|
| + unittest.equals("/versions"));
|
| pathOffset += 9;
|
|
|
| var query = (req.url).query;
|
| @@ -2842,29 +4071,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .create(arg_request, arg_appsId, arg_servicesId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions;
|
| + api.AppsServicesVersionsResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| var arg_versionsId = "foo";
|
| @@ -2873,23 +4105,29 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2905,29 +4143,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .delete(arg_appsId, arg_servicesId, arg_versionsId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions;
|
| + api.AppsServicesVersionsResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| var arg_versionsId = "foo";
|
| @@ -2937,23 +4178,29 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -2969,30 +4216,33 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVersion());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) {
|
| + res
|
| + .get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view)
|
| + .then(unittest.expectAsync1(((api.Version response) {
|
| checkVersion(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions;
|
| + api.AppsServicesVersionsResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| var arg_pageToken = "foo";
|
| @@ -3003,23 +4253,29 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/versions"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9),
|
| + unittest.equals("/versions"));
|
| pathOffset += 9;
|
|
|
| var query = (req.url).query;
|
| @@ -3032,32 +4288,38 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(
|
| + queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first),
|
| + unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListVersionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsResponse response) {
|
| + res
|
| + .list(arg_appsId, arg_servicesId,
|
| + pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view)
|
| + .then(unittest.expectAsync1(((api.ListVersionsResponse response) {
|
| checkListVersionsResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions;
|
| + api.AppsServicesVersionsResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions;
|
| var arg_request = buildVersion();
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| @@ -3071,23 +4333,29 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -3103,34 +4371,37 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId,
|
| + updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-AppsServicesVersionsInstancesResourceApi", () {
|
| unittest.test("method--debug", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.services.versions.instances;
|
| + api.AppsServicesVersionsInstancesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions.instances;
|
| var arg_request = buildDebugInstanceRequest();
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| @@ -3144,37 +4415,47 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/instances/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_versionsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/instances/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("/instances/"));
|
| pathOffset += 11;
|
| index = path.indexOf(":debug", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_instancesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals(":debug"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 6),
|
| + unittest.equals(":debug"));
|
| pathOffset += 6;
|
|
|
| var query = (req.url).query;
|
| @@ -3187,29 +4468,33 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId,
|
| + arg_instancesId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.services.versions.instances;
|
| + api.AppsServicesVersionsInstancesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions.instances;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| var arg_versionsId = "foo";
|
| @@ -3219,30 +4504,38 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/instances/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_versionsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/instances/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("/instances/"));
|
| pathOffset += 11;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -3258,29 +4551,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.services.versions.instances;
|
| + api.AppsServicesVersionsInstancesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions.instances;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| var arg_versionsId = "foo";
|
| @@ -3290,30 +4586,38 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/instances/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_versionsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/instances/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("/instances/"));
|
| pathOffset += 11;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -3329,29 +4633,32 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildInstance());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) {
|
| + res
|
| + .get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId)
|
| + .then(unittest.expectAsync1(((api.Instance response) {
|
| checkInstance(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.services.versions.instances;
|
| + api.AppsServicesVersionsInstancesResourceApi res =
|
| + new api.AppengineApi(mock).apps.services.versions.instances;
|
| var arg_appsId = "foo";
|
| var arg_servicesId = "foo";
|
| var arg_versionsId = "foo";
|
| @@ -3362,30 +4669,38 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v1/apps/"));
|
| pathOffset += 8;
|
| index = path.indexOf("/services/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_appsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/services/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/services/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/versions/", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_servicesId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/versions/"));
|
| pathOffset += 10;
|
| index = path.indexOf("/instances", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_versionsId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/instances"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 10),
|
| + unittest.equals("/instances"));
|
| pathOffset += 10;
|
|
|
| var query = (req.url).query;
|
| @@ -3398,29 +4713,31 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| -
|
| + unittest.expect(
|
| + queryMap["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",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListInstancesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) {
|
| + res
|
| + .list(arg_appsId, arg_servicesId, arg_versionsId,
|
| + pageToken: arg_pageToken, pageSize: arg_pageSize)
|
| + .then(unittest.expectAsync1(((api.ListInstancesResponse response) {
|
| checkListInstancesResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
| -
|
| -
|
| }
|
| -
|
|
|