Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: generated/googleapis/test/servicemanagement/v1_test.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.servicemanagement.v1.test; 1 library googleapis.servicemanagement.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection;
5 import "dart:async" as async; 4 import "dart:async" as async;
6 import "dart:convert" as convert; 5 import "dart:convert" as convert;
7 6
8 import 'package:http/http.dart' as http; 7 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing;
10 import 'package:test/test.dart' as unittest; 8 import 'package:test/test.dart' as unittest;
11 9
12 import 'package:googleapis/servicemanagement/v1.dart' as api; 10 import 'package:googleapis/servicemanagement/v1.dart' as api;
13 11
14 class HttpServerMock extends http.BaseClient { 12 class HttpServerMock extends http.BaseClient {
15 core.Function _callback; 13 core.Function _callback;
16 core.bool _expectJson; 14 core.bool _expectJson;
17 15
18 void register(core.Function callback, core.bool expectJson) { 16 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback; 17 _callback = callback;
20 _expectJson = expectJson; 18 _expectJson = expectJson;
21 } 19 }
22 20
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) { 22 if (_expectJson) {
25 return request.finalize() 23 return request
24 .finalize()
26 .transform(convert.UTF8.decoder) 25 .transform(convert.UTF8.decoder)
27 .join('') 26 .join('')
28 .then((core.String jsonString) { 27 .then((core.String jsonString) {
29 if (jsonString.isEmpty) { 28 if (jsonString.isEmpty) {
30 return _callback(request, null); 29 return _callback(request, null);
31 } else { 30 } else {
32 return _callback(request, convert.JSON.decode(jsonString)); 31 return _callback(request, convert.JSON.decode(jsonString));
33 } 32 }
34 }); 33 });
35 } else { 34 } else {
36 var stream = request.finalize(); 35 var stream = request.finalize();
37 if (stream == null) { 36 if (stream == null) {
38 return _callback(request, []); 37 return _callback(request, []);
39 } else { 38 } else {
40 return stream.toBytes().then((data) { 39 return stream.toBytes().then((data) {
41 return _callback(request, data); 40 return _callback(request, data);
42 }); 41 });
43 } 42 }
44 } 43 }
45 } 44 }
46 } 45 }
47 46
48 http.StreamedResponse stringResponse( 47 http.StreamedResponse stringResponse(core.int status,
49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) { 48 core.Map<core.String, core.String> headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 50 return new http.StreamedResponse(stream, status, headers: headers);
52 } 51 }
53 52
54 core.int buildCounterAdvice = 0; 53 core.int buildCounterAdvice = 0;
55 buildAdvice() { 54 buildAdvice() {
56 var o = new api.Advice(); 55 var o = new api.Advice();
57 buildCounterAdvice++; 56 buildCounterAdvice++;
58 if (buildCounterAdvice < 3) { 57 if (buildCounterAdvice < 3) {
59 o.description = "foo"; 58 o.description = "foo";
60 } 59 }
61 buildCounterAdvice--; 60 buildCounterAdvice--;
62 return o; 61 return o;
63 } 62 }
64 63
65 checkAdvice(api.Advice o) { 64 checkAdvice(api.Advice o) {
66 buildCounterAdvice++; 65 buildCounterAdvice++;
67 if (buildCounterAdvice < 3) { 66 if (buildCounterAdvice < 3) {
68 unittest.expect(o.description, unittest.equals('foo')); 67 unittest.expect(o.description, unittest.equals('foo'));
69 } 68 }
70 buildCounterAdvice--; 69 buildCounterAdvice--;
71 } 70 }
72 71
73 buildUnnamed1141() { 72 buildUnnamed1144() {
74 var o = new core.List<api.Method>(); 73 var o = new core.List<api.Method>();
75 o.add(buildMethod()); 74 o.add(buildMethod());
76 o.add(buildMethod()); 75 o.add(buildMethod());
77 return o; 76 return o;
78 } 77 }
79 78
80 checkUnnamed1141(core.List<api.Method> o) { 79 checkUnnamed1144(core.List<api.Method> o) {
81 unittest.expect(o, unittest.hasLength(2)); 80 unittest.expect(o, unittest.hasLength(2));
82 checkMethod(o[0]); 81 checkMethod(o[0]);
83 checkMethod(o[1]); 82 checkMethod(o[1]);
84 } 83 }
85 84
86 buildUnnamed1142() { 85 buildUnnamed1145() {
87 var o = new core.List<api.Mixin>(); 86 var o = new core.List<api.Mixin>();
88 o.add(buildMixin()); 87 o.add(buildMixin());
89 o.add(buildMixin()); 88 o.add(buildMixin());
90 return o; 89 return o;
91 } 90 }
92 91
93 checkUnnamed1142(core.List<api.Mixin> o) { 92 checkUnnamed1145(core.List<api.Mixin> o) {
94 unittest.expect(o, unittest.hasLength(2)); 93 unittest.expect(o, unittest.hasLength(2));
95 checkMixin(o[0]); 94 checkMixin(o[0]);
96 checkMixin(o[1]); 95 checkMixin(o[1]);
97 } 96 }
98 97
99 buildUnnamed1143() { 98 buildUnnamed1146() {
100 var o = new core.List<api.Option>(); 99 var o = new core.List<api.Option>();
101 o.add(buildOption()); 100 o.add(buildOption());
102 o.add(buildOption()); 101 o.add(buildOption());
103 return o; 102 return o;
104 } 103 }
105 104
106 checkUnnamed1143(core.List<api.Option> o) { 105 checkUnnamed1146(core.List<api.Option> o) {
107 unittest.expect(o, unittest.hasLength(2)); 106 unittest.expect(o, unittest.hasLength(2));
108 checkOption(o[0]); 107 checkOption(o[0]);
109 checkOption(o[1]); 108 checkOption(o[1]);
110 } 109 }
111 110
112 core.int buildCounterApi = 0; 111 core.int buildCounterApi = 0;
113 buildApi() { 112 buildApi() {
114 var o = new api.Api(); 113 var o = new api.Api();
115 buildCounterApi++; 114 buildCounterApi++;
116 if (buildCounterApi < 3) { 115 if (buildCounterApi < 3) {
117 o.methods = buildUnnamed1141(); 116 o.methods = buildUnnamed1144();
118 o.mixins = buildUnnamed1142(); 117 o.mixins = buildUnnamed1145();
119 o.name = "foo"; 118 o.name = "foo";
120 o.options = buildUnnamed1143(); 119 o.options = buildUnnamed1146();
121 o.sourceContext = buildSourceContext(); 120 o.sourceContext = buildSourceContext();
122 o.syntax = "foo"; 121 o.syntax = "foo";
123 o.version = "foo"; 122 o.version = "foo";
124 } 123 }
125 buildCounterApi--; 124 buildCounterApi--;
126 return o; 125 return o;
127 } 126 }
128 127
129 checkApi(api.Api o) { 128 checkApi(api.Api o) {
130 buildCounterApi++; 129 buildCounterApi++;
131 if (buildCounterApi < 3) { 130 if (buildCounterApi < 3) {
132 checkUnnamed1141(o.methods); 131 checkUnnamed1144(o.methods);
133 checkUnnamed1142(o.mixins); 132 checkUnnamed1145(o.mixins);
134 unittest.expect(o.name, unittest.equals('foo')); 133 unittest.expect(o.name, unittest.equals('foo'));
135 checkUnnamed1143(o.options); 134 checkUnnamed1146(o.options);
136 checkSourceContext(o.sourceContext); 135 checkSourceContext(o.sourceContext);
137 unittest.expect(o.syntax, unittest.equals('foo')); 136 unittest.expect(o.syntax, unittest.equals('foo'));
138 unittest.expect(o.version, unittest.equals('foo')); 137 unittest.expect(o.version, unittest.equals('foo'));
139 } 138 }
140 buildCounterApi--; 139 buildCounterApi--;
141 } 140 }
142 141
143 buildUnnamed1144() { 142 buildUnnamed1147() {
144 var o = new core.List<api.AuditLogConfig>(); 143 var o = new core.List<api.AuditLogConfig>();
145 o.add(buildAuditLogConfig()); 144 o.add(buildAuditLogConfig());
146 o.add(buildAuditLogConfig()); 145 o.add(buildAuditLogConfig());
147 return o; 146 return o;
148 } 147 }
149 148
150 checkUnnamed1144(core.List<api.AuditLogConfig> o) { 149 checkUnnamed1147(core.List<api.AuditLogConfig> o) {
151 unittest.expect(o, unittest.hasLength(2)); 150 unittest.expect(o, unittest.hasLength(2));
152 checkAuditLogConfig(o[0]); 151 checkAuditLogConfig(o[0]);
153 checkAuditLogConfig(o[1]); 152 checkAuditLogConfig(o[1]);
154 } 153 }
155 154
156 buildUnnamed1145() { 155 buildUnnamed1148() {
157 var o = new core.List<core.String>(); 156 var o = new core.List<core.String>();
158 o.add("foo"); 157 o.add("foo");
159 o.add("foo"); 158 o.add("foo");
160 return o; 159 return o;
161 } 160 }
162 161
163 checkUnnamed1145(core.List<core.String> o) { 162 checkUnnamed1148(core.List<core.String> o) {
164 unittest.expect(o, unittest.hasLength(2)); 163 unittest.expect(o, unittest.hasLength(2));
165 unittest.expect(o[0], unittest.equals('foo')); 164 unittest.expect(o[0], unittest.equals('foo'));
166 unittest.expect(o[1], unittest.equals('foo')); 165 unittest.expect(o[1], unittest.equals('foo'));
167 } 166 }
168 167
169 core.int buildCounterAuditConfig = 0; 168 core.int buildCounterAuditConfig = 0;
170 buildAuditConfig() { 169 buildAuditConfig() {
171 var o = new api.AuditConfig(); 170 var o = new api.AuditConfig();
172 buildCounterAuditConfig++; 171 buildCounterAuditConfig++;
173 if (buildCounterAuditConfig < 3) { 172 if (buildCounterAuditConfig < 3) {
174 o.auditLogConfigs = buildUnnamed1144(); 173 o.auditLogConfigs = buildUnnamed1147();
175 o.exemptedMembers = buildUnnamed1145(); 174 o.exemptedMembers = buildUnnamed1148();
176 o.service = "foo"; 175 o.service = "foo";
177 } 176 }
178 buildCounterAuditConfig--; 177 buildCounterAuditConfig--;
179 return o; 178 return o;
180 } 179 }
181 180
182 checkAuditConfig(api.AuditConfig o) { 181 checkAuditConfig(api.AuditConfig o) {
183 buildCounterAuditConfig++; 182 buildCounterAuditConfig++;
184 if (buildCounterAuditConfig < 3) { 183 if (buildCounterAuditConfig < 3) {
185 checkUnnamed1144(o.auditLogConfigs); 184 checkUnnamed1147(o.auditLogConfigs);
186 checkUnnamed1145(o.exemptedMembers); 185 checkUnnamed1148(o.exemptedMembers);
187 unittest.expect(o.service, unittest.equals('foo')); 186 unittest.expect(o.service, unittest.equals('foo'));
188 } 187 }
189 buildCounterAuditConfig--; 188 buildCounterAuditConfig--;
190 } 189 }
191 190
192 buildUnnamed1146() { 191 buildUnnamed1149() {
193 var o = new core.List<core.String>(); 192 var o = new core.List<core.String>();
194 o.add("foo"); 193 o.add("foo");
195 o.add("foo"); 194 o.add("foo");
196 return o; 195 return o;
197 } 196 }
198 197
199 checkUnnamed1146(core.List<core.String> o) { 198 checkUnnamed1149(core.List<core.String> o) {
200 unittest.expect(o, unittest.hasLength(2)); 199 unittest.expect(o, unittest.hasLength(2));
201 unittest.expect(o[0], unittest.equals('foo')); 200 unittest.expect(o[0], unittest.equals('foo'));
202 unittest.expect(o[1], unittest.equals('foo')); 201 unittest.expect(o[1], unittest.equals('foo'));
203 } 202 }
204 203
205 core.int buildCounterAuditLogConfig = 0; 204 core.int buildCounterAuditLogConfig = 0;
206 buildAuditLogConfig() { 205 buildAuditLogConfig() {
207 var o = new api.AuditLogConfig(); 206 var o = new api.AuditLogConfig();
208 buildCounterAuditLogConfig++; 207 buildCounterAuditLogConfig++;
209 if (buildCounterAuditLogConfig < 3) { 208 if (buildCounterAuditLogConfig < 3) {
210 o.exemptedMembers = buildUnnamed1146(); 209 o.exemptedMembers = buildUnnamed1149();
211 o.logType = "foo"; 210 o.logType = "foo";
212 } 211 }
213 buildCounterAuditLogConfig--; 212 buildCounterAuditLogConfig--;
214 return o; 213 return o;
215 } 214 }
216 215
217 checkAuditLogConfig(api.AuditLogConfig o) { 216 checkAuditLogConfig(api.AuditLogConfig o) {
218 buildCounterAuditLogConfig++; 217 buildCounterAuditLogConfig++;
219 if (buildCounterAuditLogConfig < 3) { 218 if (buildCounterAuditLogConfig < 3) {
220 checkUnnamed1146(o.exemptedMembers); 219 checkUnnamed1149(o.exemptedMembers);
221 unittest.expect(o.logType, unittest.equals('foo')); 220 unittest.expect(o.logType, unittest.equals('foo'));
222 } 221 }
223 buildCounterAuditLogConfig--; 222 buildCounterAuditLogConfig--;
224 } 223 }
225 224
226 core.int buildCounterAuthProvider = 0; 225 core.int buildCounterAuthProvider = 0;
227 buildAuthProvider() { 226 buildAuthProvider() {
228 var o = new api.AuthProvider(); 227 var o = new api.AuthProvider();
229 buildCounterAuthProvider++; 228 buildCounterAuthProvider++;
230 if (buildCounterAuthProvider < 3) { 229 if (buildCounterAuthProvider < 3) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 263
265 checkAuthRequirement(api.AuthRequirement o) { 264 checkAuthRequirement(api.AuthRequirement o) {
266 buildCounterAuthRequirement++; 265 buildCounterAuthRequirement++;
267 if (buildCounterAuthRequirement < 3) { 266 if (buildCounterAuthRequirement < 3) {
268 unittest.expect(o.audiences, unittest.equals('foo')); 267 unittest.expect(o.audiences, unittest.equals('foo'));
269 unittest.expect(o.providerId, unittest.equals('foo')); 268 unittest.expect(o.providerId, unittest.equals('foo'));
270 } 269 }
271 buildCounterAuthRequirement--; 270 buildCounterAuthRequirement--;
272 } 271 }
273 272
274 buildUnnamed1147() { 273 buildUnnamed1150() {
275 var o = new core.List<api.AuthProvider>(); 274 var o = new core.List<api.AuthProvider>();
276 o.add(buildAuthProvider()); 275 o.add(buildAuthProvider());
277 o.add(buildAuthProvider()); 276 o.add(buildAuthProvider());
278 return o; 277 return o;
279 } 278 }
280 279
281 checkUnnamed1147(core.List<api.AuthProvider> o) { 280 checkUnnamed1150(core.List<api.AuthProvider> o) {
282 unittest.expect(o, unittest.hasLength(2)); 281 unittest.expect(o, unittest.hasLength(2));
283 checkAuthProvider(o[0]); 282 checkAuthProvider(o[0]);
284 checkAuthProvider(o[1]); 283 checkAuthProvider(o[1]);
285 } 284 }
286 285
287 buildUnnamed1148() { 286 buildUnnamed1151() {
288 var o = new core.List<api.AuthenticationRule>(); 287 var o = new core.List<api.AuthenticationRule>();
289 o.add(buildAuthenticationRule()); 288 o.add(buildAuthenticationRule());
290 o.add(buildAuthenticationRule()); 289 o.add(buildAuthenticationRule());
291 return o; 290 return o;
292 } 291 }
293 292
294 checkUnnamed1148(core.List<api.AuthenticationRule> o) { 293 checkUnnamed1151(core.List<api.AuthenticationRule> o) {
295 unittest.expect(o, unittest.hasLength(2)); 294 unittest.expect(o, unittest.hasLength(2));
296 checkAuthenticationRule(o[0]); 295 checkAuthenticationRule(o[0]);
297 checkAuthenticationRule(o[1]); 296 checkAuthenticationRule(o[1]);
298 } 297 }
299 298
300 core.int buildCounterAuthentication = 0; 299 core.int buildCounterAuthentication = 0;
301 buildAuthentication() { 300 buildAuthentication() {
302 var o = new api.Authentication(); 301 var o = new api.Authentication();
303 buildCounterAuthentication++; 302 buildCounterAuthentication++;
304 if (buildCounterAuthentication < 3) { 303 if (buildCounterAuthentication < 3) {
305 o.providers = buildUnnamed1147(); 304 o.providers = buildUnnamed1150();
306 o.rules = buildUnnamed1148(); 305 o.rules = buildUnnamed1151();
307 } 306 }
308 buildCounterAuthentication--; 307 buildCounterAuthentication--;
309 return o; 308 return o;
310 } 309 }
311 310
312 checkAuthentication(api.Authentication o) { 311 checkAuthentication(api.Authentication o) {
313 buildCounterAuthentication++; 312 buildCounterAuthentication++;
314 if (buildCounterAuthentication < 3) { 313 if (buildCounterAuthentication < 3) {
315 checkUnnamed1147(o.providers); 314 checkUnnamed1150(o.providers);
316 checkUnnamed1148(o.rules); 315 checkUnnamed1151(o.rules);
317 } 316 }
318 buildCounterAuthentication--; 317 buildCounterAuthentication--;
319 } 318 }
320 319
321 buildUnnamed1149() { 320 buildUnnamed1152() {
322 var o = new core.List<api.AuthRequirement>(); 321 var o = new core.List<api.AuthRequirement>();
323 o.add(buildAuthRequirement()); 322 o.add(buildAuthRequirement());
324 o.add(buildAuthRequirement()); 323 o.add(buildAuthRequirement());
325 return o; 324 return o;
326 } 325 }
327 326
328 checkUnnamed1149(core.List<api.AuthRequirement> o) { 327 checkUnnamed1152(core.List<api.AuthRequirement> o) {
329 unittest.expect(o, unittest.hasLength(2)); 328 unittest.expect(o, unittest.hasLength(2));
330 checkAuthRequirement(o[0]); 329 checkAuthRequirement(o[0]);
331 checkAuthRequirement(o[1]); 330 checkAuthRequirement(o[1]);
332 } 331 }
333 332
334 core.int buildCounterAuthenticationRule = 0; 333 core.int buildCounterAuthenticationRule = 0;
335 buildAuthenticationRule() { 334 buildAuthenticationRule() {
336 var o = new api.AuthenticationRule(); 335 var o = new api.AuthenticationRule();
337 buildCounterAuthenticationRule++; 336 buildCounterAuthenticationRule++;
338 if (buildCounterAuthenticationRule < 3) { 337 if (buildCounterAuthenticationRule < 3) {
339 o.allowWithoutCredential = true; 338 o.allowWithoutCredential = true;
340 o.customAuth = buildCustomAuthRequirements(); 339 o.customAuth = buildCustomAuthRequirements();
341 o.oauth = buildOAuthRequirements(); 340 o.oauth = buildOAuthRequirements();
342 o.requirements = buildUnnamed1149(); 341 o.requirements = buildUnnamed1152();
343 o.selector = "foo"; 342 o.selector = "foo";
344 } 343 }
345 buildCounterAuthenticationRule--; 344 buildCounterAuthenticationRule--;
346 return o; 345 return o;
347 } 346 }
348 347
349 checkAuthenticationRule(api.AuthenticationRule o) { 348 checkAuthenticationRule(api.AuthenticationRule o) {
350 buildCounterAuthenticationRule++; 349 buildCounterAuthenticationRule++;
351 if (buildCounterAuthenticationRule < 3) { 350 if (buildCounterAuthenticationRule < 3) {
352 unittest.expect(o.allowWithoutCredential, unittest.isTrue); 351 unittest.expect(o.allowWithoutCredential, unittest.isTrue);
353 checkCustomAuthRequirements(o.customAuth); 352 checkCustomAuthRequirements(o.customAuth);
354 checkOAuthRequirements(o.oauth); 353 checkOAuthRequirements(o.oauth);
355 checkUnnamed1149(o.requirements); 354 checkUnnamed1152(o.requirements);
356 unittest.expect(o.selector, unittest.equals('foo')); 355 unittest.expect(o.selector, unittest.equals('foo'));
357 } 356 }
358 buildCounterAuthenticationRule--; 357 buildCounterAuthenticationRule--;
359 } 358 }
360 359
361 core.int buildCounterAuthorizationConfig = 0; 360 core.int buildCounterAuthorizationConfig = 0;
362 buildAuthorizationConfig() { 361 buildAuthorizationConfig() {
363 var o = new api.AuthorizationConfig(); 362 var o = new api.AuthorizationConfig();
364 buildCounterAuthorizationConfig++; 363 buildCounterAuthorizationConfig++;
365 if (buildCounterAuthorizationConfig < 3) { 364 if (buildCounterAuthorizationConfig < 3) {
366 o.provider = "foo"; 365 o.provider = "foo";
367 } 366 }
368 buildCounterAuthorizationConfig--; 367 buildCounterAuthorizationConfig--;
369 return o; 368 return o;
370 } 369 }
371 370
372 checkAuthorizationConfig(api.AuthorizationConfig o) { 371 checkAuthorizationConfig(api.AuthorizationConfig o) {
373 buildCounterAuthorizationConfig++; 372 buildCounterAuthorizationConfig++;
374 if (buildCounterAuthorizationConfig < 3) { 373 if (buildCounterAuthorizationConfig < 3) {
375 unittest.expect(o.provider, unittest.equals('foo')); 374 unittest.expect(o.provider, unittest.equals('foo'));
376 } 375 }
377 buildCounterAuthorizationConfig--; 376 buildCounterAuthorizationConfig--;
378 } 377 }
379 378
380 buildUnnamed1150() { 379 buildUnnamed1153() {
381 var o = new core.List<api.BackendRule>(); 380 var o = new core.List<api.BackendRule>();
382 o.add(buildBackendRule()); 381 o.add(buildBackendRule());
383 o.add(buildBackendRule()); 382 o.add(buildBackendRule());
384 return o; 383 return o;
385 } 384 }
386 385
387 checkUnnamed1150(core.List<api.BackendRule> o) { 386 checkUnnamed1153(core.List<api.BackendRule> o) {
388 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
389 checkBackendRule(o[0]); 388 checkBackendRule(o[0]);
390 checkBackendRule(o[1]); 389 checkBackendRule(o[1]);
391 } 390 }
392 391
393 core.int buildCounterBackend = 0; 392 core.int buildCounterBackend = 0;
394 buildBackend() { 393 buildBackend() {
395 var o = new api.Backend(); 394 var o = new api.Backend();
396 buildCounterBackend++; 395 buildCounterBackend++;
397 if (buildCounterBackend < 3) { 396 if (buildCounterBackend < 3) {
398 o.rules = buildUnnamed1150(); 397 o.rules = buildUnnamed1153();
399 } 398 }
400 buildCounterBackend--; 399 buildCounterBackend--;
401 return o; 400 return o;
402 } 401 }
403 402
404 checkBackend(api.Backend o) { 403 checkBackend(api.Backend o) {
405 buildCounterBackend++; 404 buildCounterBackend++;
406 if (buildCounterBackend < 3) { 405 if (buildCounterBackend < 3) {
407 checkUnnamed1150(o.rules); 406 checkUnnamed1153(o.rules);
408 } 407 }
409 buildCounterBackend--; 408 buildCounterBackend--;
410 } 409 }
411 410
412 core.int buildCounterBackendRule = 0; 411 core.int buildCounterBackendRule = 0;
413 buildBackendRule() { 412 buildBackendRule() {
414 var o = new api.BackendRule(); 413 var o = new api.BackendRule();
415 buildCounterBackendRule++; 414 buildCounterBackendRule++;
416 if (buildCounterBackendRule < 3) { 415 if (buildCounterBackendRule < 3) {
417 o.address = "foo"; 416 o.address = "foo";
418 o.deadline = 42.0; 417 o.deadline = 42.0;
419 o.minDeadline = 42.0; 418 o.minDeadline = 42.0;
420 o.selector = "foo"; 419 o.selector = "foo";
421 } 420 }
422 buildCounterBackendRule--; 421 buildCounterBackendRule--;
423 return o; 422 return o;
424 } 423 }
425 424
426 checkBackendRule(api.BackendRule o) { 425 checkBackendRule(api.BackendRule o) {
427 buildCounterBackendRule++; 426 buildCounterBackendRule++;
428 if (buildCounterBackendRule < 3) { 427 if (buildCounterBackendRule < 3) {
429 unittest.expect(o.address, unittest.equals('foo')); 428 unittest.expect(o.address, unittest.equals('foo'));
430 unittest.expect(o.deadline, unittest.equals(42.0)); 429 unittest.expect(o.deadline, unittest.equals(42.0));
431 unittest.expect(o.minDeadline, unittest.equals(42.0)); 430 unittest.expect(o.minDeadline, unittest.equals(42.0));
432 unittest.expect(o.selector, unittest.equals('foo')); 431 unittest.expect(o.selector, unittest.equals('foo'));
433 } 432 }
434 buildCounterBackendRule--; 433 buildCounterBackendRule--;
435 } 434 }
436 435
437 buildUnnamed1151() { 436 buildUnnamed1154() {
438 var o = new core.List<core.String>(); 437 var o = new core.List<core.String>();
439 o.add("foo"); 438 o.add("foo");
440 o.add("foo"); 439 o.add("foo");
441 return o; 440 return o;
442 } 441 }
443 442
444 checkUnnamed1151(core.List<core.String> o) { 443 checkUnnamed1154(core.List<core.String> o) {
445 unittest.expect(o, unittest.hasLength(2)); 444 unittest.expect(o, unittest.hasLength(2));
446 unittest.expect(o[0], unittest.equals('foo')); 445 unittest.expect(o[0], unittest.equals('foo'));
447 unittest.expect(o[1], unittest.equals('foo')); 446 unittest.expect(o[1], unittest.equals('foo'));
448 } 447 }
449 448
450 core.int buildCounterBinding = 0; 449 core.int buildCounterBinding = 0;
451 buildBinding() { 450 buildBinding() {
452 var o = new api.Binding(); 451 var o = new api.Binding();
453 buildCounterBinding++; 452 buildCounterBinding++;
454 if (buildCounterBinding < 3) { 453 if (buildCounterBinding < 3) {
455 o.condition = buildExpr(); 454 o.condition = buildExpr();
456 o.members = buildUnnamed1151(); 455 o.members = buildUnnamed1154();
457 o.role = "foo"; 456 o.role = "foo";
458 } 457 }
459 buildCounterBinding--; 458 buildCounterBinding--;
460 return o; 459 return o;
461 } 460 }
462 461
463 checkBinding(api.Binding o) { 462 checkBinding(api.Binding o) {
464 buildCounterBinding++; 463 buildCounterBinding++;
465 if (buildCounterBinding < 3) { 464 if (buildCounterBinding < 3) {
466 checkExpr(o.condition); 465 checkExpr(o.condition);
467 checkUnnamed1151(o.members); 466 checkUnnamed1154(o.members);
468 unittest.expect(o.role, unittest.equals('foo')); 467 unittest.expect(o.role, unittest.equals('foo'));
469 } 468 }
470 buildCounterBinding--; 469 buildCounterBinding--;
471 } 470 }
472 471
473 buildUnnamed1152() { 472 buildUnnamed1155() {
474 var o = new core.List<api.ConfigChange>(); 473 var o = new core.List<api.ConfigChange>();
475 o.add(buildConfigChange()); 474 o.add(buildConfigChange());
476 o.add(buildConfigChange()); 475 o.add(buildConfigChange());
477 return o; 476 return o;
478 } 477 }
479 478
480 checkUnnamed1152(core.List<api.ConfigChange> o) { 479 checkUnnamed1155(core.List<api.ConfigChange> o) {
481 unittest.expect(o, unittest.hasLength(2)); 480 unittest.expect(o, unittest.hasLength(2));
482 checkConfigChange(o[0]); 481 checkConfigChange(o[0]);
483 checkConfigChange(o[1]); 482 checkConfigChange(o[1]);
484 } 483 }
485 484
486 core.int buildCounterChangeReport = 0; 485 core.int buildCounterChangeReport = 0;
487 buildChangeReport() { 486 buildChangeReport() {
488 var o = new api.ChangeReport(); 487 var o = new api.ChangeReport();
489 buildCounterChangeReport++; 488 buildCounterChangeReport++;
490 if (buildCounterChangeReport < 3) { 489 if (buildCounterChangeReport < 3) {
491 o.configChanges = buildUnnamed1152(); 490 o.configChanges = buildUnnamed1155();
492 } 491 }
493 buildCounterChangeReport--; 492 buildCounterChangeReport--;
494 return o; 493 return o;
495 } 494 }
496 495
497 checkChangeReport(api.ChangeReport o) { 496 checkChangeReport(api.ChangeReport o) {
498 buildCounterChangeReport++; 497 buildCounterChangeReport++;
499 if (buildCounterChangeReport < 3) { 498 if (buildCounterChangeReport < 3) {
500 checkUnnamed1152(o.configChanges); 499 checkUnnamed1155(o.configChanges);
501 } 500 }
502 buildCounterChangeReport--; 501 buildCounterChangeReport--;
503 } 502 }
504 503
505 core.int buildCounterCloudAuditOptions = 0; 504 buildUnnamed1156() {
506 buildCloudAuditOptions() {
507 var o = new api.CloudAuditOptions();
508 buildCounterCloudAuditOptions++;
509 if (buildCounterCloudAuditOptions < 3) {
510 o.logName = "foo";
511 }
512 buildCounterCloudAuditOptions--;
513 return o;
514 }
515
516 checkCloudAuditOptions(api.CloudAuditOptions o) {
517 buildCounterCloudAuditOptions++;
518 if (buildCounterCloudAuditOptions < 3) {
519 unittest.expect(o.logName, unittest.equals('foo'));
520 }
521 buildCounterCloudAuditOptions--;
522 }
523
524 buildUnnamed1153() {
525 var o = new core.List<core.String>();
526 o.add("foo");
527 o.add("foo");
528 return o;
529 }
530
531 checkUnnamed1153(core.List<core.String> o) {
532 unittest.expect(o, unittest.hasLength(2));
533 unittest.expect(o[0], unittest.equals('foo'));
534 unittest.expect(o[1], unittest.equals('foo'));
535 }
536
537 core.int buildCounterCondition = 0;
538 buildCondition() {
539 var o = new api.Condition();
540 buildCounterCondition++;
541 if (buildCounterCondition < 3) {
542 o.iam = "foo";
543 o.op = "foo";
544 o.svc = "foo";
545 o.sys = "foo";
546 o.value = "foo";
547 o.values = buildUnnamed1153();
548 }
549 buildCounterCondition--;
550 return o;
551 }
552
553 checkCondition(api.Condition o) {
554 buildCounterCondition++;
555 if (buildCounterCondition < 3) {
556 unittest.expect(o.iam, unittest.equals('foo'));
557 unittest.expect(o.op, unittest.equals('foo'));
558 unittest.expect(o.svc, unittest.equals('foo'));
559 unittest.expect(o.sys, unittest.equals('foo'));
560 unittest.expect(o.value, unittest.equals('foo'));
561 checkUnnamed1153(o.values);
562 }
563 buildCounterCondition--;
564 }
565
566 buildUnnamed1154() {
567 var o = new core.List<api.Advice>(); 505 var o = new core.List<api.Advice>();
568 o.add(buildAdvice()); 506 o.add(buildAdvice());
569 o.add(buildAdvice()); 507 o.add(buildAdvice());
570 return o; 508 return o;
571 } 509 }
572 510
573 checkUnnamed1154(core.List<api.Advice> o) { 511 checkUnnamed1156(core.List<api.Advice> o) {
574 unittest.expect(o, unittest.hasLength(2)); 512 unittest.expect(o, unittest.hasLength(2));
575 checkAdvice(o[0]); 513 checkAdvice(o[0]);
576 checkAdvice(o[1]); 514 checkAdvice(o[1]);
577 } 515 }
578 516
579 core.int buildCounterConfigChange = 0; 517 core.int buildCounterConfigChange = 0;
580 buildConfigChange() { 518 buildConfigChange() {
581 var o = new api.ConfigChange(); 519 var o = new api.ConfigChange();
582 buildCounterConfigChange++; 520 buildCounterConfigChange++;
583 if (buildCounterConfigChange < 3) { 521 if (buildCounterConfigChange < 3) {
584 o.advices = buildUnnamed1154(); 522 o.advices = buildUnnamed1156();
585 o.changeType = "foo"; 523 o.changeType = "foo";
586 o.element = "foo"; 524 o.element = "foo";
587 o.newValue = "foo"; 525 o.newValue = "foo";
588 o.oldValue = "foo"; 526 o.oldValue = "foo";
589 } 527 }
590 buildCounterConfigChange--; 528 buildCounterConfigChange--;
591 return o; 529 return o;
592 } 530 }
593 531
594 checkConfigChange(api.ConfigChange o) { 532 checkConfigChange(api.ConfigChange o) {
595 buildCounterConfigChange++; 533 buildCounterConfigChange++;
596 if (buildCounterConfigChange < 3) { 534 if (buildCounterConfigChange < 3) {
597 checkUnnamed1154(o.advices); 535 checkUnnamed1156(o.advices);
598 unittest.expect(o.changeType, unittest.equals('foo')); 536 unittest.expect(o.changeType, unittest.equals('foo'));
599 unittest.expect(o.element, unittest.equals('foo')); 537 unittest.expect(o.element, unittest.equals('foo'));
600 unittest.expect(o.newValue, unittest.equals('foo')); 538 unittest.expect(o.newValue, unittest.equals('foo'));
601 unittest.expect(o.oldValue, unittest.equals('foo')); 539 unittest.expect(o.oldValue, unittest.equals('foo'));
602 } 540 }
603 buildCounterConfigChange--; 541 buildCounterConfigChange--;
604 } 542 }
605 543
606 core.int buildCounterConfigFile = 0; 544 core.int buildCounterConfigFile = 0;
607 buildConfigFile() { 545 buildConfigFile() {
(...skipping 30 matching lines...) Expand all
638 } 576 }
639 577
640 checkConfigRef(api.ConfigRef o) { 578 checkConfigRef(api.ConfigRef o) {
641 buildCounterConfigRef++; 579 buildCounterConfigRef++;
642 if (buildCounterConfigRef < 3) { 580 if (buildCounterConfigRef < 3) {
643 unittest.expect(o.name, unittest.equals('foo')); 581 unittest.expect(o.name, unittest.equals('foo'));
644 } 582 }
645 buildCounterConfigRef--; 583 buildCounterConfigRef--;
646 } 584 }
647 585
648 buildUnnamed1155() { 586 buildUnnamed1157() {
649 var o = new core.List<api.ConfigFile>(); 587 var o = new core.List<api.ConfigFile>();
650 o.add(buildConfigFile()); 588 o.add(buildConfigFile());
651 o.add(buildConfigFile()); 589 o.add(buildConfigFile());
652 return o; 590 return o;
653 } 591 }
654 592
655 checkUnnamed1155(core.List<api.ConfigFile> o) { 593 checkUnnamed1157(core.List<api.ConfigFile> o) {
656 unittest.expect(o, unittest.hasLength(2)); 594 unittest.expect(o, unittest.hasLength(2));
657 checkConfigFile(o[0]); 595 checkConfigFile(o[0]);
658 checkConfigFile(o[1]); 596 checkConfigFile(o[1]);
659 } 597 }
660 598
661 core.int buildCounterConfigSource = 0; 599 core.int buildCounterConfigSource = 0;
662 buildConfigSource() { 600 buildConfigSource() {
663 var o = new api.ConfigSource(); 601 var o = new api.ConfigSource();
664 buildCounterConfigSource++; 602 buildCounterConfigSource++;
665 if (buildCounterConfigSource < 3) { 603 if (buildCounterConfigSource < 3) {
666 o.files = buildUnnamed1155(); 604 o.files = buildUnnamed1157();
667 o.id = "foo"; 605 o.id = "foo";
668 } 606 }
669 buildCounterConfigSource--; 607 buildCounterConfigSource--;
670 return o; 608 return o;
671 } 609 }
672 610
673 checkConfigSource(api.ConfigSource o) { 611 checkConfigSource(api.ConfigSource o) {
674 buildCounterConfigSource++; 612 buildCounterConfigSource++;
675 if (buildCounterConfigSource < 3) { 613 if (buildCounterConfigSource < 3) {
676 checkUnnamed1155(o.files); 614 checkUnnamed1157(o.files);
677 unittest.expect(o.id, unittest.equals('foo')); 615 unittest.expect(o.id, unittest.equals('foo'));
678 } 616 }
679 buildCounterConfigSource--; 617 buildCounterConfigSource--;
680 } 618 }
681 619
682 buildUnnamed1156() { 620 buildUnnamed1158() {
683 var o = new core.List<api.ContextRule>(); 621 var o = new core.List<api.ContextRule>();
684 o.add(buildContextRule()); 622 o.add(buildContextRule());
685 o.add(buildContextRule()); 623 o.add(buildContextRule());
686 return o; 624 return o;
687 } 625 }
688 626
689 checkUnnamed1156(core.List<api.ContextRule> o) { 627 checkUnnamed1158(core.List<api.ContextRule> o) {
690 unittest.expect(o, unittest.hasLength(2)); 628 unittest.expect(o, unittest.hasLength(2));
691 checkContextRule(o[0]); 629 checkContextRule(o[0]);
692 checkContextRule(o[1]); 630 checkContextRule(o[1]);
693 } 631 }
694 632
695 core.int buildCounterContext = 0; 633 core.int buildCounterContext = 0;
696 buildContext() { 634 buildContext() {
697 var o = new api.Context(); 635 var o = new api.Context();
698 buildCounterContext++; 636 buildCounterContext++;
699 if (buildCounterContext < 3) { 637 if (buildCounterContext < 3) {
700 o.rules = buildUnnamed1156(); 638 o.rules = buildUnnamed1158();
701 } 639 }
702 buildCounterContext--; 640 buildCounterContext--;
703 return o; 641 return o;
704 } 642 }
705 643
706 checkContext(api.Context o) { 644 checkContext(api.Context o) {
707 buildCounterContext++; 645 buildCounterContext++;
708 if (buildCounterContext < 3) { 646 if (buildCounterContext < 3) {
709 checkUnnamed1156(o.rules); 647 checkUnnamed1158(o.rules);
710 } 648 }
711 buildCounterContext--; 649 buildCounterContext--;
712 } 650 }
713 651
714 buildUnnamed1157() { 652 buildUnnamed1159() {
715 var o = new core.List<core.String>(); 653 var o = new core.List<core.String>();
716 o.add("foo"); 654 o.add("foo");
717 o.add("foo"); 655 o.add("foo");
718 return o; 656 return o;
719 } 657 }
720 658
721 checkUnnamed1157(core.List<core.String> o) { 659 checkUnnamed1159(core.List<core.String> o) {
722 unittest.expect(o, unittest.hasLength(2)); 660 unittest.expect(o, unittest.hasLength(2));
723 unittest.expect(o[0], unittest.equals('foo')); 661 unittest.expect(o[0], unittest.equals('foo'));
724 unittest.expect(o[1], unittest.equals('foo')); 662 unittest.expect(o[1], unittest.equals('foo'));
725 } 663 }
726 664
727 buildUnnamed1158() { 665 buildUnnamed1160() {
728 var o = new core.List<core.String>(); 666 var o = new core.List<core.String>();
729 o.add("foo"); 667 o.add("foo");
730 o.add("foo"); 668 o.add("foo");
731 return o; 669 return o;
732 } 670 }
733 671
734 checkUnnamed1158(core.List<core.String> o) { 672 checkUnnamed1160(core.List<core.String> o) {
735 unittest.expect(o, unittest.hasLength(2)); 673 unittest.expect(o, unittest.hasLength(2));
736 unittest.expect(o[0], unittest.equals('foo')); 674 unittest.expect(o[0], unittest.equals('foo'));
737 unittest.expect(o[1], unittest.equals('foo')); 675 unittest.expect(o[1], unittest.equals('foo'));
738 } 676 }
739 677
740 core.int buildCounterContextRule = 0; 678 core.int buildCounterContextRule = 0;
741 buildContextRule() { 679 buildContextRule() {
742 var o = new api.ContextRule(); 680 var o = new api.ContextRule();
743 buildCounterContextRule++; 681 buildCounterContextRule++;
744 if (buildCounterContextRule < 3) { 682 if (buildCounterContextRule < 3) {
745 o.provided = buildUnnamed1157(); 683 o.provided = buildUnnamed1159();
746 o.requested = buildUnnamed1158(); 684 o.requested = buildUnnamed1160();
747 o.selector = "foo"; 685 o.selector = "foo";
748 } 686 }
749 buildCounterContextRule--; 687 buildCounterContextRule--;
750 return o; 688 return o;
751 } 689 }
752 690
753 checkContextRule(api.ContextRule o) { 691 checkContextRule(api.ContextRule o) {
754 buildCounterContextRule++; 692 buildCounterContextRule++;
755 if (buildCounterContextRule < 3) { 693 if (buildCounterContextRule < 3) {
756 checkUnnamed1157(o.provided); 694 checkUnnamed1159(o.provided);
757 checkUnnamed1158(o.requested); 695 checkUnnamed1160(o.requested);
758 unittest.expect(o.selector, unittest.equals('foo')); 696 unittest.expect(o.selector, unittest.equals('foo'));
759 } 697 }
760 buildCounterContextRule--; 698 buildCounterContextRule--;
761 } 699 }
762 700
763 core.int buildCounterControl = 0; 701 core.int buildCounterControl = 0;
764 buildControl() { 702 buildControl() {
765 var o = new api.Control(); 703 var o = new api.Control();
766 buildCounterControl++; 704 buildCounterControl++;
767 if (buildCounterControl < 3) { 705 if (buildCounterControl < 3) {
768 o.environment = "foo"; 706 o.environment = "foo";
769 } 707 }
770 buildCounterControl--; 708 buildCounterControl--;
771 return o; 709 return o;
772 } 710 }
773 711
774 checkControl(api.Control o) { 712 checkControl(api.Control o) {
775 buildCounterControl++; 713 buildCounterControl++;
776 if (buildCounterControl < 3) { 714 if (buildCounterControl < 3) {
777 unittest.expect(o.environment, unittest.equals('foo')); 715 unittest.expect(o.environment, unittest.equals('foo'));
778 } 716 }
779 buildCounterControl--; 717 buildCounterControl--;
780 } 718 }
781 719
782 core.int buildCounterCounterOptions = 0;
783 buildCounterOptions() {
784 var o = new api.CounterOptions();
785 buildCounterCounterOptions++;
786 if (buildCounterCounterOptions < 3) {
787 o.field = "foo";
788 o.metric = "foo";
789 }
790 buildCounterCounterOptions--;
791 return o;
792 }
793
794 checkCounterOptions(api.CounterOptions o) {
795 buildCounterCounterOptions++;
796 if (buildCounterCounterOptions < 3) {
797 unittest.expect(o.field, unittest.equals('foo'));
798 unittest.expect(o.metric, unittest.equals('foo'));
799 }
800 buildCounterCounterOptions--;
801 }
802
803 core.int buildCounterCustomAuthRequirements = 0; 720 core.int buildCounterCustomAuthRequirements = 0;
804 buildCustomAuthRequirements() { 721 buildCustomAuthRequirements() {
805 var o = new api.CustomAuthRequirements(); 722 var o = new api.CustomAuthRequirements();
806 buildCounterCustomAuthRequirements++; 723 buildCounterCustomAuthRequirements++;
807 if (buildCounterCustomAuthRequirements < 3) { 724 if (buildCounterCustomAuthRequirements < 3) {
808 o.provider = "foo"; 725 o.provider = "foo";
809 } 726 }
810 buildCounterCustomAuthRequirements--; 727 buildCounterCustomAuthRequirements--;
811 return o; 728 return o;
812 } 729 }
813 730
814 checkCustomAuthRequirements(api.CustomAuthRequirements o) { 731 checkCustomAuthRequirements(api.CustomAuthRequirements o) {
815 buildCounterCustomAuthRequirements++; 732 buildCounterCustomAuthRequirements++;
816 if (buildCounterCustomAuthRequirements < 3) { 733 if (buildCounterCustomAuthRequirements < 3) {
817 unittest.expect(o.provider, unittest.equals('foo')); 734 unittest.expect(o.provider, unittest.equals('foo'));
818 } 735 }
819 buildCounterCustomAuthRequirements--; 736 buildCounterCustomAuthRequirements--;
820 } 737 }
821 738
822 buildUnnamed1159() { 739 buildUnnamed1161() {
823 var o = new core.List<api.CustomErrorRule>(); 740 var o = new core.List<api.CustomErrorRule>();
824 o.add(buildCustomErrorRule()); 741 o.add(buildCustomErrorRule());
825 o.add(buildCustomErrorRule()); 742 o.add(buildCustomErrorRule());
826 return o; 743 return o;
827 } 744 }
828 745
829 checkUnnamed1159(core.List<api.CustomErrorRule> o) { 746 checkUnnamed1161(core.List<api.CustomErrorRule> o) {
830 unittest.expect(o, unittest.hasLength(2)); 747 unittest.expect(o, unittest.hasLength(2));
831 checkCustomErrorRule(o[0]); 748 checkCustomErrorRule(o[0]);
832 checkCustomErrorRule(o[1]); 749 checkCustomErrorRule(o[1]);
833 } 750 }
834 751
835 buildUnnamed1160() { 752 buildUnnamed1162() {
836 var o = new core.List<core.String>(); 753 var o = new core.List<core.String>();
837 o.add("foo"); 754 o.add("foo");
838 o.add("foo"); 755 o.add("foo");
839 return o; 756 return o;
840 } 757 }
841 758
842 checkUnnamed1160(core.List<core.String> o) { 759 checkUnnamed1162(core.List<core.String> o) {
843 unittest.expect(o, unittest.hasLength(2)); 760 unittest.expect(o, unittest.hasLength(2));
844 unittest.expect(o[0], unittest.equals('foo')); 761 unittest.expect(o[0], unittest.equals('foo'));
845 unittest.expect(o[1], unittest.equals('foo')); 762 unittest.expect(o[1], unittest.equals('foo'));
846 } 763 }
847 764
848 core.int buildCounterCustomError = 0; 765 core.int buildCounterCustomError = 0;
849 buildCustomError() { 766 buildCustomError() {
850 var o = new api.CustomError(); 767 var o = new api.CustomError();
851 buildCounterCustomError++; 768 buildCounterCustomError++;
852 if (buildCounterCustomError < 3) { 769 if (buildCounterCustomError < 3) {
853 o.rules = buildUnnamed1159(); 770 o.rules = buildUnnamed1161();
854 o.types = buildUnnamed1160(); 771 o.types = buildUnnamed1162();
855 } 772 }
856 buildCounterCustomError--; 773 buildCounterCustomError--;
857 return o; 774 return o;
858 } 775 }
859 776
860 checkCustomError(api.CustomError o) { 777 checkCustomError(api.CustomError o) {
861 buildCounterCustomError++; 778 buildCounterCustomError++;
862 if (buildCounterCustomError < 3) { 779 if (buildCounterCustomError < 3) {
863 checkUnnamed1159(o.rules); 780 checkUnnamed1161(o.rules);
864 checkUnnamed1160(o.types); 781 checkUnnamed1162(o.types);
865 } 782 }
866 buildCounterCustomError--; 783 buildCounterCustomError--;
867 } 784 }
868 785
869 core.int buildCounterCustomErrorRule = 0; 786 core.int buildCounterCustomErrorRule = 0;
870 buildCustomErrorRule() { 787 buildCustomErrorRule() {
871 var o = new api.CustomErrorRule(); 788 var o = new api.CustomErrorRule();
872 buildCounterCustomErrorRule++; 789 buildCounterCustomErrorRule++;
873 if (buildCounterCustomErrorRule < 3) { 790 if (buildCounterCustomErrorRule < 3) {
874 o.isErrorType = true; 791 o.isErrorType = true;
(...skipping 26 matching lines...) Expand all
901 818
902 checkCustomHttpPattern(api.CustomHttpPattern o) { 819 checkCustomHttpPattern(api.CustomHttpPattern o) {
903 buildCounterCustomHttpPattern++; 820 buildCounterCustomHttpPattern++;
904 if (buildCounterCustomHttpPattern < 3) { 821 if (buildCounterCustomHttpPattern < 3) {
905 unittest.expect(o.kind, unittest.equals('foo')); 822 unittest.expect(o.kind, unittest.equals('foo'));
906 unittest.expect(o.path, unittest.equals('foo')); 823 unittest.expect(o.path, unittest.equals('foo'));
907 } 824 }
908 buildCounterCustomHttpPattern--; 825 buildCounterCustomHttpPattern--;
909 } 826 }
910 827
911 core.int buildCounterDataAccessOptions = 0;
912 buildDataAccessOptions() {
913 var o = new api.DataAccessOptions();
914 buildCounterDataAccessOptions++;
915 if (buildCounterDataAccessOptions < 3) {
916 o.logMode = "foo";
917 }
918 buildCounterDataAccessOptions--;
919 return o;
920 }
921
922 checkDataAccessOptions(api.DataAccessOptions o) {
923 buildCounterDataAccessOptions++;
924 if (buildCounterDataAccessOptions < 3) {
925 unittest.expect(o.logMode, unittest.equals('foo'));
926 }
927 buildCounterDataAccessOptions--;
928 }
929
930 core.int buildCounterDeleteServiceStrategy = 0; 828 core.int buildCounterDeleteServiceStrategy = 0;
931 buildDeleteServiceStrategy() { 829 buildDeleteServiceStrategy() {
932 var o = new api.DeleteServiceStrategy(); 830 var o = new api.DeleteServiceStrategy();
933 buildCounterDeleteServiceStrategy++; 831 buildCounterDeleteServiceStrategy++;
934 if (buildCounterDeleteServiceStrategy < 3) { 832 if (buildCounterDeleteServiceStrategy < 3) {}
935 }
936 buildCounterDeleteServiceStrategy--; 833 buildCounterDeleteServiceStrategy--;
937 return o; 834 return o;
938 } 835 }
939 836
940 checkDeleteServiceStrategy(api.DeleteServiceStrategy o) { 837 checkDeleteServiceStrategy(api.DeleteServiceStrategy o) {
941 buildCounterDeleteServiceStrategy++; 838 buildCounterDeleteServiceStrategy++;
942 if (buildCounterDeleteServiceStrategy < 3) { 839 if (buildCounterDeleteServiceStrategy < 3) {}
943 }
944 buildCounterDeleteServiceStrategy--; 840 buildCounterDeleteServiceStrategy--;
945 } 841 }
946 842
947 core.int buildCounterDiagnostic = 0; 843 core.int buildCounterDiagnostic = 0;
948 buildDiagnostic() { 844 buildDiagnostic() {
949 var o = new api.Diagnostic(); 845 var o = new api.Diagnostic();
950 buildCounterDiagnostic++; 846 buildCounterDiagnostic++;
951 if (buildCounterDiagnostic < 3) { 847 if (buildCounterDiagnostic < 3) {
952 o.kind = "foo"; 848 o.kind = "foo";
953 o.location = "foo"; 849 o.location = "foo";
(...skipping 25 matching lines...) Expand all
979 } 875 }
980 876
981 checkDisableServiceRequest(api.DisableServiceRequest o) { 877 checkDisableServiceRequest(api.DisableServiceRequest o) {
982 buildCounterDisableServiceRequest++; 878 buildCounterDisableServiceRequest++;
983 if (buildCounterDisableServiceRequest < 3) { 879 if (buildCounterDisableServiceRequest < 3) {
984 unittest.expect(o.consumerId, unittest.equals('foo')); 880 unittest.expect(o.consumerId, unittest.equals('foo'));
985 } 881 }
986 buildCounterDisableServiceRequest--; 882 buildCounterDisableServiceRequest--;
987 } 883 }
988 884
989 buildUnnamed1161() { 885 buildUnnamed1163() {
990 var o = new core.List<api.Page>(); 886 var o = new core.List<api.Page>();
991 o.add(buildPage()); 887 o.add(buildPage());
992 o.add(buildPage()); 888 o.add(buildPage());
993 return o; 889 return o;
994 } 890 }
995 891
996 checkUnnamed1161(core.List<api.Page> o) { 892 checkUnnamed1163(core.List<api.Page> o) {
997 unittest.expect(o, unittest.hasLength(2)); 893 unittest.expect(o, unittest.hasLength(2));
998 checkPage(o[0]); 894 checkPage(o[0]);
999 checkPage(o[1]); 895 checkPage(o[1]);
1000 } 896 }
1001 897
1002 buildUnnamed1162() { 898 buildUnnamed1164() {
1003 var o = new core.List<api.DocumentationRule>(); 899 var o = new core.List<api.DocumentationRule>();
1004 o.add(buildDocumentationRule()); 900 o.add(buildDocumentationRule());
1005 o.add(buildDocumentationRule()); 901 o.add(buildDocumentationRule());
1006 return o; 902 return o;
1007 } 903 }
1008 904
1009 checkUnnamed1162(core.List<api.DocumentationRule> o) { 905 checkUnnamed1164(core.List<api.DocumentationRule> o) {
1010 unittest.expect(o, unittest.hasLength(2)); 906 unittest.expect(o, unittest.hasLength(2));
1011 checkDocumentationRule(o[0]); 907 checkDocumentationRule(o[0]);
1012 checkDocumentationRule(o[1]); 908 checkDocumentationRule(o[1]);
1013 } 909 }
1014 910
1015 core.int buildCounterDocumentation = 0; 911 core.int buildCounterDocumentation = 0;
1016 buildDocumentation() { 912 buildDocumentation() {
1017 var o = new api.Documentation(); 913 var o = new api.Documentation();
1018 buildCounterDocumentation++; 914 buildCounterDocumentation++;
1019 if (buildCounterDocumentation < 3) { 915 if (buildCounterDocumentation < 3) {
1020 o.documentationRootUrl = "foo"; 916 o.documentationRootUrl = "foo";
1021 o.overview = "foo"; 917 o.overview = "foo";
1022 o.pages = buildUnnamed1161(); 918 o.pages = buildUnnamed1163();
1023 o.rules = buildUnnamed1162(); 919 o.rules = buildUnnamed1164();
1024 o.summary = "foo"; 920 o.summary = "foo";
1025 } 921 }
1026 buildCounterDocumentation--; 922 buildCounterDocumentation--;
1027 return o; 923 return o;
1028 } 924 }
1029 925
1030 checkDocumentation(api.Documentation o) { 926 checkDocumentation(api.Documentation o) {
1031 buildCounterDocumentation++; 927 buildCounterDocumentation++;
1032 if (buildCounterDocumentation < 3) { 928 if (buildCounterDocumentation < 3) {
1033 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); 929 unittest.expect(o.documentationRootUrl, unittest.equals('foo'));
1034 unittest.expect(o.overview, unittest.equals('foo')); 930 unittest.expect(o.overview, unittest.equals('foo'));
1035 checkUnnamed1161(o.pages); 931 checkUnnamed1163(o.pages);
1036 checkUnnamed1162(o.rules); 932 checkUnnamed1164(o.rules);
1037 unittest.expect(o.summary, unittest.equals('foo')); 933 unittest.expect(o.summary, unittest.equals('foo'));
1038 } 934 }
1039 buildCounterDocumentation--; 935 buildCounterDocumentation--;
1040 } 936 }
1041 937
1042 core.int buildCounterDocumentationRule = 0; 938 core.int buildCounterDocumentationRule = 0;
1043 buildDocumentationRule() { 939 buildDocumentationRule() {
1044 var o = new api.DocumentationRule(); 940 var o = new api.DocumentationRule();
1045 buildCounterDocumentationRule++; 941 buildCounterDocumentationRule++;
1046 if (buildCounterDocumentationRule < 3) { 942 if (buildCounterDocumentationRule < 3) {
(...skipping 27 matching lines...) Expand all
1074 } 970 }
1075 971
1076 checkEnableServiceRequest(api.EnableServiceRequest o) { 972 checkEnableServiceRequest(api.EnableServiceRequest o) {
1077 buildCounterEnableServiceRequest++; 973 buildCounterEnableServiceRequest++;
1078 if (buildCounterEnableServiceRequest < 3) { 974 if (buildCounterEnableServiceRequest < 3) {
1079 unittest.expect(o.consumerId, unittest.equals('foo')); 975 unittest.expect(o.consumerId, unittest.equals('foo'));
1080 } 976 }
1081 buildCounterEnableServiceRequest--; 977 buildCounterEnableServiceRequest--;
1082 } 978 }
1083 979
1084 buildUnnamed1163() {
1085 var o = new core.List<core.String>();
1086 o.add("foo");
1087 o.add("foo");
1088 return o;
1089 }
1090
1091 checkUnnamed1163(core.List<core.String> o) {
1092 unittest.expect(o, unittest.hasLength(2));
1093 unittest.expect(o[0], unittest.equals('foo'));
1094 unittest.expect(o[1], unittest.equals('foo'));
1095 }
1096
1097 buildUnnamed1164() {
1098 var o = new core.List<core.String>();
1099 o.add("foo");
1100 o.add("foo");
1101 return o;
1102 }
1103
1104 checkUnnamed1164(core.List<core.String> o) {
1105 unittest.expect(o, unittest.hasLength(2));
1106 unittest.expect(o[0], unittest.equals('foo'));
1107 unittest.expect(o[1], unittest.equals('foo'));
1108 }
1109
1110 buildUnnamed1165() { 980 buildUnnamed1165() {
1111 var o = new core.List<core.String>(); 981 var o = new core.List<core.String>();
1112 o.add("foo"); 982 o.add("foo");
1113 o.add("foo"); 983 o.add("foo");
1114 return o; 984 return o;
1115 } 985 }
1116 986
1117 checkUnnamed1165(core.List<core.String> o) { 987 checkUnnamed1165(core.List<core.String> o) {
1118 unittest.expect(o, unittest.hasLength(2)); 988 unittest.expect(o, unittest.hasLength(2));
1119 unittest.expect(o[0], unittest.equals('foo')); 989 unittest.expect(o[0], unittest.equals('foo'));
1120 unittest.expect(o[1], unittest.equals('foo')); 990 unittest.expect(o[1], unittest.equals('foo'));
991 }
992
993 buildUnnamed1166() {
994 var o = new core.List<core.String>();
995 o.add("foo");
996 o.add("foo");
997 return o;
998 }
999
1000 checkUnnamed1166(core.List<core.String> o) {
1001 unittest.expect(o, unittest.hasLength(2));
1002 unittest.expect(o[0], unittest.equals('foo'));
1003 unittest.expect(o[1], unittest.equals('foo'));
1004 }
1005
1006 buildUnnamed1167() {
1007 var o = new core.List<core.String>();
1008 o.add("foo");
1009 o.add("foo");
1010 return o;
1011 }
1012
1013 checkUnnamed1167(core.List<core.String> o) {
1014 unittest.expect(o, unittest.hasLength(2));
1015 unittest.expect(o[0], unittest.equals('foo'));
1016 unittest.expect(o[1], unittest.equals('foo'));
1121 } 1017 }
1122 1018
1123 core.int buildCounterEndpoint = 0; 1019 core.int buildCounterEndpoint = 0;
1124 buildEndpoint() { 1020 buildEndpoint() {
1125 var o = new api.Endpoint(); 1021 var o = new api.Endpoint();
1126 buildCounterEndpoint++; 1022 buildCounterEndpoint++;
1127 if (buildCounterEndpoint < 3) { 1023 if (buildCounterEndpoint < 3) {
1128 o.aliases = buildUnnamed1163(); 1024 o.aliases = buildUnnamed1165();
1129 o.allowCors = true; 1025 o.allowCors = true;
1130 o.apis = buildUnnamed1164(); 1026 o.apis = buildUnnamed1166();
1131 o.features = buildUnnamed1165(); 1027 o.features = buildUnnamed1167();
1132 o.name = "foo"; 1028 o.name = "foo";
1133 o.target = "foo"; 1029 o.target = "foo";
1134 } 1030 }
1135 buildCounterEndpoint--; 1031 buildCounterEndpoint--;
1136 return o; 1032 return o;
1137 } 1033 }
1138 1034
1139 checkEndpoint(api.Endpoint o) { 1035 checkEndpoint(api.Endpoint o) {
1140 buildCounterEndpoint++; 1036 buildCounterEndpoint++;
1141 if (buildCounterEndpoint < 3) { 1037 if (buildCounterEndpoint < 3) {
1142 checkUnnamed1163(o.aliases); 1038 checkUnnamed1165(o.aliases);
1143 unittest.expect(o.allowCors, unittest.isTrue); 1039 unittest.expect(o.allowCors, unittest.isTrue);
1144 checkUnnamed1164(o.apis); 1040 checkUnnamed1166(o.apis);
1145 checkUnnamed1165(o.features); 1041 checkUnnamed1167(o.features);
1146 unittest.expect(o.name, unittest.equals('foo')); 1042 unittest.expect(o.name, unittest.equals('foo'));
1147 unittest.expect(o.target, unittest.equals('foo')); 1043 unittest.expect(o.target, unittest.equals('foo'));
1148 } 1044 }
1149 buildCounterEndpoint--; 1045 buildCounterEndpoint--;
1150 } 1046 }
1151 1047
1152 buildUnnamed1166() { 1048 buildUnnamed1168() {
1153 var o = new core.List<api.EnumValue>(); 1049 var o = new core.List<api.EnumValue>();
1154 o.add(buildEnumValue()); 1050 o.add(buildEnumValue());
1155 o.add(buildEnumValue()); 1051 o.add(buildEnumValue());
1156 return o; 1052 return o;
1157 } 1053 }
1158 1054
1159 checkUnnamed1166(core.List<api.EnumValue> o) { 1055 checkUnnamed1168(core.List<api.EnumValue> o) {
1160 unittest.expect(o, unittest.hasLength(2)); 1056 unittest.expect(o, unittest.hasLength(2));
1161 checkEnumValue(o[0]); 1057 checkEnumValue(o[0]);
1162 checkEnumValue(o[1]); 1058 checkEnumValue(o[1]);
1163 } 1059 }
1164 1060
1165 buildUnnamed1167() { 1061 buildUnnamed1169() {
1166 var o = new core.List<api.Option>(); 1062 var o = new core.List<api.Option>();
1167 o.add(buildOption()); 1063 o.add(buildOption());
1168 o.add(buildOption()); 1064 o.add(buildOption());
1169 return o; 1065 return o;
1170 } 1066 }
1171 1067
1172 checkUnnamed1167(core.List<api.Option> o) { 1068 checkUnnamed1169(core.List<api.Option> o) {
1173 unittest.expect(o, unittest.hasLength(2)); 1069 unittest.expect(o, unittest.hasLength(2));
1174 checkOption(o[0]); 1070 checkOption(o[0]);
1175 checkOption(o[1]); 1071 checkOption(o[1]);
1176 } 1072 }
1177 1073
1178 core.int buildCounterEnum = 0; 1074 core.int buildCounterEnum = 0;
1179 buildEnum() { 1075 buildEnum() {
1180 var o = new api.Enum(); 1076 var o = new api.Enum();
1181 buildCounterEnum++; 1077 buildCounterEnum++;
1182 if (buildCounterEnum < 3) { 1078 if (buildCounterEnum < 3) {
1183 o.enumvalue = buildUnnamed1166(); 1079 o.enumvalue = buildUnnamed1168();
1184 o.name = "foo"; 1080 o.name = "foo";
1185 o.options = buildUnnamed1167(); 1081 o.options = buildUnnamed1169();
1186 o.sourceContext = buildSourceContext(); 1082 o.sourceContext = buildSourceContext();
1187 o.syntax = "foo"; 1083 o.syntax = "foo";
1188 } 1084 }
1189 buildCounterEnum--; 1085 buildCounterEnum--;
1190 return o; 1086 return o;
1191 } 1087 }
1192 1088
1193 checkEnum(api.Enum o) { 1089 checkEnum(api.Enum o) {
1194 buildCounterEnum++; 1090 buildCounterEnum++;
1195 if (buildCounterEnum < 3) { 1091 if (buildCounterEnum < 3) {
1196 checkUnnamed1166(o.enumvalue); 1092 checkUnnamed1168(o.enumvalue);
1197 unittest.expect(o.name, unittest.equals('foo')); 1093 unittest.expect(o.name, unittest.equals('foo'));
1198 checkUnnamed1167(o.options); 1094 checkUnnamed1169(o.options);
1199 checkSourceContext(o.sourceContext); 1095 checkSourceContext(o.sourceContext);
1200 unittest.expect(o.syntax, unittest.equals('foo')); 1096 unittest.expect(o.syntax, unittest.equals('foo'));
1201 } 1097 }
1202 buildCounterEnum--; 1098 buildCounterEnum--;
1203 } 1099 }
1204 1100
1205 buildUnnamed1168() { 1101 buildUnnamed1170() {
1206 var o = new core.List<api.Option>(); 1102 var o = new core.List<api.Option>();
1207 o.add(buildOption()); 1103 o.add(buildOption());
1208 o.add(buildOption()); 1104 o.add(buildOption());
1209 return o; 1105 return o;
1210 } 1106 }
1211 1107
1212 checkUnnamed1168(core.List<api.Option> o) { 1108 checkUnnamed1170(core.List<api.Option> o) {
1213 unittest.expect(o, unittest.hasLength(2)); 1109 unittest.expect(o, unittest.hasLength(2));
1214 checkOption(o[0]); 1110 checkOption(o[0]);
1215 checkOption(o[1]); 1111 checkOption(o[1]);
1216 } 1112 }
1217 1113
1218 core.int buildCounterEnumValue = 0; 1114 core.int buildCounterEnumValue = 0;
1219 buildEnumValue() { 1115 buildEnumValue() {
1220 var o = new api.EnumValue(); 1116 var o = new api.EnumValue();
1221 buildCounterEnumValue++; 1117 buildCounterEnumValue++;
1222 if (buildCounterEnumValue < 3) { 1118 if (buildCounterEnumValue < 3) {
1223 o.name = "foo"; 1119 o.name = "foo";
1224 o.number = 42; 1120 o.number = 42;
1225 o.options = buildUnnamed1168(); 1121 o.options = buildUnnamed1170();
1226 } 1122 }
1227 buildCounterEnumValue--; 1123 buildCounterEnumValue--;
1228 return o; 1124 return o;
1229 } 1125 }
1230 1126
1231 checkEnumValue(api.EnumValue o) { 1127 checkEnumValue(api.EnumValue o) {
1232 buildCounterEnumValue++; 1128 buildCounterEnumValue++;
1233 if (buildCounterEnumValue < 3) { 1129 if (buildCounterEnumValue < 3) {
1234 unittest.expect(o.name, unittest.equals('foo')); 1130 unittest.expect(o.name, unittest.equals('foo'));
1235 unittest.expect(o.number, unittest.equals(42)); 1131 unittest.expect(o.number, unittest.equals(42));
1236 checkUnnamed1168(o.options); 1132 checkUnnamed1170(o.options);
1237 } 1133 }
1238 buildCounterEnumValue--; 1134 buildCounterEnumValue--;
1239 } 1135 }
1240 1136
1241 core.int buildCounterExperimental = 0; 1137 core.int buildCounterExperimental = 0;
1242 buildExperimental() { 1138 buildExperimental() {
1243 var o = new api.Experimental(); 1139 var o = new api.Experimental();
1244 buildCounterExperimental++; 1140 buildCounterExperimental++;
1245 if (buildCounterExperimental < 3) { 1141 if (buildCounterExperimental < 3) {
1246 o.authorization = buildAuthorizationConfig(); 1142 o.authorization = buildAuthorizationConfig();
(...skipping 28 matching lines...) Expand all
1275 buildCounterExpr++; 1171 buildCounterExpr++;
1276 if (buildCounterExpr < 3) { 1172 if (buildCounterExpr < 3) {
1277 unittest.expect(o.description, unittest.equals('foo')); 1173 unittest.expect(o.description, unittest.equals('foo'));
1278 unittest.expect(o.expression, unittest.equals('foo')); 1174 unittest.expect(o.expression, unittest.equals('foo'));
1279 unittest.expect(o.location, unittest.equals('foo')); 1175 unittest.expect(o.location, unittest.equals('foo'));
1280 unittest.expect(o.title, unittest.equals('foo')); 1176 unittest.expect(o.title, unittest.equals('foo'));
1281 } 1177 }
1282 buildCounterExpr--; 1178 buildCounterExpr--;
1283 } 1179 }
1284 1180
1285 buildUnnamed1169() { 1181 buildUnnamed1171() {
1286 var o = new core.List<api.Option>(); 1182 var o = new core.List<api.Option>();
1287 o.add(buildOption()); 1183 o.add(buildOption());
1288 o.add(buildOption()); 1184 o.add(buildOption());
1289 return o; 1185 return o;
1290 } 1186 }
1291 1187
1292 checkUnnamed1169(core.List<api.Option> o) { 1188 checkUnnamed1171(core.List<api.Option> o) {
1293 unittest.expect(o, unittest.hasLength(2)); 1189 unittest.expect(o, unittest.hasLength(2));
1294 checkOption(o[0]); 1190 checkOption(o[0]);
1295 checkOption(o[1]); 1191 checkOption(o[1]);
1296 } 1192 }
1297 1193
1298 core.int buildCounterField = 0; 1194 core.int buildCounterField = 0;
1299 buildField() { 1195 buildField() {
1300 var o = new api.Field(); 1196 var o = new api.Field();
1301 buildCounterField++; 1197 buildCounterField++;
1302 if (buildCounterField < 3) { 1198 if (buildCounterField < 3) {
1303 o.cardinality = "foo"; 1199 o.cardinality = "foo";
1304 o.defaultValue = "foo"; 1200 o.defaultValue = "foo";
1305 o.jsonName = "foo"; 1201 o.jsonName = "foo";
1306 o.kind = "foo"; 1202 o.kind = "foo";
1307 o.name = "foo"; 1203 o.name = "foo";
1308 o.number = 42; 1204 o.number = 42;
1309 o.oneofIndex = 42; 1205 o.oneofIndex = 42;
1310 o.options = buildUnnamed1169(); 1206 o.options = buildUnnamed1171();
1311 o.packed = true; 1207 o.packed = true;
1312 o.typeUrl = "foo"; 1208 o.typeUrl = "foo";
1313 } 1209 }
1314 buildCounterField--; 1210 buildCounterField--;
1315 return o; 1211 return o;
1316 } 1212 }
1317 1213
1318 checkField(api.Field o) { 1214 checkField(api.Field o) {
1319 buildCounterField++; 1215 buildCounterField++;
1320 if (buildCounterField < 3) { 1216 if (buildCounterField < 3) {
1321 unittest.expect(o.cardinality, unittest.equals('foo')); 1217 unittest.expect(o.cardinality, unittest.equals('foo'));
1322 unittest.expect(o.defaultValue, unittest.equals('foo')); 1218 unittest.expect(o.defaultValue, unittest.equals('foo'));
1323 unittest.expect(o.jsonName, unittest.equals('foo')); 1219 unittest.expect(o.jsonName, unittest.equals('foo'));
1324 unittest.expect(o.kind, unittest.equals('foo')); 1220 unittest.expect(o.kind, unittest.equals('foo'));
1325 unittest.expect(o.name, unittest.equals('foo')); 1221 unittest.expect(o.name, unittest.equals('foo'));
1326 unittest.expect(o.number, unittest.equals(42)); 1222 unittest.expect(o.number, unittest.equals(42));
1327 unittest.expect(o.oneofIndex, unittest.equals(42)); 1223 unittest.expect(o.oneofIndex, unittest.equals(42));
1328 checkUnnamed1169(o.options); 1224 checkUnnamed1171(o.options);
1329 unittest.expect(o.packed, unittest.isTrue); 1225 unittest.expect(o.packed, unittest.isTrue);
1330 unittest.expect(o.typeUrl, unittest.equals('foo')); 1226 unittest.expect(o.typeUrl, unittest.equals('foo'));
1331 } 1227 }
1332 buildCounterField--; 1228 buildCounterField--;
1333 } 1229 }
1334 1230
1335 buildUnnamed1170() { 1231 buildUnnamed1172() {
1336 var o = new core.List<core.String>(); 1232 var o = new core.List<core.String>();
1337 o.add("foo"); 1233 o.add("foo");
1338 o.add("foo"); 1234 o.add("foo");
1339 return o; 1235 return o;
1340 } 1236 }
1341 1237
1342 checkUnnamed1170(core.List<core.String> o) { 1238 checkUnnamed1172(core.List<core.String> o) {
1343 unittest.expect(o, unittest.hasLength(2)); 1239 unittest.expect(o, unittest.hasLength(2));
1344 unittest.expect(o[0], unittest.equals('foo')); 1240 unittest.expect(o[0], unittest.equals('foo'));
1345 unittest.expect(o[1], unittest.equals('foo')); 1241 unittest.expect(o[1], unittest.equals('foo'));
1346 } 1242 }
1347 1243
1348 core.int buildCounterFlowOperationMetadata = 0; 1244 core.int buildCounterFlowOperationMetadata = 0;
1349 buildFlowOperationMetadata() { 1245 buildFlowOperationMetadata() {
1350 var o = new api.FlowOperationMetadata(); 1246 var o = new api.FlowOperationMetadata();
1351 buildCounterFlowOperationMetadata++; 1247 buildCounterFlowOperationMetadata++;
1352 if (buildCounterFlowOperationMetadata < 3) { 1248 if (buildCounterFlowOperationMetadata < 3) {
1353 o.cancelState = "foo"; 1249 o.cancelState = "foo";
1354 o.deadline = "foo"; 1250 o.deadline = "foo";
1355 o.flowName = "foo"; 1251 o.flowName = "foo";
1356 o.resourceNames = buildUnnamed1170(); 1252 o.resourceNames = buildUnnamed1172();
1357 o.startTime = "foo"; 1253 o.startTime = "foo";
1358 } 1254 }
1359 buildCounterFlowOperationMetadata--; 1255 buildCounterFlowOperationMetadata--;
1360 return o; 1256 return o;
1361 } 1257 }
1362 1258
1363 checkFlowOperationMetadata(api.FlowOperationMetadata o) { 1259 checkFlowOperationMetadata(api.FlowOperationMetadata o) {
1364 buildCounterFlowOperationMetadata++; 1260 buildCounterFlowOperationMetadata++;
1365 if (buildCounterFlowOperationMetadata < 3) { 1261 if (buildCounterFlowOperationMetadata < 3) {
1366 unittest.expect(o.cancelState, unittest.equals('foo')); 1262 unittest.expect(o.cancelState, unittest.equals('foo'));
1367 unittest.expect(o.deadline, unittest.equals('foo')); 1263 unittest.expect(o.deadline, unittest.equals('foo'));
1368 unittest.expect(o.flowName, unittest.equals('foo')); 1264 unittest.expect(o.flowName, unittest.equals('foo'));
1369 checkUnnamed1170(o.resourceNames); 1265 checkUnnamed1172(o.resourceNames);
1370 unittest.expect(o.startTime, unittest.equals('foo')); 1266 unittest.expect(o.startTime, unittest.equals('foo'));
1371 } 1267 }
1372 buildCounterFlowOperationMetadata--; 1268 buildCounterFlowOperationMetadata--;
1373 } 1269 }
1374 1270
1375 buildUnnamed1171() { 1271 buildUnnamed1173() {
1376 var o = new core.Map<core.String, core.Object>(); 1272 var o = new core.Map<core.String, core.Object>();
1377 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1273 o["x"] = {
1378 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1274 'list': [1, 2, 3],
1275 'bool': true,
1276 'string': 'foo'
1277 };
1278 o["y"] = {
1279 'list': [1, 2, 3],
1280 'bool': true,
1281 'string': 'foo'
1282 };
1379 return o; 1283 return o;
1380 } 1284 }
1381 1285
1382 checkUnnamed1171(core.Map<core.String, core.Object> o) { 1286 checkUnnamed1173(core.Map<core.String, core.Object> o) {
1383 unittest.expect(o, unittest.hasLength(2)); 1287 unittest.expect(o, unittest.hasLength(2));
1384 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 1288 var casted1 = (o["x"]) as core.Map;
1385 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 1289 unittest.expect(casted1, unittest.hasLength(3));
1290 unittest.expect(casted1["list"], unittest.equals([1, 2, 3]));
1291 unittest.expect(casted1["bool"], unittest.equals(true));
1292 unittest.expect(casted1["string"], unittest.equals('foo'));
1293 var casted2 = (o["y"]) as core.Map;
1294 unittest.expect(casted2, unittest.hasLength(3));
1295 unittest.expect(casted2["list"], unittest.equals([1, 2, 3]));
1296 unittest.expect(casted2["bool"], unittest.equals(true));
1297 unittest.expect(casted2["string"], unittest.equals('foo'));
1386 } 1298 }
1387 1299
1388 buildUnnamed1172() { 1300 buildUnnamed1174() {
1389 var o = new core.Map<core.String, core.Object>(); 1301 var o = new core.Map<core.String, core.Object>();
1390 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1302 o["x"] = {
1391 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1303 'list': [1, 2, 3],
1304 'bool': true,
1305 'string': 'foo'
1306 };
1307 o["y"] = {
1308 'list': [1, 2, 3],
1309 'bool': true,
1310 'string': 'foo'
1311 };
1392 return o; 1312 return o;
1393 } 1313 }
1394 1314
1395 checkUnnamed1172(core.Map<core.String, core.Object> o) { 1315 checkUnnamed1174(core.Map<core.String, core.Object> o) {
1396 unittest.expect(o, unittest.hasLength(2)); 1316 unittest.expect(o, unittest.hasLength(2));
1397 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); 1317 var casted3 = (o["x"]) as core.Map;
1398 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); 1318 unittest.expect(casted3, unittest.hasLength(3));
1319 unittest.expect(casted3["list"], unittest.equals([1, 2, 3]));
1320 unittest.expect(casted3["bool"], unittest.equals(true));
1321 unittest.expect(casted3["string"], unittest.equals('foo'));
1322 var casted4 = (o["y"]) as core.Map;
1323 unittest.expect(casted4, unittest.hasLength(3));
1324 unittest.expect(casted4["list"], unittest.equals([1, 2, 3]));
1325 unittest.expect(casted4["bool"], unittest.equals(true));
1326 unittest.expect(casted4["string"], unittest.equals('foo'));
1399 } 1327 }
1400 1328
1401 core.int buildCounterGenerateConfigReportRequest = 0; 1329 core.int buildCounterGenerateConfigReportRequest = 0;
1402 buildGenerateConfigReportRequest() { 1330 buildGenerateConfigReportRequest() {
1403 var o = new api.GenerateConfigReportRequest(); 1331 var o = new api.GenerateConfigReportRequest();
1404 buildCounterGenerateConfigReportRequest++; 1332 buildCounterGenerateConfigReportRequest++;
1405 if (buildCounterGenerateConfigReportRequest < 3) { 1333 if (buildCounterGenerateConfigReportRequest < 3) {
1406 o.newConfig = buildUnnamed1171(); 1334 o.newConfig = buildUnnamed1173();
1407 o.oldConfig = buildUnnamed1172(); 1335 o.oldConfig = buildUnnamed1174();
1408 } 1336 }
1409 buildCounterGenerateConfigReportRequest--; 1337 buildCounterGenerateConfigReportRequest--;
1410 return o; 1338 return o;
1411 } 1339 }
1412 1340
1413 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { 1341 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) {
1414 buildCounterGenerateConfigReportRequest++; 1342 buildCounterGenerateConfigReportRequest++;
1415 if (buildCounterGenerateConfigReportRequest < 3) { 1343 if (buildCounterGenerateConfigReportRequest < 3) {
1416 checkUnnamed1171(o.newConfig); 1344 checkUnnamed1173(o.newConfig);
1417 checkUnnamed1172(o.oldConfig); 1345 checkUnnamed1174(o.oldConfig);
1418 } 1346 }
1419 buildCounterGenerateConfigReportRequest--; 1347 buildCounterGenerateConfigReportRequest--;
1420 } 1348 }
1421 1349
1422 buildUnnamed1173() { 1350 buildUnnamed1175() {
1423 var o = new core.List<api.ChangeReport>(); 1351 var o = new core.List<api.ChangeReport>();
1424 o.add(buildChangeReport()); 1352 o.add(buildChangeReport());
1425 o.add(buildChangeReport()); 1353 o.add(buildChangeReport());
1426 return o; 1354 return o;
1427 } 1355 }
1428 1356
1429 checkUnnamed1173(core.List<api.ChangeReport> o) { 1357 checkUnnamed1175(core.List<api.ChangeReport> o) {
1430 unittest.expect(o, unittest.hasLength(2)); 1358 unittest.expect(o, unittest.hasLength(2));
1431 checkChangeReport(o[0]); 1359 checkChangeReport(o[0]);
1432 checkChangeReport(o[1]); 1360 checkChangeReport(o[1]);
1433 } 1361 }
1434 1362
1435 buildUnnamed1174() { 1363 buildUnnamed1176() {
1436 var o = new core.List<api.Diagnostic>(); 1364 var o = new core.List<api.Diagnostic>();
1437 o.add(buildDiagnostic()); 1365 o.add(buildDiagnostic());
1438 o.add(buildDiagnostic()); 1366 o.add(buildDiagnostic());
1439 return o; 1367 return o;
1440 } 1368 }
1441 1369
1442 checkUnnamed1174(core.List<api.Diagnostic> o) { 1370 checkUnnamed1176(core.List<api.Diagnostic> o) {
1443 unittest.expect(o, unittest.hasLength(2)); 1371 unittest.expect(o, unittest.hasLength(2));
1444 checkDiagnostic(o[0]); 1372 checkDiagnostic(o[0]);
1445 checkDiagnostic(o[1]); 1373 checkDiagnostic(o[1]);
1446 } 1374 }
1447 1375
1448 core.int buildCounterGenerateConfigReportResponse = 0; 1376 core.int buildCounterGenerateConfigReportResponse = 0;
1449 buildGenerateConfigReportResponse() { 1377 buildGenerateConfigReportResponse() {
1450 var o = new api.GenerateConfigReportResponse(); 1378 var o = new api.GenerateConfigReportResponse();
1451 buildCounterGenerateConfigReportResponse++; 1379 buildCounterGenerateConfigReportResponse++;
1452 if (buildCounterGenerateConfigReportResponse < 3) { 1380 if (buildCounterGenerateConfigReportResponse < 3) {
1453 o.changeReports = buildUnnamed1173(); 1381 o.changeReports = buildUnnamed1175();
1454 o.diagnostics = buildUnnamed1174(); 1382 o.diagnostics = buildUnnamed1176();
1455 o.id = "foo"; 1383 o.id = "foo";
1456 o.serviceName = "foo"; 1384 o.serviceName = "foo";
1457 } 1385 }
1458 buildCounterGenerateConfigReportResponse--; 1386 buildCounterGenerateConfigReportResponse--;
1459 return o; 1387 return o;
1460 } 1388 }
1461 1389
1462 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { 1390 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) {
1463 buildCounterGenerateConfigReportResponse++; 1391 buildCounterGenerateConfigReportResponse++;
1464 if (buildCounterGenerateConfigReportResponse < 3) { 1392 if (buildCounterGenerateConfigReportResponse < 3) {
1465 checkUnnamed1173(o.changeReports); 1393 checkUnnamed1175(o.changeReports);
1466 checkUnnamed1174(o.diagnostics); 1394 checkUnnamed1176(o.diagnostics);
1467 unittest.expect(o.id, unittest.equals('foo')); 1395 unittest.expect(o.id, unittest.equals('foo'));
1468 unittest.expect(o.serviceName, unittest.equals('foo')); 1396 unittest.expect(o.serviceName, unittest.equals('foo'));
1469 } 1397 }
1470 buildCounterGenerateConfigReportResponse--; 1398 buildCounterGenerateConfigReportResponse--;
1471 } 1399 }
1472 1400
1473 core.int buildCounterGetIamPolicyRequest = 0; 1401 core.int buildCounterGetIamPolicyRequest = 0;
1474 buildGetIamPolicyRequest() { 1402 buildGetIamPolicyRequest() {
1475 var o = new api.GetIamPolicyRequest(); 1403 var o = new api.GetIamPolicyRequest();
1476 buildCounterGetIamPolicyRequest++; 1404 buildCounterGetIamPolicyRequest++;
1477 if (buildCounterGetIamPolicyRequest < 3) { 1405 if (buildCounterGetIamPolicyRequest < 3) {}
1478 }
1479 buildCounterGetIamPolicyRequest--; 1406 buildCounterGetIamPolicyRequest--;
1480 return o; 1407 return o;
1481 } 1408 }
1482 1409
1483 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { 1410 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
1484 buildCounterGetIamPolicyRequest++; 1411 buildCounterGetIamPolicyRequest++;
1485 if (buildCounterGetIamPolicyRequest < 3) { 1412 if (buildCounterGetIamPolicyRequest < 3) {}
1486 }
1487 buildCounterGetIamPolicyRequest--; 1413 buildCounterGetIamPolicyRequest--;
1488 } 1414 }
1489 1415
1490 buildUnnamed1175() { 1416 buildUnnamed1177() {
1491 var o = new core.List<api.HttpRule>(); 1417 var o = new core.List<api.HttpRule>();
1492 o.add(buildHttpRule()); 1418 o.add(buildHttpRule());
1493 o.add(buildHttpRule()); 1419 o.add(buildHttpRule());
1494 return o; 1420 return o;
1495 } 1421 }
1496 1422
1497 checkUnnamed1175(core.List<api.HttpRule> o) { 1423 checkUnnamed1177(core.List<api.HttpRule> o) {
1498 unittest.expect(o, unittest.hasLength(2)); 1424 unittest.expect(o, unittest.hasLength(2));
1499 checkHttpRule(o[0]); 1425 checkHttpRule(o[0]);
1500 checkHttpRule(o[1]); 1426 checkHttpRule(o[1]);
1501 } 1427 }
1502 1428
1503 core.int buildCounterHttp = 0; 1429 core.int buildCounterHttp = 0;
1504 buildHttp() { 1430 buildHttp() {
1505 var o = new api.Http(); 1431 var o = new api.Http();
1506 buildCounterHttp++; 1432 buildCounterHttp++;
1507 if (buildCounterHttp < 3) { 1433 if (buildCounterHttp < 3) {
1508 o.fullyDecodeReservedExpansion = true; 1434 o.fullyDecodeReservedExpansion = true;
1509 o.rules = buildUnnamed1175(); 1435 o.rules = buildUnnamed1177();
1510 } 1436 }
1511 buildCounterHttp--; 1437 buildCounterHttp--;
1512 return o; 1438 return o;
1513 } 1439 }
1514 1440
1515 checkHttp(api.Http o) { 1441 checkHttp(api.Http o) {
1516 buildCounterHttp++; 1442 buildCounterHttp++;
1517 if (buildCounterHttp < 3) { 1443 if (buildCounterHttp < 3) {
1518 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); 1444 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue);
1519 checkUnnamed1175(o.rules); 1445 checkUnnamed1177(o.rules);
1520 } 1446 }
1521 buildCounterHttp--; 1447 buildCounterHttp--;
1522 } 1448 }
1523 1449
1524 buildUnnamed1176() { 1450 buildUnnamed1178() {
1525 var o = new core.List<api.HttpRule>(); 1451 var o = new core.List<api.HttpRule>();
1526 o.add(buildHttpRule()); 1452 o.add(buildHttpRule());
1527 o.add(buildHttpRule()); 1453 o.add(buildHttpRule());
1528 return o; 1454 return o;
1529 } 1455 }
1530 1456
1531 checkUnnamed1176(core.List<api.HttpRule> o) { 1457 checkUnnamed1178(core.List<api.HttpRule> o) {
1532 unittest.expect(o, unittest.hasLength(2)); 1458 unittest.expect(o, unittest.hasLength(2));
1533 checkHttpRule(o[0]); 1459 checkHttpRule(o[0]);
1534 checkHttpRule(o[1]); 1460 checkHttpRule(o[1]);
1535 } 1461 }
1536 1462
1537 core.int buildCounterHttpRule = 0; 1463 core.int buildCounterHttpRule = 0;
1538 buildHttpRule() { 1464 buildHttpRule() {
1539 var o = new api.HttpRule(); 1465 var o = new api.HttpRule();
1540 buildCounterHttpRule++; 1466 buildCounterHttpRule++;
1541 if (buildCounterHttpRule < 3) { 1467 if (buildCounterHttpRule < 3) {
1542 o.additionalBindings = buildUnnamed1176(); 1468 o.additionalBindings = buildUnnamed1178();
1543 o.body = "foo"; 1469 o.body = "foo";
1544 o.custom = buildCustomHttpPattern(); 1470 o.custom = buildCustomHttpPattern();
1545 o.delete = "foo"; 1471 o.delete = "foo";
1546 o.get = "foo"; 1472 o.get = "foo";
1547 o.mediaDownload = buildMediaDownload(); 1473 o.mediaDownload = buildMediaDownload();
1548 o.mediaUpload = buildMediaUpload(); 1474 o.mediaUpload = buildMediaUpload();
1549 o.patch = "foo"; 1475 o.patch = "foo";
1550 o.post = "foo"; 1476 o.post = "foo";
1551 o.put = "foo"; 1477 o.put = "foo";
1552 o.responseBody = "foo"; 1478 o.responseBody = "foo";
1553 o.selector = "foo"; 1479 o.selector = "foo";
1554 } 1480 }
1555 buildCounterHttpRule--; 1481 buildCounterHttpRule--;
1556 return o; 1482 return o;
1557 } 1483 }
1558 1484
1559 checkHttpRule(api.HttpRule o) { 1485 checkHttpRule(api.HttpRule o) {
1560 buildCounterHttpRule++; 1486 buildCounterHttpRule++;
1561 if (buildCounterHttpRule < 3) { 1487 if (buildCounterHttpRule < 3) {
1562 checkUnnamed1176(o.additionalBindings); 1488 checkUnnamed1178(o.additionalBindings);
1563 unittest.expect(o.body, unittest.equals('foo')); 1489 unittest.expect(o.body, unittest.equals('foo'));
1564 checkCustomHttpPattern(o.custom); 1490 checkCustomHttpPattern(o.custom);
1565 unittest.expect(o.delete, unittest.equals('foo')); 1491 unittest.expect(o.delete, unittest.equals('foo'));
1566 unittest.expect(o.get, unittest.equals('foo')); 1492 unittest.expect(o.get, unittest.equals('foo'));
1567 checkMediaDownload(o.mediaDownload); 1493 checkMediaDownload(o.mediaDownload);
1568 checkMediaUpload(o.mediaUpload); 1494 checkMediaUpload(o.mediaUpload);
1569 unittest.expect(o.patch, unittest.equals('foo')); 1495 unittest.expect(o.patch, unittest.equals('foo'));
1570 unittest.expect(o.post, unittest.equals('foo')); 1496 unittest.expect(o.post, unittest.equals('foo'));
1571 unittest.expect(o.put, unittest.equals('foo')); 1497 unittest.expect(o.put, unittest.equals('foo'));
1572 unittest.expect(o.responseBody, unittest.equals('foo')); 1498 unittest.expect(o.responseBody, unittest.equals('foo'));
(...skipping 18 matching lines...) Expand all
1591 checkLabelDescriptor(api.LabelDescriptor o) { 1517 checkLabelDescriptor(api.LabelDescriptor o) {
1592 buildCounterLabelDescriptor++; 1518 buildCounterLabelDescriptor++;
1593 if (buildCounterLabelDescriptor < 3) { 1519 if (buildCounterLabelDescriptor < 3) {
1594 unittest.expect(o.description, unittest.equals('foo')); 1520 unittest.expect(o.description, unittest.equals('foo'));
1595 unittest.expect(o.key, unittest.equals('foo')); 1521 unittest.expect(o.key, unittest.equals('foo'));
1596 unittest.expect(o.valueType, unittest.equals('foo')); 1522 unittest.expect(o.valueType, unittest.equals('foo'));
1597 } 1523 }
1598 buildCounterLabelDescriptor--; 1524 buildCounterLabelDescriptor--;
1599 } 1525 }
1600 1526
1601 buildUnnamed1177() { 1527 buildUnnamed1179() {
1602 var o = new core.List<api.Operation>(); 1528 var o = new core.List<api.Operation>();
1603 o.add(buildOperation()); 1529 o.add(buildOperation());
1604 o.add(buildOperation()); 1530 o.add(buildOperation());
1605 return o; 1531 return o;
1606 } 1532 }
1607 1533
1608 checkUnnamed1177(core.List<api.Operation> o) { 1534 checkUnnamed1179(core.List<api.Operation> o) {
1609 unittest.expect(o, unittest.hasLength(2)); 1535 unittest.expect(o, unittest.hasLength(2));
1610 checkOperation(o[0]); 1536 checkOperation(o[0]);
1611 checkOperation(o[1]); 1537 checkOperation(o[1]);
1612 } 1538 }
1613 1539
1614 core.int buildCounterListOperationsResponse = 0; 1540 core.int buildCounterListOperationsResponse = 0;
1615 buildListOperationsResponse() { 1541 buildListOperationsResponse() {
1616 var o = new api.ListOperationsResponse(); 1542 var o = new api.ListOperationsResponse();
1617 buildCounterListOperationsResponse++; 1543 buildCounterListOperationsResponse++;
1618 if (buildCounterListOperationsResponse < 3) { 1544 if (buildCounterListOperationsResponse < 3) {
1619 o.nextPageToken = "foo"; 1545 o.nextPageToken = "foo";
1620 o.operations = buildUnnamed1177(); 1546 o.operations = buildUnnamed1179();
1621 } 1547 }
1622 buildCounterListOperationsResponse--; 1548 buildCounterListOperationsResponse--;
1623 return o; 1549 return o;
1624 } 1550 }
1625 1551
1626 checkListOperationsResponse(api.ListOperationsResponse o) { 1552 checkListOperationsResponse(api.ListOperationsResponse o) {
1627 buildCounterListOperationsResponse++; 1553 buildCounterListOperationsResponse++;
1628 if (buildCounterListOperationsResponse < 3) { 1554 if (buildCounterListOperationsResponse < 3) {
1629 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1555 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1630 checkUnnamed1177(o.operations); 1556 checkUnnamed1179(o.operations);
1631 } 1557 }
1632 buildCounterListOperationsResponse--; 1558 buildCounterListOperationsResponse--;
1633 } 1559 }
1634 1560
1635 buildUnnamed1178() { 1561 buildUnnamed1180() {
1636 var o = new core.List<api.Service>(); 1562 var o = new core.List<api.Service>();
1637 o.add(buildService()); 1563 o.add(buildService());
1638 o.add(buildService()); 1564 o.add(buildService());
1639 return o; 1565 return o;
1640 } 1566 }
1641 1567
1642 checkUnnamed1178(core.List<api.Service> o) { 1568 checkUnnamed1180(core.List<api.Service> o) {
1643 unittest.expect(o, unittest.hasLength(2)); 1569 unittest.expect(o, unittest.hasLength(2));
1644 checkService(o[0]); 1570 checkService(o[0]);
1645 checkService(o[1]); 1571 checkService(o[1]);
1646 } 1572 }
1647 1573
1648 core.int buildCounterListServiceConfigsResponse = 0; 1574 core.int buildCounterListServiceConfigsResponse = 0;
1649 buildListServiceConfigsResponse() { 1575 buildListServiceConfigsResponse() {
1650 var o = new api.ListServiceConfigsResponse(); 1576 var o = new api.ListServiceConfigsResponse();
1651 buildCounterListServiceConfigsResponse++; 1577 buildCounterListServiceConfigsResponse++;
1652 if (buildCounterListServiceConfigsResponse < 3) { 1578 if (buildCounterListServiceConfigsResponse < 3) {
1653 o.nextPageToken = "foo"; 1579 o.nextPageToken = "foo";
1654 o.serviceConfigs = buildUnnamed1178(); 1580 o.serviceConfigs = buildUnnamed1180();
1655 } 1581 }
1656 buildCounterListServiceConfigsResponse--; 1582 buildCounterListServiceConfigsResponse--;
1657 return o; 1583 return o;
1658 } 1584 }
1659 1585
1660 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { 1586 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) {
1661 buildCounterListServiceConfigsResponse++; 1587 buildCounterListServiceConfigsResponse++;
1662 if (buildCounterListServiceConfigsResponse < 3) { 1588 if (buildCounterListServiceConfigsResponse < 3) {
1663 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1589 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1664 checkUnnamed1178(o.serviceConfigs); 1590 checkUnnamed1180(o.serviceConfigs);
1665 } 1591 }
1666 buildCounterListServiceConfigsResponse--; 1592 buildCounterListServiceConfigsResponse--;
1667 } 1593 }
1668 1594
1669 buildUnnamed1179() { 1595 buildUnnamed1181() {
1670 var o = new core.List<api.Rollout>(); 1596 var o = new core.List<api.Rollout>();
1671 o.add(buildRollout()); 1597 o.add(buildRollout());
1672 o.add(buildRollout()); 1598 o.add(buildRollout());
1673 return o; 1599 return o;
1674 } 1600 }
1675 1601
1676 checkUnnamed1179(core.List<api.Rollout> o) { 1602 checkUnnamed1181(core.List<api.Rollout> o) {
1677 unittest.expect(o, unittest.hasLength(2)); 1603 unittest.expect(o, unittest.hasLength(2));
1678 checkRollout(o[0]); 1604 checkRollout(o[0]);
1679 checkRollout(o[1]); 1605 checkRollout(o[1]);
1680 } 1606 }
1681 1607
1682 core.int buildCounterListServiceRolloutsResponse = 0; 1608 core.int buildCounterListServiceRolloutsResponse = 0;
1683 buildListServiceRolloutsResponse() { 1609 buildListServiceRolloutsResponse() {
1684 var o = new api.ListServiceRolloutsResponse(); 1610 var o = new api.ListServiceRolloutsResponse();
1685 buildCounterListServiceRolloutsResponse++; 1611 buildCounterListServiceRolloutsResponse++;
1686 if (buildCounterListServiceRolloutsResponse < 3) { 1612 if (buildCounterListServiceRolloutsResponse < 3) {
1687 o.nextPageToken = "foo"; 1613 o.nextPageToken = "foo";
1688 o.rollouts = buildUnnamed1179(); 1614 o.rollouts = buildUnnamed1181();
1689 } 1615 }
1690 buildCounterListServiceRolloutsResponse--; 1616 buildCounterListServiceRolloutsResponse--;
1691 return o; 1617 return o;
1692 } 1618 }
1693 1619
1694 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { 1620 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) {
1695 buildCounterListServiceRolloutsResponse++; 1621 buildCounterListServiceRolloutsResponse++;
1696 if (buildCounterListServiceRolloutsResponse < 3) { 1622 if (buildCounterListServiceRolloutsResponse < 3) {
1697 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1623 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1698 checkUnnamed1179(o.rollouts); 1624 checkUnnamed1181(o.rollouts);
1699 } 1625 }
1700 buildCounterListServiceRolloutsResponse--; 1626 buildCounterListServiceRolloutsResponse--;
1701 } 1627 }
1702 1628
1703 buildUnnamed1180() { 1629 buildUnnamed1182() {
1704 var o = new core.List<api.ManagedService>(); 1630 var o = new core.List<api.ManagedService>();
1705 o.add(buildManagedService()); 1631 o.add(buildManagedService());
1706 o.add(buildManagedService()); 1632 o.add(buildManagedService());
1707 return o; 1633 return o;
1708 } 1634 }
1709 1635
1710 checkUnnamed1180(core.List<api.ManagedService> o) { 1636 checkUnnamed1182(core.List<api.ManagedService> o) {
1711 unittest.expect(o, unittest.hasLength(2)); 1637 unittest.expect(o, unittest.hasLength(2));
1712 checkManagedService(o[0]); 1638 checkManagedService(o[0]);
1713 checkManagedService(o[1]); 1639 checkManagedService(o[1]);
1714 } 1640 }
1715 1641
1716 core.int buildCounterListServicesResponse = 0; 1642 core.int buildCounterListServicesResponse = 0;
1717 buildListServicesResponse() { 1643 buildListServicesResponse() {
1718 var o = new api.ListServicesResponse(); 1644 var o = new api.ListServicesResponse();
1719 buildCounterListServicesResponse++; 1645 buildCounterListServicesResponse++;
1720 if (buildCounterListServicesResponse < 3) { 1646 if (buildCounterListServicesResponse < 3) {
1721 o.nextPageToken = "foo"; 1647 o.nextPageToken = "foo";
1722 o.services = buildUnnamed1180(); 1648 o.services = buildUnnamed1182();
1723 } 1649 }
1724 buildCounterListServicesResponse--; 1650 buildCounterListServicesResponse--;
1725 return o; 1651 return o;
1726 } 1652 }
1727 1653
1728 checkListServicesResponse(api.ListServicesResponse o) { 1654 checkListServicesResponse(api.ListServicesResponse o) {
1729 buildCounterListServicesResponse++; 1655 buildCounterListServicesResponse++;
1730 if (buildCounterListServicesResponse < 3) { 1656 if (buildCounterListServicesResponse < 3) {
1731 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1657 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1732 checkUnnamed1180(o.services); 1658 checkUnnamed1182(o.services);
1733 } 1659 }
1734 buildCounterListServicesResponse--; 1660 buildCounterListServicesResponse--;
1735 } 1661 }
1736 1662
1737 core.int buildCounterLogConfig = 0; 1663 buildUnnamed1183() {
1738 buildLogConfig() {
1739 var o = new api.LogConfig();
1740 buildCounterLogConfig++;
1741 if (buildCounterLogConfig < 3) {
1742 o.cloudAudit = buildCloudAuditOptions();
1743 o.counter = buildCounterOptions();
1744 o.dataAccess = buildDataAccessOptions();
1745 }
1746 buildCounterLogConfig--;
1747 return o;
1748 }
1749
1750 checkLogConfig(api.LogConfig o) {
1751 buildCounterLogConfig++;
1752 if (buildCounterLogConfig < 3) {
1753 checkCloudAuditOptions(o.cloudAudit);
1754 checkCounterOptions(o.counter);
1755 checkDataAccessOptions(o.dataAccess);
1756 }
1757 buildCounterLogConfig--;
1758 }
1759
1760 buildUnnamed1181() {
1761 var o = new core.List<api.LabelDescriptor>(); 1664 var o = new core.List<api.LabelDescriptor>();
1762 o.add(buildLabelDescriptor()); 1665 o.add(buildLabelDescriptor());
1763 o.add(buildLabelDescriptor()); 1666 o.add(buildLabelDescriptor());
1764 return o; 1667 return o;
1765 } 1668 }
1766 1669
1767 checkUnnamed1181(core.List<api.LabelDescriptor> o) { 1670 checkUnnamed1183(core.List<api.LabelDescriptor> o) {
1768 unittest.expect(o, unittest.hasLength(2)); 1671 unittest.expect(o, unittest.hasLength(2));
1769 checkLabelDescriptor(o[0]); 1672 checkLabelDescriptor(o[0]);
1770 checkLabelDescriptor(o[1]); 1673 checkLabelDescriptor(o[1]);
1771 } 1674 }
1772 1675
1773 core.int buildCounterLogDescriptor = 0; 1676 core.int buildCounterLogDescriptor = 0;
1774 buildLogDescriptor() { 1677 buildLogDescriptor() {
1775 var o = new api.LogDescriptor(); 1678 var o = new api.LogDescriptor();
1776 buildCounterLogDescriptor++; 1679 buildCounterLogDescriptor++;
1777 if (buildCounterLogDescriptor < 3) { 1680 if (buildCounterLogDescriptor < 3) {
1778 o.description = "foo"; 1681 o.description = "foo";
1779 o.displayName = "foo"; 1682 o.displayName = "foo";
1780 o.labels = buildUnnamed1181(); 1683 o.labels = buildUnnamed1183();
1781 o.name = "foo"; 1684 o.name = "foo";
1782 } 1685 }
1783 buildCounterLogDescriptor--; 1686 buildCounterLogDescriptor--;
1784 return o; 1687 return o;
1785 } 1688 }
1786 1689
1787 checkLogDescriptor(api.LogDescriptor o) { 1690 checkLogDescriptor(api.LogDescriptor o) {
1788 buildCounterLogDescriptor++; 1691 buildCounterLogDescriptor++;
1789 if (buildCounterLogDescriptor < 3) { 1692 if (buildCounterLogDescriptor < 3) {
1790 unittest.expect(o.description, unittest.equals('foo')); 1693 unittest.expect(o.description, unittest.equals('foo'));
1791 unittest.expect(o.displayName, unittest.equals('foo')); 1694 unittest.expect(o.displayName, unittest.equals('foo'));
1792 checkUnnamed1181(o.labels); 1695 checkUnnamed1183(o.labels);
1793 unittest.expect(o.name, unittest.equals('foo')); 1696 unittest.expect(o.name, unittest.equals('foo'));
1794 } 1697 }
1795 buildCounterLogDescriptor--; 1698 buildCounterLogDescriptor--;
1796 } 1699 }
1797 1700
1798 buildUnnamed1182() { 1701 buildUnnamed1184() {
1799 var o = new core.List<api.LoggingDestination>(); 1702 var o = new core.List<api.LoggingDestination>();
1800 o.add(buildLoggingDestination()); 1703 o.add(buildLoggingDestination());
1801 o.add(buildLoggingDestination()); 1704 o.add(buildLoggingDestination());
1802 return o; 1705 return o;
1803 } 1706 }
1804 1707
1805 checkUnnamed1182(core.List<api.LoggingDestination> o) { 1708 checkUnnamed1184(core.List<api.LoggingDestination> o) {
1806 unittest.expect(o, unittest.hasLength(2)); 1709 unittest.expect(o, unittest.hasLength(2));
1807 checkLoggingDestination(o[0]); 1710 checkLoggingDestination(o[0]);
1808 checkLoggingDestination(o[1]); 1711 checkLoggingDestination(o[1]);
1809 } 1712 }
1810 1713
1811 buildUnnamed1183() { 1714 buildUnnamed1185() {
1812 var o = new core.List<api.LoggingDestination>(); 1715 var o = new core.List<api.LoggingDestination>();
1813 o.add(buildLoggingDestination()); 1716 o.add(buildLoggingDestination());
1814 o.add(buildLoggingDestination()); 1717 o.add(buildLoggingDestination());
1815 return o; 1718 return o;
1816 } 1719 }
1817 1720
1818 checkUnnamed1183(core.List<api.LoggingDestination> o) { 1721 checkUnnamed1185(core.List<api.LoggingDestination> o) {
1819 unittest.expect(o, unittest.hasLength(2)); 1722 unittest.expect(o, unittest.hasLength(2));
1820 checkLoggingDestination(o[0]); 1723 checkLoggingDestination(o[0]);
1821 checkLoggingDestination(o[1]); 1724 checkLoggingDestination(o[1]);
1822 } 1725 }
1823 1726
1824 core.int buildCounterLogging = 0; 1727 core.int buildCounterLogging = 0;
1825 buildLogging() { 1728 buildLogging() {
1826 var o = new api.Logging(); 1729 var o = new api.Logging();
1827 buildCounterLogging++; 1730 buildCounterLogging++;
1828 if (buildCounterLogging < 3) { 1731 if (buildCounterLogging < 3) {
1829 o.consumerDestinations = buildUnnamed1182(); 1732 o.consumerDestinations = buildUnnamed1184();
1830 o.producerDestinations = buildUnnamed1183(); 1733 o.producerDestinations = buildUnnamed1185();
1831 } 1734 }
1832 buildCounterLogging--; 1735 buildCounterLogging--;
1833 return o; 1736 return o;
1834 } 1737 }
1835 1738
1836 checkLogging(api.Logging o) { 1739 checkLogging(api.Logging o) {
1837 buildCounterLogging++; 1740 buildCounterLogging++;
1838 if (buildCounterLogging < 3) { 1741 if (buildCounterLogging < 3) {
1839 checkUnnamed1182(o.consumerDestinations); 1742 checkUnnamed1184(o.consumerDestinations);
1840 checkUnnamed1183(o.producerDestinations); 1743 checkUnnamed1185(o.producerDestinations);
1841 } 1744 }
1842 buildCounterLogging--; 1745 buildCounterLogging--;
1843 } 1746 }
1844 1747
1845 buildUnnamed1184() { 1748 buildUnnamed1186() {
1846 var o = new core.List<core.String>(); 1749 var o = new core.List<core.String>();
1847 o.add("foo"); 1750 o.add("foo");
1848 o.add("foo"); 1751 o.add("foo");
1849 return o; 1752 return o;
1850 } 1753 }
1851 1754
1852 checkUnnamed1184(core.List<core.String> o) { 1755 checkUnnamed1186(core.List<core.String> o) {
1853 unittest.expect(o, unittest.hasLength(2)); 1756 unittest.expect(o, unittest.hasLength(2));
1854 unittest.expect(o[0], unittest.equals('foo')); 1757 unittest.expect(o[0], unittest.equals('foo'));
1855 unittest.expect(o[1], unittest.equals('foo')); 1758 unittest.expect(o[1], unittest.equals('foo'));
1856 } 1759 }
1857 1760
1858 core.int buildCounterLoggingDestination = 0; 1761 core.int buildCounterLoggingDestination = 0;
1859 buildLoggingDestination() { 1762 buildLoggingDestination() {
1860 var o = new api.LoggingDestination(); 1763 var o = new api.LoggingDestination();
1861 buildCounterLoggingDestination++; 1764 buildCounterLoggingDestination++;
1862 if (buildCounterLoggingDestination < 3) { 1765 if (buildCounterLoggingDestination < 3) {
1863 o.logs = buildUnnamed1184(); 1766 o.logs = buildUnnamed1186();
1864 o.monitoredResource = "foo"; 1767 o.monitoredResource = "foo";
1865 } 1768 }
1866 buildCounterLoggingDestination--; 1769 buildCounterLoggingDestination--;
1867 return o; 1770 return o;
1868 } 1771 }
1869 1772
1870 checkLoggingDestination(api.LoggingDestination o) { 1773 checkLoggingDestination(api.LoggingDestination o) {
1871 buildCounterLoggingDestination++; 1774 buildCounterLoggingDestination++;
1872 if (buildCounterLoggingDestination < 3) { 1775 if (buildCounterLoggingDestination < 3) {
1873 checkUnnamed1184(o.logs); 1776 checkUnnamed1186(o.logs);
1874 unittest.expect(o.monitoredResource, unittest.equals('foo')); 1777 unittest.expect(o.monitoredResource, unittest.equals('foo'));
1875 } 1778 }
1876 buildCounterLoggingDestination--; 1779 buildCounterLoggingDestination--;
1877 } 1780 }
1878 1781
1879 core.int buildCounterManagedService = 0; 1782 core.int buildCounterManagedService = 0;
1880 buildManagedService() { 1783 buildManagedService() {
1881 var o = new api.ManagedService(); 1784 var o = new api.ManagedService();
1882 buildCounterManagedService++; 1785 buildCounterManagedService++;
1883 if (buildCounterManagedService < 3) { 1786 if (buildCounterManagedService < 3) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 unittest.expect(o.completeNotification, unittest.isTrue); 1822 unittest.expect(o.completeNotification, unittest.isTrue);
1920 unittest.expect(o.downloadService, unittest.equals('foo')); 1823 unittest.expect(o.downloadService, unittest.equals('foo'));
1921 unittest.expect(o.dropzone, unittest.equals('foo')); 1824 unittest.expect(o.dropzone, unittest.equals('foo'));
1922 unittest.expect(o.enabled, unittest.isTrue); 1825 unittest.expect(o.enabled, unittest.isTrue);
1923 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); 1826 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo'));
1924 unittest.expect(o.useDirectDownload, unittest.isTrue); 1827 unittest.expect(o.useDirectDownload, unittest.isTrue);
1925 } 1828 }
1926 buildCounterMediaDownload--; 1829 buildCounterMediaDownload--;
1927 } 1830 }
1928 1831
1929 buildUnnamed1185() { 1832 buildUnnamed1187() {
1930 var o = new core.List<core.String>(); 1833 var o = new core.List<core.String>();
1931 o.add("foo"); 1834 o.add("foo");
1932 o.add("foo"); 1835 o.add("foo");
1933 return o; 1836 return o;
1934 } 1837 }
1935 1838
1936 checkUnnamed1185(core.List<core.String> o) { 1839 checkUnnamed1187(core.List<core.String> o) {
1937 unittest.expect(o, unittest.hasLength(2)); 1840 unittest.expect(o, unittest.hasLength(2));
1938 unittest.expect(o[0], unittest.equals('foo')); 1841 unittest.expect(o[0], unittest.equals('foo'));
1939 unittest.expect(o[1], unittest.equals('foo')); 1842 unittest.expect(o[1], unittest.equals('foo'));
1940 } 1843 }
1941 1844
1942 core.int buildCounterMediaUpload = 0; 1845 core.int buildCounterMediaUpload = 0;
1943 buildMediaUpload() { 1846 buildMediaUpload() {
1944 var o = new api.MediaUpload(); 1847 var o = new api.MediaUpload();
1945 buildCounterMediaUpload++; 1848 buildCounterMediaUpload++;
1946 if (buildCounterMediaUpload < 3) { 1849 if (buildCounterMediaUpload < 3) {
1947 o.completeNotification = true; 1850 o.completeNotification = true;
1948 o.dropzone = "foo"; 1851 o.dropzone = "foo";
1949 o.enabled = true; 1852 o.enabled = true;
1950 o.maxSize = "foo"; 1853 o.maxSize = "foo";
1951 o.mimeTypes = buildUnnamed1185(); 1854 o.mimeTypes = buildUnnamed1187();
1952 o.progressNotification = true; 1855 o.progressNotification = true;
1953 o.startNotification = true; 1856 o.startNotification = true;
1954 o.uploadService = "foo"; 1857 o.uploadService = "foo";
1955 } 1858 }
1956 buildCounterMediaUpload--; 1859 buildCounterMediaUpload--;
1957 return o; 1860 return o;
1958 } 1861 }
1959 1862
1960 checkMediaUpload(api.MediaUpload o) { 1863 checkMediaUpload(api.MediaUpload o) {
1961 buildCounterMediaUpload++; 1864 buildCounterMediaUpload++;
1962 if (buildCounterMediaUpload < 3) { 1865 if (buildCounterMediaUpload < 3) {
1963 unittest.expect(o.completeNotification, unittest.isTrue); 1866 unittest.expect(o.completeNotification, unittest.isTrue);
1964 unittest.expect(o.dropzone, unittest.equals('foo')); 1867 unittest.expect(o.dropzone, unittest.equals('foo'));
1965 unittest.expect(o.enabled, unittest.isTrue); 1868 unittest.expect(o.enabled, unittest.isTrue);
1966 unittest.expect(o.maxSize, unittest.equals('foo')); 1869 unittest.expect(o.maxSize, unittest.equals('foo'));
1967 checkUnnamed1185(o.mimeTypes); 1870 checkUnnamed1187(o.mimeTypes);
1968 unittest.expect(o.progressNotification, unittest.isTrue); 1871 unittest.expect(o.progressNotification, unittest.isTrue);
1969 unittest.expect(o.startNotification, unittest.isTrue); 1872 unittest.expect(o.startNotification, unittest.isTrue);
1970 unittest.expect(o.uploadService, unittest.equals('foo')); 1873 unittest.expect(o.uploadService, unittest.equals('foo'));
1971 } 1874 }
1972 buildCounterMediaUpload--; 1875 buildCounterMediaUpload--;
1973 } 1876 }
1974 1877
1975 buildUnnamed1186() { 1878 buildUnnamed1188() {
1976 var o = new core.List<api.Option>(); 1879 var o = new core.List<api.Option>();
1977 o.add(buildOption()); 1880 o.add(buildOption());
1978 o.add(buildOption()); 1881 o.add(buildOption());
1979 return o; 1882 return o;
1980 } 1883 }
1981 1884
1982 checkUnnamed1186(core.List<api.Option> o) { 1885 checkUnnamed1188(core.List<api.Option> o) {
1983 unittest.expect(o, unittest.hasLength(2)); 1886 unittest.expect(o, unittest.hasLength(2));
1984 checkOption(o[0]); 1887 checkOption(o[0]);
1985 checkOption(o[1]); 1888 checkOption(o[1]);
1986 } 1889 }
1987 1890
1988 core.int buildCounterMethod = 0; 1891 core.int buildCounterMethod = 0;
1989 buildMethod() { 1892 buildMethod() {
1990 var o = new api.Method(); 1893 var o = new api.Method();
1991 buildCounterMethod++; 1894 buildCounterMethod++;
1992 if (buildCounterMethod < 3) { 1895 if (buildCounterMethod < 3) {
1993 o.name = "foo"; 1896 o.name = "foo";
1994 o.options = buildUnnamed1186(); 1897 o.options = buildUnnamed1188();
1995 o.requestStreaming = true; 1898 o.requestStreaming = true;
1996 o.requestTypeUrl = "foo"; 1899 o.requestTypeUrl = "foo";
1997 o.responseStreaming = true; 1900 o.responseStreaming = true;
1998 o.responseTypeUrl = "foo"; 1901 o.responseTypeUrl = "foo";
1999 o.syntax = "foo"; 1902 o.syntax = "foo";
2000 } 1903 }
2001 buildCounterMethod--; 1904 buildCounterMethod--;
2002 return o; 1905 return o;
2003 } 1906 }
2004 1907
2005 checkMethod(api.Method o) { 1908 checkMethod(api.Method o) {
2006 buildCounterMethod++; 1909 buildCounterMethod++;
2007 if (buildCounterMethod < 3) { 1910 if (buildCounterMethod < 3) {
2008 unittest.expect(o.name, unittest.equals('foo')); 1911 unittest.expect(o.name, unittest.equals('foo'));
2009 checkUnnamed1186(o.options); 1912 checkUnnamed1188(o.options);
2010 unittest.expect(o.requestStreaming, unittest.isTrue); 1913 unittest.expect(o.requestStreaming, unittest.isTrue);
2011 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); 1914 unittest.expect(o.requestTypeUrl, unittest.equals('foo'));
2012 unittest.expect(o.responseStreaming, unittest.isTrue); 1915 unittest.expect(o.responseStreaming, unittest.isTrue);
2013 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); 1916 unittest.expect(o.responseTypeUrl, unittest.equals('foo'));
2014 unittest.expect(o.syntax, unittest.equals('foo')); 1917 unittest.expect(o.syntax, unittest.equals('foo'));
2015 } 1918 }
2016 buildCounterMethod--; 1919 buildCounterMethod--;
2017 } 1920 }
2018 1921
2019 buildUnnamed1187() { 1922 buildUnnamed1189() {
2020 var o = new core.List<api.LabelDescriptor>(); 1923 var o = new core.List<api.LabelDescriptor>();
2021 o.add(buildLabelDescriptor()); 1924 o.add(buildLabelDescriptor());
2022 o.add(buildLabelDescriptor()); 1925 o.add(buildLabelDescriptor());
2023 return o; 1926 return o;
2024 } 1927 }
2025 1928
2026 checkUnnamed1187(core.List<api.LabelDescriptor> o) { 1929 checkUnnamed1189(core.List<api.LabelDescriptor> o) {
2027 unittest.expect(o, unittest.hasLength(2)); 1930 unittest.expect(o, unittest.hasLength(2));
2028 checkLabelDescriptor(o[0]); 1931 checkLabelDescriptor(o[0]);
2029 checkLabelDescriptor(o[1]); 1932 checkLabelDescriptor(o[1]);
2030 } 1933 }
2031 1934
2032 core.int buildCounterMetricDescriptor = 0; 1935 core.int buildCounterMetricDescriptor = 0;
2033 buildMetricDescriptor() { 1936 buildMetricDescriptor() {
2034 var o = new api.MetricDescriptor(); 1937 var o = new api.MetricDescriptor();
2035 buildCounterMetricDescriptor++; 1938 buildCounterMetricDescriptor++;
2036 if (buildCounterMetricDescriptor < 3) { 1939 if (buildCounterMetricDescriptor < 3) {
2037 o.description = "foo"; 1940 o.description = "foo";
2038 o.displayName = "foo"; 1941 o.displayName = "foo";
2039 o.labels = buildUnnamed1187(); 1942 o.labels = buildUnnamed1189();
2040 o.metricKind = "foo"; 1943 o.metricKind = "foo";
2041 o.name = "foo"; 1944 o.name = "foo";
2042 o.type = "foo"; 1945 o.type = "foo";
2043 o.unit = "foo"; 1946 o.unit = "foo";
2044 o.valueType = "foo"; 1947 o.valueType = "foo";
2045 } 1948 }
2046 buildCounterMetricDescriptor--; 1949 buildCounterMetricDescriptor--;
2047 return o; 1950 return o;
2048 } 1951 }
2049 1952
2050 checkMetricDescriptor(api.MetricDescriptor o) { 1953 checkMetricDescriptor(api.MetricDescriptor o) {
2051 buildCounterMetricDescriptor++; 1954 buildCounterMetricDescriptor++;
2052 if (buildCounterMetricDescriptor < 3) { 1955 if (buildCounterMetricDescriptor < 3) {
2053 unittest.expect(o.description, unittest.equals('foo')); 1956 unittest.expect(o.description, unittest.equals('foo'));
2054 unittest.expect(o.displayName, unittest.equals('foo')); 1957 unittest.expect(o.displayName, unittest.equals('foo'));
2055 checkUnnamed1187(o.labels); 1958 checkUnnamed1189(o.labels);
2056 unittest.expect(o.metricKind, unittest.equals('foo')); 1959 unittest.expect(o.metricKind, unittest.equals('foo'));
2057 unittest.expect(o.name, unittest.equals('foo')); 1960 unittest.expect(o.name, unittest.equals('foo'));
2058 unittest.expect(o.type, unittest.equals('foo')); 1961 unittest.expect(o.type, unittest.equals('foo'));
2059 unittest.expect(o.unit, unittest.equals('foo')); 1962 unittest.expect(o.unit, unittest.equals('foo'));
2060 unittest.expect(o.valueType, unittest.equals('foo')); 1963 unittest.expect(o.valueType, unittest.equals('foo'));
2061 } 1964 }
2062 buildCounterMetricDescriptor--; 1965 buildCounterMetricDescriptor--;
2063 } 1966 }
2064 1967
2065 buildUnnamed1188() { 1968 buildUnnamed1190() {
2066 var o = new core.Map<core.String, core.String>(); 1969 var o = new core.Map<core.String, core.String>();
2067 o["x"] = "foo"; 1970 o["x"] = "foo";
2068 o["y"] = "foo"; 1971 o["y"] = "foo";
2069 return o; 1972 return o;
2070 } 1973 }
2071 1974
2072 checkUnnamed1188(core.Map<core.String, core.String> o) { 1975 checkUnnamed1190(core.Map<core.String, core.String> o) {
2073 unittest.expect(o, unittest.hasLength(2)); 1976 unittest.expect(o, unittest.hasLength(2));
2074 unittest.expect(o["x"], unittest.equals('foo')); 1977 unittest.expect(o["x"], unittest.equals('foo'));
2075 unittest.expect(o["y"], unittest.equals('foo')); 1978 unittest.expect(o["y"], unittest.equals('foo'));
2076 } 1979 }
2077 1980
2078 core.int buildCounterMetricRule = 0; 1981 core.int buildCounterMetricRule = 0;
2079 buildMetricRule() { 1982 buildMetricRule() {
2080 var o = new api.MetricRule(); 1983 var o = new api.MetricRule();
2081 buildCounterMetricRule++; 1984 buildCounterMetricRule++;
2082 if (buildCounterMetricRule < 3) { 1985 if (buildCounterMetricRule < 3) {
2083 o.metricCosts = buildUnnamed1188(); 1986 o.metricCosts = buildUnnamed1190();
2084 o.selector = "foo"; 1987 o.selector = "foo";
2085 } 1988 }
2086 buildCounterMetricRule--; 1989 buildCounterMetricRule--;
2087 return o; 1990 return o;
2088 } 1991 }
2089 1992
2090 checkMetricRule(api.MetricRule o) { 1993 checkMetricRule(api.MetricRule o) {
2091 buildCounterMetricRule++; 1994 buildCounterMetricRule++;
2092 if (buildCounterMetricRule < 3) { 1995 if (buildCounterMetricRule < 3) {
2093 checkUnnamed1188(o.metricCosts); 1996 checkUnnamed1190(o.metricCosts);
2094 unittest.expect(o.selector, unittest.equals('foo')); 1997 unittest.expect(o.selector, unittest.equals('foo'));
2095 } 1998 }
2096 buildCounterMetricRule--; 1999 buildCounterMetricRule--;
2097 } 2000 }
2098 2001
2099 core.int buildCounterMixin = 0; 2002 core.int buildCounterMixin = 0;
2100 buildMixin() { 2003 buildMixin() {
2101 var o = new api.Mixin(); 2004 var o = new api.Mixin();
2102 buildCounterMixin++; 2005 buildCounterMixin++;
2103 if (buildCounterMixin < 3) { 2006 if (buildCounterMixin < 3) {
2104 o.name = "foo"; 2007 o.name = "foo";
2105 o.root = "foo"; 2008 o.root = "foo";
2106 } 2009 }
2107 buildCounterMixin--; 2010 buildCounterMixin--;
2108 return o; 2011 return o;
2109 } 2012 }
2110 2013
2111 checkMixin(api.Mixin o) { 2014 checkMixin(api.Mixin o) {
2112 buildCounterMixin++; 2015 buildCounterMixin++;
2113 if (buildCounterMixin < 3) { 2016 if (buildCounterMixin < 3) {
2114 unittest.expect(o.name, unittest.equals('foo')); 2017 unittest.expect(o.name, unittest.equals('foo'));
2115 unittest.expect(o.root, unittest.equals('foo')); 2018 unittest.expect(o.root, unittest.equals('foo'));
2116 } 2019 }
2117 buildCounterMixin--; 2020 buildCounterMixin--;
2118 } 2021 }
2119 2022
2120 buildUnnamed1189() { 2023 buildUnnamed1191() {
2121 var o = new core.List<api.LabelDescriptor>(); 2024 var o = new core.List<api.LabelDescriptor>();
2122 o.add(buildLabelDescriptor()); 2025 o.add(buildLabelDescriptor());
2123 o.add(buildLabelDescriptor()); 2026 o.add(buildLabelDescriptor());
2124 return o; 2027 return o;
2125 } 2028 }
2126 2029
2127 checkUnnamed1189(core.List<api.LabelDescriptor> o) { 2030 checkUnnamed1191(core.List<api.LabelDescriptor> o) {
2128 unittest.expect(o, unittest.hasLength(2)); 2031 unittest.expect(o, unittest.hasLength(2));
2129 checkLabelDescriptor(o[0]); 2032 checkLabelDescriptor(o[0]);
2130 checkLabelDescriptor(o[1]); 2033 checkLabelDescriptor(o[1]);
2131 } 2034 }
2132 2035
2133 core.int buildCounterMonitoredResourceDescriptor = 0; 2036 core.int buildCounterMonitoredResourceDescriptor = 0;
2134 buildMonitoredResourceDescriptor() { 2037 buildMonitoredResourceDescriptor() {
2135 var o = new api.MonitoredResourceDescriptor(); 2038 var o = new api.MonitoredResourceDescriptor();
2136 buildCounterMonitoredResourceDescriptor++; 2039 buildCounterMonitoredResourceDescriptor++;
2137 if (buildCounterMonitoredResourceDescriptor < 3) { 2040 if (buildCounterMonitoredResourceDescriptor < 3) {
2138 o.description = "foo"; 2041 o.description = "foo";
2139 o.displayName = "foo"; 2042 o.displayName = "foo";
2140 o.labels = buildUnnamed1189(); 2043 o.labels = buildUnnamed1191();
2141 o.name = "foo"; 2044 o.name = "foo";
2142 o.type = "foo"; 2045 o.type = "foo";
2143 } 2046 }
2144 buildCounterMonitoredResourceDescriptor--; 2047 buildCounterMonitoredResourceDescriptor--;
2145 return o; 2048 return o;
2146 } 2049 }
2147 2050
2148 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { 2051 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
2149 buildCounterMonitoredResourceDescriptor++; 2052 buildCounterMonitoredResourceDescriptor++;
2150 if (buildCounterMonitoredResourceDescriptor < 3) { 2053 if (buildCounterMonitoredResourceDescriptor < 3) {
2151 unittest.expect(o.description, unittest.equals('foo')); 2054 unittest.expect(o.description, unittest.equals('foo'));
2152 unittest.expect(o.displayName, unittest.equals('foo')); 2055 unittest.expect(o.displayName, unittest.equals('foo'));
2153 checkUnnamed1189(o.labels); 2056 checkUnnamed1191(o.labels);
2154 unittest.expect(o.name, unittest.equals('foo')); 2057 unittest.expect(o.name, unittest.equals('foo'));
2155 unittest.expect(o.type, unittest.equals('foo')); 2058 unittest.expect(o.type, unittest.equals('foo'));
2156 } 2059 }
2157 buildCounterMonitoredResourceDescriptor--; 2060 buildCounterMonitoredResourceDescriptor--;
2158 } 2061 }
2159 2062
2160 buildUnnamed1190() { 2063 buildUnnamed1192() {
2161 var o = new core.List<api.MonitoringDestination>(); 2064 var o = new core.List<api.MonitoringDestination>();
2162 o.add(buildMonitoringDestination()); 2065 o.add(buildMonitoringDestination());
2163 o.add(buildMonitoringDestination()); 2066 o.add(buildMonitoringDestination());
2164 return o; 2067 return o;
2165 } 2068 }
2166 2069
2167 checkUnnamed1190(core.List<api.MonitoringDestination> o) { 2070 checkUnnamed1192(core.List<api.MonitoringDestination> o) {
2168 unittest.expect(o, unittest.hasLength(2)); 2071 unittest.expect(o, unittest.hasLength(2));
2169 checkMonitoringDestination(o[0]); 2072 checkMonitoringDestination(o[0]);
2170 checkMonitoringDestination(o[1]); 2073 checkMonitoringDestination(o[1]);
2171 } 2074 }
2172 2075
2173 buildUnnamed1191() { 2076 buildUnnamed1193() {
2174 var o = new core.List<api.MonitoringDestination>(); 2077 var o = new core.List<api.MonitoringDestination>();
2175 o.add(buildMonitoringDestination()); 2078 o.add(buildMonitoringDestination());
2176 o.add(buildMonitoringDestination()); 2079 o.add(buildMonitoringDestination());
2177 return o; 2080 return o;
2178 } 2081 }
2179 2082
2180 checkUnnamed1191(core.List<api.MonitoringDestination> o) { 2083 checkUnnamed1193(core.List<api.MonitoringDestination> o) {
2181 unittest.expect(o, unittest.hasLength(2)); 2084 unittest.expect(o, unittest.hasLength(2));
2182 checkMonitoringDestination(o[0]); 2085 checkMonitoringDestination(o[0]);
2183 checkMonitoringDestination(o[1]); 2086 checkMonitoringDestination(o[1]);
2184 } 2087 }
2185 2088
2186 core.int buildCounterMonitoring = 0; 2089 core.int buildCounterMonitoring = 0;
2187 buildMonitoring() { 2090 buildMonitoring() {
2188 var o = new api.Monitoring(); 2091 var o = new api.Monitoring();
2189 buildCounterMonitoring++; 2092 buildCounterMonitoring++;
2190 if (buildCounterMonitoring < 3) { 2093 if (buildCounterMonitoring < 3) {
2191 o.consumerDestinations = buildUnnamed1190(); 2094 o.consumerDestinations = buildUnnamed1192();
2192 o.producerDestinations = buildUnnamed1191(); 2095 o.producerDestinations = buildUnnamed1193();
2193 } 2096 }
2194 buildCounterMonitoring--; 2097 buildCounterMonitoring--;
2195 return o; 2098 return o;
2196 } 2099 }
2197 2100
2198 checkMonitoring(api.Monitoring o) { 2101 checkMonitoring(api.Monitoring o) {
2199 buildCounterMonitoring++; 2102 buildCounterMonitoring++;
2200 if (buildCounterMonitoring < 3) { 2103 if (buildCounterMonitoring < 3) {
2201 checkUnnamed1190(o.consumerDestinations); 2104 checkUnnamed1192(o.consumerDestinations);
2202 checkUnnamed1191(o.producerDestinations); 2105 checkUnnamed1193(o.producerDestinations);
2203 } 2106 }
2204 buildCounterMonitoring--; 2107 buildCounterMonitoring--;
2205 } 2108 }
2206 2109
2207 buildUnnamed1192() { 2110 buildUnnamed1194() {
2208 var o = new core.List<core.String>(); 2111 var o = new core.List<core.String>();
2209 o.add("foo"); 2112 o.add("foo");
2210 o.add("foo"); 2113 o.add("foo");
2211 return o; 2114 return o;
2212 } 2115 }
2213 2116
2214 checkUnnamed1192(core.List<core.String> o) { 2117 checkUnnamed1194(core.List<core.String> o) {
2215 unittest.expect(o, unittest.hasLength(2)); 2118 unittest.expect(o, unittest.hasLength(2));
2216 unittest.expect(o[0], unittest.equals('foo')); 2119 unittest.expect(o[0], unittest.equals('foo'));
2217 unittest.expect(o[1], unittest.equals('foo')); 2120 unittest.expect(o[1], unittest.equals('foo'));
2218 } 2121 }
2219 2122
2220 core.int buildCounterMonitoringDestination = 0; 2123 core.int buildCounterMonitoringDestination = 0;
2221 buildMonitoringDestination() { 2124 buildMonitoringDestination() {
2222 var o = new api.MonitoringDestination(); 2125 var o = new api.MonitoringDestination();
2223 buildCounterMonitoringDestination++; 2126 buildCounterMonitoringDestination++;
2224 if (buildCounterMonitoringDestination < 3) { 2127 if (buildCounterMonitoringDestination < 3) {
2225 o.metrics = buildUnnamed1192(); 2128 o.metrics = buildUnnamed1194();
2226 o.monitoredResource = "foo"; 2129 o.monitoredResource = "foo";
2227 } 2130 }
2228 buildCounterMonitoringDestination--; 2131 buildCounterMonitoringDestination--;
2229 return o; 2132 return o;
2230 } 2133 }
2231 2134
2232 checkMonitoringDestination(api.MonitoringDestination o) { 2135 checkMonitoringDestination(api.MonitoringDestination o) {
2233 buildCounterMonitoringDestination++; 2136 buildCounterMonitoringDestination++;
2234 if (buildCounterMonitoringDestination < 3) { 2137 if (buildCounterMonitoringDestination < 3) {
2235 checkUnnamed1192(o.metrics); 2138 checkUnnamed1194(o.metrics);
2236 unittest.expect(o.monitoredResource, unittest.equals('foo')); 2139 unittest.expect(o.monitoredResource, unittest.equals('foo'));
2237 } 2140 }
2238 buildCounterMonitoringDestination--; 2141 buildCounterMonitoringDestination--;
2239 } 2142 }
2240 2143
2241 core.int buildCounterOAuthRequirements = 0; 2144 core.int buildCounterOAuthRequirements = 0;
2242 buildOAuthRequirements() { 2145 buildOAuthRequirements() {
2243 var o = new api.OAuthRequirements(); 2146 var o = new api.OAuthRequirements();
2244 buildCounterOAuthRequirements++; 2147 buildCounterOAuthRequirements++;
2245 if (buildCounterOAuthRequirements < 3) { 2148 if (buildCounterOAuthRequirements < 3) {
2246 o.canonicalScopes = "foo"; 2149 o.canonicalScopes = "foo";
2247 } 2150 }
2248 buildCounterOAuthRequirements--; 2151 buildCounterOAuthRequirements--;
2249 return o; 2152 return o;
2250 } 2153 }
2251 2154
2252 checkOAuthRequirements(api.OAuthRequirements o) { 2155 checkOAuthRequirements(api.OAuthRequirements o) {
2253 buildCounterOAuthRequirements++; 2156 buildCounterOAuthRequirements++;
2254 if (buildCounterOAuthRequirements < 3) { 2157 if (buildCounterOAuthRequirements < 3) {
2255 unittest.expect(o.canonicalScopes, unittest.equals('foo')); 2158 unittest.expect(o.canonicalScopes, unittest.equals('foo'));
2256 } 2159 }
2257 buildCounterOAuthRequirements--; 2160 buildCounterOAuthRequirements--;
2258 } 2161 }
2259 2162
2260 buildUnnamed1193() { 2163 buildUnnamed1195() {
2261 var o = new core.Map<core.String, core.Object>(); 2164 var o = new core.Map<core.String, core.Object>();
2262 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2165 o["x"] = {
2263 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2166 'list': [1, 2, 3],
2167 'bool': true,
2168 'string': 'foo'
2169 };
2170 o["y"] = {
2171 'list': [1, 2, 3],
2172 'bool': true,
2173 'string': 'foo'
2174 };
2264 return o; 2175 return o;
2265 } 2176 }
2266 2177
2267 checkUnnamed1193(core.Map<core.String, core.Object> o) { 2178 checkUnnamed1195(core.Map<core.String, core.Object> o) {
2268 unittest.expect(o, unittest.hasLength(2)); 2179 unittest.expect(o, unittest.hasLength(2));
2269 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); 2180 var casted5 = (o["x"]) as core.Map;
2270 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); 2181 unittest.expect(casted5, unittest.hasLength(3));
2182 unittest.expect(casted5["list"], unittest.equals([1, 2, 3]));
2183 unittest.expect(casted5["bool"], unittest.equals(true));
2184 unittest.expect(casted5["string"], unittest.equals('foo'));
2185 var casted6 = (o["y"]) as core.Map;
2186 unittest.expect(casted6, unittest.hasLength(3));
2187 unittest.expect(casted6["list"], unittest.equals([1, 2, 3]));
2188 unittest.expect(casted6["bool"], unittest.equals(true));
2189 unittest.expect(casted6["string"], unittest.equals('foo'));
2271 } 2190 }
2272 2191
2273 buildUnnamed1194() { 2192 buildUnnamed1196() {
2274 var o = new core.Map<core.String, core.Object>(); 2193 var o = new core.Map<core.String, core.Object>();
2275 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2194 o["x"] = {
2276 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2195 'list': [1, 2, 3],
2196 'bool': true,
2197 'string': 'foo'
2198 };
2199 o["y"] = {
2200 'list': [1, 2, 3],
2201 'bool': true,
2202 'string': 'foo'
2203 };
2277 return o; 2204 return o;
2278 } 2205 }
2279 2206
2280 checkUnnamed1194(core.Map<core.String, core.Object> o) { 2207 checkUnnamed1196(core.Map<core.String, core.Object> o) {
2281 unittest.expect(o, unittest.hasLength(2)); 2208 unittest.expect(o, unittest.hasLength(2));
2282 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); 2209 var casted7 = (o["x"]) as core.Map;
2283 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); 2210 unittest.expect(casted7, unittest.hasLength(3));
2211 unittest.expect(casted7["list"], unittest.equals([1, 2, 3]));
2212 unittest.expect(casted7["bool"], unittest.equals(true));
2213 unittest.expect(casted7["string"], unittest.equals('foo'));
2214 var casted8 = (o["y"]) as core.Map;
2215 unittest.expect(casted8, unittest.hasLength(3));
2216 unittest.expect(casted8["list"], unittest.equals([1, 2, 3]));
2217 unittest.expect(casted8["bool"], unittest.equals(true));
2218 unittest.expect(casted8["string"], unittest.equals('foo'));
2284 } 2219 }
2285 2220
2286 core.int buildCounterOperation = 0; 2221 core.int buildCounterOperation = 0;
2287 buildOperation() { 2222 buildOperation() {
2288 var o = new api.Operation(); 2223 var o = new api.Operation();
2289 buildCounterOperation++; 2224 buildCounterOperation++;
2290 if (buildCounterOperation < 3) { 2225 if (buildCounterOperation < 3) {
2291 o.done = true; 2226 o.done = true;
2292 o.error = buildStatus(); 2227 o.error = buildStatus();
2293 o.metadata = buildUnnamed1193(); 2228 o.metadata = buildUnnamed1195();
2294 o.name = "foo"; 2229 o.name = "foo";
2295 o.response = buildUnnamed1194(); 2230 o.response = buildUnnamed1196();
2296 } 2231 }
2297 buildCounterOperation--; 2232 buildCounterOperation--;
2298 return o; 2233 return o;
2299 } 2234 }
2300 2235
2301 checkOperation(api.Operation o) { 2236 checkOperation(api.Operation o) {
2302 buildCounterOperation++; 2237 buildCounterOperation++;
2303 if (buildCounterOperation < 3) { 2238 if (buildCounterOperation < 3) {
2304 unittest.expect(o.done, unittest.isTrue); 2239 unittest.expect(o.done, unittest.isTrue);
2305 checkStatus(o.error); 2240 checkStatus(o.error);
2306 checkUnnamed1193(o.metadata); 2241 checkUnnamed1195(o.metadata);
2307 unittest.expect(o.name, unittest.equals('foo')); 2242 unittest.expect(o.name, unittest.equals('foo'));
2308 checkUnnamed1194(o.response); 2243 checkUnnamed1196(o.response);
2309 } 2244 }
2310 buildCounterOperation--; 2245 buildCounterOperation--;
2311 } 2246 }
2312 2247
2313 buildUnnamed1195() { 2248 buildUnnamed1197() {
2314 var o = new core.List<core.String>(); 2249 var o = new core.List<core.String>();
2315 o.add("foo"); 2250 o.add("foo");
2316 o.add("foo"); 2251 o.add("foo");
2317 return o; 2252 return o;
2318 } 2253 }
2319 2254
2320 checkUnnamed1195(core.List<core.String> o) { 2255 checkUnnamed1197(core.List<core.String> o) {
2321 unittest.expect(o, unittest.hasLength(2)); 2256 unittest.expect(o, unittest.hasLength(2));
2322 unittest.expect(o[0], unittest.equals('foo')); 2257 unittest.expect(o[0], unittest.equals('foo'));
2323 unittest.expect(o[1], unittest.equals('foo')); 2258 unittest.expect(o[1], unittest.equals('foo'));
2324 } 2259 }
2325 2260
2326 buildUnnamed1196() { 2261 buildUnnamed1198() {
2327 var o = new core.List<api.Step>(); 2262 var o = new core.List<api.Step>();
2328 o.add(buildStep()); 2263 o.add(buildStep());
2329 o.add(buildStep()); 2264 o.add(buildStep());
2330 return o; 2265 return o;
2331 } 2266 }
2332 2267
2333 checkUnnamed1196(core.List<api.Step> o) { 2268 checkUnnamed1198(core.List<api.Step> o) {
2334 unittest.expect(o, unittest.hasLength(2)); 2269 unittest.expect(o, unittest.hasLength(2));
2335 checkStep(o[0]); 2270 checkStep(o[0]);
2336 checkStep(o[1]); 2271 checkStep(o[1]);
2337 } 2272 }
2338 2273
2339 core.int buildCounterOperationMetadata = 0; 2274 core.int buildCounterOperationMetadata = 0;
2340 buildOperationMetadata() { 2275 buildOperationMetadata() {
2341 var o = new api.OperationMetadata(); 2276 var o = new api.OperationMetadata();
2342 buildCounterOperationMetadata++; 2277 buildCounterOperationMetadata++;
2343 if (buildCounterOperationMetadata < 3) { 2278 if (buildCounterOperationMetadata < 3) {
2344 o.progressPercentage = 42; 2279 o.progressPercentage = 42;
2345 o.resourceNames = buildUnnamed1195(); 2280 o.resourceNames = buildUnnamed1197();
2346 o.startTime = "foo"; 2281 o.startTime = "foo";
2347 o.steps = buildUnnamed1196(); 2282 o.steps = buildUnnamed1198();
2348 } 2283 }
2349 buildCounterOperationMetadata--; 2284 buildCounterOperationMetadata--;
2350 return o; 2285 return o;
2351 } 2286 }
2352 2287
2353 checkOperationMetadata(api.OperationMetadata o) { 2288 checkOperationMetadata(api.OperationMetadata o) {
2354 buildCounterOperationMetadata++; 2289 buildCounterOperationMetadata++;
2355 if (buildCounterOperationMetadata < 3) { 2290 if (buildCounterOperationMetadata < 3) {
2356 unittest.expect(o.progressPercentage, unittest.equals(42)); 2291 unittest.expect(o.progressPercentage, unittest.equals(42));
2357 checkUnnamed1195(o.resourceNames); 2292 checkUnnamed1197(o.resourceNames);
2358 unittest.expect(o.startTime, unittest.equals('foo')); 2293 unittest.expect(o.startTime, unittest.equals('foo'));
2359 checkUnnamed1196(o.steps); 2294 checkUnnamed1198(o.steps);
2360 } 2295 }
2361 buildCounterOperationMetadata--; 2296 buildCounterOperationMetadata--;
2362 } 2297 }
2363 2298
2364 buildUnnamed1197() { 2299 buildUnnamed1199() {
2365 var o = new core.Map<core.String, core.Object>(); 2300 var o = new core.Map<core.String, core.Object>();
2366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2301 o["x"] = {
2367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2302 'list': [1, 2, 3],
2303 'bool': true,
2304 'string': 'foo'
2305 };
2306 o["y"] = {
2307 'list': [1, 2, 3],
2308 'bool': true,
2309 'string': 'foo'
2310 };
2368 return o; 2311 return o;
2369 } 2312 }
2370 2313
2371 checkUnnamed1197(core.Map<core.String, core.Object> o) { 2314 checkUnnamed1199(core.Map<core.String, core.Object> o) {
2372 unittest.expect(o, unittest.hasLength(2)); 2315 unittest.expect(o, unittest.hasLength(2));
2373 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); 2316 var casted9 = (o["x"]) as core.Map;
2374 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest .expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri ng"], unittest.equals('foo')); 2317 unittest.expect(casted9, unittest.hasLength(3));
2318 unittest.expect(casted9["list"], unittest.equals([1, 2, 3]));
2319 unittest.expect(casted9["bool"], unittest.equals(true));
2320 unittest.expect(casted9["string"], unittest.equals('foo'));
2321 var casted10 = (o["y"]) as core.Map;
2322 unittest.expect(casted10, unittest.hasLength(3));
2323 unittest.expect(casted10["list"], unittest.equals([1, 2, 3]));
2324 unittest.expect(casted10["bool"], unittest.equals(true));
2325 unittest.expect(casted10["string"], unittest.equals('foo'));
2375 } 2326 }
2376 2327
2377 core.int buildCounterOption = 0; 2328 core.int buildCounterOption = 0;
2378 buildOption() { 2329 buildOption() {
2379 var o = new api.Option(); 2330 var o = new api.Option();
2380 buildCounterOption++; 2331 buildCounterOption++;
2381 if (buildCounterOption < 3) { 2332 if (buildCounterOption < 3) {
2382 o.name = "foo"; 2333 o.name = "foo";
2383 o.value = buildUnnamed1197(); 2334 o.value = buildUnnamed1199();
2384 } 2335 }
2385 buildCounterOption--; 2336 buildCounterOption--;
2386 return o; 2337 return o;
2387 } 2338 }
2388 2339
2389 checkOption(api.Option o) { 2340 checkOption(api.Option o) {
2390 buildCounterOption++; 2341 buildCounterOption++;
2391 if (buildCounterOption < 3) { 2342 if (buildCounterOption < 3) {
2392 unittest.expect(o.name, unittest.equals('foo')); 2343 unittest.expect(o.name, unittest.equals('foo'));
2393 checkUnnamed1197(o.value); 2344 checkUnnamed1199(o.value);
2394 } 2345 }
2395 buildCounterOption--; 2346 buildCounterOption--;
2396 } 2347 }
2397 2348
2398 buildUnnamed1198() { 2349 buildUnnamed1200() {
2399 var o = new core.List<api.Page>(); 2350 var o = new core.List<api.Page>();
2400 o.add(buildPage()); 2351 o.add(buildPage());
2401 o.add(buildPage()); 2352 o.add(buildPage());
2402 return o; 2353 return o;
2403 } 2354 }
2404 2355
2405 checkUnnamed1198(core.List<api.Page> o) { 2356 checkUnnamed1200(core.List<api.Page> o) {
2406 unittest.expect(o, unittest.hasLength(2)); 2357 unittest.expect(o, unittest.hasLength(2));
2407 checkPage(o[0]); 2358 checkPage(o[0]);
2408 checkPage(o[1]); 2359 checkPage(o[1]);
2409 } 2360 }
2410 2361
2411 core.int buildCounterPage = 0; 2362 core.int buildCounterPage = 0;
2412 buildPage() { 2363 buildPage() {
2413 var o = new api.Page(); 2364 var o = new api.Page();
2414 buildCounterPage++; 2365 buildCounterPage++;
2415 if (buildCounterPage < 3) { 2366 if (buildCounterPage < 3) {
2416 o.content = "foo"; 2367 o.content = "foo";
2417 o.name = "foo"; 2368 o.name = "foo";
2418 o.subpages = buildUnnamed1198(); 2369 o.subpages = buildUnnamed1200();
2419 } 2370 }
2420 buildCounterPage--; 2371 buildCounterPage--;
2421 return o; 2372 return o;
2422 } 2373 }
2423 2374
2424 checkPage(api.Page o) { 2375 checkPage(api.Page o) {
2425 buildCounterPage++; 2376 buildCounterPage++;
2426 if (buildCounterPage < 3) { 2377 if (buildCounterPage < 3) {
2427 unittest.expect(o.content, unittest.equals('foo')); 2378 unittest.expect(o.content, unittest.equals('foo'));
2428 unittest.expect(o.name, unittest.equals('foo')); 2379 unittest.expect(o.name, unittest.equals('foo'));
2429 checkUnnamed1198(o.subpages); 2380 checkUnnamed1200(o.subpages);
2430 } 2381 }
2431 buildCounterPage--; 2382 buildCounterPage--;
2432 } 2383 }
2433 2384
2434 buildUnnamed1199() { 2385 buildUnnamed1201() {
2435 var o = new core.List<api.AuditConfig>(); 2386 var o = new core.List<api.AuditConfig>();
2436 o.add(buildAuditConfig()); 2387 o.add(buildAuditConfig());
2437 o.add(buildAuditConfig()); 2388 o.add(buildAuditConfig());
2438 return o; 2389 return o;
2439 } 2390 }
2440 2391
2441 checkUnnamed1199(core.List<api.AuditConfig> o) { 2392 checkUnnamed1201(core.List<api.AuditConfig> o) {
2442 unittest.expect(o, unittest.hasLength(2)); 2393 unittest.expect(o, unittest.hasLength(2));
2443 checkAuditConfig(o[0]); 2394 checkAuditConfig(o[0]);
2444 checkAuditConfig(o[1]); 2395 checkAuditConfig(o[1]);
2445 } 2396 }
2446 2397
2447 buildUnnamed1200() { 2398 buildUnnamed1202() {
2448 var o = new core.List<api.Binding>(); 2399 var o = new core.List<api.Binding>();
2449 o.add(buildBinding()); 2400 o.add(buildBinding());
2450 o.add(buildBinding()); 2401 o.add(buildBinding());
2451 return o; 2402 return o;
2452 } 2403 }
2453 2404
2454 checkUnnamed1200(core.List<api.Binding> o) { 2405 checkUnnamed1202(core.List<api.Binding> o) {
2455 unittest.expect(o, unittest.hasLength(2)); 2406 unittest.expect(o, unittest.hasLength(2));
2456 checkBinding(o[0]); 2407 checkBinding(o[0]);
2457 checkBinding(o[1]); 2408 checkBinding(o[1]);
2458 } 2409 }
2459 2410
2460 buildUnnamed1201() {
2461 var o = new core.List<api.Rule>();
2462 o.add(buildRule());
2463 o.add(buildRule());
2464 return o;
2465 }
2466
2467 checkUnnamed1201(core.List<api.Rule> o) {
2468 unittest.expect(o, unittest.hasLength(2));
2469 checkRule(o[0]);
2470 checkRule(o[1]);
2471 }
2472
2473 core.int buildCounterPolicy = 0; 2411 core.int buildCounterPolicy = 0;
2474 buildPolicy() { 2412 buildPolicy() {
2475 var o = new api.Policy(); 2413 var o = new api.Policy();
2476 buildCounterPolicy++; 2414 buildCounterPolicy++;
2477 if (buildCounterPolicy < 3) { 2415 if (buildCounterPolicy < 3) {
2478 o.auditConfigs = buildUnnamed1199(); 2416 o.auditConfigs = buildUnnamed1201();
2479 o.bindings = buildUnnamed1200(); 2417 o.bindings = buildUnnamed1202();
2480 o.etag = "foo"; 2418 o.etag = "foo";
2481 o.iamOwned = true; 2419 o.iamOwned = true;
2482 o.rules = buildUnnamed1201();
2483 o.version = 42; 2420 o.version = 42;
2484 } 2421 }
2485 buildCounterPolicy--; 2422 buildCounterPolicy--;
2486 return o; 2423 return o;
2487 } 2424 }
2488 2425
2489 checkPolicy(api.Policy o) { 2426 checkPolicy(api.Policy o) {
2490 buildCounterPolicy++; 2427 buildCounterPolicy++;
2491 if (buildCounterPolicy < 3) { 2428 if (buildCounterPolicy < 3) {
2492 checkUnnamed1199(o.auditConfigs); 2429 checkUnnamed1201(o.auditConfigs);
2493 checkUnnamed1200(o.bindings); 2430 checkUnnamed1202(o.bindings);
2494 unittest.expect(o.etag, unittest.equals('foo')); 2431 unittest.expect(o.etag, unittest.equals('foo'));
2495 unittest.expect(o.iamOwned, unittest.isTrue); 2432 unittest.expect(o.iamOwned, unittest.isTrue);
2496 checkUnnamed1201(o.rules);
2497 unittest.expect(o.version, unittest.equals(42)); 2433 unittest.expect(o.version, unittest.equals(42));
2498 } 2434 }
2499 buildCounterPolicy--; 2435 buildCounterPolicy--;
2500 } 2436 }
2501 2437
2502 buildUnnamed1202() { 2438 buildUnnamed1203() {
2503 var o = new core.List<api.QuotaLimit>(); 2439 var o = new core.List<api.QuotaLimit>();
2504 o.add(buildQuotaLimit()); 2440 o.add(buildQuotaLimit());
2505 o.add(buildQuotaLimit()); 2441 o.add(buildQuotaLimit());
2506 return o; 2442 return o;
2507 } 2443 }
2508 2444
2509 checkUnnamed1202(core.List<api.QuotaLimit> o) { 2445 checkUnnamed1203(core.List<api.QuotaLimit> o) {
2510 unittest.expect(o, unittest.hasLength(2)); 2446 unittest.expect(o, unittest.hasLength(2));
2511 checkQuotaLimit(o[0]); 2447 checkQuotaLimit(o[0]);
2512 checkQuotaLimit(o[1]); 2448 checkQuotaLimit(o[1]);
2513 } 2449 }
2514 2450
2515 buildUnnamed1203() { 2451 buildUnnamed1204() {
2516 var o = new core.List<api.MetricRule>(); 2452 var o = new core.List<api.MetricRule>();
2517 o.add(buildMetricRule()); 2453 o.add(buildMetricRule());
2518 o.add(buildMetricRule()); 2454 o.add(buildMetricRule());
2519 return o; 2455 return o;
2520 } 2456 }
2521 2457
2522 checkUnnamed1203(core.List<api.MetricRule> o) { 2458 checkUnnamed1204(core.List<api.MetricRule> o) {
2523 unittest.expect(o, unittest.hasLength(2)); 2459 unittest.expect(o, unittest.hasLength(2));
2524 checkMetricRule(o[0]); 2460 checkMetricRule(o[0]);
2525 checkMetricRule(o[1]); 2461 checkMetricRule(o[1]);
2526 } 2462 }
2527 2463
2528 core.int buildCounterQuota = 0; 2464 core.int buildCounterQuota = 0;
2529 buildQuota() { 2465 buildQuota() {
2530 var o = new api.Quota(); 2466 var o = new api.Quota();
2531 buildCounterQuota++; 2467 buildCounterQuota++;
2532 if (buildCounterQuota < 3) { 2468 if (buildCounterQuota < 3) {
2533 o.limits = buildUnnamed1202(); 2469 o.limits = buildUnnamed1203();
2534 o.metricRules = buildUnnamed1203(); 2470 o.metricRules = buildUnnamed1204();
2535 } 2471 }
2536 buildCounterQuota--; 2472 buildCounterQuota--;
2537 return o; 2473 return o;
2538 } 2474 }
2539 2475
2540 checkQuota(api.Quota o) { 2476 checkQuota(api.Quota o) {
2541 buildCounterQuota++; 2477 buildCounterQuota++;
2542 if (buildCounterQuota < 3) { 2478 if (buildCounterQuota < 3) {
2543 checkUnnamed1202(o.limits); 2479 checkUnnamed1203(o.limits);
2544 checkUnnamed1203(o.metricRules); 2480 checkUnnamed1204(o.metricRules);
2545 } 2481 }
2546 buildCounterQuota--; 2482 buildCounterQuota--;
2547 } 2483 }
2548 2484
2549 buildUnnamed1204() { 2485 buildUnnamed1205() {
2550 var o = new core.Map<core.String, core.String>(); 2486 var o = new core.Map<core.String, core.String>();
2551 o["x"] = "foo"; 2487 o["x"] = "foo";
2552 o["y"] = "foo"; 2488 o["y"] = "foo";
2553 return o; 2489 return o;
2554 } 2490 }
2555 2491
2556 checkUnnamed1204(core.Map<core.String, core.String> o) { 2492 checkUnnamed1205(core.Map<core.String, core.String> o) {
2557 unittest.expect(o, unittest.hasLength(2)); 2493 unittest.expect(o, unittest.hasLength(2));
2558 unittest.expect(o["x"], unittest.equals('foo')); 2494 unittest.expect(o["x"], unittest.equals('foo'));
2559 unittest.expect(o["y"], unittest.equals('foo')); 2495 unittest.expect(o["y"], unittest.equals('foo'));
2560 } 2496 }
2561 2497
2562 core.int buildCounterQuotaLimit = 0; 2498 core.int buildCounterQuotaLimit = 0;
2563 buildQuotaLimit() { 2499 buildQuotaLimit() {
2564 var o = new api.QuotaLimit(); 2500 var o = new api.QuotaLimit();
2565 buildCounterQuotaLimit++; 2501 buildCounterQuotaLimit++;
2566 if (buildCounterQuotaLimit < 3) { 2502 if (buildCounterQuotaLimit < 3) {
2567 o.defaultLimit = "foo"; 2503 o.defaultLimit = "foo";
2568 o.description = "foo"; 2504 o.description = "foo";
2569 o.displayName = "foo"; 2505 o.displayName = "foo";
2570 o.duration = "foo"; 2506 o.duration = "foo";
2571 o.freeTier = "foo"; 2507 o.freeTier = "foo";
2572 o.maxLimit = "foo"; 2508 o.maxLimit = "foo";
2573 o.metric = "foo"; 2509 o.metric = "foo";
2574 o.name = "foo"; 2510 o.name = "foo";
2575 o.unit = "foo"; 2511 o.unit = "foo";
2576 o.values = buildUnnamed1204(); 2512 o.values = buildUnnamed1205();
2577 } 2513 }
2578 buildCounterQuotaLimit--; 2514 buildCounterQuotaLimit--;
2579 return o; 2515 return o;
2580 } 2516 }
2581 2517
2582 checkQuotaLimit(api.QuotaLimit o) { 2518 checkQuotaLimit(api.QuotaLimit o) {
2583 buildCounterQuotaLimit++; 2519 buildCounterQuotaLimit++;
2584 if (buildCounterQuotaLimit < 3) { 2520 if (buildCounterQuotaLimit < 3) {
2585 unittest.expect(o.defaultLimit, unittest.equals('foo')); 2521 unittest.expect(o.defaultLimit, unittest.equals('foo'));
2586 unittest.expect(o.description, unittest.equals('foo')); 2522 unittest.expect(o.description, unittest.equals('foo'));
2587 unittest.expect(o.displayName, unittest.equals('foo')); 2523 unittest.expect(o.displayName, unittest.equals('foo'));
2588 unittest.expect(o.duration, unittest.equals('foo')); 2524 unittest.expect(o.duration, unittest.equals('foo'));
2589 unittest.expect(o.freeTier, unittest.equals('foo')); 2525 unittest.expect(o.freeTier, unittest.equals('foo'));
2590 unittest.expect(o.maxLimit, unittest.equals('foo')); 2526 unittest.expect(o.maxLimit, unittest.equals('foo'));
2591 unittest.expect(o.metric, unittest.equals('foo')); 2527 unittest.expect(o.metric, unittest.equals('foo'));
2592 unittest.expect(o.name, unittest.equals('foo')); 2528 unittest.expect(o.name, unittest.equals('foo'));
2593 unittest.expect(o.unit, unittest.equals('foo')); 2529 unittest.expect(o.unit, unittest.equals('foo'));
2594 checkUnnamed1204(o.values); 2530 checkUnnamed1205(o.values);
2595 } 2531 }
2596 buildCounterQuotaLimit--; 2532 buildCounterQuotaLimit--;
2597 } 2533 }
2598 2534
2599 core.int buildCounterRollout = 0; 2535 core.int buildCounterRollout = 0;
2600 buildRollout() { 2536 buildRollout() {
2601 var o = new api.Rollout(); 2537 var o = new api.Rollout();
2602 buildCounterRollout++; 2538 buildCounterRollout++;
2603 if (buildCounterRollout < 3) { 2539 if (buildCounterRollout < 3) {
2604 o.createTime = "foo"; 2540 o.createTime = "foo";
(...skipping 15 matching lines...) Expand all
2620 unittest.expect(o.createdBy, unittest.equals('foo')); 2556 unittest.expect(o.createdBy, unittest.equals('foo'));
2621 checkDeleteServiceStrategy(o.deleteServiceStrategy); 2557 checkDeleteServiceStrategy(o.deleteServiceStrategy);
2622 unittest.expect(o.rolloutId, unittest.equals('foo')); 2558 unittest.expect(o.rolloutId, unittest.equals('foo'));
2623 unittest.expect(o.serviceName, unittest.equals('foo')); 2559 unittest.expect(o.serviceName, unittest.equals('foo'));
2624 unittest.expect(o.status, unittest.equals('foo')); 2560 unittest.expect(o.status, unittest.equals('foo'));
2625 checkTrafficPercentStrategy(o.trafficPercentStrategy); 2561 checkTrafficPercentStrategy(o.trafficPercentStrategy);
2626 } 2562 }
2627 buildCounterRollout--; 2563 buildCounterRollout--;
2628 } 2564 }
2629 2565
2630 buildUnnamed1205() {
2631 var o = new core.List<api.Condition>();
2632 o.add(buildCondition());
2633 o.add(buildCondition());
2634 return o;
2635 }
2636
2637 checkUnnamed1205(core.List<api.Condition> o) {
2638 unittest.expect(o, unittest.hasLength(2));
2639 checkCondition(o[0]);
2640 checkCondition(o[1]);
2641 }
2642
2643 buildUnnamed1206() { 2566 buildUnnamed1206() {
2644 var o = new core.List<core.String>();
2645 o.add("foo");
2646 o.add("foo");
2647 return o;
2648 }
2649
2650 checkUnnamed1206(core.List<core.String> o) {
2651 unittest.expect(o, unittest.hasLength(2));
2652 unittest.expect(o[0], unittest.equals('foo'));
2653 unittest.expect(o[1], unittest.equals('foo'));
2654 }
2655
2656 buildUnnamed1207() {
2657 var o = new core.List<api.LogConfig>();
2658 o.add(buildLogConfig());
2659 o.add(buildLogConfig());
2660 return o;
2661 }
2662
2663 checkUnnamed1207(core.List<api.LogConfig> o) {
2664 unittest.expect(o, unittest.hasLength(2));
2665 checkLogConfig(o[0]);
2666 checkLogConfig(o[1]);
2667 }
2668
2669 buildUnnamed1208() {
2670 var o = new core.List<core.String>();
2671 o.add("foo");
2672 o.add("foo");
2673 return o;
2674 }
2675
2676 checkUnnamed1208(core.List<core.String> o) {
2677 unittest.expect(o, unittest.hasLength(2));
2678 unittest.expect(o[0], unittest.equals('foo'));
2679 unittest.expect(o[1], unittest.equals('foo'));
2680 }
2681
2682 buildUnnamed1209() {
2683 var o = new core.List<core.String>();
2684 o.add("foo");
2685 o.add("foo");
2686 return o;
2687 }
2688
2689 checkUnnamed1209(core.List<core.String> o) {
2690 unittest.expect(o, unittest.hasLength(2));
2691 unittest.expect(o[0], unittest.equals('foo'));
2692 unittest.expect(o[1], unittest.equals('foo'));
2693 }
2694
2695 core.int buildCounterRule = 0;
2696 buildRule() {
2697 var o = new api.Rule();
2698 buildCounterRule++;
2699 if (buildCounterRule < 3) {
2700 o.action = "foo";
2701 o.conditions = buildUnnamed1205();
2702 o.description = "foo";
2703 o.in_ = buildUnnamed1206();
2704 o.logConfig = buildUnnamed1207();
2705 o.notIn = buildUnnamed1208();
2706 o.permissions = buildUnnamed1209();
2707 }
2708 buildCounterRule--;
2709 return o;
2710 }
2711
2712 checkRule(api.Rule o) {
2713 buildCounterRule++;
2714 if (buildCounterRule < 3) {
2715 unittest.expect(o.action, unittest.equals('foo'));
2716 checkUnnamed1205(o.conditions);
2717 unittest.expect(o.description, unittest.equals('foo'));
2718 checkUnnamed1206(o.in_);
2719 checkUnnamed1207(o.logConfig);
2720 checkUnnamed1208(o.notIn);
2721 checkUnnamed1209(o.permissions);
2722 }
2723 buildCounterRule--;
2724 }
2725
2726 buildUnnamed1210() {
2727 var o = new core.List<api.Api>(); 2567 var o = new core.List<api.Api>();
2728 o.add(buildApi()); 2568 o.add(buildApi());
2729 o.add(buildApi()); 2569 o.add(buildApi());
2730 return o; 2570 return o;
2731 } 2571 }
2732 2572
2733 checkUnnamed1210(core.List<api.Api> o) { 2573 checkUnnamed1206(core.List<api.Api> o) {
2734 unittest.expect(o, unittest.hasLength(2)); 2574 unittest.expect(o, unittest.hasLength(2));
2735 checkApi(o[0]); 2575 checkApi(o[0]);
2736 checkApi(o[1]); 2576 checkApi(o[1]);
2737 } 2577 }
2738 2578
2739 buildUnnamed1211() { 2579 buildUnnamed1207() {
2740 var o = new core.List<api.Endpoint>(); 2580 var o = new core.List<api.Endpoint>();
2741 o.add(buildEndpoint()); 2581 o.add(buildEndpoint());
2742 o.add(buildEndpoint()); 2582 o.add(buildEndpoint());
2743 return o; 2583 return o;
2744 } 2584 }
2745 2585
2746 checkUnnamed1211(core.List<api.Endpoint> o) { 2586 checkUnnamed1207(core.List<api.Endpoint> o) {
2747 unittest.expect(o, unittest.hasLength(2)); 2587 unittest.expect(o, unittest.hasLength(2));
2748 checkEndpoint(o[0]); 2588 checkEndpoint(o[0]);
2749 checkEndpoint(o[1]); 2589 checkEndpoint(o[1]);
2750 } 2590 }
2751 2591
2752 buildUnnamed1212() { 2592 buildUnnamed1208() {
2753 var o = new core.List<api.Enum>(); 2593 var o = new core.List<api.Enum>();
2754 o.add(buildEnum()); 2594 o.add(buildEnum());
2755 o.add(buildEnum()); 2595 o.add(buildEnum());
2756 return o; 2596 return o;
2757 } 2597 }
2758 2598
2759 checkUnnamed1212(core.List<api.Enum> o) { 2599 checkUnnamed1208(core.List<api.Enum> o) {
2760 unittest.expect(o, unittest.hasLength(2)); 2600 unittest.expect(o, unittest.hasLength(2));
2761 checkEnum(o[0]); 2601 checkEnum(o[0]);
2762 checkEnum(o[1]); 2602 checkEnum(o[1]);
2763 } 2603 }
2764 2604
2765 buildUnnamed1213() { 2605 buildUnnamed1209() {
2766 var o = new core.List<api.LogDescriptor>(); 2606 var o = new core.List<api.LogDescriptor>();
2767 o.add(buildLogDescriptor()); 2607 o.add(buildLogDescriptor());
2768 o.add(buildLogDescriptor()); 2608 o.add(buildLogDescriptor());
2769 return o; 2609 return o;
2770 } 2610 }
2771 2611
2772 checkUnnamed1213(core.List<api.LogDescriptor> o) { 2612 checkUnnamed1209(core.List<api.LogDescriptor> o) {
2773 unittest.expect(o, unittest.hasLength(2)); 2613 unittest.expect(o, unittest.hasLength(2));
2774 checkLogDescriptor(o[0]); 2614 checkLogDescriptor(o[0]);
2775 checkLogDescriptor(o[1]); 2615 checkLogDescriptor(o[1]);
2776 } 2616 }
2777 2617
2778 buildUnnamed1214() { 2618 buildUnnamed1210() {
2779 var o = new core.List<api.MetricDescriptor>(); 2619 var o = new core.List<api.MetricDescriptor>();
2780 o.add(buildMetricDescriptor()); 2620 o.add(buildMetricDescriptor());
2781 o.add(buildMetricDescriptor()); 2621 o.add(buildMetricDescriptor());
2782 return o; 2622 return o;
2783 } 2623 }
2784 2624
2785 checkUnnamed1214(core.List<api.MetricDescriptor> o) { 2625 checkUnnamed1210(core.List<api.MetricDescriptor> o) {
2786 unittest.expect(o, unittest.hasLength(2)); 2626 unittest.expect(o, unittest.hasLength(2));
2787 checkMetricDescriptor(o[0]); 2627 checkMetricDescriptor(o[0]);
2788 checkMetricDescriptor(o[1]); 2628 checkMetricDescriptor(o[1]);
2789 } 2629 }
2790 2630
2791 buildUnnamed1215() { 2631 buildUnnamed1211() {
2792 var o = new core.List<api.MonitoredResourceDescriptor>(); 2632 var o = new core.List<api.MonitoredResourceDescriptor>();
2793 o.add(buildMonitoredResourceDescriptor()); 2633 o.add(buildMonitoredResourceDescriptor());
2794 o.add(buildMonitoredResourceDescriptor()); 2634 o.add(buildMonitoredResourceDescriptor());
2795 return o; 2635 return o;
2796 } 2636 }
2797 2637
2798 checkUnnamed1215(core.List<api.MonitoredResourceDescriptor> o) { 2638 checkUnnamed1211(core.List<api.MonitoredResourceDescriptor> o) {
2799 unittest.expect(o, unittest.hasLength(2)); 2639 unittest.expect(o, unittest.hasLength(2));
2800 checkMonitoredResourceDescriptor(o[0]); 2640 checkMonitoredResourceDescriptor(o[0]);
2801 checkMonitoredResourceDescriptor(o[1]); 2641 checkMonitoredResourceDescriptor(o[1]);
2802 } 2642 }
2803 2643
2804 buildUnnamed1216() { 2644 buildUnnamed1212() {
2805 var o = new core.List<api.Type>(); 2645 var o = new core.List<api.Type>();
2806 o.add(buildType()); 2646 o.add(buildType());
2807 o.add(buildType()); 2647 o.add(buildType());
2808 return o; 2648 return o;
2809 } 2649 }
2810 2650
2811 checkUnnamed1216(core.List<api.Type> o) { 2651 checkUnnamed1212(core.List<api.Type> o) {
2812 unittest.expect(o, unittest.hasLength(2)); 2652 unittest.expect(o, unittest.hasLength(2));
2813 checkType(o[0]); 2653 checkType(o[0]);
2814 checkType(o[1]); 2654 checkType(o[1]);
2815 } 2655 }
2816 2656
2817 buildUnnamed1217() { 2657 buildUnnamed1213() {
2818 var o = new core.List<api.Type>(); 2658 var o = new core.List<api.Type>();
2819 o.add(buildType()); 2659 o.add(buildType());
2820 o.add(buildType()); 2660 o.add(buildType());
2821 return o; 2661 return o;
2822 } 2662 }
2823 2663
2824 checkUnnamed1217(core.List<api.Type> o) { 2664 checkUnnamed1213(core.List<api.Type> o) {
2825 unittest.expect(o, unittest.hasLength(2)); 2665 unittest.expect(o, unittest.hasLength(2));
2826 checkType(o[0]); 2666 checkType(o[0]);
2827 checkType(o[1]); 2667 checkType(o[1]);
2828 } 2668 }
2829 2669
2830 core.int buildCounterService = 0; 2670 core.int buildCounterService = 0;
2831 buildService() { 2671 buildService() {
2832 var o = new api.Service(); 2672 var o = new api.Service();
2833 buildCounterService++; 2673 buildCounterService++;
2834 if (buildCounterService < 3) { 2674 if (buildCounterService < 3) {
2835 o.apis = buildUnnamed1210(); 2675 o.apis = buildUnnamed1206();
2836 o.authentication = buildAuthentication(); 2676 o.authentication = buildAuthentication();
2837 o.backend = buildBackend(); 2677 o.backend = buildBackend();
2838 o.configVersion = 42; 2678 o.configVersion = 42;
2839 o.context = buildContext(); 2679 o.context = buildContext();
2840 o.control = buildControl(); 2680 o.control = buildControl();
2841 o.customError = buildCustomError(); 2681 o.customError = buildCustomError();
2842 o.documentation = buildDocumentation(); 2682 o.documentation = buildDocumentation();
2843 o.endpoints = buildUnnamed1211(); 2683 o.endpoints = buildUnnamed1207();
2844 o.enums = buildUnnamed1212(); 2684 o.enums = buildUnnamed1208();
2845 o.experimental = buildExperimental(); 2685 o.experimental = buildExperimental();
2846 o.http = buildHttp(); 2686 o.http = buildHttp();
2847 o.id = "foo"; 2687 o.id = "foo";
2848 o.logging = buildLogging(); 2688 o.logging = buildLogging();
2849 o.logs = buildUnnamed1213(); 2689 o.logs = buildUnnamed1209();
2850 o.metrics = buildUnnamed1214(); 2690 o.metrics = buildUnnamed1210();
2851 o.monitoredResources = buildUnnamed1215(); 2691 o.monitoredResources = buildUnnamed1211();
2852 o.monitoring = buildMonitoring(); 2692 o.monitoring = buildMonitoring();
2853 o.name = "foo"; 2693 o.name = "foo";
2854 o.producerProjectId = "foo"; 2694 o.producerProjectId = "foo";
2855 o.quota = buildQuota(); 2695 o.quota = buildQuota();
2856 o.sourceInfo = buildSourceInfo(); 2696 o.sourceInfo = buildSourceInfo();
2857 o.systemParameters = buildSystemParameters(); 2697 o.systemParameters = buildSystemParameters();
2858 o.systemTypes = buildUnnamed1216(); 2698 o.systemTypes = buildUnnamed1212();
2859 o.title = "foo"; 2699 o.title = "foo";
2860 o.types = buildUnnamed1217(); 2700 o.types = buildUnnamed1213();
2861 o.usage = buildUsage(); 2701 o.usage = buildUsage();
2862 o.visibility = buildVisibility(); 2702 o.visibility = buildVisibility();
2863 } 2703 }
2864 buildCounterService--; 2704 buildCounterService--;
2865 return o; 2705 return o;
2866 } 2706 }
2867 2707
2868 checkService(api.Service o) { 2708 checkService(api.Service o) {
2869 buildCounterService++; 2709 buildCounterService++;
2870 if (buildCounterService < 3) { 2710 if (buildCounterService < 3) {
2871 checkUnnamed1210(o.apis); 2711 checkUnnamed1206(o.apis);
2872 checkAuthentication(o.authentication); 2712 checkAuthentication(o.authentication);
2873 checkBackend(o.backend); 2713 checkBackend(o.backend);
2874 unittest.expect(o.configVersion, unittest.equals(42)); 2714 unittest.expect(o.configVersion, unittest.equals(42));
2875 checkContext(o.context); 2715 checkContext(o.context);
2876 checkControl(o.control); 2716 checkControl(o.control);
2877 checkCustomError(o.customError); 2717 checkCustomError(o.customError);
2878 checkDocumentation(o.documentation); 2718 checkDocumentation(o.documentation);
2879 checkUnnamed1211(o.endpoints); 2719 checkUnnamed1207(o.endpoints);
2880 checkUnnamed1212(o.enums); 2720 checkUnnamed1208(o.enums);
2881 checkExperimental(o.experimental); 2721 checkExperimental(o.experimental);
2882 checkHttp(o.http); 2722 checkHttp(o.http);
2883 unittest.expect(o.id, unittest.equals('foo')); 2723 unittest.expect(o.id, unittest.equals('foo'));
2884 checkLogging(o.logging); 2724 checkLogging(o.logging);
2885 checkUnnamed1213(o.logs); 2725 checkUnnamed1209(o.logs);
2886 checkUnnamed1214(o.metrics); 2726 checkUnnamed1210(o.metrics);
2887 checkUnnamed1215(o.monitoredResources); 2727 checkUnnamed1211(o.monitoredResources);
2888 checkMonitoring(o.monitoring); 2728 checkMonitoring(o.monitoring);
2889 unittest.expect(o.name, unittest.equals('foo')); 2729 unittest.expect(o.name, unittest.equals('foo'));
2890 unittest.expect(o.producerProjectId, unittest.equals('foo')); 2730 unittest.expect(o.producerProjectId, unittest.equals('foo'));
2891 checkQuota(o.quota); 2731 checkQuota(o.quota);
2892 checkSourceInfo(o.sourceInfo); 2732 checkSourceInfo(o.sourceInfo);
2893 checkSystemParameters(o.systemParameters); 2733 checkSystemParameters(o.systemParameters);
2894 checkUnnamed1216(o.systemTypes); 2734 checkUnnamed1212(o.systemTypes);
2895 unittest.expect(o.title, unittest.equals('foo')); 2735 unittest.expect(o.title, unittest.equals('foo'));
2896 checkUnnamed1217(o.types); 2736 checkUnnamed1213(o.types);
2897 checkUsage(o.usage); 2737 checkUsage(o.usage);
2898 checkVisibility(o.visibility); 2738 checkVisibility(o.visibility);
2899 } 2739 }
2900 buildCounterService--; 2740 buildCounterService--;
2901 } 2741 }
2902 2742
2903 core.int buildCounterSetIamPolicyRequest = 0; 2743 core.int buildCounterSetIamPolicyRequest = 0;
2904 buildSetIamPolicyRequest() { 2744 buildSetIamPolicyRequest() {
2905 var o = new api.SetIamPolicyRequest(); 2745 var o = new api.SetIamPolicyRequest();
2906 buildCounterSetIamPolicyRequest++; 2746 buildCounterSetIamPolicyRequest++;
(...skipping 26 matching lines...) Expand all
2933 } 2773 }
2934 2774
2935 checkSourceContext(api.SourceContext o) { 2775 checkSourceContext(api.SourceContext o) {
2936 buildCounterSourceContext++; 2776 buildCounterSourceContext++;
2937 if (buildCounterSourceContext < 3) { 2777 if (buildCounterSourceContext < 3) {
2938 unittest.expect(o.fileName, unittest.equals('foo')); 2778 unittest.expect(o.fileName, unittest.equals('foo'));
2939 } 2779 }
2940 buildCounterSourceContext--; 2780 buildCounterSourceContext--;
2941 } 2781 }
2942 2782
2943 buildUnnamed1218() { 2783 buildUnnamed1214() {
2944 var o = new core.Map<core.String, core.Object>(); 2784 var o = new core.Map<core.String, core.Object>();
2945 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2785 o["x"] = {
2946 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2786 'list': [1, 2, 3],
2787 'bool': true,
2788 'string': 'foo'
2789 };
2790 o["y"] = {
2791 'list': [1, 2, 3],
2792 'bool': true,
2793 'string': 'foo'
2794 };
2947 return o; 2795 return o;
2948 } 2796 }
2949 2797
2950 checkUnnamed1218(core.Map<core.String, core.Object> o) { 2798 checkUnnamed1214(core.Map<core.String, core.Object> o) {
2951 unittest.expect(o, unittest.hasLength(2)); 2799 unittest.expect(o, unittest.hasLength(2));
2952 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest .expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri ng"], unittest.equals('foo')); 2800 var casted11 = (o["x"]) as core.Map;
2953 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest .expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri ng"], unittest.equals('foo')); 2801 unittest.expect(casted11, unittest.hasLength(3));
2802 unittest.expect(casted11["list"], unittest.equals([1, 2, 3]));
2803 unittest.expect(casted11["bool"], unittest.equals(true));
2804 unittest.expect(casted11["string"], unittest.equals('foo'));
2805 var casted12 = (o["y"]) as core.Map;
2806 unittest.expect(casted12, unittest.hasLength(3));
2807 unittest.expect(casted12["list"], unittest.equals([1, 2, 3]));
2808 unittest.expect(casted12["bool"], unittest.equals(true));
2809 unittest.expect(casted12["string"], unittest.equals('foo'));
2954 } 2810 }
2955 2811
2956 buildUnnamed1219() { 2812 buildUnnamed1215() {
2957 var o = new core.List<core.Map<core.String, core.Object>>(); 2813 var o = new core.List<core.Map<core.String, core.Object>>();
2958 o.add(buildUnnamed1218()); 2814 o.add(buildUnnamed1214());
2959 o.add(buildUnnamed1218()); 2815 o.add(buildUnnamed1214());
2960 return o; 2816 return o;
2961 } 2817 }
2962 2818
2963 checkUnnamed1219(core.List<core.Map<core.String, core.Object>> o) { 2819 checkUnnamed1215(core.List<core.Map<core.String, core.Object>> o) {
2964 unittest.expect(o, unittest.hasLength(2)); 2820 unittest.expect(o, unittest.hasLength(2));
2965 checkUnnamed1218(o[0]); 2821 checkUnnamed1214(o[0]);
2966 checkUnnamed1218(o[1]); 2822 checkUnnamed1214(o[1]);
2967 } 2823 }
2968 2824
2969 core.int buildCounterSourceInfo = 0; 2825 core.int buildCounterSourceInfo = 0;
2970 buildSourceInfo() { 2826 buildSourceInfo() {
2971 var o = new api.SourceInfo(); 2827 var o = new api.SourceInfo();
2972 buildCounterSourceInfo++; 2828 buildCounterSourceInfo++;
2973 if (buildCounterSourceInfo < 3) { 2829 if (buildCounterSourceInfo < 3) {
2974 o.sourceFiles = buildUnnamed1219(); 2830 o.sourceFiles = buildUnnamed1215();
2975 } 2831 }
2976 buildCounterSourceInfo--; 2832 buildCounterSourceInfo--;
2977 return o; 2833 return o;
2978 } 2834 }
2979 2835
2980 checkSourceInfo(api.SourceInfo o) { 2836 checkSourceInfo(api.SourceInfo o) {
2981 buildCounterSourceInfo++; 2837 buildCounterSourceInfo++;
2982 if (buildCounterSourceInfo < 3) { 2838 if (buildCounterSourceInfo < 3) {
2983 checkUnnamed1219(o.sourceFiles); 2839 checkUnnamed1215(o.sourceFiles);
2984 } 2840 }
2985 buildCounterSourceInfo--; 2841 buildCounterSourceInfo--;
2986 } 2842 }
2987 2843
2988 buildUnnamed1220() { 2844 buildUnnamed1216() {
2989 var o = new core.Map<core.String, core.Object>(); 2845 var o = new core.Map<core.String, core.Object>();
2990 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2846 o["x"] = {
2991 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2847 'list': [1, 2, 3],
2848 'bool': true,
2849 'string': 'foo'
2850 };
2851 o["y"] = {
2852 'list': [1, 2, 3],
2853 'bool': true,
2854 'string': 'foo'
2855 };
2992 return o; 2856 return o;
2993 } 2857 }
2994 2858
2995 checkUnnamed1220(core.Map<core.String, core.Object> o) { 2859 checkUnnamed1216(core.Map<core.String, core.Object> o) {
2996 unittest.expect(o, unittest.hasLength(2)); 2860 unittest.expect(o, unittest.hasLength(2));
2997 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest .expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri ng"], unittest.equals('foo')); 2861 var casted13 = (o["x"]) as core.Map;
2998 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest .expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri ng"], unittest.equals('foo')); 2862 unittest.expect(casted13, unittest.hasLength(3));
2863 unittest.expect(casted13["list"], unittest.equals([1, 2, 3]));
2864 unittest.expect(casted13["bool"], unittest.equals(true));
2865 unittest.expect(casted13["string"], unittest.equals('foo'));
2866 var casted14 = (o["y"]) as core.Map;
2867 unittest.expect(casted14, unittest.hasLength(3));
2868 unittest.expect(casted14["list"], unittest.equals([1, 2, 3]));
2869 unittest.expect(casted14["bool"], unittest.equals(true));
2870 unittest.expect(casted14["string"], unittest.equals('foo'));
2999 } 2871 }
3000 2872
3001 buildUnnamed1221() { 2873 buildUnnamed1217() {
3002 var o = new core.List<core.Map<core.String, core.Object>>(); 2874 var o = new core.List<core.Map<core.String, core.Object>>();
3003 o.add(buildUnnamed1220()); 2875 o.add(buildUnnamed1216());
3004 o.add(buildUnnamed1220()); 2876 o.add(buildUnnamed1216());
3005 return o; 2877 return o;
3006 } 2878 }
3007 2879
3008 checkUnnamed1221(core.List<core.Map<core.String, core.Object>> o) { 2880 checkUnnamed1217(core.List<core.Map<core.String, core.Object>> o) {
3009 unittest.expect(o, unittest.hasLength(2)); 2881 unittest.expect(o, unittest.hasLength(2));
3010 checkUnnamed1220(o[0]); 2882 checkUnnamed1216(o[0]);
3011 checkUnnamed1220(o[1]); 2883 checkUnnamed1216(o[1]);
3012 } 2884 }
3013 2885
3014 core.int buildCounterStatus = 0; 2886 core.int buildCounterStatus = 0;
3015 buildStatus() { 2887 buildStatus() {
3016 var o = new api.Status(); 2888 var o = new api.Status();
3017 buildCounterStatus++; 2889 buildCounterStatus++;
3018 if (buildCounterStatus < 3) { 2890 if (buildCounterStatus < 3) {
3019 o.code = 42; 2891 o.code = 42;
3020 o.details = buildUnnamed1221(); 2892 o.details = buildUnnamed1217();
3021 o.message = "foo"; 2893 o.message = "foo";
3022 } 2894 }
3023 buildCounterStatus--; 2895 buildCounterStatus--;
3024 return o; 2896 return o;
3025 } 2897 }
3026 2898
3027 checkStatus(api.Status o) { 2899 checkStatus(api.Status o) {
3028 buildCounterStatus++; 2900 buildCounterStatus++;
3029 if (buildCounterStatus < 3) { 2901 if (buildCounterStatus < 3) {
3030 unittest.expect(o.code, unittest.equals(42)); 2902 unittest.expect(o.code, unittest.equals(42));
3031 checkUnnamed1221(o.details); 2903 checkUnnamed1217(o.details);
3032 unittest.expect(o.message, unittest.equals('foo')); 2904 unittest.expect(o.message, unittest.equals('foo'));
3033 } 2905 }
3034 buildCounterStatus--; 2906 buildCounterStatus--;
3035 } 2907 }
3036 2908
3037 core.int buildCounterStep = 0; 2909 core.int buildCounterStep = 0;
3038 buildStep() { 2910 buildStep() {
3039 var o = new api.Step(); 2911 var o = new api.Step();
3040 buildCounterStep++; 2912 buildCounterStep++;
3041 if (buildCounterStep < 3) { 2913 if (buildCounterStep < 3) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3111 checkSystemParameter(api.SystemParameter o) { 2983 checkSystemParameter(api.SystemParameter o) {
3112 buildCounterSystemParameter++; 2984 buildCounterSystemParameter++;
3113 if (buildCounterSystemParameter < 3) { 2985 if (buildCounterSystemParameter < 3) {
3114 unittest.expect(o.httpHeader, unittest.equals('foo')); 2986 unittest.expect(o.httpHeader, unittest.equals('foo'));
3115 unittest.expect(o.name, unittest.equals('foo')); 2987 unittest.expect(o.name, unittest.equals('foo'));
3116 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); 2988 unittest.expect(o.urlQueryParameter, unittest.equals('foo'));
3117 } 2989 }
3118 buildCounterSystemParameter--; 2990 buildCounterSystemParameter--;
3119 } 2991 }
3120 2992
3121 buildUnnamed1222() { 2993 buildUnnamed1218() {
3122 var o = new core.List<api.SystemParameter>(); 2994 var o = new core.List<api.SystemParameter>();
3123 o.add(buildSystemParameter()); 2995 o.add(buildSystemParameter());
3124 o.add(buildSystemParameter()); 2996 o.add(buildSystemParameter());
3125 return o; 2997 return o;
3126 } 2998 }
3127 2999
3128 checkUnnamed1222(core.List<api.SystemParameter> o) { 3000 checkUnnamed1218(core.List<api.SystemParameter> o) {
3129 unittest.expect(o, unittest.hasLength(2)); 3001 unittest.expect(o, unittest.hasLength(2));
3130 checkSystemParameter(o[0]); 3002 checkSystemParameter(o[0]);
3131 checkSystemParameter(o[1]); 3003 checkSystemParameter(o[1]);
3132 } 3004 }
3133 3005
3134 core.int buildCounterSystemParameterRule = 0; 3006 core.int buildCounterSystemParameterRule = 0;
3135 buildSystemParameterRule() { 3007 buildSystemParameterRule() {
3136 var o = new api.SystemParameterRule(); 3008 var o = new api.SystemParameterRule();
3137 buildCounterSystemParameterRule++; 3009 buildCounterSystemParameterRule++;
3138 if (buildCounterSystemParameterRule < 3) { 3010 if (buildCounterSystemParameterRule < 3) {
3139 o.parameters = buildUnnamed1222(); 3011 o.parameters = buildUnnamed1218();
3140 o.selector = "foo"; 3012 o.selector = "foo";
3141 } 3013 }
3142 buildCounterSystemParameterRule--; 3014 buildCounterSystemParameterRule--;
3143 return o; 3015 return o;
3144 } 3016 }
3145 3017
3146 checkSystemParameterRule(api.SystemParameterRule o) { 3018 checkSystemParameterRule(api.SystemParameterRule o) {
3147 buildCounterSystemParameterRule++; 3019 buildCounterSystemParameterRule++;
3148 if (buildCounterSystemParameterRule < 3) { 3020 if (buildCounterSystemParameterRule < 3) {
3149 checkUnnamed1222(o.parameters); 3021 checkUnnamed1218(o.parameters);
3150 unittest.expect(o.selector, unittest.equals('foo')); 3022 unittest.expect(o.selector, unittest.equals('foo'));
3151 } 3023 }
3152 buildCounterSystemParameterRule--; 3024 buildCounterSystemParameterRule--;
3153 } 3025 }
3154 3026
3155 buildUnnamed1223() { 3027 buildUnnamed1219() {
3156 var o = new core.List<api.SystemParameterRule>(); 3028 var o = new core.List<api.SystemParameterRule>();
3157 o.add(buildSystemParameterRule()); 3029 o.add(buildSystemParameterRule());
3158 o.add(buildSystemParameterRule()); 3030 o.add(buildSystemParameterRule());
3159 return o; 3031 return o;
3160 } 3032 }
3161 3033
3162 checkUnnamed1223(core.List<api.SystemParameterRule> o) { 3034 checkUnnamed1219(core.List<api.SystemParameterRule> o) {
3163 unittest.expect(o, unittest.hasLength(2)); 3035 unittest.expect(o, unittest.hasLength(2));
3164 checkSystemParameterRule(o[0]); 3036 checkSystemParameterRule(o[0]);
3165 checkSystemParameterRule(o[1]); 3037 checkSystemParameterRule(o[1]);
3166 } 3038 }
3167 3039
3168 core.int buildCounterSystemParameters = 0; 3040 core.int buildCounterSystemParameters = 0;
3169 buildSystemParameters() { 3041 buildSystemParameters() {
3170 var o = new api.SystemParameters(); 3042 var o = new api.SystemParameters();
3171 buildCounterSystemParameters++; 3043 buildCounterSystemParameters++;
3172 if (buildCounterSystemParameters < 3) { 3044 if (buildCounterSystemParameters < 3) {
3173 o.rules = buildUnnamed1223(); 3045 o.rules = buildUnnamed1219();
3174 } 3046 }
3175 buildCounterSystemParameters--; 3047 buildCounterSystemParameters--;
3176 return o; 3048 return o;
3177 } 3049 }
3178 3050
3179 checkSystemParameters(api.SystemParameters o) { 3051 checkSystemParameters(api.SystemParameters o) {
3180 buildCounterSystemParameters++; 3052 buildCounterSystemParameters++;
3181 if (buildCounterSystemParameters < 3) { 3053 if (buildCounterSystemParameters < 3) {
3182 checkUnnamed1223(o.rules); 3054 checkUnnamed1219(o.rules);
3183 } 3055 }
3184 buildCounterSystemParameters--; 3056 buildCounterSystemParameters--;
3185 } 3057 }
3186 3058
3187 buildUnnamed1224() { 3059 buildUnnamed1220() {
3188 var o = new core.List<core.String>(); 3060 var o = new core.List<core.String>();
3189 o.add("foo"); 3061 o.add("foo");
3190 o.add("foo"); 3062 o.add("foo");
3191 return o; 3063 return o;
3192 } 3064 }
3193 3065
3194 checkUnnamed1224(core.List<core.String> o) { 3066 checkUnnamed1220(core.List<core.String> o) {
3195 unittest.expect(o, unittest.hasLength(2)); 3067 unittest.expect(o, unittest.hasLength(2));
3196 unittest.expect(o[0], unittest.equals('foo')); 3068 unittest.expect(o[0], unittest.equals('foo'));
3197 unittest.expect(o[1], unittest.equals('foo')); 3069 unittest.expect(o[1], unittest.equals('foo'));
3198 } 3070 }
3199 3071
3200 core.int buildCounterTestIamPermissionsRequest = 0; 3072 core.int buildCounterTestIamPermissionsRequest = 0;
3201 buildTestIamPermissionsRequest() { 3073 buildTestIamPermissionsRequest() {
3202 var o = new api.TestIamPermissionsRequest(); 3074 var o = new api.TestIamPermissionsRequest();
3203 buildCounterTestIamPermissionsRequest++; 3075 buildCounterTestIamPermissionsRequest++;
3204 if (buildCounterTestIamPermissionsRequest < 3) { 3076 if (buildCounterTestIamPermissionsRequest < 3) {
3205 o.permissions = buildUnnamed1224(); 3077 o.permissions = buildUnnamed1220();
3206 } 3078 }
3207 buildCounterTestIamPermissionsRequest--; 3079 buildCounterTestIamPermissionsRequest--;
3208 return o; 3080 return o;
3209 } 3081 }
3210 3082
3211 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 3083 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
3212 buildCounterTestIamPermissionsRequest++; 3084 buildCounterTestIamPermissionsRequest++;
3213 if (buildCounterTestIamPermissionsRequest < 3) { 3085 if (buildCounterTestIamPermissionsRequest < 3) {
3214 checkUnnamed1224(o.permissions); 3086 checkUnnamed1220(o.permissions);
3215 } 3087 }
3216 buildCounterTestIamPermissionsRequest--; 3088 buildCounterTestIamPermissionsRequest--;
3217 } 3089 }
3218 3090
3219 buildUnnamed1225() { 3091 buildUnnamed1221() {
3220 var o = new core.List<core.String>(); 3092 var o = new core.List<core.String>();
3221 o.add("foo"); 3093 o.add("foo");
3222 o.add("foo"); 3094 o.add("foo");
3223 return o; 3095 return o;
3224 } 3096 }
3225 3097
3226 checkUnnamed1225(core.List<core.String> o) { 3098 checkUnnamed1221(core.List<core.String> o) {
3227 unittest.expect(o, unittest.hasLength(2)); 3099 unittest.expect(o, unittest.hasLength(2));
3228 unittest.expect(o[0], unittest.equals('foo')); 3100 unittest.expect(o[0], unittest.equals('foo'));
3229 unittest.expect(o[1], unittest.equals('foo')); 3101 unittest.expect(o[1], unittest.equals('foo'));
3230 } 3102 }
3231 3103
3232 core.int buildCounterTestIamPermissionsResponse = 0; 3104 core.int buildCounterTestIamPermissionsResponse = 0;
3233 buildTestIamPermissionsResponse() { 3105 buildTestIamPermissionsResponse() {
3234 var o = new api.TestIamPermissionsResponse(); 3106 var o = new api.TestIamPermissionsResponse();
3235 buildCounterTestIamPermissionsResponse++; 3107 buildCounterTestIamPermissionsResponse++;
3236 if (buildCounterTestIamPermissionsResponse < 3) { 3108 if (buildCounterTestIamPermissionsResponse < 3) {
3237 o.permissions = buildUnnamed1225(); 3109 o.permissions = buildUnnamed1221();
3238 } 3110 }
3239 buildCounterTestIamPermissionsResponse--; 3111 buildCounterTestIamPermissionsResponse--;
3240 return o; 3112 return o;
3241 } 3113 }
3242 3114
3243 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 3115 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
3244 buildCounterTestIamPermissionsResponse++; 3116 buildCounterTestIamPermissionsResponse++;
3245 if (buildCounterTestIamPermissionsResponse < 3) { 3117 if (buildCounterTestIamPermissionsResponse < 3) {
3246 checkUnnamed1225(o.permissions); 3118 checkUnnamed1221(o.permissions);
3247 } 3119 }
3248 buildCounterTestIamPermissionsResponse--; 3120 buildCounterTestIamPermissionsResponse--;
3249 } 3121 }
3250 3122
3251 buildUnnamed1226() { 3123 buildUnnamed1222() {
3252 var o = new core.Map<core.String, core.double>(); 3124 var o = new core.Map<core.String, core.double>();
3253 o["x"] = 42.0; 3125 o["x"] = 42.0;
3254 o["y"] = 42.0; 3126 o["y"] = 42.0;
3255 return o; 3127 return o;
3256 } 3128 }
3257 3129
3258 checkUnnamed1226(core.Map<core.String, core.double> o) { 3130 checkUnnamed1222(core.Map<core.String, core.double> o) {
3259 unittest.expect(o, unittest.hasLength(2)); 3131 unittest.expect(o, unittest.hasLength(2));
3260 unittest.expect(o["x"], unittest.equals(42.0)); 3132 unittest.expect(o["x"], unittest.equals(42.0));
3261 unittest.expect(o["y"], unittest.equals(42.0)); 3133 unittest.expect(o["y"], unittest.equals(42.0));
3262 } 3134 }
3263 3135
3264 core.int buildCounterTrafficPercentStrategy = 0; 3136 core.int buildCounterTrafficPercentStrategy = 0;
3265 buildTrafficPercentStrategy() { 3137 buildTrafficPercentStrategy() {
3266 var o = new api.TrafficPercentStrategy(); 3138 var o = new api.TrafficPercentStrategy();
3267 buildCounterTrafficPercentStrategy++; 3139 buildCounterTrafficPercentStrategy++;
3268 if (buildCounterTrafficPercentStrategy < 3) { 3140 if (buildCounterTrafficPercentStrategy < 3) {
3269 o.percentages = buildUnnamed1226(); 3141 o.percentages = buildUnnamed1222();
3270 } 3142 }
3271 buildCounterTrafficPercentStrategy--; 3143 buildCounterTrafficPercentStrategy--;
3272 return o; 3144 return o;
3273 } 3145 }
3274 3146
3275 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { 3147 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) {
3276 buildCounterTrafficPercentStrategy++; 3148 buildCounterTrafficPercentStrategy++;
3277 if (buildCounterTrafficPercentStrategy < 3) { 3149 if (buildCounterTrafficPercentStrategy < 3) {
3278 checkUnnamed1226(o.percentages); 3150 checkUnnamed1222(o.percentages);
3279 } 3151 }
3280 buildCounterTrafficPercentStrategy--; 3152 buildCounterTrafficPercentStrategy--;
3281 } 3153 }
3282 3154
3283 buildUnnamed1227() { 3155 buildUnnamed1223() {
3284 var o = new core.List<api.Field>(); 3156 var o = new core.List<api.Field>();
3285 o.add(buildField()); 3157 o.add(buildField());
3286 o.add(buildField()); 3158 o.add(buildField());
3287 return o; 3159 return o;
3288 } 3160 }
3289 3161
3290 checkUnnamed1227(core.List<api.Field> o) { 3162 checkUnnamed1223(core.List<api.Field> o) {
3291 unittest.expect(o, unittest.hasLength(2)); 3163 unittest.expect(o, unittest.hasLength(2));
3292 checkField(o[0]); 3164 checkField(o[0]);
3293 checkField(o[1]); 3165 checkField(o[1]);
3294 } 3166 }
3295 3167
3296 buildUnnamed1228() { 3168 buildUnnamed1224() {
3297 var o = new core.List<core.String>(); 3169 var o = new core.List<core.String>();
3298 o.add("foo"); 3170 o.add("foo");
3299 o.add("foo"); 3171 o.add("foo");
3300 return o; 3172 return o;
3301 } 3173 }
3302 3174
3303 checkUnnamed1228(core.List<core.String> o) { 3175 checkUnnamed1224(core.List<core.String> o) {
3304 unittest.expect(o, unittest.hasLength(2)); 3176 unittest.expect(o, unittest.hasLength(2));
3305 unittest.expect(o[0], unittest.equals('foo')); 3177 unittest.expect(o[0], unittest.equals('foo'));
3306 unittest.expect(o[1], unittest.equals('foo')); 3178 unittest.expect(o[1], unittest.equals('foo'));
3307 } 3179 }
3308 3180
3309 buildUnnamed1229() { 3181 buildUnnamed1225() {
3310 var o = new core.List<api.Option>(); 3182 var o = new core.List<api.Option>();
3311 o.add(buildOption()); 3183 o.add(buildOption());
3312 o.add(buildOption()); 3184 o.add(buildOption());
3313 return o; 3185 return o;
3314 } 3186 }
3315 3187
3316 checkUnnamed1229(core.List<api.Option> o) { 3188 checkUnnamed1225(core.List<api.Option> o) {
3317 unittest.expect(o, unittest.hasLength(2)); 3189 unittest.expect(o, unittest.hasLength(2));
3318 checkOption(o[0]); 3190 checkOption(o[0]);
3319 checkOption(o[1]); 3191 checkOption(o[1]);
3320 } 3192 }
3321 3193
3322 core.int buildCounterType = 0; 3194 core.int buildCounterType = 0;
3323 buildType() { 3195 buildType() {
3324 var o = new api.Type(); 3196 var o = new api.Type();
3325 buildCounterType++; 3197 buildCounterType++;
3326 if (buildCounterType < 3) { 3198 if (buildCounterType < 3) {
3327 o.fields = buildUnnamed1227(); 3199 o.fields = buildUnnamed1223();
3328 o.name = "foo"; 3200 o.name = "foo";
3329 o.oneofs = buildUnnamed1228(); 3201 o.oneofs = buildUnnamed1224();
3330 o.options = buildUnnamed1229(); 3202 o.options = buildUnnamed1225();
3331 o.sourceContext = buildSourceContext(); 3203 o.sourceContext = buildSourceContext();
3332 o.syntax = "foo"; 3204 o.syntax = "foo";
3333 } 3205 }
3334 buildCounterType--; 3206 buildCounterType--;
3335 return o; 3207 return o;
3336 } 3208 }
3337 3209
3338 checkType(api.Type o) { 3210 checkType(api.Type o) {
3339 buildCounterType++; 3211 buildCounterType++;
3340 if (buildCounterType < 3) { 3212 if (buildCounterType < 3) {
3341 checkUnnamed1227(o.fields); 3213 checkUnnamed1223(o.fields);
3342 unittest.expect(o.name, unittest.equals('foo')); 3214 unittest.expect(o.name, unittest.equals('foo'));
3343 checkUnnamed1228(o.oneofs); 3215 checkUnnamed1224(o.oneofs);
3344 checkUnnamed1229(o.options); 3216 checkUnnamed1225(o.options);
3345 checkSourceContext(o.sourceContext); 3217 checkSourceContext(o.sourceContext);
3346 unittest.expect(o.syntax, unittest.equals('foo')); 3218 unittest.expect(o.syntax, unittest.equals('foo'));
3347 } 3219 }
3348 buildCounterType--; 3220 buildCounterType--;
3349 } 3221 }
3350 3222
3351 core.int buildCounterUndeleteServiceResponse = 0; 3223 core.int buildCounterUndeleteServiceResponse = 0;
3352 buildUndeleteServiceResponse() { 3224 buildUndeleteServiceResponse() {
3353 var o = new api.UndeleteServiceResponse(); 3225 var o = new api.UndeleteServiceResponse();
3354 buildCounterUndeleteServiceResponse++; 3226 buildCounterUndeleteServiceResponse++;
3355 if (buildCounterUndeleteServiceResponse < 3) { 3227 if (buildCounterUndeleteServiceResponse < 3) {
3356 o.service = buildManagedService(); 3228 o.service = buildManagedService();
3357 } 3229 }
3358 buildCounterUndeleteServiceResponse--; 3230 buildCounterUndeleteServiceResponse--;
3359 return o; 3231 return o;
3360 } 3232 }
3361 3233
3362 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { 3234 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) {
3363 buildCounterUndeleteServiceResponse++; 3235 buildCounterUndeleteServiceResponse++;
3364 if (buildCounterUndeleteServiceResponse < 3) { 3236 if (buildCounterUndeleteServiceResponse < 3) {
3365 checkManagedService(o.service); 3237 checkManagedService(o.service);
3366 } 3238 }
3367 buildCounterUndeleteServiceResponse--; 3239 buildCounterUndeleteServiceResponse--;
3368 } 3240 }
3369 3241
3370 buildUnnamed1230() { 3242 buildUnnamed1226() {
3371 var o = new core.List<core.String>(); 3243 var o = new core.List<core.String>();
3372 o.add("foo"); 3244 o.add("foo");
3373 o.add("foo"); 3245 o.add("foo");
3374 return o; 3246 return o;
3375 } 3247 }
3376 3248
3377 checkUnnamed1230(core.List<core.String> o) { 3249 checkUnnamed1226(core.List<core.String> o) {
3378 unittest.expect(o, unittest.hasLength(2)); 3250 unittest.expect(o, unittest.hasLength(2));
3379 unittest.expect(o[0], unittest.equals('foo')); 3251 unittest.expect(o[0], unittest.equals('foo'));
3380 unittest.expect(o[1], unittest.equals('foo')); 3252 unittest.expect(o[1], unittest.equals('foo'));
3381 } 3253 }
3382 3254
3383 buildUnnamed1231() { 3255 buildUnnamed1227() {
3384 var o = new core.List<api.UsageRule>(); 3256 var o = new core.List<api.UsageRule>();
3385 o.add(buildUsageRule()); 3257 o.add(buildUsageRule());
3386 o.add(buildUsageRule()); 3258 o.add(buildUsageRule());
3387 return o; 3259 return o;
3388 } 3260 }
3389 3261
3390 checkUnnamed1231(core.List<api.UsageRule> o) { 3262 checkUnnamed1227(core.List<api.UsageRule> o) {
3391 unittest.expect(o, unittest.hasLength(2)); 3263 unittest.expect(o, unittest.hasLength(2));
3392 checkUsageRule(o[0]); 3264 checkUsageRule(o[0]);
3393 checkUsageRule(o[1]); 3265 checkUsageRule(o[1]);
3394 } 3266 }
3395 3267
3396 core.int buildCounterUsage = 0; 3268 core.int buildCounterUsage = 0;
3397 buildUsage() { 3269 buildUsage() {
3398 var o = new api.Usage(); 3270 var o = new api.Usage();
3399 buildCounterUsage++; 3271 buildCounterUsage++;
3400 if (buildCounterUsage < 3) { 3272 if (buildCounterUsage < 3) {
3401 o.producerNotificationChannel = "foo"; 3273 o.producerNotificationChannel = "foo";
3402 o.requirements = buildUnnamed1230(); 3274 o.requirements = buildUnnamed1226();
3403 o.rules = buildUnnamed1231(); 3275 o.rules = buildUnnamed1227();
3404 } 3276 }
3405 buildCounterUsage--; 3277 buildCounterUsage--;
3406 return o; 3278 return o;
3407 } 3279 }
3408 3280
3409 checkUsage(api.Usage o) { 3281 checkUsage(api.Usage o) {
3410 buildCounterUsage++; 3282 buildCounterUsage++;
3411 if (buildCounterUsage < 3) { 3283 if (buildCounterUsage < 3) {
3412 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); 3284 unittest.expect(o.producerNotificationChannel, unittest.equals('foo'));
3413 checkUnnamed1230(o.requirements); 3285 checkUnnamed1226(o.requirements);
3414 checkUnnamed1231(o.rules); 3286 checkUnnamed1227(o.rules);
3415 } 3287 }
3416 buildCounterUsage--; 3288 buildCounterUsage--;
3417 } 3289 }
3418 3290
3419 core.int buildCounterUsageRule = 0; 3291 core.int buildCounterUsageRule = 0;
3420 buildUsageRule() { 3292 buildUsageRule() {
3421 var o = new api.UsageRule(); 3293 var o = new api.UsageRule();
3422 buildCounterUsageRule++; 3294 buildCounterUsageRule++;
3423 if (buildCounterUsageRule < 3) { 3295 if (buildCounterUsageRule < 3) {
3424 o.allowUnregisteredCalls = true; 3296 o.allowUnregisteredCalls = true;
3425 o.selector = "foo"; 3297 o.selector = "foo";
3426 o.skipServiceControl = true; 3298 o.skipServiceControl = true;
3427 } 3299 }
3428 buildCounterUsageRule--; 3300 buildCounterUsageRule--;
3429 return o; 3301 return o;
3430 } 3302 }
3431 3303
3432 checkUsageRule(api.UsageRule o) { 3304 checkUsageRule(api.UsageRule o) {
3433 buildCounterUsageRule++; 3305 buildCounterUsageRule++;
3434 if (buildCounterUsageRule < 3) { 3306 if (buildCounterUsageRule < 3) {
3435 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); 3307 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue);
3436 unittest.expect(o.selector, unittest.equals('foo')); 3308 unittest.expect(o.selector, unittest.equals('foo'));
3437 unittest.expect(o.skipServiceControl, unittest.isTrue); 3309 unittest.expect(o.skipServiceControl, unittest.isTrue);
3438 } 3310 }
3439 buildCounterUsageRule--; 3311 buildCounterUsageRule--;
3440 } 3312 }
3441 3313
3442 buildUnnamed1232() { 3314 buildUnnamed1228() {
3443 var o = new core.List<api.VisibilityRule>(); 3315 var o = new core.List<api.VisibilityRule>();
3444 o.add(buildVisibilityRule()); 3316 o.add(buildVisibilityRule());
3445 o.add(buildVisibilityRule()); 3317 o.add(buildVisibilityRule());
3446 return o; 3318 return o;
3447 } 3319 }
3448 3320
3449 checkUnnamed1232(core.List<api.VisibilityRule> o) { 3321 checkUnnamed1228(core.List<api.VisibilityRule> o) {
3450 unittest.expect(o, unittest.hasLength(2)); 3322 unittest.expect(o, unittest.hasLength(2));
3451 checkVisibilityRule(o[0]); 3323 checkVisibilityRule(o[0]);
3452 checkVisibilityRule(o[1]); 3324 checkVisibilityRule(o[1]);
3453 } 3325 }
3454 3326
3455 core.int buildCounterVisibility = 0; 3327 core.int buildCounterVisibility = 0;
3456 buildVisibility() { 3328 buildVisibility() {
3457 var o = new api.Visibility(); 3329 var o = new api.Visibility();
3458 buildCounterVisibility++; 3330 buildCounterVisibility++;
3459 if (buildCounterVisibility < 3) { 3331 if (buildCounterVisibility < 3) {
3460 o.rules = buildUnnamed1232(); 3332 o.rules = buildUnnamed1228();
3461 } 3333 }
3462 buildCounterVisibility--; 3334 buildCounterVisibility--;
3463 return o; 3335 return o;
3464 } 3336 }
3465 3337
3466 checkVisibility(api.Visibility o) { 3338 checkVisibility(api.Visibility o) {
3467 buildCounterVisibility++; 3339 buildCounterVisibility++;
3468 if (buildCounterVisibility < 3) { 3340 if (buildCounterVisibility < 3) {
3469 checkUnnamed1232(o.rules); 3341 checkUnnamed1228(o.rules);
3470 } 3342 }
3471 buildCounterVisibility--; 3343 buildCounterVisibility--;
3472 } 3344 }
3473 3345
3474 core.int buildCounterVisibilityRule = 0; 3346 core.int buildCounterVisibilityRule = 0;
3475 buildVisibilityRule() { 3347 buildVisibilityRule() {
3476 var o = new api.VisibilityRule(); 3348 var o = new api.VisibilityRule();
3477 buildCounterVisibilityRule++; 3349 buildCounterVisibilityRule++;
3478 if (buildCounterVisibilityRule < 3) { 3350 if (buildCounterVisibilityRule < 3) {
3479 o.restriction = "foo"; 3351 o.restriction = "foo";
3480 o.selector = "foo"; 3352 o.selector = "foo";
3481 } 3353 }
3482 buildCounterVisibilityRule--; 3354 buildCounterVisibilityRule--;
3483 return o; 3355 return o;
3484 } 3356 }
3485 3357
3486 checkVisibilityRule(api.VisibilityRule o) { 3358 checkVisibilityRule(api.VisibilityRule o) {
3487 buildCounterVisibilityRule++; 3359 buildCounterVisibilityRule++;
3488 if (buildCounterVisibilityRule < 3) { 3360 if (buildCounterVisibilityRule < 3) {
3489 unittest.expect(o.restriction, unittest.equals('foo')); 3361 unittest.expect(o.restriction, unittest.equals('foo'));
3490 unittest.expect(o.selector, unittest.equals('foo')); 3362 unittest.expect(o.selector, unittest.equals('foo'));
3491 } 3363 }
3492 buildCounterVisibilityRule--; 3364 buildCounterVisibilityRule--;
3493 } 3365 }
3494 3366
3495
3496 main() { 3367 main() {
3497 unittest.group("obj-schema-Advice", () { 3368 unittest.group("obj-schema-Advice", () {
3498 unittest.test("to-json--from-json", () { 3369 unittest.test("to-json--from-json", () {
3499 var o = buildAdvice(); 3370 var o = buildAdvice();
3500 var od = new api.Advice.fromJson(o.toJson()); 3371 var od = new api.Advice.fromJson(o.toJson());
3501 checkAdvice(od); 3372 checkAdvice(od);
3502 }); 3373 });
3503 }); 3374 });
3504 3375
3505
3506 unittest.group("obj-schema-Api", () { 3376 unittest.group("obj-schema-Api", () {
3507 unittest.test("to-json--from-json", () { 3377 unittest.test("to-json--from-json", () {
3508 var o = buildApi(); 3378 var o = buildApi();
3509 var od = new api.Api.fromJson(o.toJson()); 3379 var od = new api.Api.fromJson(o.toJson());
3510 checkApi(od); 3380 checkApi(od);
3511 }); 3381 });
3512 }); 3382 });
3513 3383
3514
3515 unittest.group("obj-schema-AuditConfig", () { 3384 unittest.group("obj-schema-AuditConfig", () {
3516 unittest.test("to-json--from-json", () { 3385 unittest.test("to-json--from-json", () {
3517 var o = buildAuditConfig(); 3386 var o = buildAuditConfig();
3518 var od = new api.AuditConfig.fromJson(o.toJson()); 3387 var od = new api.AuditConfig.fromJson(o.toJson());
3519 checkAuditConfig(od); 3388 checkAuditConfig(od);
3520 }); 3389 });
3521 }); 3390 });
3522 3391
3523
3524 unittest.group("obj-schema-AuditLogConfig", () { 3392 unittest.group("obj-schema-AuditLogConfig", () {
3525 unittest.test("to-json--from-json", () { 3393 unittest.test("to-json--from-json", () {
3526 var o = buildAuditLogConfig(); 3394 var o = buildAuditLogConfig();
3527 var od = new api.AuditLogConfig.fromJson(o.toJson()); 3395 var od = new api.AuditLogConfig.fromJson(o.toJson());
3528 checkAuditLogConfig(od); 3396 checkAuditLogConfig(od);
3529 }); 3397 });
3530 }); 3398 });
3531 3399
3532
3533 unittest.group("obj-schema-AuthProvider", () { 3400 unittest.group("obj-schema-AuthProvider", () {
3534 unittest.test("to-json--from-json", () { 3401 unittest.test("to-json--from-json", () {
3535 var o = buildAuthProvider(); 3402 var o = buildAuthProvider();
3536 var od = new api.AuthProvider.fromJson(o.toJson()); 3403 var od = new api.AuthProvider.fromJson(o.toJson());
3537 checkAuthProvider(od); 3404 checkAuthProvider(od);
3538 }); 3405 });
3539 }); 3406 });
3540 3407
3541
3542 unittest.group("obj-schema-AuthRequirement", () { 3408 unittest.group("obj-schema-AuthRequirement", () {
3543 unittest.test("to-json--from-json", () { 3409 unittest.test("to-json--from-json", () {
3544 var o = buildAuthRequirement(); 3410 var o = buildAuthRequirement();
3545 var od = new api.AuthRequirement.fromJson(o.toJson()); 3411 var od = new api.AuthRequirement.fromJson(o.toJson());
3546 checkAuthRequirement(od); 3412 checkAuthRequirement(od);
3547 }); 3413 });
3548 }); 3414 });
3549 3415
3550
3551 unittest.group("obj-schema-Authentication", () { 3416 unittest.group("obj-schema-Authentication", () {
3552 unittest.test("to-json--from-json", () { 3417 unittest.test("to-json--from-json", () {
3553 var o = buildAuthentication(); 3418 var o = buildAuthentication();
3554 var od = new api.Authentication.fromJson(o.toJson()); 3419 var od = new api.Authentication.fromJson(o.toJson());
3555 checkAuthentication(od); 3420 checkAuthentication(od);
3556 }); 3421 });
3557 }); 3422 });
3558 3423
3559
3560 unittest.group("obj-schema-AuthenticationRule", () { 3424 unittest.group("obj-schema-AuthenticationRule", () {
3561 unittest.test("to-json--from-json", () { 3425 unittest.test("to-json--from-json", () {
3562 var o = buildAuthenticationRule(); 3426 var o = buildAuthenticationRule();
3563 var od = new api.AuthenticationRule.fromJson(o.toJson()); 3427 var od = new api.AuthenticationRule.fromJson(o.toJson());
3564 checkAuthenticationRule(od); 3428 checkAuthenticationRule(od);
3565 }); 3429 });
3566 }); 3430 });
3567 3431
3568
3569 unittest.group("obj-schema-AuthorizationConfig", () { 3432 unittest.group("obj-schema-AuthorizationConfig", () {
3570 unittest.test("to-json--from-json", () { 3433 unittest.test("to-json--from-json", () {
3571 var o = buildAuthorizationConfig(); 3434 var o = buildAuthorizationConfig();
3572 var od = new api.AuthorizationConfig.fromJson(o.toJson()); 3435 var od = new api.AuthorizationConfig.fromJson(o.toJson());
3573 checkAuthorizationConfig(od); 3436 checkAuthorizationConfig(od);
3574 }); 3437 });
3575 }); 3438 });
3576 3439
3577
3578 unittest.group("obj-schema-Backend", () { 3440 unittest.group("obj-schema-Backend", () {
3579 unittest.test("to-json--from-json", () { 3441 unittest.test("to-json--from-json", () {
3580 var o = buildBackend(); 3442 var o = buildBackend();
3581 var od = new api.Backend.fromJson(o.toJson()); 3443 var od = new api.Backend.fromJson(o.toJson());
3582 checkBackend(od); 3444 checkBackend(od);
3583 }); 3445 });
3584 }); 3446 });
3585 3447
3586
3587 unittest.group("obj-schema-BackendRule", () { 3448 unittest.group("obj-schema-BackendRule", () {
3588 unittest.test("to-json--from-json", () { 3449 unittest.test("to-json--from-json", () {
3589 var o = buildBackendRule(); 3450 var o = buildBackendRule();
3590 var od = new api.BackendRule.fromJson(o.toJson()); 3451 var od = new api.BackendRule.fromJson(o.toJson());
3591 checkBackendRule(od); 3452 checkBackendRule(od);
3592 }); 3453 });
3593 }); 3454 });
3594 3455
3595
3596 unittest.group("obj-schema-Binding", () { 3456 unittest.group("obj-schema-Binding", () {
3597 unittest.test("to-json--from-json", () { 3457 unittest.test("to-json--from-json", () {
3598 var o = buildBinding(); 3458 var o = buildBinding();
3599 var od = new api.Binding.fromJson(o.toJson()); 3459 var od = new api.Binding.fromJson(o.toJson());
3600 checkBinding(od); 3460 checkBinding(od);
3601 }); 3461 });
3602 }); 3462 });
3603 3463
3604
3605 unittest.group("obj-schema-ChangeReport", () { 3464 unittest.group("obj-schema-ChangeReport", () {
3606 unittest.test("to-json--from-json", () { 3465 unittest.test("to-json--from-json", () {
3607 var o = buildChangeReport(); 3466 var o = buildChangeReport();
3608 var od = new api.ChangeReport.fromJson(o.toJson()); 3467 var od = new api.ChangeReport.fromJson(o.toJson());
3609 checkChangeReport(od); 3468 checkChangeReport(od);
3610 }); 3469 });
3611 }); 3470 });
3612 3471
3613
3614 unittest.group("obj-schema-CloudAuditOptions", () {
3615 unittest.test("to-json--from-json", () {
3616 var o = buildCloudAuditOptions();
3617 var od = new api.CloudAuditOptions.fromJson(o.toJson());
3618 checkCloudAuditOptions(od);
3619 });
3620 });
3621
3622
3623 unittest.group("obj-schema-Condition", () {
3624 unittest.test("to-json--from-json", () {
3625 var o = buildCondition();
3626 var od = new api.Condition.fromJson(o.toJson());
3627 checkCondition(od);
3628 });
3629 });
3630
3631
3632 unittest.group("obj-schema-ConfigChange", () { 3472 unittest.group("obj-schema-ConfigChange", () {
3633 unittest.test("to-json--from-json", () { 3473 unittest.test("to-json--from-json", () {
3634 var o = buildConfigChange(); 3474 var o = buildConfigChange();
3635 var od = new api.ConfigChange.fromJson(o.toJson()); 3475 var od = new api.ConfigChange.fromJson(o.toJson());
3636 checkConfigChange(od); 3476 checkConfigChange(od);
3637 }); 3477 });
3638 }); 3478 });
3639 3479
3640
3641 unittest.group("obj-schema-ConfigFile", () { 3480 unittest.group("obj-schema-ConfigFile", () {
3642 unittest.test("to-json--from-json", () { 3481 unittest.test("to-json--from-json", () {
3643 var o = buildConfigFile(); 3482 var o = buildConfigFile();
3644 var od = new api.ConfigFile.fromJson(o.toJson()); 3483 var od = new api.ConfigFile.fromJson(o.toJson());
3645 checkConfigFile(od); 3484 checkConfigFile(od);
3646 }); 3485 });
3647 }); 3486 });
3648 3487
3649
3650 unittest.group("obj-schema-ConfigRef", () { 3488 unittest.group("obj-schema-ConfigRef", () {
3651 unittest.test("to-json--from-json", () { 3489 unittest.test("to-json--from-json", () {
3652 var o = buildConfigRef(); 3490 var o = buildConfigRef();
3653 var od = new api.ConfigRef.fromJson(o.toJson()); 3491 var od = new api.ConfigRef.fromJson(o.toJson());
3654 checkConfigRef(od); 3492 checkConfigRef(od);
3655 }); 3493 });
3656 }); 3494 });
3657 3495
3658
3659 unittest.group("obj-schema-ConfigSource", () { 3496 unittest.group("obj-schema-ConfigSource", () {
3660 unittest.test("to-json--from-json", () { 3497 unittest.test("to-json--from-json", () {
3661 var o = buildConfigSource(); 3498 var o = buildConfigSource();
3662 var od = new api.ConfigSource.fromJson(o.toJson()); 3499 var od = new api.ConfigSource.fromJson(o.toJson());
3663 checkConfigSource(od); 3500 checkConfigSource(od);
3664 }); 3501 });
3665 }); 3502 });
3666 3503
3667
3668 unittest.group("obj-schema-Context", () { 3504 unittest.group("obj-schema-Context", () {
3669 unittest.test("to-json--from-json", () { 3505 unittest.test("to-json--from-json", () {
3670 var o = buildContext(); 3506 var o = buildContext();
3671 var od = new api.Context.fromJson(o.toJson()); 3507 var od = new api.Context.fromJson(o.toJson());
3672 checkContext(od); 3508 checkContext(od);
3673 }); 3509 });
3674 }); 3510 });
3675 3511
3676
3677 unittest.group("obj-schema-ContextRule", () { 3512 unittest.group("obj-schema-ContextRule", () {
3678 unittest.test("to-json--from-json", () { 3513 unittest.test("to-json--from-json", () {
3679 var o = buildContextRule(); 3514 var o = buildContextRule();
3680 var od = new api.ContextRule.fromJson(o.toJson()); 3515 var od = new api.ContextRule.fromJson(o.toJson());
3681 checkContextRule(od); 3516 checkContextRule(od);
3682 }); 3517 });
3683 }); 3518 });
3684 3519
3685
3686 unittest.group("obj-schema-Control", () { 3520 unittest.group("obj-schema-Control", () {
3687 unittest.test("to-json--from-json", () { 3521 unittest.test("to-json--from-json", () {
3688 var o = buildControl(); 3522 var o = buildControl();
3689 var od = new api.Control.fromJson(o.toJson()); 3523 var od = new api.Control.fromJson(o.toJson());
3690 checkControl(od); 3524 checkControl(od);
3691 }); 3525 });
3692 }); 3526 });
3693 3527
3694
3695 unittest.group("obj-schema-CounterOptions", () {
3696 unittest.test("to-json--from-json", () {
3697 var o = buildCounterOptions();
3698 var od = new api.CounterOptions.fromJson(o.toJson());
3699 checkCounterOptions(od);
3700 });
3701 });
3702
3703
3704 unittest.group("obj-schema-CustomAuthRequirements", () { 3528 unittest.group("obj-schema-CustomAuthRequirements", () {
3705 unittest.test("to-json--from-json", () { 3529 unittest.test("to-json--from-json", () {
3706 var o = buildCustomAuthRequirements(); 3530 var o = buildCustomAuthRequirements();
3707 var od = new api.CustomAuthRequirements.fromJson(o.toJson()); 3531 var od = new api.CustomAuthRequirements.fromJson(o.toJson());
3708 checkCustomAuthRequirements(od); 3532 checkCustomAuthRequirements(od);
3709 }); 3533 });
3710 }); 3534 });
3711 3535
3712
3713 unittest.group("obj-schema-CustomError", () { 3536 unittest.group("obj-schema-CustomError", () {
3714 unittest.test("to-json--from-json", () { 3537 unittest.test("to-json--from-json", () {
3715 var o = buildCustomError(); 3538 var o = buildCustomError();
3716 var od = new api.CustomError.fromJson(o.toJson()); 3539 var od = new api.CustomError.fromJson(o.toJson());
3717 checkCustomError(od); 3540 checkCustomError(od);
3718 }); 3541 });
3719 }); 3542 });
3720 3543
3721
3722 unittest.group("obj-schema-CustomErrorRule", () { 3544 unittest.group("obj-schema-CustomErrorRule", () {
3723 unittest.test("to-json--from-json", () { 3545 unittest.test("to-json--from-json", () {
3724 var o = buildCustomErrorRule(); 3546 var o = buildCustomErrorRule();
3725 var od = new api.CustomErrorRule.fromJson(o.toJson()); 3547 var od = new api.CustomErrorRule.fromJson(o.toJson());
3726 checkCustomErrorRule(od); 3548 checkCustomErrorRule(od);
3727 }); 3549 });
3728 }); 3550 });
3729 3551
3730
3731 unittest.group("obj-schema-CustomHttpPattern", () { 3552 unittest.group("obj-schema-CustomHttpPattern", () {
3732 unittest.test("to-json--from-json", () { 3553 unittest.test("to-json--from-json", () {
3733 var o = buildCustomHttpPattern(); 3554 var o = buildCustomHttpPattern();
3734 var od = new api.CustomHttpPattern.fromJson(o.toJson()); 3555 var od = new api.CustomHttpPattern.fromJson(o.toJson());
3735 checkCustomHttpPattern(od); 3556 checkCustomHttpPattern(od);
3736 }); 3557 });
3737 }); 3558 });
3738 3559
3739
3740 unittest.group("obj-schema-DataAccessOptions", () {
3741 unittest.test("to-json--from-json", () {
3742 var o = buildDataAccessOptions();
3743 var od = new api.DataAccessOptions.fromJson(o.toJson());
3744 checkDataAccessOptions(od);
3745 });
3746 });
3747
3748
3749 unittest.group("obj-schema-DeleteServiceStrategy", () { 3560 unittest.group("obj-schema-DeleteServiceStrategy", () {
3750 unittest.test("to-json--from-json", () { 3561 unittest.test("to-json--from-json", () {
3751 var o = buildDeleteServiceStrategy(); 3562 var o = buildDeleteServiceStrategy();
3752 var od = new api.DeleteServiceStrategy.fromJson(o.toJson()); 3563 var od = new api.DeleteServiceStrategy.fromJson(o.toJson());
3753 checkDeleteServiceStrategy(od); 3564 checkDeleteServiceStrategy(od);
3754 }); 3565 });
3755 }); 3566 });
3756 3567
3757
3758 unittest.group("obj-schema-Diagnostic", () { 3568 unittest.group("obj-schema-Diagnostic", () {
3759 unittest.test("to-json--from-json", () { 3569 unittest.test("to-json--from-json", () {
3760 var o = buildDiagnostic(); 3570 var o = buildDiagnostic();
3761 var od = new api.Diagnostic.fromJson(o.toJson()); 3571 var od = new api.Diagnostic.fromJson(o.toJson());
3762 checkDiagnostic(od); 3572 checkDiagnostic(od);
3763 }); 3573 });
3764 }); 3574 });
3765 3575
3766
3767 unittest.group("obj-schema-DisableServiceRequest", () { 3576 unittest.group("obj-schema-DisableServiceRequest", () {
3768 unittest.test("to-json--from-json", () { 3577 unittest.test("to-json--from-json", () {
3769 var o = buildDisableServiceRequest(); 3578 var o = buildDisableServiceRequest();
3770 var od = new api.DisableServiceRequest.fromJson(o.toJson()); 3579 var od = new api.DisableServiceRequest.fromJson(o.toJson());
3771 checkDisableServiceRequest(od); 3580 checkDisableServiceRequest(od);
3772 }); 3581 });
3773 }); 3582 });
3774 3583
3775
3776 unittest.group("obj-schema-Documentation", () { 3584 unittest.group("obj-schema-Documentation", () {
3777 unittest.test("to-json--from-json", () { 3585 unittest.test("to-json--from-json", () {
3778 var o = buildDocumentation(); 3586 var o = buildDocumentation();
3779 var od = new api.Documentation.fromJson(o.toJson()); 3587 var od = new api.Documentation.fromJson(o.toJson());
3780 checkDocumentation(od); 3588 checkDocumentation(od);
3781 }); 3589 });
3782 }); 3590 });
3783 3591
3784
3785 unittest.group("obj-schema-DocumentationRule", () { 3592 unittest.group("obj-schema-DocumentationRule", () {
3786 unittest.test("to-json--from-json", () { 3593 unittest.test("to-json--from-json", () {
3787 var o = buildDocumentationRule(); 3594 var o = buildDocumentationRule();
3788 var od = new api.DocumentationRule.fromJson(o.toJson()); 3595 var od = new api.DocumentationRule.fromJson(o.toJson());
3789 checkDocumentationRule(od); 3596 checkDocumentationRule(od);
3790 }); 3597 });
3791 }); 3598 });
3792 3599
3793
3794 unittest.group("obj-schema-EnableServiceRequest", () { 3600 unittest.group("obj-schema-EnableServiceRequest", () {
3795 unittest.test("to-json--from-json", () { 3601 unittest.test("to-json--from-json", () {
3796 var o = buildEnableServiceRequest(); 3602 var o = buildEnableServiceRequest();
3797 var od = new api.EnableServiceRequest.fromJson(o.toJson()); 3603 var od = new api.EnableServiceRequest.fromJson(o.toJson());
3798 checkEnableServiceRequest(od); 3604 checkEnableServiceRequest(od);
3799 }); 3605 });
3800 }); 3606 });
3801 3607
3802
3803 unittest.group("obj-schema-Endpoint", () { 3608 unittest.group("obj-schema-Endpoint", () {
3804 unittest.test("to-json--from-json", () { 3609 unittest.test("to-json--from-json", () {
3805 var o = buildEndpoint(); 3610 var o = buildEndpoint();
3806 var od = new api.Endpoint.fromJson(o.toJson()); 3611 var od = new api.Endpoint.fromJson(o.toJson());
3807 checkEndpoint(od); 3612 checkEndpoint(od);
3808 }); 3613 });
3809 }); 3614 });
3810 3615
3811
3812 unittest.group("obj-schema-Enum", () { 3616 unittest.group("obj-schema-Enum", () {
3813 unittest.test("to-json--from-json", () { 3617 unittest.test("to-json--from-json", () {
3814 var o = buildEnum(); 3618 var o = buildEnum();
3815 var od = new api.Enum.fromJson(o.toJson()); 3619 var od = new api.Enum.fromJson(o.toJson());
3816 checkEnum(od); 3620 checkEnum(od);
3817 }); 3621 });
3818 }); 3622 });
3819 3623
3820
3821 unittest.group("obj-schema-EnumValue", () { 3624 unittest.group("obj-schema-EnumValue", () {
3822 unittest.test("to-json--from-json", () { 3625 unittest.test("to-json--from-json", () {
3823 var o = buildEnumValue(); 3626 var o = buildEnumValue();
3824 var od = new api.EnumValue.fromJson(o.toJson()); 3627 var od = new api.EnumValue.fromJson(o.toJson());
3825 checkEnumValue(od); 3628 checkEnumValue(od);
3826 }); 3629 });
3827 }); 3630 });
3828 3631
3829
3830 unittest.group("obj-schema-Experimental", () { 3632 unittest.group("obj-schema-Experimental", () {
3831 unittest.test("to-json--from-json", () { 3633 unittest.test("to-json--from-json", () {
3832 var o = buildExperimental(); 3634 var o = buildExperimental();
3833 var od = new api.Experimental.fromJson(o.toJson()); 3635 var od = new api.Experimental.fromJson(o.toJson());
3834 checkExperimental(od); 3636 checkExperimental(od);
3835 }); 3637 });
3836 }); 3638 });
3837 3639
3838
3839 unittest.group("obj-schema-Expr", () { 3640 unittest.group("obj-schema-Expr", () {
3840 unittest.test("to-json--from-json", () { 3641 unittest.test("to-json--from-json", () {
3841 var o = buildExpr(); 3642 var o = buildExpr();
3842 var od = new api.Expr.fromJson(o.toJson()); 3643 var od = new api.Expr.fromJson(o.toJson());
3843 checkExpr(od); 3644 checkExpr(od);
3844 }); 3645 });
3845 }); 3646 });
3846 3647
3847
3848 unittest.group("obj-schema-Field", () { 3648 unittest.group("obj-schema-Field", () {
3849 unittest.test("to-json--from-json", () { 3649 unittest.test("to-json--from-json", () {
3850 var o = buildField(); 3650 var o = buildField();
3851 var od = new api.Field.fromJson(o.toJson()); 3651 var od = new api.Field.fromJson(o.toJson());
3852 checkField(od); 3652 checkField(od);
3853 }); 3653 });
3854 }); 3654 });
3855 3655
3856
3857 unittest.group("obj-schema-FlowOperationMetadata", () { 3656 unittest.group("obj-schema-FlowOperationMetadata", () {
3858 unittest.test("to-json--from-json", () { 3657 unittest.test("to-json--from-json", () {
3859 var o = buildFlowOperationMetadata(); 3658 var o = buildFlowOperationMetadata();
3860 var od = new api.FlowOperationMetadata.fromJson(o.toJson()); 3659 var od = new api.FlowOperationMetadata.fromJson(o.toJson());
3861 checkFlowOperationMetadata(od); 3660 checkFlowOperationMetadata(od);
3862 }); 3661 });
3863 }); 3662 });
3864 3663
3865
3866 unittest.group("obj-schema-GenerateConfigReportRequest", () { 3664 unittest.group("obj-schema-GenerateConfigReportRequest", () {
3867 unittest.test("to-json--from-json", () { 3665 unittest.test("to-json--from-json", () {
3868 var o = buildGenerateConfigReportRequest(); 3666 var o = buildGenerateConfigReportRequest();
3869 var od = new api.GenerateConfigReportRequest.fromJson(o.toJson()); 3667 var od = new api.GenerateConfigReportRequest.fromJson(o.toJson());
3870 checkGenerateConfigReportRequest(od); 3668 checkGenerateConfigReportRequest(od);
3871 }); 3669 });
3872 }); 3670 });
3873 3671
3874
3875 unittest.group("obj-schema-GenerateConfigReportResponse", () { 3672 unittest.group("obj-schema-GenerateConfigReportResponse", () {
3876 unittest.test("to-json--from-json", () { 3673 unittest.test("to-json--from-json", () {
3877 var o = buildGenerateConfigReportResponse(); 3674 var o = buildGenerateConfigReportResponse();
3878 var od = new api.GenerateConfigReportResponse.fromJson(o.toJson()); 3675 var od = new api.GenerateConfigReportResponse.fromJson(o.toJson());
3879 checkGenerateConfigReportResponse(od); 3676 checkGenerateConfigReportResponse(od);
3880 }); 3677 });
3881 }); 3678 });
3882 3679
3883
3884 unittest.group("obj-schema-GetIamPolicyRequest", () { 3680 unittest.group("obj-schema-GetIamPolicyRequest", () {
3885 unittest.test("to-json--from-json", () { 3681 unittest.test("to-json--from-json", () {
3886 var o = buildGetIamPolicyRequest(); 3682 var o = buildGetIamPolicyRequest();
3887 var od = new api.GetIamPolicyRequest.fromJson(o.toJson()); 3683 var od = new api.GetIamPolicyRequest.fromJson(o.toJson());
3888 checkGetIamPolicyRequest(od); 3684 checkGetIamPolicyRequest(od);
3889 }); 3685 });
3890 }); 3686 });
3891 3687
3892
3893 unittest.group("obj-schema-Http", () { 3688 unittest.group("obj-schema-Http", () {
3894 unittest.test("to-json--from-json", () { 3689 unittest.test("to-json--from-json", () {
3895 var o = buildHttp(); 3690 var o = buildHttp();
3896 var od = new api.Http.fromJson(o.toJson()); 3691 var od = new api.Http.fromJson(o.toJson());
3897 checkHttp(od); 3692 checkHttp(od);
3898 }); 3693 });
3899 }); 3694 });
3900 3695
3901
3902 unittest.group("obj-schema-HttpRule", () { 3696 unittest.group("obj-schema-HttpRule", () {
3903 unittest.test("to-json--from-json", () { 3697 unittest.test("to-json--from-json", () {
3904 var o = buildHttpRule(); 3698 var o = buildHttpRule();
3905 var od = new api.HttpRule.fromJson(o.toJson()); 3699 var od = new api.HttpRule.fromJson(o.toJson());
3906 checkHttpRule(od); 3700 checkHttpRule(od);
3907 }); 3701 });
3908 }); 3702 });
3909 3703
3910
3911 unittest.group("obj-schema-LabelDescriptor", () { 3704 unittest.group("obj-schema-LabelDescriptor", () {
3912 unittest.test("to-json--from-json", () { 3705 unittest.test("to-json--from-json", () {
3913 var o = buildLabelDescriptor(); 3706 var o = buildLabelDescriptor();
3914 var od = new api.LabelDescriptor.fromJson(o.toJson()); 3707 var od = new api.LabelDescriptor.fromJson(o.toJson());
3915 checkLabelDescriptor(od); 3708 checkLabelDescriptor(od);
3916 }); 3709 });
3917 }); 3710 });
3918 3711
3919
3920 unittest.group("obj-schema-ListOperationsResponse", () { 3712 unittest.group("obj-schema-ListOperationsResponse", () {
3921 unittest.test("to-json--from-json", () { 3713 unittest.test("to-json--from-json", () {
3922 var o = buildListOperationsResponse(); 3714 var o = buildListOperationsResponse();
3923 var od = new api.ListOperationsResponse.fromJson(o.toJson()); 3715 var od = new api.ListOperationsResponse.fromJson(o.toJson());
3924 checkListOperationsResponse(od); 3716 checkListOperationsResponse(od);
3925 }); 3717 });
3926 }); 3718 });
3927 3719
3928
3929 unittest.group("obj-schema-ListServiceConfigsResponse", () { 3720 unittest.group("obj-schema-ListServiceConfigsResponse", () {
3930 unittest.test("to-json--from-json", () { 3721 unittest.test("to-json--from-json", () {
3931 var o = buildListServiceConfigsResponse(); 3722 var o = buildListServiceConfigsResponse();
3932 var od = new api.ListServiceConfigsResponse.fromJson(o.toJson()); 3723 var od = new api.ListServiceConfigsResponse.fromJson(o.toJson());
3933 checkListServiceConfigsResponse(od); 3724 checkListServiceConfigsResponse(od);
3934 }); 3725 });
3935 }); 3726 });
3936 3727
3937
3938 unittest.group("obj-schema-ListServiceRolloutsResponse", () { 3728 unittest.group("obj-schema-ListServiceRolloutsResponse", () {
3939 unittest.test("to-json--from-json", () { 3729 unittest.test("to-json--from-json", () {
3940 var o = buildListServiceRolloutsResponse(); 3730 var o = buildListServiceRolloutsResponse();
3941 var od = new api.ListServiceRolloutsResponse.fromJson(o.toJson()); 3731 var od = new api.ListServiceRolloutsResponse.fromJson(o.toJson());
3942 checkListServiceRolloutsResponse(od); 3732 checkListServiceRolloutsResponse(od);
3943 }); 3733 });
3944 }); 3734 });
3945 3735
3946
3947 unittest.group("obj-schema-ListServicesResponse", () { 3736 unittest.group("obj-schema-ListServicesResponse", () {
3948 unittest.test("to-json--from-json", () { 3737 unittest.test("to-json--from-json", () {
3949 var o = buildListServicesResponse(); 3738 var o = buildListServicesResponse();
3950 var od = new api.ListServicesResponse.fromJson(o.toJson()); 3739 var od = new api.ListServicesResponse.fromJson(o.toJson());
3951 checkListServicesResponse(od); 3740 checkListServicesResponse(od);
3952 }); 3741 });
3953 }); 3742 });
3954 3743
3955
3956 unittest.group("obj-schema-LogConfig", () {
3957 unittest.test("to-json--from-json", () {
3958 var o = buildLogConfig();
3959 var od = new api.LogConfig.fromJson(o.toJson());
3960 checkLogConfig(od);
3961 });
3962 });
3963
3964
3965 unittest.group("obj-schema-LogDescriptor", () { 3744 unittest.group("obj-schema-LogDescriptor", () {
3966 unittest.test("to-json--from-json", () { 3745 unittest.test("to-json--from-json", () {
3967 var o = buildLogDescriptor(); 3746 var o = buildLogDescriptor();
3968 var od = new api.LogDescriptor.fromJson(o.toJson()); 3747 var od = new api.LogDescriptor.fromJson(o.toJson());
3969 checkLogDescriptor(od); 3748 checkLogDescriptor(od);
3970 }); 3749 });
3971 }); 3750 });
3972 3751
3973
3974 unittest.group("obj-schema-Logging", () { 3752 unittest.group("obj-schema-Logging", () {
3975 unittest.test("to-json--from-json", () { 3753 unittest.test("to-json--from-json", () {
3976 var o = buildLogging(); 3754 var o = buildLogging();
3977 var od = new api.Logging.fromJson(o.toJson()); 3755 var od = new api.Logging.fromJson(o.toJson());
3978 checkLogging(od); 3756 checkLogging(od);
3979 }); 3757 });
3980 }); 3758 });
3981 3759
3982
3983 unittest.group("obj-schema-LoggingDestination", () { 3760 unittest.group("obj-schema-LoggingDestination", () {
3984 unittest.test("to-json--from-json", () { 3761 unittest.test("to-json--from-json", () {
3985 var o = buildLoggingDestination(); 3762 var o = buildLoggingDestination();
3986 var od = new api.LoggingDestination.fromJson(o.toJson()); 3763 var od = new api.LoggingDestination.fromJson(o.toJson());
3987 checkLoggingDestination(od); 3764 checkLoggingDestination(od);
3988 }); 3765 });
3989 }); 3766 });
3990 3767
3991
3992 unittest.group("obj-schema-ManagedService", () { 3768 unittest.group("obj-schema-ManagedService", () {
3993 unittest.test("to-json--from-json", () { 3769 unittest.test("to-json--from-json", () {
3994 var o = buildManagedService(); 3770 var o = buildManagedService();
3995 var od = new api.ManagedService.fromJson(o.toJson()); 3771 var od = new api.ManagedService.fromJson(o.toJson());
3996 checkManagedService(od); 3772 checkManagedService(od);
3997 }); 3773 });
3998 }); 3774 });
3999 3775
4000
4001 unittest.group("obj-schema-MediaDownload", () { 3776 unittest.group("obj-schema-MediaDownload", () {
4002 unittest.test("to-json--from-json", () { 3777 unittest.test("to-json--from-json", () {
4003 var o = buildMediaDownload(); 3778 var o = buildMediaDownload();
4004 var od = new api.MediaDownload.fromJson(o.toJson()); 3779 var od = new api.MediaDownload.fromJson(o.toJson());
4005 checkMediaDownload(od); 3780 checkMediaDownload(od);
4006 }); 3781 });
4007 }); 3782 });
4008 3783
4009
4010 unittest.group("obj-schema-MediaUpload", () { 3784 unittest.group("obj-schema-MediaUpload", () {
4011 unittest.test("to-json--from-json", () { 3785 unittest.test("to-json--from-json", () {
4012 var o = buildMediaUpload(); 3786 var o = buildMediaUpload();
4013 var od = new api.MediaUpload.fromJson(o.toJson()); 3787 var od = new api.MediaUpload.fromJson(o.toJson());
4014 checkMediaUpload(od); 3788 checkMediaUpload(od);
4015 }); 3789 });
4016 }); 3790 });
4017 3791
4018
4019 unittest.group("obj-schema-Method", () { 3792 unittest.group("obj-schema-Method", () {
4020 unittest.test("to-json--from-json", () { 3793 unittest.test("to-json--from-json", () {
4021 var o = buildMethod(); 3794 var o = buildMethod();
4022 var od = new api.Method.fromJson(o.toJson()); 3795 var od = new api.Method.fromJson(o.toJson());
4023 checkMethod(od); 3796 checkMethod(od);
4024 }); 3797 });
4025 }); 3798 });
4026 3799
4027
4028 unittest.group("obj-schema-MetricDescriptor", () { 3800 unittest.group("obj-schema-MetricDescriptor", () {
4029 unittest.test("to-json--from-json", () { 3801 unittest.test("to-json--from-json", () {
4030 var o = buildMetricDescriptor(); 3802 var o = buildMetricDescriptor();
4031 var od = new api.MetricDescriptor.fromJson(o.toJson()); 3803 var od = new api.MetricDescriptor.fromJson(o.toJson());
4032 checkMetricDescriptor(od); 3804 checkMetricDescriptor(od);
4033 }); 3805 });
4034 }); 3806 });
4035 3807
4036
4037 unittest.group("obj-schema-MetricRule", () { 3808 unittest.group("obj-schema-MetricRule", () {
4038 unittest.test("to-json--from-json", () { 3809 unittest.test("to-json--from-json", () {
4039 var o = buildMetricRule(); 3810 var o = buildMetricRule();
4040 var od = new api.MetricRule.fromJson(o.toJson()); 3811 var od = new api.MetricRule.fromJson(o.toJson());
4041 checkMetricRule(od); 3812 checkMetricRule(od);
4042 }); 3813 });
4043 }); 3814 });
4044 3815
4045
4046 unittest.group("obj-schema-Mixin", () { 3816 unittest.group("obj-schema-Mixin", () {
4047 unittest.test("to-json--from-json", () { 3817 unittest.test("to-json--from-json", () {
4048 var o = buildMixin(); 3818 var o = buildMixin();
4049 var od = new api.Mixin.fromJson(o.toJson()); 3819 var od = new api.Mixin.fromJson(o.toJson());
4050 checkMixin(od); 3820 checkMixin(od);
4051 }); 3821 });
4052 }); 3822 });
4053 3823
4054
4055 unittest.group("obj-schema-MonitoredResourceDescriptor", () { 3824 unittest.group("obj-schema-MonitoredResourceDescriptor", () {
4056 unittest.test("to-json--from-json", () { 3825 unittest.test("to-json--from-json", () {
4057 var o = buildMonitoredResourceDescriptor(); 3826 var o = buildMonitoredResourceDescriptor();
4058 var od = new api.MonitoredResourceDescriptor.fromJson(o.toJson()); 3827 var od = new api.MonitoredResourceDescriptor.fromJson(o.toJson());
4059 checkMonitoredResourceDescriptor(od); 3828 checkMonitoredResourceDescriptor(od);
4060 }); 3829 });
4061 }); 3830 });
4062 3831
4063
4064 unittest.group("obj-schema-Monitoring", () { 3832 unittest.group("obj-schema-Monitoring", () {
4065 unittest.test("to-json--from-json", () { 3833 unittest.test("to-json--from-json", () {
4066 var o = buildMonitoring(); 3834 var o = buildMonitoring();
4067 var od = new api.Monitoring.fromJson(o.toJson()); 3835 var od = new api.Monitoring.fromJson(o.toJson());
4068 checkMonitoring(od); 3836 checkMonitoring(od);
4069 }); 3837 });
4070 }); 3838 });
4071 3839
4072
4073 unittest.group("obj-schema-MonitoringDestination", () { 3840 unittest.group("obj-schema-MonitoringDestination", () {
4074 unittest.test("to-json--from-json", () { 3841 unittest.test("to-json--from-json", () {
4075 var o = buildMonitoringDestination(); 3842 var o = buildMonitoringDestination();
4076 var od = new api.MonitoringDestination.fromJson(o.toJson()); 3843 var od = new api.MonitoringDestination.fromJson(o.toJson());
4077 checkMonitoringDestination(od); 3844 checkMonitoringDestination(od);
4078 }); 3845 });
4079 }); 3846 });
4080 3847
4081
4082 unittest.group("obj-schema-OAuthRequirements", () { 3848 unittest.group("obj-schema-OAuthRequirements", () {
4083 unittest.test("to-json--from-json", () { 3849 unittest.test("to-json--from-json", () {
4084 var o = buildOAuthRequirements(); 3850 var o = buildOAuthRequirements();
4085 var od = new api.OAuthRequirements.fromJson(o.toJson()); 3851 var od = new api.OAuthRequirements.fromJson(o.toJson());
4086 checkOAuthRequirements(od); 3852 checkOAuthRequirements(od);
4087 }); 3853 });
4088 }); 3854 });
4089 3855
4090
4091 unittest.group("obj-schema-Operation", () { 3856 unittest.group("obj-schema-Operation", () {
4092 unittest.test("to-json--from-json", () { 3857 unittest.test("to-json--from-json", () {
4093 var o = buildOperation(); 3858 var o = buildOperation();
4094 var od = new api.Operation.fromJson(o.toJson()); 3859 var od = new api.Operation.fromJson(o.toJson());
4095 checkOperation(od); 3860 checkOperation(od);
4096 }); 3861 });
4097 }); 3862 });
4098 3863
4099
4100 unittest.group("obj-schema-OperationMetadata", () { 3864 unittest.group("obj-schema-OperationMetadata", () {
4101 unittest.test("to-json--from-json", () { 3865 unittest.test("to-json--from-json", () {
4102 var o = buildOperationMetadata(); 3866 var o = buildOperationMetadata();
4103 var od = new api.OperationMetadata.fromJson(o.toJson()); 3867 var od = new api.OperationMetadata.fromJson(o.toJson());
4104 checkOperationMetadata(od); 3868 checkOperationMetadata(od);
4105 }); 3869 });
4106 }); 3870 });
4107 3871
4108
4109 unittest.group("obj-schema-Option", () { 3872 unittest.group("obj-schema-Option", () {
4110 unittest.test("to-json--from-json", () { 3873 unittest.test("to-json--from-json", () {
4111 var o = buildOption(); 3874 var o = buildOption();
4112 var od = new api.Option.fromJson(o.toJson()); 3875 var od = new api.Option.fromJson(o.toJson());
4113 checkOption(od); 3876 checkOption(od);
4114 }); 3877 });
4115 }); 3878 });
4116 3879
4117
4118 unittest.group("obj-schema-Page", () { 3880 unittest.group("obj-schema-Page", () {
4119 unittest.test("to-json--from-json", () { 3881 unittest.test("to-json--from-json", () {
4120 var o = buildPage(); 3882 var o = buildPage();
4121 var od = new api.Page.fromJson(o.toJson()); 3883 var od = new api.Page.fromJson(o.toJson());
4122 checkPage(od); 3884 checkPage(od);
4123 }); 3885 });
4124 }); 3886 });
4125 3887
4126
4127 unittest.group("obj-schema-Policy", () { 3888 unittest.group("obj-schema-Policy", () {
4128 unittest.test("to-json--from-json", () { 3889 unittest.test("to-json--from-json", () {
4129 var o = buildPolicy(); 3890 var o = buildPolicy();
4130 var od = new api.Policy.fromJson(o.toJson()); 3891 var od = new api.Policy.fromJson(o.toJson());
4131 checkPolicy(od); 3892 checkPolicy(od);
4132 }); 3893 });
4133 }); 3894 });
4134 3895
4135
4136 unittest.group("obj-schema-Quota", () { 3896 unittest.group("obj-schema-Quota", () {
4137 unittest.test("to-json--from-json", () { 3897 unittest.test("to-json--from-json", () {
4138 var o = buildQuota(); 3898 var o = buildQuota();
4139 var od = new api.Quota.fromJson(o.toJson()); 3899 var od = new api.Quota.fromJson(o.toJson());
4140 checkQuota(od); 3900 checkQuota(od);
4141 }); 3901 });
4142 }); 3902 });
4143 3903
4144
4145 unittest.group("obj-schema-QuotaLimit", () { 3904 unittest.group("obj-schema-QuotaLimit", () {
4146 unittest.test("to-json--from-json", () { 3905 unittest.test("to-json--from-json", () {
4147 var o = buildQuotaLimit(); 3906 var o = buildQuotaLimit();
4148 var od = new api.QuotaLimit.fromJson(o.toJson()); 3907 var od = new api.QuotaLimit.fromJson(o.toJson());
4149 checkQuotaLimit(od); 3908 checkQuotaLimit(od);
4150 }); 3909 });
4151 }); 3910 });
4152 3911
4153
4154 unittest.group("obj-schema-Rollout", () { 3912 unittest.group("obj-schema-Rollout", () {
4155 unittest.test("to-json--from-json", () { 3913 unittest.test("to-json--from-json", () {
4156 var o = buildRollout(); 3914 var o = buildRollout();
4157 var od = new api.Rollout.fromJson(o.toJson()); 3915 var od = new api.Rollout.fromJson(o.toJson());
4158 checkRollout(od); 3916 checkRollout(od);
4159 }); 3917 });
4160 }); 3918 });
4161 3919
4162
4163 unittest.group("obj-schema-Rule", () {
4164 unittest.test("to-json--from-json", () {
4165 var o = buildRule();
4166 var od = new api.Rule.fromJson(o.toJson());
4167 checkRule(od);
4168 });
4169 });
4170
4171
4172 unittest.group("obj-schema-Service", () { 3920 unittest.group("obj-schema-Service", () {
4173 unittest.test("to-json--from-json", () { 3921 unittest.test("to-json--from-json", () {
4174 var o = buildService(); 3922 var o = buildService();
4175 var od = new api.Service.fromJson(o.toJson()); 3923 var od = new api.Service.fromJson(o.toJson());
4176 checkService(od); 3924 checkService(od);
4177 }); 3925 });
4178 }); 3926 });
4179 3927
4180
4181 unittest.group("obj-schema-SetIamPolicyRequest", () { 3928 unittest.group("obj-schema-SetIamPolicyRequest", () {
4182 unittest.test("to-json--from-json", () { 3929 unittest.test("to-json--from-json", () {
4183 var o = buildSetIamPolicyRequest(); 3930 var o = buildSetIamPolicyRequest();
4184 var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); 3931 var od = new api.SetIamPolicyRequest.fromJson(o.toJson());
4185 checkSetIamPolicyRequest(od); 3932 checkSetIamPolicyRequest(od);
4186 }); 3933 });
4187 }); 3934 });
4188 3935
4189
4190 unittest.group("obj-schema-SourceContext", () { 3936 unittest.group("obj-schema-SourceContext", () {
4191 unittest.test("to-json--from-json", () { 3937 unittest.test("to-json--from-json", () {
4192 var o = buildSourceContext(); 3938 var o = buildSourceContext();
4193 var od = new api.SourceContext.fromJson(o.toJson()); 3939 var od = new api.SourceContext.fromJson(o.toJson());
4194 checkSourceContext(od); 3940 checkSourceContext(od);
4195 }); 3941 });
4196 }); 3942 });
4197 3943
4198
4199 unittest.group("obj-schema-SourceInfo", () { 3944 unittest.group("obj-schema-SourceInfo", () {
4200 unittest.test("to-json--from-json", () { 3945 unittest.test("to-json--from-json", () {
4201 var o = buildSourceInfo(); 3946 var o = buildSourceInfo();
4202 var od = new api.SourceInfo.fromJson(o.toJson()); 3947 var od = new api.SourceInfo.fromJson(o.toJson());
4203 checkSourceInfo(od); 3948 checkSourceInfo(od);
4204 }); 3949 });
4205 }); 3950 });
4206 3951
4207
4208 unittest.group("obj-schema-Status", () { 3952 unittest.group("obj-schema-Status", () {
4209 unittest.test("to-json--from-json", () { 3953 unittest.test("to-json--from-json", () {
4210 var o = buildStatus(); 3954 var o = buildStatus();
4211 var od = new api.Status.fromJson(o.toJson()); 3955 var od = new api.Status.fromJson(o.toJson());
4212 checkStatus(od); 3956 checkStatus(od);
4213 }); 3957 });
4214 }); 3958 });
4215 3959
4216
4217 unittest.group("obj-schema-Step", () { 3960 unittest.group("obj-schema-Step", () {
4218 unittest.test("to-json--from-json", () { 3961 unittest.test("to-json--from-json", () {
4219 var o = buildStep(); 3962 var o = buildStep();
4220 var od = new api.Step.fromJson(o.toJson()); 3963 var od = new api.Step.fromJson(o.toJson());
4221 checkStep(od); 3964 checkStep(od);
4222 }); 3965 });
4223 }); 3966 });
4224 3967
4225
4226 unittest.group("obj-schema-SubmitConfigSourceRequest", () { 3968 unittest.group("obj-schema-SubmitConfigSourceRequest", () {
4227 unittest.test("to-json--from-json", () { 3969 unittest.test("to-json--from-json", () {
4228 var o = buildSubmitConfigSourceRequest(); 3970 var o = buildSubmitConfigSourceRequest();
4229 var od = new api.SubmitConfigSourceRequest.fromJson(o.toJson()); 3971 var od = new api.SubmitConfigSourceRequest.fromJson(o.toJson());
4230 checkSubmitConfigSourceRequest(od); 3972 checkSubmitConfigSourceRequest(od);
4231 }); 3973 });
4232 }); 3974 });
4233 3975
4234
4235 unittest.group("obj-schema-SubmitConfigSourceResponse", () { 3976 unittest.group("obj-schema-SubmitConfigSourceResponse", () {
4236 unittest.test("to-json--from-json", () { 3977 unittest.test("to-json--from-json", () {
4237 var o = buildSubmitConfigSourceResponse(); 3978 var o = buildSubmitConfigSourceResponse();
4238 var od = new api.SubmitConfigSourceResponse.fromJson(o.toJson()); 3979 var od = new api.SubmitConfigSourceResponse.fromJson(o.toJson());
4239 checkSubmitConfigSourceResponse(od); 3980 checkSubmitConfigSourceResponse(od);
4240 }); 3981 });
4241 }); 3982 });
4242 3983
4243
4244 unittest.group("obj-schema-SystemParameter", () { 3984 unittest.group("obj-schema-SystemParameter", () {
4245 unittest.test("to-json--from-json", () { 3985 unittest.test("to-json--from-json", () {
4246 var o = buildSystemParameter(); 3986 var o = buildSystemParameter();
4247 var od = new api.SystemParameter.fromJson(o.toJson()); 3987 var od = new api.SystemParameter.fromJson(o.toJson());
4248 checkSystemParameter(od); 3988 checkSystemParameter(od);
4249 }); 3989 });
4250 }); 3990 });
4251 3991
4252
4253 unittest.group("obj-schema-SystemParameterRule", () { 3992 unittest.group("obj-schema-SystemParameterRule", () {
4254 unittest.test("to-json--from-json", () { 3993 unittest.test("to-json--from-json", () {
4255 var o = buildSystemParameterRule(); 3994 var o = buildSystemParameterRule();
4256 var od = new api.SystemParameterRule.fromJson(o.toJson()); 3995 var od = new api.SystemParameterRule.fromJson(o.toJson());
4257 checkSystemParameterRule(od); 3996 checkSystemParameterRule(od);
4258 }); 3997 });
4259 }); 3998 });
4260 3999
4261
4262 unittest.group("obj-schema-SystemParameters", () { 4000 unittest.group("obj-schema-SystemParameters", () {
4263 unittest.test("to-json--from-json", () { 4001 unittest.test("to-json--from-json", () {
4264 var o = buildSystemParameters(); 4002 var o = buildSystemParameters();
4265 var od = new api.SystemParameters.fromJson(o.toJson()); 4003 var od = new api.SystemParameters.fromJson(o.toJson());
4266 checkSystemParameters(od); 4004 checkSystemParameters(od);
4267 }); 4005 });
4268 }); 4006 });
4269 4007
4270
4271 unittest.group("obj-schema-TestIamPermissionsRequest", () { 4008 unittest.group("obj-schema-TestIamPermissionsRequest", () {
4272 unittest.test("to-json--from-json", () { 4009 unittest.test("to-json--from-json", () {
4273 var o = buildTestIamPermissionsRequest(); 4010 var o = buildTestIamPermissionsRequest();
4274 var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); 4011 var od = new api.TestIamPermissionsRequest.fromJson(o.toJson());
4275 checkTestIamPermissionsRequest(od); 4012 checkTestIamPermissionsRequest(od);
4276 }); 4013 });
4277 }); 4014 });
4278 4015
4279
4280 unittest.group("obj-schema-TestIamPermissionsResponse", () { 4016 unittest.group("obj-schema-TestIamPermissionsResponse", () {
4281 unittest.test("to-json--from-json", () { 4017 unittest.test("to-json--from-json", () {
4282 var o = buildTestIamPermissionsResponse(); 4018 var o = buildTestIamPermissionsResponse();
4283 var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); 4019 var od = new api.TestIamPermissionsResponse.fromJson(o.toJson());
4284 checkTestIamPermissionsResponse(od); 4020 checkTestIamPermissionsResponse(od);
4285 }); 4021 });
4286 }); 4022 });
4287 4023
4288
4289 unittest.group("obj-schema-TrafficPercentStrategy", () { 4024 unittest.group("obj-schema-TrafficPercentStrategy", () {
4290 unittest.test("to-json--from-json", () { 4025 unittest.test("to-json--from-json", () {
4291 var o = buildTrafficPercentStrategy(); 4026 var o = buildTrafficPercentStrategy();
4292 var od = new api.TrafficPercentStrategy.fromJson(o.toJson()); 4027 var od = new api.TrafficPercentStrategy.fromJson(o.toJson());
4293 checkTrafficPercentStrategy(od); 4028 checkTrafficPercentStrategy(od);
4294 }); 4029 });
4295 }); 4030 });
4296 4031
4297
4298 unittest.group("obj-schema-Type", () { 4032 unittest.group("obj-schema-Type", () {
4299 unittest.test("to-json--from-json", () { 4033 unittest.test("to-json--from-json", () {
4300 var o = buildType(); 4034 var o = buildType();
4301 var od = new api.Type.fromJson(o.toJson()); 4035 var od = new api.Type.fromJson(o.toJson());
4302 checkType(od); 4036 checkType(od);
4303 }); 4037 });
4304 }); 4038 });
4305 4039
4306
4307 unittest.group("obj-schema-UndeleteServiceResponse", () { 4040 unittest.group("obj-schema-UndeleteServiceResponse", () {
4308 unittest.test("to-json--from-json", () { 4041 unittest.test("to-json--from-json", () {
4309 var o = buildUndeleteServiceResponse(); 4042 var o = buildUndeleteServiceResponse();
4310 var od = new api.UndeleteServiceResponse.fromJson(o.toJson()); 4043 var od = new api.UndeleteServiceResponse.fromJson(o.toJson());
4311 checkUndeleteServiceResponse(od); 4044 checkUndeleteServiceResponse(od);
4312 }); 4045 });
4313 }); 4046 });
4314 4047
4315
4316 unittest.group("obj-schema-Usage", () { 4048 unittest.group("obj-schema-Usage", () {
4317 unittest.test("to-json--from-json", () { 4049 unittest.test("to-json--from-json", () {
4318 var o = buildUsage(); 4050 var o = buildUsage();
4319 var od = new api.Usage.fromJson(o.toJson()); 4051 var od = new api.Usage.fromJson(o.toJson());
4320 checkUsage(od); 4052 checkUsage(od);
4321 }); 4053 });
4322 }); 4054 });
4323 4055
4324
4325 unittest.group("obj-schema-UsageRule", () { 4056 unittest.group("obj-schema-UsageRule", () {
4326 unittest.test("to-json--from-json", () { 4057 unittest.test("to-json--from-json", () {
4327 var o = buildUsageRule(); 4058 var o = buildUsageRule();
4328 var od = new api.UsageRule.fromJson(o.toJson()); 4059 var od = new api.UsageRule.fromJson(o.toJson());
4329 checkUsageRule(od); 4060 checkUsageRule(od);
4330 }); 4061 });
4331 }); 4062 });
4332 4063
4333
4334 unittest.group("obj-schema-Visibility", () { 4064 unittest.group("obj-schema-Visibility", () {
4335 unittest.test("to-json--from-json", () { 4065 unittest.test("to-json--from-json", () {
4336 var o = buildVisibility(); 4066 var o = buildVisibility();
4337 var od = new api.Visibility.fromJson(o.toJson()); 4067 var od = new api.Visibility.fromJson(o.toJson());
4338 checkVisibility(od); 4068 checkVisibility(od);
4339 }); 4069 });
4340 }); 4070 });
4341 4071
4342
4343 unittest.group("obj-schema-VisibilityRule", () { 4072 unittest.group("obj-schema-VisibilityRule", () {
4344 unittest.test("to-json--from-json", () { 4073 unittest.test("to-json--from-json", () {
4345 var o = buildVisibilityRule(); 4074 var o = buildVisibilityRule();
4346 var od = new api.VisibilityRule.fromJson(o.toJson()); 4075 var od = new api.VisibilityRule.fromJson(o.toJson());
4347 checkVisibilityRule(od); 4076 checkVisibilityRule(od);
4348 }); 4077 });
4349 }); 4078 });
4350 4079
4351
4352 unittest.group("resource-OperationsResourceApi", () { 4080 unittest.group("resource-OperationsResourceApi", () {
4353 unittest.test("method--get", () { 4081 unittest.test("method--get", () {
4354
4355 var mock = new HttpServerMock(); 4082 var mock = new HttpServerMock();
4356 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati ons; 4083 api.OperationsResourceApi res =
4084 new api.ServicemanagementApi(mock).operations;
4357 var arg_name = "foo"; 4085 var arg_name = "foo";
4358 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4086 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4359 var path = (req.url).path; 4087 var path = (req.url).path;
4360 var pathOffset = 0; 4088 var pathOffset = 0;
4361 var index; 4089 var index;
4362 var subPart; 4090 var subPart;
4363 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4091 unittest.expect(
4092 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4364 pathOffset += 1; 4093 pathOffset += 1;
4365 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 4094 unittest.expect(
4095 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
4366 pathOffset += 3; 4096 pathOffset += 3;
4367 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 4097 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
4368 4098
4369 var query = (req.url).query; 4099 var query = (req.url).query;
4370 var queryOffset = 0; 4100 var queryOffset = 0;
4371 var queryMap = {}; 4101 var queryMap = {};
4372 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4102 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4373 parseBool(n) { 4103 parseBool(n) {
4374 if (n == "true") return true; 4104 if (n == "true") return true;
4375 if (n == "false") return false; 4105 if (n == "false") return false;
4376 if (n == null) return null; 4106 if (n == null) return null;
4377 throw new core.ArgumentError("Invalid boolean: $n"); 4107 throw new core.ArgumentError("Invalid boolean: $n");
4378 } 4108 }
4109
4379 if (query.length > 0) { 4110 if (query.length > 0) {
4380 for (var part in query.split("&")) { 4111 for (var part in query.split("&")) {
4381 var keyvalue = part.split("="); 4112 var keyvalue = part.split("=");
4382 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4113 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4114 core.Uri.decodeQueryComponent(keyvalue[1]));
4383 } 4115 }
4384 } 4116 }
4385 4117
4386
4387 var h = { 4118 var h = {
4388 "content-type" : "application/json; charset=utf-8", 4119 "content-type": "application/json; charset=utf-8",
4389 }; 4120 };
4390 var resp = convert.JSON.encode(buildOperation()); 4121 var resp = convert.JSON.encode(buildOperation());
4391 return new async.Future.value(stringResponse(200, h, resp)); 4122 return new async.Future.value(stringResponse(200, h, resp));
4392 }), true); 4123 }), true);
4393 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { 4124 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) {
4394 checkOperation(response); 4125 checkOperation(response);
4395 }))); 4126 })));
4396 }); 4127 });
4397 4128
4398 unittest.test("method--list", () { 4129 unittest.test("method--list", () {
4399
4400 var mock = new HttpServerMock(); 4130 var mock = new HttpServerMock();
4401 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati ons; 4131 api.OperationsResourceApi res =
4132 new api.ServicemanagementApi(mock).operations;
4133 var arg_pageToken = "foo";
4134 var arg_name = "foo";
4402 var arg_pageSize = 42; 4135 var arg_pageSize = 42;
4403 var arg_filter = "foo"; 4136 var arg_filter = "foo";
4404 var arg_pageToken = "foo";
4405 var arg_name = "foo";
4406 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4137 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4407 var path = (req.url).path; 4138 var path = (req.url).path;
4408 var pathOffset = 0; 4139 var pathOffset = 0;
4409 var index; 4140 var index;
4410 var subPart; 4141 var subPart;
4411 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4142 unittest.expect(
4143 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4412 pathOffset += 1; 4144 pathOffset += 1;
4413 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1/operations")); 4145 unittest.expect(path.substring(pathOffset, pathOffset + 13),
4146 unittest.equals("v1/operations"));
4414 pathOffset += 13; 4147 pathOffset += 13;
4415 4148
4416 var query = (req.url).query; 4149 var query = (req.url).query;
4417 var queryOffset = 0; 4150 var queryOffset = 0;
4418 var queryMap = {}; 4151 var queryMap = {};
4419 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4152 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4420 parseBool(n) { 4153 parseBool(n) {
4421 if (n == "true") return true; 4154 if (n == "true") return true;
4422 if (n == "false") return false; 4155 if (n == "false") return false;
4423 if (n == null) return null; 4156 if (n == null) return null;
4424 throw new core.ArgumentError("Invalid boolean: $n"); 4157 throw new core.ArgumentError("Invalid boolean: $n");
4425 } 4158 }
4159
4426 if (query.length > 0) { 4160 if (query.length > 0) {
4427 for (var part in query.split("&")) { 4161 for (var part in query.split("&")) {
4428 var keyvalue = part.split("="); 4162 var keyvalue = part.split("=");
4429 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4163 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4164 core.Uri.decodeQueryComponent(keyvalue[1]));
4430 } 4165 }
4431 } 4166 }
4432 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4167 unittest.expect(
4168 queryMap["pageToken"].first, unittest.equals(arg_pageToken));
4169 unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
4170 unittest.expect(core.int.parse(queryMap["pageSize"].first),
4171 unittest.equals(arg_pageSize));
4433 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 4172 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4434 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4435 unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
4436
4437 4173
4438 var h = { 4174 var h = {
4439 "content-type" : "application/json; charset=utf-8", 4175 "content-type": "application/json; charset=utf-8",
4440 }; 4176 };
4441 var resp = convert.JSON.encode(buildListOperationsResponse()); 4177 var resp = convert.JSON.encode(buildListOperationsResponse());
4442 return new async.Future.value(stringResponse(200, h, resp)); 4178 return new async.Future.value(stringResponse(200, h, resp));
4443 }), true); 4179 }), true);
4444 res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageTo ken, name: arg_name).then(unittest.expectAsync1(((api.ListOperationsResponse res ponse) { 4180 res
4181 .list(
4182 pageToken: arg_pageToken,
4183 name: arg_name,
4184 pageSize: arg_pageSize,
4185 filter: arg_filter)
4186 .then(unittest.expectAsync1(((api.ListOperationsResponse response) {
4445 checkListOperationsResponse(response); 4187 checkListOperationsResponse(response);
4446 }))); 4188 })));
4447 }); 4189 });
4448
4449 }); 4190 });
4450 4191
4451
4452 unittest.group("resource-ServicesResourceApi", () { 4192 unittest.group("resource-ServicesResourceApi", () {
4453 unittest.test("method--create", () { 4193 unittest.test("method--create", () {
4454
4455 var mock = new HttpServerMock(); 4194 var mock = new HttpServerMock();
4456 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4195 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4457 var arg_request = buildManagedService(); 4196 var arg_request = buildManagedService();
4458 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4197 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4459 var obj = new api.ManagedService.fromJson(json); 4198 var obj = new api.ManagedService.fromJson(json);
4460 checkManagedService(obj); 4199 checkManagedService(obj);
4461 4200
4462 var path = (req.url).path; 4201 var path = (req.url).path;
4463 var pathOffset = 0; 4202 var pathOffset = 0;
4464 var index; 4203 var index;
4465 var subPart; 4204 var subPart;
4466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4205 unittest.expect(
4206 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4467 pathOffset += 1; 4207 pathOffset += 1;
4468 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("v1/services")); 4208 unittest.expect(path.substring(pathOffset, pathOffset + 11),
4209 unittest.equals("v1/services"));
4469 pathOffset += 11; 4210 pathOffset += 11;
4470 4211
4471 var query = (req.url).query; 4212 var query = (req.url).query;
4472 var queryOffset = 0; 4213 var queryOffset = 0;
4473 var queryMap = {}; 4214 var queryMap = {};
4474 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4215 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4475 parseBool(n) { 4216 parseBool(n) {
4476 if (n == "true") return true; 4217 if (n == "true") return true;
4477 if (n == "false") return false; 4218 if (n == "false") return false;
4478 if (n == null) return null; 4219 if (n == null) return null;
4479 throw new core.ArgumentError("Invalid boolean: $n"); 4220 throw new core.ArgumentError("Invalid boolean: $n");
4480 } 4221 }
4222
4481 if (query.length > 0) { 4223 if (query.length > 0) {
4482 for (var part in query.split("&")) { 4224 for (var part in query.split("&")) {
4483 var keyvalue = part.split("="); 4225 var keyvalue = part.split("=");
4484 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4226 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4227 core.Uri.decodeQueryComponent(keyvalue[1]));
4485 } 4228 }
4486 } 4229 }
4487 4230
4488
4489 var h = { 4231 var h = {
4490 "content-type" : "application/json; charset=utf-8", 4232 "content-type": "application/json; charset=utf-8",
4491 }; 4233 };
4492 var resp = convert.JSON.encode(buildOperation()); 4234 var resp = convert.JSON.encode(buildOperation());
4493 return new async.Future.value(stringResponse(200, h, resp)); 4235 return new async.Future.value(stringResponse(200, h, resp));
4494 }), true); 4236 }), true);
4495 res.create(arg_request).then(unittest.expectAsync1(((api.Operation respons e) { 4237 res
4238 .create(arg_request)
4239 .then(unittest.expectAsync1(((api.Operation response) {
4496 checkOperation(response); 4240 checkOperation(response);
4497 }))); 4241 })));
4498 }); 4242 });
4499 4243
4500 unittest.test("method--delete", () { 4244 unittest.test("method--delete", () {
4501
4502 var mock = new HttpServerMock(); 4245 var mock = new HttpServerMock();
4503 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4246 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4504 var arg_serviceName = "foo"; 4247 var arg_serviceName = "foo";
4505 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4248 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4506 var path = (req.url).path; 4249 var path = (req.url).path;
4507 var pathOffset = 0; 4250 var pathOffset = 0;
4508 var index; 4251 var index;
4509 var subPart; 4252 var subPart;
4510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4253 unittest.expect(
4254 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4511 pathOffset += 1; 4255 pathOffset += 1;
4512 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4256 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4257 unittest.equals("v1/services/"));
4513 pathOffset += 12; 4258 pathOffset += 12;
4514 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 4259 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
4515 pathOffset = path.length; 4260 pathOffset = path.length;
4516 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4261 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
4517 4262
4518 var query = (req.url).query; 4263 var query = (req.url).query;
4519 var queryOffset = 0; 4264 var queryOffset = 0;
4520 var queryMap = {}; 4265 var queryMap = {};
4521 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4266 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4522 parseBool(n) { 4267 parseBool(n) {
4523 if (n == "true") return true; 4268 if (n == "true") return true;
4524 if (n == "false") return false; 4269 if (n == "false") return false;
4525 if (n == null) return null; 4270 if (n == null) return null;
4526 throw new core.ArgumentError("Invalid boolean: $n"); 4271 throw new core.ArgumentError("Invalid boolean: $n");
4527 } 4272 }
4273
4528 if (query.length > 0) { 4274 if (query.length > 0) {
4529 for (var part in query.split("&")) { 4275 for (var part in query.split("&")) {
4530 var keyvalue = part.split("="); 4276 var keyvalue = part.split("=");
4531 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4277 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4278 core.Uri.decodeQueryComponent(keyvalue[1]));
4532 } 4279 }
4533 } 4280 }
4534 4281
4535
4536 var h = { 4282 var h = {
4537 "content-type" : "application/json; charset=utf-8", 4283 "content-type": "application/json; charset=utf-8",
4538 }; 4284 };
4539 var resp = convert.JSON.encode(buildOperation()); 4285 var resp = convert.JSON.encode(buildOperation());
4540 return new async.Future.value(stringResponse(200, h, resp)); 4286 return new async.Future.value(stringResponse(200, h, resp));
4541 }), true); 4287 }), true);
4542 res.delete(arg_serviceName).then(unittest.expectAsync1(((api.Operation res ponse) { 4288 res
4289 .delete(arg_serviceName)
4290 .then(unittest.expectAsync1(((api.Operation response) {
4543 checkOperation(response); 4291 checkOperation(response);
4544 }))); 4292 })));
4545 }); 4293 });
4546 4294
4547 unittest.test("method--disable", () { 4295 unittest.test("method--disable", () {
4548
4549 var mock = new HttpServerMock(); 4296 var mock = new HttpServerMock();
4550 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4297 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4551 var arg_request = buildDisableServiceRequest(); 4298 var arg_request = buildDisableServiceRequest();
4552 var arg_serviceName = "foo"; 4299 var arg_serviceName = "foo";
4553 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4300 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4554 var obj = new api.DisableServiceRequest.fromJson(json); 4301 var obj = new api.DisableServiceRequest.fromJson(json);
4555 checkDisableServiceRequest(obj); 4302 checkDisableServiceRequest(obj);
4556 4303
4557 var path = (req.url).path; 4304 var path = (req.url).path;
4558 var pathOffset = 0; 4305 var pathOffset = 0;
4559 var index; 4306 var index;
4560 var subPart; 4307 var subPart;
4561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4308 unittest.expect(
4309 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4562 pathOffset += 1; 4310 pathOffset += 1;
4563 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4311 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4312 unittest.equals("v1/services/"));
4564 pathOffset += 12; 4313 pathOffset += 12;
4565 index = path.indexOf(":disable", pathOffset); 4314 index = path.indexOf(":disable", pathOffset);
4566 unittest.expect(index >= 0, unittest.isTrue); 4315 unittest.expect(index >= 0, unittest.isTrue);
4567 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 4316 subPart =
4317 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
4568 pathOffset = index; 4318 pathOffset = index;
4569 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4319 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
4570 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als(":disable")); 4320 unittest.expect(path.substring(pathOffset, pathOffset + 8),
4321 unittest.equals(":disable"));
4571 pathOffset += 8; 4322 pathOffset += 8;
4572 4323
4573 var query = (req.url).query; 4324 var query = (req.url).query;
4574 var queryOffset = 0; 4325 var queryOffset = 0;
4575 var queryMap = {}; 4326 var queryMap = {};
4576 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4327 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4577 parseBool(n) { 4328 parseBool(n) {
4578 if (n == "true") return true; 4329 if (n == "true") return true;
4579 if (n == "false") return false; 4330 if (n == "false") return false;
4580 if (n == null) return null; 4331 if (n == null) return null;
4581 throw new core.ArgumentError("Invalid boolean: $n"); 4332 throw new core.ArgumentError("Invalid boolean: $n");
4582 } 4333 }
4334
4583 if (query.length > 0) { 4335 if (query.length > 0) {
4584 for (var part in query.split("&")) { 4336 for (var part in query.split("&")) {
4585 var keyvalue = part.split("="); 4337 var keyvalue = part.split("=");
4586 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4338 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4339 core.Uri.decodeQueryComponent(keyvalue[1]));
4587 } 4340 }
4588 } 4341 }
4589 4342
4590
4591 var h = { 4343 var h = {
4592 "content-type" : "application/json; charset=utf-8", 4344 "content-type": "application/json; charset=utf-8",
4593 }; 4345 };
4594 var resp = convert.JSON.encode(buildOperation()); 4346 var resp = convert.JSON.encode(buildOperation());
4595 return new async.Future.value(stringResponse(200, h, resp)); 4347 return new async.Future.value(stringResponse(200, h, resp));
4596 }), true); 4348 }), true);
4597 res.disable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api .Operation response) { 4349 res
4350 .disable(arg_request, arg_serviceName)
4351 .then(unittest.expectAsync1(((api.Operation response) {
4598 checkOperation(response); 4352 checkOperation(response);
4599 }))); 4353 })));
4600 }); 4354 });
4601 4355
4602 unittest.test("method--enable", () { 4356 unittest.test("method--enable", () {
4603
4604 var mock = new HttpServerMock(); 4357 var mock = new HttpServerMock();
4605 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4358 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4606 var arg_request = buildEnableServiceRequest(); 4359 var arg_request = buildEnableServiceRequest();
4607 var arg_serviceName = "foo"; 4360 var arg_serviceName = "foo";
4608 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4361 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4609 var obj = new api.EnableServiceRequest.fromJson(json); 4362 var obj = new api.EnableServiceRequest.fromJson(json);
4610 checkEnableServiceRequest(obj); 4363 checkEnableServiceRequest(obj);
4611 4364
4612 var path = (req.url).path; 4365 var path = (req.url).path;
4613 var pathOffset = 0; 4366 var pathOffset = 0;
4614 var index; 4367 var index;
4615 var subPart; 4368 var subPart;
4616 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4369 unittest.expect(
4370 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4617 pathOffset += 1; 4371 pathOffset += 1;
4618 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4372 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4373 unittest.equals("v1/services/"));
4619 pathOffset += 12; 4374 pathOffset += 12;
4620 index = path.indexOf(":enable", pathOffset); 4375 index = path.indexOf(":enable", pathOffset);
4621 unittest.expect(index >= 0, unittest.isTrue); 4376 unittest.expect(index >= 0, unittest.isTrue);
4622 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 4377 subPart =
4378 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
4623 pathOffset = index; 4379 pathOffset = index;
4624 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4380 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
4625 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als(":enable")); 4381 unittest.expect(path.substring(pathOffset, pathOffset + 7),
4382 unittest.equals(":enable"));
4626 pathOffset += 7; 4383 pathOffset += 7;
4627 4384
4628 var query = (req.url).query; 4385 var query = (req.url).query;
4629 var queryOffset = 0; 4386 var queryOffset = 0;
4630 var queryMap = {}; 4387 var queryMap = {};
4631 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4388 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4632 parseBool(n) { 4389 parseBool(n) {
4633 if (n == "true") return true; 4390 if (n == "true") return true;
4634 if (n == "false") return false; 4391 if (n == "false") return false;
4635 if (n == null) return null; 4392 if (n == null) return null;
4636 throw new core.ArgumentError("Invalid boolean: $n"); 4393 throw new core.ArgumentError("Invalid boolean: $n");
4637 } 4394 }
4395
4638 if (query.length > 0) { 4396 if (query.length > 0) {
4639 for (var part in query.split("&")) { 4397 for (var part in query.split("&")) {
4640 var keyvalue = part.split("="); 4398 var keyvalue = part.split("=");
4641 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4399 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4400 core.Uri.decodeQueryComponent(keyvalue[1]));
4642 } 4401 }
4643 } 4402 }
4644 4403
4645
4646 var h = { 4404 var h = {
4647 "content-type" : "application/json; charset=utf-8", 4405 "content-type": "application/json; charset=utf-8",
4648 }; 4406 };
4649 var resp = convert.JSON.encode(buildOperation()); 4407 var resp = convert.JSON.encode(buildOperation());
4650 return new async.Future.value(stringResponse(200, h, resp)); 4408 return new async.Future.value(stringResponse(200, h, resp));
4651 }), true); 4409 }), true);
4652 res.enable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api. Operation response) { 4410 res
4411 .enable(arg_request, arg_serviceName)
4412 .then(unittest.expectAsync1(((api.Operation response) {
4653 checkOperation(response); 4413 checkOperation(response);
4654 }))); 4414 })));
4655 }); 4415 });
4656 4416
4657 unittest.test("method--generateConfigReport", () { 4417 unittest.test("method--generateConfigReport", () {
4658
4659 var mock = new HttpServerMock(); 4418 var mock = new HttpServerMock();
4660 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4419 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4661 var arg_request = buildGenerateConfigReportRequest(); 4420 var arg_request = buildGenerateConfigReportRequest();
4662 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4421 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4663 var obj = new api.GenerateConfigReportRequest.fromJson(json); 4422 var obj = new api.GenerateConfigReportRequest.fromJson(json);
4664 checkGenerateConfigReportRequest(obj); 4423 checkGenerateConfigReportRequest(obj);
4665 4424
4666 var path = (req.url).path; 4425 var path = (req.url).path;
4667 var pathOffset = 0; 4426 var pathOffset = 0;
4668 var index; 4427 var index;
4669 var subPart; 4428 var subPart;
4670 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4429 unittest.expect(
4430 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4671 pathOffset += 1; 4431 pathOffset += 1;
4672 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq uals("v1/services:generateConfigReport")); 4432 unittest.expect(path.substring(pathOffset, pathOffset + 32),
4433 unittest.equals("v1/services:generateConfigReport"));
4673 pathOffset += 32; 4434 pathOffset += 32;
4674 4435
4675 var query = (req.url).query; 4436 var query = (req.url).query;
4676 var queryOffset = 0; 4437 var queryOffset = 0;
4677 var queryMap = {}; 4438 var queryMap = {};
4678 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4439 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4679 parseBool(n) { 4440 parseBool(n) {
4680 if (n == "true") return true; 4441 if (n == "true") return true;
4681 if (n == "false") return false; 4442 if (n == "false") return false;
4682 if (n == null) return null; 4443 if (n == null) return null;
4683 throw new core.ArgumentError("Invalid boolean: $n"); 4444 throw new core.ArgumentError("Invalid boolean: $n");
4684 } 4445 }
4446
4685 if (query.length > 0) { 4447 if (query.length > 0) {
4686 for (var part in query.split("&")) { 4448 for (var part in query.split("&")) {
4687 var keyvalue = part.split("="); 4449 var keyvalue = part.split("=");
4688 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4451 core.Uri.decodeQueryComponent(keyvalue[1]));
4689 } 4452 }
4690 } 4453 }
4691 4454
4692
4693 var h = { 4455 var h = {
4694 "content-type" : "application/json; charset=utf-8", 4456 "content-type": "application/json; charset=utf-8",
4695 }; 4457 };
4696 var resp = convert.JSON.encode(buildGenerateConfigReportResponse()); 4458 var resp = convert.JSON.encode(buildGenerateConfigReportResponse());
4697 return new async.Future.value(stringResponse(200, h, resp)); 4459 return new async.Future.value(stringResponse(200, h, resp));
4698 }), true); 4460 }), true);
4699 res.generateConfigReport(arg_request).then(unittest.expectAsync1(((api.Gen erateConfigReportResponse response) { 4461 res.generateConfigReport(arg_request).then(
4462 unittest.expectAsync1(((api.GenerateConfigReportResponse response) {
4700 checkGenerateConfigReportResponse(response); 4463 checkGenerateConfigReportResponse(response);
4701 }))); 4464 })));
4702 }); 4465 });
4703 4466
4704 unittest.test("method--get", () { 4467 unittest.test("method--get", () {
4705
4706 var mock = new HttpServerMock(); 4468 var mock = new HttpServerMock();
4707 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4469 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4708 var arg_serviceName = "foo"; 4470 var arg_serviceName = "foo";
4709 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4471 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4710 var path = (req.url).path; 4472 var path = (req.url).path;
4711 var pathOffset = 0; 4473 var pathOffset = 0;
4712 var index; 4474 var index;
4713 var subPart; 4475 var subPart;
4714 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4476 unittest.expect(
4477 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4715 pathOffset += 1; 4478 pathOffset += 1;
4716 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4479 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4480 unittest.equals("v1/services/"));
4717 pathOffset += 12; 4481 pathOffset += 12;
4718 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 4482 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
4719 pathOffset = path.length; 4483 pathOffset = path.length;
4720 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4484 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
4721 4485
4722 var query = (req.url).query; 4486 var query = (req.url).query;
4723 var queryOffset = 0; 4487 var queryOffset = 0;
4724 var queryMap = {}; 4488 var queryMap = {};
4725 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4489 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4726 parseBool(n) { 4490 parseBool(n) {
4727 if (n == "true") return true; 4491 if (n == "true") return true;
4728 if (n == "false") return false; 4492 if (n == "false") return false;
4729 if (n == null) return null; 4493 if (n == null) return null;
4730 throw new core.ArgumentError("Invalid boolean: $n"); 4494 throw new core.ArgumentError("Invalid boolean: $n");
4731 } 4495 }
4496
4732 if (query.length > 0) { 4497 if (query.length > 0) {
4733 for (var part in query.split("&")) { 4498 for (var part in query.split("&")) {
4734 var keyvalue = part.split("="); 4499 var keyvalue = part.split("=");
4735 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4500 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4501 core.Uri.decodeQueryComponent(keyvalue[1]));
4736 } 4502 }
4737 } 4503 }
4738 4504
4739
4740 var h = { 4505 var h = {
4741 "content-type" : "application/json; charset=utf-8", 4506 "content-type": "application/json; charset=utf-8",
4742 }; 4507 };
4743 var resp = convert.JSON.encode(buildManagedService()); 4508 var resp = convert.JSON.encode(buildManagedService());
4744 return new async.Future.value(stringResponse(200, h, resp)); 4509 return new async.Future.value(stringResponse(200, h, resp));
4745 }), true); 4510 }), true);
4746 res.get(arg_serviceName).then(unittest.expectAsync1(((api.ManagedService r esponse) { 4511 res
4512 .get(arg_serviceName)
4513 .then(unittest.expectAsync1(((api.ManagedService response) {
4747 checkManagedService(response); 4514 checkManagedService(response);
4748 }))); 4515 })));
4749 }); 4516 });
4750 4517
4751 unittest.test("method--getConfig", () { 4518 unittest.test("method--getConfig", () {
4752
4753 var mock = new HttpServerMock(); 4519 var mock = new HttpServerMock();
4754 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4520 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4755 var arg_serviceName = "foo"; 4521 var arg_serviceName = "foo";
4522 var arg_view = "foo";
4756 var arg_configId = "foo"; 4523 var arg_configId = "foo";
4757 var arg_view = "foo";
4758 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4524 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4759 var path = (req.url).path; 4525 var path = (req.url).path;
4760 var pathOffset = 0; 4526 var pathOffset = 0;
4761 var index; 4527 var index;
4762 var subPart; 4528 var subPart;
4763 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4529 unittest.expect(
4530 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4764 pathOffset += 1; 4531 pathOffset += 1;
4765 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4532 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4533 unittest.equals("v1/services/"));
4766 pathOffset += 12; 4534 pathOffset += 12;
4767 index = path.indexOf("/config", pathOffset); 4535 index = path.indexOf("/config", pathOffset);
4768 unittest.expect(index >= 0, unittest.isTrue); 4536 unittest.expect(index >= 0, unittest.isTrue);
4769 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 4537 subPart =
4538 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
4770 pathOffset = index; 4539 pathOffset = index;
4771 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4540 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
4772 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ als("/config")); 4541 unittest.expect(path.substring(pathOffset, pathOffset + 7),
4542 unittest.equals("/config"));
4773 pathOffset += 7; 4543 pathOffset += 7;
4774 4544
4775 var query = (req.url).query; 4545 var query = (req.url).query;
4776 var queryOffset = 0; 4546 var queryOffset = 0;
4777 var queryMap = {}; 4547 var queryMap = {};
4778 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4548 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4779 parseBool(n) { 4549 parseBool(n) {
4780 if (n == "true") return true; 4550 if (n == "true") return true;
4781 if (n == "false") return false; 4551 if (n == "false") return false;
4782 if (n == null) return null; 4552 if (n == null) return null;
4783 throw new core.ArgumentError("Invalid boolean: $n"); 4553 throw new core.ArgumentError("Invalid boolean: $n");
4784 } 4554 }
4555
4785 if (query.length > 0) { 4556 if (query.length > 0) {
4786 for (var part in query.split("&")) { 4557 for (var part in query.split("&")) {
4787 var keyvalue = part.split("="); 4558 var keyvalue = part.split("=");
4788 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4559 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4560 core.Uri.decodeQueryComponent(keyvalue[1]));
4789 } 4561 }
4790 } 4562 }
4791 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId ));
4792 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4563 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
4793 4564 unittest.expect(
4565 queryMap["configId"].first, unittest.equals(arg_configId));
4794 4566
4795 var h = { 4567 var h = {
4796 "content-type" : "application/json; charset=utf-8", 4568 "content-type": "application/json; charset=utf-8",
4797 }; 4569 };
4798 var resp = convert.JSON.encode(buildService()); 4570 var resp = convert.JSON.encode(buildService());
4799 return new async.Future.value(stringResponse(200, h, resp)); 4571 return new async.Future.value(stringResponse(200, h, resp));
4800 }), true); 4572 }), true);
4801 res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).the n(unittest.expectAsync1(((api.Service response) { 4573 res
4574 .getConfig(arg_serviceName, view: arg_view, configId: arg_configId)
4575 .then(unittest.expectAsync1(((api.Service response) {
4802 checkService(response); 4576 checkService(response);
4803 }))); 4577 })));
4804 }); 4578 });
4805 4579
4806 unittest.test("method--getIamPolicy", () { 4580 unittest.test("method--getIamPolicy", () {
4807
4808 var mock = new HttpServerMock(); 4581 var mock = new HttpServerMock();
4809 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4582 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4810 var arg_request = buildGetIamPolicyRequest(); 4583 var arg_request = buildGetIamPolicyRequest();
4811 var arg_resource = "foo"; 4584 var arg_resource = "foo";
4812 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4585 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4813 var obj = new api.GetIamPolicyRequest.fromJson(json); 4586 var obj = new api.GetIamPolicyRequest.fromJson(json);
4814 checkGetIamPolicyRequest(obj); 4587 checkGetIamPolicyRequest(obj);
4815 4588
4816 var path = (req.url).path; 4589 var path = (req.url).path;
4817 var pathOffset = 0; 4590 var pathOffset = 0;
4818 var index; 4591 var index;
4819 var subPart; 4592 var subPart;
4820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4593 unittest.expect(
4594 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4821 pathOffset += 1; 4595 pathOffset += 1;
4822 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 4596 unittest.expect(
4597 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
4823 pathOffset += 3; 4598 pathOffset += 3;
4824 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 4599 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
4825 4600
4826 var query = (req.url).query; 4601 var query = (req.url).query;
4827 var queryOffset = 0; 4602 var queryOffset = 0;
4828 var queryMap = {}; 4603 var queryMap = {};
4829 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4604 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4830 parseBool(n) { 4605 parseBool(n) {
4831 if (n == "true") return true; 4606 if (n == "true") return true;
4832 if (n == "false") return false; 4607 if (n == "false") return false;
4833 if (n == null) return null; 4608 if (n == null) return null;
4834 throw new core.ArgumentError("Invalid boolean: $n"); 4609 throw new core.ArgumentError("Invalid boolean: $n");
4835 } 4610 }
4611
4836 if (query.length > 0) { 4612 if (query.length > 0) {
4837 for (var part in query.split("&")) { 4613 for (var part in query.split("&")) {
4838 var keyvalue = part.split("="); 4614 var keyvalue = part.split("=");
4839 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4615 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4616 core.Uri.decodeQueryComponent(keyvalue[1]));
4840 } 4617 }
4841 } 4618 }
4842 4619
4843
4844 var h = { 4620 var h = {
4845 "content-type" : "application/json; charset=utf-8", 4621 "content-type": "application/json; charset=utf-8",
4846 }; 4622 };
4847 var resp = convert.JSON.encode(buildPolicy()); 4623 var resp = convert.JSON.encode(buildPolicy());
4848 return new async.Future.value(stringResponse(200, h, resp)); 4624 return new async.Future.value(stringResponse(200, h, resp));
4849 }), true); 4625 }), true);
4850 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a pi.Policy response) { 4626 res
4627 .getIamPolicy(arg_request, arg_resource)
4628 .then(unittest.expectAsync1(((api.Policy response) {
4851 checkPolicy(response); 4629 checkPolicy(response);
4852 }))); 4630 })));
4853 }); 4631 });
4854 4632
4855 unittest.test("method--list", () { 4633 unittest.test("method--list", () {
4856
4857 var mock = new HttpServerMock(); 4634 var mock = new HttpServerMock();
4858 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4635 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4859 var arg_pageSize = 42;
4860 var arg_producerProjectId = "foo"; 4636 var arg_producerProjectId = "foo";
4861 var arg_consumerId = "foo"; 4637 var arg_consumerId = "foo";
4862 var arg_pageToken = "foo"; 4638 var arg_pageToken = "foo";
4639 var arg_pageSize = 42;
4863 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4640 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4864 var path = (req.url).path; 4641 var path = (req.url).path;
4865 var pathOffset = 0; 4642 var pathOffset = 0;
4866 var index; 4643 var index;
4867 var subPart; 4644 var subPart;
4868 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4645 unittest.expect(
4646 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4869 pathOffset += 1; 4647 pathOffset += 1;
4870 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("v1/services")); 4648 unittest.expect(path.substring(pathOffset, pathOffset + 11),
4649 unittest.equals("v1/services"));
4871 pathOffset += 11; 4650 pathOffset += 11;
4872 4651
4873 var query = (req.url).query; 4652 var query = (req.url).query;
4874 var queryOffset = 0; 4653 var queryOffset = 0;
4875 var queryMap = {}; 4654 var queryMap = {};
4876 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4655 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4877 parseBool(n) { 4656 parseBool(n) {
4878 if (n == "true") return true; 4657 if (n == "true") return true;
4879 if (n == "false") return false; 4658 if (n == "false") return false;
4880 if (n == null) return null; 4659 if (n == null) return null;
4881 throw new core.ArgumentError("Invalid boolean: $n"); 4660 throw new core.ArgumentError("Invalid boolean: $n");
4882 } 4661 }
4662
4883 if (query.length > 0) { 4663 if (query.length > 0) {
4884 for (var part in query.split("&")) { 4664 for (var part in query.split("&")) {
4885 var keyvalue = part.split("="); 4665 var keyvalue = part.split("=");
4886 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4666 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4667 core.Uri.decodeQueryComponent(keyvalue[1]));
4887 } 4668 }
4888 } 4669 }
4889 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4670 unittest.expect(queryMap["producerProjectId"].first,
4890 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg _producerProjectId)); 4671 unittest.equals(arg_producerProjectId));
4891 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum erId)); 4672 unittest.expect(
4892 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4673 queryMap["consumerId"].first, unittest.equals(arg_consumerId));
4893 4674 unittest.expect(
4675 queryMap["pageToken"].first, unittest.equals(arg_pageToken));
4676 unittest.expect(core.int.parse(queryMap["pageSize"].first),
4677 unittest.equals(arg_pageSize));
4894 4678
4895 var h = { 4679 var h = {
4896 "content-type" : "application/json; charset=utf-8", 4680 "content-type": "application/json; charset=utf-8",
4897 }; 4681 };
4898 var resp = convert.JSON.encode(buildListServicesResponse()); 4682 var resp = convert.JSON.encode(buildListServicesResponse());
4899 return new async.Future.value(stringResponse(200, h, resp)); 4683 return new async.Future.value(stringResponse(200, h, resp));
4900 }), true); 4684 }), true);
4901 res.list(pageSize: arg_pageSize, producerProjectId: arg_producerProjectId, consumerId: arg_consumerId, pageToken: arg_pageToken).then(unittest.expectAsync 1(((api.ListServicesResponse response) { 4685 res
4686 .list(
4687 producerProjectId: arg_producerProjectId,
4688 consumerId: arg_consumerId,
4689 pageToken: arg_pageToken,
4690 pageSize: arg_pageSize)
4691 .then(unittest.expectAsync1(((api.ListServicesResponse response) {
4902 checkListServicesResponse(response); 4692 checkListServicesResponse(response);
4903 }))); 4693 })));
4904 }); 4694 });
4905 4695
4906 unittest.test("method--setIamPolicy", () { 4696 unittest.test("method--setIamPolicy", () {
4907
4908 var mock = new HttpServerMock(); 4697 var mock = new HttpServerMock();
4909 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4698 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4910 var arg_request = buildSetIamPolicyRequest(); 4699 var arg_request = buildSetIamPolicyRequest();
4911 var arg_resource = "foo"; 4700 var arg_resource = "foo";
4912 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4701 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4913 var obj = new api.SetIamPolicyRequest.fromJson(json); 4702 var obj = new api.SetIamPolicyRequest.fromJson(json);
4914 checkSetIamPolicyRequest(obj); 4703 checkSetIamPolicyRequest(obj);
4915 4704
4916 var path = (req.url).path; 4705 var path = (req.url).path;
4917 var pathOffset = 0; 4706 var pathOffset = 0;
4918 var index; 4707 var index;
4919 var subPart; 4708 var subPart;
4920 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4709 unittest.expect(
4710 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4921 pathOffset += 1; 4711 pathOffset += 1;
4922 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 4712 unittest.expect(
4713 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
4923 pathOffset += 3; 4714 pathOffset += 3;
4924 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 4715 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
4925 4716
4926 var query = (req.url).query; 4717 var query = (req.url).query;
4927 var queryOffset = 0; 4718 var queryOffset = 0;
4928 var queryMap = {}; 4719 var queryMap = {};
4929 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4720 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4930 parseBool(n) { 4721 parseBool(n) {
4931 if (n == "true") return true; 4722 if (n == "true") return true;
4932 if (n == "false") return false; 4723 if (n == "false") return false;
4933 if (n == null) return null; 4724 if (n == null) return null;
4934 throw new core.ArgumentError("Invalid boolean: $n"); 4725 throw new core.ArgumentError("Invalid boolean: $n");
4935 } 4726 }
4727
4936 if (query.length > 0) { 4728 if (query.length > 0) {
4937 for (var part in query.split("&")) { 4729 for (var part in query.split("&")) {
4938 var keyvalue = part.split("="); 4730 var keyvalue = part.split("=");
4939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4731 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4732 core.Uri.decodeQueryComponent(keyvalue[1]));
4940 } 4733 }
4941 } 4734 }
4942 4735
4943
4944 var h = { 4736 var h = {
4945 "content-type" : "application/json; charset=utf-8", 4737 "content-type": "application/json; charset=utf-8",
4946 }; 4738 };
4947 var resp = convert.JSON.encode(buildPolicy()); 4739 var resp = convert.JSON.encode(buildPolicy());
4948 return new async.Future.value(stringResponse(200, h, resp)); 4740 return new async.Future.value(stringResponse(200, h, resp));
4949 }), true); 4741 }), true);
4950 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a pi.Policy response) { 4742 res
4743 .setIamPolicy(arg_request, arg_resource)
4744 .then(unittest.expectAsync1(((api.Policy response) {
4951 checkPolicy(response); 4745 checkPolicy(response);
4952 }))); 4746 })));
4953 }); 4747 });
4954 4748
4955 unittest.test("method--testIamPermissions", () { 4749 unittest.test("method--testIamPermissions", () {
4956
4957 var mock = new HttpServerMock(); 4750 var mock = new HttpServerMock();
4958 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4751 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4959 var arg_request = buildTestIamPermissionsRequest(); 4752 var arg_request = buildTestIamPermissionsRequest();
4960 var arg_resource = "foo"; 4753 var arg_resource = "foo";
4961 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4754 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4962 var obj = new api.TestIamPermissionsRequest.fromJson(json); 4755 var obj = new api.TestIamPermissionsRequest.fromJson(json);
4963 checkTestIamPermissionsRequest(obj); 4756 checkTestIamPermissionsRequest(obj);
4964 4757
4965 var path = (req.url).path; 4758 var path = (req.url).path;
4966 var pathOffset = 0; 4759 var pathOffset = 0;
4967 var index; 4760 var index;
4968 var subPart; 4761 var subPart;
4969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4762 unittest.expect(
4763 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
4970 pathOffset += 1; 4764 pathOffset += 1;
4971 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 4765 unittest.expect(
4766 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
4972 pathOffset += 3; 4767 pathOffset += 3;
4973 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 4768 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
4974 4769
4975 var query = (req.url).query; 4770 var query = (req.url).query;
4976 var queryOffset = 0; 4771 var queryOffset = 0;
4977 var queryMap = {}; 4772 var queryMap = {};
4978 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4773 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4979 parseBool(n) { 4774 parseBool(n) {
4980 if (n == "true") return true; 4775 if (n == "true") return true;
4981 if (n == "false") return false; 4776 if (n == "false") return false;
4982 if (n == null) return null; 4777 if (n == null) return null;
4983 throw new core.ArgumentError("Invalid boolean: $n"); 4778 throw new core.ArgumentError("Invalid boolean: $n");
4984 } 4779 }
4780
4985 if (query.length > 0) { 4781 if (query.length > 0) {
4986 for (var part in query.split("&")) { 4782 for (var part in query.split("&")) {
4987 var keyvalue = part.split("="); 4783 var keyvalue = part.split("=");
4988 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4784 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4785 core.Uri.decodeQueryComponent(keyvalue[1]));
4989 } 4786 }
4990 } 4787 }
4991 4788
4992
4993 var h = { 4789 var h = {
4994 "content-type" : "application/json; charset=utf-8", 4790 "content-type": "application/json; charset=utf-8",
4995 }; 4791 };
4996 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); 4792 var resp = convert.JSON.encode(buildTestIamPermissionsResponse());
4997 return new async.Future.value(stringResponse(200, h, resp)); 4793 return new async.Future.value(stringResponse(200, h, resp));
4998 }), true); 4794 }), true);
4999 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn c1(((api.TestIamPermissionsResponse response) { 4795 res.testIamPermissions(arg_request, arg_resource).then(
4796 unittest.expectAsync1(((api.TestIamPermissionsResponse response) {
5000 checkTestIamPermissionsResponse(response); 4797 checkTestIamPermissionsResponse(response);
5001 }))); 4798 })));
5002 }); 4799 });
5003 4800
5004 unittest.test("method--undelete", () { 4801 unittest.test("method--undelete", () {
5005
5006 var mock = new HttpServerMock(); 4802 var mock = new HttpServerMock();
5007 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4803 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
5008 var arg_serviceName = "foo"; 4804 var arg_serviceName = "foo";
5009 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4805 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5010 var path = (req.url).path; 4806 var path = (req.url).path;
5011 var pathOffset = 0; 4807 var pathOffset = 0;
5012 var index; 4808 var index;
5013 var subPart; 4809 var subPart;
5014 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4810 unittest.expect(
4811 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5015 pathOffset += 1; 4812 pathOffset += 1;
5016 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4813 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4814 unittest.equals("v1/services/"));
5017 pathOffset += 12; 4815 pathOffset += 12;
5018 index = path.indexOf(":undelete", pathOffset); 4816 index = path.indexOf(":undelete", pathOffset);
5019 unittest.expect(index >= 0, unittest.isTrue); 4817 unittest.expect(index >= 0, unittest.isTrue);
5020 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 4818 subPart =
4819 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5021 pathOffset = index; 4820 pathOffset = index;
5022 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4821 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5023 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als(":undelete")); 4822 unittest.expect(path.substring(pathOffset, pathOffset + 9),
4823 unittest.equals(":undelete"));
5024 pathOffset += 9; 4824 pathOffset += 9;
5025 4825
5026 var query = (req.url).query; 4826 var query = (req.url).query;
5027 var queryOffset = 0; 4827 var queryOffset = 0;
5028 var queryMap = {}; 4828 var queryMap = {};
5029 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4829 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5030 parseBool(n) { 4830 parseBool(n) {
5031 if (n == "true") return true; 4831 if (n == "true") return true;
5032 if (n == "false") return false; 4832 if (n == "false") return false;
5033 if (n == null) return null; 4833 if (n == null) return null;
5034 throw new core.ArgumentError("Invalid boolean: $n"); 4834 throw new core.ArgumentError("Invalid boolean: $n");
5035 } 4835 }
4836
5036 if (query.length > 0) { 4837 if (query.length > 0) {
5037 for (var part in query.split("&")) { 4838 for (var part in query.split("&")) {
5038 var keyvalue = part.split("="); 4839 var keyvalue = part.split("=");
5039 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4840 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4841 core.Uri.decodeQueryComponent(keyvalue[1]));
5040 } 4842 }
5041 } 4843 }
5042 4844
5043
5044 var h = { 4845 var h = {
5045 "content-type" : "application/json; charset=utf-8", 4846 "content-type": "application/json; charset=utf-8",
5046 }; 4847 };
5047 var resp = convert.JSON.encode(buildOperation()); 4848 var resp = convert.JSON.encode(buildOperation());
5048 return new async.Future.value(stringResponse(200, h, resp)); 4849 return new async.Future.value(stringResponse(200, h, resp));
5049 }), true); 4850 }), true);
5050 res.undelete(arg_serviceName).then(unittest.expectAsync1(((api.Operation r esponse) { 4851 res
4852 .undelete(arg_serviceName)
4853 .then(unittest.expectAsync1(((api.Operation response) {
5051 checkOperation(response); 4854 checkOperation(response);
5052 }))); 4855 })));
5053 }); 4856 });
5054
5055 }); 4857 });
5056 4858
5057
5058 unittest.group("resource-ServicesConfigsResourceApi", () { 4859 unittest.group("resource-ServicesConfigsResourceApi", () {
5059 unittest.test("method--create", () { 4860 unittest.test("method--create", () {
5060
5061 var mock = new HttpServerMock(); 4861 var mock = new HttpServerMock();
5062 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se rvices.configs; 4862 api.ServicesConfigsResourceApi res =
4863 new api.ServicemanagementApi(mock).services.configs;
5063 var arg_request = buildService(); 4864 var arg_request = buildService();
5064 var arg_serviceName = "foo"; 4865 var arg_serviceName = "foo";
5065 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4866 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5066 var obj = new api.Service.fromJson(json); 4867 var obj = new api.Service.fromJson(json);
5067 checkService(obj); 4868 checkService(obj);
5068 4869
5069 var path = (req.url).path; 4870 var path = (req.url).path;
5070 var pathOffset = 0; 4871 var pathOffset = 0;
5071 var index; 4872 var index;
5072 var subPart; 4873 var subPart;
5073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4874 unittest.expect(
4875 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5074 pathOffset += 1; 4876 pathOffset += 1;
5075 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4877 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4878 unittest.equals("v1/services/"));
5076 pathOffset += 12; 4879 pathOffset += 12;
5077 index = path.indexOf("/configs", pathOffset); 4880 index = path.indexOf("/configs", pathOffset);
5078 unittest.expect(index >= 0, unittest.isTrue); 4881 unittest.expect(index >= 0, unittest.isTrue);
5079 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 4882 subPart =
4883 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5080 pathOffset = index; 4884 pathOffset = index;
5081 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4885 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5082 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/configs")); 4886 unittest.expect(path.substring(pathOffset, pathOffset + 8),
4887 unittest.equals("/configs"));
5083 pathOffset += 8; 4888 pathOffset += 8;
5084 4889
5085 var query = (req.url).query; 4890 var query = (req.url).query;
5086 var queryOffset = 0; 4891 var queryOffset = 0;
5087 var queryMap = {}; 4892 var queryMap = {};
5088 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4893 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5089 parseBool(n) { 4894 parseBool(n) {
5090 if (n == "true") return true; 4895 if (n == "true") return true;
5091 if (n == "false") return false; 4896 if (n == "false") return false;
5092 if (n == null) return null; 4897 if (n == null) return null;
5093 throw new core.ArgumentError("Invalid boolean: $n"); 4898 throw new core.ArgumentError("Invalid boolean: $n");
5094 } 4899 }
4900
5095 if (query.length > 0) { 4901 if (query.length > 0) {
5096 for (var part in query.split("&")) { 4902 for (var part in query.split("&")) {
5097 var keyvalue = part.split("="); 4903 var keyvalue = part.split("=");
5098 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4904 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4905 core.Uri.decodeQueryComponent(keyvalue[1]));
5099 } 4906 }
5100 } 4907 }
5101 4908
5102
5103 var h = { 4909 var h = {
5104 "content-type" : "application/json; charset=utf-8", 4910 "content-type": "application/json; charset=utf-8",
5105 }; 4911 };
5106 var resp = convert.JSON.encode(buildService()); 4912 var resp = convert.JSON.encode(buildService());
5107 return new async.Future.value(stringResponse(200, h, resp)); 4913 return new async.Future.value(stringResponse(200, h, resp));
5108 }), true); 4914 }), true);
5109 res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api. Service response) { 4915 res
4916 .create(arg_request, arg_serviceName)
4917 .then(unittest.expectAsync1(((api.Service response) {
5110 checkService(response); 4918 checkService(response);
5111 }))); 4919 })));
5112 }); 4920 });
5113 4921
5114 unittest.test("method--get", () { 4922 unittest.test("method--get", () {
5115
5116 var mock = new HttpServerMock(); 4923 var mock = new HttpServerMock();
5117 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se rvices.configs; 4924 api.ServicesConfigsResourceApi res =
4925 new api.ServicemanagementApi(mock).services.configs;
5118 var arg_serviceName = "foo"; 4926 var arg_serviceName = "foo";
5119 var arg_configId = "foo"; 4927 var arg_configId = "foo";
5120 var arg_view = "foo"; 4928 var arg_view = "foo";
5121 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4929 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5122 var path = (req.url).path; 4930 var path = (req.url).path;
5123 var pathOffset = 0; 4931 var pathOffset = 0;
5124 var index; 4932 var index;
5125 var subPart; 4933 var subPart;
5126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4934 unittest.expect(
4935 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5127 pathOffset += 1; 4936 pathOffset += 1;
5128 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 4937 unittest.expect(path.substring(pathOffset, pathOffset + 12),
4938 unittest.equals("v1/services/"));
5129 pathOffset += 12; 4939 pathOffset += 12;
5130 index = path.indexOf("/configs/", pathOffset); 4940 index = path.indexOf("/configs/", pathOffset);
5131 unittest.expect(index >= 0, unittest.isTrue); 4941 unittest.expect(index >= 0, unittest.isTrue);
5132 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 4942 subPart =
4943 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5133 pathOffset = index; 4944 pathOffset = index;
5134 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 4945 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5135 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/configs/")); 4946 unittest.expect(path.substring(pathOffset, pathOffset + 9),
4947 unittest.equals("/configs/"));
5136 pathOffset += 9; 4948 pathOffset += 9;
5137 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 4949 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
5138 pathOffset = path.length; 4950 pathOffset = path.length;
5139 unittest.expect(subPart, unittest.equals("$arg_configId")); 4951 unittest.expect(subPart, unittest.equals("$arg_configId"));
5140 4952
5141 var query = (req.url).query; 4953 var query = (req.url).query;
5142 var queryOffset = 0; 4954 var queryOffset = 0;
5143 var queryMap = {}; 4955 var queryMap = {};
5144 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4956 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5145 parseBool(n) { 4957 parseBool(n) {
5146 if (n == "true") return true; 4958 if (n == "true") return true;
5147 if (n == "false") return false; 4959 if (n == "false") return false;
5148 if (n == null) return null; 4960 if (n == null) return null;
5149 throw new core.ArgumentError("Invalid boolean: $n"); 4961 throw new core.ArgumentError("Invalid boolean: $n");
5150 } 4962 }
4963
5151 if (query.length > 0) { 4964 if (query.length > 0) {
5152 for (var part in query.split("&")) { 4965 for (var part in query.split("&")) {
5153 var keyvalue = part.split("="); 4966 var keyvalue = part.split("=");
5154 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4967 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
4968 core.Uri.decodeQueryComponent(keyvalue[1]));
5155 } 4969 }
5156 } 4970 }
5157 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4971 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
5158 4972
5159
5160 var h = { 4973 var h = {
5161 "content-type" : "application/json; charset=utf-8", 4974 "content-type": "application/json; charset=utf-8",
5162 }; 4975 };
5163 var resp = convert.JSON.encode(buildService()); 4976 var resp = convert.JSON.encode(buildService());
5164 return new async.Future.value(stringResponse(200, h, resp)); 4977 return new async.Future.value(stringResponse(200, h, resp));
5165 }), true); 4978 }), true);
5166 res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expec tAsync1(((api.Service response) { 4979 res
4980 .get(arg_serviceName, arg_configId, view: arg_view)
4981 .then(unittest.expectAsync1(((api.Service response) {
5167 checkService(response); 4982 checkService(response);
5168 }))); 4983 })));
5169 }); 4984 });
5170 4985
5171 unittest.test("method--list", () { 4986 unittest.test("method--list", () {
5172
5173 var mock = new HttpServerMock(); 4987 var mock = new HttpServerMock();
5174 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se rvices.configs; 4988 api.ServicesConfigsResourceApi res =
4989 new api.ServicemanagementApi(mock).services.configs;
5175 var arg_serviceName = "foo"; 4990 var arg_serviceName = "foo";
5176 var arg_pageToken = "foo"; 4991 var arg_pageToken = "foo";
5177 var arg_pageSize = 42; 4992 var arg_pageSize = 42;
5178 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4993 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5179 var path = (req.url).path; 4994 var path = (req.url).path;
5180 var pathOffset = 0; 4995 var pathOffset = 0;
5181 var index; 4996 var index;
5182 var subPart; 4997 var subPart;
5183 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4998 unittest.expect(
4999 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5184 pathOffset += 1; 5000 pathOffset += 1;
5185 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 5001 unittest.expect(path.substring(pathOffset, pathOffset + 12),
5002 unittest.equals("v1/services/"));
5186 pathOffset += 12; 5003 pathOffset += 12;
5187 index = path.indexOf("/configs", pathOffset); 5004 index = path.indexOf("/configs", pathOffset);
5188 unittest.expect(index >= 0, unittest.isTrue); 5005 unittest.expect(index >= 0, unittest.isTrue);
5189 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 5006 subPart =
5007 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5190 pathOffset = index; 5008 pathOffset = index;
5191 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 5009 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5192 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/configs")); 5010 unittest.expect(path.substring(pathOffset, pathOffset + 8),
5011 unittest.equals("/configs"));
5193 pathOffset += 8; 5012 pathOffset += 8;
5194 5013
5195 var query = (req.url).query; 5014 var query = (req.url).query;
5196 var queryOffset = 0; 5015 var queryOffset = 0;
5197 var queryMap = {}; 5016 var queryMap = {};
5198 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5017 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5199 parseBool(n) { 5018 parseBool(n) {
5200 if (n == "true") return true; 5019 if (n == "true") return true;
5201 if (n == "false") return false; 5020 if (n == "false") return false;
5202 if (n == null) return null; 5021 if (n == null) return null;
5203 throw new core.ArgumentError("Invalid boolean: $n"); 5022 throw new core.ArgumentError("Invalid boolean: $n");
5204 } 5023 }
5024
5205 if (query.length > 0) { 5025 if (query.length > 0) {
5206 for (var part in query.split("&")) { 5026 for (var part in query.split("&")) {
5207 var keyvalue = part.split("="); 5027 var keyvalue = part.split("=");
5208 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5028 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5029 core.Uri.decodeQueryComponent(keyvalue[1]));
5209 } 5030 }
5210 } 5031 }
5211 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 5032 unittest.expect(
5212 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 5033 queryMap["pageToken"].first, unittest.equals(arg_pageToken));
5213 5034 unittest.expect(core.int.parse(queryMap["pageSize"].first),
5035 unittest.equals(arg_pageSize));
5214 5036
5215 var h = { 5037 var h = {
5216 "content-type" : "application/json; charset=utf-8", 5038 "content-type": "application/json; charset=utf-8",
5217 }; 5039 };
5218 var resp = convert.JSON.encode(buildListServiceConfigsResponse()); 5040 var resp = convert.JSON.encode(buildListServiceConfigsResponse());
5219 return new async.Future.value(stringResponse(200, h, resp)); 5041 return new async.Future.value(stringResponse(200, h, resp));
5220 }), true); 5042 }), true);
5221 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize ).then(unittest.expectAsync1(((api.ListServiceConfigsResponse response) { 5043 res
5044 .list(arg_serviceName,
5045 pageToken: arg_pageToken, pageSize: arg_pageSize)
5046 .then(
5047 unittest.expectAsync1(((api.ListServiceConfigsResponse response) {
5222 checkListServiceConfigsResponse(response); 5048 checkListServiceConfigsResponse(response);
5223 }))); 5049 })));
5224 }); 5050 });
5225 5051
5226 unittest.test("method--submit", () { 5052 unittest.test("method--submit", () {
5227
5228 var mock = new HttpServerMock(); 5053 var mock = new HttpServerMock();
5229 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se rvices.configs; 5054 api.ServicesConfigsResourceApi res =
5055 new api.ServicemanagementApi(mock).services.configs;
5230 var arg_request = buildSubmitConfigSourceRequest(); 5056 var arg_request = buildSubmitConfigSourceRequest();
5231 var arg_serviceName = "foo"; 5057 var arg_serviceName = "foo";
5232 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5058 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5233 var obj = new api.SubmitConfigSourceRequest.fromJson(json); 5059 var obj = new api.SubmitConfigSourceRequest.fromJson(json);
5234 checkSubmitConfigSourceRequest(obj); 5060 checkSubmitConfigSourceRequest(obj);
5235 5061
5236 var path = (req.url).path; 5062 var path = (req.url).path;
5237 var pathOffset = 0; 5063 var pathOffset = 0;
5238 var index; 5064 var index;
5239 var subPart; 5065 var subPart;
5240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5066 unittest.expect(
5067 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5241 pathOffset += 1; 5068 pathOffset += 1;
5242 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 5069 unittest.expect(path.substring(pathOffset, pathOffset + 12),
5070 unittest.equals("v1/services/"));
5243 pathOffset += 12; 5071 pathOffset += 12;
5244 index = path.indexOf("/configs:submit", pathOffset); 5072 index = path.indexOf("/configs:submit", pathOffset);
5245 unittest.expect(index >= 0, unittest.isTrue); 5073 unittest.expect(index >= 0, unittest.isTrue);
5246 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 5074 subPart =
5075 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5247 pathOffset = index; 5076 pathOffset = index;
5248 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 5077 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5249 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("/configs:submit")); 5078 unittest.expect(path.substring(pathOffset, pathOffset + 15),
5079 unittest.equals("/configs:submit"));
5250 pathOffset += 15; 5080 pathOffset += 15;
5251 5081
5252 var query = (req.url).query; 5082 var query = (req.url).query;
5253 var queryOffset = 0; 5083 var queryOffset = 0;
5254 var queryMap = {}; 5084 var queryMap = {};
5255 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5085 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5256 parseBool(n) { 5086 parseBool(n) {
5257 if (n == "true") return true; 5087 if (n == "true") return true;
5258 if (n == "false") return false; 5088 if (n == "false") return false;
5259 if (n == null) return null; 5089 if (n == null) return null;
5260 throw new core.ArgumentError("Invalid boolean: $n"); 5090 throw new core.ArgumentError("Invalid boolean: $n");
5261 } 5091 }
5092
5262 if (query.length > 0) { 5093 if (query.length > 0) {
5263 for (var part in query.split("&")) { 5094 for (var part in query.split("&")) {
5264 var keyvalue = part.split("="); 5095 var keyvalue = part.split("=");
5265 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5096 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5097 core.Uri.decodeQueryComponent(keyvalue[1]));
5266 } 5098 }
5267 } 5099 }
5268 5100
5269
5270 var h = { 5101 var h = {
5271 "content-type" : "application/json; charset=utf-8", 5102 "content-type": "application/json; charset=utf-8",
5272 }; 5103 };
5273 var resp = convert.JSON.encode(buildOperation()); 5104 var resp = convert.JSON.encode(buildOperation());
5274 return new async.Future.value(stringResponse(200, h, resp)); 5105 return new async.Future.value(stringResponse(200, h, resp));
5275 }), true); 5106 }), true);
5276 res.submit(arg_request, arg_serviceName).then(unittest.expectAsync1(((api. Operation response) { 5107 res
5108 .submit(arg_request, arg_serviceName)
5109 .then(unittest.expectAsync1(((api.Operation response) {
5277 checkOperation(response); 5110 checkOperation(response);
5278 }))); 5111 })));
5279 }); 5112 });
5280
5281 }); 5113 });
5282 5114
5283
5284 unittest.group("resource-ServicesConsumersResourceApi", () { 5115 unittest.group("resource-ServicesConsumersResourceApi", () {
5285 unittest.test("method--getIamPolicy", () { 5116 unittest.test("method--getIamPolicy", () {
5286
5287 var mock = new HttpServerMock(); 5117 var mock = new HttpServerMock();
5288 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock). services.consumers; 5118 api.ServicesConsumersResourceApi res =
5119 new api.ServicemanagementApi(mock).services.consumers;
5289 var arg_request = buildGetIamPolicyRequest(); 5120 var arg_request = buildGetIamPolicyRequest();
5290 var arg_resource = "foo"; 5121 var arg_resource = "foo";
5291 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5122 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5292 var obj = new api.GetIamPolicyRequest.fromJson(json); 5123 var obj = new api.GetIamPolicyRequest.fromJson(json);
5293 checkGetIamPolicyRequest(obj); 5124 checkGetIamPolicyRequest(obj);
5294 5125
5295 var path = (req.url).path; 5126 var path = (req.url).path;
5296 var pathOffset = 0; 5127 var pathOffset = 0;
5297 var index; 5128 var index;
5298 var subPart; 5129 var subPart;
5299 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5130 unittest.expect(
5131 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5300 pathOffset += 1; 5132 pathOffset += 1;
5301 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 5133 unittest.expect(
5134 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
5302 pathOffset += 3; 5135 pathOffset += 3;
5303 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 5136 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
5304 5137
5305 var query = (req.url).query; 5138 var query = (req.url).query;
5306 var queryOffset = 0; 5139 var queryOffset = 0;
5307 var queryMap = {}; 5140 var queryMap = {};
5308 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5141 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5309 parseBool(n) { 5142 parseBool(n) {
5310 if (n == "true") return true; 5143 if (n == "true") return true;
5311 if (n == "false") return false; 5144 if (n == "false") return false;
5312 if (n == null) return null; 5145 if (n == null) return null;
5313 throw new core.ArgumentError("Invalid boolean: $n"); 5146 throw new core.ArgumentError("Invalid boolean: $n");
5314 } 5147 }
5148
5315 if (query.length > 0) { 5149 if (query.length > 0) {
5316 for (var part in query.split("&")) { 5150 for (var part in query.split("&")) {
5317 var keyvalue = part.split("="); 5151 var keyvalue = part.split("=");
5318 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5152 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5153 core.Uri.decodeQueryComponent(keyvalue[1]));
5319 } 5154 }
5320 } 5155 }
5321 5156
5322
5323 var h = { 5157 var h = {
5324 "content-type" : "application/json; charset=utf-8", 5158 "content-type": "application/json; charset=utf-8",
5325 }; 5159 };
5326 var resp = convert.JSON.encode(buildPolicy()); 5160 var resp = convert.JSON.encode(buildPolicy());
5327 return new async.Future.value(stringResponse(200, h, resp)); 5161 return new async.Future.value(stringResponse(200, h, resp));
5328 }), true); 5162 }), true);
5329 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a pi.Policy response) { 5163 res
5164 .getIamPolicy(arg_request, arg_resource)
5165 .then(unittest.expectAsync1(((api.Policy response) {
5330 checkPolicy(response); 5166 checkPolicy(response);
5331 }))); 5167 })));
5332 }); 5168 });
5333 5169
5334 unittest.test("method--setIamPolicy", () { 5170 unittest.test("method--setIamPolicy", () {
5335
5336 var mock = new HttpServerMock(); 5171 var mock = new HttpServerMock();
5337 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock). services.consumers; 5172 api.ServicesConsumersResourceApi res =
5173 new api.ServicemanagementApi(mock).services.consumers;
5338 var arg_request = buildSetIamPolicyRequest(); 5174 var arg_request = buildSetIamPolicyRequest();
5339 var arg_resource = "foo"; 5175 var arg_resource = "foo";
5340 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5176 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5341 var obj = new api.SetIamPolicyRequest.fromJson(json); 5177 var obj = new api.SetIamPolicyRequest.fromJson(json);
5342 checkSetIamPolicyRequest(obj); 5178 checkSetIamPolicyRequest(obj);
5343 5179
5344 var path = (req.url).path; 5180 var path = (req.url).path;
5345 var pathOffset = 0; 5181 var pathOffset = 0;
5346 var index; 5182 var index;
5347 var subPart; 5183 var subPart;
5348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5184 unittest.expect(
5185 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5349 pathOffset += 1; 5186 pathOffset += 1;
5350 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 5187 unittest.expect(
5188 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
5351 pathOffset += 3; 5189 pathOffset += 3;
5352 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 5190 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
5353 5191
5354 var query = (req.url).query; 5192 var query = (req.url).query;
5355 var queryOffset = 0; 5193 var queryOffset = 0;
5356 var queryMap = {}; 5194 var queryMap = {};
5357 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5358 parseBool(n) { 5196 parseBool(n) {
5359 if (n == "true") return true; 5197 if (n == "true") return true;
5360 if (n == "false") return false; 5198 if (n == "false") return false;
5361 if (n == null) return null; 5199 if (n == null) return null;
5362 throw new core.ArgumentError("Invalid boolean: $n"); 5200 throw new core.ArgumentError("Invalid boolean: $n");
5363 } 5201 }
5202
5364 if (query.length > 0) { 5203 if (query.length > 0) {
5365 for (var part in query.split("&")) { 5204 for (var part in query.split("&")) {
5366 var keyvalue = part.split("="); 5205 var keyvalue = part.split("=");
5367 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5206 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5207 core.Uri.decodeQueryComponent(keyvalue[1]));
5368 } 5208 }
5369 } 5209 }
5370 5210
5371
5372 var h = { 5211 var h = {
5373 "content-type" : "application/json; charset=utf-8", 5212 "content-type": "application/json; charset=utf-8",
5374 }; 5213 };
5375 var resp = convert.JSON.encode(buildPolicy()); 5214 var resp = convert.JSON.encode(buildPolicy());
5376 return new async.Future.value(stringResponse(200, h, resp)); 5215 return new async.Future.value(stringResponse(200, h, resp));
5377 }), true); 5216 }), true);
5378 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a pi.Policy response) { 5217 res
5218 .setIamPolicy(arg_request, arg_resource)
5219 .then(unittest.expectAsync1(((api.Policy response) {
5379 checkPolicy(response); 5220 checkPolicy(response);
5380 }))); 5221 })));
5381 }); 5222 });
5382 5223
5383 unittest.test("method--testIamPermissions", () { 5224 unittest.test("method--testIamPermissions", () {
5384
5385 var mock = new HttpServerMock(); 5225 var mock = new HttpServerMock();
5386 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock). services.consumers; 5226 api.ServicesConsumersResourceApi res =
5227 new api.ServicemanagementApi(mock).services.consumers;
5387 var arg_request = buildTestIamPermissionsRequest(); 5228 var arg_request = buildTestIamPermissionsRequest();
5388 var arg_resource = "foo"; 5229 var arg_resource = "foo";
5389 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5230 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5390 var obj = new api.TestIamPermissionsRequest.fromJson(json); 5231 var obj = new api.TestIamPermissionsRequest.fromJson(json);
5391 checkTestIamPermissionsRequest(obj); 5232 checkTestIamPermissionsRequest(obj);
5392 5233
5393 var path = (req.url).path; 5234 var path = (req.url).path;
5394 var pathOffset = 0; 5235 var pathOffset = 0;
5395 var index; 5236 var index;
5396 var subPart; 5237 var subPart;
5397 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5238 unittest.expect(
5239 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5398 pathOffset += 1; 5240 pathOffset += 1;
5399 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 5241 unittest.expect(
5242 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
5400 pathOffset += 3; 5243 pathOffset += 3;
5401 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 5244 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
5402 5245
5403 var query = (req.url).query; 5246 var query = (req.url).query;
5404 var queryOffset = 0; 5247 var queryOffset = 0;
5405 var queryMap = {}; 5248 var queryMap = {};
5406 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5249 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5407 parseBool(n) { 5250 parseBool(n) {
5408 if (n == "true") return true; 5251 if (n == "true") return true;
5409 if (n == "false") return false; 5252 if (n == "false") return false;
5410 if (n == null) return null; 5253 if (n == null) return null;
5411 throw new core.ArgumentError("Invalid boolean: $n"); 5254 throw new core.ArgumentError("Invalid boolean: $n");
5412 } 5255 }
5256
5413 if (query.length > 0) { 5257 if (query.length > 0) {
5414 for (var part in query.split("&")) { 5258 for (var part in query.split("&")) {
5415 var keyvalue = part.split("="); 5259 var keyvalue = part.split("=");
5416 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5260 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5261 core.Uri.decodeQueryComponent(keyvalue[1]));
5417 } 5262 }
5418 } 5263 }
5419 5264
5420
5421 var h = { 5265 var h = {
5422 "content-type" : "application/json; charset=utf-8", 5266 "content-type": "application/json; charset=utf-8",
5423 }; 5267 };
5424 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); 5268 var resp = convert.JSON.encode(buildTestIamPermissionsResponse());
5425 return new async.Future.value(stringResponse(200, h, resp)); 5269 return new async.Future.value(stringResponse(200, h, resp));
5426 }), true); 5270 }), true);
5427 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn c1(((api.TestIamPermissionsResponse response) { 5271 res.testIamPermissions(arg_request, arg_resource).then(
5272 unittest.expectAsync1(((api.TestIamPermissionsResponse response) {
5428 checkTestIamPermissionsResponse(response); 5273 checkTestIamPermissionsResponse(response);
5429 }))); 5274 })));
5430 }); 5275 });
5431
5432 }); 5276 });
5433 5277
5434
5435 unittest.group("resource-ServicesRolloutsResourceApi", () { 5278 unittest.group("resource-ServicesRolloutsResourceApi", () {
5436 unittest.test("method--create", () { 5279 unittest.test("method--create", () {
5437
5438 var mock = new HttpServerMock(); 5280 var mock = new HttpServerMock();
5439 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s ervices.rollouts; 5281 api.ServicesRolloutsResourceApi res =
5282 new api.ServicemanagementApi(mock).services.rollouts;
5440 var arg_request = buildRollout(); 5283 var arg_request = buildRollout();
5441 var arg_serviceName = "foo"; 5284 var arg_serviceName = "foo";
5442 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5285 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5443 var obj = new api.Rollout.fromJson(json); 5286 var obj = new api.Rollout.fromJson(json);
5444 checkRollout(obj); 5287 checkRollout(obj);
5445 5288
5446 var path = (req.url).path; 5289 var path = (req.url).path;
5447 var pathOffset = 0; 5290 var pathOffset = 0;
5448 var index; 5291 var index;
5449 var subPart; 5292 var subPart;
5450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5293 unittest.expect(
5294 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5451 pathOffset += 1; 5295 pathOffset += 1;
5452 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 5296 unittest.expect(path.substring(pathOffset, pathOffset + 12),
5297 unittest.equals("v1/services/"));
5453 pathOffset += 12; 5298 pathOffset += 12;
5454 index = path.indexOf("/rollouts", pathOffset); 5299 index = path.indexOf("/rollouts", pathOffset);
5455 unittest.expect(index >= 0, unittest.isTrue); 5300 unittest.expect(index >= 0, unittest.isTrue);
5456 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 5301 subPart =
5302 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5457 pathOffset = index; 5303 pathOffset = index;
5458 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 5304 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5459 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/rollouts")); 5305 unittest.expect(path.substring(pathOffset, pathOffset + 9),
5306 unittest.equals("/rollouts"));
5460 pathOffset += 9; 5307 pathOffset += 9;
5461 5308
5462 var query = (req.url).query; 5309 var query = (req.url).query;
5463 var queryOffset = 0; 5310 var queryOffset = 0;
5464 var queryMap = {}; 5311 var queryMap = {};
5465 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5312 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5466 parseBool(n) { 5313 parseBool(n) {
5467 if (n == "true") return true; 5314 if (n == "true") return true;
5468 if (n == "false") return false; 5315 if (n == "false") return false;
5469 if (n == null) return null; 5316 if (n == null) return null;
5470 throw new core.ArgumentError("Invalid boolean: $n"); 5317 throw new core.ArgumentError("Invalid boolean: $n");
5471 } 5318 }
5319
5472 if (query.length > 0) { 5320 if (query.length > 0) {
5473 for (var part in query.split("&")) { 5321 for (var part in query.split("&")) {
5474 var keyvalue = part.split("="); 5322 var keyvalue = part.split("=");
5475 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5323 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5324 core.Uri.decodeQueryComponent(keyvalue[1]));
5476 } 5325 }
5477 } 5326 }
5478 5327
5479
5480 var h = { 5328 var h = {
5481 "content-type" : "application/json; charset=utf-8", 5329 "content-type": "application/json; charset=utf-8",
5482 }; 5330 };
5483 var resp = convert.JSON.encode(buildOperation()); 5331 var resp = convert.JSON.encode(buildOperation());
5484 return new async.Future.value(stringResponse(200, h, resp)); 5332 return new async.Future.value(stringResponse(200, h, resp));
5485 }), true); 5333 }), true);
5486 res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api. Operation response) { 5334 res
5335 .create(arg_request, arg_serviceName)
5336 .then(unittest.expectAsync1(((api.Operation response) {
5487 checkOperation(response); 5337 checkOperation(response);
5488 }))); 5338 })));
5489 }); 5339 });
5490 5340
5491 unittest.test("method--get", () { 5341 unittest.test("method--get", () {
5492
5493 var mock = new HttpServerMock(); 5342 var mock = new HttpServerMock();
5494 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s ervices.rollouts; 5343 api.ServicesRolloutsResourceApi res =
5344 new api.ServicemanagementApi(mock).services.rollouts;
5495 var arg_serviceName = "foo"; 5345 var arg_serviceName = "foo";
5496 var arg_rolloutId = "foo"; 5346 var arg_rolloutId = "foo";
5497 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5347 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5498 var path = (req.url).path; 5348 var path = (req.url).path;
5499 var pathOffset = 0; 5349 var pathOffset = 0;
5500 var index; 5350 var index;
5501 var subPart; 5351 var subPart;
5502 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5352 unittest.expect(
5353 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5503 pathOffset += 1; 5354 pathOffset += 1;
5504 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 5355 unittest.expect(path.substring(pathOffset, pathOffset + 12),
5356 unittest.equals("v1/services/"));
5505 pathOffset += 12; 5357 pathOffset += 12;
5506 index = path.indexOf("/rollouts/", pathOffset); 5358 index = path.indexOf("/rollouts/", pathOffset);
5507 unittest.expect(index >= 0, unittest.isTrue); 5359 unittest.expect(index >= 0, unittest.isTrue);
5508 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 5360 subPart =
5361 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5509 pathOffset = index; 5362 pathOffset = index;
5510 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 5363 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5511 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/rollouts/")); 5364 unittest.expect(path.substring(pathOffset, pathOffset + 10),
5365 unittest.equals("/rollouts/"));
5512 pathOffset += 10; 5366 pathOffset += 10;
5513 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 5367 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
5514 pathOffset = path.length; 5368 pathOffset = path.length;
5515 unittest.expect(subPart, unittest.equals("$arg_rolloutId")); 5369 unittest.expect(subPart, unittest.equals("$arg_rolloutId"));
5516 5370
5517 var query = (req.url).query; 5371 var query = (req.url).query;
5518 var queryOffset = 0; 5372 var queryOffset = 0;
5519 var queryMap = {}; 5373 var queryMap = {};
5520 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5374 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5521 parseBool(n) { 5375 parseBool(n) {
5522 if (n == "true") return true; 5376 if (n == "true") return true;
5523 if (n == "false") return false; 5377 if (n == "false") return false;
5524 if (n == null) return null; 5378 if (n == null) return null;
5525 throw new core.ArgumentError("Invalid boolean: $n"); 5379 throw new core.ArgumentError("Invalid boolean: $n");
5526 } 5380 }
5381
5527 if (query.length > 0) { 5382 if (query.length > 0) {
5528 for (var part in query.split("&")) { 5383 for (var part in query.split("&")) {
5529 var keyvalue = part.split("="); 5384 var keyvalue = part.split("=");
5530 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5385 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5386 core.Uri.decodeQueryComponent(keyvalue[1]));
5531 } 5387 }
5532 } 5388 }
5533 5389
5534
5535 var h = { 5390 var h = {
5536 "content-type" : "application/json; charset=utf-8", 5391 "content-type": "application/json; charset=utf-8",
5537 }; 5392 };
5538 var resp = convert.JSON.encode(buildRollout()); 5393 var resp = convert.JSON.encode(buildRollout());
5539 return new async.Future.value(stringResponse(200, h, resp)); 5394 return new async.Future.value(stringResponse(200, h, resp));
5540 }), true); 5395 }), true);
5541 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync1(((api.R ollout response) { 5396 res
5397 .get(arg_serviceName, arg_rolloutId)
5398 .then(unittest.expectAsync1(((api.Rollout response) {
5542 checkRollout(response); 5399 checkRollout(response);
5543 }))); 5400 })));
5544 }); 5401 });
5545 5402
5546 unittest.test("method--list", () { 5403 unittest.test("method--list", () {
5547
5548 var mock = new HttpServerMock(); 5404 var mock = new HttpServerMock();
5549 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s ervices.rollouts; 5405 api.ServicesRolloutsResourceApi res =
5406 new api.ServicemanagementApi(mock).services.rollouts;
5550 var arg_serviceName = "foo"; 5407 var arg_serviceName = "foo";
5551 var arg_filter = "foo"; 5408 var arg_filter = "foo";
5552 var arg_pageToken = "foo"; 5409 var arg_pageToken = "foo";
5553 var arg_pageSize = 42; 5410 var arg_pageSize = 42;
5554 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 5411 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
5555 var path = (req.url).path; 5412 var path = (req.url).path;
5556 var pathOffset = 0; 5413 var pathOffset = 0;
5557 var index; 5414 var index;
5558 var subPart; 5415 var subPart;
5559 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5416 unittest.expect(
5417 path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
5560 pathOffset += 1; 5418 pathOffset += 1;
5561 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 5419 unittest.expect(path.substring(pathOffset, pathOffset + 12),
5420 unittest.equals("v1/services/"));
5562 pathOffset += 12; 5421 pathOffset += 12;
5563 index = path.indexOf("/rollouts", pathOffset); 5422 index = path.indexOf("/rollouts", pathOffset);
5564 unittest.expect(index >= 0, unittest.isTrue); 5423 unittest.expect(index >= 0, unittest.isTrue);
5565 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index )); 5424 subPart =
5425 core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
5566 pathOffset = index; 5426 pathOffset = index;
5567 unittest.expect(subPart, unittest.equals("$arg_serviceName")); 5427 unittest.expect(subPart, unittest.equals("$arg_serviceName"));
5568 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/rollouts")); 5428 unittest.expect(path.substring(pathOffset, pathOffset + 9),
5429 unittest.equals("/rollouts"));
5569 pathOffset += 9; 5430 pathOffset += 9;
5570 5431
5571 var query = (req.url).query; 5432 var query = (req.url).query;
5572 var queryOffset = 0; 5433 var queryOffset = 0;
5573 var queryMap = {}; 5434 var queryMap = {};
5574 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 5435 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5575 parseBool(n) { 5436 parseBool(n) {
5576 if (n == "true") return true; 5437 if (n == "true") return true;
5577 if (n == "false") return false; 5438 if (n == "false") return false;
5578 if (n == null) return null; 5439 if (n == null) return null;
5579 throw new core.ArgumentError("Invalid boolean: $n"); 5440 throw new core.ArgumentError("Invalid boolean: $n");
5580 } 5441 }
5442
5581 if (query.length > 0) { 5443 if (query.length > 0) {
5582 for (var part in query.split("&")) { 5444 for (var part in query.split("&")) {
5583 var keyvalue = part.split("="); 5445 var keyvalue = part.split("=");
5584 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5446 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
5447 core.Uri.decodeQueryComponent(keyvalue[1]));
5585 } 5448 }
5586 } 5449 }
5587 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 5450 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
5588 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 5451 unittest.expect(
5589 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 5452 queryMap["pageToken"].first, unittest.equals(arg_pageToken));
5590 5453 unittest.expect(core.int.parse(queryMap["pageSize"].first),
5454 unittest.equals(arg_pageSize));
5591 5455
5592 var h = { 5456 var h = {
5593 "content-type" : "application/json; charset=utf-8", 5457 "content-type": "application/json; charset=utf-8",
5594 }; 5458 };
5595 var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); 5459 var resp = convert.JSON.encode(buildListServiceRolloutsResponse());
5596 return new async.Future.value(stringResponse(200, h, resp)); 5460 return new async.Future.value(stringResponse(200, h, resp));
5597 }), true); 5461 }), true);
5598 res.list(arg_serviceName, filter: arg_filter, pageToken: arg_pageToken, pa geSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceRolloutsRespon se response) { 5462 res
5463 .list(arg_serviceName,
5464 filter: arg_filter,
5465 pageToken: arg_pageToken,
5466 pageSize: arg_pageSize)
5467 .then(unittest
5468 .expectAsync1(((api.ListServiceRolloutsResponse response) {
5599 checkListServiceRolloutsResponse(response); 5469 checkListServiceRolloutsResponse(response);
5600 }))); 5470 })));
5601 }); 5471 });
5602
5603 }); 5472 });
5604
5605
5606 } 5473 }
5607
OLDNEW
« no previous file with comments | « generated/googleapis/test/servicecontrol/v1_test.dart ('k') | generated/googleapis/test/serviceuser/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698