OLD | NEW |
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 Loading... |
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 buildUnnamed1004() { | 73 buildUnnamed1024() { |
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 checkUnnamed1004(core.List<api.Method> o) { | 80 checkUnnamed1024(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 buildUnnamed1005() { | 86 buildUnnamed1025() { |
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 checkUnnamed1005(core.List<api.Mixin> o) { | 93 checkUnnamed1025(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 buildUnnamed1006() { | 99 buildUnnamed1026() { |
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 checkUnnamed1006(core.List<api.Option> o) { | 106 checkUnnamed1026(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 = buildUnnamed1004(); | 117 o.methods = buildUnnamed1024(); |
118 o.mixins = buildUnnamed1005(); | 118 o.mixins = buildUnnamed1025(); |
119 o.name = "foo"; | 119 o.name = "foo"; |
120 o.options = buildUnnamed1006(); | 120 o.options = buildUnnamed1026(); |
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 checkUnnamed1004(o.methods); | 132 checkUnnamed1024(o.methods); |
133 checkUnnamed1005(o.mixins); | 133 checkUnnamed1025(o.mixins); |
134 unittest.expect(o.name, unittest.equals('foo')); | 134 unittest.expect(o.name, unittest.equals('foo')); |
135 checkUnnamed1006(o.options); | 135 checkUnnamed1026(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 buildUnnamed1007() { | 143 buildUnnamed1027() { |
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 checkUnnamed1007(core.List<api.AuditLogConfig> o) { | 150 checkUnnamed1027(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 buildUnnamed1008() { | 156 buildUnnamed1028() { |
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 checkUnnamed1008(core.List<core.String> o) { | 163 checkUnnamed1028(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 = buildUnnamed1007(); | 174 o.auditLogConfigs = buildUnnamed1027(); |
175 o.exemptedMembers = buildUnnamed1008(); | 175 o.exemptedMembers = buildUnnamed1028(); |
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 checkUnnamed1007(o.auditLogConfigs); | 185 checkUnnamed1027(o.auditLogConfigs); |
186 checkUnnamed1008(o.exemptedMembers); | 186 checkUnnamed1028(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 buildUnnamed1009() { | 192 buildUnnamed1029() { |
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 checkUnnamed1009(core.List<core.String> o) { | 199 checkUnnamed1029(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 = buildUnnamed1009(); | 210 o.exemptedMembers = buildUnnamed1029(); |
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 checkUnnamed1009(o.exemptedMembers); | 220 checkUnnamed1029(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 Loading... |
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 buildUnnamed1010() { | 272 buildUnnamed1030() { |
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 checkUnnamed1010(core.List<api.AuthProvider> o) { | 279 checkUnnamed1030(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 buildUnnamed1011() { | 285 buildUnnamed1031() { |
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 checkUnnamed1011(core.List<api.AuthenticationRule> o) { | 292 checkUnnamed1031(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 = buildUnnamed1010(); | 303 o.providers = buildUnnamed1030(); |
304 o.rules = buildUnnamed1011(); | 304 o.rules = buildUnnamed1031(); |
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 checkUnnamed1010(o.providers); | 313 checkUnnamed1030(o.providers); |
314 checkUnnamed1011(o.rules); | 314 checkUnnamed1031(o.rules); |
315 } | 315 } |
316 buildCounterAuthentication--; | 316 buildCounterAuthentication--; |
317 } | 317 } |
318 | 318 |
319 buildUnnamed1012() { | 319 buildUnnamed1032() { |
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 checkUnnamed1012(core.List<api.AuthRequirement> o) { | 326 checkUnnamed1032(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 = buildUnnamed1012(); | 339 o.requirements = buildUnnamed1032(); |
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 checkUnnamed1012(o.requirements); | 351 checkUnnamed1032(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 buildUnnamed1013() { | 357 core.int buildCounterAuthorizationConfig = 0; |
| 358 buildAuthorizationConfig() { |
| 359 var o = new api.AuthorizationConfig(); |
| 360 buildCounterAuthorizationConfig++; |
| 361 if (buildCounterAuthorizationConfig < 3) { |
| 362 o.provider = "foo"; |
| 363 } |
| 364 buildCounterAuthorizationConfig--; |
| 365 return o; |
| 366 } |
| 367 |
| 368 checkAuthorizationConfig(api.AuthorizationConfig o) { |
| 369 buildCounterAuthorizationConfig++; |
| 370 if (buildCounterAuthorizationConfig < 3) { |
| 371 unittest.expect(o.provider, unittest.equals('foo')); |
| 372 } |
| 373 buildCounterAuthorizationConfig--; |
| 374 } |
| 375 |
| 376 buildUnnamed1033() { |
358 var o = new core.List<api.BackendRule>(); | 377 var o = new core.List<api.BackendRule>(); |
359 o.add(buildBackendRule()); | 378 o.add(buildBackendRule()); |
360 o.add(buildBackendRule()); | 379 o.add(buildBackendRule()); |
361 return o; | 380 return o; |
362 } | 381 } |
363 | 382 |
364 checkUnnamed1013(core.List<api.BackendRule> o) { | 383 checkUnnamed1033(core.List<api.BackendRule> o) { |
365 unittest.expect(o, unittest.hasLength(2)); | 384 unittest.expect(o, unittest.hasLength(2)); |
366 checkBackendRule(o[0]); | 385 checkBackendRule(o[0]); |
367 checkBackendRule(o[1]); | 386 checkBackendRule(o[1]); |
368 } | 387 } |
369 | 388 |
370 core.int buildCounterBackend = 0; | 389 core.int buildCounterBackend = 0; |
371 buildBackend() { | 390 buildBackend() { |
372 var o = new api.Backend(); | 391 var o = new api.Backend(); |
373 buildCounterBackend++; | 392 buildCounterBackend++; |
374 if (buildCounterBackend < 3) { | 393 if (buildCounterBackend < 3) { |
375 o.rules = buildUnnamed1013(); | 394 o.rules = buildUnnamed1033(); |
376 } | 395 } |
377 buildCounterBackend--; | 396 buildCounterBackend--; |
378 return o; | 397 return o; |
379 } | 398 } |
380 | 399 |
381 checkBackend(api.Backend o) { | 400 checkBackend(api.Backend o) { |
382 buildCounterBackend++; | 401 buildCounterBackend++; |
383 if (buildCounterBackend < 3) { | 402 if (buildCounterBackend < 3) { |
384 checkUnnamed1013(o.rules); | 403 checkUnnamed1033(o.rules); |
385 } | 404 } |
386 buildCounterBackend--; | 405 buildCounterBackend--; |
387 } | 406 } |
388 | 407 |
389 core.int buildCounterBackendRule = 0; | 408 core.int buildCounterBackendRule = 0; |
390 buildBackendRule() { | 409 buildBackendRule() { |
391 var o = new api.BackendRule(); | 410 var o = new api.BackendRule(); |
392 buildCounterBackendRule++; | 411 buildCounterBackendRule++; |
393 if (buildCounterBackendRule < 3) { | 412 if (buildCounterBackendRule < 3) { |
394 o.address = "foo"; | 413 o.address = "foo"; |
395 o.deadline = 42.0; | 414 o.deadline = 42.0; |
396 o.selector = "foo"; | 415 o.selector = "foo"; |
397 } | 416 } |
398 buildCounterBackendRule--; | 417 buildCounterBackendRule--; |
399 return o; | 418 return o; |
400 } | 419 } |
401 | 420 |
402 checkBackendRule(api.BackendRule o) { | 421 checkBackendRule(api.BackendRule o) { |
403 buildCounterBackendRule++; | 422 buildCounterBackendRule++; |
404 if (buildCounterBackendRule < 3) { | 423 if (buildCounterBackendRule < 3) { |
405 unittest.expect(o.address, unittest.equals('foo')); | 424 unittest.expect(o.address, unittest.equals('foo')); |
406 unittest.expect(o.deadline, unittest.equals(42.0)); | 425 unittest.expect(o.deadline, unittest.equals(42.0)); |
407 unittest.expect(o.selector, unittest.equals('foo')); | 426 unittest.expect(o.selector, unittest.equals('foo')); |
408 } | 427 } |
409 buildCounterBackendRule--; | 428 buildCounterBackendRule--; |
410 } | 429 } |
411 | 430 |
412 buildUnnamed1014() { | 431 buildUnnamed1034() { |
413 var o = new core.List<core.String>(); | 432 var o = new core.List<core.String>(); |
414 o.add("foo"); | 433 o.add("foo"); |
415 o.add("foo"); | 434 o.add("foo"); |
416 return o; | 435 return o; |
417 } | 436 } |
418 | 437 |
419 checkUnnamed1014(core.List<core.String> o) { | 438 checkUnnamed1034(core.List<core.String> o) { |
420 unittest.expect(o, unittest.hasLength(2)); | 439 unittest.expect(o, unittest.hasLength(2)); |
421 unittest.expect(o[0], unittest.equals('foo')); | 440 unittest.expect(o[0], unittest.equals('foo')); |
422 unittest.expect(o[1], unittest.equals('foo')); | 441 unittest.expect(o[1], unittest.equals('foo')); |
423 } | 442 } |
424 | 443 |
425 core.int buildCounterBinding = 0; | 444 core.int buildCounterBinding = 0; |
426 buildBinding() { | 445 buildBinding() { |
427 var o = new api.Binding(); | 446 var o = new api.Binding(); |
428 buildCounterBinding++; | 447 buildCounterBinding++; |
429 if (buildCounterBinding < 3) { | 448 if (buildCounterBinding < 3) { |
430 o.members = buildUnnamed1014(); | 449 o.members = buildUnnamed1034(); |
431 o.role = "foo"; | 450 o.role = "foo"; |
432 } | 451 } |
433 buildCounterBinding--; | 452 buildCounterBinding--; |
434 return o; | 453 return o; |
435 } | 454 } |
436 | 455 |
437 checkBinding(api.Binding o) { | 456 checkBinding(api.Binding o) { |
438 buildCounterBinding++; | 457 buildCounterBinding++; |
439 if (buildCounterBinding < 3) { | 458 if (buildCounterBinding < 3) { |
440 checkUnnamed1014(o.members); | 459 checkUnnamed1034(o.members); |
441 unittest.expect(o.role, unittest.equals('foo')); | 460 unittest.expect(o.role, unittest.equals('foo')); |
442 } | 461 } |
443 buildCounterBinding--; | 462 buildCounterBinding--; |
444 } | 463 } |
445 | 464 |
446 buildUnnamed1015() { | 465 buildUnnamed1035() { |
447 var o = new core.List<api.ConfigChange>(); | 466 var o = new core.List<api.ConfigChange>(); |
448 o.add(buildConfigChange()); | 467 o.add(buildConfigChange()); |
449 o.add(buildConfigChange()); | 468 o.add(buildConfigChange()); |
450 return o; | 469 return o; |
451 } | 470 } |
452 | 471 |
453 checkUnnamed1015(core.List<api.ConfigChange> o) { | 472 checkUnnamed1035(core.List<api.ConfigChange> o) { |
454 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
455 checkConfigChange(o[0]); | 474 checkConfigChange(o[0]); |
456 checkConfigChange(o[1]); | 475 checkConfigChange(o[1]); |
457 } | 476 } |
458 | 477 |
459 core.int buildCounterChangeReport = 0; | 478 core.int buildCounterChangeReport = 0; |
460 buildChangeReport() { | 479 buildChangeReport() { |
461 var o = new api.ChangeReport(); | 480 var o = new api.ChangeReport(); |
462 buildCounterChangeReport++; | 481 buildCounterChangeReport++; |
463 if (buildCounterChangeReport < 3) { | 482 if (buildCounterChangeReport < 3) { |
464 o.configChanges = buildUnnamed1015(); | 483 o.configChanges = buildUnnamed1035(); |
465 } | 484 } |
466 buildCounterChangeReport--; | 485 buildCounterChangeReport--; |
467 return o; | 486 return o; |
468 } | 487 } |
469 | 488 |
470 checkChangeReport(api.ChangeReport o) { | 489 checkChangeReport(api.ChangeReport o) { |
471 buildCounterChangeReport++; | 490 buildCounterChangeReport++; |
472 if (buildCounterChangeReport < 3) { | 491 if (buildCounterChangeReport < 3) { |
473 checkUnnamed1015(o.configChanges); | 492 checkUnnamed1035(o.configChanges); |
474 } | 493 } |
475 buildCounterChangeReport--; | 494 buildCounterChangeReport--; |
476 } | 495 } |
477 | 496 |
478 core.int buildCounterCloudAuditOptions = 0; | 497 core.int buildCounterCloudAuditOptions = 0; |
479 buildCloudAuditOptions() { | 498 buildCloudAuditOptions() { |
480 var o = new api.CloudAuditOptions(); | 499 var o = new api.CloudAuditOptions(); |
481 buildCounterCloudAuditOptions++; | 500 buildCounterCloudAuditOptions++; |
482 if (buildCounterCloudAuditOptions < 3) { | 501 if (buildCounterCloudAuditOptions < 3) { |
483 } | 502 } |
484 buildCounterCloudAuditOptions--; | 503 buildCounterCloudAuditOptions--; |
485 return o; | 504 return o; |
486 } | 505 } |
487 | 506 |
488 checkCloudAuditOptions(api.CloudAuditOptions o) { | 507 checkCloudAuditOptions(api.CloudAuditOptions o) { |
489 buildCounterCloudAuditOptions++; | 508 buildCounterCloudAuditOptions++; |
490 if (buildCounterCloudAuditOptions < 3) { | 509 if (buildCounterCloudAuditOptions < 3) { |
491 } | 510 } |
492 buildCounterCloudAuditOptions--; | 511 buildCounterCloudAuditOptions--; |
493 } | 512 } |
494 | 513 |
495 buildUnnamed1016() { | 514 buildUnnamed1036() { |
496 var o = new core.List<core.String>(); | 515 var o = new core.List<core.String>(); |
497 o.add("foo"); | 516 o.add("foo"); |
498 o.add("foo"); | 517 o.add("foo"); |
499 return o; | 518 return o; |
500 } | 519 } |
501 | 520 |
502 checkUnnamed1016(core.List<core.String> o) { | 521 checkUnnamed1036(core.List<core.String> o) { |
503 unittest.expect(o, unittest.hasLength(2)); | 522 unittest.expect(o, unittest.hasLength(2)); |
504 unittest.expect(o[0], unittest.equals('foo')); | 523 unittest.expect(o[0], unittest.equals('foo')); |
505 unittest.expect(o[1], unittest.equals('foo')); | 524 unittest.expect(o[1], unittest.equals('foo')); |
506 } | 525 } |
507 | 526 |
508 core.int buildCounterCondition = 0; | 527 core.int buildCounterCondition = 0; |
509 buildCondition() { | 528 buildCondition() { |
510 var o = new api.Condition(); | 529 var o = new api.Condition(); |
511 buildCounterCondition++; | 530 buildCounterCondition++; |
512 if (buildCounterCondition < 3) { | 531 if (buildCounterCondition < 3) { |
513 o.iam = "foo"; | 532 o.iam = "foo"; |
514 o.op = "foo"; | 533 o.op = "foo"; |
515 o.svc = "foo"; | 534 o.svc = "foo"; |
516 o.sys = "foo"; | 535 o.sys = "foo"; |
517 o.value = "foo"; | 536 o.value = "foo"; |
518 o.values = buildUnnamed1016(); | 537 o.values = buildUnnamed1036(); |
519 } | 538 } |
520 buildCounterCondition--; | 539 buildCounterCondition--; |
521 return o; | 540 return o; |
522 } | 541 } |
523 | 542 |
524 checkCondition(api.Condition o) { | 543 checkCondition(api.Condition o) { |
525 buildCounterCondition++; | 544 buildCounterCondition++; |
526 if (buildCounterCondition < 3) { | 545 if (buildCounterCondition < 3) { |
527 unittest.expect(o.iam, unittest.equals('foo')); | 546 unittest.expect(o.iam, unittest.equals('foo')); |
528 unittest.expect(o.op, unittest.equals('foo')); | 547 unittest.expect(o.op, unittest.equals('foo')); |
529 unittest.expect(o.svc, unittest.equals('foo')); | 548 unittest.expect(o.svc, unittest.equals('foo')); |
530 unittest.expect(o.sys, unittest.equals('foo')); | 549 unittest.expect(o.sys, unittest.equals('foo')); |
531 unittest.expect(o.value, unittest.equals('foo')); | 550 unittest.expect(o.value, unittest.equals('foo')); |
532 checkUnnamed1016(o.values); | 551 checkUnnamed1036(o.values); |
533 } | 552 } |
534 buildCounterCondition--; | 553 buildCounterCondition--; |
535 } | 554 } |
536 | 555 |
537 buildUnnamed1017() { | 556 buildUnnamed1037() { |
538 var o = new core.List<api.Advice>(); | 557 var o = new core.List<api.Advice>(); |
539 o.add(buildAdvice()); | 558 o.add(buildAdvice()); |
540 o.add(buildAdvice()); | 559 o.add(buildAdvice()); |
541 return o; | 560 return o; |
542 } | 561 } |
543 | 562 |
544 checkUnnamed1017(core.List<api.Advice> o) { | 563 checkUnnamed1037(core.List<api.Advice> o) { |
545 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
546 checkAdvice(o[0]); | 565 checkAdvice(o[0]); |
547 checkAdvice(o[1]); | 566 checkAdvice(o[1]); |
548 } | 567 } |
549 | 568 |
550 core.int buildCounterConfigChange = 0; | 569 core.int buildCounterConfigChange = 0; |
551 buildConfigChange() { | 570 buildConfigChange() { |
552 var o = new api.ConfigChange(); | 571 var o = new api.ConfigChange(); |
553 buildCounterConfigChange++; | 572 buildCounterConfigChange++; |
554 if (buildCounterConfigChange < 3) { | 573 if (buildCounterConfigChange < 3) { |
555 o.advices = buildUnnamed1017(); | 574 o.advices = buildUnnamed1037(); |
556 o.changeType = "foo"; | 575 o.changeType = "foo"; |
557 o.element = "foo"; | 576 o.element = "foo"; |
558 o.newValue = "foo"; | 577 o.newValue = "foo"; |
559 o.oldValue = "foo"; | 578 o.oldValue = "foo"; |
560 } | 579 } |
561 buildCounterConfigChange--; | 580 buildCounterConfigChange--; |
562 return o; | 581 return o; |
563 } | 582 } |
564 | 583 |
565 checkConfigChange(api.ConfigChange o) { | 584 checkConfigChange(api.ConfigChange o) { |
566 buildCounterConfigChange++; | 585 buildCounterConfigChange++; |
567 if (buildCounterConfigChange < 3) { | 586 if (buildCounterConfigChange < 3) { |
568 checkUnnamed1017(o.advices); | 587 checkUnnamed1037(o.advices); |
569 unittest.expect(o.changeType, unittest.equals('foo')); | 588 unittest.expect(o.changeType, unittest.equals('foo')); |
570 unittest.expect(o.element, unittest.equals('foo')); | 589 unittest.expect(o.element, unittest.equals('foo')); |
571 unittest.expect(o.newValue, unittest.equals('foo')); | 590 unittest.expect(o.newValue, unittest.equals('foo')); |
572 unittest.expect(o.oldValue, unittest.equals('foo')); | 591 unittest.expect(o.oldValue, unittest.equals('foo')); |
573 } | 592 } |
574 buildCounterConfigChange--; | 593 buildCounterConfigChange--; |
575 } | 594 } |
576 | 595 |
577 core.int buildCounterConfigFile = 0; | 596 core.int buildCounterConfigFile = 0; |
578 buildConfigFile() { | 597 buildConfigFile() { |
(...skipping 30 matching lines...) Expand all Loading... |
609 } | 628 } |
610 | 629 |
611 checkConfigRef(api.ConfigRef o) { | 630 checkConfigRef(api.ConfigRef o) { |
612 buildCounterConfigRef++; | 631 buildCounterConfigRef++; |
613 if (buildCounterConfigRef < 3) { | 632 if (buildCounterConfigRef < 3) { |
614 unittest.expect(o.name, unittest.equals('foo')); | 633 unittest.expect(o.name, unittest.equals('foo')); |
615 } | 634 } |
616 buildCounterConfigRef--; | 635 buildCounterConfigRef--; |
617 } | 636 } |
618 | 637 |
619 buildUnnamed1018() { | 638 buildUnnamed1038() { |
620 var o = new core.List<api.ConfigFile>(); | 639 var o = new core.List<api.ConfigFile>(); |
621 o.add(buildConfigFile()); | 640 o.add(buildConfigFile()); |
622 o.add(buildConfigFile()); | 641 o.add(buildConfigFile()); |
623 return o; | 642 return o; |
624 } | 643 } |
625 | 644 |
626 checkUnnamed1018(core.List<api.ConfigFile> o) { | 645 checkUnnamed1038(core.List<api.ConfigFile> o) { |
627 unittest.expect(o, unittest.hasLength(2)); | 646 unittest.expect(o, unittest.hasLength(2)); |
628 checkConfigFile(o[0]); | 647 checkConfigFile(o[0]); |
629 checkConfigFile(o[1]); | 648 checkConfigFile(o[1]); |
630 } | 649 } |
631 | 650 |
632 core.int buildCounterConfigSource = 0; | 651 core.int buildCounterConfigSource = 0; |
633 buildConfigSource() { | 652 buildConfigSource() { |
634 var o = new api.ConfigSource(); | 653 var o = new api.ConfigSource(); |
635 buildCounterConfigSource++; | 654 buildCounterConfigSource++; |
636 if (buildCounterConfigSource < 3) { | 655 if (buildCounterConfigSource < 3) { |
637 o.files = buildUnnamed1018(); | 656 o.files = buildUnnamed1038(); |
638 o.id = "foo"; | 657 o.id = "foo"; |
639 } | 658 } |
640 buildCounterConfigSource--; | 659 buildCounterConfigSource--; |
641 return o; | 660 return o; |
642 } | 661 } |
643 | 662 |
644 checkConfigSource(api.ConfigSource o) { | 663 checkConfigSource(api.ConfigSource o) { |
645 buildCounterConfigSource++; | 664 buildCounterConfigSource++; |
646 if (buildCounterConfigSource < 3) { | 665 if (buildCounterConfigSource < 3) { |
647 checkUnnamed1018(o.files); | 666 checkUnnamed1038(o.files); |
648 unittest.expect(o.id, unittest.equals('foo')); | 667 unittest.expect(o.id, unittest.equals('foo')); |
649 } | 668 } |
650 buildCounterConfigSource--; | 669 buildCounterConfigSource--; |
651 } | 670 } |
652 | 671 |
653 buildUnnamed1019() { | 672 buildUnnamed1039() { |
654 var o = new core.List<api.ContextRule>(); | 673 var o = new core.List<api.ContextRule>(); |
655 o.add(buildContextRule()); | 674 o.add(buildContextRule()); |
656 o.add(buildContextRule()); | 675 o.add(buildContextRule()); |
657 return o; | 676 return o; |
658 } | 677 } |
659 | 678 |
660 checkUnnamed1019(core.List<api.ContextRule> o) { | 679 checkUnnamed1039(core.List<api.ContextRule> o) { |
661 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
662 checkContextRule(o[0]); | 681 checkContextRule(o[0]); |
663 checkContextRule(o[1]); | 682 checkContextRule(o[1]); |
664 } | 683 } |
665 | 684 |
666 core.int buildCounterContext = 0; | 685 core.int buildCounterContext = 0; |
667 buildContext() { | 686 buildContext() { |
668 var o = new api.Context(); | 687 var o = new api.Context(); |
669 buildCounterContext++; | 688 buildCounterContext++; |
670 if (buildCounterContext < 3) { | 689 if (buildCounterContext < 3) { |
671 o.rules = buildUnnamed1019(); | 690 o.rules = buildUnnamed1039(); |
672 } | 691 } |
673 buildCounterContext--; | 692 buildCounterContext--; |
674 return o; | 693 return o; |
675 } | 694 } |
676 | 695 |
677 checkContext(api.Context o) { | 696 checkContext(api.Context o) { |
678 buildCounterContext++; | 697 buildCounterContext++; |
679 if (buildCounterContext < 3) { | 698 if (buildCounterContext < 3) { |
680 checkUnnamed1019(o.rules); | 699 checkUnnamed1039(o.rules); |
681 } | 700 } |
682 buildCounterContext--; | 701 buildCounterContext--; |
683 } | 702 } |
684 | 703 |
685 buildUnnamed1020() { | 704 buildUnnamed1040() { |
686 var o = new core.List<core.String>(); | 705 var o = new core.List<core.String>(); |
687 o.add("foo"); | 706 o.add("foo"); |
688 o.add("foo"); | 707 o.add("foo"); |
689 return o; | 708 return o; |
690 } | 709 } |
691 | 710 |
692 checkUnnamed1020(core.List<core.String> o) { | 711 checkUnnamed1040(core.List<core.String> o) { |
693 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
694 unittest.expect(o[0], unittest.equals('foo')); | 713 unittest.expect(o[0], unittest.equals('foo')); |
695 unittest.expect(o[1], unittest.equals('foo')); | 714 unittest.expect(o[1], unittest.equals('foo')); |
696 } | 715 } |
697 | 716 |
698 buildUnnamed1021() { | 717 buildUnnamed1041() { |
699 var o = new core.List<core.String>(); | 718 var o = new core.List<core.String>(); |
700 o.add("foo"); | 719 o.add("foo"); |
701 o.add("foo"); | 720 o.add("foo"); |
702 return o; | 721 return o; |
703 } | 722 } |
704 | 723 |
705 checkUnnamed1021(core.List<core.String> o) { | 724 checkUnnamed1041(core.List<core.String> o) { |
706 unittest.expect(o, unittest.hasLength(2)); | 725 unittest.expect(o, unittest.hasLength(2)); |
707 unittest.expect(o[0], unittest.equals('foo')); | 726 unittest.expect(o[0], unittest.equals('foo')); |
708 unittest.expect(o[1], unittest.equals('foo')); | 727 unittest.expect(o[1], unittest.equals('foo')); |
709 } | 728 } |
710 | 729 |
711 core.int buildCounterContextRule = 0; | 730 core.int buildCounterContextRule = 0; |
712 buildContextRule() { | 731 buildContextRule() { |
713 var o = new api.ContextRule(); | 732 var o = new api.ContextRule(); |
714 buildCounterContextRule++; | 733 buildCounterContextRule++; |
715 if (buildCounterContextRule < 3) { | 734 if (buildCounterContextRule < 3) { |
716 o.provided = buildUnnamed1020(); | 735 o.provided = buildUnnamed1040(); |
717 o.requested = buildUnnamed1021(); | 736 o.requested = buildUnnamed1041(); |
718 o.selector = "foo"; | 737 o.selector = "foo"; |
719 } | 738 } |
720 buildCounterContextRule--; | 739 buildCounterContextRule--; |
721 return o; | 740 return o; |
722 } | 741 } |
723 | 742 |
724 checkContextRule(api.ContextRule o) { | 743 checkContextRule(api.ContextRule o) { |
725 buildCounterContextRule++; | 744 buildCounterContextRule++; |
726 if (buildCounterContextRule < 3) { | 745 if (buildCounterContextRule < 3) { |
727 checkUnnamed1020(o.provided); | 746 checkUnnamed1040(o.provided); |
728 checkUnnamed1021(o.requested); | 747 checkUnnamed1041(o.requested); |
729 unittest.expect(o.selector, unittest.equals('foo')); | 748 unittest.expect(o.selector, unittest.equals('foo')); |
730 } | 749 } |
731 buildCounterContextRule--; | 750 buildCounterContextRule--; |
732 } | 751 } |
733 | 752 |
734 core.int buildCounterControl = 0; | 753 core.int buildCounterControl = 0; |
735 buildControl() { | 754 buildControl() { |
736 var o = new api.Control(); | 755 var o = new api.Control(); |
737 buildCounterControl++; | 756 buildCounterControl++; |
738 if (buildCounterControl < 3) { | 757 if (buildCounterControl < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
764 | 783 |
765 checkCounterOptions(api.CounterOptions o) { | 784 checkCounterOptions(api.CounterOptions o) { |
766 buildCounterCounterOptions++; | 785 buildCounterCounterOptions++; |
767 if (buildCounterCounterOptions < 3) { | 786 if (buildCounterCounterOptions < 3) { |
768 unittest.expect(o.field, unittest.equals('foo')); | 787 unittest.expect(o.field, unittest.equals('foo')); |
769 unittest.expect(o.metric, unittest.equals('foo')); | 788 unittest.expect(o.metric, unittest.equals('foo')); |
770 } | 789 } |
771 buildCounterCounterOptions--; | 790 buildCounterCounterOptions--; |
772 } | 791 } |
773 | 792 |
774 buildUnnamed1022() { | 793 buildUnnamed1042() { |
775 var o = new core.List<api.CustomErrorRule>(); | 794 var o = new core.List<api.CustomErrorRule>(); |
776 o.add(buildCustomErrorRule()); | 795 o.add(buildCustomErrorRule()); |
777 o.add(buildCustomErrorRule()); | 796 o.add(buildCustomErrorRule()); |
778 return o; | 797 return o; |
779 } | 798 } |
780 | 799 |
781 checkUnnamed1022(core.List<api.CustomErrorRule> o) { | 800 checkUnnamed1042(core.List<api.CustomErrorRule> o) { |
782 unittest.expect(o, unittest.hasLength(2)); | 801 unittest.expect(o, unittest.hasLength(2)); |
783 checkCustomErrorRule(o[0]); | 802 checkCustomErrorRule(o[0]); |
784 checkCustomErrorRule(o[1]); | 803 checkCustomErrorRule(o[1]); |
785 } | 804 } |
786 | 805 |
787 buildUnnamed1023() { | 806 buildUnnamed1043() { |
788 var o = new core.List<core.String>(); | 807 var o = new core.List<core.String>(); |
789 o.add("foo"); | 808 o.add("foo"); |
790 o.add("foo"); | 809 o.add("foo"); |
791 return o; | 810 return o; |
792 } | 811 } |
793 | 812 |
794 checkUnnamed1023(core.List<core.String> o) { | 813 checkUnnamed1043(core.List<core.String> o) { |
795 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
796 unittest.expect(o[0], unittest.equals('foo')); | 815 unittest.expect(o[0], unittest.equals('foo')); |
797 unittest.expect(o[1], unittest.equals('foo')); | 816 unittest.expect(o[1], unittest.equals('foo')); |
798 } | 817 } |
799 | 818 |
800 core.int buildCounterCustomError = 0; | 819 core.int buildCounterCustomError = 0; |
801 buildCustomError() { | 820 buildCustomError() { |
802 var o = new api.CustomError(); | 821 var o = new api.CustomError(); |
803 buildCounterCustomError++; | 822 buildCounterCustomError++; |
804 if (buildCounterCustomError < 3) { | 823 if (buildCounterCustomError < 3) { |
805 o.rules = buildUnnamed1022(); | 824 o.rules = buildUnnamed1042(); |
806 o.types = buildUnnamed1023(); | 825 o.types = buildUnnamed1043(); |
807 } | 826 } |
808 buildCounterCustomError--; | 827 buildCounterCustomError--; |
809 return o; | 828 return o; |
810 } | 829 } |
811 | 830 |
812 checkCustomError(api.CustomError o) { | 831 checkCustomError(api.CustomError o) { |
813 buildCounterCustomError++; | 832 buildCounterCustomError++; |
814 if (buildCounterCustomError < 3) { | 833 if (buildCounterCustomError < 3) { |
815 checkUnnamed1022(o.rules); | 834 checkUnnamed1042(o.rules); |
816 checkUnnamed1023(o.types); | 835 checkUnnamed1043(o.types); |
817 } | 836 } |
818 buildCounterCustomError--; | 837 buildCounterCustomError--; |
819 } | 838 } |
820 | 839 |
821 core.int buildCounterCustomErrorRule = 0; | 840 core.int buildCounterCustomErrorRule = 0; |
822 buildCustomErrorRule() { | 841 buildCustomErrorRule() { |
823 var o = new api.CustomErrorRule(); | 842 var o = new api.CustomErrorRule(); |
824 buildCounterCustomErrorRule++; | 843 buildCounterCustomErrorRule++; |
825 if (buildCounterCustomErrorRule < 3) { | 844 if (buildCounterCustomErrorRule < 3) { |
826 o.isErrorType = true; | 845 o.isErrorType = true; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 } | 948 } |
930 | 949 |
931 checkDisableServiceRequest(api.DisableServiceRequest o) { | 950 checkDisableServiceRequest(api.DisableServiceRequest o) { |
932 buildCounterDisableServiceRequest++; | 951 buildCounterDisableServiceRequest++; |
933 if (buildCounterDisableServiceRequest < 3) { | 952 if (buildCounterDisableServiceRequest < 3) { |
934 unittest.expect(o.consumerId, unittest.equals('foo')); | 953 unittest.expect(o.consumerId, unittest.equals('foo')); |
935 } | 954 } |
936 buildCounterDisableServiceRequest--; | 955 buildCounterDisableServiceRequest--; |
937 } | 956 } |
938 | 957 |
939 buildUnnamed1024() { | 958 buildUnnamed1044() { |
940 var o = new core.List<api.Page>(); | 959 var o = new core.List<api.Page>(); |
941 o.add(buildPage()); | 960 o.add(buildPage()); |
942 o.add(buildPage()); | 961 o.add(buildPage()); |
943 return o; | 962 return o; |
944 } | 963 } |
945 | 964 |
946 checkUnnamed1024(core.List<api.Page> o) { | 965 checkUnnamed1044(core.List<api.Page> o) { |
947 unittest.expect(o, unittest.hasLength(2)); | 966 unittest.expect(o, unittest.hasLength(2)); |
948 checkPage(o[0]); | 967 checkPage(o[0]); |
949 checkPage(o[1]); | 968 checkPage(o[1]); |
950 } | 969 } |
951 | 970 |
952 buildUnnamed1025() { | 971 buildUnnamed1045() { |
953 var o = new core.List<api.DocumentationRule>(); | 972 var o = new core.List<api.DocumentationRule>(); |
954 o.add(buildDocumentationRule()); | 973 o.add(buildDocumentationRule()); |
955 o.add(buildDocumentationRule()); | 974 o.add(buildDocumentationRule()); |
956 return o; | 975 return o; |
957 } | 976 } |
958 | 977 |
959 checkUnnamed1025(core.List<api.DocumentationRule> o) { | 978 checkUnnamed1045(core.List<api.DocumentationRule> o) { |
960 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
961 checkDocumentationRule(o[0]); | 980 checkDocumentationRule(o[0]); |
962 checkDocumentationRule(o[1]); | 981 checkDocumentationRule(o[1]); |
963 } | 982 } |
964 | 983 |
965 core.int buildCounterDocumentation = 0; | 984 core.int buildCounterDocumentation = 0; |
966 buildDocumentation() { | 985 buildDocumentation() { |
967 var o = new api.Documentation(); | 986 var o = new api.Documentation(); |
968 buildCounterDocumentation++; | 987 buildCounterDocumentation++; |
969 if (buildCounterDocumentation < 3) { | 988 if (buildCounterDocumentation < 3) { |
970 o.documentationRootUrl = "foo"; | 989 o.documentationRootUrl = "foo"; |
971 o.overview = "foo"; | 990 o.overview = "foo"; |
972 o.pages = buildUnnamed1024(); | 991 o.pages = buildUnnamed1044(); |
973 o.rules = buildUnnamed1025(); | 992 o.rules = buildUnnamed1045(); |
974 o.summary = "foo"; | 993 o.summary = "foo"; |
975 } | 994 } |
976 buildCounterDocumentation--; | 995 buildCounterDocumentation--; |
977 return o; | 996 return o; |
978 } | 997 } |
979 | 998 |
980 checkDocumentation(api.Documentation o) { | 999 checkDocumentation(api.Documentation o) { |
981 buildCounterDocumentation++; | 1000 buildCounterDocumentation++; |
982 if (buildCounterDocumentation < 3) { | 1001 if (buildCounterDocumentation < 3) { |
983 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 1002 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
984 unittest.expect(o.overview, unittest.equals('foo')); | 1003 unittest.expect(o.overview, unittest.equals('foo')); |
985 checkUnnamed1024(o.pages); | 1004 checkUnnamed1044(o.pages); |
986 checkUnnamed1025(o.rules); | 1005 checkUnnamed1045(o.rules); |
987 unittest.expect(o.summary, unittest.equals('foo')); | 1006 unittest.expect(o.summary, unittest.equals('foo')); |
988 } | 1007 } |
989 buildCounterDocumentation--; | 1008 buildCounterDocumentation--; |
990 } | 1009 } |
991 | 1010 |
992 core.int buildCounterDocumentationRule = 0; | 1011 core.int buildCounterDocumentationRule = 0; |
993 buildDocumentationRule() { | 1012 buildDocumentationRule() { |
994 var o = new api.DocumentationRule(); | 1013 var o = new api.DocumentationRule(); |
995 buildCounterDocumentationRule++; | 1014 buildCounterDocumentationRule++; |
996 if (buildCounterDocumentationRule < 3) { | 1015 if (buildCounterDocumentationRule < 3) { |
(...skipping 27 matching lines...) Expand all Loading... |
1024 } | 1043 } |
1025 | 1044 |
1026 checkEnableServiceRequest(api.EnableServiceRequest o) { | 1045 checkEnableServiceRequest(api.EnableServiceRequest o) { |
1027 buildCounterEnableServiceRequest++; | 1046 buildCounterEnableServiceRequest++; |
1028 if (buildCounterEnableServiceRequest < 3) { | 1047 if (buildCounterEnableServiceRequest < 3) { |
1029 unittest.expect(o.consumerId, unittest.equals('foo')); | 1048 unittest.expect(o.consumerId, unittest.equals('foo')); |
1030 } | 1049 } |
1031 buildCounterEnableServiceRequest--; | 1050 buildCounterEnableServiceRequest--; |
1032 } | 1051 } |
1033 | 1052 |
1034 buildUnnamed1026() { | 1053 buildUnnamed1046() { |
1035 var o = new core.List<core.String>(); | 1054 var o = new core.List<core.String>(); |
1036 o.add("foo"); | 1055 o.add("foo"); |
1037 o.add("foo"); | 1056 o.add("foo"); |
1038 return o; | 1057 return o; |
1039 } | 1058 } |
1040 | 1059 |
1041 checkUnnamed1026(core.List<core.String> o) { | 1060 checkUnnamed1046(core.List<core.String> o) { |
1042 unittest.expect(o, unittest.hasLength(2)); | 1061 unittest.expect(o, unittest.hasLength(2)); |
1043 unittest.expect(o[0], unittest.equals('foo')); | 1062 unittest.expect(o[0], unittest.equals('foo')); |
1044 unittest.expect(o[1], unittest.equals('foo')); | 1063 unittest.expect(o[1], unittest.equals('foo')); |
1045 } | 1064 } |
1046 | 1065 |
1047 buildUnnamed1027() { | 1066 buildUnnamed1047() { |
1048 var o = new core.List<core.String>(); | 1067 var o = new core.List<core.String>(); |
1049 o.add("foo"); | 1068 o.add("foo"); |
1050 o.add("foo"); | 1069 o.add("foo"); |
1051 return o; | 1070 return o; |
1052 } | 1071 } |
1053 | 1072 |
1054 checkUnnamed1027(core.List<core.String> o) { | 1073 checkUnnamed1047(core.List<core.String> o) { |
1055 unittest.expect(o, unittest.hasLength(2)); | 1074 unittest.expect(o, unittest.hasLength(2)); |
1056 unittest.expect(o[0], unittest.equals('foo')); | 1075 unittest.expect(o[0], unittest.equals('foo')); |
1057 unittest.expect(o[1], unittest.equals('foo')); | 1076 unittest.expect(o[1], unittest.equals('foo')); |
1058 } | 1077 } |
1059 | 1078 |
1060 buildUnnamed1028() { | 1079 buildUnnamed1048() { |
1061 var o = new core.List<core.String>(); | 1080 var o = new core.List<core.String>(); |
1062 o.add("foo"); | 1081 o.add("foo"); |
1063 o.add("foo"); | 1082 o.add("foo"); |
1064 return o; | 1083 return o; |
1065 } | 1084 } |
1066 | 1085 |
1067 checkUnnamed1028(core.List<core.String> o) { | 1086 checkUnnamed1048(core.List<core.String> o) { |
1068 unittest.expect(o, unittest.hasLength(2)); | 1087 unittest.expect(o, unittest.hasLength(2)); |
1069 unittest.expect(o[0], unittest.equals('foo')); | 1088 unittest.expect(o[0], unittest.equals('foo')); |
1070 unittest.expect(o[1], unittest.equals('foo')); | 1089 unittest.expect(o[1], unittest.equals('foo')); |
1071 } | 1090 } |
1072 | 1091 |
1073 core.int buildCounterEndpoint = 0; | 1092 core.int buildCounterEndpoint = 0; |
1074 buildEndpoint() { | 1093 buildEndpoint() { |
1075 var o = new api.Endpoint(); | 1094 var o = new api.Endpoint(); |
1076 buildCounterEndpoint++; | 1095 buildCounterEndpoint++; |
1077 if (buildCounterEndpoint < 3) { | 1096 if (buildCounterEndpoint < 3) { |
1078 o.aliases = buildUnnamed1026(); | 1097 o.aliases = buildUnnamed1046(); |
1079 o.allowCors = true; | 1098 o.allowCors = true; |
1080 o.apis = buildUnnamed1027(); | 1099 o.apis = buildUnnamed1047(); |
1081 o.features = buildUnnamed1028(); | 1100 o.features = buildUnnamed1048(); |
1082 o.name = "foo"; | 1101 o.name = "foo"; |
1083 } | 1102 } |
1084 buildCounterEndpoint--; | 1103 buildCounterEndpoint--; |
1085 return o; | 1104 return o; |
1086 } | 1105 } |
1087 | 1106 |
1088 checkEndpoint(api.Endpoint o) { | 1107 checkEndpoint(api.Endpoint o) { |
1089 buildCounterEndpoint++; | 1108 buildCounterEndpoint++; |
1090 if (buildCounterEndpoint < 3) { | 1109 if (buildCounterEndpoint < 3) { |
1091 checkUnnamed1026(o.aliases); | 1110 checkUnnamed1046(o.aliases); |
1092 unittest.expect(o.allowCors, unittest.isTrue); | 1111 unittest.expect(o.allowCors, unittest.isTrue); |
1093 checkUnnamed1027(o.apis); | 1112 checkUnnamed1047(o.apis); |
1094 checkUnnamed1028(o.features); | 1113 checkUnnamed1048(o.features); |
1095 unittest.expect(o.name, unittest.equals('foo')); | 1114 unittest.expect(o.name, unittest.equals('foo')); |
1096 } | 1115 } |
1097 buildCounterEndpoint--; | 1116 buildCounterEndpoint--; |
1098 } | 1117 } |
1099 | 1118 |
1100 buildUnnamed1029() { | 1119 buildUnnamed1049() { |
1101 var o = new core.List<api.EnumValue>(); | 1120 var o = new core.List<api.EnumValue>(); |
1102 o.add(buildEnumValue()); | 1121 o.add(buildEnumValue()); |
1103 o.add(buildEnumValue()); | 1122 o.add(buildEnumValue()); |
1104 return o; | 1123 return o; |
1105 } | 1124 } |
1106 | 1125 |
1107 checkUnnamed1029(core.List<api.EnumValue> o) { | 1126 checkUnnamed1049(core.List<api.EnumValue> o) { |
1108 unittest.expect(o, unittest.hasLength(2)); | 1127 unittest.expect(o, unittest.hasLength(2)); |
1109 checkEnumValue(o[0]); | 1128 checkEnumValue(o[0]); |
1110 checkEnumValue(o[1]); | 1129 checkEnumValue(o[1]); |
1111 } | 1130 } |
1112 | 1131 |
1113 buildUnnamed1030() { | 1132 buildUnnamed1050() { |
1114 var o = new core.List<api.Option>(); | 1133 var o = new core.List<api.Option>(); |
1115 o.add(buildOption()); | 1134 o.add(buildOption()); |
1116 o.add(buildOption()); | 1135 o.add(buildOption()); |
1117 return o; | 1136 return o; |
1118 } | 1137 } |
1119 | 1138 |
1120 checkUnnamed1030(core.List<api.Option> o) { | 1139 checkUnnamed1050(core.List<api.Option> o) { |
1121 unittest.expect(o, unittest.hasLength(2)); | 1140 unittest.expect(o, unittest.hasLength(2)); |
1122 checkOption(o[0]); | 1141 checkOption(o[0]); |
1123 checkOption(o[1]); | 1142 checkOption(o[1]); |
1124 } | 1143 } |
1125 | 1144 |
1126 core.int buildCounterEnum = 0; | 1145 core.int buildCounterEnum = 0; |
1127 buildEnum() { | 1146 buildEnum() { |
1128 var o = new api.Enum(); | 1147 var o = new api.Enum(); |
1129 buildCounterEnum++; | 1148 buildCounterEnum++; |
1130 if (buildCounterEnum < 3) { | 1149 if (buildCounterEnum < 3) { |
1131 o.enumvalue = buildUnnamed1029(); | 1150 o.enumvalue = buildUnnamed1049(); |
1132 o.name = "foo"; | 1151 o.name = "foo"; |
1133 o.options = buildUnnamed1030(); | 1152 o.options = buildUnnamed1050(); |
1134 o.sourceContext = buildSourceContext(); | 1153 o.sourceContext = buildSourceContext(); |
1135 o.syntax = "foo"; | 1154 o.syntax = "foo"; |
1136 } | 1155 } |
1137 buildCounterEnum--; | 1156 buildCounterEnum--; |
1138 return o; | 1157 return o; |
1139 } | 1158 } |
1140 | 1159 |
1141 checkEnum(api.Enum o) { | 1160 checkEnum(api.Enum o) { |
1142 buildCounterEnum++; | 1161 buildCounterEnum++; |
1143 if (buildCounterEnum < 3) { | 1162 if (buildCounterEnum < 3) { |
1144 checkUnnamed1029(o.enumvalue); | 1163 checkUnnamed1049(o.enumvalue); |
1145 unittest.expect(o.name, unittest.equals('foo')); | 1164 unittest.expect(o.name, unittest.equals('foo')); |
1146 checkUnnamed1030(o.options); | 1165 checkUnnamed1050(o.options); |
1147 checkSourceContext(o.sourceContext); | 1166 checkSourceContext(o.sourceContext); |
1148 unittest.expect(o.syntax, unittest.equals('foo')); | 1167 unittest.expect(o.syntax, unittest.equals('foo')); |
1149 } | 1168 } |
1150 buildCounterEnum--; | 1169 buildCounterEnum--; |
1151 } | 1170 } |
1152 | 1171 |
1153 buildUnnamed1031() { | 1172 buildUnnamed1051() { |
1154 var o = new core.List<api.Option>(); | 1173 var o = new core.List<api.Option>(); |
1155 o.add(buildOption()); | 1174 o.add(buildOption()); |
1156 o.add(buildOption()); | 1175 o.add(buildOption()); |
1157 return o; | 1176 return o; |
1158 } | 1177 } |
1159 | 1178 |
1160 checkUnnamed1031(core.List<api.Option> o) { | 1179 checkUnnamed1051(core.List<api.Option> o) { |
1161 unittest.expect(o, unittest.hasLength(2)); | 1180 unittest.expect(o, unittest.hasLength(2)); |
1162 checkOption(o[0]); | 1181 checkOption(o[0]); |
1163 checkOption(o[1]); | 1182 checkOption(o[1]); |
1164 } | 1183 } |
1165 | 1184 |
1166 core.int buildCounterEnumValue = 0; | 1185 core.int buildCounterEnumValue = 0; |
1167 buildEnumValue() { | 1186 buildEnumValue() { |
1168 var o = new api.EnumValue(); | 1187 var o = new api.EnumValue(); |
1169 buildCounterEnumValue++; | 1188 buildCounterEnumValue++; |
1170 if (buildCounterEnumValue < 3) { | 1189 if (buildCounterEnumValue < 3) { |
1171 o.name = "foo"; | 1190 o.name = "foo"; |
1172 o.number = 42; | 1191 o.number = 42; |
1173 o.options = buildUnnamed1031(); | 1192 o.options = buildUnnamed1051(); |
1174 } | 1193 } |
1175 buildCounterEnumValue--; | 1194 buildCounterEnumValue--; |
1176 return o; | 1195 return o; |
1177 } | 1196 } |
1178 | 1197 |
1179 checkEnumValue(api.EnumValue o) { | 1198 checkEnumValue(api.EnumValue o) { |
1180 buildCounterEnumValue++; | 1199 buildCounterEnumValue++; |
1181 if (buildCounterEnumValue < 3) { | 1200 if (buildCounterEnumValue < 3) { |
1182 unittest.expect(o.name, unittest.equals('foo')); | 1201 unittest.expect(o.name, unittest.equals('foo')); |
1183 unittest.expect(o.number, unittest.equals(42)); | 1202 unittest.expect(o.number, unittest.equals(42)); |
1184 checkUnnamed1031(o.options); | 1203 checkUnnamed1051(o.options); |
1185 } | 1204 } |
1186 buildCounterEnumValue--; | 1205 buildCounterEnumValue--; |
1187 } | 1206 } |
1188 | 1207 |
1189 buildUnnamed1032() { | 1208 core.int buildCounterExperimental = 0; |
| 1209 buildExperimental() { |
| 1210 var o = new api.Experimental(); |
| 1211 buildCounterExperimental++; |
| 1212 if (buildCounterExperimental < 3) { |
| 1213 o.authorization = buildAuthorizationConfig(); |
| 1214 } |
| 1215 buildCounterExperimental--; |
| 1216 return o; |
| 1217 } |
| 1218 |
| 1219 checkExperimental(api.Experimental o) { |
| 1220 buildCounterExperimental++; |
| 1221 if (buildCounterExperimental < 3) { |
| 1222 checkAuthorizationConfig(o.authorization); |
| 1223 } |
| 1224 buildCounterExperimental--; |
| 1225 } |
| 1226 |
| 1227 buildUnnamed1052() { |
1190 var o = new core.List<api.Option>(); | 1228 var o = new core.List<api.Option>(); |
1191 o.add(buildOption()); | 1229 o.add(buildOption()); |
1192 o.add(buildOption()); | 1230 o.add(buildOption()); |
1193 return o; | 1231 return o; |
1194 } | 1232 } |
1195 | 1233 |
1196 checkUnnamed1032(core.List<api.Option> o) { | 1234 checkUnnamed1052(core.List<api.Option> o) { |
1197 unittest.expect(o, unittest.hasLength(2)); | 1235 unittest.expect(o, unittest.hasLength(2)); |
1198 checkOption(o[0]); | 1236 checkOption(o[0]); |
1199 checkOption(o[1]); | 1237 checkOption(o[1]); |
1200 } | 1238 } |
1201 | 1239 |
1202 core.int buildCounterField = 0; | 1240 core.int buildCounterField = 0; |
1203 buildField() { | 1241 buildField() { |
1204 var o = new api.Field(); | 1242 var o = new api.Field(); |
1205 buildCounterField++; | 1243 buildCounterField++; |
1206 if (buildCounterField < 3) { | 1244 if (buildCounterField < 3) { |
1207 o.cardinality = "foo"; | 1245 o.cardinality = "foo"; |
1208 o.defaultValue = "foo"; | 1246 o.defaultValue = "foo"; |
1209 o.jsonName = "foo"; | 1247 o.jsonName = "foo"; |
1210 o.kind = "foo"; | 1248 o.kind = "foo"; |
1211 o.name = "foo"; | 1249 o.name = "foo"; |
1212 o.number = 42; | 1250 o.number = 42; |
1213 o.oneofIndex = 42; | 1251 o.oneofIndex = 42; |
1214 o.options = buildUnnamed1032(); | 1252 o.options = buildUnnamed1052(); |
1215 o.packed = true; | 1253 o.packed = true; |
1216 o.typeUrl = "foo"; | 1254 o.typeUrl = "foo"; |
1217 } | 1255 } |
1218 buildCounterField--; | 1256 buildCounterField--; |
1219 return o; | 1257 return o; |
1220 } | 1258 } |
1221 | 1259 |
1222 checkField(api.Field o) { | 1260 checkField(api.Field o) { |
1223 buildCounterField++; | 1261 buildCounterField++; |
1224 if (buildCounterField < 3) { | 1262 if (buildCounterField < 3) { |
1225 unittest.expect(o.cardinality, unittest.equals('foo')); | 1263 unittest.expect(o.cardinality, unittest.equals('foo')); |
1226 unittest.expect(o.defaultValue, unittest.equals('foo')); | 1264 unittest.expect(o.defaultValue, unittest.equals('foo')); |
1227 unittest.expect(o.jsonName, unittest.equals('foo')); | 1265 unittest.expect(o.jsonName, unittest.equals('foo')); |
1228 unittest.expect(o.kind, unittest.equals('foo')); | 1266 unittest.expect(o.kind, unittest.equals('foo')); |
1229 unittest.expect(o.name, unittest.equals('foo')); | 1267 unittest.expect(o.name, unittest.equals('foo')); |
1230 unittest.expect(o.number, unittest.equals(42)); | 1268 unittest.expect(o.number, unittest.equals(42)); |
1231 unittest.expect(o.oneofIndex, unittest.equals(42)); | 1269 unittest.expect(o.oneofIndex, unittest.equals(42)); |
1232 checkUnnamed1032(o.options); | 1270 checkUnnamed1052(o.options); |
1233 unittest.expect(o.packed, unittest.isTrue); | 1271 unittest.expect(o.packed, unittest.isTrue); |
1234 unittest.expect(o.typeUrl, unittest.equals('foo')); | 1272 unittest.expect(o.typeUrl, unittest.equals('foo')); |
1235 } | 1273 } |
1236 buildCounterField--; | 1274 buildCounterField--; |
1237 } | 1275 } |
1238 | 1276 |
1239 buildUnnamed1033() { | 1277 buildUnnamed1053() { |
1240 var o = new core.Map<core.String, core.Object>(); | 1278 var o = new core.Map<core.String, core.Object>(); |
1241 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1279 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1242 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1280 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1243 return o; | 1281 return o; |
1244 } | 1282 } |
1245 | 1283 |
1246 checkUnnamed1033(core.Map<core.String, core.Object> o) { | 1284 checkUnnamed1053(core.Map<core.String, core.Object> o) { |
1247 unittest.expect(o, unittest.hasLength(2)); | 1285 unittest.expect(o, unittest.hasLength(2)); |
1248 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')); | 1286 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')); |
1249 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')); | 1287 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')); |
1250 } | 1288 } |
1251 | 1289 |
1252 buildUnnamed1034() { | 1290 buildUnnamed1054() { |
1253 var o = new core.Map<core.String, core.Object>(); | 1291 var o = new core.Map<core.String, core.Object>(); |
1254 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1292 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1255 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1293 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1256 return o; | 1294 return o; |
1257 } | 1295 } |
1258 | 1296 |
1259 checkUnnamed1034(core.Map<core.String, core.Object> o) { | 1297 checkUnnamed1054(core.Map<core.String, core.Object> o) { |
1260 unittest.expect(o, unittest.hasLength(2)); | 1298 unittest.expect(o, unittest.hasLength(2)); |
1261 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')); | 1299 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')); |
1262 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')); | 1300 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')); |
1263 } | 1301 } |
1264 | 1302 |
1265 core.int buildCounterGenerateConfigReportRequest = 0; | 1303 core.int buildCounterGenerateConfigReportRequest = 0; |
1266 buildGenerateConfigReportRequest() { | 1304 buildGenerateConfigReportRequest() { |
1267 var o = new api.GenerateConfigReportRequest(); | 1305 var o = new api.GenerateConfigReportRequest(); |
1268 buildCounterGenerateConfigReportRequest++; | 1306 buildCounterGenerateConfigReportRequest++; |
1269 if (buildCounterGenerateConfigReportRequest < 3) { | 1307 if (buildCounterGenerateConfigReportRequest < 3) { |
1270 o.newConfig = buildUnnamed1033(); | 1308 o.newConfig = buildUnnamed1053(); |
1271 o.oldConfig = buildUnnamed1034(); | 1309 o.oldConfig = buildUnnamed1054(); |
1272 } | 1310 } |
1273 buildCounterGenerateConfigReportRequest--; | 1311 buildCounterGenerateConfigReportRequest--; |
1274 return o; | 1312 return o; |
1275 } | 1313 } |
1276 | 1314 |
1277 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { | 1315 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { |
1278 buildCounterGenerateConfigReportRequest++; | 1316 buildCounterGenerateConfigReportRequest++; |
1279 if (buildCounterGenerateConfigReportRequest < 3) { | 1317 if (buildCounterGenerateConfigReportRequest < 3) { |
1280 checkUnnamed1033(o.newConfig); | 1318 checkUnnamed1053(o.newConfig); |
1281 checkUnnamed1034(o.oldConfig); | 1319 checkUnnamed1054(o.oldConfig); |
1282 } | 1320 } |
1283 buildCounterGenerateConfigReportRequest--; | 1321 buildCounterGenerateConfigReportRequest--; |
1284 } | 1322 } |
1285 | 1323 |
1286 buildUnnamed1035() { | 1324 buildUnnamed1055() { |
1287 var o = new core.List<api.ChangeReport>(); | 1325 var o = new core.List<api.ChangeReport>(); |
1288 o.add(buildChangeReport()); | 1326 o.add(buildChangeReport()); |
1289 o.add(buildChangeReport()); | 1327 o.add(buildChangeReport()); |
1290 return o; | 1328 return o; |
1291 } | 1329 } |
1292 | 1330 |
1293 checkUnnamed1035(core.List<api.ChangeReport> o) { | 1331 checkUnnamed1055(core.List<api.ChangeReport> o) { |
1294 unittest.expect(o, unittest.hasLength(2)); | 1332 unittest.expect(o, unittest.hasLength(2)); |
1295 checkChangeReport(o[0]); | 1333 checkChangeReport(o[0]); |
1296 checkChangeReport(o[1]); | 1334 checkChangeReport(o[1]); |
1297 } | 1335 } |
1298 | 1336 |
1299 buildUnnamed1036() { | 1337 buildUnnamed1056() { |
1300 var o = new core.List<api.Diagnostic>(); | 1338 var o = new core.List<api.Diagnostic>(); |
1301 o.add(buildDiagnostic()); | 1339 o.add(buildDiagnostic()); |
1302 o.add(buildDiagnostic()); | 1340 o.add(buildDiagnostic()); |
1303 return o; | 1341 return o; |
1304 } | 1342 } |
1305 | 1343 |
1306 checkUnnamed1036(core.List<api.Diagnostic> o) { | 1344 checkUnnamed1056(core.List<api.Diagnostic> o) { |
1307 unittest.expect(o, unittest.hasLength(2)); | 1345 unittest.expect(o, unittest.hasLength(2)); |
1308 checkDiagnostic(o[0]); | 1346 checkDiagnostic(o[0]); |
1309 checkDiagnostic(o[1]); | 1347 checkDiagnostic(o[1]); |
1310 } | 1348 } |
1311 | 1349 |
1312 core.int buildCounterGenerateConfigReportResponse = 0; | 1350 core.int buildCounterGenerateConfigReportResponse = 0; |
1313 buildGenerateConfigReportResponse() { | 1351 buildGenerateConfigReportResponse() { |
1314 var o = new api.GenerateConfigReportResponse(); | 1352 var o = new api.GenerateConfigReportResponse(); |
1315 buildCounterGenerateConfigReportResponse++; | 1353 buildCounterGenerateConfigReportResponse++; |
1316 if (buildCounterGenerateConfigReportResponse < 3) { | 1354 if (buildCounterGenerateConfigReportResponse < 3) { |
1317 o.changeReports = buildUnnamed1035(); | 1355 o.changeReports = buildUnnamed1055(); |
1318 o.diagnostics = buildUnnamed1036(); | 1356 o.diagnostics = buildUnnamed1056(); |
1319 o.id = "foo"; | 1357 o.id = "foo"; |
1320 o.serviceName = "foo"; | 1358 o.serviceName = "foo"; |
1321 } | 1359 } |
1322 buildCounterGenerateConfigReportResponse--; | 1360 buildCounterGenerateConfigReportResponse--; |
1323 return o; | 1361 return o; |
1324 } | 1362 } |
1325 | 1363 |
1326 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { | 1364 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { |
1327 buildCounterGenerateConfigReportResponse++; | 1365 buildCounterGenerateConfigReportResponse++; |
1328 if (buildCounterGenerateConfigReportResponse < 3) { | 1366 if (buildCounterGenerateConfigReportResponse < 3) { |
1329 checkUnnamed1035(o.changeReports); | 1367 checkUnnamed1055(o.changeReports); |
1330 checkUnnamed1036(o.diagnostics); | 1368 checkUnnamed1056(o.diagnostics); |
1331 unittest.expect(o.id, unittest.equals('foo')); | 1369 unittest.expect(o.id, unittest.equals('foo')); |
1332 unittest.expect(o.serviceName, unittest.equals('foo')); | 1370 unittest.expect(o.serviceName, unittest.equals('foo')); |
1333 } | 1371 } |
1334 buildCounterGenerateConfigReportResponse--; | 1372 buildCounterGenerateConfigReportResponse--; |
1335 } | 1373 } |
1336 | 1374 |
1337 core.int buildCounterGetIamPolicyRequest = 0; | 1375 core.int buildCounterGetIamPolicyRequest = 0; |
1338 buildGetIamPolicyRequest() { | 1376 buildGetIamPolicyRequest() { |
1339 var o = new api.GetIamPolicyRequest(); | 1377 var o = new api.GetIamPolicyRequest(); |
1340 buildCounterGetIamPolicyRequest++; | 1378 buildCounterGetIamPolicyRequest++; |
1341 if (buildCounterGetIamPolicyRequest < 3) { | 1379 if (buildCounterGetIamPolicyRequest < 3) { |
1342 } | 1380 } |
1343 buildCounterGetIamPolicyRequest--; | 1381 buildCounterGetIamPolicyRequest--; |
1344 return o; | 1382 return o; |
1345 } | 1383 } |
1346 | 1384 |
1347 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 1385 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
1348 buildCounterGetIamPolicyRequest++; | 1386 buildCounterGetIamPolicyRequest++; |
1349 if (buildCounterGetIamPolicyRequest < 3) { | 1387 if (buildCounterGetIamPolicyRequest < 3) { |
1350 } | 1388 } |
1351 buildCounterGetIamPolicyRequest--; | 1389 buildCounterGetIamPolicyRequest--; |
1352 } | 1390 } |
1353 | 1391 |
1354 buildUnnamed1037() { | 1392 buildUnnamed1057() { |
1355 var o = new core.List<api.HttpRule>(); | 1393 var o = new core.List<api.HttpRule>(); |
1356 o.add(buildHttpRule()); | 1394 o.add(buildHttpRule()); |
1357 o.add(buildHttpRule()); | 1395 o.add(buildHttpRule()); |
1358 return o; | 1396 return o; |
1359 } | 1397 } |
1360 | 1398 |
1361 checkUnnamed1037(core.List<api.HttpRule> o) { | 1399 checkUnnamed1057(core.List<api.HttpRule> o) { |
1362 unittest.expect(o, unittest.hasLength(2)); | 1400 unittest.expect(o, unittest.hasLength(2)); |
1363 checkHttpRule(o[0]); | 1401 checkHttpRule(o[0]); |
1364 checkHttpRule(o[1]); | 1402 checkHttpRule(o[1]); |
1365 } | 1403 } |
1366 | 1404 |
1367 core.int buildCounterHttp = 0; | 1405 core.int buildCounterHttp = 0; |
1368 buildHttp() { | 1406 buildHttp() { |
1369 var o = new api.Http(); | 1407 var o = new api.Http(); |
1370 buildCounterHttp++; | 1408 buildCounterHttp++; |
1371 if (buildCounterHttp < 3) { | 1409 if (buildCounterHttp < 3) { |
1372 o.rules = buildUnnamed1037(); | 1410 o.rules = buildUnnamed1057(); |
1373 } | 1411 } |
1374 buildCounterHttp--; | 1412 buildCounterHttp--; |
1375 return o; | 1413 return o; |
1376 } | 1414 } |
1377 | 1415 |
1378 checkHttp(api.Http o) { | 1416 checkHttp(api.Http o) { |
1379 buildCounterHttp++; | 1417 buildCounterHttp++; |
1380 if (buildCounterHttp < 3) { | 1418 if (buildCounterHttp < 3) { |
1381 checkUnnamed1037(o.rules); | 1419 checkUnnamed1057(o.rules); |
1382 } | 1420 } |
1383 buildCounterHttp--; | 1421 buildCounterHttp--; |
1384 } | 1422 } |
1385 | 1423 |
1386 buildUnnamed1038() { | 1424 buildUnnamed1058() { |
1387 var o = new core.List<api.HttpRule>(); | 1425 var o = new core.List<api.HttpRule>(); |
1388 o.add(buildHttpRule()); | 1426 o.add(buildHttpRule()); |
1389 o.add(buildHttpRule()); | 1427 o.add(buildHttpRule()); |
1390 return o; | 1428 return o; |
1391 } | 1429 } |
1392 | 1430 |
1393 checkUnnamed1038(core.List<api.HttpRule> o) { | 1431 checkUnnamed1058(core.List<api.HttpRule> o) { |
1394 unittest.expect(o, unittest.hasLength(2)); | 1432 unittest.expect(o, unittest.hasLength(2)); |
1395 checkHttpRule(o[0]); | 1433 checkHttpRule(o[0]); |
1396 checkHttpRule(o[1]); | 1434 checkHttpRule(o[1]); |
1397 } | 1435 } |
1398 | 1436 |
1399 core.int buildCounterHttpRule = 0; | 1437 core.int buildCounterHttpRule = 0; |
1400 buildHttpRule() { | 1438 buildHttpRule() { |
1401 var o = new api.HttpRule(); | 1439 var o = new api.HttpRule(); |
1402 buildCounterHttpRule++; | 1440 buildCounterHttpRule++; |
1403 if (buildCounterHttpRule < 3) { | 1441 if (buildCounterHttpRule < 3) { |
1404 o.additionalBindings = buildUnnamed1038(); | 1442 o.additionalBindings = buildUnnamed1058(); |
1405 o.body = "foo"; | 1443 o.body = "foo"; |
1406 o.custom = buildCustomHttpPattern(); | 1444 o.custom = buildCustomHttpPattern(); |
1407 o.delete = "foo"; | 1445 o.delete = "foo"; |
1408 o.get = "foo"; | 1446 o.get = "foo"; |
1409 o.mediaDownload = buildMediaDownload(); | 1447 o.mediaDownload = buildMediaDownload(); |
1410 o.mediaUpload = buildMediaUpload(); | 1448 o.mediaUpload = buildMediaUpload(); |
1411 o.patch = "foo"; | 1449 o.patch = "foo"; |
1412 o.post = "foo"; | 1450 o.post = "foo"; |
1413 o.put = "foo"; | 1451 o.put = "foo"; |
1414 o.responseBody = "foo"; | 1452 o.responseBody = "foo"; |
1415 o.selector = "foo"; | 1453 o.selector = "foo"; |
1416 } | 1454 } |
1417 buildCounterHttpRule--; | 1455 buildCounterHttpRule--; |
1418 return o; | 1456 return o; |
1419 } | 1457 } |
1420 | 1458 |
1421 checkHttpRule(api.HttpRule o) { | 1459 checkHttpRule(api.HttpRule o) { |
1422 buildCounterHttpRule++; | 1460 buildCounterHttpRule++; |
1423 if (buildCounterHttpRule < 3) { | 1461 if (buildCounterHttpRule < 3) { |
1424 checkUnnamed1038(o.additionalBindings); | 1462 checkUnnamed1058(o.additionalBindings); |
1425 unittest.expect(o.body, unittest.equals('foo')); | 1463 unittest.expect(o.body, unittest.equals('foo')); |
1426 checkCustomHttpPattern(o.custom); | 1464 checkCustomHttpPattern(o.custom); |
1427 unittest.expect(o.delete, unittest.equals('foo')); | 1465 unittest.expect(o.delete, unittest.equals('foo')); |
1428 unittest.expect(o.get, unittest.equals('foo')); | 1466 unittest.expect(o.get, unittest.equals('foo')); |
1429 checkMediaDownload(o.mediaDownload); | 1467 checkMediaDownload(o.mediaDownload); |
1430 checkMediaUpload(o.mediaUpload); | 1468 checkMediaUpload(o.mediaUpload); |
1431 unittest.expect(o.patch, unittest.equals('foo')); | 1469 unittest.expect(o.patch, unittest.equals('foo')); |
1432 unittest.expect(o.post, unittest.equals('foo')); | 1470 unittest.expect(o.post, unittest.equals('foo')); |
1433 unittest.expect(o.put, unittest.equals('foo')); | 1471 unittest.expect(o.put, unittest.equals('foo')); |
1434 unittest.expect(o.responseBody, unittest.equals('foo')); | 1472 unittest.expect(o.responseBody, unittest.equals('foo')); |
(...skipping 18 matching lines...) Expand all Loading... |
1453 checkLabelDescriptor(api.LabelDescriptor o) { | 1491 checkLabelDescriptor(api.LabelDescriptor o) { |
1454 buildCounterLabelDescriptor++; | 1492 buildCounterLabelDescriptor++; |
1455 if (buildCounterLabelDescriptor < 3) { | 1493 if (buildCounterLabelDescriptor < 3) { |
1456 unittest.expect(o.description, unittest.equals('foo')); | 1494 unittest.expect(o.description, unittest.equals('foo')); |
1457 unittest.expect(o.key, unittest.equals('foo')); | 1495 unittest.expect(o.key, unittest.equals('foo')); |
1458 unittest.expect(o.valueType, unittest.equals('foo')); | 1496 unittest.expect(o.valueType, unittest.equals('foo')); |
1459 } | 1497 } |
1460 buildCounterLabelDescriptor--; | 1498 buildCounterLabelDescriptor--; |
1461 } | 1499 } |
1462 | 1500 |
1463 buildUnnamed1039() { | 1501 buildUnnamed1059() { |
1464 var o = new core.List<api.Service>(); | 1502 var o = new core.List<api.Service>(); |
1465 o.add(buildService()); | 1503 o.add(buildService()); |
1466 o.add(buildService()); | 1504 o.add(buildService()); |
1467 return o; | 1505 return o; |
1468 } | 1506 } |
1469 | 1507 |
1470 checkUnnamed1039(core.List<api.Service> o) { | 1508 checkUnnamed1059(core.List<api.Service> o) { |
1471 unittest.expect(o, unittest.hasLength(2)); | 1509 unittest.expect(o, unittest.hasLength(2)); |
1472 checkService(o[0]); | 1510 checkService(o[0]); |
1473 checkService(o[1]); | 1511 checkService(o[1]); |
1474 } | 1512 } |
1475 | 1513 |
1476 core.int buildCounterListServiceConfigsResponse = 0; | 1514 core.int buildCounterListServiceConfigsResponse = 0; |
1477 buildListServiceConfigsResponse() { | 1515 buildListServiceConfigsResponse() { |
1478 var o = new api.ListServiceConfigsResponse(); | 1516 var o = new api.ListServiceConfigsResponse(); |
1479 buildCounterListServiceConfigsResponse++; | 1517 buildCounterListServiceConfigsResponse++; |
1480 if (buildCounterListServiceConfigsResponse < 3) { | 1518 if (buildCounterListServiceConfigsResponse < 3) { |
1481 o.nextPageToken = "foo"; | 1519 o.nextPageToken = "foo"; |
1482 o.serviceConfigs = buildUnnamed1039(); | 1520 o.serviceConfigs = buildUnnamed1059(); |
1483 } | 1521 } |
1484 buildCounterListServiceConfigsResponse--; | 1522 buildCounterListServiceConfigsResponse--; |
1485 return o; | 1523 return o; |
1486 } | 1524 } |
1487 | 1525 |
1488 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { | 1526 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { |
1489 buildCounterListServiceConfigsResponse++; | 1527 buildCounterListServiceConfigsResponse++; |
1490 if (buildCounterListServiceConfigsResponse < 3) { | 1528 if (buildCounterListServiceConfigsResponse < 3) { |
1491 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1529 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1492 checkUnnamed1039(o.serviceConfigs); | 1530 checkUnnamed1059(o.serviceConfigs); |
1493 } | 1531 } |
1494 buildCounterListServiceConfigsResponse--; | 1532 buildCounterListServiceConfigsResponse--; |
1495 } | 1533 } |
1496 | 1534 |
1497 buildUnnamed1040() { | 1535 buildUnnamed1060() { |
1498 var o = new core.List<api.Rollout>(); | 1536 var o = new core.List<api.Rollout>(); |
1499 o.add(buildRollout()); | 1537 o.add(buildRollout()); |
1500 o.add(buildRollout()); | 1538 o.add(buildRollout()); |
1501 return o; | 1539 return o; |
1502 } | 1540 } |
1503 | 1541 |
1504 checkUnnamed1040(core.List<api.Rollout> o) { | 1542 checkUnnamed1060(core.List<api.Rollout> o) { |
1505 unittest.expect(o, unittest.hasLength(2)); | 1543 unittest.expect(o, unittest.hasLength(2)); |
1506 checkRollout(o[0]); | 1544 checkRollout(o[0]); |
1507 checkRollout(o[1]); | 1545 checkRollout(o[1]); |
1508 } | 1546 } |
1509 | 1547 |
1510 core.int buildCounterListServiceRolloutsResponse = 0; | 1548 core.int buildCounterListServiceRolloutsResponse = 0; |
1511 buildListServiceRolloutsResponse() { | 1549 buildListServiceRolloutsResponse() { |
1512 var o = new api.ListServiceRolloutsResponse(); | 1550 var o = new api.ListServiceRolloutsResponse(); |
1513 buildCounterListServiceRolloutsResponse++; | 1551 buildCounterListServiceRolloutsResponse++; |
1514 if (buildCounterListServiceRolloutsResponse < 3) { | 1552 if (buildCounterListServiceRolloutsResponse < 3) { |
1515 o.nextPageToken = "foo"; | 1553 o.nextPageToken = "foo"; |
1516 o.rollouts = buildUnnamed1040(); | 1554 o.rollouts = buildUnnamed1060(); |
1517 } | 1555 } |
1518 buildCounterListServiceRolloutsResponse--; | 1556 buildCounterListServiceRolloutsResponse--; |
1519 return o; | 1557 return o; |
1520 } | 1558 } |
1521 | 1559 |
1522 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { | 1560 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { |
1523 buildCounterListServiceRolloutsResponse++; | 1561 buildCounterListServiceRolloutsResponse++; |
1524 if (buildCounterListServiceRolloutsResponse < 3) { | 1562 if (buildCounterListServiceRolloutsResponse < 3) { |
1525 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1563 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1526 checkUnnamed1040(o.rollouts); | 1564 checkUnnamed1060(o.rollouts); |
1527 } | 1565 } |
1528 buildCounterListServiceRolloutsResponse--; | 1566 buildCounterListServiceRolloutsResponse--; |
1529 } | 1567 } |
1530 | 1568 |
1531 buildUnnamed1041() { | 1569 buildUnnamed1061() { |
1532 var o = new core.List<api.ManagedService>(); | 1570 var o = new core.List<api.ManagedService>(); |
1533 o.add(buildManagedService()); | 1571 o.add(buildManagedService()); |
1534 o.add(buildManagedService()); | 1572 o.add(buildManagedService()); |
1535 return o; | 1573 return o; |
1536 } | 1574 } |
1537 | 1575 |
1538 checkUnnamed1041(core.List<api.ManagedService> o) { | 1576 checkUnnamed1061(core.List<api.ManagedService> o) { |
1539 unittest.expect(o, unittest.hasLength(2)); | 1577 unittest.expect(o, unittest.hasLength(2)); |
1540 checkManagedService(o[0]); | 1578 checkManagedService(o[0]); |
1541 checkManagedService(o[1]); | 1579 checkManagedService(o[1]); |
1542 } | 1580 } |
1543 | 1581 |
1544 core.int buildCounterListServicesResponse = 0; | 1582 core.int buildCounterListServicesResponse = 0; |
1545 buildListServicesResponse() { | 1583 buildListServicesResponse() { |
1546 var o = new api.ListServicesResponse(); | 1584 var o = new api.ListServicesResponse(); |
1547 buildCounterListServicesResponse++; | 1585 buildCounterListServicesResponse++; |
1548 if (buildCounterListServicesResponse < 3) { | 1586 if (buildCounterListServicesResponse < 3) { |
1549 o.nextPageToken = "foo"; | 1587 o.nextPageToken = "foo"; |
1550 o.services = buildUnnamed1041(); | 1588 o.services = buildUnnamed1061(); |
1551 } | 1589 } |
1552 buildCounterListServicesResponse--; | 1590 buildCounterListServicesResponse--; |
1553 return o; | 1591 return o; |
1554 } | 1592 } |
1555 | 1593 |
1556 checkListServicesResponse(api.ListServicesResponse o) { | 1594 checkListServicesResponse(api.ListServicesResponse o) { |
1557 buildCounterListServicesResponse++; | 1595 buildCounterListServicesResponse++; |
1558 if (buildCounterListServicesResponse < 3) { | 1596 if (buildCounterListServicesResponse < 3) { |
1559 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1597 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1560 checkUnnamed1041(o.services); | 1598 checkUnnamed1061(o.services); |
1561 } | 1599 } |
1562 buildCounterListServicesResponse--; | 1600 buildCounterListServicesResponse--; |
1563 } | 1601 } |
1564 | 1602 |
1565 core.int buildCounterLogConfig = 0; | 1603 core.int buildCounterLogConfig = 0; |
1566 buildLogConfig() { | 1604 buildLogConfig() { |
1567 var o = new api.LogConfig(); | 1605 var o = new api.LogConfig(); |
1568 buildCounterLogConfig++; | 1606 buildCounterLogConfig++; |
1569 if (buildCounterLogConfig < 3) { | 1607 if (buildCounterLogConfig < 3) { |
1570 o.cloudAudit = buildCloudAuditOptions(); | 1608 o.cloudAudit = buildCloudAuditOptions(); |
1571 o.counter = buildCounterOptions(); | 1609 o.counter = buildCounterOptions(); |
1572 o.dataAccess = buildDataAccessOptions(); | 1610 o.dataAccess = buildDataAccessOptions(); |
1573 } | 1611 } |
1574 buildCounterLogConfig--; | 1612 buildCounterLogConfig--; |
1575 return o; | 1613 return o; |
1576 } | 1614 } |
1577 | 1615 |
1578 checkLogConfig(api.LogConfig o) { | 1616 checkLogConfig(api.LogConfig o) { |
1579 buildCounterLogConfig++; | 1617 buildCounterLogConfig++; |
1580 if (buildCounterLogConfig < 3) { | 1618 if (buildCounterLogConfig < 3) { |
1581 checkCloudAuditOptions(o.cloudAudit); | 1619 checkCloudAuditOptions(o.cloudAudit); |
1582 checkCounterOptions(o.counter); | 1620 checkCounterOptions(o.counter); |
1583 checkDataAccessOptions(o.dataAccess); | 1621 checkDataAccessOptions(o.dataAccess); |
1584 } | 1622 } |
1585 buildCounterLogConfig--; | 1623 buildCounterLogConfig--; |
1586 } | 1624 } |
1587 | 1625 |
1588 buildUnnamed1042() { | 1626 buildUnnamed1062() { |
1589 var o = new core.List<api.LabelDescriptor>(); | 1627 var o = new core.List<api.LabelDescriptor>(); |
1590 o.add(buildLabelDescriptor()); | 1628 o.add(buildLabelDescriptor()); |
1591 o.add(buildLabelDescriptor()); | 1629 o.add(buildLabelDescriptor()); |
1592 return o; | 1630 return o; |
1593 } | 1631 } |
1594 | 1632 |
1595 checkUnnamed1042(core.List<api.LabelDescriptor> o) { | 1633 checkUnnamed1062(core.List<api.LabelDescriptor> o) { |
1596 unittest.expect(o, unittest.hasLength(2)); | 1634 unittest.expect(o, unittest.hasLength(2)); |
1597 checkLabelDescriptor(o[0]); | 1635 checkLabelDescriptor(o[0]); |
1598 checkLabelDescriptor(o[1]); | 1636 checkLabelDescriptor(o[1]); |
1599 } | 1637 } |
1600 | 1638 |
1601 core.int buildCounterLogDescriptor = 0; | 1639 core.int buildCounterLogDescriptor = 0; |
1602 buildLogDescriptor() { | 1640 buildLogDescriptor() { |
1603 var o = new api.LogDescriptor(); | 1641 var o = new api.LogDescriptor(); |
1604 buildCounterLogDescriptor++; | 1642 buildCounterLogDescriptor++; |
1605 if (buildCounterLogDescriptor < 3) { | 1643 if (buildCounterLogDescriptor < 3) { |
1606 o.description = "foo"; | 1644 o.description = "foo"; |
1607 o.displayName = "foo"; | 1645 o.displayName = "foo"; |
1608 o.labels = buildUnnamed1042(); | 1646 o.labels = buildUnnamed1062(); |
1609 o.name = "foo"; | 1647 o.name = "foo"; |
1610 } | 1648 } |
1611 buildCounterLogDescriptor--; | 1649 buildCounterLogDescriptor--; |
1612 return o; | 1650 return o; |
1613 } | 1651 } |
1614 | 1652 |
1615 checkLogDescriptor(api.LogDescriptor o) { | 1653 checkLogDescriptor(api.LogDescriptor o) { |
1616 buildCounterLogDescriptor++; | 1654 buildCounterLogDescriptor++; |
1617 if (buildCounterLogDescriptor < 3) { | 1655 if (buildCounterLogDescriptor < 3) { |
1618 unittest.expect(o.description, unittest.equals('foo')); | 1656 unittest.expect(o.description, unittest.equals('foo')); |
1619 unittest.expect(o.displayName, unittest.equals('foo')); | 1657 unittest.expect(o.displayName, unittest.equals('foo')); |
1620 checkUnnamed1042(o.labels); | 1658 checkUnnamed1062(o.labels); |
1621 unittest.expect(o.name, unittest.equals('foo')); | 1659 unittest.expect(o.name, unittest.equals('foo')); |
1622 } | 1660 } |
1623 buildCounterLogDescriptor--; | 1661 buildCounterLogDescriptor--; |
1624 } | 1662 } |
1625 | 1663 |
1626 buildUnnamed1043() { | 1664 buildUnnamed1063() { |
1627 var o = new core.List<api.LoggingDestination>(); | 1665 var o = new core.List<api.LoggingDestination>(); |
1628 o.add(buildLoggingDestination()); | 1666 o.add(buildLoggingDestination()); |
1629 o.add(buildLoggingDestination()); | 1667 o.add(buildLoggingDestination()); |
1630 return o; | 1668 return o; |
1631 } | 1669 } |
1632 | 1670 |
1633 checkUnnamed1043(core.List<api.LoggingDestination> o) { | 1671 checkUnnamed1063(core.List<api.LoggingDestination> o) { |
1634 unittest.expect(o, unittest.hasLength(2)); | 1672 unittest.expect(o, unittest.hasLength(2)); |
1635 checkLoggingDestination(o[0]); | 1673 checkLoggingDestination(o[0]); |
1636 checkLoggingDestination(o[1]); | 1674 checkLoggingDestination(o[1]); |
1637 } | 1675 } |
1638 | 1676 |
1639 buildUnnamed1044() { | 1677 buildUnnamed1064() { |
1640 var o = new core.List<api.LoggingDestination>(); | 1678 var o = new core.List<api.LoggingDestination>(); |
1641 o.add(buildLoggingDestination()); | 1679 o.add(buildLoggingDestination()); |
1642 o.add(buildLoggingDestination()); | 1680 o.add(buildLoggingDestination()); |
1643 return o; | 1681 return o; |
1644 } | 1682 } |
1645 | 1683 |
1646 checkUnnamed1044(core.List<api.LoggingDestination> o) { | 1684 checkUnnamed1064(core.List<api.LoggingDestination> o) { |
1647 unittest.expect(o, unittest.hasLength(2)); | 1685 unittest.expect(o, unittest.hasLength(2)); |
1648 checkLoggingDestination(o[0]); | 1686 checkLoggingDestination(o[0]); |
1649 checkLoggingDestination(o[1]); | 1687 checkLoggingDestination(o[1]); |
1650 } | 1688 } |
1651 | 1689 |
1652 core.int buildCounterLogging = 0; | 1690 core.int buildCounterLogging = 0; |
1653 buildLogging() { | 1691 buildLogging() { |
1654 var o = new api.Logging(); | 1692 var o = new api.Logging(); |
1655 buildCounterLogging++; | 1693 buildCounterLogging++; |
1656 if (buildCounterLogging < 3) { | 1694 if (buildCounterLogging < 3) { |
1657 o.consumerDestinations = buildUnnamed1043(); | 1695 o.consumerDestinations = buildUnnamed1063(); |
1658 o.producerDestinations = buildUnnamed1044(); | 1696 o.producerDestinations = buildUnnamed1064(); |
1659 } | 1697 } |
1660 buildCounterLogging--; | 1698 buildCounterLogging--; |
1661 return o; | 1699 return o; |
1662 } | 1700 } |
1663 | 1701 |
1664 checkLogging(api.Logging o) { | 1702 checkLogging(api.Logging o) { |
1665 buildCounterLogging++; | 1703 buildCounterLogging++; |
1666 if (buildCounterLogging < 3) { | 1704 if (buildCounterLogging < 3) { |
1667 checkUnnamed1043(o.consumerDestinations); | 1705 checkUnnamed1063(o.consumerDestinations); |
1668 checkUnnamed1044(o.producerDestinations); | 1706 checkUnnamed1064(o.producerDestinations); |
1669 } | 1707 } |
1670 buildCounterLogging--; | 1708 buildCounterLogging--; |
1671 } | 1709 } |
1672 | 1710 |
1673 buildUnnamed1045() { | 1711 buildUnnamed1065() { |
1674 var o = new core.List<core.String>(); | 1712 var o = new core.List<core.String>(); |
1675 o.add("foo"); | 1713 o.add("foo"); |
1676 o.add("foo"); | 1714 o.add("foo"); |
1677 return o; | 1715 return o; |
1678 } | 1716 } |
1679 | 1717 |
1680 checkUnnamed1045(core.List<core.String> o) { | 1718 checkUnnamed1065(core.List<core.String> o) { |
1681 unittest.expect(o, unittest.hasLength(2)); | 1719 unittest.expect(o, unittest.hasLength(2)); |
1682 unittest.expect(o[0], unittest.equals('foo')); | 1720 unittest.expect(o[0], unittest.equals('foo')); |
1683 unittest.expect(o[1], unittest.equals('foo')); | 1721 unittest.expect(o[1], unittest.equals('foo')); |
1684 } | 1722 } |
1685 | 1723 |
1686 core.int buildCounterLoggingDestination = 0; | 1724 core.int buildCounterLoggingDestination = 0; |
1687 buildLoggingDestination() { | 1725 buildLoggingDestination() { |
1688 var o = new api.LoggingDestination(); | 1726 var o = new api.LoggingDestination(); |
1689 buildCounterLoggingDestination++; | 1727 buildCounterLoggingDestination++; |
1690 if (buildCounterLoggingDestination < 3) { | 1728 if (buildCounterLoggingDestination < 3) { |
1691 o.logs = buildUnnamed1045(); | 1729 o.logs = buildUnnamed1065(); |
1692 o.monitoredResource = "foo"; | 1730 o.monitoredResource = "foo"; |
1693 } | 1731 } |
1694 buildCounterLoggingDestination--; | 1732 buildCounterLoggingDestination--; |
1695 return o; | 1733 return o; |
1696 } | 1734 } |
1697 | 1735 |
1698 checkLoggingDestination(api.LoggingDestination o) { | 1736 checkLoggingDestination(api.LoggingDestination o) { |
1699 buildCounterLoggingDestination++; | 1737 buildCounterLoggingDestination++; |
1700 if (buildCounterLoggingDestination < 3) { | 1738 if (buildCounterLoggingDestination < 3) { |
1701 checkUnnamed1045(o.logs); | 1739 checkUnnamed1065(o.logs); |
1702 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1740 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1703 } | 1741 } |
1704 buildCounterLoggingDestination--; | 1742 buildCounterLoggingDestination--; |
1705 } | 1743 } |
1706 | 1744 |
1707 core.int buildCounterManagedService = 0; | 1745 core.int buildCounterManagedService = 0; |
1708 buildManagedService() { | 1746 buildManagedService() { |
1709 var o = new api.ManagedService(); | 1747 var o = new api.ManagedService(); |
1710 buildCounterManagedService++; | 1748 buildCounterManagedService++; |
1711 if (buildCounterManagedService < 3) { | 1749 if (buildCounterManagedService < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
1723 unittest.expect(o.serviceName, unittest.equals('foo')); | 1761 unittest.expect(o.serviceName, unittest.equals('foo')); |
1724 } | 1762 } |
1725 buildCounterManagedService--; | 1763 buildCounterManagedService--; |
1726 } | 1764 } |
1727 | 1765 |
1728 core.int buildCounterMediaDownload = 0; | 1766 core.int buildCounterMediaDownload = 0; |
1729 buildMediaDownload() { | 1767 buildMediaDownload() { |
1730 var o = new api.MediaDownload(); | 1768 var o = new api.MediaDownload(); |
1731 buildCounterMediaDownload++; | 1769 buildCounterMediaDownload++; |
1732 if (buildCounterMediaDownload < 3) { | 1770 if (buildCounterMediaDownload < 3) { |
| 1771 o.downloadService = "foo"; |
1733 o.enabled = true; | 1772 o.enabled = true; |
1734 } | 1773 } |
1735 buildCounterMediaDownload--; | 1774 buildCounterMediaDownload--; |
1736 return o; | 1775 return o; |
1737 } | 1776 } |
1738 | 1777 |
1739 checkMediaDownload(api.MediaDownload o) { | 1778 checkMediaDownload(api.MediaDownload o) { |
1740 buildCounterMediaDownload++; | 1779 buildCounterMediaDownload++; |
1741 if (buildCounterMediaDownload < 3) { | 1780 if (buildCounterMediaDownload < 3) { |
| 1781 unittest.expect(o.downloadService, unittest.equals('foo')); |
1742 unittest.expect(o.enabled, unittest.isTrue); | 1782 unittest.expect(o.enabled, unittest.isTrue); |
1743 } | 1783 } |
1744 buildCounterMediaDownload--; | 1784 buildCounterMediaDownload--; |
1745 } | 1785 } |
1746 | 1786 |
1747 core.int buildCounterMediaUpload = 0; | 1787 core.int buildCounterMediaUpload = 0; |
1748 buildMediaUpload() { | 1788 buildMediaUpload() { |
1749 var o = new api.MediaUpload(); | 1789 var o = new api.MediaUpload(); |
1750 buildCounterMediaUpload++; | 1790 buildCounterMediaUpload++; |
1751 if (buildCounterMediaUpload < 3) { | 1791 if (buildCounterMediaUpload < 3) { |
1752 o.enabled = true; | 1792 o.enabled = true; |
| 1793 o.uploadService = "foo"; |
1753 } | 1794 } |
1754 buildCounterMediaUpload--; | 1795 buildCounterMediaUpload--; |
1755 return o; | 1796 return o; |
1756 } | 1797 } |
1757 | 1798 |
1758 checkMediaUpload(api.MediaUpload o) { | 1799 checkMediaUpload(api.MediaUpload o) { |
1759 buildCounterMediaUpload++; | 1800 buildCounterMediaUpload++; |
1760 if (buildCounterMediaUpload < 3) { | 1801 if (buildCounterMediaUpload < 3) { |
1761 unittest.expect(o.enabled, unittest.isTrue); | 1802 unittest.expect(o.enabled, unittest.isTrue); |
| 1803 unittest.expect(o.uploadService, unittest.equals('foo')); |
1762 } | 1804 } |
1763 buildCounterMediaUpload--; | 1805 buildCounterMediaUpload--; |
1764 } | 1806 } |
1765 | 1807 |
1766 buildUnnamed1046() { | 1808 buildUnnamed1066() { |
1767 var o = new core.List<api.Option>(); | 1809 var o = new core.List<api.Option>(); |
1768 o.add(buildOption()); | 1810 o.add(buildOption()); |
1769 o.add(buildOption()); | 1811 o.add(buildOption()); |
1770 return o; | 1812 return o; |
1771 } | 1813 } |
1772 | 1814 |
1773 checkUnnamed1046(core.List<api.Option> o) { | 1815 checkUnnamed1066(core.List<api.Option> o) { |
1774 unittest.expect(o, unittest.hasLength(2)); | 1816 unittest.expect(o, unittest.hasLength(2)); |
1775 checkOption(o[0]); | 1817 checkOption(o[0]); |
1776 checkOption(o[1]); | 1818 checkOption(o[1]); |
1777 } | 1819 } |
1778 | 1820 |
1779 core.int buildCounterMethod = 0; | 1821 core.int buildCounterMethod = 0; |
1780 buildMethod() { | 1822 buildMethod() { |
1781 var o = new api.Method(); | 1823 var o = new api.Method(); |
1782 buildCounterMethod++; | 1824 buildCounterMethod++; |
1783 if (buildCounterMethod < 3) { | 1825 if (buildCounterMethod < 3) { |
1784 o.name = "foo"; | 1826 o.name = "foo"; |
1785 o.options = buildUnnamed1046(); | 1827 o.options = buildUnnamed1066(); |
1786 o.requestStreaming = true; | 1828 o.requestStreaming = true; |
1787 o.requestTypeUrl = "foo"; | 1829 o.requestTypeUrl = "foo"; |
1788 o.responseStreaming = true; | 1830 o.responseStreaming = true; |
1789 o.responseTypeUrl = "foo"; | 1831 o.responseTypeUrl = "foo"; |
1790 o.syntax = "foo"; | 1832 o.syntax = "foo"; |
1791 } | 1833 } |
1792 buildCounterMethod--; | 1834 buildCounterMethod--; |
1793 return o; | 1835 return o; |
1794 } | 1836 } |
1795 | 1837 |
1796 checkMethod(api.Method o) { | 1838 checkMethod(api.Method o) { |
1797 buildCounterMethod++; | 1839 buildCounterMethod++; |
1798 if (buildCounterMethod < 3) { | 1840 if (buildCounterMethod < 3) { |
1799 unittest.expect(o.name, unittest.equals('foo')); | 1841 unittest.expect(o.name, unittest.equals('foo')); |
1800 checkUnnamed1046(o.options); | 1842 checkUnnamed1066(o.options); |
1801 unittest.expect(o.requestStreaming, unittest.isTrue); | 1843 unittest.expect(o.requestStreaming, unittest.isTrue); |
1802 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1844 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
1803 unittest.expect(o.responseStreaming, unittest.isTrue); | 1845 unittest.expect(o.responseStreaming, unittest.isTrue); |
1804 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1846 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
1805 unittest.expect(o.syntax, unittest.equals('foo')); | 1847 unittest.expect(o.syntax, unittest.equals('foo')); |
1806 } | 1848 } |
1807 buildCounterMethod--; | 1849 buildCounterMethod--; |
1808 } | 1850 } |
1809 | 1851 |
1810 buildUnnamed1047() { | 1852 buildUnnamed1067() { |
1811 var o = new core.List<api.LabelDescriptor>(); | 1853 var o = new core.List<api.LabelDescriptor>(); |
1812 o.add(buildLabelDescriptor()); | 1854 o.add(buildLabelDescriptor()); |
1813 o.add(buildLabelDescriptor()); | 1855 o.add(buildLabelDescriptor()); |
1814 return o; | 1856 return o; |
1815 } | 1857 } |
1816 | 1858 |
1817 checkUnnamed1047(core.List<api.LabelDescriptor> o) { | 1859 checkUnnamed1067(core.List<api.LabelDescriptor> o) { |
1818 unittest.expect(o, unittest.hasLength(2)); | 1860 unittest.expect(o, unittest.hasLength(2)); |
1819 checkLabelDescriptor(o[0]); | 1861 checkLabelDescriptor(o[0]); |
1820 checkLabelDescriptor(o[1]); | 1862 checkLabelDescriptor(o[1]); |
1821 } | 1863 } |
1822 | 1864 |
1823 core.int buildCounterMetricDescriptor = 0; | 1865 core.int buildCounterMetricDescriptor = 0; |
1824 buildMetricDescriptor() { | 1866 buildMetricDescriptor() { |
1825 var o = new api.MetricDescriptor(); | 1867 var o = new api.MetricDescriptor(); |
1826 buildCounterMetricDescriptor++; | 1868 buildCounterMetricDescriptor++; |
1827 if (buildCounterMetricDescriptor < 3) { | 1869 if (buildCounterMetricDescriptor < 3) { |
1828 o.description = "foo"; | 1870 o.description = "foo"; |
1829 o.displayName = "foo"; | 1871 o.displayName = "foo"; |
1830 o.labels = buildUnnamed1047(); | 1872 o.labels = buildUnnamed1067(); |
1831 o.metricKind = "foo"; | 1873 o.metricKind = "foo"; |
1832 o.name = "foo"; | 1874 o.name = "foo"; |
1833 o.type = "foo"; | 1875 o.type = "foo"; |
1834 o.unit = "foo"; | 1876 o.unit = "foo"; |
1835 o.valueType = "foo"; | 1877 o.valueType = "foo"; |
1836 } | 1878 } |
1837 buildCounterMetricDescriptor--; | 1879 buildCounterMetricDescriptor--; |
1838 return o; | 1880 return o; |
1839 } | 1881 } |
1840 | 1882 |
1841 checkMetricDescriptor(api.MetricDescriptor o) { | 1883 checkMetricDescriptor(api.MetricDescriptor o) { |
1842 buildCounterMetricDescriptor++; | 1884 buildCounterMetricDescriptor++; |
1843 if (buildCounterMetricDescriptor < 3) { | 1885 if (buildCounterMetricDescriptor < 3) { |
1844 unittest.expect(o.description, unittest.equals('foo')); | 1886 unittest.expect(o.description, unittest.equals('foo')); |
1845 unittest.expect(o.displayName, unittest.equals('foo')); | 1887 unittest.expect(o.displayName, unittest.equals('foo')); |
1846 checkUnnamed1047(o.labels); | 1888 checkUnnamed1067(o.labels); |
1847 unittest.expect(o.metricKind, unittest.equals('foo')); | 1889 unittest.expect(o.metricKind, unittest.equals('foo')); |
1848 unittest.expect(o.name, unittest.equals('foo')); | 1890 unittest.expect(o.name, unittest.equals('foo')); |
1849 unittest.expect(o.type, unittest.equals('foo')); | 1891 unittest.expect(o.type, unittest.equals('foo')); |
1850 unittest.expect(o.unit, unittest.equals('foo')); | 1892 unittest.expect(o.unit, unittest.equals('foo')); |
1851 unittest.expect(o.valueType, unittest.equals('foo')); | 1893 unittest.expect(o.valueType, unittest.equals('foo')); |
1852 } | 1894 } |
1853 buildCounterMetricDescriptor--; | 1895 buildCounterMetricDescriptor--; |
1854 } | 1896 } |
1855 | 1897 |
1856 core.int buildCounterMixin = 0; | 1898 core.int buildCounterMixin = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
1867 | 1909 |
1868 checkMixin(api.Mixin o) { | 1910 checkMixin(api.Mixin o) { |
1869 buildCounterMixin++; | 1911 buildCounterMixin++; |
1870 if (buildCounterMixin < 3) { | 1912 if (buildCounterMixin < 3) { |
1871 unittest.expect(o.name, unittest.equals('foo')); | 1913 unittest.expect(o.name, unittest.equals('foo')); |
1872 unittest.expect(o.root, unittest.equals('foo')); | 1914 unittest.expect(o.root, unittest.equals('foo')); |
1873 } | 1915 } |
1874 buildCounterMixin--; | 1916 buildCounterMixin--; |
1875 } | 1917 } |
1876 | 1918 |
1877 buildUnnamed1048() { | 1919 buildUnnamed1068() { |
1878 var o = new core.List<api.LabelDescriptor>(); | 1920 var o = new core.List<api.LabelDescriptor>(); |
1879 o.add(buildLabelDescriptor()); | 1921 o.add(buildLabelDescriptor()); |
1880 o.add(buildLabelDescriptor()); | 1922 o.add(buildLabelDescriptor()); |
1881 return o; | 1923 return o; |
1882 } | 1924 } |
1883 | 1925 |
1884 checkUnnamed1048(core.List<api.LabelDescriptor> o) { | 1926 checkUnnamed1068(core.List<api.LabelDescriptor> o) { |
1885 unittest.expect(o, unittest.hasLength(2)); | 1927 unittest.expect(o, unittest.hasLength(2)); |
1886 checkLabelDescriptor(o[0]); | 1928 checkLabelDescriptor(o[0]); |
1887 checkLabelDescriptor(o[1]); | 1929 checkLabelDescriptor(o[1]); |
1888 } | 1930 } |
1889 | 1931 |
1890 core.int buildCounterMonitoredResourceDescriptor = 0; | 1932 core.int buildCounterMonitoredResourceDescriptor = 0; |
1891 buildMonitoredResourceDescriptor() { | 1933 buildMonitoredResourceDescriptor() { |
1892 var o = new api.MonitoredResourceDescriptor(); | 1934 var o = new api.MonitoredResourceDescriptor(); |
1893 buildCounterMonitoredResourceDescriptor++; | 1935 buildCounterMonitoredResourceDescriptor++; |
1894 if (buildCounterMonitoredResourceDescriptor < 3) { | 1936 if (buildCounterMonitoredResourceDescriptor < 3) { |
1895 o.description = "foo"; | 1937 o.description = "foo"; |
1896 o.displayName = "foo"; | 1938 o.displayName = "foo"; |
1897 o.labels = buildUnnamed1048(); | 1939 o.labels = buildUnnamed1068(); |
1898 o.name = "foo"; | 1940 o.name = "foo"; |
1899 o.type = "foo"; | 1941 o.type = "foo"; |
1900 } | 1942 } |
1901 buildCounterMonitoredResourceDescriptor--; | 1943 buildCounterMonitoredResourceDescriptor--; |
1902 return o; | 1944 return o; |
1903 } | 1945 } |
1904 | 1946 |
1905 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 1947 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
1906 buildCounterMonitoredResourceDescriptor++; | 1948 buildCounterMonitoredResourceDescriptor++; |
1907 if (buildCounterMonitoredResourceDescriptor < 3) { | 1949 if (buildCounterMonitoredResourceDescriptor < 3) { |
1908 unittest.expect(o.description, unittest.equals('foo')); | 1950 unittest.expect(o.description, unittest.equals('foo')); |
1909 unittest.expect(o.displayName, unittest.equals('foo')); | 1951 unittest.expect(o.displayName, unittest.equals('foo')); |
1910 checkUnnamed1048(o.labels); | 1952 checkUnnamed1068(o.labels); |
1911 unittest.expect(o.name, unittest.equals('foo')); | 1953 unittest.expect(o.name, unittest.equals('foo')); |
1912 unittest.expect(o.type, unittest.equals('foo')); | 1954 unittest.expect(o.type, unittest.equals('foo')); |
1913 } | 1955 } |
1914 buildCounterMonitoredResourceDescriptor--; | 1956 buildCounterMonitoredResourceDescriptor--; |
1915 } | 1957 } |
1916 | 1958 |
1917 buildUnnamed1049() { | 1959 buildUnnamed1069() { |
1918 var o = new core.List<api.MonitoringDestination>(); | 1960 var o = new core.List<api.MonitoringDestination>(); |
1919 o.add(buildMonitoringDestination()); | 1961 o.add(buildMonitoringDestination()); |
1920 o.add(buildMonitoringDestination()); | 1962 o.add(buildMonitoringDestination()); |
1921 return o; | 1963 return o; |
1922 } | 1964 } |
1923 | 1965 |
1924 checkUnnamed1049(core.List<api.MonitoringDestination> o) { | 1966 checkUnnamed1069(core.List<api.MonitoringDestination> o) { |
1925 unittest.expect(o, unittest.hasLength(2)); | 1967 unittest.expect(o, unittest.hasLength(2)); |
1926 checkMonitoringDestination(o[0]); | 1968 checkMonitoringDestination(o[0]); |
1927 checkMonitoringDestination(o[1]); | 1969 checkMonitoringDestination(o[1]); |
1928 } | 1970 } |
1929 | 1971 |
1930 buildUnnamed1050() { | 1972 buildUnnamed1070() { |
1931 var o = new core.List<api.MonitoringDestination>(); | 1973 var o = new core.List<api.MonitoringDestination>(); |
1932 o.add(buildMonitoringDestination()); | 1974 o.add(buildMonitoringDestination()); |
1933 o.add(buildMonitoringDestination()); | 1975 o.add(buildMonitoringDestination()); |
1934 return o; | 1976 return o; |
1935 } | 1977 } |
1936 | 1978 |
1937 checkUnnamed1050(core.List<api.MonitoringDestination> o) { | 1979 checkUnnamed1070(core.List<api.MonitoringDestination> o) { |
1938 unittest.expect(o, unittest.hasLength(2)); | 1980 unittest.expect(o, unittest.hasLength(2)); |
1939 checkMonitoringDestination(o[0]); | 1981 checkMonitoringDestination(o[0]); |
1940 checkMonitoringDestination(o[1]); | 1982 checkMonitoringDestination(o[1]); |
1941 } | 1983 } |
1942 | 1984 |
1943 core.int buildCounterMonitoring = 0; | 1985 core.int buildCounterMonitoring = 0; |
1944 buildMonitoring() { | 1986 buildMonitoring() { |
1945 var o = new api.Monitoring(); | 1987 var o = new api.Monitoring(); |
1946 buildCounterMonitoring++; | 1988 buildCounterMonitoring++; |
1947 if (buildCounterMonitoring < 3) { | 1989 if (buildCounterMonitoring < 3) { |
1948 o.consumerDestinations = buildUnnamed1049(); | 1990 o.consumerDestinations = buildUnnamed1069(); |
1949 o.producerDestinations = buildUnnamed1050(); | 1991 o.producerDestinations = buildUnnamed1070(); |
1950 } | 1992 } |
1951 buildCounterMonitoring--; | 1993 buildCounterMonitoring--; |
1952 return o; | 1994 return o; |
1953 } | 1995 } |
1954 | 1996 |
1955 checkMonitoring(api.Monitoring o) { | 1997 checkMonitoring(api.Monitoring o) { |
1956 buildCounterMonitoring++; | 1998 buildCounterMonitoring++; |
1957 if (buildCounterMonitoring < 3) { | 1999 if (buildCounterMonitoring < 3) { |
1958 checkUnnamed1049(o.consumerDestinations); | 2000 checkUnnamed1069(o.consumerDestinations); |
1959 checkUnnamed1050(o.producerDestinations); | 2001 checkUnnamed1070(o.producerDestinations); |
1960 } | 2002 } |
1961 buildCounterMonitoring--; | 2003 buildCounterMonitoring--; |
1962 } | 2004 } |
1963 | 2005 |
1964 buildUnnamed1051() { | 2006 buildUnnamed1071() { |
1965 var o = new core.List<core.String>(); | 2007 var o = new core.List<core.String>(); |
1966 o.add("foo"); | 2008 o.add("foo"); |
1967 o.add("foo"); | 2009 o.add("foo"); |
1968 return o; | 2010 return o; |
1969 } | 2011 } |
1970 | 2012 |
1971 checkUnnamed1051(core.List<core.String> o) { | 2013 checkUnnamed1071(core.List<core.String> o) { |
1972 unittest.expect(o, unittest.hasLength(2)); | 2014 unittest.expect(o, unittest.hasLength(2)); |
1973 unittest.expect(o[0], unittest.equals('foo')); | 2015 unittest.expect(o[0], unittest.equals('foo')); |
1974 unittest.expect(o[1], unittest.equals('foo')); | 2016 unittest.expect(o[1], unittest.equals('foo')); |
1975 } | 2017 } |
1976 | 2018 |
1977 core.int buildCounterMonitoringDestination = 0; | 2019 core.int buildCounterMonitoringDestination = 0; |
1978 buildMonitoringDestination() { | 2020 buildMonitoringDestination() { |
1979 var o = new api.MonitoringDestination(); | 2021 var o = new api.MonitoringDestination(); |
1980 buildCounterMonitoringDestination++; | 2022 buildCounterMonitoringDestination++; |
1981 if (buildCounterMonitoringDestination < 3) { | 2023 if (buildCounterMonitoringDestination < 3) { |
1982 o.metrics = buildUnnamed1051(); | 2024 o.metrics = buildUnnamed1071(); |
1983 o.monitoredResource = "foo"; | 2025 o.monitoredResource = "foo"; |
1984 } | 2026 } |
1985 buildCounterMonitoringDestination--; | 2027 buildCounterMonitoringDestination--; |
1986 return o; | 2028 return o; |
1987 } | 2029 } |
1988 | 2030 |
1989 checkMonitoringDestination(api.MonitoringDestination o) { | 2031 checkMonitoringDestination(api.MonitoringDestination o) { |
1990 buildCounterMonitoringDestination++; | 2032 buildCounterMonitoringDestination++; |
1991 if (buildCounterMonitoringDestination < 3) { | 2033 if (buildCounterMonitoringDestination < 3) { |
1992 checkUnnamed1051(o.metrics); | 2034 checkUnnamed1071(o.metrics); |
1993 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 2035 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1994 } | 2036 } |
1995 buildCounterMonitoringDestination--; | 2037 buildCounterMonitoringDestination--; |
1996 } | 2038 } |
1997 | 2039 |
1998 core.int buildCounterOAuthRequirements = 0; | 2040 core.int buildCounterOAuthRequirements = 0; |
1999 buildOAuthRequirements() { | 2041 buildOAuthRequirements() { |
2000 var o = new api.OAuthRequirements(); | 2042 var o = new api.OAuthRequirements(); |
2001 buildCounterOAuthRequirements++; | 2043 buildCounterOAuthRequirements++; |
2002 if (buildCounterOAuthRequirements < 3) { | 2044 if (buildCounterOAuthRequirements < 3) { |
2003 o.canonicalScopes = "foo"; | 2045 o.canonicalScopes = "foo"; |
2004 } | 2046 } |
2005 buildCounterOAuthRequirements--; | 2047 buildCounterOAuthRequirements--; |
2006 return o; | 2048 return o; |
2007 } | 2049 } |
2008 | 2050 |
2009 checkOAuthRequirements(api.OAuthRequirements o) { | 2051 checkOAuthRequirements(api.OAuthRequirements o) { |
2010 buildCounterOAuthRequirements++; | 2052 buildCounterOAuthRequirements++; |
2011 if (buildCounterOAuthRequirements < 3) { | 2053 if (buildCounterOAuthRequirements < 3) { |
2012 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 2054 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
2013 } | 2055 } |
2014 buildCounterOAuthRequirements--; | 2056 buildCounterOAuthRequirements--; |
2015 } | 2057 } |
2016 | 2058 |
2017 buildUnnamed1052() { | 2059 buildUnnamed1072() { |
2018 var o = new core.Map<core.String, core.Object>(); | 2060 var o = new core.Map<core.String, core.Object>(); |
2019 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2061 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2020 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2062 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2021 return o; | 2063 return o; |
2022 } | 2064 } |
2023 | 2065 |
2024 checkUnnamed1052(core.Map<core.String, core.Object> o) { | 2066 checkUnnamed1072(core.Map<core.String, core.Object> o) { |
2025 unittest.expect(o, unittest.hasLength(2)); | 2067 unittest.expect(o, unittest.hasLength(2)); |
2026 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')); | 2068 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')); |
2027 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')); | 2069 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')); |
2028 } | 2070 } |
2029 | 2071 |
2030 buildUnnamed1053() { | 2072 buildUnnamed1073() { |
2031 var o = new core.Map<core.String, core.Object>(); | 2073 var o = new core.Map<core.String, core.Object>(); |
2032 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2074 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2033 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2075 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2034 return o; | 2076 return o; |
2035 } | 2077 } |
2036 | 2078 |
2037 checkUnnamed1053(core.Map<core.String, core.Object> o) { | 2079 checkUnnamed1073(core.Map<core.String, core.Object> o) { |
2038 unittest.expect(o, unittest.hasLength(2)); | 2080 unittest.expect(o, unittest.hasLength(2)); |
2039 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')); | 2081 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')); |
2040 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')); | 2082 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')); |
2041 } | 2083 } |
2042 | 2084 |
2043 core.int buildCounterOperation = 0; | 2085 core.int buildCounterOperation = 0; |
2044 buildOperation() { | 2086 buildOperation() { |
2045 var o = new api.Operation(); | 2087 var o = new api.Operation(); |
2046 buildCounterOperation++; | 2088 buildCounterOperation++; |
2047 if (buildCounterOperation < 3) { | 2089 if (buildCounterOperation < 3) { |
2048 o.done = true; | 2090 o.done = true; |
2049 o.error = buildStatus(); | 2091 o.error = buildStatus(); |
2050 o.metadata = buildUnnamed1052(); | 2092 o.metadata = buildUnnamed1072(); |
2051 o.name = "foo"; | 2093 o.name = "foo"; |
2052 o.response = buildUnnamed1053(); | 2094 o.response = buildUnnamed1073(); |
2053 } | 2095 } |
2054 buildCounterOperation--; | 2096 buildCounterOperation--; |
2055 return o; | 2097 return o; |
2056 } | 2098 } |
2057 | 2099 |
2058 checkOperation(api.Operation o) { | 2100 checkOperation(api.Operation o) { |
2059 buildCounterOperation++; | 2101 buildCounterOperation++; |
2060 if (buildCounterOperation < 3) { | 2102 if (buildCounterOperation < 3) { |
2061 unittest.expect(o.done, unittest.isTrue); | 2103 unittest.expect(o.done, unittest.isTrue); |
2062 checkStatus(o.error); | 2104 checkStatus(o.error); |
2063 checkUnnamed1052(o.metadata); | 2105 checkUnnamed1072(o.metadata); |
2064 unittest.expect(o.name, unittest.equals('foo')); | 2106 unittest.expect(o.name, unittest.equals('foo')); |
2065 checkUnnamed1053(o.response); | 2107 checkUnnamed1073(o.response); |
2066 } | 2108 } |
2067 buildCounterOperation--; | 2109 buildCounterOperation--; |
2068 } | 2110 } |
2069 | 2111 |
2070 buildUnnamed1054() { | 2112 buildUnnamed1074() { |
2071 var o = new core.List<core.String>(); | 2113 var o = new core.List<core.String>(); |
2072 o.add("foo"); | 2114 o.add("foo"); |
2073 o.add("foo"); | 2115 o.add("foo"); |
2074 return o; | 2116 return o; |
2075 } | 2117 } |
2076 | 2118 |
2077 checkUnnamed1054(core.List<core.String> o) { | 2119 checkUnnamed1074(core.List<core.String> o) { |
2078 unittest.expect(o, unittest.hasLength(2)); | 2120 unittest.expect(o, unittest.hasLength(2)); |
2079 unittest.expect(o[0], unittest.equals('foo')); | 2121 unittest.expect(o[0], unittest.equals('foo')); |
2080 unittest.expect(o[1], unittest.equals('foo')); | 2122 unittest.expect(o[1], unittest.equals('foo')); |
2081 } | 2123 } |
2082 | 2124 |
2083 buildUnnamed1055() { | 2125 buildUnnamed1075() { |
2084 var o = new core.List<api.Step>(); | 2126 var o = new core.List<api.Step>(); |
2085 o.add(buildStep()); | 2127 o.add(buildStep()); |
2086 o.add(buildStep()); | 2128 o.add(buildStep()); |
2087 return o; | 2129 return o; |
2088 } | 2130 } |
2089 | 2131 |
2090 checkUnnamed1055(core.List<api.Step> o) { | 2132 checkUnnamed1075(core.List<api.Step> o) { |
2091 unittest.expect(o, unittest.hasLength(2)); | 2133 unittest.expect(o, unittest.hasLength(2)); |
2092 checkStep(o[0]); | 2134 checkStep(o[0]); |
2093 checkStep(o[1]); | 2135 checkStep(o[1]); |
2094 } | 2136 } |
2095 | 2137 |
2096 core.int buildCounterOperationMetadata = 0; | 2138 core.int buildCounterOperationMetadata = 0; |
2097 buildOperationMetadata() { | 2139 buildOperationMetadata() { |
2098 var o = new api.OperationMetadata(); | 2140 var o = new api.OperationMetadata(); |
2099 buildCounterOperationMetadata++; | 2141 buildCounterOperationMetadata++; |
2100 if (buildCounterOperationMetadata < 3) { | 2142 if (buildCounterOperationMetadata < 3) { |
2101 o.progressPercentage = 42; | 2143 o.progressPercentage = 42; |
2102 o.resourceNames = buildUnnamed1054(); | 2144 o.resourceNames = buildUnnamed1074(); |
2103 o.startTime = "foo"; | 2145 o.startTime = "foo"; |
2104 o.steps = buildUnnamed1055(); | 2146 o.steps = buildUnnamed1075(); |
2105 } | 2147 } |
2106 buildCounterOperationMetadata--; | 2148 buildCounterOperationMetadata--; |
2107 return o; | 2149 return o; |
2108 } | 2150 } |
2109 | 2151 |
2110 checkOperationMetadata(api.OperationMetadata o) { | 2152 checkOperationMetadata(api.OperationMetadata o) { |
2111 buildCounterOperationMetadata++; | 2153 buildCounterOperationMetadata++; |
2112 if (buildCounterOperationMetadata < 3) { | 2154 if (buildCounterOperationMetadata < 3) { |
2113 unittest.expect(o.progressPercentage, unittest.equals(42)); | 2155 unittest.expect(o.progressPercentage, unittest.equals(42)); |
2114 checkUnnamed1054(o.resourceNames); | 2156 checkUnnamed1074(o.resourceNames); |
2115 unittest.expect(o.startTime, unittest.equals('foo')); | 2157 unittest.expect(o.startTime, unittest.equals('foo')); |
2116 checkUnnamed1055(o.steps); | 2158 checkUnnamed1075(o.steps); |
2117 } | 2159 } |
2118 buildCounterOperationMetadata--; | 2160 buildCounterOperationMetadata--; |
2119 } | 2161 } |
2120 | 2162 |
2121 buildUnnamed1056() { | 2163 buildUnnamed1076() { |
2122 var o = new core.Map<core.String, core.Object>(); | 2164 var o = new core.Map<core.String, core.Object>(); |
2123 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2165 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2124 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2166 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2125 return o; | 2167 return o; |
2126 } | 2168 } |
2127 | 2169 |
2128 checkUnnamed1056(core.Map<core.String, core.Object> o) { | 2170 checkUnnamed1076(core.Map<core.String, core.Object> o) { |
2129 unittest.expect(o, unittest.hasLength(2)); | 2171 unittest.expect(o, unittest.hasLength(2)); |
2130 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')); | 2172 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')); |
2131 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')); | 2173 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')); |
2132 } | 2174 } |
2133 | 2175 |
2134 core.int buildCounterOption = 0; | 2176 core.int buildCounterOption = 0; |
2135 buildOption() { | 2177 buildOption() { |
2136 var o = new api.Option(); | 2178 var o = new api.Option(); |
2137 buildCounterOption++; | 2179 buildCounterOption++; |
2138 if (buildCounterOption < 3) { | 2180 if (buildCounterOption < 3) { |
2139 o.name = "foo"; | 2181 o.name = "foo"; |
2140 o.value = buildUnnamed1056(); | 2182 o.value = buildUnnamed1076(); |
2141 } | 2183 } |
2142 buildCounterOption--; | 2184 buildCounterOption--; |
2143 return o; | 2185 return o; |
2144 } | 2186 } |
2145 | 2187 |
2146 checkOption(api.Option o) { | 2188 checkOption(api.Option o) { |
2147 buildCounterOption++; | 2189 buildCounterOption++; |
2148 if (buildCounterOption < 3) { | 2190 if (buildCounterOption < 3) { |
2149 unittest.expect(o.name, unittest.equals('foo')); | 2191 unittest.expect(o.name, unittest.equals('foo')); |
2150 checkUnnamed1056(o.value); | 2192 checkUnnamed1076(o.value); |
2151 } | 2193 } |
2152 buildCounterOption--; | 2194 buildCounterOption--; |
2153 } | 2195 } |
2154 | 2196 |
2155 buildUnnamed1057() { | 2197 buildUnnamed1077() { |
2156 var o = new core.List<api.Page>(); | 2198 var o = new core.List<api.Page>(); |
2157 o.add(buildPage()); | 2199 o.add(buildPage()); |
2158 o.add(buildPage()); | 2200 o.add(buildPage()); |
2159 return o; | 2201 return o; |
2160 } | 2202 } |
2161 | 2203 |
2162 checkUnnamed1057(core.List<api.Page> o) { | 2204 checkUnnamed1077(core.List<api.Page> o) { |
2163 unittest.expect(o, unittest.hasLength(2)); | 2205 unittest.expect(o, unittest.hasLength(2)); |
2164 checkPage(o[0]); | 2206 checkPage(o[0]); |
2165 checkPage(o[1]); | 2207 checkPage(o[1]); |
2166 } | 2208 } |
2167 | 2209 |
2168 core.int buildCounterPage = 0; | 2210 core.int buildCounterPage = 0; |
2169 buildPage() { | 2211 buildPage() { |
2170 var o = new api.Page(); | 2212 var o = new api.Page(); |
2171 buildCounterPage++; | 2213 buildCounterPage++; |
2172 if (buildCounterPage < 3) { | 2214 if (buildCounterPage < 3) { |
2173 o.content = "foo"; | 2215 o.content = "foo"; |
2174 o.name = "foo"; | 2216 o.name = "foo"; |
2175 o.subpages = buildUnnamed1057(); | 2217 o.subpages = buildUnnamed1077(); |
2176 } | 2218 } |
2177 buildCounterPage--; | 2219 buildCounterPage--; |
2178 return o; | 2220 return o; |
2179 } | 2221 } |
2180 | 2222 |
2181 checkPage(api.Page o) { | 2223 checkPage(api.Page o) { |
2182 buildCounterPage++; | 2224 buildCounterPage++; |
2183 if (buildCounterPage < 3) { | 2225 if (buildCounterPage < 3) { |
2184 unittest.expect(o.content, unittest.equals('foo')); | 2226 unittest.expect(o.content, unittest.equals('foo')); |
2185 unittest.expect(o.name, unittest.equals('foo')); | 2227 unittest.expect(o.name, unittest.equals('foo')); |
2186 checkUnnamed1057(o.subpages); | 2228 checkUnnamed1077(o.subpages); |
2187 } | 2229 } |
2188 buildCounterPage--; | 2230 buildCounterPage--; |
2189 } | 2231 } |
2190 | 2232 |
2191 buildUnnamed1058() { | 2233 buildUnnamed1078() { |
2192 var o = new core.List<api.AuditConfig>(); | 2234 var o = new core.List<api.AuditConfig>(); |
2193 o.add(buildAuditConfig()); | 2235 o.add(buildAuditConfig()); |
2194 o.add(buildAuditConfig()); | 2236 o.add(buildAuditConfig()); |
2195 return o; | 2237 return o; |
2196 } | 2238 } |
2197 | 2239 |
2198 checkUnnamed1058(core.List<api.AuditConfig> o) { | 2240 checkUnnamed1078(core.List<api.AuditConfig> o) { |
2199 unittest.expect(o, unittest.hasLength(2)); | 2241 unittest.expect(o, unittest.hasLength(2)); |
2200 checkAuditConfig(o[0]); | 2242 checkAuditConfig(o[0]); |
2201 checkAuditConfig(o[1]); | 2243 checkAuditConfig(o[1]); |
2202 } | 2244 } |
2203 | 2245 |
2204 buildUnnamed1059() { | 2246 buildUnnamed1079() { |
2205 var o = new core.List<api.Binding>(); | 2247 var o = new core.List<api.Binding>(); |
2206 o.add(buildBinding()); | 2248 o.add(buildBinding()); |
2207 o.add(buildBinding()); | 2249 o.add(buildBinding()); |
2208 return o; | 2250 return o; |
2209 } | 2251 } |
2210 | 2252 |
2211 checkUnnamed1059(core.List<api.Binding> o) { | 2253 checkUnnamed1079(core.List<api.Binding> o) { |
2212 unittest.expect(o, unittest.hasLength(2)); | 2254 unittest.expect(o, unittest.hasLength(2)); |
2213 checkBinding(o[0]); | 2255 checkBinding(o[0]); |
2214 checkBinding(o[1]); | 2256 checkBinding(o[1]); |
2215 } | 2257 } |
2216 | 2258 |
2217 buildUnnamed1060() { | 2259 buildUnnamed1080() { |
2218 var o = new core.List<api.Rule>(); | 2260 var o = new core.List<api.Rule>(); |
2219 o.add(buildRule()); | 2261 o.add(buildRule()); |
2220 o.add(buildRule()); | 2262 o.add(buildRule()); |
2221 return o; | 2263 return o; |
2222 } | 2264 } |
2223 | 2265 |
2224 checkUnnamed1060(core.List<api.Rule> o) { | 2266 checkUnnamed1080(core.List<api.Rule> o) { |
2225 unittest.expect(o, unittest.hasLength(2)); | 2267 unittest.expect(o, unittest.hasLength(2)); |
2226 checkRule(o[0]); | 2268 checkRule(o[0]); |
2227 checkRule(o[1]); | 2269 checkRule(o[1]); |
2228 } | 2270 } |
2229 | 2271 |
2230 core.int buildCounterPolicy = 0; | 2272 core.int buildCounterPolicy = 0; |
2231 buildPolicy() { | 2273 buildPolicy() { |
2232 var o = new api.Policy(); | 2274 var o = new api.Policy(); |
2233 buildCounterPolicy++; | 2275 buildCounterPolicy++; |
2234 if (buildCounterPolicy < 3) { | 2276 if (buildCounterPolicy < 3) { |
2235 o.auditConfigs = buildUnnamed1058(); | 2277 o.auditConfigs = buildUnnamed1078(); |
2236 o.bindings = buildUnnamed1059(); | 2278 o.bindings = buildUnnamed1079(); |
2237 o.etag = "foo"; | 2279 o.etag = "foo"; |
2238 o.iamOwned = true; | 2280 o.iamOwned = true; |
2239 o.rules = buildUnnamed1060(); | 2281 o.rules = buildUnnamed1080(); |
2240 o.version = 42; | 2282 o.version = 42; |
2241 } | 2283 } |
2242 buildCounterPolicy--; | 2284 buildCounterPolicy--; |
2243 return o; | 2285 return o; |
2244 } | 2286 } |
2245 | 2287 |
2246 checkPolicy(api.Policy o) { | 2288 checkPolicy(api.Policy o) { |
2247 buildCounterPolicy++; | 2289 buildCounterPolicy++; |
2248 if (buildCounterPolicy < 3) { | 2290 if (buildCounterPolicy < 3) { |
2249 checkUnnamed1058(o.auditConfigs); | 2291 checkUnnamed1078(o.auditConfigs); |
2250 checkUnnamed1059(o.bindings); | 2292 checkUnnamed1079(o.bindings); |
2251 unittest.expect(o.etag, unittest.equals('foo')); | 2293 unittest.expect(o.etag, unittest.equals('foo')); |
2252 unittest.expect(o.iamOwned, unittest.isTrue); | 2294 unittest.expect(o.iamOwned, unittest.isTrue); |
2253 checkUnnamed1060(o.rules); | 2295 checkUnnamed1080(o.rules); |
2254 unittest.expect(o.version, unittest.equals(42)); | 2296 unittest.expect(o.version, unittest.equals(42)); |
2255 } | 2297 } |
2256 buildCounterPolicy--; | 2298 buildCounterPolicy--; |
2257 } | 2299 } |
2258 | 2300 |
2259 core.int buildCounterRollout = 0; | 2301 core.int buildCounterRollout = 0; |
2260 buildRollout() { | 2302 buildRollout() { |
2261 var o = new api.Rollout(); | 2303 var o = new api.Rollout(); |
2262 buildCounterRollout++; | 2304 buildCounterRollout++; |
2263 if (buildCounterRollout < 3) { | 2305 if (buildCounterRollout < 3) { |
(...skipping 16 matching lines...) Expand all Loading... |
2280 unittest.expect(o.createdBy, unittest.equals('foo')); | 2322 unittest.expect(o.createdBy, unittest.equals('foo')); |
2281 checkDeleteServiceStrategy(o.deleteServiceStrategy); | 2323 checkDeleteServiceStrategy(o.deleteServiceStrategy); |
2282 unittest.expect(o.rolloutId, unittest.equals('foo')); | 2324 unittest.expect(o.rolloutId, unittest.equals('foo')); |
2283 unittest.expect(o.serviceName, unittest.equals('foo')); | 2325 unittest.expect(o.serviceName, unittest.equals('foo')); |
2284 unittest.expect(o.status, unittest.equals('foo')); | 2326 unittest.expect(o.status, unittest.equals('foo')); |
2285 checkTrafficPercentStrategy(o.trafficPercentStrategy); | 2327 checkTrafficPercentStrategy(o.trafficPercentStrategy); |
2286 } | 2328 } |
2287 buildCounterRollout--; | 2329 buildCounterRollout--; |
2288 } | 2330 } |
2289 | 2331 |
2290 buildUnnamed1061() { | 2332 buildUnnamed1081() { |
2291 var o = new core.List<api.Condition>(); | 2333 var o = new core.List<api.Condition>(); |
2292 o.add(buildCondition()); | 2334 o.add(buildCondition()); |
2293 o.add(buildCondition()); | 2335 o.add(buildCondition()); |
2294 return o; | 2336 return o; |
2295 } | 2337 } |
2296 | 2338 |
2297 checkUnnamed1061(core.List<api.Condition> o) { | 2339 checkUnnamed1081(core.List<api.Condition> o) { |
2298 unittest.expect(o, unittest.hasLength(2)); | 2340 unittest.expect(o, unittest.hasLength(2)); |
2299 checkCondition(o[0]); | 2341 checkCondition(o[0]); |
2300 checkCondition(o[1]); | 2342 checkCondition(o[1]); |
2301 } | 2343 } |
2302 | 2344 |
2303 buildUnnamed1062() { | 2345 buildUnnamed1082() { |
2304 var o = new core.List<core.String>(); | 2346 var o = new core.List<core.String>(); |
2305 o.add("foo"); | 2347 o.add("foo"); |
2306 o.add("foo"); | 2348 o.add("foo"); |
2307 return o; | 2349 return o; |
2308 } | 2350 } |
2309 | 2351 |
2310 checkUnnamed1062(core.List<core.String> o) { | 2352 checkUnnamed1082(core.List<core.String> o) { |
2311 unittest.expect(o, unittest.hasLength(2)); | 2353 unittest.expect(o, unittest.hasLength(2)); |
2312 unittest.expect(o[0], unittest.equals('foo')); | 2354 unittest.expect(o[0], unittest.equals('foo')); |
2313 unittest.expect(o[1], unittest.equals('foo')); | 2355 unittest.expect(o[1], unittest.equals('foo')); |
2314 } | 2356 } |
2315 | 2357 |
2316 buildUnnamed1063() { | 2358 buildUnnamed1083() { |
2317 var o = new core.List<api.LogConfig>(); | 2359 var o = new core.List<api.LogConfig>(); |
2318 o.add(buildLogConfig()); | 2360 o.add(buildLogConfig()); |
2319 o.add(buildLogConfig()); | 2361 o.add(buildLogConfig()); |
2320 return o; | 2362 return o; |
2321 } | 2363 } |
2322 | 2364 |
2323 checkUnnamed1063(core.List<api.LogConfig> o) { | 2365 checkUnnamed1083(core.List<api.LogConfig> o) { |
2324 unittest.expect(o, unittest.hasLength(2)); | 2366 unittest.expect(o, unittest.hasLength(2)); |
2325 checkLogConfig(o[0]); | 2367 checkLogConfig(o[0]); |
2326 checkLogConfig(o[1]); | 2368 checkLogConfig(o[1]); |
2327 } | 2369 } |
2328 | 2370 |
2329 buildUnnamed1064() { | 2371 buildUnnamed1084() { |
2330 var o = new core.List<core.String>(); | 2372 var o = new core.List<core.String>(); |
2331 o.add("foo"); | 2373 o.add("foo"); |
2332 o.add("foo"); | 2374 o.add("foo"); |
2333 return o; | 2375 return o; |
2334 } | 2376 } |
2335 | 2377 |
2336 checkUnnamed1064(core.List<core.String> o) { | 2378 checkUnnamed1084(core.List<core.String> o) { |
2337 unittest.expect(o, unittest.hasLength(2)); | 2379 unittest.expect(o, unittest.hasLength(2)); |
2338 unittest.expect(o[0], unittest.equals('foo')); | 2380 unittest.expect(o[0], unittest.equals('foo')); |
2339 unittest.expect(o[1], unittest.equals('foo')); | 2381 unittest.expect(o[1], unittest.equals('foo')); |
2340 } | 2382 } |
2341 | 2383 |
2342 buildUnnamed1065() { | 2384 buildUnnamed1085() { |
2343 var o = new core.List<core.String>(); | 2385 var o = new core.List<core.String>(); |
2344 o.add("foo"); | 2386 o.add("foo"); |
2345 o.add("foo"); | 2387 o.add("foo"); |
2346 return o; | 2388 return o; |
2347 } | 2389 } |
2348 | 2390 |
2349 checkUnnamed1065(core.List<core.String> o) { | 2391 checkUnnamed1085(core.List<core.String> o) { |
2350 unittest.expect(o, unittest.hasLength(2)); | 2392 unittest.expect(o, unittest.hasLength(2)); |
2351 unittest.expect(o[0], unittest.equals('foo')); | 2393 unittest.expect(o[0], unittest.equals('foo')); |
2352 unittest.expect(o[1], unittest.equals('foo')); | 2394 unittest.expect(o[1], unittest.equals('foo')); |
2353 } | 2395 } |
2354 | 2396 |
2355 core.int buildCounterRule = 0; | 2397 core.int buildCounterRule = 0; |
2356 buildRule() { | 2398 buildRule() { |
2357 var o = new api.Rule(); | 2399 var o = new api.Rule(); |
2358 buildCounterRule++; | 2400 buildCounterRule++; |
2359 if (buildCounterRule < 3) { | 2401 if (buildCounterRule < 3) { |
2360 o.action = "foo"; | 2402 o.action = "foo"; |
2361 o.conditions = buildUnnamed1061(); | 2403 o.conditions = buildUnnamed1081(); |
2362 o.description = "foo"; | 2404 o.description = "foo"; |
2363 o.in_ = buildUnnamed1062(); | 2405 o.in_ = buildUnnamed1082(); |
2364 o.logConfig = buildUnnamed1063(); | 2406 o.logConfig = buildUnnamed1083(); |
2365 o.notIn = buildUnnamed1064(); | 2407 o.notIn = buildUnnamed1084(); |
2366 o.permissions = buildUnnamed1065(); | 2408 o.permissions = buildUnnamed1085(); |
2367 } | 2409 } |
2368 buildCounterRule--; | 2410 buildCounterRule--; |
2369 return o; | 2411 return o; |
2370 } | 2412 } |
2371 | 2413 |
2372 checkRule(api.Rule o) { | 2414 checkRule(api.Rule o) { |
2373 buildCounterRule++; | 2415 buildCounterRule++; |
2374 if (buildCounterRule < 3) { | 2416 if (buildCounterRule < 3) { |
2375 unittest.expect(o.action, unittest.equals('foo')); | 2417 unittest.expect(o.action, unittest.equals('foo')); |
2376 checkUnnamed1061(o.conditions); | 2418 checkUnnamed1081(o.conditions); |
2377 unittest.expect(o.description, unittest.equals('foo')); | 2419 unittest.expect(o.description, unittest.equals('foo')); |
2378 checkUnnamed1062(o.in_); | 2420 checkUnnamed1082(o.in_); |
2379 checkUnnamed1063(o.logConfig); | 2421 checkUnnamed1083(o.logConfig); |
2380 checkUnnamed1064(o.notIn); | 2422 checkUnnamed1084(o.notIn); |
2381 checkUnnamed1065(o.permissions); | 2423 checkUnnamed1085(o.permissions); |
2382 } | 2424 } |
2383 buildCounterRule--; | 2425 buildCounterRule--; |
2384 } | 2426 } |
2385 | 2427 |
2386 buildUnnamed1066() { | 2428 buildUnnamed1086() { |
2387 var o = new core.List<api.Api>(); | 2429 var o = new core.List<api.Api>(); |
2388 o.add(buildApi()); | 2430 o.add(buildApi()); |
2389 o.add(buildApi()); | 2431 o.add(buildApi()); |
2390 return o; | 2432 return o; |
2391 } | 2433 } |
2392 | 2434 |
2393 checkUnnamed1066(core.List<api.Api> o) { | 2435 checkUnnamed1086(core.List<api.Api> o) { |
2394 unittest.expect(o, unittest.hasLength(2)); | 2436 unittest.expect(o, unittest.hasLength(2)); |
2395 checkApi(o[0]); | 2437 checkApi(o[0]); |
2396 checkApi(o[1]); | 2438 checkApi(o[1]); |
2397 } | 2439 } |
2398 | 2440 |
2399 buildUnnamed1067() { | 2441 buildUnnamed1087() { |
2400 var o = new core.List<api.Endpoint>(); | 2442 var o = new core.List<api.Endpoint>(); |
2401 o.add(buildEndpoint()); | 2443 o.add(buildEndpoint()); |
2402 o.add(buildEndpoint()); | 2444 o.add(buildEndpoint()); |
2403 return o; | 2445 return o; |
2404 } | 2446 } |
2405 | 2447 |
2406 checkUnnamed1067(core.List<api.Endpoint> o) { | 2448 checkUnnamed1087(core.List<api.Endpoint> o) { |
2407 unittest.expect(o, unittest.hasLength(2)); | 2449 unittest.expect(o, unittest.hasLength(2)); |
2408 checkEndpoint(o[0]); | 2450 checkEndpoint(o[0]); |
2409 checkEndpoint(o[1]); | 2451 checkEndpoint(o[1]); |
2410 } | 2452 } |
2411 | 2453 |
2412 buildUnnamed1068() { | 2454 buildUnnamed1088() { |
2413 var o = new core.List<api.Enum>(); | 2455 var o = new core.List<api.Enum>(); |
2414 o.add(buildEnum()); | 2456 o.add(buildEnum()); |
2415 o.add(buildEnum()); | 2457 o.add(buildEnum()); |
2416 return o; | 2458 return o; |
2417 } | 2459 } |
2418 | 2460 |
2419 checkUnnamed1068(core.List<api.Enum> o) { | 2461 checkUnnamed1088(core.List<api.Enum> o) { |
2420 unittest.expect(o, unittest.hasLength(2)); | 2462 unittest.expect(o, unittest.hasLength(2)); |
2421 checkEnum(o[0]); | 2463 checkEnum(o[0]); |
2422 checkEnum(o[1]); | 2464 checkEnum(o[1]); |
2423 } | 2465 } |
2424 | 2466 |
2425 buildUnnamed1069() { | 2467 buildUnnamed1089() { |
2426 var o = new core.List<api.LogDescriptor>(); | 2468 var o = new core.List<api.LogDescriptor>(); |
2427 o.add(buildLogDescriptor()); | 2469 o.add(buildLogDescriptor()); |
2428 o.add(buildLogDescriptor()); | 2470 o.add(buildLogDescriptor()); |
2429 return o; | 2471 return o; |
2430 } | 2472 } |
2431 | 2473 |
2432 checkUnnamed1069(core.List<api.LogDescriptor> o) { | 2474 checkUnnamed1089(core.List<api.LogDescriptor> o) { |
2433 unittest.expect(o, unittest.hasLength(2)); | 2475 unittest.expect(o, unittest.hasLength(2)); |
2434 checkLogDescriptor(o[0]); | 2476 checkLogDescriptor(o[0]); |
2435 checkLogDescriptor(o[1]); | 2477 checkLogDescriptor(o[1]); |
2436 } | 2478 } |
2437 | 2479 |
2438 buildUnnamed1070() { | 2480 buildUnnamed1090() { |
2439 var o = new core.List<api.MetricDescriptor>(); | 2481 var o = new core.List<api.MetricDescriptor>(); |
2440 o.add(buildMetricDescriptor()); | 2482 o.add(buildMetricDescriptor()); |
2441 o.add(buildMetricDescriptor()); | 2483 o.add(buildMetricDescriptor()); |
2442 return o; | 2484 return o; |
2443 } | 2485 } |
2444 | 2486 |
2445 checkUnnamed1070(core.List<api.MetricDescriptor> o) { | 2487 checkUnnamed1090(core.List<api.MetricDescriptor> o) { |
2446 unittest.expect(o, unittest.hasLength(2)); | 2488 unittest.expect(o, unittest.hasLength(2)); |
2447 checkMetricDescriptor(o[0]); | 2489 checkMetricDescriptor(o[0]); |
2448 checkMetricDescriptor(o[1]); | 2490 checkMetricDescriptor(o[1]); |
2449 } | 2491 } |
2450 | 2492 |
2451 buildUnnamed1071() { | 2493 buildUnnamed1091() { |
2452 var o = new core.List<api.MonitoredResourceDescriptor>(); | 2494 var o = new core.List<api.MonitoredResourceDescriptor>(); |
2453 o.add(buildMonitoredResourceDescriptor()); | 2495 o.add(buildMonitoredResourceDescriptor()); |
2454 o.add(buildMonitoredResourceDescriptor()); | 2496 o.add(buildMonitoredResourceDescriptor()); |
2455 return o; | 2497 return o; |
2456 } | 2498 } |
2457 | 2499 |
2458 checkUnnamed1071(core.List<api.MonitoredResourceDescriptor> o) { | 2500 checkUnnamed1091(core.List<api.MonitoredResourceDescriptor> o) { |
2459 unittest.expect(o, unittest.hasLength(2)); | 2501 unittest.expect(o, unittest.hasLength(2)); |
2460 checkMonitoredResourceDescriptor(o[0]); | 2502 checkMonitoredResourceDescriptor(o[0]); |
2461 checkMonitoredResourceDescriptor(o[1]); | 2503 checkMonitoredResourceDescriptor(o[1]); |
2462 } | 2504 } |
2463 | 2505 |
2464 buildUnnamed1072() { | 2506 buildUnnamed1092() { |
2465 var o = new core.List<api.Type>(); | 2507 var o = new core.List<api.Type>(); |
2466 o.add(buildType()); | 2508 o.add(buildType()); |
2467 o.add(buildType()); | 2509 o.add(buildType()); |
2468 return o; | 2510 return o; |
2469 } | 2511 } |
2470 | 2512 |
2471 checkUnnamed1072(core.List<api.Type> o) { | 2513 checkUnnamed1092(core.List<api.Type> o) { |
2472 unittest.expect(o, unittest.hasLength(2)); | 2514 unittest.expect(o, unittest.hasLength(2)); |
2473 checkType(o[0]); | 2515 checkType(o[0]); |
2474 checkType(o[1]); | 2516 checkType(o[1]); |
2475 } | 2517 } |
2476 | 2518 |
2477 buildUnnamed1073() { | 2519 buildUnnamed1093() { |
2478 var o = new core.List<api.Type>(); | 2520 var o = new core.List<api.Type>(); |
2479 o.add(buildType()); | 2521 o.add(buildType()); |
2480 o.add(buildType()); | 2522 o.add(buildType()); |
2481 return o; | 2523 return o; |
2482 } | 2524 } |
2483 | 2525 |
2484 checkUnnamed1073(core.List<api.Type> o) { | 2526 checkUnnamed1093(core.List<api.Type> o) { |
2485 unittest.expect(o, unittest.hasLength(2)); | 2527 unittest.expect(o, unittest.hasLength(2)); |
2486 checkType(o[0]); | 2528 checkType(o[0]); |
2487 checkType(o[1]); | 2529 checkType(o[1]); |
2488 } | 2530 } |
2489 | 2531 |
2490 core.int buildCounterService = 0; | 2532 core.int buildCounterService = 0; |
2491 buildService() { | 2533 buildService() { |
2492 var o = new api.Service(); | 2534 var o = new api.Service(); |
2493 buildCounterService++; | 2535 buildCounterService++; |
2494 if (buildCounterService < 3) { | 2536 if (buildCounterService < 3) { |
2495 o.apis = buildUnnamed1066(); | 2537 o.apis = buildUnnamed1086(); |
2496 o.authentication = buildAuthentication(); | 2538 o.authentication = buildAuthentication(); |
2497 o.backend = buildBackend(); | 2539 o.backend = buildBackend(); |
2498 o.configVersion = 42; | 2540 o.configVersion = 42; |
2499 o.context = buildContext(); | 2541 o.context = buildContext(); |
2500 o.control = buildControl(); | 2542 o.control = buildControl(); |
2501 o.customError = buildCustomError(); | 2543 o.customError = buildCustomError(); |
2502 o.documentation = buildDocumentation(); | 2544 o.documentation = buildDocumentation(); |
2503 o.endpoints = buildUnnamed1067(); | 2545 o.endpoints = buildUnnamed1087(); |
2504 o.enums = buildUnnamed1068(); | 2546 o.enums = buildUnnamed1088(); |
| 2547 o.experimental = buildExperimental(); |
2505 o.http = buildHttp(); | 2548 o.http = buildHttp(); |
2506 o.id = "foo"; | 2549 o.id = "foo"; |
2507 o.logging = buildLogging(); | 2550 o.logging = buildLogging(); |
2508 o.logs = buildUnnamed1069(); | 2551 o.logs = buildUnnamed1089(); |
2509 o.metrics = buildUnnamed1070(); | 2552 o.metrics = buildUnnamed1090(); |
2510 o.monitoredResources = buildUnnamed1071(); | 2553 o.monitoredResources = buildUnnamed1091(); |
2511 o.monitoring = buildMonitoring(); | 2554 o.monitoring = buildMonitoring(); |
2512 o.name = "foo"; | 2555 o.name = "foo"; |
2513 o.producerProjectId = "foo"; | 2556 o.producerProjectId = "foo"; |
2514 o.systemParameters = buildSystemParameters(); | 2557 o.systemParameters = buildSystemParameters(); |
2515 o.systemTypes = buildUnnamed1072(); | 2558 o.systemTypes = buildUnnamed1092(); |
2516 o.title = "foo"; | 2559 o.title = "foo"; |
2517 o.types = buildUnnamed1073(); | 2560 o.types = buildUnnamed1093(); |
2518 o.usage = buildUsage(); | 2561 o.usage = buildUsage(); |
2519 o.visibility = buildVisibility(); | 2562 o.visibility = buildVisibility(); |
2520 } | 2563 } |
2521 buildCounterService--; | 2564 buildCounterService--; |
2522 return o; | 2565 return o; |
2523 } | 2566 } |
2524 | 2567 |
2525 checkService(api.Service o) { | 2568 checkService(api.Service o) { |
2526 buildCounterService++; | 2569 buildCounterService++; |
2527 if (buildCounterService < 3) { | 2570 if (buildCounterService < 3) { |
2528 checkUnnamed1066(o.apis); | 2571 checkUnnamed1086(o.apis); |
2529 checkAuthentication(o.authentication); | 2572 checkAuthentication(o.authentication); |
2530 checkBackend(o.backend); | 2573 checkBackend(o.backend); |
2531 unittest.expect(o.configVersion, unittest.equals(42)); | 2574 unittest.expect(o.configVersion, unittest.equals(42)); |
2532 checkContext(o.context); | 2575 checkContext(o.context); |
2533 checkControl(o.control); | 2576 checkControl(o.control); |
2534 checkCustomError(o.customError); | 2577 checkCustomError(o.customError); |
2535 checkDocumentation(o.documentation); | 2578 checkDocumentation(o.documentation); |
2536 checkUnnamed1067(o.endpoints); | 2579 checkUnnamed1087(o.endpoints); |
2537 checkUnnamed1068(o.enums); | 2580 checkUnnamed1088(o.enums); |
| 2581 checkExperimental(o.experimental); |
2538 checkHttp(o.http); | 2582 checkHttp(o.http); |
2539 unittest.expect(o.id, unittest.equals('foo')); | 2583 unittest.expect(o.id, unittest.equals('foo')); |
2540 checkLogging(o.logging); | 2584 checkLogging(o.logging); |
2541 checkUnnamed1069(o.logs); | 2585 checkUnnamed1089(o.logs); |
2542 checkUnnamed1070(o.metrics); | 2586 checkUnnamed1090(o.metrics); |
2543 checkUnnamed1071(o.monitoredResources); | 2587 checkUnnamed1091(o.monitoredResources); |
2544 checkMonitoring(o.monitoring); | 2588 checkMonitoring(o.monitoring); |
2545 unittest.expect(o.name, unittest.equals('foo')); | 2589 unittest.expect(o.name, unittest.equals('foo')); |
2546 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 2590 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
2547 checkSystemParameters(o.systemParameters); | 2591 checkSystemParameters(o.systemParameters); |
2548 checkUnnamed1072(o.systemTypes); | 2592 checkUnnamed1092(o.systemTypes); |
2549 unittest.expect(o.title, unittest.equals('foo')); | 2593 unittest.expect(o.title, unittest.equals('foo')); |
2550 checkUnnamed1073(o.types); | 2594 checkUnnamed1093(o.types); |
2551 checkUsage(o.usage); | 2595 checkUsage(o.usage); |
2552 checkVisibility(o.visibility); | 2596 checkVisibility(o.visibility); |
2553 } | 2597 } |
2554 buildCounterService--; | 2598 buildCounterService--; |
2555 } | 2599 } |
2556 | 2600 |
2557 core.int buildCounterSetIamPolicyRequest = 0; | 2601 core.int buildCounterSetIamPolicyRequest = 0; |
2558 buildSetIamPolicyRequest() { | 2602 buildSetIamPolicyRequest() { |
2559 var o = new api.SetIamPolicyRequest(); | 2603 var o = new api.SetIamPolicyRequest(); |
2560 buildCounterSetIamPolicyRequest++; | 2604 buildCounterSetIamPolicyRequest++; |
(...skipping 26 matching lines...) Expand all Loading... |
2587 } | 2631 } |
2588 | 2632 |
2589 checkSourceContext(api.SourceContext o) { | 2633 checkSourceContext(api.SourceContext o) { |
2590 buildCounterSourceContext++; | 2634 buildCounterSourceContext++; |
2591 if (buildCounterSourceContext < 3) { | 2635 if (buildCounterSourceContext < 3) { |
2592 unittest.expect(o.fileName, unittest.equals('foo')); | 2636 unittest.expect(o.fileName, unittest.equals('foo')); |
2593 } | 2637 } |
2594 buildCounterSourceContext--; | 2638 buildCounterSourceContext--; |
2595 } | 2639 } |
2596 | 2640 |
2597 buildUnnamed1074() { | 2641 buildUnnamed1094() { |
2598 var o = new core.Map<core.String, core.Object>(); | 2642 var o = new core.Map<core.String, core.Object>(); |
2599 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2643 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2600 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2644 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2601 return o; | 2645 return o; |
2602 } | 2646 } |
2603 | 2647 |
2604 checkUnnamed1074(core.Map<core.String, core.Object> o) { | 2648 checkUnnamed1094(core.Map<core.String, core.Object> o) { |
2605 unittest.expect(o, unittest.hasLength(2)); | 2649 unittest.expect(o, unittest.hasLength(2)); |
2606 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')); | 2650 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')); |
2607 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')); | 2651 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')); |
2608 } | 2652 } |
2609 | 2653 |
2610 buildUnnamed1075() { | 2654 buildUnnamed1095() { |
2611 var o = new core.List<core.Map<core.String, core.Object>>(); | 2655 var o = new core.List<core.Map<core.String, core.Object>>(); |
2612 o.add(buildUnnamed1074()); | 2656 o.add(buildUnnamed1094()); |
2613 o.add(buildUnnamed1074()); | 2657 o.add(buildUnnamed1094()); |
2614 return o; | 2658 return o; |
2615 } | 2659 } |
2616 | 2660 |
2617 checkUnnamed1075(core.List<core.Map<core.String, core.Object>> o) { | 2661 checkUnnamed1095(core.List<core.Map<core.String, core.Object>> o) { |
2618 unittest.expect(o, unittest.hasLength(2)); | 2662 unittest.expect(o, unittest.hasLength(2)); |
2619 checkUnnamed1074(o[0]); | 2663 checkUnnamed1094(o[0]); |
2620 checkUnnamed1074(o[1]); | 2664 checkUnnamed1094(o[1]); |
2621 } | 2665 } |
2622 | 2666 |
2623 core.int buildCounterStatus = 0; | 2667 core.int buildCounterStatus = 0; |
2624 buildStatus() { | 2668 buildStatus() { |
2625 var o = new api.Status(); | 2669 var o = new api.Status(); |
2626 buildCounterStatus++; | 2670 buildCounterStatus++; |
2627 if (buildCounterStatus < 3) { | 2671 if (buildCounterStatus < 3) { |
2628 o.code = 42; | 2672 o.code = 42; |
2629 o.details = buildUnnamed1075(); | 2673 o.details = buildUnnamed1095(); |
2630 o.message = "foo"; | 2674 o.message = "foo"; |
2631 } | 2675 } |
2632 buildCounterStatus--; | 2676 buildCounterStatus--; |
2633 return o; | 2677 return o; |
2634 } | 2678 } |
2635 | 2679 |
2636 checkStatus(api.Status o) { | 2680 checkStatus(api.Status o) { |
2637 buildCounterStatus++; | 2681 buildCounterStatus++; |
2638 if (buildCounterStatus < 3) { | 2682 if (buildCounterStatus < 3) { |
2639 unittest.expect(o.code, unittest.equals(42)); | 2683 unittest.expect(o.code, unittest.equals(42)); |
2640 checkUnnamed1075(o.details); | 2684 checkUnnamed1095(o.details); |
2641 unittest.expect(o.message, unittest.equals('foo')); | 2685 unittest.expect(o.message, unittest.equals('foo')); |
2642 } | 2686 } |
2643 buildCounterStatus--; | 2687 buildCounterStatus--; |
2644 } | 2688 } |
2645 | 2689 |
2646 core.int buildCounterStep = 0; | 2690 core.int buildCounterStep = 0; |
2647 buildStep() { | 2691 buildStep() { |
2648 var o = new api.Step(); | 2692 var o = new api.Step(); |
2649 buildCounterStep++; | 2693 buildCounterStep++; |
2650 if (buildCounterStep < 3) { | 2694 if (buildCounterStep < 3) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2720 checkSystemParameter(api.SystemParameter o) { | 2764 checkSystemParameter(api.SystemParameter o) { |
2721 buildCounterSystemParameter++; | 2765 buildCounterSystemParameter++; |
2722 if (buildCounterSystemParameter < 3) { | 2766 if (buildCounterSystemParameter < 3) { |
2723 unittest.expect(o.httpHeader, unittest.equals('foo')); | 2767 unittest.expect(o.httpHeader, unittest.equals('foo')); |
2724 unittest.expect(o.name, unittest.equals('foo')); | 2768 unittest.expect(o.name, unittest.equals('foo')); |
2725 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 2769 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
2726 } | 2770 } |
2727 buildCounterSystemParameter--; | 2771 buildCounterSystemParameter--; |
2728 } | 2772 } |
2729 | 2773 |
2730 buildUnnamed1076() { | 2774 buildUnnamed1096() { |
2731 var o = new core.List<api.SystemParameter>(); | 2775 var o = new core.List<api.SystemParameter>(); |
2732 o.add(buildSystemParameter()); | 2776 o.add(buildSystemParameter()); |
2733 o.add(buildSystemParameter()); | 2777 o.add(buildSystemParameter()); |
2734 return o; | 2778 return o; |
2735 } | 2779 } |
2736 | 2780 |
2737 checkUnnamed1076(core.List<api.SystemParameter> o) { | 2781 checkUnnamed1096(core.List<api.SystemParameter> o) { |
2738 unittest.expect(o, unittest.hasLength(2)); | 2782 unittest.expect(o, unittest.hasLength(2)); |
2739 checkSystemParameter(o[0]); | 2783 checkSystemParameter(o[0]); |
2740 checkSystemParameter(o[1]); | 2784 checkSystemParameter(o[1]); |
2741 } | 2785 } |
2742 | 2786 |
2743 core.int buildCounterSystemParameterRule = 0; | 2787 core.int buildCounterSystemParameterRule = 0; |
2744 buildSystemParameterRule() { | 2788 buildSystemParameterRule() { |
2745 var o = new api.SystemParameterRule(); | 2789 var o = new api.SystemParameterRule(); |
2746 buildCounterSystemParameterRule++; | 2790 buildCounterSystemParameterRule++; |
2747 if (buildCounterSystemParameterRule < 3) { | 2791 if (buildCounterSystemParameterRule < 3) { |
2748 o.parameters = buildUnnamed1076(); | 2792 o.parameters = buildUnnamed1096(); |
2749 o.selector = "foo"; | 2793 o.selector = "foo"; |
2750 } | 2794 } |
2751 buildCounterSystemParameterRule--; | 2795 buildCounterSystemParameterRule--; |
2752 return o; | 2796 return o; |
2753 } | 2797 } |
2754 | 2798 |
2755 checkSystemParameterRule(api.SystemParameterRule o) { | 2799 checkSystemParameterRule(api.SystemParameterRule o) { |
2756 buildCounterSystemParameterRule++; | 2800 buildCounterSystemParameterRule++; |
2757 if (buildCounterSystemParameterRule < 3) { | 2801 if (buildCounterSystemParameterRule < 3) { |
2758 checkUnnamed1076(o.parameters); | 2802 checkUnnamed1096(o.parameters); |
2759 unittest.expect(o.selector, unittest.equals('foo')); | 2803 unittest.expect(o.selector, unittest.equals('foo')); |
2760 } | 2804 } |
2761 buildCounterSystemParameterRule--; | 2805 buildCounterSystemParameterRule--; |
2762 } | 2806 } |
2763 | 2807 |
2764 buildUnnamed1077() { | 2808 buildUnnamed1097() { |
2765 var o = new core.List<api.SystemParameterRule>(); | 2809 var o = new core.List<api.SystemParameterRule>(); |
2766 o.add(buildSystemParameterRule()); | 2810 o.add(buildSystemParameterRule()); |
2767 o.add(buildSystemParameterRule()); | 2811 o.add(buildSystemParameterRule()); |
2768 return o; | 2812 return o; |
2769 } | 2813 } |
2770 | 2814 |
2771 checkUnnamed1077(core.List<api.SystemParameterRule> o) { | 2815 checkUnnamed1097(core.List<api.SystemParameterRule> o) { |
2772 unittest.expect(o, unittest.hasLength(2)); | 2816 unittest.expect(o, unittest.hasLength(2)); |
2773 checkSystemParameterRule(o[0]); | 2817 checkSystemParameterRule(o[0]); |
2774 checkSystemParameterRule(o[1]); | 2818 checkSystemParameterRule(o[1]); |
2775 } | 2819 } |
2776 | 2820 |
2777 core.int buildCounterSystemParameters = 0; | 2821 core.int buildCounterSystemParameters = 0; |
2778 buildSystemParameters() { | 2822 buildSystemParameters() { |
2779 var o = new api.SystemParameters(); | 2823 var o = new api.SystemParameters(); |
2780 buildCounterSystemParameters++; | 2824 buildCounterSystemParameters++; |
2781 if (buildCounterSystemParameters < 3) { | 2825 if (buildCounterSystemParameters < 3) { |
2782 o.rules = buildUnnamed1077(); | 2826 o.rules = buildUnnamed1097(); |
2783 } | 2827 } |
2784 buildCounterSystemParameters--; | 2828 buildCounterSystemParameters--; |
2785 return o; | 2829 return o; |
2786 } | 2830 } |
2787 | 2831 |
2788 checkSystemParameters(api.SystemParameters o) { | 2832 checkSystemParameters(api.SystemParameters o) { |
2789 buildCounterSystemParameters++; | 2833 buildCounterSystemParameters++; |
2790 if (buildCounterSystemParameters < 3) { | 2834 if (buildCounterSystemParameters < 3) { |
2791 checkUnnamed1077(o.rules); | 2835 checkUnnamed1097(o.rules); |
2792 } | 2836 } |
2793 buildCounterSystemParameters--; | 2837 buildCounterSystemParameters--; |
2794 } | 2838 } |
2795 | 2839 |
2796 buildUnnamed1078() { | 2840 buildUnnamed1098() { |
2797 var o = new core.List<core.String>(); | 2841 var o = new core.List<core.String>(); |
2798 o.add("foo"); | 2842 o.add("foo"); |
2799 o.add("foo"); | 2843 o.add("foo"); |
2800 return o; | 2844 return o; |
2801 } | 2845 } |
2802 | 2846 |
2803 checkUnnamed1078(core.List<core.String> o) { | 2847 checkUnnamed1098(core.List<core.String> o) { |
2804 unittest.expect(o, unittest.hasLength(2)); | 2848 unittest.expect(o, unittest.hasLength(2)); |
2805 unittest.expect(o[0], unittest.equals('foo')); | 2849 unittest.expect(o[0], unittest.equals('foo')); |
2806 unittest.expect(o[1], unittest.equals('foo')); | 2850 unittest.expect(o[1], unittest.equals('foo')); |
2807 } | 2851 } |
2808 | 2852 |
2809 core.int buildCounterTestIamPermissionsRequest = 0; | 2853 core.int buildCounterTestIamPermissionsRequest = 0; |
2810 buildTestIamPermissionsRequest() { | 2854 buildTestIamPermissionsRequest() { |
2811 var o = new api.TestIamPermissionsRequest(); | 2855 var o = new api.TestIamPermissionsRequest(); |
2812 buildCounterTestIamPermissionsRequest++; | 2856 buildCounterTestIamPermissionsRequest++; |
2813 if (buildCounterTestIamPermissionsRequest < 3) { | 2857 if (buildCounterTestIamPermissionsRequest < 3) { |
2814 o.permissions = buildUnnamed1078(); | 2858 o.permissions = buildUnnamed1098(); |
2815 } | 2859 } |
2816 buildCounterTestIamPermissionsRequest--; | 2860 buildCounterTestIamPermissionsRequest--; |
2817 return o; | 2861 return o; |
2818 } | 2862 } |
2819 | 2863 |
2820 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 2864 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
2821 buildCounterTestIamPermissionsRequest++; | 2865 buildCounterTestIamPermissionsRequest++; |
2822 if (buildCounterTestIamPermissionsRequest < 3) { | 2866 if (buildCounterTestIamPermissionsRequest < 3) { |
2823 checkUnnamed1078(o.permissions); | 2867 checkUnnamed1098(o.permissions); |
2824 } | 2868 } |
2825 buildCounterTestIamPermissionsRequest--; | 2869 buildCounterTestIamPermissionsRequest--; |
2826 } | 2870 } |
2827 | 2871 |
2828 buildUnnamed1079() { | 2872 buildUnnamed1099() { |
2829 var o = new core.List<core.String>(); | 2873 var o = new core.List<core.String>(); |
2830 o.add("foo"); | 2874 o.add("foo"); |
2831 o.add("foo"); | 2875 o.add("foo"); |
2832 return o; | 2876 return o; |
2833 } | 2877 } |
2834 | 2878 |
2835 checkUnnamed1079(core.List<core.String> o) { | 2879 checkUnnamed1099(core.List<core.String> o) { |
2836 unittest.expect(o, unittest.hasLength(2)); | 2880 unittest.expect(o, unittest.hasLength(2)); |
2837 unittest.expect(o[0], unittest.equals('foo')); | 2881 unittest.expect(o[0], unittest.equals('foo')); |
2838 unittest.expect(o[1], unittest.equals('foo')); | 2882 unittest.expect(o[1], unittest.equals('foo')); |
2839 } | 2883 } |
2840 | 2884 |
2841 core.int buildCounterTestIamPermissionsResponse = 0; | 2885 core.int buildCounterTestIamPermissionsResponse = 0; |
2842 buildTestIamPermissionsResponse() { | 2886 buildTestIamPermissionsResponse() { |
2843 var o = new api.TestIamPermissionsResponse(); | 2887 var o = new api.TestIamPermissionsResponse(); |
2844 buildCounterTestIamPermissionsResponse++; | 2888 buildCounterTestIamPermissionsResponse++; |
2845 if (buildCounterTestIamPermissionsResponse < 3) { | 2889 if (buildCounterTestIamPermissionsResponse < 3) { |
2846 o.permissions = buildUnnamed1079(); | 2890 o.permissions = buildUnnamed1099(); |
2847 } | 2891 } |
2848 buildCounterTestIamPermissionsResponse--; | 2892 buildCounterTestIamPermissionsResponse--; |
2849 return o; | 2893 return o; |
2850 } | 2894 } |
2851 | 2895 |
2852 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 2896 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
2853 buildCounterTestIamPermissionsResponse++; | 2897 buildCounterTestIamPermissionsResponse++; |
2854 if (buildCounterTestIamPermissionsResponse < 3) { | 2898 if (buildCounterTestIamPermissionsResponse < 3) { |
2855 checkUnnamed1079(o.permissions); | 2899 checkUnnamed1099(o.permissions); |
2856 } | 2900 } |
2857 buildCounterTestIamPermissionsResponse--; | 2901 buildCounterTestIamPermissionsResponse--; |
2858 } | 2902 } |
2859 | 2903 |
2860 buildUnnamed1080() { | 2904 buildUnnamed1100() { |
2861 var o = new core.Map<core.String, core.double>(); | 2905 var o = new core.Map<core.String, core.double>(); |
2862 o["x"] = 42.0; | 2906 o["x"] = 42.0; |
2863 o["y"] = 42.0; | 2907 o["y"] = 42.0; |
2864 return o; | 2908 return o; |
2865 } | 2909 } |
2866 | 2910 |
2867 checkUnnamed1080(core.Map<core.String, core.double> o) { | 2911 checkUnnamed1100(core.Map<core.String, core.double> o) { |
2868 unittest.expect(o, unittest.hasLength(2)); | 2912 unittest.expect(o, unittest.hasLength(2)); |
2869 unittest.expect(o["x"], unittest.equals(42.0)); | 2913 unittest.expect(o["x"], unittest.equals(42.0)); |
2870 unittest.expect(o["y"], unittest.equals(42.0)); | 2914 unittest.expect(o["y"], unittest.equals(42.0)); |
2871 } | 2915 } |
2872 | 2916 |
2873 core.int buildCounterTrafficPercentStrategy = 0; | 2917 core.int buildCounterTrafficPercentStrategy = 0; |
2874 buildTrafficPercentStrategy() { | 2918 buildTrafficPercentStrategy() { |
2875 var o = new api.TrafficPercentStrategy(); | 2919 var o = new api.TrafficPercentStrategy(); |
2876 buildCounterTrafficPercentStrategy++; | 2920 buildCounterTrafficPercentStrategy++; |
2877 if (buildCounterTrafficPercentStrategy < 3) { | 2921 if (buildCounterTrafficPercentStrategy < 3) { |
2878 o.percentages = buildUnnamed1080(); | 2922 o.percentages = buildUnnamed1100(); |
2879 } | 2923 } |
2880 buildCounterTrafficPercentStrategy--; | 2924 buildCounterTrafficPercentStrategy--; |
2881 return o; | 2925 return o; |
2882 } | 2926 } |
2883 | 2927 |
2884 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { | 2928 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { |
2885 buildCounterTrafficPercentStrategy++; | 2929 buildCounterTrafficPercentStrategy++; |
2886 if (buildCounterTrafficPercentStrategy < 3) { | 2930 if (buildCounterTrafficPercentStrategy < 3) { |
2887 checkUnnamed1080(o.percentages); | 2931 checkUnnamed1100(o.percentages); |
2888 } | 2932 } |
2889 buildCounterTrafficPercentStrategy--; | 2933 buildCounterTrafficPercentStrategy--; |
2890 } | 2934 } |
2891 | 2935 |
2892 buildUnnamed1081() { | 2936 buildUnnamed1101() { |
2893 var o = new core.List<api.Field>(); | 2937 var o = new core.List<api.Field>(); |
2894 o.add(buildField()); | 2938 o.add(buildField()); |
2895 o.add(buildField()); | 2939 o.add(buildField()); |
2896 return o; | 2940 return o; |
2897 } | 2941 } |
2898 | 2942 |
2899 checkUnnamed1081(core.List<api.Field> o) { | 2943 checkUnnamed1101(core.List<api.Field> o) { |
2900 unittest.expect(o, unittest.hasLength(2)); | 2944 unittest.expect(o, unittest.hasLength(2)); |
2901 checkField(o[0]); | 2945 checkField(o[0]); |
2902 checkField(o[1]); | 2946 checkField(o[1]); |
2903 } | 2947 } |
2904 | 2948 |
2905 buildUnnamed1082() { | 2949 buildUnnamed1102() { |
2906 var o = new core.List<core.String>(); | 2950 var o = new core.List<core.String>(); |
2907 o.add("foo"); | 2951 o.add("foo"); |
2908 o.add("foo"); | 2952 o.add("foo"); |
2909 return o; | 2953 return o; |
2910 } | 2954 } |
2911 | 2955 |
2912 checkUnnamed1082(core.List<core.String> o) { | 2956 checkUnnamed1102(core.List<core.String> o) { |
2913 unittest.expect(o, unittest.hasLength(2)); | 2957 unittest.expect(o, unittest.hasLength(2)); |
2914 unittest.expect(o[0], unittest.equals('foo')); | 2958 unittest.expect(o[0], unittest.equals('foo')); |
2915 unittest.expect(o[1], unittest.equals('foo')); | 2959 unittest.expect(o[1], unittest.equals('foo')); |
2916 } | 2960 } |
2917 | 2961 |
2918 buildUnnamed1083() { | 2962 buildUnnamed1103() { |
2919 var o = new core.List<api.Option>(); | 2963 var o = new core.List<api.Option>(); |
2920 o.add(buildOption()); | 2964 o.add(buildOption()); |
2921 o.add(buildOption()); | 2965 o.add(buildOption()); |
2922 return o; | 2966 return o; |
2923 } | 2967 } |
2924 | 2968 |
2925 checkUnnamed1083(core.List<api.Option> o) { | 2969 checkUnnamed1103(core.List<api.Option> o) { |
2926 unittest.expect(o, unittest.hasLength(2)); | 2970 unittest.expect(o, unittest.hasLength(2)); |
2927 checkOption(o[0]); | 2971 checkOption(o[0]); |
2928 checkOption(o[1]); | 2972 checkOption(o[1]); |
2929 } | 2973 } |
2930 | 2974 |
2931 core.int buildCounterType = 0; | 2975 core.int buildCounterType = 0; |
2932 buildType() { | 2976 buildType() { |
2933 var o = new api.Type(); | 2977 var o = new api.Type(); |
2934 buildCounterType++; | 2978 buildCounterType++; |
2935 if (buildCounterType < 3) { | 2979 if (buildCounterType < 3) { |
2936 o.fields = buildUnnamed1081(); | 2980 o.fields = buildUnnamed1101(); |
2937 o.name = "foo"; | 2981 o.name = "foo"; |
2938 o.oneofs = buildUnnamed1082(); | 2982 o.oneofs = buildUnnamed1102(); |
2939 o.options = buildUnnamed1083(); | 2983 o.options = buildUnnamed1103(); |
2940 o.sourceContext = buildSourceContext(); | 2984 o.sourceContext = buildSourceContext(); |
2941 o.syntax = "foo"; | 2985 o.syntax = "foo"; |
2942 } | 2986 } |
2943 buildCounterType--; | 2987 buildCounterType--; |
2944 return o; | 2988 return o; |
2945 } | 2989 } |
2946 | 2990 |
2947 checkType(api.Type o) { | 2991 checkType(api.Type o) { |
2948 buildCounterType++; | 2992 buildCounterType++; |
2949 if (buildCounterType < 3) { | 2993 if (buildCounterType < 3) { |
2950 checkUnnamed1081(o.fields); | 2994 checkUnnamed1101(o.fields); |
2951 unittest.expect(o.name, unittest.equals('foo')); | 2995 unittest.expect(o.name, unittest.equals('foo')); |
2952 checkUnnamed1082(o.oneofs); | 2996 checkUnnamed1102(o.oneofs); |
2953 checkUnnamed1083(o.options); | 2997 checkUnnamed1103(o.options); |
2954 checkSourceContext(o.sourceContext); | 2998 checkSourceContext(o.sourceContext); |
2955 unittest.expect(o.syntax, unittest.equals('foo')); | 2999 unittest.expect(o.syntax, unittest.equals('foo')); |
2956 } | 3000 } |
2957 buildCounterType--; | 3001 buildCounterType--; |
2958 } | 3002 } |
2959 | 3003 |
2960 core.int buildCounterUndeleteServiceResponse = 0; | 3004 core.int buildCounterUndeleteServiceResponse = 0; |
2961 buildUndeleteServiceResponse() { | 3005 buildUndeleteServiceResponse() { |
2962 var o = new api.UndeleteServiceResponse(); | 3006 var o = new api.UndeleteServiceResponse(); |
2963 buildCounterUndeleteServiceResponse++; | 3007 buildCounterUndeleteServiceResponse++; |
2964 if (buildCounterUndeleteServiceResponse < 3) { | 3008 if (buildCounterUndeleteServiceResponse < 3) { |
2965 o.service = buildManagedService(); | 3009 o.service = buildManagedService(); |
2966 } | 3010 } |
2967 buildCounterUndeleteServiceResponse--; | 3011 buildCounterUndeleteServiceResponse--; |
2968 return o; | 3012 return o; |
2969 } | 3013 } |
2970 | 3014 |
2971 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { | 3015 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { |
2972 buildCounterUndeleteServiceResponse++; | 3016 buildCounterUndeleteServiceResponse++; |
2973 if (buildCounterUndeleteServiceResponse < 3) { | 3017 if (buildCounterUndeleteServiceResponse < 3) { |
2974 checkManagedService(o.service); | 3018 checkManagedService(o.service); |
2975 } | 3019 } |
2976 buildCounterUndeleteServiceResponse--; | 3020 buildCounterUndeleteServiceResponse--; |
2977 } | 3021 } |
2978 | 3022 |
2979 buildUnnamed1084() { | 3023 buildUnnamed1104() { |
2980 var o = new core.List<core.String>(); | 3024 var o = new core.List<core.String>(); |
2981 o.add("foo"); | 3025 o.add("foo"); |
2982 o.add("foo"); | 3026 o.add("foo"); |
2983 return o; | 3027 return o; |
2984 } | 3028 } |
2985 | 3029 |
2986 checkUnnamed1084(core.List<core.String> o) { | 3030 checkUnnamed1104(core.List<core.String> o) { |
2987 unittest.expect(o, unittest.hasLength(2)); | 3031 unittest.expect(o, unittest.hasLength(2)); |
2988 unittest.expect(o[0], unittest.equals('foo')); | 3032 unittest.expect(o[0], unittest.equals('foo')); |
2989 unittest.expect(o[1], unittest.equals('foo')); | 3033 unittest.expect(o[1], unittest.equals('foo')); |
2990 } | 3034 } |
2991 | 3035 |
2992 buildUnnamed1085() { | 3036 buildUnnamed1105() { |
2993 var o = new core.List<api.UsageRule>(); | 3037 var o = new core.List<api.UsageRule>(); |
2994 o.add(buildUsageRule()); | 3038 o.add(buildUsageRule()); |
2995 o.add(buildUsageRule()); | 3039 o.add(buildUsageRule()); |
2996 return o; | 3040 return o; |
2997 } | 3041 } |
2998 | 3042 |
2999 checkUnnamed1085(core.List<api.UsageRule> o) { | 3043 checkUnnamed1105(core.List<api.UsageRule> o) { |
3000 unittest.expect(o, unittest.hasLength(2)); | 3044 unittest.expect(o, unittest.hasLength(2)); |
3001 checkUsageRule(o[0]); | 3045 checkUsageRule(o[0]); |
3002 checkUsageRule(o[1]); | 3046 checkUsageRule(o[1]); |
3003 } | 3047 } |
3004 | 3048 |
3005 core.int buildCounterUsage = 0; | 3049 core.int buildCounterUsage = 0; |
3006 buildUsage() { | 3050 buildUsage() { |
3007 var o = new api.Usage(); | 3051 var o = new api.Usage(); |
3008 buildCounterUsage++; | 3052 buildCounterUsage++; |
3009 if (buildCounterUsage < 3) { | 3053 if (buildCounterUsage < 3) { |
3010 o.producerNotificationChannel = "foo"; | 3054 o.producerNotificationChannel = "foo"; |
3011 o.requirements = buildUnnamed1084(); | 3055 o.requirements = buildUnnamed1104(); |
3012 o.rules = buildUnnamed1085(); | 3056 o.rules = buildUnnamed1105(); |
3013 } | 3057 } |
3014 buildCounterUsage--; | 3058 buildCounterUsage--; |
3015 return o; | 3059 return o; |
3016 } | 3060 } |
3017 | 3061 |
3018 checkUsage(api.Usage o) { | 3062 checkUsage(api.Usage o) { |
3019 buildCounterUsage++; | 3063 buildCounterUsage++; |
3020 if (buildCounterUsage < 3) { | 3064 if (buildCounterUsage < 3) { |
3021 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 3065 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
3022 checkUnnamed1084(o.requirements); | 3066 checkUnnamed1104(o.requirements); |
3023 checkUnnamed1085(o.rules); | 3067 checkUnnamed1105(o.rules); |
3024 } | 3068 } |
3025 buildCounterUsage--; | 3069 buildCounterUsage--; |
3026 } | 3070 } |
3027 | 3071 |
3028 core.int buildCounterUsageRule = 0; | 3072 core.int buildCounterUsageRule = 0; |
3029 buildUsageRule() { | 3073 buildUsageRule() { |
3030 var o = new api.UsageRule(); | 3074 var o = new api.UsageRule(); |
3031 buildCounterUsageRule++; | 3075 buildCounterUsageRule++; |
3032 if (buildCounterUsageRule < 3) { | 3076 if (buildCounterUsageRule < 3) { |
3033 o.allowUnregisteredCalls = true; | 3077 o.allowUnregisteredCalls = true; |
3034 o.selector = "foo"; | 3078 o.selector = "foo"; |
3035 } | 3079 } |
3036 buildCounterUsageRule--; | 3080 buildCounterUsageRule--; |
3037 return o; | 3081 return o; |
3038 } | 3082 } |
3039 | 3083 |
3040 checkUsageRule(api.UsageRule o) { | 3084 checkUsageRule(api.UsageRule o) { |
3041 buildCounterUsageRule++; | 3085 buildCounterUsageRule++; |
3042 if (buildCounterUsageRule < 3) { | 3086 if (buildCounterUsageRule < 3) { |
3043 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 3087 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
3044 unittest.expect(o.selector, unittest.equals('foo')); | 3088 unittest.expect(o.selector, unittest.equals('foo')); |
3045 } | 3089 } |
3046 buildCounterUsageRule--; | 3090 buildCounterUsageRule--; |
3047 } | 3091 } |
3048 | 3092 |
3049 buildUnnamed1086() { | 3093 buildUnnamed1106() { |
3050 var o = new core.List<api.VisibilityRule>(); | 3094 var o = new core.List<api.VisibilityRule>(); |
3051 o.add(buildVisibilityRule()); | 3095 o.add(buildVisibilityRule()); |
3052 o.add(buildVisibilityRule()); | 3096 o.add(buildVisibilityRule()); |
3053 return o; | 3097 return o; |
3054 } | 3098 } |
3055 | 3099 |
3056 checkUnnamed1086(core.List<api.VisibilityRule> o) { | 3100 checkUnnamed1106(core.List<api.VisibilityRule> o) { |
3057 unittest.expect(o, unittest.hasLength(2)); | 3101 unittest.expect(o, unittest.hasLength(2)); |
3058 checkVisibilityRule(o[0]); | 3102 checkVisibilityRule(o[0]); |
3059 checkVisibilityRule(o[1]); | 3103 checkVisibilityRule(o[1]); |
3060 } | 3104 } |
3061 | 3105 |
3062 core.int buildCounterVisibility = 0; | 3106 core.int buildCounterVisibility = 0; |
3063 buildVisibility() { | 3107 buildVisibility() { |
3064 var o = new api.Visibility(); | 3108 var o = new api.Visibility(); |
3065 buildCounterVisibility++; | 3109 buildCounterVisibility++; |
3066 if (buildCounterVisibility < 3) { | 3110 if (buildCounterVisibility < 3) { |
3067 o.rules = buildUnnamed1086(); | 3111 o.rules = buildUnnamed1106(); |
3068 } | 3112 } |
3069 buildCounterVisibility--; | 3113 buildCounterVisibility--; |
3070 return o; | 3114 return o; |
3071 } | 3115 } |
3072 | 3116 |
3073 checkVisibility(api.Visibility o) { | 3117 checkVisibility(api.Visibility o) { |
3074 buildCounterVisibility++; | 3118 buildCounterVisibility++; |
3075 if (buildCounterVisibility < 3) { | 3119 if (buildCounterVisibility < 3) { |
3076 checkUnnamed1086(o.rules); | 3120 checkUnnamed1106(o.rules); |
3077 } | 3121 } |
3078 buildCounterVisibility--; | 3122 buildCounterVisibility--; |
3079 } | 3123 } |
3080 | 3124 |
3081 core.int buildCounterVisibilityRule = 0; | 3125 core.int buildCounterVisibilityRule = 0; |
3082 buildVisibilityRule() { | 3126 buildVisibilityRule() { |
3083 var o = new api.VisibilityRule(); | 3127 var o = new api.VisibilityRule(); |
3084 buildCounterVisibilityRule++; | 3128 buildCounterVisibilityRule++; |
3085 if (buildCounterVisibilityRule < 3) { | 3129 if (buildCounterVisibilityRule < 3) { |
3086 o.restriction = "foo"; | 3130 o.restriction = "foo"; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3166 | 3210 |
3167 unittest.group("obj-schema-AuthenticationRule", () { | 3211 unittest.group("obj-schema-AuthenticationRule", () { |
3168 unittest.test("to-json--from-json", () { | 3212 unittest.test("to-json--from-json", () { |
3169 var o = buildAuthenticationRule(); | 3213 var o = buildAuthenticationRule(); |
3170 var od = new api.AuthenticationRule.fromJson(o.toJson()); | 3214 var od = new api.AuthenticationRule.fromJson(o.toJson()); |
3171 checkAuthenticationRule(od); | 3215 checkAuthenticationRule(od); |
3172 }); | 3216 }); |
3173 }); | 3217 }); |
3174 | 3218 |
3175 | 3219 |
| 3220 unittest.group("obj-schema-AuthorizationConfig", () { |
| 3221 unittest.test("to-json--from-json", () { |
| 3222 var o = buildAuthorizationConfig(); |
| 3223 var od = new api.AuthorizationConfig.fromJson(o.toJson()); |
| 3224 checkAuthorizationConfig(od); |
| 3225 }); |
| 3226 }); |
| 3227 |
| 3228 |
3176 unittest.group("obj-schema-Backend", () { | 3229 unittest.group("obj-schema-Backend", () { |
3177 unittest.test("to-json--from-json", () { | 3230 unittest.test("to-json--from-json", () { |
3178 var o = buildBackend(); | 3231 var o = buildBackend(); |
3179 var od = new api.Backend.fromJson(o.toJson()); | 3232 var od = new api.Backend.fromJson(o.toJson()); |
3180 checkBackend(od); | 3233 checkBackend(od); |
3181 }); | 3234 }); |
3182 }); | 3235 }); |
3183 | 3236 |
3184 | 3237 |
3185 unittest.group("obj-schema-BackendRule", () { | 3238 unittest.group("obj-schema-BackendRule", () { |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3409 | 3462 |
3410 unittest.group("obj-schema-EnumValue", () { | 3463 unittest.group("obj-schema-EnumValue", () { |
3411 unittest.test("to-json--from-json", () { | 3464 unittest.test("to-json--from-json", () { |
3412 var o = buildEnumValue(); | 3465 var o = buildEnumValue(); |
3413 var od = new api.EnumValue.fromJson(o.toJson()); | 3466 var od = new api.EnumValue.fromJson(o.toJson()); |
3414 checkEnumValue(od); | 3467 checkEnumValue(od); |
3415 }); | 3468 }); |
3416 }); | 3469 }); |
3417 | 3470 |
3418 | 3471 |
| 3472 unittest.group("obj-schema-Experimental", () { |
| 3473 unittest.test("to-json--from-json", () { |
| 3474 var o = buildExperimental(); |
| 3475 var od = new api.Experimental.fromJson(o.toJson()); |
| 3476 checkExperimental(od); |
| 3477 }); |
| 3478 }); |
| 3479 |
| 3480 |
3419 unittest.group("obj-schema-Field", () { | 3481 unittest.group("obj-schema-Field", () { |
3420 unittest.test("to-json--from-json", () { | 3482 unittest.test("to-json--from-json", () { |
3421 var o = buildField(); | 3483 var o = buildField(); |
3422 var od = new api.Field.fromJson(o.toJson()); | 3484 var od = new api.Field.fromJson(o.toJson()); |
3423 checkField(od); | 3485 checkField(od); |
3424 }); | 3486 }); |
3425 }); | 3487 }); |
3426 | 3488 |
3427 | 3489 |
3428 unittest.group("obj-schema-GenerateConfigReportRequest", () { | 3490 unittest.group("obj-schema-GenerateConfigReportRequest", () { |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4212 res.get(arg_serviceName).then(unittest.expectAsync(((api.ManagedService re
sponse) { | 4274 res.get(arg_serviceName).then(unittest.expectAsync(((api.ManagedService re
sponse) { |
4213 checkManagedService(response); | 4275 checkManagedService(response); |
4214 }))); | 4276 }))); |
4215 }); | 4277 }); |
4216 | 4278 |
4217 unittest.test("method--getConfig", () { | 4279 unittest.test("method--getConfig", () { |
4218 | 4280 |
4219 var mock = new HttpServerMock(); | 4281 var mock = new HttpServerMock(); |
4220 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4282 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4221 var arg_serviceName = "foo"; | 4283 var arg_serviceName = "foo"; |
| 4284 var arg_view = "foo"; |
4222 var arg_configId = "foo"; | 4285 var arg_configId = "foo"; |
4223 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4286 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4224 var path = (req.url).path; | 4287 var path = (req.url).path; |
4225 var pathOffset = 0; | 4288 var pathOffset = 0; |
4226 var index; | 4289 var index; |
4227 var subPart; | 4290 var subPart; |
4228 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4291 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4229 pathOffset += 1; | 4292 pathOffset += 1; |
4230 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4293 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4231 pathOffset += 12; | 4294 pathOffset += 12; |
(...skipping 14 matching lines...) Expand all Loading... |
4246 if (n == "false") return false; | 4309 if (n == "false") return false; |
4247 if (n == null) return null; | 4310 if (n == null) return null; |
4248 throw new core.ArgumentError("Invalid boolean: $n"); | 4311 throw new core.ArgumentError("Invalid boolean: $n"); |
4249 } | 4312 } |
4250 if (query.length > 0) { | 4313 if (query.length > 0) { |
4251 for (var part in query.split("&")) { | 4314 for (var part in query.split("&")) { |
4252 var keyvalue = part.split("="); | 4315 var keyvalue = part.split("="); |
4253 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4254 } | 4317 } |
4255 } | 4318 } |
| 4319 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
4256 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId
)); | 4320 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId
)); |
4257 | 4321 |
4258 | 4322 |
4259 var h = { | 4323 var h = { |
4260 "content-type" : "application/json; charset=utf-8", | 4324 "content-type" : "application/json; charset=utf-8", |
4261 }; | 4325 }; |
4262 var resp = convert.JSON.encode(buildService()); | 4326 var resp = convert.JSON.encode(buildService()); |
4263 return new async.Future.value(stringResponse(200, h, resp)); | 4327 return new async.Future.value(stringResponse(200, h, resp)); |
4264 }), true); | 4328 }), true); |
4265 res.getConfig(arg_serviceName, configId: arg_configId).then(unittest.expec
tAsync(((api.Service response) { | 4329 res.getConfig(arg_serviceName, view: arg_view, configId: arg_configId).the
n(unittest.expectAsync(((api.Service response) { |
4266 checkService(response); | 4330 checkService(response); |
4267 }))); | 4331 }))); |
4268 }); | 4332 }); |
4269 | 4333 |
4270 unittest.test("method--getIamPolicy", () { | 4334 unittest.test("method--getIamPolicy", () { |
4271 | 4335 |
4272 var mock = new HttpServerMock(); | 4336 var mock = new HttpServerMock(); |
4273 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4337 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4274 var arg_request = buildGetIamPolicyRequest(); | 4338 var arg_request = buildGetIamPolicyRequest(); |
4275 var arg_resource = "foo"; | 4339 var arg_resource = "foo"; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4574 checkService(response); | 4638 checkService(response); |
4575 }))); | 4639 }))); |
4576 }); | 4640 }); |
4577 | 4641 |
4578 unittest.test("method--get", () { | 4642 unittest.test("method--get", () { |
4579 | 4643 |
4580 var mock = new HttpServerMock(); | 4644 var mock = new HttpServerMock(); |
4581 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; | 4645 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; |
4582 var arg_serviceName = "foo"; | 4646 var arg_serviceName = "foo"; |
4583 var arg_configId = "foo"; | 4647 var arg_configId = "foo"; |
| 4648 var arg_view = "foo"; |
4584 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4649 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4585 var path = (req.url).path; | 4650 var path = (req.url).path; |
4586 var pathOffset = 0; | 4651 var pathOffset = 0; |
4587 var index; | 4652 var index; |
4588 var subPart; | 4653 var subPart; |
4589 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4654 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4590 pathOffset += 1; | 4655 pathOffset += 1; |
4591 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4656 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4592 pathOffset += 12; | 4657 pathOffset += 12; |
4593 index = path.indexOf("/configs/", pathOffset); | 4658 index = path.indexOf("/configs/", pathOffset); |
(...skipping 16 matching lines...) Expand all Loading... |
4610 if (n == "false") return false; | 4675 if (n == "false") return false; |
4611 if (n == null) return null; | 4676 if (n == null) return null; |
4612 throw new core.ArgumentError("Invalid boolean: $n"); | 4677 throw new core.ArgumentError("Invalid boolean: $n"); |
4613 } | 4678 } |
4614 if (query.length > 0) { | 4679 if (query.length > 0) { |
4615 for (var part in query.split("&")) { | 4680 for (var part in query.split("&")) { |
4616 var keyvalue = part.split("="); | 4681 var keyvalue = part.split("="); |
4617 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4682 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4618 } | 4683 } |
4619 } | 4684 } |
| 4685 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
4620 | 4686 |
4621 | 4687 |
4622 var h = { | 4688 var h = { |
4623 "content-type" : "application/json; charset=utf-8", | 4689 "content-type" : "application/json; charset=utf-8", |
4624 }; | 4690 }; |
4625 var resp = convert.JSON.encode(buildService()); | 4691 var resp = convert.JSON.encode(buildService()); |
4626 return new async.Future.value(stringResponse(200, h, resp)); | 4692 return new async.Future.value(stringResponse(200, h, resp)); |
4627 }), true); | 4693 }), true); |
4628 res.get(arg_serviceName, arg_configId).then(unittest.expectAsync(((api.Ser
vice response) { | 4694 res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expec
tAsync(((api.Service response) { |
4629 checkService(response); | 4695 checkService(response); |
4630 }))); | 4696 }))); |
4631 }); | 4697 }); |
4632 | 4698 |
4633 unittest.test("method--list", () { | 4699 unittest.test("method--list", () { |
4634 | 4700 |
4635 var mock = new HttpServerMock(); | 4701 var mock = new HttpServerMock(); |
4636 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; | 4702 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; |
4637 var arg_serviceName = "foo"; | 4703 var arg_serviceName = "foo"; |
4638 var arg_pageToken = "foo"; | 4704 var arg_pageToken = "foo"; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4852 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync(((api.Ro
llout response) { | 4918 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync(((api.Ro
llout response) { |
4853 checkRollout(response); | 4919 checkRollout(response); |
4854 }))); | 4920 }))); |
4855 }); | 4921 }); |
4856 | 4922 |
4857 unittest.test("method--list", () { | 4923 unittest.test("method--list", () { |
4858 | 4924 |
4859 var mock = new HttpServerMock(); | 4925 var mock = new HttpServerMock(); |
4860 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; | 4926 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; |
4861 var arg_serviceName = "foo"; | 4927 var arg_serviceName = "foo"; |
| 4928 var arg_pageSize = 42; |
4862 var arg_pageToken = "foo"; | 4929 var arg_pageToken = "foo"; |
4863 var arg_pageSize = 42; | |
4864 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4930 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4865 var path = (req.url).path; | 4931 var path = (req.url).path; |
4866 var pathOffset = 0; | 4932 var pathOffset = 0; |
4867 var index; | 4933 var index; |
4868 var subPart; | 4934 var subPart; |
4869 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4870 pathOffset += 1; | 4936 pathOffset += 1; |
4871 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4937 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4872 pathOffset += 12; | 4938 pathOffset += 12; |
4873 index = path.indexOf("/rollouts", pathOffset); | 4939 index = path.indexOf("/rollouts", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
4887 if (n == "false") return false; | 4953 if (n == "false") return false; |
4888 if (n == null) return null; | 4954 if (n == null) return null; |
4889 throw new core.ArgumentError("Invalid boolean: $n"); | 4955 throw new core.ArgumentError("Invalid boolean: $n"); |
4890 } | 4956 } |
4891 if (query.length > 0) { | 4957 if (query.length > 0) { |
4892 for (var part in query.split("&")) { | 4958 for (var part in query.split("&")) { |
4893 var keyvalue = part.split("="); | 4959 var keyvalue = part.split("="); |
4894 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4960 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4895 } | 4961 } |
4896 } | 4962 } |
| 4963 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4897 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4964 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4898 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
4899 | 4965 |
4900 | 4966 |
4901 var h = { | 4967 var h = { |
4902 "content-type" : "application/json; charset=utf-8", | 4968 "content-type" : "application/json; charset=utf-8", |
4903 }; | 4969 }; |
4904 var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); | 4970 var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); |
4905 return new async.Future.value(stringResponse(200, h, resp)); | 4971 return new async.Future.value(stringResponse(200, h, resp)); |
4906 }), true); | 4972 }), true); |
4907 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize
).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) { | 4973 res.list(arg_serviceName, pageSize: arg_pageSize, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) { |
4908 checkListServiceRolloutsResponse(response); | 4974 checkListServiceRolloutsResponse(response); |
4909 }))); | 4975 }))); |
4910 }); | 4976 }); |
4911 | 4977 |
4912 }); | 4978 }); |
4913 | 4979 |
4914 | 4980 |
4915 } | 4981 } |
4916 | 4982 |
OLD | NEW |