OLD | NEW |
1 library googleapis_beta.dns.v2beta1.test; | 1 library googleapis_beta.dns.v2beta1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 headers, core.String body) { |
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 buildUnnamed3699() { | 54 buildUnnamed3791() { |
55 var o = new core.List<api.ResourceRecordSet>(); | 55 var o = new core.List<api.ResourceRecordSet>(); |
56 o.add(buildResourceRecordSet()); | 56 o.add(buildResourceRecordSet()); |
57 o.add(buildResourceRecordSet()); | 57 o.add(buildResourceRecordSet()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed3699(core.List<api.ResourceRecordSet> o) { | 61 checkUnnamed3791(core.List<api.ResourceRecordSet> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkResourceRecordSet(o[0]); | 63 checkResourceRecordSet(o[0]); |
64 checkResourceRecordSet(o[1]); | 64 checkResourceRecordSet(o[1]); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed3700() { | 67 buildUnnamed3792() { |
68 var o = new core.List<api.ResourceRecordSet>(); | 68 var o = new core.List<api.ResourceRecordSet>(); |
69 o.add(buildResourceRecordSet()); | 69 o.add(buildResourceRecordSet()); |
70 o.add(buildResourceRecordSet()); | 70 o.add(buildResourceRecordSet()); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed3700(core.List<api.ResourceRecordSet> o) { | 74 checkUnnamed3792(core.List<api.ResourceRecordSet> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 checkResourceRecordSet(o[0]); | 76 checkResourceRecordSet(o[0]); |
77 checkResourceRecordSet(o[1]); | 77 checkResourceRecordSet(o[1]); |
78 } | 78 } |
79 | 79 |
80 core.int buildCounterChange = 0; | 80 core.int buildCounterChange = 0; |
81 buildChange() { | 81 buildChange() { |
82 var o = new api.Change(); | 82 var o = new api.Change(); |
83 buildCounterChange++; | 83 buildCounterChange++; |
84 if (buildCounterChange < 3) { | 84 if (buildCounterChange < 3) { |
85 o.additions = buildUnnamed3699(); | 85 o.additions = buildUnnamed3791(); |
86 o.deletions = buildUnnamed3700(); | 86 o.deletions = buildUnnamed3792(); |
87 o.id = "foo"; | 87 o.id = "foo"; |
88 o.isServing = true; | 88 o.isServing = true; |
89 o.kind = "foo"; | 89 o.kind = "foo"; |
90 o.startTime = "foo"; | 90 o.startTime = "foo"; |
91 o.status = "foo"; | 91 o.status = "foo"; |
92 } | 92 } |
93 buildCounterChange--; | 93 buildCounterChange--; |
94 return o; | 94 return o; |
95 } | 95 } |
96 | 96 |
97 checkChange(api.Change o) { | 97 checkChange(api.Change o) { |
98 buildCounterChange++; | 98 buildCounterChange++; |
99 if (buildCounterChange < 3) { | 99 if (buildCounterChange < 3) { |
100 checkUnnamed3699(o.additions); | 100 checkUnnamed3791(o.additions); |
101 checkUnnamed3700(o.deletions); | 101 checkUnnamed3792(o.deletions); |
102 unittest.expect(o.id, unittest.equals('foo')); | 102 unittest.expect(o.id, unittest.equals('foo')); |
103 unittest.expect(o.isServing, unittest.isTrue); | 103 unittest.expect(o.isServing, unittest.isTrue); |
104 unittest.expect(o.kind, unittest.equals('foo')); | 104 unittest.expect(o.kind, unittest.equals('foo')); |
105 unittest.expect(o.startTime, unittest.equals('foo')); | 105 unittest.expect(o.startTime, unittest.equals('foo')); |
106 unittest.expect(o.status, unittest.equals('foo')); | 106 unittest.expect(o.status, unittest.equals('foo')); |
107 } | 107 } |
108 buildCounterChange--; | 108 buildCounterChange--; |
109 } | 109 } |
110 | 110 |
111 buildUnnamed3701() { | 111 buildUnnamed3793() { |
112 var o = new core.List<api.Change>(); | 112 var o = new core.List<api.Change>(); |
113 o.add(buildChange()); | 113 o.add(buildChange()); |
114 o.add(buildChange()); | 114 o.add(buildChange()); |
115 return o; | 115 return o; |
116 } | 116 } |
117 | 117 |
118 checkUnnamed3701(core.List<api.Change> o) { | 118 checkUnnamed3793(core.List<api.Change> o) { |
119 unittest.expect(o, unittest.hasLength(2)); | 119 unittest.expect(o, unittest.hasLength(2)); |
120 checkChange(o[0]); | 120 checkChange(o[0]); |
121 checkChange(o[1]); | 121 checkChange(o[1]); |
122 } | 122 } |
123 | 123 |
124 core.int buildCounterChangesListResponse = 0; | 124 core.int buildCounterChangesListResponse = 0; |
125 buildChangesListResponse() { | 125 buildChangesListResponse() { |
126 var o = new api.ChangesListResponse(); | 126 var o = new api.ChangesListResponse(); |
127 buildCounterChangesListResponse++; | 127 buildCounterChangesListResponse++; |
128 if (buildCounterChangesListResponse < 3) { | 128 if (buildCounterChangesListResponse < 3) { |
129 o.changes = buildUnnamed3701(); | 129 o.changes = buildUnnamed3793(); |
130 o.header = buildResponseHeader(); | 130 o.header = buildResponseHeader(); |
131 o.kind = "foo"; | 131 o.kind = "foo"; |
132 o.nextPageToken = "foo"; | 132 o.nextPageToken = "foo"; |
133 } | 133 } |
134 buildCounterChangesListResponse--; | 134 buildCounterChangesListResponse--; |
135 return o; | 135 return o; |
136 } | 136 } |
137 | 137 |
138 checkChangesListResponse(api.ChangesListResponse o) { | 138 checkChangesListResponse(api.ChangesListResponse o) { |
139 buildCounterChangesListResponse++; | 139 buildCounterChangesListResponse++; |
140 if (buildCounterChangesListResponse < 3) { | 140 if (buildCounterChangesListResponse < 3) { |
141 checkUnnamed3701(o.changes); | 141 checkUnnamed3793(o.changes); |
142 checkResponseHeader(o.header); | 142 checkResponseHeader(o.header); |
143 unittest.expect(o.kind, unittest.equals('foo')); | 143 unittest.expect(o.kind, unittest.equals('foo')); |
144 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 144 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
145 } | 145 } |
146 buildCounterChangesListResponse--; | 146 buildCounterChangesListResponse--; |
147 } | 147 } |
148 | 148 |
149 buildUnnamed3702() { | 149 buildUnnamed3794() { |
150 var o = new core.List<api.DnsKeyDigest>(); | 150 var o = new core.List<api.DnsKeyDigest>(); |
151 o.add(buildDnsKeyDigest()); | 151 o.add(buildDnsKeyDigest()); |
152 o.add(buildDnsKeyDigest()); | 152 o.add(buildDnsKeyDigest()); |
153 return o; | 153 return o; |
154 } | 154 } |
155 | 155 |
156 checkUnnamed3702(core.List<api.DnsKeyDigest> o) { | 156 checkUnnamed3794(core.List<api.DnsKeyDigest> o) { |
157 unittest.expect(o, unittest.hasLength(2)); | 157 unittest.expect(o, unittest.hasLength(2)); |
158 checkDnsKeyDigest(o[0]); | 158 checkDnsKeyDigest(o[0]); |
159 checkDnsKeyDigest(o[1]); | 159 checkDnsKeyDigest(o[1]); |
160 } | 160 } |
161 | 161 |
162 core.int buildCounterDnsKey = 0; | 162 core.int buildCounterDnsKey = 0; |
163 buildDnsKey() { | 163 buildDnsKey() { |
164 var o = new api.DnsKey(); | 164 var o = new api.DnsKey(); |
165 buildCounterDnsKey++; | 165 buildCounterDnsKey++; |
166 if (buildCounterDnsKey < 3) { | 166 if (buildCounterDnsKey < 3) { |
167 o.algorithm = "foo"; | 167 o.algorithm = "foo"; |
168 o.creationTime = "foo"; | 168 o.creationTime = "foo"; |
169 o.description = "foo"; | 169 o.description = "foo"; |
170 o.digests = buildUnnamed3702(); | 170 o.digests = buildUnnamed3794(); |
171 o.id = "foo"; | 171 o.id = "foo"; |
172 o.isActive = true; | 172 o.isActive = true; |
173 o.keyLength = 42; | 173 o.keyLength = 42; |
174 o.keyTag = 42; | 174 o.keyTag = 42; |
175 o.kind = "foo"; | 175 o.kind = "foo"; |
176 o.publicKey = "foo"; | 176 o.publicKey = "foo"; |
177 o.type = "foo"; | 177 o.type = "foo"; |
178 } | 178 } |
179 buildCounterDnsKey--; | 179 buildCounterDnsKey--; |
180 return o; | 180 return o; |
181 } | 181 } |
182 | 182 |
183 checkDnsKey(api.DnsKey o) { | 183 checkDnsKey(api.DnsKey o) { |
184 buildCounterDnsKey++; | 184 buildCounterDnsKey++; |
185 if (buildCounterDnsKey < 3) { | 185 if (buildCounterDnsKey < 3) { |
186 unittest.expect(o.algorithm, unittest.equals('foo')); | 186 unittest.expect(o.algorithm, unittest.equals('foo')); |
187 unittest.expect(o.creationTime, unittest.equals('foo')); | 187 unittest.expect(o.creationTime, unittest.equals('foo')); |
188 unittest.expect(o.description, unittest.equals('foo')); | 188 unittest.expect(o.description, unittest.equals('foo')); |
189 checkUnnamed3702(o.digests); | 189 checkUnnamed3794(o.digests); |
190 unittest.expect(o.id, unittest.equals('foo')); | 190 unittest.expect(o.id, unittest.equals('foo')); |
191 unittest.expect(o.isActive, unittest.isTrue); | 191 unittest.expect(o.isActive, unittest.isTrue); |
192 unittest.expect(o.keyLength, unittest.equals(42)); | 192 unittest.expect(o.keyLength, unittest.equals(42)); |
193 unittest.expect(o.keyTag, unittest.equals(42)); | 193 unittest.expect(o.keyTag, unittest.equals(42)); |
194 unittest.expect(o.kind, unittest.equals('foo')); | 194 unittest.expect(o.kind, unittest.equals('foo')); |
195 unittest.expect(o.publicKey, unittest.equals('foo')); | 195 unittest.expect(o.publicKey, unittest.equals('foo')); |
196 unittest.expect(o.type, unittest.equals('foo')); | 196 unittest.expect(o.type, unittest.equals('foo')); |
197 } | 197 } |
198 buildCounterDnsKey--; | 198 buildCounterDnsKey--; |
199 } | 199 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 buildCounterDnsKeySpec++; | 237 buildCounterDnsKeySpec++; |
238 if (buildCounterDnsKeySpec < 3) { | 238 if (buildCounterDnsKeySpec < 3) { |
239 unittest.expect(o.algorithm, unittest.equals('foo')); | 239 unittest.expect(o.algorithm, unittest.equals('foo')); |
240 unittest.expect(o.keyLength, unittest.equals(42)); | 240 unittest.expect(o.keyLength, unittest.equals(42)); |
241 unittest.expect(o.keyType, unittest.equals('foo')); | 241 unittest.expect(o.keyType, unittest.equals('foo')); |
242 unittest.expect(o.kind, unittest.equals('foo')); | 242 unittest.expect(o.kind, unittest.equals('foo')); |
243 } | 243 } |
244 buildCounterDnsKeySpec--; | 244 buildCounterDnsKeySpec--; |
245 } | 245 } |
246 | 246 |
247 buildUnnamed3703() { | 247 buildUnnamed3795() { |
248 var o = new core.List<api.DnsKey>(); | 248 var o = new core.List<api.DnsKey>(); |
249 o.add(buildDnsKey()); | 249 o.add(buildDnsKey()); |
250 o.add(buildDnsKey()); | 250 o.add(buildDnsKey()); |
251 return o; | 251 return o; |
252 } | 252 } |
253 | 253 |
254 checkUnnamed3703(core.List<api.DnsKey> o) { | 254 checkUnnamed3795(core.List<api.DnsKey> o) { |
255 unittest.expect(o, unittest.hasLength(2)); | 255 unittest.expect(o, unittest.hasLength(2)); |
256 checkDnsKey(o[0]); | 256 checkDnsKey(o[0]); |
257 checkDnsKey(o[1]); | 257 checkDnsKey(o[1]); |
258 } | 258 } |
259 | 259 |
260 core.int buildCounterDnsKeysListResponse = 0; | 260 core.int buildCounterDnsKeysListResponse = 0; |
261 buildDnsKeysListResponse() { | 261 buildDnsKeysListResponse() { |
262 var o = new api.DnsKeysListResponse(); | 262 var o = new api.DnsKeysListResponse(); |
263 buildCounterDnsKeysListResponse++; | 263 buildCounterDnsKeysListResponse++; |
264 if (buildCounterDnsKeysListResponse < 3) { | 264 if (buildCounterDnsKeysListResponse < 3) { |
265 o.dnsKeys = buildUnnamed3703(); | 265 o.dnsKeys = buildUnnamed3795(); |
266 o.header = buildResponseHeader(); | 266 o.header = buildResponseHeader(); |
267 o.kind = "foo"; | 267 o.kind = "foo"; |
268 o.nextPageToken = "foo"; | 268 o.nextPageToken = "foo"; |
269 } | 269 } |
270 buildCounterDnsKeysListResponse--; | 270 buildCounterDnsKeysListResponse--; |
271 return o; | 271 return o; |
272 } | 272 } |
273 | 273 |
274 checkDnsKeysListResponse(api.DnsKeysListResponse o) { | 274 checkDnsKeysListResponse(api.DnsKeysListResponse o) { |
275 buildCounterDnsKeysListResponse++; | 275 buildCounterDnsKeysListResponse++; |
276 if (buildCounterDnsKeysListResponse < 3) { | 276 if (buildCounterDnsKeysListResponse < 3) { |
277 checkUnnamed3703(o.dnsKeys); | 277 checkUnnamed3795(o.dnsKeys); |
278 checkResponseHeader(o.header); | 278 checkResponseHeader(o.header); |
279 unittest.expect(o.kind, unittest.equals('foo')); | 279 unittest.expect(o.kind, unittest.equals('foo')); |
280 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 280 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
281 } | 281 } |
282 buildCounterDnsKeysListResponse--; | 282 buildCounterDnsKeysListResponse--; |
283 } | 283 } |
284 | 284 |
285 buildUnnamed3704() { | 285 buildUnnamed3796() { |
286 var o = new core.List<core.String>(); | 286 var o = new core.List<core.String>(); |
287 o.add("foo"); | 287 o.add("foo"); |
288 o.add("foo"); | 288 o.add("foo"); |
289 return o; | 289 return o; |
290 } | 290 } |
291 | 291 |
292 checkUnnamed3704(core.List<core.String> o) { | 292 checkUnnamed3796(core.List<core.String> o) { |
293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
294 unittest.expect(o[0], unittest.equals('foo')); | 294 unittest.expect(o[0], unittest.equals('foo')); |
295 unittest.expect(o[1], unittest.equals('foo')); | 295 unittest.expect(o[1], unittest.equals('foo')); |
296 } | 296 } |
297 | 297 |
298 core.int buildCounterManagedZone = 0; | 298 core.int buildCounterManagedZone = 0; |
299 buildManagedZone() { | 299 buildManagedZone() { |
300 var o = new api.ManagedZone(); | 300 var o = new api.ManagedZone(); |
301 buildCounterManagedZone++; | 301 buildCounterManagedZone++; |
302 if (buildCounterManagedZone < 3) { | 302 if (buildCounterManagedZone < 3) { |
303 o.creationTime = "foo"; | 303 o.creationTime = "foo"; |
304 o.description = "foo"; | 304 o.description = "foo"; |
305 o.dnsName = "foo"; | 305 o.dnsName = "foo"; |
306 o.dnssecConfig = buildManagedZoneDnsSecConfig(); | 306 o.dnssecConfig = buildManagedZoneDnsSecConfig(); |
307 o.id = "foo"; | 307 o.id = "foo"; |
308 o.kind = "foo"; | 308 o.kind = "foo"; |
309 o.name = "foo"; | 309 o.name = "foo"; |
310 o.nameServerSet = "foo"; | 310 o.nameServerSet = "foo"; |
311 o.nameServers = buildUnnamed3704(); | 311 o.nameServers = buildUnnamed3796(); |
312 } | 312 } |
313 buildCounterManagedZone--; | 313 buildCounterManagedZone--; |
314 return o; | 314 return o; |
315 } | 315 } |
316 | 316 |
317 checkManagedZone(api.ManagedZone o) { | 317 checkManagedZone(api.ManagedZone o) { |
318 buildCounterManagedZone++; | 318 buildCounterManagedZone++; |
319 if (buildCounterManagedZone < 3) { | 319 if (buildCounterManagedZone < 3) { |
320 unittest.expect(o.creationTime, unittest.equals('foo')); | 320 unittest.expect(o.creationTime, unittest.equals('foo')); |
321 unittest.expect(o.description, unittest.equals('foo')); | 321 unittest.expect(o.description, unittest.equals('foo')); |
322 unittest.expect(o.dnsName, unittest.equals('foo')); | 322 unittest.expect(o.dnsName, unittest.equals('foo')); |
323 checkManagedZoneDnsSecConfig(o.dnssecConfig); | 323 checkManagedZoneDnsSecConfig(o.dnssecConfig); |
324 unittest.expect(o.id, unittest.equals('foo')); | 324 unittest.expect(o.id, unittest.equals('foo')); |
325 unittest.expect(o.kind, unittest.equals('foo')); | 325 unittest.expect(o.kind, unittest.equals('foo')); |
326 unittest.expect(o.name, unittest.equals('foo')); | 326 unittest.expect(o.name, unittest.equals('foo')); |
327 unittest.expect(o.nameServerSet, unittest.equals('foo')); | 327 unittest.expect(o.nameServerSet, unittest.equals('foo')); |
328 checkUnnamed3704(o.nameServers); | 328 checkUnnamed3796(o.nameServers); |
329 } | 329 } |
330 buildCounterManagedZone--; | 330 buildCounterManagedZone--; |
331 } | 331 } |
332 | 332 |
333 buildUnnamed3705() { | 333 buildUnnamed3797() { |
334 var o = new core.List<api.DnsKeySpec>(); | 334 var o = new core.List<api.DnsKeySpec>(); |
335 o.add(buildDnsKeySpec()); | 335 o.add(buildDnsKeySpec()); |
336 o.add(buildDnsKeySpec()); | 336 o.add(buildDnsKeySpec()); |
337 return o; | 337 return o; |
338 } | 338 } |
339 | 339 |
340 checkUnnamed3705(core.List<api.DnsKeySpec> o) { | 340 checkUnnamed3797(core.List<api.DnsKeySpec> o) { |
341 unittest.expect(o, unittest.hasLength(2)); | 341 unittest.expect(o, unittest.hasLength(2)); |
342 checkDnsKeySpec(o[0]); | 342 checkDnsKeySpec(o[0]); |
343 checkDnsKeySpec(o[1]); | 343 checkDnsKeySpec(o[1]); |
344 } | 344 } |
345 | 345 |
346 core.int buildCounterManagedZoneDnsSecConfig = 0; | 346 core.int buildCounterManagedZoneDnsSecConfig = 0; |
347 buildManagedZoneDnsSecConfig() { | 347 buildManagedZoneDnsSecConfig() { |
348 var o = new api.ManagedZoneDnsSecConfig(); | 348 var o = new api.ManagedZoneDnsSecConfig(); |
349 buildCounterManagedZoneDnsSecConfig++; | 349 buildCounterManagedZoneDnsSecConfig++; |
350 if (buildCounterManagedZoneDnsSecConfig < 3) { | 350 if (buildCounterManagedZoneDnsSecConfig < 3) { |
351 o.defaultKeySpecs = buildUnnamed3705(); | 351 o.defaultKeySpecs = buildUnnamed3797(); |
352 o.kind = "foo"; | 352 o.kind = "foo"; |
353 o.nonExistence = "foo"; | 353 o.nonExistence = "foo"; |
354 o.state = "foo"; | 354 o.state = "foo"; |
355 } | 355 } |
356 buildCounterManagedZoneDnsSecConfig--; | 356 buildCounterManagedZoneDnsSecConfig--; |
357 return o; | 357 return o; |
358 } | 358 } |
359 | 359 |
360 checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { | 360 checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { |
361 buildCounterManagedZoneDnsSecConfig++; | 361 buildCounterManagedZoneDnsSecConfig++; |
362 if (buildCounterManagedZoneDnsSecConfig < 3) { | 362 if (buildCounterManagedZoneDnsSecConfig < 3) { |
363 checkUnnamed3705(o.defaultKeySpecs); | 363 checkUnnamed3797(o.defaultKeySpecs); |
364 unittest.expect(o.kind, unittest.equals('foo')); | 364 unittest.expect(o.kind, unittest.equals('foo')); |
365 unittest.expect(o.nonExistence, unittest.equals('foo')); | 365 unittest.expect(o.nonExistence, unittest.equals('foo')); |
366 unittest.expect(o.state, unittest.equals('foo')); | 366 unittest.expect(o.state, unittest.equals('foo')); |
367 } | 367 } |
368 buildCounterManagedZoneDnsSecConfig--; | 368 buildCounterManagedZoneDnsSecConfig--; |
369 } | 369 } |
370 | 370 |
371 buildUnnamed3706() { | 371 buildUnnamed3798() { |
372 var o = new core.List<api.Operation>(); | 372 var o = new core.List<api.Operation>(); |
373 o.add(buildOperation()); | 373 o.add(buildOperation()); |
374 o.add(buildOperation()); | 374 o.add(buildOperation()); |
375 return o; | 375 return o; |
376 } | 376 } |
377 | 377 |
378 checkUnnamed3706(core.List<api.Operation> o) { | 378 checkUnnamed3798(core.List<api.Operation> o) { |
379 unittest.expect(o, unittest.hasLength(2)); | 379 unittest.expect(o, unittest.hasLength(2)); |
380 checkOperation(o[0]); | 380 checkOperation(o[0]); |
381 checkOperation(o[1]); | 381 checkOperation(o[1]); |
382 } | 382 } |
383 | 383 |
384 core.int buildCounterManagedZoneOperationsListResponse = 0; | 384 core.int buildCounterManagedZoneOperationsListResponse = 0; |
385 buildManagedZoneOperationsListResponse() { | 385 buildManagedZoneOperationsListResponse() { |
386 var o = new api.ManagedZoneOperationsListResponse(); | 386 var o = new api.ManagedZoneOperationsListResponse(); |
387 buildCounterManagedZoneOperationsListResponse++; | 387 buildCounterManagedZoneOperationsListResponse++; |
388 if (buildCounterManagedZoneOperationsListResponse < 3) { | 388 if (buildCounterManagedZoneOperationsListResponse < 3) { |
389 o.header = buildResponseHeader(); | 389 o.header = buildResponseHeader(); |
390 o.kind = "foo"; | 390 o.kind = "foo"; |
391 o.nextPageToken = "foo"; | 391 o.nextPageToken = "foo"; |
392 o.operations = buildUnnamed3706(); | 392 o.operations = buildUnnamed3798(); |
393 } | 393 } |
394 buildCounterManagedZoneOperationsListResponse--; | 394 buildCounterManagedZoneOperationsListResponse--; |
395 return o; | 395 return o; |
396 } | 396 } |
397 | 397 |
398 checkManagedZoneOperationsListResponse(api.ManagedZoneOperationsListResponse o)
{ | 398 checkManagedZoneOperationsListResponse(api.ManagedZoneOperationsListResponse o)
{ |
399 buildCounterManagedZoneOperationsListResponse++; | 399 buildCounterManagedZoneOperationsListResponse++; |
400 if (buildCounterManagedZoneOperationsListResponse < 3) { | 400 if (buildCounterManagedZoneOperationsListResponse < 3) { |
401 checkResponseHeader(o.header); | 401 checkResponseHeader(o.header); |
402 unittest.expect(o.kind, unittest.equals('foo')); | 402 unittest.expect(o.kind, unittest.equals('foo')); |
403 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 403 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
404 checkUnnamed3706(o.operations); | 404 checkUnnamed3798(o.operations); |
405 } | 405 } |
406 buildCounterManagedZoneOperationsListResponse--; | 406 buildCounterManagedZoneOperationsListResponse--; |
407 } | 407 } |
408 | 408 |
409 core.int buildCounterManagedZonesDeleteResponse = 0; | 409 core.int buildCounterManagedZonesDeleteResponse = 0; |
410 buildManagedZonesDeleteResponse() { | 410 buildManagedZonesDeleteResponse() { |
411 var o = new api.ManagedZonesDeleteResponse(); | 411 var o = new api.ManagedZonesDeleteResponse(); |
412 buildCounterManagedZonesDeleteResponse++; | 412 buildCounterManagedZonesDeleteResponse++; |
413 if (buildCounterManagedZonesDeleteResponse < 3) { | 413 if (buildCounterManagedZonesDeleteResponse < 3) { |
414 o.header = buildResponseHeader(); | 414 o.header = buildResponseHeader(); |
415 } | 415 } |
416 buildCounterManagedZonesDeleteResponse--; | 416 buildCounterManagedZonesDeleteResponse--; |
417 return o; | 417 return o; |
418 } | 418 } |
419 | 419 |
420 checkManagedZonesDeleteResponse(api.ManagedZonesDeleteResponse o) { | 420 checkManagedZonesDeleteResponse(api.ManagedZonesDeleteResponse o) { |
421 buildCounterManagedZonesDeleteResponse++; | 421 buildCounterManagedZonesDeleteResponse++; |
422 if (buildCounterManagedZonesDeleteResponse < 3) { | 422 if (buildCounterManagedZonesDeleteResponse < 3) { |
423 checkResponseHeader(o.header); | 423 checkResponseHeader(o.header); |
424 } | 424 } |
425 buildCounterManagedZonesDeleteResponse--; | 425 buildCounterManagedZonesDeleteResponse--; |
426 } | 426 } |
427 | 427 |
428 buildUnnamed3707() { | 428 buildUnnamed3799() { |
429 var o = new core.List<api.ManagedZone>(); | 429 var o = new core.List<api.ManagedZone>(); |
430 o.add(buildManagedZone()); | 430 o.add(buildManagedZone()); |
431 o.add(buildManagedZone()); | 431 o.add(buildManagedZone()); |
432 return o; | 432 return o; |
433 } | 433 } |
434 | 434 |
435 checkUnnamed3707(core.List<api.ManagedZone> o) { | 435 checkUnnamed3799(core.List<api.ManagedZone> o) { |
436 unittest.expect(o, unittest.hasLength(2)); | 436 unittest.expect(o, unittest.hasLength(2)); |
437 checkManagedZone(o[0]); | 437 checkManagedZone(o[0]); |
438 checkManagedZone(o[1]); | 438 checkManagedZone(o[1]); |
439 } | 439 } |
440 | 440 |
441 core.int buildCounterManagedZonesListResponse = 0; | 441 core.int buildCounterManagedZonesListResponse = 0; |
442 buildManagedZonesListResponse() { | 442 buildManagedZonesListResponse() { |
443 var o = new api.ManagedZonesListResponse(); | 443 var o = new api.ManagedZonesListResponse(); |
444 buildCounterManagedZonesListResponse++; | 444 buildCounterManagedZonesListResponse++; |
445 if (buildCounterManagedZonesListResponse < 3) { | 445 if (buildCounterManagedZonesListResponse < 3) { |
446 o.header = buildResponseHeader(); | 446 o.header = buildResponseHeader(); |
447 o.kind = "foo"; | 447 o.kind = "foo"; |
448 o.managedZones = buildUnnamed3707(); | 448 o.managedZones = buildUnnamed3799(); |
449 o.nextPageToken = "foo"; | 449 o.nextPageToken = "foo"; |
450 } | 450 } |
451 buildCounterManagedZonesListResponse--; | 451 buildCounterManagedZonesListResponse--; |
452 return o; | 452 return o; |
453 } | 453 } |
454 | 454 |
455 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { | 455 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { |
456 buildCounterManagedZonesListResponse++; | 456 buildCounterManagedZonesListResponse++; |
457 if (buildCounterManagedZonesListResponse < 3) { | 457 if (buildCounterManagedZonesListResponse < 3) { |
458 checkResponseHeader(o.header); | 458 checkResponseHeader(o.header); |
459 unittest.expect(o.kind, unittest.equals('foo')); | 459 unittest.expect(o.kind, unittest.equals('foo')); |
460 checkUnnamed3707(o.managedZones); | 460 checkUnnamed3799(o.managedZones); |
461 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 461 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
462 } | 462 } |
463 buildCounterManagedZonesListResponse--; | 463 buildCounterManagedZonesListResponse--; |
464 } | 464 } |
465 | 465 |
466 core.int buildCounterOperation = 0; | 466 core.int buildCounterOperation = 0; |
467 buildOperation() { | 467 buildOperation() { |
468 var o = new api.Operation(); | 468 var o = new api.Operation(); |
469 buildCounterOperation++; | 469 buildCounterOperation++; |
470 if (buildCounterOperation < 3) { | 470 if (buildCounterOperation < 3) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 buildCounterProject++; | 556 buildCounterProject++; |
557 if (buildCounterProject < 3) { | 557 if (buildCounterProject < 3) { |
558 unittest.expect(o.id, unittest.equals('foo')); | 558 unittest.expect(o.id, unittest.equals('foo')); |
559 unittest.expect(o.kind, unittest.equals('foo')); | 559 unittest.expect(o.kind, unittest.equals('foo')); |
560 unittest.expect(o.number, unittest.equals('foo')); | 560 unittest.expect(o.number, unittest.equals('foo')); |
561 checkQuota(o.quota); | 561 checkQuota(o.quota); |
562 } | 562 } |
563 buildCounterProject--; | 563 buildCounterProject--; |
564 } | 564 } |
565 | 565 |
566 buildUnnamed3708() { | 566 buildUnnamed3800() { |
567 var o = new core.List<api.DnsKeySpec>(); | 567 var o = new core.List<api.DnsKeySpec>(); |
568 o.add(buildDnsKeySpec()); | 568 o.add(buildDnsKeySpec()); |
569 o.add(buildDnsKeySpec()); | 569 o.add(buildDnsKeySpec()); |
570 return o; | 570 return o; |
571 } | 571 } |
572 | 572 |
573 checkUnnamed3708(core.List<api.DnsKeySpec> o) { | 573 checkUnnamed3800(core.List<api.DnsKeySpec> o) { |
574 unittest.expect(o, unittest.hasLength(2)); | 574 unittest.expect(o, unittest.hasLength(2)); |
575 checkDnsKeySpec(o[0]); | 575 checkDnsKeySpec(o[0]); |
576 checkDnsKeySpec(o[1]); | 576 checkDnsKeySpec(o[1]); |
577 } | 577 } |
578 | 578 |
579 core.int buildCounterQuota = 0; | 579 core.int buildCounterQuota = 0; |
580 buildQuota() { | 580 buildQuota() { |
581 var o = new api.Quota(); | 581 var o = new api.Quota(); |
582 buildCounterQuota++; | 582 buildCounterQuota++; |
583 if (buildCounterQuota < 3) { | 583 if (buildCounterQuota < 3) { |
584 o.dnsKeysPerManagedZone = 42; | 584 o.dnsKeysPerManagedZone = 42; |
585 o.kind = "foo"; | 585 o.kind = "foo"; |
586 o.managedZones = 42; | 586 o.managedZones = 42; |
587 o.resourceRecordsPerRrset = 42; | 587 o.resourceRecordsPerRrset = 42; |
588 o.rrsetAdditionsPerChange = 42; | 588 o.rrsetAdditionsPerChange = 42; |
589 o.rrsetDeletionsPerChange = 42; | 589 o.rrsetDeletionsPerChange = 42; |
590 o.rrsetsPerManagedZone = 42; | 590 o.rrsetsPerManagedZone = 42; |
591 o.totalRrdataSizePerChange = 42; | 591 o.totalRrdataSizePerChange = 42; |
592 o.whitelistedKeySpecs = buildUnnamed3708(); | 592 o.whitelistedKeySpecs = buildUnnamed3800(); |
593 } | 593 } |
594 buildCounterQuota--; | 594 buildCounterQuota--; |
595 return o; | 595 return o; |
596 } | 596 } |
597 | 597 |
598 checkQuota(api.Quota o) { | 598 checkQuota(api.Quota o) { |
599 buildCounterQuota++; | 599 buildCounterQuota++; |
600 if (buildCounterQuota < 3) { | 600 if (buildCounterQuota < 3) { |
601 unittest.expect(o.dnsKeysPerManagedZone, unittest.equals(42)); | 601 unittest.expect(o.dnsKeysPerManagedZone, unittest.equals(42)); |
602 unittest.expect(o.kind, unittest.equals('foo')); | 602 unittest.expect(o.kind, unittest.equals('foo')); |
603 unittest.expect(o.managedZones, unittest.equals(42)); | 603 unittest.expect(o.managedZones, unittest.equals(42)); |
604 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); | 604 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); |
605 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); | 605 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); |
606 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); | 606 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); |
607 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); | 607 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); |
608 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); | 608 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); |
609 checkUnnamed3708(o.whitelistedKeySpecs); | 609 checkUnnamed3800(o.whitelistedKeySpecs); |
610 } | 610 } |
611 buildCounterQuota--; | 611 buildCounterQuota--; |
612 } | 612 } |
613 | 613 |
614 buildUnnamed3709() { | 614 buildUnnamed3801() { |
615 var o = new core.List<core.String>(); | 615 var o = new core.List<core.String>(); |
616 o.add("foo"); | 616 o.add("foo"); |
617 o.add("foo"); | 617 o.add("foo"); |
618 return o; | 618 return o; |
619 } | 619 } |
620 | 620 |
621 checkUnnamed3709(core.List<core.String> o) { | 621 checkUnnamed3801(core.List<core.String> o) { |
622 unittest.expect(o, unittest.hasLength(2)); | 622 unittest.expect(o, unittest.hasLength(2)); |
623 unittest.expect(o[0], unittest.equals('foo')); | 623 unittest.expect(o[0], unittest.equals('foo')); |
624 unittest.expect(o[1], unittest.equals('foo')); | 624 unittest.expect(o[1], unittest.equals('foo')); |
625 } | 625 } |
626 | 626 |
627 buildUnnamed3710() { | 627 buildUnnamed3802() { |
628 var o = new core.List<core.String>(); | 628 var o = new core.List<core.String>(); |
629 o.add("foo"); | 629 o.add("foo"); |
630 o.add("foo"); | 630 o.add("foo"); |
631 return o; | 631 return o; |
632 } | 632 } |
633 | 633 |
634 checkUnnamed3710(core.List<core.String> o) { | 634 checkUnnamed3802(core.List<core.String> o) { |
635 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
636 unittest.expect(o[0], unittest.equals('foo')); | 636 unittest.expect(o[0], unittest.equals('foo')); |
637 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o[1], unittest.equals('foo')); |
638 } | 638 } |
639 | 639 |
640 core.int buildCounterResourceRecordSet = 0; | 640 core.int buildCounterResourceRecordSet = 0; |
641 buildResourceRecordSet() { | 641 buildResourceRecordSet() { |
642 var o = new api.ResourceRecordSet(); | 642 var o = new api.ResourceRecordSet(); |
643 buildCounterResourceRecordSet++; | 643 buildCounterResourceRecordSet++; |
644 if (buildCounterResourceRecordSet < 3) { | 644 if (buildCounterResourceRecordSet < 3) { |
645 o.kind = "foo"; | 645 o.kind = "foo"; |
646 o.name = "foo"; | 646 o.name = "foo"; |
647 o.rrdatas = buildUnnamed3709(); | 647 o.rrdatas = buildUnnamed3801(); |
648 o.signatureRrdatas = buildUnnamed3710(); | 648 o.signatureRrdatas = buildUnnamed3802(); |
649 o.ttl = 42; | 649 o.ttl = 42; |
650 o.type = "foo"; | 650 o.type = "foo"; |
651 } | 651 } |
652 buildCounterResourceRecordSet--; | 652 buildCounterResourceRecordSet--; |
653 return o; | 653 return o; |
654 } | 654 } |
655 | 655 |
656 checkResourceRecordSet(api.ResourceRecordSet o) { | 656 checkResourceRecordSet(api.ResourceRecordSet o) { |
657 buildCounterResourceRecordSet++; | 657 buildCounterResourceRecordSet++; |
658 if (buildCounterResourceRecordSet < 3) { | 658 if (buildCounterResourceRecordSet < 3) { |
659 unittest.expect(o.kind, unittest.equals('foo')); | 659 unittest.expect(o.kind, unittest.equals('foo')); |
660 unittest.expect(o.name, unittest.equals('foo')); | 660 unittest.expect(o.name, unittest.equals('foo')); |
661 checkUnnamed3709(o.rrdatas); | 661 checkUnnamed3801(o.rrdatas); |
662 checkUnnamed3710(o.signatureRrdatas); | 662 checkUnnamed3802(o.signatureRrdatas); |
663 unittest.expect(o.ttl, unittest.equals(42)); | 663 unittest.expect(o.ttl, unittest.equals(42)); |
664 unittest.expect(o.type, unittest.equals('foo')); | 664 unittest.expect(o.type, unittest.equals('foo')); |
665 } | 665 } |
666 buildCounterResourceRecordSet--; | 666 buildCounterResourceRecordSet--; |
667 } | 667 } |
668 | 668 |
669 buildUnnamed3711() { | 669 buildUnnamed3803() { |
670 var o = new core.List<api.ResourceRecordSet>(); | 670 var o = new core.List<api.ResourceRecordSet>(); |
671 o.add(buildResourceRecordSet()); | 671 o.add(buildResourceRecordSet()); |
672 o.add(buildResourceRecordSet()); | 672 o.add(buildResourceRecordSet()); |
673 return o; | 673 return o; |
674 } | 674 } |
675 | 675 |
676 checkUnnamed3711(core.List<api.ResourceRecordSet> o) { | 676 checkUnnamed3803(core.List<api.ResourceRecordSet> o) { |
677 unittest.expect(o, unittest.hasLength(2)); | 677 unittest.expect(o, unittest.hasLength(2)); |
678 checkResourceRecordSet(o[0]); | 678 checkResourceRecordSet(o[0]); |
679 checkResourceRecordSet(o[1]); | 679 checkResourceRecordSet(o[1]); |
680 } | 680 } |
681 | 681 |
682 core.int buildCounterResourceRecordSetsListResponse = 0; | 682 core.int buildCounterResourceRecordSetsListResponse = 0; |
683 buildResourceRecordSetsListResponse() { | 683 buildResourceRecordSetsListResponse() { |
684 var o = new api.ResourceRecordSetsListResponse(); | 684 var o = new api.ResourceRecordSetsListResponse(); |
685 buildCounterResourceRecordSetsListResponse++; | 685 buildCounterResourceRecordSetsListResponse++; |
686 if (buildCounterResourceRecordSetsListResponse < 3) { | 686 if (buildCounterResourceRecordSetsListResponse < 3) { |
687 o.header = buildResponseHeader(); | 687 o.header = buildResponseHeader(); |
688 o.kind = "foo"; | 688 o.kind = "foo"; |
689 o.nextPageToken = "foo"; | 689 o.nextPageToken = "foo"; |
690 o.rrsets = buildUnnamed3711(); | 690 o.rrsets = buildUnnamed3803(); |
691 } | 691 } |
692 buildCounterResourceRecordSetsListResponse--; | 692 buildCounterResourceRecordSetsListResponse--; |
693 return o; | 693 return o; |
694 } | 694 } |
695 | 695 |
696 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { | 696 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { |
697 buildCounterResourceRecordSetsListResponse++; | 697 buildCounterResourceRecordSetsListResponse++; |
698 if (buildCounterResourceRecordSetsListResponse < 3) { | 698 if (buildCounterResourceRecordSetsListResponse < 3) { |
699 checkResponseHeader(o.header); | 699 checkResponseHeader(o.header); |
700 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
701 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 701 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
702 checkUnnamed3711(o.rrsets); | 702 checkUnnamed3803(o.rrsets); |
703 } | 703 } |
704 buildCounterResourceRecordSetsListResponse--; | 704 buildCounterResourceRecordSetsListResponse--; |
705 } | 705 } |
706 | 706 |
707 core.int buildCounterResponseHeader = 0; | 707 core.int buildCounterResponseHeader = 0; |
708 buildResponseHeader() { | 708 buildResponseHeader() { |
709 var o = new api.ResponseHeader(); | 709 var o = new api.ResponseHeader(); |
710 buildCounterResponseHeader++; | 710 buildCounterResponseHeader++; |
711 if (buildCounterResponseHeader < 3) { | 711 if (buildCounterResponseHeader < 3) { |
712 o.operationId = "foo"; | 712 o.operationId = "foo"; |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: a
rg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((a
pi.ResourceRecordSetsListResponse response) { | 1632 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: a
rg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((a
pi.ResourceRecordSetsListResponse response) { |
1633 checkResourceRecordSetsListResponse(response); | 1633 checkResourceRecordSetsListResponse(response); |
1634 }))); | 1634 }))); |
1635 }); | 1635 }); |
1636 | 1636 |
1637 }); | 1637 }); |
1638 | 1638 |
1639 | 1639 |
1640 } | 1640 } |
1641 | 1641 |
OLD | NEW |