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 5f410b29b290af81c2725f4db5c0bf5610a2bee2..cb33dff18ea01d4688407f1a37cf0d4f8e2268e2 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--; |
} |
-buildUnnamed4189() { |
+buildUnnamed4024() { |
var o = new core.List<api.UrlDispatchRule>(); |
o.add(buildUrlDispatchRule()); |
o.add(buildUrlDispatchRule()); |
return o; |
} |
-checkUnnamed4189(core.List<api.UrlDispatchRule> o) { |
+checkUnnamed4024(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 = buildUnnamed4189(); |
+ o.dispatchRules = buildUnnamed4024(); |
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')); |
- checkUnnamed4189(o.dispatchRules); |
+ checkUnnamed4024(o.dispatchRules); |
unittest.expect(o.id, unittest.equals('foo')); |
unittest.expect(o.location, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
@@ -252,6 +252,7 @@ buildDebugInstanceRequest() { |
var o = new api.DebugInstanceRequest(); |
buildCounterDebugInstanceRequest++; |
if (buildCounterDebugInstanceRequest < 3) { |
+ o.sshKey = "foo"; |
} |
buildCounterDebugInstanceRequest--; |
return o; |
@@ -260,31 +261,32 @@ buildDebugInstanceRequest() { |
checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
buildCounterDebugInstanceRequest++; |
if (buildCounterDebugInstanceRequest < 3) { |
+ unittest.expect(o.sshKey, unittest.equals('foo')); |
} |
buildCounterDebugInstanceRequest--; |
} |
-buildUnnamed4190() { |
+buildUnnamed4025() { |
var o = new core.Map<core.String, api.FileInfo>(); |
o["x"] = buildFileInfo(); |
o["y"] = buildFileInfo(); |
return o; |
} |
-checkUnnamed4190(core.Map<core.String, api.FileInfo> o) { |
+checkUnnamed4025(core.Map<core.String, api.FileInfo> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkFileInfo(o["x"]); |
checkFileInfo(o["y"]); |
} |
-buildUnnamed4191() { |
+buildUnnamed4026() { |
var o = new core.List<api.SourceReference>(); |
o.add(buildSourceReference()); |
o.add(buildSourceReference()); |
return o; |
} |
-checkUnnamed4191(core.List<api.SourceReference> o) { |
+checkUnnamed4026(core.List<api.SourceReference> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkSourceReference(o[0]); |
checkSourceReference(o[1]); |
@@ -296,8 +298,8 @@ buildDeployment() { |
buildCounterDeployment++; |
if (buildCounterDeployment < 3) { |
o.container = buildContainerInfo(); |
- o.files = buildUnnamed4190(); |
- o.sourceReferences = buildUnnamed4191(); |
+ o.files = buildUnnamed4025(); |
+ o.sourceReferences = buildUnnamed4026(); |
} |
buildCounterDeployment--; |
return o; |
@@ -307,8 +309,8 @@ checkDeployment(api.Deployment o) { |
buildCounterDeployment++; |
if (buildCounterDeployment < 3) { |
checkContainerInfo(o.container); |
- checkUnnamed4190(o.files); |
- checkUnnamed4191(o.sourceReferences); |
+ checkUnnamed4025(o.files); |
+ checkUnnamed4026(o.sourceReferences); |
} |
buildCounterDeployment--; |
} |
@@ -431,6 +433,7 @@ buildInstance() { |
o.requests = 42; |
o.startTimestamp = "foo"; |
o.vmId = "foo"; |
+ o.vmIp = "foo"; |
o.vmName = "foo"; |
o.vmStatus = "foo"; |
o.vmUnlocked = true; |
@@ -454,6 +457,7 @@ checkInstance(api.Instance o) { |
unittest.expect(o.requests, unittest.equals(42)); |
unittest.expect(o.startTimestamp, unittest.equals('foo')); |
unittest.expect(o.vmId, unittest.equals('foo')); |
+ unittest.expect(o.vmIp, unittest.equals('foo')); |
unittest.expect(o.vmName, unittest.equals('foo')); |
unittest.expect(o.vmStatus, unittest.equals('foo')); |
unittest.expect(o.vmUnlocked, unittest.isTrue); |
@@ -483,14 +487,14 @@ checkLibrary(api.Library o) { |
buildCounterLibrary--; |
} |
-buildUnnamed4192() { |
+buildUnnamed4027() { |
var o = new core.List<api.Instance>(); |
o.add(buildInstance()); |
o.add(buildInstance()); |
return o; |
} |
-checkUnnamed4192(core.List<api.Instance> o) { |
+checkUnnamed4027(core.List<api.Instance> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkInstance(o[0]); |
checkInstance(o[1]); |
@@ -501,7 +505,7 @@ buildListInstancesResponse() { |
var o = new api.ListInstancesResponse(); |
buildCounterListInstancesResponse++; |
if (buildCounterListInstancesResponse < 3) { |
- o.instances = buildUnnamed4192(); |
+ o.instances = buildUnnamed4027(); |
o.nextPageToken = "foo"; |
} |
buildCounterListInstancesResponse--; |
@@ -511,20 +515,20 @@ buildListInstancesResponse() { |
checkListInstancesResponse(api.ListInstancesResponse o) { |
buildCounterListInstancesResponse++; |
if (buildCounterListInstancesResponse < 3) { |
- checkUnnamed4192(o.instances); |
+ checkUnnamed4027(o.instances); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListInstancesResponse--; |
} |
-buildUnnamed4193() { |
+buildUnnamed4028() { |
var o = new core.List<api.Location>(); |
o.add(buildLocation()); |
o.add(buildLocation()); |
return o; |
} |
-checkUnnamed4193(core.List<api.Location> o) { |
+checkUnnamed4028(core.List<api.Location> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLocation(o[0]); |
checkLocation(o[1]); |
@@ -535,7 +539,7 @@ buildListLocationsResponse() { |
var o = new api.ListLocationsResponse(); |
buildCounterListLocationsResponse++; |
if (buildCounterListLocationsResponse < 3) { |
- o.locations = buildUnnamed4193(); |
+ o.locations = buildUnnamed4028(); |
o.nextPageToken = "foo"; |
} |
buildCounterListLocationsResponse--; |
@@ -545,20 +549,20 @@ buildListLocationsResponse() { |
checkListLocationsResponse(api.ListLocationsResponse o) { |
buildCounterListLocationsResponse++; |
if (buildCounterListLocationsResponse < 3) { |
- checkUnnamed4193(o.locations); |
+ checkUnnamed4028(o.locations); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListLocationsResponse--; |
} |
-buildUnnamed4194() { |
+buildUnnamed4029() { |
var o = new core.List<api.Module>(); |
o.add(buildModule()); |
o.add(buildModule()); |
return o; |
} |
-checkUnnamed4194(core.List<api.Module> o) { |
+checkUnnamed4029(core.List<api.Module> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkModule(o[0]); |
checkModule(o[1]); |
@@ -569,7 +573,7 @@ buildListModulesResponse() { |
var o = new api.ListModulesResponse(); |
buildCounterListModulesResponse++; |
if (buildCounterListModulesResponse < 3) { |
- o.modules = buildUnnamed4194(); |
+ o.modules = buildUnnamed4029(); |
o.nextPageToken = "foo"; |
} |
buildCounterListModulesResponse--; |
@@ -579,20 +583,20 @@ buildListModulesResponse() { |
checkListModulesResponse(api.ListModulesResponse o) { |
buildCounterListModulesResponse++; |
if (buildCounterListModulesResponse < 3) { |
- checkUnnamed4194(o.modules); |
+ checkUnnamed4029(o.modules); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListModulesResponse--; |
} |
-buildUnnamed4195() { |
+buildUnnamed4030() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed4195(core.List<api.Operation> o) { |
+checkUnnamed4030(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -604,7 +608,7 @@ buildListOperationsResponse() { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed4195(); |
+ o.operations = buildUnnamed4030(); |
} |
buildCounterListOperationsResponse--; |
return o; |
@@ -614,19 +618,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed4195(o.operations); |
+ checkUnnamed4030(o.operations); |
} |
buildCounterListOperationsResponse--; |
} |
-buildUnnamed4196() { |
+buildUnnamed4031() { |
var o = new core.List<api.Version>(); |
o.add(buildVersion()); |
o.add(buildVersion()); |
return o; |
} |
-checkUnnamed4196(core.List<api.Version> o) { |
+checkUnnamed4031(core.List<api.Version> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkVersion(o[0]); |
checkVersion(o[1]); |
@@ -638,7 +642,7 @@ buildListVersionsResponse() { |
buildCounterListVersionsResponse++; |
if (buildCounterListVersionsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.versions = buildUnnamed4196(); |
+ o.versions = buildUnnamed4031(); |
} |
buildCounterListVersionsResponse--; |
return o; |
@@ -648,32 +652,32 @@ checkListVersionsResponse(api.ListVersionsResponse o) { |
buildCounterListVersionsResponse++; |
if (buildCounterListVersionsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed4196(o.versions); |
+ checkUnnamed4031(o.versions); |
} |
buildCounterListVersionsResponse--; |
} |
-buildUnnamed4197() { |
+buildUnnamed4032() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed4197(core.Map<core.String, core.String> o) { |
+checkUnnamed4032(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')); |
} |
-buildUnnamed4198() { |
+buildUnnamed4033() { |
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; |
} |
-checkUnnamed4198(core.Map<core.String, core.Object> o) { |
+checkUnnamed4033(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')); |
@@ -684,9 +688,9 @@ buildLocation() { |
var o = new api.Location(); |
buildCounterLocation++; |
if (buildCounterLocation < 3) { |
- o.labels = buildUnnamed4197(); |
+ o.labels = buildUnnamed4032(); |
o.locationId = "foo"; |
- o.metadata = buildUnnamed4198(); |
+ o.metadata = buildUnnamed4033(); |
o.name = "foo"; |
} |
buildCounterLocation--; |
@@ -696,9 +700,9 @@ buildLocation() { |
checkLocation(api.Location o) { |
buildCounterLocation++; |
if (buildCounterLocation < 3) { |
- checkUnnamed4197(o.labels); |
+ checkUnnamed4032(o.labels); |
unittest.expect(o.locationId, unittest.equals('foo')); |
- checkUnnamed4198(o.metadata); |
+ checkUnnamed4033(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
} |
buildCounterLocation--; |
@@ -767,14 +771,14 @@ checkModule(api.Module o) { |
buildCounterModule--; |
} |
-buildUnnamed4199() { |
+buildUnnamed4034() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed4199(core.List<core.String> o) { |
+checkUnnamed4034(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')); |
@@ -785,7 +789,7 @@ buildNetwork() { |
var o = new api.Network(); |
buildCounterNetwork++; |
if (buildCounterNetwork < 3) { |
- o.forwardedPorts = buildUnnamed4199(); |
+ o.forwardedPorts = buildUnnamed4034(); |
o.instanceTag = "foo"; |
o.name = "foo"; |
} |
@@ -796,7 +800,7 @@ buildNetwork() { |
checkNetwork(api.Network o) { |
buildCounterNetwork++; |
if (buildCounterNetwork < 3) { |
- checkUnnamed4199(o.forwardedPorts); |
+ checkUnnamed4034(o.forwardedPorts); |
unittest.expect(o.instanceTag, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
} |
@@ -828,27 +832,27 @@ checkNetworkUtilization(api.NetworkUtilization o) { |
buildCounterNetworkUtilization--; |
} |
-buildUnnamed4200() { |
+buildUnnamed4035() { |
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; |
} |
-checkUnnamed4200(core.Map<core.String, core.Object> o) { |
+checkUnnamed4035(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')); |
} |
-buildUnnamed4201() { |
+buildUnnamed4036() { |
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; |
} |
-checkUnnamed4201(core.Map<core.String, core.Object> o) { |
+checkUnnamed4036(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')); |
@@ -861,9 +865,9 @@ buildOperation() { |
if (buildCounterOperation < 3) { |
o.done = true; |
o.error = buildStatus(); |
- o.metadata = buildUnnamed4200(); |
+ o.metadata = buildUnnamed4035(); |
o.name = "foo"; |
- o.response = buildUnnamed4201(); |
+ o.response = buildUnnamed4036(); |
} |
buildCounterOperation--; |
return o; |
@@ -874,9 +878,9 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed4200(o.metadata); |
+ checkUnnamed4035(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed4201(o.response); |
+ checkUnnamed4036(o.response); |
} |
buildCounterOperation--; |
} |
@@ -910,6 +914,33 @@ checkOperationMetadata(api.OperationMetadata o) { |
buildCounterOperationMetadata--; |
} |
+core.int buildCounterOperationMetadataExperimental = 0; |
+buildOperationMetadataExperimental() { |
+ var o = new api.OperationMetadataExperimental(); |
+ buildCounterOperationMetadataExperimental++; |
+ if (buildCounterOperationMetadataExperimental < 3) { |
+ o.endTime = "foo"; |
+ o.insertTime = "foo"; |
+ o.method = "foo"; |
+ o.target = "foo"; |
+ o.user = "foo"; |
+ } |
+ buildCounterOperationMetadataExperimental--; |
+ return o; |
+} |
+ |
+checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { |
+ buildCounterOperationMetadataExperimental++; |
+ if (buildCounterOperationMetadataExperimental < 3) { |
+ unittest.expect(o.endTime, 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')); |
+ } |
+ buildCounterOperationMetadataExperimental--; |
+} |
+ |
core.int buildCounterOperationMetadataV1 = 0; |
buildOperationMetadataV1() { |
var o = new api.OperationMetadataV1(); |
@@ -1048,14 +1079,14 @@ checkSourceReference(api.SourceReference o) { |
buildCounterSourceReference--; |
} |
-buildUnnamed4202() { |
+buildUnnamed4037() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed4202(core.Map<core.String, core.String> o) { |
+checkUnnamed4037(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')); |
@@ -1069,7 +1100,7 @@ buildStaticDirectoryHandler() { |
o.applicationReadable = true; |
o.directory = "foo"; |
o.expiration = "foo"; |
- o.httpHeaders = buildUnnamed4202(); |
+ o.httpHeaders = buildUnnamed4037(); |
o.mimeType = "foo"; |
o.requireMatchingFile = true; |
} |
@@ -1083,21 +1114,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')); |
- checkUnnamed4202(o.httpHeaders); |
+ checkUnnamed4037(o.httpHeaders); |
unittest.expect(o.mimeType, unittest.equals('foo')); |
unittest.expect(o.requireMatchingFile, unittest.isTrue); |
} |
buildCounterStaticDirectoryHandler--; |
} |
-buildUnnamed4203() { |
+buildUnnamed4038() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed4203(core.Map<core.String, core.String> o) { |
+checkUnnamed4038(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')); |
@@ -1110,7 +1141,7 @@ buildStaticFilesHandler() { |
if (buildCounterStaticFilesHandler < 3) { |
o.applicationReadable = true; |
o.expiration = "foo"; |
- o.httpHeaders = buildUnnamed4203(); |
+ o.httpHeaders = buildUnnamed4038(); |
o.mimeType = "foo"; |
o.path = "foo"; |
o.requireMatchingFile = true; |
@@ -1125,7 +1156,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) { |
if (buildCounterStaticFilesHandler < 3) { |
unittest.expect(o.applicationReadable, unittest.isTrue); |
unittest.expect(o.expiration, unittest.equals('foo')); |
- checkUnnamed4203(o.httpHeaders); |
+ checkUnnamed4038(o.httpHeaders); |
unittest.expect(o.mimeType, unittest.equals('foo')); |
unittest.expect(o.path, unittest.equals('foo')); |
unittest.expect(o.requireMatchingFile, unittest.isTrue); |
@@ -1134,30 +1165,30 @@ checkStaticFilesHandler(api.StaticFilesHandler o) { |
buildCounterStaticFilesHandler--; |
} |
-buildUnnamed4204() { |
+buildUnnamed4039() { |
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; |
} |
-checkUnnamed4204(core.Map<core.String, core.Object> o) { |
+checkUnnamed4039(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')); |
} |
-buildUnnamed4205() { |
+buildUnnamed4040() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed4204()); |
- o.add(buildUnnamed4204()); |
+ o.add(buildUnnamed4039()); |
+ o.add(buildUnnamed4039()); |
return o; |
} |
-checkUnnamed4205(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed4040(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed4204(o[0]); |
- checkUnnamed4204(o[1]); |
+ checkUnnamed4039(o[0]); |
+ checkUnnamed4039(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -1166,7 +1197,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed4205(); |
+ o.details = buildUnnamed4040(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -1177,20 +1208,20 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed4205(o.details); |
+ checkUnnamed4040(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
} |
-buildUnnamed4206() { |
+buildUnnamed4041() { |
var o = new core.Map<core.String, core.double>(); |
o["x"] = 42.0; |
o["y"] = 42.0; |
return o; |
} |
-checkUnnamed4206(core.Map<core.String, core.double> o) { |
+checkUnnamed4041(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)); |
@@ -1201,7 +1232,7 @@ buildTrafficSplit() { |
var o = new api.TrafficSplit(); |
buildCounterTrafficSplit++; |
if (buildCounterTrafficSplit < 3) { |
- o.allocations = buildUnnamed4206(); |
+ o.allocations = buildUnnamed4041(); |
o.shardBy = "foo"; |
} |
buildCounterTrafficSplit--; |
@@ -1211,7 +1242,7 @@ buildTrafficSplit() { |
checkTrafficSplit(api.TrafficSplit o) { |
buildCounterTrafficSplit++; |
if (buildCounterTrafficSplit < 3) { |
- checkUnnamed4206(o.allocations); |
+ checkUnnamed4041(o.allocations); |
unittest.expect(o.shardBy, unittest.equals('foo')); |
} |
buildCounterTrafficSplit--; |
@@ -1275,79 +1306,79 @@ checkUrlMap(api.UrlMap o) { |
buildCounterUrlMap--; |
} |
-buildUnnamed4207() { |
+buildUnnamed4042() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed4207(core.Map<core.String, core.String> o) { |
+checkUnnamed4042(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')); |
} |
-buildUnnamed4208() { |
+buildUnnamed4043() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed4208(core.Map<core.String, core.String> o) { |
+checkUnnamed4043(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')); |
} |
-buildUnnamed4209() { |
+buildUnnamed4044() { |
var o = new core.List<api.ErrorHandler>(); |
o.add(buildErrorHandler()); |
o.add(buildErrorHandler()); |
return o; |
} |
-checkUnnamed4209(core.List<api.ErrorHandler> o) { |
+checkUnnamed4044(core.List<api.ErrorHandler> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkErrorHandler(o[0]); |
checkErrorHandler(o[1]); |
} |
-buildUnnamed4210() { |
+buildUnnamed4045() { |
var o = new core.List<api.UrlMap>(); |
o.add(buildUrlMap()); |
o.add(buildUrlMap()); |
return o; |
} |
-checkUnnamed4210(core.List<api.UrlMap> o) { |
+checkUnnamed4045(core.List<api.UrlMap> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkUrlMap(o[0]); |
checkUrlMap(o[1]); |
} |
-buildUnnamed4211() { |
+buildUnnamed4046() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed4211(core.List<core.String> o) { |
+checkUnnamed4046(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')); |
} |
-buildUnnamed4212() { |
+buildUnnamed4047() { |
var o = new core.List<api.Library>(); |
o.add(buildLibrary()); |
o.add(buildLibrary()); |
return o; |
} |
-checkUnnamed4212(core.List<api.Library> o) { |
+checkUnnamed4047(core.List<api.Library> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLibrary(o[0]); |
checkLibrary(o[1]); |
@@ -1361,20 +1392,20 @@ buildVersion() { |
o.apiConfig = buildApiConfigHandler(); |
o.automaticScaling = buildAutomaticScaling(); |
o.basicScaling = buildBasicScaling(); |
- o.betaSettings = buildUnnamed4207(); |
+ o.betaSettings = buildUnnamed4042(); |
o.creationTime = "foo"; |
o.defaultExpiration = "foo"; |
o.deployer = "foo"; |
o.deployment = buildDeployment(); |
o.env = "foo"; |
- o.envVariables = buildUnnamed4208(); |
- o.errorHandlers = buildUnnamed4209(); |
- o.handlers = buildUnnamed4210(); |
+ o.envVariables = buildUnnamed4043(); |
+ o.errorHandlers = buildUnnamed4044(); |
+ o.handlers = buildUnnamed4045(); |
o.healthCheck = buildHealthCheck(); |
o.id = "foo"; |
- o.inboundServices = buildUnnamed4211(); |
+ o.inboundServices = buildUnnamed4046(); |
o.instanceClass = "foo"; |
- o.libraries = buildUnnamed4212(); |
+ o.libraries = buildUnnamed4047(); |
o.manualScaling = buildManualScaling(); |
o.name = "foo"; |
o.network = buildNetwork(); |
@@ -1395,20 +1426,20 @@ checkVersion(api.Version o) { |
checkApiConfigHandler(o.apiConfig); |
checkAutomaticScaling(o.automaticScaling); |
checkBasicScaling(o.basicScaling); |
- checkUnnamed4207(o.betaSettings); |
+ checkUnnamed4042(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')); |
- checkUnnamed4208(o.envVariables); |
- checkUnnamed4209(o.errorHandlers); |
- checkUnnamed4210(o.handlers); |
+ checkUnnamed4043(o.envVariables); |
+ checkUnnamed4044(o.errorHandlers); |
+ checkUnnamed4045(o.handlers); |
checkHealthCheck(o.healthCheck); |
unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed4211(o.inboundServices); |
+ checkUnnamed4046(o.inboundServices); |
unittest.expect(o.instanceClass, unittest.equals('foo')); |
- checkUnnamed4212(o.libraries); |
+ checkUnnamed4047(o.libraries); |
checkManualScaling(o.manualScaling); |
unittest.expect(o.name, unittest.equals('foo')); |
checkNetwork(o.network); |
@@ -1676,6 +1707,15 @@ main() { |
}); |
+ unittest.group("obj-schema-OperationMetadataExperimental", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildOperationMetadataExperimental(); |
+ var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); |
+ checkOperationMetadataExperimental(od); |
+ }); |
+ }); |
+ |
+ |
unittest.group("obj-schema-OperationMetadataV1", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadataV1(); |
@@ -1890,6 +1930,59 @@ main() { |
}))); |
}); |
+ 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_mask = "foo"; |
+ mock.register(unittest.expectAsync((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 + 13), unittest.equals("v1beta4/apps/")); |
+ pathOffset += 13; |
+ 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["mask"].first, unittest.equals(arg_mask)); |
+ |
+ |
+ 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, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { |
+ checkOperation(response); |
+ }))); |
+ }); |
+ |
}); |