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 0c4734f7801711a18afd7b6b282da903de03c2fa..5bcf128863b3da174422f14f2bbb8b187a145cf0 100644 |
--- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart |
+++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis_beta.appengine.v1beta4.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_beta/appengine/v1beta4.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--; |
} |
-buildUnnamed3525() { |
+buildUnnamed3533() { |
var o = new core.List<api.UrlDispatchRule>(); |
o.add(buildUrlDispatchRule()); |
o.add(buildUrlDispatchRule()); |
return o; |
} |
-checkUnnamed3525(core.List<api.UrlDispatchRule> o) { |
+checkUnnamed3533(core.List<api.UrlDispatchRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkUrlDispatchRule(o[0]); |
checkUrlDispatchRule(o[1]); |
@@ -120,7 +119,7 @@ buildApplication() { |
o.defaultBucket = "foo"; |
o.defaultCookieExpiration = "foo"; |
o.defaultHostname = "foo"; |
- o.dispatchRules = buildUnnamed3525(); |
+ o.dispatchRules = buildUnnamed3533(); |
o.iap = buildIdentityAwareProxy(); |
o.id = "foo"; |
o.location = "foo"; |
@@ -138,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')); |
- checkUnnamed3525(o.dispatchRules); |
+ checkUnnamed3533(o.dispatchRules); |
checkIdentityAwareProxy(o.iap); |
unittest.expect(o.id, unittest.equals('foo')); |
unittest.expect(o.location, unittest.equals('foo')); |
@@ -268,27 +267,27 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
buildCounterDebugInstanceRequest--; |
} |
-buildUnnamed3526() { |
+buildUnnamed3534() { |
var o = new core.Map<core.String, api.FileInfo>(); |
o["x"] = buildFileInfo(); |
o["y"] = buildFileInfo(); |
return o; |
} |
-checkUnnamed3526(core.Map<core.String, api.FileInfo> o) { |
+checkUnnamed3534(core.Map<core.String, api.FileInfo> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkFileInfo(o["x"]); |
checkFileInfo(o["y"]); |
} |
-buildUnnamed3527() { |
+buildUnnamed3535() { |
var o = new core.List<api.SourceReference>(); |
o.add(buildSourceReference()); |
o.add(buildSourceReference()); |
return o; |
} |
-checkUnnamed3527(core.List<api.SourceReference> o) { |
+checkUnnamed3535(core.List<api.SourceReference> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkSourceReference(o[0]); |
checkSourceReference(o[1]); |
@@ -300,8 +299,8 @@ buildDeployment() { |
buildCounterDeployment++; |
if (buildCounterDeployment < 3) { |
o.container = buildContainerInfo(); |
- o.files = buildUnnamed3526(); |
- o.sourceReferences = buildUnnamed3527(); |
+ o.files = buildUnnamed3534(); |
+ o.sourceReferences = buildUnnamed3535(); |
} |
buildCounterDeployment--; |
return o; |
@@ -311,8 +310,8 @@ checkDeployment(api.Deployment o) { |
buildCounterDeployment++; |
if (buildCounterDeployment < 3) { |
checkContainerInfo(o.container); |
- checkUnnamed3526(o.files); |
- checkUnnamed3527(o.sourceReferences); |
+ checkUnnamed3534(o.files); |
+ checkUnnamed3535(o.sourceReferences); |
} |
buildCounterDeployment--; |
} |
@@ -514,14 +513,14 @@ checkLibrary(api.Library o) { |
buildCounterLibrary--; |
} |
-buildUnnamed3528() { |
+buildUnnamed3536() { |
var o = new core.List<api.Instance>(); |
o.add(buildInstance()); |
o.add(buildInstance()); |
return o; |
} |
-checkUnnamed3528(core.List<api.Instance> o) { |
+checkUnnamed3536(core.List<api.Instance> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkInstance(o[0]); |
checkInstance(o[1]); |
@@ -532,7 +531,7 @@ buildListInstancesResponse() { |
var o = new api.ListInstancesResponse(); |
buildCounterListInstancesResponse++; |
if (buildCounterListInstancesResponse < 3) { |
- o.instances = buildUnnamed3528(); |
+ o.instances = buildUnnamed3536(); |
o.nextPageToken = "foo"; |
} |
buildCounterListInstancesResponse--; |
@@ -542,20 +541,20 @@ buildListInstancesResponse() { |
checkListInstancesResponse(api.ListInstancesResponse o) { |
buildCounterListInstancesResponse++; |
if (buildCounterListInstancesResponse < 3) { |
- checkUnnamed3528(o.instances); |
+ checkUnnamed3536(o.instances); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListInstancesResponse--; |
} |
-buildUnnamed3529() { |
+buildUnnamed3537() { |
var o = new core.List<api.Location>(); |
o.add(buildLocation()); |
o.add(buildLocation()); |
return o; |
} |
-checkUnnamed3529(core.List<api.Location> o) { |
+checkUnnamed3537(core.List<api.Location> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLocation(o[0]); |
checkLocation(o[1]); |
@@ -566,7 +565,7 @@ buildListLocationsResponse() { |
var o = new api.ListLocationsResponse(); |
buildCounterListLocationsResponse++; |
if (buildCounterListLocationsResponse < 3) { |
- o.locations = buildUnnamed3529(); |
+ o.locations = buildUnnamed3537(); |
o.nextPageToken = "foo"; |
} |
buildCounterListLocationsResponse--; |
@@ -576,20 +575,20 @@ buildListLocationsResponse() { |
checkListLocationsResponse(api.ListLocationsResponse o) { |
buildCounterListLocationsResponse++; |
if (buildCounterListLocationsResponse < 3) { |
- checkUnnamed3529(o.locations); |
+ checkUnnamed3537(o.locations); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListLocationsResponse--; |
} |
-buildUnnamed3530() { |
+buildUnnamed3538() { |
var o = new core.List<api.Module>(); |
o.add(buildModule()); |
o.add(buildModule()); |
return o; |
} |
-checkUnnamed3530(core.List<api.Module> o) { |
+checkUnnamed3538(core.List<api.Module> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkModule(o[0]); |
checkModule(o[1]); |
@@ -600,7 +599,7 @@ buildListModulesResponse() { |
var o = new api.ListModulesResponse(); |
buildCounterListModulesResponse++; |
if (buildCounterListModulesResponse < 3) { |
- o.modules = buildUnnamed3530(); |
+ o.modules = buildUnnamed3538(); |
o.nextPageToken = "foo"; |
} |
buildCounterListModulesResponse--; |
@@ -610,20 +609,20 @@ buildListModulesResponse() { |
checkListModulesResponse(api.ListModulesResponse o) { |
buildCounterListModulesResponse++; |
if (buildCounterListModulesResponse < 3) { |
- checkUnnamed3530(o.modules); |
+ checkUnnamed3538(o.modules); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListModulesResponse--; |
} |
-buildUnnamed3531() { |
+buildUnnamed3539() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed3531(core.List<api.Operation> o) { |
+checkUnnamed3539(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -635,7 +634,7 @@ buildListOperationsResponse() { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed3531(); |
+ o.operations = buildUnnamed3539(); |
} |
buildCounterListOperationsResponse--; |
return o; |
@@ -645,19 +644,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed3531(o.operations); |
+ checkUnnamed3539(o.operations); |
} |
buildCounterListOperationsResponse--; |
} |
-buildUnnamed3532() { |
+buildUnnamed3540() { |
var o = new core.List<api.Version>(); |
o.add(buildVersion()); |
o.add(buildVersion()); |
return o; |
} |
-checkUnnamed3532(core.List<api.Version> o) { |
+checkUnnamed3540(core.List<api.Version> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkVersion(o[0]); |
checkVersion(o[1]); |
@@ -669,7 +668,7 @@ buildListVersionsResponse() { |
buildCounterListVersionsResponse++; |
if (buildCounterListVersionsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.versions = buildUnnamed3532(); |
+ o.versions = buildUnnamed3540(); |
} |
buildCounterListVersionsResponse--; |
return o; |
@@ -679,35 +678,51 @@ checkListVersionsResponse(api.ListVersionsResponse o) { |
buildCounterListVersionsResponse++; |
if (buildCounterListVersionsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed3532(o.versions); |
+ checkUnnamed3540(o.versions); |
} |
buildCounterListVersionsResponse--; |
} |
-buildUnnamed3533() { |
+buildUnnamed3541() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed3533(core.Map<core.String, core.String> o) { |
+checkUnnamed3541(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')); |
} |
-buildUnnamed3534() { |
+buildUnnamed3542() { |
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; |
} |
-checkUnnamed3534(core.Map<core.String, core.Object> o) { |
+checkUnnamed3542(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; |
@@ -715,9 +730,9 @@ buildLocation() { |
var o = new api.Location(); |
buildCounterLocation++; |
if (buildCounterLocation < 3) { |
- o.labels = buildUnnamed3533(); |
+ o.labels = buildUnnamed3541(); |
o.locationId = "foo"; |
- o.metadata = buildUnnamed3534(); |
+ o.metadata = buildUnnamed3542(); |
o.name = "foo"; |
} |
buildCounterLocation--; |
@@ -727,9 +742,9 @@ buildLocation() { |
checkLocation(api.Location o) { |
buildCounterLocation++; |
if (buildCounterLocation < 3) { |
- checkUnnamed3533(o.labels); |
+ checkUnnamed3541(o.labels); |
unittest.expect(o.locationId, unittest.equals('foo')); |
- checkUnnamed3534(o.metadata); |
+ checkUnnamed3542(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
} |
buildCounterLocation--; |
@@ -798,14 +813,14 @@ checkModule(api.Module o) { |
buildCounterModule--; |
} |
-buildUnnamed3535() { |
+buildUnnamed3543() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed3535(core.List<core.String> o) { |
+checkUnnamed3543(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')); |
@@ -816,7 +831,7 @@ buildNetwork() { |
var o = new api.Network(); |
buildCounterNetwork++; |
if (buildCounterNetwork < 3) { |
- o.forwardedPorts = buildUnnamed3535(); |
+ o.forwardedPorts = buildUnnamed3543(); |
o.instanceTag = "foo"; |
o.name = "foo"; |
} |
@@ -827,7 +842,7 @@ buildNetwork() { |
checkNetwork(api.Network o) { |
buildCounterNetwork++; |
if (buildCounterNetwork < 3) { |
- checkUnnamed3535(o.forwardedPorts); |
+ checkUnnamed3543(o.forwardedPorts); |
unittest.expect(o.instanceTag, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
} |
@@ -859,30 +874,62 @@ checkNetworkUtilization(api.NetworkUtilization o) { |
buildCounterNetworkUtilization--; |
} |
-buildUnnamed3536() { |
+buildUnnamed3544() { |
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; |
} |
-checkUnnamed3536(core.Map<core.String, core.Object> o) { |
+checkUnnamed3544(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')); |
} |
-buildUnnamed3537() { |
+buildUnnamed3545() { |
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; |
} |
-checkUnnamed3537(core.Map<core.String, core.Object> o) { |
+checkUnnamed3545(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; |
@@ -892,9 +939,9 @@ buildOperation() { |
if (buildCounterOperation < 3) { |
o.done = true; |
o.error = buildStatus(); |
- o.metadata = buildUnnamed3536(); |
+ o.metadata = buildUnnamed3544(); |
o.name = "foo"; |
- o.response = buildUnnamed3537(); |
+ o.response = buildUnnamed3545(); |
} |
buildCounterOperation--; |
return o; |
@@ -905,9 +952,9 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed3536(o.metadata); |
+ checkUnnamed3544(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed3537(o.response); |
+ checkUnnamed3545(o.response); |
} |
buildCounterOperation--; |
} |
@@ -968,14 +1015,14 @@ checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { |
buildCounterOperationMetadataExperimental--; |
} |
-buildUnnamed3538() { |
+buildUnnamed3546() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed3538(core.List<core.String> o) { |
+checkUnnamed3546(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')); |
@@ -992,7 +1039,7 @@ buildOperationMetadataV1() { |
o.method = "foo"; |
o.target = "foo"; |
o.user = "foo"; |
- o.warning = buildUnnamed3538(); |
+ o.warning = buildUnnamed3546(); |
} |
buildCounterOperationMetadataV1--; |
return o; |
@@ -1007,19 +1054,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')); |
- checkUnnamed3538(o.warning); |
+ checkUnnamed3546(o.warning); |
} |
buildCounterOperationMetadataV1--; |
} |
-buildUnnamed3539() { |
+buildUnnamed3547() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed3539(core.List<core.String> o) { |
+checkUnnamed3547(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')); |
@@ -1036,7 +1083,7 @@ buildOperationMetadataV1Alpha() { |
o.method = "foo"; |
o.target = "foo"; |
o.user = "foo"; |
- o.warning = buildUnnamed3539(); |
+ o.warning = buildUnnamed3547(); |
} |
buildCounterOperationMetadataV1Alpha--; |
return o; |
@@ -1051,19 +1098,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')); |
- checkUnnamed3539(o.warning); |
+ checkUnnamed3547(o.warning); |
} |
buildCounterOperationMetadataV1Alpha--; |
} |
-buildUnnamed3540() { |
+buildUnnamed3548() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed3540(core.List<core.String> o) { |
+checkUnnamed3548(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')); |
@@ -1080,7 +1127,7 @@ buildOperationMetadataV1Beta() { |
o.method = "foo"; |
o.target = "foo"; |
o.user = "foo"; |
- o.warning = buildUnnamed3540(); |
+ o.warning = buildUnnamed3548(); |
} |
buildCounterOperationMetadataV1Beta--; |
return o; |
@@ -1095,7 +1142,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')); |
- checkUnnamed3540(o.warning); |
+ checkUnnamed3548(o.warning); |
} |
buildCounterOperationMetadataV1Beta--; |
} |
@@ -1148,14 +1195,14 @@ checkRequestUtilization(api.RequestUtilization o) { |
buildCounterRequestUtilization--; |
} |
-buildUnnamed3541() { |
+buildUnnamed3549() { |
var o = new core.List<api.Volume>(); |
o.add(buildVolume()); |
o.add(buildVolume()); |
return o; |
} |
-checkUnnamed3541(core.List<api.Volume> o) { |
+checkUnnamed3549(core.List<api.Volume> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkVolume(o[0]); |
checkVolume(o[1]); |
@@ -1169,7 +1216,7 @@ buildResources() { |
o.cpu = 42.0; |
o.diskGb = 42.0; |
o.memoryGb = 42.0; |
- o.volumes = buildUnnamed3541(); |
+ o.volumes = buildUnnamed3549(); |
} |
buildCounterResources--; |
return o; |
@@ -1181,7 +1228,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)); |
- checkUnnamed3541(o.volumes); |
+ checkUnnamed3549(o.volumes); |
} |
buildCounterResources--; |
} |
@@ -1226,14 +1273,14 @@ checkSourceReference(api.SourceReference o) { |
buildCounterSourceReference--; |
} |
-buildUnnamed3542() { |
+buildUnnamed3550() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed3542(core.Map<core.String, core.String> o) { |
+checkUnnamed3550(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')); |
@@ -1247,7 +1294,7 @@ buildStaticDirectoryHandler() { |
o.applicationReadable = true; |
o.directory = "foo"; |
o.expiration = "foo"; |
- o.httpHeaders = buildUnnamed3542(); |
+ o.httpHeaders = buildUnnamed3550(); |
o.mimeType = "foo"; |
o.requireMatchingFile = true; |
} |
@@ -1261,21 +1308,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')); |
- checkUnnamed3542(o.httpHeaders); |
+ checkUnnamed3550(o.httpHeaders); |
unittest.expect(o.mimeType, unittest.equals('foo')); |
unittest.expect(o.requireMatchingFile, unittest.isTrue); |
} |
buildCounterStaticDirectoryHandler--; |
} |
-buildUnnamed3543() { |
+buildUnnamed3551() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed3543(core.Map<core.String, core.String> o) { |
+checkUnnamed3551(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')); |
@@ -1288,7 +1335,7 @@ buildStaticFilesHandler() { |
if (buildCounterStaticFilesHandler < 3) { |
o.applicationReadable = true; |
o.expiration = "foo"; |
- o.httpHeaders = buildUnnamed3543(); |
+ o.httpHeaders = buildUnnamed3551(); |
o.mimeType = "foo"; |
o.path = "foo"; |
o.requireMatchingFile = true; |
@@ -1303,7 +1350,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) { |
if (buildCounterStaticFilesHandler < 3) { |
unittest.expect(o.applicationReadable, unittest.isTrue); |
unittest.expect(o.expiration, unittest.equals('foo')); |
- checkUnnamed3543(o.httpHeaders); |
+ checkUnnamed3551(o.httpHeaders); |
unittest.expect(o.mimeType, unittest.equals('foo')); |
unittest.expect(o.path, unittest.equals('foo')); |
unittest.expect(o.requireMatchingFile, unittest.isTrue); |
@@ -1312,30 +1359,46 @@ checkStaticFilesHandler(api.StaticFilesHandler o) { |
buildCounterStaticFilesHandler--; |
} |
-buildUnnamed3544() { |
+buildUnnamed3552() { |
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; |
} |
-checkUnnamed3544(core.Map<core.String, core.Object> o) { |
+checkUnnamed3552(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')); |
-} |
- |
-buildUnnamed3545() { |
+ 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')); |
+} |
+ |
+buildUnnamed3553() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed3544()); |
- o.add(buildUnnamed3544()); |
+ o.add(buildUnnamed3552()); |
+ o.add(buildUnnamed3552()); |
return o; |
} |
-checkUnnamed3545(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed3553(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed3544(o[0]); |
- checkUnnamed3544(o[1]); |
+ checkUnnamed3552(o[0]); |
+ checkUnnamed3552(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -1344,7 +1407,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed3545(); |
+ o.details = buildUnnamed3553(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -1355,20 +1418,20 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed3545(o.details); |
+ checkUnnamed3553(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
} |
-buildUnnamed3546() { |
+buildUnnamed3554() { |
var o = new core.Map<core.String, core.double>(); |
o["x"] = 42.0; |
o["y"] = 42.0; |
return o; |
} |
-checkUnnamed3546(core.Map<core.String, core.double> o) { |
+checkUnnamed3554(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)); |
@@ -1379,7 +1442,7 @@ buildTrafficSplit() { |
var o = new api.TrafficSplit(); |
buildCounterTrafficSplit++; |
if (buildCounterTrafficSplit < 3) { |
- o.allocations = buildUnnamed3546(); |
+ o.allocations = buildUnnamed3554(); |
o.shardBy = "foo"; |
} |
buildCounterTrafficSplit--; |
@@ -1389,7 +1452,7 @@ buildTrafficSplit() { |
checkTrafficSplit(api.TrafficSplit o) { |
buildCounterTrafficSplit++; |
if (buildCounterTrafficSplit < 3) { |
- checkUnnamed3546(o.allocations); |
+ checkUnnamed3554(o.allocations); |
unittest.expect(o.shardBy, unittest.equals('foo')); |
} |
buildCounterTrafficSplit--; |
@@ -1453,79 +1516,79 @@ checkUrlMap(api.UrlMap o) { |
buildCounterUrlMap--; |
} |
-buildUnnamed3547() { |
+buildUnnamed3555() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed3547(core.Map<core.String, core.String> o) { |
+checkUnnamed3555(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')); |
} |
-buildUnnamed3548() { |
+buildUnnamed3556() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed3548(core.Map<core.String, core.String> o) { |
+checkUnnamed3556(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')); |
} |
-buildUnnamed3549() { |
+buildUnnamed3557() { |
var o = new core.List<api.ErrorHandler>(); |
o.add(buildErrorHandler()); |
o.add(buildErrorHandler()); |
return o; |
} |
-checkUnnamed3549(core.List<api.ErrorHandler> o) { |
+checkUnnamed3557(core.List<api.ErrorHandler> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkErrorHandler(o[0]); |
checkErrorHandler(o[1]); |
} |
-buildUnnamed3550() { |
+buildUnnamed3558() { |
var o = new core.List<api.UrlMap>(); |
o.add(buildUrlMap()); |
o.add(buildUrlMap()); |
return o; |
} |
-checkUnnamed3550(core.List<api.UrlMap> o) { |
+checkUnnamed3558(core.List<api.UrlMap> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkUrlMap(o[0]); |
checkUrlMap(o[1]); |
} |
-buildUnnamed3551() { |
+buildUnnamed3559() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed3551(core.List<core.String> o) { |
+checkUnnamed3559(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')); |
} |
-buildUnnamed3552() { |
+buildUnnamed3560() { |
var o = new core.List<api.Library>(); |
o.add(buildLibrary()); |
o.add(buildLibrary()); |
return o; |
} |
-checkUnnamed3552(core.List<api.Library> o) { |
+checkUnnamed3560(core.List<api.Library> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLibrary(o[0]); |
checkLibrary(o[1]); |
@@ -1539,20 +1602,20 @@ buildVersion() { |
o.apiConfig = buildApiConfigHandler(); |
o.automaticScaling = buildAutomaticScaling(); |
o.basicScaling = buildBasicScaling(); |
- o.betaSettings = buildUnnamed3547(); |
+ o.betaSettings = buildUnnamed3555(); |
o.creationTime = "foo"; |
o.defaultExpiration = "foo"; |
o.deployer = "foo"; |
o.deployment = buildDeployment(); |
o.env = "foo"; |
- o.envVariables = buildUnnamed3548(); |
- o.errorHandlers = buildUnnamed3549(); |
- o.handlers = buildUnnamed3550(); |
+ o.envVariables = buildUnnamed3556(); |
+ o.errorHandlers = buildUnnamed3557(); |
+ o.handlers = buildUnnamed3558(); |
o.healthCheck = buildHealthCheck(); |
o.id = "foo"; |
- o.inboundServices = buildUnnamed3551(); |
+ o.inboundServices = buildUnnamed3559(); |
o.instanceClass = "foo"; |
- o.libraries = buildUnnamed3552(); |
+ o.libraries = buildUnnamed3560(); |
o.manualScaling = buildManualScaling(); |
o.name = "foo"; |
o.network = buildNetwork(); |
@@ -1574,20 +1637,20 @@ checkVersion(api.Version o) { |
checkApiConfigHandler(o.apiConfig); |
checkAutomaticScaling(o.automaticScaling); |
checkBasicScaling(o.basicScaling); |
- checkUnnamed3547(o.betaSettings); |
+ checkUnnamed3555(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')); |
- checkUnnamed3548(o.envVariables); |
- checkUnnamed3549(o.errorHandlers); |
- checkUnnamed3550(o.handlers); |
+ checkUnnamed3556(o.envVariables); |
+ checkUnnamed3557(o.errorHandlers); |
+ checkUnnamed3558(o.handlers); |
checkHealthCheck(o.healthCheck); |
unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed3551(o.inboundServices); |
+ checkUnnamed3559(o.inboundServices); |
unittest.expect(o.instanceClass, unittest.equals('foo')); |
- checkUnnamed3552(o.libraries); |
+ checkUnnamed3560(o.libraries); |
checkManualScaling(o.manualScaling); |
unittest.expect(o.name, unittest.equals('foo')); |
checkNetwork(o.network); |
@@ -1625,7 +1688,6 @@ checkVolume(api.Volume o) { |
buildCounterVolume--; |
} |
- |
main() { |
unittest.group("obj-schema-ApiConfigHandler", () { |
unittest.test("to-json--from-json", () { |
@@ -1635,7 +1697,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ApiEndpointHandler", () { |
unittest.test("to-json--from-json", () { |
var o = buildApiEndpointHandler(); |
@@ -1644,7 +1705,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Application", () { |
unittest.test("to-json--from-json", () { |
var o = buildApplication(); |
@@ -1653,7 +1713,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AutomaticScaling", () { |
unittest.test("to-json--from-json", () { |
var o = buildAutomaticScaling(); |
@@ -1662,7 +1721,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-BasicScaling", () { |
unittest.test("to-json--from-json", () { |
var o = buildBasicScaling(); |
@@ -1671,7 +1729,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ContainerInfo", () { |
unittest.test("to-json--from-json", () { |
var o = buildContainerInfo(); |
@@ -1680,7 +1737,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CpuUtilization", () { |
unittest.test("to-json--from-json", () { |
var o = buildCpuUtilization(); |
@@ -1689,7 +1745,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-DebugInstanceRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildDebugInstanceRequest(); |
@@ -1698,7 +1753,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Deployment", () { |
unittest.test("to-json--from-json", () { |
var o = buildDeployment(); |
@@ -1707,7 +1761,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-DiskUtilization", () { |
unittest.test("to-json--from-json", () { |
var o = buildDiskUtilization(); |
@@ -1716,7 +1769,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ErrorHandler", () { |
unittest.test("to-json--from-json", () { |
var o = buildErrorHandler(); |
@@ -1725,7 +1777,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-FileInfo", () { |
unittest.test("to-json--from-json", () { |
var o = buildFileInfo(); |
@@ -1734,7 +1785,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-HealthCheck", () { |
unittest.test("to-json--from-json", () { |
var o = buildHealthCheck(); |
@@ -1743,7 +1793,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-IdentityAwareProxy", () { |
unittest.test("to-json--from-json", () { |
var o = buildIdentityAwareProxy(); |
@@ -1752,7 +1801,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Instance", () { |
unittest.test("to-json--from-json", () { |
var o = buildInstance(); |
@@ -1761,7 +1809,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Library", () { |
unittest.test("to-json--from-json", () { |
var o = buildLibrary(); |
@@ -1770,7 +1817,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListInstancesResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListInstancesResponse(); |
@@ -1779,7 +1825,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListLocationsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListLocationsResponse(); |
@@ -1788,7 +1833,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListModulesResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListModulesResponse(); |
@@ -1797,7 +1841,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListOperationsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListOperationsResponse(); |
@@ -1806,7 +1849,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListVersionsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListVersionsResponse(); |
@@ -1815,7 +1857,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Location", () { |
unittest.test("to-json--from-json", () { |
var o = buildLocation(); |
@@ -1824,7 +1865,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-LocationMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildLocationMetadata(); |
@@ -1833,7 +1873,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ManualScaling", () { |
unittest.test("to-json--from-json", () { |
var o = buildManualScaling(); |
@@ -1842,7 +1881,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Module", () { |
unittest.test("to-json--from-json", () { |
var o = buildModule(); |
@@ -1851,7 +1889,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Network", () { |
unittest.test("to-json--from-json", () { |
var o = buildNetwork(); |
@@ -1860,7 +1897,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-NetworkUtilization", () { |
unittest.test("to-json--from-json", () { |
var o = buildNetworkUtilization(); |
@@ -1869,7 +1905,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Operation", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperation(); |
@@ -1878,7 +1913,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadata(); |
@@ -1887,7 +1921,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadataExperimental", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadataExperimental(); |
@@ -1896,7 +1929,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadataV1", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadataV1(); |
@@ -1905,7 +1937,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadataV1Alpha", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadataV1Alpha(); |
@@ -1914,7 +1945,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadataV1Beta", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadataV1Beta(); |
@@ -1923,7 +1953,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadataV1Beta5(); |
@@ -1932,7 +1961,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-RequestUtilization", () { |
unittest.test("to-json--from-json", () { |
var o = buildRequestUtilization(); |
@@ -1941,7 +1969,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Resources", () { |
unittest.test("to-json--from-json", () { |
var o = buildResources(); |
@@ -1950,7 +1977,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ScriptHandler", () { |
unittest.test("to-json--from-json", () { |
var o = buildScriptHandler(); |
@@ -1959,7 +1985,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SourceReference", () { |
unittest.test("to-json--from-json", () { |
var o = buildSourceReference(); |
@@ -1968,7 +1993,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-StaticDirectoryHandler", () { |
unittest.test("to-json--from-json", () { |
var o = buildStaticDirectoryHandler(); |
@@ -1977,7 +2001,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-StaticFilesHandler", () { |
unittest.test("to-json--from-json", () { |
var o = buildStaticFilesHandler(); |
@@ -1986,7 +2009,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Status", () { |
unittest.test("to-json--from-json", () { |
var o = buildStatus(); |
@@ -1995,7 +2017,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TrafficSplit", () { |
unittest.test("to-json--from-json", () { |
var o = buildTrafficSplit(); |
@@ -2004,7 +2025,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UrlDispatchRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildUrlDispatchRule(); |
@@ -2013,7 +2033,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UrlMap", () { |
unittest.test("to-json--from-json", () { |
var o = buildUrlMap(); |
@@ -2022,7 +2041,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Version", () { |
unittest.test("to-json--from-json", () { |
var o = buildVersion(); |
@@ -2031,7 +2049,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Volume", () { |
unittest.test("to-json--from-json", () { |
var o = buildVolume(); |
@@ -2040,10 +2057,8 @@ main() { |
}); |
}); |
- |
unittest.group("resource-AppsResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
api.AppsResourceApi res = new api.AppengineApi(mock).apps; |
var arg_request = buildApplication(); |
@@ -2055,9 +2070,11 @@ 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 + 12), unittest.equals("v1beta4/apps")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1beta4/apps")); |
pathOffset += 12; |
var query = (req.url).query; |
@@ -2070,27 +2087,29 @@ 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 |
+ .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"; |
@@ -2100,9 +2119,11 @@ 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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -2118,28 +2139,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["ensureResourcesExist"].first, unittest.equals("$arg_ensureResourcesExist")); |
- |
+ unittest.expect(queryMap["ensureResourcesExist"].first, |
+ unittest.equals("$arg_ensureResourcesExist")); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "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, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync1(((api.Application response) { |
+ res |
+ .get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist) |
+ .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(); |
@@ -2153,9 +2177,11 @@ 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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -2171,34 +2197,35 @@ 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["mask"].first, unittest.equals(arg_mask)); |
- |
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, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .patch(arg_request, arg_appsId, mask: arg_mask) |
+ .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) { |
@@ -2206,16 +2233,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
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; |
@@ -2231,48 +2262,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_filter = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
+ var arg_filter = "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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
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; |
@@ -2285,34 +2323,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["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)); |
- 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(buildListLocationsResponse()); |
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.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-AppsModulesResourceApi", () { |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
var arg_appsId = "foo"; |
@@ -2322,16 +2365,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -2347,27 +2394,29 @@ 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_modulesId).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .delete(arg_appsId, arg_modulesId) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
var arg_appsId = "foo"; |
@@ -2377,16 +2426,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -2402,47 +2455,53 @@ 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(buildModule()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Module response) { |
+ res |
+ .get(arg_appsId, arg_modulesId) |
+ .then(unittest.expectAsync1(((api.Module response) { |
checkModule(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
var arg_appsId = "foo"; |
- var arg_pageSize = 42; |
var arg_pageToken = "foo"; |
+ var arg_pageSize = 42; |
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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules", 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 + 8), unittest.equals("/modules")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), |
+ unittest.equals("/modules")); |
pathOffset += 8; |
var query = (req.url).query; |
@@ -2455,29 +2514,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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- |
+ 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(buildListModulesResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListModulesResponse response) { |
+ res |
+ .list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize) |
+ .then(unittest.expectAsync1(((api.ListModulesResponse response) { |
checkListModulesResponse(response); |
}))); |
}); |
unittest.test("method--patch", () { |
- |
var mock = new HttpServerMock(); |
api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
var arg_request = buildModule(); |
@@ -2493,16 +2556,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -2518,35 +2585,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["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic")); |
+ unittest.expect(queryMap["migrateTraffic"].first, |
+ unittest.equals("$arg_migrateTraffic")); |
unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); |
- |
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_modulesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .patch(arg_request, arg_appsId, arg_modulesId, |
+ migrateTraffic: arg_migrateTraffic, mask: arg_mask) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-AppsModulesVersionsResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions; |
+ api.AppsModulesVersionsResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions; |
var arg_request = buildVersion(); |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
@@ -2558,23 +2628,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -2587,29 +2663,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_modulesId).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .create(arg_request, arg_appsId, arg_modulesId) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions; |
+ api.AppsModulesVersionsResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions; |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
var arg_versionsId = "foo"; |
@@ -2618,23 +2697,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -2650,29 +2735,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_modulesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .delete(arg_appsId, arg_modulesId, arg_versionsId) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions; |
+ api.AppsModulesVersionsResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions; |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
var arg_versionsId = "foo"; |
@@ -2682,23 +2770,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -2714,57 +2808,66 @@ 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_modulesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) { |
+ res |
+ .get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view) |
+ .then(unittest.expectAsync1(((api.Version response) { |
checkVersion(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions; |
+ api.AppsModulesVersionsResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions; |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
- var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
var arg_view = "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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -2777,32 +2880,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(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
- |
+ 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(buildListVersionsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_appsId, arg_modulesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsResponse response) { |
+ res |
+ .list(arg_appsId, arg_modulesId, |
+ pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken) |
+ .then(unittest.expectAsync1(((api.ListVersionsResponse response) { |
checkListVersionsResponse(response); |
}))); |
}); |
unittest.test("method--patch", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions; |
+ api.AppsModulesVersionsResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions; |
var arg_request = buildVersion(); |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
@@ -2816,23 +2925,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -2848,34 +2963,36 @@ 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["mask"].first, unittest.equals(arg_mask)); |
- |
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_modulesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, |
+ mask: arg_mask) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-AppsModulesVersionsInstancesResourceApi", () { |
unittest.test("method--debug", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.modules.versions.instances; |
+ api.AppsModulesVersionsInstancesResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions.instances; |
var arg_request = buildDebugInstanceRequest(); |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
@@ -2889,37 +3006,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -2932,29 +3059,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_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, |
+ arg_instancesId) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.modules.versions.instances; |
+ api.AppsModulesVersionsInstancesResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions.instances; |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
var arg_versionsId = "foo"; |
@@ -2964,30 +3095,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -3003,29 +3142,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_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.modules.versions.instances; |
+ api.AppsModulesVersionsInstancesResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions.instances; |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
var arg_versionsId = "foo"; |
@@ -3035,30 +3177,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -3074,29 +3224,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_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) { |
+ res |
+ .get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId) |
+ .then(unittest.expectAsync1(((api.Instance response) { |
checkInstance(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(mock).apps.modules.versions.instances; |
+ api.AppsModulesVersionsInstancesResourceApi res = |
+ new api.AppengineApi(mock).apps.modules.versions.instances; |
var arg_appsId = "foo"; |
var arg_modulesId = "foo"; |
var arg_versionsId = "foo"; |
@@ -3107,30 +3260,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
index = path.indexOf("/modules/", 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("/modules/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/modules/")); |
pathOffset += 9; |
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_modulesId")); |
- 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; |
@@ -3143,35 +3304,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["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_modulesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) { |
+ res |
+ .list(arg_appsId, arg_modulesId, arg_versionsId, |
+ pageToken: arg_pageToken, pageSize: arg_pageSize) |
+ .then(unittest.expectAsync1(((api.ListInstancesResponse response) { |
checkListInstancesResponse(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) { |
@@ -3179,16 +3344,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
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; |
@@ -3204,29 +3373,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"; |
@@ -3236,16 +3408,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 + 13), unittest.equals("v1beta4/apps/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1beta4/apps/")); |
pathOffset += 13; |
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; |
@@ -3258,30 +3434,34 @@ 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); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |