OLD | NEW |
1 library googleapis_beta.resourceviews.v1beta2.test; | 1 library googleapis_beta.resourceviews.v1beta2.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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 checkLabel(api.Label o) { | 31 checkLabel(api.Label o) { |
32 buildCounterLabel++; | 32 buildCounterLabel++; |
33 if (buildCounterLabel < 3) { | 33 if (buildCounterLabel < 3) { |
34 unittest.expect(o.key, unittest.equals('foo')); | 34 unittest.expect(o.key, unittest.equals('foo')); |
35 unittest.expect(o.value, unittest.equals('foo')); | 35 unittest.expect(o.value, unittest.equals('foo')); |
36 } | 36 } |
37 buildCounterLabel--; | 37 buildCounterLabel--; |
38 } | 38 } |
39 | 39 |
40 buildUnnamed1287() { | 40 buildUnnamed1135() { |
41 var o = new core.List<core.int>(); | 41 var o = new core.List<core.int>(); |
42 o.add(42); | 42 o.add(42); |
43 o.add(42); | 43 o.add(42); |
44 return o; | 44 return o; |
45 } | 45 } |
46 | 46 |
47 checkUnnamed1287(core.List<core.int> o) { | 47 checkUnnamed1135(core.List<core.int> o) { |
48 unittest.expect(o, unittest.hasLength(2)); | 48 unittest.expect(o, unittest.hasLength(2)); |
49 unittest.expect(o[0], unittest.equals(42)); | 49 unittest.expect(o[0], unittest.equals(42)); |
50 unittest.expect(o[1], unittest.equals(42)); | 50 unittest.expect(o[1], unittest.equals(42)); |
51 } | 51 } |
52 | 52 |
53 buildUnnamed1288() { | 53 buildUnnamed1136() { |
54 var o = new core.Map<core.String, core.List<core.int>>(); | 54 var o = new core.Map<core.String, core.List<core.int>>(); |
55 o["x"] = buildUnnamed1287(); | 55 o["x"] = buildUnnamed1135(); |
56 o["y"] = buildUnnamed1287(); | 56 o["y"] = buildUnnamed1135(); |
57 return o; | 57 return o; |
58 } | 58 } |
59 | 59 |
60 checkUnnamed1288(core.Map<core.String, core.List<core.int>> o) { | 60 checkUnnamed1136(core.Map<core.String, core.List<core.int>> o) { |
61 unittest.expect(o, unittest.hasLength(2)); | 61 unittest.expect(o, unittest.hasLength(2)); |
62 checkUnnamed1287(o["x"]); | 62 checkUnnamed1135(o["x"]); |
63 checkUnnamed1287(o["y"]); | 63 checkUnnamed1135(o["y"]); |
64 } | 64 } |
65 | 65 |
66 core.int buildCounterListResourceResponseItem = 0; | 66 core.int buildCounterListResourceResponseItem = 0; |
67 buildListResourceResponseItem() { | 67 buildListResourceResponseItem() { |
68 var o = new api.ListResourceResponseItem(); | 68 var o = new api.ListResourceResponseItem(); |
69 buildCounterListResourceResponseItem++; | 69 buildCounterListResourceResponseItem++; |
70 if (buildCounterListResourceResponseItem < 3) { | 70 if (buildCounterListResourceResponseItem < 3) { |
71 o.endpoints = buildUnnamed1288(); | 71 o.endpoints = buildUnnamed1136(); |
72 o.resource = "foo"; | 72 o.resource = "foo"; |
73 } | 73 } |
74 buildCounterListResourceResponseItem--; | 74 buildCounterListResourceResponseItem--; |
75 return o; | 75 return o; |
76 } | 76 } |
77 | 77 |
78 checkListResourceResponseItem(api.ListResourceResponseItem o) { | 78 checkListResourceResponseItem(api.ListResourceResponseItem o) { |
79 buildCounterListResourceResponseItem++; | 79 buildCounterListResourceResponseItem++; |
80 if (buildCounterListResourceResponseItem < 3) { | 80 if (buildCounterListResourceResponseItem < 3) { |
81 checkUnnamed1288(o.endpoints); | 81 checkUnnamed1136(o.endpoints); |
82 unittest.expect(o.resource, unittest.equals('foo')); | 82 unittest.expect(o.resource, unittest.equals('foo')); |
83 } | 83 } |
84 buildCounterListResourceResponseItem--; | 84 buildCounterListResourceResponseItem--; |
85 } | 85 } |
86 | 86 |
87 core.int buildCounterOperationErrorErrors = 0; | 87 core.int buildCounterOperationErrorErrors = 0; |
88 buildOperationErrorErrors() { | 88 buildOperationErrorErrors() { |
89 var o = new api.OperationErrorErrors(); | 89 var o = new api.OperationErrorErrors(); |
90 buildCounterOperationErrorErrors++; | 90 buildCounterOperationErrorErrors++; |
91 if (buildCounterOperationErrorErrors < 3) { | 91 if (buildCounterOperationErrorErrors < 3) { |
92 o.code = "foo"; | 92 o.code = "foo"; |
93 o.location = "foo"; | 93 o.location = "foo"; |
94 o.message = "foo"; | 94 o.message = "foo"; |
95 } | 95 } |
96 buildCounterOperationErrorErrors--; | 96 buildCounterOperationErrorErrors--; |
97 return o; | 97 return o; |
98 } | 98 } |
99 | 99 |
100 checkOperationErrorErrors(api.OperationErrorErrors o) { | 100 checkOperationErrorErrors(api.OperationErrorErrors o) { |
101 buildCounterOperationErrorErrors++; | 101 buildCounterOperationErrorErrors++; |
102 if (buildCounterOperationErrorErrors < 3) { | 102 if (buildCounterOperationErrorErrors < 3) { |
103 unittest.expect(o.code, unittest.equals('foo')); | 103 unittest.expect(o.code, unittest.equals('foo')); |
104 unittest.expect(o.location, unittest.equals('foo')); | 104 unittest.expect(o.location, unittest.equals('foo')); |
105 unittest.expect(o.message, unittest.equals('foo')); | 105 unittest.expect(o.message, unittest.equals('foo')); |
106 } | 106 } |
107 buildCounterOperationErrorErrors--; | 107 buildCounterOperationErrorErrors--; |
108 } | 108 } |
109 | 109 |
110 buildUnnamed1289() { | 110 buildUnnamed1137() { |
111 var o = new core.List<api.OperationErrorErrors>(); | 111 var o = new core.List<api.OperationErrorErrors>(); |
112 o.add(buildOperationErrorErrors()); | 112 o.add(buildOperationErrorErrors()); |
113 o.add(buildOperationErrorErrors()); | 113 o.add(buildOperationErrorErrors()); |
114 return o; | 114 return o; |
115 } | 115 } |
116 | 116 |
117 checkUnnamed1289(core.List<api.OperationErrorErrors> o) { | 117 checkUnnamed1137(core.List<api.OperationErrorErrors> o) { |
118 unittest.expect(o, unittest.hasLength(2)); | 118 unittest.expect(o, unittest.hasLength(2)); |
119 checkOperationErrorErrors(o[0]); | 119 checkOperationErrorErrors(o[0]); |
120 checkOperationErrorErrors(o[1]); | 120 checkOperationErrorErrors(o[1]); |
121 } | 121 } |
122 | 122 |
123 core.int buildCounterOperationError = 0; | 123 core.int buildCounterOperationError = 0; |
124 buildOperationError() { | 124 buildOperationError() { |
125 var o = new api.OperationError(); | 125 var o = new api.OperationError(); |
126 buildCounterOperationError++; | 126 buildCounterOperationError++; |
127 if (buildCounterOperationError < 3) { | 127 if (buildCounterOperationError < 3) { |
128 o.errors = buildUnnamed1289(); | 128 o.errors = buildUnnamed1137(); |
129 } | 129 } |
130 buildCounterOperationError--; | 130 buildCounterOperationError--; |
131 return o; | 131 return o; |
132 } | 132 } |
133 | 133 |
134 checkOperationError(api.OperationError o) { | 134 checkOperationError(api.OperationError o) { |
135 buildCounterOperationError++; | 135 buildCounterOperationError++; |
136 if (buildCounterOperationError < 3) { | 136 if (buildCounterOperationError < 3) { |
137 checkUnnamed1289(o.errors); | 137 checkUnnamed1137(o.errors); |
138 } | 138 } |
139 buildCounterOperationError--; | 139 buildCounterOperationError--; |
140 } | 140 } |
141 | 141 |
142 core.int buildCounterOperationWarningsData = 0; | 142 core.int buildCounterOperationWarningsData = 0; |
143 buildOperationWarningsData() { | 143 buildOperationWarningsData() { |
144 var o = new api.OperationWarningsData(); | 144 var o = new api.OperationWarningsData(); |
145 buildCounterOperationWarningsData++; | 145 buildCounterOperationWarningsData++; |
146 if (buildCounterOperationWarningsData < 3) { | 146 if (buildCounterOperationWarningsData < 3) { |
147 o.key = "foo"; | 147 o.key = "foo"; |
148 o.value = "foo"; | 148 o.value = "foo"; |
149 } | 149 } |
150 buildCounterOperationWarningsData--; | 150 buildCounterOperationWarningsData--; |
151 return o; | 151 return o; |
152 } | 152 } |
153 | 153 |
154 checkOperationWarningsData(api.OperationWarningsData o) { | 154 checkOperationWarningsData(api.OperationWarningsData o) { |
155 buildCounterOperationWarningsData++; | 155 buildCounterOperationWarningsData++; |
156 if (buildCounterOperationWarningsData < 3) { | 156 if (buildCounterOperationWarningsData < 3) { |
157 unittest.expect(o.key, unittest.equals('foo')); | 157 unittest.expect(o.key, unittest.equals('foo')); |
158 unittest.expect(o.value, unittest.equals('foo')); | 158 unittest.expect(o.value, unittest.equals('foo')); |
159 } | 159 } |
160 buildCounterOperationWarningsData--; | 160 buildCounterOperationWarningsData--; |
161 } | 161 } |
162 | 162 |
163 buildUnnamed1290() { | 163 buildUnnamed1138() { |
164 var o = new core.List<api.OperationWarningsData>(); | 164 var o = new core.List<api.OperationWarningsData>(); |
165 o.add(buildOperationWarningsData()); | 165 o.add(buildOperationWarningsData()); |
166 o.add(buildOperationWarningsData()); | 166 o.add(buildOperationWarningsData()); |
167 return o; | 167 return o; |
168 } | 168 } |
169 | 169 |
170 checkUnnamed1290(core.List<api.OperationWarningsData> o) { | 170 checkUnnamed1138(core.List<api.OperationWarningsData> o) { |
171 unittest.expect(o, unittest.hasLength(2)); | 171 unittest.expect(o, unittest.hasLength(2)); |
172 checkOperationWarningsData(o[0]); | 172 checkOperationWarningsData(o[0]); |
173 checkOperationWarningsData(o[1]); | 173 checkOperationWarningsData(o[1]); |
174 } | 174 } |
175 | 175 |
176 core.int buildCounterOperationWarnings = 0; | 176 core.int buildCounterOperationWarnings = 0; |
177 buildOperationWarnings() { | 177 buildOperationWarnings() { |
178 var o = new api.OperationWarnings(); | 178 var o = new api.OperationWarnings(); |
179 buildCounterOperationWarnings++; | 179 buildCounterOperationWarnings++; |
180 if (buildCounterOperationWarnings < 3) { | 180 if (buildCounterOperationWarnings < 3) { |
181 o.code = "foo"; | 181 o.code = "foo"; |
182 o.data = buildUnnamed1290(); | 182 o.data = buildUnnamed1138(); |
183 o.message = "foo"; | 183 o.message = "foo"; |
184 } | 184 } |
185 buildCounterOperationWarnings--; | 185 buildCounterOperationWarnings--; |
186 return o; | 186 return o; |
187 } | 187 } |
188 | 188 |
189 checkOperationWarnings(api.OperationWarnings o) { | 189 checkOperationWarnings(api.OperationWarnings o) { |
190 buildCounterOperationWarnings++; | 190 buildCounterOperationWarnings++; |
191 if (buildCounterOperationWarnings < 3) { | 191 if (buildCounterOperationWarnings < 3) { |
192 unittest.expect(o.code, unittest.equals('foo')); | 192 unittest.expect(o.code, unittest.equals('foo')); |
193 checkUnnamed1290(o.data); | 193 checkUnnamed1138(o.data); |
194 unittest.expect(o.message, unittest.equals('foo')); | 194 unittest.expect(o.message, unittest.equals('foo')); |
195 } | 195 } |
196 buildCounterOperationWarnings--; | 196 buildCounterOperationWarnings--; |
197 } | 197 } |
198 | 198 |
199 buildUnnamed1291() { | 199 buildUnnamed1139() { |
200 var o = new core.List<api.OperationWarnings>(); | 200 var o = new core.List<api.OperationWarnings>(); |
201 o.add(buildOperationWarnings()); | 201 o.add(buildOperationWarnings()); |
202 o.add(buildOperationWarnings()); | 202 o.add(buildOperationWarnings()); |
203 return o; | 203 return o; |
204 } | 204 } |
205 | 205 |
206 checkUnnamed1291(core.List<api.OperationWarnings> o) { | 206 checkUnnamed1139(core.List<api.OperationWarnings> o) { |
207 unittest.expect(o, unittest.hasLength(2)); | 207 unittest.expect(o, unittest.hasLength(2)); |
208 checkOperationWarnings(o[0]); | 208 checkOperationWarnings(o[0]); |
209 checkOperationWarnings(o[1]); | 209 checkOperationWarnings(o[1]); |
210 } | 210 } |
211 | 211 |
212 core.int buildCounterOperation = 0; | 212 core.int buildCounterOperation = 0; |
213 buildOperation() { | 213 buildOperation() { |
214 var o = new api.Operation(); | 214 var o = new api.Operation(); |
215 buildCounterOperation++; | 215 buildCounterOperation++; |
216 if (buildCounterOperation < 3) { | 216 if (buildCounterOperation < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
227 o.operationType = "foo"; | 227 o.operationType = "foo"; |
228 o.progress = 42; | 228 o.progress = 42; |
229 o.region = "foo"; | 229 o.region = "foo"; |
230 o.selfLink = "foo"; | 230 o.selfLink = "foo"; |
231 o.startTime = "foo"; | 231 o.startTime = "foo"; |
232 o.status = "foo"; | 232 o.status = "foo"; |
233 o.statusMessage = "foo"; | 233 o.statusMessage = "foo"; |
234 o.targetId = "foo"; | 234 o.targetId = "foo"; |
235 o.targetLink = "foo"; | 235 o.targetLink = "foo"; |
236 o.user = "foo"; | 236 o.user = "foo"; |
237 o.warnings = buildUnnamed1291(); | 237 o.warnings = buildUnnamed1139(); |
238 o.zone = "foo"; | 238 o.zone = "foo"; |
239 } | 239 } |
240 buildCounterOperation--; | 240 buildCounterOperation--; |
241 return o; | 241 return o; |
242 } | 242 } |
243 | 243 |
244 checkOperation(api.Operation o) { | 244 checkOperation(api.Operation o) { |
245 buildCounterOperation++; | 245 buildCounterOperation++; |
246 if (buildCounterOperation < 3) { | 246 if (buildCounterOperation < 3) { |
247 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 247 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
248 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 248 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
249 unittest.expect(o.endTime, unittest.equals('foo')); | 249 unittest.expect(o.endTime, unittest.equals('foo')); |
250 checkOperationError(o.error); | 250 checkOperationError(o.error); |
251 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 251 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
252 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 252 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
253 unittest.expect(o.id, unittest.equals('foo')); | 253 unittest.expect(o.id, unittest.equals('foo')); |
254 unittest.expect(o.insertTime, unittest.equals('foo')); | 254 unittest.expect(o.insertTime, unittest.equals('foo')); |
255 unittest.expect(o.kind, unittest.equals('foo')); | 255 unittest.expect(o.kind, unittest.equals('foo')); |
256 unittest.expect(o.name, unittest.equals('foo')); | 256 unittest.expect(o.name, unittest.equals('foo')); |
257 unittest.expect(o.operationType, unittest.equals('foo')); | 257 unittest.expect(o.operationType, unittest.equals('foo')); |
258 unittest.expect(o.progress, unittest.equals(42)); | 258 unittest.expect(o.progress, unittest.equals(42)); |
259 unittest.expect(o.region, unittest.equals('foo')); | 259 unittest.expect(o.region, unittest.equals('foo')); |
260 unittest.expect(o.selfLink, unittest.equals('foo')); | 260 unittest.expect(o.selfLink, unittest.equals('foo')); |
261 unittest.expect(o.startTime, unittest.equals('foo')); | 261 unittest.expect(o.startTime, unittest.equals('foo')); |
262 unittest.expect(o.status, unittest.equals('foo')); | 262 unittest.expect(o.status, unittest.equals('foo')); |
263 unittest.expect(o.statusMessage, unittest.equals('foo')); | 263 unittest.expect(o.statusMessage, unittest.equals('foo')); |
264 unittest.expect(o.targetId, unittest.equals('foo')); | 264 unittest.expect(o.targetId, unittest.equals('foo')); |
265 unittest.expect(o.targetLink, unittest.equals('foo')); | 265 unittest.expect(o.targetLink, unittest.equals('foo')); |
266 unittest.expect(o.user, unittest.equals('foo')); | 266 unittest.expect(o.user, unittest.equals('foo')); |
267 checkUnnamed1291(o.warnings); | 267 checkUnnamed1139(o.warnings); |
268 unittest.expect(o.zone, unittest.equals('foo')); | 268 unittest.expect(o.zone, unittest.equals('foo')); |
269 } | 269 } |
270 buildCounterOperation--; | 270 buildCounterOperation--; |
271 } | 271 } |
272 | 272 |
273 buildUnnamed1292() { | 273 buildUnnamed1140() { |
274 var o = new core.List<api.Operation>(); | 274 var o = new core.List<api.Operation>(); |
275 o.add(buildOperation()); | 275 o.add(buildOperation()); |
276 o.add(buildOperation()); | 276 o.add(buildOperation()); |
277 return o; | 277 return o; |
278 } | 278 } |
279 | 279 |
280 checkUnnamed1292(core.List<api.Operation> o) { | 280 checkUnnamed1140(core.List<api.Operation> o) { |
281 unittest.expect(o, unittest.hasLength(2)); | 281 unittest.expect(o, unittest.hasLength(2)); |
282 checkOperation(o[0]); | 282 checkOperation(o[0]); |
283 checkOperation(o[1]); | 283 checkOperation(o[1]); |
284 } | 284 } |
285 | 285 |
286 core.int buildCounterOperationList = 0; | 286 core.int buildCounterOperationList = 0; |
287 buildOperationList() { | 287 buildOperationList() { |
288 var o = new api.OperationList(); | 288 var o = new api.OperationList(); |
289 buildCounterOperationList++; | 289 buildCounterOperationList++; |
290 if (buildCounterOperationList < 3) { | 290 if (buildCounterOperationList < 3) { |
291 o.id = "foo"; | 291 o.id = "foo"; |
292 o.items = buildUnnamed1292(); | 292 o.items = buildUnnamed1140(); |
293 o.kind = "foo"; | 293 o.kind = "foo"; |
294 o.nextPageToken = "foo"; | 294 o.nextPageToken = "foo"; |
295 o.selfLink = "foo"; | 295 o.selfLink = "foo"; |
296 } | 296 } |
297 buildCounterOperationList--; | 297 buildCounterOperationList--; |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkOperationList(api.OperationList o) { | 301 checkOperationList(api.OperationList o) { |
302 buildCounterOperationList++; | 302 buildCounterOperationList++; |
303 if (buildCounterOperationList < 3) { | 303 if (buildCounterOperationList < 3) { |
304 unittest.expect(o.id, unittest.equals('foo')); | 304 unittest.expect(o.id, unittest.equals('foo')); |
305 checkUnnamed1292(o.items); | 305 checkUnnamed1140(o.items); |
306 unittest.expect(o.kind, unittest.equals('foo')); | 306 unittest.expect(o.kind, unittest.equals('foo')); |
307 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 307 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
308 unittest.expect(o.selfLink, unittest.equals('foo')); | 308 unittest.expect(o.selfLink, unittest.equals('foo')); |
309 } | 309 } |
310 buildCounterOperationList--; | 310 buildCounterOperationList--; |
311 } | 311 } |
312 | 312 |
313 buildUnnamed1293() { | 313 buildUnnamed1141() { |
314 var o = new core.List<api.ServiceEndpoint>(); | 314 var o = new core.List<api.ServiceEndpoint>(); |
315 o.add(buildServiceEndpoint()); | 315 o.add(buildServiceEndpoint()); |
316 o.add(buildServiceEndpoint()); | 316 o.add(buildServiceEndpoint()); |
317 return o; | 317 return o; |
318 } | 318 } |
319 | 319 |
320 checkUnnamed1293(core.List<api.ServiceEndpoint> o) { | 320 checkUnnamed1141(core.List<api.ServiceEndpoint> o) { |
321 unittest.expect(o, unittest.hasLength(2)); | 321 unittest.expect(o, unittest.hasLength(2)); |
322 checkServiceEndpoint(o[0]); | 322 checkServiceEndpoint(o[0]); |
323 checkServiceEndpoint(o[1]); | 323 checkServiceEndpoint(o[1]); |
324 } | 324 } |
325 | 325 |
326 buildUnnamed1294() { | 326 buildUnnamed1142() { |
327 var o = new core.List<api.Label>(); | 327 var o = new core.List<api.Label>(); |
328 o.add(buildLabel()); | 328 o.add(buildLabel()); |
329 o.add(buildLabel()); | 329 o.add(buildLabel()); |
330 return o; | 330 return o; |
331 } | 331 } |
332 | 332 |
333 checkUnnamed1294(core.List<api.Label> o) { | 333 checkUnnamed1142(core.List<api.Label> o) { |
334 unittest.expect(o, unittest.hasLength(2)); | 334 unittest.expect(o, unittest.hasLength(2)); |
335 checkLabel(o[0]); | 335 checkLabel(o[0]); |
336 checkLabel(o[1]); | 336 checkLabel(o[1]); |
337 } | 337 } |
338 | 338 |
339 buildUnnamed1295() { | 339 buildUnnamed1143() { |
340 var o = new core.List<core.String>(); | 340 var o = new core.List<core.String>(); |
341 o.add("foo"); | 341 o.add("foo"); |
342 o.add("foo"); | 342 o.add("foo"); |
343 return o; | 343 return o; |
344 } | 344 } |
345 | 345 |
346 checkUnnamed1295(core.List<core.String> o) { | 346 checkUnnamed1143(core.List<core.String> o) { |
347 unittest.expect(o, unittest.hasLength(2)); | 347 unittest.expect(o, unittest.hasLength(2)); |
348 unittest.expect(o[0], unittest.equals('foo')); | 348 unittest.expect(o[0], unittest.equals('foo')); |
349 unittest.expect(o[1], unittest.equals('foo')); | 349 unittest.expect(o[1], unittest.equals('foo')); |
350 } | 350 } |
351 | 351 |
352 core.int buildCounterResourceView = 0; | 352 core.int buildCounterResourceView = 0; |
353 buildResourceView() { | 353 buildResourceView() { |
354 var o = new api.ResourceView(); | 354 var o = new api.ResourceView(); |
355 buildCounterResourceView++; | 355 buildCounterResourceView++; |
356 if (buildCounterResourceView < 3) { | 356 if (buildCounterResourceView < 3) { |
357 o.creationTimestamp = "foo"; | 357 o.creationTimestamp = "foo"; |
358 o.description = "foo"; | 358 o.description = "foo"; |
359 o.endpoints = buildUnnamed1293(); | 359 o.endpoints = buildUnnamed1141(); |
360 o.fingerprint = "foo"; | 360 o.fingerprint = "foo"; |
361 o.id = "foo"; | 361 o.id = "foo"; |
362 o.kind = "foo"; | 362 o.kind = "foo"; |
363 o.labels = buildUnnamed1294(); | 363 o.labels = buildUnnamed1142(); |
364 o.name = "foo"; | 364 o.name = "foo"; |
365 o.network = "foo"; | 365 o.network = "foo"; |
366 o.resources = buildUnnamed1295(); | 366 o.resources = buildUnnamed1143(); |
367 o.selfLink = "foo"; | 367 o.selfLink = "foo"; |
368 o.size = 42; | 368 o.size = 42; |
369 } | 369 } |
370 buildCounterResourceView--; | 370 buildCounterResourceView--; |
371 return o; | 371 return o; |
372 } | 372 } |
373 | 373 |
374 checkResourceView(api.ResourceView o) { | 374 checkResourceView(api.ResourceView o) { |
375 buildCounterResourceView++; | 375 buildCounterResourceView++; |
376 if (buildCounterResourceView < 3) { | 376 if (buildCounterResourceView < 3) { |
377 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 377 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
378 unittest.expect(o.description, unittest.equals('foo')); | 378 unittest.expect(o.description, unittest.equals('foo')); |
379 checkUnnamed1293(o.endpoints); | 379 checkUnnamed1141(o.endpoints); |
380 unittest.expect(o.fingerprint, unittest.equals('foo')); | 380 unittest.expect(o.fingerprint, unittest.equals('foo')); |
381 unittest.expect(o.id, unittest.equals('foo')); | 381 unittest.expect(o.id, unittest.equals('foo')); |
382 unittest.expect(o.kind, unittest.equals('foo')); | 382 unittest.expect(o.kind, unittest.equals('foo')); |
383 checkUnnamed1294(o.labels); | 383 checkUnnamed1142(o.labels); |
384 unittest.expect(o.name, unittest.equals('foo')); | 384 unittest.expect(o.name, unittest.equals('foo')); |
385 unittest.expect(o.network, unittest.equals('foo')); | 385 unittest.expect(o.network, unittest.equals('foo')); |
386 checkUnnamed1295(o.resources); | 386 checkUnnamed1143(o.resources); |
387 unittest.expect(o.selfLink, unittest.equals('foo')); | 387 unittest.expect(o.selfLink, unittest.equals('foo')); |
388 unittest.expect(o.size, unittest.equals(42)); | 388 unittest.expect(o.size, unittest.equals(42)); |
389 } | 389 } |
390 buildCounterResourceView--; | 390 buildCounterResourceView--; |
391 } | 391 } |
392 | 392 |
393 core.int buildCounterServiceEndpoint = 0; | 393 core.int buildCounterServiceEndpoint = 0; |
394 buildServiceEndpoint() { | 394 buildServiceEndpoint() { |
395 var o = new api.ServiceEndpoint(); | 395 var o = new api.ServiceEndpoint(); |
396 buildCounterServiceEndpoint++; | 396 buildCounterServiceEndpoint++; |
397 if (buildCounterServiceEndpoint < 3) { | 397 if (buildCounterServiceEndpoint < 3) { |
398 o.name = "foo"; | 398 o.name = "foo"; |
399 o.port = 42; | 399 o.port = 42; |
400 } | 400 } |
401 buildCounterServiceEndpoint--; | 401 buildCounterServiceEndpoint--; |
402 return o; | 402 return o; |
403 } | 403 } |
404 | 404 |
405 checkServiceEndpoint(api.ServiceEndpoint o) { | 405 checkServiceEndpoint(api.ServiceEndpoint o) { |
406 buildCounterServiceEndpoint++; | 406 buildCounterServiceEndpoint++; |
407 if (buildCounterServiceEndpoint < 3) { | 407 if (buildCounterServiceEndpoint < 3) { |
408 unittest.expect(o.name, unittest.equals('foo')); | 408 unittest.expect(o.name, unittest.equals('foo')); |
409 unittest.expect(o.port, unittest.equals(42)); | 409 unittest.expect(o.port, unittest.equals(42)); |
410 } | 410 } |
411 buildCounterServiceEndpoint--; | 411 buildCounterServiceEndpoint--; |
412 } | 412 } |
413 | 413 |
414 buildUnnamed1296() { | 414 buildUnnamed1144() { |
415 var o = new core.List<core.String>(); | 415 var o = new core.List<core.String>(); |
416 o.add("foo"); | 416 o.add("foo"); |
417 o.add("foo"); | 417 o.add("foo"); |
418 return o; | 418 return o; |
419 } | 419 } |
420 | 420 |
421 checkUnnamed1296(core.List<core.String> o) { | 421 checkUnnamed1144(core.List<core.String> o) { |
422 unittest.expect(o, unittest.hasLength(2)); | 422 unittest.expect(o, unittest.hasLength(2)); |
423 unittest.expect(o[0], unittest.equals('foo')); | 423 unittest.expect(o[0], unittest.equals('foo')); |
424 unittest.expect(o[1], unittest.equals('foo')); | 424 unittest.expect(o[1], unittest.equals('foo')); |
425 } | 425 } |
426 | 426 |
427 core.int buildCounterZoneViewsAddResourcesRequest = 0; | 427 core.int buildCounterZoneViewsAddResourcesRequest = 0; |
428 buildZoneViewsAddResourcesRequest() { | 428 buildZoneViewsAddResourcesRequest() { |
429 var o = new api.ZoneViewsAddResourcesRequest(); | 429 var o = new api.ZoneViewsAddResourcesRequest(); |
430 buildCounterZoneViewsAddResourcesRequest++; | 430 buildCounterZoneViewsAddResourcesRequest++; |
431 if (buildCounterZoneViewsAddResourcesRequest < 3) { | 431 if (buildCounterZoneViewsAddResourcesRequest < 3) { |
432 o.resources = buildUnnamed1296(); | 432 o.resources = buildUnnamed1144(); |
433 } | 433 } |
434 buildCounterZoneViewsAddResourcesRequest--; | 434 buildCounterZoneViewsAddResourcesRequest--; |
435 return o; | 435 return o; |
436 } | 436 } |
437 | 437 |
438 checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { | 438 checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { |
439 buildCounterZoneViewsAddResourcesRequest++; | 439 buildCounterZoneViewsAddResourcesRequest++; |
440 if (buildCounterZoneViewsAddResourcesRequest < 3) { | 440 if (buildCounterZoneViewsAddResourcesRequest < 3) { |
441 checkUnnamed1296(o.resources); | 441 checkUnnamed1144(o.resources); |
442 } | 442 } |
443 buildCounterZoneViewsAddResourcesRequest--; | 443 buildCounterZoneViewsAddResourcesRequest--; |
444 } | 444 } |
445 | 445 |
446 buildUnnamed1297() { | 446 buildUnnamed1145() { |
447 var o = new core.List<api.ServiceEndpoint>(); | 447 var o = new core.List<api.ServiceEndpoint>(); |
448 o.add(buildServiceEndpoint()); | 448 o.add(buildServiceEndpoint()); |
449 o.add(buildServiceEndpoint()); | 449 o.add(buildServiceEndpoint()); |
450 return o; | 450 return o; |
451 } | 451 } |
452 | 452 |
453 checkUnnamed1297(core.List<api.ServiceEndpoint> o) { | 453 checkUnnamed1145(core.List<api.ServiceEndpoint> o) { |
454 unittest.expect(o, unittest.hasLength(2)); | 454 unittest.expect(o, unittest.hasLength(2)); |
455 checkServiceEndpoint(o[0]); | 455 checkServiceEndpoint(o[0]); |
456 checkServiceEndpoint(o[1]); | 456 checkServiceEndpoint(o[1]); |
457 } | 457 } |
458 | 458 |
459 core.int buildCounterZoneViewsGetServiceResponse = 0; | 459 core.int buildCounterZoneViewsGetServiceResponse = 0; |
460 buildZoneViewsGetServiceResponse() { | 460 buildZoneViewsGetServiceResponse() { |
461 var o = new api.ZoneViewsGetServiceResponse(); | 461 var o = new api.ZoneViewsGetServiceResponse(); |
462 buildCounterZoneViewsGetServiceResponse++; | 462 buildCounterZoneViewsGetServiceResponse++; |
463 if (buildCounterZoneViewsGetServiceResponse < 3) { | 463 if (buildCounterZoneViewsGetServiceResponse < 3) { |
464 o.endpoints = buildUnnamed1297(); | 464 o.endpoints = buildUnnamed1145(); |
465 o.fingerprint = "foo"; | 465 o.fingerprint = "foo"; |
466 } | 466 } |
467 buildCounterZoneViewsGetServiceResponse--; | 467 buildCounterZoneViewsGetServiceResponse--; |
468 return o; | 468 return o; |
469 } | 469 } |
470 | 470 |
471 checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { | 471 checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { |
472 buildCounterZoneViewsGetServiceResponse++; | 472 buildCounterZoneViewsGetServiceResponse++; |
473 if (buildCounterZoneViewsGetServiceResponse < 3) { | 473 if (buildCounterZoneViewsGetServiceResponse < 3) { |
474 checkUnnamed1297(o.endpoints); | 474 checkUnnamed1145(o.endpoints); |
475 unittest.expect(o.fingerprint, unittest.equals('foo')); | 475 unittest.expect(o.fingerprint, unittest.equals('foo')); |
476 } | 476 } |
477 buildCounterZoneViewsGetServiceResponse--; | 477 buildCounterZoneViewsGetServiceResponse--; |
478 } | 478 } |
479 | 479 |
480 buildUnnamed1298() { | 480 buildUnnamed1146() { |
481 var o = new core.List<api.ResourceView>(); | 481 var o = new core.List<api.ResourceView>(); |
482 o.add(buildResourceView()); | 482 o.add(buildResourceView()); |
483 o.add(buildResourceView()); | 483 o.add(buildResourceView()); |
484 return o; | 484 return o; |
485 } | 485 } |
486 | 486 |
487 checkUnnamed1298(core.List<api.ResourceView> o) { | 487 checkUnnamed1146(core.List<api.ResourceView> o) { |
488 unittest.expect(o, unittest.hasLength(2)); | 488 unittest.expect(o, unittest.hasLength(2)); |
489 checkResourceView(o[0]); | 489 checkResourceView(o[0]); |
490 checkResourceView(o[1]); | 490 checkResourceView(o[1]); |
491 } | 491 } |
492 | 492 |
493 core.int buildCounterZoneViewsList = 0; | 493 core.int buildCounterZoneViewsList = 0; |
494 buildZoneViewsList() { | 494 buildZoneViewsList() { |
495 var o = new api.ZoneViewsList(); | 495 var o = new api.ZoneViewsList(); |
496 buildCounterZoneViewsList++; | 496 buildCounterZoneViewsList++; |
497 if (buildCounterZoneViewsList < 3) { | 497 if (buildCounterZoneViewsList < 3) { |
498 o.items = buildUnnamed1298(); | 498 o.items = buildUnnamed1146(); |
499 o.kind = "foo"; | 499 o.kind = "foo"; |
500 o.nextPageToken = "foo"; | 500 o.nextPageToken = "foo"; |
501 o.selfLink = "foo"; | 501 o.selfLink = "foo"; |
502 } | 502 } |
503 buildCounterZoneViewsList--; | 503 buildCounterZoneViewsList--; |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkZoneViewsList(api.ZoneViewsList o) { | 507 checkZoneViewsList(api.ZoneViewsList o) { |
508 buildCounterZoneViewsList++; | 508 buildCounterZoneViewsList++; |
509 if (buildCounterZoneViewsList < 3) { | 509 if (buildCounterZoneViewsList < 3) { |
510 checkUnnamed1298(o.items); | 510 checkUnnamed1146(o.items); |
511 unittest.expect(o.kind, unittest.equals('foo')); | 511 unittest.expect(o.kind, unittest.equals('foo')); |
512 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 512 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
513 unittest.expect(o.selfLink, unittest.equals('foo')); | 513 unittest.expect(o.selfLink, unittest.equals('foo')); |
514 } | 514 } |
515 buildCounterZoneViewsList--; | 515 buildCounterZoneViewsList--; |
516 } | 516 } |
517 | 517 |
518 buildUnnamed1299() { | 518 buildUnnamed1147() { |
519 var o = new core.List<api.ListResourceResponseItem>(); | 519 var o = new core.List<api.ListResourceResponseItem>(); |
520 o.add(buildListResourceResponseItem()); | 520 o.add(buildListResourceResponseItem()); |
521 o.add(buildListResourceResponseItem()); | 521 o.add(buildListResourceResponseItem()); |
522 return o; | 522 return o; |
523 } | 523 } |
524 | 524 |
525 checkUnnamed1299(core.List<api.ListResourceResponseItem> o) { | 525 checkUnnamed1147(core.List<api.ListResourceResponseItem> o) { |
526 unittest.expect(o, unittest.hasLength(2)); | 526 unittest.expect(o, unittest.hasLength(2)); |
527 checkListResourceResponseItem(o[0]); | 527 checkListResourceResponseItem(o[0]); |
528 checkListResourceResponseItem(o[1]); | 528 checkListResourceResponseItem(o[1]); |
529 } | 529 } |
530 | 530 |
531 core.int buildCounterZoneViewsListResourcesResponse = 0; | 531 core.int buildCounterZoneViewsListResourcesResponse = 0; |
532 buildZoneViewsListResourcesResponse() { | 532 buildZoneViewsListResourcesResponse() { |
533 var o = new api.ZoneViewsListResourcesResponse(); | 533 var o = new api.ZoneViewsListResourcesResponse(); |
534 buildCounterZoneViewsListResourcesResponse++; | 534 buildCounterZoneViewsListResourcesResponse++; |
535 if (buildCounterZoneViewsListResourcesResponse < 3) { | 535 if (buildCounterZoneViewsListResourcesResponse < 3) { |
536 o.items = buildUnnamed1299(); | 536 o.items = buildUnnamed1147(); |
537 o.network = "foo"; | 537 o.network = "foo"; |
538 o.nextPageToken = "foo"; | 538 o.nextPageToken = "foo"; |
539 } | 539 } |
540 buildCounterZoneViewsListResourcesResponse--; | 540 buildCounterZoneViewsListResourcesResponse--; |
541 return o; | 541 return o; |
542 } | 542 } |
543 | 543 |
544 checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { | 544 checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { |
545 buildCounterZoneViewsListResourcesResponse++; | 545 buildCounterZoneViewsListResourcesResponse++; |
546 if (buildCounterZoneViewsListResourcesResponse < 3) { | 546 if (buildCounterZoneViewsListResourcesResponse < 3) { |
547 checkUnnamed1299(o.items); | 547 checkUnnamed1147(o.items); |
548 unittest.expect(o.network, unittest.equals('foo')); | 548 unittest.expect(o.network, unittest.equals('foo')); |
549 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 549 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
550 } | 550 } |
551 buildCounterZoneViewsListResourcesResponse--; | 551 buildCounterZoneViewsListResourcesResponse--; |
552 } | 552 } |
553 | 553 |
554 buildUnnamed1300() { | 554 buildUnnamed1148() { |
555 var o = new core.List<core.String>(); | 555 var o = new core.List<core.String>(); |
556 o.add("foo"); | 556 o.add("foo"); |
557 o.add("foo"); | 557 o.add("foo"); |
558 return o; | 558 return o; |
559 } | 559 } |
560 | 560 |
561 checkUnnamed1300(core.List<core.String> o) { | 561 checkUnnamed1148(core.List<core.String> o) { |
562 unittest.expect(o, unittest.hasLength(2)); | 562 unittest.expect(o, unittest.hasLength(2)); |
563 unittest.expect(o[0], unittest.equals('foo')); | 563 unittest.expect(o[0], unittest.equals('foo')); |
564 unittest.expect(o[1], unittest.equals('foo')); | 564 unittest.expect(o[1], unittest.equals('foo')); |
565 } | 565 } |
566 | 566 |
567 core.int buildCounterZoneViewsRemoveResourcesRequest = 0; | 567 core.int buildCounterZoneViewsRemoveResourcesRequest = 0; |
568 buildZoneViewsRemoveResourcesRequest() { | 568 buildZoneViewsRemoveResourcesRequest() { |
569 var o = new api.ZoneViewsRemoveResourcesRequest(); | 569 var o = new api.ZoneViewsRemoveResourcesRequest(); |
570 buildCounterZoneViewsRemoveResourcesRequest++; | 570 buildCounterZoneViewsRemoveResourcesRequest++; |
571 if (buildCounterZoneViewsRemoveResourcesRequest < 3) { | 571 if (buildCounterZoneViewsRemoveResourcesRequest < 3) { |
572 o.resources = buildUnnamed1300(); | 572 o.resources = buildUnnamed1148(); |
573 } | 573 } |
574 buildCounterZoneViewsRemoveResourcesRequest--; | 574 buildCounterZoneViewsRemoveResourcesRequest--; |
575 return o; | 575 return o; |
576 } | 576 } |
577 | 577 |
578 checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { | 578 checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { |
579 buildCounterZoneViewsRemoveResourcesRequest++; | 579 buildCounterZoneViewsRemoveResourcesRequest++; |
580 if (buildCounterZoneViewsRemoveResourcesRequest < 3) { | 580 if (buildCounterZoneViewsRemoveResourcesRequest < 3) { |
581 checkUnnamed1300(o.resources); | 581 checkUnnamed1148(o.resources); |
582 } | 582 } |
583 buildCounterZoneViewsRemoveResourcesRequest--; | 583 buildCounterZoneViewsRemoveResourcesRequest--; |
584 } | 584 } |
585 | 585 |
586 buildUnnamed1301() { | 586 buildUnnamed1149() { |
587 var o = new core.List<api.ServiceEndpoint>(); | 587 var o = new core.List<api.ServiceEndpoint>(); |
588 o.add(buildServiceEndpoint()); | 588 o.add(buildServiceEndpoint()); |
589 o.add(buildServiceEndpoint()); | 589 o.add(buildServiceEndpoint()); |
590 return o; | 590 return o; |
591 } | 591 } |
592 | 592 |
593 checkUnnamed1301(core.List<api.ServiceEndpoint> o) { | 593 checkUnnamed1149(core.List<api.ServiceEndpoint> o) { |
594 unittest.expect(o, unittest.hasLength(2)); | 594 unittest.expect(o, unittest.hasLength(2)); |
595 checkServiceEndpoint(o[0]); | 595 checkServiceEndpoint(o[0]); |
596 checkServiceEndpoint(o[1]); | 596 checkServiceEndpoint(o[1]); |
597 } | 597 } |
598 | 598 |
599 core.int buildCounterZoneViewsSetServiceRequest = 0; | 599 core.int buildCounterZoneViewsSetServiceRequest = 0; |
600 buildZoneViewsSetServiceRequest() { | 600 buildZoneViewsSetServiceRequest() { |
601 var o = new api.ZoneViewsSetServiceRequest(); | 601 var o = new api.ZoneViewsSetServiceRequest(); |
602 buildCounterZoneViewsSetServiceRequest++; | 602 buildCounterZoneViewsSetServiceRequest++; |
603 if (buildCounterZoneViewsSetServiceRequest < 3) { | 603 if (buildCounterZoneViewsSetServiceRequest < 3) { |
604 o.endpoints = buildUnnamed1301(); | 604 o.endpoints = buildUnnamed1149(); |
605 o.fingerprint = "foo"; | 605 o.fingerprint = "foo"; |
606 o.resourceName = "foo"; | 606 o.resourceName = "foo"; |
607 } | 607 } |
608 buildCounterZoneViewsSetServiceRequest--; | 608 buildCounterZoneViewsSetServiceRequest--; |
609 return o; | 609 return o; |
610 } | 610 } |
611 | 611 |
612 checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) { | 612 checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) { |
613 buildCounterZoneViewsSetServiceRequest++; | 613 buildCounterZoneViewsSetServiceRequest++; |
614 if (buildCounterZoneViewsSetServiceRequest < 3) { | 614 if (buildCounterZoneViewsSetServiceRequest < 3) { |
615 checkUnnamed1301(o.endpoints); | 615 checkUnnamed1149(o.endpoints); |
616 unittest.expect(o.fingerprint, unittest.equals('foo')); | 616 unittest.expect(o.fingerprint, unittest.equals('foo')); |
617 unittest.expect(o.resourceName, unittest.equals('foo')); | 617 unittest.expect(o.resourceName, unittest.equals('foo')); |
618 } | 618 } |
619 buildCounterZoneViewsSetServiceRequest--; | 619 buildCounterZoneViewsSetServiceRequest--; |
620 } | 620 } |
621 | 621 |
622 | 622 |
623 main() { | 623 main() { |
624 unittest.group("obj-schema-Label", () { | 624 unittest.group("obj-schema-Label", () { |
625 unittest.test("to-json--from-json", () { | 625 unittest.test("to-json--from-json", () { |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 res.setService(arg_request, arg_project, arg_zone, arg_resourceView).then(
unittest.expectAsync(((api.Operation response) { | 1287 res.setService(arg_request, arg_project, arg_zone, arg_resourceView).then(
unittest.expectAsync(((api.Operation response) { |
1288 checkOperation(response); | 1288 checkOperation(response); |
1289 }))); | 1289 }))); |
1290 }); | 1290 }); |
1291 | 1291 |
1292 }); | 1292 }); |
1293 | 1293 |
1294 | 1294 |
1295 } | 1295 } |
1296 | 1296 |
OLD | NEW |