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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 checkAdvice(api.Advice o) { 65 checkAdvice(api.Advice o) {
66 buildCounterAdvice++; 66 buildCounterAdvice++;
67 if (buildCounterAdvice < 3) { 67 if (buildCounterAdvice < 3) {
68 unittest.expect(o.description, unittest.equals('foo')); 68 unittest.expect(o.description, unittest.equals('foo'));
69 } 69 }
70 buildCounterAdvice--; 70 buildCounterAdvice--;
71 } 71 }
72 72
73 buildUnnamed1051() { 73 buildUnnamed1042() {
74 var o = new core.List<api.Method>(); 74 var o = new core.List<api.Method>();
75 o.add(buildMethod()); 75 o.add(buildMethod());
76 o.add(buildMethod()); 76 o.add(buildMethod());
77 return o; 77 return o;
78 } 78 }
79 79
80 checkUnnamed1051(core.List<api.Method> o) { 80 checkUnnamed1042(core.List<api.Method> o) {
81 unittest.expect(o, unittest.hasLength(2)); 81 unittest.expect(o, unittest.hasLength(2));
82 checkMethod(o[0]); 82 checkMethod(o[0]);
83 checkMethod(o[1]); 83 checkMethod(o[1]);
84 } 84 }
85 85
86 buildUnnamed1052() { 86 buildUnnamed1043() {
87 var o = new core.List<api.Mixin>(); 87 var o = new core.List<api.Mixin>();
88 o.add(buildMixin()); 88 o.add(buildMixin());
89 o.add(buildMixin()); 89 o.add(buildMixin());
90 return o; 90 return o;
91 } 91 }
92 92
93 checkUnnamed1052(core.List<api.Mixin> o) { 93 checkUnnamed1043(core.List<api.Mixin> o) {
94 unittest.expect(o, unittest.hasLength(2)); 94 unittest.expect(o, unittest.hasLength(2));
95 checkMixin(o[0]); 95 checkMixin(o[0]);
96 checkMixin(o[1]); 96 checkMixin(o[1]);
97 } 97 }
98 98
99 buildUnnamed1053() { 99 buildUnnamed1044() {
100 var o = new core.List<api.Option>(); 100 var o = new core.List<api.Option>();
101 o.add(buildOption()); 101 o.add(buildOption());
102 o.add(buildOption()); 102 o.add(buildOption());
103 return o; 103 return o;
104 } 104 }
105 105
106 checkUnnamed1053(core.List<api.Option> o) { 106 checkUnnamed1044(core.List<api.Option> o) {
107 unittest.expect(o, unittest.hasLength(2)); 107 unittest.expect(o, unittest.hasLength(2));
108 checkOption(o[0]); 108 checkOption(o[0]);
109 checkOption(o[1]); 109 checkOption(o[1]);
110 } 110 }
111 111
112 core.int buildCounterApi = 0; 112 core.int buildCounterApi = 0;
113 buildApi() { 113 buildApi() {
114 var o = new api.Api(); 114 var o = new api.Api();
115 buildCounterApi++; 115 buildCounterApi++;
116 if (buildCounterApi < 3) { 116 if (buildCounterApi < 3) {
117 o.methods = buildUnnamed1051(); 117 o.methods = buildUnnamed1042();
118 o.mixins = buildUnnamed1052(); 118 o.mixins = buildUnnamed1043();
119 o.name = "foo"; 119 o.name = "foo";
120 o.options = buildUnnamed1053(); 120 o.options = buildUnnamed1044();
121 o.sourceContext = buildSourceContext(); 121 o.sourceContext = buildSourceContext();
122 o.syntax = "foo"; 122 o.syntax = "foo";
123 o.version = "foo"; 123 o.version = "foo";
124 } 124 }
125 buildCounterApi--; 125 buildCounterApi--;
126 return o; 126 return o;
127 } 127 }
128 128
129 checkApi(api.Api o) { 129 checkApi(api.Api o) {
130 buildCounterApi++; 130 buildCounterApi++;
131 if (buildCounterApi < 3) { 131 if (buildCounterApi < 3) {
132 checkUnnamed1051(o.methods); 132 checkUnnamed1042(o.methods);
133 checkUnnamed1052(o.mixins); 133 checkUnnamed1043(o.mixins);
134 unittest.expect(o.name, unittest.equals('foo')); 134 unittest.expect(o.name, unittest.equals('foo'));
135 checkUnnamed1053(o.options); 135 checkUnnamed1044(o.options);
136 checkSourceContext(o.sourceContext); 136 checkSourceContext(o.sourceContext);
137 unittest.expect(o.syntax, unittest.equals('foo')); 137 unittest.expect(o.syntax, unittest.equals('foo'));
138 unittest.expect(o.version, unittest.equals('foo')); 138 unittest.expect(o.version, unittest.equals('foo'));
139 } 139 }
140 buildCounterApi--; 140 buildCounterApi--;
141 } 141 }
142 142
143 buildUnnamed1054() { 143 buildUnnamed1045() {
144 var o = new core.List<api.AuditLogConfig>(); 144 var o = new core.List<api.AuditLogConfig>();
145 o.add(buildAuditLogConfig()); 145 o.add(buildAuditLogConfig());
146 o.add(buildAuditLogConfig()); 146 o.add(buildAuditLogConfig());
147 return o; 147 return o;
148 } 148 }
149 149
150 checkUnnamed1054(core.List<api.AuditLogConfig> o) { 150 checkUnnamed1045(core.List<api.AuditLogConfig> o) {
151 unittest.expect(o, unittest.hasLength(2)); 151 unittest.expect(o, unittest.hasLength(2));
152 checkAuditLogConfig(o[0]); 152 checkAuditLogConfig(o[0]);
153 checkAuditLogConfig(o[1]); 153 checkAuditLogConfig(o[1]);
154 } 154 }
155 155
156 buildUnnamed1055() { 156 buildUnnamed1046() {
157 var o = new core.List<core.String>(); 157 var o = new core.List<core.String>();
158 o.add("foo"); 158 o.add("foo");
159 o.add("foo"); 159 o.add("foo");
160 return o; 160 return o;
161 } 161 }
162 162
163 checkUnnamed1055(core.List<core.String> o) { 163 checkUnnamed1046(core.List<core.String> o) {
164 unittest.expect(o, unittest.hasLength(2)); 164 unittest.expect(o, unittest.hasLength(2));
165 unittest.expect(o[0], unittest.equals('foo')); 165 unittest.expect(o[0], unittest.equals('foo'));
166 unittest.expect(o[1], unittest.equals('foo')); 166 unittest.expect(o[1], unittest.equals('foo'));
167 } 167 }
168 168
169 core.int buildCounterAuditConfig = 0; 169 core.int buildCounterAuditConfig = 0;
170 buildAuditConfig() { 170 buildAuditConfig() {
171 var o = new api.AuditConfig(); 171 var o = new api.AuditConfig();
172 buildCounterAuditConfig++; 172 buildCounterAuditConfig++;
173 if (buildCounterAuditConfig < 3) { 173 if (buildCounterAuditConfig < 3) {
174 o.auditLogConfigs = buildUnnamed1054(); 174 o.auditLogConfigs = buildUnnamed1045();
175 o.exemptedMembers = buildUnnamed1055(); 175 o.exemptedMembers = buildUnnamed1046();
176 o.service = "foo"; 176 o.service = "foo";
177 } 177 }
178 buildCounterAuditConfig--; 178 buildCounterAuditConfig--;
179 return o; 179 return o;
180 } 180 }
181 181
182 checkAuditConfig(api.AuditConfig o) { 182 checkAuditConfig(api.AuditConfig o) {
183 buildCounterAuditConfig++; 183 buildCounterAuditConfig++;
184 if (buildCounterAuditConfig < 3) { 184 if (buildCounterAuditConfig < 3) {
185 checkUnnamed1054(o.auditLogConfigs); 185 checkUnnamed1045(o.auditLogConfigs);
186 checkUnnamed1055(o.exemptedMembers); 186 checkUnnamed1046(o.exemptedMembers);
187 unittest.expect(o.service, unittest.equals('foo')); 187 unittest.expect(o.service, unittest.equals('foo'));
188 } 188 }
189 buildCounterAuditConfig--; 189 buildCounterAuditConfig--;
190 } 190 }
191 191
192 buildUnnamed1056() { 192 buildUnnamed1047() {
193 var o = new core.List<core.String>(); 193 var o = new core.List<core.String>();
194 o.add("foo"); 194 o.add("foo");
195 o.add("foo"); 195 o.add("foo");
196 return o; 196 return o;
197 } 197 }
198 198
199 checkUnnamed1056(core.List<core.String> o) { 199 checkUnnamed1047(core.List<core.String> o) {
200 unittest.expect(o, unittest.hasLength(2)); 200 unittest.expect(o, unittest.hasLength(2));
201 unittest.expect(o[0], unittest.equals('foo')); 201 unittest.expect(o[0], unittest.equals('foo'));
202 unittest.expect(o[1], unittest.equals('foo')); 202 unittest.expect(o[1], unittest.equals('foo'));
203 } 203 }
204 204
205 core.int buildCounterAuditLogConfig = 0; 205 core.int buildCounterAuditLogConfig = 0;
206 buildAuditLogConfig() { 206 buildAuditLogConfig() {
207 var o = new api.AuditLogConfig(); 207 var o = new api.AuditLogConfig();
208 buildCounterAuditLogConfig++; 208 buildCounterAuditLogConfig++;
209 if (buildCounterAuditLogConfig < 3) { 209 if (buildCounterAuditLogConfig < 3) {
210 o.exemptedMembers = buildUnnamed1056(); 210 o.exemptedMembers = buildUnnamed1047();
211 o.logType = "foo"; 211 o.logType = "foo";
212 } 212 }
213 buildCounterAuditLogConfig--; 213 buildCounterAuditLogConfig--;
214 return o; 214 return o;
215 } 215 }
216 216
217 checkAuditLogConfig(api.AuditLogConfig o) { 217 checkAuditLogConfig(api.AuditLogConfig o) {
218 buildCounterAuditLogConfig++; 218 buildCounterAuditLogConfig++;
219 if (buildCounterAuditLogConfig < 3) { 219 if (buildCounterAuditLogConfig < 3) {
220 checkUnnamed1056(o.exemptedMembers); 220 checkUnnamed1047(o.exemptedMembers);
221 unittest.expect(o.logType, unittest.equals('foo')); 221 unittest.expect(o.logType, unittest.equals('foo'));
222 } 222 }
223 buildCounterAuditLogConfig--; 223 buildCounterAuditLogConfig--;
224 } 224 }
225 225
226 core.int buildCounterAuthProvider = 0; 226 core.int buildCounterAuthProvider = 0;
227 buildAuthProvider() { 227 buildAuthProvider() {
228 var o = new api.AuthProvider(); 228 var o = new api.AuthProvider();
229 buildCounterAuthProvider++; 229 buildCounterAuthProvider++;
230 if (buildCounterAuthProvider < 3) { 230 if (buildCounterAuthProvider < 3) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 checkAuthRequirement(api.AuthRequirement o) { 263 checkAuthRequirement(api.AuthRequirement o) {
264 buildCounterAuthRequirement++; 264 buildCounterAuthRequirement++;
265 if (buildCounterAuthRequirement < 3) { 265 if (buildCounterAuthRequirement < 3) {
266 unittest.expect(o.audiences, unittest.equals('foo')); 266 unittest.expect(o.audiences, unittest.equals('foo'));
267 unittest.expect(o.providerId, unittest.equals('foo')); 267 unittest.expect(o.providerId, unittest.equals('foo'));
268 } 268 }
269 buildCounterAuthRequirement--; 269 buildCounterAuthRequirement--;
270 } 270 }
271 271
272 buildUnnamed1057() { 272 buildUnnamed1048() {
273 var o = new core.List<api.AuthProvider>(); 273 var o = new core.List<api.AuthProvider>();
274 o.add(buildAuthProvider()); 274 o.add(buildAuthProvider());
275 o.add(buildAuthProvider()); 275 o.add(buildAuthProvider());
276 return o; 276 return o;
277 } 277 }
278 278
279 checkUnnamed1057(core.List<api.AuthProvider> o) { 279 checkUnnamed1048(core.List<api.AuthProvider> o) {
280 unittest.expect(o, unittest.hasLength(2)); 280 unittest.expect(o, unittest.hasLength(2));
281 checkAuthProvider(o[0]); 281 checkAuthProvider(o[0]);
282 checkAuthProvider(o[1]); 282 checkAuthProvider(o[1]);
283 } 283 }
284 284
285 buildUnnamed1058() { 285 buildUnnamed1049() {
286 var o = new core.List<api.AuthenticationRule>(); 286 var o = new core.List<api.AuthenticationRule>();
287 o.add(buildAuthenticationRule()); 287 o.add(buildAuthenticationRule());
288 o.add(buildAuthenticationRule()); 288 o.add(buildAuthenticationRule());
289 return o; 289 return o;
290 } 290 }
291 291
292 checkUnnamed1058(core.List<api.AuthenticationRule> o) { 292 checkUnnamed1049(core.List<api.AuthenticationRule> o) {
293 unittest.expect(o, unittest.hasLength(2)); 293 unittest.expect(o, unittest.hasLength(2));
294 checkAuthenticationRule(o[0]); 294 checkAuthenticationRule(o[0]);
295 checkAuthenticationRule(o[1]); 295 checkAuthenticationRule(o[1]);
296 } 296 }
297 297
298 core.int buildCounterAuthentication = 0; 298 core.int buildCounterAuthentication = 0;
299 buildAuthentication() { 299 buildAuthentication() {
300 var o = new api.Authentication(); 300 var o = new api.Authentication();
301 buildCounterAuthentication++; 301 buildCounterAuthentication++;
302 if (buildCounterAuthentication < 3) { 302 if (buildCounterAuthentication < 3) {
303 o.providers = buildUnnamed1057(); 303 o.providers = buildUnnamed1048();
304 o.rules = buildUnnamed1058(); 304 o.rules = buildUnnamed1049();
305 } 305 }
306 buildCounterAuthentication--; 306 buildCounterAuthentication--;
307 return o; 307 return o;
308 } 308 }
309 309
310 checkAuthentication(api.Authentication o) { 310 checkAuthentication(api.Authentication o) {
311 buildCounterAuthentication++; 311 buildCounterAuthentication++;
312 if (buildCounterAuthentication < 3) { 312 if (buildCounterAuthentication < 3) {
313 checkUnnamed1057(o.providers); 313 checkUnnamed1048(o.providers);
314 checkUnnamed1058(o.rules); 314 checkUnnamed1049(o.rules);
315 } 315 }
316 buildCounterAuthentication--; 316 buildCounterAuthentication--;
317 } 317 }
318 318
319 buildUnnamed1059() { 319 buildUnnamed1050() {
320 var o = new core.List<api.AuthRequirement>(); 320 var o = new core.List<api.AuthRequirement>();
321 o.add(buildAuthRequirement()); 321 o.add(buildAuthRequirement());
322 o.add(buildAuthRequirement()); 322 o.add(buildAuthRequirement());
323 return o; 323 return o;
324 } 324 }
325 325
326 checkUnnamed1059(core.List<api.AuthRequirement> o) { 326 checkUnnamed1050(core.List<api.AuthRequirement> o) {
327 unittest.expect(o, unittest.hasLength(2)); 327 unittest.expect(o, unittest.hasLength(2));
328 checkAuthRequirement(o[0]); 328 checkAuthRequirement(o[0]);
329 checkAuthRequirement(o[1]); 329 checkAuthRequirement(o[1]);
330 } 330 }
331 331
332 core.int buildCounterAuthenticationRule = 0; 332 core.int buildCounterAuthenticationRule = 0;
333 buildAuthenticationRule() { 333 buildAuthenticationRule() {
334 var o = new api.AuthenticationRule(); 334 var o = new api.AuthenticationRule();
335 buildCounterAuthenticationRule++; 335 buildCounterAuthenticationRule++;
336 if (buildCounterAuthenticationRule < 3) { 336 if (buildCounterAuthenticationRule < 3) {
337 o.allowWithoutCredential = true; 337 o.allowWithoutCredential = true;
338 o.oauth = buildOAuthRequirements(); 338 o.oauth = buildOAuthRequirements();
339 o.requirements = buildUnnamed1059(); 339 o.requirements = buildUnnamed1050();
340 o.selector = "foo"; 340 o.selector = "foo";
341 } 341 }
342 buildCounterAuthenticationRule--; 342 buildCounterAuthenticationRule--;
343 return o; 343 return o;
344 } 344 }
345 345
346 checkAuthenticationRule(api.AuthenticationRule o) { 346 checkAuthenticationRule(api.AuthenticationRule o) {
347 buildCounterAuthenticationRule++; 347 buildCounterAuthenticationRule++;
348 if (buildCounterAuthenticationRule < 3) { 348 if (buildCounterAuthenticationRule < 3) {
349 unittest.expect(o.allowWithoutCredential, unittest.isTrue); 349 unittest.expect(o.allowWithoutCredential, unittest.isTrue);
350 checkOAuthRequirements(o.oauth); 350 checkOAuthRequirements(o.oauth);
351 checkUnnamed1059(o.requirements); 351 checkUnnamed1050(o.requirements);
352 unittest.expect(o.selector, unittest.equals('foo')); 352 unittest.expect(o.selector, unittest.equals('foo'));
353 } 353 }
354 buildCounterAuthenticationRule--; 354 buildCounterAuthenticationRule--;
355 } 355 }
356 356
357 core.int buildCounterAuthorizationConfig = 0; 357 core.int buildCounterAuthorizationConfig = 0;
358 buildAuthorizationConfig() { 358 buildAuthorizationConfig() {
359 var o = new api.AuthorizationConfig(); 359 var o = new api.AuthorizationConfig();
360 buildCounterAuthorizationConfig++; 360 buildCounterAuthorizationConfig++;
361 if (buildCounterAuthorizationConfig < 3) { 361 if (buildCounterAuthorizationConfig < 3) {
362 o.provider = "foo"; 362 o.provider = "foo";
363 } 363 }
364 buildCounterAuthorizationConfig--; 364 buildCounterAuthorizationConfig--;
365 return o; 365 return o;
366 } 366 }
367 367
368 checkAuthorizationConfig(api.AuthorizationConfig o) { 368 checkAuthorizationConfig(api.AuthorizationConfig o) {
369 buildCounterAuthorizationConfig++; 369 buildCounterAuthorizationConfig++;
370 if (buildCounterAuthorizationConfig < 3) { 370 if (buildCounterAuthorizationConfig < 3) {
371 unittest.expect(o.provider, unittest.equals('foo')); 371 unittest.expect(o.provider, unittest.equals('foo'));
372 } 372 }
373 buildCounterAuthorizationConfig--; 373 buildCounterAuthorizationConfig--;
374 } 374 }
375 375
376 buildUnnamed1060() { 376 buildUnnamed1051() {
377 var o = new core.List<api.BackendRule>(); 377 var o = new core.List<api.BackendRule>();
378 o.add(buildBackendRule()); 378 o.add(buildBackendRule());
379 o.add(buildBackendRule()); 379 o.add(buildBackendRule());
380 return o; 380 return o;
381 } 381 }
382 382
383 checkUnnamed1060(core.List<api.BackendRule> o) { 383 checkUnnamed1051(core.List<api.BackendRule> o) {
384 unittest.expect(o, unittest.hasLength(2)); 384 unittest.expect(o, unittest.hasLength(2));
385 checkBackendRule(o[0]); 385 checkBackendRule(o[0]);
386 checkBackendRule(o[1]); 386 checkBackendRule(o[1]);
387 } 387 }
388 388
389 core.int buildCounterBackend = 0; 389 core.int buildCounterBackend = 0;
390 buildBackend() { 390 buildBackend() {
391 var o = new api.Backend(); 391 var o = new api.Backend();
392 buildCounterBackend++; 392 buildCounterBackend++;
393 if (buildCounterBackend < 3) { 393 if (buildCounterBackend < 3) {
394 o.rules = buildUnnamed1060(); 394 o.rules = buildUnnamed1051();
395 } 395 }
396 buildCounterBackend--; 396 buildCounterBackend--;
397 return o; 397 return o;
398 } 398 }
399 399
400 checkBackend(api.Backend o) { 400 checkBackend(api.Backend o) {
401 buildCounterBackend++; 401 buildCounterBackend++;
402 if (buildCounterBackend < 3) { 402 if (buildCounterBackend < 3) {
403 checkUnnamed1060(o.rules); 403 checkUnnamed1051(o.rules);
404 } 404 }
405 buildCounterBackend--; 405 buildCounterBackend--;
406 } 406 }
407 407
408 core.int buildCounterBackendRule = 0; 408 core.int buildCounterBackendRule = 0;
409 buildBackendRule() { 409 buildBackendRule() {
410 var o = new api.BackendRule(); 410 var o = new api.BackendRule();
411 buildCounterBackendRule++; 411 buildCounterBackendRule++;
412 if (buildCounterBackendRule < 3) { 412 if (buildCounterBackendRule < 3) {
413 o.address = "foo"; 413 o.address = "foo";
414 o.deadline = 42.0; 414 o.deadline = 42.0;
415 o.selector = "foo"; 415 o.selector = "foo";
416 } 416 }
417 buildCounterBackendRule--; 417 buildCounterBackendRule--;
418 return o; 418 return o;
419 } 419 }
420 420
421 checkBackendRule(api.BackendRule o) { 421 checkBackendRule(api.BackendRule o) {
422 buildCounterBackendRule++; 422 buildCounterBackendRule++;
423 if (buildCounterBackendRule < 3) { 423 if (buildCounterBackendRule < 3) {
424 unittest.expect(o.address, unittest.equals('foo')); 424 unittest.expect(o.address, unittest.equals('foo'));
425 unittest.expect(o.deadline, unittest.equals(42.0)); 425 unittest.expect(o.deadline, unittest.equals(42.0));
426 unittest.expect(o.selector, unittest.equals('foo')); 426 unittest.expect(o.selector, unittest.equals('foo'));
427 } 427 }
428 buildCounterBackendRule--; 428 buildCounterBackendRule--;
429 } 429 }
430 430
431 buildUnnamed1061() { 431 buildUnnamed1052() {
432 var o = new core.List<core.String>(); 432 var o = new core.List<core.String>();
433 o.add("foo"); 433 o.add("foo");
434 o.add("foo"); 434 o.add("foo");
435 return o; 435 return o;
436 } 436 }
437 437
438 checkUnnamed1061(core.List<core.String> o) { 438 checkUnnamed1052(core.List<core.String> o) {
439 unittest.expect(o, unittest.hasLength(2)); 439 unittest.expect(o, unittest.hasLength(2));
440 unittest.expect(o[0], unittest.equals('foo')); 440 unittest.expect(o[0], unittest.equals('foo'));
441 unittest.expect(o[1], unittest.equals('foo')); 441 unittest.expect(o[1], unittest.equals('foo'));
442 } 442 }
443 443
444 core.int buildCounterBinding = 0; 444 core.int buildCounterBinding = 0;
445 buildBinding() { 445 buildBinding() {
446 var o = new api.Binding(); 446 var o = new api.Binding();
447 buildCounterBinding++; 447 buildCounterBinding++;
448 if (buildCounterBinding < 3) { 448 if (buildCounterBinding < 3) {
449 o.members = buildUnnamed1061(); 449 o.members = buildUnnamed1052();
450 o.role = "foo"; 450 o.role = "foo";
451 } 451 }
452 buildCounterBinding--; 452 buildCounterBinding--;
453 return o; 453 return o;
454 } 454 }
455 455
456 checkBinding(api.Binding o) { 456 checkBinding(api.Binding o) {
457 buildCounterBinding++; 457 buildCounterBinding++;
458 if (buildCounterBinding < 3) { 458 if (buildCounterBinding < 3) {
459 checkUnnamed1061(o.members); 459 checkUnnamed1052(o.members);
460 unittest.expect(o.role, unittest.equals('foo')); 460 unittest.expect(o.role, unittest.equals('foo'));
461 } 461 }
462 buildCounterBinding--; 462 buildCounterBinding--;
463 } 463 }
464 464
465 buildUnnamed1062() { 465 buildUnnamed1053() {
466 var o = new core.List<api.ConfigChange>(); 466 var o = new core.List<api.ConfigChange>();
467 o.add(buildConfigChange()); 467 o.add(buildConfigChange());
468 o.add(buildConfigChange()); 468 o.add(buildConfigChange());
469 return o; 469 return o;
470 } 470 }
471 471
472 checkUnnamed1062(core.List<api.ConfigChange> o) { 472 checkUnnamed1053(core.List<api.ConfigChange> o) {
473 unittest.expect(o, unittest.hasLength(2)); 473 unittest.expect(o, unittest.hasLength(2));
474 checkConfigChange(o[0]); 474 checkConfigChange(o[0]);
475 checkConfigChange(o[1]); 475 checkConfigChange(o[1]);
476 } 476 }
477 477
478 core.int buildCounterChangeReport = 0; 478 core.int buildCounterChangeReport = 0;
479 buildChangeReport() { 479 buildChangeReport() {
480 var o = new api.ChangeReport(); 480 var o = new api.ChangeReport();
481 buildCounterChangeReport++; 481 buildCounterChangeReport++;
482 if (buildCounterChangeReport < 3) { 482 if (buildCounterChangeReport < 3) {
483 o.configChanges = buildUnnamed1062(); 483 o.configChanges = buildUnnamed1053();
484 } 484 }
485 buildCounterChangeReport--; 485 buildCounterChangeReport--;
486 return o; 486 return o;
487 } 487 }
488 488
489 checkChangeReport(api.ChangeReport o) { 489 checkChangeReport(api.ChangeReport o) {
490 buildCounterChangeReport++; 490 buildCounterChangeReport++;
491 if (buildCounterChangeReport < 3) { 491 if (buildCounterChangeReport < 3) {
492 checkUnnamed1062(o.configChanges); 492 checkUnnamed1053(o.configChanges);
493 } 493 }
494 buildCounterChangeReport--; 494 buildCounterChangeReport--;
495 } 495 }
496 496
497 core.int buildCounterCloudAuditOptions = 0; 497 core.int buildCounterCloudAuditOptions = 0;
498 buildCloudAuditOptions() { 498 buildCloudAuditOptions() {
499 var o = new api.CloudAuditOptions(); 499 var o = new api.CloudAuditOptions();
500 buildCounterCloudAuditOptions++; 500 buildCounterCloudAuditOptions++;
501 if (buildCounterCloudAuditOptions < 3) { 501 if (buildCounterCloudAuditOptions < 3) {
502 } 502 }
503 buildCounterCloudAuditOptions--; 503 buildCounterCloudAuditOptions--;
504 return o; 504 return o;
505 } 505 }
506 506
507 checkCloudAuditOptions(api.CloudAuditOptions o) { 507 checkCloudAuditOptions(api.CloudAuditOptions o) {
508 buildCounterCloudAuditOptions++; 508 buildCounterCloudAuditOptions++;
509 if (buildCounterCloudAuditOptions < 3) { 509 if (buildCounterCloudAuditOptions < 3) {
510 } 510 }
511 buildCounterCloudAuditOptions--; 511 buildCounterCloudAuditOptions--;
512 } 512 }
513 513
514 buildUnnamed1063() { 514 buildUnnamed1054() {
515 var o = new core.List<core.String>(); 515 var o = new core.List<core.String>();
516 o.add("foo"); 516 o.add("foo");
517 o.add("foo"); 517 o.add("foo");
518 return o; 518 return o;
519 } 519 }
520 520
521 checkUnnamed1063(core.List<core.String> o) { 521 checkUnnamed1054(core.List<core.String> o) {
522 unittest.expect(o, unittest.hasLength(2)); 522 unittest.expect(o, unittest.hasLength(2));
523 unittest.expect(o[0], unittest.equals('foo')); 523 unittest.expect(o[0], unittest.equals('foo'));
524 unittest.expect(o[1], unittest.equals('foo')); 524 unittest.expect(o[1], unittest.equals('foo'));
525 } 525 }
526 526
527 core.int buildCounterCondition = 0; 527 core.int buildCounterCondition = 0;
528 buildCondition() { 528 buildCondition() {
529 var o = new api.Condition(); 529 var o = new api.Condition();
530 buildCounterCondition++; 530 buildCounterCondition++;
531 if (buildCounterCondition < 3) { 531 if (buildCounterCondition < 3) {
532 o.iam = "foo"; 532 o.iam = "foo";
533 o.op = "foo"; 533 o.op = "foo";
534 o.svc = "foo"; 534 o.svc = "foo";
535 o.sys = "foo"; 535 o.sys = "foo";
536 o.value = "foo"; 536 o.value = "foo";
537 o.values = buildUnnamed1063(); 537 o.values = buildUnnamed1054();
538 } 538 }
539 buildCounterCondition--; 539 buildCounterCondition--;
540 return o; 540 return o;
541 } 541 }
542 542
543 checkCondition(api.Condition o) { 543 checkCondition(api.Condition o) {
544 buildCounterCondition++; 544 buildCounterCondition++;
545 if (buildCounterCondition < 3) { 545 if (buildCounterCondition < 3) {
546 unittest.expect(o.iam, unittest.equals('foo')); 546 unittest.expect(o.iam, unittest.equals('foo'));
547 unittest.expect(o.op, unittest.equals('foo')); 547 unittest.expect(o.op, unittest.equals('foo'));
548 unittest.expect(o.svc, unittest.equals('foo')); 548 unittest.expect(o.svc, unittest.equals('foo'));
549 unittest.expect(o.sys, unittest.equals('foo')); 549 unittest.expect(o.sys, unittest.equals('foo'));
550 unittest.expect(o.value, unittest.equals('foo')); 550 unittest.expect(o.value, unittest.equals('foo'));
551 checkUnnamed1063(o.values); 551 checkUnnamed1054(o.values);
552 } 552 }
553 buildCounterCondition--; 553 buildCounterCondition--;
554 } 554 }
555 555
556 buildUnnamed1064() { 556 buildUnnamed1055() {
557 var o = new core.List<api.Advice>(); 557 var o = new core.List<api.Advice>();
558 o.add(buildAdvice()); 558 o.add(buildAdvice());
559 o.add(buildAdvice()); 559 o.add(buildAdvice());
560 return o; 560 return o;
561 } 561 }
562 562
563 checkUnnamed1064(core.List<api.Advice> o) { 563 checkUnnamed1055(core.List<api.Advice> o) {
564 unittest.expect(o, unittest.hasLength(2)); 564 unittest.expect(o, unittest.hasLength(2));
565 checkAdvice(o[0]); 565 checkAdvice(o[0]);
566 checkAdvice(o[1]); 566 checkAdvice(o[1]);
567 } 567 }
568 568
569 core.int buildCounterConfigChange = 0; 569 core.int buildCounterConfigChange = 0;
570 buildConfigChange() { 570 buildConfigChange() {
571 var o = new api.ConfigChange(); 571 var o = new api.ConfigChange();
572 buildCounterConfigChange++; 572 buildCounterConfigChange++;
573 if (buildCounterConfigChange < 3) { 573 if (buildCounterConfigChange < 3) {
574 o.advices = buildUnnamed1064(); 574 o.advices = buildUnnamed1055();
575 o.changeType = "foo"; 575 o.changeType = "foo";
576 o.element = "foo"; 576 o.element = "foo";
577 o.newValue = "foo"; 577 o.newValue = "foo";
578 o.oldValue = "foo"; 578 o.oldValue = "foo";
579 } 579 }
580 buildCounterConfigChange--; 580 buildCounterConfigChange--;
581 return o; 581 return o;
582 } 582 }
583 583
584 checkConfigChange(api.ConfigChange o) { 584 checkConfigChange(api.ConfigChange o) {
585 buildCounterConfigChange++; 585 buildCounterConfigChange++;
586 if (buildCounterConfigChange < 3) { 586 if (buildCounterConfigChange < 3) {
587 checkUnnamed1064(o.advices); 587 checkUnnamed1055(o.advices);
588 unittest.expect(o.changeType, unittest.equals('foo')); 588 unittest.expect(o.changeType, unittest.equals('foo'));
589 unittest.expect(o.element, unittest.equals('foo')); 589 unittest.expect(o.element, unittest.equals('foo'));
590 unittest.expect(o.newValue, unittest.equals('foo')); 590 unittest.expect(o.newValue, unittest.equals('foo'));
591 unittest.expect(o.oldValue, unittest.equals('foo')); 591 unittest.expect(o.oldValue, unittest.equals('foo'));
592 } 592 }
593 buildCounterConfigChange--; 593 buildCounterConfigChange--;
594 } 594 }
595 595
596 core.int buildCounterConfigFile = 0; 596 core.int buildCounterConfigFile = 0;
597 buildConfigFile() { 597 buildConfigFile() {
(...skipping 30 matching lines...) Expand all
628 } 628 }
629 629
630 checkConfigRef(api.ConfigRef o) { 630 checkConfigRef(api.ConfigRef o) {
631 buildCounterConfigRef++; 631 buildCounterConfigRef++;
632 if (buildCounterConfigRef < 3) { 632 if (buildCounterConfigRef < 3) {
633 unittest.expect(o.name, unittest.equals('foo')); 633 unittest.expect(o.name, unittest.equals('foo'));
634 } 634 }
635 buildCounterConfigRef--; 635 buildCounterConfigRef--;
636 } 636 }
637 637
638 buildUnnamed1065() { 638 buildUnnamed1056() {
639 var o = new core.List<api.ConfigFile>(); 639 var o = new core.List<api.ConfigFile>();
640 o.add(buildConfigFile()); 640 o.add(buildConfigFile());
641 o.add(buildConfigFile()); 641 o.add(buildConfigFile());
642 return o; 642 return o;
643 } 643 }
644 644
645 checkUnnamed1065(core.List<api.ConfigFile> o) { 645 checkUnnamed1056(core.List<api.ConfigFile> o) {
646 unittest.expect(o, unittest.hasLength(2)); 646 unittest.expect(o, unittest.hasLength(2));
647 checkConfigFile(o[0]); 647 checkConfigFile(o[0]);
648 checkConfigFile(o[1]); 648 checkConfigFile(o[1]);
649 } 649 }
650 650
651 core.int buildCounterConfigSource = 0; 651 core.int buildCounterConfigSource = 0;
652 buildConfigSource() { 652 buildConfigSource() {
653 var o = new api.ConfigSource(); 653 var o = new api.ConfigSource();
654 buildCounterConfigSource++; 654 buildCounterConfigSource++;
655 if (buildCounterConfigSource < 3) { 655 if (buildCounterConfigSource < 3) {
656 o.files = buildUnnamed1065(); 656 o.files = buildUnnamed1056();
657 o.id = "foo"; 657 o.id = "foo";
658 } 658 }
659 buildCounterConfigSource--; 659 buildCounterConfigSource--;
660 return o; 660 return o;
661 } 661 }
662 662
663 checkConfigSource(api.ConfigSource o) { 663 checkConfigSource(api.ConfigSource o) {
664 buildCounterConfigSource++; 664 buildCounterConfigSource++;
665 if (buildCounterConfigSource < 3) { 665 if (buildCounterConfigSource < 3) {
666 checkUnnamed1065(o.files); 666 checkUnnamed1056(o.files);
667 unittest.expect(o.id, unittest.equals('foo')); 667 unittest.expect(o.id, unittest.equals('foo'));
668 } 668 }
669 buildCounterConfigSource--; 669 buildCounterConfigSource--;
670 } 670 }
671 671
672 buildUnnamed1066() { 672 buildUnnamed1057() {
673 var o = new core.List<api.ContextRule>(); 673 var o = new core.List<api.ContextRule>();
674 o.add(buildContextRule()); 674 o.add(buildContextRule());
675 o.add(buildContextRule()); 675 o.add(buildContextRule());
676 return o; 676 return o;
677 } 677 }
678 678
679 checkUnnamed1066(core.List<api.ContextRule> o) { 679 checkUnnamed1057(core.List<api.ContextRule> o) {
680 unittest.expect(o, unittest.hasLength(2)); 680 unittest.expect(o, unittest.hasLength(2));
681 checkContextRule(o[0]); 681 checkContextRule(o[0]);
682 checkContextRule(o[1]); 682 checkContextRule(o[1]);
683 } 683 }
684 684
685 core.int buildCounterContext = 0; 685 core.int buildCounterContext = 0;
686 buildContext() { 686 buildContext() {
687 var o = new api.Context(); 687 var o = new api.Context();
688 buildCounterContext++; 688 buildCounterContext++;
689 if (buildCounterContext < 3) { 689 if (buildCounterContext < 3) {
690 o.rules = buildUnnamed1066(); 690 o.rules = buildUnnamed1057();
691 } 691 }
692 buildCounterContext--; 692 buildCounterContext--;
693 return o; 693 return o;
694 } 694 }
695 695
696 checkContext(api.Context o) { 696 checkContext(api.Context o) {
697 buildCounterContext++; 697 buildCounterContext++;
698 if (buildCounterContext < 3) { 698 if (buildCounterContext < 3) {
699 checkUnnamed1066(o.rules); 699 checkUnnamed1057(o.rules);
700 } 700 }
701 buildCounterContext--; 701 buildCounterContext--;
702 } 702 }
703 703
704 buildUnnamed1067() { 704 buildUnnamed1058() {
705 var o = new core.List<core.String>(); 705 var o = new core.List<core.String>();
706 o.add("foo"); 706 o.add("foo");
707 o.add("foo"); 707 o.add("foo");
708 return o; 708 return o;
709 } 709 }
710 710
711 checkUnnamed1067(core.List<core.String> o) { 711 checkUnnamed1058(core.List<core.String> o) {
712 unittest.expect(o, unittest.hasLength(2)); 712 unittest.expect(o, unittest.hasLength(2));
713 unittest.expect(o[0], unittest.equals('foo')); 713 unittest.expect(o[0], unittest.equals('foo'));
714 unittest.expect(o[1], unittest.equals('foo')); 714 unittest.expect(o[1], unittest.equals('foo'));
715 } 715 }
716 716
717 buildUnnamed1068() { 717 buildUnnamed1059() {
718 var o = new core.List<core.String>(); 718 var o = new core.List<core.String>();
719 o.add("foo"); 719 o.add("foo");
720 o.add("foo"); 720 o.add("foo");
721 return o; 721 return o;
722 } 722 }
723 723
724 checkUnnamed1068(core.List<core.String> o) { 724 checkUnnamed1059(core.List<core.String> o) {
725 unittest.expect(o, unittest.hasLength(2)); 725 unittest.expect(o, unittest.hasLength(2));
726 unittest.expect(o[0], unittest.equals('foo')); 726 unittest.expect(o[0], unittest.equals('foo'));
727 unittest.expect(o[1], unittest.equals('foo')); 727 unittest.expect(o[1], unittest.equals('foo'));
728 } 728 }
729 729
730 core.int buildCounterContextRule = 0; 730 core.int buildCounterContextRule = 0;
731 buildContextRule() { 731 buildContextRule() {
732 var o = new api.ContextRule(); 732 var o = new api.ContextRule();
733 buildCounterContextRule++; 733 buildCounterContextRule++;
734 if (buildCounterContextRule < 3) { 734 if (buildCounterContextRule < 3) {
735 o.provided = buildUnnamed1067(); 735 o.provided = buildUnnamed1058();
736 o.requested = buildUnnamed1068(); 736 o.requested = buildUnnamed1059();
737 o.selector = "foo"; 737 o.selector = "foo";
738 } 738 }
739 buildCounterContextRule--; 739 buildCounterContextRule--;
740 return o; 740 return o;
741 } 741 }
742 742
743 checkContextRule(api.ContextRule o) { 743 checkContextRule(api.ContextRule o) {
744 buildCounterContextRule++; 744 buildCounterContextRule++;
745 if (buildCounterContextRule < 3) { 745 if (buildCounterContextRule < 3) {
746 checkUnnamed1067(o.provided); 746 checkUnnamed1058(o.provided);
747 checkUnnamed1068(o.requested); 747 checkUnnamed1059(o.requested);
748 unittest.expect(o.selector, unittest.equals('foo')); 748 unittest.expect(o.selector, unittest.equals('foo'));
749 } 749 }
750 buildCounterContextRule--; 750 buildCounterContextRule--;
751 } 751 }
752 752
753 core.int buildCounterControl = 0; 753 core.int buildCounterControl = 0;
754 buildControl() { 754 buildControl() {
755 var o = new api.Control(); 755 var o = new api.Control();
756 buildCounterControl++; 756 buildCounterControl++;
757 if (buildCounterControl < 3) { 757 if (buildCounterControl < 3) {
(...skipping 25 matching lines...) Expand all
783 783
784 checkCounterOptions(api.CounterOptions o) { 784 checkCounterOptions(api.CounterOptions o) {
785 buildCounterCounterOptions++; 785 buildCounterCounterOptions++;
786 if (buildCounterCounterOptions < 3) { 786 if (buildCounterCounterOptions < 3) {
787 unittest.expect(o.field, unittest.equals('foo')); 787 unittest.expect(o.field, unittest.equals('foo'));
788 unittest.expect(o.metric, unittest.equals('foo')); 788 unittest.expect(o.metric, unittest.equals('foo'));
789 } 789 }
790 buildCounterCounterOptions--; 790 buildCounterCounterOptions--;
791 } 791 }
792 792
793 buildUnnamed1069() { 793 buildUnnamed1060() {
794 var o = new core.List<api.CustomErrorRule>(); 794 var o = new core.List<api.CustomErrorRule>();
795 o.add(buildCustomErrorRule()); 795 o.add(buildCustomErrorRule());
796 o.add(buildCustomErrorRule()); 796 o.add(buildCustomErrorRule());
797 return o; 797 return o;
798 } 798 }
799 799
800 checkUnnamed1069(core.List<api.CustomErrorRule> o) { 800 checkUnnamed1060(core.List<api.CustomErrorRule> o) {
801 unittest.expect(o, unittest.hasLength(2)); 801 unittest.expect(o, unittest.hasLength(2));
802 checkCustomErrorRule(o[0]); 802 checkCustomErrorRule(o[0]);
803 checkCustomErrorRule(o[1]); 803 checkCustomErrorRule(o[1]);
804 } 804 }
805 805
806 buildUnnamed1070() { 806 buildUnnamed1061() {
807 var o = new core.List<core.String>(); 807 var o = new core.List<core.String>();
808 o.add("foo"); 808 o.add("foo");
809 o.add("foo"); 809 o.add("foo");
810 return o; 810 return o;
811 } 811 }
812 812
813 checkUnnamed1070(core.List<core.String> o) { 813 checkUnnamed1061(core.List<core.String> o) {
814 unittest.expect(o, unittest.hasLength(2)); 814 unittest.expect(o, unittest.hasLength(2));
815 unittest.expect(o[0], unittest.equals('foo')); 815 unittest.expect(o[0], unittest.equals('foo'));
816 unittest.expect(o[1], unittest.equals('foo')); 816 unittest.expect(o[1], unittest.equals('foo'));
817 } 817 }
818 818
819 core.int buildCounterCustomError = 0; 819 core.int buildCounterCustomError = 0;
820 buildCustomError() { 820 buildCustomError() {
821 var o = new api.CustomError(); 821 var o = new api.CustomError();
822 buildCounterCustomError++; 822 buildCounterCustomError++;
823 if (buildCounterCustomError < 3) { 823 if (buildCounterCustomError < 3) {
824 o.rules = buildUnnamed1069(); 824 o.rules = buildUnnamed1060();
825 o.types = buildUnnamed1070(); 825 o.types = buildUnnamed1061();
826 } 826 }
827 buildCounterCustomError--; 827 buildCounterCustomError--;
828 return o; 828 return o;
829 } 829 }
830 830
831 checkCustomError(api.CustomError o) { 831 checkCustomError(api.CustomError o) {
832 buildCounterCustomError++; 832 buildCounterCustomError++;
833 if (buildCounterCustomError < 3) { 833 if (buildCounterCustomError < 3) {
834 checkUnnamed1069(o.rules); 834 checkUnnamed1060(o.rules);
835 checkUnnamed1070(o.types); 835 checkUnnamed1061(o.types);
836 } 836 }
837 buildCounterCustomError--; 837 buildCounterCustomError--;
838 } 838 }
839 839
840 core.int buildCounterCustomErrorRule = 0; 840 core.int buildCounterCustomErrorRule = 0;
841 buildCustomErrorRule() { 841 buildCustomErrorRule() {
842 var o = new api.CustomErrorRule(); 842 var o = new api.CustomErrorRule();
843 buildCounterCustomErrorRule++; 843 buildCounterCustomErrorRule++;
844 if (buildCounterCustomErrorRule < 3) { 844 if (buildCounterCustomErrorRule < 3) {
845 o.isErrorType = true; 845 o.isErrorType = true;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 } 948 }
949 949
950 checkDisableServiceRequest(api.DisableServiceRequest o) { 950 checkDisableServiceRequest(api.DisableServiceRequest o) {
951 buildCounterDisableServiceRequest++; 951 buildCounterDisableServiceRequest++;
952 if (buildCounterDisableServiceRequest < 3) { 952 if (buildCounterDisableServiceRequest < 3) {
953 unittest.expect(o.consumerId, unittest.equals('foo')); 953 unittest.expect(o.consumerId, unittest.equals('foo'));
954 } 954 }
955 buildCounterDisableServiceRequest--; 955 buildCounterDisableServiceRequest--;
956 } 956 }
957 957
958 buildUnnamed1071() { 958 buildUnnamed1062() {
959 var o = new core.List<api.Page>(); 959 var o = new core.List<api.Page>();
960 o.add(buildPage()); 960 o.add(buildPage());
961 o.add(buildPage()); 961 o.add(buildPage());
962 return o; 962 return o;
963 } 963 }
964 964
965 checkUnnamed1071(core.List<api.Page> o) { 965 checkUnnamed1062(core.List<api.Page> o) {
966 unittest.expect(o, unittest.hasLength(2)); 966 unittest.expect(o, unittest.hasLength(2));
967 checkPage(o[0]); 967 checkPage(o[0]);
968 checkPage(o[1]); 968 checkPage(o[1]);
969 } 969 }
970 970
971 buildUnnamed1072() { 971 buildUnnamed1063() {
972 var o = new core.List<api.DocumentationRule>(); 972 var o = new core.List<api.DocumentationRule>();
973 o.add(buildDocumentationRule()); 973 o.add(buildDocumentationRule());
974 o.add(buildDocumentationRule()); 974 o.add(buildDocumentationRule());
975 return o; 975 return o;
976 } 976 }
977 977
978 checkUnnamed1072(core.List<api.DocumentationRule> o) { 978 checkUnnamed1063(core.List<api.DocumentationRule> o) {
979 unittest.expect(o, unittest.hasLength(2)); 979 unittest.expect(o, unittest.hasLength(2));
980 checkDocumentationRule(o[0]); 980 checkDocumentationRule(o[0]);
981 checkDocumentationRule(o[1]); 981 checkDocumentationRule(o[1]);
982 } 982 }
983 983
984 core.int buildCounterDocumentation = 0; 984 core.int buildCounterDocumentation = 0;
985 buildDocumentation() { 985 buildDocumentation() {
986 var o = new api.Documentation(); 986 var o = new api.Documentation();
987 buildCounterDocumentation++; 987 buildCounterDocumentation++;
988 if (buildCounterDocumentation < 3) { 988 if (buildCounterDocumentation < 3) {
989 o.documentationRootUrl = "foo"; 989 o.documentationRootUrl = "foo";
990 o.overview = "foo"; 990 o.overview = "foo";
991 o.pages = buildUnnamed1071(); 991 o.pages = buildUnnamed1062();
992 o.rules = buildUnnamed1072(); 992 o.rules = buildUnnamed1063();
993 o.summary = "foo"; 993 o.summary = "foo";
994 } 994 }
995 buildCounterDocumentation--; 995 buildCounterDocumentation--;
996 return o; 996 return o;
997 } 997 }
998 998
999 checkDocumentation(api.Documentation o) { 999 checkDocumentation(api.Documentation o) {
1000 buildCounterDocumentation++; 1000 buildCounterDocumentation++;
1001 if (buildCounterDocumentation < 3) { 1001 if (buildCounterDocumentation < 3) {
1002 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); 1002 unittest.expect(o.documentationRootUrl, unittest.equals('foo'));
1003 unittest.expect(o.overview, unittest.equals('foo')); 1003 unittest.expect(o.overview, unittest.equals('foo'));
1004 checkUnnamed1071(o.pages); 1004 checkUnnamed1062(o.pages);
1005 checkUnnamed1072(o.rules); 1005 checkUnnamed1063(o.rules);
1006 unittest.expect(o.summary, unittest.equals('foo')); 1006 unittest.expect(o.summary, unittest.equals('foo'));
1007 } 1007 }
1008 buildCounterDocumentation--; 1008 buildCounterDocumentation--;
1009 } 1009 }
1010 1010
1011 core.int buildCounterDocumentationRule = 0; 1011 core.int buildCounterDocumentationRule = 0;
1012 buildDocumentationRule() { 1012 buildDocumentationRule() {
1013 var o = new api.DocumentationRule(); 1013 var o = new api.DocumentationRule();
1014 buildCounterDocumentationRule++; 1014 buildCounterDocumentationRule++;
1015 if (buildCounterDocumentationRule < 3) { 1015 if (buildCounterDocumentationRule < 3) {
(...skipping 27 matching lines...) Expand all
1043 } 1043 }
1044 1044
1045 checkEnableServiceRequest(api.EnableServiceRequest o) { 1045 checkEnableServiceRequest(api.EnableServiceRequest o) {
1046 buildCounterEnableServiceRequest++; 1046 buildCounterEnableServiceRequest++;
1047 if (buildCounterEnableServiceRequest < 3) { 1047 if (buildCounterEnableServiceRequest < 3) {
1048 unittest.expect(o.consumerId, unittest.equals('foo')); 1048 unittest.expect(o.consumerId, unittest.equals('foo'));
1049 } 1049 }
1050 buildCounterEnableServiceRequest--; 1050 buildCounterEnableServiceRequest--;
1051 } 1051 }
1052 1052
1053 buildUnnamed1073() { 1053 buildUnnamed1064() {
1054 var o = new core.List<core.String>(); 1054 var o = new core.List<core.String>();
1055 o.add("foo"); 1055 o.add("foo");
1056 o.add("foo"); 1056 o.add("foo");
1057 return o; 1057 return o;
1058 } 1058 }
1059 1059
1060 checkUnnamed1073(core.List<core.String> o) { 1060 checkUnnamed1064(core.List<core.String> o) {
1061 unittest.expect(o, unittest.hasLength(2)); 1061 unittest.expect(o, unittest.hasLength(2));
1062 unittest.expect(o[0], unittest.equals('foo')); 1062 unittest.expect(o[0], unittest.equals('foo'));
1063 unittest.expect(o[1], unittest.equals('foo')); 1063 unittest.expect(o[1], unittest.equals('foo'));
1064 } 1064 }
1065 1065
1066 buildUnnamed1074() { 1066 buildUnnamed1065() {
1067 var o = new core.List<core.String>(); 1067 var o = new core.List<core.String>();
1068 o.add("foo"); 1068 o.add("foo");
1069 o.add("foo"); 1069 o.add("foo");
1070 return o; 1070 return o;
1071 } 1071 }
1072 1072
1073 checkUnnamed1074(core.List<core.String> o) { 1073 checkUnnamed1065(core.List<core.String> o) {
1074 unittest.expect(o, unittest.hasLength(2)); 1074 unittest.expect(o, unittest.hasLength(2));
1075 unittest.expect(o[0], unittest.equals('foo')); 1075 unittest.expect(o[0], unittest.equals('foo'));
1076 unittest.expect(o[1], unittest.equals('foo')); 1076 unittest.expect(o[1], unittest.equals('foo'));
1077 } 1077 }
1078 1078
1079 buildUnnamed1075() { 1079 buildUnnamed1066() {
1080 var o = new core.List<core.String>(); 1080 var o = new core.List<core.String>();
1081 o.add("foo"); 1081 o.add("foo");
1082 o.add("foo"); 1082 o.add("foo");
1083 return o; 1083 return o;
1084 } 1084 }
1085 1085
1086 checkUnnamed1075(core.List<core.String> o) { 1086 checkUnnamed1066(core.List<core.String> o) {
1087 unittest.expect(o, unittest.hasLength(2)); 1087 unittest.expect(o, unittest.hasLength(2));
1088 unittest.expect(o[0], unittest.equals('foo')); 1088 unittest.expect(o[0], unittest.equals('foo'));
1089 unittest.expect(o[1], unittest.equals('foo')); 1089 unittest.expect(o[1], unittest.equals('foo'));
1090 } 1090 }
1091 1091
1092 core.int buildCounterEndpoint = 0; 1092 core.int buildCounterEndpoint = 0;
1093 buildEndpoint() { 1093 buildEndpoint() {
1094 var o = new api.Endpoint(); 1094 var o = new api.Endpoint();
1095 buildCounterEndpoint++; 1095 buildCounterEndpoint++;
1096 if (buildCounterEndpoint < 3) { 1096 if (buildCounterEndpoint < 3) {
1097 o.aliases = buildUnnamed1073(); 1097 o.aliases = buildUnnamed1064();
1098 o.allowCors = true; 1098 o.allowCors = true;
1099 o.apis = buildUnnamed1074(); 1099 o.apis = buildUnnamed1065();
1100 o.features = buildUnnamed1075(); 1100 o.features = buildUnnamed1066();
1101 o.name = "foo"; 1101 o.name = "foo";
1102 o.target = "foo";
1102 } 1103 }
1103 buildCounterEndpoint--; 1104 buildCounterEndpoint--;
1104 return o; 1105 return o;
1105 } 1106 }
1106 1107
1107 checkEndpoint(api.Endpoint o) { 1108 checkEndpoint(api.Endpoint o) {
1108 buildCounterEndpoint++; 1109 buildCounterEndpoint++;
1109 if (buildCounterEndpoint < 3) { 1110 if (buildCounterEndpoint < 3) {
1110 checkUnnamed1073(o.aliases); 1111 checkUnnamed1064(o.aliases);
1111 unittest.expect(o.allowCors, unittest.isTrue); 1112 unittest.expect(o.allowCors, unittest.isTrue);
1112 checkUnnamed1074(o.apis); 1113 checkUnnamed1065(o.apis);
1113 checkUnnamed1075(o.features); 1114 checkUnnamed1066(o.features);
1114 unittest.expect(o.name, unittest.equals('foo')); 1115 unittest.expect(o.name, unittest.equals('foo'));
1116 unittest.expect(o.target, unittest.equals('foo'));
1115 } 1117 }
1116 buildCounterEndpoint--; 1118 buildCounterEndpoint--;
1117 } 1119 }
1118 1120
1119 buildUnnamed1076() { 1121 buildUnnamed1067() {
1120 var o = new core.List<api.EnumValue>(); 1122 var o = new core.List<api.EnumValue>();
1121 o.add(buildEnumValue()); 1123 o.add(buildEnumValue());
1122 o.add(buildEnumValue()); 1124 o.add(buildEnumValue());
1123 return o; 1125 return o;
1124 } 1126 }
1125 1127
1126 checkUnnamed1076(core.List<api.EnumValue> o) { 1128 checkUnnamed1067(core.List<api.EnumValue> o) {
1127 unittest.expect(o, unittest.hasLength(2)); 1129 unittest.expect(o, unittest.hasLength(2));
1128 checkEnumValue(o[0]); 1130 checkEnumValue(o[0]);
1129 checkEnumValue(o[1]); 1131 checkEnumValue(o[1]);
1130 } 1132 }
1131 1133
1132 buildUnnamed1077() { 1134 buildUnnamed1068() {
1133 var o = new core.List<api.Option>(); 1135 var o = new core.List<api.Option>();
1134 o.add(buildOption()); 1136 o.add(buildOption());
1135 o.add(buildOption()); 1137 o.add(buildOption());
1136 return o; 1138 return o;
1137 } 1139 }
1138 1140
1139 checkUnnamed1077(core.List<api.Option> o) { 1141 checkUnnamed1068(core.List<api.Option> o) {
1140 unittest.expect(o, unittest.hasLength(2)); 1142 unittest.expect(o, unittest.hasLength(2));
1141 checkOption(o[0]); 1143 checkOption(o[0]);
1142 checkOption(o[1]); 1144 checkOption(o[1]);
1143 } 1145 }
1144 1146
1145 core.int buildCounterEnum = 0; 1147 core.int buildCounterEnum = 0;
1146 buildEnum() { 1148 buildEnum() {
1147 var o = new api.Enum(); 1149 var o = new api.Enum();
1148 buildCounterEnum++; 1150 buildCounterEnum++;
1149 if (buildCounterEnum < 3) { 1151 if (buildCounterEnum < 3) {
1150 o.enumvalue = buildUnnamed1076(); 1152 o.enumvalue = buildUnnamed1067();
1151 o.name = "foo"; 1153 o.name = "foo";
1152 o.options = buildUnnamed1077(); 1154 o.options = buildUnnamed1068();
1153 o.sourceContext = buildSourceContext(); 1155 o.sourceContext = buildSourceContext();
1154 o.syntax = "foo"; 1156 o.syntax = "foo";
1155 } 1157 }
1156 buildCounterEnum--; 1158 buildCounterEnum--;
1157 return o; 1159 return o;
1158 } 1160 }
1159 1161
1160 checkEnum(api.Enum o) { 1162 checkEnum(api.Enum o) {
1161 buildCounterEnum++; 1163 buildCounterEnum++;
1162 if (buildCounterEnum < 3) { 1164 if (buildCounterEnum < 3) {
1163 checkUnnamed1076(o.enumvalue); 1165 checkUnnamed1067(o.enumvalue);
1164 unittest.expect(o.name, unittest.equals('foo')); 1166 unittest.expect(o.name, unittest.equals('foo'));
1165 checkUnnamed1077(o.options); 1167 checkUnnamed1068(o.options);
1166 checkSourceContext(o.sourceContext); 1168 checkSourceContext(o.sourceContext);
1167 unittest.expect(o.syntax, unittest.equals('foo')); 1169 unittest.expect(o.syntax, unittest.equals('foo'));
1168 } 1170 }
1169 buildCounterEnum--; 1171 buildCounterEnum--;
1170 } 1172 }
1171 1173
1172 buildUnnamed1078() { 1174 buildUnnamed1069() {
1173 var o = new core.List<api.Option>(); 1175 var o = new core.List<api.Option>();
1174 o.add(buildOption()); 1176 o.add(buildOption());
1175 o.add(buildOption()); 1177 o.add(buildOption());
1176 return o; 1178 return o;
1177 } 1179 }
1178 1180
1179 checkUnnamed1078(core.List<api.Option> o) { 1181 checkUnnamed1069(core.List<api.Option> o) {
1180 unittest.expect(o, unittest.hasLength(2)); 1182 unittest.expect(o, unittest.hasLength(2));
1181 checkOption(o[0]); 1183 checkOption(o[0]);
1182 checkOption(o[1]); 1184 checkOption(o[1]);
1183 } 1185 }
1184 1186
1185 core.int buildCounterEnumValue = 0; 1187 core.int buildCounterEnumValue = 0;
1186 buildEnumValue() { 1188 buildEnumValue() {
1187 var o = new api.EnumValue(); 1189 var o = new api.EnumValue();
1188 buildCounterEnumValue++; 1190 buildCounterEnumValue++;
1189 if (buildCounterEnumValue < 3) { 1191 if (buildCounterEnumValue < 3) {
1190 o.name = "foo"; 1192 o.name = "foo";
1191 o.number = 42; 1193 o.number = 42;
1192 o.options = buildUnnamed1078(); 1194 o.options = buildUnnamed1069();
1193 } 1195 }
1194 buildCounterEnumValue--; 1196 buildCounterEnumValue--;
1195 return o; 1197 return o;
1196 } 1198 }
1197 1199
1198 checkEnumValue(api.EnumValue o) { 1200 checkEnumValue(api.EnumValue o) {
1199 buildCounterEnumValue++; 1201 buildCounterEnumValue++;
1200 if (buildCounterEnumValue < 3) { 1202 if (buildCounterEnumValue < 3) {
1201 unittest.expect(o.name, unittest.equals('foo')); 1203 unittest.expect(o.name, unittest.equals('foo'));
1202 unittest.expect(o.number, unittest.equals(42)); 1204 unittest.expect(o.number, unittest.equals(42));
1203 checkUnnamed1078(o.options); 1205 checkUnnamed1069(o.options);
1204 } 1206 }
1205 buildCounterEnumValue--; 1207 buildCounterEnumValue--;
1206 } 1208 }
1207 1209
1208 core.int buildCounterExperimental = 0; 1210 core.int buildCounterExperimental = 0;
1209 buildExperimental() { 1211 buildExperimental() {
1210 var o = new api.Experimental(); 1212 var o = new api.Experimental();
1211 buildCounterExperimental++; 1213 buildCounterExperimental++;
1212 if (buildCounterExperimental < 3) { 1214 if (buildCounterExperimental < 3) {
1213 o.authorization = buildAuthorizationConfig(); 1215 o.authorization = buildAuthorizationConfig();
1214 } 1216 }
1215 buildCounterExperimental--; 1217 buildCounterExperimental--;
1216 return o; 1218 return o;
1217 } 1219 }
1218 1220
1219 checkExperimental(api.Experimental o) { 1221 checkExperimental(api.Experimental o) {
1220 buildCounterExperimental++; 1222 buildCounterExperimental++;
1221 if (buildCounterExperimental < 3) { 1223 if (buildCounterExperimental < 3) {
1222 checkAuthorizationConfig(o.authorization); 1224 checkAuthorizationConfig(o.authorization);
1223 } 1225 }
1224 buildCounterExperimental--; 1226 buildCounterExperimental--;
1225 } 1227 }
1226 1228
1227 buildUnnamed1079() { 1229 buildUnnamed1070() {
1228 var o = new core.List<api.Option>(); 1230 var o = new core.List<api.Option>();
1229 o.add(buildOption()); 1231 o.add(buildOption());
1230 o.add(buildOption()); 1232 o.add(buildOption());
1231 return o; 1233 return o;
1232 } 1234 }
1233 1235
1234 checkUnnamed1079(core.List<api.Option> o) { 1236 checkUnnamed1070(core.List<api.Option> o) {
1235 unittest.expect(o, unittest.hasLength(2)); 1237 unittest.expect(o, unittest.hasLength(2));
1236 checkOption(o[0]); 1238 checkOption(o[0]);
1237 checkOption(o[1]); 1239 checkOption(o[1]);
1238 } 1240 }
1239 1241
1240 core.int buildCounterField = 0; 1242 core.int buildCounterField = 0;
1241 buildField() { 1243 buildField() {
1242 var o = new api.Field(); 1244 var o = new api.Field();
1243 buildCounterField++; 1245 buildCounterField++;
1244 if (buildCounterField < 3) { 1246 if (buildCounterField < 3) {
1245 o.cardinality = "foo"; 1247 o.cardinality = "foo";
1246 o.defaultValue = "foo"; 1248 o.defaultValue = "foo";
1247 o.jsonName = "foo"; 1249 o.jsonName = "foo";
1248 o.kind = "foo"; 1250 o.kind = "foo";
1249 o.name = "foo"; 1251 o.name = "foo";
1250 o.number = 42; 1252 o.number = 42;
1251 o.oneofIndex = 42; 1253 o.oneofIndex = 42;
1252 o.options = buildUnnamed1079(); 1254 o.options = buildUnnamed1070();
1253 o.packed = true; 1255 o.packed = true;
1254 o.typeUrl = "foo"; 1256 o.typeUrl = "foo";
1255 } 1257 }
1256 buildCounterField--; 1258 buildCounterField--;
1257 return o; 1259 return o;
1258 } 1260 }
1259 1261
1260 checkField(api.Field o) { 1262 checkField(api.Field o) {
1261 buildCounterField++; 1263 buildCounterField++;
1262 if (buildCounterField < 3) { 1264 if (buildCounterField < 3) {
1263 unittest.expect(o.cardinality, unittest.equals('foo')); 1265 unittest.expect(o.cardinality, unittest.equals('foo'));
1264 unittest.expect(o.defaultValue, unittest.equals('foo')); 1266 unittest.expect(o.defaultValue, unittest.equals('foo'));
1265 unittest.expect(o.jsonName, unittest.equals('foo')); 1267 unittest.expect(o.jsonName, unittest.equals('foo'));
1266 unittest.expect(o.kind, unittest.equals('foo')); 1268 unittest.expect(o.kind, unittest.equals('foo'));
1267 unittest.expect(o.name, unittest.equals('foo')); 1269 unittest.expect(o.name, unittest.equals('foo'));
1268 unittest.expect(o.number, unittest.equals(42)); 1270 unittest.expect(o.number, unittest.equals(42));
1269 unittest.expect(o.oneofIndex, unittest.equals(42)); 1271 unittest.expect(o.oneofIndex, unittest.equals(42));
1270 checkUnnamed1079(o.options); 1272 checkUnnamed1070(o.options);
1271 unittest.expect(o.packed, unittest.isTrue); 1273 unittest.expect(o.packed, unittest.isTrue);
1272 unittest.expect(o.typeUrl, unittest.equals('foo')); 1274 unittest.expect(o.typeUrl, unittest.equals('foo'));
1273 } 1275 }
1274 buildCounterField--; 1276 buildCounterField--;
1275 } 1277 }
1276 1278
1277 buildUnnamed1080() { 1279 buildUnnamed1071() {
1278 var o = new core.List<core.String>(); 1280 var o = new core.List<core.String>();
1279 o.add("foo"); 1281 o.add("foo");
1280 o.add("foo"); 1282 o.add("foo");
1281 return o; 1283 return o;
1282 } 1284 }
1283 1285
1284 checkUnnamed1080(core.List<core.String> o) { 1286 checkUnnamed1071(core.List<core.String> o) {
1285 unittest.expect(o, unittest.hasLength(2)); 1287 unittest.expect(o, unittest.hasLength(2));
1286 unittest.expect(o[0], unittest.equals('foo')); 1288 unittest.expect(o[0], unittest.equals('foo'));
1287 unittest.expect(o[1], unittest.equals('foo')); 1289 unittest.expect(o[1], unittest.equals('foo'));
1288 } 1290 }
1289 1291
1290 core.int buildCounterFlowOperationMetadata = 0; 1292 core.int buildCounterFlowOperationMetadata = 0;
1291 buildFlowOperationMetadata() { 1293 buildFlowOperationMetadata() {
1292 var o = new api.FlowOperationMetadata(); 1294 var o = new api.FlowOperationMetadata();
1293 buildCounterFlowOperationMetadata++; 1295 buildCounterFlowOperationMetadata++;
1294 if (buildCounterFlowOperationMetadata < 3) { 1296 if (buildCounterFlowOperationMetadata < 3) {
1295 o.cancelState = "foo"; 1297 o.cancelState = "foo";
1296 o.deadline = "foo"; 1298 o.deadline = "foo";
1297 o.flowName = "foo"; 1299 o.flowName = "foo";
1298 o.isPersisted = true; 1300 o.resourceNames = buildUnnamed1071();
1299 o.resourceNames = buildUnnamed1080();
1300 o.startTime = "foo"; 1301 o.startTime = "foo";
1301 } 1302 }
1302 buildCounterFlowOperationMetadata--; 1303 buildCounterFlowOperationMetadata--;
1303 return o; 1304 return o;
1304 } 1305 }
1305 1306
1306 checkFlowOperationMetadata(api.FlowOperationMetadata o) { 1307 checkFlowOperationMetadata(api.FlowOperationMetadata o) {
1307 buildCounterFlowOperationMetadata++; 1308 buildCounterFlowOperationMetadata++;
1308 if (buildCounterFlowOperationMetadata < 3) { 1309 if (buildCounterFlowOperationMetadata < 3) {
1309 unittest.expect(o.cancelState, unittest.equals('foo')); 1310 unittest.expect(o.cancelState, unittest.equals('foo'));
1310 unittest.expect(o.deadline, unittest.equals('foo')); 1311 unittest.expect(o.deadline, unittest.equals('foo'));
1311 unittest.expect(o.flowName, unittest.equals('foo')); 1312 unittest.expect(o.flowName, unittest.equals('foo'));
1312 unittest.expect(o.isPersisted, unittest.isTrue); 1313 checkUnnamed1071(o.resourceNames);
1313 checkUnnamed1080(o.resourceNames);
1314 unittest.expect(o.startTime, unittest.equals('foo')); 1314 unittest.expect(o.startTime, unittest.equals('foo'));
1315 } 1315 }
1316 buildCounterFlowOperationMetadata--; 1316 buildCounterFlowOperationMetadata--;
1317 } 1317 }
1318 1318
1319 buildUnnamed1081() { 1319 buildUnnamed1072() {
1320 var o = new core.Map<core.String, core.Object>(); 1320 var o = new core.Map<core.String, core.Object>();
1321 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1321 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1322 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1322 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1323 return o; 1323 return o;
1324 } 1324 }
1325 1325
1326 checkUnnamed1081(core.Map<core.String, core.Object> o) { 1326 checkUnnamed1072(core.Map<core.String, core.Object> o) {
1327 unittest.expect(o, unittest.hasLength(2)); 1327 unittest.expect(o, unittest.hasLength(2));
1328 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')); 1328 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'));
1329 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')); 1329 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'));
1330 } 1330 }
1331 1331
1332 buildUnnamed1082() { 1332 buildUnnamed1073() {
1333 var o = new core.Map<core.String, core.Object>(); 1333 var o = new core.Map<core.String, core.Object>();
1334 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1334 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1335 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1335 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1336 return o; 1336 return o;
1337 } 1337 }
1338 1338
1339 checkUnnamed1082(core.Map<core.String, core.Object> o) { 1339 checkUnnamed1073(core.Map<core.String, core.Object> o) {
1340 unittest.expect(o, unittest.hasLength(2)); 1340 unittest.expect(o, unittest.hasLength(2));
1341 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')); 1341 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'));
1342 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')); 1342 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'));
1343 } 1343 }
1344 1344
1345 core.int buildCounterGenerateConfigReportRequest = 0; 1345 core.int buildCounterGenerateConfigReportRequest = 0;
1346 buildGenerateConfigReportRequest() { 1346 buildGenerateConfigReportRequest() {
1347 var o = new api.GenerateConfigReportRequest(); 1347 var o = new api.GenerateConfigReportRequest();
1348 buildCounterGenerateConfigReportRequest++; 1348 buildCounterGenerateConfigReportRequest++;
1349 if (buildCounterGenerateConfigReportRequest < 3) { 1349 if (buildCounterGenerateConfigReportRequest < 3) {
1350 o.newConfig = buildUnnamed1081(); 1350 o.newConfig = buildUnnamed1072();
1351 o.oldConfig = buildUnnamed1082(); 1351 o.oldConfig = buildUnnamed1073();
1352 } 1352 }
1353 buildCounterGenerateConfigReportRequest--; 1353 buildCounterGenerateConfigReportRequest--;
1354 return o; 1354 return o;
1355 } 1355 }
1356 1356
1357 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { 1357 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) {
1358 buildCounterGenerateConfigReportRequest++; 1358 buildCounterGenerateConfigReportRequest++;
1359 if (buildCounterGenerateConfigReportRequest < 3) { 1359 if (buildCounterGenerateConfigReportRequest < 3) {
1360 checkUnnamed1081(o.newConfig); 1360 checkUnnamed1072(o.newConfig);
1361 checkUnnamed1082(o.oldConfig); 1361 checkUnnamed1073(o.oldConfig);
1362 } 1362 }
1363 buildCounterGenerateConfigReportRequest--; 1363 buildCounterGenerateConfigReportRequest--;
1364 } 1364 }
1365 1365
1366 buildUnnamed1083() { 1366 buildUnnamed1074() {
1367 var o = new core.List<api.ChangeReport>(); 1367 var o = new core.List<api.ChangeReport>();
1368 o.add(buildChangeReport()); 1368 o.add(buildChangeReport());
1369 o.add(buildChangeReport()); 1369 o.add(buildChangeReport());
1370 return o; 1370 return o;
1371 } 1371 }
1372 1372
1373 checkUnnamed1083(core.List<api.ChangeReport> o) { 1373 checkUnnamed1074(core.List<api.ChangeReport> o) {
1374 unittest.expect(o, unittest.hasLength(2)); 1374 unittest.expect(o, unittest.hasLength(2));
1375 checkChangeReport(o[0]); 1375 checkChangeReport(o[0]);
1376 checkChangeReport(o[1]); 1376 checkChangeReport(o[1]);
1377 } 1377 }
1378 1378
1379 buildUnnamed1084() { 1379 buildUnnamed1075() {
1380 var o = new core.List<api.Diagnostic>(); 1380 var o = new core.List<api.Diagnostic>();
1381 o.add(buildDiagnostic()); 1381 o.add(buildDiagnostic());
1382 o.add(buildDiagnostic()); 1382 o.add(buildDiagnostic());
1383 return o; 1383 return o;
1384 } 1384 }
1385 1385
1386 checkUnnamed1084(core.List<api.Diagnostic> o) { 1386 checkUnnamed1075(core.List<api.Diagnostic> o) {
1387 unittest.expect(o, unittest.hasLength(2)); 1387 unittest.expect(o, unittest.hasLength(2));
1388 checkDiagnostic(o[0]); 1388 checkDiagnostic(o[0]);
1389 checkDiagnostic(o[1]); 1389 checkDiagnostic(o[1]);
1390 } 1390 }
1391 1391
1392 core.int buildCounterGenerateConfigReportResponse = 0; 1392 core.int buildCounterGenerateConfigReportResponse = 0;
1393 buildGenerateConfigReportResponse() { 1393 buildGenerateConfigReportResponse() {
1394 var o = new api.GenerateConfigReportResponse(); 1394 var o = new api.GenerateConfigReportResponse();
1395 buildCounterGenerateConfigReportResponse++; 1395 buildCounterGenerateConfigReportResponse++;
1396 if (buildCounterGenerateConfigReportResponse < 3) { 1396 if (buildCounterGenerateConfigReportResponse < 3) {
1397 o.changeReports = buildUnnamed1083(); 1397 o.changeReports = buildUnnamed1074();
1398 o.diagnostics = buildUnnamed1084(); 1398 o.diagnostics = buildUnnamed1075();
1399 o.id = "foo"; 1399 o.id = "foo";
1400 o.serviceName = "foo"; 1400 o.serviceName = "foo";
1401 } 1401 }
1402 buildCounterGenerateConfigReportResponse--; 1402 buildCounterGenerateConfigReportResponse--;
1403 return o; 1403 return o;
1404 } 1404 }
1405 1405
1406 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { 1406 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) {
1407 buildCounterGenerateConfigReportResponse++; 1407 buildCounterGenerateConfigReportResponse++;
1408 if (buildCounterGenerateConfigReportResponse < 3) { 1408 if (buildCounterGenerateConfigReportResponse < 3) {
1409 checkUnnamed1083(o.changeReports); 1409 checkUnnamed1074(o.changeReports);
1410 checkUnnamed1084(o.diagnostics); 1410 checkUnnamed1075(o.diagnostics);
1411 unittest.expect(o.id, unittest.equals('foo')); 1411 unittest.expect(o.id, unittest.equals('foo'));
1412 unittest.expect(o.serviceName, unittest.equals('foo')); 1412 unittest.expect(o.serviceName, unittest.equals('foo'));
1413 } 1413 }
1414 buildCounterGenerateConfigReportResponse--; 1414 buildCounterGenerateConfigReportResponse--;
1415 } 1415 }
1416 1416
1417 core.int buildCounterGetIamPolicyRequest = 0; 1417 core.int buildCounterGetIamPolicyRequest = 0;
1418 buildGetIamPolicyRequest() { 1418 buildGetIamPolicyRequest() {
1419 var o = new api.GetIamPolicyRequest(); 1419 var o = new api.GetIamPolicyRequest();
1420 buildCounterGetIamPolicyRequest++; 1420 buildCounterGetIamPolicyRequest++;
1421 if (buildCounterGetIamPolicyRequest < 3) { 1421 if (buildCounterGetIamPolicyRequest < 3) {
1422 } 1422 }
1423 buildCounterGetIamPolicyRequest--; 1423 buildCounterGetIamPolicyRequest--;
1424 return o; 1424 return o;
1425 } 1425 }
1426 1426
1427 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { 1427 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
1428 buildCounterGetIamPolicyRequest++; 1428 buildCounterGetIamPolicyRequest++;
1429 if (buildCounterGetIamPolicyRequest < 3) { 1429 if (buildCounterGetIamPolicyRequest < 3) {
1430 } 1430 }
1431 buildCounterGetIamPolicyRequest--; 1431 buildCounterGetIamPolicyRequest--;
1432 } 1432 }
1433 1433
1434 buildUnnamed1085() { 1434 buildUnnamed1076() {
1435 var o = new core.List<api.HttpRule>(); 1435 var o = new core.List<api.HttpRule>();
1436 o.add(buildHttpRule()); 1436 o.add(buildHttpRule());
1437 o.add(buildHttpRule()); 1437 o.add(buildHttpRule());
1438 return o; 1438 return o;
1439 } 1439 }
1440 1440
1441 checkUnnamed1085(core.List<api.HttpRule> o) { 1441 checkUnnamed1076(core.List<api.HttpRule> o) {
1442 unittest.expect(o, unittest.hasLength(2)); 1442 unittest.expect(o, unittest.hasLength(2));
1443 checkHttpRule(o[0]); 1443 checkHttpRule(o[0]);
1444 checkHttpRule(o[1]); 1444 checkHttpRule(o[1]);
1445 } 1445 }
1446 1446
1447 core.int buildCounterHttp = 0; 1447 core.int buildCounterHttp = 0;
1448 buildHttp() { 1448 buildHttp() {
1449 var o = new api.Http(); 1449 var o = new api.Http();
1450 buildCounterHttp++; 1450 buildCounterHttp++;
1451 if (buildCounterHttp < 3) { 1451 if (buildCounterHttp < 3) {
1452 o.rules = buildUnnamed1085(); 1452 o.fullyDecodeReservedExpansion = true;
1453 o.rules = buildUnnamed1076();
1453 } 1454 }
1454 buildCounterHttp--; 1455 buildCounterHttp--;
1455 return o; 1456 return o;
1456 } 1457 }
1457 1458
1458 checkHttp(api.Http o) { 1459 checkHttp(api.Http o) {
1459 buildCounterHttp++; 1460 buildCounterHttp++;
1460 if (buildCounterHttp < 3) { 1461 if (buildCounterHttp < 3) {
1461 checkUnnamed1085(o.rules); 1462 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue);
1463 checkUnnamed1076(o.rules);
1462 } 1464 }
1463 buildCounterHttp--; 1465 buildCounterHttp--;
1464 } 1466 }
1465 1467
1466 buildUnnamed1086() { 1468 buildUnnamed1077() {
1467 var o = new core.List<api.HttpRule>(); 1469 var o = new core.List<api.HttpRule>();
1468 o.add(buildHttpRule()); 1470 o.add(buildHttpRule());
1469 o.add(buildHttpRule()); 1471 o.add(buildHttpRule());
1470 return o; 1472 return o;
1471 } 1473 }
1472 1474
1473 checkUnnamed1086(core.List<api.HttpRule> o) { 1475 checkUnnamed1077(core.List<api.HttpRule> o) {
1474 unittest.expect(o, unittest.hasLength(2)); 1476 unittest.expect(o, unittest.hasLength(2));
1475 checkHttpRule(o[0]); 1477 checkHttpRule(o[0]);
1476 checkHttpRule(o[1]); 1478 checkHttpRule(o[1]);
1477 } 1479 }
1478 1480
1479 core.int buildCounterHttpRule = 0; 1481 core.int buildCounterHttpRule = 0;
1480 buildHttpRule() { 1482 buildHttpRule() {
1481 var o = new api.HttpRule(); 1483 var o = new api.HttpRule();
1482 buildCounterHttpRule++; 1484 buildCounterHttpRule++;
1483 if (buildCounterHttpRule < 3) { 1485 if (buildCounterHttpRule < 3) {
1484 o.additionalBindings = buildUnnamed1086(); 1486 o.additionalBindings = buildUnnamed1077();
1485 o.body = "foo"; 1487 o.body = "foo";
1486 o.custom = buildCustomHttpPattern(); 1488 o.custom = buildCustomHttpPattern();
1487 o.delete = "foo"; 1489 o.delete = "foo";
1488 o.get = "foo"; 1490 o.get = "foo";
1489 o.mediaDownload = buildMediaDownload(); 1491 o.mediaDownload = buildMediaDownload();
1490 o.mediaUpload = buildMediaUpload(); 1492 o.mediaUpload = buildMediaUpload();
1491 o.patch = "foo"; 1493 o.patch = "foo";
1492 o.post = "foo"; 1494 o.post = "foo";
1493 o.put = "foo"; 1495 o.put = "foo";
1494 o.responseBody = "foo"; 1496 o.responseBody = "foo";
1495 o.selector = "foo"; 1497 o.selector = "foo";
1496 } 1498 }
1497 buildCounterHttpRule--; 1499 buildCounterHttpRule--;
1498 return o; 1500 return o;
1499 } 1501 }
1500 1502
1501 checkHttpRule(api.HttpRule o) { 1503 checkHttpRule(api.HttpRule o) {
1502 buildCounterHttpRule++; 1504 buildCounterHttpRule++;
1503 if (buildCounterHttpRule < 3) { 1505 if (buildCounterHttpRule < 3) {
1504 checkUnnamed1086(o.additionalBindings); 1506 checkUnnamed1077(o.additionalBindings);
1505 unittest.expect(o.body, unittest.equals('foo')); 1507 unittest.expect(o.body, unittest.equals('foo'));
1506 checkCustomHttpPattern(o.custom); 1508 checkCustomHttpPattern(o.custom);
1507 unittest.expect(o.delete, unittest.equals('foo')); 1509 unittest.expect(o.delete, unittest.equals('foo'));
1508 unittest.expect(o.get, unittest.equals('foo')); 1510 unittest.expect(o.get, unittest.equals('foo'));
1509 checkMediaDownload(o.mediaDownload); 1511 checkMediaDownload(o.mediaDownload);
1510 checkMediaUpload(o.mediaUpload); 1512 checkMediaUpload(o.mediaUpload);
1511 unittest.expect(o.patch, unittest.equals('foo')); 1513 unittest.expect(o.patch, unittest.equals('foo'));
1512 unittest.expect(o.post, unittest.equals('foo')); 1514 unittest.expect(o.post, unittest.equals('foo'));
1513 unittest.expect(o.put, unittest.equals('foo')); 1515 unittest.expect(o.put, unittest.equals('foo'));
1514 unittest.expect(o.responseBody, unittest.equals('foo')); 1516 unittest.expect(o.responseBody, unittest.equals('foo'));
(...skipping 18 matching lines...) Expand all
1533 checkLabelDescriptor(api.LabelDescriptor o) { 1535 checkLabelDescriptor(api.LabelDescriptor o) {
1534 buildCounterLabelDescriptor++; 1536 buildCounterLabelDescriptor++;
1535 if (buildCounterLabelDescriptor < 3) { 1537 if (buildCounterLabelDescriptor < 3) {
1536 unittest.expect(o.description, unittest.equals('foo')); 1538 unittest.expect(o.description, unittest.equals('foo'));
1537 unittest.expect(o.key, unittest.equals('foo')); 1539 unittest.expect(o.key, unittest.equals('foo'));
1538 unittest.expect(o.valueType, unittest.equals('foo')); 1540 unittest.expect(o.valueType, unittest.equals('foo'));
1539 } 1541 }
1540 buildCounterLabelDescriptor--; 1542 buildCounterLabelDescriptor--;
1541 } 1543 }
1542 1544
1543 buildUnnamed1087() { 1545 buildUnnamed1078() {
1544 var o = new core.List<api.Operation>(); 1546 var o = new core.List<api.Operation>();
1545 o.add(buildOperation()); 1547 o.add(buildOperation());
1546 o.add(buildOperation()); 1548 o.add(buildOperation());
1547 return o; 1549 return o;
1548 } 1550 }
1549 1551
1550 checkUnnamed1087(core.List<api.Operation> o) { 1552 checkUnnamed1078(core.List<api.Operation> o) {
1551 unittest.expect(o, unittest.hasLength(2)); 1553 unittest.expect(o, unittest.hasLength(2));
1552 checkOperation(o[0]); 1554 checkOperation(o[0]);
1553 checkOperation(o[1]); 1555 checkOperation(o[1]);
1554 } 1556 }
1555 1557
1556 core.int buildCounterListOperationsResponse = 0; 1558 core.int buildCounterListOperationsResponse = 0;
1557 buildListOperationsResponse() { 1559 buildListOperationsResponse() {
1558 var o = new api.ListOperationsResponse(); 1560 var o = new api.ListOperationsResponse();
1559 buildCounterListOperationsResponse++; 1561 buildCounterListOperationsResponse++;
1560 if (buildCounterListOperationsResponse < 3) { 1562 if (buildCounterListOperationsResponse < 3) {
1561 o.nextPageToken = "foo"; 1563 o.nextPageToken = "foo";
1562 o.operations = buildUnnamed1087(); 1564 o.operations = buildUnnamed1078();
1563 } 1565 }
1564 buildCounterListOperationsResponse--; 1566 buildCounterListOperationsResponse--;
1565 return o; 1567 return o;
1566 } 1568 }
1567 1569
1568 checkListOperationsResponse(api.ListOperationsResponse o) { 1570 checkListOperationsResponse(api.ListOperationsResponse o) {
1569 buildCounterListOperationsResponse++; 1571 buildCounterListOperationsResponse++;
1570 if (buildCounterListOperationsResponse < 3) { 1572 if (buildCounterListOperationsResponse < 3) {
1571 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1573 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1572 checkUnnamed1087(o.operations); 1574 checkUnnamed1078(o.operations);
1573 } 1575 }
1574 buildCounterListOperationsResponse--; 1576 buildCounterListOperationsResponse--;
1575 } 1577 }
1576 1578
1577 buildUnnamed1088() { 1579 buildUnnamed1079() {
1578 var o = new core.List<api.Service>(); 1580 var o = new core.List<api.Service>();
1579 o.add(buildService()); 1581 o.add(buildService());
1580 o.add(buildService()); 1582 o.add(buildService());
1581 return o; 1583 return o;
1582 } 1584 }
1583 1585
1584 checkUnnamed1088(core.List<api.Service> o) { 1586 checkUnnamed1079(core.List<api.Service> o) {
1585 unittest.expect(o, unittest.hasLength(2)); 1587 unittest.expect(o, unittest.hasLength(2));
1586 checkService(o[0]); 1588 checkService(o[0]);
1587 checkService(o[1]); 1589 checkService(o[1]);
1588 } 1590 }
1589 1591
1590 core.int buildCounterListServiceConfigsResponse = 0; 1592 core.int buildCounterListServiceConfigsResponse = 0;
1591 buildListServiceConfigsResponse() { 1593 buildListServiceConfigsResponse() {
1592 var o = new api.ListServiceConfigsResponse(); 1594 var o = new api.ListServiceConfigsResponse();
1593 buildCounterListServiceConfigsResponse++; 1595 buildCounterListServiceConfigsResponse++;
1594 if (buildCounterListServiceConfigsResponse < 3) { 1596 if (buildCounterListServiceConfigsResponse < 3) {
1595 o.nextPageToken = "foo"; 1597 o.nextPageToken = "foo";
1596 o.serviceConfigs = buildUnnamed1088(); 1598 o.serviceConfigs = buildUnnamed1079();
1597 } 1599 }
1598 buildCounterListServiceConfigsResponse--; 1600 buildCounterListServiceConfigsResponse--;
1599 return o; 1601 return o;
1600 } 1602 }
1601 1603
1602 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { 1604 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) {
1603 buildCounterListServiceConfigsResponse++; 1605 buildCounterListServiceConfigsResponse++;
1604 if (buildCounterListServiceConfigsResponse < 3) { 1606 if (buildCounterListServiceConfigsResponse < 3) {
1605 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1607 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1606 checkUnnamed1088(o.serviceConfigs); 1608 checkUnnamed1079(o.serviceConfigs);
1607 } 1609 }
1608 buildCounterListServiceConfigsResponse--; 1610 buildCounterListServiceConfigsResponse--;
1609 } 1611 }
1610 1612
1611 buildUnnamed1089() { 1613 buildUnnamed1080() {
1612 var o = new core.List<api.Rollout>(); 1614 var o = new core.List<api.Rollout>();
1613 o.add(buildRollout()); 1615 o.add(buildRollout());
1614 o.add(buildRollout()); 1616 o.add(buildRollout());
1615 return o; 1617 return o;
1616 } 1618 }
1617 1619
1618 checkUnnamed1089(core.List<api.Rollout> o) { 1620 checkUnnamed1080(core.List<api.Rollout> o) {
1619 unittest.expect(o, unittest.hasLength(2)); 1621 unittest.expect(o, unittest.hasLength(2));
1620 checkRollout(o[0]); 1622 checkRollout(o[0]);
1621 checkRollout(o[1]); 1623 checkRollout(o[1]);
1622 } 1624 }
1623 1625
1624 core.int buildCounterListServiceRolloutsResponse = 0; 1626 core.int buildCounterListServiceRolloutsResponse = 0;
1625 buildListServiceRolloutsResponse() { 1627 buildListServiceRolloutsResponse() {
1626 var o = new api.ListServiceRolloutsResponse(); 1628 var o = new api.ListServiceRolloutsResponse();
1627 buildCounterListServiceRolloutsResponse++; 1629 buildCounterListServiceRolloutsResponse++;
1628 if (buildCounterListServiceRolloutsResponse < 3) { 1630 if (buildCounterListServiceRolloutsResponse < 3) {
1629 o.nextPageToken = "foo"; 1631 o.nextPageToken = "foo";
1630 o.rollouts = buildUnnamed1089(); 1632 o.rollouts = buildUnnamed1080();
1631 } 1633 }
1632 buildCounterListServiceRolloutsResponse--; 1634 buildCounterListServiceRolloutsResponse--;
1633 return o; 1635 return o;
1634 } 1636 }
1635 1637
1636 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { 1638 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) {
1637 buildCounterListServiceRolloutsResponse++; 1639 buildCounterListServiceRolloutsResponse++;
1638 if (buildCounterListServiceRolloutsResponse < 3) { 1640 if (buildCounterListServiceRolloutsResponse < 3) {
1639 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1641 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1640 checkUnnamed1089(o.rollouts); 1642 checkUnnamed1080(o.rollouts);
1641 } 1643 }
1642 buildCounterListServiceRolloutsResponse--; 1644 buildCounterListServiceRolloutsResponse--;
1643 } 1645 }
1644 1646
1645 buildUnnamed1090() { 1647 buildUnnamed1081() {
1646 var o = new core.List<api.ManagedService>(); 1648 var o = new core.List<api.ManagedService>();
1647 o.add(buildManagedService()); 1649 o.add(buildManagedService());
1648 o.add(buildManagedService()); 1650 o.add(buildManagedService());
1649 return o; 1651 return o;
1650 } 1652 }
1651 1653
1652 checkUnnamed1090(core.List<api.ManagedService> o) { 1654 checkUnnamed1081(core.List<api.ManagedService> o) {
1653 unittest.expect(o, unittest.hasLength(2)); 1655 unittest.expect(o, unittest.hasLength(2));
1654 checkManagedService(o[0]); 1656 checkManagedService(o[0]);
1655 checkManagedService(o[1]); 1657 checkManagedService(o[1]);
1656 } 1658 }
1657 1659
1658 core.int buildCounterListServicesResponse = 0; 1660 core.int buildCounterListServicesResponse = 0;
1659 buildListServicesResponse() { 1661 buildListServicesResponse() {
1660 var o = new api.ListServicesResponse(); 1662 var o = new api.ListServicesResponse();
1661 buildCounterListServicesResponse++; 1663 buildCounterListServicesResponse++;
1662 if (buildCounterListServicesResponse < 3) { 1664 if (buildCounterListServicesResponse < 3) {
1663 o.nextPageToken = "foo"; 1665 o.nextPageToken = "foo";
1664 o.services = buildUnnamed1090(); 1666 o.services = buildUnnamed1081();
1665 } 1667 }
1666 buildCounterListServicesResponse--; 1668 buildCounterListServicesResponse--;
1667 return o; 1669 return o;
1668 } 1670 }
1669 1671
1670 checkListServicesResponse(api.ListServicesResponse o) { 1672 checkListServicesResponse(api.ListServicesResponse o) {
1671 buildCounterListServicesResponse++; 1673 buildCounterListServicesResponse++;
1672 if (buildCounterListServicesResponse < 3) { 1674 if (buildCounterListServicesResponse < 3) {
1673 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1675 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1674 checkUnnamed1090(o.services); 1676 checkUnnamed1081(o.services);
1675 } 1677 }
1676 buildCounterListServicesResponse--; 1678 buildCounterListServicesResponse--;
1677 } 1679 }
1678 1680
1679 core.int buildCounterLogConfig = 0; 1681 core.int buildCounterLogConfig = 0;
1680 buildLogConfig() { 1682 buildLogConfig() {
1681 var o = new api.LogConfig(); 1683 var o = new api.LogConfig();
1682 buildCounterLogConfig++; 1684 buildCounterLogConfig++;
1683 if (buildCounterLogConfig < 3) { 1685 if (buildCounterLogConfig < 3) {
1684 o.cloudAudit = buildCloudAuditOptions(); 1686 o.cloudAudit = buildCloudAuditOptions();
1685 o.counter = buildCounterOptions(); 1687 o.counter = buildCounterOptions();
1686 o.dataAccess = buildDataAccessOptions(); 1688 o.dataAccess = buildDataAccessOptions();
1687 } 1689 }
1688 buildCounterLogConfig--; 1690 buildCounterLogConfig--;
1689 return o; 1691 return o;
1690 } 1692 }
1691 1693
1692 checkLogConfig(api.LogConfig o) { 1694 checkLogConfig(api.LogConfig o) {
1693 buildCounterLogConfig++; 1695 buildCounterLogConfig++;
1694 if (buildCounterLogConfig < 3) { 1696 if (buildCounterLogConfig < 3) {
1695 checkCloudAuditOptions(o.cloudAudit); 1697 checkCloudAuditOptions(o.cloudAudit);
1696 checkCounterOptions(o.counter); 1698 checkCounterOptions(o.counter);
1697 checkDataAccessOptions(o.dataAccess); 1699 checkDataAccessOptions(o.dataAccess);
1698 } 1700 }
1699 buildCounterLogConfig--; 1701 buildCounterLogConfig--;
1700 } 1702 }
1701 1703
1702 buildUnnamed1091() { 1704 buildUnnamed1082() {
1703 var o = new core.List<api.LabelDescriptor>(); 1705 var o = new core.List<api.LabelDescriptor>();
1704 o.add(buildLabelDescriptor()); 1706 o.add(buildLabelDescriptor());
1705 o.add(buildLabelDescriptor()); 1707 o.add(buildLabelDescriptor());
1706 return o; 1708 return o;
1707 } 1709 }
1708 1710
1709 checkUnnamed1091(core.List<api.LabelDescriptor> o) { 1711 checkUnnamed1082(core.List<api.LabelDescriptor> o) {
1710 unittest.expect(o, unittest.hasLength(2)); 1712 unittest.expect(o, unittest.hasLength(2));
1711 checkLabelDescriptor(o[0]); 1713 checkLabelDescriptor(o[0]);
1712 checkLabelDescriptor(o[1]); 1714 checkLabelDescriptor(o[1]);
1713 } 1715 }
1714 1716
1715 core.int buildCounterLogDescriptor = 0; 1717 core.int buildCounterLogDescriptor = 0;
1716 buildLogDescriptor() { 1718 buildLogDescriptor() {
1717 var o = new api.LogDescriptor(); 1719 var o = new api.LogDescriptor();
1718 buildCounterLogDescriptor++; 1720 buildCounterLogDescriptor++;
1719 if (buildCounterLogDescriptor < 3) { 1721 if (buildCounterLogDescriptor < 3) {
1720 o.description = "foo"; 1722 o.description = "foo";
1721 o.displayName = "foo"; 1723 o.displayName = "foo";
1722 o.labels = buildUnnamed1091(); 1724 o.labels = buildUnnamed1082();
1723 o.name = "foo"; 1725 o.name = "foo";
1724 } 1726 }
1725 buildCounterLogDescriptor--; 1727 buildCounterLogDescriptor--;
1726 return o; 1728 return o;
1727 } 1729 }
1728 1730
1729 checkLogDescriptor(api.LogDescriptor o) { 1731 checkLogDescriptor(api.LogDescriptor o) {
1730 buildCounterLogDescriptor++; 1732 buildCounterLogDescriptor++;
1731 if (buildCounterLogDescriptor < 3) { 1733 if (buildCounterLogDescriptor < 3) {
1732 unittest.expect(o.description, unittest.equals('foo')); 1734 unittest.expect(o.description, unittest.equals('foo'));
1733 unittest.expect(o.displayName, unittest.equals('foo')); 1735 unittest.expect(o.displayName, unittest.equals('foo'));
1734 checkUnnamed1091(o.labels); 1736 checkUnnamed1082(o.labels);
1735 unittest.expect(o.name, unittest.equals('foo')); 1737 unittest.expect(o.name, unittest.equals('foo'));
1736 } 1738 }
1737 buildCounterLogDescriptor--; 1739 buildCounterLogDescriptor--;
1738 } 1740 }
1739 1741
1740 buildUnnamed1092() { 1742 buildUnnamed1083() {
1741 var o = new core.List<api.LoggingDestination>(); 1743 var o = new core.List<api.LoggingDestination>();
1742 o.add(buildLoggingDestination()); 1744 o.add(buildLoggingDestination());
1743 o.add(buildLoggingDestination()); 1745 o.add(buildLoggingDestination());
1744 return o; 1746 return o;
1745 } 1747 }
1746 1748
1747 checkUnnamed1092(core.List<api.LoggingDestination> o) { 1749 checkUnnamed1083(core.List<api.LoggingDestination> o) {
1748 unittest.expect(o, unittest.hasLength(2)); 1750 unittest.expect(o, unittest.hasLength(2));
1749 checkLoggingDestination(o[0]); 1751 checkLoggingDestination(o[0]);
1750 checkLoggingDestination(o[1]); 1752 checkLoggingDestination(o[1]);
1751 } 1753 }
1752 1754
1753 buildUnnamed1093() { 1755 buildUnnamed1084() {
1754 var o = new core.List<api.LoggingDestination>(); 1756 var o = new core.List<api.LoggingDestination>();
1755 o.add(buildLoggingDestination()); 1757 o.add(buildLoggingDestination());
1756 o.add(buildLoggingDestination()); 1758 o.add(buildLoggingDestination());
1757 return o; 1759 return o;
1758 } 1760 }
1759 1761
1760 checkUnnamed1093(core.List<api.LoggingDestination> o) { 1762 checkUnnamed1084(core.List<api.LoggingDestination> o) {
1761 unittest.expect(o, unittest.hasLength(2)); 1763 unittest.expect(o, unittest.hasLength(2));
1762 checkLoggingDestination(o[0]); 1764 checkLoggingDestination(o[0]);
1763 checkLoggingDestination(o[1]); 1765 checkLoggingDestination(o[1]);
1764 } 1766 }
1765 1767
1766 core.int buildCounterLogging = 0; 1768 core.int buildCounterLogging = 0;
1767 buildLogging() { 1769 buildLogging() {
1768 var o = new api.Logging(); 1770 var o = new api.Logging();
1769 buildCounterLogging++; 1771 buildCounterLogging++;
1770 if (buildCounterLogging < 3) { 1772 if (buildCounterLogging < 3) {
1771 o.consumerDestinations = buildUnnamed1092(); 1773 o.consumerDestinations = buildUnnamed1083();
1772 o.producerDestinations = buildUnnamed1093(); 1774 o.producerDestinations = buildUnnamed1084();
1773 } 1775 }
1774 buildCounterLogging--; 1776 buildCounterLogging--;
1775 return o; 1777 return o;
1776 } 1778 }
1777 1779
1778 checkLogging(api.Logging o) { 1780 checkLogging(api.Logging o) {
1779 buildCounterLogging++; 1781 buildCounterLogging++;
1780 if (buildCounterLogging < 3) { 1782 if (buildCounterLogging < 3) {
1781 checkUnnamed1092(o.consumerDestinations); 1783 checkUnnamed1083(o.consumerDestinations);
1782 checkUnnamed1093(o.producerDestinations); 1784 checkUnnamed1084(o.producerDestinations);
1783 } 1785 }
1784 buildCounterLogging--; 1786 buildCounterLogging--;
1785 } 1787 }
1786 1788
1787 buildUnnamed1094() { 1789 buildUnnamed1085() {
1788 var o = new core.List<core.String>(); 1790 var o = new core.List<core.String>();
1789 o.add("foo"); 1791 o.add("foo");
1790 o.add("foo"); 1792 o.add("foo");
1791 return o; 1793 return o;
1792 } 1794 }
1793 1795
1794 checkUnnamed1094(core.List<core.String> o) { 1796 checkUnnamed1085(core.List<core.String> o) {
1795 unittest.expect(o, unittest.hasLength(2)); 1797 unittest.expect(o, unittest.hasLength(2));
1796 unittest.expect(o[0], unittest.equals('foo')); 1798 unittest.expect(o[0], unittest.equals('foo'));
1797 unittest.expect(o[1], unittest.equals('foo')); 1799 unittest.expect(o[1], unittest.equals('foo'));
1798 } 1800 }
1799 1801
1800 core.int buildCounterLoggingDestination = 0; 1802 core.int buildCounterLoggingDestination = 0;
1801 buildLoggingDestination() { 1803 buildLoggingDestination() {
1802 var o = new api.LoggingDestination(); 1804 var o = new api.LoggingDestination();
1803 buildCounterLoggingDestination++; 1805 buildCounterLoggingDestination++;
1804 if (buildCounterLoggingDestination < 3) { 1806 if (buildCounterLoggingDestination < 3) {
1805 o.logs = buildUnnamed1094(); 1807 o.logs = buildUnnamed1085();
1806 o.monitoredResource = "foo"; 1808 o.monitoredResource = "foo";
1807 } 1809 }
1808 buildCounterLoggingDestination--; 1810 buildCounterLoggingDestination--;
1809 return o; 1811 return o;
1810 } 1812 }
1811 1813
1812 checkLoggingDestination(api.LoggingDestination o) { 1814 checkLoggingDestination(api.LoggingDestination o) {
1813 buildCounterLoggingDestination++; 1815 buildCounterLoggingDestination++;
1814 if (buildCounterLoggingDestination < 3) { 1816 if (buildCounterLoggingDestination < 3) {
1815 checkUnnamed1094(o.logs); 1817 checkUnnamed1085(o.logs);
1816 unittest.expect(o.monitoredResource, unittest.equals('foo')); 1818 unittest.expect(o.monitoredResource, unittest.equals('foo'));
1817 } 1819 }
1818 buildCounterLoggingDestination--; 1820 buildCounterLoggingDestination--;
1819 } 1821 }
1820 1822
1821 core.int buildCounterManagedService = 0; 1823 core.int buildCounterManagedService = 0;
1822 buildManagedService() { 1824 buildManagedService() {
1823 var o = new api.ManagedService(); 1825 var o = new api.ManagedService();
1824 buildCounterManagedService++; 1826 buildCounterManagedService++;
1825 if (buildCounterManagedService < 3) { 1827 if (buildCounterManagedService < 3) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 1876
1875 checkMediaUpload(api.MediaUpload o) { 1877 checkMediaUpload(api.MediaUpload o) {
1876 buildCounterMediaUpload++; 1878 buildCounterMediaUpload++;
1877 if (buildCounterMediaUpload < 3) { 1879 if (buildCounterMediaUpload < 3) {
1878 unittest.expect(o.enabled, unittest.isTrue); 1880 unittest.expect(o.enabled, unittest.isTrue);
1879 unittest.expect(o.uploadService, unittest.equals('foo')); 1881 unittest.expect(o.uploadService, unittest.equals('foo'));
1880 } 1882 }
1881 buildCounterMediaUpload--; 1883 buildCounterMediaUpload--;
1882 } 1884 }
1883 1885
1884 buildUnnamed1095() { 1886 buildUnnamed1086() {
1885 var o = new core.List<api.Option>(); 1887 var o = new core.List<api.Option>();
1886 o.add(buildOption()); 1888 o.add(buildOption());
1887 o.add(buildOption()); 1889 o.add(buildOption());
1888 return o; 1890 return o;
1889 } 1891 }
1890 1892
1891 checkUnnamed1095(core.List<api.Option> o) { 1893 checkUnnamed1086(core.List<api.Option> o) {
1892 unittest.expect(o, unittest.hasLength(2)); 1894 unittest.expect(o, unittest.hasLength(2));
1893 checkOption(o[0]); 1895 checkOption(o[0]);
1894 checkOption(o[1]); 1896 checkOption(o[1]);
1895 } 1897 }
1896 1898
1897 core.int buildCounterMethod = 0; 1899 core.int buildCounterMethod = 0;
1898 buildMethod() { 1900 buildMethod() {
1899 var o = new api.Method(); 1901 var o = new api.Method();
1900 buildCounterMethod++; 1902 buildCounterMethod++;
1901 if (buildCounterMethod < 3) { 1903 if (buildCounterMethod < 3) {
1902 o.name = "foo"; 1904 o.name = "foo";
1903 o.options = buildUnnamed1095(); 1905 o.options = buildUnnamed1086();
1904 o.requestStreaming = true; 1906 o.requestStreaming = true;
1905 o.requestTypeUrl = "foo"; 1907 o.requestTypeUrl = "foo";
1906 o.responseStreaming = true; 1908 o.responseStreaming = true;
1907 o.responseTypeUrl = "foo"; 1909 o.responseTypeUrl = "foo";
1908 o.syntax = "foo"; 1910 o.syntax = "foo";
1909 } 1911 }
1910 buildCounterMethod--; 1912 buildCounterMethod--;
1911 return o; 1913 return o;
1912 } 1914 }
1913 1915
1914 checkMethod(api.Method o) { 1916 checkMethod(api.Method o) {
1915 buildCounterMethod++; 1917 buildCounterMethod++;
1916 if (buildCounterMethod < 3) { 1918 if (buildCounterMethod < 3) {
1917 unittest.expect(o.name, unittest.equals('foo')); 1919 unittest.expect(o.name, unittest.equals('foo'));
1918 checkUnnamed1095(o.options); 1920 checkUnnamed1086(o.options);
1919 unittest.expect(o.requestStreaming, unittest.isTrue); 1921 unittest.expect(o.requestStreaming, unittest.isTrue);
1920 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); 1922 unittest.expect(o.requestTypeUrl, unittest.equals('foo'));
1921 unittest.expect(o.responseStreaming, unittest.isTrue); 1923 unittest.expect(o.responseStreaming, unittest.isTrue);
1922 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); 1924 unittest.expect(o.responseTypeUrl, unittest.equals('foo'));
1923 unittest.expect(o.syntax, unittest.equals('foo')); 1925 unittest.expect(o.syntax, unittest.equals('foo'));
1924 } 1926 }
1925 buildCounterMethod--; 1927 buildCounterMethod--;
1926 } 1928 }
1927 1929
1928 buildUnnamed1096() { 1930 buildUnnamed1087() {
1929 var o = new core.List<api.LabelDescriptor>(); 1931 var o = new core.List<api.LabelDescriptor>();
1930 o.add(buildLabelDescriptor()); 1932 o.add(buildLabelDescriptor());
1931 o.add(buildLabelDescriptor()); 1933 o.add(buildLabelDescriptor());
1932 return o; 1934 return o;
1933 } 1935 }
1934 1936
1935 checkUnnamed1096(core.List<api.LabelDescriptor> o) { 1937 checkUnnamed1087(core.List<api.LabelDescriptor> o) {
1936 unittest.expect(o, unittest.hasLength(2)); 1938 unittest.expect(o, unittest.hasLength(2));
1937 checkLabelDescriptor(o[0]); 1939 checkLabelDescriptor(o[0]);
1938 checkLabelDescriptor(o[1]); 1940 checkLabelDescriptor(o[1]);
1939 } 1941 }
1940 1942
1941 core.int buildCounterMetricDescriptor = 0; 1943 core.int buildCounterMetricDescriptor = 0;
1942 buildMetricDescriptor() { 1944 buildMetricDescriptor() {
1943 var o = new api.MetricDescriptor(); 1945 var o = new api.MetricDescriptor();
1944 buildCounterMetricDescriptor++; 1946 buildCounterMetricDescriptor++;
1945 if (buildCounterMetricDescriptor < 3) { 1947 if (buildCounterMetricDescriptor < 3) {
1946 o.description = "foo"; 1948 o.description = "foo";
1947 o.displayName = "foo"; 1949 o.displayName = "foo";
1948 o.labels = buildUnnamed1096(); 1950 o.labels = buildUnnamed1087();
1949 o.metricKind = "foo"; 1951 o.metricKind = "foo";
1950 o.name = "foo"; 1952 o.name = "foo";
1951 o.type = "foo"; 1953 o.type = "foo";
1952 o.unit = "foo"; 1954 o.unit = "foo";
1953 o.valueType = "foo"; 1955 o.valueType = "foo";
1954 } 1956 }
1955 buildCounterMetricDescriptor--; 1957 buildCounterMetricDescriptor--;
1956 return o; 1958 return o;
1957 } 1959 }
1958 1960
1959 checkMetricDescriptor(api.MetricDescriptor o) { 1961 checkMetricDescriptor(api.MetricDescriptor o) {
1960 buildCounterMetricDescriptor++; 1962 buildCounterMetricDescriptor++;
1961 if (buildCounterMetricDescriptor < 3) { 1963 if (buildCounterMetricDescriptor < 3) {
1962 unittest.expect(o.description, unittest.equals('foo')); 1964 unittest.expect(o.description, unittest.equals('foo'));
1963 unittest.expect(o.displayName, unittest.equals('foo')); 1965 unittest.expect(o.displayName, unittest.equals('foo'));
1964 checkUnnamed1096(o.labels); 1966 checkUnnamed1087(o.labels);
1965 unittest.expect(o.metricKind, unittest.equals('foo')); 1967 unittest.expect(o.metricKind, unittest.equals('foo'));
1966 unittest.expect(o.name, unittest.equals('foo')); 1968 unittest.expect(o.name, unittest.equals('foo'));
1967 unittest.expect(o.type, unittest.equals('foo')); 1969 unittest.expect(o.type, unittest.equals('foo'));
1968 unittest.expect(o.unit, unittest.equals('foo')); 1970 unittest.expect(o.unit, unittest.equals('foo'));
1969 unittest.expect(o.valueType, unittest.equals('foo')); 1971 unittest.expect(o.valueType, unittest.equals('foo'));
1970 } 1972 }
1971 buildCounterMetricDescriptor--; 1973 buildCounterMetricDescriptor--;
1972 } 1974 }
1973 1975
1976 buildUnnamed1088() {
1977 var o = new core.Map<core.String, core.String>();
1978 o["x"] = "foo";
1979 o["y"] = "foo";
1980 return o;
1981 }
1982
1983 checkUnnamed1088(core.Map<core.String, core.String> o) {
1984 unittest.expect(o, unittest.hasLength(2));
1985 unittest.expect(o["x"], unittest.equals('foo'));
1986 unittest.expect(o["y"], unittest.equals('foo'));
1987 }
1988
1989 core.int buildCounterMetricRule = 0;
1990 buildMetricRule() {
1991 var o = new api.MetricRule();
1992 buildCounterMetricRule++;
1993 if (buildCounterMetricRule < 3) {
1994 o.metricCosts = buildUnnamed1088();
1995 o.selector = "foo";
1996 }
1997 buildCounterMetricRule--;
1998 return o;
1999 }
2000
2001 checkMetricRule(api.MetricRule o) {
2002 buildCounterMetricRule++;
2003 if (buildCounterMetricRule < 3) {
2004 checkUnnamed1088(o.metricCosts);
2005 unittest.expect(o.selector, unittest.equals('foo'));
2006 }
2007 buildCounterMetricRule--;
2008 }
2009
1974 core.int buildCounterMixin = 0; 2010 core.int buildCounterMixin = 0;
1975 buildMixin() { 2011 buildMixin() {
1976 var o = new api.Mixin(); 2012 var o = new api.Mixin();
1977 buildCounterMixin++; 2013 buildCounterMixin++;
1978 if (buildCounterMixin < 3) { 2014 if (buildCounterMixin < 3) {
1979 o.name = "foo"; 2015 o.name = "foo";
1980 o.root = "foo"; 2016 o.root = "foo";
1981 } 2017 }
1982 buildCounterMixin--; 2018 buildCounterMixin--;
1983 return o; 2019 return o;
1984 } 2020 }
1985 2021
1986 checkMixin(api.Mixin o) { 2022 checkMixin(api.Mixin o) {
1987 buildCounterMixin++; 2023 buildCounterMixin++;
1988 if (buildCounterMixin < 3) { 2024 if (buildCounterMixin < 3) {
1989 unittest.expect(o.name, unittest.equals('foo')); 2025 unittest.expect(o.name, unittest.equals('foo'));
1990 unittest.expect(o.root, unittest.equals('foo')); 2026 unittest.expect(o.root, unittest.equals('foo'));
1991 } 2027 }
1992 buildCounterMixin--; 2028 buildCounterMixin--;
1993 } 2029 }
1994 2030
1995 buildUnnamed1097() { 2031 buildUnnamed1089() {
1996 var o = new core.List<api.LabelDescriptor>(); 2032 var o = new core.List<api.LabelDescriptor>();
1997 o.add(buildLabelDescriptor()); 2033 o.add(buildLabelDescriptor());
1998 o.add(buildLabelDescriptor()); 2034 o.add(buildLabelDescriptor());
1999 return o; 2035 return o;
2000 } 2036 }
2001 2037
2002 checkUnnamed1097(core.List<api.LabelDescriptor> o) { 2038 checkUnnamed1089(core.List<api.LabelDescriptor> o) {
2003 unittest.expect(o, unittest.hasLength(2)); 2039 unittest.expect(o, unittest.hasLength(2));
2004 checkLabelDescriptor(o[0]); 2040 checkLabelDescriptor(o[0]);
2005 checkLabelDescriptor(o[1]); 2041 checkLabelDescriptor(o[1]);
2006 } 2042 }
2007 2043
2008 core.int buildCounterMonitoredResourceDescriptor = 0; 2044 core.int buildCounterMonitoredResourceDescriptor = 0;
2009 buildMonitoredResourceDescriptor() { 2045 buildMonitoredResourceDescriptor() {
2010 var o = new api.MonitoredResourceDescriptor(); 2046 var o = new api.MonitoredResourceDescriptor();
2011 buildCounterMonitoredResourceDescriptor++; 2047 buildCounterMonitoredResourceDescriptor++;
2012 if (buildCounterMonitoredResourceDescriptor < 3) { 2048 if (buildCounterMonitoredResourceDescriptor < 3) {
2013 o.description = "foo"; 2049 o.description = "foo";
2014 o.displayName = "foo"; 2050 o.displayName = "foo";
2015 o.labels = buildUnnamed1097(); 2051 o.labels = buildUnnamed1089();
2016 o.name = "foo"; 2052 o.name = "foo";
2017 o.type = "foo"; 2053 o.type = "foo";
2018 } 2054 }
2019 buildCounterMonitoredResourceDescriptor--; 2055 buildCounterMonitoredResourceDescriptor--;
2020 return o; 2056 return o;
2021 } 2057 }
2022 2058
2023 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { 2059 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
2024 buildCounterMonitoredResourceDescriptor++; 2060 buildCounterMonitoredResourceDescriptor++;
2025 if (buildCounterMonitoredResourceDescriptor < 3) { 2061 if (buildCounterMonitoredResourceDescriptor < 3) {
2026 unittest.expect(o.description, unittest.equals('foo')); 2062 unittest.expect(o.description, unittest.equals('foo'));
2027 unittest.expect(o.displayName, unittest.equals('foo')); 2063 unittest.expect(o.displayName, unittest.equals('foo'));
2028 checkUnnamed1097(o.labels); 2064 checkUnnamed1089(o.labels);
2029 unittest.expect(o.name, unittest.equals('foo')); 2065 unittest.expect(o.name, unittest.equals('foo'));
2030 unittest.expect(o.type, unittest.equals('foo')); 2066 unittest.expect(o.type, unittest.equals('foo'));
2031 } 2067 }
2032 buildCounterMonitoredResourceDescriptor--; 2068 buildCounterMonitoredResourceDescriptor--;
2033 } 2069 }
2034 2070
2035 buildUnnamed1098() { 2071 buildUnnamed1090() {
2036 var o = new core.List<api.MonitoringDestination>(); 2072 var o = new core.List<api.MonitoringDestination>();
2037 o.add(buildMonitoringDestination()); 2073 o.add(buildMonitoringDestination());
2038 o.add(buildMonitoringDestination()); 2074 o.add(buildMonitoringDestination());
2039 return o; 2075 return o;
2040 } 2076 }
2041 2077
2042 checkUnnamed1098(core.List<api.MonitoringDestination> o) { 2078 checkUnnamed1090(core.List<api.MonitoringDestination> o) {
2043 unittest.expect(o, unittest.hasLength(2)); 2079 unittest.expect(o, unittest.hasLength(2));
2044 checkMonitoringDestination(o[0]); 2080 checkMonitoringDestination(o[0]);
2045 checkMonitoringDestination(o[1]); 2081 checkMonitoringDestination(o[1]);
2046 } 2082 }
2047 2083
2048 buildUnnamed1099() { 2084 buildUnnamed1091() {
2049 var o = new core.List<api.MonitoringDestination>(); 2085 var o = new core.List<api.MonitoringDestination>();
2050 o.add(buildMonitoringDestination()); 2086 o.add(buildMonitoringDestination());
2051 o.add(buildMonitoringDestination()); 2087 o.add(buildMonitoringDestination());
2052 return o; 2088 return o;
2053 } 2089 }
2054 2090
2055 checkUnnamed1099(core.List<api.MonitoringDestination> o) { 2091 checkUnnamed1091(core.List<api.MonitoringDestination> o) {
2056 unittest.expect(o, unittest.hasLength(2)); 2092 unittest.expect(o, unittest.hasLength(2));
2057 checkMonitoringDestination(o[0]); 2093 checkMonitoringDestination(o[0]);
2058 checkMonitoringDestination(o[1]); 2094 checkMonitoringDestination(o[1]);
2059 } 2095 }
2060 2096
2061 core.int buildCounterMonitoring = 0; 2097 core.int buildCounterMonitoring = 0;
2062 buildMonitoring() { 2098 buildMonitoring() {
2063 var o = new api.Monitoring(); 2099 var o = new api.Monitoring();
2064 buildCounterMonitoring++; 2100 buildCounterMonitoring++;
2065 if (buildCounterMonitoring < 3) { 2101 if (buildCounterMonitoring < 3) {
2066 o.consumerDestinations = buildUnnamed1098(); 2102 o.consumerDestinations = buildUnnamed1090();
2067 o.producerDestinations = buildUnnamed1099(); 2103 o.producerDestinations = buildUnnamed1091();
2068 } 2104 }
2069 buildCounterMonitoring--; 2105 buildCounterMonitoring--;
2070 return o; 2106 return o;
2071 } 2107 }
2072 2108
2073 checkMonitoring(api.Monitoring o) { 2109 checkMonitoring(api.Monitoring o) {
2074 buildCounterMonitoring++; 2110 buildCounterMonitoring++;
2075 if (buildCounterMonitoring < 3) { 2111 if (buildCounterMonitoring < 3) {
2076 checkUnnamed1098(o.consumerDestinations); 2112 checkUnnamed1090(o.consumerDestinations);
2077 checkUnnamed1099(o.producerDestinations); 2113 checkUnnamed1091(o.producerDestinations);
2078 } 2114 }
2079 buildCounterMonitoring--; 2115 buildCounterMonitoring--;
2080 } 2116 }
2081 2117
2082 buildUnnamed1100() { 2118 buildUnnamed1092() {
2083 var o = new core.List<core.String>(); 2119 var o = new core.List<core.String>();
2084 o.add("foo"); 2120 o.add("foo");
2085 o.add("foo"); 2121 o.add("foo");
2086 return o; 2122 return o;
2087 } 2123 }
2088 2124
2089 checkUnnamed1100(core.List<core.String> o) { 2125 checkUnnamed1092(core.List<core.String> o) {
2090 unittest.expect(o, unittest.hasLength(2)); 2126 unittest.expect(o, unittest.hasLength(2));
2091 unittest.expect(o[0], unittest.equals('foo')); 2127 unittest.expect(o[0], unittest.equals('foo'));
2092 unittest.expect(o[1], unittest.equals('foo')); 2128 unittest.expect(o[1], unittest.equals('foo'));
2093 } 2129 }
2094 2130
2095 core.int buildCounterMonitoringDestination = 0; 2131 core.int buildCounterMonitoringDestination = 0;
2096 buildMonitoringDestination() { 2132 buildMonitoringDestination() {
2097 var o = new api.MonitoringDestination(); 2133 var o = new api.MonitoringDestination();
2098 buildCounterMonitoringDestination++; 2134 buildCounterMonitoringDestination++;
2099 if (buildCounterMonitoringDestination < 3) { 2135 if (buildCounterMonitoringDestination < 3) {
2100 o.metrics = buildUnnamed1100(); 2136 o.metrics = buildUnnamed1092();
2101 o.monitoredResource = "foo"; 2137 o.monitoredResource = "foo";
2102 } 2138 }
2103 buildCounterMonitoringDestination--; 2139 buildCounterMonitoringDestination--;
2104 return o; 2140 return o;
2105 } 2141 }
2106 2142
2107 checkMonitoringDestination(api.MonitoringDestination o) { 2143 checkMonitoringDestination(api.MonitoringDestination o) {
2108 buildCounterMonitoringDestination++; 2144 buildCounterMonitoringDestination++;
2109 if (buildCounterMonitoringDestination < 3) { 2145 if (buildCounterMonitoringDestination < 3) {
2110 checkUnnamed1100(o.metrics); 2146 checkUnnamed1092(o.metrics);
2111 unittest.expect(o.monitoredResource, unittest.equals('foo')); 2147 unittest.expect(o.monitoredResource, unittest.equals('foo'));
2112 } 2148 }
2113 buildCounterMonitoringDestination--; 2149 buildCounterMonitoringDestination--;
2114 } 2150 }
2115 2151
2116 core.int buildCounterOAuthRequirements = 0; 2152 core.int buildCounterOAuthRequirements = 0;
2117 buildOAuthRequirements() { 2153 buildOAuthRequirements() {
2118 var o = new api.OAuthRequirements(); 2154 var o = new api.OAuthRequirements();
2119 buildCounterOAuthRequirements++; 2155 buildCounterOAuthRequirements++;
2120 if (buildCounterOAuthRequirements < 3) { 2156 if (buildCounterOAuthRequirements < 3) {
2121 o.canonicalScopes = "foo"; 2157 o.canonicalScopes = "foo";
2122 } 2158 }
2123 buildCounterOAuthRequirements--; 2159 buildCounterOAuthRequirements--;
2124 return o; 2160 return o;
2125 } 2161 }
2126 2162
2127 checkOAuthRequirements(api.OAuthRequirements o) { 2163 checkOAuthRequirements(api.OAuthRequirements o) {
2128 buildCounterOAuthRequirements++; 2164 buildCounterOAuthRequirements++;
2129 if (buildCounterOAuthRequirements < 3) { 2165 if (buildCounterOAuthRequirements < 3) {
2130 unittest.expect(o.canonicalScopes, unittest.equals('foo')); 2166 unittest.expect(o.canonicalScopes, unittest.equals('foo'));
2131 } 2167 }
2132 buildCounterOAuthRequirements--; 2168 buildCounterOAuthRequirements--;
2133 } 2169 }
2134 2170
2135 buildUnnamed1101() { 2171 buildUnnamed1093() {
2136 var o = new core.Map<core.String, core.Object>(); 2172 var o = new core.Map<core.String, core.Object>();
2137 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2173 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2138 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2174 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2139 return o; 2175 return o;
2140 } 2176 }
2141 2177
2142 checkUnnamed1101(core.Map<core.String, core.Object> o) { 2178 checkUnnamed1093(core.Map<core.String, core.Object> o) {
2143 unittest.expect(o, unittest.hasLength(2)); 2179 unittest.expect(o, unittest.hasLength(2));
2144 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; 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'));
2145 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 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'));
2146 } 2182 }
2147 2183
2148 buildUnnamed1102() { 2184 buildUnnamed1094() {
2149 var o = new core.Map<core.String, core.Object>(); 2185 var o = new core.Map<core.String, core.Object>();
2150 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2186 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2151 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2187 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2152 return o; 2188 return o;
2153 } 2189 }
2154 2190
2155 checkUnnamed1102(core.Map<core.String, core.Object> o) { 2191 checkUnnamed1094(core.Map<core.String, core.Object> o) {
2156 unittest.expect(o, unittest.hasLength(2)); 2192 unittest.expect(o, unittest.hasLength(2));
2157 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')); 2193 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'));
2158 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')); 2194 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'));
2159 } 2195 }
2160 2196
2161 core.int buildCounterOperation = 0; 2197 core.int buildCounterOperation = 0;
2162 buildOperation() { 2198 buildOperation() {
2163 var o = new api.Operation(); 2199 var o = new api.Operation();
2164 buildCounterOperation++; 2200 buildCounterOperation++;
2165 if (buildCounterOperation < 3) { 2201 if (buildCounterOperation < 3) {
2166 o.done = true; 2202 o.done = true;
2167 o.error = buildStatus(); 2203 o.error = buildStatus();
2168 o.metadata = buildUnnamed1101(); 2204 o.metadata = buildUnnamed1093();
2169 o.name = "foo"; 2205 o.name = "foo";
2170 o.response = buildUnnamed1102(); 2206 o.response = buildUnnamed1094();
2171 } 2207 }
2172 buildCounterOperation--; 2208 buildCounterOperation--;
2173 return o; 2209 return o;
2174 } 2210 }
2175 2211
2176 checkOperation(api.Operation o) { 2212 checkOperation(api.Operation o) {
2177 buildCounterOperation++; 2213 buildCounterOperation++;
2178 if (buildCounterOperation < 3) { 2214 if (buildCounterOperation < 3) {
2179 unittest.expect(o.done, unittest.isTrue); 2215 unittest.expect(o.done, unittest.isTrue);
2180 checkStatus(o.error); 2216 checkStatus(o.error);
2181 checkUnnamed1101(o.metadata); 2217 checkUnnamed1093(o.metadata);
2182 unittest.expect(o.name, unittest.equals('foo')); 2218 unittest.expect(o.name, unittest.equals('foo'));
2183 checkUnnamed1102(o.response); 2219 checkUnnamed1094(o.response);
2184 } 2220 }
2185 buildCounterOperation--; 2221 buildCounterOperation--;
2186 } 2222 }
2187 2223
2188 buildUnnamed1103() { 2224 buildUnnamed1095() {
2189 var o = new core.List<core.String>(); 2225 var o = new core.List<core.String>();
2190 o.add("foo"); 2226 o.add("foo");
2191 o.add("foo"); 2227 o.add("foo");
2192 return o; 2228 return o;
2193 } 2229 }
2194 2230
2195 checkUnnamed1103(core.List<core.String> o) { 2231 checkUnnamed1095(core.List<core.String> o) {
2196 unittest.expect(o, unittest.hasLength(2)); 2232 unittest.expect(o, unittest.hasLength(2));
2197 unittest.expect(o[0], unittest.equals('foo')); 2233 unittest.expect(o[0], unittest.equals('foo'));
2198 unittest.expect(o[1], unittest.equals('foo')); 2234 unittest.expect(o[1], unittest.equals('foo'));
2199 } 2235 }
2200 2236
2201 buildUnnamed1104() { 2237 buildUnnamed1096() {
2202 var o = new core.List<api.Step>(); 2238 var o = new core.List<api.Step>();
2203 o.add(buildStep()); 2239 o.add(buildStep());
2204 o.add(buildStep()); 2240 o.add(buildStep());
2205 return o; 2241 return o;
2206 } 2242 }
2207 2243
2208 checkUnnamed1104(core.List<api.Step> o) { 2244 checkUnnamed1096(core.List<api.Step> o) {
2209 unittest.expect(o, unittest.hasLength(2)); 2245 unittest.expect(o, unittest.hasLength(2));
2210 checkStep(o[0]); 2246 checkStep(o[0]);
2211 checkStep(o[1]); 2247 checkStep(o[1]);
2212 } 2248 }
2213 2249
2214 core.int buildCounterOperationMetadata = 0; 2250 core.int buildCounterOperationMetadata = 0;
2215 buildOperationMetadata() { 2251 buildOperationMetadata() {
2216 var o = new api.OperationMetadata(); 2252 var o = new api.OperationMetadata();
2217 buildCounterOperationMetadata++; 2253 buildCounterOperationMetadata++;
2218 if (buildCounterOperationMetadata < 3) { 2254 if (buildCounterOperationMetadata < 3) {
2219 o.progressPercentage = 42; 2255 o.progressPercentage = 42;
2220 o.resourceNames = buildUnnamed1103(); 2256 o.resourceNames = buildUnnamed1095();
2221 o.startTime = "foo"; 2257 o.startTime = "foo";
2222 o.steps = buildUnnamed1104(); 2258 o.steps = buildUnnamed1096();
2223 } 2259 }
2224 buildCounterOperationMetadata--; 2260 buildCounterOperationMetadata--;
2225 return o; 2261 return o;
2226 } 2262 }
2227 2263
2228 checkOperationMetadata(api.OperationMetadata o) { 2264 checkOperationMetadata(api.OperationMetadata o) {
2229 buildCounterOperationMetadata++; 2265 buildCounterOperationMetadata++;
2230 if (buildCounterOperationMetadata < 3) { 2266 if (buildCounterOperationMetadata < 3) {
2231 unittest.expect(o.progressPercentage, unittest.equals(42)); 2267 unittest.expect(o.progressPercentage, unittest.equals(42));
2232 checkUnnamed1103(o.resourceNames); 2268 checkUnnamed1095(o.resourceNames);
2233 unittest.expect(o.startTime, unittest.equals('foo')); 2269 unittest.expect(o.startTime, unittest.equals('foo'));
2234 checkUnnamed1104(o.steps); 2270 checkUnnamed1096(o.steps);
2235 } 2271 }
2236 buildCounterOperationMetadata--; 2272 buildCounterOperationMetadata--;
2237 } 2273 }
2238 2274
2239 buildUnnamed1105() { 2275 buildUnnamed1097() {
2240 var o = new core.Map<core.String, core.Object>(); 2276 var o = new core.Map<core.String, core.Object>();
2241 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2277 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2242 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2278 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2243 return o; 2279 return o;
2244 } 2280 }
2245 2281
2246 checkUnnamed1105(core.Map<core.String, core.Object> o) { 2282 checkUnnamed1097(core.Map<core.String, core.Object> o) {
2247 unittest.expect(o, unittest.hasLength(2)); 2283 unittest.expect(o, unittest.hasLength(2));
2248 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')); 2284 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'));
2249 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')); 2285 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'));
2250 } 2286 }
2251 2287
2252 core.int buildCounterOption = 0; 2288 core.int buildCounterOption = 0;
2253 buildOption() { 2289 buildOption() {
2254 var o = new api.Option(); 2290 var o = new api.Option();
2255 buildCounterOption++; 2291 buildCounterOption++;
2256 if (buildCounterOption < 3) { 2292 if (buildCounterOption < 3) {
2257 o.name = "foo"; 2293 o.name = "foo";
2258 o.value = buildUnnamed1105(); 2294 o.value = buildUnnamed1097();
2259 } 2295 }
2260 buildCounterOption--; 2296 buildCounterOption--;
2261 return o; 2297 return o;
2262 } 2298 }
2263 2299
2264 checkOption(api.Option o) { 2300 checkOption(api.Option o) {
2265 buildCounterOption++; 2301 buildCounterOption++;
2266 if (buildCounterOption < 3) { 2302 if (buildCounterOption < 3) {
2267 unittest.expect(o.name, unittest.equals('foo')); 2303 unittest.expect(o.name, unittest.equals('foo'));
2268 checkUnnamed1105(o.value); 2304 checkUnnamed1097(o.value);
2269 } 2305 }
2270 buildCounterOption--; 2306 buildCounterOption--;
2271 } 2307 }
2272 2308
2273 buildUnnamed1106() { 2309 buildUnnamed1098() {
2274 var o = new core.List<api.Page>(); 2310 var o = new core.List<api.Page>();
2275 o.add(buildPage()); 2311 o.add(buildPage());
2276 o.add(buildPage()); 2312 o.add(buildPage());
2277 return o; 2313 return o;
2278 } 2314 }
2279 2315
2280 checkUnnamed1106(core.List<api.Page> o) { 2316 checkUnnamed1098(core.List<api.Page> o) {
2281 unittest.expect(o, unittest.hasLength(2)); 2317 unittest.expect(o, unittest.hasLength(2));
2282 checkPage(o[0]); 2318 checkPage(o[0]);
2283 checkPage(o[1]); 2319 checkPage(o[1]);
2284 } 2320 }
2285 2321
2286 core.int buildCounterPage = 0; 2322 core.int buildCounterPage = 0;
2287 buildPage() { 2323 buildPage() {
2288 var o = new api.Page(); 2324 var o = new api.Page();
2289 buildCounterPage++; 2325 buildCounterPage++;
2290 if (buildCounterPage < 3) { 2326 if (buildCounterPage < 3) {
2291 o.content = "foo"; 2327 o.content = "foo";
2292 o.name = "foo"; 2328 o.name = "foo";
2293 o.subpages = buildUnnamed1106(); 2329 o.subpages = buildUnnamed1098();
2294 } 2330 }
2295 buildCounterPage--; 2331 buildCounterPage--;
2296 return o; 2332 return o;
2297 } 2333 }
2298 2334
2299 checkPage(api.Page o) { 2335 checkPage(api.Page o) {
2300 buildCounterPage++; 2336 buildCounterPage++;
2301 if (buildCounterPage < 3) { 2337 if (buildCounterPage < 3) {
2302 unittest.expect(o.content, unittest.equals('foo')); 2338 unittest.expect(o.content, unittest.equals('foo'));
2303 unittest.expect(o.name, unittest.equals('foo')); 2339 unittest.expect(o.name, unittest.equals('foo'));
2304 checkUnnamed1106(o.subpages); 2340 checkUnnamed1098(o.subpages);
2305 } 2341 }
2306 buildCounterPage--; 2342 buildCounterPage--;
2307 } 2343 }
2308 2344
2309 buildUnnamed1107() { 2345 buildUnnamed1099() {
2310 var o = new core.List<api.AuditConfig>(); 2346 var o = new core.List<api.AuditConfig>();
2311 o.add(buildAuditConfig()); 2347 o.add(buildAuditConfig());
2312 o.add(buildAuditConfig()); 2348 o.add(buildAuditConfig());
2313 return o; 2349 return o;
2314 } 2350 }
2315 2351
2316 checkUnnamed1107(core.List<api.AuditConfig> o) { 2352 checkUnnamed1099(core.List<api.AuditConfig> o) {
2317 unittest.expect(o, unittest.hasLength(2)); 2353 unittest.expect(o, unittest.hasLength(2));
2318 checkAuditConfig(o[0]); 2354 checkAuditConfig(o[0]);
2319 checkAuditConfig(o[1]); 2355 checkAuditConfig(o[1]);
2320 } 2356 }
2321 2357
2322 buildUnnamed1108() { 2358 buildUnnamed1100() {
2323 var o = new core.List<api.Binding>(); 2359 var o = new core.List<api.Binding>();
2324 o.add(buildBinding()); 2360 o.add(buildBinding());
2325 o.add(buildBinding()); 2361 o.add(buildBinding());
2326 return o; 2362 return o;
2327 } 2363 }
2328 2364
2329 checkUnnamed1108(core.List<api.Binding> o) { 2365 checkUnnamed1100(core.List<api.Binding> o) {
2330 unittest.expect(o, unittest.hasLength(2)); 2366 unittest.expect(o, unittest.hasLength(2));
2331 checkBinding(o[0]); 2367 checkBinding(o[0]);
2332 checkBinding(o[1]); 2368 checkBinding(o[1]);
2333 } 2369 }
2334 2370
2335 buildUnnamed1109() { 2371 buildUnnamed1101() {
2336 var o = new core.List<api.Rule>(); 2372 var o = new core.List<api.Rule>();
2337 o.add(buildRule()); 2373 o.add(buildRule());
2338 o.add(buildRule()); 2374 o.add(buildRule());
2339 return o; 2375 return o;
2340 } 2376 }
2341 2377
2342 checkUnnamed1109(core.List<api.Rule> o) { 2378 checkUnnamed1101(core.List<api.Rule> o) {
2343 unittest.expect(o, unittest.hasLength(2)); 2379 unittest.expect(o, unittest.hasLength(2));
2344 checkRule(o[0]); 2380 checkRule(o[0]);
2345 checkRule(o[1]); 2381 checkRule(o[1]);
2346 } 2382 }
2347 2383
2348 core.int buildCounterPolicy = 0; 2384 core.int buildCounterPolicy = 0;
2349 buildPolicy() { 2385 buildPolicy() {
2350 var o = new api.Policy(); 2386 var o = new api.Policy();
2351 buildCounterPolicy++; 2387 buildCounterPolicy++;
2352 if (buildCounterPolicy < 3) { 2388 if (buildCounterPolicy < 3) {
2353 o.auditConfigs = buildUnnamed1107(); 2389 o.auditConfigs = buildUnnamed1099();
2354 o.bindings = buildUnnamed1108(); 2390 o.bindings = buildUnnamed1100();
2355 o.etag = "foo"; 2391 o.etag = "foo";
2356 o.iamOwned = true; 2392 o.iamOwned = true;
2357 o.rules = buildUnnamed1109(); 2393 o.rules = buildUnnamed1101();
2358 o.version = 42; 2394 o.version = 42;
2359 } 2395 }
2360 buildCounterPolicy--; 2396 buildCounterPolicy--;
2361 return o; 2397 return o;
2362 } 2398 }
2363 2399
2364 checkPolicy(api.Policy o) { 2400 checkPolicy(api.Policy o) {
2365 buildCounterPolicy++; 2401 buildCounterPolicy++;
2366 if (buildCounterPolicy < 3) { 2402 if (buildCounterPolicy < 3) {
2367 checkUnnamed1107(o.auditConfigs); 2403 checkUnnamed1099(o.auditConfigs);
2368 checkUnnamed1108(o.bindings); 2404 checkUnnamed1100(o.bindings);
2369 unittest.expect(o.etag, unittest.equals('foo')); 2405 unittest.expect(o.etag, unittest.equals('foo'));
2370 unittest.expect(o.iamOwned, unittest.isTrue); 2406 unittest.expect(o.iamOwned, unittest.isTrue);
2371 checkUnnamed1109(o.rules); 2407 checkUnnamed1101(o.rules);
2372 unittest.expect(o.version, unittest.equals(42)); 2408 unittest.expect(o.version, unittest.equals(42));
2373 } 2409 }
2374 buildCounterPolicy--; 2410 buildCounterPolicy--;
2375 } 2411 }
2376 2412
2413 buildUnnamed1102() {
2414 var o = new core.List<api.QuotaLimit>();
2415 o.add(buildQuotaLimit());
2416 o.add(buildQuotaLimit());
2417 return o;
2418 }
2419
2420 checkUnnamed1102(core.List<api.QuotaLimit> o) {
2421 unittest.expect(o, unittest.hasLength(2));
2422 checkQuotaLimit(o[0]);
2423 checkQuotaLimit(o[1]);
2424 }
2425
2426 buildUnnamed1103() {
2427 var o = new core.List<api.MetricRule>();
2428 o.add(buildMetricRule());
2429 o.add(buildMetricRule());
2430 return o;
2431 }
2432
2433 checkUnnamed1103(core.List<api.MetricRule> o) {
2434 unittest.expect(o, unittest.hasLength(2));
2435 checkMetricRule(o[0]);
2436 checkMetricRule(o[1]);
2437 }
2438
2439 core.int buildCounterQuota = 0;
2440 buildQuota() {
2441 var o = new api.Quota();
2442 buildCounterQuota++;
2443 if (buildCounterQuota < 3) {
2444 o.limits = buildUnnamed1102();
2445 o.metricRules = buildUnnamed1103();
2446 }
2447 buildCounterQuota--;
2448 return o;
2449 }
2450
2451 checkQuota(api.Quota o) {
2452 buildCounterQuota++;
2453 if (buildCounterQuota < 3) {
2454 checkUnnamed1102(o.limits);
2455 checkUnnamed1103(o.metricRules);
2456 }
2457 buildCounterQuota--;
2458 }
2459
2460 buildUnnamed1104() {
2461 var o = new core.Map<core.String, core.String>();
2462 o["x"] = "foo";
2463 o["y"] = "foo";
2464 return o;
2465 }
2466
2467 checkUnnamed1104(core.Map<core.String, core.String> o) {
2468 unittest.expect(o, unittest.hasLength(2));
2469 unittest.expect(o["x"], unittest.equals('foo'));
2470 unittest.expect(o["y"], unittest.equals('foo'));
2471 }
2472
2473 core.int buildCounterQuotaLimit = 0;
2474 buildQuotaLimit() {
2475 var o = new api.QuotaLimit();
2476 buildCounterQuotaLimit++;
2477 if (buildCounterQuotaLimit < 3) {
2478 o.defaultLimit = "foo";
2479 o.description = "foo";
2480 o.displayName = "foo";
2481 o.duration = "foo";
2482 o.freeTier = "foo";
2483 o.maxLimit = "foo";
2484 o.metric = "foo";
2485 o.name = "foo";
2486 o.unit = "foo";
2487 o.values = buildUnnamed1104();
2488 }
2489 buildCounterQuotaLimit--;
2490 return o;
2491 }
2492
2493 checkQuotaLimit(api.QuotaLimit o) {
2494 buildCounterQuotaLimit++;
2495 if (buildCounterQuotaLimit < 3) {
2496 unittest.expect(o.defaultLimit, unittest.equals('foo'));
2497 unittest.expect(o.description, unittest.equals('foo'));
2498 unittest.expect(o.displayName, unittest.equals('foo'));
2499 unittest.expect(o.duration, unittest.equals('foo'));
2500 unittest.expect(o.freeTier, unittest.equals('foo'));
2501 unittest.expect(o.maxLimit, unittest.equals('foo'));
2502 unittest.expect(o.metric, unittest.equals('foo'));
2503 unittest.expect(o.name, unittest.equals('foo'));
2504 unittest.expect(o.unit, unittest.equals('foo'));
2505 checkUnnamed1104(o.values);
2506 }
2507 buildCounterQuotaLimit--;
2508 }
2509
2377 core.int buildCounterRollout = 0; 2510 core.int buildCounterRollout = 0;
2378 buildRollout() { 2511 buildRollout() {
2379 var o = new api.Rollout(); 2512 var o = new api.Rollout();
2380 buildCounterRollout++; 2513 buildCounterRollout++;
2381 if (buildCounterRollout < 3) { 2514 if (buildCounterRollout < 3) {
2382 o.createTime = "foo"; 2515 o.createTime = "foo";
2383 o.createdBy = "foo"; 2516 o.createdBy = "foo";
2384 o.deleteServiceStrategy = buildDeleteServiceStrategy(); 2517 o.deleteServiceStrategy = buildDeleteServiceStrategy();
2385 o.rolloutId = "foo"; 2518 o.rolloutId = "foo";
2386 o.serviceName = "foo"; 2519 o.serviceName = "foo";
(...skipping 11 matching lines...) Expand all
2398 unittest.expect(o.createdBy, unittest.equals('foo')); 2531 unittest.expect(o.createdBy, unittest.equals('foo'));
2399 checkDeleteServiceStrategy(o.deleteServiceStrategy); 2532 checkDeleteServiceStrategy(o.deleteServiceStrategy);
2400 unittest.expect(o.rolloutId, unittest.equals('foo')); 2533 unittest.expect(o.rolloutId, unittest.equals('foo'));
2401 unittest.expect(o.serviceName, unittest.equals('foo')); 2534 unittest.expect(o.serviceName, unittest.equals('foo'));
2402 unittest.expect(o.status, unittest.equals('foo')); 2535 unittest.expect(o.status, unittest.equals('foo'));
2403 checkTrafficPercentStrategy(o.trafficPercentStrategy); 2536 checkTrafficPercentStrategy(o.trafficPercentStrategy);
2404 } 2537 }
2405 buildCounterRollout--; 2538 buildCounterRollout--;
2406 } 2539 }
2407 2540
2408 buildUnnamed1110() { 2541 buildUnnamed1105() {
2409 var o = new core.List<api.Condition>(); 2542 var o = new core.List<api.Condition>();
2410 o.add(buildCondition()); 2543 o.add(buildCondition());
2411 o.add(buildCondition()); 2544 o.add(buildCondition());
2412 return o; 2545 return o;
2413 } 2546 }
2414 2547
2415 checkUnnamed1110(core.List<api.Condition> o) { 2548 checkUnnamed1105(core.List<api.Condition> o) {
2416 unittest.expect(o, unittest.hasLength(2)); 2549 unittest.expect(o, unittest.hasLength(2));
2417 checkCondition(o[0]); 2550 checkCondition(o[0]);
2418 checkCondition(o[1]); 2551 checkCondition(o[1]);
2419 } 2552 }
2420 2553
2421 buildUnnamed1111() { 2554 buildUnnamed1106() {
2422 var o = new core.List<core.String>(); 2555 var o = new core.List<core.String>();
2423 o.add("foo"); 2556 o.add("foo");
2424 o.add("foo"); 2557 o.add("foo");
2425 return o; 2558 return o;
2426 } 2559 }
2427 2560
2428 checkUnnamed1111(core.List<core.String> o) { 2561 checkUnnamed1106(core.List<core.String> o) {
2429 unittest.expect(o, unittest.hasLength(2)); 2562 unittest.expect(o, unittest.hasLength(2));
2430 unittest.expect(o[0], unittest.equals('foo')); 2563 unittest.expect(o[0], unittest.equals('foo'));
2431 unittest.expect(o[1], unittest.equals('foo')); 2564 unittest.expect(o[1], unittest.equals('foo'));
2432 } 2565 }
2433 2566
2434 buildUnnamed1112() { 2567 buildUnnamed1107() {
2435 var o = new core.List<api.LogConfig>(); 2568 var o = new core.List<api.LogConfig>();
2436 o.add(buildLogConfig()); 2569 o.add(buildLogConfig());
2437 o.add(buildLogConfig()); 2570 o.add(buildLogConfig());
2438 return o; 2571 return o;
2439 } 2572 }
2440 2573
2441 checkUnnamed1112(core.List<api.LogConfig> o) { 2574 checkUnnamed1107(core.List<api.LogConfig> o) {
2442 unittest.expect(o, unittest.hasLength(2)); 2575 unittest.expect(o, unittest.hasLength(2));
2443 checkLogConfig(o[0]); 2576 checkLogConfig(o[0]);
2444 checkLogConfig(o[1]); 2577 checkLogConfig(o[1]);
2445 } 2578 }
2446 2579
2447 buildUnnamed1113() { 2580 buildUnnamed1108() {
2448 var o = new core.List<core.String>(); 2581 var o = new core.List<core.String>();
2449 o.add("foo"); 2582 o.add("foo");
2450 o.add("foo"); 2583 o.add("foo");
2451 return o; 2584 return o;
2452 } 2585 }
2453 2586
2454 checkUnnamed1113(core.List<core.String> o) { 2587 checkUnnamed1108(core.List<core.String> o) {
2455 unittest.expect(o, unittest.hasLength(2)); 2588 unittest.expect(o, unittest.hasLength(2));
2456 unittest.expect(o[0], unittest.equals('foo')); 2589 unittest.expect(o[0], unittest.equals('foo'));
2457 unittest.expect(o[1], unittest.equals('foo')); 2590 unittest.expect(o[1], unittest.equals('foo'));
2458 } 2591 }
2459 2592
2460 buildUnnamed1114() { 2593 buildUnnamed1109() {
2461 var o = new core.List<core.String>(); 2594 var o = new core.List<core.String>();
2462 o.add("foo"); 2595 o.add("foo");
2463 o.add("foo"); 2596 o.add("foo");
2464 return o; 2597 return o;
2465 } 2598 }
2466 2599
2467 checkUnnamed1114(core.List<core.String> o) { 2600 checkUnnamed1109(core.List<core.String> o) {
2468 unittest.expect(o, unittest.hasLength(2)); 2601 unittest.expect(o, unittest.hasLength(2));
2469 unittest.expect(o[0], unittest.equals('foo')); 2602 unittest.expect(o[0], unittest.equals('foo'));
2470 unittest.expect(o[1], unittest.equals('foo')); 2603 unittest.expect(o[1], unittest.equals('foo'));
2471 } 2604 }
2472 2605
2473 core.int buildCounterRule = 0; 2606 core.int buildCounterRule = 0;
2474 buildRule() { 2607 buildRule() {
2475 var o = new api.Rule(); 2608 var o = new api.Rule();
2476 buildCounterRule++; 2609 buildCounterRule++;
2477 if (buildCounterRule < 3) { 2610 if (buildCounterRule < 3) {
2478 o.action = "foo"; 2611 o.action = "foo";
2479 o.conditions = buildUnnamed1110(); 2612 o.conditions = buildUnnamed1105();
2480 o.description = "foo"; 2613 o.description = "foo";
2481 o.in_ = buildUnnamed1111(); 2614 o.in_ = buildUnnamed1106();
2482 o.logConfig = buildUnnamed1112(); 2615 o.logConfig = buildUnnamed1107();
2483 o.notIn = buildUnnamed1113(); 2616 o.notIn = buildUnnamed1108();
2484 o.permissions = buildUnnamed1114(); 2617 o.permissions = buildUnnamed1109();
2485 } 2618 }
2486 buildCounterRule--; 2619 buildCounterRule--;
2487 return o; 2620 return o;
2488 } 2621 }
2489 2622
2490 checkRule(api.Rule o) { 2623 checkRule(api.Rule o) {
2491 buildCounterRule++; 2624 buildCounterRule++;
2492 if (buildCounterRule < 3) { 2625 if (buildCounterRule < 3) {
2493 unittest.expect(o.action, unittest.equals('foo')); 2626 unittest.expect(o.action, unittest.equals('foo'));
2494 checkUnnamed1110(o.conditions); 2627 checkUnnamed1105(o.conditions);
2495 unittest.expect(o.description, unittest.equals('foo')); 2628 unittest.expect(o.description, unittest.equals('foo'));
2496 checkUnnamed1111(o.in_); 2629 checkUnnamed1106(o.in_);
2497 checkUnnamed1112(o.logConfig); 2630 checkUnnamed1107(o.logConfig);
2498 checkUnnamed1113(o.notIn); 2631 checkUnnamed1108(o.notIn);
2499 checkUnnamed1114(o.permissions); 2632 checkUnnamed1109(o.permissions);
2500 } 2633 }
2501 buildCounterRule--; 2634 buildCounterRule--;
2502 } 2635 }
2503 2636
2504 buildUnnamed1115() { 2637 buildUnnamed1110() {
2505 var o = new core.List<api.Api>(); 2638 var o = new core.List<api.Api>();
2506 o.add(buildApi()); 2639 o.add(buildApi());
2507 o.add(buildApi()); 2640 o.add(buildApi());
2508 return o; 2641 return o;
2509 } 2642 }
2510 2643
2511 checkUnnamed1115(core.List<api.Api> o) { 2644 checkUnnamed1110(core.List<api.Api> o) {
2512 unittest.expect(o, unittest.hasLength(2)); 2645 unittest.expect(o, unittest.hasLength(2));
2513 checkApi(o[0]); 2646 checkApi(o[0]);
2514 checkApi(o[1]); 2647 checkApi(o[1]);
2515 } 2648 }
2516 2649
2517 buildUnnamed1116() { 2650 buildUnnamed1111() {
2518 var o = new core.List<api.Endpoint>(); 2651 var o = new core.List<api.Endpoint>();
2519 o.add(buildEndpoint()); 2652 o.add(buildEndpoint());
2520 o.add(buildEndpoint()); 2653 o.add(buildEndpoint());
2521 return o; 2654 return o;
2522 } 2655 }
2523 2656
2524 checkUnnamed1116(core.List<api.Endpoint> o) { 2657 checkUnnamed1111(core.List<api.Endpoint> o) {
2525 unittest.expect(o, unittest.hasLength(2)); 2658 unittest.expect(o, unittest.hasLength(2));
2526 checkEndpoint(o[0]); 2659 checkEndpoint(o[0]);
2527 checkEndpoint(o[1]); 2660 checkEndpoint(o[1]);
2528 } 2661 }
2529 2662
2530 buildUnnamed1117() { 2663 buildUnnamed1112() {
2531 var o = new core.List<api.Enum>(); 2664 var o = new core.List<api.Enum>();
2532 o.add(buildEnum()); 2665 o.add(buildEnum());
2533 o.add(buildEnum()); 2666 o.add(buildEnum());
2534 return o; 2667 return o;
2535 } 2668 }
2536 2669
2537 checkUnnamed1117(core.List<api.Enum> o) { 2670 checkUnnamed1112(core.List<api.Enum> o) {
2538 unittest.expect(o, unittest.hasLength(2)); 2671 unittest.expect(o, unittest.hasLength(2));
2539 checkEnum(o[0]); 2672 checkEnum(o[0]);
2540 checkEnum(o[1]); 2673 checkEnum(o[1]);
2541 } 2674 }
2542 2675
2543 buildUnnamed1118() { 2676 buildUnnamed1113() {
2544 var o = new core.List<api.LogDescriptor>(); 2677 var o = new core.List<api.LogDescriptor>();
2545 o.add(buildLogDescriptor()); 2678 o.add(buildLogDescriptor());
2546 o.add(buildLogDescriptor()); 2679 o.add(buildLogDescriptor());
2547 return o; 2680 return o;
2548 } 2681 }
2549 2682
2550 checkUnnamed1118(core.List<api.LogDescriptor> o) { 2683 checkUnnamed1113(core.List<api.LogDescriptor> o) {
2551 unittest.expect(o, unittest.hasLength(2)); 2684 unittest.expect(o, unittest.hasLength(2));
2552 checkLogDescriptor(o[0]); 2685 checkLogDescriptor(o[0]);
2553 checkLogDescriptor(o[1]); 2686 checkLogDescriptor(o[1]);
2554 } 2687 }
2555 2688
2556 buildUnnamed1119() { 2689 buildUnnamed1114() {
2557 var o = new core.List<api.MetricDescriptor>(); 2690 var o = new core.List<api.MetricDescriptor>();
2558 o.add(buildMetricDescriptor()); 2691 o.add(buildMetricDescriptor());
2559 o.add(buildMetricDescriptor()); 2692 o.add(buildMetricDescriptor());
2560 return o; 2693 return o;
2561 } 2694 }
2562 2695
2563 checkUnnamed1119(core.List<api.MetricDescriptor> o) { 2696 checkUnnamed1114(core.List<api.MetricDescriptor> o) {
2564 unittest.expect(o, unittest.hasLength(2)); 2697 unittest.expect(o, unittest.hasLength(2));
2565 checkMetricDescriptor(o[0]); 2698 checkMetricDescriptor(o[0]);
2566 checkMetricDescriptor(o[1]); 2699 checkMetricDescriptor(o[1]);
2567 } 2700 }
2568 2701
2569 buildUnnamed1120() { 2702 buildUnnamed1115() {
2570 var o = new core.List<api.MonitoredResourceDescriptor>(); 2703 var o = new core.List<api.MonitoredResourceDescriptor>();
2571 o.add(buildMonitoredResourceDescriptor()); 2704 o.add(buildMonitoredResourceDescriptor());
2572 o.add(buildMonitoredResourceDescriptor()); 2705 o.add(buildMonitoredResourceDescriptor());
2573 return o; 2706 return o;
2574 } 2707 }
2575 2708
2576 checkUnnamed1120(core.List<api.MonitoredResourceDescriptor> o) { 2709 checkUnnamed1115(core.List<api.MonitoredResourceDescriptor> o) {
2577 unittest.expect(o, unittest.hasLength(2)); 2710 unittest.expect(o, unittest.hasLength(2));
2578 checkMonitoredResourceDescriptor(o[0]); 2711 checkMonitoredResourceDescriptor(o[0]);
2579 checkMonitoredResourceDescriptor(o[1]); 2712 checkMonitoredResourceDescriptor(o[1]);
2580 } 2713 }
2581 2714
2582 buildUnnamed1121() { 2715 buildUnnamed1116() {
2583 var o = new core.List<api.Type>(); 2716 var o = new core.List<api.Type>();
2584 o.add(buildType()); 2717 o.add(buildType());
2585 o.add(buildType()); 2718 o.add(buildType());
2586 return o; 2719 return o;
2587 } 2720 }
2588 2721
2589 checkUnnamed1121(core.List<api.Type> o) { 2722 checkUnnamed1116(core.List<api.Type> o) {
2590 unittest.expect(o, unittest.hasLength(2)); 2723 unittest.expect(o, unittest.hasLength(2));
2591 checkType(o[0]); 2724 checkType(o[0]);
2592 checkType(o[1]); 2725 checkType(o[1]);
2593 } 2726 }
2594 2727
2595 buildUnnamed1122() { 2728 buildUnnamed1117() {
2596 var o = new core.List<api.Type>(); 2729 var o = new core.List<api.Type>();
2597 o.add(buildType()); 2730 o.add(buildType());
2598 o.add(buildType()); 2731 o.add(buildType());
2599 return o; 2732 return o;
2600 } 2733 }
2601 2734
2602 checkUnnamed1122(core.List<api.Type> o) { 2735 checkUnnamed1117(core.List<api.Type> o) {
2603 unittest.expect(o, unittest.hasLength(2)); 2736 unittest.expect(o, unittest.hasLength(2));
2604 checkType(o[0]); 2737 checkType(o[0]);
2605 checkType(o[1]); 2738 checkType(o[1]);
2606 } 2739 }
2607 2740
2608 core.int buildCounterService = 0; 2741 core.int buildCounterService = 0;
2609 buildService() { 2742 buildService() {
2610 var o = new api.Service(); 2743 var o = new api.Service();
2611 buildCounterService++; 2744 buildCounterService++;
2612 if (buildCounterService < 3) { 2745 if (buildCounterService < 3) {
2613 o.apis = buildUnnamed1115(); 2746 o.apis = buildUnnamed1110();
2614 o.authentication = buildAuthentication(); 2747 o.authentication = buildAuthentication();
2615 o.backend = buildBackend(); 2748 o.backend = buildBackend();
2616 o.configVersion = 42; 2749 o.configVersion = 42;
2617 o.context = buildContext(); 2750 o.context = buildContext();
2618 o.control = buildControl(); 2751 o.control = buildControl();
2619 o.customError = buildCustomError(); 2752 o.customError = buildCustomError();
2620 o.documentation = buildDocumentation(); 2753 o.documentation = buildDocumentation();
2621 o.endpoints = buildUnnamed1116(); 2754 o.endpoints = buildUnnamed1111();
2622 o.enums = buildUnnamed1117(); 2755 o.enums = buildUnnamed1112();
2623 o.experimental = buildExperimental(); 2756 o.experimental = buildExperimental();
2624 o.http = buildHttp(); 2757 o.http = buildHttp();
2625 o.id = "foo"; 2758 o.id = "foo";
2626 o.logging = buildLogging(); 2759 o.logging = buildLogging();
2627 o.logs = buildUnnamed1118(); 2760 o.logs = buildUnnamed1113();
2628 o.metrics = buildUnnamed1119(); 2761 o.metrics = buildUnnamed1114();
2629 o.monitoredResources = buildUnnamed1120(); 2762 o.monitoredResources = buildUnnamed1115();
2630 o.monitoring = buildMonitoring(); 2763 o.monitoring = buildMonitoring();
2631 o.name = "foo"; 2764 o.name = "foo";
2632 o.producerProjectId = "foo"; 2765 o.producerProjectId = "foo";
2766 o.quota = buildQuota();
2633 o.sourceInfo = buildSourceInfo(); 2767 o.sourceInfo = buildSourceInfo();
2634 o.systemParameters = buildSystemParameters(); 2768 o.systemParameters = buildSystemParameters();
2635 o.systemTypes = buildUnnamed1121(); 2769 o.systemTypes = buildUnnamed1116();
2636 o.title = "foo"; 2770 o.title = "foo";
2637 o.types = buildUnnamed1122(); 2771 o.types = buildUnnamed1117();
2638 o.usage = buildUsage(); 2772 o.usage = buildUsage();
2639 o.visibility = buildVisibility(); 2773 o.visibility = buildVisibility();
2640 } 2774 }
2641 buildCounterService--; 2775 buildCounterService--;
2642 return o; 2776 return o;
2643 } 2777 }
2644 2778
2645 checkService(api.Service o) { 2779 checkService(api.Service o) {
2646 buildCounterService++; 2780 buildCounterService++;
2647 if (buildCounterService < 3) { 2781 if (buildCounterService < 3) {
2648 checkUnnamed1115(o.apis); 2782 checkUnnamed1110(o.apis);
2649 checkAuthentication(o.authentication); 2783 checkAuthentication(o.authentication);
2650 checkBackend(o.backend); 2784 checkBackend(o.backend);
2651 unittest.expect(o.configVersion, unittest.equals(42)); 2785 unittest.expect(o.configVersion, unittest.equals(42));
2652 checkContext(o.context); 2786 checkContext(o.context);
2653 checkControl(o.control); 2787 checkControl(o.control);
2654 checkCustomError(o.customError); 2788 checkCustomError(o.customError);
2655 checkDocumentation(o.documentation); 2789 checkDocumentation(o.documentation);
2656 checkUnnamed1116(o.endpoints); 2790 checkUnnamed1111(o.endpoints);
2657 checkUnnamed1117(o.enums); 2791 checkUnnamed1112(o.enums);
2658 checkExperimental(o.experimental); 2792 checkExperimental(o.experimental);
2659 checkHttp(o.http); 2793 checkHttp(o.http);
2660 unittest.expect(o.id, unittest.equals('foo')); 2794 unittest.expect(o.id, unittest.equals('foo'));
2661 checkLogging(o.logging); 2795 checkLogging(o.logging);
2662 checkUnnamed1118(o.logs); 2796 checkUnnamed1113(o.logs);
2663 checkUnnamed1119(o.metrics); 2797 checkUnnamed1114(o.metrics);
2664 checkUnnamed1120(o.monitoredResources); 2798 checkUnnamed1115(o.monitoredResources);
2665 checkMonitoring(o.monitoring); 2799 checkMonitoring(o.monitoring);
2666 unittest.expect(o.name, unittest.equals('foo')); 2800 unittest.expect(o.name, unittest.equals('foo'));
2667 unittest.expect(o.producerProjectId, unittest.equals('foo')); 2801 unittest.expect(o.producerProjectId, unittest.equals('foo'));
2802 checkQuota(o.quota);
2668 checkSourceInfo(o.sourceInfo); 2803 checkSourceInfo(o.sourceInfo);
2669 checkSystemParameters(o.systemParameters); 2804 checkSystemParameters(o.systemParameters);
2670 checkUnnamed1121(o.systemTypes); 2805 checkUnnamed1116(o.systemTypes);
2671 unittest.expect(o.title, unittest.equals('foo')); 2806 unittest.expect(o.title, unittest.equals('foo'));
2672 checkUnnamed1122(o.types); 2807 checkUnnamed1117(o.types);
2673 checkUsage(o.usage); 2808 checkUsage(o.usage);
2674 checkVisibility(o.visibility); 2809 checkVisibility(o.visibility);
2675 } 2810 }
2676 buildCounterService--; 2811 buildCounterService--;
2677 } 2812 }
2678 2813
2679 core.int buildCounterSetIamPolicyRequest = 0; 2814 core.int buildCounterSetIamPolicyRequest = 0;
2680 buildSetIamPolicyRequest() { 2815 buildSetIamPolicyRequest() {
2681 var o = new api.SetIamPolicyRequest(); 2816 var o = new api.SetIamPolicyRequest();
2682 buildCounterSetIamPolicyRequest++; 2817 buildCounterSetIamPolicyRequest++;
(...skipping 26 matching lines...) Expand all
2709 } 2844 }
2710 2845
2711 checkSourceContext(api.SourceContext o) { 2846 checkSourceContext(api.SourceContext o) {
2712 buildCounterSourceContext++; 2847 buildCounterSourceContext++;
2713 if (buildCounterSourceContext < 3) { 2848 if (buildCounterSourceContext < 3) {
2714 unittest.expect(o.fileName, unittest.equals('foo')); 2849 unittest.expect(o.fileName, unittest.equals('foo'));
2715 } 2850 }
2716 buildCounterSourceContext--; 2851 buildCounterSourceContext--;
2717 } 2852 }
2718 2853
2719 buildUnnamed1123() { 2854 buildUnnamed1118() {
2720 var o = new core.Map<core.String, core.Object>(); 2855 var o = new core.Map<core.String, core.Object>();
2721 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2856 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2722 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2857 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2723 return o; 2858 return o;
2724 } 2859 }
2725 2860
2726 checkUnnamed1123(core.Map<core.String, core.Object> o) { 2861 checkUnnamed1118(core.Map<core.String, core.Object> o) {
2727 unittest.expect(o, unittest.hasLength(2)); 2862 unittest.expect(o, unittest.hasLength(2));
2728 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')); 2863 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'));
2729 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')); 2864 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'));
2730 } 2865 }
2731 2866
2732 buildUnnamed1124() { 2867 buildUnnamed1119() {
2733 var o = new core.List<core.Map<core.String, core.Object>>(); 2868 var o = new core.List<core.Map<core.String, core.Object>>();
2734 o.add(buildUnnamed1123()); 2869 o.add(buildUnnamed1118());
2735 o.add(buildUnnamed1123()); 2870 o.add(buildUnnamed1118());
2736 return o; 2871 return o;
2737 } 2872 }
2738 2873
2739 checkUnnamed1124(core.List<core.Map<core.String, core.Object>> o) { 2874 checkUnnamed1119(core.List<core.Map<core.String, core.Object>> o) {
2740 unittest.expect(o, unittest.hasLength(2)); 2875 unittest.expect(o, unittest.hasLength(2));
2741 checkUnnamed1123(o[0]); 2876 checkUnnamed1118(o[0]);
2742 checkUnnamed1123(o[1]); 2877 checkUnnamed1118(o[1]);
2743 } 2878 }
2744 2879
2745 core.int buildCounterSourceInfo = 0; 2880 core.int buildCounterSourceInfo = 0;
2746 buildSourceInfo() { 2881 buildSourceInfo() {
2747 var o = new api.SourceInfo(); 2882 var o = new api.SourceInfo();
2748 buildCounterSourceInfo++; 2883 buildCounterSourceInfo++;
2749 if (buildCounterSourceInfo < 3) { 2884 if (buildCounterSourceInfo < 3) {
2750 o.sourceFiles = buildUnnamed1124(); 2885 o.sourceFiles = buildUnnamed1119();
2751 } 2886 }
2752 buildCounterSourceInfo--; 2887 buildCounterSourceInfo--;
2753 return o; 2888 return o;
2754 } 2889 }
2755 2890
2756 checkSourceInfo(api.SourceInfo o) { 2891 checkSourceInfo(api.SourceInfo o) {
2757 buildCounterSourceInfo++; 2892 buildCounterSourceInfo++;
2758 if (buildCounterSourceInfo < 3) { 2893 if (buildCounterSourceInfo < 3) {
2759 checkUnnamed1124(o.sourceFiles); 2894 checkUnnamed1119(o.sourceFiles);
2760 } 2895 }
2761 buildCounterSourceInfo--; 2896 buildCounterSourceInfo--;
2762 } 2897 }
2763 2898
2764 buildUnnamed1125() { 2899 buildUnnamed1120() {
2765 var o = new core.Map<core.String, core.Object>(); 2900 var o = new core.Map<core.String, core.Object>();
2766 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2901 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2767 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2902 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2768 return o; 2903 return o;
2769 } 2904 }
2770 2905
2771 checkUnnamed1125(core.Map<core.String, core.Object> o) { 2906 checkUnnamed1120(core.Map<core.String, core.Object> o) {
2772 unittest.expect(o, unittest.hasLength(2)); 2907 unittest.expect(o, unittest.hasLength(2));
2773 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')); 2908 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'));
2774 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')); 2909 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'));
2775 } 2910 }
2776 2911
2777 buildUnnamed1126() { 2912 buildUnnamed1121() {
2778 var o = new core.List<core.Map<core.String, core.Object>>(); 2913 var o = new core.List<core.Map<core.String, core.Object>>();
2779 o.add(buildUnnamed1125()); 2914 o.add(buildUnnamed1120());
2780 o.add(buildUnnamed1125()); 2915 o.add(buildUnnamed1120());
2781 return o; 2916 return o;
2782 } 2917 }
2783 2918
2784 checkUnnamed1126(core.List<core.Map<core.String, core.Object>> o) { 2919 checkUnnamed1121(core.List<core.Map<core.String, core.Object>> o) {
2785 unittest.expect(o, unittest.hasLength(2)); 2920 unittest.expect(o, unittest.hasLength(2));
2786 checkUnnamed1125(o[0]); 2921 checkUnnamed1120(o[0]);
2787 checkUnnamed1125(o[1]); 2922 checkUnnamed1120(o[1]);
2788 } 2923 }
2789 2924
2790 core.int buildCounterStatus = 0; 2925 core.int buildCounterStatus = 0;
2791 buildStatus() { 2926 buildStatus() {
2792 var o = new api.Status(); 2927 var o = new api.Status();
2793 buildCounterStatus++; 2928 buildCounterStatus++;
2794 if (buildCounterStatus < 3) { 2929 if (buildCounterStatus < 3) {
2795 o.code = 42; 2930 o.code = 42;
2796 o.details = buildUnnamed1126(); 2931 o.details = buildUnnamed1121();
2797 o.message = "foo"; 2932 o.message = "foo";
2798 } 2933 }
2799 buildCounterStatus--; 2934 buildCounterStatus--;
2800 return o; 2935 return o;
2801 } 2936 }
2802 2937
2803 checkStatus(api.Status o) { 2938 checkStatus(api.Status o) {
2804 buildCounterStatus++; 2939 buildCounterStatus++;
2805 if (buildCounterStatus < 3) { 2940 if (buildCounterStatus < 3) {
2806 unittest.expect(o.code, unittest.equals(42)); 2941 unittest.expect(o.code, unittest.equals(42));
2807 checkUnnamed1126(o.details); 2942 checkUnnamed1121(o.details);
2808 unittest.expect(o.message, unittest.equals('foo')); 2943 unittest.expect(o.message, unittest.equals('foo'));
2809 } 2944 }
2810 buildCounterStatus--; 2945 buildCounterStatus--;
2811 } 2946 }
2812 2947
2813 core.int buildCounterStep = 0; 2948 core.int buildCounterStep = 0;
2814 buildStep() { 2949 buildStep() {
2815 var o = new api.Step(); 2950 var o = new api.Step();
2816 buildCounterStep++; 2951 buildCounterStep++;
2817 if (buildCounterStep < 3) { 2952 if (buildCounterStep < 3) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 checkSystemParameter(api.SystemParameter o) { 3022 checkSystemParameter(api.SystemParameter o) {
2888 buildCounterSystemParameter++; 3023 buildCounterSystemParameter++;
2889 if (buildCounterSystemParameter < 3) { 3024 if (buildCounterSystemParameter < 3) {
2890 unittest.expect(o.httpHeader, unittest.equals('foo')); 3025 unittest.expect(o.httpHeader, unittest.equals('foo'));
2891 unittest.expect(o.name, unittest.equals('foo')); 3026 unittest.expect(o.name, unittest.equals('foo'));
2892 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); 3027 unittest.expect(o.urlQueryParameter, unittest.equals('foo'));
2893 } 3028 }
2894 buildCounterSystemParameter--; 3029 buildCounterSystemParameter--;
2895 } 3030 }
2896 3031
2897 buildUnnamed1127() { 3032 buildUnnamed1122() {
2898 var o = new core.List<api.SystemParameter>(); 3033 var o = new core.List<api.SystemParameter>();
2899 o.add(buildSystemParameter()); 3034 o.add(buildSystemParameter());
2900 o.add(buildSystemParameter()); 3035 o.add(buildSystemParameter());
2901 return o; 3036 return o;
2902 } 3037 }
2903 3038
2904 checkUnnamed1127(core.List<api.SystemParameter> o) { 3039 checkUnnamed1122(core.List<api.SystemParameter> o) {
2905 unittest.expect(o, unittest.hasLength(2)); 3040 unittest.expect(o, unittest.hasLength(2));
2906 checkSystemParameter(o[0]); 3041 checkSystemParameter(o[0]);
2907 checkSystemParameter(o[1]); 3042 checkSystemParameter(o[1]);
2908 } 3043 }
2909 3044
2910 core.int buildCounterSystemParameterRule = 0; 3045 core.int buildCounterSystemParameterRule = 0;
2911 buildSystemParameterRule() { 3046 buildSystemParameterRule() {
2912 var o = new api.SystemParameterRule(); 3047 var o = new api.SystemParameterRule();
2913 buildCounterSystemParameterRule++; 3048 buildCounterSystemParameterRule++;
2914 if (buildCounterSystemParameterRule < 3) { 3049 if (buildCounterSystemParameterRule < 3) {
2915 o.parameters = buildUnnamed1127(); 3050 o.parameters = buildUnnamed1122();
2916 o.selector = "foo"; 3051 o.selector = "foo";
2917 } 3052 }
2918 buildCounterSystemParameterRule--; 3053 buildCounterSystemParameterRule--;
2919 return o; 3054 return o;
2920 } 3055 }
2921 3056
2922 checkSystemParameterRule(api.SystemParameterRule o) { 3057 checkSystemParameterRule(api.SystemParameterRule o) {
2923 buildCounterSystemParameterRule++; 3058 buildCounterSystemParameterRule++;
2924 if (buildCounterSystemParameterRule < 3) { 3059 if (buildCounterSystemParameterRule < 3) {
2925 checkUnnamed1127(o.parameters); 3060 checkUnnamed1122(o.parameters);
2926 unittest.expect(o.selector, unittest.equals('foo')); 3061 unittest.expect(o.selector, unittest.equals('foo'));
2927 } 3062 }
2928 buildCounterSystemParameterRule--; 3063 buildCounterSystemParameterRule--;
2929 } 3064 }
2930 3065
2931 buildUnnamed1128() { 3066 buildUnnamed1123() {
2932 var o = new core.List<api.SystemParameterRule>(); 3067 var o = new core.List<api.SystemParameterRule>();
2933 o.add(buildSystemParameterRule()); 3068 o.add(buildSystemParameterRule());
2934 o.add(buildSystemParameterRule()); 3069 o.add(buildSystemParameterRule());
2935 return o; 3070 return o;
2936 } 3071 }
2937 3072
2938 checkUnnamed1128(core.List<api.SystemParameterRule> o) { 3073 checkUnnamed1123(core.List<api.SystemParameterRule> o) {
2939 unittest.expect(o, unittest.hasLength(2)); 3074 unittest.expect(o, unittest.hasLength(2));
2940 checkSystemParameterRule(o[0]); 3075 checkSystemParameterRule(o[0]);
2941 checkSystemParameterRule(o[1]); 3076 checkSystemParameterRule(o[1]);
2942 } 3077 }
2943 3078
2944 core.int buildCounterSystemParameters = 0; 3079 core.int buildCounterSystemParameters = 0;
2945 buildSystemParameters() { 3080 buildSystemParameters() {
2946 var o = new api.SystemParameters(); 3081 var o = new api.SystemParameters();
2947 buildCounterSystemParameters++; 3082 buildCounterSystemParameters++;
2948 if (buildCounterSystemParameters < 3) { 3083 if (buildCounterSystemParameters < 3) {
2949 o.rules = buildUnnamed1128(); 3084 o.rules = buildUnnamed1123();
2950 } 3085 }
2951 buildCounterSystemParameters--; 3086 buildCounterSystemParameters--;
2952 return o; 3087 return o;
2953 } 3088 }
2954 3089
2955 checkSystemParameters(api.SystemParameters o) { 3090 checkSystemParameters(api.SystemParameters o) {
2956 buildCounterSystemParameters++; 3091 buildCounterSystemParameters++;
2957 if (buildCounterSystemParameters < 3) { 3092 if (buildCounterSystemParameters < 3) {
2958 checkUnnamed1128(o.rules); 3093 checkUnnamed1123(o.rules);
2959 } 3094 }
2960 buildCounterSystemParameters--; 3095 buildCounterSystemParameters--;
2961 } 3096 }
2962 3097
2963 buildUnnamed1129() { 3098 buildUnnamed1124() {
2964 var o = new core.List<core.String>(); 3099 var o = new core.List<core.String>();
2965 o.add("foo"); 3100 o.add("foo");
2966 o.add("foo"); 3101 o.add("foo");
2967 return o; 3102 return o;
2968 } 3103 }
2969 3104
2970 checkUnnamed1129(core.List<core.String> o) { 3105 checkUnnamed1124(core.List<core.String> o) {
2971 unittest.expect(o, unittest.hasLength(2)); 3106 unittest.expect(o, unittest.hasLength(2));
2972 unittest.expect(o[0], unittest.equals('foo')); 3107 unittest.expect(o[0], unittest.equals('foo'));
2973 unittest.expect(o[1], unittest.equals('foo')); 3108 unittest.expect(o[1], unittest.equals('foo'));
2974 } 3109 }
2975 3110
2976 core.int buildCounterTestIamPermissionsRequest = 0; 3111 core.int buildCounterTestIamPermissionsRequest = 0;
2977 buildTestIamPermissionsRequest() { 3112 buildTestIamPermissionsRequest() {
2978 var o = new api.TestIamPermissionsRequest(); 3113 var o = new api.TestIamPermissionsRequest();
2979 buildCounterTestIamPermissionsRequest++; 3114 buildCounterTestIamPermissionsRequest++;
2980 if (buildCounterTestIamPermissionsRequest < 3) { 3115 if (buildCounterTestIamPermissionsRequest < 3) {
2981 o.permissions = buildUnnamed1129(); 3116 o.permissions = buildUnnamed1124();
2982 } 3117 }
2983 buildCounterTestIamPermissionsRequest--; 3118 buildCounterTestIamPermissionsRequest--;
2984 return o; 3119 return o;
2985 } 3120 }
2986 3121
2987 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 3122 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
2988 buildCounterTestIamPermissionsRequest++; 3123 buildCounterTestIamPermissionsRequest++;
2989 if (buildCounterTestIamPermissionsRequest < 3) { 3124 if (buildCounterTestIamPermissionsRequest < 3) {
2990 checkUnnamed1129(o.permissions); 3125 checkUnnamed1124(o.permissions);
2991 } 3126 }
2992 buildCounterTestIamPermissionsRequest--; 3127 buildCounterTestIamPermissionsRequest--;
2993 } 3128 }
2994 3129
2995 buildUnnamed1130() { 3130 buildUnnamed1125() {
2996 var o = new core.List<core.String>(); 3131 var o = new core.List<core.String>();
2997 o.add("foo"); 3132 o.add("foo");
2998 o.add("foo"); 3133 o.add("foo");
2999 return o; 3134 return o;
3000 } 3135 }
3001 3136
3002 checkUnnamed1130(core.List<core.String> o) { 3137 checkUnnamed1125(core.List<core.String> o) {
3003 unittest.expect(o, unittest.hasLength(2)); 3138 unittest.expect(o, unittest.hasLength(2));
3004 unittest.expect(o[0], unittest.equals('foo')); 3139 unittest.expect(o[0], unittest.equals('foo'));
3005 unittest.expect(o[1], unittest.equals('foo')); 3140 unittest.expect(o[1], unittest.equals('foo'));
3006 } 3141 }
3007 3142
3008 core.int buildCounterTestIamPermissionsResponse = 0; 3143 core.int buildCounterTestIamPermissionsResponse = 0;
3009 buildTestIamPermissionsResponse() { 3144 buildTestIamPermissionsResponse() {
3010 var o = new api.TestIamPermissionsResponse(); 3145 var o = new api.TestIamPermissionsResponse();
3011 buildCounterTestIamPermissionsResponse++; 3146 buildCounterTestIamPermissionsResponse++;
3012 if (buildCounterTestIamPermissionsResponse < 3) { 3147 if (buildCounterTestIamPermissionsResponse < 3) {
3013 o.permissions = buildUnnamed1130(); 3148 o.permissions = buildUnnamed1125();
3014 } 3149 }
3015 buildCounterTestIamPermissionsResponse--; 3150 buildCounterTestIamPermissionsResponse--;
3016 return o; 3151 return o;
3017 } 3152 }
3018 3153
3019 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 3154 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
3020 buildCounterTestIamPermissionsResponse++; 3155 buildCounterTestIamPermissionsResponse++;
3021 if (buildCounterTestIamPermissionsResponse < 3) { 3156 if (buildCounterTestIamPermissionsResponse < 3) {
3022 checkUnnamed1130(o.permissions); 3157 checkUnnamed1125(o.permissions);
3023 } 3158 }
3024 buildCounterTestIamPermissionsResponse--; 3159 buildCounterTestIamPermissionsResponse--;
3025 } 3160 }
3026 3161
3027 buildUnnamed1131() { 3162 buildUnnamed1126() {
3028 var o = new core.Map<core.String, core.double>(); 3163 var o = new core.Map<core.String, core.double>();
3029 o["x"] = 42.0; 3164 o["x"] = 42.0;
3030 o["y"] = 42.0; 3165 o["y"] = 42.0;
3031 return o; 3166 return o;
3032 } 3167 }
3033 3168
3034 checkUnnamed1131(core.Map<core.String, core.double> o) { 3169 checkUnnamed1126(core.Map<core.String, core.double> o) {
3035 unittest.expect(o, unittest.hasLength(2)); 3170 unittest.expect(o, unittest.hasLength(2));
3036 unittest.expect(o["x"], unittest.equals(42.0)); 3171 unittest.expect(o["x"], unittest.equals(42.0));
3037 unittest.expect(o["y"], unittest.equals(42.0)); 3172 unittest.expect(o["y"], unittest.equals(42.0));
3038 } 3173 }
3039 3174
3040 core.int buildCounterTrafficPercentStrategy = 0; 3175 core.int buildCounterTrafficPercentStrategy = 0;
3041 buildTrafficPercentStrategy() { 3176 buildTrafficPercentStrategy() {
3042 var o = new api.TrafficPercentStrategy(); 3177 var o = new api.TrafficPercentStrategy();
3043 buildCounterTrafficPercentStrategy++; 3178 buildCounterTrafficPercentStrategy++;
3044 if (buildCounterTrafficPercentStrategy < 3) { 3179 if (buildCounterTrafficPercentStrategy < 3) {
3045 o.percentages = buildUnnamed1131(); 3180 o.percentages = buildUnnamed1126();
3046 } 3181 }
3047 buildCounterTrafficPercentStrategy--; 3182 buildCounterTrafficPercentStrategy--;
3048 return o; 3183 return o;
3049 } 3184 }
3050 3185
3051 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { 3186 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) {
3052 buildCounterTrafficPercentStrategy++; 3187 buildCounterTrafficPercentStrategy++;
3053 if (buildCounterTrafficPercentStrategy < 3) { 3188 if (buildCounterTrafficPercentStrategy < 3) {
3054 checkUnnamed1131(o.percentages); 3189 checkUnnamed1126(o.percentages);
3055 } 3190 }
3056 buildCounterTrafficPercentStrategy--; 3191 buildCounterTrafficPercentStrategy--;
3057 } 3192 }
3058 3193
3059 buildUnnamed1132() { 3194 buildUnnamed1127() {
3060 var o = new core.List<api.Field>(); 3195 var o = new core.List<api.Field>();
3061 o.add(buildField()); 3196 o.add(buildField());
3062 o.add(buildField()); 3197 o.add(buildField());
3063 return o; 3198 return o;
3064 } 3199 }
3065 3200
3066 checkUnnamed1132(core.List<api.Field> o) { 3201 checkUnnamed1127(core.List<api.Field> o) {
3067 unittest.expect(o, unittest.hasLength(2)); 3202 unittest.expect(o, unittest.hasLength(2));
3068 checkField(o[0]); 3203 checkField(o[0]);
3069 checkField(o[1]); 3204 checkField(o[1]);
3070 } 3205 }
3071 3206
3072 buildUnnamed1133() { 3207 buildUnnamed1128() {
3073 var o = new core.List<core.String>(); 3208 var o = new core.List<core.String>();
3074 o.add("foo"); 3209 o.add("foo");
3075 o.add("foo"); 3210 o.add("foo");
3076 return o; 3211 return o;
3077 } 3212 }
3078 3213
3079 checkUnnamed1133(core.List<core.String> o) { 3214 checkUnnamed1128(core.List<core.String> o) {
3080 unittest.expect(o, unittest.hasLength(2)); 3215 unittest.expect(o, unittest.hasLength(2));
3081 unittest.expect(o[0], unittest.equals('foo')); 3216 unittest.expect(o[0], unittest.equals('foo'));
3082 unittest.expect(o[1], unittest.equals('foo')); 3217 unittest.expect(o[1], unittest.equals('foo'));
3083 } 3218 }
3084 3219
3085 buildUnnamed1134() { 3220 buildUnnamed1129() {
3086 var o = new core.List<api.Option>(); 3221 var o = new core.List<api.Option>();
3087 o.add(buildOption()); 3222 o.add(buildOption());
3088 o.add(buildOption()); 3223 o.add(buildOption());
3089 return o; 3224 return o;
3090 } 3225 }
3091 3226
3092 checkUnnamed1134(core.List<api.Option> o) { 3227 checkUnnamed1129(core.List<api.Option> o) {
3093 unittest.expect(o, unittest.hasLength(2)); 3228 unittest.expect(o, unittest.hasLength(2));
3094 checkOption(o[0]); 3229 checkOption(o[0]);
3095 checkOption(o[1]); 3230 checkOption(o[1]);
3096 } 3231 }
3097 3232
3098 core.int buildCounterType = 0; 3233 core.int buildCounterType = 0;
3099 buildType() { 3234 buildType() {
3100 var o = new api.Type(); 3235 var o = new api.Type();
3101 buildCounterType++; 3236 buildCounterType++;
3102 if (buildCounterType < 3) { 3237 if (buildCounterType < 3) {
3103 o.fields = buildUnnamed1132(); 3238 o.fields = buildUnnamed1127();
3104 o.name = "foo"; 3239 o.name = "foo";
3105 o.oneofs = buildUnnamed1133(); 3240 o.oneofs = buildUnnamed1128();
3106 o.options = buildUnnamed1134(); 3241 o.options = buildUnnamed1129();
3107 o.sourceContext = buildSourceContext(); 3242 o.sourceContext = buildSourceContext();
3108 o.syntax = "foo"; 3243 o.syntax = "foo";
3109 } 3244 }
3110 buildCounterType--; 3245 buildCounterType--;
3111 return o; 3246 return o;
3112 } 3247 }
3113 3248
3114 checkType(api.Type o) { 3249 checkType(api.Type o) {
3115 buildCounterType++; 3250 buildCounterType++;
3116 if (buildCounterType < 3) { 3251 if (buildCounterType < 3) {
3117 checkUnnamed1132(o.fields); 3252 checkUnnamed1127(o.fields);
3118 unittest.expect(o.name, unittest.equals('foo')); 3253 unittest.expect(o.name, unittest.equals('foo'));
3119 checkUnnamed1133(o.oneofs); 3254 checkUnnamed1128(o.oneofs);
3120 checkUnnamed1134(o.options); 3255 checkUnnamed1129(o.options);
3121 checkSourceContext(o.sourceContext); 3256 checkSourceContext(o.sourceContext);
3122 unittest.expect(o.syntax, unittest.equals('foo')); 3257 unittest.expect(o.syntax, unittest.equals('foo'));
3123 } 3258 }
3124 buildCounterType--; 3259 buildCounterType--;
3125 } 3260 }
3126 3261
3127 core.int buildCounterUndeleteServiceResponse = 0; 3262 core.int buildCounterUndeleteServiceResponse = 0;
3128 buildUndeleteServiceResponse() { 3263 buildUndeleteServiceResponse() {
3129 var o = new api.UndeleteServiceResponse(); 3264 var o = new api.UndeleteServiceResponse();
3130 buildCounterUndeleteServiceResponse++; 3265 buildCounterUndeleteServiceResponse++;
3131 if (buildCounterUndeleteServiceResponse < 3) { 3266 if (buildCounterUndeleteServiceResponse < 3) {
3132 o.service = buildManagedService(); 3267 o.service = buildManagedService();
3133 } 3268 }
3134 buildCounterUndeleteServiceResponse--; 3269 buildCounterUndeleteServiceResponse--;
3135 return o; 3270 return o;
3136 } 3271 }
3137 3272
3138 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { 3273 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) {
3139 buildCounterUndeleteServiceResponse++; 3274 buildCounterUndeleteServiceResponse++;
3140 if (buildCounterUndeleteServiceResponse < 3) { 3275 if (buildCounterUndeleteServiceResponse < 3) {
3141 checkManagedService(o.service); 3276 checkManagedService(o.service);
3142 } 3277 }
3143 buildCounterUndeleteServiceResponse--; 3278 buildCounterUndeleteServiceResponse--;
3144 } 3279 }
3145 3280
3146 buildUnnamed1135() { 3281 buildUnnamed1130() {
3147 var o = new core.List<core.String>(); 3282 var o = new core.List<core.String>();
3148 o.add("foo"); 3283 o.add("foo");
3149 o.add("foo"); 3284 o.add("foo");
3150 return o; 3285 return o;
3151 } 3286 }
3152 3287
3153 checkUnnamed1135(core.List<core.String> o) { 3288 checkUnnamed1130(core.List<core.String> o) {
3154 unittest.expect(o, unittest.hasLength(2)); 3289 unittest.expect(o, unittest.hasLength(2));
3155 unittest.expect(o[0], unittest.equals('foo')); 3290 unittest.expect(o[0], unittest.equals('foo'));
3156 unittest.expect(o[1], unittest.equals('foo')); 3291 unittest.expect(o[1], unittest.equals('foo'));
3157 } 3292 }
3158 3293
3159 buildUnnamed1136() { 3294 buildUnnamed1131() {
3160 var o = new core.List<api.UsageRule>(); 3295 var o = new core.List<api.UsageRule>();
3161 o.add(buildUsageRule()); 3296 o.add(buildUsageRule());
3162 o.add(buildUsageRule()); 3297 o.add(buildUsageRule());
3163 return o; 3298 return o;
3164 } 3299 }
3165 3300
3166 checkUnnamed1136(core.List<api.UsageRule> o) { 3301 checkUnnamed1131(core.List<api.UsageRule> o) {
3167 unittest.expect(o, unittest.hasLength(2)); 3302 unittest.expect(o, unittest.hasLength(2));
3168 checkUsageRule(o[0]); 3303 checkUsageRule(o[0]);
3169 checkUsageRule(o[1]); 3304 checkUsageRule(o[1]);
3170 } 3305 }
3171 3306
3172 core.int buildCounterUsage = 0; 3307 core.int buildCounterUsage = 0;
3173 buildUsage() { 3308 buildUsage() {
3174 var o = new api.Usage(); 3309 var o = new api.Usage();
3175 buildCounterUsage++; 3310 buildCounterUsage++;
3176 if (buildCounterUsage < 3) { 3311 if (buildCounterUsage < 3) {
3177 o.producerNotificationChannel = "foo"; 3312 o.producerNotificationChannel = "foo";
3178 o.requirements = buildUnnamed1135(); 3313 o.requirements = buildUnnamed1130();
3179 o.rules = buildUnnamed1136(); 3314 o.rules = buildUnnamed1131();
3180 } 3315 }
3181 buildCounterUsage--; 3316 buildCounterUsage--;
3182 return o; 3317 return o;
3183 } 3318 }
3184 3319
3185 checkUsage(api.Usage o) { 3320 checkUsage(api.Usage o) {
3186 buildCounterUsage++; 3321 buildCounterUsage++;
3187 if (buildCounterUsage < 3) { 3322 if (buildCounterUsage < 3) {
3188 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); 3323 unittest.expect(o.producerNotificationChannel, unittest.equals('foo'));
3189 checkUnnamed1135(o.requirements); 3324 checkUnnamed1130(o.requirements);
3190 checkUnnamed1136(o.rules); 3325 checkUnnamed1131(o.rules);
3191 } 3326 }
3192 buildCounterUsage--; 3327 buildCounterUsage--;
3193 } 3328 }
3194 3329
3195 core.int buildCounterUsageRule = 0; 3330 core.int buildCounterUsageRule = 0;
3196 buildUsageRule() { 3331 buildUsageRule() {
3197 var o = new api.UsageRule(); 3332 var o = new api.UsageRule();
3198 buildCounterUsageRule++; 3333 buildCounterUsageRule++;
3199 if (buildCounterUsageRule < 3) { 3334 if (buildCounterUsageRule < 3) {
3200 o.allowUnregisteredCalls = true; 3335 o.allowUnregisteredCalls = true;
3201 o.selector = "foo"; 3336 o.selector = "foo";
3202 } 3337 }
3203 buildCounterUsageRule--; 3338 buildCounterUsageRule--;
3204 return o; 3339 return o;
3205 } 3340 }
3206 3341
3207 checkUsageRule(api.UsageRule o) { 3342 checkUsageRule(api.UsageRule o) {
3208 buildCounterUsageRule++; 3343 buildCounterUsageRule++;
3209 if (buildCounterUsageRule < 3) { 3344 if (buildCounterUsageRule < 3) {
3210 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); 3345 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue);
3211 unittest.expect(o.selector, unittest.equals('foo')); 3346 unittest.expect(o.selector, unittest.equals('foo'));
3212 } 3347 }
3213 buildCounterUsageRule--; 3348 buildCounterUsageRule--;
3214 } 3349 }
3215 3350
3216 buildUnnamed1137() { 3351 buildUnnamed1132() {
3217 var o = new core.List<api.VisibilityRule>(); 3352 var o = new core.List<api.VisibilityRule>();
3218 o.add(buildVisibilityRule()); 3353 o.add(buildVisibilityRule());
3219 o.add(buildVisibilityRule()); 3354 o.add(buildVisibilityRule());
3220 return o; 3355 return o;
3221 } 3356 }
3222 3357
3223 checkUnnamed1137(core.List<api.VisibilityRule> o) { 3358 checkUnnamed1132(core.List<api.VisibilityRule> o) {
3224 unittest.expect(o, unittest.hasLength(2)); 3359 unittest.expect(o, unittest.hasLength(2));
3225 checkVisibilityRule(o[0]); 3360 checkVisibilityRule(o[0]);
3226 checkVisibilityRule(o[1]); 3361 checkVisibilityRule(o[1]);
3227 } 3362 }
3228 3363
3229 core.int buildCounterVisibility = 0; 3364 core.int buildCounterVisibility = 0;
3230 buildVisibility() { 3365 buildVisibility() {
3231 var o = new api.Visibility(); 3366 var o = new api.Visibility();
3232 buildCounterVisibility++; 3367 buildCounterVisibility++;
3233 if (buildCounterVisibility < 3) { 3368 if (buildCounterVisibility < 3) {
3234 o.rules = buildUnnamed1137(); 3369 o.rules = buildUnnamed1132();
3235 } 3370 }
3236 buildCounterVisibility--; 3371 buildCounterVisibility--;
3237 return o; 3372 return o;
3238 } 3373 }
3239 3374
3240 checkVisibility(api.Visibility o) { 3375 checkVisibility(api.Visibility o) {
3241 buildCounterVisibility++; 3376 buildCounterVisibility++;
3242 if (buildCounterVisibility < 3) { 3377 if (buildCounterVisibility < 3) {
3243 checkUnnamed1137(o.rules); 3378 checkUnnamed1132(o.rules);
3244 } 3379 }
3245 buildCounterVisibility--; 3380 buildCounterVisibility--;
3246 } 3381 }
3247 3382
3248 core.int buildCounterVisibilityRule = 0; 3383 core.int buildCounterVisibilityRule = 0;
3249 buildVisibilityRule() { 3384 buildVisibilityRule() {
3250 var o = new api.VisibilityRule(); 3385 var o = new api.VisibilityRule();
3251 buildCounterVisibilityRule++; 3386 buildCounterVisibilityRule++;
3252 if (buildCounterVisibilityRule < 3) { 3387 if (buildCounterVisibilityRule < 3) {
3253 o.restriction = "foo"; 3388 o.restriction = "foo";
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
3783 3918
3784 unittest.group("obj-schema-MetricDescriptor", () { 3919 unittest.group("obj-schema-MetricDescriptor", () {
3785 unittest.test("to-json--from-json", () { 3920 unittest.test("to-json--from-json", () {
3786 var o = buildMetricDescriptor(); 3921 var o = buildMetricDescriptor();
3787 var od = new api.MetricDescriptor.fromJson(o.toJson()); 3922 var od = new api.MetricDescriptor.fromJson(o.toJson());
3788 checkMetricDescriptor(od); 3923 checkMetricDescriptor(od);
3789 }); 3924 });
3790 }); 3925 });
3791 3926
3792 3927
3928 unittest.group("obj-schema-MetricRule", () {
3929 unittest.test("to-json--from-json", () {
3930 var o = buildMetricRule();
3931 var od = new api.MetricRule.fromJson(o.toJson());
3932 checkMetricRule(od);
3933 });
3934 });
3935
3936
3793 unittest.group("obj-schema-Mixin", () { 3937 unittest.group("obj-schema-Mixin", () {
3794 unittest.test("to-json--from-json", () { 3938 unittest.test("to-json--from-json", () {
3795 var o = buildMixin(); 3939 var o = buildMixin();
3796 var od = new api.Mixin.fromJson(o.toJson()); 3940 var od = new api.Mixin.fromJson(o.toJson());
3797 checkMixin(od); 3941 checkMixin(od);
3798 }); 3942 });
3799 }); 3943 });
3800 3944
3801 3945
3802 unittest.group("obj-schema-MonitoredResourceDescriptor", () { 3946 unittest.group("obj-schema-MonitoredResourceDescriptor", () {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
3873 4017
3874 unittest.group("obj-schema-Policy", () { 4018 unittest.group("obj-schema-Policy", () {
3875 unittest.test("to-json--from-json", () { 4019 unittest.test("to-json--from-json", () {
3876 var o = buildPolicy(); 4020 var o = buildPolicy();
3877 var od = new api.Policy.fromJson(o.toJson()); 4021 var od = new api.Policy.fromJson(o.toJson());
3878 checkPolicy(od); 4022 checkPolicy(od);
3879 }); 4023 });
3880 }); 4024 });
3881 4025
3882 4026
4027 unittest.group("obj-schema-Quota", () {
4028 unittest.test("to-json--from-json", () {
4029 var o = buildQuota();
4030 var od = new api.Quota.fromJson(o.toJson());
4031 checkQuota(od);
4032 });
4033 });
4034
4035
4036 unittest.group("obj-schema-QuotaLimit", () {
4037 unittest.test("to-json--from-json", () {
4038 var o = buildQuotaLimit();
4039 var od = new api.QuotaLimit.fromJson(o.toJson());
4040 checkQuotaLimit(od);
4041 });
4042 });
4043
4044
3883 unittest.group("obj-schema-Rollout", () { 4045 unittest.group("obj-schema-Rollout", () {
3884 unittest.test("to-json--from-json", () { 4046 unittest.test("to-json--from-json", () {
3885 var o = buildRollout(); 4047 var o = buildRollout();
3886 var od = new api.Rollout.fromJson(o.toJson()); 4048 var od = new api.Rollout.fromJson(o.toJson());
3887 checkRollout(od); 4049 checkRollout(od);
3888 }); 4050 });
3889 }); 4051 });
3890 4052
3891 4053
3892 unittest.group("obj-schema-Rule", () { 4054 unittest.group("obj-schema-Rule", () {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
4121 }), true); 4283 }), true);
4122 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { 4284 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) {
4123 checkOperation(response); 4285 checkOperation(response);
4124 }))); 4286 })));
4125 }); 4287 });
4126 4288
4127 unittest.test("method--list", () { 4289 unittest.test("method--list", () {
4128 4290
4129 var mock = new HttpServerMock(); 4291 var mock = new HttpServerMock();
4130 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati ons; 4292 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati ons;
4293 var arg_pageSize = 42;
4294 var arg_filter = "foo";
4131 var arg_name = "foo"; 4295 var arg_name = "foo";
4132 var arg_pageToken = "foo"; 4296 var arg_pageToken = "foo";
4133 var arg_pageSize = 42;
4134 var arg_filter = "foo";
4135 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4297 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4136 var path = (req.url).path; 4298 var path = (req.url).path;
4137 var pathOffset = 0; 4299 var pathOffset = 0;
4138 var index; 4300 var index;
4139 var subPart; 4301 var subPart;
4140 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4302 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4141 pathOffset += 1; 4303 pathOffset += 1;
4142 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1/operations")); 4304 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1/operations"));
4143 pathOffset += 13; 4305 pathOffset += 13;
4144 4306
4145 var query = (req.url).query; 4307 var query = (req.url).query;
4146 var queryOffset = 0; 4308 var queryOffset = 0;
4147 var queryMap = {}; 4309 var queryMap = {};
4148 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4310 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4149 parseBool(n) { 4311 parseBool(n) {
4150 if (n == "true") return true; 4312 if (n == "true") return true;
4151 if (n == "false") return false; 4313 if (n == "false") return false;
4152 if (n == null) return null; 4314 if (n == null) return null;
4153 throw new core.ArgumentError("Invalid boolean: $n"); 4315 throw new core.ArgumentError("Invalid boolean: $n");
4154 } 4316 }
4155 if (query.length > 0) { 4317 if (query.length > 0) {
4156 for (var part in query.split("&")) { 4318 for (var part in query.split("&")) {
4157 var keyvalue = part.split("="); 4319 var keyvalue = part.split("=");
4158 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4320 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4159 } 4321 }
4160 } 4322 }
4323 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4324 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4161 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); 4325 unittest.expect(queryMap["name"].first, unittest.equals(arg_name));
4162 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4326 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4163 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4164 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4165 4327
4166 4328
4167 var h = { 4329 var h = {
4168 "content-type" : "application/json; charset=utf-8", 4330 "content-type" : "application/json; charset=utf-8",
4169 }; 4331 };
4170 var resp = convert.JSON.encode(buildListOperationsResponse()); 4332 var resp = convert.JSON.encode(buildListOperationsResponse());
4171 return new async.Future.value(stringResponse(200, h, resp)); 4333 return new async.Future.value(stringResponse(200, h, resp));
4172 }), true); 4334 }), true);
4173 res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse resp onse) { 4335 res.list(pageSize: arg_pageSize, filter: arg_filter, name: arg_name, pageT oken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse resp onse) {
4174 checkListOperationsResponse(response); 4336 checkListOperationsResponse(response);
4175 }))); 4337 })));
4176 }); 4338 });
4177 4339
4178 }); 4340 });
4179 4341
4180 4342
4181 unittest.group("resource-ServicesResourceApi", () { 4343 unittest.group("resource-ServicesResourceApi", () {
4182 unittest.test("method--create", () { 4344 unittest.test("method--create", () {
4183 4345
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
4578 }), true); 4740 }), true);
4579 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap i.Policy response) { 4741 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap i.Policy response) {
4580 checkPolicy(response); 4742 checkPolicy(response);
4581 }))); 4743 })));
4582 }); 4744 });
4583 4745
4584 unittest.test("method--list", () { 4746 unittest.test("method--list", () {
4585 4747
4586 var mock = new HttpServerMock(); 4748 var mock = new HttpServerMock();
4587 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4749 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4588 var arg_producerProjectId = "foo";
4589 var arg_consumerId = "foo"; 4750 var arg_consumerId = "foo";
4590 var arg_pageToken = "foo"; 4751 var arg_pageToken = "foo";
4591 var arg_pageSize = 42; 4752 var arg_pageSize = 42;
4753 var arg_producerProjectId = "foo";
4592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4754 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4593 var path = (req.url).path; 4755 var path = (req.url).path;
4594 var pathOffset = 0; 4756 var pathOffset = 0;
4595 var index; 4757 var index;
4596 var subPart; 4758 var subPart;
4597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4598 pathOffset += 1; 4760 pathOffset += 1;
4599 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("v1/services")); 4761 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("v1/services"));
4600 pathOffset += 11; 4762 pathOffset += 11;
4601 4763
4602 var query = (req.url).query; 4764 var query = (req.url).query;
4603 var queryOffset = 0; 4765 var queryOffset = 0;
4604 var queryMap = {}; 4766 var queryMap = {};
4605 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4767 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4606 parseBool(n) { 4768 parseBool(n) {
4607 if (n == "true") return true; 4769 if (n == "true") return true;
4608 if (n == "false") return false; 4770 if (n == "false") return false;
4609 if (n == null) return null; 4771 if (n == null) return null;
4610 throw new core.ArgumentError("Invalid boolean: $n"); 4772 throw new core.ArgumentError("Invalid boolean: $n");
4611 } 4773 }
4612 if (query.length > 0) { 4774 if (query.length > 0) {
4613 for (var part in query.split("&")) { 4775 for (var part in query.split("&")) {
4614 var keyvalue = part.split("="); 4776 var keyvalue = part.split("=");
4615 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4777 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4616 } 4778 }
4617 } 4779 }
4618 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg _producerProjectId));
4619 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum erId)); 4780 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum erId));
4620 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4781 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4621 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4782 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4783 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg _producerProjectId));
4622 4784
4623 4785
4624 var h = { 4786 var h = {
4625 "content-type" : "application/json; charset=utf-8", 4787 "content-type" : "application/json; charset=utf-8",
4626 }; 4788 };
4627 var resp = convert.JSON.encode(buildListServicesResponse()); 4789 var resp = convert.JSON.encode(buildListServicesResponse());
4628 return new async.Future.value(stringResponse(200, h, resp)); 4790 return new async.Future.value(stringResponse(200, h, resp));
4629 }), true); 4791 }), true);
4630 res.list(producerProjectId: arg_producerProjectId, consumerId: arg_consume rId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync (((api.ListServicesResponse response) { 4792 res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: a rg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync (((api.ListServicesResponse response) {
4631 checkListServicesResponse(response); 4793 checkListServicesResponse(response);
4632 }))); 4794 })));
4633 }); 4795 });
4634 4796
4635 unittest.test("method--setIamPolicy", () { 4797 unittest.test("method--setIamPolicy", () {
4636 4798
4637 var mock = new HttpServerMock(); 4799 var mock = new HttpServerMock();
4638 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; 4800 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services;
4639 var arg_request = buildSetIamPolicyRequest(); 4801 var arg_request = buildSetIamPolicyRequest();
4640 var arg_resource = "foo"; 4802 var arg_resource = "foo";
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
5119 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync(((api.Ro llout response) { 5281 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync(((api.Ro llout response) {
5120 checkRollout(response); 5282 checkRollout(response);
5121 }))); 5283 })));
5122 }); 5284 });
5123 5285
5124 unittest.test("method--list", () { 5286 unittest.test("method--list", () {
5125 5287
5126 var mock = new HttpServerMock(); 5288 var mock = new HttpServerMock();
5127 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s ervices.rollouts; 5289 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s ervices.rollouts;
5128 var arg_serviceName = "foo"; 5290 var arg_serviceName = "foo";
5291 var arg_pageToken = "foo";
5129 var arg_pageSize = 42; 5292 var arg_pageSize = 42;
5130 var arg_pageToken = "foo";
5131 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5293 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5132 var path = (req.url).path; 5294 var path = (req.url).path;
5133 var pathOffset = 0; 5295 var pathOffset = 0;
5134 var index; 5296 var index;
5135 var subPart; 5297 var subPart;
5136 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5298 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5137 pathOffset += 1; 5299 pathOffset += 1;
5138 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/")); 5300 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1/services/"));
5139 pathOffset += 12; 5301 pathOffset += 12;
5140 index = path.indexOf("/rollouts", pathOffset); 5302 index = path.indexOf("/rollouts", pathOffset);
(...skipping 13 matching lines...) Expand all
5154 if (n == "false") return false; 5316 if (n == "false") return false;
5155 if (n == null) return null; 5317 if (n == null) return null;
5156 throw new core.ArgumentError("Invalid boolean: $n"); 5318 throw new core.ArgumentError("Invalid boolean: $n");
5157 } 5319 }
5158 if (query.length > 0) { 5320 if (query.length > 0) {
5159 for (var part in query.split("&")) { 5321 for (var part in query.split("&")) {
5160 var keyvalue = part.split("="); 5322 var keyvalue = part.split("=");
5161 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5323 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5162 } 5324 }
5163 } 5325 }
5326 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
5164 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 5327 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
5165 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
5166 5328
5167 5329
5168 var h = { 5330 var h = {
5169 "content-type" : "application/json; charset=utf-8", 5331 "content-type" : "application/json; charset=utf-8",
5170 }; 5332 };
5171 var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); 5333 var resp = convert.JSON.encode(buildListServiceRolloutsResponse());
5172 return new async.Future.value(stringResponse(200, h, resp)); 5334 return new async.Future.value(stringResponse(200, h, resp));
5173 }), true); 5335 }), true);
5174 res.list(arg_serviceName, pageSize: arg_pageSize, pageToken: arg_pageToken ).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) { 5336 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize ).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) {
5175 checkListServiceRolloutsResponse(response); 5337 checkListServiceRolloutsResponse(response);
5176 }))); 5338 })));
5177 }); 5339 });
5178 5340
5179 }); 5341 });
5180 5342
5181 5343
5182 } 5344 }
5183 5345
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