OLD | NEW |
1 library googleapis_beta.dns.v1beta1.test; | 1 library googleapis_beta.dns.v1beta1.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; |
11 import 'package:googleapis_beta/common/common.dart' as common; | 11 import 'package:googleapis_beta/common/common.dart' as common; |
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis_beta/dns/v1beta1.dart' as api; | 15 import 'package:googleapis_beta/dns/v1beta1.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed1558() { | 19 buildUnnamed1625() { |
20 var o = new core.List<api.ResourceRecordSet>(); | 20 var o = new core.List<api.ResourceRecordSet>(); |
21 o.add(buildResourceRecordSet()); | 21 o.add(buildResourceRecordSet()); |
22 o.add(buildResourceRecordSet()); | 22 o.add(buildResourceRecordSet()); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed1558(core.List<api.ResourceRecordSet> o) { | 26 checkUnnamed1625(core.List<api.ResourceRecordSet> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 checkResourceRecordSet(o[0]); | 28 checkResourceRecordSet(o[0]); |
29 checkResourceRecordSet(o[1]); | 29 checkResourceRecordSet(o[1]); |
30 } | 30 } |
31 | 31 |
32 buildUnnamed1559() { | 32 buildUnnamed1626() { |
33 var o = new core.List<api.ResourceRecordSet>(); | 33 var o = new core.List<api.ResourceRecordSet>(); |
34 o.add(buildResourceRecordSet()); | 34 o.add(buildResourceRecordSet()); |
35 o.add(buildResourceRecordSet()); | 35 o.add(buildResourceRecordSet()); |
36 return o; | 36 return o; |
37 } | 37 } |
38 | 38 |
39 checkUnnamed1559(core.List<api.ResourceRecordSet> o) { | 39 checkUnnamed1626(core.List<api.ResourceRecordSet> o) { |
40 unittest.expect(o, unittest.hasLength(2)); | 40 unittest.expect(o, unittest.hasLength(2)); |
41 checkResourceRecordSet(o[0]); | 41 checkResourceRecordSet(o[0]); |
42 checkResourceRecordSet(o[1]); | 42 checkResourceRecordSet(o[1]); |
43 } | 43 } |
44 | 44 |
45 core.int buildCounterChange = 0; | 45 core.int buildCounterChange = 0; |
46 buildChange() { | 46 buildChange() { |
47 var o = new api.Change(); | 47 var o = new api.Change(); |
48 buildCounterChange++; | 48 buildCounterChange++; |
49 if (buildCounterChange < 3) { | 49 if (buildCounterChange < 3) { |
50 o.additions = buildUnnamed1558(); | 50 o.additions = buildUnnamed1625(); |
51 o.deletions = buildUnnamed1559(); | 51 o.deletions = buildUnnamed1626(); |
52 o.id = "foo"; | 52 o.id = "foo"; |
53 o.kind = "foo"; | 53 o.kind = "foo"; |
54 o.startTime = "foo"; | 54 o.startTime = "foo"; |
55 o.status = "foo"; | 55 o.status = "foo"; |
56 } | 56 } |
57 buildCounterChange--; | 57 buildCounterChange--; |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkChange(api.Change o) { | 61 checkChange(api.Change o) { |
62 buildCounterChange++; | 62 buildCounterChange++; |
63 if (buildCounterChange < 3) { | 63 if (buildCounterChange < 3) { |
64 checkUnnamed1558(o.additions); | 64 checkUnnamed1625(o.additions); |
65 checkUnnamed1559(o.deletions); | 65 checkUnnamed1626(o.deletions); |
66 unittest.expect(o.id, unittest.equals('foo')); | 66 unittest.expect(o.id, unittest.equals('foo')); |
67 unittest.expect(o.kind, unittest.equals('foo')); | 67 unittest.expect(o.kind, unittest.equals('foo')); |
68 unittest.expect(o.startTime, unittest.equals('foo')); | 68 unittest.expect(o.startTime, unittest.equals('foo')); |
69 unittest.expect(o.status, unittest.equals('foo')); | 69 unittest.expect(o.status, unittest.equals('foo')); |
70 } | 70 } |
71 buildCounterChange--; | 71 buildCounterChange--; |
72 } | 72 } |
73 | 73 |
74 buildUnnamed1560() { | 74 buildUnnamed1627() { |
75 var o = new core.List<api.Change>(); | 75 var o = new core.List<api.Change>(); |
76 o.add(buildChange()); | 76 o.add(buildChange()); |
77 o.add(buildChange()); | 77 o.add(buildChange()); |
78 return o; | 78 return o; |
79 } | 79 } |
80 | 80 |
81 checkUnnamed1560(core.List<api.Change> o) { | 81 checkUnnamed1627(core.List<api.Change> o) { |
82 unittest.expect(o, unittest.hasLength(2)); | 82 unittest.expect(o, unittest.hasLength(2)); |
83 checkChange(o[0]); | 83 checkChange(o[0]); |
84 checkChange(o[1]); | 84 checkChange(o[1]); |
85 } | 85 } |
86 | 86 |
87 core.int buildCounterChangesListResponse = 0; | 87 core.int buildCounterChangesListResponse = 0; |
88 buildChangesListResponse() { | 88 buildChangesListResponse() { |
89 var o = new api.ChangesListResponse(); | 89 var o = new api.ChangesListResponse(); |
90 buildCounterChangesListResponse++; | 90 buildCounterChangesListResponse++; |
91 if (buildCounterChangesListResponse < 3) { | 91 if (buildCounterChangesListResponse < 3) { |
92 o.changes = buildUnnamed1560(); | 92 o.changes = buildUnnamed1627(); |
93 o.kind = "foo"; | 93 o.kind = "foo"; |
94 o.nextPageToken = "foo"; | 94 o.nextPageToken = "foo"; |
95 } | 95 } |
96 buildCounterChangesListResponse--; | 96 buildCounterChangesListResponse--; |
97 return o; | 97 return o; |
98 } | 98 } |
99 | 99 |
100 checkChangesListResponse(api.ChangesListResponse o) { | 100 checkChangesListResponse(api.ChangesListResponse o) { |
101 buildCounterChangesListResponse++; | 101 buildCounterChangesListResponse++; |
102 if (buildCounterChangesListResponse < 3) { | 102 if (buildCounterChangesListResponse < 3) { |
103 checkUnnamed1560(o.changes); | 103 checkUnnamed1627(o.changes); |
104 unittest.expect(o.kind, unittest.equals('foo')); | 104 unittest.expect(o.kind, unittest.equals('foo')); |
105 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 105 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
106 } | 106 } |
107 buildCounterChangesListResponse--; | 107 buildCounterChangesListResponse--; |
108 } | 108 } |
109 | 109 |
110 buildUnnamed1561() { | 110 buildUnnamed1628() { |
111 var o = new core.List<core.String>(); | 111 var o = new core.List<core.String>(); |
112 o.add("foo"); | 112 o.add("foo"); |
113 o.add("foo"); | 113 o.add("foo"); |
114 return o; | 114 return o; |
115 } | 115 } |
116 | 116 |
117 checkUnnamed1561(core.List<core.String> o) { | 117 checkUnnamed1628(core.List<core.String> o) { |
118 unittest.expect(o, unittest.hasLength(2)); | 118 unittest.expect(o, unittest.hasLength(2)); |
119 unittest.expect(o[0], unittest.equals('foo')); | 119 unittest.expect(o[0], unittest.equals('foo')); |
120 unittest.expect(o[1], unittest.equals('foo')); | 120 unittest.expect(o[1], unittest.equals('foo')); |
121 } | 121 } |
122 | 122 |
123 core.int buildCounterManagedZone = 0; | 123 core.int buildCounterManagedZone = 0; |
124 buildManagedZone() { | 124 buildManagedZone() { |
125 var o = new api.ManagedZone(); | 125 var o = new api.ManagedZone(); |
126 buildCounterManagedZone++; | 126 buildCounterManagedZone++; |
127 if (buildCounterManagedZone < 3) { | 127 if (buildCounterManagedZone < 3) { |
128 o.creationTime = "foo"; | 128 o.creationTime = "foo"; |
129 o.description = "foo"; | 129 o.description = "foo"; |
130 o.dnsName = "foo"; | 130 o.dnsName = "foo"; |
131 o.id = "foo"; | 131 o.id = "foo"; |
132 o.kind = "foo"; | 132 o.kind = "foo"; |
133 o.name = "foo"; | 133 o.name = "foo"; |
134 o.nameServerSet = "foo"; | 134 o.nameServerSet = "foo"; |
135 o.nameServers = buildUnnamed1561(); | 135 o.nameServers = buildUnnamed1628(); |
136 } | 136 } |
137 buildCounterManagedZone--; | 137 buildCounterManagedZone--; |
138 return o; | 138 return o; |
139 } | 139 } |
140 | 140 |
141 checkManagedZone(api.ManagedZone o) { | 141 checkManagedZone(api.ManagedZone o) { |
142 buildCounterManagedZone++; | 142 buildCounterManagedZone++; |
143 if (buildCounterManagedZone < 3) { | 143 if (buildCounterManagedZone < 3) { |
144 unittest.expect(o.creationTime, unittest.equals('foo')); | 144 unittest.expect(o.creationTime, unittest.equals('foo')); |
145 unittest.expect(o.description, unittest.equals('foo')); | 145 unittest.expect(o.description, unittest.equals('foo')); |
146 unittest.expect(o.dnsName, unittest.equals('foo')); | 146 unittest.expect(o.dnsName, unittest.equals('foo')); |
147 unittest.expect(o.id, unittest.equals('foo')); | 147 unittest.expect(o.id, unittest.equals('foo')); |
148 unittest.expect(o.kind, unittest.equals('foo')); | 148 unittest.expect(o.kind, unittest.equals('foo')); |
149 unittest.expect(o.name, unittest.equals('foo')); | 149 unittest.expect(o.name, unittest.equals('foo')); |
150 unittest.expect(o.nameServerSet, unittest.equals('foo')); | 150 unittest.expect(o.nameServerSet, unittest.equals('foo')); |
151 checkUnnamed1561(o.nameServers); | 151 checkUnnamed1628(o.nameServers); |
152 } | 152 } |
153 buildCounterManagedZone--; | 153 buildCounterManagedZone--; |
154 } | 154 } |
155 | 155 |
156 buildUnnamed1562() { | 156 buildUnnamed1629() { |
157 var o = new core.List<api.ManagedZone>(); | 157 var o = new core.List<api.ManagedZone>(); |
158 o.add(buildManagedZone()); | 158 o.add(buildManagedZone()); |
159 o.add(buildManagedZone()); | 159 o.add(buildManagedZone()); |
160 return o; | 160 return o; |
161 } | 161 } |
162 | 162 |
163 checkUnnamed1562(core.List<api.ManagedZone> o) { | 163 checkUnnamed1629(core.List<api.ManagedZone> o) { |
164 unittest.expect(o, unittest.hasLength(2)); | 164 unittest.expect(o, unittest.hasLength(2)); |
165 checkManagedZone(o[0]); | 165 checkManagedZone(o[0]); |
166 checkManagedZone(o[1]); | 166 checkManagedZone(o[1]); |
167 } | 167 } |
168 | 168 |
169 core.int buildCounterManagedZonesListResponse = 0; | 169 core.int buildCounterManagedZonesListResponse = 0; |
170 buildManagedZonesListResponse() { | 170 buildManagedZonesListResponse() { |
171 var o = new api.ManagedZonesListResponse(); | 171 var o = new api.ManagedZonesListResponse(); |
172 buildCounterManagedZonesListResponse++; | 172 buildCounterManagedZonesListResponse++; |
173 if (buildCounterManagedZonesListResponse < 3) { | 173 if (buildCounterManagedZonesListResponse < 3) { |
174 o.kind = "foo"; | 174 o.kind = "foo"; |
175 o.managedZones = buildUnnamed1562(); | 175 o.managedZones = buildUnnamed1629(); |
176 o.nextPageToken = "foo"; | 176 o.nextPageToken = "foo"; |
177 } | 177 } |
178 buildCounterManagedZonesListResponse--; | 178 buildCounterManagedZonesListResponse--; |
179 return o; | 179 return o; |
180 } | 180 } |
181 | 181 |
182 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { | 182 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { |
183 buildCounterManagedZonesListResponse++; | 183 buildCounterManagedZonesListResponse++; |
184 if (buildCounterManagedZonesListResponse < 3) { | 184 if (buildCounterManagedZonesListResponse < 3) { |
185 unittest.expect(o.kind, unittest.equals('foo')); | 185 unittest.expect(o.kind, unittest.equals('foo')); |
186 checkUnnamed1562(o.managedZones); | 186 checkUnnamed1629(o.managedZones); |
187 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 187 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
188 } | 188 } |
189 buildCounterManagedZonesListResponse--; | 189 buildCounterManagedZonesListResponse--; |
190 } | 190 } |
191 | 191 |
192 core.int buildCounterProject = 0; | 192 core.int buildCounterProject = 0; |
193 buildProject() { | 193 buildProject() { |
194 var o = new api.Project(); | 194 var o = new api.Project(); |
195 buildCounterProject++; | 195 buildCounterProject++; |
196 if (buildCounterProject < 3) { | 196 if (buildCounterProject < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 unittest.expect(o.managedZones, unittest.equals(42)); | 238 unittest.expect(o.managedZones, unittest.equals(42)); |
239 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); | 239 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); |
240 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); | 240 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); |
241 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); | 241 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); |
242 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); | 242 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); |
243 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); | 243 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); |
244 } | 244 } |
245 buildCounterQuota--; | 245 buildCounterQuota--; |
246 } | 246 } |
247 | 247 |
248 buildUnnamed1563() { | 248 buildUnnamed1630() { |
249 var o = new core.List<core.String>(); | 249 var o = new core.List<core.String>(); |
250 o.add("foo"); | 250 o.add("foo"); |
251 o.add("foo"); | 251 o.add("foo"); |
252 return o; | 252 return o; |
253 } | 253 } |
254 | 254 |
255 checkUnnamed1563(core.List<core.String> o) { | 255 checkUnnamed1630(core.List<core.String> o) { |
256 unittest.expect(o, unittest.hasLength(2)); | 256 unittest.expect(o, unittest.hasLength(2)); |
257 unittest.expect(o[0], unittest.equals('foo')); | 257 unittest.expect(o[0], unittest.equals('foo')); |
258 unittest.expect(o[1], unittest.equals('foo')); | 258 unittest.expect(o[1], unittest.equals('foo')); |
259 } | 259 } |
260 | 260 |
261 core.int buildCounterResourceRecordSet = 0; | 261 core.int buildCounterResourceRecordSet = 0; |
262 buildResourceRecordSet() { | 262 buildResourceRecordSet() { |
263 var o = new api.ResourceRecordSet(); | 263 var o = new api.ResourceRecordSet(); |
264 buildCounterResourceRecordSet++; | 264 buildCounterResourceRecordSet++; |
265 if (buildCounterResourceRecordSet < 3) { | 265 if (buildCounterResourceRecordSet < 3) { |
266 o.kind = "foo"; | 266 o.kind = "foo"; |
267 o.name = "foo"; | 267 o.name = "foo"; |
268 o.rrdatas = buildUnnamed1563(); | 268 o.rrdatas = buildUnnamed1630(); |
269 o.ttl = 42; | 269 o.ttl = 42; |
270 o.type = "foo"; | 270 o.type = "foo"; |
271 } | 271 } |
272 buildCounterResourceRecordSet--; | 272 buildCounterResourceRecordSet--; |
273 return o; | 273 return o; |
274 } | 274 } |
275 | 275 |
276 checkResourceRecordSet(api.ResourceRecordSet o) { | 276 checkResourceRecordSet(api.ResourceRecordSet o) { |
277 buildCounterResourceRecordSet++; | 277 buildCounterResourceRecordSet++; |
278 if (buildCounterResourceRecordSet < 3) { | 278 if (buildCounterResourceRecordSet < 3) { |
279 unittest.expect(o.kind, unittest.equals('foo')); | 279 unittest.expect(o.kind, unittest.equals('foo')); |
280 unittest.expect(o.name, unittest.equals('foo')); | 280 unittest.expect(o.name, unittest.equals('foo')); |
281 checkUnnamed1563(o.rrdatas); | 281 checkUnnamed1630(o.rrdatas); |
282 unittest.expect(o.ttl, unittest.equals(42)); | 282 unittest.expect(o.ttl, unittest.equals(42)); |
283 unittest.expect(o.type, unittest.equals('foo')); | 283 unittest.expect(o.type, unittest.equals('foo')); |
284 } | 284 } |
285 buildCounterResourceRecordSet--; | 285 buildCounterResourceRecordSet--; |
286 } | 286 } |
287 | 287 |
288 buildUnnamed1564() { | 288 buildUnnamed1631() { |
289 var o = new core.List<api.ResourceRecordSet>(); | 289 var o = new core.List<api.ResourceRecordSet>(); |
290 o.add(buildResourceRecordSet()); | 290 o.add(buildResourceRecordSet()); |
291 o.add(buildResourceRecordSet()); | 291 o.add(buildResourceRecordSet()); |
292 return o; | 292 return o; |
293 } | 293 } |
294 | 294 |
295 checkUnnamed1564(core.List<api.ResourceRecordSet> o) { | 295 checkUnnamed1631(core.List<api.ResourceRecordSet> o) { |
296 unittest.expect(o, unittest.hasLength(2)); | 296 unittest.expect(o, unittest.hasLength(2)); |
297 checkResourceRecordSet(o[0]); | 297 checkResourceRecordSet(o[0]); |
298 checkResourceRecordSet(o[1]); | 298 checkResourceRecordSet(o[1]); |
299 } | 299 } |
300 | 300 |
301 core.int buildCounterResourceRecordSetsListResponse = 0; | 301 core.int buildCounterResourceRecordSetsListResponse = 0; |
302 buildResourceRecordSetsListResponse() { | 302 buildResourceRecordSetsListResponse() { |
303 var o = new api.ResourceRecordSetsListResponse(); | 303 var o = new api.ResourceRecordSetsListResponse(); |
304 buildCounterResourceRecordSetsListResponse++; | 304 buildCounterResourceRecordSetsListResponse++; |
305 if (buildCounterResourceRecordSetsListResponse < 3) { | 305 if (buildCounterResourceRecordSetsListResponse < 3) { |
306 o.kind = "foo"; | 306 o.kind = "foo"; |
307 o.nextPageToken = "foo"; | 307 o.nextPageToken = "foo"; |
308 o.rrsets = buildUnnamed1564(); | 308 o.rrsets = buildUnnamed1631(); |
309 } | 309 } |
310 buildCounterResourceRecordSetsListResponse--; | 310 buildCounterResourceRecordSetsListResponse--; |
311 return o; | 311 return o; |
312 } | 312 } |
313 | 313 |
314 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { | 314 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { |
315 buildCounterResourceRecordSetsListResponse++; | 315 buildCounterResourceRecordSetsListResponse++; |
316 if (buildCounterResourceRecordSetsListResponse < 3) { | 316 if (buildCounterResourceRecordSetsListResponse < 3) { |
317 unittest.expect(o.kind, unittest.equals('foo')); | 317 unittest.expect(o.kind, unittest.equals('foo')); |
318 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 318 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
319 checkUnnamed1564(o.rrsets); | 319 checkUnnamed1631(o.rrsets); |
320 } | 320 } |
321 buildCounterResourceRecordSetsListResponse--; | 321 buildCounterResourceRecordSetsListResponse--; |
322 } | 322 } |
323 | 323 |
324 | 324 |
325 main() { | 325 main() { |
326 unittest.group("obj-schema-Change", () { | 326 unittest.group("obj-schema-Change", () { |
327 unittest.test("to-json--from-json", () { | 327 unittest.test("to-json--from-json", () { |
328 var o = buildChange(); | 328 var o = buildChange(); |
329 var od = new api.Change.fromJson(o.toJson()); | 329 var od = new api.Change.fromJson(o.toJson()); |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 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) { | 817 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) { |
818 checkResourceRecordSetsListResponse(response); | 818 checkResourceRecordSetsListResponse(response); |
819 }))); | 819 }))); |
820 }); | 820 }); |
821 | 821 |
822 }); | 822 }); |
823 | 823 |
824 | 824 |
825 } | 825 } |
826 | 826 |
OLD | NEW |