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:test/test.dart' as unittest; | 10 import 'package:test/test.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 buildUnnamed1124() { | 73 buildUnnamed1141() { |
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 checkUnnamed1124(core.List<api.Method> o) { | 80 checkUnnamed1141(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 buildUnnamed1125() { | 86 buildUnnamed1142() { |
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 checkUnnamed1125(core.List<api.Mixin> o) { | 93 checkUnnamed1142(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 buildUnnamed1126() { | 99 buildUnnamed1143() { |
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 checkUnnamed1126(core.List<api.Option> o) { | 106 checkUnnamed1143(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 = buildUnnamed1124(); | 117 o.methods = buildUnnamed1141(); |
118 o.mixins = buildUnnamed1125(); | 118 o.mixins = buildUnnamed1142(); |
119 o.name = "foo"; | 119 o.name = "foo"; |
120 o.options = buildUnnamed1126(); | 120 o.options = buildUnnamed1143(); |
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 checkUnnamed1124(o.methods); | 132 checkUnnamed1141(o.methods); |
133 checkUnnamed1125(o.mixins); | 133 checkUnnamed1142(o.mixins); |
134 unittest.expect(o.name, unittest.equals('foo')); | 134 unittest.expect(o.name, unittest.equals('foo')); |
135 checkUnnamed1126(o.options); | 135 checkUnnamed1143(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 buildUnnamed1127() { | 143 buildUnnamed1144() { |
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 checkUnnamed1127(core.List<api.AuditLogConfig> o) { | 150 checkUnnamed1144(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 buildUnnamed1128() { | 156 buildUnnamed1145() { |
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 checkUnnamed1128(core.List<core.String> o) { | 163 checkUnnamed1145(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 = buildUnnamed1127(); | 174 o.auditLogConfigs = buildUnnamed1144(); |
175 o.exemptedMembers = buildUnnamed1128(); | 175 o.exemptedMembers = buildUnnamed1145(); |
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 checkUnnamed1127(o.auditLogConfigs); | 185 checkUnnamed1144(o.auditLogConfigs); |
186 checkUnnamed1128(o.exemptedMembers); | 186 checkUnnamed1145(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 buildUnnamed1129() { | 192 buildUnnamed1146() { |
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 checkUnnamed1129(core.List<core.String> o) { | 199 checkUnnamed1146(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 = buildUnnamed1129(); | 210 o.exemptedMembers = buildUnnamed1146(); |
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 checkUnnamed1129(o.exemptedMembers); | 220 checkUnnamed1146(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) { |
231 o.audiences = "foo"; | 231 o.audiences = "foo"; |
| 232 o.authorizationUrl = "foo"; |
232 o.id = "foo"; | 233 o.id = "foo"; |
233 o.issuer = "foo"; | 234 o.issuer = "foo"; |
234 o.jwksUri = "foo"; | 235 o.jwksUri = "foo"; |
235 } | 236 } |
236 buildCounterAuthProvider--; | 237 buildCounterAuthProvider--; |
237 return o; | 238 return o; |
238 } | 239 } |
239 | 240 |
240 checkAuthProvider(api.AuthProvider o) { | 241 checkAuthProvider(api.AuthProvider o) { |
241 buildCounterAuthProvider++; | 242 buildCounterAuthProvider++; |
242 if (buildCounterAuthProvider < 3) { | 243 if (buildCounterAuthProvider < 3) { |
243 unittest.expect(o.audiences, unittest.equals('foo')); | 244 unittest.expect(o.audiences, unittest.equals('foo')); |
| 245 unittest.expect(o.authorizationUrl, unittest.equals('foo')); |
244 unittest.expect(o.id, unittest.equals('foo')); | 246 unittest.expect(o.id, unittest.equals('foo')); |
245 unittest.expect(o.issuer, unittest.equals('foo')); | 247 unittest.expect(o.issuer, unittest.equals('foo')); |
246 unittest.expect(o.jwksUri, unittest.equals('foo')); | 248 unittest.expect(o.jwksUri, unittest.equals('foo')); |
247 } | 249 } |
248 buildCounterAuthProvider--; | 250 buildCounterAuthProvider--; |
249 } | 251 } |
250 | 252 |
251 core.int buildCounterAuthRequirement = 0; | 253 core.int buildCounterAuthRequirement = 0; |
252 buildAuthRequirement() { | 254 buildAuthRequirement() { |
253 var o = new api.AuthRequirement(); | 255 var o = new api.AuthRequirement(); |
254 buildCounterAuthRequirement++; | 256 buildCounterAuthRequirement++; |
255 if (buildCounterAuthRequirement < 3) { | 257 if (buildCounterAuthRequirement < 3) { |
256 o.audiences = "foo"; | 258 o.audiences = "foo"; |
257 o.providerId = "foo"; | 259 o.providerId = "foo"; |
258 } | 260 } |
259 buildCounterAuthRequirement--; | 261 buildCounterAuthRequirement--; |
260 return o; | 262 return o; |
261 } | 263 } |
262 | 264 |
263 checkAuthRequirement(api.AuthRequirement o) { | 265 checkAuthRequirement(api.AuthRequirement o) { |
264 buildCounterAuthRequirement++; | 266 buildCounterAuthRequirement++; |
265 if (buildCounterAuthRequirement < 3) { | 267 if (buildCounterAuthRequirement < 3) { |
266 unittest.expect(o.audiences, unittest.equals('foo')); | 268 unittest.expect(o.audiences, unittest.equals('foo')); |
267 unittest.expect(o.providerId, unittest.equals('foo')); | 269 unittest.expect(o.providerId, unittest.equals('foo')); |
268 } | 270 } |
269 buildCounterAuthRequirement--; | 271 buildCounterAuthRequirement--; |
270 } | 272 } |
271 | 273 |
272 buildUnnamed1130() { | 274 buildUnnamed1147() { |
273 var o = new core.List<api.AuthProvider>(); | 275 var o = new core.List<api.AuthProvider>(); |
274 o.add(buildAuthProvider()); | 276 o.add(buildAuthProvider()); |
275 o.add(buildAuthProvider()); | 277 o.add(buildAuthProvider()); |
276 return o; | 278 return o; |
277 } | 279 } |
278 | 280 |
279 checkUnnamed1130(core.List<api.AuthProvider> o) { | 281 checkUnnamed1147(core.List<api.AuthProvider> o) { |
280 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
281 checkAuthProvider(o[0]); | 283 checkAuthProvider(o[0]); |
282 checkAuthProvider(o[1]); | 284 checkAuthProvider(o[1]); |
283 } | 285 } |
284 | 286 |
285 buildUnnamed1131() { | 287 buildUnnamed1148() { |
286 var o = new core.List<api.AuthenticationRule>(); | 288 var o = new core.List<api.AuthenticationRule>(); |
287 o.add(buildAuthenticationRule()); | 289 o.add(buildAuthenticationRule()); |
288 o.add(buildAuthenticationRule()); | 290 o.add(buildAuthenticationRule()); |
289 return o; | 291 return o; |
290 } | 292 } |
291 | 293 |
292 checkUnnamed1131(core.List<api.AuthenticationRule> o) { | 294 checkUnnamed1148(core.List<api.AuthenticationRule> o) { |
293 unittest.expect(o, unittest.hasLength(2)); | 295 unittest.expect(o, unittest.hasLength(2)); |
294 checkAuthenticationRule(o[0]); | 296 checkAuthenticationRule(o[0]); |
295 checkAuthenticationRule(o[1]); | 297 checkAuthenticationRule(o[1]); |
296 } | 298 } |
297 | 299 |
298 core.int buildCounterAuthentication = 0; | 300 core.int buildCounterAuthentication = 0; |
299 buildAuthentication() { | 301 buildAuthentication() { |
300 var o = new api.Authentication(); | 302 var o = new api.Authentication(); |
301 buildCounterAuthentication++; | 303 buildCounterAuthentication++; |
302 if (buildCounterAuthentication < 3) { | 304 if (buildCounterAuthentication < 3) { |
303 o.providers = buildUnnamed1130(); | 305 o.providers = buildUnnamed1147(); |
304 o.rules = buildUnnamed1131(); | 306 o.rules = buildUnnamed1148(); |
305 } | 307 } |
306 buildCounterAuthentication--; | 308 buildCounterAuthentication--; |
307 return o; | 309 return o; |
308 } | 310 } |
309 | 311 |
310 checkAuthentication(api.Authentication o) { | 312 checkAuthentication(api.Authentication o) { |
311 buildCounterAuthentication++; | 313 buildCounterAuthentication++; |
312 if (buildCounterAuthentication < 3) { | 314 if (buildCounterAuthentication < 3) { |
313 checkUnnamed1130(o.providers); | 315 checkUnnamed1147(o.providers); |
314 checkUnnamed1131(o.rules); | 316 checkUnnamed1148(o.rules); |
315 } | 317 } |
316 buildCounterAuthentication--; | 318 buildCounterAuthentication--; |
317 } | 319 } |
318 | 320 |
319 buildUnnamed1132() { | 321 buildUnnamed1149() { |
320 var o = new core.List<api.AuthRequirement>(); | 322 var o = new core.List<api.AuthRequirement>(); |
321 o.add(buildAuthRequirement()); | 323 o.add(buildAuthRequirement()); |
322 o.add(buildAuthRequirement()); | 324 o.add(buildAuthRequirement()); |
323 return o; | 325 return o; |
324 } | 326 } |
325 | 327 |
326 checkUnnamed1132(core.List<api.AuthRequirement> o) { | 328 checkUnnamed1149(core.List<api.AuthRequirement> o) { |
327 unittest.expect(o, unittest.hasLength(2)); | 329 unittest.expect(o, unittest.hasLength(2)); |
328 checkAuthRequirement(o[0]); | 330 checkAuthRequirement(o[0]); |
329 checkAuthRequirement(o[1]); | 331 checkAuthRequirement(o[1]); |
330 } | 332 } |
331 | 333 |
332 core.int buildCounterAuthenticationRule = 0; | 334 core.int buildCounterAuthenticationRule = 0; |
333 buildAuthenticationRule() { | 335 buildAuthenticationRule() { |
334 var o = new api.AuthenticationRule(); | 336 var o = new api.AuthenticationRule(); |
335 buildCounterAuthenticationRule++; | 337 buildCounterAuthenticationRule++; |
336 if (buildCounterAuthenticationRule < 3) { | 338 if (buildCounterAuthenticationRule < 3) { |
337 o.allowWithoutCredential = true; | 339 o.allowWithoutCredential = true; |
338 o.customAuth = buildCustomAuthRequirements(); | 340 o.customAuth = buildCustomAuthRequirements(); |
339 o.oauth = buildOAuthRequirements(); | 341 o.oauth = buildOAuthRequirements(); |
340 o.requirements = buildUnnamed1132(); | 342 o.requirements = buildUnnamed1149(); |
341 o.selector = "foo"; | 343 o.selector = "foo"; |
342 } | 344 } |
343 buildCounterAuthenticationRule--; | 345 buildCounterAuthenticationRule--; |
344 return o; | 346 return o; |
345 } | 347 } |
346 | 348 |
347 checkAuthenticationRule(api.AuthenticationRule o) { | 349 checkAuthenticationRule(api.AuthenticationRule o) { |
348 buildCounterAuthenticationRule++; | 350 buildCounterAuthenticationRule++; |
349 if (buildCounterAuthenticationRule < 3) { | 351 if (buildCounterAuthenticationRule < 3) { |
350 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 352 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
351 checkCustomAuthRequirements(o.customAuth); | 353 checkCustomAuthRequirements(o.customAuth); |
352 checkOAuthRequirements(o.oauth); | 354 checkOAuthRequirements(o.oauth); |
353 checkUnnamed1132(o.requirements); | 355 checkUnnamed1149(o.requirements); |
354 unittest.expect(o.selector, unittest.equals('foo')); | 356 unittest.expect(o.selector, unittest.equals('foo')); |
355 } | 357 } |
356 buildCounterAuthenticationRule--; | 358 buildCounterAuthenticationRule--; |
357 } | 359 } |
358 | 360 |
359 core.int buildCounterAuthorizationConfig = 0; | 361 core.int buildCounterAuthorizationConfig = 0; |
360 buildAuthorizationConfig() { | 362 buildAuthorizationConfig() { |
361 var o = new api.AuthorizationConfig(); | 363 var o = new api.AuthorizationConfig(); |
362 buildCounterAuthorizationConfig++; | 364 buildCounterAuthorizationConfig++; |
363 if (buildCounterAuthorizationConfig < 3) { | 365 if (buildCounterAuthorizationConfig < 3) { |
364 o.provider = "foo"; | 366 o.provider = "foo"; |
365 } | 367 } |
366 buildCounterAuthorizationConfig--; | 368 buildCounterAuthorizationConfig--; |
367 return o; | 369 return o; |
368 } | 370 } |
369 | 371 |
370 checkAuthorizationConfig(api.AuthorizationConfig o) { | 372 checkAuthorizationConfig(api.AuthorizationConfig o) { |
371 buildCounterAuthorizationConfig++; | 373 buildCounterAuthorizationConfig++; |
372 if (buildCounterAuthorizationConfig < 3) { | 374 if (buildCounterAuthorizationConfig < 3) { |
373 unittest.expect(o.provider, unittest.equals('foo')); | 375 unittest.expect(o.provider, unittest.equals('foo')); |
374 } | 376 } |
375 buildCounterAuthorizationConfig--; | 377 buildCounterAuthorizationConfig--; |
376 } | 378 } |
377 | 379 |
378 buildUnnamed1133() { | 380 buildUnnamed1150() { |
379 var o = new core.List<api.BackendRule>(); | 381 var o = new core.List<api.BackendRule>(); |
380 o.add(buildBackendRule()); | 382 o.add(buildBackendRule()); |
381 o.add(buildBackendRule()); | 383 o.add(buildBackendRule()); |
382 return o; | 384 return o; |
383 } | 385 } |
384 | 386 |
385 checkUnnamed1133(core.List<api.BackendRule> o) { | 387 checkUnnamed1150(core.List<api.BackendRule> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 388 unittest.expect(o, unittest.hasLength(2)); |
387 checkBackendRule(o[0]); | 389 checkBackendRule(o[0]); |
388 checkBackendRule(o[1]); | 390 checkBackendRule(o[1]); |
389 } | 391 } |
390 | 392 |
391 core.int buildCounterBackend = 0; | 393 core.int buildCounterBackend = 0; |
392 buildBackend() { | 394 buildBackend() { |
393 var o = new api.Backend(); | 395 var o = new api.Backend(); |
394 buildCounterBackend++; | 396 buildCounterBackend++; |
395 if (buildCounterBackend < 3) { | 397 if (buildCounterBackend < 3) { |
396 o.rules = buildUnnamed1133(); | 398 o.rules = buildUnnamed1150(); |
397 } | 399 } |
398 buildCounterBackend--; | 400 buildCounterBackend--; |
399 return o; | 401 return o; |
400 } | 402 } |
401 | 403 |
402 checkBackend(api.Backend o) { | 404 checkBackend(api.Backend o) { |
403 buildCounterBackend++; | 405 buildCounterBackend++; |
404 if (buildCounterBackend < 3) { | 406 if (buildCounterBackend < 3) { |
405 checkUnnamed1133(o.rules); | 407 checkUnnamed1150(o.rules); |
406 } | 408 } |
407 buildCounterBackend--; | 409 buildCounterBackend--; |
408 } | 410 } |
409 | 411 |
410 core.int buildCounterBackendRule = 0; | 412 core.int buildCounterBackendRule = 0; |
411 buildBackendRule() { | 413 buildBackendRule() { |
412 var o = new api.BackendRule(); | 414 var o = new api.BackendRule(); |
413 buildCounterBackendRule++; | 415 buildCounterBackendRule++; |
414 if (buildCounterBackendRule < 3) { | 416 if (buildCounterBackendRule < 3) { |
415 o.address = "foo"; | 417 o.address = "foo"; |
416 o.deadline = 42.0; | 418 o.deadline = 42.0; |
417 o.minDeadline = 42.0; | 419 o.minDeadline = 42.0; |
418 o.selector = "foo"; | 420 o.selector = "foo"; |
419 } | 421 } |
420 buildCounterBackendRule--; | 422 buildCounterBackendRule--; |
421 return o; | 423 return o; |
422 } | 424 } |
423 | 425 |
424 checkBackendRule(api.BackendRule o) { | 426 checkBackendRule(api.BackendRule o) { |
425 buildCounterBackendRule++; | 427 buildCounterBackendRule++; |
426 if (buildCounterBackendRule < 3) { | 428 if (buildCounterBackendRule < 3) { |
427 unittest.expect(o.address, unittest.equals('foo')); | 429 unittest.expect(o.address, unittest.equals('foo')); |
428 unittest.expect(o.deadline, unittest.equals(42.0)); | 430 unittest.expect(o.deadline, unittest.equals(42.0)); |
429 unittest.expect(o.minDeadline, unittest.equals(42.0)); | 431 unittest.expect(o.minDeadline, unittest.equals(42.0)); |
430 unittest.expect(o.selector, unittest.equals('foo')); | 432 unittest.expect(o.selector, unittest.equals('foo')); |
431 } | 433 } |
432 buildCounterBackendRule--; | 434 buildCounterBackendRule--; |
433 } | 435 } |
434 | 436 |
435 buildUnnamed1134() { | 437 buildUnnamed1151() { |
436 var o = new core.List<core.String>(); | 438 var o = new core.List<core.String>(); |
437 o.add("foo"); | 439 o.add("foo"); |
438 o.add("foo"); | 440 o.add("foo"); |
439 return o; | 441 return o; |
440 } | 442 } |
441 | 443 |
442 checkUnnamed1134(core.List<core.String> o) { | 444 checkUnnamed1151(core.List<core.String> o) { |
443 unittest.expect(o, unittest.hasLength(2)); | 445 unittest.expect(o, unittest.hasLength(2)); |
444 unittest.expect(o[0], unittest.equals('foo')); | 446 unittest.expect(o[0], unittest.equals('foo')); |
445 unittest.expect(o[1], unittest.equals('foo')); | 447 unittest.expect(o[1], unittest.equals('foo')); |
446 } | 448 } |
447 | 449 |
448 core.int buildCounterBinding = 0; | 450 core.int buildCounterBinding = 0; |
449 buildBinding() { | 451 buildBinding() { |
450 var o = new api.Binding(); | 452 var o = new api.Binding(); |
451 buildCounterBinding++; | 453 buildCounterBinding++; |
452 if (buildCounterBinding < 3) { | 454 if (buildCounterBinding < 3) { |
453 o.condition = buildExpr(); | 455 o.condition = buildExpr(); |
454 o.members = buildUnnamed1134(); | 456 o.members = buildUnnamed1151(); |
455 o.role = "foo"; | 457 o.role = "foo"; |
456 } | 458 } |
457 buildCounterBinding--; | 459 buildCounterBinding--; |
458 return o; | 460 return o; |
459 } | 461 } |
460 | 462 |
461 checkBinding(api.Binding o) { | 463 checkBinding(api.Binding o) { |
462 buildCounterBinding++; | 464 buildCounterBinding++; |
463 if (buildCounterBinding < 3) { | 465 if (buildCounterBinding < 3) { |
464 checkExpr(o.condition); | 466 checkExpr(o.condition); |
465 checkUnnamed1134(o.members); | 467 checkUnnamed1151(o.members); |
466 unittest.expect(o.role, unittest.equals('foo')); | 468 unittest.expect(o.role, unittest.equals('foo')); |
467 } | 469 } |
468 buildCounterBinding--; | 470 buildCounterBinding--; |
469 } | 471 } |
470 | 472 |
471 buildUnnamed1135() { | 473 buildUnnamed1152() { |
472 var o = new core.List<api.ConfigChange>(); | 474 var o = new core.List<api.ConfigChange>(); |
473 o.add(buildConfigChange()); | 475 o.add(buildConfigChange()); |
474 o.add(buildConfigChange()); | 476 o.add(buildConfigChange()); |
475 return o; | 477 return o; |
476 } | 478 } |
477 | 479 |
478 checkUnnamed1135(core.List<api.ConfigChange> o) { | 480 checkUnnamed1152(core.List<api.ConfigChange> o) { |
479 unittest.expect(o, unittest.hasLength(2)); | 481 unittest.expect(o, unittest.hasLength(2)); |
480 checkConfigChange(o[0]); | 482 checkConfigChange(o[0]); |
481 checkConfigChange(o[1]); | 483 checkConfigChange(o[1]); |
482 } | 484 } |
483 | 485 |
484 core.int buildCounterChangeReport = 0; | 486 core.int buildCounterChangeReport = 0; |
485 buildChangeReport() { | 487 buildChangeReport() { |
486 var o = new api.ChangeReport(); | 488 var o = new api.ChangeReport(); |
487 buildCounterChangeReport++; | 489 buildCounterChangeReport++; |
488 if (buildCounterChangeReport < 3) { | 490 if (buildCounterChangeReport < 3) { |
489 o.configChanges = buildUnnamed1135(); | 491 o.configChanges = buildUnnamed1152(); |
490 } | 492 } |
491 buildCounterChangeReport--; | 493 buildCounterChangeReport--; |
492 return o; | 494 return o; |
493 } | 495 } |
494 | 496 |
495 checkChangeReport(api.ChangeReport o) { | 497 checkChangeReport(api.ChangeReport o) { |
496 buildCounterChangeReport++; | 498 buildCounterChangeReport++; |
497 if (buildCounterChangeReport < 3) { | 499 if (buildCounterChangeReport < 3) { |
498 checkUnnamed1135(o.configChanges); | 500 checkUnnamed1152(o.configChanges); |
499 } | 501 } |
500 buildCounterChangeReport--; | 502 buildCounterChangeReport--; |
501 } | 503 } |
502 | 504 |
503 core.int buildCounterCloudAuditOptions = 0; | 505 core.int buildCounterCloudAuditOptions = 0; |
504 buildCloudAuditOptions() { | 506 buildCloudAuditOptions() { |
505 var o = new api.CloudAuditOptions(); | 507 var o = new api.CloudAuditOptions(); |
506 buildCounterCloudAuditOptions++; | 508 buildCounterCloudAuditOptions++; |
507 if (buildCounterCloudAuditOptions < 3) { | 509 if (buildCounterCloudAuditOptions < 3) { |
508 o.isReadPermissionType = true; | |
509 o.logName = "foo"; | 510 o.logName = "foo"; |
510 } | 511 } |
511 buildCounterCloudAuditOptions--; | 512 buildCounterCloudAuditOptions--; |
512 return o; | 513 return o; |
513 } | 514 } |
514 | 515 |
515 checkCloudAuditOptions(api.CloudAuditOptions o) { | 516 checkCloudAuditOptions(api.CloudAuditOptions o) { |
516 buildCounterCloudAuditOptions++; | 517 buildCounterCloudAuditOptions++; |
517 if (buildCounterCloudAuditOptions < 3) { | 518 if (buildCounterCloudAuditOptions < 3) { |
518 unittest.expect(o.isReadPermissionType, unittest.isTrue); | |
519 unittest.expect(o.logName, unittest.equals('foo')); | 519 unittest.expect(o.logName, unittest.equals('foo')); |
520 } | 520 } |
521 buildCounterCloudAuditOptions--; | 521 buildCounterCloudAuditOptions--; |
522 } | 522 } |
523 | 523 |
524 buildUnnamed1136() { | 524 buildUnnamed1153() { |
525 var o = new core.List<core.String>(); | 525 var o = new core.List<core.String>(); |
526 o.add("foo"); | 526 o.add("foo"); |
527 o.add("foo"); | 527 o.add("foo"); |
528 return o; | 528 return o; |
529 } | 529 } |
530 | 530 |
531 checkUnnamed1136(core.List<core.String> o) { | 531 checkUnnamed1153(core.List<core.String> o) { |
532 unittest.expect(o, unittest.hasLength(2)); | 532 unittest.expect(o, unittest.hasLength(2)); |
533 unittest.expect(o[0], unittest.equals('foo')); | 533 unittest.expect(o[0], unittest.equals('foo')); |
534 unittest.expect(o[1], unittest.equals('foo')); | 534 unittest.expect(o[1], unittest.equals('foo')); |
535 } | 535 } |
536 | 536 |
537 core.int buildCounterCondition = 0; | 537 core.int buildCounterCondition = 0; |
538 buildCondition() { | 538 buildCondition() { |
539 var o = new api.Condition(); | 539 var o = new api.Condition(); |
540 buildCounterCondition++; | 540 buildCounterCondition++; |
541 if (buildCounterCondition < 3) { | 541 if (buildCounterCondition < 3) { |
542 o.iam = "foo"; | 542 o.iam = "foo"; |
543 o.op = "foo"; | 543 o.op = "foo"; |
544 o.svc = "foo"; | 544 o.svc = "foo"; |
545 o.sys = "foo"; | 545 o.sys = "foo"; |
546 o.value = "foo"; | 546 o.value = "foo"; |
547 o.values = buildUnnamed1136(); | 547 o.values = buildUnnamed1153(); |
548 } | 548 } |
549 buildCounterCondition--; | 549 buildCounterCondition--; |
550 return o; | 550 return o; |
551 } | 551 } |
552 | 552 |
553 checkCondition(api.Condition o) { | 553 checkCondition(api.Condition o) { |
554 buildCounterCondition++; | 554 buildCounterCondition++; |
555 if (buildCounterCondition < 3) { | 555 if (buildCounterCondition < 3) { |
556 unittest.expect(o.iam, unittest.equals('foo')); | 556 unittest.expect(o.iam, unittest.equals('foo')); |
557 unittest.expect(o.op, unittest.equals('foo')); | 557 unittest.expect(o.op, unittest.equals('foo')); |
558 unittest.expect(o.svc, unittest.equals('foo')); | 558 unittest.expect(o.svc, unittest.equals('foo')); |
559 unittest.expect(o.sys, unittest.equals('foo')); | 559 unittest.expect(o.sys, unittest.equals('foo')); |
560 unittest.expect(o.value, unittest.equals('foo')); | 560 unittest.expect(o.value, unittest.equals('foo')); |
561 checkUnnamed1136(o.values); | 561 checkUnnamed1153(o.values); |
562 } | 562 } |
563 buildCounterCondition--; | 563 buildCounterCondition--; |
564 } | 564 } |
565 | 565 |
566 buildUnnamed1137() { | 566 buildUnnamed1154() { |
567 var o = new core.List<api.Advice>(); | 567 var o = new core.List<api.Advice>(); |
568 o.add(buildAdvice()); | 568 o.add(buildAdvice()); |
569 o.add(buildAdvice()); | 569 o.add(buildAdvice()); |
570 return o; | 570 return o; |
571 } | 571 } |
572 | 572 |
573 checkUnnamed1137(core.List<api.Advice> o) { | 573 checkUnnamed1154(core.List<api.Advice> o) { |
574 unittest.expect(o, unittest.hasLength(2)); | 574 unittest.expect(o, unittest.hasLength(2)); |
575 checkAdvice(o[0]); | 575 checkAdvice(o[0]); |
576 checkAdvice(o[1]); | 576 checkAdvice(o[1]); |
577 } | 577 } |
578 | 578 |
579 core.int buildCounterConfigChange = 0; | 579 core.int buildCounterConfigChange = 0; |
580 buildConfigChange() { | 580 buildConfigChange() { |
581 var o = new api.ConfigChange(); | 581 var o = new api.ConfigChange(); |
582 buildCounterConfigChange++; | 582 buildCounterConfigChange++; |
583 if (buildCounterConfigChange < 3) { | 583 if (buildCounterConfigChange < 3) { |
584 o.advices = buildUnnamed1137(); | 584 o.advices = buildUnnamed1154(); |
585 o.changeType = "foo"; | 585 o.changeType = "foo"; |
586 o.element = "foo"; | 586 o.element = "foo"; |
587 o.newValue = "foo"; | 587 o.newValue = "foo"; |
588 o.oldValue = "foo"; | 588 o.oldValue = "foo"; |
589 } | 589 } |
590 buildCounterConfigChange--; | 590 buildCounterConfigChange--; |
591 return o; | 591 return o; |
592 } | 592 } |
593 | 593 |
594 checkConfigChange(api.ConfigChange o) { | 594 checkConfigChange(api.ConfigChange o) { |
595 buildCounterConfigChange++; | 595 buildCounterConfigChange++; |
596 if (buildCounterConfigChange < 3) { | 596 if (buildCounterConfigChange < 3) { |
597 checkUnnamed1137(o.advices); | 597 checkUnnamed1154(o.advices); |
598 unittest.expect(o.changeType, unittest.equals('foo')); | 598 unittest.expect(o.changeType, unittest.equals('foo')); |
599 unittest.expect(o.element, unittest.equals('foo')); | 599 unittest.expect(o.element, unittest.equals('foo')); |
600 unittest.expect(o.newValue, unittest.equals('foo')); | 600 unittest.expect(o.newValue, unittest.equals('foo')); |
601 unittest.expect(o.oldValue, unittest.equals('foo')); | 601 unittest.expect(o.oldValue, unittest.equals('foo')); |
602 } | 602 } |
603 buildCounterConfigChange--; | 603 buildCounterConfigChange--; |
604 } | 604 } |
605 | 605 |
606 core.int buildCounterConfigFile = 0; | 606 core.int buildCounterConfigFile = 0; |
607 buildConfigFile() { | 607 buildConfigFile() { |
(...skipping 30 matching lines...) Expand all Loading... |
638 } | 638 } |
639 | 639 |
640 checkConfigRef(api.ConfigRef o) { | 640 checkConfigRef(api.ConfigRef o) { |
641 buildCounterConfigRef++; | 641 buildCounterConfigRef++; |
642 if (buildCounterConfigRef < 3) { | 642 if (buildCounterConfigRef < 3) { |
643 unittest.expect(o.name, unittest.equals('foo')); | 643 unittest.expect(o.name, unittest.equals('foo')); |
644 } | 644 } |
645 buildCounterConfigRef--; | 645 buildCounterConfigRef--; |
646 } | 646 } |
647 | 647 |
648 buildUnnamed1138() { | 648 buildUnnamed1155() { |
649 var o = new core.List<api.ConfigFile>(); | 649 var o = new core.List<api.ConfigFile>(); |
650 o.add(buildConfigFile()); | 650 o.add(buildConfigFile()); |
651 o.add(buildConfigFile()); | 651 o.add(buildConfigFile()); |
652 return o; | 652 return o; |
653 } | 653 } |
654 | 654 |
655 checkUnnamed1138(core.List<api.ConfigFile> o) { | 655 checkUnnamed1155(core.List<api.ConfigFile> o) { |
656 unittest.expect(o, unittest.hasLength(2)); | 656 unittest.expect(o, unittest.hasLength(2)); |
657 checkConfigFile(o[0]); | 657 checkConfigFile(o[0]); |
658 checkConfigFile(o[1]); | 658 checkConfigFile(o[1]); |
659 } | 659 } |
660 | 660 |
661 core.int buildCounterConfigSource = 0; | 661 core.int buildCounterConfigSource = 0; |
662 buildConfigSource() { | 662 buildConfigSource() { |
663 var o = new api.ConfigSource(); | 663 var o = new api.ConfigSource(); |
664 buildCounterConfigSource++; | 664 buildCounterConfigSource++; |
665 if (buildCounterConfigSource < 3) { | 665 if (buildCounterConfigSource < 3) { |
666 o.files = buildUnnamed1138(); | 666 o.files = buildUnnamed1155(); |
667 o.id = "foo"; | 667 o.id = "foo"; |
668 } | 668 } |
669 buildCounterConfigSource--; | 669 buildCounterConfigSource--; |
670 return o; | 670 return o; |
671 } | 671 } |
672 | 672 |
673 checkConfigSource(api.ConfigSource o) { | 673 checkConfigSource(api.ConfigSource o) { |
674 buildCounterConfigSource++; | 674 buildCounterConfigSource++; |
675 if (buildCounterConfigSource < 3) { | 675 if (buildCounterConfigSource < 3) { |
676 checkUnnamed1138(o.files); | 676 checkUnnamed1155(o.files); |
677 unittest.expect(o.id, unittest.equals('foo')); | 677 unittest.expect(o.id, unittest.equals('foo')); |
678 } | 678 } |
679 buildCounterConfigSource--; | 679 buildCounterConfigSource--; |
680 } | 680 } |
681 | 681 |
682 buildUnnamed1139() { | 682 buildUnnamed1156() { |
683 var o = new core.List<api.ContextRule>(); | 683 var o = new core.List<api.ContextRule>(); |
684 o.add(buildContextRule()); | 684 o.add(buildContextRule()); |
685 o.add(buildContextRule()); | 685 o.add(buildContextRule()); |
686 return o; | 686 return o; |
687 } | 687 } |
688 | 688 |
689 checkUnnamed1139(core.List<api.ContextRule> o) { | 689 checkUnnamed1156(core.List<api.ContextRule> o) { |
690 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
691 checkContextRule(o[0]); | 691 checkContextRule(o[0]); |
692 checkContextRule(o[1]); | 692 checkContextRule(o[1]); |
693 } | 693 } |
694 | 694 |
695 core.int buildCounterContext = 0; | 695 core.int buildCounterContext = 0; |
696 buildContext() { | 696 buildContext() { |
697 var o = new api.Context(); | 697 var o = new api.Context(); |
698 buildCounterContext++; | 698 buildCounterContext++; |
699 if (buildCounterContext < 3) { | 699 if (buildCounterContext < 3) { |
700 o.rules = buildUnnamed1139(); | 700 o.rules = buildUnnamed1156(); |
701 } | 701 } |
702 buildCounterContext--; | 702 buildCounterContext--; |
703 return o; | 703 return o; |
704 } | 704 } |
705 | 705 |
706 checkContext(api.Context o) { | 706 checkContext(api.Context o) { |
707 buildCounterContext++; | 707 buildCounterContext++; |
708 if (buildCounterContext < 3) { | 708 if (buildCounterContext < 3) { |
709 checkUnnamed1139(o.rules); | 709 checkUnnamed1156(o.rules); |
710 } | 710 } |
711 buildCounterContext--; | 711 buildCounterContext--; |
712 } | 712 } |
713 | 713 |
714 buildUnnamed1140() { | 714 buildUnnamed1157() { |
715 var o = new core.List<core.String>(); | 715 var o = new core.List<core.String>(); |
716 o.add("foo"); | 716 o.add("foo"); |
717 o.add("foo"); | 717 o.add("foo"); |
718 return o; | 718 return o; |
719 } | 719 } |
720 | 720 |
721 checkUnnamed1140(core.List<core.String> o) { | 721 checkUnnamed1157(core.List<core.String> o) { |
722 unittest.expect(o, unittest.hasLength(2)); | 722 unittest.expect(o, unittest.hasLength(2)); |
723 unittest.expect(o[0], unittest.equals('foo')); | 723 unittest.expect(o[0], unittest.equals('foo')); |
724 unittest.expect(o[1], unittest.equals('foo')); | 724 unittest.expect(o[1], unittest.equals('foo')); |
725 } | 725 } |
726 | 726 |
727 buildUnnamed1141() { | 727 buildUnnamed1158() { |
728 var o = new core.List<core.String>(); | 728 var o = new core.List<core.String>(); |
729 o.add("foo"); | 729 o.add("foo"); |
730 o.add("foo"); | 730 o.add("foo"); |
731 return o; | 731 return o; |
732 } | 732 } |
733 | 733 |
734 checkUnnamed1141(core.List<core.String> o) { | 734 checkUnnamed1158(core.List<core.String> o) { |
735 unittest.expect(o, unittest.hasLength(2)); | 735 unittest.expect(o, unittest.hasLength(2)); |
736 unittest.expect(o[0], unittest.equals('foo')); | 736 unittest.expect(o[0], unittest.equals('foo')); |
737 unittest.expect(o[1], unittest.equals('foo')); | 737 unittest.expect(o[1], unittest.equals('foo')); |
738 } | 738 } |
739 | 739 |
740 core.int buildCounterContextRule = 0; | 740 core.int buildCounterContextRule = 0; |
741 buildContextRule() { | 741 buildContextRule() { |
742 var o = new api.ContextRule(); | 742 var o = new api.ContextRule(); |
743 buildCounterContextRule++; | 743 buildCounterContextRule++; |
744 if (buildCounterContextRule < 3) { | 744 if (buildCounterContextRule < 3) { |
745 o.provided = buildUnnamed1140(); | 745 o.provided = buildUnnamed1157(); |
746 o.requested = buildUnnamed1141(); | 746 o.requested = buildUnnamed1158(); |
747 o.selector = "foo"; | 747 o.selector = "foo"; |
748 } | 748 } |
749 buildCounterContextRule--; | 749 buildCounterContextRule--; |
750 return o; | 750 return o; |
751 } | 751 } |
752 | 752 |
753 checkContextRule(api.ContextRule o) { | 753 checkContextRule(api.ContextRule o) { |
754 buildCounterContextRule++; | 754 buildCounterContextRule++; |
755 if (buildCounterContextRule < 3) { | 755 if (buildCounterContextRule < 3) { |
756 checkUnnamed1140(o.provided); | 756 checkUnnamed1157(o.provided); |
757 checkUnnamed1141(o.requested); | 757 checkUnnamed1158(o.requested); |
758 unittest.expect(o.selector, unittest.equals('foo')); | 758 unittest.expect(o.selector, unittest.equals('foo')); |
759 } | 759 } |
760 buildCounterContextRule--; | 760 buildCounterContextRule--; |
761 } | 761 } |
762 | 762 |
763 core.int buildCounterControl = 0; | 763 core.int buildCounterControl = 0; |
764 buildControl() { | 764 buildControl() { |
765 var o = new api.Control(); | 765 var o = new api.Control(); |
766 buildCounterControl++; | 766 buildCounterControl++; |
767 if (buildCounterControl < 3) { | 767 if (buildCounterControl < 3) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 } | 812 } |
813 | 813 |
814 checkCustomAuthRequirements(api.CustomAuthRequirements o) { | 814 checkCustomAuthRequirements(api.CustomAuthRequirements o) { |
815 buildCounterCustomAuthRequirements++; | 815 buildCounterCustomAuthRequirements++; |
816 if (buildCounterCustomAuthRequirements < 3) { | 816 if (buildCounterCustomAuthRequirements < 3) { |
817 unittest.expect(o.provider, unittest.equals('foo')); | 817 unittest.expect(o.provider, unittest.equals('foo')); |
818 } | 818 } |
819 buildCounterCustomAuthRequirements--; | 819 buildCounterCustomAuthRequirements--; |
820 } | 820 } |
821 | 821 |
822 buildUnnamed1142() { | 822 buildUnnamed1159() { |
823 var o = new core.List<api.CustomErrorRule>(); | 823 var o = new core.List<api.CustomErrorRule>(); |
824 o.add(buildCustomErrorRule()); | 824 o.add(buildCustomErrorRule()); |
825 o.add(buildCustomErrorRule()); | 825 o.add(buildCustomErrorRule()); |
826 return o; | 826 return o; |
827 } | 827 } |
828 | 828 |
829 checkUnnamed1142(core.List<api.CustomErrorRule> o) { | 829 checkUnnamed1159(core.List<api.CustomErrorRule> o) { |
830 unittest.expect(o, unittest.hasLength(2)); | 830 unittest.expect(o, unittest.hasLength(2)); |
831 checkCustomErrorRule(o[0]); | 831 checkCustomErrorRule(o[0]); |
832 checkCustomErrorRule(o[1]); | 832 checkCustomErrorRule(o[1]); |
833 } | 833 } |
834 | 834 |
835 buildUnnamed1143() { | 835 buildUnnamed1160() { |
836 var o = new core.List<core.String>(); | 836 var o = new core.List<core.String>(); |
837 o.add("foo"); | 837 o.add("foo"); |
838 o.add("foo"); | 838 o.add("foo"); |
839 return o; | 839 return o; |
840 } | 840 } |
841 | 841 |
842 checkUnnamed1143(core.List<core.String> o) { | 842 checkUnnamed1160(core.List<core.String> o) { |
843 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
844 unittest.expect(o[0], unittest.equals('foo')); | 844 unittest.expect(o[0], unittest.equals('foo')); |
845 unittest.expect(o[1], unittest.equals('foo')); | 845 unittest.expect(o[1], unittest.equals('foo')); |
846 } | 846 } |
847 | 847 |
848 core.int buildCounterCustomError = 0; | 848 core.int buildCounterCustomError = 0; |
849 buildCustomError() { | 849 buildCustomError() { |
850 var o = new api.CustomError(); | 850 var o = new api.CustomError(); |
851 buildCounterCustomError++; | 851 buildCounterCustomError++; |
852 if (buildCounterCustomError < 3) { | 852 if (buildCounterCustomError < 3) { |
853 o.rules = buildUnnamed1142(); | 853 o.rules = buildUnnamed1159(); |
854 o.types = buildUnnamed1143(); | 854 o.types = buildUnnamed1160(); |
855 } | 855 } |
856 buildCounterCustomError--; | 856 buildCounterCustomError--; |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkCustomError(api.CustomError o) { | 860 checkCustomError(api.CustomError o) { |
861 buildCounterCustomError++; | 861 buildCounterCustomError++; |
862 if (buildCounterCustomError < 3) { | 862 if (buildCounterCustomError < 3) { |
863 checkUnnamed1142(o.rules); | 863 checkUnnamed1159(o.rules); |
864 checkUnnamed1143(o.types); | 864 checkUnnamed1160(o.types); |
865 } | 865 } |
866 buildCounterCustomError--; | 866 buildCounterCustomError--; |
867 } | 867 } |
868 | 868 |
869 core.int buildCounterCustomErrorRule = 0; | 869 core.int buildCounterCustomErrorRule = 0; |
870 buildCustomErrorRule() { | 870 buildCustomErrorRule() { |
871 var o = new api.CustomErrorRule(); | 871 var o = new api.CustomErrorRule(); |
872 buildCounterCustomErrorRule++; | 872 buildCounterCustomErrorRule++; |
873 if (buildCounterCustomErrorRule < 3) { | 873 if (buildCounterCustomErrorRule < 3) { |
874 o.isErrorType = true; | 874 o.isErrorType = true; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 unittest.expect(o.path, unittest.equals('foo')); | 906 unittest.expect(o.path, unittest.equals('foo')); |
907 } | 907 } |
908 buildCounterCustomHttpPattern--; | 908 buildCounterCustomHttpPattern--; |
909 } | 909 } |
910 | 910 |
911 core.int buildCounterDataAccessOptions = 0; | 911 core.int buildCounterDataAccessOptions = 0; |
912 buildDataAccessOptions() { | 912 buildDataAccessOptions() { |
913 var o = new api.DataAccessOptions(); | 913 var o = new api.DataAccessOptions(); |
914 buildCounterDataAccessOptions++; | 914 buildCounterDataAccessOptions++; |
915 if (buildCounterDataAccessOptions < 3) { | 915 if (buildCounterDataAccessOptions < 3) { |
| 916 o.logMode = "foo"; |
916 } | 917 } |
917 buildCounterDataAccessOptions--; | 918 buildCounterDataAccessOptions--; |
918 return o; | 919 return o; |
919 } | 920 } |
920 | 921 |
921 checkDataAccessOptions(api.DataAccessOptions o) { | 922 checkDataAccessOptions(api.DataAccessOptions o) { |
922 buildCounterDataAccessOptions++; | 923 buildCounterDataAccessOptions++; |
923 if (buildCounterDataAccessOptions < 3) { | 924 if (buildCounterDataAccessOptions < 3) { |
| 925 unittest.expect(o.logMode, unittest.equals('foo')); |
924 } | 926 } |
925 buildCounterDataAccessOptions--; | 927 buildCounterDataAccessOptions--; |
926 } | 928 } |
927 | 929 |
928 core.int buildCounterDeleteServiceStrategy = 0; | 930 core.int buildCounterDeleteServiceStrategy = 0; |
929 buildDeleteServiceStrategy() { | 931 buildDeleteServiceStrategy() { |
930 var o = new api.DeleteServiceStrategy(); | 932 var o = new api.DeleteServiceStrategy(); |
931 buildCounterDeleteServiceStrategy++; | 933 buildCounterDeleteServiceStrategy++; |
932 if (buildCounterDeleteServiceStrategy < 3) { | 934 if (buildCounterDeleteServiceStrategy < 3) { |
933 } | 935 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 } | 979 } |
978 | 980 |
979 checkDisableServiceRequest(api.DisableServiceRequest o) { | 981 checkDisableServiceRequest(api.DisableServiceRequest o) { |
980 buildCounterDisableServiceRequest++; | 982 buildCounterDisableServiceRequest++; |
981 if (buildCounterDisableServiceRequest < 3) { | 983 if (buildCounterDisableServiceRequest < 3) { |
982 unittest.expect(o.consumerId, unittest.equals('foo')); | 984 unittest.expect(o.consumerId, unittest.equals('foo')); |
983 } | 985 } |
984 buildCounterDisableServiceRequest--; | 986 buildCounterDisableServiceRequest--; |
985 } | 987 } |
986 | 988 |
987 buildUnnamed1144() { | 989 buildUnnamed1161() { |
988 var o = new core.List<api.Page>(); | 990 var o = new core.List<api.Page>(); |
989 o.add(buildPage()); | 991 o.add(buildPage()); |
990 o.add(buildPage()); | 992 o.add(buildPage()); |
991 return o; | 993 return o; |
992 } | 994 } |
993 | 995 |
994 checkUnnamed1144(core.List<api.Page> o) { | 996 checkUnnamed1161(core.List<api.Page> o) { |
995 unittest.expect(o, unittest.hasLength(2)); | 997 unittest.expect(o, unittest.hasLength(2)); |
996 checkPage(o[0]); | 998 checkPage(o[0]); |
997 checkPage(o[1]); | 999 checkPage(o[1]); |
998 } | 1000 } |
999 | 1001 |
1000 buildUnnamed1145() { | 1002 buildUnnamed1162() { |
1001 var o = new core.List<api.DocumentationRule>(); | 1003 var o = new core.List<api.DocumentationRule>(); |
1002 o.add(buildDocumentationRule()); | 1004 o.add(buildDocumentationRule()); |
1003 o.add(buildDocumentationRule()); | 1005 o.add(buildDocumentationRule()); |
1004 return o; | 1006 return o; |
1005 } | 1007 } |
1006 | 1008 |
1007 checkUnnamed1145(core.List<api.DocumentationRule> o) { | 1009 checkUnnamed1162(core.List<api.DocumentationRule> o) { |
1008 unittest.expect(o, unittest.hasLength(2)); | 1010 unittest.expect(o, unittest.hasLength(2)); |
1009 checkDocumentationRule(o[0]); | 1011 checkDocumentationRule(o[0]); |
1010 checkDocumentationRule(o[1]); | 1012 checkDocumentationRule(o[1]); |
1011 } | 1013 } |
1012 | 1014 |
1013 core.int buildCounterDocumentation = 0; | 1015 core.int buildCounterDocumentation = 0; |
1014 buildDocumentation() { | 1016 buildDocumentation() { |
1015 var o = new api.Documentation(); | 1017 var o = new api.Documentation(); |
1016 buildCounterDocumentation++; | 1018 buildCounterDocumentation++; |
1017 if (buildCounterDocumentation < 3) { | 1019 if (buildCounterDocumentation < 3) { |
1018 o.documentationRootUrl = "foo"; | 1020 o.documentationRootUrl = "foo"; |
1019 o.overview = "foo"; | 1021 o.overview = "foo"; |
1020 o.pages = buildUnnamed1144(); | 1022 o.pages = buildUnnamed1161(); |
1021 o.rules = buildUnnamed1145(); | 1023 o.rules = buildUnnamed1162(); |
1022 o.summary = "foo"; | 1024 o.summary = "foo"; |
1023 } | 1025 } |
1024 buildCounterDocumentation--; | 1026 buildCounterDocumentation--; |
1025 return o; | 1027 return o; |
1026 } | 1028 } |
1027 | 1029 |
1028 checkDocumentation(api.Documentation o) { | 1030 checkDocumentation(api.Documentation o) { |
1029 buildCounterDocumentation++; | 1031 buildCounterDocumentation++; |
1030 if (buildCounterDocumentation < 3) { | 1032 if (buildCounterDocumentation < 3) { |
1031 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 1033 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
1032 unittest.expect(o.overview, unittest.equals('foo')); | 1034 unittest.expect(o.overview, unittest.equals('foo')); |
1033 checkUnnamed1144(o.pages); | 1035 checkUnnamed1161(o.pages); |
1034 checkUnnamed1145(o.rules); | 1036 checkUnnamed1162(o.rules); |
1035 unittest.expect(o.summary, unittest.equals('foo')); | 1037 unittest.expect(o.summary, unittest.equals('foo')); |
1036 } | 1038 } |
1037 buildCounterDocumentation--; | 1039 buildCounterDocumentation--; |
1038 } | 1040 } |
1039 | 1041 |
1040 core.int buildCounterDocumentationRule = 0; | 1042 core.int buildCounterDocumentationRule = 0; |
1041 buildDocumentationRule() { | 1043 buildDocumentationRule() { |
1042 var o = new api.DocumentationRule(); | 1044 var o = new api.DocumentationRule(); |
1043 buildCounterDocumentationRule++; | 1045 buildCounterDocumentationRule++; |
1044 if (buildCounterDocumentationRule < 3) { | 1046 if (buildCounterDocumentationRule < 3) { |
(...skipping 27 matching lines...) Expand all Loading... |
1072 } | 1074 } |
1073 | 1075 |
1074 checkEnableServiceRequest(api.EnableServiceRequest o) { | 1076 checkEnableServiceRequest(api.EnableServiceRequest o) { |
1075 buildCounterEnableServiceRequest++; | 1077 buildCounterEnableServiceRequest++; |
1076 if (buildCounterEnableServiceRequest < 3) { | 1078 if (buildCounterEnableServiceRequest < 3) { |
1077 unittest.expect(o.consumerId, unittest.equals('foo')); | 1079 unittest.expect(o.consumerId, unittest.equals('foo')); |
1078 } | 1080 } |
1079 buildCounterEnableServiceRequest--; | 1081 buildCounterEnableServiceRequest--; |
1080 } | 1082 } |
1081 | 1083 |
1082 buildUnnamed1146() { | 1084 buildUnnamed1163() { |
1083 var o = new core.List<core.String>(); | 1085 var o = new core.List<core.String>(); |
1084 o.add("foo"); | 1086 o.add("foo"); |
1085 o.add("foo"); | 1087 o.add("foo"); |
1086 return o; | 1088 return o; |
1087 } | 1089 } |
1088 | 1090 |
1089 checkUnnamed1146(core.List<core.String> o) { | 1091 checkUnnamed1163(core.List<core.String> o) { |
1090 unittest.expect(o, unittest.hasLength(2)); | 1092 unittest.expect(o, unittest.hasLength(2)); |
1091 unittest.expect(o[0], unittest.equals('foo')); | 1093 unittest.expect(o[0], unittest.equals('foo')); |
1092 unittest.expect(o[1], unittest.equals('foo')); | 1094 unittest.expect(o[1], unittest.equals('foo')); |
1093 } | 1095 } |
1094 | 1096 |
1095 buildUnnamed1147() { | 1097 buildUnnamed1164() { |
1096 var o = new core.List<core.String>(); | 1098 var o = new core.List<core.String>(); |
1097 o.add("foo"); | 1099 o.add("foo"); |
1098 o.add("foo"); | 1100 o.add("foo"); |
1099 return o; | 1101 return o; |
1100 } | 1102 } |
1101 | 1103 |
1102 checkUnnamed1147(core.List<core.String> o) { | 1104 checkUnnamed1164(core.List<core.String> o) { |
1103 unittest.expect(o, unittest.hasLength(2)); | 1105 unittest.expect(o, unittest.hasLength(2)); |
1104 unittest.expect(o[0], unittest.equals('foo')); | 1106 unittest.expect(o[0], unittest.equals('foo')); |
1105 unittest.expect(o[1], unittest.equals('foo')); | 1107 unittest.expect(o[1], unittest.equals('foo')); |
1106 } | 1108 } |
1107 | 1109 |
1108 buildUnnamed1148() { | 1110 buildUnnamed1165() { |
1109 var o = new core.List<core.String>(); | 1111 var o = new core.List<core.String>(); |
1110 o.add("foo"); | 1112 o.add("foo"); |
1111 o.add("foo"); | 1113 o.add("foo"); |
1112 return o; | 1114 return o; |
1113 } | 1115 } |
1114 | 1116 |
1115 checkUnnamed1148(core.List<core.String> o) { | 1117 checkUnnamed1165(core.List<core.String> o) { |
1116 unittest.expect(o, unittest.hasLength(2)); | 1118 unittest.expect(o, unittest.hasLength(2)); |
1117 unittest.expect(o[0], unittest.equals('foo')); | 1119 unittest.expect(o[0], unittest.equals('foo')); |
1118 unittest.expect(o[1], unittest.equals('foo')); | 1120 unittest.expect(o[1], unittest.equals('foo')); |
1119 } | 1121 } |
1120 | 1122 |
1121 core.int buildCounterEndpoint = 0; | 1123 core.int buildCounterEndpoint = 0; |
1122 buildEndpoint() { | 1124 buildEndpoint() { |
1123 var o = new api.Endpoint(); | 1125 var o = new api.Endpoint(); |
1124 buildCounterEndpoint++; | 1126 buildCounterEndpoint++; |
1125 if (buildCounterEndpoint < 3) { | 1127 if (buildCounterEndpoint < 3) { |
1126 o.aliases = buildUnnamed1146(); | 1128 o.aliases = buildUnnamed1163(); |
1127 o.allowCors = true; | 1129 o.allowCors = true; |
1128 o.apis = buildUnnamed1147(); | 1130 o.apis = buildUnnamed1164(); |
1129 o.features = buildUnnamed1148(); | 1131 o.features = buildUnnamed1165(); |
1130 o.name = "foo"; | 1132 o.name = "foo"; |
1131 o.target = "foo"; | 1133 o.target = "foo"; |
1132 } | 1134 } |
1133 buildCounterEndpoint--; | 1135 buildCounterEndpoint--; |
1134 return o; | 1136 return o; |
1135 } | 1137 } |
1136 | 1138 |
1137 checkEndpoint(api.Endpoint o) { | 1139 checkEndpoint(api.Endpoint o) { |
1138 buildCounterEndpoint++; | 1140 buildCounterEndpoint++; |
1139 if (buildCounterEndpoint < 3) { | 1141 if (buildCounterEndpoint < 3) { |
1140 checkUnnamed1146(o.aliases); | 1142 checkUnnamed1163(o.aliases); |
1141 unittest.expect(o.allowCors, unittest.isTrue); | 1143 unittest.expect(o.allowCors, unittest.isTrue); |
1142 checkUnnamed1147(o.apis); | 1144 checkUnnamed1164(o.apis); |
1143 checkUnnamed1148(o.features); | 1145 checkUnnamed1165(o.features); |
1144 unittest.expect(o.name, unittest.equals('foo')); | 1146 unittest.expect(o.name, unittest.equals('foo')); |
1145 unittest.expect(o.target, unittest.equals('foo')); | 1147 unittest.expect(o.target, unittest.equals('foo')); |
1146 } | 1148 } |
1147 buildCounterEndpoint--; | 1149 buildCounterEndpoint--; |
1148 } | 1150 } |
1149 | 1151 |
1150 buildUnnamed1149() { | 1152 buildUnnamed1166() { |
1151 var o = new core.List<api.EnumValue>(); | 1153 var o = new core.List<api.EnumValue>(); |
1152 o.add(buildEnumValue()); | 1154 o.add(buildEnumValue()); |
1153 o.add(buildEnumValue()); | 1155 o.add(buildEnumValue()); |
1154 return o; | 1156 return o; |
1155 } | 1157 } |
1156 | 1158 |
1157 checkUnnamed1149(core.List<api.EnumValue> o) { | 1159 checkUnnamed1166(core.List<api.EnumValue> o) { |
1158 unittest.expect(o, unittest.hasLength(2)); | 1160 unittest.expect(o, unittest.hasLength(2)); |
1159 checkEnumValue(o[0]); | 1161 checkEnumValue(o[0]); |
1160 checkEnumValue(o[1]); | 1162 checkEnumValue(o[1]); |
1161 } | 1163 } |
1162 | 1164 |
1163 buildUnnamed1150() { | 1165 buildUnnamed1167() { |
1164 var o = new core.List<api.Option>(); | 1166 var o = new core.List<api.Option>(); |
1165 o.add(buildOption()); | 1167 o.add(buildOption()); |
1166 o.add(buildOption()); | 1168 o.add(buildOption()); |
1167 return o; | 1169 return o; |
1168 } | 1170 } |
1169 | 1171 |
1170 checkUnnamed1150(core.List<api.Option> o) { | 1172 checkUnnamed1167(core.List<api.Option> o) { |
1171 unittest.expect(o, unittest.hasLength(2)); | 1173 unittest.expect(o, unittest.hasLength(2)); |
1172 checkOption(o[0]); | 1174 checkOption(o[0]); |
1173 checkOption(o[1]); | 1175 checkOption(o[1]); |
1174 } | 1176 } |
1175 | 1177 |
1176 core.int buildCounterEnum = 0; | 1178 core.int buildCounterEnum = 0; |
1177 buildEnum() { | 1179 buildEnum() { |
1178 var o = new api.Enum(); | 1180 var o = new api.Enum(); |
1179 buildCounterEnum++; | 1181 buildCounterEnum++; |
1180 if (buildCounterEnum < 3) { | 1182 if (buildCounterEnum < 3) { |
1181 o.enumvalue = buildUnnamed1149(); | 1183 o.enumvalue = buildUnnamed1166(); |
1182 o.name = "foo"; | 1184 o.name = "foo"; |
1183 o.options = buildUnnamed1150(); | 1185 o.options = buildUnnamed1167(); |
1184 o.sourceContext = buildSourceContext(); | 1186 o.sourceContext = buildSourceContext(); |
1185 o.syntax = "foo"; | 1187 o.syntax = "foo"; |
1186 } | 1188 } |
1187 buildCounterEnum--; | 1189 buildCounterEnum--; |
1188 return o; | 1190 return o; |
1189 } | 1191 } |
1190 | 1192 |
1191 checkEnum(api.Enum o) { | 1193 checkEnum(api.Enum o) { |
1192 buildCounterEnum++; | 1194 buildCounterEnum++; |
1193 if (buildCounterEnum < 3) { | 1195 if (buildCounterEnum < 3) { |
1194 checkUnnamed1149(o.enumvalue); | 1196 checkUnnamed1166(o.enumvalue); |
1195 unittest.expect(o.name, unittest.equals('foo')); | 1197 unittest.expect(o.name, unittest.equals('foo')); |
1196 checkUnnamed1150(o.options); | 1198 checkUnnamed1167(o.options); |
1197 checkSourceContext(o.sourceContext); | 1199 checkSourceContext(o.sourceContext); |
1198 unittest.expect(o.syntax, unittest.equals('foo')); | 1200 unittest.expect(o.syntax, unittest.equals('foo')); |
1199 } | 1201 } |
1200 buildCounterEnum--; | 1202 buildCounterEnum--; |
1201 } | 1203 } |
1202 | 1204 |
1203 buildUnnamed1151() { | 1205 buildUnnamed1168() { |
1204 var o = new core.List<api.Option>(); | 1206 var o = new core.List<api.Option>(); |
1205 o.add(buildOption()); | 1207 o.add(buildOption()); |
1206 o.add(buildOption()); | 1208 o.add(buildOption()); |
1207 return o; | 1209 return o; |
1208 } | 1210 } |
1209 | 1211 |
1210 checkUnnamed1151(core.List<api.Option> o) { | 1212 checkUnnamed1168(core.List<api.Option> o) { |
1211 unittest.expect(o, unittest.hasLength(2)); | 1213 unittest.expect(o, unittest.hasLength(2)); |
1212 checkOption(o[0]); | 1214 checkOption(o[0]); |
1213 checkOption(o[1]); | 1215 checkOption(o[1]); |
1214 } | 1216 } |
1215 | 1217 |
1216 core.int buildCounterEnumValue = 0; | 1218 core.int buildCounterEnumValue = 0; |
1217 buildEnumValue() { | 1219 buildEnumValue() { |
1218 var o = new api.EnumValue(); | 1220 var o = new api.EnumValue(); |
1219 buildCounterEnumValue++; | 1221 buildCounterEnumValue++; |
1220 if (buildCounterEnumValue < 3) { | 1222 if (buildCounterEnumValue < 3) { |
1221 o.name = "foo"; | 1223 o.name = "foo"; |
1222 o.number = 42; | 1224 o.number = 42; |
1223 o.options = buildUnnamed1151(); | 1225 o.options = buildUnnamed1168(); |
1224 } | 1226 } |
1225 buildCounterEnumValue--; | 1227 buildCounterEnumValue--; |
1226 return o; | 1228 return o; |
1227 } | 1229 } |
1228 | 1230 |
1229 checkEnumValue(api.EnumValue o) { | 1231 checkEnumValue(api.EnumValue o) { |
1230 buildCounterEnumValue++; | 1232 buildCounterEnumValue++; |
1231 if (buildCounterEnumValue < 3) { | 1233 if (buildCounterEnumValue < 3) { |
1232 unittest.expect(o.name, unittest.equals('foo')); | 1234 unittest.expect(o.name, unittest.equals('foo')); |
1233 unittest.expect(o.number, unittest.equals(42)); | 1235 unittest.expect(o.number, unittest.equals(42)); |
1234 checkUnnamed1151(o.options); | 1236 checkUnnamed1168(o.options); |
1235 } | 1237 } |
1236 buildCounterEnumValue--; | 1238 buildCounterEnumValue--; |
1237 } | 1239 } |
1238 | 1240 |
1239 core.int buildCounterExperimental = 0; | 1241 core.int buildCounterExperimental = 0; |
1240 buildExperimental() { | 1242 buildExperimental() { |
1241 var o = new api.Experimental(); | 1243 var o = new api.Experimental(); |
1242 buildCounterExperimental++; | 1244 buildCounterExperimental++; |
1243 if (buildCounterExperimental < 3) { | 1245 if (buildCounterExperimental < 3) { |
1244 o.authorization = buildAuthorizationConfig(); | 1246 o.authorization = buildAuthorizationConfig(); |
(...skipping 28 matching lines...) Expand all Loading... |
1273 buildCounterExpr++; | 1275 buildCounterExpr++; |
1274 if (buildCounterExpr < 3) { | 1276 if (buildCounterExpr < 3) { |
1275 unittest.expect(o.description, unittest.equals('foo')); | 1277 unittest.expect(o.description, unittest.equals('foo')); |
1276 unittest.expect(o.expression, unittest.equals('foo')); | 1278 unittest.expect(o.expression, unittest.equals('foo')); |
1277 unittest.expect(o.location, unittest.equals('foo')); | 1279 unittest.expect(o.location, unittest.equals('foo')); |
1278 unittest.expect(o.title, unittest.equals('foo')); | 1280 unittest.expect(o.title, unittest.equals('foo')); |
1279 } | 1281 } |
1280 buildCounterExpr--; | 1282 buildCounterExpr--; |
1281 } | 1283 } |
1282 | 1284 |
1283 buildUnnamed1152() { | 1285 buildUnnamed1169() { |
1284 var o = new core.List<api.Option>(); | 1286 var o = new core.List<api.Option>(); |
1285 o.add(buildOption()); | 1287 o.add(buildOption()); |
1286 o.add(buildOption()); | 1288 o.add(buildOption()); |
1287 return o; | 1289 return o; |
1288 } | 1290 } |
1289 | 1291 |
1290 checkUnnamed1152(core.List<api.Option> o) { | 1292 checkUnnamed1169(core.List<api.Option> o) { |
1291 unittest.expect(o, unittest.hasLength(2)); | 1293 unittest.expect(o, unittest.hasLength(2)); |
1292 checkOption(o[0]); | 1294 checkOption(o[0]); |
1293 checkOption(o[1]); | 1295 checkOption(o[1]); |
1294 } | 1296 } |
1295 | 1297 |
1296 core.int buildCounterField = 0; | 1298 core.int buildCounterField = 0; |
1297 buildField() { | 1299 buildField() { |
1298 var o = new api.Field(); | 1300 var o = new api.Field(); |
1299 buildCounterField++; | 1301 buildCounterField++; |
1300 if (buildCounterField < 3) { | 1302 if (buildCounterField < 3) { |
1301 o.cardinality = "foo"; | 1303 o.cardinality = "foo"; |
1302 o.defaultValue = "foo"; | 1304 o.defaultValue = "foo"; |
1303 o.jsonName = "foo"; | 1305 o.jsonName = "foo"; |
1304 o.kind = "foo"; | 1306 o.kind = "foo"; |
1305 o.name = "foo"; | 1307 o.name = "foo"; |
1306 o.number = 42; | 1308 o.number = 42; |
1307 o.oneofIndex = 42; | 1309 o.oneofIndex = 42; |
1308 o.options = buildUnnamed1152(); | 1310 o.options = buildUnnamed1169(); |
1309 o.packed = true; | 1311 o.packed = true; |
1310 o.typeUrl = "foo"; | 1312 o.typeUrl = "foo"; |
1311 } | 1313 } |
1312 buildCounterField--; | 1314 buildCounterField--; |
1313 return o; | 1315 return o; |
1314 } | 1316 } |
1315 | 1317 |
1316 checkField(api.Field o) { | 1318 checkField(api.Field o) { |
1317 buildCounterField++; | 1319 buildCounterField++; |
1318 if (buildCounterField < 3) { | 1320 if (buildCounterField < 3) { |
1319 unittest.expect(o.cardinality, unittest.equals('foo')); | 1321 unittest.expect(o.cardinality, unittest.equals('foo')); |
1320 unittest.expect(o.defaultValue, unittest.equals('foo')); | 1322 unittest.expect(o.defaultValue, unittest.equals('foo')); |
1321 unittest.expect(o.jsonName, unittest.equals('foo')); | 1323 unittest.expect(o.jsonName, unittest.equals('foo')); |
1322 unittest.expect(o.kind, unittest.equals('foo')); | 1324 unittest.expect(o.kind, unittest.equals('foo')); |
1323 unittest.expect(o.name, unittest.equals('foo')); | 1325 unittest.expect(o.name, unittest.equals('foo')); |
1324 unittest.expect(o.number, unittest.equals(42)); | 1326 unittest.expect(o.number, unittest.equals(42)); |
1325 unittest.expect(o.oneofIndex, unittest.equals(42)); | 1327 unittest.expect(o.oneofIndex, unittest.equals(42)); |
1326 checkUnnamed1152(o.options); | 1328 checkUnnamed1169(o.options); |
1327 unittest.expect(o.packed, unittest.isTrue); | 1329 unittest.expect(o.packed, unittest.isTrue); |
1328 unittest.expect(o.typeUrl, unittest.equals('foo')); | 1330 unittest.expect(o.typeUrl, unittest.equals('foo')); |
1329 } | 1331 } |
1330 buildCounterField--; | 1332 buildCounterField--; |
1331 } | 1333 } |
1332 | 1334 |
1333 buildUnnamed1153() { | 1335 buildUnnamed1170() { |
1334 var o = new core.List<core.String>(); | 1336 var o = new core.List<core.String>(); |
1335 o.add("foo"); | 1337 o.add("foo"); |
1336 o.add("foo"); | 1338 o.add("foo"); |
1337 return o; | 1339 return o; |
1338 } | 1340 } |
1339 | 1341 |
1340 checkUnnamed1153(core.List<core.String> o) { | 1342 checkUnnamed1170(core.List<core.String> o) { |
1341 unittest.expect(o, unittest.hasLength(2)); | 1343 unittest.expect(o, unittest.hasLength(2)); |
1342 unittest.expect(o[0], unittest.equals('foo')); | 1344 unittest.expect(o[0], unittest.equals('foo')); |
1343 unittest.expect(o[1], unittest.equals('foo')); | 1345 unittest.expect(o[1], unittest.equals('foo')); |
1344 } | 1346 } |
1345 | 1347 |
1346 core.int buildCounterFlowOperationMetadata = 0; | 1348 core.int buildCounterFlowOperationMetadata = 0; |
1347 buildFlowOperationMetadata() { | 1349 buildFlowOperationMetadata() { |
1348 var o = new api.FlowOperationMetadata(); | 1350 var o = new api.FlowOperationMetadata(); |
1349 buildCounterFlowOperationMetadata++; | 1351 buildCounterFlowOperationMetadata++; |
1350 if (buildCounterFlowOperationMetadata < 3) { | 1352 if (buildCounterFlowOperationMetadata < 3) { |
1351 o.cancelState = "foo"; | 1353 o.cancelState = "foo"; |
1352 o.deadline = "foo"; | 1354 o.deadline = "foo"; |
1353 o.flowName = "foo"; | 1355 o.flowName = "foo"; |
1354 o.resourceNames = buildUnnamed1153(); | 1356 o.resourceNames = buildUnnamed1170(); |
1355 o.startTime = "foo"; | 1357 o.startTime = "foo"; |
1356 } | 1358 } |
1357 buildCounterFlowOperationMetadata--; | 1359 buildCounterFlowOperationMetadata--; |
1358 return o; | 1360 return o; |
1359 } | 1361 } |
1360 | 1362 |
1361 checkFlowOperationMetadata(api.FlowOperationMetadata o) { | 1363 checkFlowOperationMetadata(api.FlowOperationMetadata o) { |
1362 buildCounterFlowOperationMetadata++; | 1364 buildCounterFlowOperationMetadata++; |
1363 if (buildCounterFlowOperationMetadata < 3) { | 1365 if (buildCounterFlowOperationMetadata < 3) { |
1364 unittest.expect(o.cancelState, unittest.equals('foo')); | 1366 unittest.expect(o.cancelState, unittest.equals('foo')); |
1365 unittest.expect(o.deadline, unittest.equals('foo')); | 1367 unittest.expect(o.deadline, unittest.equals('foo')); |
1366 unittest.expect(o.flowName, unittest.equals('foo')); | 1368 unittest.expect(o.flowName, unittest.equals('foo')); |
1367 checkUnnamed1153(o.resourceNames); | 1369 checkUnnamed1170(o.resourceNames); |
1368 unittest.expect(o.startTime, unittest.equals('foo')); | 1370 unittest.expect(o.startTime, unittest.equals('foo')); |
1369 } | 1371 } |
1370 buildCounterFlowOperationMetadata--; | 1372 buildCounterFlowOperationMetadata--; |
1371 } | 1373 } |
1372 | 1374 |
1373 buildUnnamed1154() { | 1375 buildUnnamed1171() { |
1374 var o = new core.Map<core.String, core.Object>(); | 1376 var o = new core.Map<core.String, core.Object>(); |
1375 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1377 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1376 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1378 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1377 return o; | 1379 return o; |
1378 } | 1380 } |
1379 | 1381 |
1380 checkUnnamed1154(core.Map<core.String, core.Object> o) { | 1382 checkUnnamed1171(core.Map<core.String, core.Object> o) { |
1381 unittest.expect(o, unittest.hasLength(2)); | 1383 unittest.expect(o, unittest.hasLength(2)); |
1382 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')); | 1384 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
1383 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')); | 1385 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
1384 } | 1386 } |
1385 | 1387 |
1386 buildUnnamed1155() { | 1388 buildUnnamed1172() { |
1387 var o = new core.Map<core.String, core.Object>(); | 1389 var o = new core.Map<core.String, core.Object>(); |
1388 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1390 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1389 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1391 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1390 return o; | 1392 return o; |
1391 } | 1393 } |
1392 | 1394 |
1393 checkUnnamed1155(core.Map<core.String, core.Object> o) { | 1395 checkUnnamed1172(core.Map<core.String, core.Object> o) { |
1394 unittest.expect(o, unittest.hasLength(2)); | 1396 unittest.expect(o, unittest.hasLength(2)); |
1395 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')); | 1397 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1396 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')); | 1398 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1397 } | 1399 } |
1398 | 1400 |
1399 core.int buildCounterGenerateConfigReportRequest = 0; | 1401 core.int buildCounterGenerateConfigReportRequest = 0; |
1400 buildGenerateConfigReportRequest() { | 1402 buildGenerateConfigReportRequest() { |
1401 var o = new api.GenerateConfigReportRequest(); | 1403 var o = new api.GenerateConfigReportRequest(); |
1402 buildCounterGenerateConfigReportRequest++; | 1404 buildCounterGenerateConfigReportRequest++; |
1403 if (buildCounterGenerateConfigReportRequest < 3) { | 1405 if (buildCounterGenerateConfigReportRequest < 3) { |
1404 o.newConfig = buildUnnamed1154(); | 1406 o.newConfig = buildUnnamed1171(); |
1405 o.oldConfig = buildUnnamed1155(); | 1407 o.oldConfig = buildUnnamed1172(); |
1406 } | 1408 } |
1407 buildCounterGenerateConfigReportRequest--; | 1409 buildCounterGenerateConfigReportRequest--; |
1408 return o; | 1410 return o; |
1409 } | 1411 } |
1410 | 1412 |
1411 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { | 1413 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { |
1412 buildCounterGenerateConfigReportRequest++; | 1414 buildCounterGenerateConfigReportRequest++; |
1413 if (buildCounterGenerateConfigReportRequest < 3) { | 1415 if (buildCounterGenerateConfigReportRequest < 3) { |
1414 checkUnnamed1154(o.newConfig); | 1416 checkUnnamed1171(o.newConfig); |
1415 checkUnnamed1155(o.oldConfig); | 1417 checkUnnamed1172(o.oldConfig); |
1416 } | 1418 } |
1417 buildCounterGenerateConfigReportRequest--; | 1419 buildCounterGenerateConfigReportRequest--; |
1418 } | 1420 } |
1419 | 1421 |
1420 buildUnnamed1156() { | 1422 buildUnnamed1173() { |
1421 var o = new core.List<api.ChangeReport>(); | 1423 var o = new core.List<api.ChangeReport>(); |
1422 o.add(buildChangeReport()); | 1424 o.add(buildChangeReport()); |
1423 o.add(buildChangeReport()); | 1425 o.add(buildChangeReport()); |
1424 return o; | 1426 return o; |
1425 } | 1427 } |
1426 | 1428 |
1427 checkUnnamed1156(core.List<api.ChangeReport> o) { | 1429 checkUnnamed1173(core.List<api.ChangeReport> o) { |
1428 unittest.expect(o, unittest.hasLength(2)); | 1430 unittest.expect(o, unittest.hasLength(2)); |
1429 checkChangeReport(o[0]); | 1431 checkChangeReport(o[0]); |
1430 checkChangeReport(o[1]); | 1432 checkChangeReport(o[1]); |
1431 } | 1433 } |
1432 | 1434 |
1433 buildUnnamed1157() { | 1435 buildUnnamed1174() { |
1434 var o = new core.List<api.Diagnostic>(); | 1436 var o = new core.List<api.Diagnostic>(); |
1435 o.add(buildDiagnostic()); | 1437 o.add(buildDiagnostic()); |
1436 o.add(buildDiagnostic()); | 1438 o.add(buildDiagnostic()); |
1437 return o; | 1439 return o; |
1438 } | 1440 } |
1439 | 1441 |
1440 checkUnnamed1157(core.List<api.Diagnostic> o) { | 1442 checkUnnamed1174(core.List<api.Diagnostic> o) { |
1441 unittest.expect(o, unittest.hasLength(2)); | 1443 unittest.expect(o, unittest.hasLength(2)); |
1442 checkDiagnostic(o[0]); | 1444 checkDiagnostic(o[0]); |
1443 checkDiagnostic(o[1]); | 1445 checkDiagnostic(o[1]); |
1444 } | 1446 } |
1445 | 1447 |
1446 core.int buildCounterGenerateConfigReportResponse = 0; | 1448 core.int buildCounterGenerateConfigReportResponse = 0; |
1447 buildGenerateConfigReportResponse() { | 1449 buildGenerateConfigReportResponse() { |
1448 var o = new api.GenerateConfigReportResponse(); | 1450 var o = new api.GenerateConfigReportResponse(); |
1449 buildCounterGenerateConfigReportResponse++; | 1451 buildCounterGenerateConfigReportResponse++; |
1450 if (buildCounterGenerateConfigReportResponse < 3) { | 1452 if (buildCounterGenerateConfigReportResponse < 3) { |
1451 o.changeReports = buildUnnamed1156(); | 1453 o.changeReports = buildUnnamed1173(); |
1452 o.diagnostics = buildUnnamed1157(); | 1454 o.diagnostics = buildUnnamed1174(); |
1453 o.id = "foo"; | 1455 o.id = "foo"; |
1454 o.serviceName = "foo"; | 1456 o.serviceName = "foo"; |
1455 } | 1457 } |
1456 buildCounterGenerateConfigReportResponse--; | 1458 buildCounterGenerateConfigReportResponse--; |
1457 return o; | 1459 return o; |
1458 } | 1460 } |
1459 | 1461 |
1460 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { | 1462 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { |
1461 buildCounterGenerateConfigReportResponse++; | 1463 buildCounterGenerateConfigReportResponse++; |
1462 if (buildCounterGenerateConfigReportResponse < 3) { | 1464 if (buildCounterGenerateConfigReportResponse < 3) { |
1463 checkUnnamed1156(o.changeReports); | 1465 checkUnnamed1173(o.changeReports); |
1464 checkUnnamed1157(o.diagnostics); | 1466 checkUnnamed1174(o.diagnostics); |
1465 unittest.expect(o.id, unittest.equals('foo')); | 1467 unittest.expect(o.id, unittest.equals('foo')); |
1466 unittest.expect(o.serviceName, unittest.equals('foo')); | 1468 unittest.expect(o.serviceName, unittest.equals('foo')); |
1467 } | 1469 } |
1468 buildCounterGenerateConfigReportResponse--; | 1470 buildCounterGenerateConfigReportResponse--; |
1469 } | 1471 } |
1470 | 1472 |
1471 core.int buildCounterGetIamPolicyRequest = 0; | 1473 core.int buildCounterGetIamPolicyRequest = 0; |
1472 buildGetIamPolicyRequest() { | 1474 buildGetIamPolicyRequest() { |
1473 var o = new api.GetIamPolicyRequest(); | 1475 var o = new api.GetIamPolicyRequest(); |
1474 buildCounterGetIamPolicyRequest++; | 1476 buildCounterGetIamPolicyRequest++; |
1475 if (buildCounterGetIamPolicyRequest < 3) { | 1477 if (buildCounterGetIamPolicyRequest < 3) { |
1476 } | 1478 } |
1477 buildCounterGetIamPolicyRequest--; | 1479 buildCounterGetIamPolicyRequest--; |
1478 return o; | 1480 return o; |
1479 } | 1481 } |
1480 | 1482 |
1481 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 1483 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
1482 buildCounterGetIamPolicyRequest++; | 1484 buildCounterGetIamPolicyRequest++; |
1483 if (buildCounterGetIamPolicyRequest < 3) { | 1485 if (buildCounterGetIamPolicyRequest < 3) { |
1484 } | 1486 } |
1485 buildCounterGetIamPolicyRequest--; | 1487 buildCounterGetIamPolicyRequest--; |
1486 } | 1488 } |
1487 | 1489 |
1488 buildUnnamed1158() { | 1490 buildUnnamed1175() { |
1489 var o = new core.List<api.HttpRule>(); | 1491 var o = new core.List<api.HttpRule>(); |
1490 o.add(buildHttpRule()); | 1492 o.add(buildHttpRule()); |
1491 o.add(buildHttpRule()); | 1493 o.add(buildHttpRule()); |
1492 return o; | 1494 return o; |
1493 } | 1495 } |
1494 | 1496 |
1495 checkUnnamed1158(core.List<api.HttpRule> o) { | 1497 checkUnnamed1175(core.List<api.HttpRule> o) { |
1496 unittest.expect(o, unittest.hasLength(2)); | 1498 unittest.expect(o, unittest.hasLength(2)); |
1497 checkHttpRule(o[0]); | 1499 checkHttpRule(o[0]); |
1498 checkHttpRule(o[1]); | 1500 checkHttpRule(o[1]); |
1499 } | 1501 } |
1500 | 1502 |
1501 core.int buildCounterHttp = 0; | 1503 core.int buildCounterHttp = 0; |
1502 buildHttp() { | 1504 buildHttp() { |
1503 var o = new api.Http(); | 1505 var o = new api.Http(); |
1504 buildCounterHttp++; | 1506 buildCounterHttp++; |
1505 if (buildCounterHttp < 3) { | 1507 if (buildCounterHttp < 3) { |
1506 o.fullyDecodeReservedExpansion = true; | 1508 o.fullyDecodeReservedExpansion = true; |
1507 o.rules = buildUnnamed1158(); | 1509 o.rules = buildUnnamed1175(); |
1508 } | 1510 } |
1509 buildCounterHttp--; | 1511 buildCounterHttp--; |
1510 return o; | 1512 return o; |
1511 } | 1513 } |
1512 | 1514 |
1513 checkHttp(api.Http o) { | 1515 checkHttp(api.Http o) { |
1514 buildCounterHttp++; | 1516 buildCounterHttp++; |
1515 if (buildCounterHttp < 3) { | 1517 if (buildCounterHttp < 3) { |
1516 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); | 1518 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); |
1517 checkUnnamed1158(o.rules); | 1519 checkUnnamed1175(o.rules); |
1518 } | 1520 } |
1519 buildCounterHttp--; | 1521 buildCounterHttp--; |
1520 } | 1522 } |
1521 | 1523 |
1522 buildUnnamed1159() { | 1524 buildUnnamed1176() { |
1523 var o = new core.List<api.HttpRule>(); | 1525 var o = new core.List<api.HttpRule>(); |
1524 o.add(buildHttpRule()); | 1526 o.add(buildHttpRule()); |
1525 o.add(buildHttpRule()); | 1527 o.add(buildHttpRule()); |
1526 return o; | 1528 return o; |
1527 } | 1529 } |
1528 | 1530 |
1529 checkUnnamed1159(core.List<api.HttpRule> o) { | 1531 checkUnnamed1176(core.List<api.HttpRule> o) { |
1530 unittest.expect(o, unittest.hasLength(2)); | 1532 unittest.expect(o, unittest.hasLength(2)); |
1531 checkHttpRule(o[0]); | 1533 checkHttpRule(o[0]); |
1532 checkHttpRule(o[1]); | 1534 checkHttpRule(o[1]); |
1533 } | 1535 } |
1534 | 1536 |
1535 core.int buildCounterHttpRule = 0; | 1537 core.int buildCounterHttpRule = 0; |
1536 buildHttpRule() { | 1538 buildHttpRule() { |
1537 var o = new api.HttpRule(); | 1539 var o = new api.HttpRule(); |
1538 buildCounterHttpRule++; | 1540 buildCounterHttpRule++; |
1539 if (buildCounterHttpRule < 3) { | 1541 if (buildCounterHttpRule < 3) { |
1540 o.additionalBindings = buildUnnamed1159(); | 1542 o.additionalBindings = buildUnnamed1176(); |
1541 o.body = "foo"; | 1543 o.body = "foo"; |
1542 o.custom = buildCustomHttpPattern(); | 1544 o.custom = buildCustomHttpPattern(); |
1543 o.delete = "foo"; | 1545 o.delete = "foo"; |
1544 o.get = "foo"; | 1546 o.get = "foo"; |
1545 o.mediaDownload = buildMediaDownload(); | 1547 o.mediaDownload = buildMediaDownload(); |
1546 o.mediaUpload = buildMediaUpload(); | 1548 o.mediaUpload = buildMediaUpload(); |
1547 o.patch = "foo"; | 1549 o.patch = "foo"; |
1548 o.post = "foo"; | 1550 o.post = "foo"; |
1549 o.put = "foo"; | 1551 o.put = "foo"; |
1550 o.responseBody = "foo"; | 1552 o.responseBody = "foo"; |
1551 o.restCollection = "foo"; | |
1552 o.restMethodName = "foo"; | |
1553 o.selector = "foo"; | 1553 o.selector = "foo"; |
1554 } | 1554 } |
1555 buildCounterHttpRule--; | 1555 buildCounterHttpRule--; |
1556 return o; | 1556 return o; |
1557 } | 1557 } |
1558 | 1558 |
1559 checkHttpRule(api.HttpRule o) { | 1559 checkHttpRule(api.HttpRule o) { |
1560 buildCounterHttpRule++; | 1560 buildCounterHttpRule++; |
1561 if (buildCounterHttpRule < 3) { | 1561 if (buildCounterHttpRule < 3) { |
1562 checkUnnamed1159(o.additionalBindings); | 1562 checkUnnamed1176(o.additionalBindings); |
1563 unittest.expect(o.body, unittest.equals('foo')); | 1563 unittest.expect(o.body, unittest.equals('foo')); |
1564 checkCustomHttpPattern(o.custom); | 1564 checkCustomHttpPattern(o.custom); |
1565 unittest.expect(o.delete, unittest.equals('foo')); | 1565 unittest.expect(o.delete, unittest.equals('foo')); |
1566 unittest.expect(o.get, unittest.equals('foo')); | 1566 unittest.expect(o.get, unittest.equals('foo')); |
1567 checkMediaDownload(o.mediaDownload); | 1567 checkMediaDownload(o.mediaDownload); |
1568 checkMediaUpload(o.mediaUpload); | 1568 checkMediaUpload(o.mediaUpload); |
1569 unittest.expect(o.patch, unittest.equals('foo')); | 1569 unittest.expect(o.patch, unittest.equals('foo')); |
1570 unittest.expect(o.post, unittest.equals('foo')); | 1570 unittest.expect(o.post, unittest.equals('foo')); |
1571 unittest.expect(o.put, unittest.equals('foo')); | 1571 unittest.expect(o.put, unittest.equals('foo')); |
1572 unittest.expect(o.responseBody, unittest.equals('foo')); | 1572 unittest.expect(o.responseBody, unittest.equals('foo')); |
1573 unittest.expect(o.restCollection, unittest.equals('foo')); | |
1574 unittest.expect(o.restMethodName, unittest.equals('foo')); | |
1575 unittest.expect(o.selector, unittest.equals('foo')); | 1573 unittest.expect(o.selector, unittest.equals('foo')); |
1576 } | 1574 } |
1577 buildCounterHttpRule--; | 1575 buildCounterHttpRule--; |
1578 } | 1576 } |
1579 | 1577 |
1580 core.int buildCounterLabelDescriptor = 0; | 1578 core.int buildCounterLabelDescriptor = 0; |
1581 buildLabelDescriptor() { | 1579 buildLabelDescriptor() { |
1582 var o = new api.LabelDescriptor(); | 1580 var o = new api.LabelDescriptor(); |
1583 buildCounterLabelDescriptor++; | 1581 buildCounterLabelDescriptor++; |
1584 if (buildCounterLabelDescriptor < 3) { | 1582 if (buildCounterLabelDescriptor < 3) { |
1585 o.description = "foo"; | 1583 o.description = "foo"; |
1586 o.key = "foo"; | 1584 o.key = "foo"; |
1587 o.valueType = "foo"; | 1585 o.valueType = "foo"; |
1588 } | 1586 } |
1589 buildCounterLabelDescriptor--; | 1587 buildCounterLabelDescriptor--; |
1590 return o; | 1588 return o; |
1591 } | 1589 } |
1592 | 1590 |
1593 checkLabelDescriptor(api.LabelDescriptor o) { | 1591 checkLabelDescriptor(api.LabelDescriptor o) { |
1594 buildCounterLabelDescriptor++; | 1592 buildCounterLabelDescriptor++; |
1595 if (buildCounterLabelDescriptor < 3) { | 1593 if (buildCounterLabelDescriptor < 3) { |
1596 unittest.expect(o.description, unittest.equals('foo')); | 1594 unittest.expect(o.description, unittest.equals('foo')); |
1597 unittest.expect(o.key, unittest.equals('foo')); | 1595 unittest.expect(o.key, unittest.equals('foo')); |
1598 unittest.expect(o.valueType, unittest.equals('foo')); | 1596 unittest.expect(o.valueType, unittest.equals('foo')); |
1599 } | 1597 } |
1600 buildCounterLabelDescriptor--; | 1598 buildCounterLabelDescriptor--; |
1601 } | 1599 } |
1602 | 1600 |
1603 buildUnnamed1160() { | 1601 buildUnnamed1177() { |
1604 var o = new core.List<api.Operation>(); | 1602 var o = new core.List<api.Operation>(); |
1605 o.add(buildOperation()); | 1603 o.add(buildOperation()); |
1606 o.add(buildOperation()); | 1604 o.add(buildOperation()); |
1607 return o; | 1605 return o; |
1608 } | 1606 } |
1609 | 1607 |
1610 checkUnnamed1160(core.List<api.Operation> o) { | 1608 checkUnnamed1177(core.List<api.Operation> o) { |
1611 unittest.expect(o, unittest.hasLength(2)); | 1609 unittest.expect(o, unittest.hasLength(2)); |
1612 checkOperation(o[0]); | 1610 checkOperation(o[0]); |
1613 checkOperation(o[1]); | 1611 checkOperation(o[1]); |
1614 } | 1612 } |
1615 | 1613 |
1616 core.int buildCounterListOperationsResponse = 0; | 1614 core.int buildCounterListOperationsResponse = 0; |
1617 buildListOperationsResponse() { | 1615 buildListOperationsResponse() { |
1618 var o = new api.ListOperationsResponse(); | 1616 var o = new api.ListOperationsResponse(); |
1619 buildCounterListOperationsResponse++; | 1617 buildCounterListOperationsResponse++; |
1620 if (buildCounterListOperationsResponse < 3) { | 1618 if (buildCounterListOperationsResponse < 3) { |
1621 o.nextPageToken = "foo"; | 1619 o.nextPageToken = "foo"; |
1622 o.operations = buildUnnamed1160(); | 1620 o.operations = buildUnnamed1177(); |
1623 } | 1621 } |
1624 buildCounterListOperationsResponse--; | 1622 buildCounterListOperationsResponse--; |
1625 return o; | 1623 return o; |
1626 } | 1624 } |
1627 | 1625 |
1628 checkListOperationsResponse(api.ListOperationsResponse o) { | 1626 checkListOperationsResponse(api.ListOperationsResponse o) { |
1629 buildCounterListOperationsResponse++; | 1627 buildCounterListOperationsResponse++; |
1630 if (buildCounterListOperationsResponse < 3) { | 1628 if (buildCounterListOperationsResponse < 3) { |
1631 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1629 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1632 checkUnnamed1160(o.operations); | 1630 checkUnnamed1177(o.operations); |
1633 } | 1631 } |
1634 buildCounterListOperationsResponse--; | 1632 buildCounterListOperationsResponse--; |
1635 } | 1633 } |
1636 | 1634 |
1637 buildUnnamed1161() { | 1635 buildUnnamed1178() { |
1638 var o = new core.List<api.Service>(); | 1636 var o = new core.List<api.Service>(); |
1639 o.add(buildService()); | 1637 o.add(buildService()); |
1640 o.add(buildService()); | 1638 o.add(buildService()); |
1641 return o; | 1639 return o; |
1642 } | 1640 } |
1643 | 1641 |
1644 checkUnnamed1161(core.List<api.Service> o) { | 1642 checkUnnamed1178(core.List<api.Service> o) { |
1645 unittest.expect(o, unittest.hasLength(2)); | 1643 unittest.expect(o, unittest.hasLength(2)); |
1646 checkService(o[0]); | 1644 checkService(o[0]); |
1647 checkService(o[1]); | 1645 checkService(o[1]); |
1648 } | 1646 } |
1649 | 1647 |
1650 core.int buildCounterListServiceConfigsResponse = 0; | 1648 core.int buildCounterListServiceConfigsResponse = 0; |
1651 buildListServiceConfigsResponse() { | 1649 buildListServiceConfigsResponse() { |
1652 var o = new api.ListServiceConfigsResponse(); | 1650 var o = new api.ListServiceConfigsResponse(); |
1653 buildCounterListServiceConfigsResponse++; | 1651 buildCounterListServiceConfigsResponse++; |
1654 if (buildCounterListServiceConfigsResponse < 3) { | 1652 if (buildCounterListServiceConfigsResponse < 3) { |
1655 o.nextPageToken = "foo"; | 1653 o.nextPageToken = "foo"; |
1656 o.serviceConfigs = buildUnnamed1161(); | 1654 o.serviceConfigs = buildUnnamed1178(); |
1657 } | 1655 } |
1658 buildCounterListServiceConfigsResponse--; | 1656 buildCounterListServiceConfigsResponse--; |
1659 return o; | 1657 return o; |
1660 } | 1658 } |
1661 | 1659 |
1662 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { | 1660 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { |
1663 buildCounterListServiceConfigsResponse++; | 1661 buildCounterListServiceConfigsResponse++; |
1664 if (buildCounterListServiceConfigsResponse < 3) { | 1662 if (buildCounterListServiceConfigsResponse < 3) { |
1665 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1663 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1666 checkUnnamed1161(o.serviceConfigs); | 1664 checkUnnamed1178(o.serviceConfigs); |
1667 } | 1665 } |
1668 buildCounterListServiceConfigsResponse--; | 1666 buildCounterListServiceConfigsResponse--; |
1669 } | 1667 } |
1670 | 1668 |
1671 buildUnnamed1162() { | 1669 buildUnnamed1179() { |
1672 var o = new core.List<api.Rollout>(); | 1670 var o = new core.List<api.Rollout>(); |
1673 o.add(buildRollout()); | 1671 o.add(buildRollout()); |
1674 o.add(buildRollout()); | 1672 o.add(buildRollout()); |
1675 return o; | 1673 return o; |
1676 } | 1674 } |
1677 | 1675 |
1678 checkUnnamed1162(core.List<api.Rollout> o) { | 1676 checkUnnamed1179(core.List<api.Rollout> o) { |
1679 unittest.expect(o, unittest.hasLength(2)); | 1677 unittest.expect(o, unittest.hasLength(2)); |
1680 checkRollout(o[0]); | 1678 checkRollout(o[0]); |
1681 checkRollout(o[1]); | 1679 checkRollout(o[1]); |
1682 } | 1680 } |
1683 | 1681 |
1684 core.int buildCounterListServiceRolloutsResponse = 0; | 1682 core.int buildCounterListServiceRolloutsResponse = 0; |
1685 buildListServiceRolloutsResponse() { | 1683 buildListServiceRolloutsResponse() { |
1686 var o = new api.ListServiceRolloutsResponse(); | 1684 var o = new api.ListServiceRolloutsResponse(); |
1687 buildCounterListServiceRolloutsResponse++; | 1685 buildCounterListServiceRolloutsResponse++; |
1688 if (buildCounterListServiceRolloutsResponse < 3) { | 1686 if (buildCounterListServiceRolloutsResponse < 3) { |
1689 o.nextPageToken = "foo"; | 1687 o.nextPageToken = "foo"; |
1690 o.rollouts = buildUnnamed1162(); | 1688 o.rollouts = buildUnnamed1179(); |
1691 } | 1689 } |
1692 buildCounterListServiceRolloutsResponse--; | 1690 buildCounterListServiceRolloutsResponse--; |
1693 return o; | 1691 return o; |
1694 } | 1692 } |
1695 | 1693 |
1696 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { | 1694 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { |
1697 buildCounterListServiceRolloutsResponse++; | 1695 buildCounterListServiceRolloutsResponse++; |
1698 if (buildCounterListServiceRolloutsResponse < 3) { | 1696 if (buildCounterListServiceRolloutsResponse < 3) { |
1699 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1697 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1700 checkUnnamed1162(o.rollouts); | 1698 checkUnnamed1179(o.rollouts); |
1701 } | 1699 } |
1702 buildCounterListServiceRolloutsResponse--; | 1700 buildCounterListServiceRolloutsResponse--; |
1703 } | 1701 } |
1704 | 1702 |
1705 buildUnnamed1163() { | 1703 buildUnnamed1180() { |
1706 var o = new core.List<api.ManagedService>(); | 1704 var o = new core.List<api.ManagedService>(); |
1707 o.add(buildManagedService()); | 1705 o.add(buildManagedService()); |
1708 o.add(buildManagedService()); | 1706 o.add(buildManagedService()); |
1709 return o; | 1707 return o; |
1710 } | 1708 } |
1711 | 1709 |
1712 checkUnnamed1163(core.List<api.ManagedService> o) { | 1710 checkUnnamed1180(core.List<api.ManagedService> o) { |
1713 unittest.expect(o, unittest.hasLength(2)); | 1711 unittest.expect(o, unittest.hasLength(2)); |
1714 checkManagedService(o[0]); | 1712 checkManagedService(o[0]); |
1715 checkManagedService(o[1]); | 1713 checkManagedService(o[1]); |
1716 } | 1714 } |
1717 | 1715 |
1718 core.int buildCounterListServicesResponse = 0; | 1716 core.int buildCounterListServicesResponse = 0; |
1719 buildListServicesResponse() { | 1717 buildListServicesResponse() { |
1720 var o = new api.ListServicesResponse(); | 1718 var o = new api.ListServicesResponse(); |
1721 buildCounterListServicesResponse++; | 1719 buildCounterListServicesResponse++; |
1722 if (buildCounterListServicesResponse < 3) { | 1720 if (buildCounterListServicesResponse < 3) { |
1723 o.nextPageToken = "foo"; | 1721 o.nextPageToken = "foo"; |
1724 o.services = buildUnnamed1163(); | 1722 o.services = buildUnnamed1180(); |
1725 } | 1723 } |
1726 buildCounterListServicesResponse--; | 1724 buildCounterListServicesResponse--; |
1727 return o; | 1725 return o; |
1728 } | 1726 } |
1729 | 1727 |
1730 checkListServicesResponse(api.ListServicesResponse o) { | 1728 checkListServicesResponse(api.ListServicesResponse o) { |
1731 buildCounterListServicesResponse++; | 1729 buildCounterListServicesResponse++; |
1732 if (buildCounterListServicesResponse < 3) { | 1730 if (buildCounterListServicesResponse < 3) { |
1733 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1731 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1734 checkUnnamed1163(o.services); | 1732 checkUnnamed1180(o.services); |
1735 } | 1733 } |
1736 buildCounterListServicesResponse--; | 1734 buildCounterListServicesResponse--; |
1737 } | 1735 } |
1738 | 1736 |
1739 core.int buildCounterLogConfig = 0; | 1737 core.int buildCounterLogConfig = 0; |
1740 buildLogConfig() { | 1738 buildLogConfig() { |
1741 var o = new api.LogConfig(); | 1739 var o = new api.LogConfig(); |
1742 buildCounterLogConfig++; | 1740 buildCounterLogConfig++; |
1743 if (buildCounterLogConfig < 3) { | 1741 if (buildCounterLogConfig < 3) { |
1744 o.cloudAudit = buildCloudAuditOptions(); | 1742 o.cloudAudit = buildCloudAuditOptions(); |
1745 o.counter = buildCounterOptions(); | 1743 o.counter = buildCounterOptions(); |
1746 o.dataAccess = buildDataAccessOptions(); | 1744 o.dataAccess = buildDataAccessOptions(); |
1747 } | 1745 } |
1748 buildCounterLogConfig--; | 1746 buildCounterLogConfig--; |
1749 return o; | 1747 return o; |
1750 } | 1748 } |
1751 | 1749 |
1752 checkLogConfig(api.LogConfig o) { | 1750 checkLogConfig(api.LogConfig o) { |
1753 buildCounterLogConfig++; | 1751 buildCounterLogConfig++; |
1754 if (buildCounterLogConfig < 3) { | 1752 if (buildCounterLogConfig < 3) { |
1755 checkCloudAuditOptions(o.cloudAudit); | 1753 checkCloudAuditOptions(o.cloudAudit); |
1756 checkCounterOptions(o.counter); | 1754 checkCounterOptions(o.counter); |
1757 checkDataAccessOptions(o.dataAccess); | 1755 checkDataAccessOptions(o.dataAccess); |
1758 } | 1756 } |
1759 buildCounterLogConfig--; | 1757 buildCounterLogConfig--; |
1760 } | 1758 } |
1761 | 1759 |
1762 buildUnnamed1164() { | 1760 buildUnnamed1181() { |
1763 var o = new core.List<api.LabelDescriptor>(); | 1761 var o = new core.List<api.LabelDescriptor>(); |
1764 o.add(buildLabelDescriptor()); | 1762 o.add(buildLabelDescriptor()); |
1765 o.add(buildLabelDescriptor()); | 1763 o.add(buildLabelDescriptor()); |
1766 return o; | 1764 return o; |
1767 } | 1765 } |
1768 | 1766 |
1769 checkUnnamed1164(core.List<api.LabelDescriptor> o) { | 1767 checkUnnamed1181(core.List<api.LabelDescriptor> o) { |
1770 unittest.expect(o, unittest.hasLength(2)); | 1768 unittest.expect(o, unittest.hasLength(2)); |
1771 checkLabelDescriptor(o[0]); | 1769 checkLabelDescriptor(o[0]); |
1772 checkLabelDescriptor(o[1]); | 1770 checkLabelDescriptor(o[1]); |
1773 } | 1771 } |
1774 | 1772 |
1775 core.int buildCounterLogDescriptor = 0; | 1773 core.int buildCounterLogDescriptor = 0; |
1776 buildLogDescriptor() { | 1774 buildLogDescriptor() { |
1777 var o = new api.LogDescriptor(); | 1775 var o = new api.LogDescriptor(); |
1778 buildCounterLogDescriptor++; | 1776 buildCounterLogDescriptor++; |
1779 if (buildCounterLogDescriptor < 3) { | 1777 if (buildCounterLogDescriptor < 3) { |
1780 o.description = "foo"; | 1778 o.description = "foo"; |
1781 o.displayName = "foo"; | 1779 o.displayName = "foo"; |
1782 o.labels = buildUnnamed1164(); | 1780 o.labels = buildUnnamed1181(); |
1783 o.name = "foo"; | 1781 o.name = "foo"; |
1784 } | 1782 } |
1785 buildCounterLogDescriptor--; | 1783 buildCounterLogDescriptor--; |
1786 return o; | 1784 return o; |
1787 } | 1785 } |
1788 | 1786 |
1789 checkLogDescriptor(api.LogDescriptor o) { | 1787 checkLogDescriptor(api.LogDescriptor o) { |
1790 buildCounterLogDescriptor++; | 1788 buildCounterLogDescriptor++; |
1791 if (buildCounterLogDescriptor < 3) { | 1789 if (buildCounterLogDescriptor < 3) { |
1792 unittest.expect(o.description, unittest.equals('foo')); | 1790 unittest.expect(o.description, unittest.equals('foo')); |
1793 unittest.expect(o.displayName, unittest.equals('foo')); | 1791 unittest.expect(o.displayName, unittest.equals('foo')); |
1794 checkUnnamed1164(o.labels); | 1792 checkUnnamed1181(o.labels); |
1795 unittest.expect(o.name, unittest.equals('foo')); | 1793 unittest.expect(o.name, unittest.equals('foo')); |
1796 } | 1794 } |
1797 buildCounterLogDescriptor--; | 1795 buildCounterLogDescriptor--; |
1798 } | 1796 } |
1799 | 1797 |
1800 buildUnnamed1165() { | 1798 buildUnnamed1182() { |
1801 var o = new core.List<api.LoggingDestination>(); | 1799 var o = new core.List<api.LoggingDestination>(); |
1802 o.add(buildLoggingDestination()); | 1800 o.add(buildLoggingDestination()); |
1803 o.add(buildLoggingDestination()); | 1801 o.add(buildLoggingDestination()); |
1804 return o; | 1802 return o; |
1805 } | 1803 } |
1806 | 1804 |
1807 checkUnnamed1165(core.List<api.LoggingDestination> o) { | 1805 checkUnnamed1182(core.List<api.LoggingDestination> o) { |
1808 unittest.expect(o, unittest.hasLength(2)); | 1806 unittest.expect(o, unittest.hasLength(2)); |
1809 checkLoggingDestination(o[0]); | 1807 checkLoggingDestination(o[0]); |
1810 checkLoggingDestination(o[1]); | 1808 checkLoggingDestination(o[1]); |
1811 } | 1809 } |
1812 | 1810 |
1813 buildUnnamed1166() { | 1811 buildUnnamed1183() { |
1814 var o = new core.List<api.LoggingDestination>(); | 1812 var o = new core.List<api.LoggingDestination>(); |
1815 o.add(buildLoggingDestination()); | 1813 o.add(buildLoggingDestination()); |
1816 o.add(buildLoggingDestination()); | 1814 o.add(buildLoggingDestination()); |
1817 return o; | 1815 return o; |
1818 } | 1816 } |
1819 | 1817 |
1820 checkUnnamed1166(core.List<api.LoggingDestination> o) { | 1818 checkUnnamed1183(core.List<api.LoggingDestination> o) { |
1821 unittest.expect(o, unittest.hasLength(2)); | 1819 unittest.expect(o, unittest.hasLength(2)); |
1822 checkLoggingDestination(o[0]); | 1820 checkLoggingDestination(o[0]); |
1823 checkLoggingDestination(o[1]); | 1821 checkLoggingDestination(o[1]); |
1824 } | 1822 } |
1825 | 1823 |
1826 core.int buildCounterLogging = 0; | 1824 core.int buildCounterLogging = 0; |
1827 buildLogging() { | 1825 buildLogging() { |
1828 var o = new api.Logging(); | 1826 var o = new api.Logging(); |
1829 buildCounterLogging++; | 1827 buildCounterLogging++; |
1830 if (buildCounterLogging < 3) { | 1828 if (buildCounterLogging < 3) { |
1831 o.consumerDestinations = buildUnnamed1165(); | 1829 o.consumerDestinations = buildUnnamed1182(); |
1832 o.producerDestinations = buildUnnamed1166(); | 1830 o.producerDestinations = buildUnnamed1183(); |
1833 } | 1831 } |
1834 buildCounterLogging--; | 1832 buildCounterLogging--; |
1835 return o; | 1833 return o; |
1836 } | 1834 } |
1837 | 1835 |
1838 checkLogging(api.Logging o) { | 1836 checkLogging(api.Logging o) { |
1839 buildCounterLogging++; | 1837 buildCounterLogging++; |
1840 if (buildCounterLogging < 3) { | 1838 if (buildCounterLogging < 3) { |
1841 checkUnnamed1165(o.consumerDestinations); | 1839 checkUnnamed1182(o.consumerDestinations); |
1842 checkUnnamed1166(o.producerDestinations); | 1840 checkUnnamed1183(o.producerDestinations); |
1843 } | 1841 } |
1844 buildCounterLogging--; | 1842 buildCounterLogging--; |
1845 } | 1843 } |
1846 | 1844 |
1847 buildUnnamed1167() { | 1845 buildUnnamed1184() { |
1848 var o = new core.List<core.String>(); | 1846 var o = new core.List<core.String>(); |
1849 o.add("foo"); | 1847 o.add("foo"); |
1850 o.add("foo"); | 1848 o.add("foo"); |
1851 return o; | 1849 return o; |
1852 } | 1850 } |
1853 | 1851 |
1854 checkUnnamed1167(core.List<core.String> o) { | 1852 checkUnnamed1184(core.List<core.String> o) { |
1855 unittest.expect(o, unittest.hasLength(2)); | 1853 unittest.expect(o, unittest.hasLength(2)); |
1856 unittest.expect(o[0], unittest.equals('foo')); | 1854 unittest.expect(o[0], unittest.equals('foo')); |
1857 unittest.expect(o[1], unittest.equals('foo')); | 1855 unittest.expect(o[1], unittest.equals('foo')); |
1858 } | 1856 } |
1859 | 1857 |
1860 core.int buildCounterLoggingDestination = 0; | 1858 core.int buildCounterLoggingDestination = 0; |
1861 buildLoggingDestination() { | 1859 buildLoggingDestination() { |
1862 var o = new api.LoggingDestination(); | 1860 var o = new api.LoggingDestination(); |
1863 buildCounterLoggingDestination++; | 1861 buildCounterLoggingDestination++; |
1864 if (buildCounterLoggingDestination < 3) { | 1862 if (buildCounterLoggingDestination < 3) { |
1865 o.logs = buildUnnamed1167(); | 1863 o.logs = buildUnnamed1184(); |
1866 o.monitoredResource = "foo"; | 1864 o.monitoredResource = "foo"; |
1867 } | 1865 } |
1868 buildCounterLoggingDestination--; | 1866 buildCounterLoggingDestination--; |
1869 return o; | 1867 return o; |
1870 } | 1868 } |
1871 | 1869 |
1872 checkLoggingDestination(api.LoggingDestination o) { | 1870 checkLoggingDestination(api.LoggingDestination o) { |
1873 buildCounterLoggingDestination++; | 1871 buildCounterLoggingDestination++; |
1874 if (buildCounterLoggingDestination < 3) { | 1872 if (buildCounterLoggingDestination < 3) { |
1875 checkUnnamed1167(o.logs); | 1873 checkUnnamed1184(o.logs); |
1876 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1874 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1877 } | 1875 } |
1878 buildCounterLoggingDestination--; | 1876 buildCounterLoggingDestination--; |
1879 } | 1877 } |
1880 | 1878 |
1881 core.int buildCounterManagedService = 0; | 1879 core.int buildCounterManagedService = 0; |
1882 buildManagedService() { | 1880 buildManagedService() { |
1883 var o = new api.ManagedService(); | 1881 var o = new api.ManagedService(); |
1884 buildCounterManagedService++; | 1882 buildCounterManagedService++; |
1885 if (buildCounterManagedService < 3) { | 1883 if (buildCounterManagedService < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 unittest.expect(o.completeNotification, unittest.isTrue); | 1919 unittest.expect(o.completeNotification, unittest.isTrue); |
1922 unittest.expect(o.downloadService, unittest.equals('foo')); | 1920 unittest.expect(o.downloadService, unittest.equals('foo')); |
1923 unittest.expect(o.dropzone, unittest.equals('foo')); | 1921 unittest.expect(o.dropzone, unittest.equals('foo')); |
1924 unittest.expect(o.enabled, unittest.isTrue); | 1922 unittest.expect(o.enabled, unittest.isTrue); |
1925 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); | 1923 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); |
1926 unittest.expect(o.useDirectDownload, unittest.isTrue); | 1924 unittest.expect(o.useDirectDownload, unittest.isTrue); |
1927 } | 1925 } |
1928 buildCounterMediaDownload--; | 1926 buildCounterMediaDownload--; |
1929 } | 1927 } |
1930 | 1928 |
1931 buildUnnamed1168() { | 1929 buildUnnamed1185() { |
1932 var o = new core.List<core.String>(); | 1930 var o = new core.List<core.String>(); |
1933 o.add("foo"); | 1931 o.add("foo"); |
1934 o.add("foo"); | 1932 o.add("foo"); |
1935 return o; | 1933 return o; |
1936 } | 1934 } |
1937 | 1935 |
1938 checkUnnamed1168(core.List<core.String> o) { | 1936 checkUnnamed1185(core.List<core.String> o) { |
1939 unittest.expect(o, unittest.hasLength(2)); | 1937 unittest.expect(o, unittest.hasLength(2)); |
1940 unittest.expect(o[0], unittest.equals('foo')); | 1938 unittest.expect(o[0], unittest.equals('foo')); |
1941 unittest.expect(o[1], unittest.equals('foo')); | 1939 unittest.expect(o[1], unittest.equals('foo')); |
1942 } | 1940 } |
1943 | 1941 |
1944 core.int buildCounterMediaUpload = 0; | 1942 core.int buildCounterMediaUpload = 0; |
1945 buildMediaUpload() { | 1943 buildMediaUpload() { |
1946 var o = new api.MediaUpload(); | 1944 var o = new api.MediaUpload(); |
1947 buildCounterMediaUpload++; | 1945 buildCounterMediaUpload++; |
1948 if (buildCounterMediaUpload < 3) { | 1946 if (buildCounterMediaUpload < 3) { |
1949 o.completeNotification = true; | 1947 o.completeNotification = true; |
1950 o.dropzone = "foo"; | 1948 o.dropzone = "foo"; |
1951 o.enabled = true; | 1949 o.enabled = true; |
1952 o.maxSize = "foo"; | 1950 o.maxSize = "foo"; |
1953 o.mimeTypes = buildUnnamed1168(); | 1951 o.mimeTypes = buildUnnamed1185(); |
1954 o.progressNotification = true; | 1952 o.progressNotification = true; |
1955 o.startNotification = true; | 1953 o.startNotification = true; |
1956 o.uploadService = "foo"; | 1954 o.uploadService = "foo"; |
1957 } | 1955 } |
1958 buildCounterMediaUpload--; | 1956 buildCounterMediaUpload--; |
1959 return o; | 1957 return o; |
1960 } | 1958 } |
1961 | 1959 |
1962 checkMediaUpload(api.MediaUpload o) { | 1960 checkMediaUpload(api.MediaUpload o) { |
1963 buildCounterMediaUpload++; | 1961 buildCounterMediaUpload++; |
1964 if (buildCounterMediaUpload < 3) { | 1962 if (buildCounterMediaUpload < 3) { |
1965 unittest.expect(o.completeNotification, unittest.isTrue); | 1963 unittest.expect(o.completeNotification, unittest.isTrue); |
1966 unittest.expect(o.dropzone, unittest.equals('foo')); | 1964 unittest.expect(o.dropzone, unittest.equals('foo')); |
1967 unittest.expect(o.enabled, unittest.isTrue); | 1965 unittest.expect(o.enabled, unittest.isTrue); |
1968 unittest.expect(o.maxSize, unittest.equals('foo')); | 1966 unittest.expect(o.maxSize, unittest.equals('foo')); |
1969 checkUnnamed1168(o.mimeTypes); | 1967 checkUnnamed1185(o.mimeTypes); |
1970 unittest.expect(o.progressNotification, unittest.isTrue); | 1968 unittest.expect(o.progressNotification, unittest.isTrue); |
1971 unittest.expect(o.startNotification, unittest.isTrue); | 1969 unittest.expect(o.startNotification, unittest.isTrue); |
1972 unittest.expect(o.uploadService, unittest.equals('foo')); | 1970 unittest.expect(o.uploadService, unittest.equals('foo')); |
1973 } | 1971 } |
1974 buildCounterMediaUpload--; | 1972 buildCounterMediaUpload--; |
1975 } | 1973 } |
1976 | 1974 |
1977 buildUnnamed1169() { | 1975 buildUnnamed1186() { |
1978 var o = new core.List<api.Option>(); | 1976 var o = new core.List<api.Option>(); |
1979 o.add(buildOption()); | 1977 o.add(buildOption()); |
1980 o.add(buildOption()); | 1978 o.add(buildOption()); |
1981 return o; | 1979 return o; |
1982 } | 1980 } |
1983 | 1981 |
1984 checkUnnamed1169(core.List<api.Option> o) { | 1982 checkUnnamed1186(core.List<api.Option> o) { |
1985 unittest.expect(o, unittest.hasLength(2)); | 1983 unittest.expect(o, unittest.hasLength(2)); |
1986 checkOption(o[0]); | 1984 checkOption(o[0]); |
1987 checkOption(o[1]); | 1985 checkOption(o[1]); |
1988 } | 1986 } |
1989 | 1987 |
1990 core.int buildCounterMethod = 0; | 1988 core.int buildCounterMethod = 0; |
1991 buildMethod() { | 1989 buildMethod() { |
1992 var o = new api.Method(); | 1990 var o = new api.Method(); |
1993 buildCounterMethod++; | 1991 buildCounterMethod++; |
1994 if (buildCounterMethod < 3) { | 1992 if (buildCounterMethod < 3) { |
1995 o.name = "foo"; | 1993 o.name = "foo"; |
1996 o.options = buildUnnamed1169(); | 1994 o.options = buildUnnamed1186(); |
1997 o.requestStreaming = true; | 1995 o.requestStreaming = true; |
1998 o.requestTypeUrl = "foo"; | 1996 o.requestTypeUrl = "foo"; |
1999 o.responseStreaming = true; | 1997 o.responseStreaming = true; |
2000 o.responseTypeUrl = "foo"; | 1998 o.responseTypeUrl = "foo"; |
2001 o.syntax = "foo"; | 1999 o.syntax = "foo"; |
2002 } | 2000 } |
2003 buildCounterMethod--; | 2001 buildCounterMethod--; |
2004 return o; | 2002 return o; |
2005 } | 2003 } |
2006 | 2004 |
2007 checkMethod(api.Method o) { | 2005 checkMethod(api.Method o) { |
2008 buildCounterMethod++; | 2006 buildCounterMethod++; |
2009 if (buildCounterMethod < 3) { | 2007 if (buildCounterMethod < 3) { |
2010 unittest.expect(o.name, unittest.equals('foo')); | 2008 unittest.expect(o.name, unittest.equals('foo')); |
2011 checkUnnamed1169(o.options); | 2009 checkUnnamed1186(o.options); |
2012 unittest.expect(o.requestStreaming, unittest.isTrue); | 2010 unittest.expect(o.requestStreaming, unittest.isTrue); |
2013 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 2011 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
2014 unittest.expect(o.responseStreaming, unittest.isTrue); | 2012 unittest.expect(o.responseStreaming, unittest.isTrue); |
2015 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 2013 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
2016 unittest.expect(o.syntax, unittest.equals('foo')); | 2014 unittest.expect(o.syntax, unittest.equals('foo')); |
2017 } | 2015 } |
2018 buildCounterMethod--; | 2016 buildCounterMethod--; |
2019 } | 2017 } |
2020 | 2018 |
2021 buildUnnamed1170() { | 2019 buildUnnamed1187() { |
2022 var o = new core.List<api.LabelDescriptor>(); | 2020 var o = new core.List<api.LabelDescriptor>(); |
2023 o.add(buildLabelDescriptor()); | 2021 o.add(buildLabelDescriptor()); |
2024 o.add(buildLabelDescriptor()); | 2022 o.add(buildLabelDescriptor()); |
2025 return o; | 2023 return o; |
2026 } | 2024 } |
2027 | 2025 |
2028 checkUnnamed1170(core.List<api.LabelDescriptor> o) { | 2026 checkUnnamed1187(core.List<api.LabelDescriptor> o) { |
2029 unittest.expect(o, unittest.hasLength(2)); | 2027 unittest.expect(o, unittest.hasLength(2)); |
2030 checkLabelDescriptor(o[0]); | 2028 checkLabelDescriptor(o[0]); |
2031 checkLabelDescriptor(o[1]); | 2029 checkLabelDescriptor(o[1]); |
2032 } | 2030 } |
2033 | 2031 |
2034 core.int buildCounterMetricDescriptor = 0; | 2032 core.int buildCounterMetricDescriptor = 0; |
2035 buildMetricDescriptor() { | 2033 buildMetricDescriptor() { |
2036 var o = new api.MetricDescriptor(); | 2034 var o = new api.MetricDescriptor(); |
2037 buildCounterMetricDescriptor++; | 2035 buildCounterMetricDescriptor++; |
2038 if (buildCounterMetricDescriptor < 3) { | 2036 if (buildCounterMetricDescriptor < 3) { |
2039 o.description = "foo"; | 2037 o.description = "foo"; |
2040 o.displayName = "foo"; | 2038 o.displayName = "foo"; |
2041 o.labels = buildUnnamed1170(); | 2039 o.labels = buildUnnamed1187(); |
2042 o.metricKind = "foo"; | 2040 o.metricKind = "foo"; |
2043 o.name = "foo"; | 2041 o.name = "foo"; |
2044 o.type = "foo"; | 2042 o.type = "foo"; |
2045 o.unit = "foo"; | 2043 o.unit = "foo"; |
2046 o.valueType = "foo"; | 2044 o.valueType = "foo"; |
2047 } | 2045 } |
2048 buildCounterMetricDescriptor--; | 2046 buildCounterMetricDescriptor--; |
2049 return o; | 2047 return o; |
2050 } | 2048 } |
2051 | 2049 |
2052 checkMetricDescriptor(api.MetricDescriptor o) { | 2050 checkMetricDescriptor(api.MetricDescriptor o) { |
2053 buildCounterMetricDescriptor++; | 2051 buildCounterMetricDescriptor++; |
2054 if (buildCounterMetricDescriptor < 3) { | 2052 if (buildCounterMetricDescriptor < 3) { |
2055 unittest.expect(o.description, unittest.equals('foo')); | 2053 unittest.expect(o.description, unittest.equals('foo')); |
2056 unittest.expect(o.displayName, unittest.equals('foo')); | 2054 unittest.expect(o.displayName, unittest.equals('foo')); |
2057 checkUnnamed1170(o.labels); | 2055 checkUnnamed1187(o.labels); |
2058 unittest.expect(o.metricKind, unittest.equals('foo')); | 2056 unittest.expect(o.metricKind, unittest.equals('foo')); |
2059 unittest.expect(o.name, unittest.equals('foo')); | 2057 unittest.expect(o.name, unittest.equals('foo')); |
2060 unittest.expect(o.type, unittest.equals('foo')); | 2058 unittest.expect(o.type, unittest.equals('foo')); |
2061 unittest.expect(o.unit, unittest.equals('foo')); | 2059 unittest.expect(o.unit, unittest.equals('foo')); |
2062 unittest.expect(o.valueType, unittest.equals('foo')); | 2060 unittest.expect(o.valueType, unittest.equals('foo')); |
2063 } | 2061 } |
2064 buildCounterMetricDescriptor--; | 2062 buildCounterMetricDescriptor--; |
2065 } | 2063 } |
2066 | 2064 |
2067 buildUnnamed1171() { | 2065 buildUnnamed1188() { |
2068 var o = new core.Map<core.String, core.String>(); | 2066 var o = new core.Map<core.String, core.String>(); |
2069 o["x"] = "foo"; | 2067 o["x"] = "foo"; |
2070 o["y"] = "foo"; | 2068 o["y"] = "foo"; |
2071 return o; | 2069 return o; |
2072 } | 2070 } |
2073 | 2071 |
2074 checkUnnamed1171(core.Map<core.String, core.String> o) { | 2072 checkUnnamed1188(core.Map<core.String, core.String> o) { |
2075 unittest.expect(o, unittest.hasLength(2)); | 2073 unittest.expect(o, unittest.hasLength(2)); |
2076 unittest.expect(o["x"], unittest.equals('foo')); | 2074 unittest.expect(o["x"], unittest.equals('foo')); |
2077 unittest.expect(o["y"], unittest.equals('foo')); | 2075 unittest.expect(o["y"], unittest.equals('foo')); |
2078 } | 2076 } |
2079 | 2077 |
2080 core.int buildCounterMetricRule = 0; | 2078 core.int buildCounterMetricRule = 0; |
2081 buildMetricRule() { | 2079 buildMetricRule() { |
2082 var o = new api.MetricRule(); | 2080 var o = new api.MetricRule(); |
2083 buildCounterMetricRule++; | 2081 buildCounterMetricRule++; |
2084 if (buildCounterMetricRule < 3) { | 2082 if (buildCounterMetricRule < 3) { |
2085 o.metricCosts = buildUnnamed1171(); | 2083 o.metricCosts = buildUnnamed1188(); |
2086 o.selector = "foo"; | 2084 o.selector = "foo"; |
2087 } | 2085 } |
2088 buildCounterMetricRule--; | 2086 buildCounterMetricRule--; |
2089 return o; | 2087 return o; |
2090 } | 2088 } |
2091 | 2089 |
2092 checkMetricRule(api.MetricRule o) { | 2090 checkMetricRule(api.MetricRule o) { |
2093 buildCounterMetricRule++; | 2091 buildCounterMetricRule++; |
2094 if (buildCounterMetricRule < 3) { | 2092 if (buildCounterMetricRule < 3) { |
2095 checkUnnamed1171(o.metricCosts); | 2093 checkUnnamed1188(o.metricCosts); |
2096 unittest.expect(o.selector, unittest.equals('foo')); | 2094 unittest.expect(o.selector, unittest.equals('foo')); |
2097 } | 2095 } |
2098 buildCounterMetricRule--; | 2096 buildCounterMetricRule--; |
2099 } | 2097 } |
2100 | 2098 |
2101 core.int buildCounterMixin = 0; | 2099 core.int buildCounterMixin = 0; |
2102 buildMixin() { | 2100 buildMixin() { |
2103 var o = new api.Mixin(); | 2101 var o = new api.Mixin(); |
2104 buildCounterMixin++; | 2102 buildCounterMixin++; |
2105 if (buildCounterMixin < 3) { | 2103 if (buildCounterMixin < 3) { |
2106 o.name = "foo"; | 2104 o.name = "foo"; |
2107 o.root = "foo"; | 2105 o.root = "foo"; |
2108 } | 2106 } |
2109 buildCounterMixin--; | 2107 buildCounterMixin--; |
2110 return o; | 2108 return o; |
2111 } | 2109 } |
2112 | 2110 |
2113 checkMixin(api.Mixin o) { | 2111 checkMixin(api.Mixin o) { |
2114 buildCounterMixin++; | 2112 buildCounterMixin++; |
2115 if (buildCounterMixin < 3) { | 2113 if (buildCounterMixin < 3) { |
2116 unittest.expect(o.name, unittest.equals('foo')); | 2114 unittest.expect(o.name, unittest.equals('foo')); |
2117 unittest.expect(o.root, unittest.equals('foo')); | 2115 unittest.expect(o.root, unittest.equals('foo')); |
2118 } | 2116 } |
2119 buildCounterMixin--; | 2117 buildCounterMixin--; |
2120 } | 2118 } |
2121 | 2119 |
2122 buildUnnamed1172() { | 2120 buildUnnamed1189() { |
2123 var o = new core.List<api.LabelDescriptor>(); | 2121 var o = new core.List<api.LabelDescriptor>(); |
2124 o.add(buildLabelDescriptor()); | 2122 o.add(buildLabelDescriptor()); |
2125 o.add(buildLabelDescriptor()); | 2123 o.add(buildLabelDescriptor()); |
2126 return o; | 2124 return o; |
2127 } | 2125 } |
2128 | 2126 |
2129 checkUnnamed1172(core.List<api.LabelDescriptor> o) { | 2127 checkUnnamed1189(core.List<api.LabelDescriptor> o) { |
2130 unittest.expect(o, unittest.hasLength(2)); | 2128 unittest.expect(o, unittest.hasLength(2)); |
2131 checkLabelDescriptor(o[0]); | 2129 checkLabelDescriptor(o[0]); |
2132 checkLabelDescriptor(o[1]); | 2130 checkLabelDescriptor(o[1]); |
2133 } | 2131 } |
2134 | 2132 |
2135 core.int buildCounterMonitoredResourceDescriptor = 0; | 2133 core.int buildCounterMonitoredResourceDescriptor = 0; |
2136 buildMonitoredResourceDescriptor() { | 2134 buildMonitoredResourceDescriptor() { |
2137 var o = new api.MonitoredResourceDescriptor(); | 2135 var o = new api.MonitoredResourceDescriptor(); |
2138 buildCounterMonitoredResourceDescriptor++; | 2136 buildCounterMonitoredResourceDescriptor++; |
2139 if (buildCounterMonitoredResourceDescriptor < 3) { | 2137 if (buildCounterMonitoredResourceDescriptor < 3) { |
2140 o.description = "foo"; | 2138 o.description = "foo"; |
2141 o.displayName = "foo"; | 2139 o.displayName = "foo"; |
2142 o.labels = buildUnnamed1172(); | 2140 o.labels = buildUnnamed1189(); |
2143 o.name = "foo"; | 2141 o.name = "foo"; |
2144 o.type = "foo"; | 2142 o.type = "foo"; |
2145 } | 2143 } |
2146 buildCounterMonitoredResourceDescriptor--; | 2144 buildCounterMonitoredResourceDescriptor--; |
2147 return o; | 2145 return o; |
2148 } | 2146 } |
2149 | 2147 |
2150 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 2148 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
2151 buildCounterMonitoredResourceDescriptor++; | 2149 buildCounterMonitoredResourceDescriptor++; |
2152 if (buildCounterMonitoredResourceDescriptor < 3) { | 2150 if (buildCounterMonitoredResourceDescriptor < 3) { |
2153 unittest.expect(o.description, unittest.equals('foo')); | 2151 unittest.expect(o.description, unittest.equals('foo')); |
2154 unittest.expect(o.displayName, unittest.equals('foo')); | 2152 unittest.expect(o.displayName, unittest.equals('foo')); |
2155 checkUnnamed1172(o.labels); | 2153 checkUnnamed1189(o.labels); |
2156 unittest.expect(o.name, unittest.equals('foo')); | 2154 unittest.expect(o.name, unittest.equals('foo')); |
2157 unittest.expect(o.type, unittest.equals('foo')); | 2155 unittest.expect(o.type, unittest.equals('foo')); |
2158 } | 2156 } |
2159 buildCounterMonitoredResourceDescriptor--; | 2157 buildCounterMonitoredResourceDescriptor--; |
2160 } | 2158 } |
2161 | 2159 |
2162 buildUnnamed1173() { | 2160 buildUnnamed1190() { |
2163 var o = new core.List<api.MonitoringDestination>(); | 2161 var o = new core.List<api.MonitoringDestination>(); |
2164 o.add(buildMonitoringDestination()); | 2162 o.add(buildMonitoringDestination()); |
2165 o.add(buildMonitoringDestination()); | 2163 o.add(buildMonitoringDestination()); |
2166 return o; | 2164 return o; |
2167 } | 2165 } |
2168 | 2166 |
2169 checkUnnamed1173(core.List<api.MonitoringDestination> o) { | 2167 checkUnnamed1190(core.List<api.MonitoringDestination> o) { |
2170 unittest.expect(o, unittest.hasLength(2)); | 2168 unittest.expect(o, unittest.hasLength(2)); |
2171 checkMonitoringDestination(o[0]); | 2169 checkMonitoringDestination(o[0]); |
2172 checkMonitoringDestination(o[1]); | 2170 checkMonitoringDestination(o[1]); |
2173 } | 2171 } |
2174 | 2172 |
2175 buildUnnamed1174() { | 2173 buildUnnamed1191() { |
2176 var o = new core.List<api.MonitoringDestination>(); | 2174 var o = new core.List<api.MonitoringDestination>(); |
2177 o.add(buildMonitoringDestination()); | 2175 o.add(buildMonitoringDestination()); |
2178 o.add(buildMonitoringDestination()); | 2176 o.add(buildMonitoringDestination()); |
2179 return o; | 2177 return o; |
2180 } | 2178 } |
2181 | 2179 |
2182 checkUnnamed1174(core.List<api.MonitoringDestination> o) { | 2180 checkUnnamed1191(core.List<api.MonitoringDestination> o) { |
2183 unittest.expect(o, unittest.hasLength(2)); | 2181 unittest.expect(o, unittest.hasLength(2)); |
2184 checkMonitoringDestination(o[0]); | 2182 checkMonitoringDestination(o[0]); |
2185 checkMonitoringDestination(o[1]); | 2183 checkMonitoringDestination(o[1]); |
2186 } | 2184 } |
2187 | 2185 |
2188 core.int buildCounterMonitoring = 0; | 2186 core.int buildCounterMonitoring = 0; |
2189 buildMonitoring() { | 2187 buildMonitoring() { |
2190 var o = new api.Monitoring(); | 2188 var o = new api.Monitoring(); |
2191 buildCounterMonitoring++; | 2189 buildCounterMonitoring++; |
2192 if (buildCounterMonitoring < 3) { | 2190 if (buildCounterMonitoring < 3) { |
2193 o.consumerDestinations = buildUnnamed1173(); | 2191 o.consumerDestinations = buildUnnamed1190(); |
2194 o.producerDestinations = buildUnnamed1174(); | 2192 o.producerDestinations = buildUnnamed1191(); |
2195 } | 2193 } |
2196 buildCounterMonitoring--; | 2194 buildCounterMonitoring--; |
2197 return o; | 2195 return o; |
2198 } | 2196 } |
2199 | 2197 |
2200 checkMonitoring(api.Monitoring o) { | 2198 checkMonitoring(api.Monitoring o) { |
2201 buildCounterMonitoring++; | 2199 buildCounterMonitoring++; |
2202 if (buildCounterMonitoring < 3) { | 2200 if (buildCounterMonitoring < 3) { |
2203 checkUnnamed1173(o.consumerDestinations); | 2201 checkUnnamed1190(o.consumerDestinations); |
2204 checkUnnamed1174(o.producerDestinations); | 2202 checkUnnamed1191(o.producerDestinations); |
2205 } | 2203 } |
2206 buildCounterMonitoring--; | 2204 buildCounterMonitoring--; |
2207 } | 2205 } |
2208 | 2206 |
2209 buildUnnamed1175() { | 2207 buildUnnamed1192() { |
2210 var o = new core.List<core.String>(); | 2208 var o = new core.List<core.String>(); |
2211 o.add("foo"); | 2209 o.add("foo"); |
2212 o.add("foo"); | 2210 o.add("foo"); |
2213 return o; | 2211 return o; |
2214 } | 2212 } |
2215 | 2213 |
2216 checkUnnamed1175(core.List<core.String> o) { | 2214 checkUnnamed1192(core.List<core.String> o) { |
2217 unittest.expect(o, unittest.hasLength(2)); | 2215 unittest.expect(o, unittest.hasLength(2)); |
2218 unittest.expect(o[0], unittest.equals('foo')); | 2216 unittest.expect(o[0], unittest.equals('foo')); |
2219 unittest.expect(o[1], unittest.equals('foo')); | 2217 unittest.expect(o[1], unittest.equals('foo')); |
2220 } | 2218 } |
2221 | 2219 |
2222 core.int buildCounterMonitoringDestination = 0; | 2220 core.int buildCounterMonitoringDestination = 0; |
2223 buildMonitoringDestination() { | 2221 buildMonitoringDestination() { |
2224 var o = new api.MonitoringDestination(); | 2222 var o = new api.MonitoringDestination(); |
2225 buildCounterMonitoringDestination++; | 2223 buildCounterMonitoringDestination++; |
2226 if (buildCounterMonitoringDestination < 3) { | 2224 if (buildCounterMonitoringDestination < 3) { |
2227 o.metrics = buildUnnamed1175(); | 2225 o.metrics = buildUnnamed1192(); |
2228 o.monitoredResource = "foo"; | 2226 o.monitoredResource = "foo"; |
2229 } | 2227 } |
2230 buildCounterMonitoringDestination--; | 2228 buildCounterMonitoringDestination--; |
2231 return o; | 2229 return o; |
2232 } | 2230 } |
2233 | 2231 |
2234 checkMonitoringDestination(api.MonitoringDestination o) { | 2232 checkMonitoringDestination(api.MonitoringDestination o) { |
2235 buildCounterMonitoringDestination++; | 2233 buildCounterMonitoringDestination++; |
2236 if (buildCounterMonitoringDestination < 3) { | 2234 if (buildCounterMonitoringDestination < 3) { |
2237 checkUnnamed1175(o.metrics); | 2235 checkUnnamed1192(o.metrics); |
2238 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 2236 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
2239 } | 2237 } |
2240 buildCounterMonitoringDestination--; | 2238 buildCounterMonitoringDestination--; |
2241 } | 2239 } |
2242 | 2240 |
2243 core.int buildCounterOAuthRequirements = 0; | 2241 core.int buildCounterOAuthRequirements = 0; |
2244 buildOAuthRequirements() { | 2242 buildOAuthRequirements() { |
2245 var o = new api.OAuthRequirements(); | 2243 var o = new api.OAuthRequirements(); |
2246 buildCounterOAuthRequirements++; | 2244 buildCounterOAuthRequirements++; |
2247 if (buildCounterOAuthRequirements < 3) { | 2245 if (buildCounterOAuthRequirements < 3) { |
2248 o.canonicalScopes = "foo"; | 2246 o.canonicalScopes = "foo"; |
2249 } | 2247 } |
2250 buildCounterOAuthRequirements--; | 2248 buildCounterOAuthRequirements--; |
2251 return o; | 2249 return o; |
2252 } | 2250 } |
2253 | 2251 |
2254 checkOAuthRequirements(api.OAuthRequirements o) { | 2252 checkOAuthRequirements(api.OAuthRequirements o) { |
2255 buildCounterOAuthRequirements++; | 2253 buildCounterOAuthRequirements++; |
2256 if (buildCounterOAuthRequirements < 3) { | 2254 if (buildCounterOAuthRequirements < 3) { |
2257 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 2255 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
2258 } | 2256 } |
2259 buildCounterOAuthRequirements--; | 2257 buildCounterOAuthRequirements--; |
2260 } | 2258 } |
2261 | 2259 |
2262 buildUnnamed1176() { | 2260 buildUnnamed1193() { |
2263 var o = new core.Map<core.String, core.Object>(); | 2261 var o = new core.Map<core.String, core.Object>(); |
2264 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2262 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2265 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2263 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2266 return o; | 2264 return o; |
2267 } | 2265 } |
2268 | 2266 |
2269 checkUnnamed1176(core.Map<core.String, core.Object> o) { | 2267 checkUnnamed1193(core.Map<core.String, core.Object> o) { |
2270 unittest.expect(o, unittest.hasLength(2)); | 2268 unittest.expect(o, unittest.hasLength(2)); |
2271 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')); | 2269 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
2272 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')); | 2270 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
2273 } | 2271 } |
2274 | 2272 |
2275 buildUnnamed1177() { | 2273 buildUnnamed1194() { |
2276 var o = new core.Map<core.String, core.Object>(); | 2274 var o = new core.Map<core.String, core.Object>(); |
2277 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2275 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2278 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2276 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2279 return o; | 2277 return o; |
2280 } | 2278 } |
2281 | 2279 |
2282 checkUnnamed1177(core.Map<core.String, core.Object> o) { | 2280 checkUnnamed1194(core.Map<core.String, core.Object> o) { |
2283 unittest.expect(o, unittest.hasLength(2)); | 2281 unittest.expect(o, unittest.hasLength(2)); |
2284 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')); | 2282 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
2285 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')); | 2283 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
2286 } | 2284 } |
2287 | 2285 |
2288 core.int buildCounterOperation = 0; | 2286 core.int buildCounterOperation = 0; |
2289 buildOperation() { | 2287 buildOperation() { |
2290 var o = new api.Operation(); | 2288 var o = new api.Operation(); |
2291 buildCounterOperation++; | 2289 buildCounterOperation++; |
2292 if (buildCounterOperation < 3) { | 2290 if (buildCounterOperation < 3) { |
2293 o.done = true; | 2291 o.done = true; |
2294 o.error = buildStatus(); | 2292 o.error = buildStatus(); |
2295 o.metadata = buildUnnamed1176(); | 2293 o.metadata = buildUnnamed1193(); |
2296 o.name = "foo"; | 2294 o.name = "foo"; |
2297 o.response = buildUnnamed1177(); | 2295 o.response = buildUnnamed1194(); |
2298 } | 2296 } |
2299 buildCounterOperation--; | 2297 buildCounterOperation--; |
2300 return o; | 2298 return o; |
2301 } | 2299 } |
2302 | 2300 |
2303 checkOperation(api.Operation o) { | 2301 checkOperation(api.Operation o) { |
2304 buildCounterOperation++; | 2302 buildCounterOperation++; |
2305 if (buildCounterOperation < 3) { | 2303 if (buildCounterOperation < 3) { |
2306 unittest.expect(o.done, unittest.isTrue); | 2304 unittest.expect(o.done, unittest.isTrue); |
2307 checkStatus(o.error); | 2305 checkStatus(o.error); |
2308 checkUnnamed1176(o.metadata); | 2306 checkUnnamed1193(o.metadata); |
2309 unittest.expect(o.name, unittest.equals('foo')); | 2307 unittest.expect(o.name, unittest.equals('foo')); |
2310 checkUnnamed1177(o.response); | 2308 checkUnnamed1194(o.response); |
2311 } | 2309 } |
2312 buildCounterOperation--; | 2310 buildCounterOperation--; |
2313 } | 2311 } |
2314 | 2312 |
2315 buildUnnamed1178() { | 2313 buildUnnamed1195() { |
2316 var o = new core.List<core.String>(); | 2314 var o = new core.List<core.String>(); |
2317 o.add("foo"); | 2315 o.add("foo"); |
2318 o.add("foo"); | 2316 o.add("foo"); |
2319 return o; | 2317 return o; |
2320 } | 2318 } |
2321 | 2319 |
2322 checkUnnamed1178(core.List<core.String> o) { | 2320 checkUnnamed1195(core.List<core.String> o) { |
2323 unittest.expect(o, unittest.hasLength(2)); | 2321 unittest.expect(o, unittest.hasLength(2)); |
2324 unittest.expect(o[0], unittest.equals('foo')); | 2322 unittest.expect(o[0], unittest.equals('foo')); |
2325 unittest.expect(o[1], unittest.equals('foo')); | 2323 unittest.expect(o[1], unittest.equals('foo')); |
2326 } | 2324 } |
2327 | 2325 |
2328 buildUnnamed1179() { | 2326 buildUnnamed1196() { |
2329 var o = new core.List<api.Step>(); | 2327 var o = new core.List<api.Step>(); |
2330 o.add(buildStep()); | 2328 o.add(buildStep()); |
2331 o.add(buildStep()); | 2329 o.add(buildStep()); |
2332 return o; | 2330 return o; |
2333 } | 2331 } |
2334 | 2332 |
2335 checkUnnamed1179(core.List<api.Step> o) { | 2333 checkUnnamed1196(core.List<api.Step> o) { |
2336 unittest.expect(o, unittest.hasLength(2)); | 2334 unittest.expect(o, unittest.hasLength(2)); |
2337 checkStep(o[0]); | 2335 checkStep(o[0]); |
2338 checkStep(o[1]); | 2336 checkStep(o[1]); |
2339 } | 2337 } |
2340 | 2338 |
2341 core.int buildCounterOperationMetadata = 0; | 2339 core.int buildCounterOperationMetadata = 0; |
2342 buildOperationMetadata() { | 2340 buildOperationMetadata() { |
2343 var o = new api.OperationMetadata(); | 2341 var o = new api.OperationMetadata(); |
2344 buildCounterOperationMetadata++; | 2342 buildCounterOperationMetadata++; |
2345 if (buildCounterOperationMetadata < 3) { | 2343 if (buildCounterOperationMetadata < 3) { |
2346 o.progressPercentage = 42; | 2344 o.progressPercentage = 42; |
2347 o.resourceNames = buildUnnamed1178(); | 2345 o.resourceNames = buildUnnamed1195(); |
2348 o.startTime = "foo"; | 2346 o.startTime = "foo"; |
2349 o.steps = buildUnnamed1179(); | 2347 o.steps = buildUnnamed1196(); |
2350 } | 2348 } |
2351 buildCounterOperationMetadata--; | 2349 buildCounterOperationMetadata--; |
2352 return o; | 2350 return o; |
2353 } | 2351 } |
2354 | 2352 |
2355 checkOperationMetadata(api.OperationMetadata o) { | 2353 checkOperationMetadata(api.OperationMetadata o) { |
2356 buildCounterOperationMetadata++; | 2354 buildCounterOperationMetadata++; |
2357 if (buildCounterOperationMetadata < 3) { | 2355 if (buildCounterOperationMetadata < 3) { |
2358 unittest.expect(o.progressPercentage, unittest.equals(42)); | 2356 unittest.expect(o.progressPercentage, unittest.equals(42)); |
2359 checkUnnamed1178(o.resourceNames); | 2357 checkUnnamed1195(o.resourceNames); |
2360 unittest.expect(o.startTime, unittest.equals('foo')); | 2358 unittest.expect(o.startTime, unittest.equals('foo')); |
2361 checkUnnamed1179(o.steps); | 2359 checkUnnamed1196(o.steps); |
2362 } | 2360 } |
2363 buildCounterOperationMetadata--; | 2361 buildCounterOperationMetadata--; |
2364 } | 2362 } |
2365 | 2363 |
2366 buildUnnamed1180() { | 2364 buildUnnamed1197() { |
2367 var o = new core.Map<core.String, core.Object>(); | 2365 var o = new core.Map<core.String, core.Object>(); |
2368 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2369 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2370 return o; | 2368 return o; |
2371 } | 2369 } |
2372 | 2370 |
2373 checkUnnamed1180(core.Map<core.String, core.Object> o) { | 2371 checkUnnamed1197(core.Map<core.String, core.Object> o) { |
2374 unittest.expect(o, unittest.hasLength(2)); | 2372 unittest.expect(o, unittest.hasLength(2)); |
2375 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')); | 2373 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
2376 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')); | 2374 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
2377 } | 2375 } |
2378 | 2376 |
2379 core.int buildCounterOption = 0; | 2377 core.int buildCounterOption = 0; |
2380 buildOption() { | 2378 buildOption() { |
2381 var o = new api.Option(); | 2379 var o = new api.Option(); |
2382 buildCounterOption++; | 2380 buildCounterOption++; |
2383 if (buildCounterOption < 3) { | 2381 if (buildCounterOption < 3) { |
2384 o.name = "foo"; | 2382 o.name = "foo"; |
2385 o.value = buildUnnamed1180(); | 2383 o.value = buildUnnamed1197(); |
2386 } | 2384 } |
2387 buildCounterOption--; | 2385 buildCounterOption--; |
2388 return o; | 2386 return o; |
2389 } | 2387 } |
2390 | 2388 |
2391 checkOption(api.Option o) { | 2389 checkOption(api.Option o) { |
2392 buildCounterOption++; | 2390 buildCounterOption++; |
2393 if (buildCounterOption < 3) { | 2391 if (buildCounterOption < 3) { |
2394 unittest.expect(o.name, unittest.equals('foo')); | 2392 unittest.expect(o.name, unittest.equals('foo')); |
2395 checkUnnamed1180(o.value); | 2393 checkUnnamed1197(o.value); |
2396 } | 2394 } |
2397 buildCounterOption--; | 2395 buildCounterOption--; |
2398 } | 2396 } |
2399 | 2397 |
2400 buildUnnamed1181() { | 2398 buildUnnamed1198() { |
2401 var o = new core.List<api.Page>(); | 2399 var o = new core.List<api.Page>(); |
2402 o.add(buildPage()); | 2400 o.add(buildPage()); |
2403 o.add(buildPage()); | 2401 o.add(buildPage()); |
2404 return o; | 2402 return o; |
2405 } | 2403 } |
2406 | 2404 |
2407 checkUnnamed1181(core.List<api.Page> o) { | 2405 checkUnnamed1198(core.List<api.Page> o) { |
2408 unittest.expect(o, unittest.hasLength(2)); | 2406 unittest.expect(o, unittest.hasLength(2)); |
2409 checkPage(o[0]); | 2407 checkPage(o[0]); |
2410 checkPage(o[1]); | 2408 checkPage(o[1]); |
2411 } | 2409 } |
2412 | 2410 |
2413 core.int buildCounterPage = 0; | 2411 core.int buildCounterPage = 0; |
2414 buildPage() { | 2412 buildPage() { |
2415 var o = new api.Page(); | 2413 var o = new api.Page(); |
2416 buildCounterPage++; | 2414 buildCounterPage++; |
2417 if (buildCounterPage < 3) { | 2415 if (buildCounterPage < 3) { |
2418 o.content = "foo"; | 2416 o.content = "foo"; |
2419 o.name = "foo"; | 2417 o.name = "foo"; |
2420 o.subpages = buildUnnamed1181(); | 2418 o.subpages = buildUnnamed1198(); |
2421 } | 2419 } |
2422 buildCounterPage--; | 2420 buildCounterPage--; |
2423 return o; | 2421 return o; |
2424 } | 2422 } |
2425 | 2423 |
2426 checkPage(api.Page o) { | 2424 checkPage(api.Page o) { |
2427 buildCounterPage++; | 2425 buildCounterPage++; |
2428 if (buildCounterPage < 3) { | 2426 if (buildCounterPage < 3) { |
2429 unittest.expect(o.content, unittest.equals('foo')); | 2427 unittest.expect(o.content, unittest.equals('foo')); |
2430 unittest.expect(o.name, unittest.equals('foo')); | 2428 unittest.expect(o.name, unittest.equals('foo')); |
2431 checkUnnamed1181(o.subpages); | 2429 checkUnnamed1198(o.subpages); |
2432 } | 2430 } |
2433 buildCounterPage--; | 2431 buildCounterPage--; |
2434 } | 2432 } |
2435 | 2433 |
2436 buildUnnamed1182() { | 2434 buildUnnamed1199() { |
2437 var o = new core.List<api.AuditConfig>(); | 2435 var o = new core.List<api.AuditConfig>(); |
2438 o.add(buildAuditConfig()); | 2436 o.add(buildAuditConfig()); |
2439 o.add(buildAuditConfig()); | 2437 o.add(buildAuditConfig()); |
2440 return o; | 2438 return o; |
2441 } | 2439 } |
2442 | 2440 |
2443 checkUnnamed1182(core.List<api.AuditConfig> o) { | 2441 checkUnnamed1199(core.List<api.AuditConfig> o) { |
2444 unittest.expect(o, unittest.hasLength(2)); | 2442 unittest.expect(o, unittest.hasLength(2)); |
2445 checkAuditConfig(o[0]); | 2443 checkAuditConfig(o[0]); |
2446 checkAuditConfig(o[1]); | 2444 checkAuditConfig(o[1]); |
2447 } | 2445 } |
2448 | 2446 |
2449 buildUnnamed1183() { | 2447 buildUnnamed1200() { |
2450 var o = new core.List<api.Binding>(); | 2448 var o = new core.List<api.Binding>(); |
2451 o.add(buildBinding()); | 2449 o.add(buildBinding()); |
2452 o.add(buildBinding()); | 2450 o.add(buildBinding()); |
2453 return o; | 2451 return o; |
2454 } | 2452 } |
2455 | 2453 |
2456 checkUnnamed1183(core.List<api.Binding> o) { | 2454 checkUnnamed1200(core.List<api.Binding> o) { |
2457 unittest.expect(o, unittest.hasLength(2)); | 2455 unittest.expect(o, unittest.hasLength(2)); |
2458 checkBinding(o[0]); | 2456 checkBinding(o[0]); |
2459 checkBinding(o[1]); | 2457 checkBinding(o[1]); |
2460 } | 2458 } |
2461 | 2459 |
2462 buildUnnamed1184() { | 2460 buildUnnamed1201() { |
2463 var o = new core.List<api.Rule>(); | 2461 var o = new core.List<api.Rule>(); |
2464 o.add(buildRule()); | 2462 o.add(buildRule()); |
2465 o.add(buildRule()); | 2463 o.add(buildRule()); |
2466 return o; | 2464 return o; |
2467 } | 2465 } |
2468 | 2466 |
2469 checkUnnamed1184(core.List<api.Rule> o) { | 2467 checkUnnamed1201(core.List<api.Rule> o) { |
2470 unittest.expect(o, unittest.hasLength(2)); | 2468 unittest.expect(o, unittest.hasLength(2)); |
2471 checkRule(o[0]); | 2469 checkRule(o[0]); |
2472 checkRule(o[1]); | 2470 checkRule(o[1]); |
2473 } | 2471 } |
2474 | 2472 |
2475 core.int buildCounterPolicy = 0; | 2473 core.int buildCounterPolicy = 0; |
2476 buildPolicy() { | 2474 buildPolicy() { |
2477 var o = new api.Policy(); | 2475 var o = new api.Policy(); |
2478 buildCounterPolicy++; | 2476 buildCounterPolicy++; |
2479 if (buildCounterPolicy < 3) { | 2477 if (buildCounterPolicy < 3) { |
2480 o.auditConfigs = buildUnnamed1182(); | 2478 o.auditConfigs = buildUnnamed1199(); |
2481 o.bindings = buildUnnamed1183(); | 2479 o.bindings = buildUnnamed1200(); |
2482 o.etag = "foo"; | 2480 o.etag = "foo"; |
2483 o.iamOwned = true; | 2481 o.iamOwned = true; |
2484 o.rules = buildUnnamed1184(); | 2482 o.rules = buildUnnamed1201(); |
2485 o.version = 42; | 2483 o.version = 42; |
2486 } | 2484 } |
2487 buildCounterPolicy--; | 2485 buildCounterPolicy--; |
2488 return o; | 2486 return o; |
2489 } | 2487 } |
2490 | 2488 |
2491 checkPolicy(api.Policy o) { | 2489 checkPolicy(api.Policy o) { |
2492 buildCounterPolicy++; | 2490 buildCounterPolicy++; |
2493 if (buildCounterPolicy < 3) { | 2491 if (buildCounterPolicy < 3) { |
2494 checkUnnamed1182(o.auditConfigs); | 2492 checkUnnamed1199(o.auditConfigs); |
2495 checkUnnamed1183(o.bindings); | 2493 checkUnnamed1200(o.bindings); |
2496 unittest.expect(o.etag, unittest.equals('foo')); | 2494 unittest.expect(o.etag, unittest.equals('foo')); |
2497 unittest.expect(o.iamOwned, unittest.isTrue); | 2495 unittest.expect(o.iamOwned, unittest.isTrue); |
2498 checkUnnamed1184(o.rules); | 2496 checkUnnamed1201(o.rules); |
2499 unittest.expect(o.version, unittest.equals(42)); | 2497 unittest.expect(o.version, unittest.equals(42)); |
2500 } | 2498 } |
2501 buildCounterPolicy--; | 2499 buildCounterPolicy--; |
2502 } | 2500 } |
2503 | 2501 |
2504 buildUnnamed1185() { | 2502 buildUnnamed1202() { |
2505 var o = new core.List<api.QuotaLimit>(); | 2503 var o = new core.List<api.QuotaLimit>(); |
2506 o.add(buildQuotaLimit()); | 2504 o.add(buildQuotaLimit()); |
2507 o.add(buildQuotaLimit()); | 2505 o.add(buildQuotaLimit()); |
2508 return o; | 2506 return o; |
2509 } | 2507 } |
2510 | 2508 |
2511 checkUnnamed1185(core.List<api.QuotaLimit> o) { | 2509 checkUnnamed1202(core.List<api.QuotaLimit> o) { |
2512 unittest.expect(o, unittest.hasLength(2)); | 2510 unittest.expect(o, unittest.hasLength(2)); |
2513 checkQuotaLimit(o[0]); | 2511 checkQuotaLimit(o[0]); |
2514 checkQuotaLimit(o[1]); | 2512 checkQuotaLimit(o[1]); |
2515 } | 2513 } |
2516 | 2514 |
2517 buildUnnamed1186() { | 2515 buildUnnamed1203() { |
2518 var o = new core.List<api.MetricRule>(); | 2516 var o = new core.List<api.MetricRule>(); |
2519 o.add(buildMetricRule()); | 2517 o.add(buildMetricRule()); |
2520 o.add(buildMetricRule()); | 2518 o.add(buildMetricRule()); |
2521 return o; | 2519 return o; |
2522 } | 2520 } |
2523 | 2521 |
2524 checkUnnamed1186(core.List<api.MetricRule> o) { | 2522 checkUnnamed1203(core.List<api.MetricRule> o) { |
2525 unittest.expect(o, unittest.hasLength(2)); | 2523 unittest.expect(o, unittest.hasLength(2)); |
2526 checkMetricRule(o[0]); | 2524 checkMetricRule(o[0]); |
2527 checkMetricRule(o[1]); | 2525 checkMetricRule(o[1]); |
2528 } | 2526 } |
2529 | 2527 |
2530 core.int buildCounterQuota = 0; | 2528 core.int buildCounterQuota = 0; |
2531 buildQuota() { | 2529 buildQuota() { |
2532 var o = new api.Quota(); | 2530 var o = new api.Quota(); |
2533 buildCounterQuota++; | 2531 buildCounterQuota++; |
2534 if (buildCounterQuota < 3) { | 2532 if (buildCounterQuota < 3) { |
2535 o.limits = buildUnnamed1185(); | 2533 o.limits = buildUnnamed1202(); |
2536 o.metricRules = buildUnnamed1186(); | 2534 o.metricRules = buildUnnamed1203(); |
2537 } | 2535 } |
2538 buildCounterQuota--; | 2536 buildCounterQuota--; |
2539 return o; | 2537 return o; |
2540 } | 2538 } |
2541 | 2539 |
2542 checkQuota(api.Quota o) { | 2540 checkQuota(api.Quota o) { |
2543 buildCounterQuota++; | 2541 buildCounterQuota++; |
2544 if (buildCounterQuota < 3) { | 2542 if (buildCounterQuota < 3) { |
2545 checkUnnamed1185(o.limits); | 2543 checkUnnamed1202(o.limits); |
2546 checkUnnamed1186(o.metricRules); | 2544 checkUnnamed1203(o.metricRules); |
2547 } | 2545 } |
2548 buildCounterQuota--; | 2546 buildCounterQuota--; |
2549 } | 2547 } |
2550 | 2548 |
2551 buildUnnamed1187() { | 2549 buildUnnamed1204() { |
2552 var o = new core.Map<core.String, core.String>(); | 2550 var o = new core.Map<core.String, core.String>(); |
2553 o["x"] = "foo"; | 2551 o["x"] = "foo"; |
2554 o["y"] = "foo"; | 2552 o["y"] = "foo"; |
2555 return o; | 2553 return o; |
2556 } | 2554 } |
2557 | 2555 |
2558 checkUnnamed1187(core.Map<core.String, core.String> o) { | 2556 checkUnnamed1204(core.Map<core.String, core.String> o) { |
2559 unittest.expect(o, unittest.hasLength(2)); | 2557 unittest.expect(o, unittest.hasLength(2)); |
2560 unittest.expect(o["x"], unittest.equals('foo')); | 2558 unittest.expect(o["x"], unittest.equals('foo')); |
2561 unittest.expect(o["y"], unittest.equals('foo')); | 2559 unittest.expect(o["y"], unittest.equals('foo')); |
2562 } | 2560 } |
2563 | 2561 |
2564 core.int buildCounterQuotaLimit = 0; | 2562 core.int buildCounterQuotaLimit = 0; |
2565 buildQuotaLimit() { | 2563 buildQuotaLimit() { |
2566 var o = new api.QuotaLimit(); | 2564 var o = new api.QuotaLimit(); |
2567 buildCounterQuotaLimit++; | 2565 buildCounterQuotaLimit++; |
2568 if (buildCounterQuotaLimit < 3) { | 2566 if (buildCounterQuotaLimit < 3) { |
2569 o.defaultLimit = "foo"; | 2567 o.defaultLimit = "foo"; |
2570 o.description = "foo"; | 2568 o.description = "foo"; |
2571 o.displayName = "foo"; | 2569 o.displayName = "foo"; |
2572 o.duration = "foo"; | 2570 o.duration = "foo"; |
2573 o.freeTier = "foo"; | 2571 o.freeTier = "foo"; |
2574 o.maxLimit = "foo"; | 2572 o.maxLimit = "foo"; |
2575 o.metric = "foo"; | 2573 o.metric = "foo"; |
2576 o.name = "foo"; | 2574 o.name = "foo"; |
2577 o.unit = "foo"; | 2575 o.unit = "foo"; |
2578 o.values = buildUnnamed1187(); | 2576 o.values = buildUnnamed1204(); |
2579 } | 2577 } |
2580 buildCounterQuotaLimit--; | 2578 buildCounterQuotaLimit--; |
2581 return o; | 2579 return o; |
2582 } | 2580 } |
2583 | 2581 |
2584 checkQuotaLimit(api.QuotaLimit o) { | 2582 checkQuotaLimit(api.QuotaLimit o) { |
2585 buildCounterQuotaLimit++; | 2583 buildCounterQuotaLimit++; |
2586 if (buildCounterQuotaLimit < 3) { | 2584 if (buildCounterQuotaLimit < 3) { |
2587 unittest.expect(o.defaultLimit, unittest.equals('foo')); | 2585 unittest.expect(o.defaultLimit, unittest.equals('foo')); |
2588 unittest.expect(o.description, unittest.equals('foo')); | 2586 unittest.expect(o.description, unittest.equals('foo')); |
2589 unittest.expect(o.displayName, unittest.equals('foo')); | 2587 unittest.expect(o.displayName, unittest.equals('foo')); |
2590 unittest.expect(o.duration, unittest.equals('foo')); | 2588 unittest.expect(o.duration, unittest.equals('foo')); |
2591 unittest.expect(o.freeTier, unittest.equals('foo')); | 2589 unittest.expect(o.freeTier, unittest.equals('foo')); |
2592 unittest.expect(o.maxLimit, unittest.equals('foo')); | 2590 unittest.expect(o.maxLimit, unittest.equals('foo')); |
2593 unittest.expect(o.metric, unittest.equals('foo')); | 2591 unittest.expect(o.metric, unittest.equals('foo')); |
2594 unittest.expect(o.name, unittest.equals('foo')); | 2592 unittest.expect(o.name, unittest.equals('foo')); |
2595 unittest.expect(o.unit, unittest.equals('foo')); | 2593 unittest.expect(o.unit, unittest.equals('foo')); |
2596 checkUnnamed1187(o.values); | 2594 checkUnnamed1204(o.values); |
2597 } | 2595 } |
2598 buildCounterQuotaLimit--; | 2596 buildCounterQuotaLimit--; |
2599 } | 2597 } |
2600 | 2598 |
2601 core.int buildCounterRollout = 0; | 2599 core.int buildCounterRollout = 0; |
2602 buildRollout() { | 2600 buildRollout() { |
2603 var o = new api.Rollout(); | 2601 var o = new api.Rollout(); |
2604 buildCounterRollout++; | 2602 buildCounterRollout++; |
2605 if (buildCounterRollout < 3) { | 2603 if (buildCounterRollout < 3) { |
2606 o.createTime = "foo"; | 2604 o.createTime = "foo"; |
(...skipping 15 matching lines...) Expand all Loading... |
2622 unittest.expect(o.createdBy, unittest.equals('foo')); | 2620 unittest.expect(o.createdBy, unittest.equals('foo')); |
2623 checkDeleteServiceStrategy(o.deleteServiceStrategy); | 2621 checkDeleteServiceStrategy(o.deleteServiceStrategy); |
2624 unittest.expect(o.rolloutId, unittest.equals('foo')); | 2622 unittest.expect(o.rolloutId, unittest.equals('foo')); |
2625 unittest.expect(o.serviceName, unittest.equals('foo')); | 2623 unittest.expect(o.serviceName, unittest.equals('foo')); |
2626 unittest.expect(o.status, unittest.equals('foo')); | 2624 unittest.expect(o.status, unittest.equals('foo')); |
2627 checkTrafficPercentStrategy(o.trafficPercentStrategy); | 2625 checkTrafficPercentStrategy(o.trafficPercentStrategy); |
2628 } | 2626 } |
2629 buildCounterRollout--; | 2627 buildCounterRollout--; |
2630 } | 2628 } |
2631 | 2629 |
2632 buildUnnamed1188() { | 2630 buildUnnamed1205() { |
2633 var o = new core.List<api.Condition>(); | 2631 var o = new core.List<api.Condition>(); |
2634 o.add(buildCondition()); | 2632 o.add(buildCondition()); |
2635 o.add(buildCondition()); | 2633 o.add(buildCondition()); |
2636 return o; | 2634 return o; |
2637 } | 2635 } |
2638 | 2636 |
2639 checkUnnamed1188(core.List<api.Condition> o) { | 2637 checkUnnamed1205(core.List<api.Condition> o) { |
2640 unittest.expect(o, unittest.hasLength(2)); | 2638 unittest.expect(o, unittest.hasLength(2)); |
2641 checkCondition(o[0]); | 2639 checkCondition(o[0]); |
2642 checkCondition(o[1]); | 2640 checkCondition(o[1]); |
2643 } | 2641 } |
2644 | 2642 |
2645 buildUnnamed1189() { | 2643 buildUnnamed1206() { |
2646 var o = new core.List<core.String>(); | 2644 var o = new core.List<core.String>(); |
2647 o.add("foo"); | 2645 o.add("foo"); |
2648 o.add("foo"); | 2646 o.add("foo"); |
2649 return o; | 2647 return o; |
2650 } | 2648 } |
2651 | 2649 |
2652 checkUnnamed1189(core.List<core.String> o) { | 2650 checkUnnamed1206(core.List<core.String> o) { |
2653 unittest.expect(o, unittest.hasLength(2)); | 2651 unittest.expect(o, unittest.hasLength(2)); |
2654 unittest.expect(o[0], unittest.equals('foo')); | 2652 unittest.expect(o[0], unittest.equals('foo')); |
2655 unittest.expect(o[1], unittest.equals('foo')); | 2653 unittest.expect(o[1], unittest.equals('foo')); |
2656 } | 2654 } |
2657 | 2655 |
2658 buildUnnamed1190() { | 2656 buildUnnamed1207() { |
2659 var o = new core.List<api.LogConfig>(); | 2657 var o = new core.List<api.LogConfig>(); |
2660 o.add(buildLogConfig()); | 2658 o.add(buildLogConfig()); |
2661 o.add(buildLogConfig()); | 2659 o.add(buildLogConfig()); |
2662 return o; | 2660 return o; |
2663 } | 2661 } |
2664 | 2662 |
2665 checkUnnamed1190(core.List<api.LogConfig> o) { | 2663 checkUnnamed1207(core.List<api.LogConfig> o) { |
2666 unittest.expect(o, unittest.hasLength(2)); | 2664 unittest.expect(o, unittest.hasLength(2)); |
2667 checkLogConfig(o[0]); | 2665 checkLogConfig(o[0]); |
2668 checkLogConfig(o[1]); | 2666 checkLogConfig(o[1]); |
2669 } | 2667 } |
2670 | 2668 |
2671 buildUnnamed1191() { | 2669 buildUnnamed1208() { |
2672 var o = new core.List<core.String>(); | 2670 var o = new core.List<core.String>(); |
2673 o.add("foo"); | 2671 o.add("foo"); |
2674 o.add("foo"); | 2672 o.add("foo"); |
2675 return o; | 2673 return o; |
2676 } | 2674 } |
2677 | 2675 |
2678 checkUnnamed1191(core.List<core.String> o) { | 2676 checkUnnamed1208(core.List<core.String> o) { |
2679 unittest.expect(o, unittest.hasLength(2)); | 2677 unittest.expect(o, unittest.hasLength(2)); |
2680 unittest.expect(o[0], unittest.equals('foo')); | 2678 unittest.expect(o[0], unittest.equals('foo')); |
2681 unittest.expect(o[1], unittest.equals('foo')); | 2679 unittest.expect(o[1], unittest.equals('foo')); |
2682 } | 2680 } |
2683 | 2681 |
2684 buildUnnamed1192() { | 2682 buildUnnamed1209() { |
2685 var o = new core.List<core.String>(); | 2683 var o = new core.List<core.String>(); |
2686 o.add("foo"); | 2684 o.add("foo"); |
2687 o.add("foo"); | 2685 o.add("foo"); |
2688 return o; | 2686 return o; |
2689 } | 2687 } |
2690 | 2688 |
2691 checkUnnamed1192(core.List<core.String> o) { | 2689 checkUnnamed1209(core.List<core.String> o) { |
2692 unittest.expect(o, unittest.hasLength(2)); | 2690 unittest.expect(o, unittest.hasLength(2)); |
2693 unittest.expect(o[0], unittest.equals('foo')); | 2691 unittest.expect(o[0], unittest.equals('foo')); |
2694 unittest.expect(o[1], unittest.equals('foo')); | 2692 unittest.expect(o[1], unittest.equals('foo')); |
2695 } | 2693 } |
2696 | 2694 |
2697 core.int buildCounterRule = 0; | 2695 core.int buildCounterRule = 0; |
2698 buildRule() { | 2696 buildRule() { |
2699 var o = new api.Rule(); | 2697 var o = new api.Rule(); |
2700 buildCounterRule++; | 2698 buildCounterRule++; |
2701 if (buildCounterRule < 3) { | 2699 if (buildCounterRule < 3) { |
2702 o.action = "foo"; | 2700 o.action = "foo"; |
2703 o.conditions = buildUnnamed1188(); | 2701 o.conditions = buildUnnamed1205(); |
2704 o.description = "foo"; | 2702 o.description = "foo"; |
2705 o.in_ = buildUnnamed1189(); | 2703 o.in_ = buildUnnamed1206(); |
2706 o.logConfig = buildUnnamed1190(); | 2704 o.logConfig = buildUnnamed1207(); |
2707 o.notIn = buildUnnamed1191(); | 2705 o.notIn = buildUnnamed1208(); |
2708 o.permissions = buildUnnamed1192(); | 2706 o.permissions = buildUnnamed1209(); |
2709 } | 2707 } |
2710 buildCounterRule--; | 2708 buildCounterRule--; |
2711 return o; | 2709 return o; |
2712 } | 2710 } |
2713 | 2711 |
2714 checkRule(api.Rule o) { | 2712 checkRule(api.Rule o) { |
2715 buildCounterRule++; | 2713 buildCounterRule++; |
2716 if (buildCounterRule < 3) { | 2714 if (buildCounterRule < 3) { |
2717 unittest.expect(o.action, unittest.equals('foo')); | 2715 unittest.expect(o.action, unittest.equals('foo')); |
2718 checkUnnamed1188(o.conditions); | 2716 checkUnnamed1205(o.conditions); |
2719 unittest.expect(o.description, unittest.equals('foo')); | 2717 unittest.expect(o.description, unittest.equals('foo')); |
2720 checkUnnamed1189(o.in_); | 2718 checkUnnamed1206(o.in_); |
2721 checkUnnamed1190(o.logConfig); | 2719 checkUnnamed1207(o.logConfig); |
2722 checkUnnamed1191(o.notIn); | 2720 checkUnnamed1208(o.notIn); |
2723 checkUnnamed1192(o.permissions); | 2721 checkUnnamed1209(o.permissions); |
2724 } | 2722 } |
2725 buildCounterRule--; | 2723 buildCounterRule--; |
2726 } | 2724 } |
2727 | 2725 |
2728 buildUnnamed1193() { | 2726 buildUnnamed1210() { |
2729 var o = new core.List<api.Api>(); | 2727 var o = new core.List<api.Api>(); |
2730 o.add(buildApi()); | 2728 o.add(buildApi()); |
2731 o.add(buildApi()); | 2729 o.add(buildApi()); |
2732 return o; | 2730 return o; |
2733 } | 2731 } |
2734 | 2732 |
2735 checkUnnamed1193(core.List<api.Api> o) { | 2733 checkUnnamed1210(core.List<api.Api> o) { |
2736 unittest.expect(o, unittest.hasLength(2)); | 2734 unittest.expect(o, unittest.hasLength(2)); |
2737 checkApi(o[0]); | 2735 checkApi(o[0]); |
2738 checkApi(o[1]); | 2736 checkApi(o[1]); |
2739 } | 2737 } |
2740 | 2738 |
2741 buildUnnamed1194() { | 2739 buildUnnamed1211() { |
2742 var o = new core.List<api.Endpoint>(); | 2740 var o = new core.List<api.Endpoint>(); |
2743 o.add(buildEndpoint()); | 2741 o.add(buildEndpoint()); |
2744 o.add(buildEndpoint()); | 2742 o.add(buildEndpoint()); |
2745 return o; | 2743 return o; |
2746 } | 2744 } |
2747 | 2745 |
2748 checkUnnamed1194(core.List<api.Endpoint> o) { | 2746 checkUnnamed1211(core.List<api.Endpoint> o) { |
2749 unittest.expect(o, unittest.hasLength(2)); | 2747 unittest.expect(o, unittest.hasLength(2)); |
2750 checkEndpoint(o[0]); | 2748 checkEndpoint(o[0]); |
2751 checkEndpoint(o[1]); | 2749 checkEndpoint(o[1]); |
2752 } | 2750 } |
2753 | 2751 |
2754 buildUnnamed1195() { | 2752 buildUnnamed1212() { |
2755 var o = new core.List<api.Enum>(); | 2753 var o = new core.List<api.Enum>(); |
2756 o.add(buildEnum()); | 2754 o.add(buildEnum()); |
2757 o.add(buildEnum()); | 2755 o.add(buildEnum()); |
2758 return o; | 2756 return o; |
2759 } | 2757 } |
2760 | 2758 |
2761 checkUnnamed1195(core.List<api.Enum> o) { | 2759 checkUnnamed1212(core.List<api.Enum> o) { |
2762 unittest.expect(o, unittest.hasLength(2)); | 2760 unittest.expect(o, unittest.hasLength(2)); |
2763 checkEnum(o[0]); | 2761 checkEnum(o[0]); |
2764 checkEnum(o[1]); | 2762 checkEnum(o[1]); |
2765 } | 2763 } |
2766 | 2764 |
2767 buildUnnamed1196() { | 2765 buildUnnamed1213() { |
2768 var o = new core.List<api.LogDescriptor>(); | 2766 var o = new core.List<api.LogDescriptor>(); |
2769 o.add(buildLogDescriptor()); | 2767 o.add(buildLogDescriptor()); |
2770 o.add(buildLogDescriptor()); | 2768 o.add(buildLogDescriptor()); |
2771 return o; | 2769 return o; |
2772 } | 2770 } |
2773 | 2771 |
2774 checkUnnamed1196(core.List<api.LogDescriptor> o) { | 2772 checkUnnamed1213(core.List<api.LogDescriptor> o) { |
2775 unittest.expect(o, unittest.hasLength(2)); | 2773 unittest.expect(o, unittest.hasLength(2)); |
2776 checkLogDescriptor(o[0]); | 2774 checkLogDescriptor(o[0]); |
2777 checkLogDescriptor(o[1]); | 2775 checkLogDescriptor(o[1]); |
2778 } | 2776 } |
2779 | 2777 |
2780 buildUnnamed1197() { | 2778 buildUnnamed1214() { |
2781 var o = new core.List<api.MetricDescriptor>(); | 2779 var o = new core.List<api.MetricDescriptor>(); |
2782 o.add(buildMetricDescriptor()); | 2780 o.add(buildMetricDescriptor()); |
2783 o.add(buildMetricDescriptor()); | 2781 o.add(buildMetricDescriptor()); |
2784 return o; | 2782 return o; |
2785 } | 2783 } |
2786 | 2784 |
2787 checkUnnamed1197(core.List<api.MetricDescriptor> o) { | 2785 checkUnnamed1214(core.List<api.MetricDescriptor> o) { |
2788 unittest.expect(o, unittest.hasLength(2)); | 2786 unittest.expect(o, unittest.hasLength(2)); |
2789 checkMetricDescriptor(o[0]); | 2787 checkMetricDescriptor(o[0]); |
2790 checkMetricDescriptor(o[1]); | 2788 checkMetricDescriptor(o[1]); |
2791 } | 2789 } |
2792 | 2790 |
2793 buildUnnamed1198() { | 2791 buildUnnamed1215() { |
2794 var o = new core.List<api.MonitoredResourceDescriptor>(); | 2792 var o = new core.List<api.MonitoredResourceDescriptor>(); |
2795 o.add(buildMonitoredResourceDescriptor()); | 2793 o.add(buildMonitoredResourceDescriptor()); |
2796 o.add(buildMonitoredResourceDescriptor()); | 2794 o.add(buildMonitoredResourceDescriptor()); |
2797 return o; | 2795 return o; |
2798 } | 2796 } |
2799 | 2797 |
2800 checkUnnamed1198(core.List<api.MonitoredResourceDescriptor> o) { | 2798 checkUnnamed1215(core.List<api.MonitoredResourceDescriptor> o) { |
2801 unittest.expect(o, unittest.hasLength(2)); | 2799 unittest.expect(o, unittest.hasLength(2)); |
2802 checkMonitoredResourceDescriptor(o[0]); | 2800 checkMonitoredResourceDescriptor(o[0]); |
2803 checkMonitoredResourceDescriptor(o[1]); | 2801 checkMonitoredResourceDescriptor(o[1]); |
2804 } | 2802 } |
2805 | 2803 |
2806 buildUnnamed1199() { | 2804 buildUnnamed1216() { |
2807 var o = new core.List<api.Type>(); | 2805 var o = new core.List<api.Type>(); |
2808 o.add(buildType()); | 2806 o.add(buildType()); |
2809 o.add(buildType()); | 2807 o.add(buildType()); |
2810 return o; | 2808 return o; |
2811 } | 2809 } |
2812 | 2810 |
2813 checkUnnamed1199(core.List<api.Type> o) { | 2811 checkUnnamed1216(core.List<api.Type> o) { |
2814 unittest.expect(o, unittest.hasLength(2)); | 2812 unittest.expect(o, unittest.hasLength(2)); |
2815 checkType(o[0]); | 2813 checkType(o[0]); |
2816 checkType(o[1]); | 2814 checkType(o[1]); |
2817 } | 2815 } |
2818 | 2816 |
2819 buildUnnamed1200() { | 2817 buildUnnamed1217() { |
2820 var o = new core.List<api.Type>(); | 2818 var o = new core.List<api.Type>(); |
2821 o.add(buildType()); | 2819 o.add(buildType()); |
2822 o.add(buildType()); | 2820 o.add(buildType()); |
2823 return o; | 2821 return o; |
2824 } | 2822 } |
2825 | 2823 |
2826 checkUnnamed1200(core.List<api.Type> o) { | 2824 checkUnnamed1217(core.List<api.Type> o) { |
2827 unittest.expect(o, unittest.hasLength(2)); | 2825 unittest.expect(o, unittest.hasLength(2)); |
2828 checkType(o[0]); | 2826 checkType(o[0]); |
2829 checkType(o[1]); | 2827 checkType(o[1]); |
2830 } | 2828 } |
2831 | 2829 |
2832 core.int buildCounterService = 0; | 2830 core.int buildCounterService = 0; |
2833 buildService() { | 2831 buildService() { |
2834 var o = new api.Service(); | 2832 var o = new api.Service(); |
2835 buildCounterService++; | 2833 buildCounterService++; |
2836 if (buildCounterService < 3) { | 2834 if (buildCounterService < 3) { |
2837 o.apis = buildUnnamed1193(); | 2835 o.apis = buildUnnamed1210(); |
2838 o.authentication = buildAuthentication(); | 2836 o.authentication = buildAuthentication(); |
2839 o.backend = buildBackend(); | 2837 o.backend = buildBackend(); |
2840 o.configVersion = 42; | 2838 o.configVersion = 42; |
2841 o.context = buildContext(); | 2839 o.context = buildContext(); |
2842 o.control = buildControl(); | 2840 o.control = buildControl(); |
2843 o.customError = buildCustomError(); | 2841 o.customError = buildCustomError(); |
2844 o.documentation = buildDocumentation(); | 2842 o.documentation = buildDocumentation(); |
2845 o.endpoints = buildUnnamed1194(); | 2843 o.endpoints = buildUnnamed1211(); |
2846 o.enums = buildUnnamed1195(); | 2844 o.enums = buildUnnamed1212(); |
2847 o.experimental = buildExperimental(); | 2845 o.experimental = buildExperimental(); |
2848 o.http = buildHttp(); | 2846 o.http = buildHttp(); |
2849 o.id = "foo"; | 2847 o.id = "foo"; |
2850 o.logging = buildLogging(); | 2848 o.logging = buildLogging(); |
2851 o.logs = buildUnnamed1196(); | 2849 o.logs = buildUnnamed1213(); |
2852 o.metrics = buildUnnamed1197(); | 2850 o.metrics = buildUnnamed1214(); |
2853 o.monitoredResources = buildUnnamed1198(); | 2851 o.monitoredResources = buildUnnamed1215(); |
2854 o.monitoring = buildMonitoring(); | 2852 o.monitoring = buildMonitoring(); |
2855 o.name = "foo"; | 2853 o.name = "foo"; |
2856 o.producerProjectId = "foo"; | 2854 o.producerProjectId = "foo"; |
2857 o.quota = buildQuota(); | 2855 o.quota = buildQuota(); |
2858 o.sourceInfo = buildSourceInfo(); | 2856 o.sourceInfo = buildSourceInfo(); |
2859 o.systemParameters = buildSystemParameters(); | 2857 o.systemParameters = buildSystemParameters(); |
2860 o.systemTypes = buildUnnamed1199(); | 2858 o.systemTypes = buildUnnamed1216(); |
2861 o.title = "foo"; | 2859 o.title = "foo"; |
2862 o.types = buildUnnamed1200(); | 2860 o.types = buildUnnamed1217(); |
2863 o.usage = buildUsage(); | 2861 o.usage = buildUsage(); |
2864 o.visibility = buildVisibility(); | 2862 o.visibility = buildVisibility(); |
2865 } | 2863 } |
2866 buildCounterService--; | 2864 buildCounterService--; |
2867 return o; | 2865 return o; |
2868 } | 2866 } |
2869 | 2867 |
2870 checkService(api.Service o) { | 2868 checkService(api.Service o) { |
2871 buildCounterService++; | 2869 buildCounterService++; |
2872 if (buildCounterService < 3) { | 2870 if (buildCounterService < 3) { |
2873 checkUnnamed1193(o.apis); | 2871 checkUnnamed1210(o.apis); |
2874 checkAuthentication(o.authentication); | 2872 checkAuthentication(o.authentication); |
2875 checkBackend(o.backend); | 2873 checkBackend(o.backend); |
2876 unittest.expect(o.configVersion, unittest.equals(42)); | 2874 unittest.expect(o.configVersion, unittest.equals(42)); |
2877 checkContext(o.context); | 2875 checkContext(o.context); |
2878 checkControl(o.control); | 2876 checkControl(o.control); |
2879 checkCustomError(o.customError); | 2877 checkCustomError(o.customError); |
2880 checkDocumentation(o.documentation); | 2878 checkDocumentation(o.documentation); |
2881 checkUnnamed1194(o.endpoints); | 2879 checkUnnamed1211(o.endpoints); |
2882 checkUnnamed1195(o.enums); | 2880 checkUnnamed1212(o.enums); |
2883 checkExperimental(o.experimental); | 2881 checkExperimental(o.experimental); |
2884 checkHttp(o.http); | 2882 checkHttp(o.http); |
2885 unittest.expect(o.id, unittest.equals('foo')); | 2883 unittest.expect(o.id, unittest.equals('foo')); |
2886 checkLogging(o.logging); | 2884 checkLogging(o.logging); |
2887 checkUnnamed1196(o.logs); | 2885 checkUnnamed1213(o.logs); |
2888 checkUnnamed1197(o.metrics); | 2886 checkUnnamed1214(o.metrics); |
2889 checkUnnamed1198(o.monitoredResources); | 2887 checkUnnamed1215(o.monitoredResources); |
2890 checkMonitoring(o.monitoring); | 2888 checkMonitoring(o.monitoring); |
2891 unittest.expect(o.name, unittest.equals('foo')); | 2889 unittest.expect(o.name, unittest.equals('foo')); |
2892 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 2890 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
2893 checkQuota(o.quota); | 2891 checkQuota(o.quota); |
2894 checkSourceInfo(o.sourceInfo); | 2892 checkSourceInfo(o.sourceInfo); |
2895 checkSystemParameters(o.systemParameters); | 2893 checkSystemParameters(o.systemParameters); |
2896 checkUnnamed1199(o.systemTypes); | 2894 checkUnnamed1216(o.systemTypes); |
2897 unittest.expect(o.title, unittest.equals('foo')); | 2895 unittest.expect(o.title, unittest.equals('foo')); |
2898 checkUnnamed1200(o.types); | 2896 checkUnnamed1217(o.types); |
2899 checkUsage(o.usage); | 2897 checkUsage(o.usage); |
2900 checkVisibility(o.visibility); | 2898 checkVisibility(o.visibility); |
2901 } | 2899 } |
2902 buildCounterService--; | 2900 buildCounterService--; |
2903 } | 2901 } |
2904 | 2902 |
2905 core.int buildCounterSetIamPolicyRequest = 0; | 2903 core.int buildCounterSetIamPolicyRequest = 0; |
2906 buildSetIamPolicyRequest() { | 2904 buildSetIamPolicyRequest() { |
2907 var o = new api.SetIamPolicyRequest(); | 2905 var o = new api.SetIamPolicyRequest(); |
2908 buildCounterSetIamPolicyRequest++; | 2906 buildCounterSetIamPolicyRequest++; |
(...skipping 26 matching lines...) Expand all Loading... |
2935 } | 2933 } |
2936 | 2934 |
2937 checkSourceContext(api.SourceContext o) { | 2935 checkSourceContext(api.SourceContext o) { |
2938 buildCounterSourceContext++; | 2936 buildCounterSourceContext++; |
2939 if (buildCounterSourceContext < 3) { | 2937 if (buildCounterSourceContext < 3) { |
2940 unittest.expect(o.fileName, unittest.equals('foo')); | 2938 unittest.expect(o.fileName, unittest.equals('foo')); |
2941 } | 2939 } |
2942 buildCounterSourceContext--; | 2940 buildCounterSourceContext--; |
2943 } | 2941 } |
2944 | 2942 |
2945 buildUnnamed1201() { | 2943 buildUnnamed1218() { |
2946 var o = new core.Map<core.String, core.Object>(); | 2944 var o = new core.Map<core.String, core.Object>(); |
2947 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2945 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2948 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2946 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2949 return o; | 2947 return o; |
2950 } | 2948 } |
2951 | 2949 |
2952 checkUnnamed1201(core.Map<core.String, core.Object> o) { | 2950 checkUnnamed1218(core.Map<core.String, core.Object> o) { |
2953 unittest.expect(o, unittest.hasLength(2)); | 2951 unittest.expect(o, unittest.hasLength(2)); |
2954 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')); | 2952 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); |
2955 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')); | 2953 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); |
2956 } | 2954 } |
2957 | 2955 |
2958 buildUnnamed1202() { | 2956 buildUnnamed1219() { |
2959 var o = new core.List<core.Map<core.String, core.Object>>(); | 2957 var o = new core.List<core.Map<core.String, core.Object>>(); |
2960 o.add(buildUnnamed1201()); | 2958 o.add(buildUnnamed1218()); |
2961 o.add(buildUnnamed1201()); | 2959 o.add(buildUnnamed1218()); |
2962 return o; | 2960 return o; |
2963 } | 2961 } |
2964 | 2962 |
2965 checkUnnamed1202(core.List<core.Map<core.String, core.Object>> o) { | 2963 checkUnnamed1219(core.List<core.Map<core.String, core.Object>> o) { |
2966 unittest.expect(o, unittest.hasLength(2)); | 2964 unittest.expect(o, unittest.hasLength(2)); |
2967 checkUnnamed1201(o[0]); | 2965 checkUnnamed1218(o[0]); |
2968 checkUnnamed1201(o[1]); | 2966 checkUnnamed1218(o[1]); |
2969 } | 2967 } |
2970 | 2968 |
2971 core.int buildCounterSourceInfo = 0; | 2969 core.int buildCounterSourceInfo = 0; |
2972 buildSourceInfo() { | 2970 buildSourceInfo() { |
2973 var o = new api.SourceInfo(); | 2971 var o = new api.SourceInfo(); |
2974 buildCounterSourceInfo++; | 2972 buildCounterSourceInfo++; |
2975 if (buildCounterSourceInfo < 3) { | 2973 if (buildCounterSourceInfo < 3) { |
2976 o.sourceFiles = buildUnnamed1202(); | 2974 o.sourceFiles = buildUnnamed1219(); |
2977 } | 2975 } |
2978 buildCounterSourceInfo--; | 2976 buildCounterSourceInfo--; |
2979 return o; | 2977 return o; |
2980 } | 2978 } |
2981 | 2979 |
2982 checkSourceInfo(api.SourceInfo o) { | 2980 checkSourceInfo(api.SourceInfo o) { |
2983 buildCounterSourceInfo++; | 2981 buildCounterSourceInfo++; |
2984 if (buildCounterSourceInfo < 3) { | 2982 if (buildCounterSourceInfo < 3) { |
2985 checkUnnamed1202(o.sourceFiles); | 2983 checkUnnamed1219(o.sourceFiles); |
2986 } | 2984 } |
2987 buildCounterSourceInfo--; | 2985 buildCounterSourceInfo--; |
2988 } | 2986 } |
2989 | 2987 |
2990 buildUnnamed1203() { | 2988 buildUnnamed1220() { |
2991 var o = new core.Map<core.String, core.Object>(); | 2989 var o = new core.Map<core.String, core.Object>(); |
2992 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2990 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2993 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2991 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2994 return o; | 2992 return o; |
2995 } | 2993 } |
2996 | 2994 |
2997 checkUnnamed1203(core.Map<core.String, core.Object> o) { | 2995 checkUnnamed1220(core.Map<core.String, core.Object> o) { |
2998 unittest.expect(o, unittest.hasLength(2)); | 2996 unittest.expect(o, unittest.hasLength(2)); |
2999 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen
gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri
ng"], unittest.equals('foo')); | 2997 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen
gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri
ng"], unittest.equals('foo')); |
3000 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen
gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri
ng"], unittest.equals('foo')); | 2998 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen
gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri
ng"], unittest.equals('foo')); |
3001 } | 2999 } |
3002 | 3000 |
3003 buildUnnamed1204() { | 3001 buildUnnamed1221() { |
3004 var o = new core.List<core.Map<core.String, core.Object>>(); | 3002 var o = new core.List<core.Map<core.String, core.Object>>(); |
3005 o.add(buildUnnamed1203()); | 3003 o.add(buildUnnamed1220()); |
3006 o.add(buildUnnamed1203()); | 3004 o.add(buildUnnamed1220()); |
3007 return o; | 3005 return o; |
3008 } | 3006 } |
3009 | 3007 |
3010 checkUnnamed1204(core.List<core.Map<core.String, core.Object>> o) { | 3008 checkUnnamed1221(core.List<core.Map<core.String, core.Object>> o) { |
3011 unittest.expect(o, unittest.hasLength(2)); | 3009 unittest.expect(o, unittest.hasLength(2)); |
3012 checkUnnamed1203(o[0]); | 3010 checkUnnamed1220(o[0]); |
3013 checkUnnamed1203(o[1]); | 3011 checkUnnamed1220(o[1]); |
3014 } | 3012 } |
3015 | 3013 |
3016 core.int buildCounterStatus = 0; | 3014 core.int buildCounterStatus = 0; |
3017 buildStatus() { | 3015 buildStatus() { |
3018 var o = new api.Status(); | 3016 var o = new api.Status(); |
3019 buildCounterStatus++; | 3017 buildCounterStatus++; |
3020 if (buildCounterStatus < 3) { | 3018 if (buildCounterStatus < 3) { |
3021 o.code = 42; | 3019 o.code = 42; |
3022 o.details = buildUnnamed1204(); | 3020 o.details = buildUnnamed1221(); |
3023 o.message = "foo"; | 3021 o.message = "foo"; |
3024 } | 3022 } |
3025 buildCounterStatus--; | 3023 buildCounterStatus--; |
3026 return o; | 3024 return o; |
3027 } | 3025 } |
3028 | 3026 |
3029 checkStatus(api.Status o) { | 3027 checkStatus(api.Status o) { |
3030 buildCounterStatus++; | 3028 buildCounterStatus++; |
3031 if (buildCounterStatus < 3) { | 3029 if (buildCounterStatus < 3) { |
3032 unittest.expect(o.code, unittest.equals(42)); | 3030 unittest.expect(o.code, unittest.equals(42)); |
3033 checkUnnamed1204(o.details); | 3031 checkUnnamed1221(o.details); |
3034 unittest.expect(o.message, unittest.equals('foo')); | 3032 unittest.expect(o.message, unittest.equals('foo')); |
3035 } | 3033 } |
3036 buildCounterStatus--; | 3034 buildCounterStatus--; |
3037 } | 3035 } |
3038 | 3036 |
3039 core.int buildCounterStep = 0; | 3037 core.int buildCounterStep = 0; |
3040 buildStep() { | 3038 buildStep() { |
3041 var o = new api.Step(); | 3039 var o = new api.Step(); |
3042 buildCounterStep++; | 3040 buildCounterStep++; |
3043 if (buildCounterStep < 3) { | 3041 if (buildCounterStep < 3) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3113 checkSystemParameter(api.SystemParameter o) { | 3111 checkSystemParameter(api.SystemParameter o) { |
3114 buildCounterSystemParameter++; | 3112 buildCounterSystemParameter++; |
3115 if (buildCounterSystemParameter < 3) { | 3113 if (buildCounterSystemParameter < 3) { |
3116 unittest.expect(o.httpHeader, unittest.equals('foo')); | 3114 unittest.expect(o.httpHeader, unittest.equals('foo')); |
3117 unittest.expect(o.name, unittest.equals('foo')); | 3115 unittest.expect(o.name, unittest.equals('foo')); |
3118 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 3116 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
3119 } | 3117 } |
3120 buildCounterSystemParameter--; | 3118 buildCounterSystemParameter--; |
3121 } | 3119 } |
3122 | 3120 |
3123 buildUnnamed1205() { | 3121 buildUnnamed1222() { |
3124 var o = new core.List<api.SystemParameter>(); | 3122 var o = new core.List<api.SystemParameter>(); |
3125 o.add(buildSystemParameter()); | 3123 o.add(buildSystemParameter()); |
3126 o.add(buildSystemParameter()); | 3124 o.add(buildSystemParameter()); |
3127 return o; | 3125 return o; |
3128 } | 3126 } |
3129 | 3127 |
3130 checkUnnamed1205(core.List<api.SystemParameter> o) { | 3128 checkUnnamed1222(core.List<api.SystemParameter> o) { |
3131 unittest.expect(o, unittest.hasLength(2)); | 3129 unittest.expect(o, unittest.hasLength(2)); |
3132 checkSystemParameter(o[0]); | 3130 checkSystemParameter(o[0]); |
3133 checkSystemParameter(o[1]); | 3131 checkSystemParameter(o[1]); |
3134 } | 3132 } |
3135 | 3133 |
3136 core.int buildCounterSystemParameterRule = 0; | 3134 core.int buildCounterSystemParameterRule = 0; |
3137 buildSystemParameterRule() { | 3135 buildSystemParameterRule() { |
3138 var o = new api.SystemParameterRule(); | 3136 var o = new api.SystemParameterRule(); |
3139 buildCounterSystemParameterRule++; | 3137 buildCounterSystemParameterRule++; |
3140 if (buildCounterSystemParameterRule < 3) { | 3138 if (buildCounterSystemParameterRule < 3) { |
3141 o.parameters = buildUnnamed1205(); | 3139 o.parameters = buildUnnamed1222(); |
3142 o.selector = "foo"; | 3140 o.selector = "foo"; |
3143 } | 3141 } |
3144 buildCounterSystemParameterRule--; | 3142 buildCounterSystemParameterRule--; |
3145 return o; | 3143 return o; |
3146 } | 3144 } |
3147 | 3145 |
3148 checkSystemParameterRule(api.SystemParameterRule o) { | 3146 checkSystemParameterRule(api.SystemParameterRule o) { |
3149 buildCounterSystemParameterRule++; | 3147 buildCounterSystemParameterRule++; |
3150 if (buildCounterSystemParameterRule < 3) { | 3148 if (buildCounterSystemParameterRule < 3) { |
3151 checkUnnamed1205(o.parameters); | 3149 checkUnnamed1222(o.parameters); |
3152 unittest.expect(o.selector, unittest.equals('foo')); | 3150 unittest.expect(o.selector, unittest.equals('foo')); |
3153 } | 3151 } |
3154 buildCounterSystemParameterRule--; | 3152 buildCounterSystemParameterRule--; |
3155 } | 3153 } |
3156 | 3154 |
3157 buildUnnamed1206() { | 3155 buildUnnamed1223() { |
3158 var o = new core.List<api.SystemParameterRule>(); | 3156 var o = new core.List<api.SystemParameterRule>(); |
3159 o.add(buildSystemParameterRule()); | 3157 o.add(buildSystemParameterRule()); |
3160 o.add(buildSystemParameterRule()); | 3158 o.add(buildSystemParameterRule()); |
3161 return o; | 3159 return o; |
3162 } | 3160 } |
3163 | 3161 |
3164 checkUnnamed1206(core.List<api.SystemParameterRule> o) { | 3162 checkUnnamed1223(core.List<api.SystemParameterRule> o) { |
3165 unittest.expect(o, unittest.hasLength(2)); | 3163 unittest.expect(o, unittest.hasLength(2)); |
3166 checkSystemParameterRule(o[0]); | 3164 checkSystemParameterRule(o[0]); |
3167 checkSystemParameterRule(o[1]); | 3165 checkSystemParameterRule(o[1]); |
3168 } | 3166 } |
3169 | 3167 |
3170 core.int buildCounterSystemParameters = 0; | 3168 core.int buildCounterSystemParameters = 0; |
3171 buildSystemParameters() { | 3169 buildSystemParameters() { |
3172 var o = new api.SystemParameters(); | 3170 var o = new api.SystemParameters(); |
3173 buildCounterSystemParameters++; | 3171 buildCounterSystemParameters++; |
3174 if (buildCounterSystemParameters < 3) { | 3172 if (buildCounterSystemParameters < 3) { |
3175 o.rules = buildUnnamed1206(); | 3173 o.rules = buildUnnamed1223(); |
3176 } | 3174 } |
3177 buildCounterSystemParameters--; | 3175 buildCounterSystemParameters--; |
3178 return o; | 3176 return o; |
3179 } | 3177 } |
3180 | 3178 |
3181 checkSystemParameters(api.SystemParameters o) { | 3179 checkSystemParameters(api.SystemParameters o) { |
3182 buildCounterSystemParameters++; | 3180 buildCounterSystemParameters++; |
3183 if (buildCounterSystemParameters < 3) { | 3181 if (buildCounterSystemParameters < 3) { |
3184 checkUnnamed1206(o.rules); | 3182 checkUnnamed1223(o.rules); |
3185 } | 3183 } |
3186 buildCounterSystemParameters--; | 3184 buildCounterSystemParameters--; |
3187 } | 3185 } |
3188 | 3186 |
3189 buildUnnamed1207() { | 3187 buildUnnamed1224() { |
3190 var o = new core.List<core.String>(); | 3188 var o = new core.List<core.String>(); |
3191 o.add("foo"); | 3189 o.add("foo"); |
3192 o.add("foo"); | 3190 o.add("foo"); |
3193 return o; | 3191 return o; |
3194 } | 3192 } |
3195 | 3193 |
3196 checkUnnamed1207(core.List<core.String> o) { | 3194 checkUnnamed1224(core.List<core.String> o) { |
3197 unittest.expect(o, unittest.hasLength(2)); | 3195 unittest.expect(o, unittest.hasLength(2)); |
3198 unittest.expect(o[0], unittest.equals('foo')); | 3196 unittest.expect(o[0], unittest.equals('foo')); |
3199 unittest.expect(o[1], unittest.equals('foo')); | 3197 unittest.expect(o[1], unittest.equals('foo')); |
3200 } | 3198 } |
3201 | 3199 |
3202 core.int buildCounterTestIamPermissionsRequest = 0; | 3200 core.int buildCounterTestIamPermissionsRequest = 0; |
3203 buildTestIamPermissionsRequest() { | 3201 buildTestIamPermissionsRequest() { |
3204 var o = new api.TestIamPermissionsRequest(); | 3202 var o = new api.TestIamPermissionsRequest(); |
3205 buildCounterTestIamPermissionsRequest++; | 3203 buildCounterTestIamPermissionsRequest++; |
3206 if (buildCounterTestIamPermissionsRequest < 3) { | 3204 if (buildCounterTestIamPermissionsRequest < 3) { |
3207 o.permissions = buildUnnamed1207(); | 3205 o.permissions = buildUnnamed1224(); |
3208 } | 3206 } |
3209 buildCounterTestIamPermissionsRequest--; | 3207 buildCounterTestIamPermissionsRequest--; |
3210 return o; | 3208 return o; |
3211 } | 3209 } |
3212 | 3210 |
3213 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 3211 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
3214 buildCounterTestIamPermissionsRequest++; | 3212 buildCounterTestIamPermissionsRequest++; |
3215 if (buildCounterTestIamPermissionsRequest < 3) { | 3213 if (buildCounterTestIamPermissionsRequest < 3) { |
3216 checkUnnamed1207(o.permissions); | 3214 checkUnnamed1224(o.permissions); |
3217 } | 3215 } |
3218 buildCounterTestIamPermissionsRequest--; | 3216 buildCounterTestIamPermissionsRequest--; |
3219 } | 3217 } |
3220 | 3218 |
3221 buildUnnamed1208() { | 3219 buildUnnamed1225() { |
3222 var o = new core.List<core.String>(); | 3220 var o = new core.List<core.String>(); |
3223 o.add("foo"); | 3221 o.add("foo"); |
3224 o.add("foo"); | 3222 o.add("foo"); |
3225 return o; | 3223 return o; |
3226 } | 3224 } |
3227 | 3225 |
3228 checkUnnamed1208(core.List<core.String> o) { | 3226 checkUnnamed1225(core.List<core.String> o) { |
3229 unittest.expect(o, unittest.hasLength(2)); | 3227 unittest.expect(o, unittest.hasLength(2)); |
3230 unittest.expect(o[0], unittest.equals('foo')); | 3228 unittest.expect(o[0], unittest.equals('foo')); |
3231 unittest.expect(o[1], unittest.equals('foo')); | 3229 unittest.expect(o[1], unittest.equals('foo')); |
3232 } | 3230 } |
3233 | 3231 |
3234 core.int buildCounterTestIamPermissionsResponse = 0; | 3232 core.int buildCounterTestIamPermissionsResponse = 0; |
3235 buildTestIamPermissionsResponse() { | 3233 buildTestIamPermissionsResponse() { |
3236 var o = new api.TestIamPermissionsResponse(); | 3234 var o = new api.TestIamPermissionsResponse(); |
3237 buildCounterTestIamPermissionsResponse++; | 3235 buildCounterTestIamPermissionsResponse++; |
3238 if (buildCounterTestIamPermissionsResponse < 3) { | 3236 if (buildCounterTestIamPermissionsResponse < 3) { |
3239 o.permissions = buildUnnamed1208(); | 3237 o.permissions = buildUnnamed1225(); |
3240 } | 3238 } |
3241 buildCounterTestIamPermissionsResponse--; | 3239 buildCounterTestIamPermissionsResponse--; |
3242 return o; | 3240 return o; |
3243 } | 3241 } |
3244 | 3242 |
3245 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 3243 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
3246 buildCounterTestIamPermissionsResponse++; | 3244 buildCounterTestIamPermissionsResponse++; |
3247 if (buildCounterTestIamPermissionsResponse < 3) { | 3245 if (buildCounterTestIamPermissionsResponse < 3) { |
3248 checkUnnamed1208(o.permissions); | 3246 checkUnnamed1225(o.permissions); |
3249 } | 3247 } |
3250 buildCounterTestIamPermissionsResponse--; | 3248 buildCounterTestIamPermissionsResponse--; |
3251 } | 3249 } |
3252 | 3250 |
3253 buildUnnamed1209() { | 3251 buildUnnamed1226() { |
3254 var o = new core.Map<core.String, core.double>(); | 3252 var o = new core.Map<core.String, core.double>(); |
3255 o["x"] = 42.0; | 3253 o["x"] = 42.0; |
3256 o["y"] = 42.0; | 3254 o["y"] = 42.0; |
3257 return o; | 3255 return o; |
3258 } | 3256 } |
3259 | 3257 |
3260 checkUnnamed1209(core.Map<core.String, core.double> o) { | 3258 checkUnnamed1226(core.Map<core.String, core.double> o) { |
3261 unittest.expect(o, unittest.hasLength(2)); | 3259 unittest.expect(o, unittest.hasLength(2)); |
3262 unittest.expect(o["x"], unittest.equals(42.0)); | 3260 unittest.expect(o["x"], unittest.equals(42.0)); |
3263 unittest.expect(o["y"], unittest.equals(42.0)); | 3261 unittest.expect(o["y"], unittest.equals(42.0)); |
3264 } | 3262 } |
3265 | 3263 |
3266 core.int buildCounterTrafficPercentStrategy = 0; | 3264 core.int buildCounterTrafficPercentStrategy = 0; |
3267 buildTrafficPercentStrategy() { | 3265 buildTrafficPercentStrategy() { |
3268 var o = new api.TrafficPercentStrategy(); | 3266 var o = new api.TrafficPercentStrategy(); |
3269 buildCounterTrafficPercentStrategy++; | 3267 buildCounterTrafficPercentStrategy++; |
3270 if (buildCounterTrafficPercentStrategy < 3) { | 3268 if (buildCounterTrafficPercentStrategy < 3) { |
3271 o.percentages = buildUnnamed1209(); | 3269 o.percentages = buildUnnamed1226(); |
3272 } | 3270 } |
3273 buildCounterTrafficPercentStrategy--; | 3271 buildCounterTrafficPercentStrategy--; |
3274 return o; | 3272 return o; |
3275 } | 3273 } |
3276 | 3274 |
3277 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { | 3275 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { |
3278 buildCounterTrafficPercentStrategy++; | 3276 buildCounterTrafficPercentStrategy++; |
3279 if (buildCounterTrafficPercentStrategy < 3) { | 3277 if (buildCounterTrafficPercentStrategy < 3) { |
3280 checkUnnamed1209(o.percentages); | 3278 checkUnnamed1226(o.percentages); |
3281 } | 3279 } |
3282 buildCounterTrafficPercentStrategy--; | 3280 buildCounterTrafficPercentStrategy--; |
3283 } | 3281 } |
3284 | 3282 |
3285 buildUnnamed1210() { | 3283 buildUnnamed1227() { |
3286 var o = new core.List<api.Field>(); | 3284 var o = new core.List<api.Field>(); |
3287 o.add(buildField()); | 3285 o.add(buildField()); |
3288 o.add(buildField()); | 3286 o.add(buildField()); |
3289 return o; | 3287 return o; |
3290 } | 3288 } |
3291 | 3289 |
3292 checkUnnamed1210(core.List<api.Field> o) { | 3290 checkUnnamed1227(core.List<api.Field> o) { |
3293 unittest.expect(o, unittest.hasLength(2)); | 3291 unittest.expect(o, unittest.hasLength(2)); |
3294 checkField(o[0]); | 3292 checkField(o[0]); |
3295 checkField(o[1]); | 3293 checkField(o[1]); |
3296 } | 3294 } |
3297 | 3295 |
3298 buildUnnamed1211() { | 3296 buildUnnamed1228() { |
3299 var o = new core.List<core.String>(); | 3297 var o = new core.List<core.String>(); |
3300 o.add("foo"); | 3298 o.add("foo"); |
3301 o.add("foo"); | 3299 o.add("foo"); |
3302 return o; | 3300 return o; |
3303 } | 3301 } |
3304 | 3302 |
3305 checkUnnamed1211(core.List<core.String> o) { | 3303 checkUnnamed1228(core.List<core.String> o) { |
3306 unittest.expect(o, unittest.hasLength(2)); | 3304 unittest.expect(o, unittest.hasLength(2)); |
3307 unittest.expect(o[0], unittest.equals('foo')); | 3305 unittest.expect(o[0], unittest.equals('foo')); |
3308 unittest.expect(o[1], unittest.equals('foo')); | 3306 unittest.expect(o[1], unittest.equals('foo')); |
3309 } | 3307 } |
3310 | 3308 |
3311 buildUnnamed1212() { | 3309 buildUnnamed1229() { |
3312 var o = new core.List<api.Option>(); | 3310 var o = new core.List<api.Option>(); |
3313 o.add(buildOption()); | 3311 o.add(buildOption()); |
3314 o.add(buildOption()); | 3312 o.add(buildOption()); |
3315 return o; | 3313 return o; |
3316 } | 3314 } |
3317 | 3315 |
3318 checkUnnamed1212(core.List<api.Option> o) { | 3316 checkUnnamed1229(core.List<api.Option> o) { |
3319 unittest.expect(o, unittest.hasLength(2)); | 3317 unittest.expect(o, unittest.hasLength(2)); |
3320 checkOption(o[0]); | 3318 checkOption(o[0]); |
3321 checkOption(o[1]); | 3319 checkOption(o[1]); |
3322 } | 3320 } |
3323 | 3321 |
3324 core.int buildCounterType = 0; | 3322 core.int buildCounterType = 0; |
3325 buildType() { | 3323 buildType() { |
3326 var o = new api.Type(); | 3324 var o = new api.Type(); |
3327 buildCounterType++; | 3325 buildCounterType++; |
3328 if (buildCounterType < 3) { | 3326 if (buildCounterType < 3) { |
3329 o.fields = buildUnnamed1210(); | 3327 o.fields = buildUnnamed1227(); |
3330 o.name = "foo"; | 3328 o.name = "foo"; |
3331 o.oneofs = buildUnnamed1211(); | 3329 o.oneofs = buildUnnamed1228(); |
3332 o.options = buildUnnamed1212(); | 3330 o.options = buildUnnamed1229(); |
3333 o.sourceContext = buildSourceContext(); | 3331 o.sourceContext = buildSourceContext(); |
3334 o.syntax = "foo"; | 3332 o.syntax = "foo"; |
3335 } | 3333 } |
3336 buildCounterType--; | 3334 buildCounterType--; |
3337 return o; | 3335 return o; |
3338 } | 3336 } |
3339 | 3337 |
3340 checkType(api.Type o) { | 3338 checkType(api.Type o) { |
3341 buildCounterType++; | 3339 buildCounterType++; |
3342 if (buildCounterType < 3) { | 3340 if (buildCounterType < 3) { |
3343 checkUnnamed1210(o.fields); | 3341 checkUnnamed1227(o.fields); |
3344 unittest.expect(o.name, unittest.equals('foo')); | 3342 unittest.expect(o.name, unittest.equals('foo')); |
3345 checkUnnamed1211(o.oneofs); | 3343 checkUnnamed1228(o.oneofs); |
3346 checkUnnamed1212(o.options); | 3344 checkUnnamed1229(o.options); |
3347 checkSourceContext(o.sourceContext); | 3345 checkSourceContext(o.sourceContext); |
3348 unittest.expect(o.syntax, unittest.equals('foo')); | 3346 unittest.expect(o.syntax, unittest.equals('foo')); |
3349 } | 3347 } |
3350 buildCounterType--; | 3348 buildCounterType--; |
3351 } | 3349 } |
3352 | 3350 |
3353 core.int buildCounterUndeleteServiceResponse = 0; | 3351 core.int buildCounterUndeleteServiceResponse = 0; |
3354 buildUndeleteServiceResponse() { | 3352 buildUndeleteServiceResponse() { |
3355 var o = new api.UndeleteServiceResponse(); | 3353 var o = new api.UndeleteServiceResponse(); |
3356 buildCounterUndeleteServiceResponse++; | 3354 buildCounterUndeleteServiceResponse++; |
3357 if (buildCounterUndeleteServiceResponse < 3) { | 3355 if (buildCounterUndeleteServiceResponse < 3) { |
3358 o.service = buildManagedService(); | 3356 o.service = buildManagedService(); |
3359 } | 3357 } |
3360 buildCounterUndeleteServiceResponse--; | 3358 buildCounterUndeleteServiceResponse--; |
3361 return o; | 3359 return o; |
3362 } | 3360 } |
3363 | 3361 |
3364 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { | 3362 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { |
3365 buildCounterUndeleteServiceResponse++; | 3363 buildCounterUndeleteServiceResponse++; |
3366 if (buildCounterUndeleteServiceResponse < 3) { | 3364 if (buildCounterUndeleteServiceResponse < 3) { |
3367 checkManagedService(o.service); | 3365 checkManagedService(o.service); |
3368 } | 3366 } |
3369 buildCounterUndeleteServiceResponse--; | 3367 buildCounterUndeleteServiceResponse--; |
3370 } | 3368 } |
3371 | 3369 |
3372 buildUnnamed1213() { | 3370 buildUnnamed1230() { |
3373 var o = new core.List<core.String>(); | 3371 var o = new core.List<core.String>(); |
3374 o.add("foo"); | 3372 o.add("foo"); |
3375 o.add("foo"); | 3373 o.add("foo"); |
3376 return o; | 3374 return o; |
3377 } | 3375 } |
3378 | 3376 |
3379 checkUnnamed1213(core.List<core.String> o) { | 3377 checkUnnamed1230(core.List<core.String> o) { |
3380 unittest.expect(o, unittest.hasLength(2)); | 3378 unittest.expect(o, unittest.hasLength(2)); |
3381 unittest.expect(o[0], unittest.equals('foo')); | 3379 unittest.expect(o[0], unittest.equals('foo')); |
3382 unittest.expect(o[1], unittest.equals('foo')); | 3380 unittest.expect(o[1], unittest.equals('foo')); |
3383 } | 3381 } |
3384 | 3382 |
3385 buildUnnamed1214() { | 3383 buildUnnamed1231() { |
3386 var o = new core.List<api.UsageRule>(); | 3384 var o = new core.List<api.UsageRule>(); |
3387 o.add(buildUsageRule()); | 3385 o.add(buildUsageRule()); |
3388 o.add(buildUsageRule()); | 3386 o.add(buildUsageRule()); |
3389 return o; | 3387 return o; |
3390 } | 3388 } |
3391 | 3389 |
3392 checkUnnamed1214(core.List<api.UsageRule> o) { | 3390 checkUnnamed1231(core.List<api.UsageRule> o) { |
3393 unittest.expect(o, unittest.hasLength(2)); | 3391 unittest.expect(o, unittest.hasLength(2)); |
3394 checkUsageRule(o[0]); | 3392 checkUsageRule(o[0]); |
3395 checkUsageRule(o[1]); | 3393 checkUsageRule(o[1]); |
3396 } | 3394 } |
3397 | 3395 |
3398 core.int buildCounterUsage = 0; | 3396 core.int buildCounterUsage = 0; |
3399 buildUsage() { | 3397 buildUsage() { |
3400 var o = new api.Usage(); | 3398 var o = new api.Usage(); |
3401 buildCounterUsage++; | 3399 buildCounterUsage++; |
3402 if (buildCounterUsage < 3) { | 3400 if (buildCounterUsage < 3) { |
3403 o.producerNotificationChannel = "foo"; | 3401 o.producerNotificationChannel = "foo"; |
3404 o.requirements = buildUnnamed1213(); | 3402 o.requirements = buildUnnamed1230(); |
3405 o.rules = buildUnnamed1214(); | 3403 o.rules = buildUnnamed1231(); |
3406 } | 3404 } |
3407 buildCounterUsage--; | 3405 buildCounterUsage--; |
3408 return o; | 3406 return o; |
3409 } | 3407 } |
3410 | 3408 |
3411 checkUsage(api.Usage o) { | 3409 checkUsage(api.Usage o) { |
3412 buildCounterUsage++; | 3410 buildCounterUsage++; |
3413 if (buildCounterUsage < 3) { | 3411 if (buildCounterUsage < 3) { |
3414 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 3412 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
3415 checkUnnamed1213(o.requirements); | 3413 checkUnnamed1230(o.requirements); |
3416 checkUnnamed1214(o.rules); | 3414 checkUnnamed1231(o.rules); |
3417 } | 3415 } |
3418 buildCounterUsage--; | 3416 buildCounterUsage--; |
3419 } | 3417 } |
3420 | 3418 |
3421 core.int buildCounterUsageRule = 0; | 3419 core.int buildCounterUsageRule = 0; |
3422 buildUsageRule() { | 3420 buildUsageRule() { |
3423 var o = new api.UsageRule(); | 3421 var o = new api.UsageRule(); |
3424 buildCounterUsageRule++; | 3422 buildCounterUsageRule++; |
3425 if (buildCounterUsageRule < 3) { | 3423 if (buildCounterUsageRule < 3) { |
3426 o.allowUnregisteredCalls = true; | 3424 o.allowUnregisteredCalls = true; |
3427 o.selector = "foo"; | 3425 o.selector = "foo"; |
3428 o.skipServiceControl = true; | 3426 o.skipServiceControl = true; |
3429 } | 3427 } |
3430 buildCounterUsageRule--; | 3428 buildCounterUsageRule--; |
3431 return o; | 3429 return o; |
3432 } | 3430 } |
3433 | 3431 |
3434 checkUsageRule(api.UsageRule o) { | 3432 checkUsageRule(api.UsageRule o) { |
3435 buildCounterUsageRule++; | 3433 buildCounterUsageRule++; |
3436 if (buildCounterUsageRule < 3) { | 3434 if (buildCounterUsageRule < 3) { |
3437 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 3435 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
3438 unittest.expect(o.selector, unittest.equals('foo')); | 3436 unittest.expect(o.selector, unittest.equals('foo')); |
3439 unittest.expect(o.skipServiceControl, unittest.isTrue); | 3437 unittest.expect(o.skipServiceControl, unittest.isTrue); |
3440 } | 3438 } |
3441 buildCounterUsageRule--; | 3439 buildCounterUsageRule--; |
3442 } | 3440 } |
3443 | 3441 |
3444 buildUnnamed1215() { | 3442 buildUnnamed1232() { |
3445 var o = new core.List<api.VisibilityRule>(); | 3443 var o = new core.List<api.VisibilityRule>(); |
3446 o.add(buildVisibilityRule()); | 3444 o.add(buildVisibilityRule()); |
3447 o.add(buildVisibilityRule()); | 3445 o.add(buildVisibilityRule()); |
3448 return o; | 3446 return o; |
3449 } | 3447 } |
3450 | 3448 |
3451 checkUnnamed1215(core.List<api.VisibilityRule> o) { | 3449 checkUnnamed1232(core.List<api.VisibilityRule> o) { |
3452 unittest.expect(o, unittest.hasLength(2)); | 3450 unittest.expect(o, unittest.hasLength(2)); |
3453 checkVisibilityRule(o[0]); | 3451 checkVisibilityRule(o[0]); |
3454 checkVisibilityRule(o[1]); | 3452 checkVisibilityRule(o[1]); |
3455 } | 3453 } |
3456 | 3454 |
3457 core.int buildCounterVisibility = 0; | 3455 core.int buildCounterVisibility = 0; |
3458 buildVisibility() { | 3456 buildVisibility() { |
3459 var o = new api.Visibility(); | 3457 var o = new api.Visibility(); |
3460 buildCounterVisibility++; | 3458 buildCounterVisibility++; |
3461 if (buildCounterVisibility < 3) { | 3459 if (buildCounterVisibility < 3) { |
3462 o.rules = buildUnnamed1215(); | 3460 o.rules = buildUnnamed1232(); |
3463 } | 3461 } |
3464 buildCounterVisibility--; | 3462 buildCounterVisibility--; |
3465 return o; | 3463 return o; |
3466 } | 3464 } |
3467 | 3465 |
3468 checkVisibility(api.Visibility o) { | 3466 checkVisibility(api.Visibility o) { |
3469 buildCounterVisibility++; | 3467 buildCounterVisibility++; |
3470 if (buildCounterVisibility < 3) { | 3468 if (buildCounterVisibility < 3) { |
3471 checkUnnamed1215(o.rules); | 3469 checkUnnamed1232(o.rules); |
3472 } | 3470 } |
3473 buildCounterVisibility--; | 3471 buildCounterVisibility--; |
3474 } | 3472 } |
3475 | 3473 |
3476 core.int buildCounterVisibilityRule = 0; | 3474 core.int buildCounterVisibilityRule = 0; |
3477 buildVisibilityRule() { | 3475 buildVisibilityRule() { |
3478 var o = new api.VisibilityRule(); | 3476 var o = new api.VisibilityRule(); |
3479 buildCounterVisibilityRule++; | 3477 buildCounterVisibilityRule++; |
3480 if (buildCounterVisibilityRule < 3) { | 3478 if (buildCounterVisibilityRule < 3) { |
3481 o.restriction = "foo"; | 3479 o.restriction = "foo"; |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4394 }), true); | 4392 }), true); |
4395 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { | 4393 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
4396 checkOperation(response); | 4394 checkOperation(response); |
4397 }))); | 4395 }))); |
4398 }); | 4396 }); |
4399 | 4397 |
4400 unittest.test("method--list", () { | 4398 unittest.test("method--list", () { |
4401 | 4399 |
4402 var mock = new HttpServerMock(); | 4400 var mock = new HttpServerMock(); |
4403 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; | 4401 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; |
| 4402 var arg_pageSize = 42; |
4404 var arg_filter = "foo"; | 4403 var arg_filter = "foo"; |
4405 var arg_pageToken = "foo"; | 4404 var arg_pageToken = "foo"; |
4406 var arg_name = "foo"; | 4405 var arg_name = "foo"; |
4407 var arg_pageSize = 42; | |
4408 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4406 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4409 var path = (req.url).path; | 4407 var path = (req.url).path; |
4410 var pathOffset = 0; | 4408 var pathOffset = 0; |
4411 var index; | 4409 var index; |
4412 var subPart; | 4410 var subPart; |
4413 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4411 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4414 pathOffset += 1; | 4412 pathOffset += 1; |
4415 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1/operations")); | 4413 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1/operations")); |
4416 pathOffset += 13; | 4414 pathOffset += 13; |
4417 | 4415 |
4418 var query = (req.url).query; | 4416 var query = (req.url).query; |
4419 var queryOffset = 0; | 4417 var queryOffset = 0; |
4420 var queryMap = {}; | 4418 var queryMap = {}; |
4421 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4419 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4422 parseBool(n) { | 4420 parseBool(n) { |
4423 if (n == "true") return true; | 4421 if (n == "true") return true; |
4424 if (n == "false") return false; | 4422 if (n == "false") return false; |
4425 if (n == null) return null; | 4423 if (n == null) return null; |
4426 throw new core.ArgumentError("Invalid boolean: $n"); | 4424 throw new core.ArgumentError("Invalid boolean: $n"); |
4427 } | 4425 } |
4428 if (query.length > 0) { | 4426 if (query.length > 0) { |
4429 for (var part in query.split("&")) { | 4427 for (var part in query.split("&")) { |
4430 var keyvalue = part.split("="); | 4428 var keyvalue = part.split("="); |
4431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4429 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4432 } | 4430 } |
4433 } | 4431 } |
| 4432 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4434 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 4433 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
4435 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4434 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4436 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); | 4435 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
4437 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
4438 | 4436 |
4439 | 4437 |
4440 var h = { | 4438 var h = { |
4441 "content-type" : "application/json; charset=utf-8", | 4439 "content-type" : "application/json; charset=utf-8", |
4442 }; | 4440 }; |
4443 var resp = convert.JSON.encode(buildListOperationsResponse()); | 4441 var resp = convert.JSON.encode(buildListOperationsResponse()); |
4444 return new async.Future.value(stringResponse(200, h, resp)); | 4442 return new async.Future.value(stringResponse(200, h, resp)); |
4445 }), true); | 4443 }), true); |
4446 res.list(filter: arg_filter, pageToken: arg_pageToken, name: arg_name, pag
eSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse res
ponse) { | 4444 res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageTo
ken, name: arg_name).then(unittest.expectAsync1(((api.ListOperationsResponse res
ponse) { |
4447 checkListOperationsResponse(response); | 4445 checkListOperationsResponse(response); |
4448 }))); | 4446 }))); |
4449 }); | 4447 }); |
4450 | 4448 |
4451 }); | 4449 }); |
4452 | 4450 |
4453 | 4451 |
4454 unittest.group("resource-ServicesResourceApi", () { | 4452 unittest.group("resource-ServicesResourceApi", () { |
4455 unittest.test("method--create", () { | 4453 unittest.test("method--create", () { |
4456 | 4454 |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4851 }), true); | 4849 }), true); |
4852 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { | 4850 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
4853 checkPolicy(response); | 4851 checkPolicy(response); |
4854 }))); | 4852 }))); |
4855 }); | 4853 }); |
4856 | 4854 |
4857 unittest.test("method--list", () { | 4855 unittest.test("method--list", () { |
4858 | 4856 |
4859 var mock = new HttpServerMock(); | 4857 var mock = new HttpServerMock(); |
4860 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4858 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
| 4859 var arg_pageSize = 42; |
| 4860 var arg_producerProjectId = "foo"; |
4861 var arg_consumerId = "foo"; | 4861 var arg_consumerId = "foo"; |
4862 var arg_pageToken = "foo"; | 4862 var arg_pageToken = "foo"; |
4863 var arg_pageSize = 42; | |
4864 var arg_producerProjectId = "foo"; | |
4865 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4863 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4866 var path = (req.url).path; | 4864 var path = (req.url).path; |
4867 var pathOffset = 0; | 4865 var pathOffset = 0; |
4868 var index; | 4866 var index; |
4869 var subPart; | 4867 var subPart; |
4870 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4868 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4871 pathOffset += 1; | 4869 pathOffset += 1; |
4872 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); | 4870 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); |
4873 pathOffset += 11; | 4871 pathOffset += 11; |
4874 | 4872 |
4875 var query = (req.url).query; | 4873 var query = (req.url).query; |
4876 var queryOffset = 0; | 4874 var queryOffset = 0; |
4877 var queryMap = {}; | 4875 var queryMap = {}; |
4878 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4876 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4879 parseBool(n) { | 4877 parseBool(n) { |
4880 if (n == "true") return true; | 4878 if (n == "true") return true; |
4881 if (n == "false") return false; | 4879 if (n == "false") return false; |
4882 if (n == null) return null; | 4880 if (n == null) return null; |
4883 throw new core.ArgumentError("Invalid boolean: $n"); | 4881 throw new core.ArgumentError("Invalid boolean: $n"); |
4884 } | 4882 } |
4885 if (query.length > 0) { | 4883 if (query.length > 0) { |
4886 for (var part in query.split("&")) { | 4884 for (var part in query.split("&")) { |
4887 var keyvalue = part.split("="); | 4885 var keyvalue = part.split("="); |
4888 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4886 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4889 } | 4887 } |
4890 } | 4888 } |
| 4889 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 4890 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg
_producerProjectId)); |
4891 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum
erId)); | 4891 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum
erId)); |
4892 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4892 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4893 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
4894 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg
_producerProjectId)); | |
4895 | 4893 |
4896 | 4894 |
4897 var h = { | 4895 var h = { |
4898 "content-type" : "application/json; charset=utf-8", | 4896 "content-type" : "application/json; charset=utf-8", |
4899 }; | 4897 }; |
4900 var resp = convert.JSON.encode(buildListServicesResponse()); | 4898 var resp = convert.JSON.encode(buildListServicesResponse()); |
4901 return new async.Future.value(stringResponse(200, h, resp)); | 4899 return new async.Future.value(stringResponse(200, h, resp)); |
4902 }), true); | 4900 }), true); |
4903 res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync
1(((api.ListServicesResponse response) { | 4901 res.list(pageSize: arg_pageSize, producerProjectId: arg_producerProjectId,
consumerId: arg_consumerId, pageToken: arg_pageToken).then(unittest.expectAsync
1(((api.ListServicesResponse response) { |
4904 checkListServicesResponse(response); | 4902 checkListServicesResponse(response); |
4905 }))); | 4903 }))); |
4906 }); | 4904 }); |
4907 | 4905 |
4908 unittest.test("method--setIamPolicy", () { | 4906 unittest.test("method--setIamPolicy", () { |
4909 | 4907 |
4910 var mock = new HttpServerMock(); | 4908 var mock = new HttpServerMock(); |
4911 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4909 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4912 var arg_request = buildSetIamPolicyRequest(); | 4910 var arg_request = buildSetIamPolicyRequest(); |
4913 var arg_resource = "foo"; | 4911 var arg_resource = "foo"; |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5600 res.list(arg_serviceName, filter: arg_filter, pageToken: arg_pageToken, pa
geSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceRolloutsRespon
se response) { | 5598 res.list(arg_serviceName, filter: arg_filter, pageToken: arg_pageToken, pa
geSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceRolloutsRespon
se response) { |
5601 checkListServiceRolloutsResponse(response); | 5599 checkListServiceRolloutsResponse(response); |
5602 }))); | 5600 }))); |
5603 }); | 5601 }); |
5604 | 5602 |
5605 }); | 5603 }); |
5606 | 5604 |
5607 | 5605 |
5608 } | 5606 } |
5609 | 5607 |
OLD | NEW |