| Index: generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| diff --git a/generated/googleapis_beta/test/appengine/v1beta4_test.dart b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| index cb33dff18ea01d4688407f1a37cf0d4f8e2268e2..7767571c780f617a0e6eed7d6ad26e74a67a656a 100644
|
| --- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| +++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| @@ -97,14 +97,14 @@ checkApiEndpointHandler(api.ApiEndpointHandler o) {
|
| buildCounterApiEndpointHandler--;
|
| }
|
|
|
| -buildUnnamed4024() {
|
| +buildUnnamed3738() {
|
| var o = new core.List<api.UrlDispatchRule>();
|
| o.add(buildUrlDispatchRule());
|
| o.add(buildUrlDispatchRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4024(core.List<api.UrlDispatchRule> o) {
|
| +checkUnnamed3738(core.List<api.UrlDispatchRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlDispatchRule(o[0]);
|
| checkUrlDispatchRule(o[1]);
|
| @@ -120,7 +120,7 @@ buildApplication() {
|
| o.defaultBucket = "foo";
|
| o.defaultCookieExpiration = "foo";
|
| o.defaultHostname = "foo";
|
| - o.dispatchRules = buildUnnamed4024();
|
| + o.dispatchRules = buildUnnamed3738();
|
| o.id = "foo";
|
| o.location = "foo";
|
| o.name = "foo";
|
| @@ -137,7 +137,7 @@ 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'));
|
| - checkUnnamed4024(o.dispatchRules);
|
| + checkUnnamed3738(o.dispatchRules);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.location, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -266,27 +266,27 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) {
|
| buildCounterDebugInstanceRequest--;
|
| }
|
|
|
| -buildUnnamed4025() {
|
| +buildUnnamed3739() {
|
| var o = new core.Map<core.String, api.FileInfo>();
|
| o["x"] = buildFileInfo();
|
| o["y"] = buildFileInfo();
|
| return o;
|
| }
|
|
|
| -checkUnnamed4025(core.Map<core.String, api.FileInfo> o) {
|
| +checkUnnamed3739(core.Map<core.String, api.FileInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFileInfo(o["x"]);
|
| checkFileInfo(o["y"]);
|
| }
|
|
|
| -buildUnnamed4026() {
|
| +buildUnnamed3740() {
|
| var o = new core.List<api.SourceReference>();
|
| o.add(buildSourceReference());
|
| o.add(buildSourceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4026(core.List<api.SourceReference> o) {
|
| +checkUnnamed3740(core.List<api.SourceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSourceReference(o[0]);
|
| checkSourceReference(o[1]);
|
| @@ -298,8 +298,8 @@ buildDeployment() {
|
| buildCounterDeployment++;
|
| if (buildCounterDeployment < 3) {
|
| o.container = buildContainerInfo();
|
| - o.files = buildUnnamed4025();
|
| - o.sourceReferences = buildUnnamed4026();
|
| + o.files = buildUnnamed3739();
|
| + o.sourceReferences = buildUnnamed3740();
|
| }
|
| buildCounterDeployment--;
|
| return o;
|
| @@ -309,8 +309,8 @@ checkDeployment(api.Deployment o) {
|
| buildCounterDeployment++;
|
| if (buildCounterDeployment < 3) {
|
| checkContainerInfo(o.container);
|
| - checkUnnamed4025(o.files);
|
| - checkUnnamed4026(o.sourceReferences);
|
| + checkUnnamed3739(o.files);
|
| + checkUnnamed3740(o.sourceReferences);
|
| }
|
| buildCounterDeployment--;
|
| }
|
| @@ -487,14 +487,14 @@ checkLibrary(api.Library o) {
|
| buildCounterLibrary--;
|
| }
|
|
|
| -buildUnnamed4027() {
|
| +buildUnnamed3741() {
|
| var o = new core.List<api.Instance>();
|
| o.add(buildInstance());
|
| o.add(buildInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4027(core.List<api.Instance> o) {
|
| +checkUnnamed3741(core.List<api.Instance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstance(o[0]);
|
| checkInstance(o[1]);
|
| @@ -505,7 +505,7 @@ buildListInstancesResponse() {
|
| var o = new api.ListInstancesResponse();
|
| buildCounterListInstancesResponse++;
|
| if (buildCounterListInstancesResponse < 3) {
|
| - o.instances = buildUnnamed4027();
|
| + o.instances = buildUnnamed3741();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListInstancesResponse--;
|
| @@ -515,20 +515,20 @@ buildListInstancesResponse() {
|
| checkListInstancesResponse(api.ListInstancesResponse o) {
|
| buildCounterListInstancesResponse++;
|
| if (buildCounterListInstancesResponse < 3) {
|
| - checkUnnamed4027(o.instances);
|
| + checkUnnamed3741(o.instances);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListInstancesResponse--;
|
| }
|
|
|
| -buildUnnamed4028() {
|
| +buildUnnamed3742() {
|
| var o = new core.List<api.Location>();
|
| o.add(buildLocation());
|
| o.add(buildLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4028(core.List<api.Location> o) {
|
| +checkUnnamed3742(core.List<api.Location> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocation(o[0]);
|
| checkLocation(o[1]);
|
| @@ -539,7 +539,7 @@ buildListLocationsResponse() {
|
| var o = new api.ListLocationsResponse();
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - o.locations = buildUnnamed4028();
|
| + o.locations = buildUnnamed3742();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLocationsResponse--;
|
| @@ -549,20 +549,20 @@ buildListLocationsResponse() {
|
| checkListLocationsResponse(api.ListLocationsResponse o) {
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - checkUnnamed4028(o.locations);
|
| + checkUnnamed3742(o.locations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLocationsResponse--;
|
| }
|
|
|
| -buildUnnamed4029() {
|
| +buildUnnamed3743() {
|
| var o = new core.List<api.Module>();
|
| o.add(buildModule());
|
| o.add(buildModule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4029(core.List<api.Module> o) {
|
| +checkUnnamed3743(core.List<api.Module> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkModule(o[0]);
|
| checkModule(o[1]);
|
| @@ -573,7 +573,7 @@ buildListModulesResponse() {
|
| var o = new api.ListModulesResponse();
|
| buildCounterListModulesResponse++;
|
| if (buildCounterListModulesResponse < 3) {
|
| - o.modules = buildUnnamed4029();
|
| + o.modules = buildUnnamed3743();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListModulesResponse--;
|
| @@ -583,20 +583,20 @@ buildListModulesResponse() {
|
| checkListModulesResponse(api.ListModulesResponse o) {
|
| buildCounterListModulesResponse++;
|
| if (buildCounterListModulesResponse < 3) {
|
| - checkUnnamed4029(o.modules);
|
| + checkUnnamed3743(o.modules);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListModulesResponse--;
|
| }
|
|
|
| -buildUnnamed4030() {
|
| +buildUnnamed3744() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4030(core.List<api.Operation> o) {
|
| +checkUnnamed3744(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -608,7 +608,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed4030();
|
| + o.operations = buildUnnamed3744();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -618,19 +618,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed4030(o.operations);
|
| + checkUnnamed3744(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed4031() {
|
| +buildUnnamed3745() {
|
| var o = new core.List<api.Version>();
|
| o.add(buildVersion());
|
| o.add(buildVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4031(core.List<api.Version> o) {
|
| +checkUnnamed3745(core.List<api.Version> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVersion(o[0]);
|
| checkVersion(o[1]);
|
| @@ -642,7 +642,7 @@ buildListVersionsResponse() {
|
| buildCounterListVersionsResponse++;
|
| if (buildCounterListVersionsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.versions = buildUnnamed4031();
|
| + o.versions = buildUnnamed3745();
|
| }
|
| buildCounterListVersionsResponse--;
|
| return o;
|
| @@ -652,32 +652,32 @@ checkListVersionsResponse(api.ListVersionsResponse o) {
|
| buildCounterListVersionsResponse++;
|
| if (buildCounterListVersionsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed4031(o.versions);
|
| + checkUnnamed3745(o.versions);
|
| }
|
| buildCounterListVersionsResponse--;
|
| }
|
|
|
| -buildUnnamed4032() {
|
| +buildUnnamed3746() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed4032(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3746(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'));
|
| }
|
|
|
| -buildUnnamed4033() {
|
| +buildUnnamed3747() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed4033(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3747(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'));
|
| @@ -688,9 +688,9 @@ buildLocation() {
|
| var o = new api.Location();
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - o.labels = buildUnnamed4032();
|
| + o.labels = buildUnnamed3746();
|
| o.locationId = "foo";
|
| - o.metadata = buildUnnamed4033();
|
| + o.metadata = buildUnnamed3747();
|
| o.name = "foo";
|
| }
|
| buildCounterLocation--;
|
| @@ -700,9 +700,9 @@ buildLocation() {
|
| checkLocation(api.Location o) {
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - checkUnnamed4032(o.labels);
|
| + checkUnnamed3746(o.labels);
|
| unittest.expect(o.locationId, unittest.equals('foo'));
|
| - checkUnnamed4033(o.metadata);
|
| + checkUnnamed3747(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLocation--;
|
| @@ -771,14 +771,14 @@ checkModule(api.Module o) {
|
| buildCounterModule--;
|
| }
|
|
|
| -buildUnnamed4034() {
|
| +buildUnnamed3748() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed4034(core.List<core.String> o) {
|
| +checkUnnamed3748(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'));
|
| @@ -789,7 +789,7 @@ buildNetwork() {
|
| var o = new api.Network();
|
| buildCounterNetwork++;
|
| if (buildCounterNetwork < 3) {
|
| - o.forwardedPorts = buildUnnamed4034();
|
| + o.forwardedPorts = buildUnnamed3748();
|
| o.instanceTag = "foo";
|
| o.name = "foo";
|
| }
|
| @@ -800,7 +800,7 @@ buildNetwork() {
|
| checkNetwork(api.Network o) {
|
| buildCounterNetwork++;
|
| if (buildCounterNetwork < 3) {
|
| - checkUnnamed4034(o.forwardedPorts);
|
| + checkUnnamed3748(o.forwardedPorts);
|
| unittest.expect(o.instanceTag, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| @@ -832,27 +832,27 @@ checkNetworkUtilization(api.NetworkUtilization o) {
|
| buildCounterNetworkUtilization--;
|
| }
|
|
|
| -buildUnnamed4035() {
|
| +buildUnnamed3749() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed4035(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3749(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'));
|
| }
|
|
|
| -buildUnnamed4036() {
|
| +buildUnnamed3750() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed4036(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3750(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'));
|
| @@ -865,9 +865,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed4035();
|
| + o.metadata = buildUnnamed3749();
|
| o.name = "foo";
|
| - o.response = buildUnnamed4036();
|
| + o.response = buildUnnamed3750();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -878,9 +878,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed4035(o.metadata);
|
| + checkUnnamed3749(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed4036(o.response);
|
| + checkUnnamed3750(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -941,16 +941,31 @@ checkOperationMetadataExperimental(api.OperationMetadataExperimental o) {
|
| buildCounterOperationMetadataExperimental--;
|
| }
|
|
|
| +buildUnnamed3751() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed3751(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 buildCounterOperationMetadataV1 = 0;
|
| buildOperationMetadataV1() {
|
| var o = new api.OperationMetadataV1();
|
| buildCounterOperationMetadataV1++;
|
| if (buildCounterOperationMetadataV1 < 3) {
|
| o.endTime = "foo";
|
| + o.ephemeralMessage = "foo";
|
| o.insertTime = "foo";
|
| o.method = "foo";
|
| o.target = "foo";
|
| o.user = "foo";
|
| + o.warning = buildUnnamed3751();
|
| }
|
| buildCounterOperationMetadataV1--;
|
| return o;
|
| @@ -960,10 +975,12 @@ checkOperationMetadataV1(api.OperationMetadataV1 o) {
|
| buildCounterOperationMetadataV1++;
|
| if (buildCounterOperationMetadataV1 < 3) {
|
| unittest.expect(o.endTime, unittest.equals('foo'));
|
| + unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
|
| unittest.expect(o.insertTime, unittest.equals('foo'));
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| unittest.expect(o.user, unittest.equals('foo'));
|
| + checkUnnamed3751(o.warning);
|
| }
|
| buildCounterOperationMetadataV1--;
|
| }
|
| @@ -1016,6 +1033,19 @@ checkRequestUtilization(api.RequestUtilization o) {
|
| buildCounterRequestUtilization--;
|
| }
|
|
|
| +buildUnnamed3752() {
|
| + var o = new core.List<api.Volume>();
|
| + o.add(buildVolume());
|
| + o.add(buildVolume());
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed3752(core.List<api.Volume> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + checkVolume(o[0]);
|
| + checkVolume(o[1]);
|
| +}
|
| +
|
| core.int buildCounterResources = 0;
|
| buildResources() {
|
| var o = new api.Resources();
|
| @@ -1024,6 +1054,7 @@ buildResources() {
|
| o.cpu = 42.0;
|
| o.diskGb = 42.0;
|
| o.memoryGb = 42.0;
|
| + o.volumes = buildUnnamed3752();
|
| }
|
| buildCounterResources--;
|
| return o;
|
| @@ -1035,6 +1066,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));
|
| + checkUnnamed3752(o.volumes);
|
| }
|
| buildCounterResources--;
|
| }
|
| @@ -1079,14 +1111,14 @@ checkSourceReference(api.SourceReference o) {
|
| buildCounterSourceReference--;
|
| }
|
|
|
| -buildUnnamed4037() {
|
| +buildUnnamed3753() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed4037(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3753(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'));
|
| @@ -1100,7 +1132,7 @@ buildStaticDirectoryHandler() {
|
| o.applicationReadable = true;
|
| o.directory = "foo";
|
| o.expiration = "foo";
|
| - o.httpHeaders = buildUnnamed4037();
|
| + o.httpHeaders = buildUnnamed3753();
|
| o.mimeType = "foo";
|
| o.requireMatchingFile = true;
|
| }
|
| @@ -1114,21 +1146,21 @@ checkStaticDirectoryHandler(api.StaticDirectoryHandler o) {
|
| unittest.expect(o.applicationReadable, unittest.isTrue);
|
| unittest.expect(o.directory, unittest.equals('foo'));
|
| unittest.expect(o.expiration, unittest.equals('foo'));
|
| - checkUnnamed4037(o.httpHeaders);
|
| + checkUnnamed3753(o.httpHeaders);
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.requireMatchingFile, unittest.isTrue);
|
| }
|
| buildCounterStaticDirectoryHandler--;
|
| }
|
|
|
| -buildUnnamed4038() {
|
| +buildUnnamed3754() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed4038(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3754(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'));
|
| @@ -1141,7 +1173,7 @@ buildStaticFilesHandler() {
|
| if (buildCounterStaticFilesHandler < 3) {
|
| o.applicationReadable = true;
|
| o.expiration = "foo";
|
| - o.httpHeaders = buildUnnamed4038();
|
| + o.httpHeaders = buildUnnamed3754();
|
| o.mimeType = "foo";
|
| o.path = "foo";
|
| o.requireMatchingFile = true;
|
| @@ -1156,7 +1188,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
|
| if (buildCounterStaticFilesHandler < 3) {
|
| unittest.expect(o.applicationReadable, unittest.isTrue);
|
| unittest.expect(o.expiration, unittest.equals('foo'));
|
| - checkUnnamed4038(o.httpHeaders);
|
| + checkUnnamed3754(o.httpHeaders);
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.path, unittest.equals('foo'));
|
| unittest.expect(o.requireMatchingFile, unittest.isTrue);
|
| @@ -1165,30 +1197,30 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
|
| buildCounterStaticFilesHandler--;
|
| }
|
|
|
| -buildUnnamed4039() {
|
| +buildUnnamed3755() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed4039(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3755(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'));
|
| }
|
|
|
| -buildUnnamed4040() {
|
| +buildUnnamed3756() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed4039());
|
| - o.add(buildUnnamed4039());
|
| + o.add(buildUnnamed3755());
|
| + o.add(buildUnnamed3755());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4040(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed3756(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed4039(o[0]);
|
| - checkUnnamed4039(o[1]);
|
| + checkUnnamed3755(o[0]);
|
| + checkUnnamed3755(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1197,7 +1229,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed4040();
|
| + o.details = buildUnnamed3756();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1208,20 +1240,20 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed4040(o.details);
|
| + checkUnnamed3756(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| }
|
|
|
| -buildUnnamed4041() {
|
| +buildUnnamed3757() {
|
| var o = new core.Map<core.String, core.double>();
|
| o["x"] = 42.0;
|
| o["y"] = 42.0;
|
| return o;
|
| }
|
|
|
| -checkUnnamed4041(core.Map<core.String, core.double> o) {
|
| +checkUnnamed3757(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));
|
| @@ -1232,7 +1264,7 @@ buildTrafficSplit() {
|
| var o = new api.TrafficSplit();
|
| buildCounterTrafficSplit++;
|
| if (buildCounterTrafficSplit < 3) {
|
| - o.allocations = buildUnnamed4041();
|
| + o.allocations = buildUnnamed3757();
|
| o.shardBy = "foo";
|
| }
|
| buildCounterTrafficSplit--;
|
| @@ -1242,7 +1274,7 @@ buildTrafficSplit() {
|
| checkTrafficSplit(api.TrafficSplit o) {
|
| buildCounterTrafficSplit++;
|
| if (buildCounterTrafficSplit < 3) {
|
| - checkUnnamed4041(o.allocations);
|
| + checkUnnamed3757(o.allocations);
|
| unittest.expect(o.shardBy, unittest.equals('foo'));
|
| }
|
| buildCounterTrafficSplit--;
|
| @@ -1306,79 +1338,79 @@ checkUrlMap(api.UrlMap o) {
|
| buildCounterUrlMap--;
|
| }
|
|
|
| -buildUnnamed4042() {
|
| +buildUnnamed3758() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed4042(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3758(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'));
|
| }
|
|
|
| -buildUnnamed4043() {
|
| +buildUnnamed3759() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed4043(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3759(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'));
|
| }
|
|
|
| -buildUnnamed4044() {
|
| +buildUnnamed3760() {
|
| var o = new core.List<api.ErrorHandler>();
|
| o.add(buildErrorHandler());
|
| o.add(buildErrorHandler());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4044(core.List<api.ErrorHandler> o) {
|
| +checkUnnamed3760(core.List<api.ErrorHandler> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkErrorHandler(o[0]);
|
| checkErrorHandler(o[1]);
|
| }
|
|
|
| -buildUnnamed4045() {
|
| +buildUnnamed3761() {
|
| var o = new core.List<api.UrlMap>();
|
| o.add(buildUrlMap());
|
| o.add(buildUrlMap());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4045(core.List<api.UrlMap> o) {
|
| +checkUnnamed3761(core.List<api.UrlMap> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlMap(o[0]);
|
| checkUrlMap(o[1]);
|
| }
|
|
|
| -buildUnnamed4046() {
|
| +buildUnnamed3762() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed4046(core.List<core.String> o) {
|
| +checkUnnamed3762(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'));
|
| }
|
|
|
| -buildUnnamed4047() {
|
| +buildUnnamed3763() {
|
| var o = new core.List<api.Library>();
|
| o.add(buildLibrary());
|
| o.add(buildLibrary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed4047(core.List<api.Library> o) {
|
| +checkUnnamed3763(core.List<api.Library> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLibrary(o[0]);
|
| checkLibrary(o[1]);
|
| @@ -1392,20 +1424,20 @@ buildVersion() {
|
| o.apiConfig = buildApiConfigHandler();
|
| o.automaticScaling = buildAutomaticScaling();
|
| o.basicScaling = buildBasicScaling();
|
| - o.betaSettings = buildUnnamed4042();
|
| + o.betaSettings = buildUnnamed3758();
|
| o.creationTime = "foo";
|
| o.defaultExpiration = "foo";
|
| o.deployer = "foo";
|
| o.deployment = buildDeployment();
|
| o.env = "foo";
|
| - o.envVariables = buildUnnamed4043();
|
| - o.errorHandlers = buildUnnamed4044();
|
| - o.handlers = buildUnnamed4045();
|
| + o.envVariables = buildUnnamed3759();
|
| + o.errorHandlers = buildUnnamed3760();
|
| + o.handlers = buildUnnamed3761();
|
| o.healthCheck = buildHealthCheck();
|
| o.id = "foo";
|
| - o.inboundServices = buildUnnamed4046();
|
| + o.inboundServices = buildUnnamed3762();
|
| o.instanceClass = "foo";
|
| - o.libraries = buildUnnamed4047();
|
| + o.libraries = buildUnnamed3763();
|
| o.manualScaling = buildManualScaling();
|
| o.name = "foo";
|
| o.network = buildNetwork();
|
| @@ -1426,20 +1458,20 @@ checkVersion(api.Version o) {
|
| checkApiConfigHandler(o.apiConfig);
|
| checkAutomaticScaling(o.automaticScaling);
|
| checkBasicScaling(o.basicScaling);
|
| - checkUnnamed4042(o.betaSettings);
|
| + checkUnnamed3758(o.betaSettings);
|
| unittest.expect(o.creationTime, unittest.equals('foo'));
|
| unittest.expect(o.defaultExpiration, unittest.equals('foo'));
|
| unittest.expect(o.deployer, unittest.equals('foo'));
|
| checkDeployment(o.deployment);
|
| unittest.expect(o.env, unittest.equals('foo'));
|
| - checkUnnamed4043(o.envVariables);
|
| - checkUnnamed4044(o.errorHandlers);
|
| - checkUnnamed4045(o.handlers);
|
| + checkUnnamed3759(o.envVariables);
|
| + checkUnnamed3760(o.errorHandlers);
|
| + checkUnnamed3761(o.handlers);
|
| checkHealthCheck(o.healthCheck);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed4046(o.inboundServices);
|
| + checkUnnamed3762(o.inboundServices);
|
| unittest.expect(o.instanceClass, unittest.equals('foo'));
|
| - checkUnnamed4047(o.libraries);
|
| + checkUnnamed3763(o.libraries);
|
| checkManualScaling(o.manualScaling);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkNetwork(o.network);
|
| @@ -1453,6 +1485,29 @@ checkVersion(api.Version o) {
|
| buildCounterVersion--;
|
| }
|
|
|
| +core.int buildCounterVolume = 0;
|
| +buildVolume() {
|
| + var o = new api.Volume();
|
| + buildCounterVolume++;
|
| + if (buildCounterVolume < 3) {
|
| + o.name = "foo";
|
| + o.sizeGb = 42.0;
|
| + o.volumeType = "foo";
|
| + }
|
| + buildCounterVolume--;
|
| + return o;
|
| +}
|
| +
|
| +checkVolume(api.Volume o) {
|
| + buildCounterVolume++;
|
| + if (buildCounterVolume < 3) {
|
| + unittest.expect(o.name, unittest.equals('foo'));
|
| + unittest.expect(o.sizeGb, unittest.equals(42.0));
|
| + unittest.expect(o.volumeType, unittest.equals('foo'));
|
| + }
|
| + buildCounterVolume--;
|
| +}
|
| +
|
|
|
| main() {
|
| unittest.group("obj-schema-ApiConfigHandler", () {
|
| @@ -1833,6 +1888,15 @@ main() {
|
| });
|
|
|
|
|
| + 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("resource-AppsResourceApi", () {
|
| unittest.test("method--create", () {
|
|
|
|
|