OLD | NEW |
1 library googleapis.servicemanagement.v1.test; | 1 library googleapis.servicemanagement.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
11 | 11 |
12 import 'package:googleapis/servicemanagement/v1.dart' as api; | 12 import 'package:googleapis/servicemanagement/v1.dart' as api; |
13 | 13 |
14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 15 core.Function _callback; |
16 core.bool _expectJson; | 16 core.bool _expectJson; |
17 | 17 |
18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 19 _callback = callback; |
20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
(...skipping 18 matching lines...) Loading... |
39 } else { | 39 } else { |
40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 41 return _callback(request, data); |
42 }); | 42 }); |
43 } | 43 } |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 core.int buildCounterAdvice = 0; | 54 core.int buildCounterAdvice = 0; |
55 buildAdvice() { | 55 buildAdvice() { |
56 var o = new api.Advice(); | 56 var o = new api.Advice(); |
57 buildCounterAdvice++; | 57 buildCounterAdvice++; |
58 if (buildCounterAdvice < 3) { | 58 if (buildCounterAdvice < 3) { |
59 o.description = "foo"; | 59 o.description = "foo"; |
60 } | 60 } |
61 buildCounterAdvice--; | 61 buildCounterAdvice--; |
62 return o; | 62 return o; |
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 buildUnnamed1058() { | 73 buildUnnamed1065() { |
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 checkUnnamed1058(core.List<api.Method> o) { | 80 checkUnnamed1065(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 buildUnnamed1059() { | 86 buildUnnamed1066() { |
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 checkUnnamed1059(core.List<api.Mixin> o) { | 93 checkUnnamed1066(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 buildUnnamed1060() { | 99 buildUnnamed1067() { |
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 checkUnnamed1060(core.List<api.Option> o) { | 106 checkUnnamed1067(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 = buildUnnamed1058(); | 117 o.methods = buildUnnamed1065(); |
118 o.mixins = buildUnnamed1059(); | 118 o.mixins = buildUnnamed1066(); |
119 o.name = "foo"; | 119 o.name = "foo"; |
120 o.options = buildUnnamed1060(); | 120 o.options = buildUnnamed1067(); |
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 checkUnnamed1058(o.methods); | 132 checkUnnamed1065(o.methods); |
133 checkUnnamed1059(o.mixins); | 133 checkUnnamed1066(o.mixins); |
134 unittest.expect(o.name, unittest.equals('foo')); | 134 unittest.expect(o.name, unittest.equals('foo')); |
135 checkUnnamed1060(o.options); | 135 checkUnnamed1067(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 buildUnnamed1061() { | 143 buildUnnamed1068() { |
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 checkUnnamed1061(core.List<api.AuditLogConfig> o) { | 150 checkUnnamed1068(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 buildUnnamed1062() { | 156 buildUnnamed1069() { |
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 checkUnnamed1062(core.List<core.String> o) { | 163 checkUnnamed1069(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 = buildUnnamed1061(); | 174 o.auditLogConfigs = buildUnnamed1068(); |
175 o.exemptedMembers = buildUnnamed1062(); | 175 o.exemptedMembers = buildUnnamed1069(); |
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 checkUnnamed1061(o.auditLogConfigs); | 185 checkUnnamed1068(o.auditLogConfigs); |
186 checkUnnamed1062(o.exemptedMembers); | 186 checkUnnamed1069(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 buildUnnamed1063() { | 192 buildUnnamed1070() { |
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 checkUnnamed1063(core.List<core.String> o) { | 199 checkUnnamed1070(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 = buildUnnamed1063(); | 210 o.exemptedMembers = buildUnnamed1070(); |
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 checkUnnamed1063(o.exemptedMembers); | 220 checkUnnamed1070(o.exemptedMembers); |
221 unittest.expect(o.logType, unittest.equals('foo')); | 221 unittest.expect(o.logType, unittest.equals('foo')); |
222 } | 222 } |
223 buildCounterAuditLogConfig--; | 223 buildCounterAuditLogConfig--; |
224 } | 224 } |
225 | 225 |
226 core.int buildCounterAuthProvider = 0; | 226 core.int buildCounterAuthProvider = 0; |
227 buildAuthProvider() { | 227 buildAuthProvider() { |
228 var o = new api.AuthProvider(); | 228 var o = new api.AuthProvider(); |
229 buildCounterAuthProvider++; | 229 buildCounterAuthProvider++; |
230 if (buildCounterAuthProvider < 3) { | 230 if (buildCounterAuthProvider < 3) { |
(...skipping 31 matching lines...) Loading... |
262 | 262 |
263 checkAuthRequirement(api.AuthRequirement o) { | 263 checkAuthRequirement(api.AuthRequirement o) { |
264 buildCounterAuthRequirement++; | 264 buildCounterAuthRequirement++; |
265 if (buildCounterAuthRequirement < 3) { | 265 if (buildCounterAuthRequirement < 3) { |
266 unittest.expect(o.audiences, unittest.equals('foo')); | 266 unittest.expect(o.audiences, unittest.equals('foo')); |
267 unittest.expect(o.providerId, unittest.equals('foo')); | 267 unittest.expect(o.providerId, unittest.equals('foo')); |
268 } | 268 } |
269 buildCounterAuthRequirement--; | 269 buildCounterAuthRequirement--; |
270 } | 270 } |
271 | 271 |
272 buildUnnamed1064() { | 272 buildUnnamed1071() { |
273 var o = new core.List<api.AuthProvider>(); | 273 var o = new core.List<api.AuthProvider>(); |
274 o.add(buildAuthProvider()); | 274 o.add(buildAuthProvider()); |
275 o.add(buildAuthProvider()); | 275 o.add(buildAuthProvider()); |
276 return o; | 276 return o; |
277 } | 277 } |
278 | 278 |
279 checkUnnamed1064(core.List<api.AuthProvider> o) { | 279 checkUnnamed1071(core.List<api.AuthProvider> o) { |
280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
281 checkAuthProvider(o[0]); | 281 checkAuthProvider(o[0]); |
282 checkAuthProvider(o[1]); | 282 checkAuthProvider(o[1]); |
283 } | 283 } |
284 | 284 |
285 buildUnnamed1065() { | 285 buildUnnamed1072() { |
286 var o = new core.List<api.AuthenticationRule>(); | 286 var o = new core.List<api.AuthenticationRule>(); |
287 o.add(buildAuthenticationRule()); | 287 o.add(buildAuthenticationRule()); |
288 o.add(buildAuthenticationRule()); | 288 o.add(buildAuthenticationRule()); |
289 return o; | 289 return o; |
290 } | 290 } |
291 | 291 |
292 checkUnnamed1065(core.List<api.AuthenticationRule> o) { | 292 checkUnnamed1072(core.List<api.AuthenticationRule> o) { |
293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
294 checkAuthenticationRule(o[0]); | 294 checkAuthenticationRule(o[0]); |
295 checkAuthenticationRule(o[1]); | 295 checkAuthenticationRule(o[1]); |
296 } | 296 } |
297 | 297 |
298 core.int buildCounterAuthentication = 0; | 298 core.int buildCounterAuthentication = 0; |
299 buildAuthentication() { | 299 buildAuthentication() { |
300 var o = new api.Authentication(); | 300 var o = new api.Authentication(); |
301 buildCounterAuthentication++; | 301 buildCounterAuthentication++; |
302 if (buildCounterAuthentication < 3) { | 302 if (buildCounterAuthentication < 3) { |
303 o.providers = buildUnnamed1064(); | 303 o.providers = buildUnnamed1071(); |
304 o.rules = buildUnnamed1065(); | 304 o.rules = buildUnnamed1072(); |
305 } | 305 } |
306 buildCounterAuthentication--; | 306 buildCounterAuthentication--; |
307 return o; | 307 return o; |
308 } | 308 } |
309 | 309 |
310 checkAuthentication(api.Authentication o) { | 310 checkAuthentication(api.Authentication o) { |
311 buildCounterAuthentication++; | 311 buildCounterAuthentication++; |
312 if (buildCounterAuthentication < 3) { | 312 if (buildCounterAuthentication < 3) { |
313 checkUnnamed1064(o.providers); | 313 checkUnnamed1071(o.providers); |
314 checkUnnamed1065(o.rules); | 314 checkUnnamed1072(o.rules); |
315 } | 315 } |
316 buildCounterAuthentication--; | 316 buildCounterAuthentication--; |
317 } | 317 } |
318 | 318 |
319 buildUnnamed1066() { | 319 buildUnnamed1073() { |
320 var o = new core.List<api.AuthRequirement>(); | 320 var o = new core.List<api.AuthRequirement>(); |
321 o.add(buildAuthRequirement()); | 321 o.add(buildAuthRequirement()); |
322 o.add(buildAuthRequirement()); | 322 o.add(buildAuthRequirement()); |
323 return o; | 323 return o; |
324 } | 324 } |
325 | 325 |
326 checkUnnamed1066(core.List<api.AuthRequirement> o) { | 326 checkUnnamed1073(core.List<api.AuthRequirement> o) { |
327 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
328 checkAuthRequirement(o[0]); | 328 checkAuthRequirement(o[0]); |
329 checkAuthRequirement(o[1]); | 329 checkAuthRequirement(o[1]); |
330 } | 330 } |
331 | 331 |
332 core.int buildCounterAuthenticationRule = 0; | 332 core.int buildCounterAuthenticationRule = 0; |
333 buildAuthenticationRule() { | 333 buildAuthenticationRule() { |
334 var o = new api.AuthenticationRule(); | 334 var o = new api.AuthenticationRule(); |
335 buildCounterAuthenticationRule++; | 335 buildCounterAuthenticationRule++; |
336 if (buildCounterAuthenticationRule < 3) { | 336 if (buildCounterAuthenticationRule < 3) { |
337 o.allowWithoutCredential = true; | 337 o.allowWithoutCredential = true; |
338 o.customAuth = buildCustomAuthRequirements(); | 338 o.customAuth = buildCustomAuthRequirements(); |
339 o.oauth = buildOAuthRequirements(); | 339 o.oauth = buildOAuthRequirements(); |
340 o.requirements = buildUnnamed1066(); | 340 o.requirements = buildUnnamed1073(); |
341 o.selector = "foo"; | 341 o.selector = "foo"; |
342 } | 342 } |
343 buildCounterAuthenticationRule--; | 343 buildCounterAuthenticationRule--; |
344 return o; | 344 return o; |
345 } | 345 } |
346 | 346 |
347 checkAuthenticationRule(api.AuthenticationRule o) { | 347 checkAuthenticationRule(api.AuthenticationRule o) { |
348 buildCounterAuthenticationRule++; | 348 buildCounterAuthenticationRule++; |
349 if (buildCounterAuthenticationRule < 3) { | 349 if (buildCounterAuthenticationRule < 3) { |
350 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 350 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
351 checkCustomAuthRequirements(o.customAuth); | 351 checkCustomAuthRequirements(o.customAuth); |
352 checkOAuthRequirements(o.oauth); | 352 checkOAuthRequirements(o.oauth); |
353 checkUnnamed1066(o.requirements); | 353 checkUnnamed1073(o.requirements); |
354 unittest.expect(o.selector, unittest.equals('foo')); | 354 unittest.expect(o.selector, unittest.equals('foo')); |
355 } | 355 } |
356 buildCounterAuthenticationRule--; | 356 buildCounterAuthenticationRule--; |
357 } | 357 } |
358 | 358 |
359 core.int buildCounterAuthorizationConfig = 0; | 359 core.int buildCounterAuthorizationConfig = 0; |
360 buildAuthorizationConfig() { | 360 buildAuthorizationConfig() { |
361 var o = new api.AuthorizationConfig(); | 361 var o = new api.AuthorizationConfig(); |
362 buildCounterAuthorizationConfig++; | 362 buildCounterAuthorizationConfig++; |
363 if (buildCounterAuthorizationConfig < 3) { | 363 if (buildCounterAuthorizationConfig < 3) { |
364 o.provider = "foo"; | 364 o.provider = "foo"; |
365 } | 365 } |
366 buildCounterAuthorizationConfig--; | 366 buildCounterAuthorizationConfig--; |
367 return o; | 367 return o; |
368 } | 368 } |
369 | 369 |
370 checkAuthorizationConfig(api.AuthorizationConfig o) { | 370 checkAuthorizationConfig(api.AuthorizationConfig o) { |
371 buildCounterAuthorizationConfig++; | 371 buildCounterAuthorizationConfig++; |
372 if (buildCounterAuthorizationConfig < 3) { | 372 if (buildCounterAuthorizationConfig < 3) { |
373 unittest.expect(o.provider, unittest.equals('foo')); | 373 unittest.expect(o.provider, unittest.equals('foo')); |
374 } | 374 } |
375 buildCounterAuthorizationConfig--; | 375 buildCounterAuthorizationConfig--; |
376 } | 376 } |
377 | 377 |
378 buildUnnamed1067() { | 378 buildUnnamed1074() { |
379 var o = new core.List<api.BackendRule>(); | 379 var o = new core.List<api.BackendRule>(); |
380 o.add(buildBackendRule()); | 380 o.add(buildBackendRule()); |
381 o.add(buildBackendRule()); | 381 o.add(buildBackendRule()); |
382 return o; | 382 return o; |
383 } | 383 } |
384 | 384 |
385 checkUnnamed1067(core.List<api.BackendRule> o) { | 385 checkUnnamed1074(core.List<api.BackendRule> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
387 checkBackendRule(o[0]); | 387 checkBackendRule(o[0]); |
388 checkBackendRule(o[1]); | 388 checkBackendRule(o[1]); |
389 } | 389 } |
390 | 390 |
391 core.int buildCounterBackend = 0; | 391 core.int buildCounterBackend = 0; |
392 buildBackend() { | 392 buildBackend() { |
393 var o = new api.Backend(); | 393 var o = new api.Backend(); |
394 buildCounterBackend++; | 394 buildCounterBackend++; |
395 if (buildCounterBackend < 3) { | 395 if (buildCounterBackend < 3) { |
396 o.rules = buildUnnamed1067(); | 396 o.rules = buildUnnamed1074(); |
397 } | 397 } |
398 buildCounterBackend--; | 398 buildCounterBackend--; |
399 return o; | 399 return o; |
400 } | 400 } |
401 | 401 |
402 checkBackend(api.Backend o) { | 402 checkBackend(api.Backend o) { |
403 buildCounterBackend++; | 403 buildCounterBackend++; |
404 if (buildCounterBackend < 3) { | 404 if (buildCounterBackend < 3) { |
405 checkUnnamed1067(o.rules); | 405 checkUnnamed1074(o.rules); |
406 } | 406 } |
407 buildCounterBackend--; | 407 buildCounterBackend--; |
408 } | 408 } |
409 | 409 |
410 core.int buildCounterBackendRule = 0; | 410 core.int buildCounterBackendRule = 0; |
411 buildBackendRule() { | 411 buildBackendRule() { |
412 var o = new api.BackendRule(); | 412 var o = new api.BackendRule(); |
413 buildCounterBackendRule++; | 413 buildCounterBackendRule++; |
414 if (buildCounterBackendRule < 3) { | 414 if (buildCounterBackendRule < 3) { |
415 o.address = "foo"; | 415 o.address = "foo"; |
416 o.deadline = 42.0; | 416 o.deadline = 42.0; |
417 o.minDeadline = 42.0; | 417 o.minDeadline = 42.0; |
418 o.selector = "foo"; | 418 o.selector = "foo"; |
419 } | 419 } |
420 buildCounterBackendRule--; | 420 buildCounterBackendRule--; |
421 return o; | 421 return o; |
422 } | 422 } |
423 | 423 |
424 checkBackendRule(api.BackendRule o) { | 424 checkBackendRule(api.BackendRule o) { |
425 buildCounterBackendRule++; | 425 buildCounterBackendRule++; |
426 if (buildCounterBackendRule < 3) { | 426 if (buildCounterBackendRule < 3) { |
427 unittest.expect(o.address, unittest.equals('foo')); | 427 unittest.expect(o.address, unittest.equals('foo')); |
428 unittest.expect(o.deadline, unittest.equals(42.0)); | 428 unittest.expect(o.deadline, unittest.equals(42.0)); |
429 unittest.expect(o.minDeadline, unittest.equals(42.0)); | 429 unittest.expect(o.minDeadline, unittest.equals(42.0)); |
430 unittest.expect(o.selector, unittest.equals('foo')); | 430 unittest.expect(o.selector, unittest.equals('foo')); |
431 } | 431 } |
432 buildCounterBackendRule--; | 432 buildCounterBackendRule--; |
433 } | 433 } |
434 | 434 |
435 buildUnnamed1068() { | 435 buildUnnamed1075() { |
436 var o = new core.List<core.String>(); | 436 var o = new core.List<core.String>(); |
437 o.add("foo"); | 437 o.add("foo"); |
438 o.add("foo"); | 438 o.add("foo"); |
439 return o; | 439 return o; |
440 } | 440 } |
441 | 441 |
442 checkUnnamed1068(core.List<core.String> o) { | 442 checkUnnamed1075(core.List<core.String> o) { |
443 unittest.expect(o, unittest.hasLength(2)); | 443 unittest.expect(o, unittest.hasLength(2)); |
444 unittest.expect(o[0], unittest.equals('foo')); | 444 unittest.expect(o[0], unittest.equals('foo')); |
445 unittest.expect(o[1], unittest.equals('foo')); | 445 unittest.expect(o[1], unittest.equals('foo')); |
446 } | 446 } |
447 | 447 |
448 core.int buildCounterBinding = 0; | 448 core.int buildCounterBinding = 0; |
449 buildBinding() { | 449 buildBinding() { |
450 var o = new api.Binding(); | 450 var o = new api.Binding(); |
451 buildCounterBinding++; | 451 buildCounterBinding++; |
452 if (buildCounterBinding < 3) { | 452 if (buildCounterBinding < 3) { |
453 o.members = buildUnnamed1068(); | 453 o.condition = buildExpr(); |
| 454 o.members = buildUnnamed1075(); |
454 o.role = "foo"; | 455 o.role = "foo"; |
455 } | 456 } |
456 buildCounterBinding--; | 457 buildCounterBinding--; |
457 return o; | 458 return o; |
458 } | 459 } |
459 | 460 |
460 checkBinding(api.Binding o) { | 461 checkBinding(api.Binding o) { |
461 buildCounterBinding++; | 462 buildCounterBinding++; |
462 if (buildCounterBinding < 3) { | 463 if (buildCounterBinding < 3) { |
463 checkUnnamed1068(o.members); | 464 checkExpr(o.condition); |
| 465 checkUnnamed1075(o.members); |
464 unittest.expect(o.role, unittest.equals('foo')); | 466 unittest.expect(o.role, unittest.equals('foo')); |
465 } | 467 } |
466 buildCounterBinding--; | 468 buildCounterBinding--; |
467 } | 469 } |
468 | 470 |
469 buildUnnamed1069() { | 471 buildUnnamed1076() { |
470 var o = new core.List<api.ConfigChange>(); | 472 var o = new core.List<api.ConfigChange>(); |
471 o.add(buildConfigChange()); | 473 o.add(buildConfigChange()); |
472 o.add(buildConfigChange()); | 474 o.add(buildConfigChange()); |
473 return o; | 475 return o; |
474 } | 476 } |
475 | 477 |
476 checkUnnamed1069(core.List<api.ConfigChange> o) { | 478 checkUnnamed1076(core.List<api.ConfigChange> o) { |
477 unittest.expect(o, unittest.hasLength(2)); | 479 unittest.expect(o, unittest.hasLength(2)); |
478 checkConfigChange(o[0]); | 480 checkConfigChange(o[0]); |
479 checkConfigChange(o[1]); | 481 checkConfigChange(o[1]); |
480 } | 482 } |
481 | 483 |
482 core.int buildCounterChangeReport = 0; | 484 core.int buildCounterChangeReport = 0; |
483 buildChangeReport() { | 485 buildChangeReport() { |
484 var o = new api.ChangeReport(); | 486 var o = new api.ChangeReport(); |
485 buildCounterChangeReport++; | 487 buildCounterChangeReport++; |
486 if (buildCounterChangeReport < 3) { | 488 if (buildCounterChangeReport < 3) { |
487 o.configChanges = buildUnnamed1069(); | 489 o.configChanges = buildUnnamed1076(); |
488 } | 490 } |
489 buildCounterChangeReport--; | 491 buildCounterChangeReport--; |
490 return o; | 492 return o; |
491 } | 493 } |
492 | 494 |
493 checkChangeReport(api.ChangeReport o) { | 495 checkChangeReport(api.ChangeReport o) { |
494 buildCounterChangeReport++; | 496 buildCounterChangeReport++; |
495 if (buildCounterChangeReport < 3) { | 497 if (buildCounterChangeReport < 3) { |
496 checkUnnamed1069(o.configChanges); | 498 checkUnnamed1076(o.configChanges); |
497 } | 499 } |
498 buildCounterChangeReport--; | 500 buildCounterChangeReport--; |
499 } | 501 } |
500 | 502 |
501 core.int buildCounterCloudAuditOptions = 0; | 503 core.int buildCounterCloudAuditOptions = 0; |
502 buildCloudAuditOptions() { | 504 buildCloudAuditOptions() { |
503 var o = new api.CloudAuditOptions(); | 505 var o = new api.CloudAuditOptions(); |
504 buildCounterCloudAuditOptions++; | 506 buildCounterCloudAuditOptions++; |
505 if (buildCounterCloudAuditOptions < 3) { | 507 if (buildCounterCloudAuditOptions < 3) { |
506 o.logName = "foo"; | 508 o.logName = "foo"; |
507 } | 509 } |
508 buildCounterCloudAuditOptions--; | 510 buildCounterCloudAuditOptions--; |
509 return o; | 511 return o; |
510 } | 512 } |
511 | 513 |
512 checkCloudAuditOptions(api.CloudAuditOptions o) { | 514 checkCloudAuditOptions(api.CloudAuditOptions o) { |
513 buildCounterCloudAuditOptions++; | 515 buildCounterCloudAuditOptions++; |
514 if (buildCounterCloudAuditOptions < 3) { | 516 if (buildCounterCloudAuditOptions < 3) { |
515 unittest.expect(o.logName, unittest.equals('foo')); | 517 unittest.expect(o.logName, unittest.equals('foo')); |
516 } | 518 } |
517 buildCounterCloudAuditOptions--; | 519 buildCounterCloudAuditOptions--; |
518 } | 520 } |
519 | 521 |
520 buildUnnamed1070() { | 522 buildUnnamed1077() { |
521 var o = new core.List<core.String>(); | 523 var o = new core.List<core.String>(); |
522 o.add("foo"); | 524 o.add("foo"); |
523 o.add("foo"); | 525 o.add("foo"); |
524 return o; | 526 return o; |
525 } | 527 } |
526 | 528 |
527 checkUnnamed1070(core.List<core.String> o) { | 529 checkUnnamed1077(core.List<core.String> o) { |
528 unittest.expect(o, unittest.hasLength(2)); | 530 unittest.expect(o, unittest.hasLength(2)); |
529 unittest.expect(o[0], unittest.equals('foo')); | 531 unittest.expect(o[0], unittest.equals('foo')); |
530 unittest.expect(o[1], unittest.equals('foo')); | 532 unittest.expect(o[1], unittest.equals('foo')); |
531 } | 533 } |
532 | 534 |
533 core.int buildCounterCondition = 0; | 535 core.int buildCounterCondition = 0; |
534 buildCondition() { | 536 buildCondition() { |
535 var o = new api.Condition(); | 537 var o = new api.Condition(); |
536 buildCounterCondition++; | 538 buildCounterCondition++; |
537 if (buildCounterCondition < 3) { | 539 if (buildCounterCondition < 3) { |
538 o.iam = "foo"; | 540 o.iam = "foo"; |
539 o.op = "foo"; | 541 o.op = "foo"; |
540 o.svc = "foo"; | 542 o.svc = "foo"; |
541 o.sys = "foo"; | 543 o.sys = "foo"; |
542 o.value = "foo"; | 544 o.value = "foo"; |
543 o.values = buildUnnamed1070(); | 545 o.values = buildUnnamed1077(); |
544 } | 546 } |
545 buildCounterCondition--; | 547 buildCounterCondition--; |
546 return o; | 548 return o; |
547 } | 549 } |
548 | 550 |
549 checkCondition(api.Condition o) { | 551 checkCondition(api.Condition o) { |
550 buildCounterCondition++; | 552 buildCounterCondition++; |
551 if (buildCounterCondition < 3) { | 553 if (buildCounterCondition < 3) { |
552 unittest.expect(o.iam, unittest.equals('foo')); | 554 unittest.expect(o.iam, unittest.equals('foo')); |
553 unittest.expect(o.op, unittest.equals('foo')); | 555 unittest.expect(o.op, unittest.equals('foo')); |
554 unittest.expect(o.svc, unittest.equals('foo')); | 556 unittest.expect(o.svc, unittest.equals('foo')); |
555 unittest.expect(o.sys, unittest.equals('foo')); | 557 unittest.expect(o.sys, unittest.equals('foo')); |
556 unittest.expect(o.value, unittest.equals('foo')); | 558 unittest.expect(o.value, unittest.equals('foo')); |
557 checkUnnamed1070(o.values); | 559 checkUnnamed1077(o.values); |
558 } | 560 } |
559 buildCounterCondition--; | 561 buildCounterCondition--; |
560 } | 562 } |
561 | 563 |
562 buildUnnamed1071() { | 564 buildUnnamed1078() { |
563 var o = new core.List<api.Advice>(); | 565 var o = new core.List<api.Advice>(); |
564 o.add(buildAdvice()); | 566 o.add(buildAdvice()); |
565 o.add(buildAdvice()); | 567 o.add(buildAdvice()); |
566 return o; | 568 return o; |
567 } | 569 } |
568 | 570 |
569 checkUnnamed1071(core.List<api.Advice> o) { | 571 checkUnnamed1078(core.List<api.Advice> o) { |
570 unittest.expect(o, unittest.hasLength(2)); | 572 unittest.expect(o, unittest.hasLength(2)); |
571 checkAdvice(o[0]); | 573 checkAdvice(o[0]); |
572 checkAdvice(o[1]); | 574 checkAdvice(o[1]); |
573 } | 575 } |
574 | 576 |
575 core.int buildCounterConfigChange = 0; | 577 core.int buildCounterConfigChange = 0; |
576 buildConfigChange() { | 578 buildConfigChange() { |
577 var o = new api.ConfigChange(); | 579 var o = new api.ConfigChange(); |
578 buildCounterConfigChange++; | 580 buildCounterConfigChange++; |
579 if (buildCounterConfigChange < 3) { | 581 if (buildCounterConfigChange < 3) { |
580 o.advices = buildUnnamed1071(); | 582 o.advices = buildUnnamed1078(); |
581 o.changeType = "foo"; | 583 o.changeType = "foo"; |
582 o.element = "foo"; | 584 o.element = "foo"; |
583 o.newValue = "foo"; | 585 o.newValue = "foo"; |
584 o.oldValue = "foo"; | 586 o.oldValue = "foo"; |
585 } | 587 } |
586 buildCounterConfigChange--; | 588 buildCounterConfigChange--; |
587 return o; | 589 return o; |
588 } | 590 } |
589 | 591 |
590 checkConfigChange(api.ConfigChange o) { | 592 checkConfigChange(api.ConfigChange o) { |
591 buildCounterConfigChange++; | 593 buildCounterConfigChange++; |
592 if (buildCounterConfigChange < 3) { | 594 if (buildCounterConfigChange < 3) { |
593 checkUnnamed1071(o.advices); | 595 checkUnnamed1078(o.advices); |
594 unittest.expect(o.changeType, unittest.equals('foo')); | 596 unittest.expect(o.changeType, unittest.equals('foo')); |
595 unittest.expect(o.element, unittest.equals('foo')); | 597 unittest.expect(o.element, unittest.equals('foo')); |
596 unittest.expect(o.newValue, unittest.equals('foo')); | 598 unittest.expect(o.newValue, unittest.equals('foo')); |
597 unittest.expect(o.oldValue, unittest.equals('foo')); | 599 unittest.expect(o.oldValue, unittest.equals('foo')); |
598 } | 600 } |
599 buildCounterConfigChange--; | 601 buildCounterConfigChange--; |
600 } | 602 } |
601 | 603 |
602 core.int buildCounterConfigFile = 0; | 604 core.int buildCounterConfigFile = 0; |
603 buildConfigFile() { | 605 buildConfigFile() { |
(...skipping 30 matching lines...) Loading... |
634 } | 636 } |
635 | 637 |
636 checkConfigRef(api.ConfigRef o) { | 638 checkConfigRef(api.ConfigRef o) { |
637 buildCounterConfigRef++; | 639 buildCounterConfigRef++; |
638 if (buildCounterConfigRef < 3) { | 640 if (buildCounterConfigRef < 3) { |
639 unittest.expect(o.name, unittest.equals('foo')); | 641 unittest.expect(o.name, unittest.equals('foo')); |
640 } | 642 } |
641 buildCounterConfigRef--; | 643 buildCounterConfigRef--; |
642 } | 644 } |
643 | 645 |
644 buildUnnamed1072() { | 646 buildUnnamed1079() { |
645 var o = new core.List<api.ConfigFile>(); | 647 var o = new core.List<api.ConfigFile>(); |
646 o.add(buildConfigFile()); | 648 o.add(buildConfigFile()); |
647 o.add(buildConfigFile()); | 649 o.add(buildConfigFile()); |
648 return o; | 650 return o; |
649 } | 651 } |
650 | 652 |
651 checkUnnamed1072(core.List<api.ConfigFile> o) { | 653 checkUnnamed1079(core.List<api.ConfigFile> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 654 unittest.expect(o, unittest.hasLength(2)); |
653 checkConfigFile(o[0]); | 655 checkConfigFile(o[0]); |
654 checkConfigFile(o[1]); | 656 checkConfigFile(o[1]); |
655 } | 657 } |
656 | 658 |
657 core.int buildCounterConfigSource = 0; | 659 core.int buildCounterConfigSource = 0; |
658 buildConfigSource() { | 660 buildConfigSource() { |
659 var o = new api.ConfigSource(); | 661 var o = new api.ConfigSource(); |
660 buildCounterConfigSource++; | 662 buildCounterConfigSource++; |
661 if (buildCounterConfigSource < 3) { | 663 if (buildCounterConfigSource < 3) { |
662 o.files = buildUnnamed1072(); | 664 o.files = buildUnnamed1079(); |
663 o.id = "foo"; | 665 o.id = "foo"; |
664 } | 666 } |
665 buildCounterConfigSource--; | 667 buildCounterConfigSource--; |
666 return o; | 668 return o; |
667 } | 669 } |
668 | 670 |
669 checkConfigSource(api.ConfigSource o) { | 671 checkConfigSource(api.ConfigSource o) { |
670 buildCounterConfigSource++; | 672 buildCounterConfigSource++; |
671 if (buildCounterConfigSource < 3) { | 673 if (buildCounterConfigSource < 3) { |
672 checkUnnamed1072(o.files); | 674 checkUnnamed1079(o.files); |
673 unittest.expect(o.id, unittest.equals('foo')); | 675 unittest.expect(o.id, unittest.equals('foo')); |
674 } | 676 } |
675 buildCounterConfigSource--; | 677 buildCounterConfigSource--; |
676 } | 678 } |
677 | 679 |
678 buildUnnamed1073() { | 680 buildUnnamed1080() { |
679 var o = new core.List<api.ContextRule>(); | 681 var o = new core.List<api.ContextRule>(); |
680 o.add(buildContextRule()); | 682 o.add(buildContextRule()); |
681 o.add(buildContextRule()); | 683 o.add(buildContextRule()); |
682 return o; | 684 return o; |
683 } | 685 } |
684 | 686 |
685 checkUnnamed1073(core.List<api.ContextRule> o) { | 687 checkUnnamed1080(core.List<api.ContextRule> o) { |
686 unittest.expect(o, unittest.hasLength(2)); | 688 unittest.expect(o, unittest.hasLength(2)); |
687 checkContextRule(o[0]); | 689 checkContextRule(o[0]); |
688 checkContextRule(o[1]); | 690 checkContextRule(o[1]); |
689 } | 691 } |
690 | 692 |
691 core.int buildCounterContext = 0; | 693 core.int buildCounterContext = 0; |
692 buildContext() { | 694 buildContext() { |
693 var o = new api.Context(); | 695 var o = new api.Context(); |
694 buildCounterContext++; | 696 buildCounterContext++; |
695 if (buildCounterContext < 3) { | 697 if (buildCounterContext < 3) { |
696 o.rules = buildUnnamed1073(); | 698 o.rules = buildUnnamed1080(); |
697 } | 699 } |
698 buildCounterContext--; | 700 buildCounterContext--; |
699 return o; | 701 return o; |
700 } | 702 } |
701 | 703 |
702 checkContext(api.Context o) { | 704 checkContext(api.Context o) { |
703 buildCounterContext++; | 705 buildCounterContext++; |
704 if (buildCounterContext < 3) { | 706 if (buildCounterContext < 3) { |
705 checkUnnamed1073(o.rules); | 707 checkUnnamed1080(o.rules); |
706 } | 708 } |
707 buildCounterContext--; | 709 buildCounterContext--; |
708 } | 710 } |
709 | 711 |
710 buildUnnamed1074() { | 712 buildUnnamed1081() { |
711 var o = new core.List<core.String>(); | 713 var o = new core.List<core.String>(); |
712 o.add("foo"); | 714 o.add("foo"); |
713 o.add("foo"); | 715 o.add("foo"); |
714 return o; | 716 return o; |
715 } | 717 } |
716 | 718 |
717 checkUnnamed1074(core.List<core.String> o) { | 719 checkUnnamed1081(core.List<core.String> o) { |
718 unittest.expect(o, unittest.hasLength(2)); | 720 unittest.expect(o, unittest.hasLength(2)); |
719 unittest.expect(o[0], unittest.equals('foo')); | 721 unittest.expect(o[0], unittest.equals('foo')); |
720 unittest.expect(o[1], unittest.equals('foo')); | 722 unittest.expect(o[1], unittest.equals('foo')); |
721 } | 723 } |
722 | 724 |
723 buildUnnamed1075() { | 725 buildUnnamed1082() { |
724 var o = new core.List<core.String>(); | 726 var o = new core.List<core.String>(); |
725 o.add("foo"); | 727 o.add("foo"); |
726 o.add("foo"); | 728 o.add("foo"); |
727 return o; | 729 return o; |
728 } | 730 } |
729 | 731 |
730 checkUnnamed1075(core.List<core.String> o) { | 732 checkUnnamed1082(core.List<core.String> o) { |
731 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
732 unittest.expect(o[0], unittest.equals('foo')); | 734 unittest.expect(o[0], unittest.equals('foo')); |
733 unittest.expect(o[1], unittest.equals('foo')); | 735 unittest.expect(o[1], unittest.equals('foo')); |
734 } | 736 } |
735 | 737 |
736 core.int buildCounterContextRule = 0; | 738 core.int buildCounterContextRule = 0; |
737 buildContextRule() { | 739 buildContextRule() { |
738 var o = new api.ContextRule(); | 740 var o = new api.ContextRule(); |
739 buildCounterContextRule++; | 741 buildCounterContextRule++; |
740 if (buildCounterContextRule < 3) { | 742 if (buildCounterContextRule < 3) { |
741 o.provided = buildUnnamed1074(); | 743 o.provided = buildUnnamed1081(); |
742 o.requested = buildUnnamed1075(); | 744 o.requested = buildUnnamed1082(); |
743 o.selector = "foo"; | 745 o.selector = "foo"; |
744 } | 746 } |
745 buildCounterContextRule--; | 747 buildCounterContextRule--; |
746 return o; | 748 return o; |
747 } | 749 } |
748 | 750 |
749 checkContextRule(api.ContextRule o) { | 751 checkContextRule(api.ContextRule o) { |
750 buildCounterContextRule++; | 752 buildCounterContextRule++; |
751 if (buildCounterContextRule < 3) { | 753 if (buildCounterContextRule < 3) { |
752 checkUnnamed1074(o.provided); | 754 checkUnnamed1081(o.provided); |
753 checkUnnamed1075(o.requested); | 755 checkUnnamed1082(o.requested); |
754 unittest.expect(o.selector, unittest.equals('foo')); | 756 unittest.expect(o.selector, unittest.equals('foo')); |
755 } | 757 } |
756 buildCounterContextRule--; | 758 buildCounterContextRule--; |
757 } | 759 } |
758 | 760 |
759 core.int buildCounterControl = 0; | 761 core.int buildCounterControl = 0; |
760 buildControl() { | 762 buildControl() { |
761 var o = new api.Control(); | 763 var o = new api.Control(); |
762 buildCounterControl++; | 764 buildCounterControl++; |
763 if (buildCounterControl < 3) { | 765 if (buildCounterControl < 3) { |
(...skipping 44 matching lines...) Loading... |
808 } | 810 } |
809 | 811 |
810 checkCustomAuthRequirements(api.CustomAuthRequirements o) { | 812 checkCustomAuthRequirements(api.CustomAuthRequirements o) { |
811 buildCounterCustomAuthRequirements++; | 813 buildCounterCustomAuthRequirements++; |
812 if (buildCounterCustomAuthRequirements < 3) { | 814 if (buildCounterCustomAuthRequirements < 3) { |
813 unittest.expect(o.provider, unittest.equals('foo')); | 815 unittest.expect(o.provider, unittest.equals('foo')); |
814 } | 816 } |
815 buildCounterCustomAuthRequirements--; | 817 buildCounterCustomAuthRequirements--; |
816 } | 818 } |
817 | 819 |
818 buildUnnamed1076() { | 820 buildUnnamed1083() { |
819 var o = new core.List<api.CustomErrorRule>(); | 821 var o = new core.List<api.CustomErrorRule>(); |
820 o.add(buildCustomErrorRule()); | 822 o.add(buildCustomErrorRule()); |
821 o.add(buildCustomErrorRule()); | 823 o.add(buildCustomErrorRule()); |
822 return o; | 824 return o; |
823 } | 825 } |
824 | 826 |
825 checkUnnamed1076(core.List<api.CustomErrorRule> o) { | 827 checkUnnamed1083(core.List<api.CustomErrorRule> o) { |
826 unittest.expect(o, unittest.hasLength(2)); | 828 unittest.expect(o, unittest.hasLength(2)); |
827 checkCustomErrorRule(o[0]); | 829 checkCustomErrorRule(o[0]); |
828 checkCustomErrorRule(o[1]); | 830 checkCustomErrorRule(o[1]); |
829 } | 831 } |
830 | 832 |
831 buildUnnamed1077() { | 833 buildUnnamed1084() { |
832 var o = new core.List<core.String>(); | 834 var o = new core.List<core.String>(); |
833 o.add("foo"); | 835 o.add("foo"); |
834 o.add("foo"); | 836 o.add("foo"); |
835 return o; | 837 return o; |
836 } | 838 } |
837 | 839 |
838 checkUnnamed1077(core.List<core.String> o) { | 840 checkUnnamed1084(core.List<core.String> o) { |
839 unittest.expect(o, unittest.hasLength(2)); | 841 unittest.expect(o, unittest.hasLength(2)); |
840 unittest.expect(o[0], unittest.equals('foo')); | 842 unittest.expect(o[0], unittest.equals('foo')); |
841 unittest.expect(o[1], unittest.equals('foo')); | 843 unittest.expect(o[1], unittest.equals('foo')); |
842 } | 844 } |
843 | 845 |
844 core.int buildCounterCustomError = 0; | 846 core.int buildCounterCustomError = 0; |
845 buildCustomError() { | 847 buildCustomError() { |
846 var o = new api.CustomError(); | 848 var o = new api.CustomError(); |
847 buildCounterCustomError++; | 849 buildCounterCustomError++; |
848 if (buildCounterCustomError < 3) { | 850 if (buildCounterCustomError < 3) { |
849 o.rules = buildUnnamed1076(); | 851 o.rules = buildUnnamed1083(); |
850 o.types = buildUnnamed1077(); | 852 o.types = buildUnnamed1084(); |
851 } | 853 } |
852 buildCounterCustomError--; | 854 buildCounterCustomError--; |
853 return o; | 855 return o; |
854 } | 856 } |
855 | 857 |
856 checkCustomError(api.CustomError o) { | 858 checkCustomError(api.CustomError o) { |
857 buildCounterCustomError++; | 859 buildCounterCustomError++; |
858 if (buildCounterCustomError < 3) { | 860 if (buildCounterCustomError < 3) { |
859 checkUnnamed1076(o.rules); | 861 checkUnnamed1083(o.rules); |
860 checkUnnamed1077(o.types); | 862 checkUnnamed1084(o.types); |
861 } | 863 } |
862 buildCounterCustomError--; | 864 buildCounterCustomError--; |
863 } | 865 } |
864 | 866 |
865 core.int buildCounterCustomErrorRule = 0; | 867 core.int buildCounterCustomErrorRule = 0; |
866 buildCustomErrorRule() { | 868 buildCustomErrorRule() { |
867 var o = new api.CustomErrorRule(); | 869 var o = new api.CustomErrorRule(); |
868 buildCounterCustomErrorRule++; | 870 buildCounterCustomErrorRule++; |
869 if (buildCounterCustomErrorRule < 3) { | 871 if (buildCounterCustomErrorRule < 3) { |
870 o.isErrorType = true; | 872 o.isErrorType = true; |
(...skipping 102 matching lines...) Loading... |
973 } | 975 } |
974 | 976 |
975 checkDisableServiceRequest(api.DisableServiceRequest o) { | 977 checkDisableServiceRequest(api.DisableServiceRequest o) { |
976 buildCounterDisableServiceRequest++; | 978 buildCounterDisableServiceRequest++; |
977 if (buildCounterDisableServiceRequest < 3) { | 979 if (buildCounterDisableServiceRequest < 3) { |
978 unittest.expect(o.consumerId, unittest.equals('foo')); | 980 unittest.expect(o.consumerId, unittest.equals('foo')); |
979 } | 981 } |
980 buildCounterDisableServiceRequest--; | 982 buildCounterDisableServiceRequest--; |
981 } | 983 } |
982 | 984 |
983 buildUnnamed1078() { | 985 buildUnnamed1085() { |
984 var o = new core.List<api.Page>(); | 986 var o = new core.List<api.Page>(); |
985 o.add(buildPage()); | 987 o.add(buildPage()); |
986 o.add(buildPage()); | 988 o.add(buildPage()); |
987 return o; | 989 return o; |
988 } | 990 } |
989 | 991 |
990 checkUnnamed1078(core.List<api.Page> o) { | 992 checkUnnamed1085(core.List<api.Page> o) { |
991 unittest.expect(o, unittest.hasLength(2)); | 993 unittest.expect(o, unittest.hasLength(2)); |
992 checkPage(o[0]); | 994 checkPage(o[0]); |
993 checkPage(o[1]); | 995 checkPage(o[1]); |
994 } | 996 } |
995 | 997 |
996 buildUnnamed1079() { | 998 buildUnnamed1086() { |
997 var o = new core.List<api.DocumentationRule>(); | 999 var o = new core.List<api.DocumentationRule>(); |
998 o.add(buildDocumentationRule()); | 1000 o.add(buildDocumentationRule()); |
999 o.add(buildDocumentationRule()); | 1001 o.add(buildDocumentationRule()); |
1000 return o; | 1002 return o; |
1001 } | 1003 } |
1002 | 1004 |
1003 checkUnnamed1079(core.List<api.DocumentationRule> o) { | 1005 checkUnnamed1086(core.List<api.DocumentationRule> o) { |
1004 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
1005 checkDocumentationRule(o[0]); | 1007 checkDocumentationRule(o[0]); |
1006 checkDocumentationRule(o[1]); | 1008 checkDocumentationRule(o[1]); |
1007 } | 1009 } |
1008 | 1010 |
1009 core.int buildCounterDocumentation = 0; | 1011 core.int buildCounterDocumentation = 0; |
1010 buildDocumentation() { | 1012 buildDocumentation() { |
1011 var o = new api.Documentation(); | 1013 var o = new api.Documentation(); |
1012 buildCounterDocumentation++; | 1014 buildCounterDocumentation++; |
1013 if (buildCounterDocumentation < 3) { | 1015 if (buildCounterDocumentation < 3) { |
1014 o.documentationRootUrl = "foo"; | 1016 o.documentationRootUrl = "foo"; |
1015 o.overview = "foo"; | 1017 o.overview = "foo"; |
1016 o.pages = buildUnnamed1078(); | 1018 o.pages = buildUnnamed1085(); |
1017 o.rules = buildUnnamed1079(); | 1019 o.rules = buildUnnamed1086(); |
1018 o.summary = "foo"; | 1020 o.summary = "foo"; |
1019 } | 1021 } |
1020 buildCounterDocumentation--; | 1022 buildCounterDocumentation--; |
1021 return o; | 1023 return o; |
1022 } | 1024 } |
1023 | 1025 |
1024 checkDocumentation(api.Documentation o) { | 1026 checkDocumentation(api.Documentation o) { |
1025 buildCounterDocumentation++; | 1027 buildCounterDocumentation++; |
1026 if (buildCounterDocumentation < 3) { | 1028 if (buildCounterDocumentation < 3) { |
1027 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 1029 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
1028 unittest.expect(o.overview, unittest.equals('foo')); | 1030 unittest.expect(o.overview, unittest.equals('foo')); |
1029 checkUnnamed1078(o.pages); | 1031 checkUnnamed1085(o.pages); |
1030 checkUnnamed1079(o.rules); | 1032 checkUnnamed1086(o.rules); |
1031 unittest.expect(o.summary, unittest.equals('foo')); | 1033 unittest.expect(o.summary, unittest.equals('foo')); |
1032 } | 1034 } |
1033 buildCounterDocumentation--; | 1035 buildCounterDocumentation--; |
1034 } | 1036 } |
1035 | 1037 |
1036 core.int buildCounterDocumentationRule = 0; | 1038 core.int buildCounterDocumentationRule = 0; |
1037 buildDocumentationRule() { | 1039 buildDocumentationRule() { |
1038 var o = new api.DocumentationRule(); | 1040 var o = new api.DocumentationRule(); |
1039 buildCounterDocumentationRule++; | 1041 buildCounterDocumentationRule++; |
1040 if (buildCounterDocumentationRule < 3) { | 1042 if (buildCounterDocumentationRule < 3) { |
(...skipping 27 matching lines...) Loading... |
1068 } | 1070 } |
1069 | 1071 |
1070 checkEnableServiceRequest(api.EnableServiceRequest o) { | 1072 checkEnableServiceRequest(api.EnableServiceRequest o) { |
1071 buildCounterEnableServiceRequest++; | 1073 buildCounterEnableServiceRequest++; |
1072 if (buildCounterEnableServiceRequest < 3) { | 1074 if (buildCounterEnableServiceRequest < 3) { |
1073 unittest.expect(o.consumerId, unittest.equals('foo')); | 1075 unittest.expect(o.consumerId, unittest.equals('foo')); |
1074 } | 1076 } |
1075 buildCounterEnableServiceRequest--; | 1077 buildCounterEnableServiceRequest--; |
1076 } | 1078 } |
1077 | 1079 |
1078 buildUnnamed1080() { | 1080 buildUnnamed1087() { |
1079 var o = new core.List<core.String>(); | 1081 var o = new core.List<core.String>(); |
1080 o.add("foo"); | 1082 o.add("foo"); |
1081 o.add("foo"); | 1083 o.add("foo"); |
1082 return o; | 1084 return o; |
1083 } | 1085 } |
1084 | 1086 |
1085 checkUnnamed1080(core.List<core.String> o) { | 1087 checkUnnamed1087(core.List<core.String> o) { |
1086 unittest.expect(o, unittest.hasLength(2)); | 1088 unittest.expect(o, unittest.hasLength(2)); |
1087 unittest.expect(o[0], unittest.equals('foo')); | 1089 unittest.expect(o[0], unittest.equals('foo')); |
1088 unittest.expect(o[1], unittest.equals('foo')); | 1090 unittest.expect(o[1], unittest.equals('foo')); |
1089 } | 1091 } |
1090 | 1092 |
1091 buildUnnamed1081() { | 1093 buildUnnamed1088() { |
1092 var o = new core.List<core.String>(); | 1094 var o = new core.List<core.String>(); |
1093 o.add("foo"); | 1095 o.add("foo"); |
1094 o.add("foo"); | 1096 o.add("foo"); |
1095 return o; | 1097 return o; |
1096 } | 1098 } |
1097 | 1099 |
1098 checkUnnamed1081(core.List<core.String> o) { | 1100 checkUnnamed1088(core.List<core.String> o) { |
1099 unittest.expect(o, unittest.hasLength(2)); | 1101 unittest.expect(o, unittest.hasLength(2)); |
1100 unittest.expect(o[0], unittest.equals('foo')); | 1102 unittest.expect(o[0], unittest.equals('foo')); |
1101 unittest.expect(o[1], unittest.equals('foo')); | 1103 unittest.expect(o[1], unittest.equals('foo')); |
1102 } | 1104 } |
1103 | 1105 |
1104 buildUnnamed1082() { | 1106 buildUnnamed1089() { |
1105 var o = new core.List<core.String>(); | 1107 var o = new core.List<core.String>(); |
1106 o.add("foo"); | 1108 o.add("foo"); |
1107 o.add("foo"); | 1109 o.add("foo"); |
1108 return o; | 1110 return o; |
1109 } | 1111 } |
1110 | 1112 |
1111 checkUnnamed1082(core.List<core.String> o) { | 1113 checkUnnamed1089(core.List<core.String> o) { |
1112 unittest.expect(o, unittest.hasLength(2)); | 1114 unittest.expect(o, unittest.hasLength(2)); |
1113 unittest.expect(o[0], unittest.equals('foo')); | 1115 unittest.expect(o[0], unittest.equals('foo')); |
1114 unittest.expect(o[1], unittest.equals('foo')); | 1116 unittest.expect(o[1], unittest.equals('foo')); |
1115 } | 1117 } |
1116 | 1118 |
1117 core.int buildCounterEndpoint = 0; | 1119 core.int buildCounterEndpoint = 0; |
1118 buildEndpoint() { | 1120 buildEndpoint() { |
1119 var o = new api.Endpoint(); | 1121 var o = new api.Endpoint(); |
1120 buildCounterEndpoint++; | 1122 buildCounterEndpoint++; |
1121 if (buildCounterEndpoint < 3) { | 1123 if (buildCounterEndpoint < 3) { |
1122 o.aliases = buildUnnamed1080(); | 1124 o.aliases = buildUnnamed1087(); |
1123 o.allowCors = true; | 1125 o.allowCors = true; |
1124 o.apis = buildUnnamed1081(); | 1126 o.apis = buildUnnamed1088(); |
1125 o.features = buildUnnamed1082(); | 1127 o.features = buildUnnamed1089(); |
1126 o.name = "foo"; | 1128 o.name = "foo"; |
1127 o.target = "foo"; | 1129 o.target = "foo"; |
1128 } | 1130 } |
1129 buildCounterEndpoint--; | 1131 buildCounterEndpoint--; |
1130 return o; | 1132 return o; |
1131 } | 1133 } |
1132 | 1134 |
1133 checkEndpoint(api.Endpoint o) { | 1135 checkEndpoint(api.Endpoint o) { |
1134 buildCounterEndpoint++; | 1136 buildCounterEndpoint++; |
1135 if (buildCounterEndpoint < 3) { | 1137 if (buildCounterEndpoint < 3) { |
1136 checkUnnamed1080(o.aliases); | 1138 checkUnnamed1087(o.aliases); |
1137 unittest.expect(o.allowCors, unittest.isTrue); | 1139 unittest.expect(o.allowCors, unittest.isTrue); |
1138 checkUnnamed1081(o.apis); | 1140 checkUnnamed1088(o.apis); |
1139 checkUnnamed1082(o.features); | 1141 checkUnnamed1089(o.features); |
1140 unittest.expect(o.name, unittest.equals('foo')); | 1142 unittest.expect(o.name, unittest.equals('foo')); |
1141 unittest.expect(o.target, unittest.equals('foo')); | 1143 unittest.expect(o.target, unittest.equals('foo')); |
1142 } | 1144 } |
1143 buildCounterEndpoint--; | 1145 buildCounterEndpoint--; |
1144 } | 1146 } |
1145 | 1147 |
1146 buildUnnamed1083() { | 1148 buildUnnamed1090() { |
1147 var o = new core.List<api.EnumValue>(); | 1149 var o = new core.List<api.EnumValue>(); |
1148 o.add(buildEnumValue()); | 1150 o.add(buildEnumValue()); |
1149 o.add(buildEnumValue()); | 1151 o.add(buildEnumValue()); |
1150 return o; | 1152 return o; |
1151 } | 1153 } |
1152 | 1154 |
1153 checkUnnamed1083(core.List<api.EnumValue> o) { | 1155 checkUnnamed1090(core.List<api.EnumValue> o) { |
1154 unittest.expect(o, unittest.hasLength(2)); | 1156 unittest.expect(o, unittest.hasLength(2)); |
1155 checkEnumValue(o[0]); | 1157 checkEnumValue(o[0]); |
1156 checkEnumValue(o[1]); | 1158 checkEnumValue(o[1]); |
1157 } | 1159 } |
1158 | 1160 |
1159 buildUnnamed1084() { | 1161 buildUnnamed1091() { |
1160 var o = new core.List<api.Option>(); | 1162 var o = new core.List<api.Option>(); |
1161 o.add(buildOption()); | 1163 o.add(buildOption()); |
1162 o.add(buildOption()); | 1164 o.add(buildOption()); |
1163 return o; | 1165 return o; |
1164 } | 1166 } |
1165 | 1167 |
1166 checkUnnamed1084(core.List<api.Option> o) { | 1168 checkUnnamed1091(core.List<api.Option> o) { |
1167 unittest.expect(o, unittest.hasLength(2)); | 1169 unittest.expect(o, unittest.hasLength(2)); |
1168 checkOption(o[0]); | 1170 checkOption(o[0]); |
1169 checkOption(o[1]); | 1171 checkOption(o[1]); |
1170 } | 1172 } |
1171 | 1173 |
1172 core.int buildCounterEnum = 0; | 1174 core.int buildCounterEnum = 0; |
1173 buildEnum() { | 1175 buildEnum() { |
1174 var o = new api.Enum(); | 1176 var o = new api.Enum(); |
1175 buildCounterEnum++; | 1177 buildCounterEnum++; |
1176 if (buildCounterEnum < 3) { | 1178 if (buildCounterEnum < 3) { |
1177 o.enumvalue = buildUnnamed1083(); | 1179 o.enumvalue = buildUnnamed1090(); |
1178 o.name = "foo"; | 1180 o.name = "foo"; |
1179 o.options = buildUnnamed1084(); | 1181 o.options = buildUnnamed1091(); |
1180 o.sourceContext = buildSourceContext(); | 1182 o.sourceContext = buildSourceContext(); |
1181 o.syntax = "foo"; | 1183 o.syntax = "foo"; |
1182 } | 1184 } |
1183 buildCounterEnum--; | 1185 buildCounterEnum--; |
1184 return o; | 1186 return o; |
1185 } | 1187 } |
1186 | 1188 |
1187 checkEnum(api.Enum o) { | 1189 checkEnum(api.Enum o) { |
1188 buildCounterEnum++; | 1190 buildCounterEnum++; |
1189 if (buildCounterEnum < 3) { | 1191 if (buildCounterEnum < 3) { |
1190 checkUnnamed1083(o.enumvalue); | 1192 checkUnnamed1090(o.enumvalue); |
1191 unittest.expect(o.name, unittest.equals('foo')); | 1193 unittest.expect(o.name, unittest.equals('foo')); |
1192 checkUnnamed1084(o.options); | 1194 checkUnnamed1091(o.options); |
1193 checkSourceContext(o.sourceContext); | 1195 checkSourceContext(o.sourceContext); |
1194 unittest.expect(o.syntax, unittest.equals('foo')); | 1196 unittest.expect(o.syntax, unittest.equals('foo')); |
1195 } | 1197 } |
1196 buildCounterEnum--; | 1198 buildCounterEnum--; |
1197 } | 1199 } |
1198 | 1200 |
1199 buildUnnamed1085() { | 1201 buildUnnamed1092() { |
1200 var o = new core.List<api.Option>(); | 1202 var o = new core.List<api.Option>(); |
1201 o.add(buildOption()); | 1203 o.add(buildOption()); |
1202 o.add(buildOption()); | 1204 o.add(buildOption()); |
1203 return o; | 1205 return o; |
1204 } | 1206 } |
1205 | 1207 |
1206 checkUnnamed1085(core.List<api.Option> o) { | 1208 checkUnnamed1092(core.List<api.Option> o) { |
1207 unittest.expect(o, unittest.hasLength(2)); | 1209 unittest.expect(o, unittest.hasLength(2)); |
1208 checkOption(o[0]); | 1210 checkOption(o[0]); |
1209 checkOption(o[1]); | 1211 checkOption(o[1]); |
1210 } | 1212 } |
1211 | 1213 |
1212 core.int buildCounterEnumValue = 0; | 1214 core.int buildCounterEnumValue = 0; |
1213 buildEnumValue() { | 1215 buildEnumValue() { |
1214 var o = new api.EnumValue(); | 1216 var o = new api.EnumValue(); |
1215 buildCounterEnumValue++; | 1217 buildCounterEnumValue++; |
1216 if (buildCounterEnumValue < 3) { | 1218 if (buildCounterEnumValue < 3) { |
1217 o.name = "foo"; | 1219 o.name = "foo"; |
1218 o.number = 42; | 1220 o.number = 42; |
1219 o.options = buildUnnamed1085(); | 1221 o.options = buildUnnamed1092(); |
1220 } | 1222 } |
1221 buildCounterEnumValue--; | 1223 buildCounterEnumValue--; |
1222 return o; | 1224 return o; |
1223 } | 1225 } |
1224 | 1226 |
1225 checkEnumValue(api.EnumValue o) { | 1227 checkEnumValue(api.EnumValue o) { |
1226 buildCounterEnumValue++; | 1228 buildCounterEnumValue++; |
1227 if (buildCounterEnumValue < 3) { | 1229 if (buildCounterEnumValue < 3) { |
1228 unittest.expect(o.name, unittest.equals('foo')); | 1230 unittest.expect(o.name, unittest.equals('foo')); |
1229 unittest.expect(o.number, unittest.equals(42)); | 1231 unittest.expect(o.number, unittest.equals(42)); |
1230 checkUnnamed1085(o.options); | 1232 checkUnnamed1092(o.options); |
1231 } | 1233 } |
1232 buildCounterEnumValue--; | 1234 buildCounterEnumValue--; |
1233 } | 1235 } |
1234 | 1236 |
1235 core.int buildCounterExperimental = 0; | 1237 core.int buildCounterExperimental = 0; |
1236 buildExperimental() { | 1238 buildExperimental() { |
1237 var o = new api.Experimental(); | 1239 var o = new api.Experimental(); |
1238 buildCounterExperimental++; | 1240 buildCounterExperimental++; |
1239 if (buildCounterExperimental < 3) { | 1241 if (buildCounterExperimental < 3) { |
1240 o.authorization = buildAuthorizationConfig(); | 1242 o.authorization = buildAuthorizationConfig(); |
1241 } | 1243 } |
1242 buildCounterExperimental--; | 1244 buildCounterExperimental--; |
1243 return o; | 1245 return o; |
1244 } | 1246 } |
1245 | 1247 |
1246 checkExperimental(api.Experimental o) { | 1248 checkExperimental(api.Experimental o) { |
1247 buildCounterExperimental++; | 1249 buildCounterExperimental++; |
1248 if (buildCounterExperimental < 3) { | 1250 if (buildCounterExperimental < 3) { |
1249 checkAuthorizationConfig(o.authorization); | 1251 checkAuthorizationConfig(o.authorization); |
1250 } | 1252 } |
1251 buildCounterExperimental--; | 1253 buildCounterExperimental--; |
1252 } | 1254 } |
1253 | 1255 |
1254 buildUnnamed1086() { | 1256 core.int buildCounterExpr = 0; |
| 1257 buildExpr() { |
| 1258 var o = new api.Expr(); |
| 1259 buildCounterExpr++; |
| 1260 if (buildCounterExpr < 3) { |
| 1261 o.description = "foo"; |
| 1262 o.expression = "foo"; |
| 1263 o.location = "foo"; |
| 1264 o.title = "foo"; |
| 1265 } |
| 1266 buildCounterExpr--; |
| 1267 return o; |
| 1268 } |
| 1269 |
| 1270 checkExpr(api.Expr o) { |
| 1271 buildCounterExpr++; |
| 1272 if (buildCounterExpr < 3) { |
| 1273 unittest.expect(o.description, unittest.equals('foo')); |
| 1274 unittest.expect(o.expression, unittest.equals('foo')); |
| 1275 unittest.expect(o.location, unittest.equals('foo')); |
| 1276 unittest.expect(o.title, unittest.equals('foo')); |
| 1277 } |
| 1278 buildCounterExpr--; |
| 1279 } |
| 1280 |
| 1281 buildUnnamed1093() { |
1255 var o = new core.List<api.Option>(); | 1282 var o = new core.List<api.Option>(); |
1256 o.add(buildOption()); | 1283 o.add(buildOption()); |
1257 o.add(buildOption()); | 1284 o.add(buildOption()); |
1258 return o; | 1285 return o; |
1259 } | 1286 } |
1260 | 1287 |
1261 checkUnnamed1086(core.List<api.Option> o) { | 1288 checkUnnamed1093(core.List<api.Option> o) { |
1262 unittest.expect(o, unittest.hasLength(2)); | 1289 unittest.expect(o, unittest.hasLength(2)); |
1263 checkOption(o[0]); | 1290 checkOption(o[0]); |
1264 checkOption(o[1]); | 1291 checkOption(o[1]); |
1265 } | 1292 } |
1266 | 1293 |
1267 core.int buildCounterField = 0; | 1294 core.int buildCounterField = 0; |
1268 buildField() { | 1295 buildField() { |
1269 var o = new api.Field(); | 1296 var o = new api.Field(); |
1270 buildCounterField++; | 1297 buildCounterField++; |
1271 if (buildCounterField < 3) { | 1298 if (buildCounterField < 3) { |
1272 o.cardinality = "foo"; | 1299 o.cardinality = "foo"; |
1273 o.defaultValue = "foo"; | 1300 o.defaultValue = "foo"; |
1274 o.jsonName = "foo"; | 1301 o.jsonName = "foo"; |
1275 o.kind = "foo"; | 1302 o.kind = "foo"; |
1276 o.name = "foo"; | 1303 o.name = "foo"; |
1277 o.number = 42; | 1304 o.number = 42; |
1278 o.oneofIndex = 42; | 1305 o.oneofIndex = 42; |
1279 o.options = buildUnnamed1086(); | 1306 o.options = buildUnnamed1093(); |
1280 o.packed = true; | 1307 o.packed = true; |
1281 o.typeUrl = "foo"; | 1308 o.typeUrl = "foo"; |
1282 } | 1309 } |
1283 buildCounterField--; | 1310 buildCounterField--; |
1284 return o; | 1311 return o; |
1285 } | 1312 } |
1286 | 1313 |
1287 checkField(api.Field o) { | 1314 checkField(api.Field o) { |
1288 buildCounterField++; | 1315 buildCounterField++; |
1289 if (buildCounterField < 3) { | 1316 if (buildCounterField < 3) { |
1290 unittest.expect(o.cardinality, unittest.equals('foo')); | 1317 unittest.expect(o.cardinality, unittest.equals('foo')); |
1291 unittest.expect(o.defaultValue, unittest.equals('foo')); | 1318 unittest.expect(o.defaultValue, unittest.equals('foo')); |
1292 unittest.expect(o.jsonName, unittest.equals('foo')); | 1319 unittest.expect(o.jsonName, unittest.equals('foo')); |
1293 unittest.expect(o.kind, unittest.equals('foo')); | 1320 unittest.expect(o.kind, unittest.equals('foo')); |
1294 unittest.expect(o.name, unittest.equals('foo')); | 1321 unittest.expect(o.name, unittest.equals('foo')); |
1295 unittest.expect(o.number, unittest.equals(42)); | 1322 unittest.expect(o.number, unittest.equals(42)); |
1296 unittest.expect(o.oneofIndex, unittest.equals(42)); | 1323 unittest.expect(o.oneofIndex, unittest.equals(42)); |
1297 checkUnnamed1086(o.options); | 1324 checkUnnamed1093(o.options); |
1298 unittest.expect(o.packed, unittest.isTrue); | 1325 unittest.expect(o.packed, unittest.isTrue); |
1299 unittest.expect(o.typeUrl, unittest.equals('foo')); | 1326 unittest.expect(o.typeUrl, unittest.equals('foo')); |
1300 } | 1327 } |
1301 buildCounterField--; | 1328 buildCounterField--; |
1302 } | 1329 } |
1303 | 1330 |
1304 buildUnnamed1087() { | 1331 buildUnnamed1094() { |
1305 var o = new core.List<core.String>(); | 1332 var o = new core.List<core.String>(); |
1306 o.add("foo"); | 1333 o.add("foo"); |
1307 o.add("foo"); | 1334 o.add("foo"); |
1308 return o; | 1335 return o; |
1309 } | 1336 } |
1310 | 1337 |
1311 checkUnnamed1087(core.List<core.String> o) { | 1338 checkUnnamed1094(core.List<core.String> o) { |
1312 unittest.expect(o, unittest.hasLength(2)); | 1339 unittest.expect(o, unittest.hasLength(2)); |
1313 unittest.expect(o[0], unittest.equals('foo')); | 1340 unittest.expect(o[0], unittest.equals('foo')); |
1314 unittest.expect(o[1], unittest.equals('foo')); | 1341 unittest.expect(o[1], unittest.equals('foo')); |
1315 } | 1342 } |
1316 | 1343 |
1317 core.int buildCounterFlowOperationMetadata = 0; | 1344 core.int buildCounterFlowOperationMetadata = 0; |
1318 buildFlowOperationMetadata() { | 1345 buildFlowOperationMetadata() { |
1319 var o = new api.FlowOperationMetadata(); | 1346 var o = new api.FlowOperationMetadata(); |
1320 buildCounterFlowOperationMetadata++; | 1347 buildCounterFlowOperationMetadata++; |
1321 if (buildCounterFlowOperationMetadata < 3) { | 1348 if (buildCounterFlowOperationMetadata < 3) { |
1322 o.cancelState = "foo"; | 1349 o.cancelState = "foo"; |
1323 o.deadline = "foo"; | 1350 o.deadline = "foo"; |
1324 o.flowName = "foo"; | 1351 o.flowName = "foo"; |
1325 o.resourceNames = buildUnnamed1087(); | 1352 o.resourceNames = buildUnnamed1094(); |
1326 o.startTime = "foo"; | 1353 o.startTime = "foo"; |
1327 } | 1354 } |
1328 buildCounterFlowOperationMetadata--; | 1355 buildCounterFlowOperationMetadata--; |
1329 return o; | 1356 return o; |
1330 } | 1357 } |
1331 | 1358 |
1332 checkFlowOperationMetadata(api.FlowOperationMetadata o) { | 1359 checkFlowOperationMetadata(api.FlowOperationMetadata o) { |
1333 buildCounterFlowOperationMetadata++; | 1360 buildCounterFlowOperationMetadata++; |
1334 if (buildCounterFlowOperationMetadata < 3) { | 1361 if (buildCounterFlowOperationMetadata < 3) { |
1335 unittest.expect(o.cancelState, unittest.equals('foo')); | 1362 unittest.expect(o.cancelState, unittest.equals('foo')); |
1336 unittest.expect(o.deadline, unittest.equals('foo')); | 1363 unittest.expect(o.deadline, unittest.equals('foo')); |
1337 unittest.expect(o.flowName, unittest.equals('foo')); | 1364 unittest.expect(o.flowName, unittest.equals('foo')); |
1338 checkUnnamed1087(o.resourceNames); | 1365 checkUnnamed1094(o.resourceNames); |
1339 unittest.expect(o.startTime, unittest.equals('foo')); | 1366 unittest.expect(o.startTime, unittest.equals('foo')); |
1340 } | 1367 } |
1341 buildCounterFlowOperationMetadata--; | 1368 buildCounterFlowOperationMetadata--; |
1342 } | 1369 } |
1343 | 1370 |
1344 buildUnnamed1088() { | 1371 buildUnnamed1095() { |
1345 var o = new core.Map<core.String, core.Object>(); | 1372 var o = new core.Map<core.String, core.Object>(); |
1346 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1373 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1347 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1374 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1348 return o; | 1375 return o; |
1349 } | 1376 } |
1350 | 1377 |
1351 checkUnnamed1088(core.Map<core.String, core.Object> o) { | 1378 checkUnnamed1095(core.Map<core.String, core.Object> o) { |
1352 unittest.expect(o, unittest.hasLength(2)); | 1379 unittest.expect(o, unittest.hasLength(2)); |
1353 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')); | 1380 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')); |
1354 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')); | 1381 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')); |
1355 } | 1382 } |
1356 | 1383 |
1357 buildUnnamed1089() { | 1384 buildUnnamed1096() { |
1358 var o = new core.Map<core.String, core.Object>(); | 1385 var o = new core.Map<core.String, core.Object>(); |
1359 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1386 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1360 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1387 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1361 return o; | 1388 return o; |
1362 } | 1389 } |
1363 | 1390 |
1364 checkUnnamed1089(core.Map<core.String, core.Object> o) { | 1391 checkUnnamed1096(core.Map<core.String, core.Object> o) { |
1365 unittest.expect(o, unittest.hasLength(2)); | 1392 unittest.expect(o, unittest.hasLength(2)); |
1366 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')); | 1393 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')); |
1367 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')); | 1394 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')); |
1368 } | 1395 } |
1369 | 1396 |
1370 core.int buildCounterGenerateConfigReportRequest = 0; | 1397 core.int buildCounterGenerateConfigReportRequest = 0; |
1371 buildGenerateConfigReportRequest() { | 1398 buildGenerateConfigReportRequest() { |
1372 var o = new api.GenerateConfigReportRequest(); | 1399 var o = new api.GenerateConfigReportRequest(); |
1373 buildCounterGenerateConfigReportRequest++; | 1400 buildCounterGenerateConfigReportRequest++; |
1374 if (buildCounterGenerateConfigReportRequest < 3) { | 1401 if (buildCounterGenerateConfigReportRequest < 3) { |
1375 o.newConfig = buildUnnamed1088(); | 1402 o.newConfig = buildUnnamed1095(); |
1376 o.oldConfig = buildUnnamed1089(); | 1403 o.oldConfig = buildUnnamed1096(); |
1377 } | 1404 } |
1378 buildCounterGenerateConfigReportRequest--; | 1405 buildCounterGenerateConfigReportRequest--; |
1379 return o; | 1406 return o; |
1380 } | 1407 } |
1381 | 1408 |
1382 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { | 1409 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { |
1383 buildCounterGenerateConfigReportRequest++; | 1410 buildCounterGenerateConfigReportRequest++; |
1384 if (buildCounterGenerateConfigReportRequest < 3) { | 1411 if (buildCounterGenerateConfigReportRequest < 3) { |
1385 checkUnnamed1088(o.newConfig); | 1412 checkUnnamed1095(o.newConfig); |
1386 checkUnnamed1089(o.oldConfig); | 1413 checkUnnamed1096(o.oldConfig); |
1387 } | 1414 } |
1388 buildCounterGenerateConfigReportRequest--; | 1415 buildCounterGenerateConfigReportRequest--; |
1389 } | 1416 } |
1390 | 1417 |
1391 buildUnnamed1090() { | 1418 buildUnnamed1097() { |
1392 var o = new core.List<api.ChangeReport>(); | 1419 var o = new core.List<api.ChangeReport>(); |
1393 o.add(buildChangeReport()); | 1420 o.add(buildChangeReport()); |
1394 o.add(buildChangeReport()); | 1421 o.add(buildChangeReport()); |
1395 return o; | 1422 return o; |
1396 } | 1423 } |
1397 | 1424 |
1398 checkUnnamed1090(core.List<api.ChangeReport> o) { | 1425 checkUnnamed1097(core.List<api.ChangeReport> o) { |
1399 unittest.expect(o, unittest.hasLength(2)); | 1426 unittest.expect(o, unittest.hasLength(2)); |
1400 checkChangeReport(o[0]); | 1427 checkChangeReport(o[0]); |
1401 checkChangeReport(o[1]); | 1428 checkChangeReport(o[1]); |
1402 } | 1429 } |
1403 | 1430 |
1404 buildUnnamed1091() { | 1431 buildUnnamed1098() { |
1405 var o = new core.List<api.Diagnostic>(); | 1432 var o = new core.List<api.Diagnostic>(); |
1406 o.add(buildDiagnostic()); | 1433 o.add(buildDiagnostic()); |
1407 o.add(buildDiagnostic()); | 1434 o.add(buildDiagnostic()); |
1408 return o; | 1435 return o; |
1409 } | 1436 } |
1410 | 1437 |
1411 checkUnnamed1091(core.List<api.Diagnostic> o) { | 1438 checkUnnamed1098(core.List<api.Diagnostic> o) { |
1412 unittest.expect(o, unittest.hasLength(2)); | 1439 unittest.expect(o, unittest.hasLength(2)); |
1413 checkDiagnostic(o[0]); | 1440 checkDiagnostic(o[0]); |
1414 checkDiagnostic(o[1]); | 1441 checkDiagnostic(o[1]); |
1415 } | 1442 } |
1416 | 1443 |
1417 core.int buildCounterGenerateConfigReportResponse = 0; | 1444 core.int buildCounterGenerateConfigReportResponse = 0; |
1418 buildGenerateConfigReportResponse() { | 1445 buildGenerateConfigReportResponse() { |
1419 var o = new api.GenerateConfigReportResponse(); | 1446 var o = new api.GenerateConfigReportResponse(); |
1420 buildCounterGenerateConfigReportResponse++; | 1447 buildCounterGenerateConfigReportResponse++; |
1421 if (buildCounterGenerateConfigReportResponse < 3) { | 1448 if (buildCounterGenerateConfigReportResponse < 3) { |
1422 o.changeReports = buildUnnamed1090(); | 1449 o.changeReports = buildUnnamed1097(); |
1423 o.diagnostics = buildUnnamed1091(); | 1450 o.diagnostics = buildUnnamed1098(); |
1424 o.id = "foo"; | 1451 o.id = "foo"; |
1425 o.serviceName = "foo"; | 1452 o.serviceName = "foo"; |
1426 } | 1453 } |
1427 buildCounterGenerateConfigReportResponse--; | 1454 buildCounterGenerateConfigReportResponse--; |
1428 return o; | 1455 return o; |
1429 } | 1456 } |
1430 | 1457 |
1431 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { | 1458 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { |
1432 buildCounterGenerateConfigReportResponse++; | 1459 buildCounterGenerateConfigReportResponse++; |
1433 if (buildCounterGenerateConfigReportResponse < 3) { | 1460 if (buildCounterGenerateConfigReportResponse < 3) { |
1434 checkUnnamed1090(o.changeReports); | 1461 checkUnnamed1097(o.changeReports); |
1435 checkUnnamed1091(o.diagnostics); | 1462 checkUnnamed1098(o.diagnostics); |
1436 unittest.expect(o.id, unittest.equals('foo')); | 1463 unittest.expect(o.id, unittest.equals('foo')); |
1437 unittest.expect(o.serviceName, unittest.equals('foo')); | 1464 unittest.expect(o.serviceName, unittest.equals('foo')); |
1438 } | 1465 } |
1439 buildCounterGenerateConfigReportResponse--; | 1466 buildCounterGenerateConfigReportResponse--; |
1440 } | 1467 } |
1441 | 1468 |
1442 core.int buildCounterGetIamPolicyRequest = 0; | 1469 core.int buildCounterGetIamPolicyRequest = 0; |
1443 buildGetIamPolicyRequest() { | 1470 buildGetIamPolicyRequest() { |
1444 var o = new api.GetIamPolicyRequest(); | 1471 var o = new api.GetIamPolicyRequest(); |
1445 buildCounterGetIamPolicyRequest++; | 1472 buildCounterGetIamPolicyRequest++; |
1446 if (buildCounterGetIamPolicyRequest < 3) { | 1473 if (buildCounterGetIamPolicyRequest < 3) { |
1447 } | 1474 } |
1448 buildCounterGetIamPolicyRequest--; | 1475 buildCounterGetIamPolicyRequest--; |
1449 return o; | 1476 return o; |
1450 } | 1477 } |
1451 | 1478 |
1452 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 1479 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
1453 buildCounterGetIamPolicyRequest++; | 1480 buildCounterGetIamPolicyRequest++; |
1454 if (buildCounterGetIamPolicyRequest < 3) { | 1481 if (buildCounterGetIamPolicyRequest < 3) { |
1455 } | 1482 } |
1456 buildCounterGetIamPolicyRequest--; | 1483 buildCounterGetIamPolicyRequest--; |
1457 } | 1484 } |
1458 | 1485 |
1459 buildUnnamed1092() { | 1486 buildUnnamed1099() { |
1460 var o = new core.List<api.HttpRule>(); | 1487 var o = new core.List<api.HttpRule>(); |
1461 o.add(buildHttpRule()); | 1488 o.add(buildHttpRule()); |
1462 o.add(buildHttpRule()); | 1489 o.add(buildHttpRule()); |
1463 return o; | 1490 return o; |
1464 } | 1491 } |
1465 | 1492 |
1466 checkUnnamed1092(core.List<api.HttpRule> o) { | 1493 checkUnnamed1099(core.List<api.HttpRule> o) { |
1467 unittest.expect(o, unittest.hasLength(2)); | 1494 unittest.expect(o, unittest.hasLength(2)); |
1468 checkHttpRule(o[0]); | 1495 checkHttpRule(o[0]); |
1469 checkHttpRule(o[1]); | 1496 checkHttpRule(o[1]); |
1470 } | 1497 } |
1471 | 1498 |
1472 core.int buildCounterHttp = 0; | 1499 core.int buildCounterHttp = 0; |
1473 buildHttp() { | 1500 buildHttp() { |
1474 var o = new api.Http(); | 1501 var o = new api.Http(); |
1475 buildCounterHttp++; | 1502 buildCounterHttp++; |
1476 if (buildCounterHttp < 3) { | 1503 if (buildCounterHttp < 3) { |
1477 o.fullyDecodeReservedExpansion = true; | 1504 o.fullyDecodeReservedExpansion = true; |
1478 o.rules = buildUnnamed1092(); | 1505 o.rules = buildUnnamed1099(); |
1479 } | 1506 } |
1480 buildCounterHttp--; | 1507 buildCounterHttp--; |
1481 return o; | 1508 return o; |
1482 } | 1509 } |
1483 | 1510 |
1484 checkHttp(api.Http o) { | 1511 checkHttp(api.Http o) { |
1485 buildCounterHttp++; | 1512 buildCounterHttp++; |
1486 if (buildCounterHttp < 3) { | 1513 if (buildCounterHttp < 3) { |
1487 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); | 1514 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); |
1488 checkUnnamed1092(o.rules); | 1515 checkUnnamed1099(o.rules); |
1489 } | 1516 } |
1490 buildCounterHttp--; | 1517 buildCounterHttp--; |
1491 } | 1518 } |
1492 | 1519 |
1493 buildUnnamed1093() { | 1520 buildUnnamed1100() { |
1494 var o = new core.List<api.HttpRule>(); | 1521 var o = new core.List<api.HttpRule>(); |
1495 o.add(buildHttpRule()); | 1522 o.add(buildHttpRule()); |
1496 o.add(buildHttpRule()); | 1523 o.add(buildHttpRule()); |
1497 return o; | 1524 return o; |
1498 } | 1525 } |
1499 | 1526 |
1500 checkUnnamed1093(core.List<api.HttpRule> o) { | 1527 checkUnnamed1100(core.List<api.HttpRule> o) { |
1501 unittest.expect(o, unittest.hasLength(2)); | 1528 unittest.expect(o, unittest.hasLength(2)); |
1502 checkHttpRule(o[0]); | 1529 checkHttpRule(o[0]); |
1503 checkHttpRule(o[1]); | 1530 checkHttpRule(o[1]); |
1504 } | 1531 } |
1505 | 1532 |
1506 core.int buildCounterHttpRule = 0; | 1533 core.int buildCounterHttpRule = 0; |
1507 buildHttpRule() { | 1534 buildHttpRule() { |
1508 var o = new api.HttpRule(); | 1535 var o = new api.HttpRule(); |
1509 buildCounterHttpRule++; | 1536 buildCounterHttpRule++; |
1510 if (buildCounterHttpRule < 3) { | 1537 if (buildCounterHttpRule < 3) { |
1511 o.additionalBindings = buildUnnamed1093(); | 1538 o.additionalBindings = buildUnnamed1100(); |
1512 o.body = "foo"; | 1539 o.body = "foo"; |
1513 o.custom = buildCustomHttpPattern(); | 1540 o.custom = buildCustomHttpPattern(); |
1514 o.delete = "foo"; | 1541 o.delete = "foo"; |
1515 o.get = "foo"; | 1542 o.get = "foo"; |
1516 o.mediaDownload = buildMediaDownload(); | 1543 o.mediaDownload = buildMediaDownload(); |
1517 o.mediaUpload = buildMediaUpload(); | 1544 o.mediaUpload = buildMediaUpload(); |
1518 o.patch = "foo"; | 1545 o.patch = "foo"; |
1519 o.post = "foo"; | 1546 o.post = "foo"; |
1520 o.put = "foo"; | 1547 o.put = "foo"; |
1521 o.responseBody = "foo"; | 1548 o.responseBody = "foo"; |
1522 o.restCollection = "foo"; | 1549 o.restCollection = "foo"; |
| 1550 o.restMethodName = "foo"; |
1523 o.selector = "foo"; | 1551 o.selector = "foo"; |
1524 } | 1552 } |
1525 buildCounterHttpRule--; | 1553 buildCounterHttpRule--; |
1526 return o; | 1554 return o; |
1527 } | 1555 } |
1528 | 1556 |
1529 checkHttpRule(api.HttpRule o) { | 1557 checkHttpRule(api.HttpRule o) { |
1530 buildCounterHttpRule++; | 1558 buildCounterHttpRule++; |
1531 if (buildCounterHttpRule < 3) { | 1559 if (buildCounterHttpRule < 3) { |
1532 checkUnnamed1093(o.additionalBindings); | 1560 checkUnnamed1100(o.additionalBindings); |
1533 unittest.expect(o.body, unittest.equals('foo')); | 1561 unittest.expect(o.body, unittest.equals('foo')); |
1534 checkCustomHttpPattern(o.custom); | 1562 checkCustomHttpPattern(o.custom); |
1535 unittest.expect(o.delete, unittest.equals('foo')); | 1563 unittest.expect(o.delete, unittest.equals('foo')); |
1536 unittest.expect(o.get, unittest.equals('foo')); | 1564 unittest.expect(o.get, unittest.equals('foo')); |
1537 checkMediaDownload(o.mediaDownload); | 1565 checkMediaDownload(o.mediaDownload); |
1538 checkMediaUpload(o.mediaUpload); | 1566 checkMediaUpload(o.mediaUpload); |
1539 unittest.expect(o.patch, unittest.equals('foo')); | 1567 unittest.expect(o.patch, unittest.equals('foo')); |
1540 unittest.expect(o.post, unittest.equals('foo')); | 1568 unittest.expect(o.post, unittest.equals('foo')); |
1541 unittest.expect(o.put, unittest.equals('foo')); | 1569 unittest.expect(o.put, unittest.equals('foo')); |
1542 unittest.expect(o.responseBody, unittest.equals('foo')); | 1570 unittest.expect(o.responseBody, unittest.equals('foo')); |
1543 unittest.expect(o.restCollection, unittest.equals('foo')); | 1571 unittest.expect(o.restCollection, unittest.equals('foo')); |
| 1572 unittest.expect(o.restMethodName, unittest.equals('foo')); |
1544 unittest.expect(o.selector, unittest.equals('foo')); | 1573 unittest.expect(o.selector, unittest.equals('foo')); |
1545 } | 1574 } |
1546 buildCounterHttpRule--; | 1575 buildCounterHttpRule--; |
1547 } | 1576 } |
1548 | 1577 |
1549 core.int buildCounterLabelDescriptor = 0; | 1578 core.int buildCounterLabelDescriptor = 0; |
1550 buildLabelDescriptor() { | 1579 buildLabelDescriptor() { |
1551 var o = new api.LabelDescriptor(); | 1580 var o = new api.LabelDescriptor(); |
1552 buildCounterLabelDescriptor++; | 1581 buildCounterLabelDescriptor++; |
1553 if (buildCounterLabelDescriptor < 3) { | 1582 if (buildCounterLabelDescriptor < 3) { |
1554 o.description = "foo"; | 1583 o.description = "foo"; |
1555 o.key = "foo"; | 1584 o.key = "foo"; |
1556 o.valueType = "foo"; | 1585 o.valueType = "foo"; |
1557 } | 1586 } |
1558 buildCounterLabelDescriptor--; | 1587 buildCounterLabelDescriptor--; |
1559 return o; | 1588 return o; |
1560 } | 1589 } |
1561 | 1590 |
1562 checkLabelDescriptor(api.LabelDescriptor o) { | 1591 checkLabelDescriptor(api.LabelDescriptor o) { |
1563 buildCounterLabelDescriptor++; | 1592 buildCounterLabelDescriptor++; |
1564 if (buildCounterLabelDescriptor < 3) { | 1593 if (buildCounterLabelDescriptor < 3) { |
1565 unittest.expect(o.description, unittest.equals('foo')); | 1594 unittest.expect(o.description, unittest.equals('foo')); |
1566 unittest.expect(o.key, unittest.equals('foo')); | 1595 unittest.expect(o.key, unittest.equals('foo')); |
1567 unittest.expect(o.valueType, unittest.equals('foo')); | 1596 unittest.expect(o.valueType, unittest.equals('foo')); |
1568 } | 1597 } |
1569 buildCounterLabelDescriptor--; | 1598 buildCounterLabelDescriptor--; |
1570 } | 1599 } |
1571 | 1600 |
1572 buildUnnamed1094() { | 1601 buildUnnamed1101() { |
1573 var o = new core.List<api.Operation>(); | 1602 var o = new core.List<api.Operation>(); |
1574 o.add(buildOperation()); | 1603 o.add(buildOperation()); |
1575 o.add(buildOperation()); | 1604 o.add(buildOperation()); |
1576 return o; | 1605 return o; |
1577 } | 1606 } |
1578 | 1607 |
1579 checkUnnamed1094(core.List<api.Operation> o) { | 1608 checkUnnamed1101(core.List<api.Operation> o) { |
1580 unittest.expect(o, unittest.hasLength(2)); | 1609 unittest.expect(o, unittest.hasLength(2)); |
1581 checkOperation(o[0]); | 1610 checkOperation(o[0]); |
1582 checkOperation(o[1]); | 1611 checkOperation(o[1]); |
1583 } | 1612 } |
1584 | 1613 |
1585 core.int buildCounterListOperationsResponse = 0; | 1614 core.int buildCounterListOperationsResponse = 0; |
1586 buildListOperationsResponse() { | 1615 buildListOperationsResponse() { |
1587 var o = new api.ListOperationsResponse(); | 1616 var o = new api.ListOperationsResponse(); |
1588 buildCounterListOperationsResponse++; | 1617 buildCounterListOperationsResponse++; |
1589 if (buildCounterListOperationsResponse < 3) { | 1618 if (buildCounterListOperationsResponse < 3) { |
1590 o.nextPageToken = "foo"; | 1619 o.nextPageToken = "foo"; |
1591 o.operations = buildUnnamed1094(); | 1620 o.operations = buildUnnamed1101(); |
1592 } | 1621 } |
1593 buildCounterListOperationsResponse--; | 1622 buildCounterListOperationsResponse--; |
1594 return o; | 1623 return o; |
1595 } | 1624 } |
1596 | 1625 |
1597 checkListOperationsResponse(api.ListOperationsResponse o) { | 1626 checkListOperationsResponse(api.ListOperationsResponse o) { |
1598 buildCounterListOperationsResponse++; | 1627 buildCounterListOperationsResponse++; |
1599 if (buildCounterListOperationsResponse < 3) { | 1628 if (buildCounterListOperationsResponse < 3) { |
1600 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1629 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1601 checkUnnamed1094(o.operations); | 1630 checkUnnamed1101(o.operations); |
1602 } | 1631 } |
1603 buildCounterListOperationsResponse--; | 1632 buildCounterListOperationsResponse--; |
1604 } | 1633 } |
1605 | 1634 |
1606 buildUnnamed1095() { | 1635 buildUnnamed1102() { |
1607 var o = new core.List<api.Service>(); | 1636 var o = new core.List<api.Service>(); |
1608 o.add(buildService()); | 1637 o.add(buildService()); |
1609 o.add(buildService()); | 1638 o.add(buildService()); |
1610 return o; | 1639 return o; |
1611 } | 1640 } |
1612 | 1641 |
1613 checkUnnamed1095(core.List<api.Service> o) { | 1642 checkUnnamed1102(core.List<api.Service> o) { |
1614 unittest.expect(o, unittest.hasLength(2)); | 1643 unittest.expect(o, unittest.hasLength(2)); |
1615 checkService(o[0]); | 1644 checkService(o[0]); |
1616 checkService(o[1]); | 1645 checkService(o[1]); |
1617 } | 1646 } |
1618 | 1647 |
1619 core.int buildCounterListServiceConfigsResponse = 0; | 1648 core.int buildCounterListServiceConfigsResponse = 0; |
1620 buildListServiceConfigsResponse() { | 1649 buildListServiceConfigsResponse() { |
1621 var o = new api.ListServiceConfigsResponse(); | 1650 var o = new api.ListServiceConfigsResponse(); |
1622 buildCounterListServiceConfigsResponse++; | 1651 buildCounterListServiceConfigsResponse++; |
1623 if (buildCounterListServiceConfigsResponse < 3) { | 1652 if (buildCounterListServiceConfigsResponse < 3) { |
1624 o.nextPageToken = "foo"; | 1653 o.nextPageToken = "foo"; |
1625 o.serviceConfigs = buildUnnamed1095(); | 1654 o.serviceConfigs = buildUnnamed1102(); |
1626 } | 1655 } |
1627 buildCounterListServiceConfigsResponse--; | 1656 buildCounterListServiceConfigsResponse--; |
1628 return o; | 1657 return o; |
1629 } | 1658 } |
1630 | 1659 |
1631 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { | 1660 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { |
1632 buildCounterListServiceConfigsResponse++; | 1661 buildCounterListServiceConfigsResponse++; |
1633 if (buildCounterListServiceConfigsResponse < 3) { | 1662 if (buildCounterListServiceConfigsResponse < 3) { |
1634 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1663 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1635 checkUnnamed1095(o.serviceConfigs); | 1664 checkUnnamed1102(o.serviceConfigs); |
1636 } | 1665 } |
1637 buildCounterListServiceConfigsResponse--; | 1666 buildCounterListServiceConfigsResponse--; |
1638 } | 1667 } |
1639 | 1668 |
1640 buildUnnamed1096() { | 1669 buildUnnamed1103() { |
1641 var o = new core.List<api.Rollout>(); | 1670 var o = new core.List<api.Rollout>(); |
1642 o.add(buildRollout()); | 1671 o.add(buildRollout()); |
1643 o.add(buildRollout()); | 1672 o.add(buildRollout()); |
1644 return o; | 1673 return o; |
1645 } | 1674 } |
1646 | 1675 |
1647 checkUnnamed1096(core.List<api.Rollout> o) { | 1676 checkUnnamed1103(core.List<api.Rollout> o) { |
1648 unittest.expect(o, unittest.hasLength(2)); | 1677 unittest.expect(o, unittest.hasLength(2)); |
1649 checkRollout(o[0]); | 1678 checkRollout(o[0]); |
1650 checkRollout(o[1]); | 1679 checkRollout(o[1]); |
1651 } | 1680 } |
1652 | 1681 |
1653 core.int buildCounterListServiceRolloutsResponse = 0; | 1682 core.int buildCounterListServiceRolloutsResponse = 0; |
1654 buildListServiceRolloutsResponse() { | 1683 buildListServiceRolloutsResponse() { |
1655 var o = new api.ListServiceRolloutsResponse(); | 1684 var o = new api.ListServiceRolloutsResponse(); |
1656 buildCounterListServiceRolloutsResponse++; | 1685 buildCounterListServiceRolloutsResponse++; |
1657 if (buildCounterListServiceRolloutsResponse < 3) { | 1686 if (buildCounterListServiceRolloutsResponse < 3) { |
1658 o.nextPageToken = "foo"; | 1687 o.nextPageToken = "foo"; |
1659 o.rollouts = buildUnnamed1096(); | 1688 o.rollouts = buildUnnamed1103(); |
1660 } | 1689 } |
1661 buildCounterListServiceRolloutsResponse--; | 1690 buildCounterListServiceRolloutsResponse--; |
1662 return o; | 1691 return o; |
1663 } | 1692 } |
1664 | 1693 |
1665 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { | 1694 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { |
1666 buildCounterListServiceRolloutsResponse++; | 1695 buildCounterListServiceRolloutsResponse++; |
1667 if (buildCounterListServiceRolloutsResponse < 3) { | 1696 if (buildCounterListServiceRolloutsResponse < 3) { |
1668 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1697 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1669 checkUnnamed1096(o.rollouts); | 1698 checkUnnamed1103(o.rollouts); |
1670 } | 1699 } |
1671 buildCounterListServiceRolloutsResponse--; | 1700 buildCounterListServiceRolloutsResponse--; |
1672 } | 1701 } |
1673 | 1702 |
1674 buildUnnamed1097() { | 1703 buildUnnamed1104() { |
1675 var o = new core.List<api.ManagedService>(); | 1704 var o = new core.List<api.ManagedService>(); |
1676 o.add(buildManagedService()); | 1705 o.add(buildManagedService()); |
1677 o.add(buildManagedService()); | 1706 o.add(buildManagedService()); |
1678 return o; | 1707 return o; |
1679 } | 1708 } |
1680 | 1709 |
1681 checkUnnamed1097(core.List<api.ManagedService> o) { | 1710 checkUnnamed1104(core.List<api.ManagedService> o) { |
1682 unittest.expect(o, unittest.hasLength(2)); | 1711 unittest.expect(o, unittest.hasLength(2)); |
1683 checkManagedService(o[0]); | 1712 checkManagedService(o[0]); |
1684 checkManagedService(o[1]); | 1713 checkManagedService(o[1]); |
1685 } | 1714 } |
1686 | 1715 |
1687 core.int buildCounterListServicesResponse = 0; | 1716 core.int buildCounterListServicesResponse = 0; |
1688 buildListServicesResponse() { | 1717 buildListServicesResponse() { |
1689 var o = new api.ListServicesResponse(); | 1718 var o = new api.ListServicesResponse(); |
1690 buildCounterListServicesResponse++; | 1719 buildCounterListServicesResponse++; |
1691 if (buildCounterListServicesResponse < 3) { | 1720 if (buildCounterListServicesResponse < 3) { |
1692 o.nextPageToken = "foo"; | 1721 o.nextPageToken = "foo"; |
1693 o.services = buildUnnamed1097(); | 1722 o.services = buildUnnamed1104(); |
1694 } | 1723 } |
1695 buildCounterListServicesResponse--; | 1724 buildCounterListServicesResponse--; |
1696 return o; | 1725 return o; |
1697 } | 1726 } |
1698 | 1727 |
1699 checkListServicesResponse(api.ListServicesResponse o) { | 1728 checkListServicesResponse(api.ListServicesResponse o) { |
1700 buildCounterListServicesResponse++; | 1729 buildCounterListServicesResponse++; |
1701 if (buildCounterListServicesResponse < 3) { | 1730 if (buildCounterListServicesResponse < 3) { |
1702 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1731 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1703 checkUnnamed1097(o.services); | 1732 checkUnnamed1104(o.services); |
1704 } | 1733 } |
1705 buildCounterListServicesResponse--; | 1734 buildCounterListServicesResponse--; |
1706 } | 1735 } |
1707 | 1736 |
1708 core.int buildCounterLogConfig = 0; | 1737 core.int buildCounterLogConfig = 0; |
1709 buildLogConfig() { | 1738 buildLogConfig() { |
1710 var o = new api.LogConfig(); | 1739 var o = new api.LogConfig(); |
1711 buildCounterLogConfig++; | 1740 buildCounterLogConfig++; |
1712 if (buildCounterLogConfig < 3) { | 1741 if (buildCounterLogConfig < 3) { |
1713 o.cloudAudit = buildCloudAuditOptions(); | 1742 o.cloudAudit = buildCloudAuditOptions(); |
1714 o.counter = buildCounterOptions(); | 1743 o.counter = buildCounterOptions(); |
1715 o.dataAccess = buildDataAccessOptions(); | 1744 o.dataAccess = buildDataAccessOptions(); |
1716 } | 1745 } |
1717 buildCounterLogConfig--; | 1746 buildCounterLogConfig--; |
1718 return o; | 1747 return o; |
1719 } | 1748 } |
1720 | 1749 |
1721 checkLogConfig(api.LogConfig o) { | 1750 checkLogConfig(api.LogConfig o) { |
1722 buildCounterLogConfig++; | 1751 buildCounterLogConfig++; |
1723 if (buildCounterLogConfig < 3) { | 1752 if (buildCounterLogConfig < 3) { |
1724 checkCloudAuditOptions(o.cloudAudit); | 1753 checkCloudAuditOptions(o.cloudAudit); |
1725 checkCounterOptions(o.counter); | 1754 checkCounterOptions(o.counter); |
1726 checkDataAccessOptions(o.dataAccess); | 1755 checkDataAccessOptions(o.dataAccess); |
1727 } | 1756 } |
1728 buildCounterLogConfig--; | 1757 buildCounterLogConfig--; |
1729 } | 1758 } |
1730 | 1759 |
1731 buildUnnamed1098() { | 1760 buildUnnamed1105() { |
1732 var o = new core.List<api.LabelDescriptor>(); | 1761 var o = new core.List<api.LabelDescriptor>(); |
1733 o.add(buildLabelDescriptor()); | 1762 o.add(buildLabelDescriptor()); |
1734 o.add(buildLabelDescriptor()); | 1763 o.add(buildLabelDescriptor()); |
1735 return o; | 1764 return o; |
1736 } | 1765 } |
1737 | 1766 |
1738 checkUnnamed1098(core.List<api.LabelDescriptor> o) { | 1767 checkUnnamed1105(core.List<api.LabelDescriptor> o) { |
1739 unittest.expect(o, unittest.hasLength(2)); | 1768 unittest.expect(o, unittest.hasLength(2)); |
1740 checkLabelDescriptor(o[0]); | 1769 checkLabelDescriptor(o[0]); |
1741 checkLabelDescriptor(o[1]); | 1770 checkLabelDescriptor(o[1]); |
1742 } | 1771 } |
1743 | 1772 |
1744 core.int buildCounterLogDescriptor = 0; | 1773 core.int buildCounterLogDescriptor = 0; |
1745 buildLogDescriptor() { | 1774 buildLogDescriptor() { |
1746 var o = new api.LogDescriptor(); | 1775 var o = new api.LogDescriptor(); |
1747 buildCounterLogDescriptor++; | 1776 buildCounterLogDescriptor++; |
1748 if (buildCounterLogDescriptor < 3) { | 1777 if (buildCounterLogDescriptor < 3) { |
1749 o.description = "foo"; | 1778 o.description = "foo"; |
1750 o.displayName = "foo"; | 1779 o.displayName = "foo"; |
1751 o.labels = buildUnnamed1098(); | 1780 o.labels = buildUnnamed1105(); |
1752 o.name = "foo"; | 1781 o.name = "foo"; |
1753 } | 1782 } |
1754 buildCounterLogDescriptor--; | 1783 buildCounterLogDescriptor--; |
1755 return o; | 1784 return o; |
1756 } | 1785 } |
1757 | 1786 |
1758 checkLogDescriptor(api.LogDescriptor o) { | 1787 checkLogDescriptor(api.LogDescriptor o) { |
1759 buildCounterLogDescriptor++; | 1788 buildCounterLogDescriptor++; |
1760 if (buildCounterLogDescriptor < 3) { | 1789 if (buildCounterLogDescriptor < 3) { |
1761 unittest.expect(o.description, unittest.equals('foo')); | 1790 unittest.expect(o.description, unittest.equals('foo')); |
1762 unittest.expect(o.displayName, unittest.equals('foo')); | 1791 unittest.expect(o.displayName, unittest.equals('foo')); |
1763 checkUnnamed1098(o.labels); | 1792 checkUnnamed1105(o.labels); |
1764 unittest.expect(o.name, unittest.equals('foo')); | 1793 unittest.expect(o.name, unittest.equals('foo')); |
1765 } | 1794 } |
1766 buildCounterLogDescriptor--; | 1795 buildCounterLogDescriptor--; |
1767 } | 1796 } |
1768 | 1797 |
1769 buildUnnamed1099() { | 1798 buildUnnamed1106() { |
1770 var o = new core.List<api.LoggingDestination>(); | 1799 var o = new core.List<api.LoggingDestination>(); |
1771 o.add(buildLoggingDestination()); | 1800 o.add(buildLoggingDestination()); |
1772 o.add(buildLoggingDestination()); | 1801 o.add(buildLoggingDestination()); |
1773 return o; | 1802 return o; |
1774 } | 1803 } |
1775 | 1804 |
1776 checkUnnamed1099(core.List<api.LoggingDestination> o) { | 1805 checkUnnamed1106(core.List<api.LoggingDestination> o) { |
1777 unittest.expect(o, unittest.hasLength(2)); | 1806 unittest.expect(o, unittest.hasLength(2)); |
1778 checkLoggingDestination(o[0]); | 1807 checkLoggingDestination(o[0]); |
1779 checkLoggingDestination(o[1]); | 1808 checkLoggingDestination(o[1]); |
1780 } | 1809 } |
1781 | 1810 |
1782 buildUnnamed1100() { | 1811 buildUnnamed1107() { |
1783 var o = new core.List<api.LoggingDestination>(); | 1812 var o = new core.List<api.LoggingDestination>(); |
1784 o.add(buildLoggingDestination()); | 1813 o.add(buildLoggingDestination()); |
1785 o.add(buildLoggingDestination()); | 1814 o.add(buildLoggingDestination()); |
1786 return o; | 1815 return o; |
1787 } | 1816 } |
1788 | 1817 |
1789 checkUnnamed1100(core.List<api.LoggingDestination> o) { | 1818 checkUnnamed1107(core.List<api.LoggingDestination> o) { |
1790 unittest.expect(o, unittest.hasLength(2)); | 1819 unittest.expect(o, unittest.hasLength(2)); |
1791 checkLoggingDestination(o[0]); | 1820 checkLoggingDestination(o[0]); |
1792 checkLoggingDestination(o[1]); | 1821 checkLoggingDestination(o[1]); |
1793 } | 1822 } |
1794 | 1823 |
1795 core.int buildCounterLogging = 0; | 1824 core.int buildCounterLogging = 0; |
1796 buildLogging() { | 1825 buildLogging() { |
1797 var o = new api.Logging(); | 1826 var o = new api.Logging(); |
1798 buildCounterLogging++; | 1827 buildCounterLogging++; |
1799 if (buildCounterLogging < 3) { | 1828 if (buildCounterLogging < 3) { |
1800 o.consumerDestinations = buildUnnamed1099(); | 1829 o.consumerDestinations = buildUnnamed1106(); |
1801 o.producerDestinations = buildUnnamed1100(); | 1830 o.producerDestinations = buildUnnamed1107(); |
1802 } | 1831 } |
1803 buildCounterLogging--; | 1832 buildCounterLogging--; |
1804 return o; | 1833 return o; |
1805 } | 1834 } |
1806 | 1835 |
1807 checkLogging(api.Logging o) { | 1836 checkLogging(api.Logging o) { |
1808 buildCounterLogging++; | 1837 buildCounterLogging++; |
1809 if (buildCounterLogging < 3) { | 1838 if (buildCounterLogging < 3) { |
1810 checkUnnamed1099(o.consumerDestinations); | 1839 checkUnnamed1106(o.consumerDestinations); |
1811 checkUnnamed1100(o.producerDestinations); | 1840 checkUnnamed1107(o.producerDestinations); |
1812 } | 1841 } |
1813 buildCounterLogging--; | 1842 buildCounterLogging--; |
1814 } | 1843 } |
1815 | 1844 |
1816 buildUnnamed1101() { | 1845 buildUnnamed1108() { |
1817 var o = new core.List<core.String>(); | 1846 var o = new core.List<core.String>(); |
1818 o.add("foo"); | 1847 o.add("foo"); |
1819 o.add("foo"); | 1848 o.add("foo"); |
1820 return o; | 1849 return o; |
1821 } | 1850 } |
1822 | 1851 |
1823 checkUnnamed1101(core.List<core.String> o) { | 1852 checkUnnamed1108(core.List<core.String> o) { |
1824 unittest.expect(o, unittest.hasLength(2)); | 1853 unittest.expect(o, unittest.hasLength(2)); |
1825 unittest.expect(o[0], unittest.equals('foo')); | 1854 unittest.expect(o[0], unittest.equals('foo')); |
1826 unittest.expect(o[1], unittest.equals('foo')); | 1855 unittest.expect(o[1], unittest.equals('foo')); |
1827 } | 1856 } |
1828 | 1857 |
1829 core.int buildCounterLoggingDestination = 0; | 1858 core.int buildCounterLoggingDestination = 0; |
1830 buildLoggingDestination() { | 1859 buildLoggingDestination() { |
1831 var o = new api.LoggingDestination(); | 1860 var o = new api.LoggingDestination(); |
1832 buildCounterLoggingDestination++; | 1861 buildCounterLoggingDestination++; |
1833 if (buildCounterLoggingDestination < 3) { | 1862 if (buildCounterLoggingDestination < 3) { |
1834 o.logs = buildUnnamed1101(); | 1863 o.logs = buildUnnamed1108(); |
1835 o.monitoredResource = "foo"; | 1864 o.monitoredResource = "foo"; |
1836 } | 1865 } |
1837 buildCounterLoggingDestination--; | 1866 buildCounterLoggingDestination--; |
1838 return o; | 1867 return o; |
1839 } | 1868 } |
1840 | 1869 |
1841 checkLoggingDestination(api.LoggingDestination o) { | 1870 checkLoggingDestination(api.LoggingDestination o) { |
1842 buildCounterLoggingDestination++; | 1871 buildCounterLoggingDestination++; |
1843 if (buildCounterLoggingDestination < 3) { | 1872 if (buildCounterLoggingDestination < 3) { |
1844 checkUnnamed1101(o.logs); | 1873 checkUnnamed1108(o.logs); |
1845 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1874 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1846 } | 1875 } |
1847 buildCounterLoggingDestination--; | 1876 buildCounterLoggingDestination--; |
1848 } | 1877 } |
1849 | 1878 |
1850 core.int buildCounterManagedService = 0; | 1879 core.int buildCounterManagedService = 0; |
1851 buildManagedService() { | 1880 buildManagedService() { |
1852 var o = new api.ManagedService(); | 1881 var o = new api.ManagedService(); |
1853 buildCounterManagedService++; | 1882 buildCounterManagedService++; |
1854 if (buildCounterManagedService < 3) { | 1883 if (buildCounterManagedService < 3) { |
(...skipping 35 matching lines...) Loading... |
1890 unittest.expect(o.completeNotification, unittest.isTrue); | 1919 unittest.expect(o.completeNotification, unittest.isTrue); |
1891 unittest.expect(o.downloadService, unittest.equals('foo')); | 1920 unittest.expect(o.downloadService, unittest.equals('foo')); |
1892 unittest.expect(o.dropzone, unittest.equals('foo')); | 1921 unittest.expect(o.dropzone, unittest.equals('foo')); |
1893 unittest.expect(o.enabled, unittest.isTrue); | 1922 unittest.expect(o.enabled, unittest.isTrue); |
1894 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); | 1923 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); |
1895 unittest.expect(o.useDirectDownload, unittest.isTrue); | 1924 unittest.expect(o.useDirectDownload, unittest.isTrue); |
1896 } | 1925 } |
1897 buildCounterMediaDownload--; | 1926 buildCounterMediaDownload--; |
1898 } | 1927 } |
1899 | 1928 |
1900 buildUnnamed1102() { | 1929 buildUnnamed1109() { |
1901 var o = new core.List<core.String>(); | 1930 var o = new core.List<core.String>(); |
1902 o.add("foo"); | 1931 o.add("foo"); |
1903 o.add("foo"); | 1932 o.add("foo"); |
1904 return o; | 1933 return o; |
1905 } | 1934 } |
1906 | 1935 |
1907 checkUnnamed1102(core.List<core.String> o) { | 1936 checkUnnamed1109(core.List<core.String> o) { |
1908 unittest.expect(o, unittest.hasLength(2)); | 1937 unittest.expect(o, unittest.hasLength(2)); |
1909 unittest.expect(o[0], unittest.equals('foo')); | 1938 unittest.expect(o[0], unittest.equals('foo')); |
1910 unittest.expect(o[1], unittest.equals('foo')); | 1939 unittest.expect(o[1], unittest.equals('foo')); |
1911 } | 1940 } |
1912 | 1941 |
1913 core.int buildCounterMediaUpload = 0; | 1942 core.int buildCounterMediaUpload = 0; |
1914 buildMediaUpload() { | 1943 buildMediaUpload() { |
1915 var o = new api.MediaUpload(); | 1944 var o = new api.MediaUpload(); |
1916 buildCounterMediaUpload++; | 1945 buildCounterMediaUpload++; |
1917 if (buildCounterMediaUpload < 3) { | 1946 if (buildCounterMediaUpload < 3) { |
1918 o.completeNotification = true; | 1947 o.completeNotification = true; |
1919 o.dropzone = "foo"; | 1948 o.dropzone = "foo"; |
1920 o.enabled = true; | 1949 o.enabled = true; |
1921 o.maxSize = "foo"; | 1950 o.maxSize = "foo"; |
1922 o.mimeTypes = buildUnnamed1102(); | 1951 o.mimeTypes = buildUnnamed1109(); |
1923 o.progressNotification = true; | 1952 o.progressNotification = true; |
1924 o.startNotification = true; | 1953 o.startNotification = true; |
1925 o.uploadService = "foo"; | 1954 o.uploadService = "foo"; |
1926 } | 1955 } |
1927 buildCounterMediaUpload--; | 1956 buildCounterMediaUpload--; |
1928 return o; | 1957 return o; |
1929 } | 1958 } |
1930 | 1959 |
1931 checkMediaUpload(api.MediaUpload o) { | 1960 checkMediaUpload(api.MediaUpload o) { |
1932 buildCounterMediaUpload++; | 1961 buildCounterMediaUpload++; |
1933 if (buildCounterMediaUpload < 3) { | 1962 if (buildCounterMediaUpload < 3) { |
1934 unittest.expect(o.completeNotification, unittest.isTrue); | 1963 unittest.expect(o.completeNotification, unittest.isTrue); |
1935 unittest.expect(o.dropzone, unittest.equals('foo')); | 1964 unittest.expect(o.dropzone, unittest.equals('foo')); |
1936 unittest.expect(o.enabled, unittest.isTrue); | 1965 unittest.expect(o.enabled, unittest.isTrue); |
1937 unittest.expect(o.maxSize, unittest.equals('foo')); | 1966 unittest.expect(o.maxSize, unittest.equals('foo')); |
1938 checkUnnamed1102(o.mimeTypes); | 1967 checkUnnamed1109(o.mimeTypes); |
1939 unittest.expect(o.progressNotification, unittest.isTrue); | 1968 unittest.expect(o.progressNotification, unittest.isTrue); |
1940 unittest.expect(o.startNotification, unittest.isTrue); | 1969 unittest.expect(o.startNotification, unittest.isTrue); |
1941 unittest.expect(o.uploadService, unittest.equals('foo')); | 1970 unittest.expect(o.uploadService, unittest.equals('foo')); |
1942 } | 1971 } |
1943 buildCounterMediaUpload--; | 1972 buildCounterMediaUpload--; |
1944 } | 1973 } |
1945 | 1974 |
1946 buildUnnamed1103() { | 1975 buildUnnamed1110() { |
1947 var o = new core.List<api.Option>(); | 1976 var o = new core.List<api.Option>(); |
1948 o.add(buildOption()); | 1977 o.add(buildOption()); |
1949 o.add(buildOption()); | 1978 o.add(buildOption()); |
1950 return o; | 1979 return o; |
1951 } | 1980 } |
1952 | 1981 |
1953 checkUnnamed1103(core.List<api.Option> o) { | 1982 checkUnnamed1110(core.List<api.Option> o) { |
1954 unittest.expect(o, unittest.hasLength(2)); | 1983 unittest.expect(o, unittest.hasLength(2)); |
1955 checkOption(o[0]); | 1984 checkOption(o[0]); |
1956 checkOption(o[1]); | 1985 checkOption(o[1]); |
1957 } | 1986 } |
1958 | 1987 |
1959 core.int buildCounterMethod = 0; | 1988 core.int buildCounterMethod = 0; |
1960 buildMethod() { | 1989 buildMethod() { |
1961 var o = new api.Method(); | 1990 var o = new api.Method(); |
1962 buildCounterMethod++; | 1991 buildCounterMethod++; |
1963 if (buildCounterMethod < 3) { | 1992 if (buildCounterMethod < 3) { |
1964 o.name = "foo"; | 1993 o.name = "foo"; |
1965 o.options = buildUnnamed1103(); | 1994 o.options = buildUnnamed1110(); |
1966 o.requestStreaming = true; | 1995 o.requestStreaming = true; |
1967 o.requestTypeUrl = "foo"; | 1996 o.requestTypeUrl = "foo"; |
1968 o.responseStreaming = true; | 1997 o.responseStreaming = true; |
1969 o.responseTypeUrl = "foo"; | 1998 o.responseTypeUrl = "foo"; |
1970 o.syntax = "foo"; | 1999 o.syntax = "foo"; |
1971 } | 2000 } |
1972 buildCounterMethod--; | 2001 buildCounterMethod--; |
1973 return o; | 2002 return o; |
1974 } | 2003 } |
1975 | 2004 |
1976 checkMethod(api.Method o) { | 2005 checkMethod(api.Method o) { |
1977 buildCounterMethod++; | 2006 buildCounterMethod++; |
1978 if (buildCounterMethod < 3) { | 2007 if (buildCounterMethod < 3) { |
1979 unittest.expect(o.name, unittest.equals('foo')); | 2008 unittest.expect(o.name, unittest.equals('foo')); |
1980 checkUnnamed1103(o.options); | 2009 checkUnnamed1110(o.options); |
1981 unittest.expect(o.requestStreaming, unittest.isTrue); | 2010 unittest.expect(o.requestStreaming, unittest.isTrue); |
1982 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 2011 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
1983 unittest.expect(o.responseStreaming, unittest.isTrue); | 2012 unittest.expect(o.responseStreaming, unittest.isTrue); |
1984 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 2013 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
1985 unittest.expect(o.syntax, unittest.equals('foo')); | 2014 unittest.expect(o.syntax, unittest.equals('foo')); |
1986 } | 2015 } |
1987 buildCounterMethod--; | 2016 buildCounterMethod--; |
1988 } | 2017 } |
1989 | 2018 |
1990 buildUnnamed1104() { | 2019 buildUnnamed1111() { |
1991 var o = new core.List<api.LabelDescriptor>(); | 2020 var o = new core.List<api.LabelDescriptor>(); |
1992 o.add(buildLabelDescriptor()); | 2021 o.add(buildLabelDescriptor()); |
1993 o.add(buildLabelDescriptor()); | 2022 o.add(buildLabelDescriptor()); |
1994 return o; | 2023 return o; |
1995 } | 2024 } |
1996 | 2025 |
1997 checkUnnamed1104(core.List<api.LabelDescriptor> o) { | 2026 checkUnnamed1111(core.List<api.LabelDescriptor> o) { |
1998 unittest.expect(o, unittest.hasLength(2)); | 2027 unittest.expect(o, unittest.hasLength(2)); |
1999 checkLabelDescriptor(o[0]); | 2028 checkLabelDescriptor(o[0]); |
2000 checkLabelDescriptor(o[1]); | 2029 checkLabelDescriptor(o[1]); |
2001 } | 2030 } |
2002 | 2031 |
2003 core.int buildCounterMetricDescriptor = 0; | 2032 core.int buildCounterMetricDescriptor = 0; |
2004 buildMetricDescriptor() { | 2033 buildMetricDescriptor() { |
2005 var o = new api.MetricDescriptor(); | 2034 var o = new api.MetricDescriptor(); |
2006 buildCounterMetricDescriptor++; | 2035 buildCounterMetricDescriptor++; |
2007 if (buildCounterMetricDescriptor < 3) { | 2036 if (buildCounterMetricDescriptor < 3) { |
2008 o.description = "foo"; | 2037 o.description = "foo"; |
2009 o.displayName = "foo"; | 2038 o.displayName = "foo"; |
2010 o.labels = buildUnnamed1104(); | 2039 o.labels = buildUnnamed1111(); |
2011 o.metricKind = "foo"; | 2040 o.metricKind = "foo"; |
2012 o.name = "foo"; | 2041 o.name = "foo"; |
2013 o.type = "foo"; | 2042 o.type = "foo"; |
2014 o.unit = "foo"; | 2043 o.unit = "foo"; |
2015 o.valueType = "foo"; | 2044 o.valueType = "foo"; |
2016 } | 2045 } |
2017 buildCounterMetricDescriptor--; | 2046 buildCounterMetricDescriptor--; |
2018 return o; | 2047 return o; |
2019 } | 2048 } |
2020 | 2049 |
2021 checkMetricDescriptor(api.MetricDescriptor o) { | 2050 checkMetricDescriptor(api.MetricDescriptor o) { |
2022 buildCounterMetricDescriptor++; | 2051 buildCounterMetricDescriptor++; |
2023 if (buildCounterMetricDescriptor < 3) { | 2052 if (buildCounterMetricDescriptor < 3) { |
2024 unittest.expect(o.description, unittest.equals('foo')); | 2053 unittest.expect(o.description, unittest.equals('foo')); |
2025 unittest.expect(o.displayName, unittest.equals('foo')); | 2054 unittest.expect(o.displayName, unittest.equals('foo')); |
2026 checkUnnamed1104(o.labels); | 2055 checkUnnamed1111(o.labels); |
2027 unittest.expect(o.metricKind, unittest.equals('foo')); | 2056 unittest.expect(o.metricKind, unittest.equals('foo')); |
2028 unittest.expect(o.name, unittest.equals('foo')); | 2057 unittest.expect(o.name, unittest.equals('foo')); |
2029 unittest.expect(o.type, unittest.equals('foo')); | 2058 unittest.expect(o.type, unittest.equals('foo')); |
2030 unittest.expect(o.unit, unittest.equals('foo')); | 2059 unittest.expect(o.unit, unittest.equals('foo')); |
2031 unittest.expect(o.valueType, unittest.equals('foo')); | 2060 unittest.expect(o.valueType, unittest.equals('foo')); |
2032 } | 2061 } |
2033 buildCounterMetricDescriptor--; | 2062 buildCounterMetricDescriptor--; |
2034 } | 2063 } |
2035 | 2064 |
2036 buildUnnamed1105() { | 2065 buildUnnamed1112() { |
2037 var o = new core.Map<core.String, core.String>(); | 2066 var o = new core.Map<core.String, core.String>(); |
2038 o["x"] = "foo"; | 2067 o["x"] = "foo"; |
2039 o["y"] = "foo"; | 2068 o["y"] = "foo"; |
2040 return o; | 2069 return o; |
2041 } | 2070 } |
2042 | 2071 |
2043 checkUnnamed1105(core.Map<core.String, core.String> o) { | 2072 checkUnnamed1112(core.Map<core.String, core.String> o) { |
2044 unittest.expect(o, unittest.hasLength(2)); | 2073 unittest.expect(o, unittest.hasLength(2)); |
2045 unittest.expect(o["x"], unittest.equals('foo')); | 2074 unittest.expect(o["x"], unittest.equals('foo')); |
2046 unittest.expect(o["y"], unittest.equals('foo')); | 2075 unittest.expect(o["y"], unittest.equals('foo')); |
2047 } | 2076 } |
2048 | 2077 |
2049 core.int buildCounterMetricRule = 0; | 2078 core.int buildCounterMetricRule = 0; |
2050 buildMetricRule() { | 2079 buildMetricRule() { |
2051 var o = new api.MetricRule(); | 2080 var o = new api.MetricRule(); |
2052 buildCounterMetricRule++; | 2081 buildCounterMetricRule++; |
2053 if (buildCounterMetricRule < 3) { | 2082 if (buildCounterMetricRule < 3) { |
2054 o.metricCosts = buildUnnamed1105(); | 2083 o.metricCosts = buildUnnamed1112(); |
2055 o.selector = "foo"; | 2084 o.selector = "foo"; |
2056 } | 2085 } |
2057 buildCounterMetricRule--; | 2086 buildCounterMetricRule--; |
2058 return o; | 2087 return o; |
2059 } | 2088 } |
2060 | 2089 |
2061 checkMetricRule(api.MetricRule o) { | 2090 checkMetricRule(api.MetricRule o) { |
2062 buildCounterMetricRule++; | 2091 buildCounterMetricRule++; |
2063 if (buildCounterMetricRule < 3) { | 2092 if (buildCounterMetricRule < 3) { |
2064 checkUnnamed1105(o.metricCosts); | 2093 checkUnnamed1112(o.metricCosts); |
2065 unittest.expect(o.selector, unittest.equals('foo')); | 2094 unittest.expect(o.selector, unittest.equals('foo')); |
2066 } | 2095 } |
2067 buildCounterMetricRule--; | 2096 buildCounterMetricRule--; |
2068 } | 2097 } |
2069 | 2098 |
2070 core.int buildCounterMixin = 0; | 2099 core.int buildCounterMixin = 0; |
2071 buildMixin() { | 2100 buildMixin() { |
2072 var o = new api.Mixin(); | 2101 var o = new api.Mixin(); |
2073 buildCounterMixin++; | 2102 buildCounterMixin++; |
2074 if (buildCounterMixin < 3) { | 2103 if (buildCounterMixin < 3) { |
2075 o.name = "foo"; | 2104 o.name = "foo"; |
2076 o.root = "foo"; | 2105 o.root = "foo"; |
2077 } | 2106 } |
2078 buildCounterMixin--; | 2107 buildCounterMixin--; |
2079 return o; | 2108 return o; |
2080 } | 2109 } |
2081 | 2110 |
2082 checkMixin(api.Mixin o) { | 2111 checkMixin(api.Mixin o) { |
2083 buildCounterMixin++; | 2112 buildCounterMixin++; |
2084 if (buildCounterMixin < 3) { | 2113 if (buildCounterMixin < 3) { |
2085 unittest.expect(o.name, unittest.equals('foo')); | 2114 unittest.expect(o.name, unittest.equals('foo')); |
2086 unittest.expect(o.root, unittest.equals('foo')); | 2115 unittest.expect(o.root, unittest.equals('foo')); |
2087 } | 2116 } |
2088 buildCounterMixin--; | 2117 buildCounterMixin--; |
2089 } | 2118 } |
2090 | 2119 |
2091 buildUnnamed1106() { | 2120 buildUnnamed1113() { |
2092 var o = new core.List<api.LabelDescriptor>(); | 2121 var o = new core.List<api.LabelDescriptor>(); |
2093 o.add(buildLabelDescriptor()); | 2122 o.add(buildLabelDescriptor()); |
2094 o.add(buildLabelDescriptor()); | 2123 o.add(buildLabelDescriptor()); |
2095 return o; | 2124 return o; |
2096 } | 2125 } |
2097 | 2126 |
2098 checkUnnamed1106(core.List<api.LabelDescriptor> o) { | 2127 checkUnnamed1113(core.List<api.LabelDescriptor> o) { |
2099 unittest.expect(o, unittest.hasLength(2)); | 2128 unittest.expect(o, unittest.hasLength(2)); |
2100 checkLabelDescriptor(o[0]); | 2129 checkLabelDescriptor(o[0]); |
2101 checkLabelDescriptor(o[1]); | 2130 checkLabelDescriptor(o[1]); |
2102 } | 2131 } |
2103 | 2132 |
2104 core.int buildCounterMonitoredResourceDescriptor = 0; | 2133 core.int buildCounterMonitoredResourceDescriptor = 0; |
2105 buildMonitoredResourceDescriptor() { | 2134 buildMonitoredResourceDescriptor() { |
2106 var o = new api.MonitoredResourceDescriptor(); | 2135 var o = new api.MonitoredResourceDescriptor(); |
2107 buildCounterMonitoredResourceDescriptor++; | 2136 buildCounterMonitoredResourceDescriptor++; |
2108 if (buildCounterMonitoredResourceDescriptor < 3) { | 2137 if (buildCounterMonitoredResourceDescriptor < 3) { |
2109 o.description = "foo"; | 2138 o.description = "foo"; |
2110 o.displayName = "foo"; | 2139 o.displayName = "foo"; |
2111 o.labels = buildUnnamed1106(); | 2140 o.labels = buildUnnamed1113(); |
2112 o.name = "foo"; | 2141 o.name = "foo"; |
2113 o.type = "foo"; | 2142 o.type = "foo"; |
2114 } | 2143 } |
2115 buildCounterMonitoredResourceDescriptor--; | 2144 buildCounterMonitoredResourceDescriptor--; |
2116 return o; | 2145 return o; |
2117 } | 2146 } |
2118 | 2147 |
2119 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 2148 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
2120 buildCounterMonitoredResourceDescriptor++; | 2149 buildCounterMonitoredResourceDescriptor++; |
2121 if (buildCounterMonitoredResourceDescriptor < 3) { | 2150 if (buildCounterMonitoredResourceDescriptor < 3) { |
2122 unittest.expect(o.description, unittest.equals('foo')); | 2151 unittest.expect(o.description, unittest.equals('foo')); |
2123 unittest.expect(o.displayName, unittest.equals('foo')); | 2152 unittest.expect(o.displayName, unittest.equals('foo')); |
2124 checkUnnamed1106(o.labels); | 2153 checkUnnamed1113(o.labels); |
2125 unittest.expect(o.name, unittest.equals('foo')); | 2154 unittest.expect(o.name, unittest.equals('foo')); |
2126 unittest.expect(o.type, unittest.equals('foo')); | 2155 unittest.expect(o.type, unittest.equals('foo')); |
2127 } | 2156 } |
2128 buildCounterMonitoredResourceDescriptor--; | 2157 buildCounterMonitoredResourceDescriptor--; |
2129 } | 2158 } |
2130 | 2159 |
2131 buildUnnamed1107() { | 2160 buildUnnamed1114() { |
2132 var o = new core.List<api.MonitoringDestination>(); | 2161 var o = new core.List<api.MonitoringDestination>(); |
2133 o.add(buildMonitoringDestination()); | 2162 o.add(buildMonitoringDestination()); |
2134 o.add(buildMonitoringDestination()); | 2163 o.add(buildMonitoringDestination()); |
2135 return o; | 2164 return o; |
2136 } | 2165 } |
2137 | 2166 |
2138 checkUnnamed1107(core.List<api.MonitoringDestination> o) { | 2167 checkUnnamed1114(core.List<api.MonitoringDestination> o) { |
2139 unittest.expect(o, unittest.hasLength(2)); | 2168 unittest.expect(o, unittest.hasLength(2)); |
2140 checkMonitoringDestination(o[0]); | 2169 checkMonitoringDestination(o[0]); |
2141 checkMonitoringDestination(o[1]); | 2170 checkMonitoringDestination(o[1]); |
2142 } | 2171 } |
2143 | 2172 |
2144 buildUnnamed1108() { | 2173 buildUnnamed1115() { |
2145 var o = new core.List<api.MonitoringDestination>(); | 2174 var o = new core.List<api.MonitoringDestination>(); |
2146 o.add(buildMonitoringDestination()); | 2175 o.add(buildMonitoringDestination()); |
2147 o.add(buildMonitoringDestination()); | 2176 o.add(buildMonitoringDestination()); |
2148 return o; | 2177 return o; |
2149 } | 2178 } |
2150 | 2179 |
2151 checkUnnamed1108(core.List<api.MonitoringDestination> o) { | 2180 checkUnnamed1115(core.List<api.MonitoringDestination> o) { |
2152 unittest.expect(o, unittest.hasLength(2)); | 2181 unittest.expect(o, unittest.hasLength(2)); |
2153 checkMonitoringDestination(o[0]); | 2182 checkMonitoringDestination(o[0]); |
2154 checkMonitoringDestination(o[1]); | 2183 checkMonitoringDestination(o[1]); |
2155 } | 2184 } |
2156 | 2185 |
2157 core.int buildCounterMonitoring = 0; | 2186 core.int buildCounterMonitoring = 0; |
2158 buildMonitoring() { | 2187 buildMonitoring() { |
2159 var o = new api.Monitoring(); | 2188 var o = new api.Monitoring(); |
2160 buildCounterMonitoring++; | 2189 buildCounterMonitoring++; |
2161 if (buildCounterMonitoring < 3) { | 2190 if (buildCounterMonitoring < 3) { |
2162 o.consumerDestinations = buildUnnamed1107(); | 2191 o.consumerDestinations = buildUnnamed1114(); |
2163 o.producerDestinations = buildUnnamed1108(); | 2192 o.producerDestinations = buildUnnamed1115(); |
2164 } | 2193 } |
2165 buildCounterMonitoring--; | 2194 buildCounterMonitoring--; |
2166 return o; | 2195 return o; |
2167 } | 2196 } |
2168 | 2197 |
2169 checkMonitoring(api.Monitoring o) { | 2198 checkMonitoring(api.Monitoring o) { |
2170 buildCounterMonitoring++; | 2199 buildCounterMonitoring++; |
2171 if (buildCounterMonitoring < 3) { | 2200 if (buildCounterMonitoring < 3) { |
2172 checkUnnamed1107(o.consumerDestinations); | 2201 checkUnnamed1114(o.consumerDestinations); |
2173 checkUnnamed1108(o.producerDestinations); | 2202 checkUnnamed1115(o.producerDestinations); |
2174 } | 2203 } |
2175 buildCounterMonitoring--; | 2204 buildCounterMonitoring--; |
2176 } | 2205 } |
2177 | 2206 |
2178 buildUnnamed1109() { | 2207 buildUnnamed1116() { |
2179 var o = new core.List<core.String>(); | 2208 var o = new core.List<core.String>(); |
2180 o.add("foo"); | 2209 o.add("foo"); |
2181 o.add("foo"); | 2210 o.add("foo"); |
2182 return o; | 2211 return o; |
2183 } | 2212 } |
2184 | 2213 |
2185 checkUnnamed1109(core.List<core.String> o) { | 2214 checkUnnamed1116(core.List<core.String> o) { |
2186 unittest.expect(o, unittest.hasLength(2)); | 2215 unittest.expect(o, unittest.hasLength(2)); |
2187 unittest.expect(o[0], unittest.equals('foo')); | 2216 unittest.expect(o[0], unittest.equals('foo')); |
2188 unittest.expect(o[1], unittest.equals('foo')); | 2217 unittest.expect(o[1], unittest.equals('foo')); |
2189 } | 2218 } |
2190 | 2219 |
2191 core.int buildCounterMonitoringDestination = 0; | 2220 core.int buildCounterMonitoringDestination = 0; |
2192 buildMonitoringDestination() { | 2221 buildMonitoringDestination() { |
2193 var o = new api.MonitoringDestination(); | 2222 var o = new api.MonitoringDestination(); |
2194 buildCounterMonitoringDestination++; | 2223 buildCounterMonitoringDestination++; |
2195 if (buildCounterMonitoringDestination < 3) { | 2224 if (buildCounterMonitoringDestination < 3) { |
2196 o.metrics = buildUnnamed1109(); | 2225 o.metrics = buildUnnamed1116(); |
2197 o.monitoredResource = "foo"; | 2226 o.monitoredResource = "foo"; |
2198 } | 2227 } |
2199 buildCounterMonitoringDestination--; | 2228 buildCounterMonitoringDestination--; |
2200 return o; | 2229 return o; |
2201 } | 2230 } |
2202 | 2231 |
2203 checkMonitoringDestination(api.MonitoringDestination o) { | 2232 checkMonitoringDestination(api.MonitoringDestination o) { |
2204 buildCounterMonitoringDestination++; | 2233 buildCounterMonitoringDestination++; |
2205 if (buildCounterMonitoringDestination < 3) { | 2234 if (buildCounterMonitoringDestination < 3) { |
2206 checkUnnamed1109(o.metrics); | 2235 checkUnnamed1116(o.metrics); |
2207 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 2236 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
2208 } | 2237 } |
2209 buildCounterMonitoringDestination--; | 2238 buildCounterMonitoringDestination--; |
2210 } | 2239 } |
2211 | 2240 |
2212 core.int buildCounterOAuthRequirements = 0; | 2241 core.int buildCounterOAuthRequirements = 0; |
2213 buildOAuthRequirements() { | 2242 buildOAuthRequirements() { |
2214 var o = new api.OAuthRequirements(); | 2243 var o = new api.OAuthRequirements(); |
2215 buildCounterOAuthRequirements++; | 2244 buildCounterOAuthRequirements++; |
2216 if (buildCounterOAuthRequirements < 3) { | 2245 if (buildCounterOAuthRequirements < 3) { |
2217 o.canonicalScopes = "foo"; | 2246 o.canonicalScopes = "foo"; |
2218 } | 2247 } |
2219 buildCounterOAuthRequirements--; | 2248 buildCounterOAuthRequirements--; |
2220 return o; | 2249 return o; |
2221 } | 2250 } |
2222 | 2251 |
2223 checkOAuthRequirements(api.OAuthRequirements o) { | 2252 checkOAuthRequirements(api.OAuthRequirements o) { |
2224 buildCounterOAuthRequirements++; | 2253 buildCounterOAuthRequirements++; |
2225 if (buildCounterOAuthRequirements < 3) { | 2254 if (buildCounterOAuthRequirements < 3) { |
2226 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 2255 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
2227 } | 2256 } |
2228 buildCounterOAuthRequirements--; | 2257 buildCounterOAuthRequirements--; |
2229 } | 2258 } |
2230 | 2259 |
2231 buildUnnamed1110() { | 2260 buildUnnamed1117() { |
2232 var o = new core.Map<core.String, core.Object>(); | 2261 var o = new core.Map<core.String, core.Object>(); |
2233 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2262 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2234 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2263 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2235 return o; | 2264 return o; |
2236 } | 2265 } |
2237 | 2266 |
2238 checkUnnamed1110(core.Map<core.String, core.Object> o) { | 2267 checkUnnamed1117(core.Map<core.String, core.Object> o) { |
2239 unittest.expect(o, unittest.hasLength(2)); | 2268 unittest.expect(o, unittest.hasLength(2)); |
2240 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')); |
2241 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')); |
2242 } | 2271 } |
2243 | 2272 |
2244 buildUnnamed1111() { | 2273 buildUnnamed1118() { |
2245 var o = new core.Map<core.String, core.Object>(); | 2274 var o = new core.Map<core.String, core.Object>(); |
2246 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2275 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2247 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2276 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2248 return o; | 2277 return o; |
2249 } | 2278 } |
2250 | 2279 |
2251 checkUnnamed1111(core.Map<core.String, core.Object> o) { | 2280 checkUnnamed1118(core.Map<core.String, core.Object> o) { |
2252 unittest.expect(o, unittest.hasLength(2)); | 2281 unittest.expect(o, unittest.hasLength(2)); |
2253 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')); |
2254 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')); |
2255 } | 2284 } |
2256 | 2285 |
2257 core.int buildCounterOperation = 0; | 2286 core.int buildCounterOperation = 0; |
2258 buildOperation() { | 2287 buildOperation() { |
2259 var o = new api.Operation(); | 2288 var o = new api.Operation(); |
2260 buildCounterOperation++; | 2289 buildCounterOperation++; |
2261 if (buildCounterOperation < 3) { | 2290 if (buildCounterOperation < 3) { |
2262 o.done = true; | 2291 o.done = true; |
2263 o.error = buildStatus(); | 2292 o.error = buildStatus(); |
2264 o.metadata = buildUnnamed1110(); | 2293 o.metadata = buildUnnamed1117(); |
2265 o.name = "foo"; | 2294 o.name = "foo"; |
2266 o.response = buildUnnamed1111(); | 2295 o.response = buildUnnamed1118(); |
2267 } | 2296 } |
2268 buildCounterOperation--; | 2297 buildCounterOperation--; |
2269 return o; | 2298 return o; |
2270 } | 2299 } |
2271 | 2300 |
2272 checkOperation(api.Operation o) { | 2301 checkOperation(api.Operation o) { |
2273 buildCounterOperation++; | 2302 buildCounterOperation++; |
2274 if (buildCounterOperation < 3) { | 2303 if (buildCounterOperation < 3) { |
2275 unittest.expect(o.done, unittest.isTrue); | 2304 unittest.expect(o.done, unittest.isTrue); |
2276 checkStatus(o.error); | 2305 checkStatus(o.error); |
2277 checkUnnamed1110(o.metadata); | 2306 checkUnnamed1117(o.metadata); |
2278 unittest.expect(o.name, unittest.equals('foo')); | 2307 unittest.expect(o.name, unittest.equals('foo')); |
2279 checkUnnamed1111(o.response); | 2308 checkUnnamed1118(o.response); |
2280 } | 2309 } |
2281 buildCounterOperation--; | 2310 buildCounterOperation--; |
2282 } | 2311 } |
2283 | 2312 |
2284 buildUnnamed1112() { | 2313 buildUnnamed1119() { |
2285 var o = new core.List<core.String>(); | 2314 var o = new core.List<core.String>(); |
2286 o.add("foo"); | 2315 o.add("foo"); |
2287 o.add("foo"); | 2316 o.add("foo"); |
2288 return o; | 2317 return o; |
2289 } | 2318 } |
2290 | 2319 |
2291 checkUnnamed1112(core.List<core.String> o) { | 2320 checkUnnamed1119(core.List<core.String> o) { |
2292 unittest.expect(o, unittest.hasLength(2)); | 2321 unittest.expect(o, unittest.hasLength(2)); |
2293 unittest.expect(o[0], unittest.equals('foo')); | 2322 unittest.expect(o[0], unittest.equals('foo')); |
2294 unittest.expect(o[1], unittest.equals('foo')); | 2323 unittest.expect(o[1], unittest.equals('foo')); |
2295 } | 2324 } |
2296 | 2325 |
2297 buildUnnamed1113() { | 2326 buildUnnamed1120() { |
2298 var o = new core.List<api.Step>(); | 2327 var o = new core.List<api.Step>(); |
2299 o.add(buildStep()); | 2328 o.add(buildStep()); |
2300 o.add(buildStep()); | 2329 o.add(buildStep()); |
2301 return o; | 2330 return o; |
2302 } | 2331 } |
2303 | 2332 |
2304 checkUnnamed1113(core.List<api.Step> o) { | 2333 checkUnnamed1120(core.List<api.Step> o) { |
2305 unittest.expect(o, unittest.hasLength(2)); | 2334 unittest.expect(o, unittest.hasLength(2)); |
2306 checkStep(o[0]); | 2335 checkStep(o[0]); |
2307 checkStep(o[1]); | 2336 checkStep(o[1]); |
2308 } | 2337 } |
2309 | 2338 |
2310 core.int buildCounterOperationMetadata = 0; | 2339 core.int buildCounterOperationMetadata = 0; |
2311 buildOperationMetadata() { | 2340 buildOperationMetadata() { |
2312 var o = new api.OperationMetadata(); | 2341 var o = new api.OperationMetadata(); |
2313 buildCounterOperationMetadata++; | 2342 buildCounterOperationMetadata++; |
2314 if (buildCounterOperationMetadata < 3) { | 2343 if (buildCounterOperationMetadata < 3) { |
2315 o.progressPercentage = 42; | 2344 o.progressPercentage = 42; |
2316 o.resourceNames = buildUnnamed1112(); | 2345 o.resourceNames = buildUnnamed1119(); |
2317 o.startTime = "foo"; | 2346 o.startTime = "foo"; |
2318 o.steps = buildUnnamed1113(); | 2347 o.steps = buildUnnamed1120(); |
2319 } | 2348 } |
2320 buildCounterOperationMetadata--; | 2349 buildCounterOperationMetadata--; |
2321 return o; | 2350 return o; |
2322 } | 2351 } |
2323 | 2352 |
2324 checkOperationMetadata(api.OperationMetadata o) { | 2353 checkOperationMetadata(api.OperationMetadata o) { |
2325 buildCounterOperationMetadata++; | 2354 buildCounterOperationMetadata++; |
2326 if (buildCounterOperationMetadata < 3) { | 2355 if (buildCounterOperationMetadata < 3) { |
2327 unittest.expect(o.progressPercentage, unittest.equals(42)); | 2356 unittest.expect(o.progressPercentage, unittest.equals(42)); |
2328 checkUnnamed1112(o.resourceNames); | 2357 checkUnnamed1119(o.resourceNames); |
2329 unittest.expect(o.startTime, unittest.equals('foo')); | 2358 unittest.expect(o.startTime, unittest.equals('foo')); |
2330 checkUnnamed1113(o.steps); | 2359 checkUnnamed1120(o.steps); |
2331 } | 2360 } |
2332 buildCounterOperationMetadata--; | 2361 buildCounterOperationMetadata--; |
2333 } | 2362 } |
2334 | 2363 |
2335 buildUnnamed1114() { | 2364 buildUnnamed1121() { |
2336 var o = new core.Map<core.String, core.Object>(); | 2365 var o = new core.Map<core.String, core.Object>(); |
2337 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2338 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2339 return o; | 2368 return o; |
2340 } | 2369 } |
2341 | 2370 |
2342 checkUnnamed1114(core.Map<core.String, core.Object> o) { | 2371 checkUnnamed1121(core.Map<core.String, core.Object> o) { |
2343 unittest.expect(o, unittest.hasLength(2)); | 2372 unittest.expect(o, unittest.hasLength(2)); |
2344 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')); |
2345 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')); |
2346 } | 2375 } |
2347 | 2376 |
2348 core.int buildCounterOption = 0; | 2377 core.int buildCounterOption = 0; |
2349 buildOption() { | 2378 buildOption() { |
2350 var o = new api.Option(); | 2379 var o = new api.Option(); |
2351 buildCounterOption++; | 2380 buildCounterOption++; |
2352 if (buildCounterOption < 3) { | 2381 if (buildCounterOption < 3) { |
2353 o.name = "foo"; | 2382 o.name = "foo"; |
2354 o.value = buildUnnamed1114(); | 2383 o.value = buildUnnamed1121(); |
2355 } | 2384 } |
2356 buildCounterOption--; | 2385 buildCounterOption--; |
2357 return o; | 2386 return o; |
2358 } | 2387 } |
2359 | 2388 |
2360 checkOption(api.Option o) { | 2389 checkOption(api.Option o) { |
2361 buildCounterOption++; | 2390 buildCounterOption++; |
2362 if (buildCounterOption < 3) { | 2391 if (buildCounterOption < 3) { |
2363 unittest.expect(o.name, unittest.equals('foo')); | 2392 unittest.expect(o.name, unittest.equals('foo')); |
2364 checkUnnamed1114(o.value); | 2393 checkUnnamed1121(o.value); |
2365 } | 2394 } |
2366 buildCounterOption--; | 2395 buildCounterOption--; |
2367 } | 2396 } |
2368 | 2397 |
2369 buildUnnamed1115() { | 2398 buildUnnamed1122() { |
2370 var o = new core.List<api.Page>(); | 2399 var o = new core.List<api.Page>(); |
2371 o.add(buildPage()); | 2400 o.add(buildPage()); |
2372 o.add(buildPage()); | 2401 o.add(buildPage()); |
2373 return o; | 2402 return o; |
2374 } | 2403 } |
2375 | 2404 |
2376 checkUnnamed1115(core.List<api.Page> o) { | 2405 checkUnnamed1122(core.List<api.Page> o) { |
2377 unittest.expect(o, unittest.hasLength(2)); | 2406 unittest.expect(o, unittest.hasLength(2)); |
2378 checkPage(o[0]); | 2407 checkPage(o[0]); |
2379 checkPage(o[1]); | 2408 checkPage(o[1]); |
2380 } | 2409 } |
2381 | 2410 |
2382 core.int buildCounterPage = 0; | 2411 core.int buildCounterPage = 0; |
2383 buildPage() { | 2412 buildPage() { |
2384 var o = new api.Page(); | 2413 var o = new api.Page(); |
2385 buildCounterPage++; | 2414 buildCounterPage++; |
2386 if (buildCounterPage < 3) { | 2415 if (buildCounterPage < 3) { |
2387 o.content = "foo"; | 2416 o.content = "foo"; |
2388 o.name = "foo"; | 2417 o.name = "foo"; |
2389 o.subpages = buildUnnamed1115(); | 2418 o.subpages = buildUnnamed1122(); |
2390 } | 2419 } |
2391 buildCounterPage--; | 2420 buildCounterPage--; |
2392 return o; | 2421 return o; |
2393 } | 2422 } |
2394 | 2423 |
2395 checkPage(api.Page o) { | 2424 checkPage(api.Page o) { |
2396 buildCounterPage++; | 2425 buildCounterPage++; |
2397 if (buildCounterPage < 3) { | 2426 if (buildCounterPage < 3) { |
2398 unittest.expect(o.content, unittest.equals('foo')); | 2427 unittest.expect(o.content, unittest.equals('foo')); |
2399 unittest.expect(o.name, unittest.equals('foo')); | 2428 unittest.expect(o.name, unittest.equals('foo')); |
2400 checkUnnamed1115(o.subpages); | 2429 checkUnnamed1122(o.subpages); |
2401 } | 2430 } |
2402 buildCounterPage--; | 2431 buildCounterPage--; |
2403 } | 2432 } |
2404 | 2433 |
2405 buildUnnamed1116() { | 2434 buildUnnamed1123() { |
2406 var o = new core.List<api.AuditConfig>(); | 2435 var o = new core.List<api.AuditConfig>(); |
2407 o.add(buildAuditConfig()); | 2436 o.add(buildAuditConfig()); |
2408 o.add(buildAuditConfig()); | 2437 o.add(buildAuditConfig()); |
2409 return o; | 2438 return o; |
2410 } | 2439 } |
2411 | 2440 |
2412 checkUnnamed1116(core.List<api.AuditConfig> o) { | 2441 checkUnnamed1123(core.List<api.AuditConfig> o) { |
2413 unittest.expect(o, unittest.hasLength(2)); | 2442 unittest.expect(o, unittest.hasLength(2)); |
2414 checkAuditConfig(o[0]); | 2443 checkAuditConfig(o[0]); |
2415 checkAuditConfig(o[1]); | 2444 checkAuditConfig(o[1]); |
2416 } | 2445 } |
2417 | 2446 |
2418 buildUnnamed1117() { | 2447 buildUnnamed1124() { |
2419 var o = new core.List<api.Binding>(); | 2448 var o = new core.List<api.Binding>(); |
2420 o.add(buildBinding()); | 2449 o.add(buildBinding()); |
2421 o.add(buildBinding()); | 2450 o.add(buildBinding()); |
2422 return o; | 2451 return o; |
2423 } | 2452 } |
2424 | 2453 |
2425 checkUnnamed1117(core.List<api.Binding> o) { | 2454 checkUnnamed1124(core.List<api.Binding> o) { |
2426 unittest.expect(o, unittest.hasLength(2)); | 2455 unittest.expect(o, unittest.hasLength(2)); |
2427 checkBinding(o[0]); | 2456 checkBinding(o[0]); |
2428 checkBinding(o[1]); | 2457 checkBinding(o[1]); |
2429 } | 2458 } |
2430 | 2459 |
2431 buildUnnamed1118() { | 2460 buildUnnamed1125() { |
2432 var o = new core.List<api.Rule>(); | 2461 var o = new core.List<api.Rule>(); |
2433 o.add(buildRule()); | 2462 o.add(buildRule()); |
2434 o.add(buildRule()); | 2463 o.add(buildRule()); |
2435 return o; | 2464 return o; |
2436 } | 2465 } |
2437 | 2466 |
2438 checkUnnamed1118(core.List<api.Rule> o) { | 2467 checkUnnamed1125(core.List<api.Rule> o) { |
2439 unittest.expect(o, unittest.hasLength(2)); | 2468 unittest.expect(o, unittest.hasLength(2)); |
2440 checkRule(o[0]); | 2469 checkRule(o[0]); |
2441 checkRule(o[1]); | 2470 checkRule(o[1]); |
2442 } | 2471 } |
2443 | 2472 |
2444 core.int buildCounterPolicy = 0; | 2473 core.int buildCounterPolicy = 0; |
2445 buildPolicy() { | 2474 buildPolicy() { |
2446 var o = new api.Policy(); | 2475 var o = new api.Policy(); |
2447 buildCounterPolicy++; | 2476 buildCounterPolicy++; |
2448 if (buildCounterPolicy < 3) { | 2477 if (buildCounterPolicy < 3) { |
2449 o.auditConfigs = buildUnnamed1116(); | 2478 o.auditConfigs = buildUnnamed1123(); |
2450 o.bindings = buildUnnamed1117(); | 2479 o.bindings = buildUnnamed1124(); |
2451 o.etag = "foo"; | 2480 o.etag = "foo"; |
2452 o.iamOwned = true; | 2481 o.iamOwned = true; |
2453 o.rules = buildUnnamed1118(); | 2482 o.rules = buildUnnamed1125(); |
2454 o.version = 42; | 2483 o.version = 42; |
2455 } | 2484 } |
2456 buildCounterPolicy--; | 2485 buildCounterPolicy--; |
2457 return o; | 2486 return o; |
2458 } | 2487 } |
2459 | 2488 |
2460 checkPolicy(api.Policy o) { | 2489 checkPolicy(api.Policy o) { |
2461 buildCounterPolicy++; | 2490 buildCounterPolicy++; |
2462 if (buildCounterPolicy < 3) { | 2491 if (buildCounterPolicy < 3) { |
2463 checkUnnamed1116(o.auditConfigs); | 2492 checkUnnamed1123(o.auditConfigs); |
2464 checkUnnamed1117(o.bindings); | 2493 checkUnnamed1124(o.bindings); |
2465 unittest.expect(o.etag, unittest.equals('foo')); | 2494 unittest.expect(o.etag, unittest.equals('foo')); |
2466 unittest.expect(o.iamOwned, unittest.isTrue); | 2495 unittest.expect(o.iamOwned, unittest.isTrue); |
2467 checkUnnamed1118(o.rules); | 2496 checkUnnamed1125(o.rules); |
2468 unittest.expect(o.version, unittest.equals(42)); | 2497 unittest.expect(o.version, unittest.equals(42)); |
2469 } | 2498 } |
2470 buildCounterPolicy--; | 2499 buildCounterPolicy--; |
2471 } | 2500 } |
2472 | 2501 |
2473 buildUnnamed1119() { | 2502 buildUnnamed1126() { |
2474 var o = new core.List<api.QuotaLimit>(); | 2503 var o = new core.List<api.QuotaLimit>(); |
2475 o.add(buildQuotaLimit()); | 2504 o.add(buildQuotaLimit()); |
2476 o.add(buildQuotaLimit()); | 2505 o.add(buildQuotaLimit()); |
2477 return o; | 2506 return o; |
2478 } | 2507 } |
2479 | 2508 |
2480 checkUnnamed1119(core.List<api.QuotaLimit> o) { | 2509 checkUnnamed1126(core.List<api.QuotaLimit> o) { |
2481 unittest.expect(o, unittest.hasLength(2)); | 2510 unittest.expect(o, unittest.hasLength(2)); |
2482 checkQuotaLimit(o[0]); | 2511 checkQuotaLimit(o[0]); |
2483 checkQuotaLimit(o[1]); | 2512 checkQuotaLimit(o[1]); |
2484 } | 2513 } |
2485 | 2514 |
2486 buildUnnamed1120() { | 2515 buildUnnamed1127() { |
2487 var o = new core.List<api.MetricRule>(); | 2516 var o = new core.List<api.MetricRule>(); |
2488 o.add(buildMetricRule()); | 2517 o.add(buildMetricRule()); |
2489 o.add(buildMetricRule()); | 2518 o.add(buildMetricRule()); |
2490 return o; | 2519 return o; |
2491 } | 2520 } |
2492 | 2521 |
2493 checkUnnamed1120(core.List<api.MetricRule> o) { | 2522 checkUnnamed1127(core.List<api.MetricRule> o) { |
2494 unittest.expect(o, unittest.hasLength(2)); | 2523 unittest.expect(o, unittest.hasLength(2)); |
2495 checkMetricRule(o[0]); | 2524 checkMetricRule(o[0]); |
2496 checkMetricRule(o[1]); | 2525 checkMetricRule(o[1]); |
2497 } | 2526 } |
2498 | 2527 |
2499 core.int buildCounterQuota = 0; | 2528 core.int buildCounterQuota = 0; |
2500 buildQuota() { | 2529 buildQuota() { |
2501 var o = new api.Quota(); | 2530 var o = new api.Quota(); |
2502 buildCounterQuota++; | 2531 buildCounterQuota++; |
2503 if (buildCounterQuota < 3) { | 2532 if (buildCounterQuota < 3) { |
2504 o.limits = buildUnnamed1119(); | 2533 o.limits = buildUnnamed1126(); |
2505 o.metricRules = buildUnnamed1120(); | 2534 o.metricRules = buildUnnamed1127(); |
2506 } | 2535 } |
2507 buildCounterQuota--; | 2536 buildCounterQuota--; |
2508 return o; | 2537 return o; |
2509 } | 2538 } |
2510 | 2539 |
2511 checkQuota(api.Quota o) { | 2540 checkQuota(api.Quota o) { |
2512 buildCounterQuota++; | 2541 buildCounterQuota++; |
2513 if (buildCounterQuota < 3) { | 2542 if (buildCounterQuota < 3) { |
2514 checkUnnamed1119(o.limits); | 2543 checkUnnamed1126(o.limits); |
2515 checkUnnamed1120(o.metricRules); | 2544 checkUnnamed1127(o.metricRules); |
2516 } | 2545 } |
2517 buildCounterQuota--; | 2546 buildCounterQuota--; |
2518 } | 2547 } |
2519 | 2548 |
2520 buildUnnamed1121() { | 2549 buildUnnamed1128() { |
2521 var o = new core.Map<core.String, core.String>(); | 2550 var o = new core.Map<core.String, core.String>(); |
2522 o["x"] = "foo"; | 2551 o["x"] = "foo"; |
2523 o["y"] = "foo"; | 2552 o["y"] = "foo"; |
2524 return o; | 2553 return o; |
2525 } | 2554 } |
2526 | 2555 |
2527 checkUnnamed1121(core.Map<core.String, core.String> o) { | 2556 checkUnnamed1128(core.Map<core.String, core.String> o) { |
2528 unittest.expect(o, unittest.hasLength(2)); | 2557 unittest.expect(o, unittest.hasLength(2)); |
2529 unittest.expect(o["x"], unittest.equals('foo')); | 2558 unittest.expect(o["x"], unittest.equals('foo')); |
2530 unittest.expect(o["y"], unittest.equals('foo')); | 2559 unittest.expect(o["y"], unittest.equals('foo')); |
2531 } | 2560 } |
2532 | 2561 |
2533 core.int buildCounterQuotaLimit = 0; | 2562 core.int buildCounterQuotaLimit = 0; |
2534 buildQuotaLimit() { | 2563 buildQuotaLimit() { |
2535 var o = new api.QuotaLimit(); | 2564 var o = new api.QuotaLimit(); |
2536 buildCounterQuotaLimit++; | 2565 buildCounterQuotaLimit++; |
2537 if (buildCounterQuotaLimit < 3) { | 2566 if (buildCounterQuotaLimit < 3) { |
2538 o.defaultLimit = "foo"; | 2567 o.defaultLimit = "foo"; |
2539 o.description = "foo"; | 2568 o.description = "foo"; |
2540 o.displayName = "foo"; | 2569 o.displayName = "foo"; |
2541 o.duration = "foo"; | 2570 o.duration = "foo"; |
2542 o.freeTier = "foo"; | 2571 o.freeTier = "foo"; |
2543 o.maxLimit = "foo"; | 2572 o.maxLimit = "foo"; |
2544 o.metric = "foo"; | 2573 o.metric = "foo"; |
2545 o.name = "foo"; | 2574 o.name = "foo"; |
2546 o.unit = "foo"; | 2575 o.unit = "foo"; |
2547 o.values = buildUnnamed1121(); | 2576 o.values = buildUnnamed1128(); |
2548 } | 2577 } |
2549 buildCounterQuotaLimit--; | 2578 buildCounterQuotaLimit--; |
2550 return o; | 2579 return o; |
2551 } | 2580 } |
2552 | 2581 |
2553 checkQuotaLimit(api.QuotaLimit o) { | 2582 checkQuotaLimit(api.QuotaLimit o) { |
2554 buildCounterQuotaLimit++; | 2583 buildCounterQuotaLimit++; |
2555 if (buildCounterQuotaLimit < 3) { | 2584 if (buildCounterQuotaLimit < 3) { |
2556 unittest.expect(o.defaultLimit, unittest.equals('foo')); | 2585 unittest.expect(o.defaultLimit, unittest.equals('foo')); |
2557 unittest.expect(o.description, unittest.equals('foo')); | 2586 unittest.expect(o.description, unittest.equals('foo')); |
2558 unittest.expect(o.displayName, unittest.equals('foo')); | 2587 unittest.expect(o.displayName, unittest.equals('foo')); |
2559 unittest.expect(o.duration, unittest.equals('foo')); | 2588 unittest.expect(o.duration, unittest.equals('foo')); |
2560 unittest.expect(o.freeTier, unittest.equals('foo')); | 2589 unittest.expect(o.freeTier, unittest.equals('foo')); |
2561 unittest.expect(o.maxLimit, unittest.equals('foo')); | 2590 unittest.expect(o.maxLimit, unittest.equals('foo')); |
2562 unittest.expect(o.metric, unittest.equals('foo')); | 2591 unittest.expect(o.metric, unittest.equals('foo')); |
2563 unittest.expect(o.name, unittest.equals('foo')); | 2592 unittest.expect(o.name, unittest.equals('foo')); |
2564 unittest.expect(o.unit, unittest.equals('foo')); | 2593 unittest.expect(o.unit, unittest.equals('foo')); |
2565 checkUnnamed1121(o.values); | 2594 checkUnnamed1128(o.values); |
2566 } | 2595 } |
2567 buildCounterQuotaLimit--; | 2596 buildCounterQuotaLimit--; |
2568 } | 2597 } |
2569 | 2598 |
2570 core.int buildCounterRollout = 0; | 2599 core.int buildCounterRollout = 0; |
2571 buildRollout() { | 2600 buildRollout() { |
2572 var o = new api.Rollout(); | 2601 var o = new api.Rollout(); |
2573 buildCounterRollout++; | 2602 buildCounterRollout++; |
2574 if (buildCounterRollout < 3) { | 2603 if (buildCounterRollout < 3) { |
2575 o.createTime = "foo"; | 2604 o.createTime = "foo"; |
(...skipping 15 matching lines...) Loading... |
2591 unittest.expect(o.createdBy, unittest.equals('foo')); | 2620 unittest.expect(o.createdBy, unittest.equals('foo')); |
2592 checkDeleteServiceStrategy(o.deleteServiceStrategy); | 2621 checkDeleteServiceStrategy(o.deleteServiceStrategy); |
2593 unittest.expect(o.rolloutId, unittest.equals('foo')); | 2622 unittest.expect(o.rolloutId, unittest.equals('foo')); |
2594 unittest.expect(o.serviceName, unittest.equals('foo')); | 2623 unittest.expect(o.serviceName, unittest.equals('foo')); |
2595 unittest.expect(o.status, unittest.equals('foo')); | 2624 unittest.expect(o.status, unittest.equals('foo')); |
2596 checkTrafficPercentStrategy(o.trafficPercentStrategy); | 2625 checkTrafficPercentStrategy(o.trafficPercentStrategy); |
2597 } | 2626 } |
2598 buildCounterRollout--; | 2627 buildCounterRollout--; |
2599 } | 2628 } |
2600 | 2629 |
2601 buildUnnamed1122() { | 2630 buildUnnamed1129() { |
2602 var o = new core.List<api.Condition>(); | 2631 var o = new core.List<api.Condition>(); |
2603 o.add(buildCondition()); | 2632 o.add(buildCondition()); |
2604 o.add(buildCondition()); | 2633 o.add(buildCondition()); |
2605 return o; | 2634 return o; |
2606 } | 2635 } |
2607 | 2636 |
2608 checkUnnamed1122(core.List<api.Condition> o) { | 2637 checkUnnamed1129(core.List<api.Condition> o) { |
2609 unittest.expect(o, unittest.hasLength(2)); | 2638 unittest.expect(o, unittest.hasLength(2)); |
2610 checkCondition(o[0]); | 2639 checkCondition(o[0]); |
2611 checkCondition(o[1]); | 2640 checkCondition(o[1]); |
2612 } | 2641 } |
2613 | 2642 |
2614 buildUnnamed1123() { | 2643 buildUnnamed1130() { |
2615 var o = new core.List<core.String>(); | 2644 var o = new core.List<core.String>(); |
2616 o.add("foo"); | 2645 o.add("foo"); |
2617 o.add("foo"); | 2646 o.add("foo"); |
2618 return o; | 2647 return o; |
2619 } | 2648 } |
2620 | 2649 |
2621 checkUnnamed1123(core.List<core.String> o) { | 2650 checkUnnamed1130(core.List<core.String> o) { |
2622 unittest.expect(o, unittest.hasLength(2)); | 2651 unittest.expect(o, unittest.hasLength(2)); |
2623 unittest.expect(o[0], unittest.equals('foo')); | 2652 unittest.expect(o[0], unittest.equals('foo')); |
2624 unittest.expect(o[1], unittest.equals('foo')); | 2653 unittest.expect(o[1], unittest.equals('foo')); |
2625 } | 2654 } |
2626 | 2655 |
2627 buildUnnamed1124() { | 2656 buildUnnamed1131() { |
2628 var o = new core.List<api.LogConfig>(); | 2657 var o = new core.List<api.LogConfig>(); |
2629 o.add(buildLogConfig()); | 2658 o.add(buildLogConfig()); |
2630 o.add(buildLogConfig()); | 2659 o.add(buildLogConfig()); |
2631 return o; | 2660 return o; |
2632 } | 2661 } |
2633 | 2662 |
2634 checkUnnamed1124(core.List<api.LogConfig> o) { | 2663 checkUnnamed1131(core.List<api.LogConfig> o) { |
2635 unittest.expect(o, unittest.hasLength(2)); | 2664 unittest.expect(o, unittest.hasLength(2)); |
2636 checkLogConfig(o[0]); | 2665 checkLogConfig(o[0]); |
2637 checkLogConfig(o[1]); | 2666 checkLogConfig(o[1]); |
2638 } | 2667 } |
2639 | 2668 |
2640 buildUnnamed1125() { | 2669 buildUnnamed1132() { |
2641 var o = new core.List<core.String>(); | 2670 var o = new core.List<core.String>(); |
2642 o.add("foo"); | 2671 o.add("foo"); |
2643 o.add("foo"); | 2672 o.add("foo"); |
2644 return o; | 2673 return o; |
2645 } | 2674 } |
2646 | 2675 |
2647 checkUnnamed1125(core.List<core.String> o) { | 2676 checkUnnamed1132(core.List<core.String> o) { |
2648 unittest.expect(o, unittest.hasLength(2)); | 2677 unittest.expect(o, unittest.hasLength(2)); |
2649 unittest.expect(o[0], unittest.equals('foo')); | 2678 unittest.expect(o[0], unittest.equals('foo')); |
2650 unittest.expect(o[1], unittest.equals('foo')); | 2679 unittest.expect(o[1], unittest.equals('foo')); |
2651 } | 2680 } |
2652 | 2681 |
2653 buildUnnamed1126() { | 2682 buildUnnamed1133() { |
2654 var o = new core.List<core.String>(); | 2683 var o = new core.List<core.String>(); |
2655 o.add("foo"); | 2684 o.add("foo"); |
2656 o.add("foo"); | 2685 o.add("foo"); |
2657 return o; | 2686 return o; |
2658 } | 2687 } |
2659 | 2688 |
2660 checkUnnamed1126(core.List<core.String> o) { | 2689 checkUnnamed1133(core.List<core.String> o) { |
2661 unittest.expect(o, unittest.hasLength(2)); | 2690 unittest.expect(o, unittest.hasLength(2)); |
2662 unittest.expect(o[0], unittest.equals('foo')); | 2691 unittest.expect(o[0], unittest.equals('foo')); |
2663 unittest.expect(o[1], unittest.equals('foo')); | 2692 unittest.expect(o[1], unittest.equals('foo')); |
2664 } | 2693 } |
2665 | 2694 |
2666 core.int buildCounterRule = 0; | 2695 core.int buildCounterRule = 0; |
2667 buildRule() { | 2696 buildRule() { |
2668 var o = new api.Rule(); | 2697 var o = new api.Rule(); |
2669 buildCounterRule++; | 2698 buildCounterRule++; |
2670 if (buildCounterRule < 3) { | 2699 if (buildCounterRule < 3) { |
2671 o.action = "foo"; | 2700 o.action = "foo"; |
2672 o.conditions = buildUnnamed1122(); | 2701 o.conditions = buildUnnamed1129(); |
2673 o.description = "foo"; | 2702 o.description = "foo"; |
2674 o.in_ = buildUnnamed1123(); | 2703 o.in_ = buildUnnamed1130(); |
2675 o.logConfig = buildUnnamed1124(); | 2704 o.logConfig = buildUnnamed1131(); |
2676 o.notIn = buildUnnamed1125(); | 2705 o.notIn = buildUnnamed1132(); |
2677 o.permissions = buildUnnamed1126(); | 2706 o.permissions = buildUnnamed1133(); |
2678 } | 2707 } |
2679 buildCounterRule--; | 2708 buildCounterRule--; |
2680 return o; | 2709 return o; |
2681 } | 2710 } |
2682 | 2711 |
2683 checkRule(api.Rule o) { | 2712 checkRule(api.Rule o) { |
2684 buildCounterRule++; | 2713 buildCounterRule++; |
2685 if (buildCounterRule < 3) { | 2714 if (buildCounterRule < 3) { |
2686 unittest.expect(o.action, unittest.equals('foo')); | 2715 unittest.expect(o.action, unittest.equals('foo')); |
2687 checkUnnamed1122(o.conditions); | 2716 checkUnnamed1129(o.conditions); |
2688 unittest.expect(o.description, unittest.equals('foo')); | 2717 unittest.expect(o.description, unittest.equals('foo')); |
2689 checkUnnamed1123(o.in_); | 2718 checkUnnamed1130(o.in_); |
2690 checkUnnamed1124(o.logConfig); | 2719 checkUnnamed1131(o.logConfig); |
2691 checkUnnamed1125(o.notIn); | 2720 checkUnnamed1132(o.notIn); |
2692 checkUnnamed1126(o.permissions); | 2721 checkUnnamed1133(o.permissions); |
2693 } | 2722 } |
2694 buildCounterRule--; | 2723 buildCounterRule--; |
2695 } | 2724 } |
2696 | 2725 |
2697 buildUnnamed1127() { | 2726 buildUnnamed1134() { |
2698 var o = new core.List<api.Api>(); | 2727 var o = new core.List<api.Api>(); |
2699 o.add(buildApi()); | 2728 o.add(buildApi()); |
2700 o.add(buildApi()); | 2729 o.add(buildApi()); |
2701 return o; | 2730 return o; |
2702 } | 2731 } |
2703 | 2732 |
2704 checkUnnamed1127(core.List<api.Api> o) { | 2733 checkUnnamed1134(core.List<api.Api> o) { |
2705 unittest.expect(o, unittest.hasLength(2)); | 2734 unittest.expect(o, unittest.hasLength(2)); |
2706 checkApi(o[0]); | 2735 checkApi(o[0]); |
2707 checkApi(o[1]); | 2736 checkApi(o[1]); |
2708 } | 2737 } |
2709 | 2738 |
2710 buildUnnamed1128() { | 2739 buildUnnamed1135() { |
2711 var o = new core.List<api.Endpoint>(); | 2740 var o = new core.List<api.Endpoint>(); |
2712 o.add(buildEndpoint()); | 2741 o.add(buildEndpoint()); |
2713 o.add(buildEndpoint()); | 2742 o.add(buildEndpoint()); |
2714 return o; | 2743 return o; |
2715 } | 2744 } |
2716 | 2745 |
2717 checkUnnamed1128(core.List<api.Endpoint> o) { | 2746 checkUnnamed1135(core.List<api.Endpoint> o) { |
2718 unittest.expect(o, unittest.hasLength(2)); | 2747 unittest.expect(o, unittest.hasLength(2)); |
2719 checkEndpoint(o[0]); | 2748 checkEndpoint(o[0]); |
2720 checkEndpoint(o[1]); | 2749 checkEndpoint(o[1]); |
2721 } | 2750 } |
2722 | 2751 |
2723 buildUnnamed1129() { | 2752 buildUnnamed1136() { |
2724 var o = new core.List<api.Enum>(); | 2753 var o = new core.List<api.Enum>(); |
2725 o.add(buildEnum()); | 2754 o.add(buildEnum()); |
2726 o.add(buildEnum()); | 2755 o.add(buildEnum()); |
2727 return o; | 2756 return o; |
2728 } | 2757 } |
2729 | 2758 |
2730 checkUnnamed1129(core.List<api.Enum> o) { | 2759 checkUnnamed1136(core.List<api.Enum> o) { |
2731 unittest.expect(o, unittest.hasLength(2)); | 2760 unittest.expect(o, unittest.hasLength(2)); |
2732 checkEnum(o[0]); | 2761 checkEnum(o[0]); |
2733 checkEnum(o[1]); | 2762 checkEnum(o[1]); |
2734 } | 2763 } |
2735 | 2764 |
2736 buildUnnamed1130() { | 2765 buildUnnamed1137() { |
2737 var o = new core.List<api.LogDescriptor>(); | 2766 var o = new core.List<api.LogDescriptor>(); |
2738 o.add(buildLogDescriptor()); | 2767 o.add(buildLogDescriptor()); |
2739 o.add(buildLogDescriptor()); | 2768 o.add(buildLogDescriptor()); |
2740 return o; | 2769 return o; |
2741 } | 2770 } |
2742 | 2771 |
2743 checkUnnamed1130(core.List<api.LogDescriptor> o) { | 2772 checkUnnamed1137(core.List<api.LogDescriptor> o) { |
2744 unittest.expect(o, unittest.hasLength(2)); | 2773 unittest.expect(o, unittest.hasLength(2)); |
2745 checkLogDescriptor(o[0]); | 2774 checkLogDescriptor(o[0]); |
2746 checkLogDescriptor(o[1]); | 2775 checkLogDescriptor(o[1]); |
2747 } | 2776 } |
2748 | 2777 |
2749 buildUnnamed1131() { | 2778 buildUnnamed1138() { |
2750 var o = new core.List<api.MetricDescriptor>(); | 2779 var o = new core.List<api.MetricDescriptor>(); |
2751 o.add(buildMetricDescriptor()); | 2780 o.add(buildMetricDescriptor()); |
2752 o.add(buildMetricDescriptor()); | 2781 o.add(buildMetricDescriptor()); |
2753 return o; | 2782 return o; |
2754 } | 2783 } |
2755 | 2784 |
2756 checkUnnamed1131(core.List<api.MetricDescriptor> o) { | 2785 checkUnnamed1138(core.List<api.MetricDescriptor> o) { |
2757 unittest.expect(o, unittest.hasLength(2)); | 2786 unittest.expect(o, unittest.hasLength(2)); |
2758 checkMetricDescriptor(o[0]); | 2787 checkMetricDescriptor(o[0]); |
2759 checkMetricDescriptor(o[1]); | 2788 checkMetricDescriptor(o[1]); |
2760 } | 2789 } |
2761 | 2790 |
2762 buildUnnamed1132() { | 2791 buildUnnamed1139() { |
2763 var o = new core.List<api.MonitoredResourceDescriptor>(); | 2792 var o = new core.List<api.MonitoredResourceDescriptor>(); |
2764 o.add(buildMonitoredResourceDescriptor()); | 2793 o.add(buildMonitoredResourceDescriptor()); |
2765 o.add(buildMonitoredResourceDescriptor()); | 2794 o.add(buildMonitoredResourceDescriptor()); |
2766 return o; | 2795 return o; |
2767 } | 2796 } |
2768 | 2797 |
2769 checkUnnamed1132(core.List<api.MonitoredResourceDescriptor> o) { | 2798 checkUnnamed1139(core.List<api.MonitoredResourceDescriptor> o) { |
2770 unittest.expect(o, unittest.hasLength(2)); | 2799 unittest.expect(o, unittest.hasLength(2)); |
2771 checkMonitoredResourceDescriptor(o[0]); | 2800 checkMonitoredResourceDescriptor(o[0]); |
2772 checkMonitoredResourceDescriptor(o[1]); | 2801 checkMonitoredResourceDescriptor(o[1]); |
2773 } | 2802 } |
2774 | 2803 |
2775 buildUnnamed1133() { | 2804 buildUnnamed1140() { |
2776 var o = new core.List<api.Type>(); | 2805 var o = new core.List<api.Type>(); |
2777 o.add(buildType()); | 2806 o.add(buildType()); |
2778 o.add(buildType()); | 2807 o.add(buildType()); |
2779 return o; | 2808 return o; |
2780 } | 2809 } |
2781 | 2810 |
2782 checkUnnamed1133(core.List<api.Type> o) { | 2811 checkUnnamed1140(core.List<api.Type> o) { |
2783 unittest.expect(o, unittest.hasLength(2)); | 2812 unittest.expect(o, unittest.hasLength(2)); |
2784 checkType(o[0]); | 2813 checkType(o[0]); |
2785 checkType(o[1]); | 2814 checkType(o[1]); |
2786 } | 2815 } |
2787 | 2816 |
2788 buildUnnamed1134() { | 2817 buildUnnamed1141() { |
2789 var o = new core.List<api.Type>(); | 2818 var o = new core.List<api.Type>(); |
2790 o.add(buildType()); | 2819 o.add(buildType()); |
2791 o.add(buildType()); | 2820 o.add(buildType()); |
2792 return o; | 2821 return o; |
2793 } | 2822 } |
2794 | 2823 |
2795 checkUnnamed1134(core.List<api.Type> o) { | 2824 checkUnnamed1141(core.List<api.Type> o) { |
2796 unittest.expect(o, unittest.hasLength(2)); | 2825 unittest.expect(o, unittest.hasLength(2)); |
2797 checkType(o[0]); | 2826 checkType(o[0]); |
2798 checkType(o[1]); | 2827 checkType(o[1]); |
2799 } | 2828 } |
2800 | 2829 |
2801 core.int buildCounterService = 0; | 2830 core.int buildCounterService = 0; |
2802 buildService() { | 2831 buildService() { |
2803 var o = new api.Service(); | 2832 var o = new api.Service(); |
2804 buildCounterService++; | 2833 buildCounterService++; |
2805 if (buildCounterService < 3) { | 2834 if (buildCounterService < 3) { |
2806 o.apis = buildUnnamed1127(); | 2835 o.apis = buildUnnamed1134(); |
2807 o.authentication = buildAuthentication(); | 2836 o.authentication = buildAuthentication(); |
2808 o.backend = buildBackend(); | 2837 o.backend = buildBackend(); |
2809 o.configVersion = 42; | 2838 o.configVersion = 42; |
2810 o.context = buildContext(); | 2839 o.context = buildContext(); |
2811 o.control = buildControl(); | 2840 o.control = buildControl(); |
2812 o.customError = buildCustomError(); | 2841 o.customError = buildCustomError(); |
2813 o.documentation = buildDocumentation(); | 2842 o.documentation = buildDocumentation(); |
2814 o.endpoints = buildUnnamed1128(); | 2843 o.endpoints = buildUnnamed1135(); |
2815 o.enums = buildUnnamed1129(); | 2844 o.enums = buildUnnamed1136(); |
2816 o.experimental = buildExperimental(); | 2845 o.experimental = buildExperimental(); |
2817 o.http = buildHttp(); | 2846 o.http = buildHttp(); |
2818 o.id = "foo"; | 2847 o.id = "foo"; |
2819 o.logging = buildLogging(); | 2848 o.logging = buildLogging(); |
2820 o.logs = buildUnnamed1130(); | 2849 o.logs = buildUnnamed1137(); |
2821 o.metrics = buildUnnamed1131(); | 2850 o.metrics = buildUnnamed1138(); |
2822 o.monitoredResources = buildUnnamed1132(); | 2851 o.monitoredResources = buildUnnamed1139(); |
2823 o.monitoring = buildMonitoring(); | 2852 o.monitoring = buildMonitoring(); |
2824 o.name = "foo"; | 2853 o.name = "foo"; |
2825 o.producerProjectId = "foo"; | 2854 o.producerProjectId = "foo"; |
2826 o.quota = buildQuota(); | 2855 o.quota = buildQuota(); |
2827 o.sourceInfo = buildSourceInfo(); | 2856 o.sourceInfo = buildSourceInfo(); |
2828 o.systemParameters = buildSystemParameters(); | 2857 o.systemParameters = buildSystemParameters(); |
2829 o.systemTypes = buildUnnamed1133(); | 2858 o.systemTypes = buildUnnamed1140(); |
2830 o.title = "foo"; | 2859 o.title = "foo"; |
2831 o.types = buildUnnamed1134(); | 2860 o.types = buildUnnamed1141(); |
2832 o.usage = buildUsage(); | 2861 o.usage = buildUsage(); |
2833 o.visibility = buildVisibility(); | 2862 o.visibility = buildVisibility(); |
2834 } | 2863 } |
2835 buildCounterService--; | 2864 buildCounterService--; |
2836 return o; | 2865 return o; |
2837 } | 2866 } |
2838 | 2867 |
2839 checkService(api.Service o) { | 2868 checkService(api.Service o) { |
2840 buildCounterService++; | 2869 buildCounterService++; |
2841 if (buildCounterService < 3) { | 2870 if (buildCounterService < 3) { |
2842 checkUnnamed1127(o.apis); | 2871 checkUnnamed1134(o.apis); |
2843 checkAuthentication(o.authentication); | 2872 checkAuthentication(o.authentication); |
2844 checkBackend(o.backend); | 2873 checkBackend(o.backend); |
2845 unittest.expect(o.configVersion, unittest.equals(42)); | 2874 unittest.expect(o.configVersion, unittest.equals(42)); |
2846 checkContext(o.context); | 2875 checkContext(o.context); |
2847 checkControl(o.control); | 2876 checkControl(o.control); |
2848 checkCustomError(o.customError); | 2877 checkCustomError(o.customError); |
2849 checkDocumentation(o.documentation); | 2878 checkDocumentation(o.documentation); |
2850 checkUnnamed1128(o.endpoints); | 2879 checkUnnamed1135(o.endpoints); |
2851 checkUnnamed1129(o.enums); | 2880 checkUnnamed1136(o.enums); |
2852 checkExperimental(o.experimental); | 2881 checkExperimental(o.experimental); |
2853 checkHttp(o.http); | 2882 checkHttp(o.http); |
2854 unittest.expect(o.id, unittest.equals('foo')); | 2883 unittest.expect(o.id, unittest.equals('foo')); |
2855 checkLogging(o.logging); | 2884 checkLogging(o.logging); |
2856 checkUnnamed1130(o.logs); | 2885 checkUnnamed1137(o.logs); |
2857 checkUnnamed1131(o.metrics); | 2886 checkUnnamed1138(o.metrics); |
2858 checkUnnamed1132(o.monitoredResources); | 2887 checkUnnamed1139(o.monitoredResources); |
2859 checkMonitoring(o.monitoring); | 2888 checkMonitoring(o.monitoring); |
2860 unittest.expect(o.name, unittest.equals('foo')); | 2889 unittest.expect(o.name, unittest.equals('foo')); |
2861 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 2890 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
2862 checkQuota(o.quota); | 2891 checkQuota(o.quota); |
2863 checkSourceInfo(o.sourceInfo); | 2892 checkSourceInfo(o.sourceInfo); |
2864 checkSystemParameters(o.systemParameters); | 2893 checkSystemParameters(o.systemParameters); |
2865 checkUnnamed1133(o.systemTypes); | 2894 checkUnnamed1140(o.systemTypes); |
2866 unittest.expect(o.title, unittest.equals('foo')); | 2895 unittest.expect(o.title, unittest.equals('foo')); |
2867 checkUnnamed1134(o.types); | 2896 checkUnnamed1141(o.types); |
2868 checkUsage(o.usage); | 2897 checkUsage(o.usage); |
2869 checkVisibility(o.visibility); | 2898 checkVisibility(o.visibility); |
2870 } | 2899 } |
2871 buildCounterService--; | 2900 buildCounterService--; |
2872 } | 2901 } |
2873 | 2902 |
2874 core.int buildCounterSetIamPolicyRequest = 0; | 2903 core.int buildCounterSetIamPolicyRequest = 0; |
2875 buildSetIamPolicyRequest() { | 2904 buildSetIamPolicyRequest() { |
2876 var o = new api.SetIamPolicyRequest(); | 2905 var o = new api.SetIamPolicyRequest(); |
2877 buildCounterSetIamPolicyRequest++; | 2906 buildCounterSetIamPolicyRequest++; |
(...skipping 26 matching lines...) Loading... |
2904 } | 2933 } |
2905 | 2934 |
2906 checkSourceContext(api.SourceContext o) { | 2935 checkSourceContext(api.SourceContext o) { |
2907 buildCounterSourceContext++; | 2936 buildCounterSourceContext++; |
2908 if (buildCounterSourceContext < 3) { | 2937 if (buildCounterSourceContext < 3) { |
2909 unittest.expect(o.fileName, unittest.equals('foo')); | 2938 unittest.expect(o.fileName, unittest.equals('foo')); |
2910 } | 2939 } |
2911 buildCounterSourceContext--; | 2940 buildCounterSourceContext--; |
2912 } | 2941 } |
2913 | 2942 |
2914 buildUnnamed1135() { | 2943 buildUnnamed1142() { |
2915 var o = new core.Map<core.String, core.Object>(); | 2944 var o = new core.Map<core.String, core.Object>(); |
2916 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2945 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2917 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2946 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2918 return o; | 2947 return o; |
2919 } | 2948 } |
2920 | 2949 |
2921 checkUnnamed1135(core.Map<core.String, core.Object> o) { | 2950 checkUnnamed1142(core.Map<core.String, core.Object> o) { |
2922 unittest.expect(o, unittest.hasLength(2)); | 2951 unittest.expect(o, unittest.hasLength(2)); |
2923 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')); |
2924 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')); |
2925 } | 2954 } |
2926 | 2955 |
2927 buildUnnamed1136() { | 2956 buildUnnamed1143() { |
2928 var o = new core.List<core.Map<core.String, core.Object>>(); | 2957 var o = new core.List<core.Map<core.String, core.Object>>(); |
2929 o.add(buildUnnamed1135()); | 2958 o.add(buildUnnamed1142()); |
2930 o.add(buildUnnamed1135()); | 2959 o.add(buildUnnamed1142()); |
2931 return o; | 2960 return o; |
2932 } | 2961 } |
2933 | 2962 |
2934 checkUnnamed1136(core.List<core.Map<core.String, core.Object>> o) { | 2963 checkUnnamed1143(core.List<core.Map<core.String, core.Object>> o) { |
2935 unittest.expect(o, unittest.hasLength(2)); | 2964 unittest.expect(o, unittest.hasLength(2)); |
2936 checkUnnamed1135(o[0]); | 2965 checkUnnamed1142(o[0]); |
2937 checkUnnamed1135(o[1]); | 2966 checkUnnamed1142(o[1]); |
2938 } | 2967 } |
2939 | 2968 |
2940 core.int buildCounterSourceInfo = 0; | 2969 core.int buildCounterSourceInfo = 0; |
2941 buildSourceInfo() { | 2970 buildSourceInfo() { |
2942 var o = new api.SourceInfo(); | 2971 var o = new api.SourceInfo(); |
2943 buildCounterSourceInfo++; | 2972 buildCounterSourceInfo++; |
2944 if (buildCounterSourceInfo < 3) { | 2973 if (buildCounterSourceInfo < 3) { |
2945 o.sourceFiles = buildUnnamed1136(); | 2974 o.sourceFiles = buildUnnamed1143(); |
2946 } | 2975 } |
2947 buildCounterSourceInfo--; | 2976 buildCounterSourceInfo--; |
2948 return o; | 2977 return o; |
2949 } | 2978 } |
2950 | 2979 |
2951 checkSourceInfo(api.SourceInfo o) { | 2980 checkSourceInfo(api.SourceInfo o) { |
2952 buildCounterSourceInfo++; | 2981 buildCounterSourceInfo++; |
2953 if (buildCounterSourceInfo < 3) { | 2982 if (buildCounterSourceInfo < 3) { |
2954 checkUnnamed1136(o.sourceFiles); | 2983 checkUnnamed1143(o.sourceFiles); |
2955 } | 2984 } |
2956 buildCounterSourceInfo--; | 2985 buildCounterSourceInfo--; |
2957 } | 2986 } |
2958 | 2987 |
2959 buildUnnamed1137() { | 2988 buildUnnamed1144() { |
2960 var o = new core.Map<core.String, core.Object>(); | 2989 var o = new core.Map<core.String, core.Object>(); |
2961 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2990 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2962 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2991 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2963 return o; | 2992 return o; |
2964 } | 2993 } |
2965 | 2994 |
2966 checkUnnamed1137(core.Map<core.String, core.Object> o) { | 2995 checkUnnamed1144(core.Map<core.String, core.Object> o) { |
2967 unittest.expect(o, unittest.hasLength(2)); | 2996 unittest.expect(o, unittest.hasLength(2)); |
2968 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')); |
2969 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')); |
2970 } | 2999 } |
2971 | 3000 |
2972 buildUnnamed1138() { | 3001 buildUnnamed1145() { |
2973 var o = new core.List<core.Map<core.String, core.Object>>(); | 3002 var o = new core.List<core.Map<core.String, core.Object>>(); |
2974 o.add(buildUnnamed1137()); | 3003 o.add(buildUnnamed1144()); |
2975 o.add(buildUnnamed1137()); | 3004 o.add(buildUnnamed1144()); |
2976 return o; | 3005 return o; |
2977 } | 3006 } |
2978 | 3007 |
2979 checkUnnamed1138(core.List<core.Map<core.String, core.Object>> o) { | 3008 checkUnnamed1145(core.List<core.Map<core.String, core.Object>> o) { |
2980 unittest.expect(o, unittest.hasLength(2)); | 3009 unittest.expect(o, unittest.hasLength(2)); |
2981 checkUnnamed1137(o[0]); | 3010 checkUnnamed1144(o[0]); |
2982 checkUnnamed1137(o[1]); | 3011 checkUnnamed1144(o[1]); |
2983 } | 3012 } |
2984 | 3013 |
2985 core.int buildCounterStatus = 0; | 3014 core.int buildCounterStatus = 0; |
2986 buildStatus() { | 3015 buildStatus() { |
2987 var o = new api.Status(); | 3016 var o = new api.Status(); |
2988 buildCounterStatus++; | 3017 buildCounterStatus++; |
2989 if (buildCounterStatus < 3) { | 3018 if (buildCounterStatus < 3) { |
2990 o.code = 42; | 3019 o.code = 42; |
2991 o.details = buildUnnamed1138(); | 3020 o.details = buildUnnamed1145(); |
2992 o.message = "foo"; | 3021 o.message = "foo"; |
2993 } | 3022 } |
2994 buildCounterStatus--; | 3023 buildCounterStatus--; |
2995 return o; | 3024 return o; |
2996 } | 3025 } |
2997 | 3026 |
2998 checkStatus(api.Status o) { | 3027 checkStatus(api.Status o) { |
2999 buildCounterStatus++; | 3028 buildCounterStatus++; |
3000 if (buildCounterStatus < 3) { | 3029 if (buildCounterStatus < 3) { |
3001 unittest.expect(o.code, unittest.equals(42)); | 3030 unittest.expect(o.code, unittest.equals(42)); |
3002 checkUnnamed1138(o.details); | 3031 checkUnnamed1145(o.details); |
3003 unittest.expect(o.message, unittest.equals('foo')); | 3032 unittest.expect(o.message, unittest.equals('foo')); |
3004 } | 3033 } |
3005 buildCounterStatus--; | 3034 buildCounterStatus--; |
3006 } | 3035 } |
3007 | 3036 |
3008 core.int buildCounterStep = 0; | 3037 core.int buildCounterStep = 0; |
3009 buildStep() { | 3038 buildStep() { |
3010 var o = new api.Step(); | 3039 var o = new api.Step(); |
3011 buildCounterStep++; | 3040 buildCounterStep++; |
3012 if (buildCounterStep < 3) { | 3041 if (buildCounterStep < 3) { |
(...skipping 69 matching lines...) Loading... |
3082 checkSystemParameter(api.SystemParameter o) { | 3111 checkSystemParameter(api.SystemParameter o) { |
3083 buildCounterSystemParameter++; | 3112 buildCounterSystemParameter++; |
3084 if (buildCounterSystemParameter < 3) { | 3113 if (buildCounterSystemParameter < 3) { |
3085 unittest.expect(o.httpHeader, unittest.equals('foo')); | 3114 unittest.expect(o.httpHeader, unittest.equals('foo')); |
3086 unittest.expect(o.name, unittest.equals('foo')); | 3115 unittest.expect(o.name, unittest.equals('foo')); |
3087 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 3116 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
3088 } | 3117 } |
3089 buildCounterSystemParameter--; | 3118 buildCounterSystemParameter--; |
3090 } | 3119 } |
3091 | 3120 |
3092 buildUnnamed1139() { | 3121 buildUnnamed1146() { |
3093 var o = new core.List<api.SystemParameter>(); | 3122 var o = new core.List<api.SystemParameter>(); |
3094 o.add(buildSystemParameter()); | 3123 o.add(buildSystemParameter()); |
3095 o.add(buildSystemParameter()); | 3124 o.add(buildSystemParameter()); |
3096 return o; | 3125 return o; |
3097 } | 3126 } |
3098 | 3127 |
3099 checkUnnamed1139(core.List<api.SystemParameter> o) { | 3128 checkUnnamed1146(core.List<api.SystemParameter> o) { |
3100 unittest.expect(o, unittest.hasLength(2)); | 3129 unittest.expect(o, unittest.hasLength(2)); |
3101 checkSystemParameter(o[0]); | 3130 checkSystemParameter(o[0]); |
3102 checkSystemParameter(o[1]); | 3131 checkSystemParameter(o[1]); |
3103 } | 3132 } |
3104 | 3133 |
3105 core.int buildCounterSystemParameterRule = 0; | 3134 core.int buildCounterSystemParameterRule = 0; |
3106 buildSystemParameterRule() { | 3135 buildSystemParameterRule() { |
3107 var o = new api.SystemParameterRule(); | 3136 var o = new api.SystemParameterRule(); |
3108 buildCounterSystemParameterRule++; | 3137 buildCounterSystemParameterRule++; |
3109 if (buildCounterSystemParameterRule < 3) { | 3138 if (buildCounterSystemParameterRule < 3) { |
3110 o.parameters = buildUnnamed1139(); | 3139 o.parameters = buildUnnamed1146(); |
3111 o.selector = "foo"; | 3140 o.selector = "foo"; |
3112 } | 3141 } |
3113 buildCounterSystemParameterRule--; | 3142 buildCounterSystemParameterRule--; |
3114 return o; | 3143 return o; |
3115 } | 3144 } |
3116 | 3145 |
3117 checkSystemParameterRule(api.SystemParameterRule o) { | 3146 checkSystemParameterRule(api.SystemParameterRule o) { |
3118 buildCounterSystemParameterRule++; | 3147 buildCounterSystemParameterRule++; |
3119 if (buildCounterSystemParameterRule < 3) { | 3148 if (buildCounterSystemParameterRule < 3) { |
3120 checkUnnamed1139(o.parameters); | 3149 checkUnnamed1146(o.parameters); |
3121 unittest.expect(o.selector, unittest.equals('foo')); | 3150 unittest.expect(o.selector, unittest.equals('foo')); |
3122 } | 3151 } |
3123 buildCounterSystemParameterRule--; | 3152 buildCounterSystemParameterRule--; |
3124 } | 3153 } |
3125 | 3154 |
3126 buildUnnamed1140() { | 3155 buildUnnamed1147() { |
3127 var o = new core.List<api.SystemParameterRule>(); | 3156 var o = new core.List<api.SystemParameterRule>(); |
3128 o.add(buildSystemParameterRule()); | 3157 o.add(buildSystemParameterRule()); |
3129 o.add(buildSystemParameterRule()); | 3158 o.add(buildSystemParameterRule()); |
3130 return o; | 3159 return o; |
3131 } | 3160 } |
3132 | 3161 |
3133 checkUnnamed1140(core.List<api.SystemParameterRule> o) { | 3162 checkUnnamed1147(core.List<api.SystemParameterRule> o) { |
3134 unittest.expect(o, unittest.hasLength(2)); | 3163 unittest.expect(o, unittest.hasLength(2)); |
3135 checkSystemParameterRule(o[0]); | 3164 checkSystemParameterRule(o[0]); |
3136 checkSystemParameterRule(o[1]); | 3165 checkSystemParameterRule(o[1]); |
3137 } | 3166 } |
3138 | 3167 |
3139 core.int buildCounterSystemParameters = 0; | 3168 core.int buildCounterSystemParameters = 0; |
3140 buildSystemParameters() { | 3169 buildSystemParameters() { |
3141 var o = new api.SystemParameters(); | 3170 var o = new api.SystemParameters(); |
3142 buildCounterSystemParameters++; | 3171 buildCounterSystemParameters++; |
3143 if (buildCounterSystemParameters < 3) { | 3172 if (buildCounterSystemParameters < 3) { |
3144 o.rules = buildUnnamed1140(); | 3173 o.rules = buildUnnamed1147(); |
3145 } | 3174 } |
3146 buildCounterSystemParameters--; | 3175 buildCounterSystemParameters--; |
3147 return o; | 3176 return o; |
3148 } | 3177 } |
3149 | 3178 |
3150 checkSystemParameters(api.SystemParameters o) { | 3179 checkSystemParameters(api.SystemParameters o) { |
3151 buildCounterSystemParameters++; | 3180 buildCounterSystemParameters++; |
3152 if (buildCounterSystemParameters < 3) { | 3181 if (buildCounterSystemParameters < 3) { |
3153 checkUnnamed1140(o.rules); | 3182 checkUnnamed1147(o.rules); |
3154 } | 3183 } |
3155 buildCounterSystemParameters--; | 3184 buildCounterSystemParameters--; |
3156 } | 3185 } |
3157 | 3186 |
3158 buildUnnamed1141() { | 3187 buildUnnamed1148() { |
3159 var o = new core.List<core.String>(); | 3188 var o = new core.List<core.String>(); |
3160 o.add("foo"); | 3189 o.add("foo"); |
3161 o.add("foo"); | 3190 o.add("foo"); |
3162 return o; | 3191 return o; |
3163 } | 3192 } |
3164 | 3193 |
3165 checkUnnamed1141(core.List<core.String> o) { | 3194 checkUnnamed1148(core.List<core.String> o) { |
3166 unittest.expect(o, unittest.hasLength(2)); | 3195 unittest.expect(o, unittest.hasLength(2)); |
3167 unittest.expect(o[0], unittest.equals('foo')); | 3196 unittest.expect(o[0], unittest.equals('foo')); |
3168 unittest.expect(o[1], unittest.equals('foo')); | 3197 unittest.expect(o[1], unittest.equals('foo')); |
3169 } | 3198 } |
3170 | 3199 |
3171 core.int buildCounterTestIamPermissionsRequest = 0; | 3200 core.int buildCounterTestIamPermissionsRequest = 0; |
3172 buildTestIamPermissionsRequest() { | 3201 buildTestIamPermissionsRequest() { |
3173 var o = new api.TestIamPermissionsRequest(); | 3202 var o = new api.TestIamPermissionsRequest(); |
3174 buildCounterTestIamPermissionsRequest++; | 3203 buildCounterTestIamPermissionsRequest++; |
3175 if (buildCounterTestIamPermissionsRequest < 3) { | 3204 if (buildCounterTestIamPermissionsRequest < 3) { |
3176 o.permissions = buildUnnamed1141(); | 3205 o.permissions = buildUnnamed1148(); |
3177 } | 3206 } |
3178 buildCounterTestIamPermissionsRequest--; | 3207 buildCounterTestIamPermissionsRequest--; |
3179 return o; | 3208 return o; |
3180 } | 3209 } |
3181 | 3210 |
3182 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 3211 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
3183 buildCounterTestIamPermissionsRequest++; | 3212 buildCounterTestIamPermissionsRequest++; |
3184 if (buildCounterTestIamPermissionsRequest < 3) { | 3213 if (buildCounterTestIamPermissionsRequest < 3) { |
3185 checkUnnamed1141(o.permissions); | 3214 checkUnnamed1148(o.permissions); |
3186 } | 3215 } |
3187 buildCounterTestIamPermissionsRequest--; | 3216 buildCounterTestIamPermissionsRequest--; |
3188 } | 3217 } |
3189 | 3218 |
3190 buildUnnamed1142() { | 3219 buildUnnamed1149() { |
3191 var o = new core.List<core.String>(); | 3220 var o = new core.List<core.String>(); |
3192 o.add("foo"); | 3221 o.add("foo"); |
3193 o.add("foo"); | 3222 o.add("foo"); |
3194 return o; | 3223 return o; |
3195 } | 3224 } |
3196 | 3225 |
3197 checkUnnamed1142(core.List<core.String> o) { | 3226 checkUnnamed1149(core.List<core.String> o) { |
3198 unittest.expect(o, unittest.hasLength(2)); | 3227 unittest.expect(o, unittest.hasLength(2)); |
3199 unittest.expect(o[0], unittest.equals('foo')); | 3228 unittest.expect(o[0], unittest.equals('foo')); |
3200 unittest.expect(o[1], unittest.equals('foo')); | 3229 unittest.expect(o[1], unittest.equals('foo')); |
3201 } | 3230 } |
3202 | 3231 |
3203 core.int buildCounterTestIamPermissionsResponse = 0; | 3232 core.int buildCounterTestIamPermissionsResponse = 0; |
3204 buildTestIamPermissionsResponse() { | 3233 buildTestIamPermissionsResponse() { |
3205 var o = new api.TestIamPermissionsResponse(); | 3234 var o = new api.TestIamPermissionsResponse(); |
3206 buildCounterTestIamPermissionsResponse++; | 3235 buildCounterTestIamPermissionsResponse++; |
3207 if (buildCounterTestIamPermissionsResponse < 3) { | 3236 if (buildCounterTestIamPermissionsResponse < 3) { |
3208 o.permissions = buildUnnamed1142(); | 3237 o.permissions = buildUnnamed1149(); |
3209 } | 3238 } |
3210 buildCounterTestIamPermissionsResponse--; | 3239 buildCounterTestIamPermissionsResponse--; |
3211 return o; | 3240 return o; |
3212 } | 3241 } |
3213 | 3242 |
3214 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 3243 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
3215 buildCounterTestIamPermissionsResponse++; | 3244 buildCounterTestIamPermissionsResponse++; |
3216 if (buildCounterTestIamPermissionsResponse < 3) { | 3245 if (buildCounterTestIamPermissionsResponse < 3) { |
3217 checkUnnamed1142(o.permissions); | 3246 checkUnnamed1149(o.permissions); |
3218 } | 3247 } |
3219 buildCounterTestIamPermissionsResponse--; | 3248 buildCounterTestIamPermissionsResponse--; |
3220 } | 3249 } |
3221 | 3250 |
3222 buildUnnamed1143() { | 3251 buildUnnamed1150() { |
3223 var o = new core.Map<core.String, core.double>(); | 3252 var o = new core.Map<core.String, core.double>(); |
3224 o["x"] = 42.0; | 3253 o["x"] = 42.0; |
3225 o["y"] = 42.0; | 3254 o["y"] = 42.0; |
3226 return o; | 3255 return o; |
3227 } | 3256 } |
3228 | 3257 |
3229 checkUnnamed1143(core.Map<core.String, core.double> o) { | 3258 checkUnnamed1150(core.Map<core.String, core.double> o) { |
3230 unittest.expect(o, unittest.hasLength(2)); | 3259 unittest.expect(o, unittest.hasLength(2)); |
3231 unittest.expect(o["x"], unittest.equals(42.0)); | 3260 unittest.expect(o["x"], unittest.equals(42.0)); |
3232 unittest.expect(o["y"], unittest.equals(42.0)); | 3261 unittest.expect(o["y"], unittest.equals(42.0)); |
3233 } | 3262 } |
3234 | 3263 |
3235 core.int buildCounterTrafficPercentStrategy = 0; | 3264 core.int buildCounterTrafficPercentStrategy = 0; |
3236 buildTrafficPercentStrategy() { | 3265 buildTrafficPercentStrategy() { |
3237 var o = new api.TrafficPercentStrategy(); | 3266 var o = new api.TrafficPercentStrategy(); |
3238 buildCounterTrafficPercentStrategy++; | 3267 buildCounterTrafficPercentStrategy++; |
3239 if (buildCounterTrafficPercentStrategy < 3) { | 3268 if (buildCounterTrafficPercentStrategy < 3) { |
3240 o.percentages = buildUnnamed1143(); | 3269 o.percentages = buildUnnamed1150(); |
3241 } | 3270 } |
3242 buildCounterTrafficPercentStrategy--; | 3271 buildCounterTrafficPercentStrategy--; |
3243 return o; | 3272 return o; |
3244 } | 3273 } |
3245 | 3274 |
3246 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { | 3275 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { |
3247 buildCounterTrafficPercentStrategy++; | 3276 buildCounterTrafficPercentStrategy++; |
3248 if (buildCounterTrafficPercentStrategy < 3) { | 3277 if (buildCounterTrafficPercentStrategy < 3) { |
3249 checkUnnamed1143(o.percentages); | 3278 checkUnnamed1150(o.percentages); |
3250 } | 3279 } |
3251 buildCounterTrafficPercentStrategy--; | 3280 buildCounterTrafficPercentStrategy--; |
3252 } | 3281 } |
3253 | 3282 |
3254 buildUnnamed1144() { | 3283 buildUnnamed1151() { |
3255 var o = new core.List<api.Field>(); | 3284 var o = new core.List<api.Field>(); |
3256 o.add(buildField()); | 3285 o.add(buildField()); |
3257 o.add(buildField()); | 3286 o.add(buildField()); |
3258 return o; | 3287 return o; |
3259 } | 3288 } |
3260 | 3289 |
3261 checkUnnamed1144(core.List<api.Field> o) { | 3290 checkUnnamed1151(core.List<api.Field> o) { |
3262 unittest.expect(o, unittest.hasLength(2)); | 3291 unittest.expect(o, unittest.hasLength(2)); |
3263 checkField(o[0]); | 3292 checkField(o[0]); |
3264 checkField(o[1]); | 3293 checkField(o[1]); |
3265 } | 3294 } |
3266 | 3295 |
3267 buildUnnamed1145() { | 3296 buildUnnamed1152() { |
3268 var o = new core.List<core.String>(); | 3297 var o = new core.List<core.String>(); |
3269 o.add("foo"); | 3298 o.add("foo"); |
3270 o.add("foo"); | 3299 o.add("foo"); |
3271 return o; | 3300 return o; |
3272 } | 3301 } |
3273 | 3302 |
3274 checkUnnamed1145(core.List<core.String> o) { | 3303 checkUnnamed1152(core.List<core.String> o) { |
3275 unittest.expect(o, unittest.hasLength(2)); | 3304 unittest.expect(o, unittest.hasLength(2)); |
3276 unittest.expect(o[0], unittest.equals('foo')); | 3305 unittest.expect(o[0], unittest.equals('foo')); |
3277 unittest.expect(o[1], unittest.equals('foo')); | 3306 unittest.expect(o[1], unittest.equals('foo')); |
3278 } | 3307 } |
3279 | 3308 |
3280 buildUnnamed1146() { | 3309 buildUnnamed1153() { |
3281 var o = new core.List<api.Option>(); | 3310 var o = new core.List<api.Option>(); |
3282 o.add(buildOption()); | 3311 o.add(buildOption()); |
3283 o.add(buildOption()); | 3312 o.add(buildOption()); |
3284 return o; | 3313 return o; |
3285 } | 3314 } |
3286 | 3315 |
3287 checkUnnamed1146(core.List<api.Option> o) { | 3316 checkUnnamed1153(core.List<api.Option> o) { |
3288 unittest.expect(o, unittest.hasLength(2)); | 3317 unittest.expect(o, unittest.hasLength(2)); |
3289 checkOption(o[0]); | 3318 checkOption(o[0]); |
3290 checkOption(o[1]); | 3319 checkOption(o[1]); |
3291 } | 3320 } |
3292 | 3321 |
3293 core.int buildCounterType = 0; | 3322 core.int buildCounterType = 0; |
3294 buildType() { | 3323 buildType() { |
3295 var o = new api.Type(); | 3324 var o = new api.Type(); |
3296 buildCounterType++; | 3325 buildCounterType++; |
3297 if (buildCounterType < 3) { | 3326 if (buildCounterType < 3) { |
3298 o.fields = buildUnnamed1144(); | 3327 o.fields = buildUnnamed1151(); |
3299 o.name = "foo"; | 3328 o.name = "foo"; |
3300 o.oneofs = buildUnnamed1145(); | 3329 o.oneofs = buildUnnamed1152(); |
3301 o.options = buildUnnamed1146(); | 3330 o.options = buildUnnamed1153(); |
3302 o.sourceContext = buildSourceContext(); | 3331 o.sourceContext = buildSourceContext(); |
3303 o.syntax = "foo"; | 3332 o.syntax = "foo"; |
3304 } | 3333 } |
3305 buildCounterType--; | 3334 buildCounterType--; |
3306 return o; | 3335 return o; |
3307 } | 3336 } |
3308 | 3337 |
3309 checkType(api.Type o) { | 3338 checkType(api.Type o) { |
3310 buildCounterType++; | 3339 buildCounterType++; |
3311 if (buildCounterType < 3) { | 3340 if (buildCounterType < 3) { |
3312 checkUnnamed1144(o.fields); | 3341 checkUnnamed1151(o.fields); |
3313 unittest.expect(o.name, unittest.equals('foo')); | 3342 unittest.expect(o.name, unittest.equals('foo')); |
3314 checkUnnamed1145(o.oneofs); | 3343 checkUnnamed1152(o.oneofs); |
3315 checkUnnamed1146(o.options); | 3344 checkUnnamed1153(o.options); |
3316 checkSourceContext(o.sourceContext); | 3345 checkSourceContext(o.sourceContext); |
3317 unittest.expect(o.syntax, unittest.equals('foo')); | 3346 unittest.expect(o.syntax, unittest.equals('foo')); |
3318 } | 3347 } |
3319 buildCounterType--; | 3348 buildCounterType--; |
3320 } | 3349 } |
3321 | 3350 |
3322 core.int buildCounterUndeleteServiceResponse = 0; | 3351 core.int buildCounterUndeleteServiceResponse = 0; |
3323 buildUndeleteServiceResponse() { | 3352 buildUndeleteServiceResponse() { |
3324 var o = new api.UndeleteServiceResponse(); | 3353 var o = new api.UndeleteServiceResponse(); |
3325 buildCounterUndeleteServiceResponse++; | 3354 buildCounterUndeleteServiceResponse++; |
3326 if (buildCounterUndeleteServiceResponse < 3) { | 3355 if (buildCounterUndeleteServiceResponse < 3) { |
3327 o.service = buildManagedService(); | 3356 o.service = buildManagedService(); |
3328 } | 3357 } |
3329 buildCounterUndeleteServiceResponse--; | 3358 buildCounterUndeleteServiceResponse--; |
3330 return o; | 3359 return o; |
3331 } | 3360 } |
3332 | 3361 |
3333 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { | 3362 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { |
3334 buildCounterUndeleteServiceResponse++; | 3363 buildCounterUndeleteServiceResponse++; |
3335 if (buildCounterUndeleteServiceResponse < 3) { | 3364 if (buildCounterUndeleteServiceResponse < 3) { |
3336 checkManagedService(o.service); | 3365 checkManagedService(o.service); |
3337 } | 3366 } |
3338 buildCounterUndeleteServiceResponse--; | 3367 buildCounterUndeleteServiceResponse--; |
3339 } | 3368 } |
3340 | 3369 |
3341 buildUnnamed1147() { | 3370 buildUnnamed1154() { |
3342 var o = new core.List<core.String>(); | 3371 var o = new core.List<core.String>(); |
3343 o.add("foo"); | 3372 o.add("foo"); |
3344 o.add("foo"); | 3373 o.add("foo"); |
3345 return o; | 3374 return o; |
3346 } | 3375 } |
3347 | 3376 |
3348 checkUnnamed1147(core.List<core.String> o) { | 3377 checkUnnamed1154(core.List<core.String> o) { |
3349 unittest.expect(o, unittest.hasLength(2)); | 3378 unittest.expect(o, unittest.hasLength(2)); |
3350 unittest.expect(o[0], unittest.equals('foo')); | 3379 unittest.expect(o[0], unittest.equals('foo')); |
3351 unittest.expect(o[1], unittest.equals('foo')); | 3380 unittest.expect(o[1], unittest.equals('foo')); |
3352 } | 3381 } |
3353 | 3382 |
3354 buildUnnamed1148() { | 3383 buildUnnamed1155() { |
3355 var o = new core.List<api.UsageRule>(); | 3384 var o = new core.List<api.UsageRule>(); |
3356 o.add(buildUsageRule()); | 3385 o.add(buildUsageRule()); |
3357 o.add(buildUsageRule()); | 3386 o.add(buildUsageRule()); |
3358 return o; | 3387 return o; |
3359 } | 3388 } |
3360 | 3389 |
3361 checkUnnamed1148(core.List<api.UsageRule> o) { | 3390 checkUnnamed1155(core.List<api.UsageRule> o) { |
3362 unittest.expect(o, unittest.hasLength(2)); | 3391 unittest.expect(o, unittest.hasLength(2)); |
3363 checkUsageRule(o[0]); | 3392 checkUsageRule(o[0]); |
3364 checkUsageRule(o[1]); | 3393 checkUsageRule(o[1]); |
3365 } | 3394 } |
3366 | 3395 |
3367 core.int buildCounterUsage = 0; | 3396 core.int buildCounterUsage = 0; |
3368 buildUsage() { | 3397 buildUsage() { |
3369 var o = new api.Usage(); | 3398 var o = new api.Usage(); |
3370 buildCounterUsage++; | 3399 buildCounterUsage++; |
3371 if (buildCounterUsage < 3) { | 3400 if (buildCounterUsage < 3) { |
3372 o.producerNotificationChannel = "foo"; | 3401 o.producerNotificationChannel = "foo"; |
3373 o.requirements = buildUnnamed1147(); | 3402 o.requirements = buildUnnamed1154(); |
3374 o.rules = buildUnnamed1148(); | 3403 o.rules = buildUnnamed1155(); |
3375 } | 3404 } |
3376 buildCounterUsage--; | 3405 buildCounterUsage--; |
3377 return o; | 3406 return o; |
3378 } | 3407 } |
3379 | 3408 |
3380 checkUsage(api.Usage o) { | 3409 checkUsage(api.Usage o) { |
3381 buildCounterUsage++; | 3410 buildCounterUsage++; |
3382 if (buildCounterUsage < 3) { | 3411 if (buildCounterUsage < 3) { |
3383 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 3412 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
3384 checkUnnamed1147(o.requirements); | 3413 checkUnnamed1154(o.requirements); |
3385 checkUnnamed1148(o.rules); | 3414 checkUnnamed1155(o.rules); |
3386 } | 3415 } |
3387 buildCounterUsage--; | 3416 buildCounterUsage--; |
3388 } | 3417 } |
3389 | 3418 |
3390 core.int buildCounterUsageRule = 0; | 3419 core.int buildCounterUsageRule = 0; |
3391 buildUsageRule() { | 3420 buildUsageRule() { |
3392 var o = new api.UsageRule(); | 3421 var o = new api.UsageRule(); |
3393 buildCounterUsageRule++; | 3422 buildCounterUsageRule++; |
3394 if (buildCounterUsageRule < 3) { | 3423 if (buildCounterUsageRule < 3) { |
3395 o.allowUnregisteredCalls = true; | 3424 o.allowUnregisteredCalls = true; |
3396 o.selector = "foo"; | 3425 o.selector = "foo"; |
3397 } | 3426 } |
3398 buildCounterUsageRule--; | 3427 buildCounterUsageRule--; |
3399 return o; | 3428 return o; |
3400 } | 3429 } |
3401 | 3430 |
3402 checkUsageRule(api.UsageRule o) { | 3431 checkUsageRule(api.UsageRule o) { |
3403 buildCounterUsageRule++; | 3432 buildCounterUsageRule++; |
3404 if (buildCounterUsageRule < 3) { | 3433 if (buildCounterUsageRule < 3) { |
3405 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 3434 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
3406 unittest.expect(o.selector, unittest.equals('foo')); | 3435 unittest.expect(o.selector, unittest.equals('foo')); |
3407 } | 3436 } |
3408 buildCounterUsageRule--; | 3437 buildCounterUsageRule--; |
3409 } | 3438 } |
3410 | 3439 |
3411 buildUnnamed1149() { | 3440 buildUnnamed1156() { |
3412 var o = new core.List<api.VisibilityRule>(); | 3441 var o = new core.List<api.VisibilityRule>(); |
3413 o.add(buildVisibilityRule()); | 3442 o.add(buildVisibilityRule()); |
3414 o.add(buildVisibilityRule()); | 3443 o.add(buildVisibilityRule()); |
3415 return o; | 3444 return o; |
3416 } | 3445 } |
3417 | 3446 |
3418 checkUnnamed1149(core.List<api.VisibilityRule> o) { | 3447 checkUnnamed1156(core.List<api.VisibilityRule> o) { |
3419 unittest.expect(o, unittest.hasLength(2)); | 3448 unittest.expect(o, unittest.hasLength(2)); |
3420 checkVisibilityRule(o[0]); | 3449 checkVisibilityRule(o[0]); |
3421 checkVisibilityRule(o[1]); | 3450 checkVisibilityRule(o[1]); |
3422 } | 3451 } |
3423 | 3452 |
3424 core.int buildCounterVisibility = 0; | 3453 core.int buildCounterVisibility = 0; |
3425 buildVisibility() { | 3454 buildVisibility() { |
3426 var o = new api.Visibility(); | 3455 var o = new api.Visibility(); |
3427 buildCounterVisibility++; | 3456 buildCounterVisibility++; |
3428 if (buildCounterVisibility < 3) { | 3457 if (buildCounterVisibility < 3) { |
3429 o.rules = buildUnnamed1149(); | 3458 o.rules = buildUnnamed1156(); |
3430 } | 3459 } |
3431 buildCounterVisibility--; | 3460 buildCounterVisibility--; |
3432 return o; | 3461 return o; |
3433 } | 3462 } |
3434 | 3463 |
3435 checkVisibility(api.Visibility o) { | 3464 checkVisibility(api.Visibility o) { |
3436 buildCounterVisibility++; | 3465 buildCounterVisibility++; |
3437 if (buildCounterVisibility < 3) { | 3466 if (buildCounterVisibility < 3) { |
3438 checkUnnamed1149(o.rules); | 3467 checkUnnamed1156(o.rules); |
3439 } | 3468 } |
3440 buildCounterVisibility--; | 3469 buildCounterVisibility--; |
3441 } | 3470 } |
3442 | 3471 |
3443 core.int buildCounterVisibilityRule = 0; | 3472 core.int buildCounterVisibilityRule = 0; |
3444 buildVisibilityRule() { | 3473 buildVisibilityRule() { |
3445 var o = new api.VisibilityRule(); | 3474 var o = new api.VisibilityRule(); |
3446 buildCounterVisibilityRule++; | 3475 buildCounterVisibilityRule++; |
3447 if (buildCounterVisibilityRule < 3) { | 3476 if (buildCounterVisibilityRule < 3) { |
3448 o.restriction = "foo"; | 3477 o.restriction = "foo"; |
(...skipping 349 matching lines...) Loading... |
3798 | 3827 |
3799 unittest.group("obj-schema-Experimental", () { | 3828 unittest.group("obj-schema-Experimental", () { |
3800 unittest.test("to-json--from-json", () { | 3829 unittest.test("to-json--from-json", () { |
3801 var o = buildExperimental(); | 3830 var o = buildExperimental(); |
3802 var od = new api.Experimental.fromJson(o.toJson()); | 3831 var od = new api.Experimental.fromJson(o.toJson()); |
3803 checkExperimental(od); | 3832 checkExperimental(od); |
3804 }); | 3833 }); |
3805 }); | 3834 }); |
3806 | 3835 |
3807 | 3836 |
| 3837 unittest.group("obj-schema-Expr", () { |
| 3838 unittest.test("to-json--from-json", () { |
| 3839 var o = buildExpr(); |
| 3840 var od = new api.Expr.fromJson(o.toJson()); |
| 3841 checkExpr(od); |
| 3842 }); |
| 3843 }); |
| 3844 |
| 3845 |
3808 unittest.group("obj-schema-Field", () { | 3846 unittest.group("obj-schema-Field", () { |
3809 unittest.test("to-json--from-json", () { | 3847 unittest.test("to-json--from-json", () { |
3810 var o = buildField(); | 3848 var o = buildField(); |
3811 var od = new api.Field.fromJson(o.toJson()); | 3849 var od = new api.Field.fromJson(o.toJson()); |
3812 checkField(od); | 3850 checkField(od); |
3813 }); | 3851 }); |
3814 }); | 3852 }); |
3815 | 3853 |
3816 | 3854 |
3817 unittest.group("obj-schema-FlowOperationMetadata", () { | 3855 unittest.group("obj-schema-FlowOperationMetadata", () { |
(...skipping 490 matching lines...) Loading... |
4308 }); | 4346 }); |
4309 }); | 4347 }); |
4310 | 4348 |
4311 | 4349 |
4312 unittest.group("resource-OperationsResourceApi", () { | 4350 unittest.group("resource-OperationsResourceApi", () { |
4313 unittest.test("method--get", () { | 4351 unittest.test("method--get", () { |
4314 | 4352 |
4315 var mock = new HttpServerMock(); | 4353 var mock = new HttpServerMock(); |
4316 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; | 4354 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; |
4317 var arg_name = "foo"; | 4355 var arg_name = "foo"; |
4318 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4356 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4319 var path = (req.url).path; | 4357 var path = (req.url).path; |
4320 var pathOffset = 0; | 4358 var pathOffset = 0; |
4321 var index; | 4359 var index; |
4322 var subPart; | 4360 var subPart; |
4323 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4361 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4324 pathOffset += 1; | 4362 pathOffset += 1; |
4325 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4363 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
4326 pathOffset += 3; | 4364 pathOffset += 3; |
4327 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 4365 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
4328 | 4366 |
(...skipping 14 matching lines...) Loading... |
4343 } | 4381 } |
4344 } | 4382 } |
4345 | 4383 |
4346 | 4384 |
4347 var h = { | 4385 var h = { |
4348 "content-type" : "application/json; charset=utf-8", | 4386 "content-type" : "application/json; charset=utf-8", |
4349 }; | 4387 }; |
4350 var resp = convert.JSON.encode(buildOperation()); | 4388 var resp = convert.JSON.encode(buildOperation()); |
4351 return new async.Future.value(stringResponse(200, h, resp)); | 4389 return new async.Future.value(stringResponse(200, h, resp)); |
4352 }), true); | 4390 }), true); |
4353 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 4391 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
4354 checkOperation(response); | 4392 checkOperation(response); |
4355 }))); | 4393 }))); |
4356 }); | 4394 }); |
4357 | 4395 |
4358 unittest.test("method--list", () { | 4396 unittest.test("method--list", () { |
4359 | 4397 |
4360 var mock = new HttpServerMock(); | 4398 var mock = new HttpServerMock(); |
4361 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; | 4399 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; |
4362 var arg_name = "foo"; | 4400 var arg_name = "foo"; |
4363 var arg_pageToken = "foo"; | 4401 var arg_pageToken = "foo"; |
4364 var arg_pageSize = 42; | 4402 var arg_pageSize = 42; |
4365 var arg_filter = "foo"; | 4403 var arg_filter = "foo"; |
4366 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4404 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4367 var path = (req.url).path; | 4405 var path = (req.url).path; |
4368 var pathOffset = 0; | 4406 var pathOffset = 0; |
4369 var index; | 4407 var index; |
4370 var subPart; | 4408 var subPart; |
4371 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4409 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4372 pathOffset += 1; | 4410 pathOffset += 1; |
4373 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1/operations")); | 4411 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1/operations")); |
4374 pathOffset += 13; | 4412 pathOffset += 13; |
4375 | 4413 |
4376 var query = (req.url).query; | 4414 var query = (req.url).query; |
(...skipping 17 matching lines...) Loading... |
4394 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4432 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4395 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 4433 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
4396 | 4434 |
4397 | 4435 |
4398 var h = { | 4436 var h = { |
4399 "content-type" : "application/json; charset=utf-8", | 4437 "content-type" : "application/json; charset=utf-8", |
4400 }; | 4438 }; |
4401 var resp = convert.JSON.encode(buildListOperationsResponse()); | 4439 var resp = convert.JSON.encode(buildListOperationsResponse()); |
4402 return new async.Future.value(stringResponse(200, h, resp)); | 4440 return new async.Future.value(stringResponse(200, h, resp)); |
4403 }), true); | 4441 }), true); |
4404 res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize,
filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse resp
onse) { | 4442 res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize,
filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse res
ponse) { |
4405 checkListOperationsResponse(response); | 4443 checkListOperationsResponse(response); |
4406 }))); | 4444 }))); |
4407 }); | 4445 }); |
4408 | 4446 |
4409 }); | 4447 }); |
4410 | 4448 |
4411 | 4449 |
4412 unittest.group("resource-ServicesResourceApi", () { | 4450 unittest.group("resource-ServicesResourceApi", () { |
4413 unittest.test("method--create", () { | 4451 unittest.test("method--create", () { |
4414 | 4452 |
4415 var mock = new HttpServerMock(); | 4453 var mock = new HttpServerMock(); |
4416 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4454 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4417 var arg_request = buildManagedService(); | 4455 var arg_request = buildManagedService(); |
4418 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4456 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4419 var obj = new api.ManagedService.fromJson(json); | 4457 var obj = new api.ManagedService.fromJson(json); |
4420 checkManagedService(obj); | 4458 checkManagedService(obj); |
4421 | 4459 |
4422 var path = (req.url).path; | 4460 var path = (req.url).path; |
4423 var pathOffset = 0; | 4461 var pathOffset = 0; |
4424 var index; | 4462 var index; |
4425 var subPart; | 4463 var subPart; |
4426 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4464 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4427 pathOffset += 1; | 4465 pathOffset += 1; |
4428 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); | 4466 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); |
(...skipping 16 matching lines...) Loading... |
4445 } | 4483 } |
4446 } | 4484 } |
4447 | 4485 |
4448 | 4486 |
4449 var h = { | 4487 var h = { |
4450 "content-type" : "application/json; charset=utf-8", | 4488 "content-type" : "application/json; charset=utf-8", |
4451 }; | 4489 }; |
4452 var resp = convert.JSON.encode(buildOperation()); | 4490 var resp = convert.JSON.encode(buildOperation()); |
4453 return new async.Future.value(stringResponse(200, h, resp)); | 4491 return new async.Future.value(stringResponse(200, h, resp)); |
4454 }), true); | 4492 }), true); |
4455 res.create(arg_request).then(unittest.expectAsync(((api.Operation response
) { | 4493 res.create(arg_request).then(unittest.expectAsync1(((api.Operation respons
e) { |
4456 checkOperation(response); | 4494 checkOperation(response); |
4457 }))); | 4495 }))); |
4458 }); | 4496 }); |
4459 | 4497 |
4460 unittest.test("method--delete", () { | 4498 unittest.test("method--delete", () { |
4461 | 4499 |
4462 var mock = new HttpServerMock(); | 4500 var mock = new HttpServerMock(); |
4463 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4501 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4464 var arg_serviceName = "foo"; | 4502 var arg_serviceName = "foo"; |
4465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4503 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4466 var path = (req.url).path; | 4504 var path = (req.url).path; |
4467 var pathOffset = 0; | 4505 var pathOffset = 0; |
4468 var index; | 4506 var index; |
4469 var subPart; | 4507 var subPart; |
4470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4508 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4471 pathOffset += 1; | 4509 pathOffset += 1; |
4472 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4510 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4473 pathOffset += 12; | 4511 pathOffset += 12; |
4474 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4512 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4475 pathOffset = path.length; | 4513 pathOffset = path.length; |
(...skipping 16 matching lines...) Loading... |
4492 } | 4530 } |
4493 } | 4531 } |
4494 | 4532 |
4495 | 4533 |
4496 var h = { | 4534 var h = { |
4497 "content-type" : "application/json; charset=utf-8", | 4535 "content-type" : "application/json; charset=utf-8", |
4498 }; | 4536 }; |
4499 var resp = convert.JSON.encode(buildOperation()); | 4537 var resp = convert.JSON.encode(buildOperation()); |
4500 return new async.Future.value(stringResponse(200, h, resp)); | 4538 return new async.Future.value(stringResponse(200, h, resp)); |
4501 }), true); | 4539 }), true); |
4502 res.delete(arg_serviceName).then(unittest.expectAsync(((api.Operation resp
onse) { | 4540 res.delete(arg_serviceName).then(unittest.expectAsync1(((api.Operation res
ponse) { |
4503 checkOperation(response); | 4541 checkOperation(response); |
4504 }))); | 4542 }))); |
4505 }); | 4543 }); |
4506 | 4544 |
4507 unittest.test("method--disable", () { | 4545 unittest.test("method--disable", () { |
4508 | 4546 |
4509 var mock = new HttpServerMock(); | 4547 var mock = new HttpServerMock(); |
4510 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4548 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4511 var arg_request = buildDisableServiceRequest(); | 4549 var arg_request = buildDisableServiceRequest(); |
4512 var arg_serviceName = "foo"; | 4550 var arg_serviceName = "foo"; |
4513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4551 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4514 var obj = new api.DisableServiceRequest.fromJson(json); | 4552 var obj = new api.DisableServiceRequest.fromJson(json); |
4515 checkDisableServiceRequest(obj); | 4553 checkDisableServiceRequest(obj); |
4516 | 4554 |
4517 var path = (req.url).path; | 4555 var path = (req.url).path; |
4518 var pathOffset = 0; | 4556 var pathOffset = 0; |
4519 var index; | 4557 var index; |
4520 var subPart; | 4558 var subPart; |
4521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4559 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4522 pathOffset += 1; | 4560 pathOffset += 1; |
4523 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4561 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
(...skipping 23 matching lines...) Loading... |
4547 } | 4585 } |
4548 } | 4586 } |
4549 | 4587 |
4550 | 4588 |
4551 var h = { | 4589 var h = { |
4552 "content-type" : "application/json; charset=utf-8", | 4590 "content-type" : "application/json; charset=utf-8", |
4553 }; | 4591 }; |
4554 var resp = convert.JSON.encode(buildOperation()); | 4592 var resp = convert.JSON.encode(buildOperation()); |
4555 return new async.Future.value(stringResponse(200, h, resp)); | 4593 return new async.Future.value(stringResponse(200, h, resp)); |
4556 }), true); | 4594 }), true); |
4557 res.disable(arg_request, arg_serviceName).then(unittest.expectAsync(((api.
Operation response) { | 4595 res.disable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api
.Operation response) { |
4558 checkOperation(response); | 4596 checkOperation(response); |
4559 }))); | 4597 }))); |
4560 }); | 4598 }); |
4561 | 4599 |
4562 unittest.test("method--enable", () { | 4600 unittest.test("method--enable", () { |
4563 | 4601 |
4564 var mock = new HttpServerMock(); | 4602 var mock = new HttpServerMock(); |
4565 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4603 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4566 var arg_request = buildEnableServiceRequest(); | 4604 var arg_request = buildEnableServiceRequest(); |
4567 var arg_serviceName = "foo"; | 4605 var arg_serviceName = "foo"; |
4568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4606 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4569 var obj = new api.EnableServiceRequest.fromJson(json); | 4607 var obj = new api.EnableServiceRequest.fromJson(json); |
4570 checkEnableServiceRequest(obj); | 4608 checkEnableServiceRequest(obj); |
4571 | 4609 |
4572 var path = (req.url).path; | 4610 var path = (req.url).path; |
4573 var pathOffset = 0; | 4611 var pathOffset = 0; |
4574 var index; | 4612 var index; |
4575 var subPart; | 4613 var subPart; |
4576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4614 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4577 pathOffset += 1; | 4615 pathOffset += 1; |
4578 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4616 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
(...skipping 23 matching lines...) Loading... |
4602 } | 4640 } |
4603 } | 4641 } |
4604 | 4642 |
4605 | 4643 |
4606 var h = { | 4644 var h = { |
4607 "content-type" : "application/json; charset=utf-8", | 4645 "content-type" : "application/json; charset=utf-8", |
4608 }; | 4646 }; |
4609 var resp = convert.JSON.encode(buildOperation()); | 4647 var resp = convert.JSON.encode(buildOperation()); |
4610 return new async.Future.value(stringResponse(200, h, resp)); | 4648 return new async.Future.value(stringResponse(200, h, resp)); |
4611 }), true); | 4649 }), true); |
4612 res.enable(arg_request, arg_serviceName).then(unittest.expectAsync(((api.O
peration response) { | 4650 res.enable(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.
Operation response) { |
4613 checkOperation(response); | 4651 checkOperation(response); |
4614 }))); | 4652 }))); |
4615 }); | 4653 }); |
4616 | 4654 |
4617 unittest.test("method--generateConfigReport", () { | 4655 unittest.test("method--generateConfigReport", () { |
4618 | 4656 |
4619 var mock = new HttpServerMock(); | 4657 var mock = new HttpServerMock(); |
4620 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4658 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4621 var arg_request = buildGenerateConfigReportRequest(); | 4659 var arg_request = buildGenerateConfigReportRequest(); |
4622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4660 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4623 var obj = new api.GenerateConfigReportRequest.fromJson(json); | 4661 var obj = new api.GenerateConfigReportRequest.fromJson(json); |
4624 checkGenerateConfigReportRequest(obj); | 4662 checkGenerateConfigReportRequest(obj); |
4625 | 4663 |
4626 var path = (req.url).path; | 4664 var path = (req.url).path; |
4627 var pathOffset = 0; | 4665 var pathOffset = 0; |
4628 var index; | 4666 var index; |
4629 var subPart; | 4667 var subPart; |
4630 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4631 pathOffset += 1; | 4669 pathOffset += 1; |
4632 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("v1/services:generateConfigReport")); | 4670 unittest.expect(path.substring(pathOffset, pathOffset + 32), unittest.eq
uals("v1/services:generateConfigReport")); |
(...skipping 16 matching lines...) Loading... |
4649 } | 4687 } |
4650 } | 4688 } |
4651 | 4689 |
4652 | 4690 |
4653 var h = { | 4691 var h = { |
4654 "content-type" : "application/json; charset=utf-8", | 4692 "content-type" : "application/json; charset=utf-8", |
4655 }; | 4693 }; |
4656 var resp = convert.JSON.encode(buildGenerateConfigReportResponse()); | 4694 var resp = convert.JSON.encode(buildGenerateConfigReportResponse()); |
4657 return new async.Future.value(stringResponse(200, h, resp)); | 4695 return new async.Future.value(stringResponse(200, h, resp)); |
4658 }), true); | 4696 }), true); |
4659 res.generateConfigReport(arg_request).then(unittest.expectAsync(((api.Gene
rateConfigReportResponse response) { | 4697 res.generateConfigReport(arg_request).then(unittest.expectAsync1(((api.Gen
erateConfigReportResponse response) { |
4660 checkGenerateConfigReportResponse(response); | 4698 checkGenerateConfigReportResponse(response); |
4661 }))); | 4699 }))); |
4662 }); | 4700 }); |
4663 | 4701 |
4664 unittest.test("method--get", () { | 4702 unittest.test("method--get", () { |
4665 | 4703 |
4666 var mock = new HttpServerMock(); | 4704 var mock = new HttpServerMock(); |
4667 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4705 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4668 var arg_serviceName = "foo"; | 4706 var arg_serviceName = "foo"; |
4669 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4707 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4670 var path = (req.url).path; | 4708 var path = (req.url).path; |
4671 var pathOffset = 0; | 4709 var pathOffset = 0; |
4672 var index; | 4710 var index; |
4673 var subPart; | 4711 var subPart; |
4674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4712 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4675 pathOffset += 1; | 4713 pathOffset += 1; |
4676 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4714 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4677 pathOffset += 12; | 4715 pathOffset += 12; |
4678 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4716 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4679 pathOffset = path.length; | 4717 pathOffset = path.length; |
(...skipping 16 matching lines...) Loading... |
4696 } | 4734 } |
4697 } | 4735 } |
4698 | 4736 |
4699 | 4737 |
4700 var h = { | 4738 var h = { |
4701 "content-type" : "application/json; charset=utf-8", | 4739 "content-type" : "application/json; charset=utf-8", |
4702 }; | 4740 }; |
4703 var resp = convert.JSON.encode(buildManagedService()); | 4741 var resp = convert.JSON.encode(buildManagedService()); |
4704 return new async.Future.value(stringResponse(200, h, resp)); | 4742 return new async.Future.value(stringResponse(200, h, resp)); |
4705 }), true); | 4743 }), true); |
4706 res.get(arg_serviceName).then(unittest.expectAsync(((api.ManagedService re
sponse) { | 4744 res.get(arg_serviceName).then(unittest.expectAsync1(((api.ManagedService r
esponse) { |
4707 checkManagedService(response); | 4745 checkManagedService(response); |
4708 }))); | 4746 }))); |
4709 }); | 4747 }); |
4710 | 4748 |
4711 unittest.test("method--getConfig", () { | 4749 unittest.test("method--getConfig", () { |
4712 | 4750 |
4713 var mock = new HttpServerMock(); | 4751 var mock = new HttpServerMock(); |
4714 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4752 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4715 var arg_serviceName = "foo"; | 4753 var arg_serviceName = "foo"; |
4716 var arg_configId = "foo"; | 4754 var arg_configId = "foo"; |
4717 var arg_view = "foo"; | 4755 var arg_view = "foo"; |
4718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4756 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4719 var path = (req.url).path; | 4757 var path = (req.url).path; |
4720 var pathOffset = 0; | 4758 var pathOffset = 0; |
4721 var index; | 4759 var index; |
4722 var subPart; | 4760 var subPart; |
4723 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4761 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4724 pathOffset += 1; | 4762 pathOffset += 1; |
4725 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4763 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4726 pathOffset += 12; | 4764 pathOffset += 12; |
4727 index = path.indexOf("/config", pathOffset); | 4765 index = path.indexOf("/config", pathOffset); |
4728 unittest.expect(index >= 0, unittest.isTrue); | 4766 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 22 matching lines...) Loading... |
4751 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId
)); | 4789 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId
)); |
4752 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 4790 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
4753 | 4791 |
4754 | 4792 |
4755 var h = { | 4793 var h = { |
4756 "content-type" : "application/json; charset=utf-8", | 4794 "content-type" : "application/json; charset=utf-8", |
4757 }; | 4795 }; |
4758 var resp = convert.JSON.encode(buildService()); | 4796 var resp = convert.JSON.encode(buildService()); |
4759 return new async.Future.value(stringResponse(200, h, resp)); | 4797 return new async.Future.value(stringResponse(200, h, resp)); |
4760 }), true); | 4798 }), true); |
4761 res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).the
n(unittest.expectAsync(((api.Service response) { | 4799 res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).the
n(unittest.expectAsync1(((api.Service response) { |
4762 checkService(response); | 4800 checkService(response); |
4763 }))); | 4801 }))); |
4764 }); | 4802 }); |
4765 | 4803 |
4766 unittest.test("method--getIamPolicy", () { | 4804 unittest.test("method--getIamPolicy", () { |
4767 | 4805 |
4768 var mock = new HttpServerMock(); | 4806 var mock = new HttpServerMock(); |
4769 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4807 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4770 var arg_request = buildGetIamPolicyRequest(); | 4808 var arg_request = buildGetIamPolicyRequest(); |
4771 var arg_resource = "foo"; | 4809 var arg_resource = "foo"; |
4772 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4810 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4773 var obj = new api.GetIamPolicyRequest.fromJson(json); | 4811 var obj = new api.GetIamPolicyRequest.fromJson(json); |
4774 checkGetIamPolicyRequest(obj); | 4812 checkGetIamPolicyRequest(obj); |
4775 | 4813 |
4776 var path = (req.url).path; | 4814 var path = (req.url).path; |
4777 var pathOffset = 0; | 4815 var pathOffset = 0; |
4778 var index; | 4816 var index; |
4779 var subPart; | 4817 var subPart; |
4780 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4781 pathOffset += 1; | 4819 pathOffset += 1; |
4782 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4820 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
(...skipping 17 matching lines...) Loading... |
4800 } | 4838 } |
4801 } | 4839 } |
4802 | 4840 |
4803 | 4841 |
4804 var h = { | 4842 var h = { |
4805 "content-type" : "application/json; charset=utf-8", | 4843 "content-type" : "application/json; charset=utf-8", |
4806 }; | 4844 }; |
4807 var resp = convert.JSON.encode(buildPolicy()); | 4845 var resp = convert.JSON.encode(buildPolicy()); |
4808 return new async.Future.value(stringResponse(200, h, resp)); | 4846 return new async.Future.value(stringResponse(200, h, resp)); |
4809 }), true); | 4847 }), true); |
4810 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 4848 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
4811 checkPolicy(response); | 4849 checkPolicy(response); |
4812 }))); | 4850 }))); |
4813 }); | 4851 }); |
4814 | 4852 |
4815 unittest.test("method--list", () { | 4853 unittest.test("method--list", () { |
4816 | 4854 |
4817 var mock = new HttpServerMock(); | 4855 var mock = new HttpServerMock(); |
4818 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4856 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4819 var arg_consumerId = "foo"; | 4857 var arg_consumerId = "foo"; |
4820 var arg_pageToken = "foo"; | 4858 var arg_pageToken = "foo"; |
4821 var arg_pageSize = 42; | 4859 var arg_pageSize = 42; |
4822 var arg_producerProjectId = "foo"; | 4860 var arg_producerProjectId = "foo"; |
4823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4861 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4824 var path = (req.url).path; | 4862 var path = (req.url).path; |
4825 var pathOffset = 0; | 4863 var pathOffset = 0; |
4826 var index; | 4864 var index; |
4827 var subPart; | 4865 var subPart; |
4828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4866 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4829 pathOffset += 1; | 4867 pathOffset += 1; |
4830 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); | 4868 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); |
4831 pathOffset += 11; | 4869 pathOffset += 11; |
4832 | 4870 |
4833 var query = (req.url).query; | 4871 var query = (req.url).query; |
(...skipping 17 matching lines...) Loading... |
4851 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4889 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4852 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg
_producerProjectId)); | 4890 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg
_producerProjectId)); |
4853 | 4891 |
4854 | 4892 |
4855 var h = { | 4893 var h = { |
4856 "content-type" : "application/json; charset=utf-8", | 4894 "content-type" : "application/json; charset=utf-8", |
4857 }; | 4895 }; |
4858 var resp = convert.JSON.encode(buildListServicesResponse()); | 4896 var resp = convert.JSON.encode(buildListServicesResponse()); |
4859 return new async.Future.value(stringResponse(200, h, resp)); | 4897 return new async.Future.value(stringResponse(200, h, resp)); |
4860 }), true); | 4898 }), true); |
4861 res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync
(((api.ListServicesResponse response) { | 4899 res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync
1(((api.ListServicesResponse response) { |
4862 checkListServicesResponse(response); | 4900 checkListServicesResponse(response); |
4863 }))); | 4901 }))); |
4864 }); | 4902 }); |
4865 | 4903 |
4866 unittest.test("method--setIamPolicy", () { | 4904 unittest.test("method--setIamPolicy", () { |
4867 | 4905 |
4868 var mock = new HttpServerMock(); | 4906 var mock = new HttpServerMock(); |
4869 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4907 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4870 var arg_request = buildSetIamPolicyRequest(); | 4908 var arg_request = buildSetIamPolicyRequest(); |
4871 var arg_resource = "foo"; | 4909 var arg_resource = "foo"; |
4872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4910 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4873 var obj = new api.SetIamPolicyRequest.fromJson(json); | 4911 var obj = new api.SetIamPolicyRequest.fromJson(json); |
4874 checkSetIamPolicyRequest(obj); | 4912 checkSetIamPolicyRequest(obj); |
4875 | 4913 |
4876 var path = (req.url).path; | 4914 var path = (req.url).path; |
4877 var pathOffset = 0; | 4915 var pathOffset = 0; |
4878 var index; | 4916 var index; |
4879 var subPart; | 4917 var subPart; |
4880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4881 pathOffset += 1; | 4919 pathOffset += 1; |
4882 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4920 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
(...skipping 17 matching lines...) Loading... |
4900 } | 4938 } |
4901 } | 4939 } |
4902 | 4940 |
4903 | 4941 |
4904 var h = { | 4942 var h = { |
4905 "content-type" : "application/json; charset=utf-8", | 4943 "content-type" : "application/json; charset=utf-8", |
4906 }; | 4944 }; |
4907 var resp = convert.JSON.encode(buildPolicy()); | 4945 var resp = convert.JSON.encode(buildPolicy()); |
4908 return new async.Future.value(stringResponse(200, h, resp)); | 4946 return new async.Future.value(stringResponse(200, h, resp)); |
4909 }), true); | 4947 }), true); |
4910 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 4948 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
4911 checkPolicy(response); | 4949 checkPolicy(response); |
4912 }))); | 4950 }))); |
4913 }); | 4951 }); |
4914 | 4952 |
4915 unittest.test("method--testIamPermissions", () { | 4953 unittest.test("method--testIamPermissions", () { |
4916 | 4954 |
4917 var mock = new HttpServerMock(); | 4955 var mock = new HttpServerMock(); |
4918 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4956 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4919 var arg_request = buildTestIamPermissionsRequest(); | 4957 var arg_request = buildTestIamPermissionsRequest(); |
4920 var arg_resource = "foo"; | 4958 var arg_resource = "foo"; |
4921 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4959 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4922 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 4960 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
4923 checkTestIamPermissionsRequest(obj); | 4961 checkTestIamPermissionsRequest(obj); |
4924 | 4962 |
4925 var path = (req.url).path; | 4963 var path = (req.url).path; |
4926 var pathOffset = 0; | 4964 var pathOffset = 0; |
4927 var index; | 4965 var index; |
4928 var subPart; | 4966 var subPart; |
4929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4967 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4930 pathOffset += 1; | 4968 pathOffset += 1; |
4931 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4969 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
(...skipping 17 matching lines...) Loading... |
4949 } | 4987 } |
4950 } | 4988 } |
4951 | 4989 |
4952 | 4990 |
4953 var h = { | 4991 var h = { |
4954 "content-type" : "application/json; charset=utf-8", | 4992 "content-type" : "application/json; charset=utf-8", |
4955 }; | 4993 }; |
4956 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); | 4994 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
4957 return new async.Future.value(stringResponse(200, h, resp)); | 4995 return new async.Future.value(stringResponse(200, h, resp)); |
4958 }), true); | 4996 }), true); |
4959 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c(((api.TestIamPermissionsResponse response) { | 4997 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c1(((api.TestIamPermissionsResponse response) { |
4960 checkTestIamPermissionsResponse(response); | 4998 checkTestIamPermissionsResponse(response); |
4961 }))); | 4999 }))); |
4962 }); | 5000 }); |
4963 | 5001 |
4964 unittest.test("method--undelete", () { | 5002 unittest.test("method--undelete", () { |
4965 | 5003 |
4966 var mock = new HttpServerMock(); | 5004 var mock = new HttpServerMock(); |
4967 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 5005 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
4968 var arg_serviceName = "foo"; | 5006 var arg_serviceName = "foo"; |
4969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5007 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4970 var path = (req.url).path; | 5008 var path = (req.url).path; |
4971 var pathOffset = 0; | 5009 var pathOffset = 0; |
4972 var index; | 5010 var index; |
4973 var subPart; | 5011 var subPart; |
4974 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4975 pathOffset += 1; | 5013 pathOffset += 1; |
4976 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5014 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
4977 pathOffset += 12; | 5015 pathOffset += 12; |
4978 index = path.indexOf(":undelete", pathOffset); | 5016 index = path.indexOf(":undelete", pathOffset); |
4979 unittest.expect(index >= 0, unittest.isTrue); | 5017 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 20 matching lines...) Loading... |
5000 } | 5038 } |
5001 } | 5039 } |
5002 | 5040 |
5003 | 5041 |
5004 var h = { | 5042 var h = { |
5005 "content-type" : "application/json; charset=utf-8", | 5043 "content-type" : "application/json; charset=utf-8", |
5006 }; | 5044 }; |
5007 var resp = convert.JSON.encode(buildOperation()); | 5045 var resp = convert.JSON.encode(buildOperation()); |
5008 return new async.Future.value(stringResponse(200, h, resp)); | 5046 return new async.Future.value(stringResponse(200, h, resp)); |
5009 }), true); | 5047 }), true); |
5010 res.undelete(arg_serviceName).then(unittest.expectAsync(((api.Operation re
sponse) { | 5048 res.undelete(arg_serviceName).then(unittest.expectAsync1(((api.Operation r
esponse) { |
5011 checkOperation(response); | 5049 checkOperation(response); |
5012 }))); | 5050 }))); |
5013 }); | 5051 }); |
5014 | 5052 |
5015 }); | 5053 }); |
5016 | 5054 |
5017 | 5055 |
5018 unittest.group("resource-ServicesConfigsResourceApi", () { | 5056 unittest.group("resource-ServicesConfigsResourceApi", () { |
5019 unittest.test("method--create", () { | 5057 unittest.test("method--create", () { |
5020 | 5058 |
5021 var mock = new HttpServerMock(); | 5059 var mock = new HttpServerMock(); |
5022 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; | 5060 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; |
5023 var arg_request = buildService(); | 5061 var arg_request = buildService(); |
5024 var arg_serviceName = "foo"; | 5062 var arg_serviceName = "foo"; |
5025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5063 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5026 var obj = new api.Service.fromJson(json); | 5064 var obj = new api.Service.fromJson(json); |
5027 checkService(obj); | 5065 checkService(obj); |
5028 | 5066 |
5029 var path = (req.url).path; | 5067 var path = (req.url).path; |
5030 var pathOffset = 0; | 5068 var pathOffset = 0; |
5031 var index; | 5069 var index; |
5032 var subPart; | 5070 var subPart; |
5033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5071 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5034 pathOffset += 1; | 5072 pathOffset += 1; |
5035 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5073 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
(...skipping 23 matching lines...) Loading... |
5059 } | 5097 } |
5060 } | 5098 } |
5061 | 5099 |
5062 | 5100 |
5063 var h = { | 5101 var h = { |
5064 "content-type" : "application/json; charset=utf-8", | 5102 "content-type" : "application/json; charset=utf-8", |
5065 }; | 5103 }; |
5066 var resp = convert.JSON.encode(buildService()); | 5104 var resp = convert.JSON.encode(buildService()); |
5067 return new async.Future.value(stringResponse(200, h, resp)); | 5105 return new async.Future.value(stringResponse(200, h, resp)); |
5068 }), true); | 5106 }), true); |
5069 res.create(arg_request, arg_serviceName).then(unittest.expectAsync(((api.S
ervice response) { | 5107 res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.
Service response) { |
5070 checkService(response); | 5108 checkService(response); |
5071 }))); | 5109 }))); |
5072 }); | 5110 }); |
5073 | 5111 |
5074 unittest.test("method--get", () { | 5112 unittest.test("method--get", () { |
5075 | 5113 |
5076 var mock = new HttpServerMock(); | 5114 var mock = new HttpServerMock(); |
5077 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; | 5115 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; |
5078 var arg_serviceName = "foo"; | 5116 var arg_serviceName = "foo"; |
5079 var arg_configId = "foo"; | 5117 var arg_configId = "foo"; |
5080 var arg_view = "foo"; | 5118 var arg_view = "foo"; |
5081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5119 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5082 var path = (req.url).path; | 5120 var path = (req.url).path; |
5083 var pathOffset = 0; | 5121 var pathOffset = 0; |
5084 var index; | 5122 var index; |
5085 var subPart; | 5123 var subPart; |
5086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5087 pathOffset += 1; | 5125 pathOffset += 1; |
5088 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5126 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
5089 pathOffset += 12; | 5127 pathOffset += 12; |
5090 index = path.indexOf("/configs/", pathOffset); | 5128 index = path.indexOf("/configs/", pathOffset); |
5091 unittest.expect(index >= 0, unittest.isTrue); | 5129 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 24 matching lines...) Loading... |
5116 } | 5154 } |
5117 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 5155 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5118 | 5156 |
5119 | 5157 |
5120 var h = { | 5158 var h = { |
5121 "content-type" : "application/json; charset=utf-8", | 5159 "content-type" : "application/json; charset=utf-8", |
5122 }; | 5160 }; |
5123 var resp = convert.JSON.encode(buildService()); | 5161 var resp = convert.JSON.encode(buildService()); |
5124 return new async.Future.value(stringResponse(200, h, resp)); | 5162 return new async.Future.value(stringResponse(200, h, resp)); |
5125 }), true); | 5163 }), true); |
5126 res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expec
tAsync(((api.Service response) { | 5164 res.get(arg_serviceName, arg_configId, view: arg_view).then(unittest.expec
tAsync1(((api.Service response) { |
5127 checkService(response); | 5165 checkService(response); |
5128 }))); | 5166 }))); |
5129 }); | 5167 }); |
5130 | 5168 |
5131 unittest.test("method--list", () { | 5169 unittest.test("method--list", () { |
5132 | 5170 |
5133 var mock = new HttpServerMock(); | 5171 var mock = new HttpServerMock(); |
5134 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; | 5172 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; |
5135 var arg_serviceName = "foo"; | 5173 var arg_serviceName = "foo"; |
5136 var arg_pageToken = "foo"; | 5174 var arg_pageToken = "foo"; |
5137 var arg_pageSize = 42; | 5175 var arg_pageSize = 42; |
5138 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5176 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5139 var path = (req.url).path; | 5177 var path = (req.url).path; |
5140 var pathOffset = 0; | 5178 var pathOffset = 0; |
5141 var index; | 5179 var index; |
5142 var subPart; | 5180 var subPart; |
5143 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5181 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5144 pathOffset += 1; | 5182 pathOffset += 1; |
5145 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5183 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
5146 pathOffset += 12; | 5184 pathOffset += 12; |
5147 index = path.indexOf("/configs", pathOffset); | 5185 index = path.indexOf("/configs", pathOffset); |
5148 unittest.expect(index >= 0, unittest.isTrue); | 5186 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 22 matching lines...) Loading... |
5171 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5209 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5172 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5210 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
5173 | 5211 |
5174 | 5212 |
5175 var h = { | 5213 var h = { |
5176 "content-type" : "application/json; charset=utf-8", | 5214 "content-type" : "application/json; charset=utf-8", |
5177 }; | 5215 }; |
5178 var resp = convert.JSON.encode(buildListServiceConfigsResponse()); | 5216 var resp = convert.JSON.encode(buildListServiceConfigsResponse()); |
5179 return new async.Future.value(stringResponse(200, h, resp)); | 5217 return new async.Future.value(stringResponse(200, h, resp)); |
5180 }), true); | 5218 }), true); |
5181 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize
).then(unittest.expectAsync(((api.ListServiceConfigsResponse response) { | 5219 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize
).then(unittest.expectAsync1(((api.ListServiceConfigsResponse response) { |
5182 checkListServiceConfigsResponse(response); | 5220 checkListServiceConfigsResponse(response); |
5183 }))); | 5221 }))); |
5184 }); | 5222 }); |
5185 | 5223 |
5186 unittest.test("method--submit", () { | 5224 unittest.test("method--submit", () { |
5187 | 5225 |
5188 var mock = new HttpServerMock(); | 5226 var mock = new HttpServerMock(); |
5189 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; | 5227 api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).se
rvices.configs; |
5190 var arg_request = buildSubmitConfigSourceRequest(); | 5228 var arg_request = buildSubmitConfigSourceRequest(); |
5191 var arg_serviceName = "foo"; | 5229 var arg_serviceName = "foo"; |
5192 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5230 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5193 var obj = new api.SubmitConfigSourceRequest.fromJson(json); | 5231 var obj = new api.SubmitConfigSourceRequest.fromJson(json); |
5194 checkSubmitConfigSourceRequest(obj); | 5232 checkSubmitConfigSourceRequest(obj); |
5195 | 5233 |
5196 var path = (req.url).path; | 5234 var path = (req.url).path; |
5197 var pathOffset = 0; | 5235 var pathOffset = 0; |
5198 var index; | 5236 var index; |
5199 var subPart; | 5237 var subPart; |
5200 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5238 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5201 pathOffset += 1; | 5239 pathOffset += 1; |
5202 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5240 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
(...skipping 23 matching lines...) Loading... |
5226 } | 5264 } |
5227 } | 5265 } |
5228 | 5266 |
5229 | 5267 |
5230 var h = { | 5268 var h = { |
5231 "content-type" : "application/json; charset=utf-8", | 5269 "content-type" : "application/json; charset=utf-8", |
5232 }; | 5270 }; |
5233 var resp = convert.JSON.encode(buildOperation()); | 5271 var resp = convert.JSON.encode(buildOperation()); |
5234 return new async.Future.value(stringResponse(200, h, resp)); | 5272 return new async.Future.value(stringResponse(200, h, resp)); |
5235 }), true); | 5273 }), true); |
5236 res.submit(arg_request, arg_serviceName).then(unittest.expectAsync(((api.O
peration response) { | 5274 res.submit(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.
Operation response) { |
5237 checkOperation(response); | 5275 checkOperation(response); |
5238 }))); | 5276 }))); |
5239 }); | 5277 }); |
5240 | 5278 |
5241 }); | 5279 }); |
5242 | 5280 |
5243 | 5281 |
5244 unittest.group("resource-ServicesConsumersResourceApi", () { | 5282 unittest.group("resource-ServicesConsumersResourceApi", () { |
5245 unittest.test("method--getIamPolicy", () { | 5283 unittest.test("method--getIamPolicy", () { |
5246 | 5284 |
5247 var mock = new HttpServerMock(); | 5285 var mock = new HttpServerMock(); |
5248 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).
services.consumers; | 5286 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).
services.consumers; |
5249 var arg_request = buildGetIamPolicyRequest(); | 5287 var arg_request = buildGetIamPolicyRequest(); |
5250 var arg_resource = "foo"; | 5288 var arg_resource = "foo"; |
5251 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5289 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5252 var obj = new api.GetIamPolicyRequest.fromJson(json); | 5290 var obj = new api.GetIamPolicyRequest.fromJson(json); |
5253 checkGetIamPolicyRequest(obj); | 5291 checkGetIamPolicyRequest(obj); |
5254 | 5292 |
5255 var path = (req.url).path; | 5293 var path = (req.url).path; |
5256 var pathOffset = 0; | 5294 var pathOffset = 0; |
5257 var index; | 5295 var index; |
5258 var subPart; | 5296 var subPart; |
5259 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5260 pathOffset += 1; | 5298 pathOffset += 1; |
5261 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5299 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
(...skipping 17 matching lines...) Loading... |
5279 } | 5317 } |
5280 } | 5318 } |
5281 | 5319 |
5282 | 5320 |
5283 var h = { | 5321 var h = { |
5284 "content-type" : "application/json; charset=utf-8", | 5322 "content-type" : "application/json; charset=utf-8", |
5285 }; | 5323 }; |
5286 var resp = convert.JSON.encode(buildPolicy()); | 5324 var resp = convert.JSON.encode(buildPolicy()); |
5287 return new async.Future.value(stringResponse(200, h, resp)); | 5325 return new async.Future.value(stringResponse(200, h, resp)); |
5288 }), true); | 5326 }), true); |
5289 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 5327 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
5290 checkPolicy(response); | 5328 checkPolicy(response); |
5291 }))); | 5329 }))); |
5292 }); | 5330 }); |
5293 | 5331 |
5294 unittest.test("method--setIamPolicy", () { | 5332 unittest.test("method--setIamPolicy", () { |
5295 | 5333 |
5296 var mock = new HttpServerMock(); | 5334 var mock = new HttpServerMock(); |
5297 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).
services.consumers; | 5335 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).
services.consumers; |
5298 var arg_request = buildSetIamPolicyRequest(); | 5336 var arg_request = buildSetIamPolicyRequest(); |
5299 var arg_resource = "foo"; | 5337 var arg_resource = "foo"; |
5300 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5338 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5301 var obj = new api.SetIamPolicyRequest.fromJson(json); | 5339 var obj = new api.SetIamPolicyRequest.fromJson(json); |
5302 checkSetIamPolicyRequest(obj); | 5340 checkSetIamPolicyRequest(obj); |
5303 | 5341 |
5304 var path = (req.url).path; | 5342 var path = (req.url).path; |
5305 var pathOffset = 0; | 5343 var pathOffset = 0; |
5306 var index; | 5344 var index; |
5307 var subPart; | 5345 var subPart; |
5308 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5309 pathOffset += 1; | 5347 pathOffset += 1; |
5310 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5348 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
(...skipping 17 matching lines...) Loading... |
5328 } | 5366 } |
5329 } | 5367 } |
5330 | 5368 |
5331 | 5369 |
5332 var h = { | 5370 var h = { |
5333 "content-type" : "application/json; charset=utf-8", | 5371 "content-type" : "application/json; charset=utf-8", |
5334 }; | 5372 }; |
5335 var resp = convert.JSON.encode(buildPolicy()); | 5373 var resp = convert.JSON.encode(buildPolicy()); |
5336 return new async.Future.value(stringResponse(200, h, resp)); | 5374 return new async.Future.value(stringResponse(200, h, resp)); |
5337 }), true); | 5375 }), true); |
5338 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 5376 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
5339 checkPolicy(response); | 5377 checkPolicy(response); |
5340 }))); | 5378 }))); |
5341 }); | 5379 }); |
5342 | 5380 |
5343 unittest.test("method--testIamPermissions", () { | 5381 unittest.test("method--testIamPermissions", () { |
5344 | 5382 |
5345 var mock = new HttpServerMock(); | 5383 var mock = new HttpServerMock(); |
5346 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).
services.consumers; | 5384 api.ServicesConsumersResourceApi res = new api.ServicemanagementApi(mock).
services.consumers; |
5347 var arg_request = buildTestIamPermissionsRequest(); | 5385 var arg_request = buildTestIamPermissionsRequest(); |
5348 var arg_resource = "foo"; | 5386 var arg_resource = "foo"; |
5349 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5387 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5350 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 5388 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
5351 checkTestIamPermissionsRequest(obj); | 5389 checkTestIamPermissionsRequest(obj); |
5352 | 5390 |
5353 var path = (req.url).path; | 5391 var path = (req.url).path; |
5354 var pathOffset = 0; | 5392 var pathOffset = 0; |
5355 var index; | 5393 var index; |
5356 var subPart; | 5394 var subPart; |
5357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5395 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5358 pathOffset += 1; | 5396 pathOffset += 1; |
5359 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5397 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
(...skipping 17 matching lines...) Loading... |
5377 } | 5415 } |
5378 } | 5416 } |
5379 | 5417 |
5380 | 5418 |
5381 var h = { | 5419 var h = { |
5382 "content-type" : "application/json; charset=utf-8", | 5420 "content-type" : "application/json; charset=utf-8", |
5383 }; | 5421 }; |
5384 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); | 5422 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
5385 return new async.Future.value(stringResponse(200, h, resp)); | 5423 return new async.Future.value(stringResponse(200, h, resp)); |
5386 }), true); | 5424 }), true); |
5387 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c(((api.TestIamPermissionsResponse response) { | 5425 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c1(((api.TestIamPermissionsResponse response) { |
5388 checkTestIamPermissionsResponse(response); | 5426 checkTestIamPermissionsResponse(response); |
5389 }))); | 5427 }))); |
5390 }); | 5428 }); |
5391 | 5429 |
5392 }); | 5430 }); |
5393 | 5431 |
5394 | 5432 |
5395 unittest.group("resource-ServicesRolloutsResourceApi", () { | 5433 unittest.group("resource-ServicesRolloutsResourceApi", () { |
5396 unittest.test("method--create", () { | 5434 unittest.test("method--create", () { |
5397 | 5435 |
5398 var mock = new HttpServerMock(); | 5436 var mock = new HttpServerMock(); |
5399 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; | 5437 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; |
5400 var arg_request = buildRollout(); | 5438 var arg_request = buildRollout(); |
5401 var arg_serviceName = "foo"; | 5439 var arg_serviceName = "foo"; |
5402 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5440 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5403 var obj = new api.Rollout.fromJson(json); | 5441 var obj = new api.Rollout.fromJson(json); |
5404 checkRollout(obj); | 5442 checkRollout(obj); |
5405 | 5443 |
5406 var path = (req.url).path; | 5444 var path = (req.url).path; |
5407 var pathOffset = 0; | 5445 var pathOffset = 0; |
5408 var index; | 5446 var index; |
5409 var subPart; | 5447 var subPart; |
5410 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5448 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5411 pathOffset += 1; | 5449 pathOffset += 1; |
5412 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5450 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
(...skipping 23 matching lines...) Loading... |
5436 } | 5474 } |
5437 } | 5475 } |
5438 | 5476 |
5439 | 5477 |
5440 var h = { | 5478 var h = { |
5441 "content-type" : "application/json; charset=utf-8", | 5479 "content-type" : "application/json; charset=utf-8", |
5442 }; | 5480 }; |
5443 var resp = convert.JSON.encode(buildOperation()); | 5481 var resp = convert.JSON.encode(buildOperation()); |
5444 return new async.Future.value(stringResponse(200, h, resp)); | 5482 return new async.Future.value(stringResponse(200, h, resp)); |
5445 }), true); | 5483 }), true); |
5446 res.create(arg_request, arg_serviceName).then(unittest.expectAsync(((api.O
peration response) { | 5484 res.create(arg_request, arg_serviceName).then(unittest.expectAsync1(((api.
Operation response) { |
5447 checkOperation(response); | 5485 checkOperation(response); |
5448 }))); | 5486 }))); |
5449 }); | 5487 }); |
5450 | 5488 |
5451 unittest.test("method--get", () { | 5489 unittest.test("method--get", () { |
5452 | 5490 |
5453 var mock = new HttpServerMock(); | 5491 var mock = new HttpServerMock(); |
5454 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; | 5492 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; |
5455 var arg_serviceName = "foo"; | 5493 var arg_serviceName = "foo"; |
5456 var arg_rolloutId = "foo"; | 5494 var arg_rolloutId = "foo"; |
5457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5495 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5458 var path = (req.url).path; | 5496 var path = (req.url).path; |
5459 var pathOffset = 0; | 5497 var pathOffset = 0; |
5460 var index; | 5498 var index; |
5461 var subPart; | 5499 var subPart; |
5462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5500 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5463 pathOffset += 1; | 5501 pathOffset += 1; |
5464 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5502 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
5465 pathOffset += 12; | 5503 pathOffset += 12; |
5466 index = path.indexOf("/rollouts/", pathOffset); | 5504 index = path.indexOf("/rollouts/", pathOffset); |
5467 unittest.expect(index >= 0, unittest.isTrue); | 5505 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Loading... |
5491 } | 5529 } |
5492 } | 5530 } |
5493 | 5531 |
5494 | 5532 |
5495 var h = { | 5533 var h = { |
5496 "content-type" : "application/json; charset=utf-8", | 5534 "content-type" : "application/json; charset=utf-8", |
5497 }; | 5535 }; |
5498 var resp = convert.JSON.encode(buildRollout()); | 5536 var resp = convert.JSON.encode(buildRollout()); |
5499 return new async.Future.value(stringResponse(200, h, resp)); | 5537 return new async.Future.value(stringResponse(200, h, resp)); |
5500 }), true); | 5538 }), true); |
5501 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync(((api.Ro
llout response) { | 5539 res.get(arg_serviceName, arg_rolloutId).then(unittest.expectAsync1(((api.R
ollout response) { |
5502 checkRollout(response); | 5540 checkRollout(response); |
5503 }))); | 5541 }))); |
5504 }); | 5542 }); |
5505 | 5543 |
5506 unittest.test("method--list", () { | 5544 unittest.test("method--list", () { |
5507 | 5545 |
5508 var mock = new HttpServerMock(); | 5546 var mock = new HttpServerMock(); |
5509 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; | 5547 api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).s
ervices.rollouts; |
5510 var arg_serviceName = "foo"; | 5548 var arg_serviceName = "foo"; |
5511 var arg_pageToken = "foo"; | 5549 var arg_pageToken = "foo"; |
5512 var arg_pageSize = 42; | 5550 var arg_pageSize = 42; |
5513 var arg_filter = "foo"; | 5551 var arg_filter = "foo"; |
5514 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5552 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5515 var path = (req.url).path; | 5553 var path = (req.url).path; |
5516 var pathOffset = 0; | 5554 var pathOffset = 0; |
5517 var index; | 5555 var index; |
5518 var subPart; | 5556 var subPart; |
5519 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5557 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5520 pathOffset += 1; | 5558 pathOffset += 1; |
5521 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 5559 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
5522 pathOffset += 12; | 5560 pathOffset += 12; |
5523 index = path.indexOf("/rollouts", pathOffset); | 5561 index = path.indexOf("/rollouts", pathOffset); |
5524 unittest.expect(index >= 0, unittest.isTrue); | 5562 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 23 matching lines...) Loading... |
5548 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5586 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
5549 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 5587 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
5550 | 5588 |
5551 | 5589 |
5552 var h = { | 5590 var h = { |
5553 "content-type" : "application/json; charset=utf-8", | 5591 "content-type" : "application/json; charset=utf-8", |
5554 }; | 5592 }; |
5555 var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); | 5593 var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); |
5556 return new async.Future.value(stringResponse(200, h, resp)); | 5594 return new async.Future.value(stringResponse(200, h, resp)); |
5557 }), true); | 5595 }), true); |
5558 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize
, filter: arg_filter).then(unittest.expectAsync(((api.ListServiceRolloutsRespons
e response) { | 5596 res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize
, filter: arg_filter).then(unittest.expectAsync1(((api.ListServiceRolloutsRespon
se response) { |
5559 checkListServiceRolloutsResponse(response); | 5597 checkListServiceRolloutsResponse(response); |
5560 }))); | 5598 }))); |
5561 }); | 5599 }); |
5562 | 5600 |
5563 }); | 5601 }); |
5564 | 5602 |
5565 | 5603 |
5566 } | 5604 } |
5567 | 5605 |
OLD | NEW |