Index: generated/googleapis/test/servicemanagement/v1_test.dart |
diff --git a/generated/googleapis/test/servicemanagement/v1_test.dart b/generated/googleapis/test/servicemanagement/v1_test.dart |
index 22667e3416557486550e5b19f9f43054f0601758..bf8796a874a3aa56ac82096ac03bade58b25bc43 100644 |
--- a/generated/googleapis/test/servicemanagement/v1_test.dart |
+++ b/generated/googleapis/test/servicemanagement/v1_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis.servicemanagement.v1.test; |
import "dart:core" as core; |
-import "dart:collection" as collection; |
import "dart:async" as async; |
import "dart:convert" as convert; |
import 'package:http/http.dart' as http; |
-import 'package:http/testing.dart' as http_testing; |
import 'package:test/test.dart' as unittest; |
import 'package:googleapis/servicemanagement/v1.dart' as api; |
@@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient { |
async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
if (_expectJson) { |
- return request.finalize() |
+ return request |
+ .finalize() |
.transform(convert.UTF8.decoder) |
.join('') |
.then((core.String jsonString) { |
@@ -45,8 +44,8 @@ class HttpServerMock extends http.BaseClient { |
} |
} |
-http.StreamedResponse stringResponse( |
- core.int status, core.Map<core.String, core.String> headers, core.String body) { |
+http.StreamedResponse stringResponse(core.int status, |
+ core.Map<core.String, core.String> headers, core.String body) { |
var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
return new http.StreamedResponse(stream, status, headers: headers); |
} |
@@ -70,40 +69,40 @@ checkAdvice(api.Advice o) { |
buildCounterAdvice--; |
} |
-buildUnnamed1141() { |
+buildUnnamed1144() { |
var o = new core.List<api.Method>(); |
o.add(buildMethod()); |
o.add(buildMethod()); |
return o; |
} |
-checkUnnamed1141(core.List<api.Method> o) { |
+checkUnnamed1144(core.List<api.Method> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMethod(o[0]); |
checkMethod(o[1]); |
} |
-buildUnnamed1142() { |
+buildUnnamed1145() { |
var o = new core.List<api.Mixin>(); |
o.add(buildMixin()); |
o.add(buildMixin()); |
return o; |
} |
-checkUnnamed1142(core.List<api.Mixin> o) { |
+checkUnnamed1145(core.List<api.Mixin> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMixin(o[0]); |
checkMixin(o[1]); |
} |
-buildUnnamed1143() { |
+buildUnnamed1146() { |
var o = new core.List<api.Option>(); |
o.add(buildOption()); |
o.add(buildOption()); |
return o; |
} |
-checkUnnamed1143(core.List<api.Option> o) { |
+checkUnnamed1146(core.List<api.Option> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOption(o[0]); |
checkOption(o[1]); |
@@ -114,10 +113,10 @@ buildApi() { |
var o = new api.Api(); |
buildCounterApi++; |
if (buildCounterApi < 3) { |
- o.methods = buildUnnamed1141(); |
- o.mixins = buildUnnamed1142(); |
+ o.methods = buildUnnamed1144(); |
+ o.mixins = buildUnnamed1145(); |
o.name = "foo"; |
- o.options = buildUnnamed1143(); |
+ o.options = buildUnnamed1146(); |
o.sourceContext = buildSourceContext(); |
o.syntax = "foo"; |
o.version = "foo"; |
@@ -129,10 +128,10 @@ buildApi() { |
checkApi(api.Api o) { |
buildCounterApi++; |
if (buildCounterApi < 3) { |
- checkUnnamed1141(o.methods); |
- checkUnnamed1142(o.mixins); |
+ checkUnnamed1144(o.methods); |
+ checkUnnamed1145(o.mixins); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1143(o.options); |
+ checkUnnamed1146(o.options); |
checkSourceContext(o.sourceContext); |
unittest.expect(o.syntax, unittest.equals('foo')); |
unittest.expect(o.version, unittest.equals('foo')); |
@@ -140,27 +139,27 @@ checkApi(api.Api o) { |
buildCounterApi--; |
} |
-buildUnnamed1144() { |
+buildUnnamed1147() { |
var o = new core.List<api.AuditLogConfig>(); |
o.add(buildAuditLogConfig()); |
o.add(buildAuditLogConfig()); |
return o; |
} |
-checkUnnamed1144(core.List<api.AuditLogConfig> o) { |
+checkUnnamed1147(core.List<api.AuditLogConfig> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuditLogConfig(o[0]); |
checkAuditLogConfig(o[1]); |
} |
-buildUnnamed1145() { |
+buildUnnamed1148() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1145(core.List<core.String> o) { |
+checkUnnamed1148(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')); |
@@ -171,8 +170,8 @@ buildAuditConfig() { |
var o = new api.AuditConfig(); |
buildCounterAuditConfig++; |
if (buildCounterAuditConfig < 3) { |
- o.auditLogConfigs = buildUnnamed1144(); |
- o.exemptedMembers = buildUnnamed1145(); |
+ o.auditLogConfigs = buildUnnamed1147(); |
+ o.exemptedMembers = buildUnnamed1148(); |
o.service = "foo"; |
} |
buildCounterAuditConfig--; |
@@ -182,21 +181,21 @@ buildAuditConfig() { |
checkAuditConfig(api.AuditConfig o) { |
buildCounterAuditConfig++; |
if (buildCounterAuditConfig < 3) { |
- checkUnnamed1144(o.auditLogConfigs); |
- checkUnnamed1145(o.exemptedMembers); |
+ checkUnnamed1147(o.auditLogConfigs); |
+ checkUnnamed1148(o.exemptedMembers); |
unittest.expect(o.service, unittest.equals('foo')); |
} |
buildCounterAuditConfig--; |
} |
-buildUnnamed1146() { |
+buildUnnamed1149() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1146(core.List<core.String> o) { |
+checkUnnamed1149(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')); |
@@ -207,7 +206,7 @@ buildAuditLogConfig() { |
var o = new api.AuditLogConfig(); |
buildCounterAuditLogConfig++; |
if (buildCounterAuditLogConfig < 3) { |
- o.exemptedMembers = buildUnnamed1146(); |
+ o.exemptedMembers = buildUnnamed1149(); |
o.logType = "foo"; |
} |
buildCounterAuditLogConfig--; |
@@ -217,7 +216,7 @@ buildAuditLogConfig() { |
checkAuditLogConfig(api.AuditLogConfig o) { |
buildCounterAuditLogConfig++; |
if (buildCounterAuditLogConfig < 3) { |
- checkUnnamed1146(o.exemptedMembers); |
+ checkUnnamed1149(o.exemptedMembers); |
unittest.expect(o.logType, unittest.equals('foo')); |
} |
buildCounterAuditLogConfig--; |
@@ -271,27 +270,27 @@ checkAuthRequirement(api.AuthRequirement o) { |
buildCounterAuthRequirement--; |
} |
-buildUnnamed1147() { |
+buildUnnamed1150() { |
var o = new core.List<api.AuthProvider>(); |
o.add(buildAuthProvider()); |
o.add(buildAuthProvider()); |
return o; |
} |
-checkUnnamed1147(core.List<api.AuthProvider> o) { |
+checkUnnamed1150(core.List<api.AuthProvider> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuthProvider(o[0]); |
checkAuthProvider(o[1]); |
} |
-buildUnnamed1148() { |
+buildUnnamed1151() { |
var o = new core.List<api.AuthenticationRule>(); |
o.add(buildAuthenticationRule()); |
o.add(buildAuthenticationRule()); |
return o; |
} |
-checkUnnamed1148(core.List<api.AuthenticationRule> o) { |
+checkUnnamed1151(core.List<api.AuthenticationRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuthenticationRule(o[0]); |
checkAuthenticationRule(o[1]); |
@@ -302,8 +301,8 @@ buildAuthentication() { |
var o = new api.Authentication(); |
buildCounterAuthentication++; |
if (buildCounterAuthentication < 3) { |
- o.providers = buildUnnamed1147(); |
- o.rules = buildUnnamed1148(); |
+ o.providers = buildUnnamed1150(); |
+ o.rules = buildUnnamed1151(); |
} |
buildCounterAuthentication--; |
return o; |
@@ -312,20 +311,20 @@ buildAuthentication() { |
checkAuthentication(api.Authentication o) { |
buildCounterAuthentication++; |
if (buildCounterAuthentication < 3) { |
- checkUnnamed1147(o.providers); |
- checkUnnamed1148(o.rules); |
+ checkUnnamed1150(o.providers); |
+ checkUnnamed1151(o.rules); |
} |
buildCounterAuthentication--; |
} |
-buildUnnamed1149() { |
+buildUnnamed1152() { |
var o = new core.List<api.AuthRequirement>(); |
o.add(buildAuthRequirement()); |
o.add(buildAuthRequirement()); |
return o; |
} |
-checkUnnamed1149(core.List<api.AuthRequirement> o) { |
+checkUnnamed1152(core.List<api.AuthRequirement> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuthRequirement(o[0]); |
checkAuthRequirement(o[1]); |
@@ -339,7 +338,7 @@ buildAuthenticationRule() { |
o.allowWithoutCredential = true; |
o.customAuth = buildCustomAuthRequirements(); |
o.oauth = buildOAuthRequirements(); |
- o.requirements = buildUnnamed1149(); |
+ o.requirements = buildUnnamed1152(); |
o.selector = "foo"; |
} |
buildCounterAuthenticationRule--; |
@@ -352,7 +351,7 @@ checkAuthenticationRule(api.AuthenticationRule o) { |
unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
checkCustomAuthRequirements(o.customAuth); |
checkOAuthRequirements(o.oauth); |
- checkUnnamed1149(o.requirements); |
+ checkUnnamed1152(o.requirements); |
unittest.expect(o.selector, unittest.equals('foo')); |
} |
buildCounterAuthenticationRule--; |
@@ -377,14 +376,14 @@ checkAuthorizationConfig(api.AuthorizationConfig o) { |
buildCounterAuthorizationConfig--; |
} |
-buildUnnamed1150() { |
+buildUnnamed1153() { |
var o = new core.List<api.BackendRule>(); |
o.add(buildBackendRule()); |
o.add(buildBackendRule()); |
return o; |
} |
-checkUnnamed1150(core.List<api.BackendRule> o) { |
+checkUnnamed1153(core.List<api.BackendRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkBackendRule(o[0]); |
checkBackendRule(o[1]); |
@@ -395,7 +394,7 @@ buildBackend() { |
var o = new api.Backend(); |
buildCounterBackend++; |
if (buildCounterBackend < 3) { |
- o.rules = buildUnnamed1150(); |
+ o.rules = buildUnnamed1153(); |
} |
buildCounterBackend--; |
return o; |
@@ -404,7 +403,7 @@ buildBackend() { |
checkBackend(api.Backend o) { |
buildCounterBackend++; |
if (buildCounterBackend < 3) { |
- checkUnnamed1150(o.rules); |
+ checkUnnamed1153(o.rules); |
} |
buildCounterBackend--; |
} |
@@ -434,14 +433,14 @@ checkBackendRule(api.BackendRule o) { |
buildCounterBackendRule--; |
} |
-buildUnnamed1151() { |
+buildUnnamed1154() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1151(core.List<core.String> o) { |
+checkUnnamed1154(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')); |
@@ -453,7 +452,7 @@ buildBinding() { |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
o.condition = buildExpr(); |
- o.members = buildUnnamed1151(); |
+ o.members = buildUnnamed1154(); |
o.role = "foo"; |
} |
buildCounterBinding--; |
@@ -464,20 +463,20 @@ checkBinding(api.Binding o) { |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
checkExpr(o.condition); |
- checkUnnamed1151(o.members); |
+ checkUnnamed1154(o.members); |
unittest.expect(o.role, unittest.equals('foo')); |
} |
buildCounterBinding--; |
} |
-buildUnnamed1152() { |
+buildUnnamed1155() { |
var o = new core.List<api.ConfigChange>(); |
o.add(buildConfigChange()); |
o.add(buildConfigChange()); |
return o; |
} |
-checkUnnamed1152(core.List<api.ConfigChange> o) { |
+checkUnnamed1155(core.List<api.ConfigChange> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkConfigChange(o[0]); |
checkConfigChange(o[1]); |
@@ -488,7 +487,7 @@ buildChangeReport() { |
var o = new api.ChangeReport(); |
buildCounterChangeReport++; |
if (buildCounterChangeReport < 3) { |
- o.configChanges = buildUnnamed1152(); |
+ o.configChanges = buildUnnamed1155(); |
} |
buildCounterChangeReport--; |
return o; |
@@ -497,80 +496,19 @@ buildChangeReport() { |
checkChangeReport(api.ChangeReport o) { |
buildCounterChangeReport++; |
if (buildCounterChangeReport < 3) { |
- checkUnnamed1152(o.configChanges); |
+ checkUnnamed1155(o.configChanges); |
} |
buildCounterChangeReport--; |
} |
-core.int buildCounterCloudAuditOptions = 0; |
-buildCloudAuditOptions() { |
- var o = new api.CloudAuditOptions(); |
- buildCounterCloudAuditOptions++; |
- if (buildCounterCloudAuditOptions < 3) { |
- o.logName = "foo"; |
- } |
- buildCounterCloudAuditOptions--; |
- return o; |
-} |
- |
-checkCloudAuditOptions(api.CloudAuditOptions o) { |
- buildCounterCloudAuditOptions++; |
- if (buildCounterCloudAuditOptions < 3) { |
- unittest.expect(o.logName, unittest.equals('foo')); |
- } |
- buildCounterCloudAuditOptions--; |
-} |
- |
-buildUnnamed1153() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1153(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterCondition = 0; |
-buildCondition() { |
- var o = new api.Condition(); |
- buildCounterCondition++; |
- if (buildCounterCondition < 3) { |
- o.iam = "foo"; |
- o.op = "foo"; |
- o.svc = "foo"; |
- o.sys = "foo"; |
- o.value = "foo"; |
- o.values = buildUnnamed1153(); |
- } |
- buildCounterCondition--; |
- return o; |
-} |
- |
-checkCondition(api.Condition o) { |
- buildCounterCondition++; |
- if (buildCounterCondition < 3) { |
- unittest.expect(o.iam, unittest.equals('foo')); |
- unittest.expect(o.op, unittest.equals('foo')); |
- unittest.expect(o.svc, unittest.equals('foo')); |
- unittest.expect(o.sys, unittest.equals('foo')); |
- unittest.expect(o.value, unittest.equals('foo')); |
- checkUnnamed1153(o.values); |
- } |
- buildCounterCondition--; |
-} |
- |
-buildUnnamed1154() { |
+buildUnnamed1156() { |
var o = new core.List<api.Advice>(); |
o.add(buildAdvice()); |
o.add(buildAdvice()); |
return o; |
} |
-checkUnnamed1154(core.List<api.Advice> o) { |
+checkUnnamed1156(core.List<api.Advice> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAdvice(o[0]); |
checkAdvice(o[1]); |
@@ -581,7 +519,7 @@ buildConfigChange() { |
var o = new api.ConfigChange(); |
buildCounterConfigChange++; |
if (buildCounterConfigChange < 3) { |
- o.advices = buildUnnamed1154(); |
+ o.advices = buildUnnamed1156(); |
o.changeType = "foo"; |
o.element = "foo"; |
o.newValue = "foo"; |
@@ -594,7 +532,7 @@ buildConfigChange() { |
checkConfigChange(api.ConfigChange o) { |
buildCounterConfigChange++; |
if (buildCounterConfigChange < 3) { |
- checkUnnamed1154(o.advices); |
+ checkUnnamed1156(o.advices); |
unittest.expect(o.changeType, unittest.equals('foo')); |
unittest.expect(o.element, unittest.equals('foo')); |
unittest.expect(o.newValue, unittest.equals('foo')); |
@@ -645,14 +583,14 @@ checkConfigRef(api.ConfigRef o) { |
buildCounterConfigRef--; |
} |
-buildUnnamed1155() { |
+buildUnnamed1157() { |
var o = new core.List<api.ConfigFile>(); |
o.add(buildConfigFile()); |
o.add(buildConfigFile()); |
return o; |
} |
-checkUnnamed1155(core.List<api.ConfigFile> o) { |
+checkUnnamed1157(core.List<api.ConfigFile> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkConfigFile(o[0]); |
checkConfigFile(o[1]); |
@@ -663,7 +601,7 @@ buildConfigSource() { |
var o = new api.ConfigSource(); |
buildCounterConfigSource++; |
if (buildCounterConfigSource < 3) { |
- o.files = buildUnnamed1155(); |
+ o.files = buildUnnamed1157(); |
o.id = "foo"; |
} |
buildCounterConfigSource--; |
@@ -673,20 +611,20 @@ buildConfigSource() { |
checkConfigSource(api.ConfigSource o) { |
buildCounterConfigSource++; |
if (buildCounterConfigSource < 3) { |
- checkUnnamed1155(o.files); |
+ checkUnnamed1157(o.files); |
unittest.expect(o.id, unittest.equals('foo')); |
} |
buildCounterConfigSource--; |
} |
-buildUnnamed1156() { |
+buildUnnamed1158() { |
var o = new core.List<api.ContextRule>(); |
o.add(buildContextRule()); |
o.add(buildContextRule()); |
return o; |
} |
-checkUnnamed1156(core.List<api.ContextRule> o) { |
+checkUnnamed1158(core.List<api.ContextRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkContextRule(o[0]); |
checkContextRule(o[1]); |
@@ -697,7 +635,7 @@ buildContext() { |
var o = new api.Context(); |
buildCounterContext++; |
if (buildCounterContext < 3) { |
- o.rules = buildUnnamed1156(); |
+ o.rules = buildUnnamed1158(); |
} |
buildCounterContext--; |
return o; |
@@ -706,32 +644,32 @@ buildContext() { |
checkContext(api.Context o) { |
buildCounterContext++; |
if (buildCounterContext < 3) { |
- checkUnnamed1156(o.rules); |
+ checkUnnamed1158(o.rules); |
} |
buildCounterContext--; |
} |
-buildUnnamed1157() { |
+buildUnnamed1159() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1157(core.List<core.String> o) { |
+checkUnnamed1159(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')); |
} |
-buildUnnamed1158() { |
+buildUnnamed1160() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1158(core.List<core.String> o) { |
+checkUnnamed1160(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')); |
@@ -742,8 +680,8 @@ buildContextRule() { |
var o = new api.ContextRule(); |
buildCounterContextRule++; |
if (buildCounterContextRule < 3) { |
- o.provided = buildUnnamed1157(); |
- o.requested = buildUnnamed1158(); |
+ o.provided = buildUnnamed1159(); |
+ o.requested = buildUnnamed1160(); |
o.selector = "foo"; |
} |
buildCounterContextRule--; |
@@ -753,8 +691,8 @@ buildContextRule() { |
checkContextRule(api.ContextRule o) { |
buildCounterContextRule++; |
if (buildCounterContextRule < 3) { |
- checkUnnamed1157(o.provided); |
- checkUnnamed1158(o.requested); |
+ checkUnnamed1159(o.provided); |
+ checkUnnamed1160(o.requested); |
unittest.expect(o.selector, unittest.equals('foo')); |
} |
buildCounterContextRule--; |
@@ -779,27 +717,6 @@ checkControl(api.Control o) { |
buildCounterControl--; |
} |
-core.int buildCounterCounterOptions = 0; |
-buildCounterOptions() { |
- var o = new api.CounterOptions(); |
- buildCounterCounterOptions++; |
- if (buildCounterCounterOptions < 3) { |
- o.field = "foo"; |
- o.metric = "foo"; |
- } |
- buildCounterCounterOptions--; |
- return o; |
-} |
- |
-checkCounterOptions(api.CounterOptions o) { |
- buildCounterCounterOptions++; |
- if (buildCounterCounterOptions < 3) { |
- unittest.expect(o.field, unittest.equals('foo')); |
- unittest.expect(o.metric, unittest.equals('foo')); |
- } |
- buildCounterCounterOptions--; |
-} |
- |
core.int buildCounterCustomAuthRequirements = 0; |
buildCustomAuthRequirements() { |
var o = new api.CustomAuthRequirements(); |
@@ -819,27 +736,27 @@ checkCustomAuthRequirements(api.CustomAuthRequirements o) { |
buildCounterCustomAuthRequirements--; |
} |
-buildUnnamed1159() { |
+buildUnnamed1161() { |
var o = new core.List<api.CustomErrorRule>(); |
o.add(buildCustomErrorRule()); |
o.add(buildCustomErrorRule()); |
return o; |
} |
-checkUnnamed1159(core.List<api.CustomErrorRule> o) { |
+checkUnnamed1161(core.List<api.CustomErrorRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkCustomErrorRule(o[0]); |
checkCustomErrorRule(o[1]); |
} |
-buildUnnamed1160() { |
+buildUnnamed1162() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1160(core.List<core.String> o) { |
+checkUnnamed1162(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')); |
@@ -850,8 +767,8 @@ buildCustomError() { |
var o = new api.CustomError(); |
buildCounterCustomError++; |
if (buildCounterCustomError < 3) { |
- o.rules = buildUnnamed1159(); |
- o.types = buildUnnamed1160(); |
+ o.rules = buildUnnamed1161(); |
+ o.types = buildUnnamed1162(); |
} |
buildCounterCustomError--; |
return o; |
@@ -860,8 +777,8 @@ buildCustomError() { |
checkCustomError(api.CustomError o) { |
buildCounterCustomError++; |
if (buildCounterCustomError < 3) { |
- checkUnnamed1159(o.rules); |
- checkUnnamed1160(o.types); |
+ checkUnnamed1161(o.rules); |
+ checkUnnamed1162(o.types); |
} |
buildCounterCustomError--; |
} |
@@ -908,39 +825,18 @@ checkCustomHttpPattern(api.CustomHttpPattern o) { |
buildCounterCustomHttpPattern--; |
} |
-core.int buildCounterDataAccessOptions = 0; |
-buildDataAccessOptions() { |
- var o = new api.DataAccessOptions(); |
- buildCounterDataAccessOptions++; |
- if (buildCounterDataAccessOptions < 3) { |
- o.logMode = "foo"; |
- } |
- buildCounterDataAccessOptions--; |
- return o; |
-} |
- |
-checkDataAccessOptions(api.DataAccessOptions o) { |
- buildCounterDataAccessOptions++; |
- if (buildCounterDataAccessOptions < 3) { |
- unittest.expect(o.logMode, unittest.equals('foo')); |
- } |
- buildCounterDataAccessOptions--; |
-} |
- |
core.int buildCounterDeleteServiceStrategy = 0; |
buildDeleteServiceStrategy() { |
var o = new api.DeleteServiceStrategy(); |
buildCounterDeleteServiceStrategy++; |
- if (buildCounterDeleteServiceStrategy < 3) { |
- } |
+ if (buildCounterDeleteServiceStrategy < 3) {} |
buildCounterDeleteServiceStrategy--; |
return o; |
} |
checkDeleteServiceStrategy(api.DeleteServiceStrategy o) { |
buildCounterDeleteServiceStrategy++; |
- if (buildCounterDeleteServiceStrategy < 3) { |
- } |
+ if (buildCounterDeleteServiceStrategy < 3) {} |
buildCounterDeleteServiceStrategy--; |
} |
@@ -986,27 +882,27 @@ checkDisableServiceRequest(api.DisableServiceRequest o) { |
buildCounterDisableServiceRequest--; |
} |
-buildUnnamed1161() { |
+buildUnnamed1163() { |
var o = new core.List<api.Page>(); |
o.add(buildPage()); |
o.add(buildPage()); |
return o; |
} |
-checkUnnamed1161(core.List<api.Page> o) { |
+checkUnnamed1163(core.List<api.Page> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkPage(o[0]); |
checkPage(o[1]); |
} |
-buildUnnamed1162() { |
+buildUnnamed1164() { |
var o = new core.List<api.DocumentationRule>(); |
o.add(buildDocumentationRule()); |
o.add(buildDocumentationRule()); |
return o; |
} |
-checkUnnamed1162(core.List<api.DocumentationRule> o) { |
+checkUnnamed1164(core.List<api.DocumentationRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkDocumentationRule(o[0]); |
checkDocumentationRule(o[1]); |
@@ -1019,8 +915,8 @@ buildDocumentation() { |
if (buildCounterDocumentation < 3) { |
o.documentationRootUrl = "foo"; |
o.overview = "foo"; |
- o.pages = buildUnnamed1161(); |
- o.rules = buildUnnamed1162(); |
+ o.pages = buildUnnamed1163(); |
+ o.rules = buildUnnamed1164(); |
o.summary = "foo"; |
} |
buildCounterDocumentation--; |
@@ -1032,8 +928,8 @@ checkDocumentation(api.Documentation o) { |
if (buildCounterDocumentation < 3) { |
unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
unittest.expect(o.overview, unittest.equals('foo')); |
- checkUnnamed1161(o.pages); |
- checkUnnamed1162(o.rules); |
+ checkUnnamed1163(o.pages); |
+ checkUnnamed1164(o.rules); |
unittest.expect(o.summary, unittest.equals('foo')); |
} |
buildCounterDocumentation--; |
@@ -1081,40 +977,40 @@ checkEnableServiceRequest(api.EnableServiceRequest o) { |
buildCounterEnableServiceRequest--; |
} |
-buildUnnamed1163() { |
+buildUnnamed1165() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1163(core.List<core.String> o) { |
+checkUnnamed1165(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')); |
} |
-buildUnnamed1164() { |
+buildUnnamed1166() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1164(core.List<core.String> o) { |
+checkUnnamed1166(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')); |
} |
-buildUnnamed1165() { |
+buildUnnamed1167() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1165(core.List<core.String> o) { |
+checkUnnamed1167(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')); |
@@ -1125,10 +1021,10 @@ buildEndpoint() { |
var o = new api.Endpoint(); |
buildCounterEndpoint++; |
if (buildCounterEndpoint < 3) { |
- o.aliases = buildUnnamed1163(); |
+ o.aliases = buildUnnamed1165(); |
o.allowCors = true; |
- o.apis = buildUnnamed1164(); |
- o.features = buildUnnamed1165(); |
+ o.apis = buildUnnamed1166(); |
+ o.features = buildUnnamed1167(); |
o.name = "foo"; |
o.target = "foo"; |
} |
@@ -1139,37 +1035,37 @@ buildEndpoint() { |
checkEndpoint(api.Endpoint o) { |
buildCounterEndpoint++; |
if (buildCounterEndpoint < 3) { |
- checkUnnamed1163(o.aliases); |
+ checkUnnamed1165(o.aliases); |
unittest.expect(o.allowCors, unittest.isTrue); |
- checkUnnamed1164(o.apis); |
- checkUnnamed1165(o.features); |
+ checkUnnamed1166(o.apis); |
+ checkUnnamed1167(o.features); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.target, unittest.equals('foo')); |
} |
buildCounterEndpoint--; |
} |
-buildUnnamed1166() { |
+buildUnnamed1168() { |
var o = new core.List<api.EnumValue>(); |
o.add(buildEnumValue()); |
o.add(buildEnumValue()); |
return o; |
} |
-checkUnnamed1166(core.List<api.EnumValue> o) { |
+checkUnnamed1168(core.List<api.EnumValue> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkEnumValue(o[0]); |
checkEnumValue(o[1]); |
} |
-buildUnnamed1167() { |
+buildUnnamed1169() { |
var o = new core.List<api.Option>(); |
o.add(buildOption()); |
o.add(buildOption()); |
return o; |
} |
-checkUnnamed1167(core.List<api.Option> o) { |
+checkUnnamed1169(core.List<api.Option> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOption(o[0]); |
checkOption(o[1]); |
@@ -1180,9 +1076,9 @@ buildEnum() { |
var o = new api.Enum(); |
buildCounterEnum++; |
if (buildCounterEnum < 3) { |
- o.enumvalue = buildUnnamed1166(); |
+ o.enumvalue = buildUnnamed1168(); |
o.name = "foo"; |
- o.options = buildUnnamed1167(); |
+ o.options = buildUnnamed1169(); |
o.sourceContext = buildSourceContext(); |
o.syntax = "foo"; |
} |
@@ -1193,23 +1089,23 @@ buildEnum() { |
checkEnum(api.Enum o) { |
buildCounterEnum++; |
if (buildCounterEnum < 3) { |
- checkUnnamed1166(o.enumvalue); |
+ checkUnnamed1168(o.enumvalue); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1167(o.options); |
+ checkUnnamed1169(o.options); |
checkSourceContext(o.sourceContext); |
unittest.expect(o.syntax, unittest.equals('foo')); |
} |
buildCounterEnum--; |
} |
-buildUnnamed1168() { |
+buildUnnamed1170() { |
var o = new core.List<api.Option>(); |
o.add(buildOption()); |
o.add(buildOption()); |
return o; |
} |
-checkUnnamed1168(core.List<api.Option> o) { |
+checkUnnamed1170(core.List<api.Option> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOption(o[0]); |
checkOption(o[1]); |
@@ -1222,7 +1118,7 @@ buildEnumValue() { |
if (buildCounterEnumValue < 3) { |
o.name = "foo"; |
o.number = 42; |
- o.options = buildUnnamed1168(); |
+ o.options = buildUnnamed1170(); |
} |
buildCounterEnumValue--; |
return o; |
@@ -1233,7 +1129,7 @@ checkEnumValue(api.EnumValue o) { |
if (buildCounterEnumValue < 3) { |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.number, unittest.equals(42)); |
- checkUnnamed1168(o.options); |
+ checkUnnamed1170(o.options); |
} |
buildCounterEnumValue--; |
} |
@@ -1282,14 +1178,14 @@ checkExpr(api.Expr o) { |
buildCounterExpr--; |
} |
-buildUnnamed1169() { |
+buildUnnamed1171() { |
var o = new core.List<api.Option>(); |
o.add(buildOption()); |
o.add(buildOption()); |
return o; |
} |
-checkUnnamed1169(core.List<api.Option> o) { |
+checkUnnamed1171(core.List<api.Option> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOption(o[0]); |
checkOption(o[1]); |
@@ -1307,7 +1203,7 @@ buildField() { |
o.name = "foo"; |
o.number = 42; |
o.oneofIndex = 42; |
- o.options = buildUnnamed1169(); |
+ o.options = buildUnnamed1171(); |
o.packed = true; |
o.typeUrl = "foo"; |
} |
@@ -1325,21 +1221,21 @@ checkField(api.Field o) { |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.number, unittest.equals(42)); |
unittest.expect(o.oneofIndex, unittest.equals(42)); |
- checkUnnamed1169(o.options); |
+ checkUnnamed1171(o.options); |
unittest.expect(o.packed, unittest.isTrue); |
unittest.expect(o.typeUrl, unittest.equals('foo')); |
} |
buildCounterField--; |
} |
-buildUnnamed1170() { |
+buildUnnamed1172() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1170(core.List<core.String> o) { |
+checkUnnamed1172(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')); |
@@ -1353,7 +1249,7 @@ buildFlowOperationMetadata() { |
o.cancelState = "foo"; |
o.deadline = "foo"; |
o.flowName = "foo"; |
- o.resourceNames = buildUnnamed1170(); |
+ o.resourceNames = buildUnnamed1172(); |
o.startTime = "foo"; |
} |
buildCounterFlowOperationMetadata--; |
@@ -1366,36 +1262,68 @@ checkFlowOperationMetadata(api.FlowOperationMetadata o) { |
unittest.expect(o.cancelState, unittest.equals('foo')); |
unittest.expect(o.deadline, unittest.equals('foo')); |
unittest.expect(o.flowName, unittest.equals('foo')); |
- checkUnnamed1170(o.resourceNames); |
+ checkUnnamed1172(o.resourceNames); |
unittest.expect(o.startTime, unittest.equals('foo')); |
} |
buildCounterFlowOperationMetadata--; |
} |
-buildUnnamed1171() { |
+buildUnnamed1173() { |
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; |
} |
-checkUnnamed1171(core.Map<core.String, core.Object> o) { |
+checkUnnamed1173(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')); |
} |
-buildUnnamed1172() { |
+buildUnnamed1174() { |
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; |
} |
-checkUnnamed1172(core.Map<core.String, core.Object> o) { |
+checkUnnamed1174(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')); |
} |
core.int buildCounterGenerateConfigReportRequest = 0; |
@@ -1403,8 +1331,8 @@ buildGenerateConfigReportRequest() { |
var o = new api.GenerateConfigReportRequest(); |
buildCounterGenerateConfigReportRequest++; |
if (buildCounterGenerateConfigReportRequest < 3) { |
- o.newConfig = buildUnnamed1171(); |
- o.oldConfig = buildUnnamed1172(); |
+ o.newConfig = buildUnnamed1173(); |
+ o.oldConfig = buildUnnamed1174(); |
} |
buildCounterGenerateConfigReportRequest--; |
return o; |
@@ -1413,33 +1341,33 @@ buildGenerateConfigReportRequest() { |
checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { |
buildCounterGenerateConfigReportRequest++; |
if (buildCounterGenerateConfigReportRequest < 3) { |
- checkUnnamed1171(o.newConfig); |
- checkUnnamed1172(o.oldConfig); |
+ checkUnnamed1173(o.newConfig); |
+ checkUnnamed1174(o.oldConfig); |
} |
buildCounterGenerateConfigReportRequest--; |
} |
-buildUnnamed1173() { |
+buildUnnamed1175() { |
var o = new core.List<api.ChangeReport>(); |
o.add(buildChangeReport()); |
o.add(buildChangeReport()); |
return o; |
} |
-checkUnnamed1173(core.List<api.ChangeReport> o) { |
+checkUnnamed1175(core.List<api.ChangeReport> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkChangeReport(o[0]); |
checkChangeReport(o[1]); |
} |
-buildUnnamed1174() { |
+buildUnnamed1176() { |
var o = new core.List<api.Diagnostic>(); |
o.add(buildDiagnostic()); |
o.add(buildDiagnostic()); |
return o; |
} |
-checkUnnamed1174(core.List<api.Diagnostic> o) { |
+checkUnnamed1176(core.List<api.Diagnostic> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkDiagnostic(o[0]); |
checkDiagnostic(o[1]); |
@@ -1450,8 +1378,8 @@ buildGenerateConfigReportResponse() { |
var o = new api.GenerateConfigReportResponse(); |
buildCounterGenerateConfigReportResponse++; |
if (buildCounterGenerateConfigReportResponse < 3) { |
- o.changeReports = buildUnnamed1173(); |
- o.diagnostics = buildUnnamed1174(); |
+ o.changeReports = buildUnnamed1175(); |
+ o.diagnostics = buildUnnamed1176(); |
o.id = "foo"; |
o.serviceName = "foo"; |
} |
@@ -1462,8 +1390,8 @@ buildGenerateConfigReportResponse() { |
checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { |
buildCounterGenerateConfigReportResponse++; |
if (buildCounterGenerateConfigReportResponse < 3) { |
- checkUnnamed1173(o.changeReports); |
- checkUnnamed1174(o.diagnostics); |
+ checkUnnamed1175(o.changeReports); |
+ checkUnnamed1176(o.diagnostics); |
unittest.expect(o.id, unittest.equals('foo')); |
unittest.expect(o.serviceName, unittest.equals('foo')); |
} |
@@ -1474,27 +1402,25 @@ core.int buildCounterGetIamPolicyRequest = 0; |
buildGetIamPolicyRequest() { |
var o = new api.GetIamPolicyRequest(); |
buildCounterGetIamPolicyRequest++; |
- if (buildCounterGetIamPolicyRequest < 3) { |
- } |
+ if (buildCounterGetIamPolicyRequest < 3) {} |
buildCounterGetIamPolicyRequest--; |
return o; |
} |
checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
buildCounterGetIamPolicyRequest++; |
- if (buildCounterGetIamPolicyRequest < 3) { |
- } |
+ if (buildCounterGetIamPolicyRequest < 3) {} |
buildCounterGetIamPolicyRequest--; |
} |
-buildUnnamed1175() { |
+buildUnnamed1177() { |
var o = new core.List<api.HttpRule>(); |
o.add(buildHttpRule()); |
o.add(buildHttpRule()); |
return o; |
} |
-checkUnnamed1175(core.List<api.HttpRule> o) { |
+checkUnnamed1177(core.List<api.HttpRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkHttpRule(o[0]); |
checkHttpRule(o[1]); |
@@ -1506,7 +1432,7 @@ buildHttp() { |
buildCounterHttp++; |
if (buildCounterHttp < 3) { |
o.fullyDecodeReservedExpansion = true; |
- o.rules = buildUnnamed1175(); |
+ o.rules = buildUnnamed1177(); |
} |
buildCounterHttp--; |
return o; |
@@ -1516,19 +1442,19 @@ checkHttp(api.Http o) { |
buildCounterHttp++; |
if (buildCounterHttp < 3) { |
unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); |
- checkUnnamed1175(o.rules); |
+ checkUnnamed1177(o.rules); |
} |
buildCounterHttp--; |
} |
-buildUnnamed1176() { |
+buildUnnamed1178() { |
var o = new core.List<api.HttpRule>(); |
o.add(buildHttpRule()); |
o.add(buildHttpRule()); |
return o; |
} |
-checkUnnamed1176(core.List<api.HttpRule> o) { |
+checkUnnamed1178(core.List<api.HttpRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkHttpRule(o[0]); |
checkHttpRule(o[1]); |
@@ -1539,7 +1465,7 @@ buildHttpRule() { |
var o = new api.HttpRule(); |
buildCounterHttpRule++; |
if (buildCounterHttpRule < 3) { |
- o.additionalBindings = buildUnnamed1176(); |
+ o.additionalBindings = buildUnnamed1178(); |
o.body = "foo"; |
o.custom = buildCustomHttpPattern(); |
o.delete = "foo"; |
@@ -1559,7 +1485,7 @@ buildHttpRule() { |
checkHttpRule(api.HttpRule o) { |
buildCounterHttpRule++; |
if (buildCounterHttpRule < 3) { |
- checkUnnamed1176(o.additionalBindings); |
+ checkUnnamed1178(o.additionalBindings); |
unittest.expect(o.body, unittest.equals('foo')); |
checkCustomHttpPattern(o.custom); |
unittest.expect(o.delete, unittest.equals('foo')); |
@@ -1598,14 +1524,14 @@ checkLabelDescriptor(api.LabelDescriptor o) { |
buildCounterLabelDescriptor--; |
} |
-buildUnnamed1177() { |
+buildUnnamed1179() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed1177(core.List<api.Operation> o) { |
+checkUnnamed1179(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -1617,7 +1543,7 @@ buildListOperationsResponse() { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed1177(); |
+ o.operations = buildUnnamed1179(); |
} |
buildCounterListOperationsResponse--; |
return o; |
@@ -1627,19 +1553,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1177(o.operations); |
+ checkUnnamed1179(o.operations); |
} |
buildCounterListOperationsResponse--; |
} |
-buildUnnamed1178() { |
+buildUnnamed1180() { |
var o = new core.List<api.Service>(); |
o.add(buildService()); |
o.add(buildService()); |
return o; |
} |
-checkUnnamed1178(core.List<api.Service> o) { |
+checkUnnamed1180(core.List<api.Service> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkService(o[0]); |
checkService(o[1]); |
@@ -1651,7 +1577,7 @@ buildListServiceConfigsResponse() { |
buildCounterListServiceConfigsResponse++; |
if (buildCounterListServiceConfigsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.serviceConfigs = buildUnnamed1178(); |
+ o.serviceConfigs = buildUnnamed1180(); |
} |
buildCounterListServiceConfigsResponse--; |
return o; |
@@ -1661,19 +1587,19 @@ checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { |
buildCounterListServiceConfigsResponse++; |
if (buildCounterListServiceConfigsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1178(o.serviceConfigs); |
+ checkUnnamed1180(o.serviceConfigs); |
} |
buildCounterListServiceConfigsResponse--; |
} |
-buildUnnamed1179() { |
+buildUnnamed1181() { |
var o = new core.List<api.Rollout>(); |
o.add(buildRollout()); |
o.add(buildRollout()); |
return o; |
} |
-checkUnnamed1179(core.List<api.Rollout> o) { |
+checkUnnamed1181(core.List<api.Rollout> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkRollout(o[0]); |
checkRollout(o[1]); |
@@ -1685,7 +1611,7 @@ buildListServiceRolloutsResponse() { |
buildCounterListServiceRolloutsResponse++; |
if (buildCounterListServiceRolloutsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.rollouts = buildUnnamed1179(); |
+ o.rollouts = buildUnnamed1181(); |
} |
buildCounterListServiceRolloutsResponse--; |
return o; |
@@ -1695,19 +1621,19 @@ checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { |
buildCounterListServiceRolloutsResponse++; |
if (buildCounterListServiceRolloutsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1179(o.rollouts); |
+ checkUnnamed1181(o.rollouts); |
} |
buildCounterListServiceRolloutsResponse--; |
} |
-buildUnnamed1180() { |
+buildUnnamed1182() { |
var o = new core.List<api.ManagedService>(); |
o.add(buildManagedService()); |
o.add(buildManagedService()); |
return o; |
} |
-checkUnnamed1180(core.List<api.ManagedService> o) { |
+checkUnnamed1182(core.List<api.ManagedService> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkManagedService(o[0]); |
checkManagedService(o[1]); |
@@ -1719,7 +1645,7 @@ buildListServicesResponse() { |
buildCounterListServicesResponse++; |
if (buildCounterListServicesResponse < 3) { |
o.nextPageToken = "foo"; |
- o.services = buildUnnamed1180(); |
+ o.services = buildUnnamed1182(); |
} |
buildCounterListServicesResponse--; |
return o; |
@@ -1729,42 +1655,19 @@ checkListServicesResponse(api.ListServicesResponse o) { |
buildCounterListServicesResponse++; |
if (buildCounterListServicesResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1180(o.services); |
+ checkUnnamed1182(o.services); |
} |
buildCounterListServicesResponse--; |
} |
-core.int buildCounterLogConfig = 0; |
-buildLogConfig() { |
- var o = new api.LogConfig(); |
- buildCounterLogConfig++; |
- if (buildCounterLogConfig < 3) { |
- o.cloudAudit = buildCloudAuditOptions(); |
- o.counter = buildCounterOptions(); |
- o.dataAccess = buildDataAccessOptions(); |
- } |
- buildCounterLogConfig--; |
- return o; |
-} |
- |
-checkLogConfig(api.LogConfig o) { |
- buildCounterLogConfig++; |
- if (buildCounterLogConfig < 3) { |
- checkCloudAuditOptions(o.cloudAudit); |
- checkCounterOptions(o.counter); |
- checkDataAccessOptions(o.dataAccess); |
- } |
- buildCounterLogConfig--; |
-} |
- |
-buildUnnamed1181() { |
+buildUnnamed1183() { |
var o = new core.List<api.LabelDescriptor>(); |
o.add(buildLabelDescriptor()); |
o.add(buildLabelDescriptor()); |
return o; |
} |
-checkUnnamed1181(core.List<api.LabelDescriptor> o) { |
+checkUnnamed1183(core.List<api.LabelDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLabelDescriptor(o[0]); |
checkLabelDescriptor(o[1]); |
@@ -1777,7 +1680,7 @@ buildLogDescriptor() { |
if (buildCounterLogDescriptor < 3) { |
o.description = "foo"; |
o.displayName = "foo"; |
- o.labels = buildUnnamed1181(); |
+ o.labels = buildUnnamed1183(); |
o.name = "foo"; |
} |
buildCounterLogDescriptor--; |
@@ -1789,33 +1692,33 @@ checkLogDescriptor(api.LogDescriptor o) { |
if (buildCounterLogDescriptor < 3) { |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.displayName, unittest.equals('foo')); |
- checkUnnamed1181(o.labels); |
+ checkUnnamed1183(o.labels); |
unittest.expect(o.name, unittest.equals('foo')); |
} |
buildCounterLogDescriptor--; |
} |
-buildUnnamed1182() { |
+buildUnnamed1184() { |
var o = new core.List<api.LoggingDestination>(); |
o.add(buildLoggingDestination()); |
o.add(buildLoggingDestination()); |
return o; |
} |
-checkUnnamed1182(core.List<api.LoggingDestination> o) { |
+checkUnnamed1184(core.List<api.LoggingDestination> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLoggingDestination(o[0]); |
checkLoggingDestination(o[1]); |
} |
-buildUnnamed1183() { |
+buildUnnamed1185() { |
var o = new core.List<api.LoggingDestination>(); |
o.add(buildLoggingDestination()); |
o.add(buildLoggingDestination()); |
return o; |
} |
-checkUnnamed1183(core.List<api.LoggingDestination> o) { |
+checkUnnamed1185(core.List<api.LoggingDestination> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLoggingDestination(o[0]); |
checkLoggingDestination(o[1]); |
@@ -1826,8 +1729,8 @@ buildLogging() { |
var o = new api.Logging(); |
buildCounterLogging++; |
if (buildCounterLogging < 3) { |
- o.consumerDestinations = buildUnnamed1182(); |
- o.producerDestinations = buildUnnamed1183(); |
+ o.consumerDestinations = buildUnnamed1184(); |
+ o.producerDestinations = buildUnnamed1185(); |
} |
buildCounterLogging--; |
return o; |
@@ -1836,20 +1739,20 @@ buildLogging() { |
checkLogging(api.Logging o) { |
buildCounterLogging++; |
if (buildCounterLogging < 3) { |
- checkUnnamed1182(o.consumerDestinations); |
- checkUnnamed1183(o.producerDestinations); |
+ checkUnnamed1184(o.consumerDestinations); |
+ checkUnnamed1185(o.producerDestinations); |
} |
buildCounterLogging--; |
} |
-buildUnnamed1184() { |
+buildUnnamed1186() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1184(core.List<core.String> o) { |
+checkUnnamed1186(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')); |
@@ -1860,7 +1763,7 @@ buildLoggingDestination() { |
var o = new api.LoggingDestination(); |
buildCounterLoggingDestination++; |
if (buildCounterLoggingDestination < 3) { |
- o.logs = buildUnnamed1184(); |
+ o.logs = buildUnnamed1186(); |
o.monitoredResource = "foo"; |
} |
buildCounterLoggingDestination--; |
@@ -1870,7 +1773,7 @@ buildLoggingDestination() { |
checkLoggingDestination(api.LoggingDestination o) { |
buildCounterLoggingDestination++; |
if (buildCounterLoggingDestination < 3) { |
- checkUnnamed1184(o.logs); |
+ checkUnnamed1186(o.logs); |
unittest.expect(o.monitoredResource, unittest.equals('foo')); |
} |
buildCounterLoggingDestination--; |
@@ -1926,14 +1829,14 @@ checkMediaDownload(api.MediaDownload o) { |
buildCounterMediaDownload--; |
} |
-buildUnnamed1185() { |
+buildUnnamed1187() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1185(core.List<core.String> o) { |
+checkUnnamed1187(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')); |
@@ -1948,7 +1851,7 @@ buildMediaUpload() { |
o.dropzone = "foo"; |
o.enabled = true; |
o.maxSize = "foo"; |
- o.mimeTypes = buildUnnamed1185(); |
+ o.mimeTypes = buildUnnamed1187(); |
o.progressNotification = true; |
o.startNotification = true; |
o.uploadService = "foo"; |
@@ -1964,7 +1867,7 @@ checkMediaUpload(api.MediaUpload o) { |
unittest.expect(o.dropzone, unittest.equals('foo')); |
unittest.expect(o.enabled, unittest.isTrue); |
unittest.expect(o.maxSize, unittest.equals('foo')); |
- checkUnnamed1185(o.mimeTypes); |
+ checkUnnamed1187(o.mimeTypes); |
unittest.expect(o.progressNotification, unittest.isTrue); |
unittest.expect(o.startNotification, unittest.isTrue); |
unittest.expect(o.uploadService, unittest.equals('foo')); |
@@ -1972,14 +1875,14 @@ checkMediaUpload(api.MediaUpload o) { |
buildCounterMediaUpload--; |
} |
-buildUnnamed1186() { |
+buildUnnamed1188() { |
var o = new core.List<api.Option>(); |
o.add(buildOption()); |
o.add(buildOption()); |
return o; |
} |
-checkUnnamed1186(core.List<api.Option> o) { |
+checkUnnamed1188(core.List<api.Option> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOption(o[0]); |
checkOption(o[1]); |
@@ -1991,7 +1894,7 @@ buildMethod() { |
buildCounterMethod++; |
if (buildCounterMethod < 3) { |
o.name = "foo"; |
- o.options = buildUnnamed1186(); |
+ o.options = buildUnnamed1188(); |
o.requestStreaming = true; |
o.requestTypeUrl = "foo"; |
o.responseStreaming = true; |
@@ -2006,7 +1909,7 @@ checkMethod(api.Method o) { |
buildCounterMethod++; |
if (buildCounterMethod < 3) { |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1186(o.options); |
+ checkUnnamed1188(o.options); |
unittest.expect(o.requestStreaming, unittest.isTrue); |
unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
unittest.expect(o.responseStreaming, unittest.isTrue); |
@@ -2016,14 +1919,14 @@ checkMethod(api.Method o) { |
buildCounterMethod--; |
} |
-buildUnnamed1187() { |
+buildUnnamed1189() { |
var o = new core.List<api.LabelDescriptor>(); |
o.add(buildLabelDescriptor()); |
o.add(buildLabelDescriptor()); |
return o; |
} |
-checkUnnamed1187(core.List<api.LabelDescriptor> o) { |
+checkUnnamed1189(core.List<api.LabelDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLabelDescriptor(o[0]); |
checkLabelDescriptor(o[1]); |
@@ -2036,7 +1939,7 @@ buildMetricDescriptor() { |
if (buildCounterMetricDescriptor < 3) { |
o.description = "foo"; |
o.displayName = "foo"; |
- o.labels = buildUnnamed1187(); |
+ o.labels = buildUnnamed1189(); |
o.metricKind = "foo"; |
o.name = "foo"; |
o.type = "foo"; |
@@ -2052,7 +1955,7 @@ checkMetricDescriptor(api.MetricDescriptor o) { |
if (buildCounterMetricDescriptor < 3) { |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.displayName, unittest.equals('foo')); |
- checkUnnamed1187(o.labels); |
+ checkUnnamed1189(o.labels); |
unittest.expect(o.metricKind, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.type, unittest.equals('foo')); |
@@ -2062,14 +1965,14 @@ checkMetricDescriptor(api.MetricDescriptor o) { |
buildCounterMetricDescriptor--; |
} |
-buildUnnamed1188() { |
+buildUnnamed1190() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed1188(core.Map<core.String, core.String> o) { |
+checkUnnamed1190(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')); |
@@ -2080,7 +1983,7 @@ buildMetricRule() { |
var o = new api.MetricRule(); |
buildCounterMetricRule++; |
if (buildCounterMetricRule < 3) { |
- o.metricCosts = buildUnnamed1188(); |
+ o.metricCosts = buildUnnamed1190(); |
o.selector = "foo"; |
} |
buildCounterMetricRule--; |
@@ -2090,7 +1993,7 @@ buildMetricRule() { |
checkMetricRule(api.MetricRule o) { |
buildCounterMetricRule++; |
if (buildCounterMetricRule < 3) { |
- checkUnnamed1188(o.metricCosts); |
+ checkUnnamed1190(o.metricCosts); |
unittest.expect(o.selector, unittest.equals('foo')); |
} |
buildCounterMetricRule--; |
@@ -2117,14 +2020,14 @@ checkMixin(api.Mixin o) { |
buildCounterMixin--; |
} |
-buildUnnamed1189() { |
+buildUnnamed1191() { |
var o = new core.List<api.LabelDescriptor>(); |
o.add(buildLabelDescriptor()); |
o.add(buildLabelDescriptor()); |
return o; |
} |
-checkUnnamed1189(core.List<api.LabelDescriptor> o) { |
+checkUnnamed1191(core.List<api.LabelDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLabelDescriptor(o[0]); |
checkLabelDescriptor(o[1]); |
@@ -2137,7 +2040,7 @@ buildMonitoredResourceDescriptor() { |
if (buildCounterMonitoredResourceDescriptor < 3) { |
o.description = "foo"; |
o.displayName = "foo"; |
- o.labels = buildUnnamed1189(); |
+ o.labels = buildUnnamed1191(); |
o.name = "foo"; |
o.type = "foo"; |
} |
@@ -2150,34 +2053,34 @@ checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
if (buildCounterMonitoredResourceDescriptor < 3) { |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.displayName, unittest.equals('foo')); |
- checkUnnamed1189(o.labels); |
+ checkUnnamed1191(o.labels); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.type, unittest.equals('foo')); |
} |
buildCounterMonitoredResourceDescriptor--; |
} |
-buildUnnamed1190() { |
+buildUnnamed1192() { |
var o = new core.List<api.MonitoringDestination>(); |
o.add(buildMonitoringDestination()); |
o.add(buildMonitoringDestination()); |
return o; |
} |
-checkUnnamed1190(core.List<api.MonitoringDestination> o) { |
+checkUnnamed1192(core.List<api.MonitoringDestination> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMonitoringDestination(o[0]); |
checkMonitoringDestination(o[1]); |
} |
-buildUnnamed1191() { |
+buildUnnamed1193() { |
var o = new core.List<api.MonitoringDestination>(); |
o.add(buildMonitoringDestination()); |
o.add(buildMonitoringDestination()); |
return o; |
} |
-checkUnnamed1191(core.List<api.MonitoringDestination> o) { |
+checkUnnamed1193(core.List<api.MonitoringDestination> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMonitoringDestination(o[0]); |
checkMonitoringDestination(o[1]); |
@@ -2188,8 +2091,8 @@ buildMonitoring() { |
var o = new api.Monitoring(); |
buildCounterMonitoring++; |
if (buildCounterMonitoring < 3) { |
- o.consumerDestinations = buildUnnamed1190(); |
- o.producerDestinations = buildUnnamed1191(); |
+ o.consumerDestinations = buildUnnamed1192(); |
+ o.producerDestinations = buildUnnamed1193(); |
} |
buildCounterMonitoring--; |
return o; |
@@ -2198,20 +2101,20 @@ buildMonitoring() { |
checkMonitoring(api.Monitoring o) { |
buildCounterMonitoring++; |
if (buildCounterMonitoring < 3) { |
- checkUnnamed1190(o.consumerDestinations); |
- checkUnnamed1191(o.producerDestinations); |
+ checkUnnamed1192(o.consumerDestinations); |
+ checkUnnamed1193(o.producerDestinations); |
} |
buildCounterMonitoring--; |
} |
-buildUnnamed1192() { |
+buildUnnamed1194() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1192(core.List<core.String> o) { |
+checkUnnamed1194(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')); |
@@ -2222,7 +2125,7 @@ buildMonitoringDestination() { |
var o = new api.MonitoringDestination(); |
buildCounterMonitoringDestination++; |
if (buildCounterMonitoringDestination < 3) { |
- o.metrics = buildUnnamed1192(); |
+ o.metrics = buildUnnamed1194(); |
o.monitoredResource = "foo"; |
} |
buildCounterMonitoringDestination--; |
@@ -2232,7 +2135,7 @@ buildMonitoringDestination() { |
checkMonitoringDestination(api.MonitoringDestination o) { |
buildCounterMonitoringDestination++; |
if (buildCounterMonitoringDestination < 3) { |
- checkUnnamed1192(o.metrics); |
+ checkUnnamed1194(o.metrics); |
unittest.expect(o.monitoredResource, unittest.equals('foo')); |
} |
buildCounterMonitoringDestination--; |
@@ -2257,30 +2160,62 @@ checkOAuthRequirements(api.OAuthRequirements o) { |
buildCounterOAuthRequirements--; |
} |
-buildUnnamed1193() { |
+buildUnnamed1195() { |
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; |
} |
-checkUnnamed1193(core.Map<core.String, core.Object> o) { |
+checkUnnamed1195(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')); |
} |
-buildUnnamed1194() { |
+buildUnnamed1196() { |
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; |
} |
-checkUnnamed1194(core.Map<core.String, core.Object> o) { |
+checkUnnamed1196(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); |
- var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); |
+ var casted7 = (o["x"]) as core.Map; |
+ unittest.expect(casted7, unittest.hasLength(3)); |
+ unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted7["bool"], unittest.equals(true)); |
+ unittest.expect(casted7["string"], unittest.equals('foo')); |
+ var casted8 = (o["y"]) as core.Map; |
+ unittest.expect(casted8, unittest.hasLength(3)); |
+ unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted8["bool"], unittest.equals(true)); |
+ unittest.expect(casted8["string"], unittest.equals('foo')); |
} |
core.int buildCounterOperation = 0; |
@@ -2290,9 +2225,9 @@ buildOperation() { |
if (buildCounterOperation < 3) { |
o.done = true; |
o.error = buildStatus(); |
- o.metadata = buildUnnamed1193(); |
+ o.metadata = buildUnnamed1195(); |
o.name = "foo"; |
- o.response = buildUnnamed1194(); |
+ o.response = buildUnnamed1196(); |
} |
buildCounterOperation--; |
return o; |
@@ -2303,34 +2238,34 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed1193(o.metadata); |
+ checkUnnamed1195(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1194(o.response); |
+ checkUnnamed1196(o.response); |
} |
buildCounterOperation--; |
} |
-buildUnnamed1195() { |
+buildUnnamed1197() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1195(core.List<core.String> o) { |
+checkUnnamed1197(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')); |
} |
-buildUnnamed1196() { |
+buildUnnamed1198() { |
var o = new core.List<api.Step>(); |
o.add(buildStep()); |
o.add(buildStep()); |
return o; |
} |
-checkUnnamed1196(core.List<api.Step> o) { |
+checkUnnamed1198(core.List<api.Step> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkStep(o[0]); |
checkStep(o[1]); |
@@ -2342,9 +2277,9 @@ buildOperationMetadata() { |
buildCounterOperationMetadata++; |
if (buildCounterOperationMetadata < 3) { |
o.progressPercentage = 42; |
- o.resourceNames = buildUnnamed1195(); |
+ o.resourceNames = buildUnnamed1197(); |
o.startTime = "foo"; |
- o.steps = buildUnnamed1196(); |
+ o.steps = buildUnnamed1198(); |
} |
buildCounterOperationMetadata--; |
return o; |
@@ -2354,24 +2289,40 @@ checkOperationMetadata(api.OperationMetadata o) { |
buildCounterOperationMetadata++; |
if (buildCounterOperationMetadata < 3) { |
unittest.expect(o.progressPercentage, unittest.equals(42)); |
- checkUnnamed1195(o.resourceNames); |
+ checkUnnamed1197(o.resourceNames); |
unittest.expect(o.startTime, unittest.equals('foo')); |
- checkUnnamed1196(o.steps); |
+ checkUnnamed1198(o.steps); |
} |
buildCounterOperationMetadata--; |
} |
-buildUnnamed1197() { |
+buildUnnamed1199() { |
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; |
} |
-checkUnnamed1197(core.Map<core.String, core.Object> o) { |
+checkUnnamed1199(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); |
- var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); |
+ var casted9 = (o["x"]) as core.Map; |
+ unittest.expect(casted9, unittest.hasLength(3)); |
+ unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted9["bool"], unittest.equals(true)); |
+ unittest.expect(casted9["string"], unittest.equals('foo')); |
+ var casted10 = (o["y"]) as core.Map; |
+ unittest.expect(casted10, unittest.hasLength(3)); |
+ unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted10["bool"], unittest.equals(true)); |
+ unittest.expect(casted10["string"], unittest.equals('foo')); |
} |
core.int buildCounterOption = 0; |
@@ -2380,7 +2331,7 @@ buildOption() { |
buildCounterOption++; |
if (buildCounterOption < 3) { |
o.name = "foo"; |
- o.value = buildUnnamed1197(); |
+ o.value = buildUnnamed1199(); |
} |
buildCounterOption--; |
return o; |
@@ -2390,19 +2341,19 @@ checkOption(api.Option o) { |
buildCounterOption++; |
if (buildCounterOption < 3) { |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1197(o.value); |
+ checkUnnamed1199(o.value); |
} |
buildCounterOption--; |
} |
-buildUnnamed1198() { |
+buildUnnamed1200() { |
var o = new core.List<api.Page>(); |
o.add(buildPage()); |
o.add(buildPage()); |
return o; |
} |
-checkUnnamed1198(core.List<api.Page> o) { |
+checkUnnamed1200(core.List<api.Page> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkPage(o[0]); |
checkPage(o[1]); |
@@ -2415,7 +2366,7 @@ buildPage() { |
if (buildCounterPage < 3) { |
o.content = "foo"; |
o.name = "foo"; |
- o.subpages = buildUnnamed1198(); |
+ o.subpages = buildUnnamed1200(); |
} |
buildCounterPage--; |
return o; |
@@ -2426,60 +2377,46 @@ checkPage(api.Page o) { |
if (buildCounterPage < 3) { |
unittest.expect(o.content, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1198(o.subpages); |
+ checkUnnamed1200(o.subpages); |
} |
buildCounterPage--; |
} |
-buildUnnamed1199() { |
+buildUnnamed1201() { |
var o = new core.List<api.AuditConfig>(); |
o.add(buildAuditConfig()); |
o.add(buildAuditConfig()); |
return o; |
} |
-checkUnnamed1199(core.List<api.AuditConfig> o) { |
+checkUnnamed1201(core.List<api.AuditConfig> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAuditConfig(o[0]); |
checkAuditConfig(o[1]); |
} |
-buildUnnamed1200() { |
+buildUnnamed1202() { |
var o = new core.List<api.Binding>(); |
o.add(buildBinding()); |
o.add(buildBinding()); |
return o; |
} |
-checkUnnamed1200(core.List<api.Binding> o) { |
+checkUnnamed1202(core.List<api.Binding> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkBinding(o[0]); |
checkBinding(o[1]); |
} |
-buildUnnamed1201() { |
- var o = new core.List<api.Rule>(); |
- o.add(buildRule()); |
- o.add(buildRule()); |
- return o; |
-} |
- |
-checkUnnamed1201(core.List<api.Rule> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkRule(o[0]); |
- checkRule(o[1]); |
-} |
- |
core.int buildCounterPolicy = 0; |
buildPolicy() { |
var o = new api.Policy(); |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- o.auditConfigs = buildUnnamed1199(); |
- o.bindings = buildUnnamed1200(); |
+ o.auditConfigs = buildUnnamed1201(); |
+ o.bindings = buildUnnamed1202(); |
o.etag = "foo"; |
o.iamOwned = true; |
- o.rules = buildUnnamed1201(); |
o.version = 42; |
} |
buildCounterPolicy--; |
@@ -2489,37 +2426,36 @@ buildPolicy() { |
checkPolicy(api.Policy o) { |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- checkUnnamed1199(o.auditConfigs); |
- checkUnnamed1200(o.bindings); |
+ checkUnnamed1201(o.auditConfigs); |
+ checkUnnamed1202(o.bindings); |
unittest.expect(o.etag, unittest.equals('foo')); |
unittest.expect(o.iamOwned, unittest.isTrue); |
- checkUnnamed1201(o.rules); |
unittest.expect(o.version, unittest.equals(42)); |
} |
buildCounterPolicy--; |
} |
-buildUnnamed1202() { |
+buildUnnamed1203() { |
var o = new core.List<api.QuotaLimit>(); |
o.add(buildQuotaLimit()); |
o.add(buildQuotaLimit()); |
return o; |
} |
-checkUnnamed1202(core.List<api.QuotaLimit> o) { |
+checkUnnamed1203(core.List<api.QuotaLimit> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkQuotaLimit(o[0]); |
checkQuotaLimit(o[1]); |
} |
-buildUnnamed1203() { |
+buildUnnamed1204() { |
var o = new core.List<api.MetricRule>(); |
o.add(buildMetricRule()); |
o.add(buildMetricRule()); |
return o; |
} |
-checkUnnamed1203(core.List<api.MetricRule> o) { |
+checkUnnamed1204(core.List<api.MetricRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMetricRule(o[0]); |
checkMetricRule(o[1]); |
@@ -2530,8 +2466,8 @@ buildQuota() { |
var o = new api.Quota(); |
buildCounterQuota++; |
if (buildCounterQuota < 3) { |
- o.limits = buildUnnamed1202(); |
- o.metricRules = buildUnnamed1203(); |
+ o.limits = buildUnnamed1203(); |
+ o.metricRules = buildUnnamed1204(); |
} |
buildCounterQuota--; |
return o; |
@@ -2540,20 +2476,20 @@ buildQuota() { |
checkQuota(api.Quota o) { |
buildCounterQuota++; |
if (buildCounterQuota < 3) { |
- checkUnnamed1202(o.limits); |
- checkUnnamed1203(o.metricRules); |
+ checkUnnamed1203(o.limits); |
+ checkUnnamed1204(o.metricRules); |
} |
buildCounterQuota--; |
} |
-buildUnnamed1204() { |
+buildUnnamed1205() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed1204(core.Map<core.String, core.String> o) { |
+checkUnnamed1205(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')); |
@@ -2573,7 +2509,7 @@ buildQuotaLimit() { |
o.metric = "foo"; |
o.name = "foo"; |
o.unit = "foo"; |
- o.values = buildUnnamed1204(); |
+ o.values = buildUnnamed1205(); |
} |
buildCounterQuotaLimit--; |
return o; |
@@ -2591,7 +2527,7 @@ checkQuotaLimit(api.QuotaLimit o) { |
unittest.expect(o.metric, unittest.equals('foo')); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.unit, unittest.equals('foo')); |
- checkUnnamed1204(o.values); |
+ checkUnnamed1205(o.values); |
} |
buildCounterQuotaLimit--; |
} |
@@ -2627,201 +2563,105 @@ checkRollout(api.Rollout o) { |
buildCounterRollout--; |
} |
-buildUnnamed1205() { |
- var o = new core.List<api.Condition>(); |
- o.add(buildCondition()); |
- o.add(buildCondition()); |
- return o; |
-} |
- |
-checkUnnamed1205(core.List<api.Condition> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkCondition(o[0]); |
- checkCondition(o[1]); |
-} |
- |
buildUnnamed1206() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1206(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')); |
-} |
- |
-buildUnnamed1207() { |
- var o = new core.List<api.LogConfig>(); |
- o.add(buildLogConfig()); |
- o.add(buildLogConfig()); |
- return o; |
-} |
- |
-checkUnnamed1207(core.List<api.LogConfig> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkLogConfig(o[0]); |
- checkLogConfig(o[1]); |
-} |
- |
-buildUnnamed1208() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1208(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')); |
-} |
- |
-buildUnnamed1209() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1209(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterRule = 0; |
-buildRule() { |
- var o = new api.Rule(); |
- buildCounterRule++; |
- if (buildCounterRule < 3) { |
- o.action = "foo"; |
- o.conditions = buildUnnamed1205(); |
- o.description = "foo"; |
- o.in_ = buildUnnamed1206(); |
- o.logConfig = buildUnnamed1207(); |
- o.notIn = buildUnnamed1208(); |
- o.permissions = buildUnnamed1209(); |
- } |
- buildCounterRule--; |
- return o; |
-} |
- |
-checkRule(api.Rule o) { |
- buildCounterRule++; |
- if (buildCounterRule < 3) { |
- unittest.expect(o.action, unittest.equals('foo')); |
- checkUnnamed1205(o.conditions); |
- unittest.expect(o.description, unittest.equals('foo')); |
- checkUnnamed1206(o.in_); |
- checkUnnamed1207(o.logConfig); |
- checkUnnamed1208(o.notIn); |
- checkUnnamed1209(o.permissions); |
- } |
- buildCounterRule--; |
-} |
- |
-buildUnnamed1210() { |
var o = new core.List<api.Api>(); |
o.add(buildApi()); |
o.add(buildApi()); |
return o; |
} |
-checkUnnamed1210(core.List<api.Api> o) { |
+checkUnnamed1206(core.List<api.Api> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkApi(o[0]); |
checkApi(o[1]); |
} |
-buildUnnamed1211() { |
+buildUnnamed1207() { |
var o = new core.List<api.Endpoint>(); |
o.add(buildEndpoint()); |
o.add(buildEndpoint()); |
return o; |
} |
-checkUnnamed1211(core.List<api.Endpoint> o) { |
+checkUnnamed1207(core.List<api.Endpoint> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkEndpoint(o[0]); |
checkEndpoint(o[1]); |
} |
-buildUnnamed1212() { |
+buildUnnamed1208() { |
var o = new core.List<api.Enum>(); |
o.add(buildEnum()); |
o.add(buildEnum()); |
return o; |
} |
-checkUnnamed1212(core.List<api.Enum> o) { |
+checkUnnamed1208(core.List<api.Enum> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkEnum(o[0]); |
checkEnum(o[1]); |
} |
-buildUnnamed1213() { |
+buildUnnamed1209() { |
var o = new core.List<api.LogDescriptor>(); |
o.add(buildLogDescriptor()); |
o.add(buildLogDescriptor()); |
return o; |
} |
-checkUnnamed1213(core.List<api.LogDescriptor> o) { |
+checkUnnamed1209(core.List<api.LogDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkLogDescriptor(o[0]); |
checkLogDescriptor(o[1]); |
} |
-buildUnnamed1214() { |
+buildUnnamed1210() { |
var o = new core.List<api.MetricDescriptor>(); |
o.add(buildMetricDescriptor()); |
o.add(buildMetricDescriptor()); |
return o; |
} |
-checkUnnamed1214(core.List<api.MetricDescriptor> o) { |
+checkUnnamed1210(core.List<api.MetricDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMetricDescriptor(o[0]); |
checkMetricDescriptor(o[1]); |
} |
-buildUnnamed1215() { |
+buildUnnamed1211() { |
var o = new core.List<api.MonitoredResourceDescriptor>(); |
o.add(buildMonitoredResourceDescriptor()); |
o.add(buildMonitoredResourceDescriptor()); |
return o; |
} |
-checkUnnamed1215(core.List<api.MonitoredResourceDescriptor> o) { |
+checkUnnamed1211(core.List<api.MonitoredResourceDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMonitoredResourceDescriptor(o[0]); |
checkMonitoredResourceDescriptor(o[1]); |
} |
-buildUnnamed1216() { |
+buildUnnamed1212() { |
var o = new core.List<api.Type>(); |
o.add(buildType()); |
o.add(buildType()); |
return o; |
} |
-checkUnnamed1216(core.List<api.Type> o) { |
+checkUnnamed1212(core.List<api.Type> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkType(o[0]); |
checkType(o[1]); |
} |
-buildUnnamed1217() { |
+buildUnnamed1213() { |
var o = new core.List<api.Type>(); |
o.add(buildType()); |
o.add(buildType()); |
return o; |
} |
-checkUnnamed1217(core.List<api.Type> o) { |
+checkUnnamed1213(core.List<api.Type> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkType(o[0]); |
checkType(o[1]); |
@@ -2832,7 +2672,7 @@ buildService() { |
var o = new api.Service(); |
buildCounterService++; |
if (buildCounterService < 3) { |
- o.apis = buildUnnamed1210(); |
+ o.apis = buildUnnamed1206(); |
o.authentication = buildAuthentication(); |
o.backend = buildBackend(); |
o.configVersion = 42; |
@@ -2840,24 +2680,24 @@ buildService() { |
o.control = buildControl(); |
o.customError = buildCustomError(); |
o.documentation = buildDocumentation(); |
- o.endpoints = buildUnnamed1211(); |
- o.enums = buildUnnamed1212(); |
+ o.endpoints = buildUnnamed1207(); |
+ o.enums = buildUnnamed1208(); |
o.experimental = buildExperimental(); |
o.http = buildHttp(); |
o.id = "foo"; |
o.logging = buildLogging(); |
- o.logs = buildUnnamed1213(); |
- o.metrics = buildUnnamed1214(); |
- o.monitoredResources = buildUnnamed1215(); |
+ o.logs = buildUnnamed1209(); |
+ o.metrics = buildUnnamed1210(); |
+ o.monitoredResources = buildUnnamed1211(); |
o.monitoring = buildMonitoring(); |
o.name = "foo"; |
o.producerProjectId = "foo"; |
o.quota = buildQuota(); |
o.sourceInfo = buildSourceInfo(); |
o.systemParameters = buildSystemParameters(); |
- o.systemTypes = buildUnnamed1216(); |
+ o.systemTypes = buildUnnamed1212(); |
o.title = "foo"; |
- o.types = buildUnnamed1217(); |
+ o.types = buildUnnamed1213(); |
o.usage = buildUsage(); |
o.visibility = buildVisibility(); |
} |
@@ -2868,7 +2708,7 @@ buildService() { |
checkService(api.Service o) { |
buildCounterService++; |
if (buildCounterService < 3) { |
- checkUnnamed1210(o.apis); |
+ checkUnnamed1206(o.apis); |
checkAuthentication(o.authentication); |
checkBackend(o.backend); |
unittest.expect(o.configVersion, unittest.equals(42)); |
@@ -2876,24 +2716,24 @@ checkService(api.Service o) { |
checkControl(o.control); |
checkCustomError(o.customError); |
checkDocumentation(o.documentation); |
- checkUnnamed1211(o.endpoints); |
- checkUnnamed1212(o.enums); |
+ checkUnnamed1207(o.endpoints); |
+ checkUnnamed1208(o.enums); |
checkExperimental(o.experimental); |
checkHttp(o.http); |
unittest.expect(o.id, unittest.equals('foo')); |
checkLogging(o.logging); |
- checkUnnamed1213(o.logs); |
- checkUnnamed1214(o.metrics); |
- checkUnnamed1215(o.monitoredResources); |
+ checkUnnamed1209(o.logs); |
+ checkUnnamed1210(o.metrics); |
+ checkUnnamed1211(o.monitoredResources); |
checkMonitoring(o.monitoring); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.producerProjectId, unittest.equals('foo')); |
checkQuota(o.quota); |
checkSourceInfo(o.sourceInfo); |
checkSystemParameters(o.systemParameters); |
- checkUnnamed1216(o.systemTypes); |
+ checkUnnamed1212(o.systemTypes); |
unittest.expect(o.title, unittest.equals('foo')); |
- checkUnnamed1217(o.types); |
+ checkUnnamed1213(o.types); |
checkUsage(o.usage); |
checkVisibility(o.visibility); |
} |
@@ -2940,30 +2780,46 @@ checkSourceContext(api.SourceContext o) { |
buildCounterSourceContext--; |
} |
-buildUnnamed1218() { |
+buildUnnamed1214() { |
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; |
} |
-checkUnnamed1218(core.Map<core.String, core.Object> o) { |
+checkUnnamed1214(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); |
- var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); |
+ var casted11 = (o["x"]) as core.Map; |
+ unittest.expect(casted11, unittest.hasLength(3)); |
+ unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted11["bool"], unittest.equals(true)); |
+ unittest.expect(casted11["string"], unittest.equals('foo')); |
+ var casted12 = (o["y"]) as core.Map; |
+ unittest.expect(casted12, unittest.hasLength(3)); |
+ unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted12["bool"], unittest.equals(true)); |
+ unittest.expect(casted12["string"], unittest.equals('foo')); |
} |
-buildUnnamed1219() { |
+buildUnnamed1215() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed1218()); |
- o.add(buildUnnamed1218()); |
+ o.add(buildUnnamed1214()); |
+ o.add(buildUnnamed1214()); |
return o; |
} |
-checkUnnamed1219(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed1215(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1218(o[0]); |
- checkUnnamed1218(o[1]); |
+ checkUnnamed1214(o[0]); |
+ checkUnnamed1214(o[1]); |
} |
core.int buildCounterSourceInfo = 0; |
@@ -2971,7 +2827,7 @@ buildSourceInfo() { |
var o = new api.SourceInfo(); |
buildCounterSourceInfo++; |
if (buildCounterSourceInfo < 3) { |
- o.sourceFiles = buildUnnamed1219(); |
+ o.sourceFiles = buildUnnamed1215(); |
} |
buildCounterSourceInfo--; |
return o; |
@@ -2980,35 +2836,51 @@ buildSourceInfo() { |
checkSourceInfo(api.SourceInfo o) { |
buildCounterSourceInfo++; |
if (buildCounterSourceInfo < 3) { |
- checkUnnamed1219(o.sourceFiles); |
+ checkUnnamed1215(o.sourceFiles); |
} |
buildCounterSourceInfo--; |
} |
-buildUnnamed1220() { |
+buildUnnamed1216() { |
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; |
} |
-checkUnnamed1220(core.Map<core.String, core.Object> o) { |
+checkUnnamed1216(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); |
- var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); |
+ var casted13 = (o["x"]) as core.Map; |
+ unittest.expect(casted13, unittest.hasLength(3)); |
+ unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted13["bool"], unittest.equals(true)); |
+ unittest.expect(casted13["string"], unittest.equals('foo')); |
+ var casted14 = (o["y"]) as core.Map; |
+ unittest.expect(casted14, unittest.hasLength(3)); |
+ unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted14["bool"], unittest.equals(true)); |
+ unittest.expect(casted14["string"], unittest.equals('foo')); |
} |
-buildUnnamed1221() { |
+buildUnnamed1217() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed1220()); |
- o.add(buildUnnamed1220()); |
+ o.add(buildUnnamed1216()); |
+ o.add(buildUnnamed1216()); |
return o; |
} |
-checkUnnamed1221(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed1217(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1220(o[0]); |
- checkUnnamed1220(o[1]); |
+ checkUnnamed1216(o[0]); |
+ checkUnnamed1216(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -3017,7 +2889,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed1221(); |
+ o.details = buildUnnamed1217(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -3028,7 +2900,7 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed1221(o.details); |
+ checkUnnamed1217(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
@@ -3118,14 +2990,14 @@ checkSystemParameter(api.SystemParameter o) { |
buildCounterSystemParameter--; |
} |
-buildUnnamed1222() { |
+buildUnnamed1218() { |
var o = new core.List<api.SystemParameter>(); |
o.add(buildSystemParameter()); |
o.add(buildSystemParameter()); |
return o; |
} |
-checkUnnamed1222(core.List<api.SystemParameter> o) { |
+checkUnnamed1218(core.List<api.SystemParameter> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkSystemParameter(o[0]); |
checkSystemParameter(o[1]); |
@@ -3136,7 +3008,7 @@ buildSystemParameterRule() { |
var o = new api.SystemParameterRule(); |
buildCounterSystemParameterRule++; |
if (buildCounterSystemParameterRule < 3) { |
- o.parameters = buildUnnamed1222(); |
+ o.parameters = buildUnnamed1218(); |
o.selector = "foo"; |
} |
buildCounterSystemParameterRule--; |
@@ -3146,20 +3018,20 @@ buildSystemParameterRule() { |
checkSystemParameterRule(api.SystemParameterRule o) { |
buildCounterSystemParameterRule++; |
if (buildCounterSystemParameterRule < 3) { |
- checkUnnamed1222(o.parameters); |
+ checkUnnamed1218(o.parameters); |
unittest.expect(o.selector, unittest.equals('foo')); |
} |
buildCounterSystemParameterRule--; |
} |
-buildUnnamed1223() { |
+buildUnnamed1219() { |
var o = new core.List<api.SystemParameterRule>(); |
o.add(buildSystemParameterRule()); |
o.add(buildSystemParameterRule()); |
return o; |
} |
-checkUnnamed1223(core.List<api.SystemParameterRule> o) { |
+checkUnnamed1219(core.List<api.SystemParameterRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkSystemParameterRule(o[0]); |
checkSystemParameterRule(o[1]); |
@@ -3170,7 +3042,7 @@ buildSystemParameters() { |
var o = new api.SystemParameters(); |
buildCounterSystemParameters++; |
if (buildCounterSystemParameters < 3) { |
- o.rules = buildUnnamed1223(); |
+ o.rules = buildUnnamed1219(); |
} |
buildCounterSystemParameters--; |
return o; |
@@ -3179,19 +3051,19 @@ buildSystemParameters() { |
checkSystemParameters(api.SystemParameters o) { |
buildCounterSystemParameters++; |
if (buildCounterSystemParameters < 3) { |
- checkUnnamed1223(o.rules); |
+ checkUnnamed1219(o.rules); |
} |
buildCounterSystemParameters--; |
} |
-buildUnnamed1224() { |
+buildUnnamed1220() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1224(core.List<core.String> o) { |
+checkUnnamed1220(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')); |
@@ -3202,7 +3074,7 @@ buildTestIamPermissionsRequest() { |
var o = new api.TestIamPermissionsRequest(); |
buildCounterTestIamPermissionsRequest++; |
if (buildCounterTestIamPermissionsRequest < 3) { |
- o.permissions = buildUnnamed1224(); |
+ o.permissions = buildUnnamed1220(); |
} |
buildCounterTestIamPermissionsRequest--; |
return o; |
@@ -3211,19 +3083,19 @@ buildTestIamPermissionsRequest() { |
checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
buildCounterTestIamPermissionsRequest++; |
if (buildCounterTestIamPermissionsRequest < 3) { |
- checkUnnamed1224(o.permissions); |
+ checkUnnamed1220(o.permissions); |
} |
buildCounterTestIamPermissionsRequest--; |
} |
-buildUnnamed1225() { |
+buildUnnamed1221() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1225(core.List<core.String> o) { |
+checkUnnamed1221(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')); |
@@ -3234,7 +3106,7 @@ buildTestIamPermissionsResponse() { |
var o = new api.TestIamPermissionsResponse(); |
buildCounterTestIamPermissionsResponse++; |
if (buildCounterTestIamPermissionsResponse < 3) { |
- o.permissions = buildUnnamed1225(); |
+ o.permissions = buildUnnamed1221(); |
} |
buildCounterTestIamPermissionsResponse--; |
return o; |
@@ -3243,19 +3115,19 @@ buildTestIamPermissionsResponse() { |
checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
buildCounterTestIamPermissionsResponse++; |
if (buildCounterTestIamPermissionsResponse < 3) { |
- checkUnnamed1225(o.permissions); |
+ checkUnnamed1221(o.permissions); |
} |
buildCounterTestIamPermissionsResponse--; |
} |
-buildUnnamed1226() { |
+buildUnnamed1222() { |
var o = new core.Map<core.String, core.double>(); |
o["x"] = 42.0; |
o["y"] = 42.0; |
return o; |
} |
-checkUnnamed1226(core.Map<core.String, core.double> o) { |
+checkUnnamed1222(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)); |
@@ -3266,7 +3138,7 @@ buildTrafficPercentStrategy() { |
var o = new api.TrafficPercentStrategy(); |
buildCounterTrafficPercentStrategy++; |
if (buildCounterTrafficPercentStrategy < 3) { |
- o.percentages = buildUnnamed1226(); |
+ o.percentages = buildUnnamed1222(); |
} |
buildCounterTrafficPercentStrategy--; |
return o; |
@@ -3275,45 +3147,45 @@ buildTrafficPercentStrategy() { |
checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { |
buildCounterTrafficPercentStrategy++; |
if (buildCounterTrafficPercentStrategy < 3) { |
- checkUnnamed1226(o.percentages); |
+ checkUnnamed1222(o.percentages); |
} |
buildCounterTrafficPercentStrategy--; |
} |
-buildUnnamed1227() { |
+buildUnnamed1223() { |
var o = new core.List<api.Field>(); |
o.add(buildField()); |
o.add(buildField()); |
return o; |
} |
-checkUnnamed1227(core.List<api.Field> o) { |
+checkUnnamed1223(core.List<api.Field> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkField(o[0]); |
checkField(o[1]); |
} |
-buildUnnamed1228() { |
+buildUnnamed1224() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1228(core.List<core.String> o) { |
+checkUnnamed1224(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')); |
} |
-buildUnnamed1229() { |
+buildUnnamed1225() { |
var o = new core.List<api.Option>(); |
o.add(buildOption()); |
o.add(buildOption()); |
return o; |
} |
-checkUnnamed1229(core.List<api.Option> o) { |
+checkUnnamed1225(core.List<api.Option> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOption(o[0]); |
checkOption(o[1]); |
@@ -3324,10 +3196,10 @@ buildType() { |
var o = new api.Type(); |
buildCounterType++; |
if (buildCounterType < 3) { |
- o.fields = buildUnnamed1227(); |
+ o.fields = buildUnnamed1223(); |
o.name = "foo"; |
- o.oneofs = buildUnnamed1228(); |
- o.options = buildUnnamed1229(); |
+ o.oneofs = buildUnnamed1224(); |
+ o.options = buildUnnamed1225(); |
o.sourceContext = buildSourceContext(); |
o.syntax = "foo"; |
} |
@@ -3338,10 +3210,10 @@ buildType() { |
checkType(api.Type o) { |
buildCounterType++; |
if (buildCounterType < 3) { |
- checkUnnamed1227(o.fields); |
+ checkUnnamed1223(o.fields); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1228(o.oneofs); |
- checkUnnamed1229(o.options); |
+ checkUnnamed1224(o.oneofs); |
+ checkUnnamed1225(o.options); |
checkSourceContext(o.sourceContext); |
unittest.expect(o.syntax, unittest.equals('foo')); |
} |
@@ -3367,27 +3239,27 @@ checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { |
buildCounterUndeleteServiceResponse--; |
} |
-buildUnnamed1230() { |
+buildUnnamed1226() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1230(core.List<core.String> o) { |
+checkUnnamed1226(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')); |
} |
-buildUnnamed1231() { |
+buildUnnamed1227() { |
var o = new core.List<api.UsageRule>(); |
o.add(buildUsageRule()); |
o.add(buildUsageRule()); |
return o; |
} |
-checkUnnamed1231(core.List<api.UsageRule> o) { |
+checkUnnamed1227(core.List<api.UsageRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkUsageRule(o[0]); |
checkUsageRule(o[1]); |
@@ -3399,8 +3271,8 @@ buildUsage() { |
buildCounterUsage++; |
if (buildCounterUsage < 3) { |
o.producerNotificationChannel = "foo"; |
- o.requirements = buildUnnamed1230(); |
- o.rules = buildUnnamed1231(); |
+ o.requirements = buildUnnamed1226(); |
+ o.rules = buildUnnamed1227(); |
} |
buildCounterUsage--; |
return o; |
@@ -3410,8 +3282,8 @@ checkUsage(api.Usage o) { |
buildCounterUsage++; |
if (buildCounterUsage < 3) { |
unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
- checkUnnamed1230(o.requirements); |
- checkUnnamed1231(o.rules); |
+ checkUnnamed1226(o.requirements); |
+ checkUnnamed1227(o.rules); |
} |
buildCounterUsage--; |
} |
@@ -3439,14 +3311,14 @@ checkUsageRule(api.UsageRule o) { |
buildCounterUsageRule--; |
} |
-buildUnnamed1232() { |
+buildUnnamed1228() { |
var o = new core.List<api.VisibilityRule>(); |
o.add(buildVisibilityRule()); |
o.add(buildVisibilityRule()); |
return o; |
} |
-checkUnnamed1232(core.List<api.VisibilityRule> o) { |
+checkUnnamed1228(core.List<api.VisibilityRule> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkVisibilityRule(o[0]); |
checkVisibilityRule(o[1]); |
@@ -3457,7 +3329,7 @@ buildVisibility() { |
var o = new api.Visibility(); |
buildCounterVisibility++; |
if (buildCounterVisibility < 3) { |
- o.rules = buildUnnamed1232(); |
+ o.rules = buildUnnamed1228(); |
} |
buildCounterVisibility--; |
return o; |
@@ -3466,7 +3338,7 @@ buildVisibility() { |
checkVisibility(api.Visibility o) { |
buildCounterVisibility++; |
if (buildCounterVisibility < 3) { |
- checkUnnamed1232(o.rules); |
+ checkUnnamed1228(o.rules); |
} |
buildCounterVisibility--; |
} |
@@ -3492,7 +3364,6 @@ checkVisibilityRule(api.VisibilityRule o) { |
buildCounterVisibilityRule--; |
} |
- |
main() { |
unittest.group("obj-schema-Advice", () { |
unittest.test("to-json--from-json", () { |
@@ -3502,7 +3373,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Api", () { |
unittest.test("to-json--from-json", () { |
var o = buildApi(); |
@@ -3511,7 +3381,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AuditConfig", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuditConfig(); |
@@ -3520,7 +3389,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AuditLogConfig", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuditLogConfig(); |
@@ -3529,7 +3397,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AuthProvider", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuthProvider(); |
@@ -3538,7 +3405,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AuthRequirement", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuthRequirement(); |
@@ -3547,7 +3413,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Authentication", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuthentication(); |
@@ -3556,7 +3421,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AuthenticationRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuthenticationRule(); |
@@ -3565,7 +3429,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-AuthorizationConfig", () { |
unittest.test("to-json--from-json", () { |
var o = buildAuthorizationConfig(); |
@@ -3574,7 +3437,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Backend", () { |
unittest.test("to-json--from-json", () { |
var o = buildBackend(); |
@@ -3583,7 +3445,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-BackendRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildBackendRule(); |
@@ -3592,7 +3453,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Binding", () { |
unittest.test("to-json--from-json", () { |
var o = buildBinding(); |
@@ -3601,7 +3461,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ChangeReport", () { |
unittest.test("to-json--from-json", () { |
var o = buildChangeReport(); |
@@ -3610,25 +3469,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-CloudAuditOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCloudAuditOptions(); |
- var od = new api.CloudAuditOptions.fromJson(o.toJson()); |
- checkCloudAuditOptions(od); |
- }); |
- }); |
- |
- |
- unittest.group("obj-schema-Condition", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCondition(); |
- var od = new api.Condition.fromJson(o.toJson()); |
- checkCondition(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-ConfigChange", () { |
unittest.test("to-json--from-json", () { |
var o = buildConfigChange(); |
@@ -3637,7 +3477,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ConfigFile", () { |
unittest.test("to-json--from-json", () { |
var o = buildConfigFile(); |
@@ -3646,7 +3485,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ConfigRef", () { |
unittest.test("to-json--from-json", () { |
var o = buildConfigRef(); |
@@ -3655,7 +3493,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ConfigSource", () { |
unittest.test("to-json--from-json", () { |
var o = buildConfigSource(); |
@@ -3664,7 +3501,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Context", () { |
unittest.test("to-json--from-json", () { |
var o = buildContext(); |
@@ -3673,7 +3509,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ContextRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildContextRule(); |
@@ -3682,7 +3517,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Control", () { |
unittest.test("to-json--from-json", () { |
var o = buildControl(); |
@@ -3691,16 +3525,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-CounterOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCounterOptions(); |
- var od = new api.CounterOptions.fromJson(o.toJson()); |
- checkCounterOptions(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-CustomAuthRequirements", () { |
unittest.test("to-json--from-json", () { |
var o = buildCustomAuthRequirements(); |
@@ -3709,7 +3533,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CustomError", () { |
unittest.test("to-json--from-json", () { |
var o = buildCustomError(); |
@@ -3718,7 +3541,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CustomErrorRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildCustomErrorRule(); |
@@ -3727,7 +3549,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CustomHttpPattern", () { |
unittest.test("to-json--from-json", () { |
var o = buildCustomHttpPattern(); |
@@ -3736,16 +3557,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-DataAccessOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildDataAccessOptions(); |
- var od = new api.DataAccessOptions.fromJson(o.toJson()); |
- checkDataAccessOptions(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-DeleteServiceStrategy", () { |
unittest.test("to-json--from-json", () { |
var o = buildDeleteServiceStrategy(); |
@@ -3754,7 +3565,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Diagnostic", () { |
unittest.test("to-json--from-json", () { |
var o = buildDiagnostic(); |
@@ -3763,7 +3573,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-DisableServiceRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildDisableServiceRequest(); |
@@ -3772,7 +3581,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Documentation", () { |
unittest.test("to-json--from-json", () { |
var o = buildDocumentation(); |
@@ -3781,7 +3589,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-DocumentationRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildDocumentationRule(); |
@@ -3790,7 +3597,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-EnableServiceRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildEnableServiceRequest(); |
@@ -3799,7 +3605,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Endpoint", () { |
unittest.test("to-json--from-json", () { |
var o = buildEndpoint(); |
@@ -3808,7 +3613,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Enum", () { |
unittest.test("to-json--from-json", () { |
var o = buildEnum(); |
@@ -3817,7 +3621,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-EnumValue", () { |
unittest.test("to-json--from-json", () { |
var o = buildEnumValue(); |
@@ -3826,7 +3629,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Experimental", () { |
unittest.test("to-json--from-json", () { |
var o = buildExperimental(); |
@@ -3835,7 +3637,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Expr", () { |
unittest.test("to-json--from-json", () { |
var o = buildExpr(); |
@@ -3844,7 +3645,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Field", () { |
unittest.test("to-json--from-json", () { |
var o = buildField(); |
@@ -3853,7 +3653,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-FlowOperationMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildFlowOperationMetadata(); |
@@ -3862,7 +3661,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GenerateConfigReportRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildGenerateConfigReportRequest(); |
@@ -3871,7 +3669,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GenerateConfigReportResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildGenerateConfigReportResponse(); |
@@ -3880,7 +3677,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GetIamPolicyRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildGetIamPolicyRequest(); |
@@ -3889,7 +3685,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Http", () { |
unittest.test("to-json--from-json", () { |
var o = buildHttp(); |
@@ -3898,7 +3693,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-HttpRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildHttpRule(); |
@@ -3907,7 +3701,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-LabelDescriptor", () { |
unittest.test("to-json--from-json", () { |
var o = buildLabelDescriptor(); |
@@ -3916,7 +3709,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListOperationsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListOperationsResponse(); |
@@ -3925,7 +3717,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListServiceConfigsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListServiceConfigsResponse(); |
@@ -3934,7 +3725,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListServiceRolloutsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListServiceRolloutsResponse(); |
@@ -3943,7 +3733,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListServicesResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListServicesResponse(); |
@@ -3952,16 +3741,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-LogConfig", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildLogConfig(); |
- var od = new api.LogConfig.fromJson(o.toJson()); |
- checkLogConfig(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-LogDescriptor", () { |
unittest.test("to-json--from-json", () { |
var o = buildLogDescriptor(); |
@@ -3970,7 +3749,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Logging", () { |
unittest.test("to-json--from-json", () { |
var o = buildLogging(); |
@@ -3979,7 +3757,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-LoggingDestination", () { |
unittest.test("to-json--from-json", () { |
var o = buildLoggingDestination(); |
@@ -3988,7 +3765,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ManagedService", () { |
unittest.test("to-json--from-json", () { |
var o = buildManagedService(); |
@@ -3997,7 +3773,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-MediaDownload", () { |
unittest.test("to-json--from-json", () { |
var o = buildMediaDownload(); |
@@ -4006,7 +3781,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-MediaUpload", () { |
unittest.test("to-json--from-json", () { |
var o = buildMediaUpload(); |
@@ -4015,7 +3789,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Method", () { |
unittest.test("to-json--from-json", () { |
var o = buildMethod(); |
@@ -4024,7 +3797,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-MetricDescriptor", () { |
unittest.test("to-json--from-json", () { |
var o = buildMetricDescriptor(); |
@@ -4033,7 +3805,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-MetricRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildMetricRule(); |
@@ -4042,7 +3813,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Mixin", () { |
unittest.test("to-json--from-json", () { |
var o = buildMixin(); |
@@ -4051,7 +3821,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-MonitoredResourceDescriptor", () { |
unittest.test("to-json--from-json", () { |
var o = buildMonitoredResourceDescriptor(); |
@@ -4060,7 +3829,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Monitoring", () { |
unittest.test("to-json--from-json", () { |
var o = buildMonitoring(); |
@@ -4069,7 +3837,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-MonitoringDestination", () { |
unittest.test("to-json--from-json", () { |
var o = buildMonitoringDestination(); |
@@ -4078,7 +3845,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OAuthRequirements", () { |
unittest.test("to-json--from-json", () { |
var o = buildOAuthRequirements(); |
@@ -4087,7 +3853,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Operation", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperation(); |
@@ -4096,7 +3861,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-OperationMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperationMetadata(); |
@@ -4105,7 +3869,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Option", () { |
unittest.test("to-json--from-json", () { |
var o = buildOption(); |
@@ -4114,7 +3877,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Page", () { |
unittest.test("to-json--from-json", () { |
var o = buildPage(); |
@@ -4123,7 +3885,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Policy", () { |
unittest.test("to-json--from-json", () { |
var o = buildPolicy(); |
@@ -4132,7 +3893,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Quota", () { |
unittest.test("to-json--from-json", () { |
var o = buildQuota(); |
@@ -4141,7 +3901,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-QuotaLimit", () { |
unittest.test("to-json--from-json", () { |
var o = buildQuotaLimit(); |
@@ -4150,7 +3909,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Rollout", () { |
unittest.test("to-json--from-json", () { |
var o = buildRollout(); |
@@ -4159,16 +3917,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-Rule", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildRule(); |
- var od = new api.Rule.fromJson(o.toJson()); |
- checkRule(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-Service", () { |
unittest.test("to-json--from-json", () { |
var o = buildService(); |
@@ -4177,7 +3925,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SetIamPolicyRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildSetIamPolicyRequest(); |
@@ -4186,7 +3933,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SourceContext", () { |
unittest.test("to-json--from-json", () { |
var o = buildSourceContext(); |
@@ -4195,7 +3941,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SourceInfo", () { |
unittest.test("to-json--from-json", () { |
var o = buildSourceInfo(); |
@@ -4204,7 +3949,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Status", () { |
unittest.test("to-json--from-json", () { |
var o = buildStatus(); |
@@ -4213,7 +3957,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Step", () { |
unittest.test("to-json--from-json", () { |
var o = buildStep(); |
@@ -4222,7 +3965,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SubmitConfigSourceRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildSubmitConfigSourceRequest(); |
@@ -4231,7 +3973,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SubmitConfigSourceResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildSubmitConfigSourceResponse(); |
@@ -4240,7 +3981,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SystemParameter", () { |
unittest.test("to-json--from-json", () { |
var o = buildSystemParameter(); |
@@ -4249,7 +3989,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SystemParameterRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildSystemParameterRule(); |
@@ -4258,7 +3997,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SystemParameters", () { |
unittest.test("to-json--from-json", () { |
var o = buildSystemParameters(); |
@@ -4267,7 +4005,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TestIamPermissionsRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildTestIamPermissionsRequest(); |
@@ -4276,7 +4013,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TestIamPermissionsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildTestIamPermissionsResponse(); |
@@ -4285,7 +4021,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TrafficPercentStrategy", () { |
unittest.test("to-json--from-json", () { |
var o = buildTrafficPercentStrategy(); |
@@ -4294,7 +4029,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Type", () { |
unittest.test("to-json--from-json", () { |
var o = buildType(); |
@@ -4303,7 +4037,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UndeleteServiceResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildUndeleteServiceResponse(); |
@@ -4312,7 +4045,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Usage", () { |
unittest.test("to-json--from-json", () { |
var o = buildUsage(); |
@@ -4321,7 +4053,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UsageRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildUsageRule(); |
@@ -4330,7 +4061,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Visibility", () { |
unittest.test("to-json--from-json", () { |
var o = buildVisibility(); |
@@ -4339,7 +4069,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-VisibilityRule", () { |
unittest.test("to-json--from-json", () { |
var o = buildVisibilityRule(); |
@@ -4348,21 +4077,22 @@ main() { |
}); |
}); |
- |
unittest.group("resource-OperationsResourceApi", () { |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operations; |
+ api.OperationsResourceApi res = |
+ new api.ServicemanagementApi(mock).operations; |
var arg_name = "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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4376,16 +4106,17 @@ 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)); |
@@ -4396,21 +4127,23 @@ main() { |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operations; |
- var arg_pageSize = 42; |
- var arg_filter = "foo"; |
+ api.OperationsResourceApi res = |
+ new api.ServicemanagementApi(mock).operations; |
var arg_pageToken = "foo"; |
var arg_name = "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("v1/operations")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), |
+ unittest.equals("v1/operations")); |
pathOffset += 13; |
var query = (req.url).query; |
@@ -4423,35 +4156,41 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(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( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
- |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
+ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
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(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, name: arg_name).then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
+ res |
+ .list( |
+ pageToken: arg_pageToken, |
+ name: arg_name, |
+ pageSize: arg_pageSize, |
+ filter: arg_filter) |
+ .then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
checkListOperationsResponse(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ServicesResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildManagedService(); |
@@ -4463,9 +4202,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 + 11), unittest.equals("v1/services")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), |
+ unittest.equals("v1/services")); |
pathOffset += 11; |
var query = (req.url).query; |
@@ -4478,27 +4219,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--delete", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_serviceName = "foo"; |
@@ -4507,9 +4250,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("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -4525,27 +4270,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_serviceName).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .delete(arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--disable", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildDisableServiceRequest(); |
@@ -4558,16 +4305,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf(":disable", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals(":disable")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), |
+ unittest.equals(":disable")); |
pathOffset += 8; |
var query = (req.url).query; |
@@ -4580,27 +4331,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.disable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .disable(arg_request, arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--enable", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildEnableServiceRequest(); |
@@ -4613,16 +4366,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf(":enable", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":enable")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 7), |
+ unittest.equals(":enable")); |
pathOffset += 7; |
var query = (req.url).query; |
@@ -4635,27 +4392,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.enable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .enable(arg_request, arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--generateConfigReport", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildGenerateConfigReportRequest(); |
@@ -4667,9 +4426,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 + 32), unittest.equals("v1/services:generateConfigReport")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 32), |
+ unittest.equals("v1/services:generateConfigReport")); |
pathOffset += 32; |
var query = (req.url).query; |
@@ -4682,27 +4443,28 @@ 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(buildGenerateConfigReportResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.generateConfigReport(arg_request).then(unittest.expectAsync1(((api.GenerateConfigReportResponse response) { |
+ res.generateConfigReport(arg_request).then( |
+ unittest.expectAsync1(((api.GenerateConfigReportResponse response) { |
checkGenerateConfigReportResponse(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_serviceName = "foo"; |
@@ -4711,9 +4473,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("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -4729,47 +4493,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(buildManagedService()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_serviceName).then(unittest.expectAsync1(((api.ManagedService response) { |
+ res |
+ .get(arg_serviceName) |
+ .then(unittest.expectAsync1(((api.ManagedService response) { |
checkManagedService(response); |
}))); |
}); |
unittest.test("method--getConfig", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_serviceName = "foo"; |
- var arg_configId = "foo"; |
var arg_view = "foo"; |
+ var arg_configId = "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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/config", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/config")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 7), |
+ unittest.equals("/config")); |
pathOffset += 7; |
var query = (req.url).query; |
@@ -4782,29 +4552,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])); |
} |
} |
- unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId)); |
unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
- |
+ unittest.expect( |
+ queryMap["configId"].first, unittest.equals(arg_configId)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildService()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).then(unittest.expectAsync1(((api.Service response) { |
+ res |
+ .getConfig(arg_serviceName, view: arg_view, configId: arg_configId) |
+ .then(unittest.expectAsync1(((api.Service response) { |
checkService(response); |
}))); |
}); |
unittest.test("method--getIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildGetIamPolicyRequest(); |
@@ -4817,9 +4590,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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4833,41 +4608,45 @@ 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(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .getIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
- var arg_pageSize = 42; |
var arg_producerProjectId = "foo"; |
var arg_consumerId = "foo"; |
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 + 11), unittest.equals("v1/services")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), |
+ unittest.equals("v1/services")); |
pathOffset += 11; |
var query = (req.url).query; |
@@ -4880,31 +4659,41 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
- unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg_producerProjectId)); |
- unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consumerId)); |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- |
+ unittest.expect(queryMap["producerProjectId"].first, |
+ unittest.equals(arg_producerProjectId)); |
+ unittest.expect( |
+ queryMap["consumerId"].first, unittest.equals(arg_consumerId)); |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListServicesResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(pageSize: arg_pageSize, producerProjectId: arg_producerProjectId, consumerId: arg_consumerId, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListServicesResponse response) { |
+ res |
+ .list( |
+ producerProjectId: arg_producerProjectId, |
+ consumerId: arg_consumerId, |
+ pageToken: arg_pageToken, |
+ pageSize: arg_pageSize) |
+ .then(unittest.expectAsync1(((api.ListServicesResponse response) { |
checkListServicesResponse(response); |
}))); |
}); |
unittest.test("method--setIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildSetIamPolicyRequest(); |
@@ -4917,9 +4706,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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4933,27 +4724,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(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .setIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--testIamPermissions", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_request = buildTestIamPermissionsRequest(); |
@@ -4966,9 +4759,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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4982,27 +4777,28 @@ 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(buildTestIamPermissionsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
+ res.testIamPermissions(arg_request, arg_resource).then( |
+ unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
checkTestIamPermissionsResponse(response); |
}))); |
}); |
unittest.test("method--undelete", () { |
- |
var mock = new HttpServerMock(); |
api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
var arg_serviceName = "foo"; |
@@ -5011,16 +4807,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf(":undelete", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals(":undelete")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals(":undelete")); |
pathOffset += 9; |
var query = (req.url).query; |
@@ -5033,33 +4833,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])); |
} |
} |
- |
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.undelete(arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .undelete(arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ServicesConfigsResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; |
+ api.ServicesConfigsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.configs; |
var arg_request = buildService(); |
var arg_serviceName = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5070,16 +4871,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/configs", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/configs")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), |
+ unittest.equals("/configs")); |
pathOffset += 8; |
var query = (req.url).query; |
@@ -5092,29 +4897,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildService()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Service response) { |
+ res |
+ .create(arg_request, arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Service response) { |
checkService(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; |
+ api.ServicesConfigsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.configs; |
var arg_serviceName = "foo"; |
var arg_configId = "foo"; |
var arg_view = "foo"; |
@@ -5123,16 +4931,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/configs/", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/configs/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/configs/")); |
pathOffset += 9; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -5148,30 +4960,33 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildService()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expectAsync1(((api.Service response) { |
+ res |
+ .get(arg_serviceName, arg_configId, view: arg_view) |
+ .then(unittest.expectAsync1(((api.Service response) { |
checkService(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; |
+ api.ServicesConfigsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.configs; |
var arg_serviceName = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
@@ -5180,16 +4995,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/configs", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/configs")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), |
+ unittest.equals("/configs")); |
pathOffset += 8; |
var query = (req.url).query; |
@@ -5202,31 +5021,38 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
- |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListServiceConfigsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceConfigsResponse response) { |
+ res |
+ .list(arg_serviceName, |
+ pageToken: arg_pageToken, pageSize: arg_pageSize) |
+ .then( |
+ unittest.expectAsync1(((api.ListServiceConfigsResponse response) { |
checkListServiceConfigsResponse(response); |
}))); |
}); |
unittest.test("method--submit", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; |
+ api.ServicesConfigsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.configs; |
var arg_request = buildSubmitConfigSourceRequest(); |
var arg_serviceName = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5237,16 +5063,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/configs:submit", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/configs:submit")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), |
+ unittest.equals("/configs:submit")); |
pathOffset += 15; |
var query = (req.url).query; |
@@ -5259,33 +5089,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])); |
} |
} |
- |
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.submit(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .submit(arg_request, arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ServicesConsumersResourceApi", () { |
unittest.test("method--getIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).services.consumers; |
+ api.ServicesConsumersResourceApi res = |
+ new api.ServicemanagementApi(mock).services.consumers; |
var arg_request = buildGetIamPolicyRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5296,9 +5127,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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -5312,29 +5145,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(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .getIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--setIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).services.consumers; |
+ api.ServicesConsumersResourceApi res = |
+ new api.ServicemanagementApi(mock).services.consumers; |
var arg_request = buildSetIamPolicyRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5345,9 +5181,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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -5361,29 +5199,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(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .setIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--testIamPermissions", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).services.consumers; |
+ api.ServicesConsumersResourceApi res = |
+ new api.ServicemanagementApi(mock).services.consumers; |
var arg_request = buildTestIamPermissionsRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5394,9 +5235,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 + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -5410,33 +5253,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(buildTestIamPermissionsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
+ res.testIamPermissions(arg_request, arg_resource).then( |
+ unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
checkTestIamPermissionsResponse(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ServicesRolloutsResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).services.rollouts; |
+ api.ServicesRolloutsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.rollouts; |
var arg_request = buildRollout(); |
var arg_serviceName = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5447,16 +5290,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/rollouts", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/rollouts")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/rollouts")); |
pathOffset += 9; |
var query = (req.url).query; |
@@ -5469,29 +5316,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_serviceName).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .create(arg_request, arg_serviceName) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).services.rollouts; |
+ api.ServicesRolloutsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.rollouts; |
var arg_serviceName = "foo"; |
var arg_rolloutId = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -5499,16 +5349,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/rollouts/", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/rollouts/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 10), |
+ unittest.equals("/rollouts/")); |
pathOffset += 10; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
@@ -5524,29 +5378,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(buildRollout()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync1(((api.Rollout response) { |
+ res |
+ .get(arg_serviceName, arg_rolloutId) |
+ .then(unittest.expectAsync1(((api.Rollout response) { |
checkRollout(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).services.rollouts; |
+ api.ServicesRolloutsResourceApi res = |
+ new api.ServicemanagementApi(mock).services.rollouts; |
var arg_serviceName = "foo"; |
var arg_filter = "foo"; |
var arg_pageToken = "foo"; |
@@ -5556,16 +5413,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 + 12), unittest.equals("v1/services/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), |
+ unittest.equals("v1/services/")); |
pathOffset += 12; |
index = path.indexOf("/rollouts", 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_serviceName")); |
- unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/rollouts")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), |
+ unittest.equals("/rollouts")); |
pathOffset += 9; |
var query = (req.url).query; |
@@ -5578,30 +5439,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["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(buildListServiceRolloutsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_serviceName, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceRolloutsResponse response) { |
+ res |
+ .list(arg_serviceName, |
+ filter: arg_filter, |
+ pageToken: arg_pageToken, |
+ pageSize: arg_pageSize) |
+ .then(unittest |
+ .expectAsync1(((api.ListServiceRolloutsResponse response) { |
checkListServiceRolloutsResponse(response); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |