OLD | NEW |
1 library googleapis.compute.v1.test; | 1 library googleapis.compute.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 buildCounterAccessConfig++; | 69 buildCounterAccessConfig++; |
70 if (buildCounterAccessConfig < 3) { | 70 if (buildCounterAccessConfig < 3) { |
71 unittest.expect(o.kind, unittest.equals('foo')); | 71 unittest.expect(o.kind, unittest.equals('foo')); |
72 unittest.expect(o.name, unittest.equals('foo')); | 72 unittest.expect(o.name, unittest.equals('foo')); |
73 unittest.expect(o.natIP, unittest.equals('foo')); | 73 unittest.expect(o.natIP, unittest.equals('foo')); |
74 unittest.expect(o.type, unittest.equals('foo')); | 74 unittest.expect(o.type, unittest.equals('foo')); |
75 } | 75 } |
76 buildCounterAccessConfig--; | 76 buildCounterAccessConfig--; |
77 } | 77 } |
78 | 78 |
79 buildUnnamed2215() { | 79 buildUnnamed1988() { |
80 var o = new core.List<core.String>(); | 80 var o = new core.List<core.String>(); |
81 o.add("foo"); | 81 o.add("foo"); |
82 o.add("foo"); | 82 o.add("foo"); |
83 return o; | 83 return o; |
84 } | 84 } |
85 | 85 |
86 checkUnnamed2215(core.List<core.String> o) { | 86 checkUnnamed1988(core.List<core.String> o) { |
87 unittest.expect(o, unittest.hasLength(2)); | 87 unittest.expect(o, unittest.hasLength(2)); |
88 unittest.expect(o[0], unittest.equals('foo')); | 88 unittest.expect(o[0], unittest.equals('foo')); |
89 unittest.expect(o[1], unittest.equals('foo')); | 89 unittest.expect(o[1], unittest.equals('foo')); |
90 } | 90 } |
91 | 91 |
92 core.int buildCounterAddress = 0; | 92 core.int buildCounterAddress = 0; |
93 buildAddress() { | 93 buildAddress() { |
94 var o = new api.Address(); | 94 var o = new api.Address(); |
95 buildCounterAddress++; | 95 buildCounterAddress++; |
96 if (buildCounterAddress < 3) { | 96 if (buildCounterAddress < 3) { |
97 o.address = "foo"; | 97 o.address = "foo"; |
98 o.creationTimestamp = "foo"; | 98 o.creationTimestamp = "foo"; |
99 o.description = "foo"; | 99 o.description = "foo"; |
100 o.id = "foo"; | 100 o.id = "foo"; |
101 o.kind = "foo"; | 101 o.kind = "foo"; |
102 o.name = "foo"; | 102 o.name = "foo"; |
103 o.region = "foo"; | 103 o.region = "foo"; |
104 o.selfLink = "foo"; | 104 o.selfLink = "foo"; |
105 o.status = "foo"; | 105 o.status = "foo"; |
106 o.users = buildUnnamed2215(); | 106 o.users = buildUnnamed1988(); |
107 } | 107 } |
108 buildCounterAddress--; | 108 buildCounterAddress--; |
109 return o; | 109 return o; |
110 } | 110 } |
111 | 111 |
112 checkAddress(api.Address o) { | 112 checkAddress(api.Address o) { |
113 buildCounterAddress++; | 113 buildCounterAddress++; |
114 if (buildCounterAddress < 3) { | 114 if (buildCounterAddress < 3) { |
115 unittest.expect(o.address, unittest.equals('foo')); | 115 unittest.expect(o.address, unittest.equals('foo')); |
116 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 116 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
117 unittest.expect(o.description, unittest.equals('foo')); | 117 unittest.expect(o.description, unittest.equals('foo')); |
118 unittest.expect(o.id, unittest.equals('foo')); | 118 unittest.expect(o.id, unittest.equals('foo')); |
119 unittest.expect(o.kind, unittest.equals('foo')); | 119 unittest.expect(o.kind, unittest.equals('foo')); |
120 unittest.expect(o.name, unittest.equals('foo')); | 120 unittest.expect(o.name, unittest.equals('foo')); |
121 unittest.expect(o.region, unittest.equals('foo')); | 121 unittest.expect(o.region, unittest.equals('foo')); |
122 unittest.expect(o.selfLink, unittest.equals('foo')); | 122 unittest.expect(o.selfLink, unittest.equals('foo')); |
123 unittest.expect(o.status, unittest.equals('foo')); | 123 unittest.expect(o.status, unittest.equals('foo')); |
124 checkUnnamed2215(o.users); | 124 checkUnnamed1988(o.users); |
125 } | 125 } |
126 buildCounterAddress--; | 126 buildCounterAddress--; |
127 } | 127 } |
128 | 128 |
129 buildUnnamed2216() { | 129 buildUnnamed1989() { |
130 var o = new core.Map<core.String, api.AddressesScopedList>(); | 130 var o = new core.Map<core.String, api.AddressesScopedList>(); |
131 o["x"] = buildAddressesScopedList(); | 131 o["x"] = buildAddressesScopedList(); |
132 o["y"] = buildAddressesScopedList(); | 132 o["y"] = buildAddressesScopedList(); |
133 return o; | 133 return o; |
134 } | 134 } |
135 | 135 |
136 checkUnnamed2216(core.Map<core.String, api.AddressesScopedList> o) { | 136 checkUnnamed1989(core.Map<core.String, api.AddressesScopedList> o) { |
137 unittest.expect(o, unittest.hasLength(2)); | 137 unittest.expect(o, unittest.hasLength(2)); |
138 checkAddressesScopedList(o["x"]); | 138 checkAddressesScopedList(o["x"]); |
139 checkAddressesScopedList(o["y"]); | 139 checkAddressesScopedList(o["y"]); |
140 } | 140 } |
141 | 141 |
142 core.int buildCounterAddressAggregatedList = 0; | 142 core.int buildCounterAddressAggregatedList = 0; |
143 buildAddressAggregatedList() { | 143 buildAddressAggregatedList() { |
144 var o = new api.AddressAggregatedList(); | 144 var o = new api.AddressAggregatedList(); |
145 buildCounterAddressAggregatedList++; | 145 buildCounterAddressAggregatedList++; |
146 if (buildCounterAddressAggregatedList < 3) { | 146 if (buildCounterAddressAggregatedList < 3) { |
147 o.id = "foo"; | 147 o.id = "foo"; |
148 o.items = buildUnnamed2216(); | 148 o.items = buildUnnamed1989(); |
149 o.kind = "foo"; | 149 o.kind = "foo"; |
150 o.nextPageToken = "foo"; | 150 o.nextPageToken = "foo"; |
151 o.selfLink = "foo"; | 151 o.selfLink = "foo"; |
152 } | 152 } |
153 buildCounterAddressAggregatedList--; | 153 buildCounterAddressAggregatedList--; |
154 return o; | 154 return o; |
155 } | 155 } |
156 | 156 |
157 checkAddressAggregatedList(api.AddressAggregatedList o) { | 157 checkAddressAggregatedList(api.AddressAggregatedList o) { |
158 buildCounterAddressAggregatedList++; | 158 buildCounterAddressAggregatedList++; |
159 if (buildCounterAddressAggregatedList < 3) { | 159 if (buildCounterAddressAggregatedList < 3) { |
160 unittest.expect(o.id, unittest.equals('foo')); | 160 unittest.expect(o.id, unittest.equals('foo')); |
161 checkUnnamed2216(o.items); | 161 checkUnnamed1989(o.items); |
162 unittest.expect(o.kind, unittest.equals('foo')); | 162 unittest.expect(o.kind, unittest.equals('foo')); |
163 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 163 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
164 unittest.expect(o.selfLink, unittest.equals('foo')); | 164 unittest.expect(o.selfLink, unittest.equals('foo')); |
165 } | 165 } |
166 buildCounterAddressAggregatedList--; | 166 buildCounterAddressAggregatedList--; |
167 } | 167 } |
168 | 168 |
169 buildUnnamed2217() { | 169 buildUnnamed1990() { |
170 var o = new core.List<api.Address>(); | 170 var o = new core.List<api.Address>(); |
171 o.add(buildAddress()); | 171 o.add(buildAddress()); |
172 o.add(buildAddress()); | 172 o.add(buildAddress()); |
173 return o; | 173 return o; |
174 } | 174 } |
175 | 175 |
176 checkUnnamed2217(core.List<api.Address> o) { | 176 checkUnnamed1990(core.List<api.Address> o) { |
177 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
178 checkAddress(o[0]); | 178 checkAddress(o[0]); |
179 checkAddress(o[1]); | 179 checkAddress(o[1]); |
180 } | 180 } |
181 | 181 |
182 core.int buildCounterAddressList = 0; | 182 core.int buildCounterAddressList = 0; |
183 buildAddressList() { | 183 buildAddressList() { |
184 var o = new api.AddressList(); | 184 var o = new api.AddressList(); |
185 buildCounterAddressList++; | 185 buildCounterAddressList++; |
186 if (buildCounterAddressList < 3) { | 186 if (buildCounterAddressList < 3) { |
187 o.id = "foo"; | 187 o.id = "foo"; |
188 o.items = buildUnnamed2217(); | 188 o.items = buildUnnamed1990(); |
189 o.kind = "foo"; | 189 o.kind = "foo"; |
190 o.nextPageToken = "foo"; | 190 o.nextPageToken = "foo"; |
191 o.selfLink = "foo"; | 191 o.selfLink = "foo"; |
192 } | 192 } |
193 buildCounterAddressList--; | 193 buildCounterAddressList--; |
194 return o; | 194 return o; |
195 } | 195 } |
196 | 196 |
197 checkAddressList(api.AddressList o) { | 197 checkAddressList(api.AddressList o) { |
198 buildCounterAddressList++; | 198 buildCounterAddressList++; |
199 if (buildCounterAddressList < 3) { | 199 if (buildCounterAddressList < 3) { |
200 unittest.expect(o.id, unittest.equals('foo')); | 200 unittest.expect(o.id, unittest.equals('foo')); |
201 checkUnnamed2217(o.items); | 201 checkUnnamed1990(o.items); |
202 unittest.expect(o.kind, unittest.equals('foo')); | 202 unittest.expect(o.kind, unittest.equals('foo')); |
203 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 203 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
204 unittest.expect(o.selfLink, unittest.equals('foo')); | 204 unittest.expect(o.selfLink, unittest.equals('foo')); |
205 } | 205 } |
206 buildCounterAddressList--; | 206 buildCounterAddressList--; |
207 } | 207 } |
208 | 208 |
209 buildUnnamed2218() { | 209 buildUnnamed1991() { |
210 var o = new core.List<api.Address>(); | 210 var o = new core.List<api.Address>(); |
211 o.add(buildAddress()); | 211 o.add(buildAddress()); |
212 o.add(buildAddress()); | 212 o.add(buildAddress()); |
213 return o; | 213 return o; |
214 } | 214 } |
215 | 215 |
216 checkUnnamed2218(core.List<api.Address> o) { | 216 checkUnnamed1991(core.List<api.Address> o) { |
217 unittest.expect(o, unittest.hasLength(2)); | 217 unittest.expect(o, unittest.hasLength(2)); |
218 checkAddress(o[0]); | 218 checkAddress(o[0]); |
219 checkAddress(o[1]); | 219 checkAddress(o[1]); |
220 } | 220 } |
221 | 221 |
222 core.int buildCounterAddressesScopedListWarningData = 0; | 222 core.int buildCounterAddressesScopedListWarningData = 0; |
223 buildAddressesScopedListWarningData() { | 223 buildAddressesScopedListWarningData() { |
224 var o = new api.AddressesScopedListWarningData(); | 224 var o = new api.AddressesScopedListWarningData(); |
225 buildCounterAddressesScopedListWarningData++; | 225 buildCounterAddressesScopedListWarningData++; |
226 if (buildCounterAddressesScopedListWarningData < 3) { | 226 if (buildCounterAddressesScopedListWarningData < 3) { |
227 o.key = "foo"; | 227 o.key = "foo"; |
228 o.value = "foo"; | 228 o.value = "foo"; |
229 } | 229 } |
230 buildCounterAddressesScopedListWarningData--; | 230 buildCounterAddressesScopedListWarningData--; |
231 return o; | 231 return o; |
232 } | 232 } |
233 | 233 |
234 checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) { | 234 checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) { |
235 buildCounterAddressesScopedListWarningData++; | 235 buildCounterAddressesScopedListWarningData++; |
236 if (buildCounterAddressesScopedListWarningData < 3) { | 236 if (buildCounterAddressesScopedListWarningData < 3) { |
237 unittest.expect(o.key, unittest.equals('foo')); | 237 unittest.expect(o.key, unittest.equals('foo')); |
238 unittest.expect(o.value, unittest.equals('foo')); | 238 unittest.expect(o.value, unittest.equals('foo')); |
239 } | 239 } |
240 buildCounterAddressesScopedListWarningData--; | 240 buildCounterAddressesScopedListWarningData--; |
241 } | 241 } |
242 | 242 |
243 buildUnnamed2219() { | 243 buildUnnamed1992() { |
244 var o = new core.List<api.AddressesScopedListWarningData>(); | 244 var o = new core.List<api.AddressesScopedListWarningData>(); |
245 o.add(buildAddressesScopedListWarningData()); | 245 o.add(buildAddressesScopedListWarningData()); |
246 o.add(buildAddressesScopedListWarningData()); | 246 o.add(buildAddressesScopedListWarningData()); |
247 return o; | 247 return o; |
248 } | 248 } |
249 | 249 |
250 checkUnnamed2219(core.List<api.AddressesScopedListWarningData> o) { | 250 checkUnnamed1992(core.List<api.AddressesScopedListWarningData> o) { |
251 unittest.expect(o, unittest.hasLength(2)); | 251 unittest.expect(o, unittest.hasLength(2)); |
252 checkAddressesScopedListWarningData(o[0]); | 252 checkAddressesScopedListWarningData(o[0]); |
253 checkAddressesScopedListWarningData(o[1]); | 253 checkAddressesScopedListWarningData(o[1]); |
254 } | 254 } |
255 | 255 |
256 core.int buildCounterAddressesScopedListWarning = 0; | 256 core.int buildCounterAddressesScopedListWarning = 0; |
257 buildAddressesScopedListWarning() { | 257 buildAddressesScopedListWarning() { |
258 var o = new api.AddressesScopedListWarning(); | 258 var o = new api.AddressesScopedListWarning(); |
259 buildCounterAddressesScopedListWarning++; | 259 buildCounterAddressesScopedListWarning++; |
260 if (buildCounterAddressesScopedListWarning < 3) { | 260 if (buildCounterAddressesScopedListWarning < 3) { |
261 o.code = "foo"; | 261 o.code = "foo"; |
262 o.data = buildUnnamed2219(); | 262 o.data = buildUnnamed1992(); |
263 o.message = "foo"; | 263 o.message = "foo"; |
264 } | 264 } |
265 buildCounterAddressesScopedListWarning--; | 265 buildCounterAddressesScopedListWarning--; |
266 return o; | 266 return o; |
267 } | 267 } |
268 | 268 |
269 checkAddressesScopedListWarning(api.AddressesScopedListWarning o) { | 269 checkAddressesScopedListWarning(api.AddressesScopedListWarning o) { |
270 buildCounterAddressesScopedListWarning++; | 270 buildCounterAddressesScopedListWarning++; |
271 if (buildCounterAddressesScopedListWarning < 3) { | 271 if (buildCounterAddressesScopedListWarning < 3) { |
272 unittest.expect(o.code, unittest.equals('foo')); | 272 unittest.expect(o.code, unittest.equals('foo')); |
273 checkUnnamed2219(o.data); | 273 checkUnnamed1992(o.data); |
274 unittest.expect(o.message, unittest.equals('foo')); | 274 unittest.expect(o.message, unittest.equals('foo')); |
275 } | 275 } |
276 buildCounterAddressesScopedListWarning--; | 276 buildCounterAddressesScopedListWarning--; |
277 } | 277 } |
278 | 278 |
279 core.int buildCounterAddressesScopedList = 0; | 279 core.int buildCounterAddressesScopedList = 0; |
280 buildAddressesScopedList() { | 280 buildAddressesScopedList() { |
281 var o = new api.AddressesScopedList(); | 281 var o = new api.AddressesScopedList(); |
282 buildCounterAddressesScopedList++; | 282 buildCounterAddressesScopedList++; |
283 if (buildCounterAddressesScopedList < 3) { | 283 if (buildCounterAddressesScopedList < 3) { |
284 o.addresses = buildUnnamed2218(); | 284 o.addresses = buildUnnamed1991(); |
285 o.warning = buildAddressesScopedListWarning(); | 285 o.warning = buildAddressesScopedListWarning(); |
286 } | 286 } |
287 buildCounterAddressesScopedList--; | 287 buildCounterAddressesScopedList--; |
288 return o; | 288 return o; |
289 } | 289 } |
290 | 290 |
291 checkAddressesScopedList(api.AddressesScopedList o) { | 291 checkAddressesScopedList(api.AddressesScopedList o) { |
292 buildCounterAddressesScopedList++; | 292 buildCounterAddressesScopedList++; |
293 if (buildCounterAddressesScopedList < 3) { | 293 if (buildCounterAddressesScopedList < 3) { |
294 checkUnnamed2218(o.addresses); | 294 checkUnnamed1991(o.addresses); |
295 checkAddressesScopedListWarning(o.warning); | 295 checkAddressesScopedListWarning(o.warning); |
296 } | 296 } |
297 buildCounterAddressesScopedList--; | 297 buildCounterAddressesScopedList--; |
298 } | 298 } |
299 | 299 |
300 buildUnnamed2220() { | 300 buildUnnamed1993() { |
301 var o = new core.List<core.String>(); | 301 var o = new core.List<core.String>(); |
302 o.add("foo"); | 302 o.add("foo"); |
303 o.add("foo"); | 303 o.add("foo"); |
304 return o; | 304 return o; |
305 } | 305 } |
306 | 306 |
307 checkUnnamed2220(core.List<core.String> o) { | 307 checkUnnamed1993(core.List<core.String> o) { |
308 unittest.expect(o, unittest.hasLength(2)); | 308 unittest.expect(o, unittest.hasLength(2)); |
309 unittest.expect(o[0], unittest.equals('foo')); | 309 unittest.expect(o[0], unittest.equals('foo')); |
310 unittest.expect(o[1], unittest.equals('foo')); | 310 unittest.expect(o[1], unittest.equals('foo')); |
311 } | 311 } |
312 | 312 |
313 core.int buildCounterAttachedDisk = 0; | 313 core.int buildCounterAttachedDisk = 0; |
314 buildAttachedDisk() { | 314 buildAttachedDisk() { |
315 var o = new api.AttachedDisk(); | 315 var o = new api.AttachedDisk(); |
316 buildCounterAttachedDisk++; | 316 buildCounterAttachedDisk++; |
317 if (buildCounterAttachedDisk < 3) { | 317 if (buildCounterAttachedDisk < 3) { |
318 o.autoDelete = true; | 318 o.autoDelete = true; |
319 o.boot = true; | 319 o.boot = true; |
320 o.deviceName = "foo"; | 320 o.deviceName = "foo"; |
321 o.diskEncryptionKey = buildCustomerEncryptionKey(); | 321 o.diskEncryptionKey = buildCustomerEncryptionKey(); |
322 o.index = 42; | 322 o.index = 42; |
323 o.initializeParams = buildAttachedDiskInitializeParams(); | 323 o.initializeParams = buildAttachedDiskInitializeParams(); |
324 o.interface = "foo"; | 324 o.interface = "foo"; |
325 o.kind = "foo"; | 325 o.kind = "foo"; |
326 o.licenses = buildUnnamed2220(); | 326 o.licenses = buildUnnamed1993(); |
327 o.mode = "foo"; | 327 o.mode = "foo"; |
328 o.source = "foo"; | 328 o.source = "foo"; |
329 o.type = "foo"; | 329 o.type = "foo"; |
330 } | 330 } |
331 buildCounterAttachedDisk--; | 331 buildCounterAttachedDisk--; |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkAttachedDisk(api.AttachedDisk o) { | 335 checkAttachedDisk(api.AttachedDisk o) { |
336 buildCounterAttachedDisk++; | 336 buildCounterAttachedDisk++; |
337 if (buildCounterAttachedDisk < 3) { | 337 if (buildCounterAttachedDisk < 3) { |
338 unittest.expect(o.autoDelete, unittest.isTrue); | 338 unittest.expect(o.autoDelete, unittest.isTrue); |
339 unittest.expect(o.boot, unittest.isTrue); | 339 unittest.expect(o.boot, unittest.isTrue); |
340 unittest.expect(o.deviceName, unittest.equals('foo')); | 340 unittest.expect(o.deviceName, unittest.equals('foo')); |
341 checkCustomerEncryptionKey(o.diskEncryptionKey); | 341 checkCustomerEncryptionKey(o.diskEncryptionKey); |
342 unittest.expect(o.index, unittest.equals(42)); | 342 unittest.expect(o.index, unittest.equals(42)); |
343 checkAttachedDiskInitializeParams(o.initializeParams); | 343 checkAttachedDiskInitializeParams(o.initializeParams); |
344 unittest.expect(o.interface, unittest.equals('foo')); | 344 unittest.expect(o.interface, unittest.equals('foo')); |
345 unittest.expect(o.kind, unittest.equals('foo')); | 345 unittest.expect(o.kind, unittest.equals('foo')); |
346 checkUnnamed2220(o.licenses); | 346 checkUnnamed1993(o.licenses); |
347 unittest.expect(o.mode, unittest.equals('foo')); | 347 unittest.expect(o.mode, unittest.equals('foo')); |
348 unittest.expect(o.source, unittest.equals('foo')); | 348 unittest.expect(o.source, unittest.equals('foo')); |
349 unittest.expect(o.type, unittest.equals('foo')); | 349 unittest.expect(o.type, unittest.equals('foo')); |
350 } | 350 } |
351 buildCounterAttachedDisk--; | 351 buildCounterAttachedDisk--; |
352 } | 352 } |
353 | 353 |
354 core.int buildCounterAttachedDiskInitializeParams = 0; | 354 core.int buildCounterAttachedDiskInitializeParams = 0; |
355 buildAttachedDiskInitializeParams() { | 355 buildAttachedDiskInitializeParams() { |
356 var o = new api.AttachedDiskInitializeParams(); | 356 var o = new api.AttachedDiskInitializeParams(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 unittest.expect(o.kind, unittest.equals('foo')); | 408 unittest.expect(o.kind, unittest.equals('foo')); |
409 unittest.expect(o.name, unittest.equals('foo')); | 409 unittest.expect(o.name, unittest.equals('foo')); |
410 unittest.expect(o.region, unittest.equals('foo')); | 410 unittest.expect(o.region, unittest.equals('foo')); |
411 unittest.expect(o.selfLink, unittest.equals('foo')); | 411 unittest.expect(o.selfLink, unittest.equals('foo')); |
412 unittest.expect(o.target, unittest.equals('foo')); | 412 unittest.expect(o.target, unittest.equals('foo')); |
413 unittest.expect(o.zone, unittest.equals('foo')); | 413 unittest.expect(o.zone, unittest.equals('foo')); |
414 } | 414 } |
415 buildCounterAutoscaler--; | 415 buildCounterAutoscaler--; |
416 } | 416 } |
417 | 417 |
418 buildUnnamed2221() { | 418 buildUnnamed1994() { |
419 var o = new core.Map<core.String, api.AutoscalersScopedList>(); | 419 var o = new core.Map<core.String, api.AutoscalersScopedList>(); |
420 o["x"] = buildAutoscalersScopedList(); | 420 o["x"] = buildAutoscalersScopedList(); |
421 o["y"] = buildAutoscalersScopedList(); | 421 o["y"] = buildAutoscalersScopedList(); |
422 return o; | 422 return o; |
423 } | 423 } |
424 | 424 |
425 checkUnnamed2221(core.Map<core.String, api.AutoscalersScopedList> o) { | 425 checkUnnamed1994(core.Map<core.String, api.AutoscalersScopedList> o) { |
426 unittest.expect(o, unittest.hasLength(2)); | 426 unittest.expect(o, unittest.hasLength(2)); |
427 checkAutoscalersScopedList(o["x"]); | 427 checkAutoscalersScopedList(o["x"]); |
428 checkAutoscalersScopedList(o["y"]); | 428 checkAutoscalersScopedList(o["y"]); |
429 } | 429 } |
430 | 430 |
431 core.int buildCounterAutoscalerAggregatedList = 0; | 431 core.int buildCounterAutoscalerAggregatedList = 0; |
432 buildAutoscalerAggregatedList() { | 432 buildAutoscalerAggregatedList() { |
433 var o = new api.AutoscalerAggregatedList(); | 433 var o = new api.AutoscalerAggregatedList(); |
434 buildCounterAutoscalerAggregatedList++; | 434 buildCounterAutoscalerAggregatedList++; |
435 if (buildCounterAutoscalerAggregatedList < 3) { | 435 if (buildCounterAutoscalerAggregatedList < 3) { |
436 o.id = "foo"; | 436 o.id = "foo"; |
437 o.items = buildUnnamed2221(); | 437 o.items = buildUnnamed1994(); |
438 o.kind = "foo"; | 438 o.kind = "foo"; |
439 o.nextPageToken = "foo"; | 439 o.nextPageToken = "foo"; |
440 o.selfLink = "foo"; | 440 o.selfLink = "foo"; |
441 } | 441 } |
442 buildCounterAutoscalerAggregatedList--; | 442 buildCounterAutoscalerAggregatedList--; |
443 return o; | 443 return o; |
444 } | 444 } |
445 | 445 |
446 checkAutoscalerAggregatedList(api.AutoscalerAggregatedList o) { | 446 checkAutoscalerAggregatedList(api.AutoscalerAggregatedList o) { |
447 buildCounterAutoscalerAggregatedList++; | 447 buildCounterAutoscalerAggregatedList++; |
448 if (buildCounterAutoscalerAggregatedList < 3) { | 448 if (buildCounterAutoscalerAggregatedList < 3) { |
449 unittest.expect(o.id, unittest.equals('foo')); | 449 unittest.expect(o.id, unittest.equals('foo')); |
450 checkUnnamed2221(o.items); | 450 checkUnnamed1994(o.items); |
451 unittest.expect(o.kind, unittest.equals('foo')); | 451 unittest.expect(o.kind, unittest.equals('foo')); |
452 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 452 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
453 unittest.expect(o.selfLink, unittest.equals('foo')); | 453 unittest.expect(o.selfLink, unittest.equals('foo')); |
454 } | 454 } |
455 buildCounterAutoscalerAggregatedList--; | 455 buildCounterAutoscalerAggregatedList--; |
456 } | 456 } |
457 | 457 |
458 buildUnnamed2222() { | 458 buildUnnamed1995() { |
459 var o = new core.List<api.Autoscaler>(); | 459 var o = new core.List<api.Autoscaler>(); |
460 o.add(buildAutoscaler()); | 460 o.add(buildAutoscaler()); |
461 o.add(buildAutoscaler()); | 461 o.add(buildAutoscaler()); |
462 return o; | 462 return o; |
463 } | 463 } |
464 | 464 |
465 checkUnnamed2222(core.List<api.Autoscaler> o) { | 465 checkUnnamed1995(core.List<api.Autoscaler> o) { |
466 unittest.expect(o, unittest.hasLength(2)); | 466 unittest.expect(o, unittest.hasLength(2)); |
467 checkAutoscaler(o[0]); | 467 checkAutoscaler(o[0]); |
468 checkAutoscaler(o[1]); | 468 checkAutoscaler(o[1]); |
469 } | 469 } |
470 | 470 |
471 core.int buildCounterAutoscalerList = 0; | 471 core.int buildCounterAutoscalerList = 0; |
472 buildAutoscalerList() { | 472 buildAutoscalerList() { |
473 var o = new api.AutoscalerList(); | 473 var o = new api.AutoscalerList(); |
474 buildCounterAutoscalerList++; | 474 buildCounterAutoscalerList++; |
475 if (buildCounterAutoscalerList < 3) { | 475 if (buildCounterAutoscalerList < 3) { |
476 o.id = "foo"; | 476 o.id = "foo"; |
477 o.items = buildUnnamed2222(); | 477 o.items = buildUnnamed1995(); |
478 o.kind = "foo"; | 478 o.kind = "foo"; |
479 o.nextPageToken = "foo"; | 479 o.nextPageToken = "foo"; |
480 o.selfLink = "foo"; | 480 o.selfLink = "foo"; |
481 } | 481 } |
482 buildCounterAutoscalerList--; | 482 buildCounterAutoscalerList--; |
483 return o; | 483 return o; |
484 } | 484 } |
485 | 485 |
486 checkAutoscalerList(api.AutoscalerList o) { | 486 checkAutoscalerList(api.AutoscalerList o) { |
487 buildCounterAutoscalerList++; | 487 buildCounterAutoscalerList++; |
488 if (buildCounterAutoscalerList < 3) { | 488 if (buildCounterAutoscalerList < 3) { |
489 unittest.expect(o.id, unittest.equals('foo')); | 489 unittest.expect(o.id, unittest.equals('foo')); |
490 checkUnnamed2222(o.items); | 490 checkUnnamed1995(o.items); |
491 unittest.expect(o.kind, unittest.equals('foo')); | 491 unittest.expect(o.kind, unittest.equals('foo')); |
492 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 492 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
493 unittest.expect(o.selfLink, unittest.equals('foo')); | 493 unittest.expect(o.selfLink, unittest.equals('foo')); |
494 } | 494 } |
495 buildCounterAutoscalerList--; | 495 buildCounterAutoscalerList--; |
496 } | 496 } |
497 | 497 |
498 buildUnnamed2223() { | 498 buildUnnamed1996() { |
499 var o = new core.List<api.Autoscaler>(); | 499 var o = new core.List<api.Autoscaler>(); |
500 o.add(buildAutoscaler()); | 500 o.add(buildAutoscaler()); |
501 o.add(buildAutoscaler()); | 501 o.add(buildAutoscaler()); |
502 return o; | 502 return o; |
503 } | 503 } |
504 | 504 |
505 checkUnnamed2223(core.List<api.Autoscaler> o) { | 505 checkUnnamed1996(core.List<api.Autoscaler> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
507 checkAutoscaler(o[0]); | 507 checkAutoscaler(o[0]); |
508 checkAutoscaler(o[1]); | 508 checkAutoscaler(o[1]); |
509 } | 509 } |
510 | 510 |
511 core.int buildCounterAutoscalersScopedListWarningData = 0; | 511 core.int buildCounterAutoscalersScopedListWarningData = 0; |
512 buildAutoscalersScopedListWarningData() { | 512 buildAutoscalersScopedListWarningData() { |
513 var o = new api.AutoscalersScopedListWarningData(); | 513 var o = new api.AutoscalersScopedListWarningData(); |
514 buildCounterAutoscalersScopedListWarningData++; | 514 buildCounterAutoscalersScopedListWarningData++; |
515 if (buildCounterAutoscalersScopedListWarningData < 3) { | 515 if (buildCounterAutoscalersScopedListWarningData < 3) { |
516 o.key = "foo"; | 516 o.key = "foo"; |
517 o.value = "foo"; | 517 o.value = "foo"; |
518 } | 518 } |
519 buildCounterAutoscalersScopedListWarningData--; | 519 buildCounterAutoscalersScopedListWarningData--; |
520 return o; | 520 return o; |
521 } | 521 } |
522 | 522 |
523 checkAutoscalersScopedListWarningData(api.AutoscalersScopedListWarningData o) { | 523 checkAutoscalersScopedListWarningData(api.AutoscalersScopedListWarningData o) { |
524 buildCounterAutoscalersScopedListWarningData++; | 524 buildCounterAutoscalersScopedListWarningData++; |
525 if (buildCounterAutoscalersScopedListWarningData < 3) { | 525 if (buildCounterAutoscalersScopedListWarningData < 3) { |
526 unittest.expect(o.key, unittest.equals('foo')); | 526 unittest.expect(o.key, unittest.equals('foo')); |
527 unittest.expect(o.value, unittest.equals('foo')); | 527 unittest.expect(o.value, unittest.equals('foo')); |
528 } | 528 } |
529 buildCounterAutoscalersScopedListWarningData--; | 529 buildCounterAutoscalersScopedListWarningData--; |
530 } | 530 } |
531 | 531 |
532 buildUnnamed2224() { | 532 buildUnnamed1997() { |
533 var o = new core.List<api.AutoscalersScopedListWarningData>(); | 533 var o = new core.List<api.AutoscalersScopedListWarningData>(); |
534 o.add(buildAutoscalersScopedListWarningData()); | 534 o.add(buildAutoscalersScopedListWarningData()); |
535 o.add(buildAutoscalersScopedListWarningData()); | 535 o.add(buildAutoscalersScopedListWarningData()); |
536 return o; | 536 return o; |
537 } | 537 } |
538 | 538 |
539 checkUnnamed2224(core.List<api.AutoscalersScopedListWarningData> o) { | 539 checkUnnamed1997(core.List<api.AutoscalersScopedListWarningData> o) { |
540 unittest.expect(o, unittest.hasLength(2)); | 540 unittest.expect(o, unittest.hasLength(2)); |
541 checkAutoscalersScopedListWarningData(o[0]); | 541 checkAutoscalersScopedListWarningData(o[0]); |
542 checkAutoscalersScopedListWarningData(o[1]); | 542 checkAutoscalersScopedListWarningData(o[1]); |
543 } | 543 } |
544 | 544 |
545 core.int buildCounterAutoscalersScopedListWarning = 0; | 545 core.int buildCounterAutoscalersScopedListWarning = 0; |
546 buildAutoscalersScopedListWarning() { | 546 buildAutoscalersScopedListWarning() { |
547 var o = new api.AutoscalersScopedListWarning(); | 547 var o = new api.AutoscalersScopedListWarning(); |
548 buildCounterAutoscalersScopedListWarning++; | 548 buildCounterAutoscalersScopedListWarning++; |
549 if (buildCounterAutoscalersScopedListWarning < 3) { | 549 if (buildCounterAutoscalersScopedListWarning < 3) { |
550 o.code = "foo"; | 550 o.code = "foo"; |
551 o.data = buildUnnamed2224(); | 551 o.data = buildUnnamed1997(); |
552 o.message = "foo"; | 552 o.message = "foo"; |
553 } | 553 } |
554 buildCounterAutoscalersScopedListWarning--; | 554 buildCounterAutoscalersScopedListWarning--; |
555 return o; | 555 return o; |
556 } | 556 } |
557 | 557 |
558 checkAutoscalersScopedListWarning(api.AutoscalersScopedListWarning o) { | 558 checkAutoscalersScopedListWarning(api.AutoscalersScopedListWarning o) { |
559 buildCounterAutoscalersScopedListWarning++; | 559 buildCounterAutoscalersScopedListWarning++; |
560 if (buildCounterAutoscalersScopedListWarning < 3) { | 560 if (buildCounterAutoscalersScopedListWarning < 3) { |
561 unittest.expect(o.code, unittest.equals('foo')); | 561 unittest.expect(o.code, unittest.equals('foo')); |
562 checkUnnamed2224(o.data); | 562 checkUnnamed1997(o.data); |
563 unittest.expect(o.message, unittest.equals('foo')); | 563 unittest.expect(o.message, unittest.equals('foo')); |
564 } | 564 } |
565 buildCounterAutoscalersScopedListWarning--; | 565 buildCounterAutoscalersScopedListWarning--; |
566 } | 566 } |
567 | 567 |
568 core.int buildCounterAutoscalersScopedList = 0; | 568 core.int buildCounterAutoscalersScopedList = 0; |
569 buildAutoscalersScopedList() { | 569 buildAutoscalersScopedList() { |
570 var o = new api.AutoscalersScopedList(); | 570 var o = new api.AutoscalersScopedList(); |
571 buildCounterAutoscalersScopedList++; | 571 buildCounterAutoscalersScopedList++; |
572 if (buildCounterAutoscalersScopedList < 3) { | 572 if (buildCounterAutoscalersScopedList < 3) { |
573 o.autoscalers = buildUnnamed2223(); | 573 o.autoscalers = buildUnnamed1996(); |
574 o.warning = buildAutoscalersScopedListWarning(); | 574 o.warning = buildAutoscalersScopedListWarning(); |
575 } | 575 } |
576 buildCounterAutoscalersScopedList--; | 576 buildCounterAutoscalersScopedList--; |
577 return o; | 577 return o; |
578 } | 578 } |
579 | 579 |
580 checkAutoscalersScopedList(api.AutoscalersScopedList o) { | 580 checkAutoscalersScopedList(api.AutoscalersScopedList o) { |
581 buildCounterAutoscalersScopedList++; | 581 buildCounterAutoscalersScopedList++; |
582 if (buildCounterAutoscalersScopedList < 3) { | 582 if (buildCounterAutoscalersScopedList < 3) { |
583 checkUnnamed2223(o.autoscalers); | 583 checkUnnamed1996(o.autoscalers); |
584 checkAutoscalersScopedListWarning(o.warning); | 584 checkAutoscalersScopedListWarning(o.warning); |
585 } | 585 } |
586 buildCounterAutoscalersScopedList--; | 586 buildCounterAutoscalersScopedList--; |
587 } | 587 } |
588 | 588 |
589 buildUnnamed2225() { | 589 buildUnnamed1998() { |
590 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); | 590 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); |
591 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 591 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
592 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 592 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
593 return o; | 593 return o; |
594 } | 594 } |
595 | 595 |
596 checkUnnamed2225(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { | 596 checkUnnamed1998(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { |
597 unittest.expect(o, unittest.hasLength(2)); | 597 unittest.expect(o, unittest.hasLength(2)); |
598 checkAutoscalingPolicyCustomMetricUtilization(o[0]); | 598 checkAutoscalingPolicyCustomMetricUtilization(o[0]); |
599 checkAutoscalingPolicyCustomMetricUtilization(o[1]); | 599 checkAutoscalingPolicyCustomMetricUtilization(o[1]); |
600 } | 600 } |
601 | 601 |
602 core.int buildCounterAutoscalingPolicy = 0; | 602 core.int buildCounterAutoscalingPolicy = 0; |
603 buildAutoscalingPolicy() { | 603 buildAutoscalingPolicy() { |
604 var o = new api.AutoscalingPolicy(); | 604 var o = new api.AutoscalingPolicy(); |
605 buildCounterAutoscalingPolicy++; | 605 buildCounterAutoscalingPolicy++; |
606 if (buildCounterAutoscalingPolicy < 3) { | 606 if (buildCounterAutoscalingPolicy < 3) { |
607 o.coolDownPeriodSec = 42; | 607 o.coolDownPeriodSec = 42; |
608 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); | 608 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); |
609 o.customMetricUtilizations = buildUnnamed2225(); | 609 o.customMetricUtilizations = buildUnnamed1998(); |
610 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); | 610 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); |
611 o.maxNumReplicas = 42; | 611 o.maxNumReplicas = 42; |
612 o.minNumReplicas = 42; | 612 o.minNumReplicas = 42; |
613 } | 613 } |
614 buildCounterAutoscalingPolicy--; | 614 buildCounterAutoscalingPolicy--; |
615 return o; | 615 return o; |
616 } | 616 } |
617 | 617 |
618 checkAutoscalingPolicy(api.AutoscalingPolicy o) { | 618 checkAutoscalingPolicy(api.AutoscalingPolicy o) { |
619 buildCounterAutoscalingPolicy++; | 619 buildCounterAutoscalingPolicy++; |
620 if (buildCounterAutoscalingPolicy < 3) { | 620 if (buildCounterAutoscalingPolicy < 3) { |
621 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); | 621 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); |
622 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); | 622 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); |
623 checkUnnamed2225(o.customMetricUtilizations); | 623 checkUnnamed1998(o.customMetricUtilizations); |
624 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); | 624 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); |
625 unittest.expect(o.maxNumReplicas, unittest.equals(42)); | 625 unittest.expect(o.maxNumReplicas, unittest.equals(42)); |
626 unittest.expect(o.minNumReplicas, unittest.equals(42)); | 626 unittest.expect(o.minNumReplicas, unittest.equals(42)); |
627 } | 627 } |
628 buildCounterAutoscalingPolicy--; | 628 buildCounterAutoscalingPolicy--; |
629 } | 629 } |
630 | 630 |
631 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; | 631 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; |
632 buildAutoscalingPolicyCpuUtilization() { | 632 buildAutoscalingPolicyCpuUtilization() { |
633 var o = new api.AutoscalingPolicyCpuUtilization(); | 633 var o = new api.AutoscalingPolicyCpuUtilization(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 unittest.expect(o.group, unittest.equals('foo')); | 717 unittest.expect(o.group, unittest.equals('foo')); |
718 unittest.expect(o.maxConnections, unittest.equals(42)); | 718 unittest.expect(o.maxConnections, unittest.equals(42)); |
719 unittest.expect(o.maxConnectionsPerInstance, unittest.equals(42)); | 719 unittest.expect(o.maxConnectionsPerInstance, unittest.equals(42)); |
720 unittest.expect(o.maxRate, unittest.equals(42)); | 720 unittest.expect(o.maxRate, unittest.equals(42)); |
721 unittest.expect(o.maxRatePerInstance, unittest.equals(42.0)); | 721 unittest.expect(o.maxRatePerInstance, unittest.equals(42.0)); |
722 unittest.expect(o.maxUtilization, unittest.equals(42.0)); | 722 unittest.expect(o.maxUtilization, unittest.equals(42.0)); |
723 } | 723 } |
724 buildCounterBackend--; | 724 buildCounterBackend--; |
725 } | 725 } |
726 | 726 |
727 buildUnnamed2226() { | 727 buildUnnamed1999() { |
728 var o = new core.List<api.Backend>(); | 728 var o = new core.List<api.Backend>(); |
729 o.add(buildBackend()); | 729 o.add(buildBackend()); |
730 o.add(buildBackend()); | 730 o.add(buildBackend()); |
731 return o; | 731 return o; |
732 } | 732 } |
733 | 733 |
734 checkUnnamed2226(core.List<api.Backend> o) { | 734 checkUnnamed1999(core.List<api.Backend> o) { |
735 unittest.expect(o, unittest.hasLength(2)); | 735 unittest.expect(o, unittest.hasLength(2)); |
736 checkBackend(o[0]); | 736 checkBackend(o[0]); |
737 checkBackend(o[1]); | 737 checkBackend(o[1]); |
738 } | 738 } |
739 | 739 |
740 buildUnnamed2227() { | 740 buildUnnamed2000() { |
741 var o = new core.List<core.String>(); | 741 var o = new core.List<core.String>(); |
742 o.add("foo"); | 742 o.add("foo"); |
743 o.add("foo"); | 743 o.add("foo"); |
744 return o; | 744 return o; |
745 } | 745 } |
746 | 746 |
747 checkUnnamed2227(core.List<core.String> o) { | 747 checkUnnamed2000(core.List<core.String> o) { |
748 unittest.expect(o, unittest.hasLength(2)); | 748 unittest.expect(o, unittest.hasLength(2)); |
749 unittest.expect(o[0], unittest.equals('foo')); | 749 unittest.expect(o[0], unittest.equals('foo')); |
750 unittest.expect(o[1], unittest.equals('foo')); | 750 unittest.expect(o[1], unittest.equals('foo')); |
751 } | 751 } |
752 | 752 |
753 core.int buildCounterBackendService = 0; | 753 core.int buildCounterBackendService = 0; |
754 buildBackendService() { | 754 buildBackendService() { |
755 var o = new api.BackendService(); | 755 var o = new api.BackendService(); |
756 buildCounterBackendService++; | 756 buildCounterBackendService++; |
757 if (buildCounterBackendService < 3) { | 757 if (buildCounterBackendService < 3) { |
758 o.affinityCookieTtlSec = 42; | 758 o.affinityCookieTtlSec = 42; |
759 o.backends = buildUnnamed2226(); | 759 o.backends = buildUnnamed1999(); |
760 o.connectionDraining = buildConnectionDraining(); | 760 o.connectionDraining = buildConnectionDraining(); |
761 o.creationTimestamp = "foo"; | 761 o.creationTimestamp = "foo"; |
762 o.description = "foo"; | 762 o.description = "foo"; |
763 o.enableCDN = true; | 763 o.enableCDN = true; |
764 o.fingerprint = "foo"; | 764 o.fingerprint = "foo"; |
765 o.healthChecks = buildUnnamed2227(); | 765 o.healthChecks = buildUnnamed2000(); |
766 o.id = "foo"; | 766 o.id = "foo"; |
767 o.kind = "foo"; | 767 o.kind = "foo"; |
| 768 o.loadBalancingScheme = "foo"; |
768 o.name = "foo"; | 769 o.name = "foo"; |
769 o.port = 42; | 770 o.port = 42; |
770 o.portName = "foo"; | 771 o.portName = "foo"; |
771 o.protocol = "foo"; | 772 o.protocol = "foo"; |
772 o.region = "foo"; | 773 o.region = "foo"; |
773 o.selfLink = "foo"; | 774 o.selfLink = "foo"; |
774 o.sessionAffinity = "foo"; | 775 o.sessionAffinity = "foo"; |
775 o.timeoutSec = 42; | 776 o.timeoutSec = 42; |
776 } | 777 } |
777 buildCounterBackendService--; | 778 buildCounterBackendService--; |
778 return o; | 779 return o; |
779 } | 780 } |
780 | 781 |
781 checkBackendService(api.BackendService o) { | 782 checkBackendService(api.BackendService o) { |
782 buildCounterBackendService++; | 783 buildCounterBackendService++; |
783 if (buildCounterBackendService < 3) { | 784 if (buildCounterBackendService < 3) { |
784 unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); | 785 unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); |
785 checkUnnamed2226(o.backends); | 786 checkUnnamed1999(o.backends); |
786 checkConnectionDraining(o.connectionDraining); | 787 checkConnectionDraining(o.connectionDraining); |
787 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 788 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
788 unittest.expect(o.description, unittest.equals('foo')); | 789 unittest.expect(o.description, unittest.equals('foo')); |
789 unittest.expect(o.enableCDN, unittest.isTrue); | 790 unittest.expect(o.enableCDN, unittest.isTrue); |
790 unittest.expect(o.fingerprint, unittest.equals('foo')); | 791 unittest.expect(o.fingerprint, unittest.equals('foo')); |
791 checkUnnamed2227(o.healthChecks); | 792 checkUnnamed2000(o.healthChecks); |
792 unittest.expect(o.id, unittest.equals('foo')); | 793 unittest.expect(o.id, unittest.equals('foo')); |
793 unittest.expect(o.kind, unittest.equals('foo')); | 794 unittest.expect(o.kind, unittest.equals('foo')); |
| 795 unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); |
794 unittest.expect(o.name, unittest.equals('foo')); | 796 unittest.expect(o.name, unittest.equals('foo')); |
795 unittest.expect(o.port, unittest.equals(42)); | 797 unittest.expect(o.port, unittest.equals(42)); |
796 unittest.expect(o.portName, unittest.equals('foo')); | 798 unittest.expect(o.portName, unittest.equals('foo')); |
797 unittest.expect(o.protocol, unittest.equals('foo')); | 799 unittest.expect(o.protocol, unittest.equals('foo')); |
798 unittest.expect(o.region, unittest.equals('foo')); | 800 unittest.expect(o.region, unittest.equals('foo')); |
799 unittest.expect(o.selfLink, unittest.equals('foo')); | 801 unittest.expect(o.selfLink, unittest.equals('foo')); |
800 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 802 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
801 unittest.expect(o.timeoutSec, unittest.equals(42)); | 803 unittest.expect(o.timeoutSec, unittest.equals(42)); |
802 } | 804 } |
803 buildCounterBackendService--; | 805 buildCounterBackendService--; |
804 } | 806 } |
805 | 807 |
806 buildUnnamed2228() { | 808 buildUnnamed2001() { |
| 809 var o = new core.Map<core.String, api.BackendServicesScopedList>(); |
| 810 o["x"] = buildBackendServicesScopedList(); |
| 811 o["y"] = buildBackendServicesScopedList(); |
| 812 return o; |
| 813 } |
| 814 |
| 815 checkUnnamed2001(core.Map<core.String, api.BackendServicesScopedList> o) { |
| 816 unittest.expect(o, unittest.hasLength(2)); |
| 817 checkBackendServicesScopedList(o["x"]); |
| 818 checkBackendServicesScopedList(o["y"]); |
| 819 } |
| 820 |
| 821 core.int buildCounterBackendServiceAggregatedList = 0; |
| 822 buildBackendServiceAggregatedList() { |
| 823 var o = new api.BackendServiceAggregatedList(); |
| 824 buildCounterBackendServiceAggregatedList++; |
| 825 if (buildCounterBackendServiceAggregatedList < 3) { |
| 826 o.id = "foo"; |
| 827 o.items = buildUnnamed2001(); |
| 828 o.kind = "foo"; |
| 829 o.nextPageToken = "foo"; |
| 830 o.selfLink = "foo"; |
| 831 } |
| 832 buildCounterBackendServiceAggregatedList--; |
| 833 return o; |
| 834 } |
| 835 |
| 836 checkBackendServiceAggregatedList(api.BackendServiceAggregatedList o) { |
| 837 buildCounterBackendServiceAggregatedList++; |
| 838 if (buildCounterBackendServiceAggregatedList < 3) { |
| 839 unittest.expect(o.id, unittest.equals('foo')); |
| 840 checkUnnamed2001(o.items); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 843 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 844 } |
| 845 buildCounterBackendServiceAggregatedList--; |
| 846 } |
| 847 |
| 848 buildUnnamed2002() { |
807 var o = new core.List<api.HealthStatus>(); | 849 var o = new core.List<api.HealthStatus>(); |
808 o.add(buildHealthStatus()); | 850 o.add(buildHealthStatus()); |
809 o.add(buildHealthStatus()); | 851 o.add(buildHealthStatus()); |
810 return o; | 852 return o; |
811 } | 853 } |
812 | 854 |
813 checkUnnamed2228(core.List<api.HealthStatus> o) { | 855 checkUnnamed2002(core.List<api.HealthStatus> o) { |
814 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
815 checkHealthStatus(o[0]); | 857 checkHealthStatus(o[0]); |
816 checkHealthStatus(o[1]); | 858 checkHealthStatus(o[1]); |
817 } | 859 } |
818 | 860 |
819 core.int buildCounterBackendServiceGroupHealth = 0; | 861 core.int buildCounterBackendServiceGroupHealth = 0; |
820 buildBackendServiceGroupHealth() { | 862 buildBackendServiceGroupHealth() { |
821 var o = new api.BackendServiceGroupHealth(); | 863 var o = new api.BackendServiceGroupHealth(); |
822 buildCounterBackendServiceGroupHealth++; | 864 buildCounterBackendServiceGroupHealth++; |
823 if (buildCounterBackendServiceGroupHealth < 3) { | 865 if (buildCounterBackendServiceGroupHealth < 3) { |
824 o.healthStatus = buildUnnamed2228(); | 866 o.healthStatus = buildUnnamed2002(); |
825 o.kind = "foo"; | 867 o.kind = "foo"; |
826 } | 868 } |
827 buildCounterBackendServiceGroupHealth--; | 869 buildCounterBackendServiceGroupHealth--; |
828 return o; | 870 return o; |
829 } | 871 } |
830 | 872 |
831 checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { | 873 checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { |
832 buildCounterBackendServiceGroupHealth++; | 874 buildCounterBackendServiceGroupHealth++; |
833 if (buildCounterBackendServiceGroupHealth < 3) { | 875 if (buildCounterBackendServiceGroupHealth < 3) { |
834 checkUnnamed2228(o.healthStatus); | 876 checkUnnamed2002(o.healthStatus); |
835 unittest.expect(o.kind, unittest.equals('foo')); | 877 unittest.expect(o.kind, unittest.equals('foo')); |
836 } | 878 } |
837 buildCounterBackendServiceGroupHealth--; | 879 buildCounterBackendServiceGroupHealth--; |
838 } | 880 } |
839 | 881 |
840 buildUnnamed2229() { | 882 buildUnnamed2003() { |
841 var o = new core.List<api.BackendService>(); | 883 var o = new core.List<api.BackendService>(); |
842 o.add(buildBackendService()); | 884 o.add(buildBackendService()); |
843 o.add(buildBackendService()); | 885 o.add(buildBackendService()); |
844 return o; | 886 return o; |
845 } | 887 } |
846 | 888 |
847 checkUnnamed2229(core.List<api.BackendService> o) { | 889 checkUnnamed2003(core.List<api.BackendService> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 890 unittest.expect(o, unittest.hasLength(2)); |
849 checkBackendService(o[0]); | 891 checkBackendService(o[0]); |
850 checkBackendService(o[1]); | 892 checkBackendService(o[1]); |
851 } | 893 } |
852 | 894 |
853 core.int buildCounterBackendServiceList = 0; | 895 core.int buildCounterBackendServiceList = 0; |
854 buildBackendServiceList() { | 896 buildBackendServiceList() { |
855 var o = new api.BackendServiceList(); | 897 var o = new api.BackendServiceList(); |
856 buildCounterBackendServiceList++; | 898 buildCounterBackendServiceList++; |
857 if (buildCounterBackendServiceList < 3) { | 899 if (buildCounterBackendServiceList < 3) { |
858 o.id = "foo"; | 900 o.id = "foo"; |
859 o.items = buildUnnamed2229(); | 901 o.items = buildUnnamed2003(); |
860 o.kind = "foo"; | 902 o.kind = "foo"; |
861 o.nextPageToken = "foo"; | 903 o.nextPageToken = "foo"; |
862 o.selfLink = "foo"; | 904 o.selfLink = "foo"; |
863 } | 905 } |
864 buildCounterBackendServiceList--; | 906 buildCounterBackendServiceList--; |
865 return o; | 907 return o; |
866 } | 908 } |
867 | 909 |
868 checkBackendServiceList(api.BackendServiceList o) { | 910 checkBackendServiceList(api.BackendServiceList o) { |
869 buildCounterBackendServiceList++; | 911 buildCounterBackendServiceList++; |
870 if (buildCounterBackendServiceList < 3) { | 912 if (buildCounterBackendServiceList < 3) { |
871 unittest.expect(o.id, unittest.equals('foo')); | 913 unittest.expect(o.id, unittest.equals('foo')); |
872 checkUnnamed2229(o.items); | 914 checkUnnamed2003(o.items); |
873 unittest.expect(o.kind, unittest.equals('foo')); | 915 unittest.expect(o.kind, unittest.equals('foo')); |
874 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 916 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
875 unittest.expect(o.selfLink, unittest.equals('foo')); | 917 unittest.expect(o.selfLink, unittest.equals('foo')); |
876 } | 918 } |
877 buildCounterBackendServiceList--; | 919 buildCounterBackendServiceList--; |
878 } | 920 } |
879 | 921 |
| 922 buildUnnamed2004() { |
| 923 var o = new core.List<api.BackendService>(); |
| 924 o.add(buildBackendService()); |
| 925 o.add(buildBackendService()); |
| 926 return o; |
| 927 } |
| 928 |
| 929 checkUnnamed2004(core.List<api.BackendService> o) { |
| 930 unittest.expect(o, unittest.hasLength(2)); |
| 931 checkBackendService(o[0]); |
| 932 checkBackendService(o[1]); |
| 933 } |
| 934 |
| 935 core.int buildCounterBackendServicesScopedListWarningData = 0; |
| 936 buildBackendServicesScopedListWarningData() { |
| 937 var o = new api.BackendServicesScopedListWarningData(); |
| 938 buildCounterBackendServicesScopedListWarningData++; |
| 939 if (buildCounterBackendServicesScopedListWarningData < 3) { |
| 940 o.key = "foo"; |
| 941 o.value = "foo"; |
| 942 } |
| 943 buildCounterBackendServicesScopedListWarningData--; |
| 944 return o; |
| 945 } |
| 946 |
| 947 checkBackendServicesScopedListWarningData(api.BackendServicesScopedListWarningDa
ta o) { |
| 948 buildCounterBackendServicesScopedListWarningData++; |
| 949 if (buildCounterBackendServicesScopedListWarningData < 3) { |
| 950 unittest.expect(o.key, unittest.equals('foo')); |
| 951 unittest.expect(o.value, unittest.equals('foo')); |
| 952 } |
| 953 buildCounterBackendServicesScopedListWarningData--; |
| 954 } |
| 955 |
| 956 buildUnnamed2005() { |
| 957 var o = new core.List<api.BackendServicesScopedListWarningData>(); |
| 958 o.add(buildBackendServicesScopedListWarningData()); |
| 959 o.add(buildBackendServicesScopedListWarningData()); |
| 960 return o; |
| 961 } |
| 962 |
| 963 checkUnnamed2005(core.List<api.BackendServicesScopedListWarningData> o) { |
| 964 unittest.expect(o, unittest.hasLength(2)); |
| 965 checkBackendServicesScopedListWarningData(o[0]); |
| 966 checkBackendServicesScopedListWarningData(o[1]); |
| 967 } |
| 968 |
| 969 core.int buildCounterBackendServicesScopedListWarning = 0; |
| 970 buildBackendServicesScopedListWarning() { |
| 971 var o = new api.BackendServicesScopedListWarning(); |
| 972 buildCounterBackendServicesScopedListWarning++; |
| 973 if (buildCounterBackendServicesScopedListWarning < 3) { |
| 974 o.code = "foo"; |
| 975 o.data = buildUnnamed2005(); |
| 976 o.message = "foo"; |
| 977 } |
| 978 buildCounterBackendServicesScopedListWarning--; |
| 979 return o; |
| 980 } |
| 981 |
| 982 checkBackendServicesScopedListWarning(api.BackendServicesScopedListWarning o) { |
| 983 buildCounterBackendServicesScopedListWarning++; |
| 984 if (buildCounterBackendServicesScopedListWarning < 3) { |
| 985 unittest.expect(o.code, unittest.equals('foo')); |
| 986 checkUnnamed2005(o.data); |
| 987 unittest.expect(o.message, unittest.equals('foo')); |
| 988 } |
| 989 buildCounterBackendServicesScopedListWarning--; |
| 990 } |
| 991 |
| 992 core.int buildCounterBackendServicesScopedList = 0; |
| 993 buildBackendServicesScopedList() { |
| 994 var o = new api.BackendServicesScopedList(); |
| 995 buildCounterBackendServicesScopedList++; |
| 996 if (buildCounterBackendServicesScopedList < 3) { |
| 997 o.backendServices = buildUnnamed2004(); |
| 998 o.warning = buildBackendServicesScopedListWarning(); |
| 999 } |
| 1000 buildCounterBackendServicesScopedList--; |
| 1001 return o; |
| 1002 } |
| 1003 |
| 1004 checkBackendServicesScopedList(api.BackendServicesScopedList o) { |
| 1005 buildCounterBackendServicesScopedList++; |
| 1006 if (buildCounterBackendServicesScopedList < 3) { |
| 1007 checkUnnamed2004(o.backendServices); |
| 1008 checkBackendServicesScopedListWarning(o.warning); |
| 1009 } |
| 1010 buildCounterBackendServicesScopedList--; |
| 1011 } |
| 1012 |
880 core.int buildCounterCacheInvalidationRule = 0; | 1013 core.int buildCounterCacheInvalidationRule = 0; |
881 buildCacheInvalidationRule() { | 1014 buildCacheInvalidationRule() { |
882 var o = new api.CacheInvalidationRule(); | 1015 var o = new api.CacheInvalidationRule(); |
883 buildCounterCacheInvalidationRule++; | 1016 buildCounterCacheInvalidationRule++; |
884 if (buildCounterCacheInvalidationRule < 3) { | 1017 if (buildCounterCacheInvalidationRule < 3) { |
885 o.path = "foo"; | 1018 o.path = "foo"; |
886 } | 1019 } |
887 buildCounterCacheInvalidationRule--; | 1020 buildCounterCacheInvalidationRule--; |
888 return o; | 1021 return o; |
889 } | 1022 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 if (buildCounterDeprecationStatus < 3) { | 1110 if (buildCounterDeprecationStatus < 3) { |
978 unittest.expect(o.deleted, unittest.equals('foo')); | 1111 unittest.expect(o.deleted, unittest.equals('foo')); |
979 unittest.expect(o.deprecated, unittest.equals('foo')); | 1112 unittest.expect(o.deprecated, unittest.equals('foo')); |
980 unittest.expect(o.obsolete, unittest.equals('foo')); | 1113 unittest.expect(o.obsolete, unittest.equals('foo')); |
981 unittest.expect(o.replacement, unittest.equals('foo')); | 1114 unittest.expect(o.replacement, unittest.equals('foo')); |
982 unittest.expect(o.state, unittest.equals('foo')); | 1115 unittest.expect(o.state, unittest.equals('foo')); |
983 } | 1116 } |
984 buildCounterDeprecationStatus--; | 1117 buildCounterDeprecationStatus--; |
985 } | 1118 } |
986 | 1119 |
987 buildUnnamed2230() { | 1120 buildUnnamed2006() { |
988 var o = new core.List<core.String>(); | 1121 var o = new core.List<core.String>(); |
989 o.add("foo"); | 1122 o.add("foo"); |
990 o.add("foo"); | 1123 o.add("foo"); |
991 return o; | 1124 return o; |
992 } | 1125 } |
993 | 1126 |
994 checkUnnamed2230(core.List<core.String> o) { | 1127 checkUnnamed2006(core.List<core.String> o) { |
995 unittest.expect(o, unittest.hasLength(2)); | 1128 unittest.expect(o, unittest.hasLength(2)); |
996 unittest.expect(o[0], unittest.equals('foo')); | 1129 unittest.expect(o[0], unittest.equals('foo')); |
997 unittest.expect(o[1], unittest.equals('foo')); | 1130 unittest.expect(o[1], unittest.equals('foo')); |
998 } | 1131 } |
999 | 1132 |
1000 buildUnnamed2231() { | 1133 buildUnnamed2007() { |
1001 var o = new core.List<core.String>(); | 1134 var o = new core.List<core.String>(); |
1002 o.add("foo"); | 1135 o.add("foo"); |
1003 o.add("foo"); | 1136 o.add("foo"); |
1004 return o; | 1137 return o; |
1005 } | 1138 } |
1006 | 1139 |
1007 checkUnnamed2231(core.List<core.String> o) { | 1140 checkUnnamed2007(core.List<core.String> o) { |
1008 unittest.expect(o, unittest.hasLength(2)); | 1141 unittest.expect(o, unittest.hasLength(2)); |
1009 unittest.expect(o[0], unittest.equals('foo')); | 1142 unittest.expect(o[0], unittest.equals('foo')); |
1010 unittest.expect(o[1], unittest.equals('foo')); | 1143 unittest.expect(o[1], unittest.equals('foo')); |
1011 } | 1144 } |
1012 | 1145 |
1013 core.int buildCounterDisk = 0; | 1146 core.int buildCounterDisk = 0; |
1014 buildDisk() { | 1147 buildDisk() { |
1015 var o = new api.Disk(); | 1148 var o = new api.Disk(); |
1016 buildCounterDisk++; | 1149 buildCounterDisk++; |
1017 if (buildCounterDisk < 3) { | 1150 if (buildCounterDisk < 3) { |
1018 o.creationTimestamp = "foo"; | 1151 o.creationTimestamp = "foo"; |
1019 o.description = "foo"; | 1152 o.description = "foo"; |
1020 o.diskEncryptionKey = buildCustomerEncryptionKey(); | 1153 o.diskEncryptionKey = buildCustomerEncryptionKey(); |
1021 o.id = "foo"; | 1154 o.id = "foo"; |
1022 o.kind = "foo"; | 1155 o.kind = "foo"; |
1023 o.lastAttachTimestamp = "foo"; | 1156 o.lastAttachTimestamp = "foo"; |
1024 o.lastDetachTimestamp = "foo"; | 1157 o.lastDetachTimestamp = "foo"; |
1025 o.licenses = buildUnnamed2230(); | 1158 o.licenses = buildUnnamed2006(); |
1026 o.name = "foo"; | 1159 o.name = "foo"; |
1027 o.options = "foo"; | 1160 o.options = "foo"; |
1028 o.selfLink = "foo"; | 1161 o.selfLink = "foo"; |
1029 o.sizeGb = "foo"; | 1162 o.sizeGb = "foo"; |
1030 o.sourceImage = "foo"; | 1163 o.sourceImage = "foo"; |
1031 o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); | 1164 o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); |
1032 o.sourceImageId = "foo"; | 1165 o.sourceImageId = "foo"; |
1033 o.sourceSnapshot = "foo"; | 1166 o.sourceSnapshot = "foo"; |
1034 o.sourceSnapshotEncryptionKey = buildCustomerEncryptionKey(); | 1167 o.sourceSnapshotEncryptionKey = buildCustomerEncryptionKey(); |
1035 o.sourceSnapshotId = "foo"; | 1168 o.sourceSnapshotId = "foo"; |
1036 o.status = "foo"; | 1169 o.status = "foo"; |
1037 o.type = "foo"; | 1170 o.type = "foo"; |
1038 o.users = buildUnnamed2231(); | 1171 o.users = buildUnnamed2007(); |
1039 o.zone = "foo"; | 1172 o.zone = "foo"; |
1040 } | 1173 } |
1041 buildCounterDisk--; | 1174 buildCounterDisk--; |
1042 return o; | 1175 return o; |
1043 } | 1176 } |
1044 | 1177 |
1045 checkDisk(api.Disk o) { | 1178 checkDisk(api.Disk o) { |
1046 buildCounterDisk++; | 1179 buildCounterDisk++; |
1047 if (buildCounterDisk < 3) { | 1180 if (buildCounterDisk < 3) { |
1048 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1181 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
1049 unittest.expect(o.description, unittest.equals('foo')); | 1182 unittest.expect(o.description, unittest.equals('foo')); |
1050 checkCustomerEncryptionKey(o.diskEncryptionKey); | 1183 checkCustomerEncryptionKey(o.diskEncryptionKey); |
1051 unittest.expect(o.id, unittest.equals('foo')); | 1184 unittest.expect(o.id, unittest.equals('foo')); |
1052 unittest.expect(o.kind, unittest.equals('foo')); | 1185 unittest.expect(o.kind, unittest.equals('foo')); |
1053 unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); | 1186 unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); |
1054 unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); | 1187 unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); |
1055 checkUnnamed2230(o.licenses); | 1188 checkUnnamed2006(o.licenses); |
1056 unittest.expect(o.name, unittest.equals('foo')); | 1189 unittest.expect(o.name, unittest.equals('foo')); |
1057 unittest.expect(o.options, unittest.equals('foo')); | 1190 unittest.expect(o.options, unittest.equals('foo')); |
1058 unittest.expect(o.selfLink, unittest.equals('foo')); | 1191 unittest.expect(o.selfLink, unittest.equals('foo')); |
1059 unittest.expect(o.sizeGb, unittest.equals('foo')); | 1192 unittest.expect(o.sizeGb, unittest.equals('foo')); |
1060 unittest.expect(o.sourceImage, unittest.equals('foo')); | 1193 unittest.expect(o.sourceImage, unittest.equals('foo')); |
1061 checkCustomerEncryptionKey(o.sourceImageEncryptionKey); | 1194 checkCustomerEncryptionKey(o.sourceImageEncryptionKey); |
1062 unittest.expect(o.sourceImageId, unittest.equals('foo')); | 1195 unittest.expect(o.sourceImageId, unittest.equals('foo')); |
1063 unittest.expect(o.sourceSnapshot, unittest.equals('foo')); | 1196 unittest.expect(o.sourceSnapshot, unittest.equals('foo')); |
1064 checkCustomerEncryptionKey(o.sourceSnapshotEncryptionKey); | 1197 checkCustomerEncryptionKey(o.sourceSnapshotEncryptionKey); |
1065 unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); | 1198 unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); |
1066 unittest.expect(o.status, unittest.equals('foo')); | 1199 unittest.expect(o.status, unittest.equals('foo')); |
1067 unittest.expect(o.type, unittest.equals('foo')); | 1200 unittest.expect(o.type, unittest.equals('foo')); |
1068 checkUnnamed2231(o.users); | 1201 checkUnnamed2007(o.users); |
1069 unittest.expect(o.zone, unittest.equals('foo')); | 1202 unittest.expect(o.zone, unittest.equals('foo')); |
1070 } | 1203 } |
1071 buildCounterDisk--; | 1204 buildCounterDisk--; |
1072 } | 1205 } |
1073 | 1206 |
1074 buildUnnamed2232() { | 1207 buildUnnamed2008() { |
1075 var o = new core.Map<core.String, api.DisksScopedList>(); | 1208 var o = new core.Map<core.String, api.DisksScopedList>(); |
1076 o["x"] = buildDisksScopedList(); | 1209 o["x"] = buildDisksScopedList(); |
1077 o["y"] = buildDisksScopedList(); | 1210 o["y"] = buildDisksScopedList(); |
1078 return o; | 1211 return o; |
1079 } | 1212 } |
1080 | 1213 |
1081 checkUnnamed2232(core.Map<core.String, api.DisksScopedList> o) { | 1214 checkUnnamed2008(core.Map<core.String, api.DisksScopedList> o) { |
1082 unittest.expect(o, unittest.hasLength(2)); | 1215 unittest.expect(o, unittest.hasLength(2)); |
1083 checkDisksScopedList(o["x"]); | 1216 checkDisksScopedList(o["x"]); |
1084 checkDisksScopedList(o["y"]); | 1217 checkDisksScopedList(o["y"]); |
1085 } | 1218 } |
1086 | 1219 |
1087 core.int buildCounterDiskAggregatedList = 0; | 1220 core.int buildCounterDiskAggregatedList = 0; |
1088 buildDiskAggregatedList() { | 1221 buildDiskAggregatedList() { |
1089 var o = new api.DiskAggregatedList(); | 1222 var o = new api.DiskAggregatedList(); |
1090 buildCounterDiskAggregatedList++; | 1223 buildCounterDiskAggregatedList++; |
1091 if (buildCounterDiskAggregatedList < 3) { | 1224 if (buildCounterDiskAggregatedList < 3) { |
1092 o.id = "foo"; | 1225 o.id = "foo"; |
1093 o.items = buildUnnamed2232(); | 1226 o.items = buildUnnamed2008(); |
1094 o.kind = "foo"; | 1227 o.kind = "foo"; |
1095 o.nextPageToken = "foo"; | 1228 o.nextPageToken = "foo"; |
1096 o.selfLink = "foo"; | 1229 o.selfLink = "foo"; |
1097 } | 1230 } |
1098 buildCounterDiskAggregatedList--; | 1231 buildCounterDiskAggregatedList--; |
1099 return o; | 1232 return o; |
1100 } | 1233 } |
1101 | 1234 |
1102 checkDiskAggregatedList(api.DiskAggregatedList o) { | 1235 checkDiskAggregatedList(api.DiskAggregatedList o) { |
1103 buildCounterDiskAggregatedList++; | 1236 buildCounterDiskAggregatedList++; |
1104 if (buildCounterDiskAggregatedList < 3) { | 1237 if (buildCounterDiskAggregatedList < 3) { |
1105 unittest.expect(o.id, unittest.equals('foo')); | 1238 unittest.expect(o.id, unittest.equals('foo')); |
1106 checkUnnamed2232(o.items); | 1239 checkUnnamed2008(o.items); |
1107 unittest.expect(o.kind, unittest.equals('foo')); | 1240 unittest.expect(o.kind, unittest.equals('foo')); |
1108 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1241 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1109 unittest.expect(o.selfLink, unittest.equals('foo')); | 1242 unittest.expect(o.selfLink, unittest.equals('foo')); |
1110 } | 1243 } |
1111 buildCounterDiskAggregatedList--; | 1244 buildCounterDiskAggregatedList--; |
1112 } | 1245 } |
1113 | 1246 |
1114 buildUnnamed2233() { | 1247 buildUnnamed2009() { |
1115 var o = new core.List<api.Disk>(); | 1248 var o = new core.List<api.Disk>(); |
1116 o.add(buildDisk()); | 1249 o.add(buildDisk()); |
1117 o.add(buildDisk()); | 1250 o.add(buildDisk()); |
1118 return o; | 1251 return o; |
1119 } | 1252 } |
1120 | 1253 |
1121 checkUnnamed2233(core.List<api.Disk> o) { | 1254 checkUnnamed2009(core.List<api.Disk> o) { |
1122 unittest.expect(o, unittest.hasLength(2)); | 1255 unittest.expect(o, unittest.hasLength(2)); |
1123 checkDisk(o[0]); | 1256 checkDisk(o[0]); |
1124 checkDisk(o[1]); | 1257 checkDisk(o[1]); |
1125 } | 1258 } |
1126 | 1259 |
1127 core.int buildCounterDiskList = 0; | 1260 core.int buildCounterDiskList = 0; |
1128 buildDiskList() { | 1261 buildDiskList() { |
1129 var o = new api.DiskList(); | 1262 var o = new api.DiskList(); |
1130 buildCounterDiskList++; | 1263 buildCounterDiskList++; |
1131 if (buildCounterDiskList < 3) { | 1264 if (buildCounterDiskList < 3) { |
1132 o.id = "foo"; | 1265 o.id = "foo"; |
1133 o.items = buildUnnamed2233(); | 1266 o.items = buildUnnamed2009(); |
1134 o.kind = "foo"; | 1267 o.kind = "foo"; |
1135 o.nextPageToken = "foo"; | 1268 o.nextPageToken = "foo"; |
1136 o.selfLink = "foo"; | 1269 o.selfLink = "foo"; |
1137 } | 1270 } |
1138 buildCounterDiskList--; | 1271 buildCounterDiskList--; |
1139 return o; | 1272 return o; |
1140 } | 1273 } |
1141 | 1274 |
1142 checkDiskList(api.DiskList o) { | 1275 checkDiskList(api.DiskList o) { |
1143 buildCounterDiskList++; | 1276 buildCounterDiskList++; |
1144 if (buildCounterDiskList < 3) { | 1277 if (buildCounterDiskList < 3) { |
1145 unittest.expect(o.id, unittest.equals('foo')); | 1278 unittest.expect(o.id, unittest.equals('foo')); |
1146 checkUnnamed2233(o.items); | 1279 checkUnnamed2009(o.items); |
1147 unittest.expect(o.kind, unittest.equals('foo')); | 1280 unittest.expect(o.kind, unittest.equals('foo')); |
1148 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1281 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1149 unittest.expect(o.selfLink, unittest.equals('foo')); | 1282 unittest.expect(o.selfLink, unittest.equals('foo')); |
1150 } | 1283 } |
1151 buildCounterDiskList--; | 1284 buildCounterDiskList--; |
1152 } | 1285 } |
1153 | 1286 |
1154 core.int buildCounterDiskMoveRequest = 0; | 1287 core.int buildCounterDiskMoveRequest = 0; |
1155 buildDiskMoveRequest() { | 1288 buildDiskMoveRequest() { |
1156 var o = new api.DiskMoveRequest(); | 1289 var o = new api.DiskMoveRequest(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 unittest.expect(o.id, unittest.equals('foo')); | 1335 unittest.expect(o.id, unittest.equals('foo')); |
1203 unittest.expect(o.kind, unittest.equals('foo')); | 1336 unittest.expect(o.kind, unittest.equals('foo')); |
1204 unittest.expect(o.name, unittest.equals('foo')); | 1337 unittest.expect(o.name, unittest.equals('foo')); |
1205 unittest.expect(o.selfLink, unittest.equals('foo')); | 1338 unittest.expect(o.selfLink, unittest.equals('foo')); |
1206 unittest.expect(o.validDiskSize, unittest.equals('foo')); | 1339 unittest.expect(o.validDiskSize, unittest.equals('foo')); |
1207 unittest.expect(o.zone, unittest.equals('foo')); | 1340 unittest.expect(o.zone, unittest.equals('foo')); |
1208 } | 1341 } |
1209 buildCounterDiskType--; | 1342 buildCounterDiskType--; |
1210 } | 1343 } |
1211 | 1344 |
1212 buildUnnamed2234() { | 1345 buildUnnamed2010() { |
1213 var o = new core.Map<core.String, api.DiskTypesScopedList>(); | 1346 var o = new core.Map<core.String, api.DiskTypesScopedList>(); |
1214 o["x"] = buildDiskTypesScopedList(); | 1347 o["x"] = buildDiskTypesScopedList(); |
1215 o["y"] = buildDiskTypesScopedList(); | 1348 o["y"] = buildDiskTypesScopedList(); |
1216 return o; | 1349 return o; |
1217 } | 1350 } |
1218 | 1351 |
1219 checkUnnamed2234(core.Map<core.String, api.DiskTypesScopedList> o) { | 1352 checkUnnamed2010(core.Map<core.String, api.DiskTypesScopedList> o) { |
1220 unittest.expect(o, unittest.hasLength(2)); | 1353 unittest.expect(o, unittest.hasLength(2)); |
1221 checkDiskTypesScopedList(o["x"]); | 1354 checkDiskTypesScopedList(o["x"]); |
1222 checkDiskTypesScopedList(o["y"]); | 1355 checkDiskTypesScopedList(o["y"]); |
1223 } | 1356 } |
1224 | 1357 |
1225 core.int buildCounterDiskTypeAggregatedList = 0; | 1358 core.int buildCounterDiskTypeAggregatedList = 0; |
1226 buildDiskTypeAggregatedList() { | 1359 buildDiskTypeAggregatedList() { |
1227 var o = new api.DiskTypeAggregatedList(); | 1360 var o = new api.DiskTypeAggregatedList(); |
1228 buildCounterDiskTypeAggregatedList++; | 1361 buildCounterDiskTypeAggregatedList++; |
1229 if (buildCounterDiskTypeAggregatedList < 3) { | 1362 if (buildCounterDiskTypeAggregatedList < 3) { |
1230 o.id = "foo"; | 1363 o.id = "foo"; |
1231 o.items = buildUnnamed2234(); | 1364 o.items = buildUnnamed2010(); |
1232 o.kind = "foo"; | 1365 o.kind = "foo"; |
1233 o.nextPageToken = "foo"; | 1366 o.nextPageToken = "foo"; |
1234 o.selfLink = "foo"; | 1367 o.selfLink = "foo"; |
1235 } | 1368 } |
1236 buildCounterDiskTypeAggregatedList--; | 1369 buildCounterDiskTypeAggregatedList--; |
1237 return o; | 1370 return o; |
1238 } | 1371 } |
1239 | 1372 |
1240 checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { | 1373 checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { |
1241 buildCounterDiskTypeAggregatedList++; | 1374 buildCounterDiskTypeAggregatedList++; |
1242 if (buildCounterDiskTypeAggregatedList < 3) { | 1375 if (buildCounterDiskTypeAggregatedList < 3) { |
1243 unittest.expect(o.id, unittest.equals('foo')); | 1376 unittest.expect(o.id, unittest.equals('foo')); |
1244 checkUnnamed2234(o.items); | 1377 checkUnnamed2010(o.items); |
1245 unittest.expect(o.kind, unittest.equals('foo')); | 1378 unittest.expect(o.kind, unittest.equals('foo')); |
1246 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1379 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1247 unittest.expect(o.selfLink, unittest.equals('foo')); | 1380 unittest.expect(o.selfLink, unittest.equals('foo')); |
1248 } | 1381 } |
1249 buildCounterDiskTypeAggregatedList--; | 1382 buildCounterDiskTypeAggregatedList--; |
1250 } | 1383 } |
1251 | 1384 |
1252 buildUnnamed2235() { | 1385 buildUnnamed2011() { |
1253 var o = new core.List<api.DiskType>(); | 1386 var o = new core.List<api.DiskType>(); |
1254 o.add(buildDiskType()); | 1387 o.add(buildDiskType()); |
1255 o.add(buildDiskType()); | 1388 o.add(buildDiskType()); |
1256 return o; | 1389 return o; |
1257 } | 1390 } |
1258 | 1391 |
1259 checkUnnamed2235(core.List<api.DiskType> o) { | 1392 checkUnnamed2011(core.List<api.DiskType> o) { |
1260 unittest.expect(o, unittest.hasLength(2)); | 1393 unittest.expect(o, unittest.hasLength(2)); |
1261 checkDiskType(o[0]); | 1394 checkDiskType(o[0]); |
1262 checkDiskType(o[1]); | 1395 checkDiskType(o[1]); |
1263 } | 1396 } |
1264 | 1397 |
1265 core.int buildCounterDiskTypeList = 0; | 1398 core.int buildCounterDiskTypeList = 0; |
1266 buildDiskTypeList() { | 1399 buildDiskTypeList() { |
1267 var o = new api.DiskTypeList(); | 1400 var o = new api.DiskTypeList(); |
1268 buildCounterDiskTypeList++; | 1401 buildCounterDiskTypeList++; |
1269 if (buildCounterDiskTypeList < 3) { | 1402 if (buildCounterDiskTypeList < 3) { |
1270 o.id = "foo"; | 1403 o.id = "foo"; |
1271 o.items = buildUnnamed2235(); | 1404 o.items = buildUnnamed2011(); |
1272 o.kind = "foo"; | 1405 o.kind = "foo"; |
1273 o.nextPageToken = "foo"; | 1406 o.nextPageToken = "foo"; |
1274 o.selfLink = "foo"; | 1407 o.selfLink = "foo"; |
1275 } | 1408 } |
1276 buildCounterDiskTypeList--; | 1409 buildCounterDiskTypeList--; |
1277 return o; | 1410 return o; |
1278 } | 1411 } |
1279 | 1412 |
1280 checkDiskTypeList(api.DiskTypeList o) { | 1413 checkDiskTypeList(api.DiskTypeList o) { |
1281 buildCounterDiskTypeList++; | 1414 buildCounterDiskTypeList++; |
1282 if (buildCounterDiskTypeList < 3) { | 1415 if (buildCounterDiskTypeList < 3) { |
1283 unittest.expect(o.id, unittest.equals('foo')); | 1416 unittest.expect(o.id, unittest.equals('foo')); |
1284 checkUnnamed2235(o.items); | 1417 checkUnnamed2011(o.items); |
1285 unittest.expect(o.kind, unittest.equals('foo')); | 1418 unittest.expect(o.kind, unittest.equals('foo')); |
1286 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1419 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1287 unittest.expect(o.selfLink, unittest.equals('foo')); | 1420 unittest.expect(o.selfLink, unittest.equals('foo')); |
1288 } | 1421 } |
1289 buildCounterDiskTypeList--; | 1422 buildCounterDiskTypeList--; |
1290 } | 1423 } |
1291 | 1424 |
1292 buildUnnamed2236() { | 1425 buildUnnamed2012() { |
1293 var o = new core.List<api.DiskType>(); | 1426 var o = new core.List<api.DiskType>(); |
1294 o.add(buildDiskType()); | 1427 o.add(buildDiskType()); |
1295 o.add(buildDiskType()); | 1428 o.add(buildDiskType()); |
1296 return o; | 1429 return o; |
1297 } | 1430 } |
1298 | 1431 |
1299 checkUnnamed2236(core.List<api.DiskType> o) { | 1432 checkUnnamed2012(core.List<api.DiskType> o) { |
1300 unittest.expect(o, unittest.hasLength(2)); | 1433 unittest.expect(o, unittest.hasLength(2)); |
1301 checkDiskType(o[0]); | 1434 checkDiskType(o[0]); |
1302 checkDiskType(o[1]); | 1435 checkDiskType(o[1]); |
1303 } | 1436 } |
1304 | 1437 |
1305 core.int buildCounterDiskTypesScopedListWarningData = 0; | 1438 core.int buildCounterDiskTypesScopedListWarningData = 0; |
1306 buildDiskTypesScopedListWarningData() { | 1439 buildDiskTypesScopedListWarningData() { |
1307 var o = new api.DiskTypesScopedListWarningData(); | 1440 var o = new api.DiskTypesScopedListWarningData(); |
1308 buildCounterDiskTypesScopedListWarningData++; | 1441 buildCounterDiskTypesScopedListWarningData++; |
1309 if (buildCounterDiskTypesScopedListWarningData < 3) { | 1442 if (buildCounterDiskTypesScopedListWarningData < 3) { |
1310 o.key = "foo"; | 1443 o.key = "foo"; |
1311 o.value = "foo"; | 1444 o.value = "foo"; |
1312 } | 1445 } |
1313 buildCounterDiskTypesScopedListWarningData--; | 1446 buildCounterDiskTypesScopedListWarningData--; |
1314 return o; | 1447 return o; |
1315 } | 1448 } |
1316 | 1449 |
1317 checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { | 1450 checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { |
1318 buildCounterDiskTypesScopedListWarningData++; | 1451 buildCounterDiskTypesScopedListWarningData++; |
1319 if (buildCounterDiskTypesScopedListWarningData < 3) { | 1452 if (buildCounterDiskTypesScopedListWarningData < 3) { |
1320 unittest.expect(o.key, unittest.equals('foo')); | 1453 unittest.expect(o.key, unittest.equals('foo')); |
1321 unittest.expect(o.value, unittest.equals('foo')); | 1454 unittest.expect(o.value, unittest.equals('foo')); |
1322 } | 1455 } |
1323 buildCounterDiskTypesScopedListWarningData--; | 1456 buildCounterDiskTypesScopedListWarningData--; |
1324 } | 1457 } |
1325 | 1458 |
1326 buildUnnamed2237() { | 1459 buildUnnamed2013() { |
1327 var o = new core.List<api.DiskTypesScopedListWarningData>(); | 1460 var o = new core.List<api.DiskTypesScopedListWarningData>(); |
1328 o.add(buildDiskTypesScopedListWarningData()); | 1461 o.add(buildDiskTypesScopedListWarningData()); |
1329 o.add(buildDiskTypesScopedListWarningData()); | 1462 o.add(buildDiskTypesScopedListWarningData()); |
1330 return o; | 1463 return o; |
1331 } | 1464 } |
1332 | 1465 |
1333 checkUnnamed2237(core.List<api.DiskTypesScopedListWarningData> o) { | 1466 checkUnnamed2013(core.List<api.DiskTypesScopedListWarningData> o) { |
1334 unittest.expect(o, unittest.hasLength(2)); | 1467 unittest.expect(o, unittest.hasLength(2)); |
1335 checkDiskTypesScopedListWarningData(o[0]); | 1468 checkDiskTypesScopedListWarningData(o[0]); |
1336 checkDiskTypesScopedListWarningData(o[1]); | 1469 checkDiskTypesScopedListWarningData(o[1]); |
1337 } | 1470 } |
1338 | 1471 |
1339 core.int buildCounterDiskTypesScopedListWarning = 0; | 1472 core.int buildCounterDiskTypesScopedListWarning = 0; |
1340 buildDiskTypesScopedListWarning() { | 1473 buildDiskTypesScopedListWarning() { |
1341 var o = new api.DiskTypesScopedListWarning(); | 1474 var o = new api.DiskTypesScopedListWarning(); |
1342 buildCounterDiskTypesScopedListWarning++; | 1475 buildCounterDiskTypesScopedListWarning++; |
1343 if (buildCounterDiskTypesScopedListWarning < 3) { | 1476 if (buildCounterDiskTypesScopedListWarning < 3) { |
1344 o.code = "foo"; | 1477 o.code = "foo"; |
1345 o.data = buildUnnamed2237(); | 1478 o.data = buildUnnamed2013(); |
1346 o.message = "foo"; | 1479 o.message = "foo"; |
1347 } | 1480 } |
1348 buildCounterDiskTypesScopedListWarning--; | 1481 buildCounterDiskTypesScopedListWarning--; |
1349 return o; | 1482 return o; |
1350 } | 1483 } |
1351 | 1484 |
1352 checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { | 1485 checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { |
1353 buildCounterDiskTypesScopedListWarning++; | 1486 buildCounterDiskTypesScopedListWarning++; |
1354 if (buildCounterDiskTypesScopedListWarning < 3) { | 1487 if (buildCounterDiskTypesScopedListWarning < 3) { |
1355 unittest.expect(o.code, unittest.equals('foo')); | 1488 unittest.expect(o.code, unittest.equals('foo')); |
1356 checkUnnamed2237(o.data); | 1489 checkUnnamed2013(o.data); |
1357 unittest.expect(o.message, unittest.equals('foo')); | 1490 unittest.expect(o.message, unittest.equals('foo')); |
1358 } | 1491 } |
1359 buildCounterDiskTypesScopedListWarning--; | 1492 buildCounterDiskTypesScopedListWarning--; |
1360 } | 1493 } |
1361 | 1494 |
1362 core.int buildCounterDiskTypesScopedList = 0; | 1495 core.int buildCounterDiskTypesScopedList = 0; |
1363 buildDiskTypesScopedList() { | 1496 buildDiskTypesScopedList() { |
1364 var o = new api.DiskTypesScopedList(); | 1497 var o = new api.DiskTypesScopedList(); |
1365 buildCounterDiskTypesScopedList++; | 1498 buildCounterDiskTypesScopedList++; |
1366 if (buildCounterDiskTypesScopedList < 3) { | 1499 if (buildCounterDiskTypesScopedList < 3) { |
1367 o.diskTypes = buildUnnamed2236(); | 1500 o.diskTypes = buildUnnamed2012(); |
1368 o.warning = buildDiskTypesScopedListWarning(); | 1501 o.warning = buildDiskTypesScopedListWarning(); |
1369 } | 1502 } |
1370 buildCounterDiskTypesScopedList--; | 1503 buildCounterDiskTypesScopedList--; |
1371 return o; | 1504 return o; |
1372 } | 1505 } |
1373 | 1506 |
1374 checkDiskTypesScopedList(api.DiskTypesScopedList o) { | 1507 checkDiskTypesScopedList(api.DiskTypesScopedList o) { |
1375 buildCounterDiskTypesScopedList++; | 1508 buildCounterDiskTypesScopedList++; |
1376 if (buildCounterDiskTypesScopedList < 3) { | 1509 if (buildCounterDiskTypesScopedList < 3) { |
1377 checkUnnamed2236(o.diskTypes); | 1510 checkUnnamed2012(o.diskTypes); |
1378 checkDiskTypesScopedListWarning(o.warning); | 1511 checkDiskTypesScopedListWarning(o.warning); |
1379 } | 1512 } |
1380 buildCounterDiskTypesScopedList--; | 1513 buildCounterDiskTypesScopedList--; |
1381 } | 1514 } |
1382 | 1515 |
1383 core.int buildCounterDisksResizeRequest = 0; | 1516 core.int buildCounterDisksResizeRequest = 0; |
1384 buildDisksResizeRequest() { | 1517 buildDisksResizeRequest() { |
1385 var o = new api.DisksResizeRequest(); | 1518 var o = new api.DisksResizeRequest(); |
1386 buildCounterDisksResizeRequest++; | 1519 buildCounterDisksResizeRequest++; |
1387 if (buildCounterDisksResizeRequest < 3) { | 1520 if (buildCounterDisksResizeRequest < 3) { |
1388 o.sizeGb = "foo"; | 1521 o.sizeGb = "foo"; |
1389 } | 1522 } |
1390 buildCounterDisksResizeRequest--; | 1523 buildCounterDisksResizeRequest--; |
1391 return o; | 1524 return o; |
1392 } | 1525 } |
1393 | 1526 |
1394 checkDisksResizeRequest(api.DisksResizeRequest o) { | 1527 checkDisksResizeRequest(api.DisksResizeRequest o) { |
1395 buildCounterDisksResizeRequest++; | 1528 buildCounterDisksResizeRequest++; |
1396 if (buildCounterDisksResizeRequest < 3) { | 1529 if (buildCounterDisksResizeRequest < 3) { |
1397 unittest.expect(o.sizeGb, unittest.equals('foo')); | 1530 unittest.expect(o.sizeGb, unittest.equals('foo')); |
1398 } | 1531 } |
1399 buildCounterDisksResizeRequest--; | 1532 buildCounterDisksResizeRequest--; |
1400 } | 1533 } |
1401 | 1534 |
1402 buildUnnamed2238() { | 1535 buildUnnamed2014() { |
1403 var o = new core.List<api.Disk>(); | 1536 var o = new core.List<api.Disk>(); |
1404 o.add(buildDisk()); | 1537 o.add(buildDisk()); |
1405 o.add(buildDisk()); | 1538 o.add(buildDisk()); |
1406 return o; | 1539 return o; |
1407 } | 1540 } |
1408 | 1541 |
1409 checkUnnamed2238(core.List<api.Disk> o) { | 1542 checkUnnamed2014(core.List<api.Disk> o) { |
1410 unittest.expect(o, unittest.hasLength(2)); | 1543 unittest.expect(o, unittest.hasLength(2)); |
1411 checkDisk(o[0]); | 1544 checkDisk(o[0]); |
1412 checkDisk(o[1]); | 1545 checkDisk(o[1]); |
1413 } | 1546 } |
1414 | 1547 |
1415 core.int buildCounterDisksScopedListWarningData = 0; | 1548 core.int buildCounterDisksScopedListWarningData = 0; |
1416 buildDisksScopedListWarningData() { | 1549 buildDisksScopedListWarningData() { |
1417 var o = new api.DisksScopedListWarningData(); | 1550 var o = new api.DisksScopedListWarningData(); |
1418 buildCounterDisksScopedListWarningData++; | 1551 buildCounterDisksScopedListWarningData++; |
1419 if (buildCounterDisksScopedListWarningData < 3) { | 1552 if (buildCounterDisksScopedListWarningData < 3) { |
1420 o.key = "foo"; | 1553 o.key = "foo"; |
1421 o.value = "foo"; | 1554 o.value = "foo"; |
1422 } | 1555 } |
1423 buildCounterDisksScopedListWarningData--; | 1556 buildCounterDisksScopedListWarningData--; |
1424 return o; | 1557 return o; |
1425 } | 1558 } |
1426 | 1559 |
1427 checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { | 1560 checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { |
1428 buildCounterDisksScopedListWarningData++; | 1561 buildCounterDisksScopedListWarningData++; |
1429 if (buildCounterDisksScopedListWarningData < 3) { | 1562 if (buildCounterDisksScopedListWarningData < 3) { |
1430 unittest.expect(o.key, unittest.equals('foo')); | 1563 unittest.expect(o.key, unittest.equals('foo')); |
1431 unittest.expect(o.value, unittest.equals('foo')); | 1564 unittest.expect(o.value, unittest.equals('foo')); |
1432 } | 1565 } |
1433 buildCounterDisksScopedListWarningData--; | 1566 buildCounterDisksScopedListWarningData--; |
1434 } | 1567 } |
1435 | 1568 |
1436 buildUnnamed2239() { | 1569 buildUnnamed2015() { |
1437 var o = new core.List<api.DisksScopedListWarningData>(); | 1570 var o = new core.List<api.DisksScopedListWarningData>(); |
1438 o.add(buildDisksScopedListWarningData()); | 1571 o.add(buildDisksScopedListWarningData()); |
1439 o.add(buildDisksScopedListWarningData()); | 1572 o.add(buildDisksScopedListWarningData()); |
1440 return o; | 1573 return o; |
1441 } | 1574 } |
1442 | 1575 |
1443 checkUnnamed2239(core.List<api.DisksScopedListWarningData> o) { | 1576 checkUnnamed2015(core.List<api.DisksScopedListWarningData> o) { |
1444 unittest.expect(o, unittest.hasLength(2)); | 1577 unittest.expect(o, unittest.hasLength(2)); |
1445 checkDisksScopedListWarningData(o[0]); | 1578 checkDisksScopedListWarningData(o[0]); |
1446 checkDisksScopedListWarningData(o[1]); | 1579 checkDisksScopedListWarningData(o[1]); |
1447 } | 1580 } |
1448 | 1581 |
1449 core.int buildCounterDisksScopedListWarning = 0; | 1582 core.int buildCounterDisksScopedListWarning = 0; |
1450 buildDisksScopedListWarning() { | 1583 buildDisksScopedListWarning() { |
1451 var o = new api.DisksScopedListWarning(); | 1584 var o = new api.DisksScopedListWarning(); |
1452 buildCounterDisksScopedListWarning++; | 1585 buildCounterDisksScopedListWarning++; |
1453 if (buildCounterDisksScopedListWarning < 3) { | 1586 if (buildCounterDisksScopedListWarning < 3) { |
1454 o.code = "foo"; | 1587 o.code = "foo"; |
1455 o.data = buildUnnamed2239(); | 1588 o.data = buildUnnamed2015(); |
1456 o.message = "foo"; | 1589 o.message = "foo"; |
1457 } | 1590 } |
1458 buildCounterDisksScopedListWarning--; | 1591 buildCounterDisksScopedListWarning--; |
1459 return o; | 1592 return o; |
1460 } | 1593 } |
1461 | 1594 |
1462 checkDisksScopedListWarning(api.DisksScopedListWarning o) { | 1595 checkDisksScopedListWarning(api.DisksScopedListWarning o) { |
1463 buildCounterDisksScopedListWarning++; | 1596 buildCounterDisksScopedListWarning++; |
1464 if (buildCounterDisksScopedListWarning < 3) { | 1597 if (buildCounterDisksScopedListWarning < 3) { |
1465 unittest.expect(o.code, unittest.equals('foo')); | 1598 unittest.expect(o.code, unittest.equals('foo')); |
1466 checkUnnamed2239(o.data); | 1599 checkUnnamed2015(o.data); |
1467 unittest.expect(o.message, unittest.equals('foo')); | 1600 unittest.expect(o.message, unittest.equals('foo')); |
1468 } | 1601 } |
1469 buildCounterDisksScopedListWarning--; | 1602 buildCounterDisksScopedListWarning--; |
1470 } | 1603 } |
1471 | 1604 |
1472 core.int buildCounterDisksScopedList = 0; | 1605 core.int buildCounterDisksScopedList = 0; |
1473 buildDisksScopedList() { | 1606 buildDisksScopedList() { |
1474 var o = new api.DisksScopedList(); | 1607 var o = new api.DisksScopedList(); |
1475 buildCounterDisksScopedList++; | 1608 buildCounterDisksScopedList++; |
1476 if (buildCounterDisksScopedList < 3) { | 1609 if (buildCounterDisksScopedList < 3) { |
1477 o.disks = buildUnnamed2238(); | 1610 o.disks = buildUnnamed2014(); |
1478 o.warning = buildDisksScopedListWarning(); | 1611 o.warning = buildDisksScopedListWarning(); |
1479 } | 1612 } |
1480 buildCounterDisksScopedList--; | 1613 buildCounterDisksScopedList--; |
1481 return o; | 1614 return o; |
1482 } | 1615 } |
1483 | 1616 |
1484 checkDisksScopedList(api.DisksScopedList o) { | 1617 checkDisksScopedList(api.DisksScopedList o) { |
1485 buildCounterDisksScopedList++; | 1618 buildCounterDisksScopedList++; |
1486 if (buildCounterDisksScopedList < 3) { | 1619 if (buildCounterDisksScopedList < 3) { |
1487 checkUnnamed2238(o.disks); | 1620 checkUnnamed2014(o.disks); |
1488 checkDisksScopedListWarning(o.warning); | 1621 checkDisksScopedListWarning(o.warning); |
1489 } | 1622 } |
1490 buildCounterDisksScopedList--; | 1623 buildCounterDisksScopedList--; |
1491 } | 1624 } |
1492 | 1625 |
1493 buildUnnamed2240() { | 1626 buildUnnamed2016() { |
1494 var o = new core.List<core.String>(); | 1627 var o = new core.List<core.String>(); |
1495 o.add("foo"); | 1628 o.add("foo"); |
1496 o.add("foo"); | 1629 o.add("foo"); |
1497 return o; | 1630 return o; |
1498 } | 1631 } |
1499 | 1632 |
1500 checkUnnamed2240(core.List<core.String> o) { | 1633 checkUnnamed2016(core.List<core.String> o) { |
1501 unittest.expect(o, unittest.hasLength(2)); | 1634 unittest.expect(o, unittest.hasLength(2)); |
1502 unittest.expect(o[0], unittest.equals('foo')); | 1635 unittest.expect(o[0], unittest.equals('foo')); |
1503 unittest.expect(o[1], unittest.equals('foo')); | 1636 unittest.expect(o[1], unittest.equals('foo')); |
1504 } | 1637 } |
1505 | 1638 |
1506 core.int buildCounterFirewallAllowed = 0; | 1639 core.int buildCounterFirewallAllowed = 0; |
1507 buildFirewallAllowed() { | 1640 buildFirewallAllowed() { |
1508 var o = new api.FirewallAllowed(); | 1641 var o = new api.FirewallAllowed(); |
1509 buildCounterFirewallAllowed++; | 1642 buildCounterFirewallAllowed++; |
1510 if (buildCounterFirewallAllowed < 3) { | 1643 if (buildCounterFirewallAllowed < 3) { |
1511 o.IPProtocol = "foo"; | 1644 o.IPProtocol = "foo"; |
1512 o.ports = buildUnnamed2240(); | 1645 o.ports = buildUnnamed2016(); |
1513 } | 1646 } |
1514 buildCounterFirewallAllowed--; | 1647 buildCounterFirewallAllowed--; |
1515 return o; | 1648 return o; |
1516 } | 1649 } |
1517 | 1650 |
1518 checkFirewallAllowed(api.FirewallAllowed o) { | 1651 checkFirewallAllowed(api.FirewallAllowed o) { |
1519 buildCounterFirewallAllowed++; | 1652 buildCounterFirewallAllowed++; |
1520 if (buildCounterFirewallAllowed < 3) { | 1653 if (buildCounterFirewallAllowed < 3) { |
1521 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 1654 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
1522 checkUnnamed2240(o.ports); | 1655 checkUnnamed2016(o.ports); |
1523 } | 1656 } |
1524 buildCounterFirewallAllowed--; | 1657 buildCounterFirewallAllowed--; |
1525 } | 1658 } |
1526 | 1659 |
1527 buildUnnamed2241() { | 1660 buildUnnamed2017() { |
1528 var o = new core.List<api.FirewallAllowed>(); | 1661 var o = new core.List<api.FirewallAllowed>(); |
1529 o.add(buildFirewallAllowed()); | 1662 o.add(buildFirewallAllowed()); |
1530 o.add(buildFirewallAllowed()); | 1663 o.add(buildFirewallAllowed()); |
1531 return o; | 1664 return o; |
1532 } | 1665 } |
1533 | 1666 |
1534 checkUnnamed2241(core.List<api.FirewallAllowed> o) { | 1667 checkUnnamed2017(core.List<api.FirewallAllowed> o) { |
1535 unittest.expect(o, unittest.hasLength(2)); | 1668 unittest.expect(o, unittest.hasLength(2)); |
1536 checkFirewallAllowed(o[0]); | 1669 checkFirewallAllowed(o[0]); |
1537 checkFirewallAllowed(o[1]); | 1670 checkFirewallAllowed(o[1]); |
1538 } | 1671 } |
1539 | 1672 |
1540 buildUnnamed2242() { | 1673 buildUnnamed2018() { |
1541 var o = new core.List<core.String>(); | 1674 var o = new core.List<core.String>(); |
1542 o.add("foo"); | 1675 o.add("foo"); |
1543 o.add("foo"); | 1676 o.add("foo"); |
1544 return o; | 1677 return o; |
1545 } | 1678 } |
1546 | 1679 |
1547 checkUnnamed2242(core.List<core.String> o) { | 1680 checkUnnamed2018(core.List<core.String> o) { |
1548 unittest.expect(o, unittest.hasLength(2)); | 1681 unittest.expect(o, unittest.hasLength(2)); |
1549 unittest.expect(o[0], unittest.equals('foo')); | 1682 unittest.expect(o[0], unittest.equals('foo')); |
1550 unittest.expect(o[1], unittest.equals('foo')); | 1683 unittest.expect(o[1], unittest.equals('foo')); |
1551 } | 1684 } |
1552 | 1685 |
1553 buildUnnamed2243() { | 1686 buildUnnamed2019() { |
1554 var o = new core.List<core.String>(); | 1687 var o = new core.List<core.String>(); |
1555 o.add("foo"); | 1688 o.add("foo"); |
1556 o.add("foo"); | 1689 o.add("foo"); |
1557 return o; | 1690 return o; |
1558 } | 1691 } |
1559 | 1692 |
1560 checkUnnamed2243(core.List<core.String> o) { | 1693 checkUnnamed2019(core.List<core.String> o) { |
1561 unittest.expect(o, unittest.hasLength(2)); | 1694 unittest.expect(o, unittest.hasLength(2)); |
1562 unittest.expect(o[0], unittest.equals('foo')); | 1695 unittest.expect(o[0], unittest.equals('foo')); |
1563 unittest.expect(o[1], unittest.equals('foo')); | 1696 unittest.expect(o[1], unittest.equals('foo')); |
1564 } | 1697 } |
1565 | 1698 |
1566 buildUnnamed2244() { | 1699 buildUnnamed2020() { |
1567 var o = new core.List<core.String>(); | 1700 var o = new core.List<core.String>(); |
1568 o.add("foo"); | 1701 o.add("foo"); |
1569 o.add("foo"); | 1702 o.add("foo"); |
1570 return o; | 1703 return o; |
1571 } | 1704 } |
1572 | 1705 |
1573 checkUnnamed2244(core.List<core.String> o) { | 1706 checkUnnamed2020(core.List<core.String> o) { |
1574 unittest.expect(o, unittest.hasLength(2)); | 1707 unittest.expect(o, unittest.hasLength(2)); |
1575 unittest.expect(o[0], unittest.equals('foo')); | 1708 unittest.expect(o[0], unittest.equals('foo')); |
1576 unittest.expect(o[1], unittest.equals('foo')); | 1709 unittest.expect(o[1], unittest.equals('foo')); |
1577 } | 1710 } |
1578 | 1711 |
1579 core.int buildCounterFirewall = 0; | 1712 core.int buildCounterFirewall = 0; |
1580 buildFirewall() { | 1713 buildFirewall() { |
1581 var o = new api.Firewall(); | 1714 var o = new api.Firewall(); |
1582 buildCounterFirewall++; | 1715 buildCounterFirewall++; |
1583 if (buildCounterFirewall < 3) { | 1716 if (buildCounterFirewall < 3) { |
1584 o.allowed = buildUnnamed2241(); | 1717 o.allowed = buildUnnamed2017(); |
1585 o.creationTimestamp = "foo"; | 1718 o.creationTimestamp = "foo"; |
1586 o.description = "foo"; | 1719 o.description = "foo"; |
1587 o.id = "foo"; | 1720 o.id = "foo"; |
1588 o.kind = "foo"; | 1721 o.kind = "foo"; |
1589 o.name = "foo"; | 1722 o.name = "foo"; |
1590 o.network = "foo"; | 1723 o.network = "foo"; |
1591 o.selfLink = "foo"; | 1724 o.selfLink = "foo"; |
1592 o.sourceRanges = buildUnnamed2242(); | 1725 o.sourceRanges = buildUnnamed2018(); |
1593 o.sourceTags = buildUnnamed2243(); | 1726 o.sourceTags = buildUnnamed2019(); |
1594 o.targetTags = buildUnnamed2244(); | 1727 o.targetTags = buildUnnamed2020(); |
1595 } | 1728 } |
1596 buildCounterFirewall--; | 1729 buildCounterFirewall--; |
1597 return o; | 1730 return o; |
1598 } | 1731 } |
1599 | 1732 |
1600 checkFirewall(api.Firewall o) { | 1733 checkFirewall(api.Firewall o) { |
1601 buildCounterFirewall++; | 1734 buildCounterFirewall++; |
1602 if (buildCounterFirewall < 3) { | 1735 if (buildCounterFirewall < 3) { |
1603 checkUnnamed2241(o.allowed); | 1736 checkUnnamed2017(o.allowed); |
1604 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1737 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
1605 unittest.expect(o.description, unittest.equals('foo')); | 1738 unittest.expect(o.description, unittest.equals('foo')); |
1606 unittest.expect(o.id, unittest.equals('foo')); | 1739 unittest.expect(o.id, unittest.equals('foo')); |
1607 unittest.expect(o.kind, unittest.equals('foo')); | 1740 unittest.expect(o.kind, unittest.equals('foo')); |
1608 unittest.expect(o.name, unittest.equals('foo')); | 1741 unittest.expect(o.name, unittest.equals('foo')); |
1609 unittest.expect(o.network, unittest.equals('foo')); | 1742 unittest.expect(o.network, unittest.equals('foo')); |
1610 unittest.expect(o.selfLink, unittest.equals('foo')); | 1743 unittest.expect(o.selfLink, unittest.equals('foo')); |
1611 checkUnnamed2242(o.sourceRanges); | 1744 checkUnnamed2018(o.sourceRanges); |
1612 checkUnnamed2243(o.sourceTags); | 1745 checkUnnamed2019(o.sourceTags); |
1613 checkUnnamed2244(o.targetTags); | 1746 checkUnnamed2020(o.targetTags); |
1614 } | 1747 } |
1615 buildCounterFirewall--; | 1748 buildCounterFirewall--; |
1616 } | 1749 } |
1617 | 1750 |
1618 buildUnnamed2245() { | 1751 buildUnnamed2021() { |
1619 var o = new core.List<api.Firewall>(); | 1752 var o = new core.List<api.Firewall>(); |
1620 o.add(buildFirewall()); | 1753 o.add(buildFirewall()); |
1621 o.add(buildFirewall()); | 1754 o.add(buildFirewall()); |
1622 return o; | 1755 return o; |
1623 } | 1756 } |
1624 | 1757 |
1625 checkUnnamed2245(core.List<api.Firewall> o) { | 1758 checkUnnamed2021(core.List<api.Firewall> o) { |
1626 unittest.expect(o, unittest.hasLength(2)); | 1759 unittest.expect(o, unittest.hasLength(2)); |
1627 checkFirewall(o[0]); | 1760 checkFirewall(o[0]); |
1628 checkFirewall(o[1]); | 1761 checkFirewall(o[1]); |
1629 } | 1762 } |
1630 | 1763 |
1631 core.int buildCounterFirewallList = 0; | 1764 core.int buildCounterFirewallList = 0; |
1632 buildFirewallList() { | 1765 buildFirewallList() { |
1633 var o = new api.FirewallList(); | 1766 var o = new api.FirewallList(); |
1634 buildCounterFirewallList++; | 1767 buildCounterFirewallList++; |
1635 if (buildCounterFirewallList < 3) { | 1768 if (buildCounterFirewallList < 3) { |
1636 o.id = "foo"; | 1769 o.id = "foo"; |
1637 o.items = buildUnnamed2245(); | 1770 o.items = buildUnnamed2021(); |
1638 o.kind = "foo"; | 1771 o.kind = "foo"; |
1639 o.nextPageToken = "foo"; | 1772 o.nextPageToken = "foo"; |
1640 o.selfLink = "foo"; | 1773 o.selfLink = "foo"; |
1641 } | 1774 } |
1642 buildCounterFirewallList--; | 1775 buildCounterFirewallList--; |
1643 return o; | 1776 return o; |
1644 } | 1777 } |
1645 | 1778 |
1646 checkFirewallList(api.FirewallList o) { | 1779 checkFirewallList(api.FirewallList o) { |
1647 buildCounterFirewallList++; | 1780 buildCounterFirewallList++; |
1648 if (buildCounterFirewallList < 3) { | 1781 if (buildCounterFirewallList < 3) { |
1649 unittest.expect(o.id, unittest.equals('foo')); | 1782 unittest.expect(o.id, unittest.equals('foo')); |
1650 checkUnnamed2245(o.items); | 1783 checkUnnamed2021(o.items); |
1651 unittest.expect(o.kind, unittest.equals('foo')); | 1784 unittest.expect(o.kind, unittest.equals('foo')); |
1652 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1785 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1653 unittest.expect(o.selfLink, unittest.equals('foo')); | 1786 unittest.expect(o.selfLink, unittest.equals('foo')); |
1654 } | 1787 } |
1655 buildCounterFirewallList--; | 1788 buildCounterFirewallList--; |
1656 } | 1789 } |
1657 | 1790 |
| 1791 buildUnnamed2022() { |
| 1792 var o = new core.List<core.String>(); |
| 1793 o.add("foo"); |
| 1794 o.add("foo"); |
| 1795 return o; |
| 1796 } |
| 1797 |
| 1798 checkUnnamed2022(core.List<core.String> o) { |
| 1799 unittest.expect(o, unittest.hasLength(2)); |
| 1800 unittest.expect(o[0], unittest.equals('foo')); |
| 1801 unittest.expect(o[1], unittest.equals('foo')); |
| 1802 } |
| 1803 |
1658 core.int buildCounterForwardingRule = 0; | 1804 core.int buildCounterForwardingRule = 0; |
1659 buildForwardingRule() { | 1805 buildForwardingRule() { |
1660 var o = new api.ForwardingRule(); | 1806 var o = new api.ForwardingRule(); |
1661 buildCounterForwardingRule++; | 1807 buildCounterForwardingRule++; |
1662 if (buildCounterForwardingRule < 3) { | 1808 if (buildCounterForwardingRule < 3) { |
1663 o.IPAddress = "foo"; | 1809 o.IPAddress = "foo"; |
1664 o.IPProtocol = "foo"; | 1810 o.IPProtocol = "foo"; |
| 1811 o.backendService = "foo"; |
1665 o.creationTimestamp = "foo"; | 1812 o.creationTimestamp = "foo"; |
1666 o.description = "foo"; | 1813 o.description = "foo"; |
1667 o.id = "foo"; | 1814 o.id = "foo"; |
1668 o.kind = "foo"; | 1815 o.kind = "foo"; |
| 1816 o.loadBalancingScheme = "foo"; |
1669 o.name = "foo"; | 1817 o.name = "foo"; |
| 1818 o.network = "foo"; |
1670 o.portRange = "foo"; | 1819 o.portRange = "foo"; |
| 1820 o.ports = buildUnnamed2022(); |
1671 o.region = "foo"; | 1821 o.region = "foo"; |
1672 o.selfLink = "foo"; | 1822 o.selfLink = "foo"; |
| 1823 o.subnetwork = "foo"; |
1673 o.target = "foo"; | 1824 o.target = "foo"; |
1674 } | 1825 } |
1675 buildCounterForwardingRule--; | 1826 buildCounterForwardingRule--; |
1676 return o; | 1827 return o; |
1677 } | 1828 } |
1678 | 1829 |
1679 checkForwardingRule(api.ForwardingRule o) { | 1830 checkForwardingRule(api.ForwardingRule o) { |
1680 buildCounterForwardingRule++; | 1831 buildCounterForwardingRule++; |
1681 if (buildCounterForwardingRule < 3) { | 1832 if (buildCounterForwardingRule < 3) { |
1682 unittest.expect(o.IPAddress, unittest.equals('foo')); | 1833 unittest.expect(o.IPAddress, unittest.equals('foo')); |
1683 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 1834 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
| 1835 unittest.expect(o.backendService, unittest.equals('foo')); |
1684 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1836 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
1685 unittest.expect(o.description, unittest.equals('foo')); | 1837 unittest.expect(o.description, unittest.equals('foo')); |
1686 unittest.expect(o.id, unittest.equals('foo')); | 1838 unittest.expect(o.id, unittest.equals('foo')); |
1687 unittest.expect(o.kind, unittest.equals('foo')); | 1839 unittest.expect(o.kind, unittest.equals('foo')); |
| 1840 unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); |
1688 unittest.expect(o.name, unittest.equals('foo')); | 1841 unittest.expect(o.name, unittest.equals('foo')); |
| 1842 unittest.expect(o.network, unittest.equals('foo')); |
1689 unittest.expect(o.portRange, unittest.equals('foo')); | 1843 unittest.expect(o.portRange, unittest.equals('foo')); |
| 1844 checkUnnamed2022(o.ports); |
1690 unittest.expect(o.region, unittest.equals('foo')); | 1845 unittest.expect(o.region, unittest.equals('foo')); |
1691 unittest.expect(o.selfLink, unittest.equals('foo')); | 1846 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1847 unittest.expect(o.subnetwork, unittest.equals('foo')); |
1692 unittest.expect(o.target, unittest.equals('foo')); | 1848 unittest.expect(o.target, unittest.equals('foo')); |
1693 } | 1849 } |
1694 buildCounterForwardingRule--; | 1850 buildCounterForwardingRule--; |
1695 } | 1851 } |
1696 | 1852 |
1697 buildUnnamed2246() { | 1853 buildUnnamed2023() { |
1698 var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); | 1854 var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); |
1699 o["x"] = buildForwardingRulesScopedList(); | 1855 o["x"] = buildForwardingRulesScopedList(); |
1700 o["y"] = buildForwardingRulesScopedList(); | 1856 o["y"] = buildForwardingRulesScopedList(); |
1701 return o; | 1857 return o; |
1702 } | 1858 } |
1703 | 1859 |
1704 checkUnnamed2246(core.Map<core.String, api.ForwardingRulesScopedList> o) { | 1860 checkUnnamed2023(core.Map<core.String, api.ForwardingRulesScopedList> o) { |
1705 unittest.expect(o, unittest.hasLength(2)); | 1861 unittest.expect(o, unittest.hasLength(2)); |
1706 checkForwardingRulesScopedList(o["x"]); | 1862 checkForwardingRulesScopedList(o["x"]); |
1707 checkForwardingRulesScopedList(o["y"]); | 1863 checkForwardingRulesScopedList(o["y"]); |
1708 } | 1864 } |
1709 | 1865 |
1710 core.int buildCounterForwardingRuleAggregatedList = 0; | 1866 core.int buildCounterForwardingRuleAggregatedList = 0; |
1711 buildForwardingRuleAggregatedList() { | 1867 buildForwardingRuleAggregatedList() { |
1712 var o = new api.ForwardingRuleAggregatedList(); | 1868 var o = new api.ForwardingRuleAggregatedList(); |
1713 buildCounterForwardingRuleAggregatedList++; | 1869 buildCounterForwardingRuleAggregatedList++; |
1714 if (buildCounterForwardingRuleAggregatedList < 3) { | 1870 if (buildCounterForwardingRuleAggregatedList < 3) { |
1715 o.id = "foo"; | 1871 o.id = "foo"; |
1716 o.items = buildUnnamed2246(); | 1872 o.items = buildUnnamed2023(); |
1717 o.kind = "foo"; | 1873 o.kind = "foo"; |
1718 o.nextPageToken = "foo"; | 1874 o.nextPageToken = "foo"; |
1719 o.selfLink = "foo"; | 1875 o.selfLink = "foo"; |
1720 } | 1876 } |
1721 buildCounterForwardingRuleAggregatedList--; | 1877 buildCounterForwardingRuleAggregatedList--; |
1722 return o; | 1878 return o; |
1723 } | 1879 } |
1724 | 1880 |
1725 checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { | 1881 checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { |
1726 buildCounterForwardingRuleAggregatedList++; | 1882 buildCounterForwardingRuleAggregatedList++; |
1727 if (buildCounterForwardingRuleAggregatedList < 3) { | 1883 if (buildCounterForwardingRuleAggregatedList < 3) { |
1728 unittest.expect(o.id, unittest.equals('foo')); | 1884 unittest.expect(o.id, unittest.equals('foo')); |
1729 checkUnnamed2246(o.items); | 1885 checkUnnamed2023(o.items); |
1730 unittest.expect(o.kind, unittest.equals('foo')); | 1886 unittest.expect(o.kind, unittest.equals('foo')); |
1731 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1887 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1732 unittest.expect(o.selfLink, unittest.equals('foo')); | 1888 unittest.expect(o.selfLink, unittest.equals('foo')); |
1733 } | 1889 } |
1734 buildCounterForwardingRuleAggregatedList--; | 1890 buildCounterForwardingRuleAggregatedList--; |
1735 } | 1891 } |
1736 | 1892 |
1737 buildUnnamed2247() { | 1893 buildUnnamed2024() { |
1738 var o = new core.List<api.ForwardingRule>(); | 1894 var o = new core.List<api.ForwardingRule>(); |
1739 o.add(buildForwardingRule()); | 1895 o.add(buildForwardingRule()); |
1740 o.add(buildForwardingRule()); | 1896 o.add(buildForwardingRule()); |
1741 return o; | 1897 return o; |
1742 } | 1898 } |
1743 | 1899 |
1744 checkUnnamed2247(core.List<api.ForwardingRule> o) { | 1900 checkUnnamed2024(core.List<api.ForwardingRule> o) { |
1745 unittest.expect(o, unittest.hasLength(2)); | 1901 unittest.expect(o, unittest.hasLength(2)); |
1746 checkForwardingRule(o[0]); | 1902 checkForwardingRule(o[0]); |
1747 checkForwardingRule(o[1]); | 1903 checkForwardingRule(o[1]); |
1748 } | 1904 } |
1749 | 1905 |
1750 core.int buildCounterForwardingRuleList = 0; | 1906 core.int buildCounterForwardingRuleList = 0; |
1751 buildForwardingRuleList() { | 1907 buildForwardingRuleList() { |
1752 var o = new api.ForwardingRuleList(); | 1908 var o = new api.ForwardingRuleList(); |
1753 buildCounterForwardingRuleList++; | 1909 buildCounterForwardingRuleList++; |
1754 if (buildCounterForwardingRuleList < 3) { | 1910 if (buildCounterForwardingRuleList < 3) { |
1755 o.id = "foo"; | 1911 o.id = "foo"; |
1756 o.items = buildUnnamed2247(); | 1912 o.items = buildUnnamed2024(); |
1757 o.kind = "foo"; | 1913 o.kind = "foo"; |
1758 o.nextPageToken = "foo"; | 1914 o.nextPageToken = "foo"; |
1759 o.selfLink = "foo"; | 1915 o.selfLink = "foo"; |
1760 } | 1916 } |
1761 buildCounterForwardingRuleList--; | 1917 buildCounterForwardingRuleList--; |
1762 return o; | 1918 return o; |
1763 } | 1919 } |
1764 | 1920 |
1765 checkForwardingRuleList(api.ForwardingRuleList o) { | 1921 checkForwardingRuleList(api.ForwardingRuleList o) { |
1766 buildCounterForwardingRuleList++; | 1922 buildCounterForwardingRuleList++; |
1767 if (buildCounterForwardingRuleList < 3) { | 1923 if (buildCounterForwardingRuleList < 3) { |
1768 unittest.expect(o.id, unittest.equals('foo')); | 1924 unittest.expect(o.id, unittest.equals('foo')); |
1769 checkUnnamed2247(o.items); | 1925 checkUnnamed2024(o.items); |
1770 unittest.expect(o.kind, unittest.equals('foo')); | 1926 unittest.expect(o.kind, unittest.equals('foo')); |
1771 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1927 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1772 unittest.expect(o.selfLink, unittest.equals('foo')); | 1928 unittest.expect(o.selfLink, unittest.equals('foo')); |
1773 } | 1929 } |
1774 buildCounterForwardingRuleList--; | 1930 buildCounterForwardingRuleList--; |
1775 } | 1931 } |
1776 | 1932 |
1777 buildUnnamed2248() { | 1933 buildUnnamed2025() { |
1778 var o = new core.List<api.ForwardingRule>(); | 1934 var o = new core.List<api.ForwardingRule>(); |
1779 o.add(buildForwardingRule()); | 1935 o.add(buildForwardingRule()); |
1780 o.add(buildForwardingRule()); | 1936 o.add(buildForwardingRule()); |
1781 return o; | 1937 return o; |
1782 } | 1938 } |
1783 | 1939 |
1784 checkUnnamed2248(core.List<api.ForwardingRule> o) { | 1940 checkUnnamed2025(core.List<api.ForwardingRule> o) { |
1785 unittest.expect(o, unittest.hasLength(2)); | 1941 unittest.expect(o, unittest.hasLength(2)); |
1786 checkForwardingRule(o[0]); | 1942 checkForwardingRule(o[0]); |
1787 checkForwardingRule(o[1]); | 1943 checkForwardingRule(o[1]); |
1788 } | 1944 } |
1789 | 1945 |
1790 core.int buildCounterForwardingRulesScopedListWarningData = 0; | 1946 core.int buildCounterForwardingRulesScopedListWarningData = 0; |
1791 buildForwardingRulesScopedListWarningData() { | 1947 buildForwardingRulesScopedListWarningData() { |
1792 var o = new api.ForwardingRulesScopedListWarningData(); | 1948 var o = new api.ForwardingRulesScopedListWarningData(); |
1793 buildCounterForwardingRulesScopedListWarningData++; | 1949 buildCounterForwardingRulesScopedListWarningData++; |
1794 if (buildCounterForwardingRulesScopedListWarningData < 3) { | 1950 if (buildCounterForwardingRulesScopedListWarningData < 3) { |
1795 o.key = "foo"; | 1951 o.key = "foo"; |
1796 o.value = "foo"; | 1952 o.value = "foo"; |
1797 } | 1953 } |
1798 buildCounterForwardingRulesScopedListWarningData--; | 1954 buildCounterForwardingRulesScopedListWarningData--; |
1799 return o; | 1955 return o; |
1800 } | 1956 } |
1801 | 1957 |
1802 checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
ta o) { | 1958 checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
ta o) { |
1803 buildCounterForwardingRulesScopedListWarningData++; | 1959 buildCounterForwardingRulesScopedListWarningData++; |
1804 if (buildCounterForwardingRulesScopedListWarningData < 3) { | 1960 if (buildCounterForwardingRulesScopedListWarningData < 3) { |
1805 unittest.expect(o.key, unittest.equals('foo')); | 1961 unittest.expect(o.key, unittest.equals('foo')); |
1806 unittest.expect(o.value, unittest.equals('foo')); | 1962 unittest.expect(o.value, unittest.equals('foo')); |
1807 } | 1963 } |
1808 buildCounterForwardingRulesScopedListWarningData--; | 1964 buildCounterForwardingRulesScopedListWarningData--; |
1809 } | 1965 } |
1810 | 1966 |
1811 buildUnnamed2249() { | 1967 buildUnnamed2026() { |
1812 var o = new core.List<api.ForwardingRulesScopedListWarningData>(); | 1968 var o = new core.List<api.ForwardingRulesScopedListWarningData>(); |
1813 o.add(buildForwardingRulesScopedListWarningData()); | 1969 o.add(buildForwardingRulesScopedListWarningData()); |
1814 o.add(buildForwardingRulesScopedListWarningData()); | 1970 o.add(buildForwardingRulesScopedListWarningData()); |
1815 return o; | 1971 return o; |
1816 } | 1972 } |
1817 | 1973 |
1818 checkUnnamed2249(core.List<api.ForwardingRulesScopedListWarningData> o) { | 1974 checkUnnamed2026(core.List<api.ForwardingRulesScopedListWarningData> o) { |
1819 unittest.expect(o, unittest.hasLength(2)); | 1975 unittest.expect(o, unittest.hasLength(2)); |
1820 checkForwardingRulesScopedListWarningData(o[0]); | 1976 checkForwardingRulesScopedListWarningData(o[0]); |
1821 checkForwardingRulesScopedListWarningData(o[1]); | 1977 checkForwardingRulesScopedListWarningData(o[1]); |
1822 } | 1978 } |
1823 | 1979 |
1824 core.int buildCounterForwardingRulesScopedListWarning = 0; | 1980 core.int buildCounterForwardingRulesScopedListWarning = 0; |
1825 buildForwardingRulesScopedListWarning() { | 1981 buildForwardingRulesScopedListWarning() { |
1826 var o = new api.ForwardingRulesScopedListWarning(); | 1982 var o = new api.ForwardingRulesScopedListWarning(); |
1827 buildCounterForwardingRulesScopedListWarning++; | 1983 buildCounterForwardingRulesScopedListWarning++; |
1828 if (buildCounterForwardingRulesScopedListWarning < 3) { | 1984 if (buildCounterForwardingRulesScopedListWarning < 3) { |
1829 o.code = "foo"; | 1985 o.code = "foo"; |
1830 o.data = buildUnnamed2249(); | 1986 o.data = buildUnnamed2026(); |
1831 o.message = "foo"; | 1987 o.message = "foo"; |
1832 } | 1988 } |
1833 buildCounterForwardingRulesScopedListWarning--; | 1989 buildCounterForwardingRulesScopedListWarning--; |
1834 return o; | 1990 return o; |
1835 } | 1991 } |
1836 | 1992 |
1837 checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) { | 1993 checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) { |
1838 buildCounterForwardingRulesScopedListWarning++; | 1994 buildCounterForwardingRulesScopedListWarning++; |
1839 if (buildCounterForwardingRulesScopedListWarning < 3) { | 1995 if (buildCounterForwardingRulesScopedListWarning < 3) { |
1840 unittest.expect(o.code, unittest.equals('foo')); | 1996 unittest.expect(o.code, unittest.equals('foo')); |
1841 checkUnnamed2249(o.data); | 1997 checkUnnamed2026(o.data); |
1842 unittest.expect(o.message, unittest.equals('foo')); | 1998 unittest.expect(o.message, unittest.equals('foo')); |
1843 } | 1999 } |
1844 buildCounterForwardingRulesScopedListWarning--; | 2000 buildCounterForwardingRulesScopedListWarning--; |
1845 } | 2001 } |
1846 | 2002 |
1847 core.int buildCounterForwardingRulesScopedList = 0; | 2003 core.int buildCounterForwardingRulesScopedList = 0; |
1848 buildForwardingRulesScopedList() { | 2004 buildForwardingRulesScopedList() { |
1849 var o = new api.ForwardingRulesScopedList(); | 2005 var o = new api.ForwardingRulesScopedList(); |
1850 buildCounterForwardingRulesScopedList++; | 2006 buildCounterForwardingRulesScopedList++; |
1851 if (buildCounterForwardingRulesScopedList < 3) { | 2007 if (buildCounterForwardingRulesScopedList < 3) { |
1852 o.forwardingRules = buildUnnamed2248(); | 2008 o.forwardingRules = buildUnnamed2025(); |
1853 o.warning = buildForwardingRulesScopedListWarning(); | 2009 o.warning = buildForwardingRulesScopedListWarning(); |
1854 } | 2010 } |
1855 buildCounterForwardingRulesScopedList--; | 2011 buildCounterForwardingRulesScopedList--; |
1856 return o; | 2012 return o; |
1857 } | 2013 } |
1858 | 2014 |
1859 checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { | 2015 checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { |
1860 buildCounterForwardingRulesScopedList++; | 2016 buildCounterForwardingRulesScopedList++; |
1861 if (buildCounterForwardingRulesScopedList < 3) { | 2017 if (buildCounterForwardingRulesScopedList < 3) { |
1862 checkUnnamed2248(o.forwardingRules); | 2018 checkUnnamed2025(o.forwardingRules); |
1863 checkForwardingRulesScopedListWarning(o.warning); | 2019 checkForwardingRulesScopedListWarning(o.warning); |
1864 } | 2020 } |
1865 buildCounterForwardingRulesScopedList--; | 2021 buildCounterForwardingRulesScopedList--; |
1866 } | 2022 } |
1867 | 2023 |
1868 core.int buildCounterHTTP2HealthCheck = 0; | 2024 core.int buildCounterGuestOsFeature = 0; |
1869 buildHTTP2HealthCheck() { | 2025 buildGuestOsFeature() { |
1870 var o = new api.HTTP2HealthCheck(); | 2026 var o = new api.GuestOsFeature(); |
1871 buildCounterHTTP2HealthCheck++; | 2027 buildCounterGuestOsFeature++; |
1872 if (buildCounterHTTP2HealthCheck < 3) { | 2028 if (buildCounterGuestOsFeature < 3) { |
1873 o.host = "foo"; | 2029 o.type = "foo"; |
1874 o.port = 42; | |
1875 o.portName = "foo"; | |
1876 o.proxyHeader = "foo"; | |
1877 o.requestPath = "foo"; | |
1878 } | 2030 } |
1879 buildCounterHTTP2HealthCheck--; | 2031 buildCounterGuestOsFeature--; |
1880 return o; | 2032 return o; |
1881 } | 2033 } |
1882 | 2034 |
1883 checkHTTP2HealthCheck(api.HTTP2HealthCheck o) { | 2035 checkGuestOsFeature(api.GuestOsFeature o) { |
1884 buildCounterHTTP2HealthCheck++; | 2036 buildCounterGuestOsFeature++; |
1885 if (buildCounterHTTP2HealthCheck < 3) { | 2037 if (buildCounterGuestOsFeature < 3) { |
1886 unittest.expect(o.host, unittest.equals('foo')); | 2038 unittest.expect(o.type, unittest.equals('foo')); |
1887 unittest.expect(o.port, unittest.equals(42)); | |
1888 unittest.expect(o.portName, unittest.equals('foo')); | |
1889 unittest.expect(o.proxyHeader, unittest.equals('foo')); | |
1890 unittest.expect(o.requestPath, unittest.equals('foo')); | |
1891 } | 2039 } |
1892 buildCounterHTTP2HealthCheck--; | 2040 buildCounterGuestOsFeature--; |
1893 } | 2041 } |
1894 | 2042 |
1895 core.int buildCounterHTTPHealthCheck = 0; | 2043 core.int buildCounterHTTPHealthCheck = 0; |
1896 buildHTTPHealthCheck() { | 2044 buildHTTPHealthCheck() { |
1897 var o = new api.HTTPHealthCheck(); | 2045 var o = new api.HTTPHealthCheck(); |
1898 buildCounterHTTPHealthCheck++; | 2046 buildCounterHTTPHealthCheck++; |
1899 if (buildCounterHTTPHealthCheck < 3) { | 2047 if (buildCounterHTTPHealthCheck < 3) { |
1900 o.host = "foo"; | 2048 o.host = "foo"; |
1901 o.port = 42; | 2049 o.port = 42; |
1902 o.portName = "foo"; | 2050 o.portName = "foo"; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1948 | 2096 |
1949 core.int buildCounterHealthCheck = 0; | 2097 core.int buildCounterHealthCheck = 0; |
1950 buildHealthCheck() { | 2098 buildHealthCheck() { |
1951 var o = new api.HealthCheck(); | 2099 var o = new api.HealthCheck(); |
1952 buildCounterHealthCheck++; | 2100 buildCounterHealthCheck++; |
1953 if (buildCounterHealthCheck < 3) { | 2101 if (buildCounterHealthCheck < 3) { |
1954 o.checkIntervalSec = 42; | 2102 o.checkIntervalSec = 42; |
1955 o.creationTimestamp = "foo"; | 2103 o.creationTimestamp = "foo"; |
1956 o.description = "foo"; | 2104 o.description = "foo"; |
1957 o.healthyThreshold = 42; | 2105 o.healthyThreshold = 42; |
1958 o.http2HealthCheck = buildHTTP2HealthCheck(); | |
1959 o.httpHealthCheck = buildHTTPHealthCheck(); | 2106 o.httpHealthCheck = buildHTTPHealthCheck(); |
1960 o.httpsHealthCheck = buildHTTPSHealthCheck(); | 2107 o.httpsHealthCheck = buildHTTPSHealthCheck(); |
1961 o.id = "foo"; | 2108 o.id = "foo"; |
1962 o.kind = "foo"; | 2109 o.kind = "foo"; |
1963 o.name = "foo"; | 2110 o.name = "foo"; |
1964 o.selfLink = "foo"; | 2111 o.selfLink = "foo"; |
1965 o.sslHealthCheck = buildSSLHealthCheck(); | 2112 o.sslHealthCheck = buildSSLHealthCheck(); |
1966 o.tcpHealthCheck = buildTCPHealthCheck(); | 2113 o.tcpHealthCheck = buildTCPHealthCheck(); |
1967 o.timeoutSec = 42; | 2114 o.timeoutSec = 42; |
1968 o.type = "foo"; | 2115 o.type = "foo"; |
1969 o.unhealthyThreshold = 42; | 2116 o.unhealthyThreshold = 42; |
1970 } | 2117 } |
1971 buildCounterHealthCheck--; | 2118 buildCounterHealthCheck--; |
1972 return o; | 2119 return o; |
1973 } | 2120 } |
1974 | 2121 |
1975 checkHealthCheck(api.HealthCheck o) { | 2122 checkHealthCheck(api.HealthCheck o) { |
1976 buildCounterHealthCheck++; | 2123 buildCounterHealthCheck++; |
1977 if (buildCounterHealthCheck < 3) { | 2124 if (buildCounterHealthCheck < 3) { |
1978 unittest.expect(o.checkIntervalSec, unittest.equals(42)); | 2125 unittest.expect(o.checkIntervalSec, unittest.equals(42)); |
1979 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2126 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
1980 unittest.expect(o.description, unittest.equals('foo')); | 2127 unittest.expect(o.description, unittest.equals('foo')); |
1981 unittest.expect(o.healthyThreshold, unittest.equals(42)); | 2128 unittest.expect(o.healthyThreshold, unittest.equals(42)); |
1982 checkHTTP2HealthCheck(o.http2HealthCheck); | |
1983 checkHTTPHealthCheck(o.httpHealthCheck); | 2129 checkHTTPHealthCheck(o.httpHealthCheck); |
1984 checkHTTPSHealthCheck(o.httpsHealthCheck); | 2130 checkHTTPSHealthCheck(o.httpsHealthCheck); |
1985 unittest.expect(o.id, unittest.equals('foo')); | 2131 unittest.expect(o.id, unittest.equals('foo')); |
1986 unittest.expect(o.kind, unittest.equals('foo')); | 2132 unittest.expect(o.kind, unittest.equals('foo')); |
1987 unittest.expect(o.name, unittest.equals('foo')); | 2133 unittest.expect(o.name, unittest.equals('foo')); |
1988 unittest.expect(o.selfLink, unittest.equals('foo')); | 2134 unittest.expect(o.selfLink, unittest.equals('foo')); |
1989 checkSSLHealthCheck(o.sslHealthCheck); | 2135 checkSSLHealthCheck(o.sslHealthCheck); |
1990 checkTCPHealthCheck(o.tcpHealthCheck); | 2136 checkTCPHealthCheck(o.tcpHealthCheck); |
1991 unittest.expect(o.timeoutSec, unittest.equals(42)); | 2137 unittest.expect(o.timeoutSec, unittest.equals(42)); |
1992 unittest.expect(o.type, unittest.equals('foo')); | 2138 unittest.expect(o.type, unittest.equals('foo')); |
1993 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 2139 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
1994 } | 2140 } |
1995 buildCounterHealthCheck--; | 2141 buildCounterHealthCheck--; |
1996 } | 2142 } |
1997 | 2143 |
1998 buildUnnamed2250() { | 2144 buildUnnamed2027() { |
1999 var o = new core.List<api.HealthCheck>(); | 2145 var o = new core.List<api.HealthCheck>(); |
2000 o.add(buildHealthCheck()); | 2146 o.add(buildHealthCheck()); |
2001 o.add(buildHealthCheck()); | 2147 o.add(buildHealthCheck()); |
2002 return o; | 2148 return o; |
2003 } | 2149 } |
2004 | 2150 |
2005 checkUnnamed2250(core.List<api.HealthCheck> o) { | 2151 checkUnnamed2027(core.List<api.HealthCheck> o) { |
2006 unittest.expect(o, unittest.hasLength(2)); | 2152 unittest.expect(o, unittest.hasLength(2)); |
2007 checkHealthCheck(o[0]); | 2153 checkHealthCheck(o[0]); |
2008 checkHealthCheck(o[1]); | 2154 checkHealthCheck(o[1]); |
2009 } | 2155 } |
2010 | 2156 |
2011 core.int buildCounterHealthCheckList = 0; | 2157 core.int buildCounterHealthCheckList = 0; |
2012 buildHealthCheckList() { | 2158 buildHealthCheckList() { |
2013 var o = new api.HealthCheckList(); | 2159 var o = new api.HealthCheckList(); |
2014 buildCounterHealthCheckList++; | 2160 buildCounterHealthCheckList++; |
2015 if (buildCounterHealthCheckList < 3) { | 2161 if (buildCounterHealthCheckList < 3) { |
2016 o.id = "foo"; | 2162 o.id = "foo"; |
2017 o.items = buildUnnamed2250(); | 2163 o.items = buildUnnamed2027(); |
2018 o.kind = "foo"; | 2164 o.kind = "foo"; |
2019 o.nextPageToken = "foo"; | 2165 o.nextPageToken = "foo"; |
2020 o.selfLink = "foo"; | 2166 o.selfLink = "foo"; |
2021 } | 2167 } |
2022 buildCounterHealthCheckList--; | 2168 buildCounterHealthCheckList--; |
2023 return o; | 2169 return o; |
2024 } | 2170 } |
2025 | 2171 |
2026 checkHealthCheckList(api.HealthCheckList o) { | 2172 checkHealthCheckList(api.HealthCheckList o) { |
2027 buildCounterHealthCheckList++; | 2173 buildCounterHealthCheckList++; |
2028 if (buildCounterHealthCheckList < 3) { | 2174 if (buildCounterHealthCheckList < 3) { |
2029 unittest.expect(o.id, unittest.equals('foo')); | 2175 unittest.expect(o.id, unittest.equals('foo')); |
2030 checkUnnamed2250(o.items); | 2176 checkUnnamed2027(o.items); |
2031 unittest.expect(o.kind, unittest.equals('foo')); | 2177 unittest.expect(o.kind, unittest.equals('foo')); |
2032 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2178 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2033 unittest.expect(o.selfLink, unittest.equals('foo')); | 2179 unittest.expect(o.selfLink, unittest.equals('foo')); |
2034 } | 2180 } |
2035 buildCounterHealthCheckList--; | 2181 buildCounterHealthCheckList--; |
2036 } | 2182 } |
2037 | 2183 |
2038 core.int buildCounterHealthCheckReference = 0; | 2184 core.int buildCounterHealthCheckReference = 0; |
2039 buildHealthCheckReference() { | 2185 buildHealthCheckReference() { |
2040 var o = new api.HealthCheckReference(); | 2186 var o = new api.HealthCheckReference(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 buildCounterHealthStatus++; | 2218 buildCounterHealthStatus++; |
2073 if (buildCounterHealthStatus < 3) { | 2219 if (buildCounterHealthStatus < 3) { |
2074 unittest.expect(o.healthState, unittest.equals('foo')); | 2220 unittest.expect(o.healthState, unittest.equals('foo')); |
2075 unittest.expect(o.instance, unittest.equals('foo')); | 2221 unittest.expect(o.instance, unittest.equals('foo')); |
2076 unittest.expect(o.ipAddress, unittest.equals('foo')); | 2222 unittest.expect(o.ipAddress, unittest.equals('foo')); |
2077 unittest.expect(o.port, unittest.equals(42)); | 2223 unittest.expect(o.port, unittest.equals(42)); |
2078 } | 2224 } |
2079 buildCounterHealthStatus--; | 2225 buildCounterHealthStatus--; |
2080 } | 2226 } |
2081 | 2227 |
2082 buildUnnamed2251() { | 2228 buildUnnamed2028() { |
2083 var o = new core.List<core.String>(); | 2229 var o = new core.List<core.String>(); |
2084 o.add("foo"); | 2230 o.add("foo"); |
2085 o.add("foo"); | 2231 o.add("foo"); |
2086 return o; | 2232 return o; |
2087 } | 2233 } |
2088 | 2234 |
2089 checkUnnamed2251(core.List<core.String> o) { | 2235 checkUnnamed2028(core.List<core.String> o) { |
2090 unittest.expect(o, unittest.hasLength(2)); | 2236 unittest.expect(o, unittest.hasLength(2)); |
2091 unittest.expect(o[0], unittest.equals('foo')); | 2237 unittest.expect(o[0], unittest.equals('foo')); |
2092 unittest.expect(o[1], unittest.equals('foo')); | 2238 unittest.expect(o[1], unittest.equals('foo')); |
2093 } | 2239 } |
2094 | 2240 |
2095 core.int buildCounterHostRule = 0; | 2241 core.int buildCounterHostRule = 0; |
2096 buildHostRule() { | 2242 buildHostRule() { |
2097 var o = new api.HostRule(); | 2243 var o = new api.HostRule(); |
2098 buildCounterHostRule++; | 2244 buildCounterHostRule++; |
2099 if (buildCounterHostRule < 3) { | 2245 if (buildCounterHostRule < 3) { |
2100 o.description = "foo"; | 2246 o.description = "foo"; |
2101 o.hosts = buildUnnamed2251(); | 2247 o.hosts = buildUnnamed2028(); |
2102 o.pathMatcher = "foo"; | 2248 o.pathMatcher = "foo"; |
2103 } | 2249 } |
2104 buildCounterHostRule--; | 2250 buildCounterHostRule--; |
2105 return o; | 2251 return o; |
2106 } | 2252 } |
2107 | 2253 |
2108 checkHostRule(api.HostRule o) { | 2254 checkHostRule(api.HostRule o) { |
2109 buildCounterHostRule++; | 2255 buildCounterHostRule++; |
2110 if (buildCounterHostRule < 3) { | 2256 if (buildCounterHostRule < 3) { |
2111 unittest.expect(o.description, unittest.equals('foo')); | 2257 unittest.expect(o.description, unittest.equals('foo')); |
2112 checkUnnamed2251(o.hosts); | 2258 checkUnnamed2028(o.hosts); |
2113 unittest.expect(o.pathMatcher, unittest.equals('foo')); | 2259 unittest.expect(o.pathMatcher, unittest.equals('foo')); |
2114 } | 2260 } |
2115 buildCounterHostRule--; | 2261 buildCounterHostRule--; |
2116 } | 2262 } |
2117 | 2263 |
2118 core.int buildCounterHttpHealthCheck = 0; | 2264 core.int buildCounterHttpHealthCheck = 0; |
2119 buildHttpHealthCheck() { | 2265 buildHttpHealthCheck() { |
2120 var o = new api.HttpHealthCheck(); | 2266 var o = new api.HttpHealthCheck(); |
2121 buildCounterHttpHealthCheck++; | 2267 buildCounterHttpHealthCheck++; |
2122 if (buildCounterHttpHealthCheck < 3) { | 2268 if (buildCounterHttpHealthCheck < 3) { |
(...skipping 28 matching lines...) Expand all Loading... |
2151 unittest.expect(o.name, unittest.equals('foo')); | 2297 unittest.expect(o.name, unittest.equals('foo')); |
2152 unittest.expect(o.port, unittest.equals(42)); | 2298 unittest.expect(o.port, unittest.equals(42)); |
2153 unittest.expect(o.requestPath, unittest.equals('foo')); | 2299 unittest.expect(o.requestPath, unittest.equals('foo')); |
2154 unittest.expect(o.selfLink, unittest.equals('foo')); | 2300 unittest.expect(o.selfLink, unittest.equals('foo')); |
2155 unittest.expect(o.timeoutSec, unittest.equals(42)); | 2301 unittest.expect(o.timeoutSec, unittest.equals(42)); |
2156 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 2302 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
2157 } | 2303 } |
2158 buildCounterHttpHealthCheck--; | 2304 buildCounterHttpHealthCheck--; |
2159 } | 2305 } |
2160 | 2306 |
2161 buildUnnamed2252() { | 2307 buildUnnamed2029() { |
2162 var o = new core.List<api.HttpHealthCheck>(); | 2308 var o = new core.List<api.HttpHealthCheck>(); |
2163 o.add(buildHttpHealthCheck()); | 2309 o.add(buildHttpHealthCheck()); |
2164 o.add(buildHttpHealthCheck()); | 2310 o.add(buildHttpHealthCheck()); |
2165 return o; | 2311 return o; |
2166 } | 2312 } |
2167 | 2313 |
2168 checkUnnamed2252(core.List<api.HttpHealthCheck> o) { | 2314 checkUnnamed2029(core.List<api.HttpHealthCheck> o) { |
2169 unittest.expect(o, unittest.hasLength(2)); | 2315 unittest.expect(o, unittest.hasLength(2)); |
2170 checkHttpHealthCheck(o[0]); | 2316 checkHttpHealthCheck(o[0]); |
2171 checkHttpHealthCheck(o[1]); | 2317 checkHttpHealthCheck(o[1]); |
2172 } | 2318 } |
2173 | 2319 |
2174 core.int buildCounterHttpHealthCheckList = 0; | 2320 core.int buildCounterHttpHealthCheckList = 0; |
2175 buildHttpHealthCheckList() { | 2321 buildHttpHealthCheckList() { |
2176 var o = new api.HttpHealthCheckList(); | 2322 var o = new api.HttpHealthCheckList(); |
2177 buildCounterHttpHealthCheckList++; | 2323 buildCounterHttpHealthCheckList++; |
2178 if (buildCounterHttpHealthCheckList < 3) { | 2324 if (buildCounterHttpHealthCheckList < 3) { |
2179 o.id = "foo"; | 2325 o.id = "foo"; |
2180 o.items = buildUnnamed2252(); | 2326 o.items = buildUnnamed2029(); |
2181 o.kind = "foo"; | 2327 o.kind = "foo"; |
2182 o.nextPageToken = "foo"; | 2328 o.nextPageToken = "foo"; |
2183 o.selfLink = "foo"; | 2329 o.selfLink = "foo"; |
2184 } | 2330 } |
2185 buildCounterHttpHealthCheckList--; | 2331 buildCounterHttpHealthCheckList--; |
2186 return o; | 2332 return o; |
2187 } | 2333 } |
2188 | 2334 |
2189 checkHttpHealthCheckList(api.HttpHealthCheckList o) { | 2335 checkHttpHealthCheckList(api.HttpHealthCheckList o) { |
2190 buildCounterHttpHealthCheckList++; | 2336 buildCounterHttpHealthCheckList++; |
2191 if (buildCounterHttpHealthCheckList < 3) { | 2337 if (buildCounterHttpHealthCheckList < 3) { |
2192 unittest.expect(o.id, unittest.equals('foo')); | 2338 unittest.expect(o.id, unittest.equals('foo')); |
2193 checkUnnamed2252(o.items); | 2339 checkUnnamed2029(o.items); |
2194 unittest.expect(o.kind, unittest.equals('foo')); | 2340 unittest.expect(o.kind, unittest.equals('foo')); |
2195 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2341 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2196 unittest.expect(o.selfLink, unittest.equals('foo')); | 2342 unittest.expect(o.selfLink, unittest.equals('foo')); |
2197 } | 2343 } |
2198 buildCounterHttpHealthCheckList--; | 2344 buildCounterHttpHealthCheckList--; |
2199 } | 2345 } |
2200 | 2346 |
2201 core.int buildCounterHttpsHealthCheck = 0; | 2347 core.int buildCounterHttpsHealthCheck = 0; |
2202 buildHttpsHealthCheck() { | 2348 buildHttpsHealthCheck() { |
2203 var o = new api.HttpsHealthCheck(); | 2349 var o = new api.HttpsHealthCheck(); |
(...skipping 30 matching lines...) Expand all Loading... |
2234 unittest.expect(o.name, unittest.equals('foo')); | 2380 unittest.expect(o.name, unittest.equals('foo')); |
2235 unittest.expect(o.port, unittest.equals(42)); | 2381 unittest.expect(o.port, unittest.equals(42)); |
2236 unittest.expect(o.requestPath, unittest.equals('foo')); | 2382 unittest.expect(o.requestPath, unittest.equals('foo')); |
2237 unittest.expect(o.selfLink, unittest.equals('foo')); | 2383 unittest.expect(o.selfLink, unittest.equals('foo')); |
2238 unittest.expect(o.timeoutSec, unittest.equals(42)); | 2384 unittest.expect(o.timeoutSec, unittest.equals(42)); |
2239 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 2385 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
2240 } | 2386 } |
2241 buildCounterHttpsHealthCheck--; | 2387 buildCounterHttpsHealthCheck--; |
2242 } | 2388 } |
2243 | 2389 |
2244 buildUnnamed2253() { | 2390 buildUnnamed2030() { |
2245 var o = new core.List<api.HttpsHealthCheck>(); | 2391 var o = new core.List<api.HttpsHealthCheck>(); |
2246 o.add(buildHttpsHealthCheck()); | 2392 o.add(buildHttpsHealthCheck()); |
2247 o.add(buildHttpsHealthCheck()); | 2393 o.add(buildHttpsHealthCheck()); |
2248 return o; | 2394 return o; |
2249 } | 2395 } |
2250 | 2396 |
2251 checkUnnamed2253(core.List<api.HttpsHealthCheck> o) { | 2397 checkUnnamed2030(core.List<api.HttpsHealthCheck> o) { |
2252 unittest.expect(o, unittest.hasLength(2)); | 2398 unittest.expect(o, unittest.hasLength(2)); |
2253 checkHttpsHealthCheck(o[0]); | 2399 checkHttpsHealthCheck(o[0]); |
2254 checkHttpsHealthCheck(o[1]); | 2400 checkHttpsHealthCheck(o[1]); |
2255 } | 2401 } |
2256 | 2402 |
2257 core.int buildCounterHttpsHealthCheckList = 0; | 2403 core.int buildCounterHttpsHealthCheckList = 0; |
2258 buildHttpsHealthCheckList() { | 2404 buildHttpsHealthCheckList() { |
2259 var o = new api.HttpsHealthCheckList(); | 2405 var o = new api.HttpsHealthCheckList(); |
2260 buildCounterHttpsHealthCheckList++; | 2406 buildCounterHttpsHealthCheckList++; |
2261 if (buildCounterHttpsHealthCheckList < 3) { | 2407 if (buildCounterHttpsHealthCheckList < 3) { |
2262 o.id = "foo"; | 2408 o.id = "foo"; |
2263 o.items = buildUnnamed2253(); | 2409 o.items = buildUnnamed2030(); |
2264 o.kind = "foo"; | 2410 o.kind = "foo"; |
2265 o.nextPageToken = "foo"; | 2411 o.nextPageToken = "foo"; |
2266 o.selfLink = "foo"; | 2412 o.selfLink = "foo"; |
2267 } | 2413 } |
2268 buildCounterHttpsHealthCheckList--; | 2414 buildCounterHttpsHealthCheckList--; |
2269 return o; | 2415 return o; |
2270 } | 2416 } |
2271 | 2417 |
2272 checkHttpsHealthCheckList(api.HttpsHealthCheckList o) { | 2418 checkHttpsHealthCheckList(api.HttpsHealthCheckList o) { |
2273 buildCounterHttpsHealthCheckList++; | 2419 buildCounterHttpsHealthCheckList++; |
2274 if (buildCounterHttpsHealthCheckList < 3) { | 2420 if (buildCounterHttpsHealthCheckList < 3) { |
2275 unittest.expect(o.id, unittest.equals('foo')); | 2421 unittest.expect(o.id, unittest.equals('foo')); |
2276 checkUnnamed2253(o.items); | 2422 checkUnnamed2030(o.items); |
2277 unittest.expect(o.kind, unittest.equals('foo')); | 2423 unittest.expect(o.kind, unittest.equals('foo')); |
2278 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2424 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2279 unittest.expect(o.selfLink, unittest.equals('foo')); | 2425 unittest.expect(o.selfLink, unittest.equals('foo')); |
2280 } | 2426 } |
2281 buildCounterHttpsHealthCheckList--; | 2427 buildCounterHttpsHealthCheckList--; |
2282 } | 2428 } |
2283 | 2429 |
2284 buildUnnamed2254() { | 2430 buildUnnamed2031() { |
| 2431 var o = new core.List<api.GuestOsFeature>(); |
| 2432 o.add(buildGuestOsFeature()); |
| 2433 o.add(buildGuestOsFeature()); |
| 2434 return o; |
| 2435 } |
| 2436 |
| 2437 checkUnnamed2031(core.List<api.GuestOsFeature> o) { |
| 2438 unittest.expect(o, unittest.hasLength(2)); |
| 2439 checkGuestOsFeature(o[0]); |
| 2440 checkGuestOsFeature(o[1]); |
| 2441 } |
| 2442 |
| 2443 buildUnnamed2032() { |
2285 var o = new core.List<core.String>(); | 2444 var o = new core.List<core.String>(); |
2286 o.add("foo"); | 2445 o.add("foo"); |
2287 o.add("foo"); | 2446 o.add("foo"); |
2288 return o; | 2447 return o; |
2289 } | 2448 } |
2290 | 2449 |
2291 checkUnnamed2254(core.List<core.String> o) { | 2450 checkUnnamed2032(core.List<core.String> o) { |
2292 unittest.expect(o, unittest.hasLength(2)); | 2451 unittest.expect(o, unittest.hasLength(2)); |
2293 unittest.expect(o[0], unittest.equals('foo')); | 2452 unittest.expect(o[0], unittest.equals('foo')); |
2294 unittest.expect(o[1], unittest.equals('foo')); | 2453 unittest.expect(o[1], unittest.equals('foo')); |
2295 } | 2454 } |
2296 | 2455 |
2297 core.int buildCounterImageRawDisk = 0; | 2456 core.int buildCounterImageRawDisk = 0; |
2298 buildImageRawDisk() { | 2457 buildImageRawDisk() { |
2299 var o = new api.ImageRawDisk(); | 2458 var o = new api.ImageRawDisk(); |
2300 buildCounterImageRawDisk++; | 2459 buildCounterImageRawDisk++; |
2301 if (buildCounterImageRawDisk < 3) { | 2460 if (buildCounterImageRawDisk < 3) { |
(...skipping 19 matching lines...) Expand all Loading... |
2321 buildImage() { | 2480 buildImage() { |
2322 var o = new api.Image(); | 2481 var o = new api.Image(); |
2323 buildCounterImage++; | 2482 buildCounterImage++; |
2324 if (buildCounterImage < 3) { | 2483 if (buildCounterImage < 3) { |
2325 o.archiveSizeBytes = "foo"; | 2484 o.archiveSizeBytes = "foo"; |
2326 o.creationTimestamp = "foo"; | 2485 o.creationTimestamp = "foo"; |
2327 o.deprecated = buildDeprecationStatus(); | 2486 o.deprecated = buildDeprecationStatus(); |
2328 o.description = "foo"; | 2487 o.description = "foo"; |
2329 o.diskSizeGb = "foo"; | 2488 o.diskSizeGb = "foo"; |
2330 o.family = "foo"; | 2489 o.family = "foo"; |
| 2490 o.guestOsFeatures = buildUnnamed2031(); |
2331 o.id = "foo"; | 2491 o.id = "foo"; |
2332 o.imageEncryptionKey = buildCustomerEncryptionKey(); | 2492 o.imageEncryptionKey = buildCustomerEncryptionKey(); |
2333 o.kind = "foo"; | 2493 o.kind = "foo"; |
2334 o.licenses = buildUnnamed2254(); | 2494 o.licenses = buildUnnamed2032(); |
2335 o.name = "foo"; | 2495 o.name = "foo"; |
2336 o.rawDisk = buildImageRawDisk(); | 2496 o.rawDisk = buildImageRawDisk(); |
2337 o.selfLink = "foo"; | 2497 o.selfLink = "foo"; |
2338 o.sourceDisk = "foo"; | 2498 o.sourceDisk = "foo"; |
2339 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); | 2499 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); |
2340 o.sourceDiskId = "foo"; | 2500 o.sourceDiskId = "foo"; |
2341 o.sourceType = "foo"; | 2501 o.sourceType = "foo"; |
2342 o.status = "foo"; | 2502 o.status = "foo"; |
2343 } | 2503 } |
2344 buildCounterImage--; | 2504 buildCounterImage--; |
2345 return o; | 2505 return o; |
2346 } | 2506 } |
2347 | 2507 |
2348 checkImage(api.Image o) { | 2508 checkImage(api.Image o) { |
2349 buildCounterImage++; | 2509 buildCounterImage++; |
2350 if (buildCounterImage < 3) { | 2510 if (buildCounterImage < 3) { |
2351 unittest.expect(o.archiveSizeBytes, unittest.equals('foo')); | 2511 unittest.expect(o.archiveSizeBytes, unittest.equals('foo')); |
2352 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2512 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
2353 checkDeprecationStatus(o.deprecated); | 2513 checkDeprecationStatus(o.deprecated); |
2354 unittest.expect(o.description, unittest.equals('foo')); | 2514 unittest.expect(o.description, unittest.equals('foo')); |
2355 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 2515 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
2356 unittest.expect(o.family, unittest.equals('foo')); | 2516 unittest.expect(o.family, unittest.equals('foo')); |
| 2517 checkUnnamed2031(o.guestOsFeatures); |
2357 unittest.expect(o.id, unittest.equals('foo')); | 2518 unittest.expect(o.id, unittest.equals('foo')); |
2358 checkCustomerEncryptionKey(o.imageEncryptionKey); | 2519 checkCustomerEncryptionKey(o.imageEncryptionKey); |
2359 unittest.expect(o.kind, unittest.equals('foo')); | 2520 unittest.expect(o.kind, unittest.equals('foo')); |
2360 checkUnnamed2254(o.licenses); | 2521 checkUnnamed2032(o.licenses); |
2361 unittest.expect(o.name, unittest.equals('foo')); | 2522 unittest.expect(o.name, unittest.equals('foo')); |
2362 checkImageRawDisk(o.rawDisk); | 2523 checkImageRawDisk(o.rawDisk); |
2363 unittest.expect(o.selfLink, unittest.equals('foo')); | 2524 unittest.expect(o.selfLink, unittest.equals('foo')); |
2364 unittest.expect(o.sourceDisk, unittest.equals('foo')); | 2525 unittest.expect(o.sourceDisk, unittest.equals('foo')); |
2365 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); | 2526 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); |
2366 unittest.expect(o.sourceDiskId, unittest.equals('foo')); | 2527 unittest.expect(o.sourceDiskId, unittest.equals('foo')); |
2367 unittest.expect(o.sourceType, unittest.equals('foo')); | 2528 unittest.expect(o.sourceType, unittest.equals('foo')); |
2368 unittest.expect(o.status, unittest.equals('foo')); | 2529 unittest.expect(o.status, unittest.equals('foo')); |
2369 } | 2530 } |
2370 buildCounterImage--; | 2531 buildCounterImage--; |
2371 } | 2532 } |
2372 | 2533 |
2373 buildUnnamed2255() { | 2534 buildUnnamed2033() { |
2374 var o = new core.List<api.Image>(); | 2535 var o = new core.List<api.Image>(); |
2375 o.add(buildImage()); | 2536 o.add(buildImage()); |
2376 o.add(buildImage()); | 2537 o.add(buildImage()); |
2377 return o; | 2538 return o; |
2378 } | 2539 } |
2379 | 2540 |
2380 checkUnnamed2255(core.List<api.Image> o) { | 2541 checkUnnamed2033(core.List<api.Image> o) { |
2381 unittest.expect(o, unittest.hasLength(2)); | 2542 unittest.expect(o, unittest.hasLength(2)); |
2382 checkImage(o[0]); | 2543 checkImage(o[0]); |
2383 checkImage(o[1]); | 2544 checkImage(o[1]); |
2384 } | 2545 } |
2385 | 2546 |
2386 core.int buildCounterImageList = 0; | 2547 core.int buildCounterImageList = 0; |
2387 buildImageList() { | 2548 buildImageList() { |
2388 var o = new api.ImageList(); | 2549 var o = new api.ImageList(); |
2389 buildCounterImageList++; | 2550 buildCounterImageList++; |
2390 if (buildCounterImageList < 3) { | 2551 if (buildCounterImageList < 3) { |
2391 o.id = "foo"; | 2552 o.id = "foo"; |
2392 o.items = buildUnnamed2255(); | 2553 o.items = buildUnnamed2033(); |
2393 o.kind = "foo"; | 2554 o.kind = "foo"; |
2394 o.nextPageToken = "foo"; | 2555 o.nextPageToken = "foo"; |
2395 o.selfLink = "foo"; | 2556 o.selfLink = "foo"; |
2396 } | 2557 } |
2397 buildCounterImageList--; | 2558 buildCounterImageList--; |
2398 return o; | 2559 return o; |
2399 } | 2560 } |
2400 | 2561 |
2401 checkImageList(api.ImageList o) { | 2562 checkImageList(api.ImageList o) { |
2402 buildCounterImageList++; | 2563 buildCounterImageList++; |
2403 if (buildCounterImageList < 3) { | 2564 if (buildCounterImageList < 3) { |
2404 unittest.expect(o.id, unittest.equals('foo')); | 2565 unittest.expect(o.id, unittest.equals('foo')); |
2405 checkUnnamed2255(o.items); | 2566 checkUnnamed2033(o.items); |
2406 unittest.expect(o.kind, unittest.equals('foo')); | 2567 unittest.expect(o.kind, unittest.equals('foo')); |
2407 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2568 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2408 unittest.expect(o.selfLink, unittest.equals('foo')); | 2569 unittest.expect(o.selfLink, unittest.equals('foo')); |
2409 } | 2570 } |
2410 buildCounterImageList--; | 2571 buildCounterImageList--; |
2411 } | 2572 } |
2412 | 2573 |
2413 buildUnnamed2256() { | 2574 buildUnnamed2034() { |
2414 var o = new core.List<api.AttachedDisk>(); | 2575 var o = new core.List<api.AttachedDisk>(); |
2415 o.add(buildAttachedDisk()); | 2576 o.add(buildAttachedDisk()); |
2416 o.add(buildAttachedDisk()); | 2577 o.add(buildAttachedDisk()); |
2417 return o; | 2578 return o; |
2418 } | 2579 } |
2419 | 2580 |
2420 checkUnnamed2256(core.List<api.AttachedDisk> o) { | 2581 checkUnnamed2034(core.List<api.AttachedDisk> o) { |
2421 unittest.expect(o, unittest.hasLength(2)); | 2582 unittest.expect(o, unittest.hasLength(2)); |
2422 checkAttachedDisk(o[0]); | 2583 checkAttachedDisk(o[0]); |
2423 checkAttachedDisk(o[1]); | 2584 checkAttachedDisk(o[1]); |
2424 } | 2585 } |
2425 | 2586 |
2426 buildUnnamed2257() { | 2587 buildUnnamed2035() { |
2427 var o = new core.List<api.NetworkInterface>(); | 2588 var o = new core.List<api.NetworkInterface>(); |
2428 o.add(buildNetworkInterface()); | 2589 o.add(buildNetworkInterface()); |
2429 o.add(buildNetworkInterface()); | 2590 o.add(buildNetworkInterface()); |
2430 return o; | 2591 return o; |
2431 } | 2592 } |
2432 | 2593 |
2433 checkUnnamed2257(core.List<api.NetworkInterface> o) { | 2594 checkUnnamed2035(core.List<api.NetworkInterface> o) { |
2434 unittest.expect(o, unittest.hasLength(2)); | 2595 unittest.expect(o, unittest.hasLength(2)); |
2435 checkNetworkInterface(o[0]); | 2596 checkNetworkInterface(o[0]); |
2436 checkNetworkInterface(o[1]); | 2597 checkNetworkInterface(o[1]); |
2437 } | 2598 } |
2438 | 2599 |
2439 buildUnnamed2258() { | 2600 buildUnnamed2036() { |
2440 var o = new core.List<api.ServiceAccount>(); | 2601 var o = new core.List<api.ServiceAccount>(); |
2441 o.add(buildServiceAccount()); | 2602 o.add(buildServiceAccount()); |
2442 o.add(buildServiceAccount()); | 2603 o.add(buildServiceAccount()); |
2443 return o; | 2604 return o; |
2444 } | 2605 } |
2445 | 2606 |
2446 checkUnnamed2258(core.List<api.ServiceAccount> o) { | 2607 checkUnnamed2036(core.List<api.ServiceAccount> o) { |
2447 unittest.expect(o, unittest.hasLength(2)); | 2608 unittest.expect(o, unittest.hasLength(2)); |
2448 checkServiceAccount(o[0]); | 2609 checkServiceAccount(o[0]); |
2449 checkServiceAccount(o[1]); | 2610 checkServiceAccount(o[1]); |
2450 } | 2611 } |
2451 | 2612 |
2452 core.int buildCounterInstance = 0; | 2613 core.int buildCounterInstance = 0; |
2453 buildInstance() { | 2614 buildInstance() { |
2454 var o = new api.Instance(); | 2615 var o = new api.Instance(); |
2455 buildCounterInstance++; | 2616 buildCounterInstance++; |
2456 if (buildCounterInstance < 3) { | 2617 if (buildCounterInstance < 3) { |
2457 o.canIpForward = true; | 2618 o.canIpForward = true; |
2458 o.cpuPlatform = "foo"; | 2619 o.cpuPlatform = "foo"; |
2459 o.creationTimestamp = "foo"; | 2620 o.creationTimestamp = "foo"; |
2460 o.description = "foo"; | 2621 o.description = "foo"; |
2461 o.disks = buildUnnamed2256(); | 2622 o.disks = buildUnnamed2034(); |
2462 o.id = "foo"; | 2623 o.id = "foo"; |
2463 o.kind = "foo"; | 2624 o.kind = "foo"; |
2464 o.machineType = "foo"; | 2625 o.machineType = "foo"; |
2465 o.metadata = buildMetadata(); | 2626 o.metadata = buildMetadata(); |
2466 o.name = "foo"; | 2627 o.name = "foo"; |
2467 o.networkInterfaces = buildUnnamed2257(); | 2628 o.networkInterfaces = buildUnnamed2035(); |
2468 o.scheduling = buildScheduling(); | 2629 o.scheduling = buildScheduling(); |
2469 o.selfLink = "foo"; | 2630 o.selfLink = "foo"; |
2470 o.serviceAccounts = buildUnnamed2258(); | 2631 o.serviceAccounts = buildUnnamed2036(); |
2471 o.status = "foo"; | 2632 o.status = "foo"; |
2472 o.statusMessage = "foo"; | 2633 o.statusMessage = "foo"; |
2473 o.tags = buildTags(); | 2634 o.tags = buildTags(); |
2474 o.zone = "foo"; | 2635 o.zone = "foo"; |
2475 } | 2636 } |
2476 buildCounterInstance--; | 2637 buildCounterInstance--; |
2477 return o; | 2638 return o; |
2478 } | 2639 } |
2479 | 2640 |
2480 checkInstance(api.Instance o) { | 2641 checkInstance(api.Instance o) { |
2481 buildCounterInstance++; | 2642 buildCounterInstance++; |
2482 if (buildCounterInstance < 3) { | 2643 if (buildCounterInstance < 3) { |
2483 unittest.expect(o.canIpForward, unittest.isTrue); | 2644 unittest.expect(o.canIpForward, unittest.isTrue); |
2484 unittest.expect(o.cpuPlatform, unittest.equals('foo')); | 2645 unittest.expect(o.cpuPlatform, unittest.equals('foo')); |
2485 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2646 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
2486 unittest.expect(o.description, unittest.equals('foo')); | 2647 unittest.expect(o.description, unittest.equals('foo')); |
2487 checkUnnamed2256(o.disks); | 2648 checkUnnamed2034(o.disks); |
2488 unittest.expect(o.id, unittest.equals('foo')); | 2649 unittest.expect(o.id, unittest.equals('foo')); |
2489 unittest.expect(o.kind, unittest.equals('foo')); | 2650 unittest.expect(o.kind, unittest.equals('foo')); |
2490 unittest.expect(o.machineType, unittest.equals('foo')); | 2651 unittest.expect(o.machineType, unittest.equals('foo')); |
2491 checkMetadata(o.metadata); | 2652 checkMetadata(o.metadata); |
2492 unittest.expect(o.name, unittest.equals('foo')); | 2653 unittest.expect(o.name, unittest.equals('foo')); |
2493 checkUnnamed2257(o.networkInterfaces); | 2654 checkUnnamed2035(o.networkInterfaces); |
2494 checkScheduling(o.scheduling); | 2655 checkScheduling(o.scheduling); |
2495 unittest.expect(o.selfLink, unittest.equals('foo')); | 2656 unittest.expect(o.selfLink, unittest.equals('foo')); |
2496 checkUnnamed2258(o.serviceAccounts); | 2657 checkUnnamed2036(o.serviceAccounts); |
2497 unittest.expect(o.status, unittest.equals('foo')); | 2658 unittest.expect(o.status, unittest.equals('foo')); |
2498 unittest.expect(o.statusMessage, unittest.equals('foo')); | 2659 unittest.expect(o.statusMessage, unittest.equals('foo')); |
2499 checkTags(o.tags); | 2660 checkTags(o.tags); |
2500 unittest.expect(o.zone, unittest.equals('foo')); | 2661 unittest.expect(o.zone, unittest.equals('foo')); |
2501 } | 2662 } |
2502 buildCounterInstance--; | 2663 buildCounterInstance--; |
2503 } | 2664 } |
2504 | 2665 |
2505 buildUnnamed2259() { | 2666 buildUnnamed2037() { |
2506 var o = new core.Map<core.String, api.InstancesScopedList>(); | 2667 var o = new core.Map<core.String, api.InstancesScopedList>(); |
2507 o["x"] = buildInstancesScopedList(); | 2668 o["x"] = buildInstancesScopedList(); |
2508 o["y"] = buildInstancesScopedList(); | 2669 o["y"] = buildInstancesScopedList(); |
2509 return o; | 2670 return o; |
2510 } | 2671 } |
2511 | 2672 |
2512 checkUnnamed2259(core.Map<core.String, api.InstancesScopedList> o) { | 2673 checkUnnamed2037(core.Map<core.String, api.InstancesScopedList> o) { |
2513 unittest.expect(o, unittest.hasLength(2)); | 2674 unittest.expect(o, unittest.hasLength(2)); |
2514 checkInstancesScopedList(o["x"]); | 2675 checkInstancesScopedList(o["x"]); |
2515 checkInstancesScopedList(o["y"]); | 2676 checkInstancesScopedList(o["y"]); |
2516 } | 2677 } |
2517 | 2678 |
2518 core.int buildCounterInstanceAggregatedList = 0; | 2679 core.int buildCounterInstanceAggregatedList = 0; |
2519 buildInstanceAggregatedList() { | 2680 buildInstanceAggregatedList() { |
2520 var o = new api.InstanceAggregatedList(); | 2681 var o = new api.InstanceAggregatedList(); |
2521 buildCounterInstanceAggregatedList++; | 2682 buildCounterInstanceAggregatedList++; |
2522 if (buildCounterInstanceAggregatedList < 3) { | 2683 if (buildCounterInstanceAggregatedList < 3) { |
2523 o.id = "foo"; | 2684 o.id = "foo"; |
2524 o.items = buildUnnamed2259(); | 2685 o.items = buildUnnamed2037(); |
2525 o.kind = "foo"; | 2686 o.kind = "foo"; |
2526 o.nextPageToken = "foo"; | 2687 o.nextPageToken = "foo"; |
2527 o.selfLink = "foo"; | 2688 o.selfLink = "foo"; |
2528 } | 2689 } |
2529 buildCounterInstanceAggregatedList--; | 2690 buildCounterInstanceAggregatedList--; |
2530 return o; | 2691 return o; |
2531 } | 2692 } |
2532 | 2693 |
2533 checkInstanceAggregatedList(api.InstanceAggregatedList o) { | 2694 checkInstanceAggregatedList(api.InstanceAggregatedList o) { |
2534 buildCounterInstanceAggregatedList++; | 2695 buildCounterInstanceAggregatedList++; |
2535 if (buildCounterInstanceAggregatedList < 3) { | 2696 if (buildCounterInstanceAggregatedList < 3) { |
2536 unittest.expect(o.id, unittest.equals('foo')); | 2697 unittest.expect(o.id, unittest.equals('foo')); |
2537 checkUnnamed2259(o.items); | 2698 checkUnnamed2037(o.items); |
2538 unittest.expect(o.kind, unittest.equals('foo')); | 2699 unittest.expect(o.kind, unittest.equals('foo')); |
2539 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2700 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2540 unittest.expect(o.selfLink, unittest.equals('foo')); | 2701 unittest.expect(o.selfLink, unittest.equals('foo')); |
2541 } | 2702 } |
2542 buildCounterInstanceAggregatedList--; | 2703 buildCounterInstanceAggregatedList--; |
2543 } | 2704 } |
2544 | 2705 |
2545 buildUnnamed2260() { | 2706 buildUnnamed2038() { |
2546 var o = new core.List<api.NamedPort>(); | 2707 var o = new core.List<api.NamedPort>(); |
2547 o.add(buildNamedPort()); | 2708 o.add(buildNamedPort()); |
2548 o.add(buildNamedPort()); | 2709 o.add(buildNamedPort()); |
2549 return o; | 2710 return o; |
2550 } | 2711 } |
2551 | 2712 |
2552 checkUnnamed2260(core.List<api.NamedPort> o) { | 2713 checkUnnamed2038(core.List<api.NamedPort> o) { |
2553 unittest.expect(o, unittest.hasLength(2)); | 2714 unittest.expect(o, unittest.hasLength(2)); |
2554 checkNamedPort(o[0]); | 2715 checkNamedPort(o[0]); |
2555 checkNamedPort(o[1]); | 2716 checkNamedPort(o[1]); |
2556 } | 2717 } |
2557 | 2718 |
2558 core.int buildCounterInstanceGroup = 0; | 2719 core.int buildCounterInstanceGroup = 0; |
2559 buildInstanceGroup() { | 2720 buildInstanceGroup() { |
2560 var o = new api.InstanceGroup(); | 2721 var o = new api.InstanceGroup(); |
2561 buildCounterInstanceGroup++; | 2722 buildCounterInstanceGroup++; |
2562 if (buildCounterInstanceGroup < 3) { | 2723 if (buildCounterInstanceGroup < 3) { |
2563 o.creationTimestamp = "foo"; | 2724 o.creationTimestamp = "foo"; |
2564 o.description = "foo"; | 2725 o.description = "foo"; |
2565 o.fingerprint = "foo"; | 2726 o.fingerprint = "foo"; |
2566 o.id = "foo"; | 2727 o.id = "foo"; |
2567 o.kind = "foo"; | 2728 o.kind = "foo"; |
2568 o.name = "foo"; | 2729 o.name = "foo"; |
2569 o.namedPorts = buildUnnamed2260(); | 2730 o.namedPorts = buildUnnamed2038(); |
2570 o.network = "foo"; | 2731 o.network = "foo"; |
2571 o.region = "foo"; | 2732 o.region = "foo"; |
2572 o.selfLink = "foo"; | 2733 o.selfLink = "foo"; |
2573 o.size = 42; | 2734 o.size = 42; |
2574 o.subnetwork = "foo"; | 2735 o.subnetwork = "foo"; |
2575 o.zone = "foo"; | 2736 o.zone = "foo"; |
2576 } | 2737 } |
2577 buildCounterInstanceGroup--; | 2738 buildCounterInstanceGroup--; |
2578 return o; | 2739 return o; |
2579 } | 2740 } |
2580 | 2741 |
2581 checkInstanceGroup(api.InstanceGroup o) { | 2742 checkInstanceGroup(api.InstanceGroup o) { |
2582 buildCounterInstanceGroup++; | 2743 buildCounterInstanceGroup++; |
2583 if (buildCounterInstanceGroup < 3) { | 2744 if (buildCounterInstanceGroup < 3) { |
2584 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2745 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
2585 unittest.expect(o.description, unittest.equals('foo')); | 2746 unittest.expect(o.description, unittest.equals('foo')); |
2586 unittest.expect(o.fingerprint, unittest.equals('foo')); | 2747 unittest.expect(o.fingerprint, unittest.equals('foo')); |
2587 unittest.expect(o.id, unittest.equals('foo')); | 2748 unittest.expect(o.id, unittest.equals('foo')); |
2588 unittest.expect(o.kind, unittest.equals('foo')); | 2749 unittest.expect(o.kind, unittest.equals('foo')); |
2589 unittest.expect(o.name, unittest.equals('foo')); | 2750 unittest.expect(o.name, unittest.equals('foo')); |
2590 checkUnnamed2260(o.namedPorts); | 2751 checkUnnamed2038(o.namedPorts); |
2591 unittest.expect(o.network, unittest.equals('foo')); | 2752 unittest.expect(o.network, unittest.equals('foo')); |
2592 unittest.expect(o.region, unittest.equals('foo')); | 2753 unittest.expect(o.region, unittest.equals('foo')); |
2593 unittest.expect(o.selfLink, unittest.equals('foo')); | 2754 unittest.expect(o.selfLink, unittest.equals('foo')); |
2594 unittest.expect(o.size, unittest.equals(42)); | 2755 unittest.expect(o.size, unittest.equals(42)); |
2595 unittest.expect(o.subnetwork, unittest.equals('foo')); | 2756 unittest.expect(o.subnetwork, unittest.equals('foo')); |
2596 unittest.expect(o.zone, unittest.equals('foo')); | 2757 unittest.expect(o.zone, unittest.equals('foo')); |
2597 } | 2758 } |
2598 buildCounterInstanceGroup--; | 2759 buildCounterInstanceGroup--; |
2599 } | 2760 } |
2600 | 2761 |
2601 buildUnnamed2261() { | 2762 buildUnnamed2039() { |
2602 var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); | 2763 var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); |
2603 o["x"] = buildInstanceGroupsScopedList(); | 2764 o["x"] = buildInstanceGroupsScopedList(); |
2604 o["y"] = buildInstanceGroupsScopedList(); | 2765 o["y"] = buildInstanceGroupsScopedList(); |
2605 return o; | 2766 return o; |
2606 } | 2767 } |
2607 | 2768 |
2608 checkUnnamed2261(core.Map<core.String, api.InstanceGroupsScopedList> o) { | 2769 checkUnnamed2039(core.Map<core.String, api.InstanceGroupsScopedList> o) { |
2609 unittest.expect(o, unittest.hasLength(2)); | 2770 unittest.expect(o, unittest.hasLength(2)); |
2610 checkInstanceGroupsScopedList(o["x"]); | 2771 checkInstanceGroupsScopedList(o["x"]); |
2611 checkInstanceGroupsScopedList(o["y"]); | 2772 checkInstanceGroupsScopedList(o["y"]); |
2612 } | 2773 } |
2613 | 2774 |
2614 core.int buildCounterInstanceGroupAggregatedList = 0; | 2775 core.int buildCounterInstanceGroupAggregatedList = 0; |
2615 buildInstanceGroupAggregatedList() { | 2776 buildInstanceGroupAggregatedList() { |
2616 var o = new api.InstanceGroupAggregatedList(); | 2777 var o = new api.InstanceGroupAggregatedList(); |
2617 buildCounterInstanceGroupAggregatedList++; | 2778 buildCounterInstanceGroupAggregatedList++; |
2618 if (buildCounterInstanceGroupAggregatedList < 3) { | 2779 if (buildCounterInstanceGroupAggregatedList < 3) { |
2619 o.id = "foo"; | 2780 o.id = "foo"; |
2620 o.items = buildUnnamed2261(); | 2781 o.items = buildUnnamed2039(); |
2621 o.kind = "foo"; | 2782 o.kind = "foo"; |
2622 o.nextPageToken = "foo"; | 2783 o.nextPageToken = "foo"; |
2623 o.selfLink = "foo"; | 2784 o.selfLink = "foo"; |
2624 } | 2785 } |
2625 buildCounterInstanceGroupAggregatedList--; | 2786 buildCounterInstanceGroupAggregatedList--; |
2626 return o; | 2787 return o; |
2627 } | 2788 } |
2628 | 2789 |
2629 checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) { | 2790 checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) { |
2630 buildCounterInstanceGroupAggregatedList++; | 2791 buildCounterInstanceGroupAggregatedList++; |
2631 if (buildCounterInstanceGroupAggregatedList < 3) { | 2792 if (buildCounterInstanceGroupAggregatedList < 3) { |
2632 unittest.expect(o.id, unittest.equals('foo')); | 2793 unittest.expect(o.id, unittest.equals('foo')); |
2633 checkUnnamed2261(o.items); | 2794 checkUnnamed2039(o.items); |
2634 unittest.expect(o.kind, unittest.equals('foo')); | 2795 unittest.expect(o.kind, unittest.equals('foo')); |
2635 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2796 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2636 unittest.expect(o.selfLink, unittest.equals('foo')); | 2797 unittest.expect(o.selfLink, unittest.equals('foo')); |
2637 } | 2798 } |
2638 buildCounterInstanceGroupAggregatedList--; | 2799 buildCounterInstanceGroupAggregatedList--; |
2639 } | 2800 } |
2640 | 2801 |
2641 buildUnnamed2262() { | 2802 buildUnnamed2040() { |
2642 var o = new core.List<api.InstanceGroup>(); | 2803 var o = new core.List<api.InstanceGroup>(); |
2643 o.add(buildInstanceGroup()); | 2804 o.add(buildInstanceGroup()); |
2644 o.add(buildInstanceGroup()); | 2805 o.add(buildInstanceGroup()); |
2645 return o; | 2806 return o; |
2646 } | 2807 } |
2647 | 2808 |
2648 checkUnnamed2262(core.List<api.InstanceGroup> o) { | 2809 checkUnnamed2040(core.List<api.InstanceGroup> o) { |
2649 unittest.expect(o, unittest.hasLength(2)); | 2810 unittest.expect(o, unittest.hasLength(2)); |
2650 checkInstanceGroup(o[0]); | 2811 checkInstanceGroup(o[0]); |
2651 checkInstanceGroup(o[1]); | 2812 checkInstanceGroup(o[1]); |
2652 } | 2813 } |
2653 | 2814 |
2654 core.int buildCounterInstanceGroupList = 0; | 2815 core.int buildCounterInstanceGroupList = 0; |
2655 buildInstanceGroupList() { | 2816 buildInstanceGroupList() { |
2656 var o = new api.InstanceGroupList(); | 2817 var o = new api.InstanceGroupList(); |
2657 buildCounterInstanceGroupList++; | 2818 buildCounterInstanceGroupList++; |
2658 if (buildCounterInstanceGroupList < 3) { | 2819 if (buildCounterInstanceGroupList < 3) { |
2659 o.id = "foo"; | 2820 o.id = "foo"; |
2660 o.items = buildUnnamed2262(); | 2821 o.items = buildUnnamed2040(); |
2661 o.kind = "foo"; | 2822 o.kind = "foo"; |
2662 o.nextPageToken = "foo"; | 2823 o.nextPageToken = "foo"; |
2663 o.selfLink = "foo"; | 2824 o.selfLink = "foo"; |
2664 } | 2825 } |
2665 buildCounterInstanceGroupList--; | 2826 buildCounterInstanceGroupList--; |
2666 return o; | 2827 return o; |
2667 } | 2828 } |
2668 | 2829 |
2669 checkInstanceGroupList(api.InstanceGroupList o) { | 2830 checkInstanceGroupList(api.InstanceGroupList o) { |
2670 buildCounterInstanceGroupList++; | 2831 buildCounterInstanceGroupList++; |
2671 if (buildCounterInstanceGroupList < 3) { | 2832 if (buildCounterInstanceGroupList < 3) { |
2672 unittest.expect(o.id, unittest.equals('foo')); | 2833 unittest.expect(o.id, unittest.equals('foo')); |
2673 checkUnnamed2262(o.items); | 2834 checkUnnamed2040(o.items); |
2674 unittest.expect(o.kind, unittest.equals('foo')); | 2835 unittest.expect(o.kind, unittest.equals('foo')); |
2675 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2836 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2676 unittest.expect(o.selfLink, unittest.equals('foo')); | 2837 unittest.expect(o.selfLink, unittest.equals('foo')); |
2677 } | 2838 } |
2678 buildCounterInstanceGroupList--; | 2839 buildCounterInstanceGroupList--; |
2679 } | 2840 } |
2680 | 2841 |
2681 buildUnnamed2263() { | 2842 buildUnnamed2041() { |
2682 var o = new core.List<api.NamedPort>(); | 2843 var o = new core.List<api.NamedPort>(); |
2683 o.add(buildNamedPort()); | 2844 o.add(buildNamedPort()); |
2684 o.add(buildNamedPort()); | 2845 o.add(buildNamedPort()); |
2685 return o; | 2846 return o; |
2686 } | 2847 } |
2687 | 2848 |
2688 checkUnnamed2263(core.List<api.NamedPort> o) { | 2849 checkUnnamed2041(core.List<api.NamedPort> o) { |
2689 unittest.expect(o, unittest.hasLength(2)); | 2850 unittest.expect(o, unittest.hasLength(2)); |
2690 checkNamedPort(o[0]); | 2851 checkNamedPort(o[0]); |
2691 checkNamedPort(o[1]); | 2852 checkNamedPort(o[1]); |
2692 } | 2853 } |
2693 | 2854 |
2694 buildUnnamed2264() { | 2855 buildUnnamed2042() { |
2695 var o = new core.List<core.String>(); | 2856 var o = new core.List<core.String>(); |
2696 o.add("foo"); | 2857 o.add("foo"); |
2697 o.add("foo"); | 2858 o.add("foo"); |
2698 return o; | 2859 return o; |
2699 } | 2860 } |
2700 | 2861 |
2701 checkUnnamed2264(core.List<core.String> o) { | 2862 checkUnnamed2042(core.List<core.String> o) { |
2702 unittest.expect(o, unittest.hasLength(2)); | 2863 unittest.expect(o, unittest.hasLength(2)); |
2703 unittest.expect(o[0], unittest.equals('foo')); | 2864 unittest.expect(o[0], unittest.equals('foo')); |
2704 unittest.expect(o[1], unittest.equals('foo')); | 2865 unittest.expect(o[1], unittest.equals('foo')); |
2705 } | 2866 } |
2706 | 2867 |
2707 core.int buildCounterInstanceGroupManager = 0; | 2868 core.int buildCounterInstanceGroupManager = 0; |
2708 buildInstanceGroupManager() { | 2869 buildInstanceGroupManager() { |
2709 var o = new api.InstanceGroupManager(); | 2870 var o = new api.InstanceGroupManager(); |
2710 buildCounterInstanceGroupManager++; | 2871 buildCounterInstanceGroupManager++; |
2711 if (buildCounterInstanceGroupManager < 3) { | 2872 if (buildCounterInstanceGroupManager < 3) { |
2712 o.baseInstanceName = "foo"; | 2873 o.baseInstanceName = "foo"; |
2713 o.creationTimestamp = "foo"; | 2874 o.creationTimestamp = "foo"; |
2714 o.currentActions = buildInstanceGroupManagerActionsSummary(); | 2875 o.currentActions = buildInstanceGroupManagerActionsSummary(); |
2715 o.description = "foo"; | 2876 o.description = "foo"; |
2716 o.fingerprint = "foo"; | 2877 o.fingerprint = "foo"; |
2717 o.id = "foo"; | 2878 o.id = "foo"; |
2718 o.instanceGroup = "foo"; | 2879 o.instanceGroup = "foo"; |
2719 o.instanceTemplate = "foo"; | 2880 o.instanceTemplate = "foo"; |
2720 o.kind = "foo"; | 2881 o.kind = "foo"; |
2721 o.name = "foo"; | 2882 o.name = "foo"; |
2722 o.namedPorts = buildUnnamed2263(); | 2883 o.namedPorts = buildUnnamed2041(); |
2723 o.region = "foo"; | 2884 o.region = "foo"; |
2724 o.selfLink = "foo"; | 2885 o.selfLink = "foo"; |
2725 o.targetPools = buildUnnamed2264(); | 2886 o.targetPools = buildUnnamed2042(); |
2726 o.targetSize = 42; | 2887 o.targetSize = 42; |
2727 o.zone = "foo"; | 2888 o.zone = "foo"; |
2728 } | 2889 } |
2729 buildCounterInstanceGroupManager--; | 2890 buildCounterInstanceGroupManager--; |
2730 return o; | 2891 return o; |
2731 } | 2892 } |
2732 | 2893 |
2733 checkInstanceGroupManager(api.InstanceGroupManager o) { | 2894 checkInstanceGroupManager(api.InstanceGroupManager o) { |
2734 buildCounterInstanceGroupManager++; | 2895 buildCounterInstanceGroupManager++; |
2735 if (buildCounterInstanceGroupManager < 3) { | 2896 if (buildCounterInstanceGroupManager < 3) { |
2736 unittest.expect(o.baseInstanceName, unittest.equals('foo')); | 2897 unittest.expect(o.baseInstanceName, unittest.equals('foo')); |
2737 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2898 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
2738 checkInstanceGroupManagerActionsSummary(o.currentActions); | 2899 checkInstanceGroupManagerActionsSummary(o.currentActions); |
2739 unittest.expect(o.description, unittest.equals('foo')); | 2900 unittest.expect(o.description, unittest.equals('foo')); |
2740 unittest.expect(o.fingerprint, unittest.equals('foo')); | 2901 unittest.expect(o.fingerprint, unittest.equals('foo')); |
2741 unittest.expect(o.id, unittest.equals('foo')); | 2902 unittest.expect(o.id, unittest.equals('foo')); |
2742 unittest.expect(o.instanceGroup, unittest.equals('foo')); | 2903 unittest.expect(o.instanceGroup, unittest.equals('foo')); |
2743 unittest.expect(o.instanceTemplate, unittest.equals('foo')); | 2904 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
2744 unittest.expect(o.kind, unittest.equals('foo')); | 2905 unittest.expect(o.kind, unittest.equals('foo')); |
2745 unittest.expect(o.name, unittest.equals('foo')); | 2906 unittest.expect(o.name, unittest.equals('foo')); |
2746 checkUnnamed2263(o.namedPorts); | 2907 checkUnnamed2041(o.namedPorts); |
2747 unittest.expect(o.region, unittest.equals('foo')); | 2908 unittest.expect(o.region, unittest.equals('foo')); |
2748 unittest.expect(o.selfLink, unittest.equals('foo')); | 2909 unittest.expect(o.selfLink, unittest.equals('foo')); |
2749 checkUnnamed2264(o.targetPools); | 2910 checkUnnamed2042(o.targetPools); |
2750 unittest.expect(o.targetSize, unittest.equals(42)); | 2911 unittest.expect(o.targetSize, unittest.equals(42)); |
2751 unittest.expect(o.zone, unittest.equals('foo')); | 2912 unittest.expect(o.zone, unittest.equals('foo')); |
2752 } | 2913 } |
2753 buildCounterInstanceGroupManager--; | 2914 buildCounterInstanceGroupManager--; |
2754 } | 2915 } |
2755 | 2916 |
2756 core.int buildCounterInstanceGroupManagerActionsSummary = 0; | 2917 core.int buildCounterInstanceGroupManagerActionsSummary = 0; |
2757 buildInstanceGroupManagerActionsSummary() { | 2918 buildInstanceGroupManagerActionsSummary() { |
2758 var o = new api.InstanceGroupManagerActionsSummary(); | 2919 var o = new api.InstanceGroupManagerActionsSummary(); |
2759 buildCounterInstanceGroupManagerActionsSummary++; | 2920 buildCounterInstanceGroupManagerActionsSummary++; |
(...skipping 19 matching lines...) Expand all Loading... |
2779 unittest.expect(o.creatingWithoutRetries, unittest.equals(42)); | 2940 unittest.expect(o.creatingWithoutRetries, unittest.equals(42)); |
2780 unittest.expect(o.deleting, unittest.equals(42)); | 2941 unittest.expect(o.deleting, unittest.equals(42)); |
2781 unittest.expect(o.none, unittest.equals(42)); | 2942 unittest.expect(o.none, unittest.equals(42)); |
2782 unittest.expect(o.recreating, unittest.equals(42)); | 2943 unittest.expect(o.recreating, unittest.equals(42)); |
2783 unittest.expect(o.refreshing, unittest.equals(42)); | 2944 unittest.expect(o.refreshing, unittest.equals(42)); |
2784 unittest.expect(o.restarting, unittest.equals(42)); | 2945 unittest.expect(o.restarting, unittest.equals(42)); |
2785 } | 2946 } |
2786 buildCounterInstanceGroupManagerActionsSummary--; | 2947 buildCounterInstanceGroupManagerActionsSummary--; |
2787 } | 2948 } |
2788 | 2949 |
2789 buildUnnamed2265() { | 2950 buildUnnamed2043() { |
2790 var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); | 2951 var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); |
2791 o["x"] = buildInstanceGroupManagersScopedList(); | 2952 o["x"] = buildInstanceGroupManagersScopedList(); |
2792 o["y"] = buildInstanceGroupManagersScopedList(); | 2953 o["y"] = buildInstanceGroupManagersScopedList(); |
2793 return o; | 2954 return o; |
2794 } | 2955 } |
2795 | 2956 |
2796 checkUnnamed2265(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { | 2957 checkUnnamed2043(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { |
2797 unittest.expect(o, unittest.hasLength(2)); | 2958 unittest.expect(o, unittest.hasLength(2)); |
2798 checkInstanceGroupManagersScopedList(o["x"]); | 2959 checkInstanceGroupManagersScopedList(o["x"]); |
2799 checkInstanceGroupManagersScopedList(o["y"]); | 2960 checkInstanceGroupManagersScopedList(o["y"]); |
2800 } | 2961 } |
2801 | 2962 |
2802 core.int buildCounterInstanceGroupManagerAggregatedList = 0; | 2963 core.int buildCounterInstanceGroupManagerAggregatedList = 0; |
2803 buildInstanceGroupManagerAggregatedList() { | 2964 buildInstanceGroupManagerAggregatedList() { |
2804 var o = new api.InstanceGroupManagerAggregatedList(); | 2965 var o = new api.InstanceGroupManagerAggregatedList(); |
2805 buildCounterInstanceGroupManagerAggregatedList++; | 2966 buildCounterInstanceGroupManagerAggregatedList++; |
2806 if (buildCounterInstanceGroupManagerAggregatedList < 3) { | 2967 if (buildCounterInstanceGroupManagerAggregatedList < 3) { |
2807 o.id = "foo"; | 2968 o.id = "foo"; |
2808 o.items = buildUnnamed2265(); | 2969 o.items = buildUnnamed2043(); |
2809 o.kind = "foo"; | 2970 o.kind = "foo"; |
2810 o.nextPageToken = "foo"; | 2971 o.nextPageToken = "foo"; |
2811 o.selfLink = "foo"; | 2972 o.selfLink = "foo"; |
2812 } | 2973 } |
2813 buildCounterInstanceGroupManagerAggregatedList--; | 2974 buildCounterInstanceGroupManagerAggregatedList--; |
2814 return o; | 2975 return o; |
2815 } | 2976 } |
2816 | 2977 |
2817 checkInstanceGroupManagerAggregatedList(api.InstanceGroupManagerAggregatedList o
) { | 2978 checkInstanceGroupManagerAggregatedList(api.InstanceGroupManagerAggregatedList o
) { |
2818 buildCounterInstanceGroupManagerAggregatedList++; | 2979 buildCounterInstanceGroupManagerAggregatedList++; |
2819 if (buildCounterInstanceGroupManagerAggregatedList < 3) { | 2980 if (buildCounterInstanceGroupManagerAggregatedList < 3) { |
2820 unittest.expect(o.id, unittest.equals('foo')); | 2981 unittest.expect(o.id, unittest.equals('foo')); |
2821 checkUnnamed2265(o.items); | 2982 checkUnnamed2043(o.items); |
2822 unittest.expect(o.kind, unittest.equals('foo')); | 2983 unittest.expect(o.kind, unittest.equals('foo')); |
2823 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2984 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2824 unittest.expect(o.selfLink, unittest.equals('foo')); | 2985 unittest.expect(o.selfLink, unittest.equals('foo')); |
2825 } | 2986 } |
2826 buildCounterInstanceGroupManagerAggregatedList--; | 2987 buildCounterInstanceGroupManagerAggregatedList--; |
2827 } | 2988 } |
2828 | 2989 |
2829 buildUnnamed2266() { | 2990 buildUnnamed2044() { |
2830 var o = new core.List<api.InstanceGroupManager>(); | 2991 var o = new core.List<api.InstanceGroupManager>(); |
2831 o.add(buildInstanceGroupManager()); | 2992 o.add(buildInstanceGroupManager()); |
2832 o.add(buildInstanceGroupManager()); | 2993 o.add(buildInstanceGroupManager()); |
2833 return o; | 2994 return o; |
2834 } | 2995 } |
2835 | 2996 |
2836 checkUnnamed2266(core.List<api.InstanceGroupManager> o) { | 2997 checkUnnamed2044(core.List<api.InstanceGroupManager> o) { |
2837 unittest.expect(o, unittest.hasLength(2)); | 2998 unittest.expect(o, unittest.hasLength(2)); |
2838 checkInstanceGroupManager(o[0]); | 2999 checkInstanceGroupManager(o[0]); |
2839 checkInstanceGroupManager(o[1]); | 3000 checkInstanceGroupManager(o[1]); |
2840 } | 3001 } |
2841 | 3002 |
2842 core.int buildCounterInstanceGroupManagerList = 0; | 3003 core.int buildCounterInstanceGroupManagerList = 0; |
2843 buildInstanceGroupManagerList() { | 3004 buildInstanceGroupManagerList() { |
2844 var o = new api.InstanceGroupManagerList(); | 3005 var o = new api.InstanceGroupManagerList(); |
2845 buildCounterInstanceGroupManagerList++; | 3006 buildCounterInstanceGroupManagerList++; |
2846 if (buildCounterInstanceGroupManagerList < 3) { | 3007 if (buildCounterInstanceGroupManagerList < 3) { |
2847 o.id = "foo"; | 3008 o.id = "foo"; |
2848 o.items = buildUnnamed2266(); | 3009 o.items = buildUnnamed2044(); |
2849 o.kind = "foo"; | 3010 o.kind = "foo"; |
2850 o.nextPageToken = "foo"; | 3011 o.nextPageToken = "foo"; |
2851 o.selfLink = "foo"; | 3012 o.selfLink = "foo"; |
2852 } | 3013 } |
2853 buildCounterInstanceGroupManagerList--; | 3014 buildCounterInstanceGroupManagerList--; |
2854 return o; | 3015 return o; |
2855 } | 3016 } |
2856 | 3017 |
2857 checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { | 3018 checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { |
2858 buildCounterInstanceGroupManagerList++; | 3019 buildCounterInstanceGroupManagerList++; |
2859 if (buildCounterInstanceGroupManagerList < 3) { | 3020 if (buildCounterInstanceGroupManagerList < 3) { |
2860 unittest.expect(o.id, unittest.equals('foo')); | 3021 unittest.expect(o.id, unittest.equals('foo')); |
2861 checkUnnamed2266(o.items); | 3022 checkUnnamed2044(o.items); |
2862 unittest.expect(o.kind, unittest.equals('foo')); | 3023 unittest.expect(o.kind, unittest.equals('foo')); |
2863 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3024 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2864 unittest.expect(o.selfLink, unittest.equals('foo')); | 3025 unittest.expect(o.selfLink, unittest.equals('foo')); |
2865 } | 3026 } |
2866 buildCounterInstanceGroupManagerList--; | 3027 buildCounterInstanceGroupManagerList--; |
2867 } | 3028 } |
2868 | 3029 |
2869 buildUnnamed2267() { | 3030 buildUnnamed2045() { |
2870 var o = new core.List<core.String>(); | 3031 var o = new core.List<core.String>(); |
2871 o.add("foo"); | 3032 o.add("foo"); |
2872 o.add("foo"); | 3033 o.add("foo"); |
2873 return o; | 3034 return o; |
2874 } | 3035 } |
2875 | 3036 |
2876 checkUnnamed2267(core.List<core.String> o) { | 3037 checkUnnamed2045(core.List<core.String> o) { |
2877 unittest.expect(o, unittest.hasLength(2)); | 3038 unittest.expect(o, unittest.hasLength(2)); |
2878 unittest.expect(o[0], unittest.equals('foo')); | 3039 unittest.expect(o[0], unittest.equals('foo')); |
2879 unittest.expect(o[1], unittest.equals('foo')); | 3040 unittest.expect(o[1], unittest.equals('foo')); |
2880 } | 3041 } |
2881 | 3042 |
2882 core.int buildCounterInstanceGroupManagersAbandonInstancesRequest = 0; | 3043 core.int buildCounterInstanceGroupManagersAbandonInstancesRequest = 0; |
2883 buildInstanceGroupManagersAbandonInstancesRequest() { | 3044 buildInstanceGroupManagersAbandonInstancesRequest() { |
2884 var o = new api.InstanceGroupManagersAbandonInstancesRequest(); | 3045 var o = new api.InstanceGroupManagersAbandonInstancesRequest(); |
2885 buildCounterInstanceGroupManagersAbandonInstancesRequest++; | 3046 buildCounterInstanceGroupManagersAbandonInstancesRequest++; |
2886 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { | 3047 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { |
2887 o.instances = buildUnnamed2267(); | 3048 o.instances = buildUnnamed2045(); |
2888 } | 3049 } |
2889 buildCounterInstanceGroupManagersAbandonInstancesRequest--; | 3050 buildCounterInstanceGroupManagersAbandonInstancesRequest--; |
2890 return o; | 3051 return o; |
2891 } | 3052 } |
2892 | 3053 |
2893 checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAband
onInstancesRequest o) { | 3054 checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAband
onInstancesRequest o) { |
2894 buildCounterInstanceGroupManagersAbandonInstancesRequest++; | 3055 buildCounterInstanceGroupManagersAbandonInstancesRequest++; |
2895 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { | 3056 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { |
2896 checkUnnamed2267(o.instances); | 3057 checkUnnamed2045(o.instances); |
2897 } | 3058 } |
2898 buildCounterInstanceGroupManagersAbandonInstancesRequest--; | 3059 buildCounterInstanceGroupManagersAbandonInstancesRequest--; |
2899 } | 3060 } |
2900 | 3061 |
2901 buildUnnamed2268() { | 3062 buildUnnamed2046() { |
2902 var o = new core.List<core.String>(); | 3063 var o = new core.List<core.String>(); |
2903 o.add("foo"); | 3064 o.add("foo"); |
2904 o.add("foo"); | 3065 o.add("foo"); |
2905 return o; | 3066 return o; |
2906 } | 3067 } |
2907 | 3068 |
2908 checkUnnamed2268(core.List<core.String> o) { | 3069 checkUnnamed2046(core.List<core.String> o) { |
2909 unittest.expect(o, unittest.hasLength(2)); | 3070 unittest.expect(o, unittest.hasLength(2)); |
2910 unittest.expect(o[0], unittest.equals('foo')); | 3071 unittest.expect(o[0], unittest.equals('foo')); |
2911 unittest.expect(o[1], unittest.equals('foo')); | 3072 unittest.expect(o[1], unittest.equals('foo')); |
2912 } | 3073 } |
2913 | 3074 |
2914 core.int buildCounterInstanceGroupManagersDeleteInstancesRequest = 0; | 3075 core.int buildCounterInstanceGroupManagersDeleteInstancesRequest = 0; |
2915 buildInstanceGroupManagersDeleteInstancesRequest() { | 3076 buildInstanceGroupManagersDeleteInstancesRequest() { |
2916 var o = new api.InstanceGroupManagersDeleteInstancesRequest(); | 3077 var o = new api.InstanceGroupManagersDeleteInstancesRequest(); |
2917 buildCounterInstanceGroupManagersDeleteInstancesRequest++; | 3078 buildCounterInstanceGroupManagersDeleteInstancesRequest++; |
2918 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { | 3079 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { |
2919 o.instances = buildUnnamed2268(); | 3080 o.instances = buildUnnamed2046(); |
2920 } | 3081 } |
2921 buildCounterInstanceGroupManagersDeleteInstancesRequest--; | 3082 buildCounterInstanceGroupManagersDeleteInstancesRequest--; |
2922 return o; | 3083 return o; |
2923 } | 3084 } |
2924 | 3085 |
2925 checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDelete
InstancesRequest o) { | 3086 checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDelete
InstancesRequest o) { |
2926 buildCounterInstanceGroupManagersDeleteInstancesRequest++; | 3087 buildCounterInstanceGroupManagersDeleteInstancesRequest++; |
2927 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { | 3088 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { |
2928 checkUnnamed2268(o.instances); | 3089 checkUnnamed2046(o.instances); |
2929 } | 3090 } |
2930 buildCounterInstanceGroupManagersDeleteInstancesRequest--; | 3091 buildCounterInstanceGroupManagersDeleteInstancesRequest--; |
2931 } | 3092 } |
2932 | 3093 |
2933 buildUnnamed2269() { | 3094 buildUnnamed2047() { |
2934 var o = new core.List<api.ManagedInstance>(); | 3095 var o = new core.List<api.ManagedInstance>(); |
2935 o.add(buildManagedInstance()); | 3096 o.add(buildManagedInstance()); |
2936 o.add(buildManagedInstance()); | 3097 o.add(buildManagedInstance()); |
2937 return o; | 3098 return o; |
2938 } | 3099 } |
2939 | 3100 |
2940 checkUnnamed2269(core.List<api.ManagedInstance> o) { | 3101 checkUnnamed2047(core.List<api.ManagedInstance> o) { |
2941 unittest.expect(o, unittest.hasLength(2)); | 3102 unittest.expect(o, unittest.hasLength(2)); |
2942 checkManagedInstance(o[0]); | 3103 checkManagedInstance(o[0]); |
2943 checkManagedInstance(o[1]); | 3104 checkManagedInstance(o[1]); |
2944 } | 3105 } |
2945 | 3106 |
2946 core.int buildCounterInstanceGroupManagersListManagedInstancesResponse = 0; | 3107 core.int buildCounterInstanceGroupManagersListManagedInstancesResponse = 0; |
2947 buildInstanceGroupManagersListManagedInstancesResponse() { | 3108 buildInstanceGroupManagersListManagedInstancesResponse() { |
2948 var o = new api.InstanceGroupManagersListManagedInstancesResponse(); | 3109 var o = new api.InstanceGroupManagersListManagedInstancesResponse(); |
2949 buildCounterInstanceGroupManagersListManagedInstancesResponse++; | 3110 buildCounterInstanceGroupManagersListManagedInstancesResponse++; |
2950 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { | 3111 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { |
2951 o.managedInstances = buildUnnamed2269(); | 3112 o.managedInstances = buildUnnamed2047(); |
2952 } | 3113 } |
2953 buildCounterInstanceGroupManagersListManagedInstancesResponse--; | 3114 buildCounterInstanceGroupManagersListManagedInstancesResponse--; |
2954 return o; | 3115 return o; |
2955 } | 3116 } |
2956 | 3117 |
2957 checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagers
ListManagedInstancesResponse o) { | 3118 checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagers
ListManagedInstancesResponse o) { |
2958 buildCounterInstanceGroupManagersListManagedInstancesResponse++; | 3119 buildCounterInstanceGroupManagersListManagedInstancesResponse++; |
2959 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { | 3120 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { |
2960 checkUnnamed2269(o.managedInstances); | 3121 checkUnnamed2047(o.managedInstances); |
2961 } | 3122 } |
2962 buildCounterInstanceGroupManagersListManagedInstancesResponse--; | 3123 buildCounterInstanceGroupManagersListManagedInstancesResponse--; |
2963 } | 3124 } |
2964 | 3125 |
2965 buildUnnamed2270() { | 3126 buildUnnamed2048() { |
2966 var o = new core.List<core.String>(); | 3127 var o = new core.List<core.String>(); |
2967 o.add("foo"); | 3128 o.add("foo"); |
2968 o.add("foo"); | 3129 o.add("foo"); |
2969 return o; | 3130 return o; |
2970 } | 3131 } |
2971 | 3132 |
2972 checkUnnamed2270(core.List<core.String> o) { | 3133 checkUnnamed2048(core.List<core.String> o) { |
2973 unittest.expect(o, unittest.hasLength(2)); | 3134 unittest.expect(o, unittest.hasLength(2)); |
2974 unittest.expect(o[0], unittest.equals('foo')); | 3135 unittest.expect(o[0], unittest.equals('foo')); |
2975 unittest.expect(o[1], unittest.equals('foo')); | 3136 unittest.expect(o[1], unittest.equals('foo')); |
2976 } | 3137 } |
2977 | 3138 |
2978 core.int buildCounterInstanceGroupManagersRecreateInstancesRequest = 0; | 3139 core.int buildCounterInstanceGroupManagersRecreateInstancesRequest = 0; |
2979 buildInstanceGroupManagersRecreateInstancesRequest() { | 3140 buildInstanceGroupManagersRecreateInstancesRequest() { |
2980 var o = new api.InstanceGroupManagersRecreateInstancesRequest(); | 3141 var o = new api.InstanceGroupManagersRecreateInstancesRequest(); |
2981 buildCounterInstanceGroupManagersRecreateInstancesRequest++; | 3142 buildCounterInstanceGroupManagersRecreateInstancesRequest++; |
2982 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { | 3143 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { |
2983 o.instances = buildUnnamed2270(); | 3144 o.instances = buildUnnamed2048(); |
2984 } | 3145 } |
2985 buildCounterInstanceGroupManagersRecreateInstancesRequest--; | 3146 buildCounterInstanceGroupManagersRecreateInstancesRequest--; |
2986 return o; | 3147 return o; |
2987 } | 3148 } |
2988 | 3149 |
2989 checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecr
eateInstancesRequest o) { | 3150 checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecr
eateInstancesRequest o) { |
2990 buildCounterInstanceGroupManagersRecreateInstancesRequest++; | 3151 buildCounterInstanceGroupManagersRecreateInstancesRequest++; |
2991 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { | 3152 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { |
2992 checkUnnamed2270(o.instances); | 3153 checkUnnamed2048(o.instances); |
2993 } | 3154 } |
2994 buildCounterInstanceGroupManagersRecreateInstancesRequest--; | 3155 buildCounterInstanceGroupManagersRecreateInstancesRequest--; |
2995 } | 3156 } |
2996 | 3157 |
2997 buildUnnamed2271() { | 3158 buildUnnamed2049() { |
2998 var o = new core.List<api.InstanceGroupManager>(); | 3159 var o = new core.List<api.InstanceGroupManager>(); |
2999 o.add(buildInstanceGroupManager()); | 3160 o.add(buildInstanceGroupManager()); |
3000 o.add(buildInstanceGroupManager()); | 3161 o.add(buildInstanceGroupManager()); |
3001 return o; | 3162 return o; |
3002 } | 3163 } |
3003 | 3164 |
3004 checkUnnamed2271(core.List<api.InstanceGroupManager> o) { | 3165 checkUnnamed2049(core.List<api.InstanceGroupManager> o) { |
3005 unittest.expect(o, unittest.hasLength(2)); | 3166 unittest.expect(o, unittest.hasLength(2)); |
3006 checkInstanceGroupManager(o[0]); | 3167 checkInstanceGroupManager(o[0]); |
3007 checkInstanceGroupManager(o[1]); | 3168 checkInstanceGroupManager(o[1]); |
3008 } | 3169 } |
3009 | 3170 |
3010 core.int buildCounterInstanceGroupManagersScopedListWarningData = 0; | 3171 core.int buildCounterInstanceGroupManagersScopedListWarningData = 0; |
3011 buildInstanceGroupManagersScopedListWarningData() { | 3172 buildInstanceGroupManagersScopedListWarningData() { |
3012 var o = new api.InstanceGroupManagersScopedListWarningData(); | 3173 var o = new api.InstanceGroupManagersScopedListWarningData(); |
3013 buildCounterInstanceGroupManagersScopedListWarningData++; | 3174 buildCounterInstanceGroupManagersScopedListWarningData++; |
3014 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { | 3175 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { |
3015 o.key = "foo"; | 3176 o.key = "foo"; |
3016 o.value = "foo"; | 3177 o.value = "foo"; |
3017 } | 3178 } |
3018 buildCounterInstanceGroupManagersScopedListWarningData--; | 3179 buildCounterInstanceGroupManagersScopedListWarningData--; |
3019 return o; | 3180 return o; |
3020 } | 3181 } |
3021 | 3182 |
3022 checkInstanceGroupManagersScopedListWarningData(api.InstanceGroupManagersScopedL
istWarningData o) { | 3183 checkInstanceGroupManagersScopedListWarningData(api.InstanceGroupManagersScopedL
istWarningData o) { |
3023 buildCounterInstanceGroupManagersScopedListWarningData++; | 3184 buildCounterInstanceGroupManagersScopedListWarningData++; |
3024 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { | 3185 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { |
3025 unittest.expect(o.key, unittest.equals('foo')); | 3186 unittest.expect(o.key, unittest.equals('foo')); |
3026 unittest.expect(o.value, unittest.equals('foo')); | 3187 unittest.expect(o.value, unittest.equals('foo')); |
3027 } | 3188 } |
3028 buildCounterInstanceGroupManagersScopedListWarningData--; | 3189 buildCounterInstanceGroupManagersScopedListWarningData--; |
3029 } | 3190 } |
3030 | 3191 |
3031 buildUnnamed2272() { | 3192 buildUnnamed2050() { |
3032 var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); | 3193 var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); |
3033 o.add(buildInstanceGroupManagersScopedListWarningData()); | 3194 o.add(buildInstanceGroupManagersScopedListWarningData()); |
3034 o.add(buildInstanceGroupManagersScopedListWarningData()); | 3195 o.add(buildInstanceGroupManagersScopedListWarningData()); |
3035 return o; | 3196 return o; |
3036 } | 3197 } |
3037 | 3198 |
3038 checkUnnamed2272(core.List<api.InstanceGroupManagersScopedListWarningData> o) { | 3199 checkUnnamed2050(core.List<api.InstanceGroupManagersScopedListWarningData> o) { |
3039 unittest.expect(o, unittest.hasLength(2)); | 3200 unittest.expect(o, unittest.hasLength(2)); |
3040 checkInstanceGroupManagersScopedListWarningData(o[0]); | 3201 checkInstanceGroupManagersScopedListWarningData(o[0]); |
3041 checkInstanceGroupManagersScopedListWarningData(o[1]); | 3202 checkInstanceGroupManagersScopedListWarningData(o[1]); |
3042 } | 3203 } |
3043 | 3204 |
3044 core.int buildCounterInstanceGroupManagersScopedListWarning = 0; | 3205 core.int buildCounterInstanceGroupManagersScopedListWarning = 0; |
3045 buildInstanceGroupManagersScopedListWarning() { | 3206 buildInstanceGroupManagersScopedListWarning() { |
3046 var o = new api.InstanceGroupManagersScopedListWarning(); | 3207 var o = new api.InstanceGroupManagersScopedListWarning(); |
3047 buildCounterInstanceGroupManagersScopedListWarning++; | 3208 buildCounterInstanceGroupManagersScopedListWarning++; |
3048 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { | 3209 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { |
3049 o.code = "foo"; | 3210 o.code = "foo"; |
3050 o.data = buildUnnamed2272(); | 3211 o.data = buildUnnamed2050(); |
3051 o.message = "foo"; | 3212 o.message = "foo"; |
3052 } | 3213 } |
3053 buildCounterInstanceGroupManagersScopedListWarning--; | 3214 buildCounterInstanceGroupManagersScopedListWarning--; |
3054 return o; | 3215 return o; |
3055 } | 3216 } |
3056 | 3217 |
3057 checkInstanceGroupManagersScopedListWarning(api.InstanceGroupManagersScopedListW
arning o) { | 3218 checkInstanceGroupManagersScopedListWarning(api.InstanceGroupManagersScopedListW
arning o) { |
3058 buildCounterInstanceGroupManagersScopedListWarning++; | 3219 buildCounterInstanceGroupManagersScopedListWarning++; |
3059 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { | 3220 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { |
3060 unittest.expect(o.code, unittest.equals('foo')); | 3221 unittest.expect(o.code, unittest.equals('foo')); |
3061 checkUnnamed2272(o.data); | 3222 checkUnnamed2050(o.data); |
3062 unittest.expect(o.message, unittest.equals('foo')); | 3223 unittest.expect(o.message, unittest.equals('foo')); |
3063 } | 3224 } |
3064 buildCounterInstanceGroupManagersScopedListWarning--; | 3225 buildCounterInstanceGroupManagersScopedListWarning--; |
3065 } | 3226 } |
3066 | 3227 |
3067 core.int buildCounterInstanceGroupManagersScopedList = 0; | 3228 core.int buildCounterInstanceGroupManagersScopedList = 0; |
3068 buildInstanceGroupManagersScopedList() { | 3229 buildInstanceGroupManagersScopedList() { |
3069 var o = new api.InstanceGroupManagersScopedList(); | 3230 var o = new api.InstanceGroupManagersScopedList(); |
3070 buildCounterInstanceGroupManagersScopedList++; | 3231 buildCounterInstanceGroupManagersScopedList++; |
3071 if (buildCounterInstanceGroupManagersScopedList < 3) { | 3232 if (buildCounterInstanceGroupManagersScopedList < 3) { |
3072 o.instanceGroupManagers = buildUnnamed2271(); | 3233 o.instanceGroupManagers = buildUnnamed2049(); |
3073 o.warning = buildInstanceGroupManagersScopedListWarning(); | 3234 o.warning = buildInstanceGroupManagersScopedListWarning(); |
3074 } | 3235 } |
3075 buildCounterInstanceGroupManagersScopedList--; | 3236 buildCounterInstanceGroupManagersScopedList--; |
3076 return o; | 3237 return o; |
3077 } | 3238 } |
3078 | 3239 |
3079 checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { | 3240 checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { |
3080 buildCounterInstanceGroupManagersScopedList++; | 3241 buildCounterInstanceGroupManagersScopedList++; |
3081 if (buildCounterInstanceGroupManagersScopedList < 3) { | 3242 if (buildCounterInstanceGroupManagersScopedList < 3) { |
3082 checkUnnamed2271(o.instanceGroupManagers); | 3243 checkUnnamed2049(o.instanceGroupManagers); |
3083 checkInstanceGroupManagersScopedListWarning(o.warning); | 3244 checkInstanceGroupManagersScopedListWarning(o.warning); |
3084 } | 3245 } |
3085 buildCounterInstanceGroupManagersScopedList--; | 3246 buildCounterInstanceGroupManagersScopedList--; |
3086 } | 3247 } |
3087 | 3248 |
3088 core.int buildCounterInstanceGroupManagersSetInstanceTemplateRequest = 0; | 3249 core.int buildCounterInstanceGroupManagersSetInstanceTemplateRequest = 0; |
3089 buildInstanceGroupManagersSetInstanceTemplateRequest() { | 3250 buildInstanceGroupManagersSetInstanceTemplateRequest() { |
3090 var o = new api.InstanceGroupManagersSetInstanceTemplateRequest(); | 3251 var o = new api.InstanceGroupManagersSetInstanceTemplateRequest(); |
3091 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; | 3252 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; |
3092 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { | 3253 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { |
3093 o.instanceTemplate = "foo"; | 3254 o.instanceTemplate = "foo"; |
3094 } | 3255 } |
3095 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; | 3256 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; |
3096 return o; | 3257 return o; |
3097 } | 3258 } |
3098 | 3259 |
3099 checkInstanceGroupManagersSetInstanceTemplateRequest(api.InstanceGroupManagersSe
tInstanceTemplateRequest o) { | 3260 checkInstanceGroupManagersSetInstanceTemplateRequest(api.InstanceGroupManagersSe
tInstanceTemplateRequest o) { |
3100 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; | 3261 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; |
3101 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { | 3262 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { |
3102 unittest.expect(o.instanceTemplate, unittest.equals('foo')); | 3263 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
3103 } | 3264 } |
3104 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; | 3265 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; |
3105 } | 3266 } |
3106 | 3267 |
3107 buildUnnamed2273() { | 3268 buildUnnamed2051() { |
3108 var o = new core.List<core.String>(); | 3269 var o = new core.List<core.String>(); |
3109 o.add("foo"); | 3270 o.add("foo"); |
3110 o.add("foo"); | 3271 o.add("foo"); |
3111 return o; | 3272 return o; |
3112 } | 3273 } |
3113 | 3274 |
3114 checkUnnamed2273(core.List<core.String> o) { | 3275 checkUnnamed2051(core.List<core.String> o) { |
3115 unittest.expect(o, unittest.hasLength(2)); | 3276 unittest.expect(o, unittest.hasLength(2)); |
3116 unittest.expect(o[0], unittest.equals('foo')); | 3277 unittest.expect(o[0], unittest.equals('foo')); |
3117 unittest.expect(o[1], unittest.equals('foo')); | 3278 unittest.expect(o[1], unittest.equals('foo')); |
3118 } | 3279 } |
3119 | 3280 |
3120 core.int buildCounterInstanceGroupManagersSetTargetPoolsRequest = 0; | 3281 core.int buildCounterInstanceGroupManagersSetTargetPoolsRequest = 0; |
3121 buildInstanceGroupManagersSetTargetPoolsRequest() { | 3282 buildInstanceGroupManagersSetTargetPoolsRequest() { |
3122 var o = new api.InstanceGroupManagersSetTargetPoolsRequest(); | 3283 var o = new api.InstanceGroupManagersSetTargetPoolsRequest(); |
3123 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; | 3284 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; |
3124 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { | 3285 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { |
3125 o.fingerprint = "foo"; | 3286 o.fingerprint = "foo"; |
3126 o.targetPools = buildUnnamed2273(); | 3287 o.targetPools = buildUnnamed2051(); |
3127 } | 3288 } |
3128 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; | 3289 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; |
3129 return o; | 3290 return o; |
3130 } | 3291 } |
3131 | 3292 |
3132 checkInstanceGroupManagersSetTargetPoolsRequest(api.InstanceGroupManagersSetTarg
etPoolsRequest o) { | 3293 checkInstanceGroupManagersSetTargetPoolsRequest(api.InstanceGroupManagersSetTarg
etPoolsRequest o) { |
3133 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; | 3294 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; |
3134 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { | 3295 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { |
3135 unittest.expect(o.fingerprint, unittest.equals('foo')); | 3296 unittest.expect(o.fingerprint, unittest.equals('foo')); |
3136 checkUnnamed2273(o.targetPools); | 3297 checkUnnamed2051(o.targetPools); |
3137 } | 3298 } |
3138 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; | 3299 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; |
3139 } | 3300 } |
3140 | 3301 |
3141 buildUnnamed2274() { | 3302 buildUnnamed2052() { |
3142 var o = new core.List<api.InstanceReference>(); | 3303 var o = new core.List<api.InstanceReference>(); |
3143 o.add(buildInstanceReference()); | 3304 o.add(buildInstanceReference()); |
3144 o.add(buildInstanceReference()); | 3305 o.add(buildInstanceReference()); |
3145 return o; | 3306 return o; |
3146 } | 3307 } |
3147 | 3308 |
3148 checkUnnamed2274(core.List<api.InstanceReference> o) { | 3309 checkUnnamed2052(core.List<api.InstanceReference> o) { |
3149 unittest.expect(o, unittest.hasLength(2)); | 3310 unittest.expect(o, unittest.hasLength(2)); |
3150 checkInstanceReference(o[0]); | 3311 checkInstanceReference(o[0]); |
3151 checkInstanceReference(o[1]); | 3312 checkInstanceReference(o[1]); |
3152 } | 3313 } |
3153 | 3314 |
3154 core.int buildCounterInstanceGroupsAddInstancesRequest = 0; | 3315 core.int buildCounterInstanceGroupsAddInstancesRequest = 0; |
3155 buildInstanceGroupsAddInstancesRequest() { | 3316 buildInstanceGroupsAddInstancesRequest() { |
3156 var o = new api.InstanceGroupsAddInstancesRequest(); | 3317 var o = new api.InstanceGroupsAddInstancesRequest(); |
3157 buildCounterInstanceGroupsAddInstancesRequest++; | 3318 buildCounterInstanceGroupsAddInstancesRequest++; |
3158 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { | 3319 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { |
3159 o.instances = buildUnnamed2274(); | 3320 o.instances = buildUnnamed2052(); |
3160 } | 3321 } |
3161 buildCounterInstanceGroupsAddInstancesRequest--; | 3322 buildCounterInstanceGroupsAddInstancesRequest--; |
3162 return o; | 3323 return o; |
3163 } | 3324 } |
3164 | 3325 |
3165 checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o)
{ | 3326 checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o)
{ |
3166 buildCounterInstanceGroupsAddInstancesRequest++; | 3327 buildCounterInstanceGroupsAddInstancesRequest++; |
3167 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { | 3328 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { |
3168 checkUnnamed2274(o.instances); | 3329 checkUnnamed2052(o.instances); |
3169 } | 3330 } |
3170 buildCounterInstanceGroupsAddInstancesRequest--; | 3331 buildCounterInstanceGroupsAddInstancesRequest--; |
3171 } | 3332 } |
3172 | 3333 |
3173 buildUnnamed2275() { | 3334 buildUnnamed2053() { |
3174 var o = new core.List<api.InstanceWithNamedPorts>(); | 3335 var o = new core.List<api.InstanceWithNamedPorts>(); |
3175 o.add(buildInstanceWithNamedPorts()); | 3336 o.add(buildInstanceWithNamedPorts()); |
3176 o.add(buildInstanceWithNamedPorts()); | 3337 o.add(buildInstanceWithNamedPorts()); |
3177 return o; | 3338 return o; |
3178 } | 3339 } |
3179 | 3340 |
3180 checkUnnamed2275(core.List<api.InstanceWithNamedPorts> o) { | 3341 checkUnnamed2053(core.List<api.InstanceWithNamedPorts> o) { |
3181 unittest.expect(o, unittest.hasLength(2)); | 3342 unittest.expect(o, unittest.hasLength(2)); |
3182 checkInstanceWithNamedPorts(o[0]); | 3343 checkInstanceWithNamedPorts(o[0]); |
3183 checkInstanceWithNamedPorts(o[1]); | 3344 checkInstanceWithNamedPorts(o[1]); |
3184 } | 3345 } |
3185 | 3346 |
3186 core.int buildCounterInstanceGroupsListInstances = 0; | 3347 core.int buildCounterInstanceGroupsListInstances = 0; |
3187 buildInstanceGroupsListInstances() { | 3348 buildInstanceGroupsListInstances() { |
3188 var o = new api.InstanceGroupsListInstances(); | 3349 var o = new api.InstanceGroupsListInstances(); |
3189 buildCounterInstanceGroupsListInstances++; | 3350 buildCounterInstanceGroupsListInstances++; |
3190 if (buildCounterInstanceGroupsListInstances < 3) { | 3351 if (buildCounterInstanceGroupsListInstances < 3) { |
3191 o.id = "foo"; | 3352 o.id = "foo"; |
3192 o.items = buildUnnamed2275(); | 3353 o.items = buildUnnamed2053(); |
3193 o.kind = "foo"; | 3354 o.kind = "foo"; |
3194 o.nextPageToken = "foo"; | 3355 o.nextPageToken = "foo"; |
3195 o.selfLink = "foo"; | 3356 o.selfLink = "foo"; |
3196 } | 3357 } |
3197 buildCounterInstanceGroupsListInstances--; | 3358 buildCounterInstanceGroupsListInstances--; |
3198 return o; | 3359 return o; |
3199 } | 3360 } |
3200 | 3361 |
3201 checkInstanceGroupsListInstances(api.InstanceGroupsListInstances o) { | 3362 checkInstanceGroupsListInstances(api.InstanceGroupsListInstances o) { |
3202 buildCounterInstanceGroupsListInstances++; | 3363 buildCounterInstanceGroupsListInstances++; |
3203 if (buildCounterInstanceGroupsListInstances < 3) { | 3364 if (buildCounterInstanceGroupsListInstances < 3) { |
3204 unittest.expect(o.id, unittest.equals('foo')); | 3365 unittest.expect(o.id, unittest.equals('foo')); |
3205 checkUnnamed2275(o.items); | 3366 checkUnnamed2053(o.items); |
3206 unittest.expect(o.kind, unittest.equals('foo')); | 3367 unittest.expect(o.kind, unittest.equals('foo')); |
3207 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3368 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3208 unittest.expect(o.selfLink, unittest.equals('foo')); | 3369 unittest.expect(o.selfLink, unittest.equals('foo')); |
3209 } | 3370 } |
3210 buildCounterInstanceGroupsListInstances--; | 3371 buildCounterInstanceGroupsListInstances--; |
3211 } | 3372 } |
3212 | 3373 |
3213 core.int buildCounterInstanceGroupsListInstancesRequest = 0; | 3374 core.int buildCounterInstanceGroupsListInstancesRequest = 0; |
3214 buildInstanceGroupsListInstancesRequest() { | 3375 buildInstanceGroupsListInstancesRequest() { |
3215 var o = new api.InstanceGroupsListInstancesRequest(); | 3376 var o = new api.InstanceGroupsListInstancesRequest(); |
3216 buildCounterInstanceGroupsListInstancesRequest++; | 3377 buildCounterInstanceGroupsListInstancesRequest++; |
3217 if (buildCounterInstanceGroupsListInstancesRequest < 3) { | 3378 if (buildCounterInstanceGroupsListInstancesRequest < 3) { |
3218 o.instanceState = "foo"; | 3379 o.instanceState = "foo"; |
3219 } | 3380 } |
3220 buildCounterInstanceGroupsListInstancesRequest--; | 3381 buildCounterInstanceGroupsListInstancesRequest--; |
3221 return o; | 3382 return o; |
3222 } | 3383 } |
3223 | 3384 |
3224 checkInstanceGroupsListInstancesRequest(api.InstanceGroupsListInstancesRequest o
) { | 3385 checkInstanceGroupsListInstancesRequest(api.InstanceGroupsListInstancesRequest o
) { |
3225 buildCounterInstanceGroupsListInstancesRequest++; | 3386 buildCounterInstanceGroupsListInstancesRequest++; |
3226 if (buildCounterInstanceGroupsListInstancesRequest < 3) { | 3387 if (buildCounterInstanceGroupsListInstancesRequest < 3) { |
3227 unittest.expect(o.instanceState, unittest.equals('foo')); | 3388 unittest.expect(o.instanceState, unittest.equals('foo')); |
3228 } | 3389 } |
3229 buildCounterInstanceGroupsListInstancesRequest--; | 3390 buildCounterInstanceGroupsListInstancesRequest--; |
3230 } | 3391 } |
3231 | 3392 |
3232 buildUnnamed2276() { | 3393 buildUnnamed2054() { |
3233 var o = new core.List<api.InstanceReference>(); | 3394 var o = new core.List<api.InstanceReference>(); |
3234 o.add(buildInstanceReference()); | 3395 o.add(buildInstanceReference()); |
3235 o.add(buildInstanceReference()); | 3396 o.add(buildInstanceReference()); |
3236 return o; | 3397 return o; |
3237 } | 3398 } |
3238 | 3399 |
3239 checkUnnamed2276(core.List<api.InstanceReference> o) { | 3400 checkUnnamed2054(core.List<api.InstanceReference> o) { |
3240 unittest.expect(o, unittest.hasLength(2)); | 3401 unittest.expect(o, unittest.hasLength(2)); |
3241 checkInstanceReference(o[0]); | 3402 checkInstanceReference(o[0]); |
3242 checkInstanceReference(o[1]); | 3403 checkInstanceReference(o[1]); |
3243 } | 3404 } |
3244 | 3405 |
3245 core.int buildCounterInstanceGroupsRemoveInstancesRequest = 0; | 3406 core.int buildCounterInstanceGroupsRemoveInstancesRequest = 0; |
3246 buildInstanceGroupsRemoveInstancesRequest() { | 3407 buildInstanceGroupsRemoveInstancesRequest() { |
3247 var o = new api.InstanceGroupsRemoveInstancesRequest(); | 3408 var o = new api.InstanceGroupsRemoveInstancesRequest(); |
3248 buildCounterInstanceGroupsRemoveInstancesRequest++; | 3409 buildCounterInstanceGroupsRemoveInstancesRequest++; |
3249 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { | 3410 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { |
3250 o.instances = buildUnnamed2276(); | 3411 o.instances = buildUnnamed2054(); |
3251 } | 3412 } |
3252 buildCounterInstanceGroupsRemoveInstancesRequest--; | 3413 buildCounterInstanceGroupsRemoveInstancesRequest--; |
3253 return o; | 3414 return o; |
3254 } | 3415 } |
3255 | 3416 |
3256 checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesReque
st o) { | 3417 checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesReque
st o) { |
3257 buildCounterInstanceGroupsRemoveInstancesRequest++; | 3418 buildCounterInstanceGroupsRemoveInstancesRequest++; |
3258 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { | 3419 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { |
3259 checkUnnamed2276(o.instances); | 3420 checkUnnamed2054(o.instances); |
3260 } | 3421 } |
3261 buildCounterInstanceGroupsRemoveInstancesRequest--; | 3422 buildCounterInstanceGroupsRemoveInstancesRequest--; |
3262 } | 3423 } |
3263 | 3424 |
3264 buildUnnamed2277() { | 3425 buildUnnamed2055() { |
3265 var o = new core.List<api.InstanceGroup>(); | 3426 var o = new core.List<api.InstanceGroup>(); |
3266 o.add(buildInstanceGroup()); | 3427 o.add(buildInstanceGroup()); |
3267 o.add(buildInstanceGroup()); | 3428 o.add(buildInstanceGroup()); |
3268 return o; | 3429 return o; |
3269 } | 3430 } |
3270 | 3431 |
3271 checkUnnamed2277(core.List<api.InstanceGroup> o) { | 3432 checkUnnamed2055(core.List<api.InstanceGroup> o) { |
3272 unittest.expect(o, unittest.hasLength(2)); | 3433 unittest.expect(o, unittest.hasLength(2)); |
3273 checkInstanceGroup(o[0]); | 3434 checkInstanceGroup(o[0]); |
3274 checkInstanceGroup(o[1]); | 3435 checkInstanceGroup(o[1]); |
3275 } | 3436 } |
3276 | 3437 |
3277 core.int buildCounterInstanceGroupsScopedListWarningData = 0; | 3438 core.int buildCounterInstanceGroupsScopedListWarningData = 0; |
3278 buildInstanceGroupsScopedListWarningData() { | 3439 buildInstanceGroupsScopedListWarningData() { |
3279 var o = new api.InstanceGroupsScopedListWarningData(); | 3440 var o = new api.InstanceGroupsScopedListWarningData(); |
3280 buildCounterInstanceGroupsScopedListWarningData++; | 3441 buildCounterInstanceGroupsScopedListWarningData++; |
3281 if (buildCounterInstanceGroupsScopedListWarningData < 3) { | 3442 if (buildCounterInstanceGroupsScopedListWarningData < 3) { |
3282 o.key = "foo"; | 3443 o.key = "foo"; |
3283 o.value = "foo"; | 3444 o.value = "foo"; |
3284 } | 3445 } |
3285 buildCounterInstanceGroupsScopedListWarningData--; | 3446 buildCounterInstanceGroupsScopedListWarningData--; |
3286 return o; | 3447 return o; |
3287 } | 3448 } |
3288 | 3449 |
3289 checkInstanceGroupsScopedListWarningData(api.InstanceGroupsScopedListWarningData
o) { | 3450 checkInstanceGroupsScopedListWarningData(api.InstanceGroupsScopedListWarningData
o) { |
3290 buildCounterInstanceGroupsScopedListWarningData++; | 3451 buildCounterInstanceGroupsScopedListWarningData++; |
3291 if (buildCounterInstanceGroupsScopedListWarningData < 3) { | 3452 if (buildCounterInstanceGroupsScopedListWarningData < 3) { |
3292 unittest.expect(o.key, unittest.equals('foo')); | 3453 unittest.expect(o.key, unittest.equals('foo')); |
3293 unittest.expect(o.value, unittest.equals('foo')); | 3454 unittest.expect(o.value, unittest.equals('foo')); |
3294 } | 3455 } |
3295 buildCounterInstanceGroupsScopedListWarningData--; | 3456 buildCounterInstanceGroupsScopedListWarningData--; |
3296 } | 3457 } |
3297 | 3458 |
3298 buildUnnamed2278() { | 3459 buildUnnamed2056() { |
3299 var o = new core.List<api.InstanceGroupsScopedListWarningData>(); | 3460 var o = new core.List<api.InstanceGroupsScopedListWarningData>(); |
3300 o.add(buildInstanceGroupsScopedListWarningData()); | 3461 o.add(buildInstanceGroupsScopedListWarningData()); |
3301 o.add(buildInstanceGroupsScopedListWarningData()); | 3462 o.add(buildInstanceGroupsScopedListWarningData()); |
3302 return o; | 3463 return o; |
3303 } | 3464 } |
3304 | 3465 |
3305 checkUnnamed2278(core.List<api.InstanceGroupsScopedListWarningData> o) { | 3466 checkUnnamed2056(core.List<api.InstanceGroupsScopedListWarningData> o) { |
3306 unittest.expect(o, unittest.hasLength(2)); | 3467 unittest.expect(o, unittest.hasLength(2)); |
3307 checkInstanceGroupsScopedListWarningData(o[0]); | 3468 checkInstanceGroupsScopedListWarningData(o[0]); |
3308 checkInstanceGroupsScopedListWarningData(o[1]); | 3469 checkInstanceGroupsScopedListWarningData(o[1]); |
3309 } | 3470 } |
3310 | 3471 |
3311 core.int buildCounterInstanceGroupsScopedListWarning = 0; | 3472 core.int buildCounterInstanceGroupsScopedListWarning = 0; |
3312 buildInstanceGroupsScopedListWarning() { | 3473 buildInstanceGroupsScopedListWarning() { |
3313 var o = new api.InstanceGroupsScopedListWarning(); | 3474 var o = new api.InstanceGroupsScopedListWarning(); |
3314 buildCounterInstanceGroupsScopedListWarning++; | 3475 buildCounterInstanceGroupsScopedListWarning++; |
3315 if (buildCounterInstanceGroupsScopedListWarning < 3) { | 3476 if (buildCounterInstanceGroupsScopedListWarning < 3) { |
3316 o.code = "foo"; | 3477 o.code = "foo"; |
3317 o.data = buildUnnamed2278(); | 3478 o.data = buildUnnamed2056(); |
3318 o.message = "foo"; | 3479 o.message = "foo"; |
3319 } | 3480 } |
3320 buildCounterInstanceGroupsScopedListWarning--; | 3481 buildCounterInstanceGroupsScopedListWarning--; |
3321 return o; | 3482 return o; |
3322 } | 3483 } |
3323 | 3484 |
3324 checkInstanceGroupsScopedListWarning(api.InstanceGroupsScopedListWarning o) { | 3485 checkInstanceGroupsScopedListWarning(api.InstanceGroupsScopedListWarning o) { |
3325 buildCounterInstanceGroupsScopedListWarning++; | 3486 buildCounterInstanceGroupsScopedListWarning++; |
3326 if (buildCounterInstanceGroupsScopedListWarning < 3) { | 3487 if (buildCounterInstanceGroupsScopedListWarning < 3) { |
3327 unittest.expect(o.code, unittest.equals('foo')); | 3488 unittest.expect(o.code, unittest.equals('foo')); |
3328 checkUnnamed2278(o.data); | 3489 checkUnnamed2056(o.data); |
3329 unittest.expect(o.message, unittest.equals('foo')); | 3490 unittest.expect(o.message, unittest.equals('foo')); |
3330 } | 3491 } |
3331 buildCounterInstanceGroupsScopedListWarning--; | 3492 buildCounterInstanceGroupsScopedListWarning--; |
3332 } | 3493 } |
3333 | 3494 |
3334 core.int buildCounterInstanceGroupsScopedList = 0; | 3495 core.int buildCounterInstanceGroupsScopedList = 0; |
3335 buildInstanceGroupsScopedList() { | 3496 buildInstanceGroupsScopedList() { |
3336 var o = new api.InstanceGroupsScopedList(); | 3497 var o = new api.InstanceGroupsScopedList(); |
3337 buildCounterInstanceGroupsScopedList++; | 3498 buildCounterInstanceGroupsScopedList++; |
3338 if (buildCounterInstanceGroupsScopedList < 3) { | 3499 if (buildCounterInstanceGroupsScopedList < 3) { |
3339 o.instanceGroups = buildUnnamed2277(); | 3500 o.instanceGroups = buildUnnamed2055(); |
3340 o.warning = buildInstanceGroupsScopedListWarning(); | 3501 o.warning = buildInstanceGroupsScopedListWarning(); |
3341 } | 3502 } |
3342 buildCounterInstanceGroupsScopedList--; | 3503 buildCounterInstanceGroupsScopedList--; |
3343 return o; | 3504 return o; |
3344 } | 3505 } |
3345 | 3506 |
3346 checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { | 3507 checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { |
3347 buildCounterInstanceGroupsScopedList++; | 3508 buildCounterInstanceGroupsScopedList++; |
3348 if (buildCounterInstanceGroupsScopedList < 3) { | 3509 if (buildCounterInstanceGroupsScopedList < 3) { |
3349 checkUnnamed2277(o.instanceGroups); | 3510 checkUnnamed2055(o.instanceGroups); |
3350 checkInstanceGroupsScopedListWarning(o.warning); | 3511 checkInstanceGroupsScopedListWarning(o.warning); |
3351 } | 3512 } |
3352 buildCounterInstanceGroupsScopedList--; | 3513 buildCounterInstanceGroupsScopedList--; |
3353 } | 3514 } |
3354 | 3515 |
3355 buildUnnamed2279() { | 3516 buildUnnamed2057() { |
3356 var o = new core.List<api.NamedPort>(); | 3517 var o = new core.List<api.NamedPort>(); |
3357 o.add(buildNamedPort()); | 3518 o.add(buildNamedPort()); |
3358 o.add(buildNamedPort()); | 3519 o.add(buildNamedPort()); |
3359 return o; | 3520 return o; |
3360 } | 3521 } |
3361 | 3522 |
3362 checkUnnamed2279(core.List<api.NamedPort> o) { | 3523 checkUnnamed2057(core.List<api.NamedPort> o) { |
3363 unittest.expect(o, unittest.hasLength(2)); | 3524 unittest.expect(o, unittest.hasLength(2)); |
3364 checkNamedPort(o[0]); | 3525 checkNamedPort(o[0]); |
3365 checkNamedPort(o[1]); | 3526 checkNamedPort(o[1]); |
3366 } | 3527 } |
3367 | 3528 |
3368 core.int buildCounterInstanceGroupsSetNamedPortsRequest = 0; | 3529 core.int buildCounterInstanceGroupsSetNamedPortsRequest = 0; |
3369 buildInstanceGroupsSetNamedPortsRequest() { | 3530 buildInstanceGroupsSetNamedPortsRequest() { |
3370 var o = new api.InstanceGroupsSetNamedPortsRequest(); | 3531 var o = new api.InstanceGroupsSetNamedPortsRequest(); |
3371 buildCounterInstanceGroupsSetNamedPortsRequest++; | 3532 buildCounterInstanceGroupsSetNamedPortsRequest++; |
3372 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { | 3533 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { |
3373 o.fingerprint = "foo"; | 3534 o.fingerprint = "foo"; |
3374 o.namedPorts = buildUnnamed2279(); | 3535 o.namedPorts = buildUnnamed2057(); |
3375 } | 3536 } |
3376 buildCounterInstanceGroupsSetNamedPortsRequest--; | 3537 buildCounterInstanceGroupsSetNamedPortsRequest--; |
3377 return o; | 3538 return o; |
3378 } | 3539 } |
3379 | 3540 |
3380 checkInstanceGroupsSetNamedPortsRequest(api.InstanceGroupsSetNamedPortsRequest o
) { | 3541 checkInstanceGroupsSetNamedPortsRequest(api.InstanceGroupsSetNamedPortsRequest o
) { |
3381 buildCounterInstanceGroupsSetNamedPortsRequest++; | 3542 buildCounterInstanceGroupsSetNamedPortsRequest++; |
3382 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { | 3543 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { |
3383 unittest.expect(o.fingerprint, unittest.equals('foo')); | 3544 unittest.expect(o.fingerprint, unittest.equals('foo')); |
3384 checkUnnamed2279(o.namedPorts); | 3545 checkUnnamed2057(o.namedPorts); |
3385 } | 3546 } |
3386 buildCounterInstanceGroupsSetNamedPortsRequest--; | 3547 buildCounterInstanceGroupsSetNamedPortsRequest--; |
3387 } | 3548 } |
3388 | 3549 |
3389 buildUnnamed2280() { | 3550 buildUnnamed2058() { |
3390 var o = new core.List<api.Instance>(); | 3551 var o = new core.List<api.Instance>(); |
3391 o.add(buildInstance()); | 3552 o.add(buildInstance()); |
3392 o.add(buildInstance()); | 3553 o.add(buildInstance()); |
3393 return o; | 3554 return o; |
3394 } | 3555 } |
3395 | 3556 |
3396 checkUnnamed2280(core.List<api.Instance> o) { | 3557 checkUnnamed2058(core.List<api.Instance> o) { |
3397 unittest.expect(o, unittest.hasLength(2)); | 3558 unittest.expect(o, unittest.hasLength(2)); |
3398 checkInstance(o[0]); | 3559 checkInstance(o[0]); |
3399 checkInstance(o[1]); | 3560 checkInstance(o[1]); |
3400 } | 3561 } |
3401 | 3562 |
3402 core.int buildCounterInstanceList = 0; | 3563 core.int buildCounterInstanceList = 0; |
3403 buildInstanceList() { | 3564 buildInstanceList() { |
3404 var o = new api.InstanceList(); | 3565 var o = new api.InstanceList(); |
3405 buildCounterInstanceList++; | 3566 buildCounterInstanceList++; |
3406 if (buildCounterInstanceList < 3) { | 3567 if (buildCounterInstanceList < 3) { |
3407 o.id = "foo"; | 3568 o.id = "foo"; |
3408 o.items = buildUnnamed2280(); | 3569 o.items = buildUnnamed2058(); |
3409 o.kind = "foo"; | 3570 o.kind = "foo"; |
3410 o.nextPageToken = "foo"; | 3571 o.nextPageToken = "foo"; |
3411 o.selfLink = "foo"; | 3572 o.selfLink = "foo"; |
3412 } | 3573 } |
3413 buildCounterInstanceList--; | 3574 buildCounterInstanceList--; |
3414 return o; | 3575 return o; |
3415 } | 3576 } |
3416 | 3577 |
3417 checkInstanceList(api.InstanceList o) { | 3578 checkInstanceList(api.InstanceList o) { |
3418 buildCounterInstanceList++; | 3579 buildCounterInstanceList++; |
3419 if (buildCounterInstanceList < 3) { | 3580 if (buildCounterInstanceList < 3) { |
3420 unittest.expect(o.id, unittest.equals('foo')); | 3581 unittest.expect(o.id, unittest.equals('foo')); |
3421 checkUnnamed2280(o.items); | 3582 checkUnnamed2058(o.items); |
3422 unittest.expect(o.kind, unittest.equals('foo')); | 3583 unittest.expect(o.kind, unittest.equals('foo')); |
3423 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3584 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3424 unittest.expect(o.selfLink, unittest.equals('foo')); | 3585 unittest.expect(o.selfLink, unittest.equals('foo')); |
3425 } | 3586 } |
3426 buildCounterInstanceList--; | 3587 buildCounterInstanceList--; |
3427 } | 3588 } |
3428 | 3589 |
3429 core.int buildCounterInstanceMoveRequest = 0; | 3590 core.int buildCounterInstanceMoveRequest = 0; |
3430 buildInstanceMoveRequest() { | 3591 buildInstanceMoveRequest() { |
3431 var o = new api.InstanceMoveRequest(); | 3592 var o = new api.InstanceMoveRequest(); |
3432 buildCounterInstanceMoveRequest++; | 3593 buildCounterInstanceMoveRequest++; |
3433 if (buildCounterInstanceMoveRequest < 3) { | 3594 if (buildCounterInstanceMoveRequest < 3) { |
3434 o.destinationZone = "foo"; | 3595 o.destinationZone = "foo"; |
3435 o.targetInstance = "foo"; | 3596 o.targetInstance = "foo"; |
3436 } | 3597 } |
3437 buildCounterInstanceMoveRequest--; | 3598 buildCounterInstanceMoveRequest--; |
3438 return o; | 3599 return o; |
3439 } | 3600 } |
3440 | 3601 |
3441 checkInstanceMoveRequest(api.InstanceMoveRequest o) { | 3602 checkInstanceMoveRequest(api.InstanceMoveRequest o) { |
3442 buildCounterInstanceMoveRequest++; | 3603 buildCounterInstanceMoveRequest++; |
3443 if (buildCounterInstanceMoveRequest < 3) { | 3604 if (buildCounterInstanceMoveRequest < 3) { |
3444 unittest.expect(o.destinationZone, unittest.equals('foo')); | 3605 unittest.expect(o.destinationZone, unittest.equals('foo')); |
3445 unittest.expect(o.targetInstance, unittest.equals('foo')); | 3606 unittest.expect(o.targetInstance, unittest.equals('foo')); |
3446 } | 3607 } |
3447 buildCounterInstanceMoveRequest--; | 3608 buildCounterInstanceMoveRequest--; |
3448 } | 3609 } |
3449 | 3610 |
3450 buildUnnamed2281() { | 3611 buildUnnamed2059() { |
3451 var o = new core.List<api.AttachedDisk>(); | 3612 var o = new core.List<api.AttachedDisk>(); |
3452 o.add(buildAttachedDisk()); | 3613 o.add(buildAttachedDisk()); |
3453 o.add(buildAttachedDisk()); | 3614 o.add(buildAttachedDisk()); |
3454 return o; | 3615 return o; |
3455 } | 3616 } |
3456 | 3617 |
3457 checkUnnamed2281(core.List<api.AttachedDisk> o) { | 3618 checkUnnamed2059(core.List<api.AttachedDisk> o) { |
3458 unittest.expect(o, unittest.hasLength(2)); | 3619 unittest.expect(o, unittest.hasLength(2)); |
3459 checkAttachedDisk(o[0]); | 3620 checkAttachedDisk(o[0]); |
3460 checkAttachedDisk(o[1]); | 3621 checkAttachedDisk(o[1]); |
3461 } | 3622 } |
3462 | 3623 |
3463 buildUnnamed2282() { | 3624 buildUnnamed2060() { |
3464 var o = new core.List<api.NetworkInterface>(); | 3625 var o = new core.List<api.NetworkInterface>(); |
3465 o.add(buildNetworkInterface()); | 3626 o.add(buildNetworkInterface()); |
3466 o.add(buildNetworkInterface()); | 3627 o.add(buildNetworkInterface()); |
3467 return o; | 3628 return o; |
3468 } | 3629 } |
3469 | 3630 |
3470 checkUnnamed2282(core.List<api.NetworkInterface> o) { | 3631 checkUnnamed2060(core.List<api.NetworkInterface> o) { |
3471 unittest.expect(o, unittest.hasLength(2)); | 3632 unittest.expect(o, unittest.hasLength(2)); |
3472 checkNetworkInterface(o[0]); | 3633 checkNetworkInterface(o[0]); |
3473 checkNetworkInterface(o[1]); | 3634 checkNetworkInterface(o[1]); |
3474 } | 3635 } |
3475 | 3636 |
3476 buildUnnamed2283() { | 3637 buildUnnamed2061() { |
3477 var o = new core.List<api.ServiceAccount>(); | 3638 var o = new core.List<api.ServiceAccount>(); |
3478 o.add(buildServiceAccount()); | 3639 o.add(buildServiceAccount()); |
3479 o.add(buildServiceAccount()); | 3640 o.add(buildServiceAccount()); |
3480 return o; | 3641 return o; |
3481 } | 3642 } |
3482 | 3643 |
3483 checkUnnamed2283(core.List<api.ServiceAccount> o) { | 3644 checkUnnamed2061(core.List<api.ServiceAccount> o) { |
3484 unittest.expect(o, unittest.hasLength(2)); | 3645 unittest.expect(o, unittest.hasLength(2)); |
3485 checkServiceAccount(o[0]); | 3646 checkServiceAccount(o[0]); |
3486 checkServiceAccount(o[1]); | 3647 checkServiceAccount(o[1]); |
3487 } | 3648 } |
3488 | 3649 |
3489 core.int buildCounterInstanceProperties = 0; | 3650 core.int buildCounterInstanceProperties = 0; |
3490 buildInstanceProperties() { | 3651 buildInstanceProperties() { |
3491 var o = new api.InstanceProperties(); | 3652 var o = new api.InstanceProperties(); |
3492 buildCounterInstanceProperties++; | 3653 buildCounterInstanceProperties++; |
3493 if (buildCounterInstanceProperties < 3) { | 3654 if (buildCounterInstanceProperties < 3) { |
3494 o.canIpForward = true; | 3655 o.canIpForward = true; |
3495 o.description = "foo"; | 3656 o.description = "foo"; |
3496 o.disks = buildUnnamed2281(); | 3657 o.disks = buildUnnamed2059(); |
3497 o.machineType = "foo"; | 3658 o.machineType = "foo"; |
3498 o.metadata = buildMetadata(); | 3659 o.metadata = buildMetadata(); |
3499 o.networkInterfaces = buildUnnamed2282(); | 3660 o.networkInterfaces = buildUnnamed2060(); |
3500 o.scheduling = buildScheduling(); | 3661 o.scheduling = buildScheduling(); |
3501 o.serviceAccounts = buildUnnamed2283(); | 3662 o.serviceAccounts = buildUnnamed2061(); |
3502 o.tags = buildTags(); | 3663 o.tags = buildTags(); |
3503 } | 3664 } |
3504 buildCounterInstanceProperties--; | 3665 buildCounterInstanceProperties--; |
3505 return o; | 3666 return o; |
3506 } | 3667 } |
3507 | 3668 |
3508 checkInstanceProperties(api.InstanceProperties o) { | 3669 checkInstanceProperties(api.InstanceProperties o) { |
3509 buildCounterInstanceProperties++; | 3670 buildCounterInstanceProperties++; |
3510 if (buildCounterInstanceProperties < 3) { | 3671 if (buildCounterInstanceProperties < 3) { |
3511 unittest.expect(o.canIpForward, unittest.isTrue); | 3672 unittest.expect(o.canIpForward, unittest.isTrue); |
3512 unittest.expect(o.description, unittest.equals('foo')); | 3673 unittest.expect(o.description, unittest.equals('foo')); |
3513 checkUnnamed2281(o.disks); | 3674 checkUnnamed2059(o.disks); |
3514 unittest.expect(o.machineType, unittest.equals('foo')); | 3675 unittest.expect(o.machineType, unittest.equals('foo')); |
3515 checkMetadata(o.metadata); | 3676 checkMetadata(o.metadata); |
3516 checkUnnamed2282(o.networkInterfaces); | 3677 checkUnnamed2060(o.networkInterfaces); |
3517 checkScheduling(o.scheduling); | 3678 checkScheduling(o.scheduling); |
3518 checkUnnamed2283(o.serviceAccounts); | 3679 checkUnnamed2061(o.serviceAccounts); |
3519 checkTags(o.tags); | 3680 checkTags(o.tags); |
3520 } | 3681 } |
3521 buildCounterInstanceProperties--; | 3682 buildCounterInstanceProperties--; |
3522 } | 3683 } |
3523 | 3684 |
3524 core.int buildCounterInstanceReference = 0; | 3685 core.int buildCounterInstanceReference = 0; |
3525 buildInstanceReference() { | 3686 buildInstanceReference() { |
3526 var o = new api.InstanceReference(); | 3687 var o = new api.InstanceReference(); |
3527 buildCounterInstanceReference++; | 3688 buildCounterInstanceReference++; |
3528 if (buildCounterInstanceReference < 3) { | 3689 if (buildCounterInstanceReference < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3564 unittest.expect(o.description, unittest.equals('foo')); | 3725 unittest.expect(o.description, unittest.equals('foo')); |
3565 unittest.expect(o.id, unittest.equals('foo')); | 3726 unittest.expect(o.id, unittest.equals('foo')); |
3566 unittest.expect(o.kind, unittest.equals('foo')); | 3727 unittest.expect(o.kind, unittest.equals('foo')); |
3567 unittest.expect(o.name, unittest.equals('foo')); | 3728 unittest.expect(o.name, unittest.equals('foo')); |
3568 checkInstanceProperties(o.properties); | 3729 checkInstanceProperties(o.properties); |
3569 unittest.expect(o.selfLink, unittest.equals('foo')); | 3730 unittest.expect(o.selfLink, unittest.equals('foo')); |
3570 } | 3731 } |
3571 buildCounterInstanceTemplate--; | 3732 buildCounterInstanceTemplate--; |
3572 } | 3733 } |
3573 | 3734 |
3574 buildUnnamed2284() { | 3735 buildUnnamed2062() { |
3575 var o = new core.List<api.InstanceTemplate>(); | 3736 var o = new core.List<api.InstanceTemplate>(); |
3576 o.add(buildInstanceTemplate()); | 3737 o.add(buildInstanceTemplate()); |
3577 o.add(buildInstanceTemplate()); | 3738 o.add(buildInstanceTemplate()); |
3578 return o; | 3739 return o; |
3579 } | 3740 } |
3580 | 3741 |
3581 checkUnnamed2284(core.List<api.InstanceTemplate> o) { | 3742 checkUnnamed2062(core.List<api.InstanceTemplate> o) { |
3582 unittest.expect(o, unittest.hasLength(2)); | 3743 unittest.expect(o, unittest.hasLength(2)); |
3583 checkInstanceTemplate(o[0]); | 3744 checkInstanceTemplate(o[0]); |
3584 checkInstanceTemplate(o[1]); | 3745 checkInstanceTemplate(o[1]); |
3585 } | 3746 } |
3586 | 3747 |
3587 core.int buildCounterInstanceTemplateList = 0; | 3748 core.int buildCounterInstanceTemplateList = 0; |
3588 buildInstanceTemplateList() { | 3749 buildInstanceTemplateList() { |
3589 var o = new api.InstanceTemplateList(); | 3750 var o = new api.InstanceTemplateList(); |
3590 buildCounterInstanceTemplateList++; | 3751 buildCounterInstanceTemplateList++; |
3591 if (buildCounterInstanceTemplateList < 3) { | 3752 if (buildCounterInstanceTemplateList < 3) { |
3592 o.id = "foo"; | 3753 o.id = "foo"; |
3593 o.items = buildUnnamed2284(); | 3754 o.items = buildUnnamed2062(); |
3594 o.kind = "foo"; | 3755 o.kind = "foo"; |
3595 o.nextPageToken = "foo"; | 3756 o.nextPageToken = "foo"; |
3596 o.selfLink = "foo"; | 3757 o.selfLink = "foo"; |
3597 } | 3758 } |
3598 buildCounterInstanceTemplateList--; | 3759 buildCounterInstanceTemplateList--; |
3599 return o; | 3760 return o; |
3600 } | 3761 } |
3601 | 3762 |
3602 checkInstanceTemplateList(api.InstanceTemplateList o) { | 3763 checkInstanceTemplateList(api.InstanceTemplateList o) { |
3603 buildCounterInstanceTemplateList++; | 3764 buildCounterInstanceTemplateList++; |
3604 if (buildCounterInstanceTemplateList < 3) { | 3765 if (buildCounterInstanceTemplateList < 3) { |
3605 unittest.expect(o.id, unittest.equals('foo')); | 3766 unittest.expect(o.id, unittest.equals('foo')); |
3606 checkUnnamed2284(o.items); | 3767 checkUnnamed2062(o.items); |
3607 unittest.expect(o.kind, unittest.equals('foo')); | 3768 unittest.expect(o.kind, unittest.equals('foo')); |
3608 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3769 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3609 unittest.expect(o.selfLink, unittest.equals('foo')); | 3770 unittest.expect(o.selfLink, unittest.equals('foo')); |
3610 } | 3771 } |
3611 buildCounterInstanceTemplateList--; | 3772 buildCounterInstanceTemplateList--; |
3612 } | 3773 } |
3613 | 3774 |
3614 buildUnnamed2285() { | 3775 buildUnnamed2063() { |
3615 var o = new core.List<api.NamedPort>(); | 3776 var o = new core.List<api.NamedPort>(); |
3616 o.add(buildNamedPort()); | 3777 o.add(buildNamedPort()); |
3617 o.add(buildNamedPort()); | 3778 o.add(buildNamedPort()); |
3618 return o; | 3779 return o; |
3619 } | 3780 } |
3620 | 3781 |
3621 checkUnnamed2285(core.List<api.NamedPort> o) { | 3782 checkUnnamed2063(core.List<api.NamedPort> o) { |
3622 unittest.expect(o, unittest.hasLength(2)); | 3783 unittest.expect(o, unittest.hasLength(2)); |
3623 checkNamedPort(o[0]); | 3784 checkNamedPort(o[0]); |
3624 checkNamedPort(o[1]); | 3785 checkNamedPort(o[1]); |
3625 } | 3786 } |
3626 | 3787 |
3627 core.int buildCounterInstanceWithNamedPorts = 0; | 3788 core.int buildCounterInstanceWithNamedPorts = 0; |
3628 buildInstanceWithNamedPorts() { | 3789 buildInstanceWithNamedPorts() { |
3629 var o = new api.InstanceWithNamedPorts(); | 3790 var o = new api.InstanceWithNamedPorts(); |
3630 buildCounterInstanceWithNamedPorts++; | 3791 buildCounterInstanceWithNamedPorts++; |
3631 if (buildCounterInstanceWithNamedPorts < 3) { | 3792 if (buildCounterInstanceWithNamedPorts < 3) { |
3632 o.instance = "foo"; | 3793 o.instance = "foo"; |
3633 o.namedPorts = buildUnnamed2285(); | 3794 o.namedPorts = buildUnnamed2063(); |
3634 o.status = "foo"; | 3795 o.status = "foo"; |
3635 } | 3796 } |
3636 buildCounterInstanceWithNamedPorts--; | 3797 buildCounterInstanceWithNamedPorts--; |
3637 return o; | 3798 return o; |
3638 } | 3799 } |
3639 | 3800 |
3640 checkInstanceWithNamedPorts(api.InstanceWithNamedPorts o) { | 3801 checkInstanceWithNamedPorts(api.InstanceWithNamedPorts o) { |
3641 buildCounterInstanceWithNamedPorts++; | 3802 buildCounterInstanceWithNamedPorts++; |
3642 if (buildCounterInstanceWithNamedPorts < 3) { | 3803 if (buildCounterInstanceWithNamedPorts < 3) { |
3643 unittest.expect(o.instance, unittest.equals('foo')); | 3804 unittest.expect(o.instance, unittest.equals('foo')); |
3644 checkUnnamed2285(o.namedPorts); | 3805 checkUnnamed2063(o.namedPorts); |
3645 unittest.expect(o.status, unittest.equals('foo')); | 3806 unittest.expect(o.status, unittest.equals('foo')); |
3646 } | 3807 } |
3647 buildCounterInstanceWithNamedPorts--; | 3808 buildCounterInstanceWithNamedPorts--; |
3648 } | 3809 } |
3649 | 3810 |
3650 buildUnnamed2286() { | 3811 buildUnnamed2064() { |
3651 var o = new core.List<api.Instance>(); | 3812 var o = new core.List<api.Instance>(); |
3652 o.add(buildInstance()); | 3813 o.add(buildInstance()); |
3653 o.add(buildInstance()); | 3814 o.add(buildInstance()); |
3654 return o; | 3815 return o; |
3655 } | 3816 } |
3656 | 3817 |
3657 checkUnnamed2286(core.List<api.Instance> o) { | 3818 checkUnnamed2064(core.List<api.Instance> o) { |
3658 unittest.expect(o, unittest.hasLength(2)); | 3819 unittest.expect(o, unittest.hasLength(2)); |
3659 checkInstance(o[0]); | 3820 checkInstance(o[0]); |
3660 checkInstance(o[1]); | 3821 checkInstance(o[1]); |
3661 } | 3822 } |
3662 | 3823 |
3663 core.int buildCounterInstancesScopedListWarningData = 0; | 3824 core.int buildCounterInstancesScopedListWarningData = 0; |
3664 buildInstancesScopedListWarningData() { | 3825 buildInstancesScopedListWarningData() { |
3665 var o = new api.InstancesScopedListWarningData(); | 3826 var o = new api.InstancesScopedListWarningData(); |
3666 buildCounterInstancesScopedListWarningData++; | 3827 buildCounterInstancesScopedListWarningData++; |
3667 if (buildCounterInstancesScopedListWarningData < 3) { | 3828 if (buildCounterInstancesScopedListWarningData < 3) { |
3668 o.key = "foo"; | 3829 o.key = "foo"; |
3669 o.value = "foo"; | 3830 o.value = "foo"; |
3670 } | 3831 } |
3671 buildCounterInstancesScopedListWarningData--; | 3832 buildCounterInstancesScopedListWarningData--; |
3672 return o; | 3833 return o; |
3673 } | 3834 } |
3674 | 3835 |
3675 checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { | 3836 checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { |
3676 buildCounterInstancesScopedListWarningData++; | 3837 buildCounterInstancesScopedListWarningData++; |
3677 if (buildCounterInstancesScopedListWarningData < 3) { | 3838 if (buildCounterInstancesScopedListWarningData < 3) { |
3678 unittest.expect(o.key, unittest.equals('foo')); | 3839 unittest.expect(o.key, unittest.equals('foo')); |
3679 unittest.expect(o.value, unittest.equals('foo')); | 3840 unittest.expect(o.value, unittest.equals('foo')); |
3680 } | 3841 } |
3681 buildCounterInstancesScopedListWarningData--; | 3842 buildCounterInstancesScopedListWarningData--; |
3682 } | 3843 } |
3683 | 3844 |
3684 buildUnnamed2287() { | 3845 buildUnnamed2065() { |
3685 var o = new core.List<api.InstancesScopedListWarningData>(); | 3846 var o = new core.List<api.InstancesScopedListWarningData>(); |
3686 o.add(buildInstancesScopedListWarningData()); | 3847 o.add(buildInstancesScopedListWarningData()); |
3687 o.add(buildInstancesScopedListWarningData()); | 3848 o.add(buildInstancesScopedListWarningData()); |
3688 return o; | 3849 return o; |
3689 } | 3850 } |
3690 | 3851 |
3691 checkUnnamed2287(core.List<api.InstancesScopedListWarningData> o) { | 3852 checkUnnamed2065(core.List<api.InstancesScopedListWarningData> o) { |
3692 unittest.expect(o, unittest.hasLength(2)); | 3853 unittest.expect(o, unittest.hasLength(2)); |
3693 checkInstancesScopedListWarningData(o[0]); | 3854 checkInstancesScopedListWarningData(o[0]); |
3694 checkInstancesScopedListWarningData(o[1]); | 3855 checkInstancesScopedListWarningData(o[1]); |
3695 } | 3856 } |
3696 | 3857 |
3697 core.int buildCounterInstancesScopedListWarning = 0; | 3858 core.int buildCounterInstancesScopedListWarning = 0; |
3698 buildInstancesScopedListWarning() { | 3859 buildInstancesScopedListWarning() { |
3699 var o = new api.InstancesScopedListWarning(); | 3860 var o = new api.InstancesScopedListWarning(); |
3700 buildCounterInstancesScopedListWarning++; | 3861 buildCounterInstancesScopedListWarning++; |
3701 if (buildCounterInstancesScopedListWarning < 3) { | 3862 if (buildCounterInstancesScopedListWarning < 3) { |
3702 o.code = "foo"; | 3863 o.code = "foo"; |
3703 o.data = buildUnnamed2287(); | 3864 o.data = buildUnnamed2065(); |
3704 o.message = "foo"; | 3865 o.message = "foo"; |
3705 } | 3866 } |
3706 buildCounterInstancesScopedListWarning--; | 3867 buildCounterInstancesScopedListWarning--; |
3707 return o; | 3868 return o; |
3708 } | 3869 } |
3709 | 3870 |
3710 checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { | 3871 checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { |
3711 buildCounterInstancesScopedListWarning++; | 3872 buildCounterInstancesScopedListWarning++; |
3712 if (buildCounterInstancesScopedListWarning < 3) { | 3873 if (buildCounterInstancesScopedListWarning < 3) { |
3713 unittest.expect(o.code, unittest.equals('foo')); | 3874 unittest.expect(o.code, unittest.equals('foo')); |
3714 checkUnnamed2287(o.data); | 3875 checkUnnamed2065(o.data); |
3715 unittest.expect(o.message, unittest.equals('foo')); | 3876 unittest.expect(o.message, unittest.equals('foo')); |
3716 } | 3877 } |
3717 buildCounterInstancesScopedListWarning--; | 3878 buildCounterInstancesScopedListWarning--; |
3718 } | 3879 } |
3719 | 3880 |
3720 core.int buildCounterInstancesScopedList = 0; | 3881 core.int buildCounterInstancesScopedList = 0; |
3721 buildInstancesScopedList() { | 3882 buildInstancesScopedList() { |
3722 var o = new api.InstancesScopedList(); | 3883 var o = new api.InstancesScopedList(); |
3723 buildCounterInstancesScopedList++; | 3884 buildCounterInstancesScopedList++; |
3724 if (buildCounterInstancesScopedList < 3) { | 3885 if (buildCounterInstancesScopedList < 3) { |
3725 o.instances = buildUnnamed2286(); | 3886 o.instances = buildUnnamed2064(); |
3726 o.warning = buildInstancesScopedListWarning(); | 3887 o.warning = buildInstancesScopedListWarning(); |
3727 } | 3888 } |
3728 buildCounterInstancesScopedList--; | 3889 buildCounterInstancesScopedList--; |
3729 return o; | 3890 return o; |
3730 } | 3891 } |
3731 | 3892 |
3732 checkInstancesScopedList(api.InstancesScopedList o) { | 3893 checkInstancesScopedList(api.InstancesScopedList o) { |
3733 buildCounterInstancesScopedList++; | 3894 buildCounterInstancesScopedList++; |
3734 if (buildCounterInstancesScopedList < 3) { | 3895 if (buildCounterInstancesScopedList < 3) { |
3735 checkUnnamed2286(o.instances); | 3896 checkUnnamed2064(o.instances); |
3736 checkInstancesScopedListWarning(o.warning); | 3897 checkInstancesScopedListWarning(o.warning); |
3737 } | 3898 } |
3738 buildCounterInstancesScopedList--; | 3899 buildCounterInstancesScopedList--; |
3739 } | 3900 } |
3740 | 3901 |
3741 core.int buildCounterInstancesSetMachineTypeRequest = 0; | 3902 core.int buildCounterInstancesSetMachineTypeRequest = 0; |
3742 buildInstancesSetMachineTypeRequest() { | 3903 buildInstancesSetMachineTypeRequest() { |
3743 var o = new api.InstancesSetMachineTypeRequest(); | 3904 var o = new api.InstancesSetMachineTypeRequest(); |
3744 buildCounterInstancesSetMachineTypeRequest++; | 3905 buildCounterInstancesSetMachineTypeRequest++; |
3745 if (buildCounterInstancesSetMachineTypeRequest < 3) { | 3906 if (buildCounterInstancesSetMachineTypeRequest < 3) { |
3746 o.machineType = "foo"; | 3907 o.machineType = "foo"; |
3747 } | 3908 } |
3748 buildCounterInstancesSetMachineTypeRequest--; | 3909 buildCounterInstancesSetMachineTypeRequest--; |
3749 return o; | 3910 return o; |
3750 } | 3911 } |
3751 | 3912 |
3752 checkInstancesSetMachineTypeRequest(api.InstancesSetMachineTypeRequest o) { | 3913 checkInstancesSetMachineTypeRequest(api.InstancesSetMachineTypeRequest o) { |
3753 buildCounterInstancesSetMachineTypeRequest++; | 3914 buildCounterInstancesSetMachineTypeRequest++; |
3754 if (buildCounterInstancesSetMachineTypeRequest < 3) { | 3915 if (buildCounterInstancesSetMachineTypeRequest < 3) { |
3755 unittest.expect(o.machineType, unittest.equals('foo')); | 3916 unittest.expect(o.machineType, unittest.equals('foo')); |
3756 } | 3917 } |
3757 buildCounterInstancesSetMachineTypeRequest--; | 3918 buildCounterInstancesSetMachineTypeRequest--; |
3758 } | 3919 } |
3759 | 3920 |
3760 buildUnnamed2288() { | 3921 buildUnnamed2066() { |
3761 var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); | 3922 var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); |
3762 o.add(buildCustomerEncryptionKeyProtectedDisk()); | 3923 o.add(buildCustomerEncryptionKeyProtectedDisk()); |
3763 o.add(buildCustomerEncryptionKeyProtectedDisk()); | 3924 o.add(buildCustomerEncryptionKeyProtectedDisk()); |
3764 return o; | 3925 return o; |
3765 } | 3926 } |
3766 | 3927 |
3767 checkUnnamed2288(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { | 3928 checkUnnamed2066(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { |
3768 unittest.expect(o, unittest.hasLength(2)); | 3929 unittest.expect(o, unittest.hasLength(2)); |
3769 checkCustomerEncryptionKeyProtectedDisk(o[0]); | 3930 checkCustomerEncryptionKeyProtectedDisk(o[0]); |
3770 checkCustomerEncryptionKeyProtectedDisk(o[1]); | 3931 checkCustomerEncryptionKeyProtectedDisk(o[1]); |
3771 } | 3932 } |
3772 | 3933 |
3773 core.int buildCounterInstancesStartWithEncryptionKeyRequest = 0; | 3934 core.int buildCounterInstancesStartWithEncryptionKeyRequest = 0; |
3774 buildInstancesStartWithEncryptionKeyRequest() { | 3935 buildInstancesStartWithEncryptionKeyRequest() { |
3775 var o = new api.InstancesStartWithEncryptionKeyRequest(); | 3936 var o = new api.InstancesStartWithEncryptionKeyRequest(); |
3776 buildCounterInstancesStartWithEncryptionKeyRequest++; | 3937 buildCounterInstancesStartWithEncryptionKeyRequest++; |
3777 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { | 3938 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { |
3778 o.disks = buildUnnamed2288(); | 3939 o.disks = buildUnnamed2066(); |
3779 } | 3940 } |
3780 buildCounterInstancesStartWithEncryptionKeyRequest--; | 3941 buildCounterInstancesStartWithEncryptionKeyRequest--; |
3781 return o; | 3942 return o; |
3782 } | 3943 } |
3783 | 3944 |
3784 checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyR
equest o) { | 3945 checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyR
equest o) { |
3785 buildCounterInstancesStartWithEncryptionKeyRequest++; | 3946 buildCounterInstancesStartWithEncryptionKeyRequest++; |
3786 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { | 3947 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { |
3787 checkUnnamed2288(o.disks); | 3948 checkUnnamed2066(o.disks); |
3788 } | 3949 } |
3789 buildCounterInstancesStartWithEncryptionKeyRequest--; | 3950 buildCounterInstancesStartWithEncryptionKeyRequest--; |
3790 } | 3951 } |
3791 | 3952 |
3792 core.int buildCounterLicense = 0; | 3953 core.int buildCounterLicense = 0; |
3793 buildLicense() { | 3954 buildLicense() { |
3794 var o = new api.License(); | 3955 var o = new api.License(); |
3795 buildCounterLicense++; | 3956 buildCounterLicense++; |
3796 if (buildCounterLicense < 3) { | 3957 if (buildCounterLicense < 3) { |
3797 o.chargesUseFee = true; | 3958 o.chargesUseFee = true; |
(...skipping 28 matching lines...) Expand all Loading... |
3826 } | 3987 } |
3827 | 3988 |
3828 checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) { | 3989 checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) { |
3829 buildCounterMachineTypeScratchDisks++; | 3990 buildCounterMachineTypeScratchDisks++; |
3830 if (buildCounterMachineTypeScratchDisks < 3) { | 3991 if (buildCounterMachineTypeScratchDisks < 3) { |
3831 unittest.expect(o.diskGb, unittest.equals(42)); | 3992 unittest.expect(o.diskGb, unittest.equals(42)); |
3832 } | 3993 } |
3833 buildCounterMachineTypeScratchDisks--; | 3994 buildCounterMachineTypeScratchDisks--; |
3834 } | 3995 } |
3835 | 3996 |
3836 buildUnnamed2289() { | 3997 buildUnnamed2067() { |
3837 var o = new core.List<api.MachineTypeScratchDisks>(); | 3998 var o = new core.List<api.MachineTypeScratchDisks>(); |
3838 o.add(buildMachineTypeScratchDisks()); | 3999 o.add(buildMachineTypeScratchDisks()); |
3839 o.add(buildMachineTypeScratchDisks()); | 4000 o.add(buildMachineTypeScratchDisks()); |
3840 return o; | 4001 return o; |
3841 } | 4002 } |
3842 | 4003 |
3843 checkUnnamed2289(core.List<api.MachineTypeScratchDisks> o) { | 4004 checkUnnamed2067(core.List<api.MachineTypeScratchDisks> o) { |
3844 unittest.expect(o, unittest.hasLength(2)); | 4005 unittest.expect(o, unittest.hasLength(2)); |
3845 checkMachineTypeScratchDisks(o[0]); | 4006 checkMachineTypeScratchDisks(o[0]); |
3846 checkMachineTypeScratchDisks(o[1]); | 4007 checkMachineTypeScratchDisks(o[1]); |
3847 } | 4008 } |
3848 | 4009 |
3849 core.int buildCounterMachineType = 0; | 4010 core.int buildCounterMachineType = 0; |
3850 buildMachineType() { | 4011 buildMachineType() { |
3851 var o = new api.MachineType(); | 4012 var o = new api.MachineType(); |
3852 buildCounterMachineType++; | 4013 buildCounterMachineType++; |
3853 if (buildCounterMachineType < 3) { | 4014 if (buildCounterMachineType < 3) { |
3854 o.creationTimestamp = "foo"; | 4015 o.creationTimestamp = "foo"; |
3855 o.deprecated = buildDeprecationStatus(); | 4016 o.deprecated = buildDeprecationStatus(); |
3856 o.description = "foo"; | 4017 o.description = "foo"; |
3857 o.guestCpus = 42; | 4018 o.guestCpus = 42; |
3858 o.id = "foo"; | 4019 o.id = "foo"; |
3859 o.imageSpaceGb = 42; | 4020 o.imageSpaceGb = 42; |
3860 o.isSharedCpu = true; | 4021 o.isSharedCpu = true; |
3861 o.kind = "foo"; | 4022 o.kind = "foo"; |
3862 o.maximumPersistentDisks = 42; | 4023 o.maximumPersistentDisks = 42; |
3863 o.maximumPersistentDisksSizeGb = "foo"; | 4024 o.maximumPersistentDisksSizeGb = "foo"; |
3864 o.memoryMb = 42; | 4025 o.memoryMb = 42; |
3865 o.name = "foo"; | 4026 o.name = "foo"; |
3866 o.scratchDisks = buildUnnamed2289(); | 4027 o.scratchDisks = buildUnnamed2067(); |
3867 o.selfLink = "foo"; | 4028 o.selfLink = "foo"; |
3868 o.zone = "foo"; | 4029 o.zone = "foo"; |
3869 } | 4030 } |
3870 buildCounterMachineType--; | 4031 buildCounterMachineType--; |
3871 return o; | 4032 return o; |
3872 } | 4033 } |
3873 | 4034 |
3874 checkMachineType(api.MachineType o) { | 4035 checkMachineType(api.MachineType o) { |
3875 buildCounterMachineType++; | 4036 buildCounterMachineType++; |
3876 if (buildCounterMachineType < 3) { | 4037 if (buildCounterMachineType < 3) { |
3877 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 4038 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
3878 checkDeprecationStatus(o.deprecated); | 4039 checkDeprecationStatus(o.deprecated); |
3879 unittest.expect(o.description, unittest.equals('foo')); | 4040 unittest.expect(o.description, unittest.equals('foo')); |
3880 unittest.expect(o.guestCpus, unittest.equals(42)); | 4041 unittest.expect(o.guestCpus, unittest.equals(42)); |
3881 unittest.expect(o.id, unittest.equals('foo')); | 4042 unittest.expect(o.id, unittest.equals('foo')); |
3882 unittest.expect(o.imageSpaceGb, unittest.equals(42)); | 4043 unittest.expect(o.imageSpaceGb, unittest.equals(42)); |
3883 unittest.expect(o.isSharedCpu, unittest.isTrue); | 4044 unittest.expect(o.isSharedCpu, unittest.isTrue); |
3884 unittest.expect(o.kind, unittest.equals('foo')); | 4045 unittest.expect(o.kind, unittest.equals('foo')); |
3885 unittest.expect(o.maximumPersistentDisks, unittest.equals(42)); | 4046 unittest.expect(o.maximumPersistentDisks, unittest.equals(42)); |
3886 unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); | 4047 unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); |
3887 unittest.expect(o.memoryMb, unittest.equals(42)); | 4048 unittest.expect(o.memoryMb, unittest.equals(42)); |
3888 unittest.expect(o.name, unittest.equals('foo')); | 4049 unittest.expect(o.name, unittest.equals('foo')); |
3889 checkUnnamed2289(o.scratchDisks); | 4050 checkUnnamed2067(o.scratchDisks); |
3890 unittest.expect(o.selfLink, unittest.equals('foo')); | 4051 unittest.expect(o.selfLink, unittest.equals('foo')); |
3891 unittest.expect(o.zone, unittest.equals('foo')); | 4052 unittest.expect(o.zone, unittest.equals('foo')); |
3892 } | 4053 } |
3893 buildCounterMachineType--; | 4054 buildCounterMachineType--; |
3894 } | 4055 } |
3895 | 4056 |
3896 buildUnnamed2290() { | 4057 buildUnnamed2068() { |
3897 var o = new core.Map<core.String, api.MachineTypesScopedList>(); | 4058 var o = new core.Map<core.String, api.MachineTypesScopedList>(); |
3898 o["x"] = buildMachineTypesScopedList(); | 4059 o["x"] = buildMachineTypesScopedList(); |
3899 o["y"] = buildMachineTypesScopedList(); | 4060 o["y"] = buildMachineTypesScopedList(); |
3900 return o; | 4061 return o; |
3901 } | 4062 } |
3902 | 4063 |
3903 checkUnnamed2290(core.Map<core.String, api.MachineTypesScopedList> o) { | 4064 checkUnnamed2068(core.Map<core.String, api.MachineTypesScopedList> o) { |
3904 unittest.expect(o, unittest.hasLength(2)); | 4065 unittest.expect(o, unittest.hasLength(2)); |
3905 checkMachineTypesScopedList(o["x"]); | 4066 checkMachineTypesScopedList(o["x"]); |
3906 checkMachineTypesScopedList(o["y"]); | 4067 checkMachineTypesScopedList(o["y"]); |
3907 } | 4068 } |
3908 | 4069 |
3909 core.int buildCounterMachineTypeAggregatedList = 0; | 4070 core.int buildCounterMachineTypeAggregatedList = 0; |
3910 buildMachineTypeAggregatedList() { | 4071 buildMachineTypeAggregatedList() { |
3911 var o = new api.MachineTypeAggregatedList(); | 4072 var o = new api.MachineTypeAggregatedList(); |
3912 buildCounterMachineTypeAggregatedList++; | 4073 buildCounterMachineTypeAggregatedList++; |
3913 if (buildCounterMachineTypeAggregatedList < 3) { | 4074 if (buildCounterMachineTypeAggregatedList < 3) { |
3914 o.id = "foo"; | 4075 o.id = "foo"; |
3915 o.items = buildUnnamed2290(); | 4076 o.items = buildUnnamed2068(); |
3916 o.kind = "foo"; | 4077 o.kind = "foo"; |
3917 o.nextPageToken = "foo"; | 4078 o.nextPageToken = "foo"; |
3918 o.selfLink = "foo"; | 4079 o.selfLink = "foo"; |
3919 } | 4080 } |
3920 buildCounterMachineTypeAggregatedList--; | 4081 buildCounterMachineTypeAggregatedList--; |
3921 return o; | 4082 return o; |
3922 } | 4083 } |
3923 | 4084 |
3924 checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { | 4085 checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { |
3925 buildCounterMachineTypeAggregatedList++; | 4086 buildCounterMachineTypeAggregatedList++; |
3926 if (buildCounterMachineTypeAggregatedList < 3) { | 4087 if (buildCounterMachineTypeAggregatedList < 3) { |
3927 unittest.expect(o.id, unittest.equals('foo')); | 4088 unittest.expect(o.id, unittest.equals('foo')); |
3928 checkUnnamed2290(o.items); | 4089 checkUnnamed2068(o.items); |
3929 unittest.expect(o.kind, unittest.equals('foo')); | 4090 unittest.expect(o.kind, unittest.equals('foo')); |
3930 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4091 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3931 unittest.expect(o.selfLink, unittest.equals('foo')); | 4092 unittest.expect(o.selfLink, unittest.equals('foo')); |
3932 } | 4093 } |
3933 buildCounterMachineTypeAggregatedList--; | 4094 buildCounterMachineTypeAggregatedList--; |
3934 } | 4095 } |
3935 | 4096 |
3936 buildUnnamed2291() { | 4097 buildUnnamed2069() { |
3937 var o = new core.List<api.MachineType>(); | 4098 var o = new core.List<api.MachineType>(); |
3938 o.add(buildMachineType()); | 4099 o.add(buildMachineType()); |
3939 o.add(buildMachineType()); | 4100 o.add(buildMachineType()); |
3940 return o; | 4101 return o; |
3941 } | 4102 } |
3942 | 4103 |
3943 checkUnnamed2291(core.List<api.MachineType> o) { | 4104 checkUnnamed2069(core.List<api.MachineType> o) { |
3944 unittest.expect(o, unittest.hasLength(2)); | 4105 unittest.expect(o, unittest.hasLength(2)); |
3945 checkMachineType(o[0]); | 4106 checkMachineType(o[0]); |
3946 checkMachineType(o[1]); | 4107 checkMachineType(o[1]); |
3947 } | 4108 } |
3948 | 4109 |
3949 core.int buildCounterMachineTypeList = 0; | 4110 core.int buildCounterMachineTypeList = 0; |
3950 buildMachineTypeList() { | 4111 buildMachineTypeList() { |
3951 var o = new api.MachineTypeList(); | 4112 var o = new api.MachineTypeList(); |
3952 buildCounterMachineTypeList++; | 4113 buildCounterMachineTypeList++; |
3953 if (buildCounterMachineTypeList < 3) { | 4114 if (buildCounterMachineTypeList < 3) { |
3954 o.id = "foo"; | 4115 o.id = "foo"; |
3955 o.items = buildUnnamed2291(); | 4116 o.items = buildUnnamed2069(); |
3956 o.kind = "foo"; | 4117 o.kind = "foo"; |
3957 o.nextPageToken = "foo"; | 4118 o.nextPageToken = "foo"; |
3958 o.selfLink = "foo"; | 4119 o.selfLink = "foo"; |
3959 } | 4120 } |
3960 buildCounterMachineTypeList--; | 4121 buildCounterMachineTypeList--; |
3961 return o; | 4122 return o; |
3962 } | 4123 } |
3963 | 4124 |
3964 checkMachineTypeList(api.MachineTypeList o) { | 4125 checkMachineTypeList(api.MachineTypeList o) { |
3965 buildCounterMachineTypeList++; | 4126 buildCounterMachineTypeList++; |
3966 if (buildCounterMachineTypeList < 3) { | 4127 if (buildCounterMachineTypeList < 3) { |
3967 unittest.expect(o.id, unittest.equals('foo')); | 4128 unittest.expect(o.id, unittest.equals('foo')); |
3968 checkUnnamed2291(o.items); | 4129 checkUnnamed2069(o.items); |
3969 unittest.expect(o.kind, unittest.equals('foo')); | 4130 unittest.expect(o.kind, unittest.equals('foo')); |
3970 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4131 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3971 unittest.expect(o.selfLink, unittest.equals('foo')); | 4132 unittest.expect(o.selfLink, unittest.equals('foo')); |
3972 } | 4133 } |
3973 buildCounterMachineTypeList--; | 4134 buildCounterMachineTypeList--; |
3974 } | 4135 } |
3975 | 4136 |
3976 buildUnnamed2292() { | 4137 buildUnnamed2070() { |
3977 var o = new core.List<api.MachineType>(); | 4138 var o = new core.List<api.MachineType>(); |
3978 o.add(buildMachineType()); | 4139 o.add(buildMachineType()); |
3979 o.add(buildMachineType()); | 4140 o.add(buildMachineType()); |
3980 return o; | 4141 return o; |
3981 } | 4142 } |
3982 | 4143 |
3983 checkUnnamed2292(core.List<api.MachineType> o) { | 4144 checkUnnamed2070(core.List<api.MachineType> o) { |
3984 unittest.expect(o, unittest.hasLength(2)); | 4145 unittest.expect(o, unittest.hasLength(2)); |
3985 checkMachineType(o[0]); | 4146 checkMachineType(o[0]); |
3986 checkMachineType(o[1]); | 4147 checkMachineType(o[1]); |
3987 } | 4148 } |
3988 | 4149 |
3989 core.int buildCounterMachineTypesScopedListWarningData = 0; | 4150 core.int buildCounterMachineTypesScopedListWarningData = 0; |
3990 buildMachineTypesScopedListWarningData() { | 4151 buildMachineTypesScopedListWarningData() { |
3991 var o = new api.MachineTypesScopedListWarningData(); | 4152 var o = new api.MachineTypesScopedListWarningData(); |
3992 buildCounterMachineTypesScopedListWarningData++; | 4153 buildCounterMachineTypesScopedListWarningData++; |
3993 if (buildCounterMachineTypesScopedListWarningData < 3) { | 4154 if (buildCounterMachineTypesScopedListWarningData < 3) { |
3994 o.key = "foo"; | 4155 o.key = "foo"; |
3995 o.value = "foo"; | 4156 o.value = "foo"; |
3996 } | 4157 } |
3997 buildCounterMachineTypesScopedListWarningData--; | 4158 buildCounterMachineTypesScopedListWarningData--; |
3998 return o; | 4159 return o; |
3999 } | 4160 } |
4000 | 4161 |
4001 checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
{ | 4162 checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
{ |
4002 buildCounterMachineTypesScopedListWarningData++; | 4163 buildCounterMachineTypesScopedListWarningData++; |
4003 if (buildCounterMachineTypesScopedListWarningData < 3) { | 4164 if (buildCounterMachineTypesScopedListWarningData < 3) { |
4004 unittest.expect(o.key, unittest.equals('foo')); | 4165 unittest.expect(o.key, unittest.equals('foo')); |
4005 unittest.expect(o.value, unittest.equals('foo')); | 4166 unittest.expect(o.value, unittest.equals('foo')); |
4006 } | 4167 } |
4007 buildCounterMachineTypesScopedListWarningData--; | 4168 buildCounterMachineTypesScopedListWarningData--; |
4008 } | 4169 } |
4009 | 4170 |
4010 buildUnnamed2293() { | 4171 buildUnnamed2071() { |
4011 var o = new core.List<api.MachineTypesScopedListWarningData>(); | 4172 var o = new core.List<api.MachineTypesScopedListWarningData>(); |
4012 o.add(buildMachineTypesScopedListWarningData()); | 4173 o.add(buildMachineTypesScopedListWarningData()); |
4013 o.add(buildMachineTypesScopedListWarningData()); | 4174 o.add(buildMachineTypesScopedListWarningData()); |
4014 return o; | 4175 return o; |
4015 } | 4176 } |
4016 | 4177 |
4017 checkUnnamed2293(core.List<api.MachineTypesScopedListWarningData> o) { | 4178 checkUnnamed2071(core.List<api.MachineTypesScopedListWarningData> o) { |
4018 unittest.expect(o, unittest.hasLength(2)); | 4179 unittest.expect(o, unittest.hasLength(2)); |
4019 checkMachineTypesScopedListWarningData(o[0]); | 4180 checkMachineTypesScopedListWarningData(o[0]); |
4020 checkMachineTypesScopedListWarningData(o[1]); | 4181 checkMachineTypesScopedListWarningData(o[1]); |
4021 } | 4182 } |
4022 | 4183 |
4023 core.int buildCounterMachineTypesScopedListWarning = 0; | 4184 core.int buildCounterMachineTypesScopedListWarning = 0; |
4024 buildMachineTypesScopedListWarning() { | 4185 buildMachineTypesScopedListWarning() { |
4025 var o = new api.MachineTypesScopedListWarning(); | 4186 var o = new api.MachineTypesScopedListWarning(); |
4026 buildCounterMachineTypesScopedListWarning++; | 4187 buildCounterMachineTypesScopedListWarning++; |
4027 if (buildCounterMachineTypesScopedListWarning < 3) { | 4188 if (buildCounterMachineTypesScopedListWarning < 3) { |
4028 o.code = "foo"; | 4189 o.code = "foo"; |
4029 o.data = buildUnnamed2293(); | 4190 o.data = buildUnnamed2071(); |
4030 o.message = "foo"; | 4191 o.message = "foo"; |
4031 } | 4192 } |
4032 buildCounterMachineTypesScopedListWarning--; | 4193 buildCounterMachineTypesScopedListWarning--; |
4033 return o; | 4194 return o; |
4034 } | 4195 } |
4035 | 4196 |
4036 checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { | 4197 checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { |
4037 buildCounterMachineTypesScopedListWarning++; | 4198 buildCounterMachineTypesScopedListWarning++; |
4038 if (buildCounterMachineTypesScopedListWarning < 3) { | 4199 if (buildCounterMachineTypesScopedListWarning < 3) { |
4039 unittest.expect(o.code, unittest.equals('foo')); | 4200 unittest.expect(o.code, unittest.equals('foo')); |
4040 checkUnnamed2293(o.data); | 4201 checkUnnamed2071(o.data); |
4041 unittest.expect(o.message, unittest.equals('foo')); | 4202 unittest.expect(o.message, unittest.equals('foo')); |
4042 } | 4203 } |
4043 buildCounterMachineTypesScopedListWarning--; | 4204 buildCounterMachineTypesScopedListWarning--; |
4044 } | 4205 } |
4045 | 4206 |
4046 core.int buildCounterMachineTypesScopedList = 0; | 4207 core.int buildCounterMachineTypesScopedList = 0; |
4047 buildMachineTypesScopedList() { | 4208 buildMachineTypesScopedList() { |
4048 var o = new api.MachineTypesScopedList(); | 4209 var o = new api.MachineTypesScopedList(); |
4049 buildCounterMachineTypesScopedList++; | 4210 buildCounterMachineTypesScopedList++; |
4050 if (buildCounterMachineTypesScopedList < 3) { | 4211 if (buildCounterMachineTypesScopedList < 3) { |
4051 o.machineTypes = buildUnnamed2292(); | 4212 o.machineTypes = buildUnnamed2070(); |
4052 o.warning = buildMachineTypesScopedListWarning(); | 4213 o.warning = buildMachineTypesScopedListWarning(); |
4053 } | 4214 } |
4054 buildCounterMachineTypesScopedList--; | 4215 buildCounterMachineTypesScopedList--; |
4055 return o; | 4216 return o; |
4056 } | 4217 } |
4057 | 4218 |
4058 checkMachineTypesScopedList(api.MachineTypesScopedList o) { | 4219 checkMachineTypesScopedList(api.MachineTypesScopedList o) { |
4059 buildCounterMachineTypesScopedList++; | 4220 buildCounterMachineTypesScopedList++; |
4060 if (buildCounterMachineTypesScopedList < 3) { | 4221 if (buildCounterMachineTypesScopedList < 3) { |
4061 checkUnnamed2292(o.machineTypes); | 4222 checkUnnamed2070(o.machineTypes); |
4062 checkMachineTypesScopedListWarning(o.warning); | 4223 checkMachineTypesScopedListWarning(o.warning); |
4063 } | 4224 } |
4064 buildCounterMachineTypesScopedList--; | 4225 buildCounterMachineTypesScopedList--; |
4065 } | 4226 } |
4066 | 4227 |
4067 core.int buildCounterManagedInstance = 0; | 4228 core.int buildCounterManagedInstance = 0; |
4068 buildManagedInstance() { | 4229 buildManagedInstance() { |
4069 var o = new api.ManagedInstance(); | 4230 var o = new api.ManagedInstance(); |
4070 buildCounterManagedInstance++; | 4231 buildCounterManagedInstance++; |
4071 if (buildCounterManagedInstance < 3) { | 4232 if (buildCounterManagedInstance < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4107 checkManagedInstanceLastAttemptErrorsErrors(api.ManagedInstanceLastAttemptErrors
Errors o) { | 4268 checkManagedInstanceLastAttemptErrorsErrors(api.ManagedInstanceLastAttemptErrors
Errors o) { |
4108 buildCounterManagedInstanceLastAttemptErrorsErrors++; | 4269 buildCounterManagedInstanceLastAttemptErrorsErrors++; |
4109 if (buildCounterManagedInstanceLastAttemptErrorsErrors < 3) { | 4270 if (buildCounterManagedInstanceLastAttemptErrorsErrors < 3) { |
4110 unittest.expect(o.code, unittest.equals('foo')); | 4271 unittest.expect(o.code, unittest.equals('foo')); |
4111 unittest.expect(o.location, unittest.equals('foo')); | 4272 unittest.expect(o.location, unittest.equals('foo')); |
4112 unittest.expect(o.message, unittest.equals('foo')); | 4273 unittest.expect(o.message, unittest.equals('foo')); |
4113 } | 4274 } |
4114 buildCounterManagedInstanceLastAttemptErrorsErrors--; | 4275 buildCounterManagedInstanceLastAttemptErrorsErrors--; |
4115 } | 4276 } |
4116 | 4277 |
4117 buildUnnamed2294() { | 4278 buildUnnamed2072() { |
4118 var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); | 4279 var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); |
4119 o.add(buildManagedInstanceLastAttemptErrorsErrors()); | 4280 o.add(buildManagedInstanceLastAttemptErrorsErrors()); |
4120 o.add(buildManagedInstanceLastAttemptErrorsErrors()); | 4281 o.add(buildManagedInstanceLastAttemptErrorsErrors()); |
4121 return o; | 4282 return o; |
4122 } | 4283 } |
4123 | 4284 |
4124 checkUnnamed2294(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { | 4285 checkUnnamed2072(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { |
4125 unittest.expect(o, unittest.hasLength(2)); | 4286 unittest.expect(o, unittest.hasLength(2)); |
4126 checkManagedInstanceLastAttemptErrorsErrors(o[0]); | 4287 checkManagedInstanceLastAttemptErrorsErrors(o[0]); |
4127 checkManagedInstanceLastAttemptErrorsErrors(o[1]); | 4288 checkManagedInstanceLastAttemptErrorsErrors(o[1]); |
4128 } | 4289 } |
4129 | 4290 |
4130 core.int buildCounterManagedInstanceLastAttemptErrors = 0; | 4291 core.int buildCounterManagedInstanceLastAttemptErrors = 0; |
4131 buildManagedInstanceLastAttemptErrors() { | 4292 buildManagedInstanceLastAttemptErrors() { |
4132 var o = new api.ManagedInstanceLastAttemptErrors(); | 4293 var o = new api.ManagedInstanceLastAttemptErrors(); |
4133 buildCounterManagedInstanceLastAttemptErrors++; | 4294 buildCounterManagedInstanceLastAttemptErrors++; |
4134 if (buildCounterManagedInstanceLastAttemptErrors < 3) { | 4295 if (buildCounterManagedInstanceLastAttemptErrors < 3) { |
4135 o.errors = buildUnnamed2294(); | 4296 o.errors = buildUnnamed2072(); |
4136 } | 4297 } |
4137 buildCounterManagedInstanceLastAttemptErrors--; | 4298 buildCounterManagedInstanceLastAttemptErrors--; |
4138 return o; | 4299 return o; |
4139 } | 4300 } |
4140 | 4301 |
4141 checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { | 4302 checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { |
4142 buildCounterManagedInstanceLastAttemptErrors++; | 4303 buildCounterManagedInstanceLastAttemptErrors++; |
4143 if (buildCounterManagedInstanceLastAttemptErrors < 3) { | 4304 if (buildCounterManagedInstanceLastAttemptErrors < 3) { |
4144 checkUnnamed2294(o.errors); | 4305 checkUnnamed2072(o.errors); |
4145 } | 4306 } |
4146 buildCounterManagedInstanceLastAttemptErrors--; | 4307 buildCounterManagedInstanceLastAttemptErrors--; |
4147 } | 4308 } |
4148 | 4309 |
4149 core.int buildCounterManagedInstanceLastAttempt = 0; | 4310 core.int buildCounterManagedInstanceLastAttempt = 0; |
4150 buildManagedInstanceLastAttempt() { | 4311 buildManagedInstanceLastAttempt() { |
4151 var o = new api.ManagedInstanceLastAttempt(); | 4312 var o = new api.ManagedInstanceLastAttempt(); |
4152 buildCounterManagedInstanceLastAttempt++; | 4313 buildCounterManagedInstanceLastAttempt++; |
4153 if (buildCounterManagedInstanceLastAttempt < 3) { | 4314 if (buildCounterManagedInstanceLastAttempt < 3) { |
4154 o.errors = buildManagedInstanceLastAttemptErrors(); | 4315 o.errors = buildManagedInstanceLastAttemptErrors(); |
(...skipping 24 matching lines...) Expand all Loading... |
4179 | 4340 |
4180 checkMetadataItems(api.MetadataItems o) { | 4341 checkMetadataItems(api.MetadataItems o) { |
4181 buildCounterMetadataItems++; | 4342 buildCounterMetadataItems++; |
4182 if (buildCounterMetadataItems < 3) { | 4343 if (buildCounterMetadataItems < 3) { |
4183 unittest.expect(o.key, unittest.equals('foo')); | 4344 unittest.expect(o.key, unittest.equals('foo')); |
4184 unittest.expect(o.value, unittest.equals('foo')); | 4345 unittest.expect(o.value, unittest.equals('foo')); |
4185 } | 4346 } |
4186 buildCounterMetadataItems--; | 4347 buildCounterMetadataItems--; |
4187 } | 4348 } |
4188 | 4349 |
4189 buildUnnamed2295() { | 4350 buildUnnamed2073() { |
4190 var o = new core.List<api.MetadataItems>(); | 4351 var o = new core.List<api.MetadataItems>(); |
4191 o.add(buildMetadataItems()); | 4352 o.add(buildMetadataItems()); |
4192 o.add(buildMetadataItems()); | 4353 o.add(buildMetadataItems()); |
4193 return o; | 4354 return o; |
4194 } | 4355 } |
4195 | 4356 |
4196 checkUnnamed2295(core.List<api.MetadataItems> o) { | 4357 checkUnnamed2073(core.List<api.MetadataItems> o) { |
4197 unittest.expect(o, unittest.hasLength(2)); | 4358 unittest.expect(o, unittest.hasLength(2)); |
4198 checkMetadataItems(o[0]); | 4359 checkMetadataItems(o[0]); |
4199 checkMetadataItems(o[1]); | 4360 checkMetadataItems(o[1]); |
4200 } | 4361 } |
4201 | 4362 |
4202 core.int buildCounterMetadata = 0; | 4363 core.int buildCounterMetadata = 0; |
4203 buildMetadata() { | 4364 buildMetadata() { |
4204 var o = new api.Metadata(); | 4365 var o = new api.Metadata(); |
4205 buildCounterMetadata++; | 4366 buildCounterMetadata++; |
4206 if (buildCounterMetadata < 3) { | 4367 if (buildCounterMetadata < 3) { |
4207 o.fingerprint = "foo"; | 4368 o.fingerprint = "foo"; |
4208 o.items = buildUnnamed2295(); | 4369 o.items = buildUnnamed2073(); |
4209 o.kind = "foo"; | 4370 o.kind = "foo"; |
4210 } | 4371 } |
4211 buildCounterMetadata--; | 4372 buildCounterMetadata--; |
4212 return o; | 4373 return o; |
4213 } | 4374 } |
4214 | 4375 |
4215 checkMetadata(api.Metadata o) { | 4376 checkMetadata(api.Metadata o) { |
4216 buildCounterMetadata++; | 4377 buildCounterMetadata++; |
4217 if (buildCounterMetadata < 3) { | 4378 if (buildCounterMetadata < 3) { |
4218 unittest.expect(o.fingerprint, unittest.equals('foo')); | 4379 unittest.expect(o.fingerprint, unittest.equals('foo')); |
4219 checkUnnamed2295(o.items); | 4380 checkUnnamed2073(o.items); |
4220 unittest.expect(o.kind, unittest.equals('foo')); | 4381 unittest.expect(o.kind, unittest.equals('foo')); |
4221 } | 4382 } |
4222 buildCounterMetadata--; | 4383 buildCounterMetadata--; |
4223 } | 4384 } |
4224 | 4385 |
4225 core.int buildCounterNamedPort = 0; | 4386 core.int buildCounterNamedPort = 0; |
4226 buildNamedPort() { | 4387 buildNamedPort() { |
4227 var o = new api.NamedPort(); | 4388 var o = new api.NamedPort(); |
4228 buildCounterNamedPort++; | 4389 buildCounterNamedPort++; |
4229 if (buildCounterNamedPort < 3) { | 4390 if (buildCounterNamedPort < 3) { |
4230 o.name = "foo"; | 4391 o.name = "foo"; |
4231 o.port = 42; | 4392 o.port = 42; |
4232 } | 4393 } |
4233 buildCounterNamedPort--; | 4394 buildCounterNamedPort--; |
4234 return o; | 4395 return o; |
4235 } | 4396 } |
4236 | 4397 |
4237 checkNamedPort(api.NamedPort o) { | 4398 checkNamedPort(api.NamedPort o) { |
4238 buildCounterNamedPort++; | 4399 buildCounterNamedPort++; |
4239 if (buildCounterNamedPort < 3) { | 4400 if (buildCounterNamedPort < 3) { |
4240 unittest.expect(o.name, unittest.equals('foo')); | 4401 unittest.expect(o.name, unittest.equals('foo')); |
4241 unittest.expect(o.port, unittest.equals(42)); | 4402 unittest.expect(o.port, unittest.equals(42)); |
4242 } | 4403 } |
4243 buildCounterNamedPort--; | 4404 buildCounterNamedPort--; |
4244 } | 4405 } |
4245 | 4406 |
4246 buildUnnamed2296() { | 4407 buildUnnamed2074() { |
4247 var o = new core.List<core.String>(); | 4408 var o = new core.List<core.String>(); |
4248 o.add("foo"); | 4409 o.add("foo"); |
4249 o.add("foo"); | 4410 o.add("foo"); |
4250 return o; | 4411 return o; |
4251 } | 4412 } |
4252 | 4413 |
4253 checkUnnamed2296(core.List<core.String> o) { | 4414 checkUnnamed2074(core.List<core.String> o) { |
4254 unittest.expect(o, unittest.hasLength(2)); | 4415 unittest.expect(o, unittest.hasLength(2)); |
4255 unittest.expect(o[0], unittest.equals('foo')); | 4416 unittest.expect(o[0], unittest.equals('foo')); |
4256 unittest.expect(o[1], unittest.equals('foo')); | 4417 unittest.expect(o[1], unittest.equals('foo')); |
4257 } | 4418 } |
4258 | 4419 |
4259 core.int buildCounterNetwork = 0; | 4420 core.int buildCounterNetwork = 0; |
4260 buildNetwork() { | 4421 buildNetwork() { |
4261 var o = new api.Network(); | 4422 var o = new api.Network(); |
4262 buildCounterNetwork++; | 4423 buildCounterNetwork++; |
4263 if (buildCounterNetwork < 3) { | 4424 if (buildCounterNetwork < 3) { |
4264 o.IPv4Range = "foo"; | 4425 o.IPv4Range = "foo"; |
4265 o.autoCreateSubnetworks = true; | 4426 o.autoCreateSubnetworks = true; |
4266 o.creationTimestamp = "foo"; | 4427 o.creationTimestamp = "foo"; |
4267 o.description = "foo"; | 4428 o.description = "foo"; |
4268 o.gatewayIPv4 = "foo"; | 4429 o.gatewayIPv4 = "foo"; |
4269 o.id = "foo"; | 4430 o.id = "foo"; |
4270 o.kind = "foo"; | 4431 o.kind = "foo"; |
4271 o.name = "foo"; | 4432 o.name = "foo"; |
4272 o.selfLink = "foo"; | 4433 o.selfLink = "foo"; |
4273 o.subnetworks = buildUnnamed2296(); | 4434 o.subnetworks = buildUnnamed2074(); |
4274 } | 4435 } |
4275 buildCounterNetwork--; | 4436 buildCounterNetwork--; |
4276 return o; | 4437 return o; |
4277 } | 4438 } |
4278 | 4439 |
4279 checkNetwork(api.Network o) { | 4440 checkNetwork(api.Network o) { |
4280 buildCounterNetwork++; | 4441 buildCounterNetwork++; |
4281 if (buildCounterNetwork < 3) { | 4442 if (buildCounterNetwork < 3) { |
4282 unittest.expect(o.IPv4Range, unittest.equals('foo')); | 4443 unittest.expect(o.IPv4Range, unittest.equals('foo')); |
4283 unittest.expect(o.autoCreateSubnetworks, unittest.isTrue); | 4444 unittest.expect(o.autoCreateSubnetworks, unittest.isTrue); |
4284 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 4445 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
4285 unittest.expect(o.description, unittest.equals('foo')); | 4446 unittest.expect(o.description, unittest.equals('foo')); |
4286 unittest.expect(o.gatewayIPv4, unittest.equals('foo')); | 4447 unittest.expect(o.gatewayIPv4, unittest.equals('foo')); |
4287 unittest.expect(o.id, unittest.equals('foo')); | 4448 unittest.expect(o.id, unittest.equals('foo')); |
4288 unittest.expect(o.kind, unittest.equals('foo')); | 4449 unittest.expect(o.kind, unittest.equals('foo')); |
4289 unittest.expect(o.name, unittest.equals('foo')); | 4450 unittest.expect(o.name, unittest.equals('foo')); |
4290 unittest.expect(o.selfLink, unittest.equals('foo')); | 4451 unittest.expect(o.selfLink, unittest.equals('foo')); |
4291 checkUnnamed2296(o.subnetworks); | 4452 checkUnnamed2074(o.subnetworks); |
4292 } | 4453 } |
4293 buildCounterNetwork--; | 4454 buildCounterNetwork--; |
4294 } | 4455 } |
4295 | 4456 |
4296 buildUnnamed2297() { | 4457 buildUnnamed2075() { |
4297 var o = new core.List<api.AccessConfig>(); | 4458 var o = new core.List<api.AccessConfig>(); |
4298 o.add(buildAccessConfig()); | 4459 o.add(buildAccessConfig()); |
4299 o.add(buildAccessConfig()); | 4460 o.add(buildAccessConfig()); |
4300 return o; | 4461 return o; |
4301 } | 4462 } |
4302 | 4463 |
4303 checkUnnamed2297(core.List<api.AccessConfig> o) { | 4464 checkUnnamed2075(core.List<api.AccessConfig> o) { |
4304 unittest.expect(o, unittest.hasLength(2)); | 4465 unittest.expect(o, unittest.hasLength(2)); |
4305 checkAccessConfig(o[0]); | 4466 checkAccessConfig(o[0]); |
4306 checkAccessConfig(o[1]); | 4467 checkAccessConfig(o[1]); |
4307 } | 4468 } |
4308 | 4469 |
4309 core.int buildCounterNetworkInterface = 0; | 4470 core.int buildCounterNetworkInterface = 0; |
4310 buildNetworkInterface() { | 4471 buildNetworkInterface() { |
4311 var o = new api.NetworkInterface(); | 4472 var o = new api.NetworkInterface(); |
4312 buildCounterNetworkInterface++; | 4473 buildCounterNetworkInterface++; |
4313 if (buildCounterNetworkInterface < 3) { | 4474 if (buildCounterNetworkInterface < 3) { |
4314 o.accessConfigs = buildUnnamed2297(); | 4475 o.accessConfigs = buildUnnamed2075(); |
4315 o.name = "foo"; | 4476 o.name = "foo"; |
4316 o.network = "foo"; | 4477 o.network = "foo"; |
4317 o.networkIP = "foo"; | 4478 o.networkIP = "foo"; |
4318 o.subnetwork = "foo"; | 4479 o.subnetwork = "foo"; |
4319 } | 4480 } |
4320 buildCounterNetworkInterface--; | 4481 buildCounterNetworkInterface--; |
4321 return o; | 4482 return o; |
4322 } | 4483 } |
4323 | 4484 |
4324 checkNetworkInterface(api.NetworkInterface o) { | 4485 checkNetworkInterface(api.NetworkInterface o) { |
4325 buildCounterNetworkInterface++; | 4486 buildCounterNetworkInterface++; |
4326 if (buildCounterNetworkInterface < 3) { | 4487 if (buildCounterNetworkInterface < 3) { |
4327 checkUnnamed2297(o.accessConfigs); | 4488 checkUnnamed2075(o.accessConfigs); |
4328 unittest.expect(o.name, unittest.equals('foo')); | 4489 unittest.expect(o.name, unittest.equals('foo')); |
4329 unittest.expect(o.network, unittest.equals('foo')); | 4490 unittest.expect(o.network, unittest.equals('foo')); |
4330 unittest.expect(o.networkIP, unittest.equals('foo')); | 4491 unittest.expect(o.networkIP, unittest.equals('foo')); |
4331 unittest.expect(o.subnetwork, unittest.equals('foo')); | 4492 unittest.expect(o.subnetwork, unittest.equals('foo')); |
4332 } | 4493 } |
4333 buildCounterNetworkInterface--; | 4494 buildCounterNetworkInterface--; |
4334 } | 4495 } |
4335 | 4496 |
4336 buildUnnamed2298() { | 4497 buildUnnamed2076() { |
4337 var o = new core.List<api.Network>(); | 4498 var o = new core.List<api.Network>(); |
4338 o.add(buildNetwork()); | 4499 o.add(buildNetwork()); |
4339 o.add(buildNetwork()); | 4500 o.add(buildNetwork()); |
4340 return o; | 4501 return o; |
4341 } | 4502 } |
4342 | 4503 |
4343 checkUnnamed2298(core.List<api.Network> o) { | 4504 checkUnnamed2076(core.List<api.Network> o) { |
4344 unittest.expect(o, unittest.hasLength(2)); | 4505 unittest.expect(o, unittest.hasLength(2)); |
4345 checkNetwork(o[0]); | 4506 checkNetwork(o[0]); |
4346 checkNetwork(o[1]); | 4507 checkNetwork(o[1]); |
4347 } | 4508 } |
4348 | 4509 |
4349 core.int buildCounterNetworkList = 0; | 4510 core.int buildCounterNetworkList = 0; |
4350 buildNetworkList() { | 4511 buildNetworkList() { |
4351 var o = new api.NetworkList(); | 4512 var o = new api.NetworkList(); |
4352 buildCounterNetworkList++; | 4513 buildCounterNetworkList++; |
4353 if (buildCounterNetworkList < 3) { | 4514 if (buildCounterNetworkList < 3) { |
4354 o.id = "foo"; | 4515 o.id = "foo"; |
4355 o.items = buildUnnamed2298(); | 4516 o.items = buildUnnamed2076(); |
4356 o.kind = "foo"; | 4517 o.kind = "foo"; |
4357 o.nextPageToken = "foo"; | 4518 o.nextPageToken = "foo"; |
4358 o.selfLink = "foo"; | 4519 o.selfLink = "foo"; |
4359 } | 4520 } |
4360 buildCounterNetworkList--; | 4521 buildCounterNetworkList--; |
4361 return o; | 4522 return o; |
4362 } | 4523 } |
4363 | 4524 |
4364 checkNetworkList(api.NetworkList o) { | 4525 checkNetworkList(api.NetworkList o) { |
4365 buildCounterNetworkList++; | 4526 buildCounterNetworkList++; |
4366 if (buildCounterNetworkList < 3) { | 4527 if (buildCounterNetworkList < 3) { |
4367 unittest.expect(o.id, unittest.equals('foo')); | 4528 unittest.expect(o.id, unittest.equals('foo')); |
4368 checkUnnamed2298(o.items); | 4529 checkUnnamed2076(o.items); |
4369 unittest.expect(o.kind, unittest.equals('foo')); | 4530 unittest.expect(o.kind, unittest.equals('foo')); |
4370 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4531 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
4371 unittest.expect(o.selfLink, unittest.equals('foo')); | 4532 unittest.expect(o.selfLink, unittest.equals('foo')); |
4372 } | 4533 } |
4373 buildCounterNetworkList--; | 4534 buildCounterNetworkList--; |
4374 } | 4535 } |
4375 | 4536 |
4376 core.int buildCounterOperationErrorErrors = 0; | 4537 core.int buildCounterOperationErrorErrors = 0; |
4377 buildOperationErrorErrors() { | 4538 buildOperationErrorErrors() { |
4378 var o = new api.OperationErrorErrors(); | 4539 var o = new api.OperationErrorErrors(); |
(...skipping 10 matching lines...) Expand all Loading... |
4389 checkOperationErrorErrors(api.OperationErrorErrors o) { | 4550 checkOperationErrorErrors(api.OperationErrorErrors o) { |
4390 buildCounterOperationErrorErrors++; | 4551 buildCounterOperationErrorErrors++; |
4391 if (buildCounterOperationErrorErrors < 3) { | 4552 if (buildCounterOperationErrorErrors < 3) { |
4392 unittest.expect(o.code, unittest.equals('foo')); | 4553 unittest.expect(o.code, unittest.equals('foo')); |
4393 unittest.expect(o.location, unittest.equals('foo')); | 4554 unittest.expect(o.location, unittest.equals('foo')); |
4394 unittest.expect(o.message, unittest.equals('foo')); | 4555 unittest.expect(o.message, unittest.equals('foo')); |
4395 } | 4556 } |
4396 buildCounterOperationErrorErrors--; | 4557 buildCounterOperationErrorErrors--; |
4397 } | 4558 } |
4398 | 4559 |
4399 buildUnnamed2299() { | 4560 buildUnnamed2077() { |
4400 var o = new core.List<api.OperationErrorErrors>(); | 4561 var o = new core.List<api.OperationErrorErrors>(); |
4401 o.add(buildOperationErrorErrors()); | 4562 o.add(buildOperationErrorErrors()); |
4402 o.add(buildOperationErrorErrors()); | 4563 o.add(buildOperationErrorErrors()); |
4403 return o; | 4564 return o; |
4404 } | 4565 } |
4405 | 4566 |
4406 checkUnnamed2299(core.List<api.OperationErrorErrors> o) { | 4567 checkUnnamed2077(core.List<api.OperationErrorErrors> o) { |
4407 unittest.expect(o, unittest.hasLength(2)); | 4568 unittest.expect(o, unittest.hasLength(2)); |
4408 checkOperationErrorErrors(o[0]); | 4569 checkOperationErrorErrors(o[0]); |
4409 checkOperationErrorErrors(o[1]); | 4570 checkOperationErrorErrors(o[1]); |
4410 } | 4571 } |
4411 | 4572 |
4412 core.int buildCounterOperationError = 0; | 4573 core.int buildCounterOperationError = 0; |
4413 buildOperationError() { | 4574 buildOperationError() { |
4414 var o = new api.OperationError(); | 4575 var o = new api.OperationError(); |
4415 buildCounterOperationError++; | 4576 buildCounterOperationError++; |
4416 if (buildCounterOperationError < 3) { | 4577 if (buildCounterOperationError < 3) { |
4417 o.errors = buildUnnamed2299(); | 4578 o.errors = buildUnnamed2077(); |
4418 } | 4579 } |
4419 buildCounterOperationError--; | 4580 buildCounterOperationError--; |
4420 return o; | 4581 return o; |
4421 } | 4582 } |
4422 | 4583 |
4423 checkOperationError(api.OperationError o) { | 4584 checkOperationError(api.OperationError o) { |
4424 buildCounterOperationError++; | 4585 buildCounterOperationError++; |
4425 if (buildCounterOperationError < 3) { | 4586 if (buildCounterOperationError < 3) { |
4426 checkUnnamed2299(o.errors); | 4587 checkUnnamed2077(o.errors); |
4427 } | 4588 } |
4428 buildCounterOperationError--; | 4589 buildCounterOperationError--; |
4429 } | 4590 } |
4430 | 4591 |
4431 core.int buildCounterOperationWarningsData = 0; | 4592 core.int buildCounterOperationWarningsData = 0; |
4432 buildOperationWarningsData() { | 4593 buildOperationWarningsData() { |
4433 var o = new api.OperationWarningsData(); | 4594 var o = new api.OperationWarningsData(); |
4434 buildCounterOperationWarningsData++; | 4595 buildCounterOperationWarningsData++; |
4435 if (buildCounterOperationWarningsData < 3) { | 4596 if (buildCounterOperationWarningsData < 3) { |
4436 o.key = "foo"; | 4597 o.key = "foo"; |
4437 o.value = "foo"; | 4598 o.value = "foo"; |
4438 } | 4599 } |
4439 buildCounterOperationWarningsData--; | 4600 buildCounterOperationWarningsData--; |
4440 return o; | 4601 return o; |
4441 } | 4602 } |
4442 | 4603 |
4443 checkOperationWarningsData(api.OperationWarningsData o) { | 4604 checkOperationWarningsData(api.OperationWarningsData o) { |
4444 buildCounterOperationWarningsData++; | 4605 buildCounterOperationWarningsData++; |
4445 if (buildCounterOperationWarningsData < 3) { | 4606 if (buildCounterOperationWarningsData < 3) { |
4446 unittest.expect(o.key, unittest.equals('foo')); | 4607 unittest.expect(o.key, unittest.equals('foo')); |
4447 unittest.expect(o.value, unittest.equals('foo')); | 4608 unittest.expect(o.value, unittest.equals('foo')); |
4448 } | 4609 } |
4449 buildCounterOperationWarningsData--; | 4610 buildCounterOperationWarningsData--; |
4450 } | 4611 } |
4451 | 4612 |
4452 buildUnnamed2300() { | 4613 buildUnnamed2078() { |
4453 var o = new core.List<api.OperationWarningsData>(); | 4614 var o = new core.List<api.OperationWarningsData>(); |
4454 o.add(buildOperationWarningsData()); | 4615 o.add(buildOperationWarningsData()); |
4455 o.add(buildOperationWarningsData()); | 4616 o.add(buildOperationWarningsData()); |
4456 return o; | 4617 return o; |
4457 } | 4618 } |
4458 | 4619 |
4459 checkUnnamed2300(core.List<api.OperationWarningsData> o) { | 4620 checkUnnamed2078(core.List<api.OperationWarningsData> o) { |
4460 unittest.expect(o, unittest.hasLength(2)); | 4621 unittest.expect(o, unittest.hasLength(2)); |
4461 checkOperationWarningsData(o[0]); | 4622 checkOperationWarningsData(o[0]); |
4462 checkOperationWarningsData(o[1]); | 4623 checkOperationWarningsData(o[1]); |
4463 } | 4624 } |
4464 | 4625 |
4465 core.int buildCounterOperationWarnings = 0; | 4626 core.int buildCounterOperationWarnings = 0; |
4466 buildOperationWarnings() { | 4627 buildOperationWarnings() { |
4467 var o = new api.OperationWarnings(); | 4628 var o = new api.OperationWarnings(); |
4468 buildCounterOperationWarnings++; | 4629 buildCounterOperationWarnings++; |
4469 if (buildCounterOperationWarnings < 3) { | 4630 if (buildCounterOperationWarnings < 3) { |
4470 o.code = "foo"; | 4631 o.code = "foo"; |
4471 o.data = buildUnnamed2300(); | 4632 o.data = buildUnnamed2078(); |
4472 o.message = "foo"; | 4633 o.message = "foo"; |
4473 } | 4634 } |
4474 buildCounterOperationWarnings--; | 4635 buildCounterOperationWarnings--; |
4475 return o; | 4636 return o; |
4476 } | 4637 } |
4477 | 4638 |
4478 checkOperationWarnings(api.OperationWarnings o) { | 4639 checkOperationWarnings(api.OperationWarnings o) { |
4479 buildCounterOperationWarnings++; | 4640 buildCounterOperationWarnings++; |
4480 if (buildCounterOperationWarnings < 3) { | 4641 if (buildCounterOperationWarnings < 3) { |
4481 unittest.expect(o.code, unittest.equals('foo')); | 4642 unittest.expect(o.code, unittest.equals('foo')); |
4482 checkUnnamed2300(o.data); | 4643 checkUnnamed2078(o.data); |
4483 unittest.expect(o.message, unittest.equals('foo')); | 4644 unittest.expect(o.message, unittest.equals('foo')); |
4484 } | 4645 } |
4485 buildCounterOperationWarnings--; | 4646 buildCounterOperationWarnings--; |
4486 } | 4647 } |
4487 | 4648 |
4488 buildUnnamed2301() { | 4649 buildUnnamed2079() { |
4489 var o = new core.List<api.OperationWarnings>(); | 4650 var o = new core.List<api.OperationWarnings>(); |
4490 o.add(buildOperationWarnings()); | 4651 o.add(buildOperationWarnings()); |
4491 o.add(buildOperationWarnings()); | 4652 o.add(buildOperationWarnings()); |
4492 return o; | 4653 return o; |
4493 } | 4654 } |
4494 | 4655 |
4495 checkUnnamed2301(core.List<api.OperationWarnings> o) { | 4656 checkUnnamed2079(core.List<api.OperationWarnings> o) { |
4496 unittest.expect(o, unittest.hasLength(2)); | 4657 unittest.expect(o, unittest.hasLength(2)); |
4497 checkOperationWarnings(o[0]); | 4658 checkOperationWarnings(o[0]); |
4498 checkOperationWarnings(o[1]); | 4659 checkOperationWarnings(o[1]); |
4499 } | 4660 } |
4500 | 4661 |
4501 core.int buildCounterOperation = 0; | 4662 core.int buildCounterOperation = 0; |
4502 buildOperation() { | 4663 buildOperation() { |
4503 var o = new api.Operation(); | 4664 var o = new api.Operation(); |
4504 buildCounterOperation++; | 4665 buildCounterOperation++; |
4505 if (buildCounterOperation < 3) { | 4666 if (buildCounterOperation < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
4517 o.operationType = "foo"; | 4678 o.operationType = "foo"; |
4518 o.progress = 42; | 4679 o.progress = 42; |
4519 o.region = "foo"; | 4680 o.region = "foo"; |
4520 o.selfLink = "foo"; | 4681 o.selfLink = "foo"; |
4521 o.startTime = "foo"; | 4682 o.startTime = "foo"; |
4522 o.status = "foo"; | 4683 o.status = "foo"; |
4523 o.statusMessage = "foo"; | 4684 o.statusMessage = "foo"; |
4524 o.targetId = "foo"; | 4685 o.targetId = "foo"; |
4525 o.targetLink = "foo"; | 4686 o.targetLink = "foo"; |
4526 o.user = "foo"; | 4687 o.user = "foo"; |
4527 o.warnings = buildUnnamed2301(); | 4688 o.warnings = buildUnnamed2079(); |
4528 o.zone = "foo"; | 4689 o.zone = "foo"; |
4529 } | 4690 } |
4530 buildCounterOperation--; | 4691 buildCounterOperation--; |
4531 return o; | 4692 return o; |
4532 } | 4693 } |
4533 | 4694 |
4534 checkOperation(api.Operation o) { | 4695 checkOperation(api.Operation o) { |
4535 buildCounterOperation++; | 4696 buildCounterOperation++; |
4536 if (buildCounterOperation < 3) { | 4697 if (buildCounterOperation < 3) { |
4537 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 4698 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
(...skipping 10 matching lines...) Expand all Loading... |
4548 unittest.expect(o.operationType, unittest.equals('foo')); | 4709 unittest.expect(o.operationType, unittest.equals('foo')); |
4549 unittest.expect(o.progress, unittest.equals(42)); | 4710 unittest.expect(o.progress, unittest.equals(42)); |
4550 unittest.expect(o.region, unittest.equals('foo')); | 4711 unittest.expect(o.region, unittest.equals('foo')); |
4551 unittest.expect(o.selfLink, unittest.equals('foo')); | 4712 unittest.expect(o.selfLink, unittest.equals('foo')); |
4552 unittest.expect(o.startTime, unittest.equals('foo')); | 4713 unittest.expect(o.startTime, unittest.equals('foo')); |
4553 unittest.expect(o.status, unittest.equals('foo')); | 4714 unittest.expect(o.status, unittest.equals('foo')); |
4554 unittest.expect(o.statusMessage, unittest.equals('foo')); | 4715 unittest.expect(o.statusMessage, unittest.equals('foo')); |
4555 unittest.expect(o.targetId, unittest.equals('foo')); | 4716 unittest.expect(o.targetId, unittest.equals('foo')); |
4556 unittest.expect(o.targetLink, unittest.equals('foo')); | 4717 unittest.expect(o.targetLink, unittest.equals('foo')); |
4557 unittest.expect(o.user, unittest.equals('foo')); | 4718 unittest.expect(o.user, unittest.equals('foo')); |
4558 checkUnnamed2301(o.warnings); | 4719 checkUnnamed2079(o.warnings); |
4559 unittest.expect(o.zone, unittest.equals('foo')); | 4720 unittest.expect(o.zone, unittest.equals('foo')); |
4560 } | 4721 } |
4561 buildCounterOperation--; | 4722 buildCounterOperation--; |
4562 } | 4723 } |
4563 | 4724 |
4564 buildUnnamed2302() { | 4725 buildUnnamed2080() { |
4565 var o = new core.Map<core.String, api.OperationsScopedList>(); | 4726 var o = new core.Map<core.String, api.OperationsScopedList>(); |
4566 o["x"] = buildOperationsScopedList(); | 4727 o["x"] = buildOperationsScopedList(); |
4567 o["y"] = buildOperationsScopedList(); | 4728 o["y"] = buildOperationsScopedList(); |
4568 return o; | 4729 return o; |
4569 } | 4730 } |
4570 | 4731 |
4571 checkUnnamed2302(core.Map<core.String, api.OperationsScopedList> o) { | 4732 checkUnnamed2080(core.Map<core.String, api.OperationsScopedList> o) { |
4572 unittest.expect(o, unittest.hasLength(2)); | 4733 unittest.expect(o, unittest.hasLength(2)); |
4573 checkOperationsScopedList(o["x"]); | 4734 checkOperationsScopedList(o["x"]); |
4574 checkOperationsScopedList(o["y"]); | 4735 checkOperationsScopedList(o["y"]); |
4575 } | 4736 } |
4576 | 4737 |
4577 core.int buildCounterOperationAggregatedList = 0; | 4738 core.int buildCounterOperationAggregatedList = 0; |
4578 buildOperationAggregatedList() { | 4739 buildOperationAggregatedList() { |
4579 var o = new api.OperationAggregatedList(); | 4740 var o = new api.OperationAggregatedList(); |
4580 buildCounterOperationAggregatedList++; | 4741 buildCounterOperationAggregatedList++; |
4581 if (buildCounterOperationAggregatedList < 3) { | 4742 if (buildCounterOperationAggregatedList < 3) { |
4582 o.id = "foo"; | 4743 o.id = "foo"; |
4583 o.items = buildUnnamed2302(); | 4744 o.items = buildUnnamed2080(); |
4584 o.kind = "foo"; | 4745 o.kind = "foo"; |
4585 o.nextPageToken = "foo"; | 4746 o.nextPageToken = "foo"; |
4586 o.selfLink = "foo"; | 4747 o.selfLink = "foo"; |
4587 } | 4748 } |
4588 buildCounterOperationAggregatedList--; | 4749 buildCounterOperationAggregatedList--; |
4589 return o; | 4750 return o; |
4590 } | 4751 } |
4591 | 4752 |
4592 checkOperationAggregatedList(api.OperationAggregatedList o) { | 4753 checkOperationAggregatedList(api.OperationAggregatedList o) { |
4593 buildCounterOperationAggregatedList++; | 4754 buildCounterOperationAggregatedList++; |
4594 if (buildCounterOperationAggregatedList < 3) { | 4755 if (buildCounterOperationAggregatedList < 3) { |
4595 unittest.expect(o.id, unittest.equals('foo')); | 4756 unittest.expect(o.id, unittest.equals('foo')); |
4596 checkUnnamed2302(o.items); | 4757 checkUnnamed2080(o.items); |
4597 unittest.expect(o.kind, unittest.equals('foo')); | 4758 unittest.expect(o.kind, unittest.equals('foo')); |
4598 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4759 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
4599 unittest.expect(o.selfLink, unittest.equals('foo')); | 4760 unittest.expect(o.selfLink, unittest.equals('foo')); |
4600 } | 4761 } |
4601 buildCounterOperationAggregatedList--; | 4762 buildCounterOperationAggregatedList--; |
4602 } | 4763 } |
4603 | 4764 |
4604 buildUnnamed2303() { | 4765 buildUnnamed2081() { |
4605 var o = new core.List<api.Operation>(); | 4766 var o = new core.List<api.Operation>(); |
4606 o.add(buildOperation()); | 4767 o.add(buildOperation()); |
4607 o.add(buildOperation()); | 4768 o.add(buildOperation()); |
4608 return o; | 4769 return o; |
4609 } | 4770 } |
4610 | 4771 |
4611 checkUnnamed2303(core.List<api.Operation> o) { | 4772 checkUnnamed2081(core.List<api.Operation> o) { |
4612 unittest.expect(o, unittest.hasLength(2)); | 4773 unittest.expect(o, unittest.hasLength(2)); |
4613 checkOperation(o[0]); | 4774 checkOperation(o[0]); |
4614 checkOperation(o[1]); | 4775 checkOperation(o[1]); |
4615 } | 4776 } |
4616 | 4777 |
4617 core.int buildCounterOperationList = 0; | 4778 core.int buildCounterOperationList = 0; |
4618 buildOperationList() { | 4779 buildOperationList() { |
4619 var o = new api.OperationList(); | 4780 var o = new api.OperationList(); |
4620 buildCounterOperationList++; | 4781 buildCounterOperationList++; |
4621 if (buildCounterOperationList < 3) { | 4782 if (buildCounterOperationList < 3) { |
4622 o.id = "foo"; | 4783 o.id = "foo"; |
4623 o.items = buildUnnamed2303(); | 4784 o.items = buildUnnamed2081(); |
4624 o.kind = "foo"; | 4785 o.kind = "foo"; |
4625 o.nextPageToken = "foo"; | 4786 o.nextPageToken = "foo"; |
4626 o.selfLink = "foo"; | 4787 o.selfLink = "foo"; |
4627 } | 4788 } |
4628 buildCounterOperationList--; | 4789 buildCounterOperationList--; |
4629 return o; | 4790 return o; |
4630 } | 4791 } |
4631 | 4792 |
4632 checkOperationList(api.OperationList o) { | 4793 checkOperationList(api.OperationList o) { |
4633 buildCounterOperationList++; | 4794 buildCounterOperationList++; |
4634 if (buildCounterOperationList < 3) { | 4795 if (buildCounterOperationList < 3) { |
4635 unittest.expect(o.id, unittest.equals('foo')); | 4796 unittest.expect(o.id, unittest.equals('foo')); |
4636 checkUnnamed2303(o.items); | 4797 checkUnnamed2081(o.items); |
4637 unittest.expect(o.kind, unittest.equals('foo')); | 4798 unittest.expect(o.kind, unittest.equals('foo')); |
4638 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4799 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
4639 unittest.expect(o.selfLink, unittest.equals('foo')); | 4800 unittest.expect(o.selfLink, unittest.equals('foo')); |
4640 } | 4801 } |
4641 buildCounterOperationList--; | 4802 buildCounterOperationList--; |
4642 } | 4803 } |
4643 | 4804 |
4644 buildUnnamed2304() { | 4805 buildUnnamed2082() { |
4645 var o = new core.List<api.Operation>(); | 4806 var o = new core.List<api.Operation>(); |
4646 o.add(buildOperation()); | 4807 o.add(buildOperation()); |
4647 o.add(buildOperation()); | 4808 o.add(buildOperation()); |
4648 return o; | 4809 return o; |
4649 } | 4810 } |
4650 | 4811 |
4651 checkUnnamed2304(core.List<api.Operation> o) { | 4812 checkUnnamed2082(core.List<api.Operation> o) { |
4652 unittest.expect(o, unittest.hasLength(2)); | 4813 unittest.expect(o, unittest.hasLength(2)); |
4653 checkOperation(o[0]); | 4814 checkOperation(o[0]); |
4654 checkOperation(o[1]); | 4815 checkOperation(o[1]); |
4655 } | 4816 } |
4656 | 4817 |
4657 core.int buildCounterOperationsScopedListWarningData = 0; | 4818 core.int buildCounterOperationsScopedListWarningData = 0; |
4658 buildOperationsScopedListWarningData() { | 4819 buildOperationsScopedListWarningData() { |
4659 var o = new api.OperationsScopedListWarningData(); | 4820 var o = new api.OperationsScopedListWarningData(); |
4660 buildCounterOperationsScopedListWarningData++; | 4821 buildCounterOperationsScopedListWarningData++; |
4661 if (buildCounterOperationsScopedListWarningData < 3) { | 4822 if (buildCounterOperationsScopedListWarningData < 3) { |
4662 o.key = "foo"; | 4823 o.key = "foo"; |
4663 o.value = "foo"; | 4824 o.value = "foo"; |
4664 } | 4825 } |
4665 buildCounterOperationsScopedListWarningData--; | 4826 buildCounterOperationsScopedListWarningData--; |
4666 return o; | 4827 return o; |
4667 } | 4828 } |
4668 | 4829 |
4669 checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) { | 4830 checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) { |
4670 buildCounterOperationsScopedListWarningData++; | 4831 buildCounterOperationsScopedListWarningData++; |
4671 if (buildCounterOperationsScopedListWarningData < 3) { | 4832 if (buildCounterOperationsScopedListWarningData < 3) { |
4672 unittest.expect(o.key, unittest.equals('foo')); | 4833 unittest.expect(o.key, unittest.equals('foo')); |
4673 unittest.expect(o.value, unittest.equals('foo')); | 4834 unittest.expect(o.value, unittest.equals('foo')); |
4674 } | 4835 } |
4675 buildCounterOperationsScopedListWarningData--; | 4836 buildCounterOperationsScopedListWarningData--; |
4676 } | 4837 } |
4677 | 4838 |
4678 buildUnnamed2305() { | 4839 buildUnnamed2083() { |
4679 var o = new core.List<api.OperationsScopedListWarningData>(); | 4840 var o = new core.List<api.OperationsScopedListWarningData>(); |
4680 o.add(buildOperationsScopedListWarningData()); | 4841 o.add(buildOperationsScopedListWarningData()); |
4681 o.add(buildOperationsScopedListWarningData()); | 4842 o.add(buildOperationsScopedListWarningData()); |
4682 return o; | 4843 return o; |
4683 } | 4844 } |
4684 | 4845 |
4685 checkUnnamed2305(core.List<api.OperationsScopedListWarningData> o) { | 4846 checkUnnamed2083(core.List<api.OperationsScopedListWarningData> o) { |
4686 unittest.expect(o, unittest.hasLength(2)); | 4847 unittest.expect(o, unittest.hasLength(2)); |
4687 checkOperationsScopedListWarningData(o[0]); | 4848 checkOperationsScopedListWarningData(o[0]); |
4688 checkOperationsScopedListWarningData(o[1]); | 4849 checkOperationsScopedListWarningData(o[1]); |
4689 } | 4850 } |
4690 | 4851 |
4691 core.int buildCounterOperationsScopedListWarning = 0; | 4852 core.int buildCounterOperationsScopedListWarning = 0; |
4692 buildOperationsScopedListWarning() { | 4853 buildOperationsScopedListWarning() { |
4693 var o = new api.OperationsScopedListWarning(); | 4854 var o = new api.OperationsScopedListWarning(); |
4694 buildCounterOperationsScopedListWarning++; | 4855 buildCounterOperationsScopedListWarning++; |
4695 if (buildCounterOperationsScopedListWarning < 3) { | 4856 if (buildCounterOperationsScopedListWarning < 3) { |
4696 o.code = "foo"; | 4857 o.code = "foo"; |
4697 o.data = buildUnnamed2305(); | 4858 o.data = buildUnnamed2083(); |
4698 o.message = "foo"; | 4859 o.message = "foo"; |
4699 } | 4860 } |
4700 buildCounterOperationsScopedListWarning--; | 4861 buildCounterOperationsScopedListWarning--; |
4701 return o; | 4862 return o; |
4702 } | 4863 } |
4703 | 4864 |
4704 checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { | 4865 checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { |
4705 buildCounterOperationsScopedListWarning++; | 4866 buildCounterOperationsScopedListWarning++; |
4706 if (buildCounterOperationsScopedListWarning < 3) { | 4867 if (buildCounterOperationsScopedListWarning < 3) { |
4707 unittest.expect(o.code, unittest.equals('foo')); | 4868 unittest.expect(o.code, unittest.equals('foo')); |
4708 checkUnnamed2305(o.data); | 4869 checkUnnamed2083(o.data); |
4709 unittest.expect(o.message, unittest.equals('foo')); | 4870 unittest.expect(o.message, unittest.equals('foo')); |
4710 } | 4871 } |
4711 buildCounterOperationsScopedListWarning--; | 4872 buildCounterOperationsScopedListWarning--; |
4712 } | 4873 } |
4713 | 4874 |
4714 core.int buildCounterOperationsScopedList = 0; | 4875 core.int buildCounterOperationsScopedList = 0; |
4715 buildOperationsScopedList() { | 4876 buildOperationsScopedList() { |
4716 var o = new api.OperationsScopedList(); | 4877 var o = new api.OperationsScopedList(); |
4717 buildCounterOperationsScopedList++; | 4878 buildCounterOperationsScopedList++; |
4718 if (buildCounterOperationsScopedList < 3) { | 4879 if (buildCounterOperationsScopedList < 3) { |
4719 o.operations = buildUnnamed2304(); | 4880 o.operations = buildUnnamed2082(); |
4720 o.warning = buildOperationsScopedListWarning(); | 4881 o.warning = buildOperationsScopedListWarning(); |
4721 } | 4882 } |
4722 buildCounterOperationsScopedList--; | 4883 buildCounterOperationsScopedList--; |
4723 return o; | 4884 return o; |
4724 } | 4885 } |
4725 | 4886 |
4726 checkOperationsScopedList(api.OperationsScopedList o) { | 4887 checkOperationsScopedList(api.OperationsScopedList o) { |
4727 buildCounterOperationsScopedList++; | 4888 buildCounterOperationsScopedList++; |
4728 if (buildCounterOperationsScopedList < 3) { | 4889 if (buildCounterOperationsScopedList < 3) { |
4729 checkUnnamed2304(o.operations); | 4890 checkUnnamed2082(o.operations); |
4730 checkOperationsScopedListWarning(o.warning); | 4891 checkOperationsScopedListWarning(o.warning); |
4731 } | 4892 } |
4732 buildCounterOperationsScopedList--; | 4893 buildCounterOperationsScopedList--; |
4733 } | 4894 } |
4734 | 4895 |
4735 buildUnnamed2306() { | 4896 buildUnnamed2084() { |
4736 var o = new core.List<api.PathRule>(); | 4897 var o = new core.List<api.PathRule>(); |
4737 o.add(buildPathRule()); | 4898 o.add(buildPathRule()); |
4738 o.add(buildPathRule()); | 4899 o.add(buildPathRule()); |
4739 return o; | 4900 return o; |
4740 } | 4901 } |
4741 | 4902 |
4742 checkUnnamed2306(core.List<api.PathRule> o) { | 4903 checkUnnamed2084(core.List<api.PathRule> o) { |
4743 unittest.expect(o, unittest.hasLength(2)); | 4904 unittest.expect(o, unittest.hasLength(2)); |
4744 checkPathRule(o[0]); | 4905 checkPathRule(o[0]); |
4745 checkPathRule(o[1]); | 4906 checkPathRule(o[1]); |
4746 } | 4907 } |
4747 | 4908 |
4748 core.int buildCounterPathMatcher = 0; | 4909 core.int buildCounterPathMatcher = 0; |
4749 buildPathMatcher() { | 4910 buildPathMatcher() { |
4750 var o = new api.PathMatcher(); | 4911 var o = new api.PathMatcher(); |
4751 buildCounterPathMatcher++; | 4912 buildCounterPathMatcher++; |
4752 if (buildCounterPathMatcher < 3) { | 4913 if (buildCounterPathMatcher < 3) { |
4753 o.defaultService = "foo"; | 4914 o.defaultService = "foo"; |
4754 o.description = "foo"; | 4915 o.description = "foo"; |
4755 o.name = "foo"; | 4916 o.name = "foo"; |
4756 o.pathRules = buildUnnamed2306(); | 4917 o.pathRules = buildUnnamed2084(); |
4757 } | 4918 } |
4758 buildCounterPathMatcher--; | 4919 buildCounterPathMatcher--; |
4759 return o; | 4920 return o; |
4760 } | 4921 } |
4761 | 4922 |
4762 checkPathMatcher(api.PathMatcher o) { | 4923 checkPathMatcher(api.PathMatcher o) { |
4763 buildCounterPathMatcher++; | 4924 buildCounterPathMatcher++; |
4764 if (buildCounterPathMatcher < 3) { | 4925 if (buildCounterPathMatcher < 3) { |
4765 unittest.expect(o.defaultService, unittest.equals('foo')); | 4926 unittest.expect(o.defaultService, unittest.equals('foo')); |
4766 unittest.expect(o.description, unittest.equals('foo')); | 4927 unittest.expect(o.description, unittest.equals('foo')); |
4767 unittest.expect(o.name, unittest.equals('foo')); | 4928 unittest.expect(o.name, unittest.equals('foo')); |
4768 checkUnnamed2306(o.pathRules); | 4929 checkUnnamed2084(o.pathRules); |
4769 } | 4930 } |
4770 buildCounterPathMatcher--; | 4931 buildCounterPathMatcher--; |
4771 } | 4932 } |
4772 | 4933 |
4773 buildUnnamed2307() { | 4934 buildUnnamed2085() { |
4774 var o = new core.List<core.String>(); | 4935 var o = new core.List<core.String>(); |
4775 o.add("foo"); | 4936 o.add("foo"); |
4776 o.add("foo"); | 4937 o.add("foo"); |
4777 return o; | 4938 return o; |
4778 } | 4939 } |
4779 | 4940 |
4780 checkUnnamed2307(core.List<core.String> o) { | 4941 checkUnnamed2085(core.List<core.String> o) { |
4781 unittest.expect(o, unittest.hasLength(2)); | 4942 unittest.expect(o, unittest.hasLength(2)); |
4782 unittest.expect(o[0], unittest.equals('foo')); | 4943 unittest.expect(o[0], unittest.equals('foo')); |
4783 unittest.expect(o[1], unittest.equals('foo')); | 4944 unittest.expect(o[1], unittest.equals('foo')); |
4784 } | 4945 } |
4785 | 4946 |
4786 core.int buildCounterPathRule = 0; | 4947 core.int buildCounterPathRule = 0; |
4787 buildPathRule() { | 4948 buildPathRule() { |
4788 var o = new api.PathRule(); | 4949 var o = new api.PathRule(); |
4789 buildCounterPathRule++; | 4950 buildCounterPathRule++; |
4790 if (buildCounterPathRule < 3) { | 4951 if (buildCounterPathRule < 3) { |
4791 o.paths = buildUnnamed2307(); | 4952 o.paths = buildUnnamed2085(); |
4792 o.service = "foo"; | 4953 o.service = "foo"; |
4793 } | 4954 } |
4794 buildCounterPathRule--; | 4955 buildCounterPathRule--; |
4795 return o; | 4956 return o; |
4796 } | 4957 } |
4797 | 4958 |
4798 checkPathRule(api.PathRule o) { | 4959 checkPathRule(api.PathRule o) { |
4799 buildCounterPathRule++; | 4960 buildCounterPathRule++; |
4800 if (buildCounterPathRule < 3) { | 4961 if (buildCounterPathRule < 3) { |
4801 checkUnnamed2307(o.paths); | 4962 checkUnnamed2085(o.paths); |
4802 unittest.expect(o.service, unittest.equals('foo')); | 4963 unittest.expect(o.service, unittest.equals('foo')); |
4803 } | 4964 } |
4804 buildCounterPathRule--; | 4965 buildCounterPathRule--; |
4805 } | 4966 } |
4806 | 4967 |
4807 buildUnnamed2308() { | 4968 buildUnnamed2086() { |
4808 var o = new core.List<core.String>(); | 4969 var o = new core.List<core.String>(); |
4809 o.add("foo"); | 4970 o.add("foo"); |
4810 o.add("foo"); | 4971 o.add("foo"); |
4811 return o; | 4972 return o; |
4812 } | 4973 } |
4813 | 4974 |
4814 checkUnnamed2308(core.List<core.String> o) { | 4975 checkUnnamed2086(core.List<core.String> o) { |
4815 unittest.expect(o, unittest.hasLength(2)); | 4976 unittest.expect(o, unittest.hasLength(2)); |
4816 unittest.expect(o[0], unittest.equals('foo')); | 4977 unittest.expect(o[0], unittest.equals('foo')); |
4817 unittest.expect(o[1], unittest.equals('foo')); | 4978 unittest.expect(o[1], unittest.equals('foo')); |
4818 } | 4979 } |
4819 | 4980 |
4820 buildUnnamed2309() { | 4981 buildUnnamed2087() { |
4821 var o = new core.List<api.Quota>(); | 4982 var o = new core.List<api.Quota>(); |
4822 o.add(buildQuota()); | 4983 o.add(buildQuota()); |
4823 o.add(buildQuota()); | 4984 o.add(buildQuota()); |
4824 return o; | 4985 return o; |
4825 } | 4986 } |
4826 | 4987 |
4827 checkUnnamed2309(core.List<api.Quota> o) { | 4988 checkUnnamed2087(core.List<api.Quota> o) { |
4828 unittest.expect(o, unittest.hasLength(2)); | 4989 unittest.expect(o, unittest.hasLength(2)); |
4829 checkQuota(o[0]); | 4990 checkQuota(o[0]); |
4830 checkQuota(o[1]); | 4991 checkQuota(o[1]); |
4831 } | 4992 } |
4832 | 4993 |
4833 core.int buildCounterProject = 0; | 4994 core.int buildCounterProject = 0; |
4834 buildProject() { | 4995 buildProject() { |
4835 var o = new api.Project(); | 4996 var o = new api.Project(); |
4836 buildCounterProject++; | 4997 buildCounterProject++; |
4837 if (buildCounterProject < 3) { | 4998 if (buildCounterProject < 3) { |
4838 o.commonInstanceMetadata = buildMetadata(); | 4999 o.commonInstanceMetadata = buildMetadata(); |
4839 o.creationTimestamp = "foo"; | 5000 o.creationTimestamp = "foo"; |
4840 o.defaultServiceAccount = "foo"; | 5001 o.defaultServiceAccount = "foo"; |
4841 o.description = "foo"; | 5002 o.description = "foo"; |
4842 o.enabledFeatures = buildUnnamed2308(); | 5003 o.enabledFeatures = buildUnnamed2086(); |
4843 o.id = "foo"; | 5004 o.id = "foo"; |
4844 o.kind = "foo"; | 5005 o.kind = "foo"; |
4845 o.name = "foo"; | 5006 o.name = "foo"; |
4846 o.quotas = buildUnnamed2309(); | 5007 o.quotas = buildUnnamed2087(); |
4847 o.selfLink = "foo"; | 5008 o.selfLink = "foo"; |
4848 o.usageExportLocation = buildUsageExportLocation(); | 5009 o.usageExportLocation = buildUsageExportLocation(); |
4849 } | 5010 } |
4850 buildCounterProject--; | 5011 buildCounterProject--; |
4851 return o; | 5012 return o; |
4852 } | 5013 } |
4853 | 5014 |
4854 checkProject(api.Project o) { | 5015 checkProject(api.Project o) { |
4855 buildCounterProject++; | 5016 buildCounterProject++; |
4856 if (buildCounterProject < 3) { | 5017 if (buildCounterProject < 3) { |
4857 checkMetadata(o.commonInstanceMetadata); | 5018 checkMetadata(o.commonInstanceMetadata); |
4858 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5019 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
4859 unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); | 5020 unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); |
4860 unittest.expect(o.description, unittest.equals('foo')); | 5021 unittest.expect(o.description, unittest.equals('foo')); |
4861 checkUnnamed2308(o.enabledFeatures); | 5022 checkUnnamed2086(o.enabledFeatures); |
4862 unittest.expect(o.id, unittest.equals('foo')); | 5023 unittest.expect(o.id, unittest.equals('foo')); |
4863 unittest.expect(o.kind, unittest.equals('foo')); | 5024 unittest.expect(o.kind, unittest.equals('foo')); |
4864 unittest.expect(o.name, unittest.equals('foo')); | 5025 unittest.expect(o.name, unittest.equals('foo')); |
4865 checkUnnamed2309(o.quotas); | 5026 checkUnnamed2087(o.quotas); |
4866 unittest.expect(o.selfLink, unittest.equals('foo')); | 5027 unittest.expect(o.selfLink, unittest.equals('foo')); |
4867 checkUsageExportLocation(o.usageExportLocation); | 5028 checkUsageExportLocation(o.usageExportLocation); |
4868 } | 5029 } |
4869 buildCounterProject--; | 5030 buildCounterProject--; |
4870 } | 5031 } |
4871 | 5032 |
4872 core.int buildCounterQuota = 0; | 5033 core.int buildCounterQuota = 0; |
4873 buildQuota() { | 5034 buildQuota() { |
4874 var o = new api.Quota(); | 5035 var o = new api.Quota(); |
4875 buildCounterQuota++; | 5036 buildCounterQuota++; |
4876 if (buildCounterQuota < 3) { | 5037 if (buildCounterQuota < 3) { |
4877 o.limit = 42.0; | 5038 o.limit = 42.0; |
4878 o.metric = "foo"; | 5039 o.metric = "foo"; |
4879 o.usage = 42.0; | 5040 o.usage = 42.0; |
4880 } | 5041 } |
4881 buildCounterQuota--; | 5042 buildCounterQuota--; |
4882 return o; | 5043 return o; |
4883 } | 5044 } |
4884 | 5045 |
4885 checkQuota(api.Quota o) { | 5046 checkQuota(api.Quota o) { |
4886 buildCounterQuota++; | 5047 buildCounterQuota++; |
4887 if (buildCounterQuota < 3) { | 5048 if (buildCounterQuota < 3) { |
4888 unittest.expect(o.limit, unittest.equals(42.0)); | 5049 unittest.expect(o.limit, unittest.equals(42.0)); |
4889 unittest.expect(o.metric, unittest.equals('foo')); | 5050 unittest.expect(o.metric, unittest.equals('foo')); |
4890 unittest.expect(o.usage, unittest.equals(42.0)); | 5051 unittest.expect(o.usage, unittest.equals(42.0)); |
4891 } | 5052 } |
4892 buildCounterQuota--; | 5053 buildCounterQuota--; |
4893 } | 5054 } |
4894 | 5055 |
4895 buildUnnamed2310() { | 5056 buildUnnamed2088() { |
4896 var o = new core.List<api.Quota>(); | 5057 var o = new core.List<api.Quota>(); |
4897 o.add(buildQuota()); | 5058 o.add(buildQuota()); |
4898 o.add(buildQuota()); | 5059 o.add(buildQuota()); |
4899 return o; | 5060 return o; |
4900 } | 5061 } |
4901 | 5062 |
4902 checkUnnamed2310(core.List<api.Quota> o) { | 5063 checkUnnamed2088(core.List<api.Quota> o) { |
4903 unittest.expect(o, unittest.hasLength(2)); | 5064 unittest.expect(o, unittest.hasLength(2)); |
4904 checkQuota(o[0]); | 5065 checkQuota(o[0]); |
4905 checkQuota(o[1]); | 5066 checkQuota(o[1]); |
4906 } | 5067 } |
4907 | 5068 |
4908 buildUnnamed2311() { | 5069 buildUnnamed2089() { |
4909 var o = new core.List<core.String>(); | 5070 var o = new core.List<core.String>(); |
4910 o.add("foo"); | 5071 o.add("foo"); |
4911 o.add("foo"); | 5072 o.add("foo"); |
4912 return o; | 5073 return o; |
4913 } | 5074 } |
4914 | 5075 |
4915 checkUnnamed2311(core.List<core.String> o) { | 5076 checkUnnamed2089(core.List<core.String> o) { |
4916 unittest.expect(o, unittest.hasLength(2)); | 5077 unittest.expect(o, unittest.hasLength(2)); |
4917 unittest.expect(o[0], unittest.equals('foo')); | 5078 unittest.expect(o[0], unittest.equals('foo')); |
4918 unittest.expect(o[1], unittest.equals('foo')); | 5079 unittest.expect(o[1], unittest.equals('foo')); |
4919 } | 5080 } |
4920 | 5081 |
4921 core.int buildCounterRegion = 0; | 5082 core.int buildCounterRegion = 0; |
4922 buildRegion() { | 5083 buildRegion() { |
4923 var o = new api.Region(); | 5084 var o = new api.Region(); |
4924 buildCounterRegion++; | 5085 buildCounterRegion++; |
4925 if (buildCounterRegion < 3) { | 5086 if (buildCounterRegion < 3) { |
4926 o.creationTimestamp = "foo"; | 5087 o.creationTimestamp = "foo"; |
4927 o.deprecated = buildDeprecationStatus(); | 5088 o.deprecated = buildDeprecationStatus(); |
4928 o.description = "foo"; | 5089 o.description = "foo"; |
4929 o.id = "foo"; | 5090 o.id = "foo"; |
4930 o.kind = "foo"; | 5091 o.kind = "foo"; |
4931 o.name = "foo"; | 5092 o.name = "foo"; |
4932 o.quotas = buildUnnamed2310(); | 5093 o.quotas = buildUnnamed2088(); |
4933 o.selfLink = "foo"; | 5094 o.selfLink = "foo"; |
4934 o.status = "foo"; | 5095 o.status = "foo"; |
4935 o.zones = buildUnnamed2311(); | 5096 o.zones = buildUnnamed2089(); |
4936 } | 5097 } |
4937 buildCounterRegion--; | 5098 buildCounterRegion--; |
4938 return o; | 5099 return o; |
4939 } | 5100 } |
4940 | 5101 |
4941 checkRegion(api.Region o) { | 5102 checkRegion(api.Region o) { |
4942 buildCounterRegion++; | 5103 buildCounterRegion++; |
4943 if (buildCounterRegion < 3) { | 5104 if (buildCounterRegion < 3) { |
4944 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5105 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
4945 checkDeprecationStatus(o.deprecated); | 5106 checkDeprecationStatus(o.deprecated); |
4946 unittest.expect(o.description, unittest.equals('foo')); | 5107 unittest.expect(o.description, unittest.equals('foo')); |
4947 unittest.expect(o.id, unittest.equals('foo')); | 5108 unittest.expect(o.id, unittest.equals('foo')); |
4948 unittest.expect(o.kind, unittest.equals('foo')); | 5109 unittest.expect(o.kind, unittest.equals('foo')); |
4949 unittest.expect(o.name, unittest.equals('foo')); | 5110 unittest.expect(o.name, unittest.equals('foo')); |
4950 checkUnnamed2310(o.quotas); | 5111 checkUnnamed2088(o.quotas); |
4951 unittest.expect(o.selfLink, unittest.equals('foo')); | 5112 unittest.expect(o.selfLink, unittest.equals('foo')); |
4952 unittest.expect(o.status, unittest.equals('foo')); | 5113 unittest.expect(o.status, unittest.equals('foo')); |
4953 checkUnnamed2311(o.zones); | 5114 checkUnnamed2089(o.zones); |
4954 } | 5115 } |
4955 buildCounterRegion--; | 5116 buildCounterRegion--; |
4956 } | 5117 } |
4957 | 5118 |
4958 buildUnnamed2312() { | 5119 buildUnnamed2090() { |
| 5120 var o = new core.List<api.Autoscaler>(); |
| 5121 o.add(buildAutoscaler()); |
| 5122 o.add(buildAutoscaler()); |
| 5123 return o; |
| 5124 } |
| 5125 |
| 5126 checkUnnamed2090(core.List<api.Autoscaler> o) { |
| 5127 unittest.expect(o, unittest.hasLength(2)); |
| 5128 checkAutoscaler(o[0]); |
| 5129 checkAutoscaler(o[1]); |
| 5130 } |
| 5131 |
| 5132 core.int buildCounterRegionAutoscalerList = 0; |
| 5133 buildRegionAutoscalerList() { |
| 5134 var o = new api.RegionAutoscalerList(); |
| 5135 buildCounterRegionAutoscalerList++; |
| 5136 if (buildCounterRegionAutoscalerList < 3) { |
| 5137 o.id = "foo"; |
| 5138 o.items = buildUnnamed2090(); |
| 5139 o.kind = "foo"; |
| 5140 o.nextPageToken = "foo"; |
| 5141 o.selfLink = "foo"; |
| 5142 } |
| 5143 buildCounterRegionAutoscalerList--; |
| 5144 return o; |
| 5145 } |
| 5146 |
| 5147 checkRegionAutoscalerList(api.RegionAutoscalerList o) { |
| 5148 buildCounterRegionAutoscalerList++; |
| 5149 if (buildCounterRegionAutoscalerList < 3) { |
| 5150 unittest.expect(o.id, unittest.equals('foo')); |
| 5151 checkUnnamed2090(o.items); |
| 5152 unittest.expect(o.kind, unittest.equals('foo')); |
| 5153 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5154 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5155 } |
| 5156 buildCounterRegionAutoscalerList--; |
| 5157 } |
| 5158 |
| 5159 buildUnnamed2091() { |
| 5160 var o = new core.List<api.InstanceGroup>(); |
| 5161 o.add(buildInstanceGroup()); |
| 5162 o.add(buildInstanceGroup()); |
| 5163 return o; |
| 5164 } |
| 5165 |
| 5166 checkUnnamed2091(core.List<api.InstanceGroup> o) { |
| 5167 unittest.expect(o, unittest.hasLength(2)); |
| 5168 checkInstanceGroup(o[0]); |
| 5169 checkInstanceGroup(o[1]); |
| 5170 } |
| 5171 |
| 5172 core.int buildCounterRegionInstanceGroupList = 0; |
| 5173 buildRegionInstanceGroupList() { |
| 5174 var o = new api.RegionInstanceGroupList(); |
| 5175 buildCounterRegionInstanceGroupList++; |
| 5176 if (buildCounterRegionInstanceGroupList < 3) { |
| 5177 o.id = "foo"; |
| 5178 o.items = buildUnnamed2091(); |
| 5179 o.kind = "foo"; |
| 5180 o.nextPageToken = "foo"; |
| 5181 o.selfLink = "foo"; |
| 5182 } |
| 5183 buildCounterRegionInstanceGroupList--; |
| 5184 return o; |
| 5185 } |
| 5186 |
| 5187 checkRegionInstanceGroupList(api.RegionInstanceGroupList o) { |
| 5188 buildCounterRegionInstanceGroupList++; |
| 5189 if (buildCounterRegionInstanceGroupList < 3) { |
| 5190 unittest.expect(o.id, unittest.equals('foo')); |
| 5191 checkUnnamed2091(o.items); |
| 5192 unittest.expect(o.kind, unittest.equals('foo')); |
| 5193 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5194 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5195 } |
| 5196 buildCounterRegionInstanceGroupList--; |
| 5197 } |
| 5198 |
| 5199 buildUnnamed2092() { |
| 5200 var o = new core.List<api.InstanceGroupManager>(); |
| 5201 o.add(buildInstanceGroupManager()); |
| 5202 o.add(buildInstanceGroupManager()); |
| 5203 return o; |
| 5204 } |
| 5205 |
| 5206 checkUnnamed2092(core.List<api.InstanceGroupManager> o) { |
| 5207 unittest.expect(o, unittest.hasLength(2)); |
| 5208 checkInstanceGroupManager(o[0]); |
| 5209 checkInstanceGroupManager(o[1]); |
| 5210 } |
| 5211 |
| 5212 core.int buildCounterRegionInstanceGroupManagerList = 0; |
| 5213 buildRegionInstanceGroupManagerList() { |
| 5214 var o = new api.RegionInstanceGroupManagerList(); |
| 5215 buildCounterRegionInstanceGroupManagerList++; |
| 5216 if (buildCounterRegionInstanceGroupManagerList < 3) { |
| 5217 o.id = "foo"; |
| 5218 o.items = buildUnnamed2092(); |
| 5219 o.kind = "foo"; |
| 5220 o.nextPageToken = "foo"; |
| 5221 o.selfLink = "foo"; |
| 5222 } |
| 5223 buildCounterRegionInstanceGroupManagerList--; |
| 5224 return o; |
| 5225 } |
| 5226 |
| 5227 checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) { |
| 5228 buildCounterRegionInstanceGroupManagerList++; |
| 5229 if (buildCounterRegionInstanceGroupManagerList < 3) { |
| 5230 unittest.expect(o.id, unittest.equals('foo')); |
| 5231 checkUnnamed2092(o.items); |
| 5232 unittest.expect(o.kind, unittest.equals('foo')); |
| 5233 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5234 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5235 } |
| 5236 buildCounterRegionInstanceGroupManagerList--; |
| 5237 } |
| 5238 |
| 5239 buildUnnamed2093() { |
| 5240 var o = new core.List<core.String>(); |
| 5241 o.add("foo"); |
| 5242 o.add("foo"); |
| 5243 return o; |
| 5244 } |
| 5245 |
| 5246 checkUnnamed2093(core.List<core.String> o) { |
| 5247 unittest.expect(o, unittest.hasLength(2)); |
| 5248 unittest.expect(o[0], unittest.equals('foo')); |
| 5249 unittest.expect(o[1], unittest.equals('foo')); |
| 5250 } |
| 5251 |
| 5252 core.int buildCounterRegionInstanceGroupManagersAbandonInstancesRequest = 0; |
| 5253 buildRegionInstanceGroupManagersAbandonInstancesRequest() { |
| 5254 var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); |
| 5255 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; |
| 5256 if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { |
| 5257 o.instances = buildUnnamed2093(); |
| 5258 } |
| 5259 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; |
| 5260 return o; |
| 5261 } |
| 5262 |
| 5263 checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupM
anagersAbandonInstancesRequest o) { |
| 5264 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; |
| 5265 if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { |
| 5266 checkUnnamed2093(o.instances); |
| 5267 } |
| 5268 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; |
| 5269 } |
| 5270 |
| 5271 buildUnnamed2094() { |
| 5272 var o = new core.List<core.String>(); |
| 5273 o.add("foo"); |
| 5274 o.add("foo"); |
| 5275 return o; |
| 5276 } |
| 5277 |
| 5278 checkUnnamed2094(core.List<core.String> o) { |
| 5279 unittest.expect(o, unittest.hasLength(2)); |
| 5280 unittest.expect(o[0], unittest.equals('foo')); |
| 5281 unittest.expect(o[1], unittest.equals('foo')); |
| 5282 } |
| 5283 |
| 5284 core.int buildCounterRegionInstanceGroupManagersDeleteInstancesRequest = 0; |
| 5285 buildRegionInstanceGroupManagersDeleteInstancesRequest() { |
| 5286 var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); |
| 5287 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; |
| 5288 if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { |
| 5289 o.instances = buildUnnamed2094(); |
| 5290 } |
| 5291 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; |
| 5292 return o; |
| 5293 } |
| 5294 |
| 5295 checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupMa
nagersDeleteInstancesRequest o) { |
| 5296 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; |
| 5297 if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { |
| 5298 checkUnnamed2094(o.instances); |
| 5299 } |
| 5300 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; |
| 5301 } |
| 5302 |
| 5303 buildUnnamed2095() { |
| 5304 var o = new core.List<api.ManagedInstance>(); |
| 5305 o.add(buildManagedInstance()); |
| 5306 o.add(buildManagedInstance()); |
| 5307 return o; |
| 5308 } |
| 5309 |
| 5310 checkUnnamed2095(core.List<api.ManagedInstance> o) { |
| 5311 unittest.expect(o, unittest.hasLength(2)); |
| 5312 checkManagedInstance(o[0]); |
| 5313 checkManagedInstance(o[1]); |
| 5314 } |
| 5315 |
| 5316 core.int buildCounterRegionInstanceGroupManagersListInstancesResponse = 0; |
| 5317 buildRegionInstanceGroupManagersListInstancesResponse() { |
| 5318 var o = new api.RegionInstanceGroupManagersListInstancesResponse(); |
| 5319 buildCounterRegionInstanceGroupManagersListInstancesResponse++; |
| 5320 if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { |
| 5321 o.managedInstances = buildUnnamed2095(); |
| 5322 } |
| 5323 buildCounterRegionInstanceGroupManagersListInstancesResponse--; |
| 5324 return o; |
| 5325 } |
| 5326 |
| 5327 checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupMan
agersListInstancesResponse o) { |
| 5328 buildCounterRegionInstanceGroupManagersListInstancesResponse++; |
| 5329 if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { |
| 5330 checkUnnamed2095(o.managedInstances); |
| 5331 } |
| 5332 buildCounterRegionInstanceGroupManagersListInstancesResponse--; |
| 5333 } |
| 5334 |
| 5335 buildUnnamed2096() { |
| 5336 var o = new core.List<core.String>(); |
| 5337 o.add("foo"); |
| 5338 o.add("foo"); |
| 5339 return o; |
| 5340 } |
| 5341 |
| 5342 checkUnnamed2096(core.List<core.String> o) { |
| 5343 unittest.expect(o, unittest.hasLength(2)); |
| 5344 unittest.expect(o[0], unittest.equals('foo')); |
| 5345 unittest.expect(o[1], unittest.equals('foo')); |
| 5346 } |
| 5347 |
| 5348 core.int buildCounterRegionInstanceGroupManagersRecreateRequest = 0; |
| 5349 buildRegionInstanceGroupManagersRecreateRequest() { |
| 5350 var o = new api.RegionInstanceGroupManagersRecreateRequest(); |
| 5351 buildCounterRegionInstanceGroupManagersRecreateRequest++; |
| 5352 if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { |
| 5353 o.instances = buildUnnamed2096(); |
| 5354 } |
| 5355 buildCounterRegionInstanceGroupManagersRecreateRequest--; |
| 5356 return o; |
| 5357 } |
| 5358 |
| 5359 checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersR
ecreateRequest o) { |
| 5360 buildCounterRegionInstanceGroupManagersRecreateRequest++; |
| 5361 if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { |
| 5362 checkUnnamed2096(o.instances); |
| 5363 } |
| 5364 buildCounterRegionInstanceGroupManagersRecreateRequest--; |
| 5365 } |
| 5366 |
| 5367 buildUnnamed2097() { |
| 5368 var o = new core.List<core.String>(); |
| 5369 o.add("foo"); |
| 5370 o.add("foo"); |
| 5371 return o; |
| 5372 } |
| 5373 |
| 5374 checkUnnamed2097(core.List<core.String> o) { |
| 5375 unittest.expect(o, unittest.hasLength(2)); |
| 5376 unittest.expect(o[0], unittest.equals('foo')); |
| 5377 unittest.expect(o[1], unittest.equals('foo')); |
| 5378 } |
| 5379 |
| 5380 core.int buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest = 0; |
| 5381 buildRegionInstanceGroupManagersSetTargetPoolsRequest() { |
| 5382 var o = new api.RegionInstanceGroupManagersSetTargetPoolsRequest(); |
| 5383 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; |
| 5384 if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { |
| 5385 o.fingerprint = "foo"; |
| 5386 o.targetPools = buildUnnamed2097(); |
| 5387 } |
| 5388 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; |
| 5389 return o; |
| 5390 } |
| 5391 |
| 5392 checkRegionInstanceGroupManagersSetTargetPoolsRequest(api.RegionInstanceGroupMan
agersSetTargetPoolsRequest o) { |
| 5393 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; |
| 5394 if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { |
| 5395 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 5396 checkUnnamed2097(o.targetPools); |
| 5397 } |
| 5398 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; |
| 5399 } |
| 5400 |
| 5401 core.int buildCounterRegionInstanceGroupManagersSetTemplateRequest = 0; |
| 5402 buildRegionInstanceGroupManagersSetTemplateRequest() { |
| 5403 var o = new api.RegionInstanceGroupManagersSetTemplateRequest(); |
| 5404 buildCounterRegionInstanceGroupManagersSetTemplateRequest++; |
| 5405 if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { |
| 5406 o.instanceTemplate = "foo"; |
| 5407 } |
| 5408 buildCounterRegionInstanceGroupManagersSetTemplateRequest--; |
| 5409 return o; |
| 5410 } |
| 5411 |
| 5412 checkRegionInstanceGroupManagersSetTemplateRequest(api.RegionInstanceGroupManage
rsSetTemplateRequest o) { |
| 5413 buildCounterRegionInstanceGroupManagersSetTemplateRequest++; |
| 5414 if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { |
| 5415 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
| 5416 } |
| 5417 buildCounterRegionInstanceGroupManagersSetTemplateRequest--; |
| 5418 } |
| 5419 |
| 5420 buildUnnamed2098() { |
| 5421 var o = new core.List<api.InstanceWithNamedPorts>(); |
| 5422 o.add(buildInstanceWithNamedPorts()); |
| 5423 o.add(buildInstanceWithNamedPorts()); |
| 5424 return o; |
| 5425 } |
| 5426 |
| 5427 checkUnnamed2098(core.List<api.InstanceWithNamedPorts> o) { |
| 5428 unittest.expect(o, unittest.hasLength(2)); |
| 5429 checkInstanceWithNamedPorts(o[0]); |
| 5430 checkInstanceWithNamedPorts(o[1]); |
| 5431 } |
| 5432 |
| 5433 core.int buildCounterRegionInstanceGroupsListInstances = 0; |
| 5434 buildRegionInstanceGroupsListInstances() { |
| 5435 var o = new api.RegionInstanceGroupsListInstances(); |
| 5436 buildCounterRegionInstanceGroupsListInstances++; |
| 5437 if (buildCounterRegionInstanceGroupsListInstances < 3) { |
| 5438 o.id = "foo"; |
| 5439 o.items = buildUnnamed2098(); |
| 5440 o.kind = "foo"; |
| 5441 o.nextPageToken = "foo"; |
| 5442 o.selfLink = "foo"; |
| 5443 } |
| 5444 buildCounterRegionInstanceGroupsListInstances--; |
| 5445 return o; |
| 5446 } |
| 5447 |
| 5448 checkRegionInstanceGroupsListInstances(api.RegionInstanceGroupsListInstances o)
{ |
| 5449 buildCounterRegionInstanceGroupsListInstances++; |
| 5450 if (buildCounterRegionInstanceGroupsListInstances < 3) { |
| 5451 unittest.expect(o.id, unittest.equals('foo')); |
| 5452 checkUnnamed2098(o.items); |
| 5453 unittest.expect(o.kind, unittest.equals('foo')); |
| 5454 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5455 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5456 } |
| 5457 buildCounterRegionInstanceGroupsListInstances--; |
| 5458 } |
| 5459 |
| 5460 core.int buildCounterRegionInstanceGroupsListInstancesRequest = 0; |
| 5461 buildRegionInstanceGroupsListInstancesRequest() { |
| 5462 var o = new api.RegionInstanceGroupsListInstancesRequest(); |
| 5463 buildCounterRegionInstanceGroupsListInstancesRequest++; |
| 5464 if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { |
| 5465 o.instanceState = "foo"; |
| 5466 o.portName = "foo"; |
| 5467 } |
| 5468 buildCounterRegionInstanceGroupsListInstancesRequest--; |
| 5469 return o; |
| 5470 } |
| 5471 |
| 5472 checkRegionInstanceGroupsListInstancesRequest(api.RegionInstanceGroupsListInstan
cesRequest o) { |
| 5473 buildCounterRegionInstanceGroupsListInstancesRequest++; |
| 5474 if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { |
| 5475 unittest.expect(o.instanceState, unittest.equals('foo')); |
| 5476 unittest.expect(o.portName, unittest.equals('foo')); |
| 5477 } |
| 5478 buildCounterRegionInstanceGroupsListInstancesRequest--; |
| 5479 } |
| 5480 |
| 5481 buildUnnamed2099() { |
| 5482 var o = new core.List<api.NamedPort>(); |
| 5483 o.add(buildNamedPort()); |
| 5484 o.add(buildNamedPort()); |
| 5485 return o; |
| 5486 } |
| 5487 |
| 5488 checkUnnamed2099(core.List<api.NamedPort> o) { |
| 5489 unittest.expect(o, unittest.hasLength(2)); |
| 5490 checkNamedPort(o[0]); |
| 5491 checkNamedPort(o[1]); |
| 5492 } |
| 5493 |
| 5494 core.int buildCounterRegionInstanceGroupsSetNamedPortsRequest = 0; |
| 5495 buildRegionInstanceGroupsSetNamedPortsRequest() { |
| 5496 var o = new api.RegionInstanceGroupsSetNamedPortsRequest(); |
| 5497 buildCounterRegionInstanceGroupsSetNamedPortsRequest++; |
| 5498 if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { |
| 5499 o.fingerprint = "foo"; |
| 5500 o.namedPorts = buildUnnamed2099(); |
| 5501 } |
| 5502 buildCounterRegionInstanceGroupsSetNamedPortsRequest--; |
| 5503 return o; |
| 5504 } |
| 5505 |
| 5506 checkRegionInstanceGroupsSetNamedPortsRequest(api.RegionInstanceGroupsSetNamedPo
rtsRequest o) { |
| 5507 buildCounterRegionInstanceGroupsSetNamedPortsRequest++; |
| 5508 if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { |
| 5509 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 5510 checkUnnamed2099(o.namedPorts); |
| 5511 } |
| 5512 buildCounterRegionInstanceGroupsSetNamedPortsRequest--; |
| 5513 } |
| 5514 |
| 5515 buildUnnamed2100() { |
4959 var o = new core.List<api.Region>(); | 5516 var o = new core.List<api.Region>(); |
4960 o.add(buildRegion()); | 5517 o.add(buildRegion()); |
4961 o.add(buildRegion()); | 5518 o.add(buildRegion()); |
4962 return o; | 5519 return o; |
4963 } | 5520 } |
4964 | 5521 |
4965 checkUnnamed2312(core.List<api.Region> o) { | 5522 checkUnnamed2100(core.List<api.Region> o) { |
4966 unittest.expect(o, unittest.hasLength(2)); | 5523 unittest.expect(o, unittest.hasLength(2)); |
4967 checkRegion(o[0]); | 5524 checkRegion(o[0]); |
4968 checkRegion(o[1]); | 5525 checkRegion(o[1]); |
4969 } | 5526 } |
4970 | 5527 |
4971 core.int buildCounterRegionList = 0; | 5528 core.int buildCounterRegionList = 0; |
4972 buildRegionList() { | 5529 buildRegionList() { |
4973 var o = new api.RegionList(); | 5530 var o = new api.RegionList(); |
4974 buildCounterRegionList++; | 5531 buildCounterRegionList++; |
4975 if (buildCounterRegionList < 3) { | 5532 if (buildCounterRegionList < 3) { |
4976 o.id = "foo"; | 5533 o.id = "foo"; |
4977 o.items = buildUnnamed2312(); | 5534 o.items = buildUnnamed2100(); |
4978 o.kind = "foo"; | 5535 o.kind = "foo"; |
4979 o.nextPageToken = "foo"; | 5536 o.nextPageToken = "foo"; |
4980 o.selfLink = "foo"; | 5537 o.selfLink = "foo"; |
4981 } | 5538 } |
4982 buildCounterRegionList--; | 5539 buildCounterRegionList--; |
4983 return o; | 5540 return o; |
4984 } | 5541 } |
4985 | 5542 |
4986 checkRegionList(api.RegionList o) { | 5543 checkRegionList(api.RegionList o) { |
4987 buildCounterRegionList++; | 5544 buildCounterRegionList++; |
4988 if (buildCounterRegionList < 3) { | 5545 if (buildCounterRegionList < 3) { |
4989 unittest.expect(o.id, unittest.equals('foo')); | 5546 unittest.expect(o.id, unittest.equals('foo')); |
4990 checkUnnamed2312(o.items); | 5547 checkUnnamed2100(o.items); |
4991 unittest.expect(o.kind, unittest.equals('foo')); | 5548 unittest.expect(o.kind, unittest.equals('foo')); |
4992 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5549 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
4993 unittest.expect(o.selfLink, unittest.equals('foo')); | 5550 unittest.expect(o.selfLink, unittest.equals('foo')); |
4994 } | 5551 } |
4995 buildCounterRegionList--; | 5552 buildCounterRegionList--; |
4996 } | 5553 } |
4997 | 5554 |
4998 core.int buildCounterResourceGroupReference = 0; | 5555 core.int buildCounterResourceGroupReference = 0; |
4999 buildResourceGroupReference() { | 5556 buildResourceGroupReference() { |
5000 var o = new api.ResourceGroupReference(); | 5557 var o = new api.ResourceGroupReference(); |
5001 buildCounterResourceGroupReference++; | 5558 buildCounterResourceGroupReference++; |
5002 if (buildCounterResourceGroupReference < 3) { | 5559 if (buildCounterResourceGroupReference < 3) { |
5003 o.group = "foo"; | 5560 o.group = "foo"; |
5004 } | 5561 } |
5005 buildCounterResourceGroupReference--; | 5562 buildCounterResourceGroupReference--; |
5006 return o; | 5563 return o; |
5007 } | 5564 } |
5008 | 5565 |
5009 checkResourceGroupReference(api.ResourceGroupReference o) { | 5566 checkResourceGroupReference(api.ResourceGroupReference o) { |
5010 buildCounterResourceGroupReference++; | 5567 buildCounterResourceGroupReference++; |
5011 if (buildCounterResourceGroupReference < 3) { | 5568 if (buildCounterResourceGroupReference < 3) { |
5012 unittest.expect(o.group, unittest.equals('foo')); | 5569 unittest.expect(o.group, unittest.equals('foo')); |
5013 } | 5570 } |
5014 buildCounterResourceGroupReference--; | 5571 buildCounterResourceGroupReference--; |
5015 } | 5572 } |
5016 | 5573 |
5017 buildUnnamed2313() { | 5574 buildUnnamed2101() { |
5018 var o = new core.List<core.String>(); | 5575 var o = new core.List<core.String>(); |
5019 o.add("foo"); | 5576 o.add("foo"); |
5020 o.add("foo"); | 5577 o.add("foo"); |
5021 return o; | 5578 return o; |
5022 } | 5579 } |
5023 | 5580 |
5024 checkUnnamed2313(core.List<core.String> o) { | 5581 checkUnnamed2101(core.List<core.String> o) { |
5025 unittest.expect(o, unittest.hasLength(2)); | 5582 unittest.expect(o, unittest.hasLength(2)); |
5026 unittest.expect(o[0], unittest.equals('foo')); | 5583 unittest.expect(o[0], unittest.equals('foo')); |
5027 unittest.expect(o[1], unittest.equals('foo')); | 5584 unittest.expect(o[1], unittest.equals('foo')); |
5028 } | 5585 } |
5029 | 5586 |
5030 core.int buildCounterRouteWarningsData = 0; | 5587 core.int buildCounterRouteWarningsData = 0; |
5031 buildRouteWarningsData() { | 5588 buildRouteWarningsData() { |
5032 var o = new api.RouteWarningsData(); | 5589 var o = new api.RouteWarningsData(); |
5033 buildCounterRouteWarningsData++; | 5590 buildCounterRouteWarningsData++; |
5034 if (buildCounterRouteWarningsData < 3) { | 5591 if (buildCounterRouteWarningsData < 3) { |
5035 o.key = "foo"; | 5592 o.key = "foo"; |
5036 o.value = "foo"; | 5593 o.value = "foo"; |
5037 } | 5594 } |
5038 buildCounterRouteWarningsData--; | 5595 buildCounterRouteWarningsData--; |
5039 return o; | 5596 return o; |
5040 } | 5597 } |
5041 | 5598 |
5042 checkRouteWarningsData(api.RouteWarningsData o) { | 5599 checkRouteWarningsData(api.RouteWarningsData o) { |
5043 buildCounterRouteWarningsData++; | 5600 buildCounterRouteWarningsData++; |
5044 if (buildCounterRouteWarningsData < 3) { | 5601 if (buildCounterRouteWarningsData < 3) { |
5045 unittest.expect(o.key, unittest.equals('foo')); | 5602 unittest.expect(o.key, unittest.equals('foo')); |
5046 unittest.expect(o.value, unittest.equals('foo')); | 5603 unittest.expect(o.value, unittest.equals('foo')); |
5047 } | 5604 } |
5048 buildCounterRouteWarningsData--; | 5605 buildCounterRouteWarningsData--; |
5049 } | 5606 } |
5050 | 5607 |
5051 buildUnnamed2314() { | 5608 buildUnnamed2102() { |
5052 var o = new core.List<api.RouteWarningsData>(); | 5609 var o = new core.List<api.RouteWarningsData>(); |
5053 o.add(buildRouteWarningsData()); | 5610 o.add(buildRouteWarningsData()); |
5054 o.add(buildRouteWarningsData()); | 5611 o.add(buildRouteWarningsData()); |
5055 return o; | 5612 return o; |
5056 } | 5613 } |
5057 | 5614 |
5058 checkUnnamed2314(core.List<api.RouteWarningsData> o) { | 5615 checkUnnamed2102(core.List<api.RouteWarningsData> o) { |
5059 unittest.expect(o, unittest.hasLength(2)); | 5616 unittest.expect(o, unittest.hasLength(2)); |
5060 checkRouteWarningsData(o[0]); | 5617 checkRouteWarningsData(o[0]); |
5061 checkRouteWarningsData(o[1]); | 5618 checkRouteWarningsData(o[1]); |
5062 } | 5619 } |
5063 | 5620 |
5064 core.int buildCounterRouteWarnings = 0; | 5621 core.int buildCounterRouteWarnings = 0; |
5065 buildRouteWarnings() { | 5622 buildRouteWarnings() { |
5066 var o = new api.RouteWarnings(); | 5623 var o = new api.RouteWarnings(); |
5067 buildCounterRouteWarnings++; | 5624 buildCounterRouteWarnings++; |
5068 if (buildCounterRouteWarnings < 3) { | 5625 if (buildCounterRouteWarnings < 3) { |
5069 o.code = "foo"; | 5626 o.code = "foo"; |
5070 o.data = buildUnnamed2314(); | 5627 o.data = buildUnnamed2102(); |
5071 o.message = "foo"; | 5628 o.message = "foo"; |
5072 } | 5629 } |
5073 buildCounterRouteWarnings--; | 5630 buildCounterRouteWarnings--; |
5074 return o; | 5631 return o; |
5075 } | 5632 } |
5076 | 5633 |
5077 checkRouteWarnings(api.RouteWarnings o) { | 5634 checkRouteWarnings(api.RouteWarnings o) { |
5078 buildCounterRouteWarnings++; | 5635 buildCounterRouteWarnings++; |
5079 if (buildCounterRouteWarnings < 3) { | 5636 if (buildCounterRouteWarnings < 3) { |
5080 unittest.expect(o.code, unittest.equals('foo')); | 5637 unittest.expect(o.code, unittest.equals('foo')); |
5081 checkUnnamed2314(o.data); | 5638 checkUnnamed2102(o.data); |
5082 unittest.expect(o.message, unittest.equals('foo')); | 5639 unittest.expect(o.message, unittest.equals('foo')); |
5083 } | 5640 } |
5084 buildCounterRouteWarnings--; | 5641 buildCounterRouteWarnings--; |
5085 } | 5642 } |
5086 | 5643 |
5087 buildUnnamed2315() { | 5644 buildUnnamed2103() { |
5088 var o = new core.List<api.RouteWarnings>(); | 5645 var o = new core.List<api.RouteWarnings>(); |
5089 o.add(buildRouteWarnings()); | 5646 o.add(buildRouteWarnings()); |
5090 o.add(buildRouteWarnings()); | 5647 o.add(buildRouteWarnings()); |
5091 return o; | 5648 return o; |
5092 } | 5649 } |
5093 | 5650 |
5094 checkUnnamed2315(core.List<api.RouteWarnings> o) { | 5651 checkUnnamed2103(core.List<api.RouteWarnings> o) { |
5095 unittest.expect(o, unittest.hasLength(2)); | 5652 unittest.expect(o, unittest.hasLength(2)); |
5096 checkRouteWarnings(o[0]); | 5653 checkRouteWarnings(o[0]); |
5097 checkRouteWarnings(o[1]); | 5654 checkRouteWarnings(o[1]); |
5098 } | 5655 } |
5099 | 5656 |
5100 core.int buildCounterRoute = 0; | 5657 core.int buildCounterRoute = 0; |
5101 buildRoute() { | 5658 buildRoute() { |
5102 var o = new api.Route(); | 5659 var o = new api.Route(); |
5103 buildCounterRoute++; | 5660 buildCounterRoute++; |
5104 if (buildCounterRoute < 3) { | 5661 if (buildCounterRoute < 3) { |
5105 o.creationTimestamp = "foo"; | 5662 o.creationTimestamp = "foo"; |
5106 o.description = "foo"; | 5663 o.description = "foo"; |
5107 o.destRange = "foo"; | 5664 o.destRange = "foo"; |
5108 o.id = "foo"; | 5665 o.id = "foo"; |
5109 o.kind = "foo"; | 5666 o.kind = "foo"; |
5110 o.name = "foo"; | 5667 o.name = "foo"; |
5111 o.network = "foo"; | 5668 o.network = "foo"; |
5112 o.nextHopGateway = "foo"; | 5669 o.nextHopGateway = "foo"; |
5113 o.nextHopInstance = "foo"; | 5670 o.nextHopInstance = "foo"; |
5114 o.nextHopIp = "foo"; | 5671 o.nextHopIp = "foo"; |
5115 o.nextHopNetwork = "foo"; | 5672 o.nextHopNetwork = "foo"; |
5116 o.nextHopVpnTunnel = "foo"; | 5673 o.nextHopVpnTunnel = "foo"; |
5117 o.priority = 42; | 5674 o.priority = 42; |
5118 o.selfLink = "foo"; | 5675 o.selfLink = "foo"; |
5119 o.tags = buildUnnamed2313(); | 5676 o.tags = buildUnnamed2101(); |
5120 o.warnings = buildUnnamed2315(); | 5677 o.warnings = buildUnnamed2103(); |
5121 } | 5678 } |
5122 buildCounterRoute--; | 5679 buildCounterRoute--; |
5123 return o; | 5680 return o; |
5124 } | 5681 } |
5125 | 5682 |
5126 checkRoute(api.Route o) { | 5683 checkRoute(api.Route o) { |
5127 buildCounterRoute++; | 5684 buildCounterRoute++; |
5128 if (buildCounterRoute < 3) { | 5685 if (buildCounterRoute < 3) { |
5129 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5686 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
5130 unittest.expect(o.description, unittest.equals('foo')); | 5687 unittest.expect(o.description, unittest.equals('foo')); |
5131 unittest.expect(o.destRange, unittest.equals('foo')); | 5688 unittest.expect(o.destRange, unittest.equals('foo')); |
5132 unittest.expect(o.id, unittest.equals('foo')); | 5689 unittest.expect(o.id, unittest.equals('foo')); |
5133 unittest.expect(o.kind, unittest.equals('foo')); | 5690 unittest.expect(o.kind, unittest.equals('foo')); |
5134 unittest.expect(o.name, unittest.equals('foo')); | 5691 unittest.expect(o.name, unittest.equals('foo')); |
5135 unittest.expect(o.network, unittest.equals('foo')); | 5692 unittest.expect(o.network, unittest.equals('foo')); |
5136 unittest.expect(o.nextHopGateway, unittest.equals('foo')); | 5693 unittest.expect(o.nextHopGateway, unittest.equals('foo')); |
5137 unittest.expect(o.nextHopInstance, unittest.equals('foo')); | 5694 unittest.expect(o.nextHopInstance, unittest.equals('foo')); |
5138 unittest.expect(o.nextHopIp, unittest.equals('foo')); | 5695 unittest.expect(o.nextHopIp, unittest.equals('foo')); |
5139 unittest.expect(o.nextHopNetwork, unittest.equals('foo')); | 5696 unittest.expect(o.nextHopNetwork, unittest.equals('foo')); |
5140 unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); | 5697 unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); |
5141 unittest.expect(o.priority, unittest.equals(42)); | 5698 unittest.expect(o.priority, unittest.equals(42)); |
5142 unittest.expect(o.selfLink, unittest.equals('foo')); | 5699 unittest.expect(o.selfLink, unittest.equals('foo')); |
5143 checkUnnamed2313(o.tags); | 5700 checkUnnamed2101(o.tags); |
5144 checkUnnamed2315(o.warnings); | 5701 checkUnnamed2103(o.warnings); |
5145 } | 5702 } |
5146 buildCounterRoute--; | 5703 buildCounterRoute--; |
5147 } | 5704 } |
5148 | 5705 |
5149 buildUnnamed2316() { | 5706 buildUnnamed2104() { |
5150 var o = new core.List<api.Route>(); | 5707 var o = new core.List<api.Route>(); |
5151 o.add(buildRoute()); | 5708 o.add(buildRoute()); |
5152 o.add(buildRoute()); | 5709 o.add(buildRoute()); |
5153 return o; | 5710 return o; |
5154 } | 5711 } |
5155 | 5712 |
5156 checkUnnamed2316(core.List<api.Route> o) { | 5713 checkUnnamed2104(core.List<api.Route> o) { |
5157 unittest.expect(o, unittest.hasLength(2)); | 5714 unittest.expect(o, unittest.hasLength(2)); |
5158 checkRoute(o[0]); | 5715 checkRoute(o[0]); |
5159 checkRoute(o[1]); | 5716 checkRoute(o[1]); |
5160 } | 5717 } |
5161 | 5718 |
5162 core.int buildCounterRouteList = 0; | 5719 core.int buildCounterRouteList = 0; |
5163 buildRouteList() { | 5720 buildRouteList() { |
5164 var o = new api.RouteList(); | 5721 var o = new api.RouteList(); |
5165 buildCounterRouteList++; | 5722 buildCounterRouteList++; |
5166 if (buildCounterRouteList < 3) { | 5723 if (buildCounterRouteList < 3) { |
5167 o.id = "foo"; | 5724 o.id = "foo"; |
5168 o.items = buildUnnamed2316(); | 5725 o.items = buildUnnamed2104(); |
5169 o.kind = "foo"; | 5726 o.kind = "foo"; |
5170 o.nextPageToken = "foo"; | 5727 o.nextPageToken = "foo"; |
5171 o.selfLink = "foo"; | 5728 o.selfLink = "foo"; |
5172 } | 5729 } |
5173 buildCounterRouteList--; | 5730 buildCounterRouteList--; |
5174 return o; | 5731 return o; |
5175 } | 5732 } |
5176 | 5733 |
5177 checkRouteList(api.RouteList o) { | 5734 checkRouteList(api.RouteList o) { |
5178 buildCounterRouteList++; | 5735 buildCounterRouteList++; |
5179 if (buildCounterRouteList < 3) { | 5736 if (buildCounterRouteList < 3) { |
5180 unittest.expect(o.id, unittest.equals('foo')); | 5737 unittest.expect(o.id, unittest.equals('foo')); |
5181 checkUnnamed2316(o.items); | 5738 checkUnnamed2104(o.items); |
5182 unittest.expect(o.kind, unittest.equals('foo')); | 5739 unittest.expect(o.kind, unittest.equals('foo')); |
5183 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5740 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5184 unittest.expect(o.selfLink, unittest.equals('foo')); | 5741 unittest.expect(o.selfLink, unittest.equals('foo')); |
5185 } | 5742 } |
5186 buildCounterRouteList--; | 5743 buildCounterRouteList--; |
5187 } | 5744 } |
5188 | 5745 |
5189 buildUnnamed2317() { | 5746 buildUnnamed2105() { |
5190 var o = new core.List<api.RouterBgpPeer>(); | 5747 var o = new core.List<api.RouterBgpPeer>(); |
5191 o.add(buildRouterBgpPeer()); | 5748 o.add(buildRouterBgpPeer()); |
5192 o.add(buildRouterBgpPeer()); | 5749 o.add(buildRouterBgpPeer()); |
5193 return o; | 5750 return o; |
5194 } | 5751 } |
5195 | 5752 |
5196 checkUnnamed2317(core.List<api.RouterBgpPeer> o) { | 5753 checkUnnamed2105(core.List<api.RouterBgpPeer> o) { |
5197 unittest.expect(o, unittest.hasLength(2)); | 5754 unittest.expect(o, unittest.hasLength(2)); |
5198 checkRouterBgpPeer(o[0]); | 5755 checkRouterBgpPeer(o[0]); |
5199 checkRouterBgpPeer(o[1]); | 5756 checkRouterBgpPeer(o[1]); |
5200 } | 5757 } |
5201 | 5758 |
5202 buildUnnamed2318() { | 5759 buildUnnamed2106() { |
5203 var o = new core.List<api.RouterInterface>(); | 5760 var o = new core.List<api.RouterInterface>(); |
5204 o.add(buildRouterInterface()); | 5761 o.add(buildRouterInterface()); |
5205 o.add(buildRouterInterface()); | 5762 o.add(buildRouterInterface()); |
5206 return o; | 5763 return o; |
5207 } | 5764 } |
5208 | 5765 |
5209 checkUnnamed2318(core.List<api.RouterInterface> o) { | 5766 checkUnnamed2106(core.List<api.RouterInterface> o) { |
5210 unittest.expect(o, unittest.hasLength(2)); | 5767 unittest.expect(o, unittest.hasLength(2)); |
5211 checkRouterInterface(o[0]); | 5768 checkRouterInterface(o[0]); |
5212 checkRouterInterface(o[1]); | 5769 checkRouterInterface(o[1]); |
5213 } | 5770 } |
5214 | 5771 |
5215 core.int buildCounterRouter = 0; | 5772 core.int buildCounterRouter = 0; |
5216 buildRouter() { | 5773 buildRouter() { |
5217 var o = new api.Router(); | 5774 var o = new api.Router(); |
5218 buildCounterRouter++; | 5775 buildCounterRouter++; |
5219 if (buildCounterRouter < 3) { | 5776 if (buildCounterRouter < 3) { |
5220 o.bgp = buildRouterBgp(); | 5777 o.bgp = buildRouterBgp(); |
5221 o.bgpPeers = buildUnnamed2317(); | 5778 o.bgpPeers = buildUnnamed2105(); |
5222 o.creationTimestamp = "foo"; | 5779 o.creationTimestamp = "foo"; |
5223 o.description = "foo"; | 5780 o.description = "foo"; |
5224 o.id = "foo"; | 5781 o.id = "foo"; |
5225 o.interfaces = buildUnnamed2318(); | 5782 o.interfaces = buildUnnamed2106(); |
5226 o.kind = "foo"; | 5783 o.kind = "foo"; |
5227 o.name = "foo"; | 5784 o.name = "foo"; |
5228 o.network = "foo"; | 5785 o.network = "foo"; |
5229 o.region = "foo"; | 5786 o.region = "foo"; |
5230 o.selfLink = "foo"; | 5787 o.selfLink = "foo"; |
5231 } | 5788 } |
5232 buildCounterRouter--; | 5789 buildCounterRouter--; |
5233 return o; | 5790 return o; |
5234 } | 5791 } |
5235 | 5792 |
5236 checkRouter(api.Router o) { | 5793 checkRouter(api.Router o) { |
5237 buildCounterRouter++; | 5794 buildCounterRouter++; |
5238 if (buildCounterRouter < 3) { | 5795 if (buildCounterRouter < 3) { |
5239 checkRouterBgp(o.bgp); | 5796 checkRouterBgp(o.bgp); |
5240 checkUnnamed2317(o.bgpPeers); | 5797 checkUnnamed2105(o.bgpPeers); |
5241 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5798 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
5242 unittest.expect(o.description, unittest.equals('foo')); | 5799 unittest.expect(o.description, unittest.equals('foo')); |
5243 unittest.expect(o.id, unittest.equals('foo')); | 5800 unittest.expect(o.id, unittest.equals('foo')); |
5244 checkUnnamed2318(o.interfaces); | 5801 checkUnnamed2106(o.interfaces); |
5245 unittest.expect(o.kind, unittest.equals('foo')); | 5802 unittest.expect(o.kind, unittest.equals('foo')); |
5246 unittest.expect(o.name, unittest.equals('foo')); | 5803 unittest.expect(o.name, unittest.equals('foo')); |
5247 unittest.expect(o.network, unittest.equals('foo')); | 5804 unittest.expect(o.network, unittest.equals('foo')); |
5248 unittest.expect(o.region, unittest.equals('foo')); | 5805 unittest.expect(o.region, unittest.equals('foo')); |
5249 unittest.expect(o.selfLink, unittest.equals('foo')); | 5806 unittest.expect(o.selfLink, unittest.equals('foo')); |
5250 } | 5807 } |
5251 buildCounterRouter--; | 5808 buildCounterRouter--; |
5252 } | 5809 } |
5253 | 5810 |
5254 buildUnnamed2319() { | 5811 buildUnnamed2107() { |
5255 var o = new core.Map<core.String, api.RoutersScopedList>(); | 5812 var o = new core.Map<core.String, api.RoutersScopedList>(); |
5256 o["x"] = buildRoutersScopedList(); | 5813 o["x"] = buildRoutersScopedList(); |
5257 o["y"] = buildRoutersScopedList(); | 5814 o["y"] = buildRoutersScopedList(); |
5258 return o; | 5815 return o; |
5259 } | 5816 } |
5260 | 5817 |
5261 checkUnnamed2319(core.Map<core.String, api.RoutersScopedList> o) { | 5818 checkUnnamed2107(core.Map<core.String, api.RoutersScopedList> o) { |
5262 unittest.expect(o, unittest.hasLength(2)); | 5819 unittest.expect(o, unittest.hasLength(2)); |
5263 checkRoutersScopedList(o["x"]); | 5820 checkRoutersScopedList(o["x"]); |
5264 checkRoutersScopedList(o["y"]); | 5821 checkRoutersScopedList(o["y"]); |
5265 } | 5822 } |
5266 | 5823 |
5267 core.int buildCounterRouterAggregatedList = 0; | 5824 core.int buildCounterRouterAggregatedList = 0; |
5268 buildRouterAggregatedList() { | 5825 buildRouterAggregatedList() { |
5269 var o = new api.RouterAggregatedList(); | 5826 var o = new api.RouterAggregatedList(); |
5270 buildCounterRouterAggregatedList++; | 5827 buildCounterRouterAggregatedList++; |
5271 if (buildCounterRouterAggregatedList < 3) { | 5828 if (buildCounterRouterAggregatedList < 3) { |
5272 o.id = "foo"; | 5829 o.id = "foo"; |
5273 o.items = buildUnnamed2319(); | 5830 o.items = buildUnnamed2107(); |
5274 o.kind = "foo"; | 5831 o.kind = "foo"; |
5275 o.nextPageToken = "foo"; | 5832 o.nextPageToken = "foo"; |
5276 o.selfLink = "foo"; | 5833 o.selfLink = "foo"; |
5277 } | 5834 } |
5278 buildCounterRouterAggregatedList--; | 5835 buildCounterRouterAggregatedList--; |
5279 return o; | 5836 return o; |
5280 } | 5837 } |
5281 | 5838 |
5282 checkRouterAggregatedList(api.RouterAggregatedList o) { | 5839 checkRouterAggregatedList(api.RouterAggregatedList o) { |
5283 buildCounterRouterAggregatedList++; | 5840 buildCounterRouterAggregatedList++; |
5284 if (buildCounterRouterAggregatedList < 3) { | 5841 if (buildCounterRouterAggregatedList < 3) { |
5285 unittest.expect(o.id, unittest.equals('foo')); | 5842 unittest.expect(o.id, unittest.equals('foo')); |
5286 checkUnnamed2319(o.items); | 5843 checkUnnamed2107(o.items); |
5287 unittest.expect(o.kind, unittest.equals('foo')); | 5844 unittest.expect(o.kind, unittest.equals('foo')); |
5288 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5845 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5289 unittest.expect(o.selfLink, unittest.equals('foo')); | 5846 unittest.expect(o.selfLink, unittest.equals('foo')); |
5290 } | 5847 } |
5291 buildCounterRouterAggregatedList--; | 5848 buildCounterRouterAggregatedList--; |
5292 } | 5849 } |
5293 | 5850 |
5294 core.int buildCounterRouterBgp = 0; | 5851 core.int buildCounterRouterBgp = 0; |
5295 buildRouterBgp() { | 5852 buildRouterBgp() { |
5296 var o = new api.RouterBgp(); | 5853 var o = new api.RouterBgp(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5355 checkRouterInterface(api.RouterInterface o) { | 5912 checkRouterInterface(api.RouterInterface o) { |
5356 buildCounterRouterInterface++; | 5913 buildCounterRouterInterface++; |
5357 if (buildCounterRouterInterface < 3) { | 5914 if (buildCounterRouterInterface < 3) { |
5358 unittest.expect(o.ipRange, unittest.equals('foo')); | 5915 unittest.expect(o.ipRange, unittest.equals('foo')); |
5359 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); | 5916 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); |
5360 unittest.expect(o.name, unittest.equals('foo')); | 5917 unittest.expect(o.name, unittest.equals('foo')); |
5361 } | 5918 } |
5362 buildCounterRouterInterface--; | 5919 buildCounterRouterInterface--; |
5363 } | 5920 } |
5364 | 5921 |
5365 buildUnnamed2320() { | 5922 buildUnnamed2108() { |
5366 var o = new core.List<api.Router>(); | 5923 var o = new core.List<api.Router>(); |
5367 o.add(buildRouter()); | 5924 o.add(buildRouter()); |
5368 o.add(buildRouter()); | 5925 o.add(buildRouter()); |
5369 return o; | 5926 return o; |
5370 } | 5927 } |
5371 | 5928 |
5372 checkUnnamed2320(core.List<api.Router> o) { | 5929 checkUnnamed2108(core.List<api.Router> o) { |
5373 unittest.expect(o, unittest.hasLength(2)); | 5930 unittest.expect(o, unittest.hasLength(2)); |
5374 checkRouter(o[0]); | 5931 checkRouter(o[0]); |
5375 checkRouter(o[1]); | 5932 checkRouter(o[1]); |
5376 } | 5933 } |
5377 | 5934 |
5378 core.int buildCounterRouterList = 0; | 5935 core.int buildCounterRouterList = 0; |
5379 buildRouterList() { | 5936 buildRouterList() { |
5380 var o = new api.RouterList(); | 5937 var o = new api.RouterList(); |
5381 buildCounterRouterList++; | 5938 buildCounterRouterList++; |
5382 if (buildCounterRouterList < 3) { | 5939 if (buildCounterRouterList < 3) { |
5383 o.id = "foo"; | 5940 o.id = "foo"; |
5384 o.items = buildUnnamed2320(); | 5941 o.items = buildUnnamed2108(); |
5385 o.kind = "foo"; | 5942 o.kind = "foo"; |
5386 o.nextPageToken = "foo"; | 5943 o.nextPageToken = "foo"; |
5387 o.selfLink = "foo"; | 5944 o.selfLink = "foo"; |
5388 } | 5945 } |
5389 buildCounterRouterList--; | 5946 buildCounterRouterList--; |
5390 return o; | 5947 return o; |
5391 } | 5948 } |
5392 | 5949 |
5393 checkRouterList(api.RouterList o) { | 5950 checkRouterList(api.RouterList o) { |
5394 buildCounterRouterList++; | 5951 buildCounterRouterList++; |
5395 if (buildCounterRouterList < 3) { | 5952 if (buildCounterRouterList < 3) { |
5396 unittest.expect(o.id, unittest.equals('foo')); | 5953 unittest.expect(o.id, unittest.equals('foo')); |
5397 checkUnnamed2320(o.items); | 5954 checkUnnamed2108(o.items); |
5398 unittest.expect(o.kind, unittest.equals('foo')); | 5955 unittest.expect(o.kind, unittest.equals('foo')); |
5399 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5956 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5400 unittest.expect(o.selfLink, unittest.equals('foo')); | 5957 unittest.expect(o.selfLink, unittest.equals('foo')); |
5401 } | 5958 } |
5402 buildCounterRouterList--; | 5959 buildCounterRouterList--; |
5403 } | 5960 } |
5404 | 5961 |
5405 buildUnnamed2321() { | 5962 buildUnnamed2109() { |
5406 var o = new core.List<api.Route>(); | 5963 var o = new core.List<api.Route>(); |
5407 o.add(buildRoute()); | 5964 o.add(buildRoute()); |
5408 o.add(buildRoute()); | 5965 o.add(buildRoute()); |
5409 return o; | 5966 return o; |
5410 } | 5967 } |
5411 | 5968 |
5412 checkUnnamed2321(core.List<api.Route> o) { | 5969 checkUnnamed2109(core.List<api.Route> o) { |
5413 unittest.expect(o, unittest.hasLength(2)); | 5970 unittest.expect(o, unittest.hasLength(2)); |
5414 checkRoute(o[0]); | 5971 checkRoute(o[0]); |
5415 checkRoute(o[1]); | 5972 checkRoute(o[1]); |
5416 } | 5973 } |
5417 | 5974 |
5418 buildUnnamed2322() { | 5975 buildUnnamed2110() { |
5419 var o = new core.List<api.RouterStatusBgpPeerStatus>(); | 5976 var o = new core.List<api.RouterStatusBgpPeerStatus>(); |
5420 o.add(buildRouterStatusBgpPeerStatus()); | 5977 o.add(buildRouterStatusBgpPeerStatus()); |
5421 o.add(buildRouterStatusBgpPeerStatus()); | 5978 o.add(buildRouterStatusBgpPeerStatus()); |
5422 return o; | 5979 return o; |
5423 } | 5980 } |
5424 | 5981 |
5425 checkUnnamed2322(core.List<api.RouterStatusBgpPeerStatus> o) { | 5982 checkUnnamed2110(core.List<api.RouterStatusBgpPeerStatus> o) { |
5426 unittest.expect(o, unittest.hasLength(2)); | 5983 unittest.expect(o, unittest.hasLength(2)); |
5427 checkRouterStatusBgpPeerStatus(o[0]); | 5984 checkRouterStatusBgpPeerStatus(o[0]); |
5428 checkRouterStatusBgpPeerStatus(o[1]); | 5985 checkRouterStatusBgpPeerStatus(o[1]); |
5429 } | 5986 } |
5430 | 5987 |
5431 core.int buildCounterRouterStatus = 0; | 5988 core.int buildCounterRouterStatus = 0; |
5432 buildRouterStatus() { | 5989 buildRouterStatus() { |
5433 var o = new api.RouterStatus(); | 5990 var o = new api.RouterStatus(); |
5434 buildCounterRouterStatus++; | 5991 buildCounterRouterStatus++; |
5435 if (buildCounterRouterStatus < 3) { | 5992 if (buildCounterRouterStatus < 3) { |
5436 o.bestRoutes = buildUnnamed2321(); | 5993 o.bestRoutes = buildUnnamed2109(); |
5437 o.bgpPeerStatus = buildUnnamed2322(); | 5994 o.bgpPeerStatus = buildUnnamed2110(); |
5438 o.network = "foo"; | 5995 o.network = "foo"; |
5439 } | 5996 } |
5440 buildCounterRouterStatus--; | 5997 buildCounterRouterStatus--; |
5441 return o; | 5998 return o; |
5442 } | 5999 } |
5443 | 6000 |
5444 checkRouterStatus(api.RouterStatus o) { | 6001 checkRouterStatus(api.RouterStatus o) { |
5445 buildCounterRouterStatus++; | 6002 buildCounterRouterStatus++; |
5446 if (buildCounterRouterStatus < 3) { | 6003 if (buildCounterRouterStatus < 3) { |
5447 checkUnnamed2321(o.bestRoutes); | 6004 checkUnnamed2109(o.bestRoutes); |
5448 checkUnnamed2322(o.bgpPeerStatus); | 6005 checkUnnamed2110(o.bgpPeerStatus); |
5449 unittest.expect(o.network, unittest.equals('foo')); | 6006 unittest.expect(o.network, unittest.equals('foo')); |
5450 } | 6007 } |
5451 buildCounterRouterStatus--; | 6008 buildCounterRouterStatus--; |
5452 } | 6009 } |
5453 | 6010 |
5454 buildUnnamed2323() { | 6011 buildUnnamed2111() { |
5455 var o = new core.List<api.Route>(); | 6012 var o = new core.List<api.Route>(); |
5456 o.add(buildRoute()); | 6013 o.add(buildRoute()); |
5457 o.add(buildRoute()); | 6014 o.add(buildRoute()); |
5458 return o; | 6015 return o; |
5459 } | 6016 } |
5460 | 6017 |
5461 checkUnnamed2323(core.List<api.Route> o) { | 6018 checkUnnamed2111(core.List<api.Route> o) { |
5462 unittest.expect(o, unittest.hasLength(2)); | 6019 unittest.expect(o, unittest.hasLength(2)); |
5463 checkRoute(o[0]); | 6020 checkRoute(o[0]); |
5464 checkRoute(o[1]); | 6021 checkRoute(o[1]); |
5465 } | 6022 } |
5466 | 6023 |
5467 core.int buildCounterRouterStatusBgpPeerStatus = 0; | 6024 core.int buildCounterRouterStatusBgpPeerStatus = 0; |
5468 buildRouterStatusBgpPeerStatus() { | 6025 buildRouterStatusBgpPeerStatus() { |
5469 var o = new api.RouterStatusBgpPeerStatus(); | 6026 var o = new api.RouterStatusBgpPeerStatus(); |
5470 buildCounterRouterStatusBgpPeerStatus++; | 6027 buildCounterRouterStatusBgpPeerStatus++; |
5471 if (buildCounterRouterStatusBgpPeerStatus < 3) { | 6028 if (buildCounterRouterStatusBgpPeerStatus < 3) { |
5472 o.advertisedRoutes = buildUnnamed2323(); | 6029 o.advertisedRoutes = buildUnnamed2111(); |
5473 o.ipAddress = "foo"; | 6030 o.ipAddress = "foo"; |
5474 o.linkedVpnTunnel = "foo"; | 6031 o.linkedVpnTunnel = "foo"; |
5475 o.name = "foo"; | 6032 o.name = "foo"; |
5476 o.numLearnedRoutes = 42; | 6033 o.numLearnedRoutes = 42; |
5477 o.peerIpAddress = "foo"; | 6034 o.peerIpAddress = "foo"; |
5478 o.state = "foo"; | 6035 o.state = "foo"; |
5479 o.status = "foo"; | 6036 o.status = "foo"; |
5480 o.uptime = "foo"; | 6037 o.uptime = "foo"; |
5481 o.uptimeSeconds = "foo"; | 6038 o.uptimeSeconds = "foo"; |
5482 } | 6039 } |
5483 buildCounterRouterStatusBgpPeerStatus--; | 6040 buildCounterRouterStatusBgpPeerStatus--; |
5484 return o; | 6041 return o; |
5485 } | 6042 } |
5486 | 6043 |
5487 checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { | 6044 checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { |
5488 buildCounterRouterStatusBgpPeerStatus++; | 6045 buildCounterRouterStatusBgpPeerStatus++; |
5489 if (buildCounterRouterStatusBgpPeerStatus < 3) { | 6046 if (buildCounterRouterStatusBgpPeerStatus < 3) { |
5490 checkUnnamed2323(o.advertisedRoutes); | 6047 checkUnnamed2111(o.advertisedRoutes); |
5491 unittest.expect(o.ipAddress, unittest.equals('foo')); | 6048 unittest.expect(o.ipAddress, unittest.equals('foo')); |
5492 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); | 6049 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); |
5493 unittest.expect(o.name, unittest.equals('foo')); | 6050 unittest.expect(o.name, unittest.equals('foo')); |
5494 unittest.expect(o.numLearnedRoutes, unittest.equals(42)); | 6051 unittest.expect(o.numLearnedRoutes, unittest.equals(42)); |
5495 unittest.expect(o.peerIpAddress, unittest.equals('foo')); | 6052 unittest.expect(o.peerIpAddress, unittest.equals('foo')); |
5496 unittest.expect(o.state, unittest.equals('foo')); | 6053 unittest.expect(o.state, unittest.equals('foo')); |
5497 unittest.expect(o.status, unittest.equals('foo')); | 6054 unittest.expect(o.status, unittest.equals('foo')); |
5498 unittest.expect(o.uptime, unittest.equals('foo')); | 6055 unittest.expect(o.uptime, unittest.equals('foo')); |
5499 unittest.expect(o.uptimeSeconds, unittest.equals('foo')); | 6056 unittest.expect(o.uptimeSeconds, unittest.equals('foo')); |
5500 } | 6057 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5534 } | 6091 } |
5535 | 6092 |
5536 checkRoutersPreviewResponse(api.RoutersPreviewResponse o) { | 6093 checkRoutersPreviewResponse(api.RoutersPreviewResponse o) { |
5537 buildCounterRoutersPreviewResponse++; | 6094 buildCounterRoutersPreviewResponse++; |
5538 if (buildCounterRoutersPreviewResponse < 3) { | 6095 if (buildCounterRoutersPreviewResponse < 3) { |
5539 checkRouter(o.resource); | 6096 checkRouter(o.resource); |
5540 } | 6097 } |
5541 buildCounterRoutersPreviewResponse--; | 6098 buildCounterRoutersPreviewResponse--; |
5542 } | 6099 } |
5543 | 6100 |
5544 buildUnnamed2324() { | 6101 buildUnnamed2112() { |
5545 var o = new core.List<api.Router>(); | 6102 var o = new core.List<api.Router>(); |
5546 o.add(buildRouter()); | 6103 o.add(buildRouter()); |
5547 o.add(buildRouter()); | 6104 o.add(buildRouter()); |
5548 return o; | 6105 return o; |
5549 } | 6106 } |
5550 | 6107 |
5551 checkUnnamed2324(core.List<api.Router> o) { | 6108 checkUnnamed2112(core.List<api.Router> o) { |
5552 unittest.expect(o, unittest.hasLength(2)); | 6109 unittest.expect(o, unittest.hasLength(2)); |
5553 checkRouter(o[0]); | 6110 checkRouter(o[0]); |
5554 checkRouter(o[1]); | 6111 checkRouter(o[1]); |
5555 } | 6112 } |
5556 | 6113 |
5557 core.int buildCounterRoutersScopedListWarningData = 0; | 6114 core.int buildCounterRoutersScopedListWarningData = 0; |
5558 buildRoutersScopedListWarningData() { | 6115 buildRoutersScopedListWarningData() { |
5559 var o = new api.RoutersScopedListWarningData(); | 6116 var o = new api.RoutersScopedListWarningData(); |
5560 buildCounterRoutersScopedListWarningData++; | 6117 buildCounterRoutersScopedListWarningData++; |
5561 if (buildCounterRoutersScopedListWarningData < 3) { | 6118 if (buildCounterRoutersScopedListWarningData < 3) { |
5562 o.key = "foo"; | 6119 o.key = "foo"; |
5563 o.value = "foo"; | 6120 o.value = "foo"; |
5564 } | 6121 } |
5565 buildCounterRoutersScopedListWarningData--; | 6122 buildCounterRoutersScopedListWarningData--; |
5566 return o; | 6123 return o; |
5567 } | 6124 } |
5568 | 6125 |
5569 checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) { | 6126 checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) { |
5570 buildCounterRoutersScopedListWarningData++; | 6127 buildCounterRoutersScopedListWarningData++; |
5571 if (buildCounterRoutersScopedListWarningData < 3) { | 6128 if (buildCounterRoutersScopedListWarningData < 3) { |
5572 unittest.expect(o.key, unittest.equals('foo')); | 6129 unittest.expect(o.key, unittest.equals('foo')); |
5573 unittest.expect(o.value, unittest.equals('foo')); | 6130 unittest.expect(o.value, unittest.equals('foo')); |
5574 } | 6131 } |
5575 buildCounterRoutersScopedListWarningData--; | 6132 buildCounterRoutersScopedListWarningData--; |
5576 } | 6133 } |
5577 | 6134 |
5578 buildUnnamed2325() { | 6135 buildUnnamed2113() { |
5579 var o = new core.List<api.RoutersScopedListWarningData>(); | 6136 var o = new core.List<api.RoutersScopedListWarningData>(); |
5580 o.add(buildRoutersScopedListWarningData()); | 6137 o.add(buildRoutersScopedListWarningData()); |
5581 o.add(buildRoutersScopedListWarningData()); | 6138 o.add(buildRoutersScopedListWarningData()); |
5582 return o; | 6139 return o; |
5583 } | 6140 } |
5584 | 6141 |
5585 checkUnnamed2325(core.List<api.RoutersScopedListWarningData> o) { | 6142 checkUnnamed2113(core.List<api.RoutersScopedListWarningData> o) { |
5586 unittest.expect(o, unittest.hasLength(2)); | 6143 unittest.expect(o, unittest.hasLength(2)); |
5587 checkRoutersScopedListWarningData(o[0]); | 6144 checkRoutersScopedListWarningData(o[0]); |
5588 checkRoutersScopedListWarningData(o[1]); | 6145 checkRoutersScopedListWarningData(o[1]); |
5589 } | 6146 } |
5590 | 6147 |
5591 core.int buildCounterRoutersScopedListWarning = 0; | 6148 core.int buildCounterRoutersScopedListWarning = 0; |
5592 buildRoutersScopedListWarning() { | 6149 buildRoutersScopedListWarning() { |
5593 var o = new api.RoutersScopedListWarning(); | 6150 var o = new api.RoutersScopedListWarning(); |
5594 buildCounterRoutersScopedListWarning++; | 6151 buildCounterRoutersScopedListWarning++; |
5595 if (buildCounterRoutersScopedListWarning < 3) { | 6152 if (buildCounterRoutersScopedListWarning < 3) { |
5596 o.code = "foo"; | 6153 o.code = "foo"; |
5597 o.data = buildUnnamed2325(); | 6154 o.data = buildUnnamed2113(); |
5598 o.message = "foo"; | 6155 o.message = "foo"; |
5599 } | 6156 } |
5600 buildCounterRoutersScopedListWarning--; | 6157 buildCounterRoutersScopedListWarning--; |
5601 return o; | 6158 return o; |
5602 } | 6159 } |
5603 | 6160 |
5604 checkRoutersScopedListWarning(api.RoutersScopedListWarning o) { | 6161 checkRoutersScopedListWarning(api.RoutersScopedListWarning o) { |
5605 buildCounterRoutersScopedListWarning++; | 6162 buildCounterRoutersScopedListWarning++; |
5606 if (buildCounterRoutersScopedListWarning < 3) { | 6163 if (buildCounterRoutersScopedListWarning < 3) { |
5607 unittest.expect(o.code, unittest.equals('foo')); | 6164 unittest.expect(o.code, unittest.equals('foo')); |
5608 checkUnnamed2325(o.data); | 6165 checkUnnamed2113(o.data); |
5609 unittest.expect(o.message, unittest.equals('foo')); | 6166 unittest.expect(o.message, unittest.equals('foo')); |
5610 } | 6167 } |
5611 buildCounterRoutersScopedListWarning--; | 6168 buildCounterRoutersScopedListWarning--; |
5612 } | 6169 } |
5613 | 6170 |
5614 core.int buildCounterRoutersScopedList = 0; | 6171 core.int buildCounterRoutersScopedList = 0; |
5615 buildRoutersScopedList() { | 6172 buildRoutersScopedList() { |
5616 var o = new api.RoutersScopedList(); | 6173 var o = new api.RoutersScopedList(); |
5617 buildCounterRoutersScopedList++; | 6174 buildCounterRoutersScopedList++; |
5618 if (buildCounterRoutersScopedList < 3) { | 6175 if (buildCounterRoutersScopedList < 3) { |
5619 o.routers = buildUnnamed2324(); | 6176 o.routers = buildUnnamed2112(); |
5620 o.warning = buildRoutersScopedListWarning(); | 6177 o.warning = buildRoutersScopedListWarning(); |
5621 } | 6178 } |
5622 buildCounterRoutersScopedList--; | 6179 buildCounterRoutersScopedList--; |
5623 return o; | 6180 return o; |
5624 } | 6181 } |
5625 | 6182 |
5626 checkRoutersScopedList(api.RoutersScopedList o) { | 6183 checkRoutersScopedList(api.RoutersScopedList o) { |
5627 buildCounterRoutersScopedList++; | 6184 buildCounterRoutersScopedList++; |
5628 if (buildCounterRoutersScopedList < 3) { | 6185 if (buildCounterRoutersScopedList < 3) { |
5629 checkUnnamed2324(o.routers); | 6186 checkUnnamed2112(o.routers); |
5630 checkRoutersScopedListWarning(o.warning); | 6187 checkRoutersScopedListWarning(o.warning); |
5631 } | 6188 } |
5632 buildCounterRoutersScopedList--; | 6189 buildCounterRoutersScopedList--; |
5633 } | 6190 } |
5634 | 6191 |
5635 core.int buildCounterSSLHealthCheck = 0; | 6192 core.int buildCounterSSLHealthCheck = 0; |
5636 buildSSLHealthCheck() { | 6193 buildSSLHealthCheck() { |
5637 var o = new api.SSLHealthCheck(); | 6194 var o = new api.SSLHealthCheck(); |
5638 buildCounterSSLHealthCheck++; | 6195 buildCounterSSLHealthCheck++; |
5639 if (buildCounterSSLHealthCheck < 3) { | 6196 if (buildCounterSSLHealthCheck < 3) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5682 buildCounterScheduling--; | 6239 buildCounterScheduling--; |
5683 } | 6240 } |
5684 | 6241 |
5685 core.int buildCounterSerialPortOutput = 0; | 6242 core.int buildCounterSerialPortOutput = 0; |
5686 buildSerialPortOutput() { | 6243 buildSerialPortOutput() { |
5687 var o = new api.SerialPortOutput(); | 6244 var o = new api.SerialPortOutput(); |
5688 buildCounterSerialPortOutput++; | 6245 buildCounterSerialPortOutput++; |
5689 if (buildCounterSerialPortOutput < 3) { | 6246 if (buildCounterSerialPortOutput < 3) { |
5690 o.contents = "foo"; | 6247 o.contents = "foo"; |
5691 o.kind = "foo"; | 6248 o.kind = "foo"; |
| 6249 o.next = "foo"; |
5692 o.selfLink = "foo"; | 6250 o.selfLink = "foo"; |
| 6251 o.start = "foo"; |
5693 } | 6252 } |
5694 buildCounterSerialPortOutput--; | 6253 buildCounterSerialPortOutput--; |
5695 return o; | 6254 return o; |
5696 } | 6255 } |
5697 | 6256 |
5698 checkSerialPortOutput(api.SerialPortOutput o) { | 6257 checkSerialPortOutput(api.SerialPortOutput o) { |
5699 buildCounterSerialPortOutput++; | 6258 buildCounterSerialPortOutput++; |
5700 if (buildCounterSerialPortOutput < 3) { | 6259 if (buildCounterSerialPortOutput < 3) { |
5701 unittest.expect(o.contents, unittest.equals('foo')); | 6260 unittest.expect(o.contents, unittest.equals('foo')); |
5702 unittest.expect(o.kind, unittest.equals('foo')); | 6261 unittest.expect(o.kind, unittest.equals('foo')); |
| 6262 unittest.expect(o.next, unittest.equals('foo')); |
5703 unittest.expect(o.selfLink, unittest.equals('foo')); | 6263 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6264 unittest.expect(o.start, unittest.equals('foo')); |
5704 } | 6265 } |
5705 buildCounterSerialPortOutput--; | 6266 buildCounterSerialPortOutput--; |
5706 } | 6267 } |
5707 | 6268 |
5708 buildUnnamed2326() { | 6269 buildUnnamed2114() { |
5709 var o = new core.List<core.String>(); | 6270 var o = new core.List<core.String>(); |
5710 o.add("foo"); | 6271 o.add("foo"); |
5711 o.add("foo"); | 6272 o.add("foo"); |
5712 return o; | 6273 return o; |
5713 } | 6274 } |
5714 | 6275 |
5715 checkUnnamed2326(core.List<core.String> o) { | 6276 checkUnnamed2114(core.List<core.String> o) { |
5716 unittest.expect(o, unittest.hasLength(2)); | 6277 unittest.expect(o, unittest.hasLength(2)); |
5717 unittest.expect(o[0], unittest.equals('foo')); | 6278 unittest.expect(o[0], unittest.equals('foo')); |
5718 unittest.expect(o[1], unittest.equals('foo')); | 6279 unittest.expect(o[1], unittest.equals('foo')); |
5719 } | 6280 } |
5720 | 6281 |
5721 core.int buildCounterServiceAccount = 0; | 6282 core.int buildCounterServiceAccount = 0; |
5722 buildServiceAccount() { | 6283 buildServiceAccount() { |
5723 var o = new api.ServiceAccount(); | 6284 var o = new api.ServiceAccount(); |
5724 buildCounterServiceAccount++; | 6285 buildCounterServiceAccount++; |
5725 if (buildCounterServiceAccount < 3) { | 6286 if (buildCounterServiceAccount < 3) { |
5726 o.email = "foo"; | 6287 o.email = "foo"; |
5727 o.scopes = buildUnnamed2326(); | 6288 o.scopes = buildUnnamed2114(); |
5728 } | 6289 } |
5729 buildCounterServiceAccount--; | 6290 buildCounterServiceAccount--; |
5730 return o; | 6291 return o; |
5731 } | 6292 } |
5732 | 6293 |
5733 checkServiceAccount(api.ServiceAccount o) { | 6294 checkServiceAccount(api.ServiceAccount o) { |
5734 buildCounterServiceAccount++; | 6295 buildCounterServiceAccount++; |
5735 if (buildCounterServiceAccount < 3) { | 6296 if (buildCounterServiceAccount < 3) { |
5736 unittest.expect(o.email, unittest.equals('foo')); | 6297 unittest.expect(o.email, unittest.equals('foo')); |
5737 checkUnnamed2326(o.scopes); | 6298 checkUnnamed2114(o.scopes); |
5738 } | 6299 } |
5739 buildCounterServiceAccount--; | 6300 buildCounterServiceAccount--; |
5740 } | 6301 } |
5741 | 6302 |
5742 buildUnnamed2327() { | 6303 buildUnnamed2115() { |
5743 var o = new core.List<core.String>(); | 6304 var o = new core.List<core.String>(); |
5744 o.add("foo"); | 6305 o.add("foo"); |
5745 o.add("foo"); | 6306 o.add("foo"); |
5746 return o; | 6307 return o; |
5747 } | 6308 } |
5748 | 6309 |
5749 checkUnnamed2327(core.List<core.String> o) { | 6310 checkUnnamed2115(core.List<core.String> o) { |
5750 unittest.expect(o, unittest.hasLength(2)); | 6311 unittest.expect(o, unittest.hasLength(2)); |
5751 unittest.expect(o[0], unittest.equals('foo')); | 6312 unittest.expect(o[0], unittest.equals('foo')); |
5752 unittest.expect(o[1], unittest.equals('foo')); | 6313 unittest.expect(o[1], unittest.equals('foo')); |
5753 } | 6314 } |
5754 | 6315 |
5755 core.int buildCounterSnapshot = 0; | 6316 core.int buildCounterSnapshot = 0; |
5756 buildSnapshot() { | 6317 buildSnapshot() { |
5757 var o = new api.Snapshot(); | 6318 var o = new api.Snapshot(); |
5758 buildCounterSnapshot++; | 6319 buildCounterSnapshot++; |
5759 if (buildCounterSnapshot < 3) { | 6320 if (buildCounterSnapshot < 3) { |
5760 o.creationTimestamp = "foo"; | 6321 o.creationTimestamp = "foo"; |
5761 o.description = "foo"; | 6322 o.description = "foo"; |
5762 o.diskSizeGb = "foo"; | 6323 o.diskSizeGb = "foo"; |
5763 o.id = "foo"; | 6324 o.id = "foo"; |
5764 o.kind = "foo"; | 6325 o.kind = "foo"; |
5765 o.licenses = buildUnnamed2327(); | 6326 o.licenses = buildUnnamed2115(); |
5766 o.name = "foo"; | 6327 o.name = "foo"; |
5767 o.selfLink = "foo"; | 6328 o.selfLink = "foo"; |
5768 o.snapshotEncryptionKey = buildCustomerEncryptionKey(); | 6329 o.snapshotEncryptionKey = buildCustomerEncryptionKey(); |
5769 o.sourceDisk = "foo"; | 6330 o.sourceDisk = "foo"; |
5770 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); | 6331 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); |
5771 o.sourceDiskId = "foo"; | 6332 o.sourceDiskId = "foo"; |
5772 o.status = "foo"; | 6333 o.status = "foo"; |
5773 o.storageBytes = "foo"; | 6334 o.storageBytes = "foo"; |
5774 o.storageBytesStatus = "foo"; | 6335 o.storageBytesStatus = "foo"; |
5775 } | 6336 } |
5776 buildCounterSnapshot--; | 6337 buildCounterSnapshot--; |
5777 return o; | 6338 return o; |
5778 } | 6339 } |
5779 | 6340 |
5780 checkSnapshot(api.Snapshot o) { | 6341 checkSnapshot(api.Snapshot o) { |
5781 buildCounterSnapshot++; | 6342 buildCounterSnapshot++; |
5782 if (buildCounterSnapshot < 3) { | 6343 if (buildCounterSnapshot < 3) { |
5783 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 6344 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
5784 unittest.expect(o.description, unittest.equals('foo')); | 6345 unittest.expect(o.description, unittest.equals('foo')); |
5785 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 6346 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
5786 unittest.expect(o.id, unittest.equals('foo')); | 6347 unittest.expect(o.id, unittest.equals('foo')); |
5787 unittest.expect(o.kind, unittest.equals('foo')); | 6348 unittest.expect(o.kind, unittest.equals('foo')); |
5788 checkUnnamed2327(o.licenses); | 6349 checkUnnamed2115(o.licenses); |
5789 unittest.expect(o.name, unittest.equals('foo')); | 6350 unittest.expect(o.name, unittest.equals('foo')); |
5790 unittest.expect(o.selfLink, unittest.equals('foo')); | 6351 unittest.expect(o.selfLink, unittest.equals('foo')); |
5791 checkCustomerEncryptionKey(o.snapshotEncryptionKey); | 6352 checkCustomerEncryptionKey(o.snapshotEncryptionKey); |
5792 unittest.expect(o.sourceDisk, unittest.equals('foo')); | 6353 unittest.expect(o.sourceDisk, unittest.equals('foo')); |
5793 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); | 6354 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); |
5794 unittest.expect(o.sourceDiskId, unittest.equals('foo')); | 6355 unittest.expect(o.sourceDiskId, unittest.equals('foo')); |
5795 unittest.expect(o.status, unittest.equals('foo')); | 6356 unittest.expect(o.status, unittest.equals('foo')); |
5796 unittest.expect(o.storageBytes, unittest.equals('foo')); | 6357 unittest.expect(o.storageBytes, unittest.equals('foo')); |
5797 unittest.expect(o.storageBytesStatus, unittest.equals('foo')); | 6358 unittest.expect(o.storageBytesStatus, unittest.equals('foo')); |
5798 } | 6359 } |
5799 buildCounterSnapshot--; | 6360 buildCounterSnapshot--; |
5800 } | 6361 } |
5801 | 6362 |
5802 buildUnnamed2328() { | 6363 buildUnnamed2116() { |
5803 var o = new core.List<api.Snapshot>(); | 6364 var o = new core.List<api.Snapshot>(); |
5804 o.add(buildSnapshot()); | 6365 o.add(buildSnapshot()); |
5805 o.add(buildSnapshot()); | 6366 o.add(buildSnapshot()); |
5806 return o; | 6367 return o; |
5807 } | 6368 } |
5808 | 6369 |
5809 checkUnnamed2328(core.List<api.Snapshot> o) { | 6370 checkUnnamed2116(core.List<api.Snapshot> o) { |
5810 unittest.expect(o, unittest.hasLength(2)); | 6371 unittest.expect(o, unittest.hasLength(2)); |
5811 checkSnapshot(o[0]); | 6372 checkSnapshot(o[0]); |
5812 checkSnapshot(o[1]); | 6373 checkSnapshot(o[1]); |
5813 } | 6374 } |
5814 | 6375 |
5815 core.int buildCounterSnapshotList = 0; | 6376 core.int buildCounterSnapshotList = 0; |
5816 buildSnapshotList() { | 6377 buildSnapshotList() { |
5817 var o = new api.SnapshotList(); | 6378 var o = new api.SnapshotList(); |
5818 buildCounterSnapshotList++; | 6379 buildCounterSnapshotList++; |
5819 if (buildCounterSnapshotList < 3) { | 6380 if (buildCounterSnapshotList < 3) { |
5820 o.id = "foo"; | 6381 o.id = "foo"; |
5821 o.items = buildUnnamed2328(); | 6382 o.items = buildUnnamed2116(); |
5822 o.kind = "foo"; | 6383 o.kind = "foo"; |
5823 o.nextPageToken = "foo"; | 6384 o.nextPageToken = "foo"; |
5824 o.selfLink = "foo"; | 6385 o.selfLink = "foo"; |
5825 } | 6386 } |
5826 buildCounterSnapshotList--; | 6387 buildCounterSnapshotList--; |
5827 return o; | 6388 return o; |
5828 } | 6389 } |
5829 | 6390 |
5830 checkSnapshotList(api.SnapshotList o) { | 6391 checkSnapshotList(api.SnapshotList o) { |
5831 buildCounterSnapshotList++; | 6392 buildCounterSnapshotList++; |
5832 if (buildCounterSnapshotList < 3) { | 6393 if (buildCounterSnapshotList < 3) { |
5833 unittest.expect(o.id, unittest.equals('foo')); | 6394 unittest.expect(o.id, unittest.equals('foo')); |
5834 checkUnnamed2328(o.items); | 6395 checkUnnamed2116(o.items); |
5835 unittest.expect(o.kind, unittest.equals('foo')); | 6396 unittest.expect(o.kind, unittest.equals('foo')); |
5836 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6397 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5837 unittest.expect(o.selfLink, unittest.equals('foo')); | 6398 unittest.expect(o.selfLink, unittest.equals('foo')); |
5838 } | 6399 } |
5839 buildCounterSnapshotList--; | 6400 buildCounterSnapshotList--; |
5840 } | 6401 } |
5841 | 6402 |
5842 core.int buildCounterSslCertificate = 0; | 6403 core.int buildCounterSslCertificate = 0; |
5843 buildSslCertificate() { | 6404 buildSslCertificate() { |
5844 var o = new api.SslCertificate(); | 6405 var o = new api.SslCertificate(); |
(...skipping 20 matching lines...) Expand all Loading... |
5865 unittest.expect(o.description, unittest.equals('foo')); | 6426 unittest.expect(o.description, unittest.equals('foo')); |
5866 unittest.expect(o.id, unittest.equals('foo')); | 6427 unittest.expect(o.id, unittest.equals('foo')); |
5867 unittest.expect(o.kind, unittest.equals('foo')); | 6428 unittest.expect(o.kind, unittest.equals('foo')); |
5868 unittest.expect(o.name, unittest.equals('foo')); | 6429 unittest.expect(o.name, unittest.equals('foo')); |
5869 unittest.expect(o.privateKey, unittest.equals('foo')); | 6430 unittest.expect(o.privateKey, unittest.equals('foo')); |
5870 unittest.expect(o.selfLink, unittest.equals('foo')); | 6431 unittest.expect(o.selfLink, unittest.equals('foo')); |
5871 } | 6432 } |
5872 buildCounterSslCertificate--; | 6433 buildCounterSslCertificate--; |
5873 } | 6434 } |
5874 | 6435 |
5875 buildUnnamed2329() { | 6436 buildUnnamed2117() { |
5876 var o = new core.List<api.SslCertificate>(); | 6437 var o = new core.List<api.SslCertificate>(); |
5877 o.add(buildSslCertificate()); | 6438 o.add(buildSslCertificate()); |
5878 o.add(buildSslCertificate()); | 6439 o.add(buildSslCertificate()); |
5879 return o; | 6440 return o; |
5880 } | 6441 } |
5881 | 6442 |
5882 checkUnnamed2329(core.List<api.SslCertificate> o) { | 6443 checkUnnamed2117(core.List<api.SslCertificate> o) { |
5883 unittest.expect(o, unittest.hasLength(2)); | 6444 unittest.expect(o, unittest.hasLength(2)); |
5884 checkSslCertificate(o[0]); | 6445 checkSslCertificate(o[0]); |
5885 checkSslCertificate(o[1]); | 6446 checkSslCertificate(o[1]); |
5886 } | 6447 } |
5887 | 6448 |
5888 core.int buildCounterSslCertificateList = 0; | 6449 core.int buildCounterSslCertificateList = 0; |
5889 buildSslCertificateList() { | 6450 buildSslCertificateList() { |
5890 var o = new api.SslCertificateList(); | 6451 var o = new api.SslCertificateList(); |
5891 buildCounterSslCertificateList++; | 6452 buildCounterSslCertificateList++; |
5892 if (buildCounterSslCertificateList < 3) { | 6453 if (buildCounterSslCertificateList < 3) { |
5893 o.id = "foo"; | 6454 o.id = "foo"; |
5894 o.items = buildUnnamed2329(); | 6455 o.items = buildUnnamed2117(); |
5895 o.kind = "foo"; | 6456 o.kind = "foo"; |
5896 o.nextPageToken = "foo"; | 6457 o.nextPageToken = "foo"; |
5897 o.selfLink = "foo"; | 6458 o.selfLink = "foo"; |
5898 } | 6459 } |
5899 buildCounterSslCertificateList--; | 6460 buildCounterSslCertificateList--; |
5900 return o; | 6461 return o; |
5901 } | 6462 } |
5902 | 6463 |
5903 checkSslCertificateList(api.SslCertificateList o) { | 6464 checkSslCertificateList(api.SslCertificateList o) { |
5904 buildCounterSslCertificateList++; | 6465 buildCounterSslCertificateList++; |
5905 if (buildCounterSslCertificateList < 3) { | 6466 if (buildCounterSslCertificateList < 3) { |
5906 unittest.expect(o.id, unittest.equals('foo')); | 6467 unittest.expect(o.id, unittest.equals('foo')); |
5907 checkUnnamed2329(o.items); | 6468 checkUnnamed2117(o.items); |
5908 unittest.expect(o.kind, unittest.equals('foo')); | 6469 unittest.expect(o.kind, unittest.equals('foo')); |
5909 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6470 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5910 unittest.expect(o.selfLink, unittest.equals('foo')); | 6471 unittest.expect(o.selfLink, unittest.equals('foo')); |
5911 } | 6472 } |
5912 buildCounterSslCertificateList--; | 6473 buildCounterSslCertificateList--; |
5913 } | 6474 } |
5914 | 6475 |
5915 core.int buildCounterSubnetwork = 0; | 6476 core.int buildCounterSubnetwork = 0; |
5916 buildSubnetwork() { | 6477 buildSubnetwork() { |
5917 var o = new api.Subnetwork(); | 6478 var o = new api.Subnetwork(); |
(...skipping 24 matching lines...) Expand all Loading... |
5942 unittest.expect(o.ipCidrRange, unittest.equals('foo')); | 6503 unittest.expect(o.ipCidrRange, unittest.equals('foo')); |
5943 unittest.expect(o.kind, unittest.equals('foo')); | 6504 unittest.expect(o.kind, unittest.equals('foo')); |
5944 unittest.expect(o.name, unittest.equals('foo')); | 6505 unittest.expect(o.name, unittest.equals('foo')); |
5945 unittest.expect(o.network, unittest.equals('foo')); | 6506 unittest.expect(o.network, unittest.equals('foo')); |
5946 unittest.expect(o.region, unittest.equals('foo')); | 6507 unittest.expect(o.region, unittest.equals('foo')); |
5947 unittest.expect(o.selfLink, unittest.equals('foo')); | 6508 unittest.expect(o.selfLink, unittest.equals('foo')); |
5948 } | 6509 } |
5949 buildCounterSubnetwork--; | 6510 buildCounterSubnetwork--; |
5950 } | 6511 } |
5951 | 6512 |
5952 buildUnnamed2330() { | 6513 buildUnnamed2118() { |
5953 var o = new core.Map<core.String, api.SubnetworksScopedList>(); | 6514 var o = new core.Map<core.String, api.SubnetworksScopedList>(); |
5954 o["x"] = buildSubnetworksScopedList(); | 6515 o["x"] = buildSubnetworksScopedList(); |
5955 o["y"] = buildSubnetworksScopedList(); | 6516 o["y"] = buildSubnetworksScopedList(); |
5956 return o; | 6517 return o; |
5957 } | 6518 } |
5958 | 6519 |
5959 checkUnnamed2330(core.Map<core.String, api.SubnetworksScopedList> o) { | 6520 checkUnnamed2118(core.Map<core.String, api.SubnetworksScopedList> o) { |
5960 unittest.expect(o, unittest.hasLength(2)); | 6521 unittest.expect(o, unittest.hasLength(2)); |
5961 checkSubnetworksScopedList(o["x"]); | 6522 checkSubnetworksScopedList(o["x"]); |
5962 checkSubnetworksScopedList(o["y"]); | 6523 checkSubnetworksScopedList(o["y"]); |
5963 } | 6524 } |
5964 | 6525 |
5965 core.int buildCounterSubnetworkAggregatedList = 0; | 6526 core.int buildCounterSubnetworkAggregatedList = 0; |
5966 buildSubnetworkAggregatedList() { | 6527 buildSubnetworkAggregatedList() { |
5967 var o = new api.SubnetworkAggregatedList(); | 6528 var o = new api.SubnetworkAggregatedList(); |
5968 buildCounterSubnetworkAggregatedList++; | 6529 buildCounterSubnetworkAggregatedList++; |
5969 if (buildCounterSubnetworkAggregatedList < 3) { | 6530 if (buildCounterSubnetworkAggregatedList < 3) { |
5970 o.id = "foo"; | 6531 o.id = "foo"; |
5971 o.items = buildUnnamed2330(); | 6532 o.items = buildUnnamed2118(); |
5972 o.kind = "foo"; | 6533 o.kind = "foo"; |
5973 o.nextPageToken = "foo"; | 6534 o.nextPageToken = "foo"; |
5974 o.selfLink = "foo"; | 6535 o.selfLink = "foo"; |
5975 } | 6536 } |
5976 buildCounterSubnetworkAggregatedList--; | 6537 buildCounterSubnetworkAggregatedList--; |
5977 return o; | 6538 return o; |
5978 } | 6539 } |
5979 | 6540 |
5980 checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) { | 6541 checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) { |
5981 buildCounterSubnetworkAggregatedList++; | 6542 buildCounterSubnetworkAggregatedList++; |
5982 if (buildCounterSubnetworkAggregatedList < 3) { | 6543 if (buildCounterSubnetworkAggregatedList < 3) { |
5983 unittest.expect(o.id, unittest.equals('foo')); | 6544 unittest.expect(o.id, unittest.equals('foo')); |
5984 checkUnnamed2330(o.items); | 6545 checkUnnamed2118(o.items); |
5985 unittest.expect(o.kind, unittest.equals('foo')); | 6546 unittest.expect(o.kind, unittest.equals('foo')); |
5986 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6547 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
5987 unittest.expect(o.selfLink, unittest.equals('foo')); | 6548 unittest.expect(o.selfLink, unittest.equals('foo')); |
5988 } | 6549 } |
5989 buildCounterSubnetworkAggregatedList--; | 6550 buildCounterSubnetworkAggregatedList--; |
5990 } | 6551 } |
5991 | 6552 |
5992 buildUnnamed2331() { | 6553 buildUnnamed2119() { |
5993 var o = new core.List<api.Subnetwork>(); | 6554 var o = new core.List<api.Subnetwork>(); |
5994 o.add(buildSubnetwork()); | 6555 o.add(buildSubnetwork()); |
5995 o.add(buildSubnetwork()); | 6556 o.add(buildSubnetwork()); |
5996 return o; | 6557 return o; |
5997 } | 6558 } |
5998 | 6559 |
5999 checkUnnamed2331(core.List<api.Subnetwork> o) { | 6560 checkUnnamed2119(core.List<api.Subnetwork> o) { |
6000 unittest.expect(o, unittest.hasLength(2)); | 6561 unittest.expect(o, unittest.hasLength(2)); |
6001 checkSubnetwork(o[0]); | 6562 checkSubnetwork(o[0]); |
6002 checkSubnetwork(o[1]); | 6563 checkSubnetwork(o[1]); |
6003 } | 6564 } |
6004 | 6565 |
6005 core.int buildCounterSubnetworkList = 0; | 6566 core.int buildCounterSubnetworkList = 0; |
6006 buildSubnetworkList() { | 6567 buildSubnetworkList() { |
6007 var o = new api.SubnetworkList(); | 6568 var o = new api.SubnetworkList(); |
6008 buildCounterSubnetworkList++; | 6569 buildCounterSubnetworkList++; |
6009 if (buildCounterSubnetworkList < 3) { | 6570 if (buildCounterSubnetworkList < 3) { |
6010 o.id = "foo"; | 6571 o.id = "foo"; |
6011 o.items = buildUnnamed2331(); | 6572 o.items = buildUnnamed2119(); |
6012 o.kind = "foo"; | 6573 o.kind = "foo"; |
6013 o.nextPageToken = "foo"; | 6574 o.nextPageToken = "foo"; |
6014 o.selfLink = "foo"; | 6575 o.selfLink = "foo"; |
6015 } | 6576 } |
6016 buildCounterSubnetworkList--; | 6577 buildCounterSubnetworkList--; |
6017 return o; | 6578 return o; |
6018 } | 6579 } |
6019 | 6580 |
6020 checkSubnetworkList(api.SubnetworkList o) { | 6581 checkSubnetworkList(api.SubnetworkList o) { |
6021 buildCounterSubnetworkList++; | 6582 buildCounterSubnetworkList++; |
6022 if (buildCounterSubnetworkList < 3) { | 6583 if (buildCounterSubnetworkList < 3) { |
6023 unittest.expect(o.id, unittest.equals('foo')); | 6584 unittest.expect(o.id, unittest.equals('foo')); |
6024 checkUnnamed2331(o.items); | 6585 checkUnnamed2119(o.items); |
6025 unittest.expect(o.kind, unittest.equals('foo')); | 6586 unittest.expect(o.kind, unittest.equals('foo')); |
6026 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6587 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6027 unittest.expect(o.selfLink, unittest.equals('foo')); | 6588 unittest.expect(o.selfLink, unittest.equals('foo')); |
6028 } | 6589 } |
6029 buildCounterSubnetworkList--; | 6590 buildCounterSubnetworkList--; |
6030 } | 6591 } |
6031 | 6592 |
6032 core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0; | 6593 core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0; |
6033 buildSubnetworksExpandIpCidrRangeRequest() { | 6594 buildSubnetworksExpandIpCidrRangeRequest() { |
6034 var o = new api.SubnetworksExpandIpCidrRangeRequest(); | 6595 var o = new api.SubnetworksExpandIpCidrRangeRequest(); |
6035 buildCounterSubnetworksExpandIpCidrRangeRequest++; | 6596 buildCounterSubnetworksExpandIpCidrRangeRequest++; |
6036 if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { | 6597 if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { |
6037 o.ipCidrRange = "foo"; | 6598 o.ipCidrRange = "foo"; |
6038 } | 6599 } |
6039 buildCounterSubnetworksExpandIpCidrRangeRequest--; | 6600 buildCounterSubnetworksExpandIpCidrRangeRequest--; |
6040 return o; | 6601 return o; |
6041 } | 6602 } |
6042 | 6603 |
6043 checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest
o) { | 6604 checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest
o) { |
6044 buildCounterSubnetworksExpandIpCidrRangeRequest++; | 6605 buildCounterSubnetworksExpandIpCidrRangeRequest++; |
6045 if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { | 6606 if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { |
6046 unittest.expect(o.ipCidrRange, unittest.equals('foo')); | 6607 unittest.expect(o.ipCidrRange, unittest.equals('foo')); |
6047 } | 6608 } |
6048 buildCounterSubnetworksExpandIpCidrRangeRequest--; | 6609 buildCounterSubnetworksExpandIpCidrRangeRequest--; |
6049 } | 6610 } |
6050 | 6611 |
6051 buildUnnamed2332() { | 6612 buildUnnamed2120() { |
6052 var o = new core.List<api.Subnetwork>(); | 6613 var o = new core.List<api.Subnetwork>(); |
6053 o.add(buildSubnetwork()); | 6614 o.add(buildSubnetwork()); |
6054 o.add(buildSubnetwork()); | 6615 o.add(buildSubnetwork()); |
6055 return o; | 6616 return o; |
6056 } | 6617 } |
6057 | 6618 |
6058 checkUnnamed2332(core.List<api.Subnetwork> o) { | 6619 checkUnnamed2120(core.List<api.Subnetwork> o) { |
6059 unittest.expect(o, unittest.hasLength(2)); | 6620 unittest.expect(o, unittest.hasLength(2)); |
6060 checkSubnetwork(o[0]); | 6621 checkSubnetwork(o[0]); |
6061 checkSubnetwork(o[1]); | 6622 checkSubnetwork(o[1]); |
6062 } | 6623 } |
6063 | 6624 |
6064 core.int buildCounterSubnetworksScopedListWarningData = 0; | 6625 core.int buildCounterSubnetworksScopedListWarningData = 0; |
6065 buildSubnetworksScopedListWarningData() { | 6626 buildSubnetworksScopedListWarningData() { |
6066 var o = new api.SubnetworksScopedListWarningData(); | 6627 var o = new api.SubnetworksScopedListWarningData(); |
6067 buildCounterSubnetworksScopedListWarningData++; | 6628 buildCounterSubnetworksScopedListWarningData++; |
6068 if (buildCounterSubnetworksScopedListWarningData < 3) { | 6629 if (buildCounterSubnetworksScopedListWarningData < 3) { |
6069 o.key = "foo"; | 6630 o.key = "foo"; |
6070 o.value = "foo"; | 6631 o.value = "foo"; |
6071 } | 6632 } |
6072 buildCounterSubnetworksScopedListWarningData--; | 6633 buildCounterSubnetworksScopedListWarningData--; |
6073 return o; | 6634 return o; |
6074 } | 6635 } |
6075 | 6636 |
6076 checkSubnetworksScopedListWarningData(api.SubnetworksScopedListWarningData o) { | 6637 checkSubnetworksScopedListWarningData(api.SubnetworksScopedListWarningData o) { |
6077 buildCounterSubnetworksScopedListWarningData++; | 6638 buildCounterSubnetworksScopedListWarningData++; |
6078 if (buildCounterSubnetworksScopedListWarningData < 3) { | 6639 if (buildCounterSubnetworksScopedListWarningData < 3) { |
6079 unittest.expect(o.key, unittest.equals('foo')); | 6640 unittest.expect(o.key, unittest.equals('foo')); |
6080 unittest.expect(o.value, unittest.equals('foo')); | 6641 unittest.expect(o.value, unittest.equals('foo')); |
6081 } | 6642 } |
6082 buildCounterSubnetworksScopedListWarningData--; | 6643 buildCounterSubnetworksScopedListWarningData--; |
6083 } | 6644 } |
6084 | 6645 |
6085 buildUnnamed2333() { | 6646 buildUnnamed2121() { |
6086 var o = new core.List<api.SubnetworksScopedListWarningData>(); | 6647 var o = new core.List<api.SubnetworksScopedListWarningData>(); |
6087 o.add(buildSubnetworksScopedListWarningData()); | 6648 o.add(buildSubnetworksScopedListWarningData()); |
6088 o.add(buildSubnetworksScopedListWarningData()); | 6649 o.add(buildSubnetworksScopedListWarningData()); |
6089 return o; | 6650 return o; |
6090 } | 6651 } |
6091 | 6652 |
6092 checkUnnamed2333(core.List<api.SubnetworksScopedListWarningData> o) { | 6653 checkUnnamed2121(core.List<api.SubnetworksScopedListWarningData> o) { |
6093 unittest.expect(o, unittest.hasLength(2)); | 6654 unittest.expect(o, unittest.hasLength(2)); |
6094 checkSubnetworksScopedListWarningData(o[0]); | 6655 checkSubnetworksScopedListWarningData(o[0]); |
6095 checkSubnetworksScopedListWarningData(o[1]); | 6656 checkSubnetworksScopedListWarningData(o[1]); |
6096 } | 6657 } |
6097 | 6658 |
6098 core.int buildCounterSubnetworksScopedListWarning = 0; | 6659 core.int buildCounterSubnetworksScopedListWarning = 0; |
6099 buildSubnetworksScopedListWarning() { | 6660 buildSubnetworksScopedListWarning() { |
6100 var o = new api.SubnetworksScopedListWarning(); | 6661 var o = new api.SubnetworksScopedListWarning(); |
6101 buildCounterSubnetworksScopedListWarning++; | 6662 buildCounterSubnetworksScopedListWarning++; |
6102 if (buildCounterSubnetworksScopedListWarning < 3) { | 6663 if (buildCounterSubnetworksScopedListWarning < 3) { |
6103 o.code = "foo"; | 6664 o.code = "foo"; |
6104 o.data = buildUnnamed2333(); | 6665 o.data = buildUnnamed2121(); |
6105 o.message = "foo"; | 6666 o.message = "foo"; |
6106 } | 6667 } |
6107 buildCounterSubnetworksScopedListWarning--; | 6668 buildCounterSubnetworksScopedListWarning--; |
6108 return o; | 6669 return o; |
6109 } | 6670 } |
6110 | 6671 |
6111 checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) { | 6672 checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) { |
6112 buildCounterSubnetworksScopedListWarning++; | 6673 buildCounterSubnetworksScopedListWarning++; |
6113 if (buildCounterSubnetworksScopedListWarning < 3) { | 6674 if (buildCounterSubnetworksScopedListWarning < 3) { |
6114 unittest.expect(o.code, unittest.equals('foo')); | 6675 unittest.expect(o.code, unittest.equals('foo')); |
6115 checkUnnamed2333(o.data); | 6676 checkUnnamed2121(o.data); |
6116 unittest.expect(o.message, unittest.equals('foo')); | 6677 unittest.expect(o.message, unittest.equals('foo')); |
6117 } | 6678 } |
6118 buildCounterSubnetworksScopedListWarning--; | 6679 buildCounterSubnetworksScopedListWarning--; |
6119 } | 6680 } |
6120 | 6681 |
6121 core.int buildCounterSubnetworksScopedList = 0; | 6682 core.int buildCounterSubnetworksScopedList = 0; |
6122 buildSubnetworksScopedList() { | 6683 buildSubnetworksScopedList() { |
6123 var o = new api.SubnetworksScopedList(); | 6684 var o = new api.SubnetworksScopedList(); |
6124 buildCounterSubnetworksScopedList++; | 6685 buildCounterSubnetworksScopedList++; |
6125 if (buildCounterSubnetworksScopedList < 3) { | 6686 if (buildCounterSubnetworksScopedList < 3) { |
6126 o.subnetworks = buildUnnamed2332(); | 6687 o.subnetworks = buildUnnamed2120(); |
6127 o.warning = buildSubnetworksScopedListWarning(); | 6688 o.warning = buildSubnetworksScopedListWarning(); |
6128 } | 6689 } |
6129 buildCounterSubnetworksScopedList--; | 6690 buildCounterSubnetworksScopedList--; |
6130 return o; | 6691 return o; |
6131 } | 6692 } |
6132 | 6693 |
6133 checkSubnetworksScopedList(api.SubnetworksScopedList o) { | 6694 checkSubnetworksScopedList(api.SubnetworksScopedList o) { |
6134 buildCounterSubnetworksScopedList++; | 6695 buildCounterSubnetworksScopedList++; |
6135 if (buildCounterSubnetworksScopedList < 3) { | 6696 if (buildCounterSubnetworksScopedList < 3) { |
6136 checkUnnamed2332(o.subnetworks); | 6697 checkUnnamed2120(o.subnetworks); |
6137 checkSubnetworksScopedListWarning(o.warning); | 6698 checkSubnetworksScopedListWarning(o.warning); |
6138 } | 6699 } |
6139 buildCounterSubnetworksScopedList--; | 6700 buildCounterSubnetworksScopedList--; |
6140 } | 6701 } |
6141 | 6702 |
6142 core.int buildCounterTCPHealthCheck = 0; | 6703 core.int buildCounterTCPHealthCheck = 0; |
6143 buildTCPHealthCheck() { | 6704 buildTCPHealthCheck() { |
6144 var o = new api.TCPHealthCheck(); | 6705 var o = new api.TCPHealthCheck(); |
6145 buildCounterTCPHealthCheck++; | 6706 buildCounterTCPHealthCheck++; |
6146 if (buildCounterTCPHealthCheck < 3) { | 6707 if (buildCounterTCPHealthCheck < 3) { |
(...skipping 12 matching lines...) Expand all Loading... |
6159 if (buildCounterTCPHealthCheck < 3) { | 6720 if (buildCounterTCPHealthCheck < 3) { |
6160 unittest.expect(o.port, unittest.equals(42)); | 6721 unittest.expect(o.port, unittest.equals(42)); |
6161 unittest.expect(o.portName, unittest.equals('foo')); | 6722 unittest.expect(o.portName, unittest.equals('foo')); |
6162 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 6723 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
6163 unittest.expect(o.request, unittest.equals('foo')); | 6724 unittest.expect(o.request, unittest.equals('foo')); |
6164 unittest.expect(o.response, unittest.equals('foo')); | 6725 unittest.expect(o.response, unittest.equals('foo')); |
6165 } | 6726 } |
6166 buildCounterTCPHealthCheck--; | 6727 buildCounterTCPHealthCheck--; |
6167 } | 6728 } |
6168 | 6729 |
6169 buildUnnamed2334() { | 6730 buildUnnamed2122() { |
6170 var o = new core.List<core.String>(); | 6731 var o = new core.List<core.String>(); |
6171 o.add("foo"); | 6732 o.add("foo"); |
6172 o.add("foo"); | 6733 o.add("foo"); |
6173 return o; | 6734 return o; |
6174 } | 6735 } |
6175 | 6736 |
6176 checkUnnamed2334(core.List<core.String> o) { | 6737 checkUnnamed2122(core.List<core.String> o) { |
6177 unittest.expect(o, unittest.hasLength(2)); | 6738 unittest.expect(o, unittest.hasLength(2)); |
6178 unittest.expect(o[0], unittest.equals('foo')); | 6739 unittest.expect(o[0], unittest.equals('foo')); |
6179 unittest.expect(o[1], unittest.equals('foo')); | 6740 unittest.expect(o[1], unittest.equals('foo')); |
6180 } | 6741 } |
6181 | 6742 |
6182 core.int buildCounterTags = 0; | 6743 core.int buildCounterTags = 0; |
6183 buildTags() { | 6744 buildTags() { |
6184 var o = new api.Tags(); | 6745 var o = new api.Tags(); |
6185 buildCounterTags++; | 6746 buildCounterTags++; |
6186 if (buildCounterTags < 3) { | 6747 if (buildCounterTags < 3) { |
6187 o.fingerprint = "foo"; | 6748 o.fingerprint = "foo"; |
6188 o.items = buildUnnamed2334(); | 6749 o.items = buildUnnamed2122(); |
6189 } | 6750 } |
6190 buildCounterTags--; | 6751 buildCounterTags--; |
6191 return o; | 6752 return o; |
6192 } | 6753 } |
6193 | 6754 |
6194 checkTags(api.Tags o) { | 6755 checkTags(api.Tags o) { |
6195 buildCounterTags++; | 6756 buildCounterTags++; |
6196 if (buildCounterTags < 3) { | 6757 if (buildCounterTags < 3) { |
6197 unittest.expect(o.fingerprint, unittest.equals('foo')); | 6758 unittest.expect(o.fingerprint, unittest.equals('foo')); |
6198 checkUnnamed2334(o.items); | 6759 checkUnnamed2122(o.items); |
6199 } | 6760 } |
6200 buildCounterTags--; | 6761 buildCounterTags--; |
6201 } | 6762 } |
6202 | 6763 |
6203 core.int buildCounterTargetHttpProxy = 0; | 6764 core.int buildCounterTargetHttpProxy = 0; |
6204 buildTargetHttpProxy() { | 6765 buildTargetHttpProxy() { |
6205 var o = new api.TargetHttpProxy(); | 6766 var o = new api.TargetHttpProxy(); |
6206 buildCounterTargetHttpProxy++; | 6767 buildCounterTargetHttpProxy++; |
6207 if (buildCounterTargetHttpProxy < 3) { | 6768 if (buildCounterTargetHttpProxy < 3) { |
6208 o.creationTimestamp = "foo"; | 6769 o.creationTimestamp = "foo"; |
(...skipping 15 matching lines...) Expand all Loading... |
6224 unittest.expect(o.description, unittest.equals('foo')); | 6785 unittest.expect(o.description, unittest.equals('foo')); |
6225 unittest.expect(o.id, unittest.equals('foo')); | 6786 unittest.expect(o.id, unittest.equals('foo')); |
6226 unittest.expect(o.kind, unittest.equals('foo')); | 6787 unittest.expect(o.kind, unittest.equals('foo')); |
6227 unittest.expect(o.name, unittest.equals('foo')); | 6788 unittest.expect(o.name, unittest.equals('foo')); |
6228 unittest.expect(o.selfLink, unittest.equals('foo')); | 6789 unittest.expect(o.selfLink, unittest.equals('foo')); |
6229 unittest.expect(o.urlMap, unittest.equals('foo')); | 6790 unittest.expect(o.urlMap, unittest.equals('foo')); |
6230 } | 6791 } |
6231 buildCounterTargetHttpProxy--; | 6792 buildCounterTargetHttpProxy--; |
6232 } | 6793 } |
6233 | 6794 |
6234 buildUnnamed2335() { | 6795 buildUnnamed2123() { |
6235 var o = new core.List<api.TargetHttpProxy>(); | 6796 var o = new core.List<api.TargetHttpProxy>(); |
6236 o.add(buildTargetHttpProxy()); | 6797 o.add(buildTargetHttpProxy()); |
6237 o.add(buildTargetHttpProxy()); | 6798 o.add(buildTargetHttpProxy()); |
6238 return o; | 6799 return o; |
6239 } | 6800 } |
6240 | 6801 |
6241 checkUnnamed2335(core.List<api.TargetHttpProxy> o) { | 6802 checkUnnamed2123(core.List<api.TargetHttpProxy> o) { |
6242 unittest.expect(o, unittest.hasLength(2)); | 6803 unittest.expect(o, unittest.hasLength(2)); |
6243 checkTargetHttpProxy(o[0]); | 6804 checkTargetHttpProxy(o[0]); |
6244 checkTargetHttpProxy(o[1]); | 6805 checkTargetHttpProxy(o[1]); |
6245 } | 6806 } |
6246 | 6807 |
6247 core.int buildCounterTargetHttpProxyList = 0; | 6808 core.int buildCounterTargetHttpProxyList = 0; |
6248 buildTargetHttpProxyList() { | 6809 buildTargetHttpProxyList() { |
6249 var o = new api.TargetHttpProxyList(); | 6810 var o = new api.TargetHttpProxyList(); |
6250 buildCounterTargetHttpProxyList++; | 6811 buildCounterTargetHttpProxyList++; |
6251 if (buildCounterTargetHttpProxyList < 3) { | 6812 if (buildCounterTargetHttpProxyList < 3) { |
6252 o.id = "foo"; | 6813 o.id = "foo"; |
6253 o.items = buildUnnamed2335(); | 6814 o.items = buildUnnamed2123(); |
6254 o.kind = "foo"; | 6815 o.kind = "foo"; |
6255 o.nextPageToken = "foo"; | 6816 o.nextPageToken = "foo"; |
6256 o.selfLink = "foo"; | 6817 o.selfLink = "foo"; |
6257 } | 6818 } |
6258 buildCounterTargetHttpProxyList--; | 6819 buildCounterTargetHttpProxyList--; |
6259 return o; | 6820 return o; |
6260 } | 6821 } |
6261 | 6822 |
6262 checkTargetHttpProxyList(api.TargetHttpProxyList o) { | 6823 checkTargetHttpProxyList(api.TargetHttpProxyList o) { |
6263 buildCounterTargetHttpProxyList++; | 6824 buildCounterTargetHttpProxyList++; |
6264 if (buildCounterTargetHttpProxyList < 3) { | 6825 if (buildCounterTargetHttpProxyList < 3) { |
6265 unittest.expect(o.id, unittest.equals('foo')); | 6826 unittest.expect(o.id, unittest.equals('foo')); |
6266 checkUnnamed2335(o.items); | 6827 checkUnnamed2123(o.items); |
6267 unittest.expect(o.kind, unittest.equals('foo')); | 6828 unittest.expect(o.kind, unittest.equals('foo')); |
6268 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6829 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6269 unittest.expect(o.selfLink, unittest.equals('foo')); | 6830 unittest.expect(o.selfLink, unittest.equals('foo')); |
6270 } | 6831 } |
6271 buildCounterTargetHttpProxyList--; | 6832 buildCounterTargetHttpProxyList--; |
6272 } | 6833 } |
6273 | 6834 |
6274 buildUnnamed2336() { | 6835 buildUnnamed2124() { |
6275 var o = new core.List<core.String>(); | 6836 var o = new core.List<core.String>(); |
6276 o.add("foo"); | 6837 o.add("foo"); |
6277 o.add("foo"); | 6838 o.add("foo"); |
6278 return o; | 6839 return o; |
6279 } | 6840 } |
6280 | 6841 |
6281 checkUnnamed2336(core.List<core.String> o) { | 6842 checkUnnamed2124(core.List<core.String> o) { |
6282 unittest.expect(o, unittest.hasLength(2)); | 6843 unittest.expect(o, unittest.hasLength(2)); |
6283 unittest.expect(o[0], unittest.equals('foo')); | 6844 unittest.expect(o[0], unittest.equals('foo')); |
6284 unittest.expect(o[1], unittest.equals('foo')); | 6845 unittest.expect(o[1], unittest.equals('foo')); |
6285 } | 6846 } |
6286 | 6847 |
6287 core.int buildCounterTargetHttpsProxiesSetSslCertificatesRequest = 0; | 6848 core.int buildCounterTargetHttpsProxiesSetSslCertificatesRequest = 0; |
6288 buildTargetHttpsProxiesSetSslCertificatesRequest() { | 6849 buildTargetHttpsProxiesSetSslCertificatesRequest() { |
6289 var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); | 6850 var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); |
6290 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; | 6851 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; |
6291 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { | 6852 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { |
6292 o.sslCertificates = buildUnnamed2336(); | 6853 o.sslCertificates = buildUnnamed2124(); |
6293 } | 6854 } |
6294 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; | 6855 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; |
6295 return o; | 6856 return o; |
6296 } | 6857 } |
6297 | 6858 |
6298 checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCer
tificatesRequest o) { | 6859 checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCer
tificatesRequest o) { |
6299 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; | 6860 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; |
6300 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { | 6861 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { |
6301 checkUnnamed2336(o.sslCertificates); | 6862 checkUnnamed2124(o.sslCertificates); |
6302 } | 6863 } |
6303 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; | 6864 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; |
6304 } | 6865 } |
6305 | 6866 |
6306 buildUnnamed2337() { | 6867 buildUnnamed2125() { |
6307 var o = new core.List<core.String>(); | 6868 var o = new core.List<core.String>(); |
6308 o.add("foo"); | 6869 o.add("foo"); |
6309 o.add("foo"); | 6870 o.add("foo"); |
6310 return o; | 6871 return o; |
6311 } | 6872 } |
6312 | 6873 |
6313 checkUnnamed2337(core.List<core.String> o) { | 6874 checkUnnamed2125(core.List<core.String> o) { |
6314 unittest.expect(o, unittest.hasLength(2)); | 6875 unittest.expect(o, unittest.hasLength(2)); |
6315 unittest.expect(o[0], unittest.equals('foo')); | 6876 unittest.expect(o[0], unittest.equals('foo')); |
6316 unittest.expect(o[1], unittest.equals('foo')); | 6877 unittest.expect(o[1], unittest.equals('foo')); |
6317 } | 6878 } |
6318 | 6879 |
6319 core.int buildCounterTargetHttpsProxy = 0; | 6880 core.int buildCounterTargetHttpsProxy = 0; |
6320 buildTargetHttpsProxy() { | 6881 buildTargetHttpsProxy() { |
6321 var o = new api.TargetHttpsProxy(); | 6882 var o = new api.TargetHttpsProxy(); |
6322 buildCounterTargetHttpsProxy++; | 6883 buildCounterTargetHttpsProxy++; |
6323 if (buildCounterTargetHttpsProxy < 3) { | 6884 if (buildCounterTargetHttpsProxy < 3) { |
6324 o.creationTimestamp = "foo"; | 6885 o.creationTimestamp = "foo"; |
6325 o.description = "foo"; | 6886 o.description = "foo"; |
6326 o.id = "foo"; | 6887 o.id = "foo"; |
6327 o.kind = "foo"; | 6888 o.kind = "foo"; |
6328 o.name = "foo"; | 6889 o.name = "foo"; |
6329 o.selfLink = "foo"; | 6890 o.selfLink = "foo"; |
6330 o.sslCertificates = buildUnnamed2337(); | 6891 o.sslCertificates = buildUnnamed2125(); |
6331 o.urlMap = "foo"; | 6892 o.urlMap = "foo"; |
6332 } | 6893 } |
6333 buildCounterTargetHttpsProxy--; | 6894 buildCounterTargetHttpsProxy--; |
6334 return o; | 6895 return o; |
6335 } | 6896 } |
6336 | 6897 |
6337 checkTargetHttpsProxy(api.TargetHttpsProxy o) { | 6898 checkTargetHttpsProxy(api.TargetHttpsProxy o) { |
6338 buildCounterTargetHttpsProxy++; | 6899 buildCounterTargetHttpsProxy++; |
6339 if (buildCounterTargetHttpsProxy < 3) { | 6900 if (buildCounterTargetHttpsProxy < 3) { |
6340 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 6901 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
6341 unittest.expect(o.description, unittest.equals('foo')); | 6902 unittest.expect(o.description, unittest.equals('foo')); |
6342 unittest.expect(o.id, unittest.equals('foo')); | 6903 unittest.expect(o.id, unittest.equals('foo')); |
6343 unittest.expect(o.kind, unittest.equals('foo')); | 6904 unittest.expect(o.kind, unittest.equals('foo')); |
6344 unittest.expect(o.name, unittest.equals('foo')); | 6905 unittest.expect(o.name, unittest.equals('foo')); |
6345 unittest.expect(o.selfLink, unittest.equals('foo')); | 6906 unittest.expect(o.selfLink, unittest.equals('foo')); |
6346 checkUnnamed2337(o.sslCertificates); | 6907 checkUnnamed2125(o.sslCertificates); |
6347 unittest.expect(o.urlMap, unittest.equals('foo')); | 6908 unittest.expect(o.urlMap, unittest.equals('foo')); |
6348 } | 6909 } |
6349 buildCounterTargetHttpsProxy--; | 6910 buildCounterTargetHttpsProxy--; |
6350 } | 6911 } |
6351 | 6912 |
6352 buildUnnamed2338() { | 6913 buildUnnamed2126() { |
6353 var o = new core.List<api.TargetHttpsProxy>(); | 6914 var o = new core.List<api.TargetHttpsProxy>(); |
6354 o.add(buildTargetHttpsProxy()); | 6915 o.add(buildTargetHttpsProxy()); |
6355 o.add(buildTargetHttpsProxy()); | 6916 o.add(buildTargetHttpsProxy()); |
6356 return o; | 6917 return o; |
6357 } | 6918 } |
6358 | 6919 |
6359 checkUnnamed2338(core.List<api.TargetHttpsProxy> o) { | 6920 checkUnnamed2126(core.List<api.TargetHttpsProxy> o) { |
6360 unittest.expect(o, unittest.hasLength(2)); | 6921 unittest.expect(o, unittest.hasLength(2)); |
6361 checkTargetHttpsProxy(o[0]); | 6922 checkTargetHttpsProxy(o[0]); |
6362 checkTargetHttpsProxy(o[1]); | 6923 checkTargetHttpsProxy(o[1]); |
6363 } | 6924 } |
6364 | 6925 |
6365 core.int buildCounterTargetHttpsProxyList = 0; | 6926 core.int buildCounterTargetHttpsProxyList = 0; |
6366 buildTargetHttpsProxyList() { | 6927 buildTargetHttpsProxyList() { |
6367 var o = new api.TargetHttpsProxyList(); | 6928 var o = new api.TargetHttpsProxyList(); |
6368 buildCounterTargetHttpsProxyList++; | 6929 buildCounterTargetHttpsProxyList++; |
6369 if (buildCounterTargetHttpsProxyList < 3) { | 6930 if (buildCounterTargetHttpsProxyList < 3) { |
6370 o.id = "foo"; | 6931 o.id = "foo"; |
6371 o.items = buildUnnamed2338(); | 6932 o.items = buildUnnamed2126(); |
6372 o.kind = "foo"; | 6933 o.kind = "foo"; |
6373 o.nextPageToken = "foo"; | 6934 o.nextPageToken = "foo"; |
6374 o.selfLink = "foo"; | 6935 o.selfLink = "foo"; |
6375 } | 6936 } |
6376 buildCounterTargetHttpsProxyList--; | 6937 buildCounterTargetHttpsProxyList--; |
6377 return o; | 6938 return o; |
6378 } | 6939 } |
6379 | 6940 |
6380 checkTargetHttpsProxyList(api.TargetHttpsProxyList o) { | 6941 checkTargetHttpsProxyList(api.TargetHttpsProxyList o) { |
6381 buildCounterTargetHttpsProxyList++; | 6942 buildCounterTargetHttpsProxyList++; |
6382 if (buildCounterTargetHttpsProxyList < 3) { | 6943 if (buildCounterTargetHttpsProxyList < 3) { |
6383 unittest.expect(o.id, unittest.equals('foo')); | 6944 unittest.expect(o.id, unittest.equals('foo')); |
6384 checkUnnamed2338(o.items); | 6945 checkUnnamed2126(o.items); |
6385 unittest.expect(o.kind, unittest.equals('foo')); | 6946 unittest.expect(o.kind, unittest.equals('foo')); |
6386 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6947 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6387 unittest.expect(o.selfLink, unittest.equals('foo')); | 6948 unittest.expect(o.selfLink, unittest.equals('foo')); |
6388 } | 6949 } |
6389 buildCounterTargetHttpsProxyList--; | 6950 buildCounterTargetHttpsProxyList--; |
6390 } | 6951 } |
6391 | 6952 |
6392 core.int buildCounterTargetInstance = 0; | 6953 core.int buildCounterTargetInstance = 0; |
6393 buildTargetInstance() { | 6954 buildTargetInstance() { |
6394 var o = new api.TargetInstance(); | 6955 var o = new api.TargetInstance(); |
(...skipping 22 matching lines...) Expand all Loading... |
6417 unittest.expect(o.instance, unittest.equals('foo')); | 6978 unittest.expect(o.instance, unittest.equals('foo')); |
6418 unittest.expect(o.kind, unittest.equals('foo')); | 6979 unittest.expect(o.kind, unittest.equals('foo')); |
6419 unittest.expect(o.name, unittest.equals('foo')); | 6980 unittest.expect(o.name, unittest.equals('foo')); |
6420 unittest.expect(o.natPolicy, unittest.equals('foo')); | 6981 unittest.expect(o.natPolicy, unittest.equals('foo')); |
6421 unittest.expect(o.selfLink, unittest.equals('foo')); | 6982 unittest.expect(o.selfLink, unittest.equals('foo')); |
6422 unittest.expect(o.zone, unittest.equals('foo')); | 6983 unittest.expect(o.zone, unittest.equals('foo')); |
6423 } | 6984 } |
6424 buildCounterTargetInstance--; | 6985 buildCounterTargetInstance--; |
6425 } | 6986 } |
6426 | 6987 |
6427 buildUnnamed2339() { | 6988 buildUnnamed2127() { |
6428 var o = new core.Map<core.String, api.TargetInstancesScopedList>(); | 6989 var o = new core.Map<core.String, api.TargetInstancesScopedList>(); |
6429 o["x"] = buildTargetInstancesScopedList(); | 6990 o["x"] = buildTargetInstancesScopedList(); |
6430 o["y"] = buildTargetInstancesScopedList(); | 6991 o["y"] = buildTargetInstancesScopedList(); |
6431 return o; | 6992 return o; |
6432 } | 6993 } |
6433 | 6994 |
6434 checkUnnamed2339(core.Map<core.String, api.TargetInstancesScopedList> o) { | 6995 checkUnnamed2127(core.Map<core.String, api.TargetInstancesScopedList> o) { |
6435 unittest.expect(o, unittest.hasLength(2)); | 6996 unittest.expect(o, unittest.hasLength(2)); |
6436 checkTargetInstancesScopedList(o["x"]); | 6997 checkTargetInstancesScopedList(o["x"]); |
6437 checkTargetInstancesScopedList(o["y"]); | 6998 checkTargetInstancesScopedList(o["y"]); |
6438 } | 6999 } |
6439 | 7000 |
6440 core.int buildCounterTargetInstanceAggregatedList = 0; | 7001 core.int buildCounterTargetInstanceAggregatedList = 0; |
6441 buildTargetInstanceAggregatedList() { | 7002 buildTargetInstanceAggregatedList() { |
6442 var o = new api.TargetInstanceAggregatedList(); | 7003 var o = new api.TargetInstanceAggregatedList(); |
6443 buildCounterTargetInstanceAggregatedList++; | 7004 buildCounterTargetInstanceAggregatedList++; |
6444 if (buildCounterTargetInstanceAggregatedList < 3) { | 7005 if (buildCounterTargetInstanceAggregatedList < 3) { |
6445 o.id = "foo"; | 7006 o.id = "foo"; |
6446 o.items = buildUnnamed2339(); | 7007 o.items = buildUnnamed2127(); |
6447 o.kind = "foo"; | 7008 o.kind = "foo"; |
6448 o.nextPageToken = "foo"; | 7009 o.nextPageToken = "foo"; |
6449 o.selfLink = "foo"; | 7010 o.selfLink = "foo"; |
6450 } | 7011 } |
6451 buildCounterTargetInstanceAggregatedList--; | 7012 buildCounterTargetInstanceAggregatedList--; |
6452 return o; | 7013 return o; |
6453 } | 7014 } |
6454 | 7015 |
6455 checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { | 7016 checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { |
6456 buildCounterTargetInstanceAggregatedList++; | 7017 buildCounterTargetInstanceAggregatedList++; |
6457 if (buildCounterTargetInstanceAggregatedList < 3) { | 7018 if (buildCounterTargetInstanceAggregatedList < 3) { |
6458 unittest.expect(o.id, unittest.equals('foo')); | 7019 unittest.expect(o.id, unittest.equals('foo')); |
6459 checkUnnamed2339(o.items); | 7020 checkUnnamed2127(o.items); |
6460 unittest.expect(o.kind, unittest.equals('foo')); | 7021 unittest.expect(o.kind, unittest.equals('foo')); |
6461 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7022 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6462 unittest.expect(o.selfLink, unittest.equals('foo')); | 7023 unittest.expect(o.selfLink, unittest.equals('foo')); |
6463 } | 7024 } |
6464 buildCounterTargetInstanceAggregatedList--; | 7025 buildCounterTargetInstanceAggregatedList--; |
6465 } | 7026 } |
6466 | 7027 |
6467 buildUnnamed2340() { | 7028 buildUnnamed2128() { |
6468 var o = new core.List<api.TargetInstance>(); | 7029 var o = new core.List<api.TargetInstance>(); |
6469 o.add(buildTargetInstance()); | 7030 o.add(buildTargetInstance()); |
6470 o.add(buildTargetInstance()); | 7031 o.add(buildTargetInstance()); |
6471 return o; | 7032 return o; |
6472 } | 7033 } |
6473 | 7034 |
6474 checkUnnamed2340(core.List<api.TargetInstance> o) { | 7035 checkUnnamed2128(core.List<api.TargetInstance> o) { |
6475 unittest.expect(o, unittest.hasLength(2)); | 7036 unittest.expect(o, unittest.hasLength(2)); |
6476 checkTargetInstance(o[0]); | 7037 checkTargetInstance(o[0]); |
6477 checkTargetInstance(o[1]); | 7038 checkTargetInstance(o[1]); |
6478 } | 7039 } |
6479 | 7040 |
6480 core.int buildCounterTargetInstanceList = 0; | 7041 core.int buildCounterTargetInstanceList = 0; |
6481 buildTargetInstanceList() { | 7042 buildTargetInstanceList() { |
6482 var o = new api.TargetInstanceList(); | 7043 var o = new api.TargetInstanceList(); |
6483 buildCounterTargetInstanceList++; | 7044 buildCounterTargetInstanceList++; |
6484 if (buildCounterTargetInstanceList < 3) { | 7045 if (buildCounterTargetInstanceList < 3) { |
6485 o.id = "foo"; | 7046 o.id = "foo"; |
6486 o.items = buildUnnamed2340(); | 7047 o.items = buildUnnamed2128(); |
6487 o.kind = "foo"; | 7048 o.kind = "foo"; |
6488 o.nextPageToken = "foo"; | 7049 o.nextPageToken = "foo"; |
6489 o.selfLink = "foo"; | 7050 o.selfLink = "foo"; |
6490 } | 7051 } |
6491 buildCounterTargetInstanceList--; | 7052 buildCounterTargetInstanceList--; |
6492 return o; | 7053 return o; |
6493 } | 7054 } |
6494 | 7055 |
6495 checkTargetInstanceList(api.TargetInstanceList o) { | 7056 checkTargetInstanceList(api.TargetInstanceList o) { |
6496 buildCounterTargetInstanceList++; | 7057 buildCounterTargetInstanceList++; |
6497 if (buildCounterTargetInstanceList < 3) { | 7058 if (buildCounterTargetInstanceList < 3) { |
6498 unittest.expect(o.id, unittest.equals('foo')); | 7059 unittest.expect(o.id, unittest.equals('foo')); |
6499 checkUnnamed2340(o.items); | 7060 checkUnnamed2128(o.items); |
6500 unittest.expect(o.kind, unittest.equals('foo')); | 7061 unittest.expect(o.kind, unittest.equals('foo')); |
6501 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7062 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6502 unittest.expect(o.selfLink, unittest.equals('foo')); | 7063 unittest.expect(o.selfLink, unittest.equals('foo')); |
6503 } | 7064 } |
6504 buildCounterTargetInstanceList--; | 7065 buildCounterTargetInstanceList--; |
6505 } | 7066 } |
6506 | 7067 |
6507 buildUnnamed2341() { | 7068 buildUnnamed2129() { |
6508 var o = new core.List<api.TargetInstance>(); | 7069 var o = new core.List<api.TargetInstance>(); |
6509 o.add(buildTargetInstance()); | 7070 o.add(buildTargetInstance()); |
6510 o.add(buildTargetInstance()); | 7071 o.add(buildTargetInstance()); |
6511 return o; | 7072 return o; |
6512 } | 7073 } |
6513 | 7074 |
6514 checkUnnamed2341(core.List<api.TargetInstance> o) { | 7075 checkUnnamed2129(core.List<api.TargetInstance> o) { |
6515 unittest.expect(o, unittest.hasLength(2)); | 7076 unittest.expect(o, unittest.hasLength(2)); |
6516 checkTargetInstance(o[0]); | 7077 checkTargetInstance(o[0]); |
6517 checkTargetInstance(o[1]); | 7078 checkTargetInstance(o[1]); |
6518 } | 7079 } |
6519 | 7080 |
6520 core.int buildCounterTargetInstancesScopedListWarningData = 0; | 7081 core.int buildCounterTargetInstancesScopedListWarningData = 0; |
6521 buildTargetInstancesScopedListWarningData() { | 7082 buildTargetInstancesScopedListWarningData() { |
6522 var o = new api.TargetInstancesScopedListWarningData(); | 7083 var o = new api.TargetInstancesScopedListWarningData(); |
6523 buildCounterTargetInstancesScopedListWarningData++; | 7084 buildCounterTargetInstancesScopedListWarningData++; |
6524 if (buildCounterTargetInstancesScopedListWarningData < 3) { | 7085 if (buildCounterTargetInstancesScopedListWarningData < 3) { |
6525 o.key = "foo"; | 7086 o.key = "foo"; |
6526 o.value = "foo"; | 7087 o.value = "foo"; |
6527 } | 7088 } |
6528 buildCounterTargetInstancesScopedListWarningData--; | 7089 buildCounterTargetInstancesScopedListWarningData--; |
6529 return o; | 7090 return o; |
6530 } | 7091 } |
6531 | 7092 |
6532 checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningDa
ta o) { | 7093 checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningDa
ta o) { |
6533 buildCounterTargetInstancesScopedListWarningData++; | 7094 buildCounterTargetInstancesScopedListWarningData++; |
6534 if (buildCounterTargetInstancesScopedListWarningData < 3) { | 7095 if (buildCounterTargetInstancesScopedListWarningData < 3) { |
6535 unittest.expect(o.key, unittest.equals('foo')); | 7096 unittest.expect(o.key, unittest.equals('foo')); |
6536 unittest.expect(o.value, unittest.equals('foo')); | 7097 unittest.expect(o.value, unittest.equals('foo')); |
6537 } | 7098 } |
6538 buildCounterTargetInstancesScopedListWarningData--; | 7099 buildCounterTargetInstancesScopedListWarningData--; |
6539 } | 7100 } |
6540 | 7101 |
6541 buildUnnamed2342() { | 7102 buildUnnamed2130() { |
6542 var o = new core.List<api.TargetInstancesScopedListWarningData>(); | 7103 var o = new core.List<api.TargetInstancesScopedListWarningData>(); |
6543 o.add(buildTargetInstancesScopedListWarningData()); | 7104 o.add(buildTargetInstancesScopedListWarningData()); |
6544 o.add(buildTargetInstancesScopedListWarningData()); | 7105 o.add(buildTargetInstancesScopedListWarningData()); |
6545 return o; | 7106 return o; |
6546 } | 7107 } |
6547 | 7108 |
6548 checkUnnamed2342(core.List<api.TargetInstancesScopedListWarningData> o) { | 7109 checkUnnamed2130(core.List<api.TargetInstancesScopedListWarningData> o) { |
6549 unittest.expect(o, unittest.hasLength(2)); | 7110 unittest.expect(o, unittest.hasLength(2)); |
6550 checkTargetInstancesScopedListWarningData(o[0]); | 7111 checkTargetInstancesScopedListWarningData(o[0]); |
6551 checkTargetInstancesScopedListWarningData(o[1]); | 7112 checkTargetInstancesScopedListWarningData(o[1]); |
6552 } | 7113 } |
6553 | 7114 |
6554 core.int buildCounterTargetInstancesScopedListWarning = 0; | 7115 core.int buildCounterTargetInstancesScopedListWarning = 0; |
6555 buildTargetInstancesScopedListWarning() { | 7116 buildTargetInstancesScopedListWarning() { |
6556 var o = new api.TargetInstancesScopedListWarning(); | 7117 var o = new api.TargetInstancesScopedListWarning(); |
6557 buildCounterTargetInstancesScopedListWarning++; | 7118 buildCounterTargetInstancesScopedListWarning++; |
6558 if (buildCounterTargetInstancesScopedListWarning < 3) { | 7119 if (buildCounterTargetInstancesScopedListWarning < 3) { |
6559 o.code = "foo"; | 7120 o.code = "foo"; |
6560 o.data = buildUnnamed2342(); | 7121 o.data = buildUnnamed2130(); |
6561 o.message = "foo"; | 7122 o.message = "foo"; |
6562 } | 7123 } |
6563 buildCounterTargetInstancesScopedListWarning--; | 7124 buildCounterTargetInstancesScopedListWarning--; |
6564 return o; | 7125 return o; |
6565 } | 7126 } |
6566 | 7127 |
6567 checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) { | 7128 checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) { |
6568 buildCounterTargetInstancesScopedListWarning++; | 7129 buildCounterTargetInstancesScopedListWarning++; |
6569 if (buildCounterTargetInstancesScopedListWarning < 3) { | 7130 if (buildCounterTargetInstancesScopedListWarning < 3) { |
6570 unittest.expect(o.code, unittest.equals('foo')); | 7131 unittest.expect(o.code, unittest.equals('foo')); |
6571 checkUnnamed2342(o.data); | 7132 checkUnnamed2130(o.data); |
6572 unittest.expect(o.message, unittest.equals('foo')); | 7133 unittest.expect(o.message, unittest.equals('foo')); |
6573 } | 7134 } |
6574 buildCounterTargetInstancesScopedListWarning--; | 7135 buildCounterTargetInstancesScopedListWarning--; |
6575 } | 7136 } |
6576 | 7137 |
6577 core.int buildCounterTargetInstancesScopedList = 0; | 7138 core.int buildCounterTargetInstancesScopedList = 0; |
6578 buildTargetInstancesScopedList() { | 7139 buildTargetInstancesScopedList() { |
6579 var o = new api.TargetInstancesScopedList(); | 7140 var o = new api.TargetInstancesScopedList(); |
6580 buildCounterTargetInstancesScopedList++; | 7141 buildCounterTargetInstancesScopedList++; |
6581 if (buildCounterTargetInstancesScopedList < 3) { | 7142 if (buildCounterTargetInstancesScopedList < 3) { |
6582 o.targetInstances = buildUnnamed2341(); | 7143 o.targetInstances = buildUnnamed2129(); |
6583 o.warning = buildTargetInstancesScopedListWarning(); | 7144 o.warning = buildTargetInstancesScopedListWarning(); |
6584 } | 7145 } |
6585 buildCounterTargetInstancesScopedList--; | 7146 buildCounterTargetInstancesScopedList--; |
6586 return o; | 7147 return o; |
6587 } | 7148 } |
6588 | 7149 |
6589 checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { | 7150 checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { |
6590 buildCounterTargetInstancesScopedList++; | 7151 buildCounterTargetInstancesScopedList++; |
6591 if (buildCounterTargetInstancesScopedList < 3) { | 7152 if (buildCounterTargetInstancesScopedList < 3) { |
6592 checkUnnamed2341(o.targetInstances); | 7153 checkUnnamed2129(o.targetInstances); |
6593 checkTargetInstancesScopedListWarning(o.warning); | 7154 checkTargetInstancesScopedListWarning(o.warning); |
6594 } | 7155 } |
6595 buildCounterTargetInstancesScopedList--; | 7156 buildCounterTargetInstancesScopedList--; |
6596 } | 7157 } |
6597 | 7158 |
6598 buildUnnamed2343() { | 7159 buildUnnamed2131() { |
6599 var o = new core.List<core.String>(); | 7160 var o = new core.List<core.String>(); |
6600 o.add("foo"); | 7161 o.add("foo"); |
6601 o.add("foo"); | 7162 o.add("foo"); |
6602 return o; | 7163 return o; |
6603 } | 7164 } |
6604 | 7165 |
6605 checkUnnamed2343(core.List<core.String> o) { | 7166 checkUnnamed2131(core.List<core.String> o) { |
6606 unittest.expect(o, unittest.hasLength(2)); | 7167 unittest.expect(o, unittest.hasLength(2)); |
6607 unittest.expect(o[0], unittest.equals('foo')); | 7168 unittest.expect(o[0], unittest.equals('foo')); |
6608 unittest.expect(o[1], unittest.equals('foo')); | 7169 unittest.expect(o[1], unittest.equals('foo')); |
6609 } | 7170 } |
6610 | 7171 |
6611 buildUnnamed2344() { | 7172 buildUnnamed2132() { |
6612 var o = new core.List<core.String>(); | 7173 var o = new core.List<core.String>(); |
6613 o.add("foo"); | 7174 o.add("foo"); |
6614 o.add("foo"); | 7175 o.add("foo"); |
6615 return o; | 7176 return o; |
6616 } | 7177 } |
6617 | 7178 |
6618 checkUnnamed2344(core.List<core.String> o) { | 7179 checkUnnamed2132(core.List<core.String> o) { |
6619 unittest.expect(o, unittest.hasLength(2)); | 7180 unittest.expect(o, unittest.hasLength(2)); |
6620 unittest.expect(o[0], unittest.equals('foo')); | 7181 unittest.expect(o[0], unittest.equals('foo')); |
6621 unittest.expect(o[1], unittest.equals('foo')); | 7182 unittest.expect(o[1], unittest.equals('foo')); |
6622 } | 7183 } |
6623 | 7184 |
6624 core.int buildCounterTargetPool = 0; | 7185 core.int buildCounterTargetPool = 0; |
6625 buildTargetPool() { | 7186 buildTargetPool() { |
6626 var o = new api.TargetPool(); | 7187 var o = new api.TargetPool(); |
6627 buildCounterTargetPool++; | 7188 buildCounterTargetPool++; |
6628 if (buildCounterTargetPool < 3) { | 7189 if (buildCounterTargetPool < 3) { |
6629 o.backupPool = "foo"; | 7190 o.backupPool = "foo"; |
6630 o.creationTimestamp = "foo"; | 7191 o.creationTimestamp = "foo"; |
6631 o.description = "foo"; | 7192 o.description = "foo"; |
6632 o.failoverRatio = 42.0; | 7193 o.failoverRatio = 42.0; |
6633 o.healthChecks = buildUnnamed2343(); | 7194 o.healthChecks = buildUnnamed2131(); |
6634 o.id = "foo"; | 7195 o.id = "foo"; |
6635 o.instances = buildUnnamed2344(); | 7196 o.instances = buildUnnamed2132(); |
6636 o.kind = "foo"; | 7197 o.kind = "foo"; |
6637 o.name = "foo"; | 7198 o.name = "foo"; |
6638 o.region = "foo"; | 7199 o.region = "foo"; |
6639 o.selfLink = "foo"; | 7200 o.selfLink = "foo"; |
6640 o.sessionAffinity = "foo"; | 7201 o.sessionAffinity = "foo"; |
6641 } | 7202 } |
6642 buildCounterTargetPool--; | 7203 buildCounterTargetPool--; |
6643 return o; | 7204 return o; |
6644 } | 7205 } |
6645 | 7206 |
6646 checkTargetPool(api.TargetPool o) { | 7207 checkTargetPool(api.TargetPool o) { |
6647 buildCounterTargetPool++; | 7208 buildCounterTargetPool++; |
6648 if (buildCounterTargetPool < 3) { | 7209 if (buildCounterTargetPool < 3) { |
6649 unittest.expect(o.backupPool, unittest.equals('foo')); | 7210 unittest.expect(o.backupPool, unittest.equals('foo')); |
6650 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 7211 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
6651 unittest.expect(o.description, unittest.equals('foo')); | 7212 unittest.expect(o.description, unittest.equals('foo')); |
6652 unittest.expect(o.failoverRatio, unittest.equals(42.0)); | 7213 unittest.expect(o.failoverRatio, unittest.equals(42.0)); |
6653 checkUnnamed2343(o.healthChecks); | 7214 checkUnnamed2131(o.healthChecks); |
6654 unittest.expect(o.id, unittest.equals('foo')); | 7215 unittest.expect(o.id, unittest.equals('foo')); |
6655 checkUnnamed2344(o.instances); | 7216 checkUnnamed2132(o.instances); |
6656 unittest.expect(o.kind, unittest.equals('foo')); | 7217 unittest.expect(o.kind, unittest.equals('foo')); |
6657 unittest.expect(o.name, unittest.equals('foo')); | 7218 unittest.expect(o.name, unittest.equals('foo')); |
6658 unittest.expect(o.region, unittest.equals('foo')); | 7219 unittest.expect(o.region, unittest.equals('foo')); |
6659 unittest.expect(o.selfLink, unittest.equals('foo')); | 7220 unittest.expect(o.selfLink, unittest.equals('foo')); |
6660 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 7221 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
6661 } | 7222 } |
6662 buildCounterTargetPool--; | 7223 buildCounterTargetPool--; |
6663 } | 7224 } |
6664 | 7225 |
6665 buildUnnamed2345() { | 7226 buildUnnamed2133() { |
6666 var o = new core.Map<core.String, api.TargetPoolsScopedList>(); | 7227 var o = new core.Map<core.String, api.TargetPoolsScopedList>(); |
6667 o["x"] = buildTargetPoolsScopedList(); | 7228 o["x"] = buildTargetPoolsScopedList(); |
6668 o["y"] = buildTargetPoolsScopedList(); | 7229 o["y"] = buildTargetPoolsScopedList(); |
6669 return o; | 7230 return o; |
6670 } | 7231 } |
6671 | 7232 |
6672 checkUnnamed2345(core.Map<core.String, api.TargetPoolsScopedList> o) { | 7233 checkUnnamed2133(core.Map<core.String, api.TargetPoolsScopedList> o) { |
6673 unittest.expect(o, unittest.hasLength(2)); | 7234 unittest.expect(o, unittest.hasLength(2)); |
6674 checkTargetPoolsScopedList(o["x"]); | 7235 checkTargetPoolsScopedList(o["x"]); |
6675 checkTargetPoolsScopedList(o["y"]); | 7236 checkTargetPoolsScopedList(o["y"]); |
6676 } | 7237 } |
6677 | 7238 |
6678 core.int buildCounterTargetPoolAggregatedList = 0; | 7239 core.int buildCounterTargetPoolAggregatedList = 0; |
6679 buildTargetPoolAggregatedList() { | 7240 buildTargetPoolAggregatedList() { |
6680 var o = new api.TargetPoolAggregatedList(); | 7241 var o = new api.TargetPoolAggregatedList(); |
6681 buildCounterTargetPoolAggregatedList++; | 7242 buildCounterTargetPoolAggregatedList++; |
6682 if (buildCounterTargetPoolAggregatedList < 3) { | 7243 if (buildCounterTargetPoolAggregatedList < 3) { |
6683 o.id = "foo"; | 7244 o.id = "foo"; |
6684 o.items = buildUnnamed2345(); | 7245 o.items = buildUnnamed2133(); |
6685 o.kind = "foo"; | 7246 o.kind = "foo"; |
6686 o.nextPageToken = "foo"; | 7247 o.nextPageToken = "foo"; |
6687 o.selfLink = "foo"; | 7248 o.selfLink = "foo"; |
6688 } | 7249 } |
6689 buildCounterTargetPoolAggregatedList--; | 7250 buildCounterTargetPoolAggregatedList--; |
6690 return o; | 7251 return o; |
6691 } | 7252 } |
6692 | 7253 |
6693 checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { | 7254 checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { |
6694 buildCounterTargetPoolAggregatedList++; | 7255 buildCounterTargetPoolAggregatedList++; |
6695 if (buildCounterTargetPoolAggregatedList < 3) { | 7256 if (buildCounterTargetPoolAggregatedList < 3) { |
6696 unittest.expect(o.id, unittest.equals('foo')); | 7257 unittest.expect(o.id, unittest.equals('foo')); |
6697 checkUnnamed2345(o.items); | 7258 checkUnnamed2133(o.items); |
6698 unittest.expect(o.kind, unittest.equals('foo')); | 7259 unittest.expect(o.kind, unittest.equals('foo')); |
6699 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7260 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6700 unittest.expect(o.selfLink, unittest.equals('foo')); | 7261 unittest.expect(o.selfLink, unittest.equals('foo')); |
6701 } | 7262 } |
6702 buildCounterTargetPoolAggregatedList--; | 7263 buildCounterTargetPoolAggregatedList--; |
6703 } | 7264 } |
6704 | 7265 |
6705 buildUnnamed2346() { | 7266 buildUnnamed2134() { |
6706 var o = new core.List<api.HealthStatus>(); | 7267 var o = new core.List<api.HealthStatus>(); |
6707 o.add(buildHealthStatus()); | 7268 o.add(buildHealthStatus()); |
6708 o.add(buildHealthStatus()); | 7269 o.add(buildHealthStatus()); |
6709 return o; | 7270 return o; |
6710 } | 7271 } |
6711 | 7272 |
6712 checkUnnamed2346(core.List<api.HealthStatus> o) { | 7273 checkUnnamed2134(core.List<api.HealthStatus> o) { |
6713 unittest.expect(o, unittest.hasLength(2)); | 7274 unittest.expect(o, unittest.hasLength(2)); |
6714 checkHealthStatus(o[0]); | 7275 checkHealthStatus(o[0]); |
6715 checkHealthStatus(o[1]); | 7276 checkHealthStatus(o[1]); |
6716 } | 7277 } |
6717 | 7278 |
6718 core.int buildCounterTargetPoolInstanceHealth = 0; | 7279 core.int buildCounterTargetPoolInstanceHealth = 0; |
6719 buildTargetPoolInstanceHealth() { | 7280 buildTargetPoolInstanceHealth() { |
6720 var o = new api.TargetPoolInstanceHealth(); | 7281 var o = new api.TargetPoolInstanceHealth(); |
6721 buildCounterTargetPoolInstanceHealth++; | 7282 buildCounterTargetPoolInstanceHealth++; |
6722 if (buildCounterTargetPoolInstanceHealth < 3) { | 7283 if (buildCounterTargetPoolInstanceHealth < 3) { |
6723 o.healthStatus = buildUnnamed2346(); | 7284 o.healthStatus = buildUnnamed2134(); |
6724 o.kind = "foo"; | 7285 o.kind = "foo"; |
6725 } | 7286 } |
6726 buildCounterTargetPoolInstanceHealth--; | 7287 buildCounterTargetPoolInstanceHealth--; |
6727 return o; | 7288 return o; |
6728 } | 7289 } |
6729 | 7290 |
6730 checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { | 7291 checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { |
6731 buildCounterTargetPoolInstanceHealth++; | 7292 buildCounterTargetPoolInstanceHealth++; |
6732 if (buildCounterTargetPoolInstanceHealth < 3) { | 7293 if (buildCounterTargetPoolInstanceHealth < 3) { |
6733 checkUnnamed2346(o.healthStatus); | 7294 checkUnnamed2134(o.healthStatus); |
6734 unittest.expect(o.kind, unittest.equals('foo')); | 7295 unittest.expect(o.kind, unittest.equals('foo')); |
6735 } | 7296 } |
6736 buildCounterTargetPoolInstanceHealth--; | 7297 buildCounterTargetPoolInstanceHealth--; |
6737 } | 7298 } |
6738 | 7299 |
6739 buildUnnamed2347() { | 7300 buildUnnamed2135() { |
6740 var o = new core.List<api.TargetPool>(); | 7301 var o = new core.List<api.TargetPool>(); |
6741 o.add(buildTargetPool()); | 7302 o.add(buildTargetPool()); |
6742 o.add(buildTargetPool()); | 7303 o.add(buildTargetPool()); |
6743 return o; | 7304 return o; |
6744 } | 7305 } |
6745 | 7306 |
6746 checkUnnamed2347(core.List<api.TargetPool> o) { | 7307 checkUnnamed2135(core.List<api.TargetPool> o) { |
6747 unittest.expect(o, unittest.hasLength(2)); | 7308 unittest.expect(o, unittest.hasLength(2)); |
6748 checkTargetPool(o[0]); | 7309 checkTargetPool(o[0]); |
6749 checkTargetPool(o[1]); | 7310 checkTargetPool(o[1]); |
6750 } | 7311 } |
6751 | 7312 |
6752 core.int buildCounterTargetPoolList = 0; | 7313 core.int buildCounterTargetPoolList = 0; |
6753 buildTargetPoolList() { | 7314 buildTargetPoolList() { |
6754 var o = new api.TargetPoolList(); | 7315 var o = new api.TargetPoolList(); |
6755 buildCounterTargetPoolList++; | 7316 buildCounterTargetPoolList++; |
6756 if (buildCounterTargetPoolList < 3) { | 7317 if (buildCounterTargetPoolList < 3) { |
6757 o.id = "foo"; | 7318 o.id = "foo"; |
6758 o.items = buildUnnamed2347(); | 7319 o.items = buildUnnamed2135(); |
6759 o.kind = "foo"; | 7320 o.kind = "foo"; |
6760 o.nextPageToken = "foo"; | 7321 o.nextPageToken = "foo"; |
6761 o.selfLink = "foo"; | 7322 o.selfLink = "foo"; |
6762 } | 7323 } |
6763 buildCounterTargetPoolList--; | 7324 buildCounterTargetPoolList--; |
6764 return o; | 7325 return o; |
6765 } | 7326 } |
6766 | 7327 |
6767 checkTargetPoolList(api.TargetPoolList o) { | 7328 checkTargetPoolList(api.TargetPoolList o) { |
6768 buildCounterTargetPoolList++; | 7329 buildCounterTargetPoolList++; |
6769 if (buildCounterTargetPoolList < 3) { | 7330 if (buildCounterTargetPoolList < 3) { |
6770 unittest.expect(o.id, unittest.equals('foo')); | 7331 unittest.expect(o.id, unittest.equals('foo')); |
6771 checkUnnamed2347(o.items); | 7332 checkUnnamed2135(o.items); |
6772 unittest.expect(o.kind, unittest.equals('foo')); | 7333 unittest.expect(o.kind, unittest.equals('foo')); |
6773 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7334 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
6774 unittest.expect(o.selfLink, unittest.equals('foo')); | 7335 unittest.expect(o.selfLink, unittest.equals('foo')); |
6775 } | 7336 } |
6776 buildCounterTargetPoolList--; | 7337 buildCounterTargetPoolList--; |
6777 } | 7338 } |
6778 | 7339 |
6779 buildUnnamed2348() { | 7340 buildUnnamed2136() { |
6780 var o = new core.List<api.HealthCheckReference>(); | 7341 var o = new core.List<api.HealthCheckReference>(); |
6781 o.add(buildHealthCheckReference()); | 7342 o.add(buildHealthCheckReference()); |
6782 o.add(buildHealthCheckReference()); | 7343 o.add(buildHealthCheckReference()); |
6783 return o; | 7344 return o; |
6784 } | 7345 } |
6785 | 7346 |
6786 checkUnnamed2348(core.List<api.HealthCheckReference> o) { | 7347 checkUnnamed2136(core.List<api.HealthCheckReference> o) { |
6787 unittest.expect(o, unittest.hasLength(2)); | 7348 unittest.expect(o, unittest.hasLength(2)); |
6788 checkHealthCheckReference(o[0]); | 7349 checkHealthCheckReference(o[0]); |
6789 checkHealthCheckReference(o[1]); | 7350 checkHealthCheckReference(o[1]); |
6790 } | 7351 } |
6791 | 7352 |
6792 core.int buildCounterTargetPoolsAddHealthCheckRequest = 0; | 7353 core.int buildCounterTargetPoolsAddHealthCheckRequest = 0; |
6793 buildTargetPoolsAddHealthCheckRequest() { | 7354 buildTargetPoolsAddHealthCheckRequest() { |
6794 var o = new api.TargetPoolsAddHealthCheckRequest(); | 7355 var o = new api.TargetPoolsAddHealthCheckRequest(); |
6795 buildCounterTargetPoolsAddHealthCheckRequest++; | 7356 buildCounterTargetPoolsAddHealthCheckRequest++; |
6796 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { | 7357 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { |
6797 o.healthChecks = buildUnnamed2348(); | 7358 o.healthChecks = buildUnnamed2136(); |
6798 } | 7359 } |
6799 buildCounterTargetPoolsAddHealthCheckRequest--; | 7360 buildCounterTargetPoolsAddHealthCheckRequest--; |
6800 return o; | 7361 return o; |
6801 } | 7362 } |
6802 | 7363 |
6803 checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { | 7364 checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { |
6804 buildCounterTargetPoolsAddHealthCheckRequest++; | 7365 buildCounterTargetPoolsAddHealthCheckRequest++; |
6805 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { | 7366 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { |
6806 checkUnnamed2348(o.healthChecks); | 7367 checkUnnamed2136(o.healthChecks); |
6807 } | 7368 } |
6808 buildCounterTargetPoolsAddHealthCheckRequest--; | 7369 buildCounterTargetPoolsAddHealthCheckRequest--; |
6809 } | 7370 } |
6810 | 7371 |
6811 buildUnnamed2349() { | 7372 buildUnnamed2137() { |
6812 var o = new core.List<api.InstanceReference>(); | 7373 var o = new core.List<api.InstanceReference>(); |
6813 o.add(buildInstanceReference()); | 7374 o.add(buildInstanceReference()); |
6814 o.add(buildInstanceReference()); | 7375 o.add(buildInstanceReference()); |
6815 return o; | 7376 return o; |
6816 } | 7377 } |
6817 | 7378 |
6818 checkUnnamed2349(core.List<api.InstanceReference> o) { | 7379 checkUnnamed2137(core.List<api.InstanceReference> o) { |
6819 unittest.expect(o, unittest.hasLength(2)); | 7380 unittest.expect(o, unittest.hasLength(2)); |
6820 checkInstanceReference(o[0]); | 7381 checkInstanceReference(o[0]); |
6821 checkInstanceReference(o[1]); | 7382 checkInstanceReference(o[1]); |
6822 } | 7383 } |
6823 | 7384 |
6824 core.int buildCounterTargetPoolsAddInstanceRequest = 0; | 7385 core.int buildCounterTargetPoolsAddInstanceRequest = 0; |
6825 buildTargetPoolsAddInstanceRequest() { | 7386 buildTargetPoolsAddInstanceRequest() { |
6826 var o = new api.TargetPoolsAddInstanceRequest(); | 7387 var o = new api.TargetPoolsAddInstanceRequest(); |
6827 buildCounterTargetPoolsAddInstanceRequest++; | 7388 buildCounterTargetPoolsAddInstanceRequest++; |
6828 if (buildCounterTargetPoolsAddInstanceRequest < 3) { | 7389 if (buildCounterTargetPoolsAddInstanceRequest < 3) { |
6829 o.instances = buildUnnamed2349(); | 7390 o.instances = buildUnnamed2137(); |
6830 } | 7391 } |
6831 buildCounterTargetPoolsAddInstanceRequest--; | 7392 buildCounterTargetPoolsAddInstanceRequest--; |
6832 return o; | 7393 return o; |
6833 } | 7394 } |
6834 | 7395 |
6835 checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { | 7396 checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { |
6836 buildCounterTargetPoolsAddInstanceRequest++; | 7397 buildCounterTargetPoolsAddInstanceRequest++; |
6837 if (buildCounterTargetPoolsAddInstanceRequest < 3) { | 7398 if (buildCounterTargetPoolsAddInstanceRequest < 3) { |
6838 checkUnnamed2349(o.instances); | 7399 checkUnnamed2137(o.instances); |
6839 } | 7400 } |
6840 buildCounterTargetPoolsAddInstanceRequest--; | 7401 buildCounterTargetPoolsAddInstanceRequest--; |
6841 } | 7402 } |
6842 | 7403 |
6843 buildUnnamed2350() { | 7404 buildUnnamed2138() { |
6844 var o = new core.List<api.HealthCheckReference>(); | 7405 var o = new core.List<api.HealthCheckReference>(); |
6845 o.add(buildHealthCheckReference()); | 7406 o.add(buildHealthCheckReference()); |
6846 o.add(buildHealthCheckReference()); | 7407 o.add(buildHealthCheckReference()); |
6847 return o; | 7408 return o; |
6848 } | 7409 } |
6849 | 7410 |
6850 checkUnnamed2350(core.List<api.HealthCheckReference> o) { | 7411 checkUnnamed2138(core.List<api.HealthCheckReference> o) { |
6851 unittest.expect(o, unittest.hasLength(2)); | 7412 unittest.expect(o, unittest.hasLength(2)); |
6852 checkHealthCheckReference(o[0]); | 7413 checkHealthCheckReference(o[0]); |
6853 checkHealthCheckReference(o[1]); | 7414 checkHealthCheckReference(o[1]); |
6854 } | 7415 } |
6855 | 7416 |
6856 core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0; | 7417 core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0; |
6857 buildTargetPoolsRemoveHealthCheckRequest() { | 7418 buildTargetPoolsRemoveHealthCheckRequest() { |
6858 var o = new api.TargetPoolsRemoveHealthCheckRequest(); | 7419 var o = new api.TargetPoolsRemoveHealthCheckRequest(); |
6859 buildCounterTargetPoolsRemoveHealthCheckRequest++; | 7420 buildCounterTargetPoolsRemoveHealthCheckRequest++; |
6860 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { | 7421 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { |
6861 o.healthChecks = buildUnnamed2350(); | 7422 o.healthChecks = buildUnnamed2138(); |
6862 } | 7423 } |
6863 buildCounterTargetPoolsRemoveHealthCheckRequest--; | 7424 buildCounterTargetPoolsRemoveHealthCheckRequest--; |
6864 return o; | 7425 return o; |
6865 } | 7426 } |
6866 | 7427 |
6867 checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest
o) { | 7428 checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest
o) { |
6868 buildCounterTargetPoolsRemoveHealthCheckRequest++; | 7429 buildCounterTargetPoolsRemoveHealthCheckRequest++; |
6869 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { | 7430 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { |
6870 checkUnnamed2350(o.healthChecks); | 7431 checkUnnamed2138(o.healthChecks); |
6871 } | 7432 } |
6872 buildCounterTargetPoolsRemoveHealthCheckRequest--; | 7433 buildCounterTargetPoolsRemoveHealthCheckRequest--; |
6873 } | 7434 } |
6874 | 7435 |
6875 buildUnnamed2351() { | 7436 buildUnnamed2139() { |
6876 var o = new core.List<api.InstanceReference>(); | 7437 var o = new core.List<api.InstanceReference>(); |
6877 o.add(buildInstanceReference()); | 7438 o.add(buildInstanceReference()); |
6878 o.add(buildInstanceReference()); | 7439 o.add(buildInstanceReference()); |
6879 return o; | 7440 return o; |
6880 } | 7441 } |
6881 | 7442 |
6882 checkUnnamed2351(core.List<api.InstanceReference> o) { | 7443 checkUnnamed2139(core.List<api.InstanceReference> o) { |
6883 unittest.expect(o, unittest.hasLength(2)); | 7444 unittest.expect(o, unittest.hasLength(2)); |
6884 checkInstanceReference(o[0]); | 7445 checkInstanceReference(o[0]); |
6885 checkInstanceReference(o[1]); | 7446 checkInstanceReference(o[1]); |
6886 } | 7447 } |
6887 | 7448 |
6888 core.int buildCounterTargetPoolsRemoveInstanceRequest = 0; | 7449 core.int buildCounterTargetPoolsRemoveInstanceRequest = 0; |
6889 buildTargetPoolsRemoveInstanceRequest() { | 7450 buildTargetPoolsRemoveInstanceRequest() { |
6890 var o = new api.TargetPoolsRemoveInstanceRequest(); | 7451 var o = new api.TargetPoolsRemoveInstanceRequest(); |
6891 buildCounterTargetPoolsRemoveInstanceRequest++; | 7452 buildCounterTargetPoolsRemoveInstanceRequest++; |
6892 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { | 7453 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { |
6893 o.instances = buildUnnamed2351(); | 7454 o.instances = buildUnnamed2139(); |
6894 } | 7455 } |
6895 buildCounterTargetPoolsRemoveInstanceRequest--; | 7456 buildCounterTargetPoolsRemoveInstanceRequest--; |
6896 return o; | 7457 return o; |
6897 } | 7458 } |
6898 | 7459 |
6899 checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { | 7460 checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { |
6900 buildCounterTargetPoolsRemoveInstanceRequest++; | 7461 buildCounterTargetPoolsRemoveInstanceRequest++; |
6901 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { | 7462 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { |
6902 checkUnnamed2351(o.instances); | 7463 checkUnnamed2139(o.instances); |
6903 } | 7464 } |
6904 buildCounterTargetPoolsRemoveInstanceRequest--; | 7465 buildCounterTargetPoolsRemoveInstanceRequest--; |
6905 } | 7466 } |
6906 | 7467 |
6907 buildUnnamed2352() { | 7468 buildUnnamed2140() { |
6908 var o = new core.List<api.TargetPool>(); | 7469 var o = new core.List<api.TargetPool>(); |
6909 o.add(buildTargetPool()); | 7470 o.add(buildTargetPool()); |
6910 o.add(buildTargetPool()); | 7471 o.add(buildTargetPool()); |
6911 return o; | 7472 return o; |
6912 } | 7473 } |
6913 | 7474 |
6914 checkUnnamed2352(core.List<api.TargetPool> o) { | 7475 checkUnnamed2140(core.List<api.TargetPool> o) { |
6915 unittest.expect(o, unittest.hasLength(2)); | 7476 unittest.expect(o, unittest.hasLength(2)); |
6916 checkTargetPool(o[0]); | 7477 checkTargetPool(o[0]); |
6917 checkTargetPool(o[1]); | 7478 checkTargetPool(o[1]); |
6918 } | 7479 } |
6919 | 7480 |
6920 core.int buildCounterTargetPoolsScopedListWarningData = 0; | 7481 core.int buildCounterTargetPoolsScopedListWarningData = 0; |
6921 buildTargetPoolsScopedListWarningData() { | 7482 buildTargetPoolsScopedListWarningData() { |
6922 var o = new api.TargetPoolsScopedListWarningData(); | 7483 var o = new api.TargetPoolsScopedListWarningData(); |
6923 buildCounterTargetPoolsScopedListWarningData++; | 7484 buildCounterTargetPoolsScopedListWarningData++; |
6924 if (buildCounterTargetPoolsScopedListWarningData < 3) { | 7485 if (buildCounterTargetPoolsScopedListWarningData < 3) { |
6925 o.key = "foo"; | 7486 o.key = "foo"; |
6926 o.value = "foo"; | 7487 o.value = "foo"; |
6927 } | 7488 } |
6928 buildCounterTargetPoolsScopedListWarningData--; | 7489 buildCounterTargetPoolsScopedListWarningData--; |
6929 return o; | 7490 return o; |
6930 } | 7491 } |
6931 | 7492 |
6932 checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) { | 7493 checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) { |
6933 buildCounterTargetPoolsScopedListWarningData++; | 7494 buildCounterTargetPoolsScopedListWarningData++; |
6934 if (buildCounterTargetPoolsScopedListWarningData < 3) { | 7495 if (buildCounterTargetPoolsScopedListWarningData < 3) { |
6935 unittest.expect(o.key, unittest.equals('foo')); | 7496 unittest.expect(o.key, unittest.equals('foo')); |
6936 unittest.expect(o.value, unittest.equals('foo')); | 7497 unittest.expect(o.value, unittest.equals('foo')); |
6937 } | 7498 } |
6938 buildCounterTargetPoolsScopedListWarningData--; | 7499 buildCounterTargetPoolsScopedListWarningData--; |
6939 } | 7500 } |
6940 | 7501 |
6941 buildUnnamed2353() { | 7502 buildUnnamed2141() { |
6942 var o = new core.List<api.TargetPoolsScopedListWarningData>(); | 7503 var o = new core.List<api.TargetPoolsScopedListWarningData>(); |
6943 o.add(buildTargetPoolsScopedListWarningData()); | 7504 o.add(buildTargetPoolsScopedListWarningData()); |
6944 o.add(buildTargetPoolsScopedListWarningData()); | 7505 o.add(buildTargetPoolsScopedListWarningData()); |
6945 return o; | 7506 return o; |
6946 } | 7507 } |
6947 | 7508 |
6948 checkUnnamed2353(core.List<api.TargetPoolsScopedListWarningData> o) { | 7509 checkUnnamed2141(core.List<api.TargetPoolsScopedListWarningData> o) { |
6949 unittest.expect(o, unittest.hasLength(2)); | 7510 unittest.expect(o, unittest.hasLength(2)); |
6950 checkTargetPoolsScopedListWarningData(o[0]); | 7511 checkTargetPoolsScopedListWarningData(o[0]); |
6951 checkTargetPoolsScopedListWarningData(o[1]); | 7512 checkTargetPoolsScopedListWarningData(o[1]); |
6952 } | 7513 } |
6953 | 7514 |
6954 core.int buildCounterTargetPoolsScopedListWarning = 0; | 7515 core.int buildCounterTargetPoolsScopedListWarning = 0; |
6955 buildTargetPoolsScopedListWarning() { | 7516 buildTargetPoolsScopedListWarning() { |
6956 var o = new api.TargetPoolsScopedListWarning(); | 7517 var o = new api.TargetPoolsScopedListWarning(); |
6957 buildCounterTargetPoolsScopedListWarning++; | 7518 buildCounterTargetPoolsScopedListWarning++; |
6958 if (buildCounterTargetPoolsScopedListWarning < 3) { | 7519 if (buildCounterTargetPoolsScopedListWarning < 3) { |
6959 o.code = "foo"; | 7520 o.code = "foo"; |
6960 o.data = buildUnnamed2353(); | 7521 o.data = buildUnnamed2141(); |
6961 o.message = "foo"; | 7522 o.message = "foo"; |
6962 } | 7523 } |
6963 buildCounterTargetPoolsScopedListWarning--; | 7524 buildCounterTargetPoolsScopedListWarning--; |
6964 return o; | 7525 return o; |
6965 } | 7526 } |
6966 | 7527 |
6967 checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { | 7528 checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { |
6968 buildCounterTargetPoolsScopedListWarning++; | 7529 buildCounterTargetPoolsScopedListWarning++; |
6969 if (buildCounterTargetPoolsScopedListWarning < 3) { | 7530 if (buildCounterTargetPoolsScopedListWarning < 3) { |
6970 unittest.expect(o.code, unittest.equals('foo')); | 7531 unittest.expect(o.code, unittest.equals('foo')); |
6971 checkUnnamed2353(o.data); | 7532 checkUnnamed2141(o.data); |
6972 unittest.expect(o.message, unittest.equals('foo')); | 7533 unittest.expect(o.message, unittest.equals('foo')); |
6973 } | 7534 } |
6974 buildCounterTargetPoolsScopedListWarning--; | 7535 buildCounterTargetPoolsScopedListWarning--; |
6975 } | 7536 } |
6976 | 7537 |
6977 core.int buildCounterTargetPoolsScopedList = 0; | 7538 core.int buildCounterTargetPoolsScopedList = 0; |
6978 buildTargetPoolsScopedList() { | 7539 buildTargetPoolsScopedList() { |
6979 var o = new api.TargetPoolsScopedList(); | 7540 var o = new api.TargetPoolsScopedList(); |
6980 buildCounterTargetPoolsScopedList++; | 7541 buildCounterTargetPoolsScopedList++; |
6981 if (buildCounterTargetPoolsScopedList < 3) { | 7542 if (buildCounterTargetPoolsScopedList < 3) { |
6982 o.targetPools = buildUnnamed2352(); | 7543 o.targetPools = buildUnnamed2140(); |
6983 o.warning = buildTargetPoolsScopedListWarning(); | 7544 o.warning = buildTargetPoolsScopedListWarning(); |
6984 } | 7545 } |
6985 buildCounterTargetPoolsScopedList--; | 7546 buildCounterTargetPoolsScopedList--; |
6986 return o; | 7547 return o; |
6987 } | 7548 } |
6988 | 7549 |
6989 checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { | 7550 checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { |
6990 buildCounterTargetPoolsScopedList++; | 7551 buildCounterTargetPoolsScopedList++; |
6991 if (buildCounterTargetPoolsScopedList < 3) { | 7552 if (buildCounterTargetPoolsScopedList < 3) { |
6992 checkUnnamed2352(o.targetPools); | 7553 checkUnnamed2140(o.targetPools); |
6993 checkTargetPoolsScopedListWarning(o.warning); | 7554 checkTargetPoolsScopedListWarning(o.warning); |
6994 } | 7555 } |
6995 buildCounterTargetPoolsScopedList--; | 7556 buildCounterTargetPoolsScopedList--; |
6996 } | 7557 } |
6997 | 7558 |
6998 core.int buildCounterTargetReference = 0; | 7559 core.int buildCounterTargetReference = 0; |
6999 buildTargetReference() { | 7560 buildTargetReference() { |
7000 var o = new api.TargetReference(); | 7561 var o = new api.TargetReference(); |
7001 buildCounterTargetReference++; | 7562 buildCounterTargetReference++; |
7002 if (buildCounterTargetReference < 3) { | 7563 if (buildCounterTargetReference < 3) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7045 } | 7606 } |
7046 | 7607 |
7047 checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderReq
uest o) { | 7608 checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderReq
uest o) { |
7048 buildCounterTargetSslProxiesSetProxyHeaderRequest++; | 7609 buildCounterTargetSslProxiesSetProxyHeaderRequest++; |
7049 if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { | 7610 if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { |
7050 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 7611 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
7051 } | 7612 } |
7052 buildCounterTargetSslProxiesSetProxyHeaderRequest--; | 7613 buildCounterTargetSslProxiesSetProxyHeaderRequest--; |
7053 } | 7614 } |
7054 | 7615 |
7055 buildUnnamed2354() { | 7616 buildUnnamed2142() { |
7056 var o = new core.List<core.String>(); | 7617 var o = new core.List<core.String>(); |
7057 o.add("foo"); | 7618 o.add("foo"); |
7058 o.add("foo"); | 7619 o.add("foo"); |
7059 return o; | 7620 return o; |
7060 } | 7621 } |
7061 | 7622 |
7062 checkUnnamed2354(core.List<core.String> o) { | 7623 checkUnnamed2142(core.List<core.String> o) { |
7063 unittest.expect(o, unittest.hasLength(2)); | 7624 unittest.expect(o, unittest.hasLength(2)); |
7064 unittest.expect(o[0], unittest.equals('foo')); | 7625 unittest.expect(o[0], unittest.equals('foo')); |
7065 unittest.expect(o[1], unittest.equals('foo')); | 7626 unittest.expect(o[1], unittest.equals('foo')); |
7066 } | 7627 } |
7067 | 7628 |
7068 core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0; | 7629 core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0; |
7069 buildTargetSslProxiesSetSslCertificatesRequest() { | 7630 buildTargetSslProxiesSetSslCertificatesRequest() { |
7070 var o = new api.TargetSslProxiesSetSslCertificatesRequest(); | 7631 var o = new api.TargetSslProxiesSetSslCertificatesRequest(); |
7071 buildCounterTargetSslProxiesSetSslCertificatesRequest++; | 7632 buildCounterTargetSslProxiesSetSslCertificatesRequest++; |
7072 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { | 7633 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { |
7073 o.sslCertificates = buildUnnamed2354(); | 7634 o.sslCertificates = buildUnnamed2142(); |
7074 } | 7635 } |
7075 buildCounterTargetSslProxiesSetSslCertificatesRequest--; | 7636 buildCounterTargetSslProxiesSetSslCertificatesRequest--; |
7076 return o; | 7637 return o; |
7077 } | 7638 } |
7078 | 7639 |
7079 checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertifi
catesRequest o) { | 7640 checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertifi
catesRequest o) { |
7080 buildCounterTargetSslProxiesSetSslCertificatesRequest++; | 7641 buildCounterTargetSslProxiesSetSslCertificatesRequest++; |
7081 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { | 7642 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { |
7082 checkUnnamed2354(o.sslCertificates); | 7643 checkUnnamed2142(o.sslCertificates); |
7083 } | 7644 } |
7084 buildCounterTargetSslProxiesSetSslCertificatesRequest--; | 7645 buildCounterTargetSslProxiesSetSslCertificatesRequest--; |
7085 } | 7646 } |
7086 | 7647 |
7087 buildUnnamed2355() { | 7648 buildUnnamed2143() { |
7088 var o = new core.List<core.String>(); | 7649 var o = new core.List<core.String>(); |
7089 o.add("foo"); | 7650 o.add("foo"); |
7090 o.add("foo"); | 7651 o.add("foo"); |
7091 return o; | 7652 return o; |
7092 } | 7653 } |
7093 | 7654 |
7094 checkUnnamed2355(core.List<core.String> o) { | 7655 checkUnnamed2143(core.List<core.String> o) { |
7095 unittest.expect(o, unittest.hasLength(2)); | 7656 unittest.expect(o, unittest.hasLength(2)); |
7096 unittest.expect(o[0], unittest.equals('foo')); | 7657 unittest.expect(o[0], unittest.equals('foo')); |
7097 unittest.expect(o[1], unittest.equals('foo')); | 7658 unittest.expect(o[1], unittest.equals('foo')); |
7098 } | 7659 } |
7099 | 7660 |
7100 core.int buildCounterTargetSslProxy = 0; | 7661 core.int buildCounterTargetSslProxy = 0; |
7101 buildTargetSslProxy() { | 7662 buildTargetSslProxy() { |
7102 var o = new api.TargetSslProxy(); | 7663 var o = new api.TargetSslProxy(); |
7103 buildCounterTargetSslProxy++; | 7664 buildCounterTargetSslProxy++; |
7104 if (buildCounterTargetSslProxy < 3) { | 7665 if (buildCounterTargetSslProxy < 3) { |
7105 o.creationTimestamp = "foo"; | 7666 o.creationTimestamp = "foo"; |
7106 o.description = "foo"; | 7667 o.description = "foo"; |
7107 o.id = "foo"; | 7668 o.id = "foo"; |
7108 o.kind = "foo"; | 7669 o.kind = "foo"; |
7109 o.name = "foo"; | 7670 o.name = "foo"; |
7110 o.proxyHeader = "foo"; | 7671 o.proxyHeader = "foo"; |
7111 o.selfLink = "foo"; | 7672 o.selfLink = "foo"; |
7112 o.service = "foo"; | 7673 o.service = "foo"; |
7113 o.sslCertificates = buildUnnamed2355(); | 7674 o.sslCertificates = buildUnnamed2143(); |
7114 } | 7675 } |
7115 buildCounterTargetSslProxy--; | 7676 buildCounterTargetSslProxy--; |
7116 return o; | 7677 return o; |
7117 } | 7678 } |
7118 | 7679 |
7119 checkTargetSslProxy(api.TargetSslProxy o) { | 7680 checkTargetSslProxy(api.TargetSslProxy o) { |
7120 buildCounterTargetSslProxy++; | 7681 buildCounterTargetSslProxy++; |
7121 if (buildCounterTargetSslProxy < 3) { | 7682 if (buildCounterTargetSslProxy < 3) { |
7122 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 7683 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
7123 unittest.expect(o.description, unittest.equals('foo')); | 7684 unittest.expect(o.description, unittest.equals('foo')); |
7124 unittest.expect(o.id, unittest.equals('foo')); | 7685 unittest.expect(o.id, unittest.equals('foo')); |
7125 unittest.expect(o.kind, unittest.equals('foo')); | 7686 unittest.expect(o.kind, unittest.equals('foo')); |
7126 unittest.expect(o.name, unittest.equals('foo')); | 7687 unittest.expect(o.name, unittest.equals('foo')); |
7127 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 7688 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
7128 unittest.expect(o.selfLink, unittest.equals('foo')); | 7689 unittest.expect(o.selfLink, unittest.equals('foo')); |
7129 unittest.expect(o.service, unittest.equals('foo')); | 7690 unittest.expect(o.service, unittest.equals('foo')); |
7130 checkUnnamed2355(o.sslCertificates); | 7691 checkUnnamed2143(o.sslCertificates); |
7131 } | 7692 } |
7132 buildCounterTargetSslProxy--; | 7693 buildCounterTargetSslProxy--; |
7133 } | 7694 } |
7134 | 7695 |
7135 buildUnnamed2356() { | 7696 buildUnnamed2144() { |
7136 var o = new core.List<api.TargetSslProxy>(); | 7697 var o = new core.List<api.TargetSslProxy>(); |
7137 o.add(buildTargetSslProxy()); | 7698 o.add(buildTargetSslProxy()); |
7138 o.add(buildTargetSslProxy()); | 7699 o.add(buildTargetSslProxy()); |
7139 return o; | 7700 return o; |
7140 } | 7701 } |
7141 | 7702 |
7142 checkUnnamed2356(core.List<api.TargetSslProxy> o) { | 7703 checkUnnamed2144(core.List<api.TargetSslProxy> o) { |
7143 unittest.expect(o, unittest.hasLength(2)); | 7704 unittest.expect(o, unittest.hasLength(2)); |
7144 checkTargetSslProxy(o[0]); | 7705 checkTargetSslProxy(o[0]); |
7145 checkTargetSslProxy(o[1]); | 7706 checkTargetSslProxy(o[1]); |
7146 } | 7707 } |
7147 | 7708 |
7148 core.int buildCounterTargetSslProxyList = 0; | 7709 core.int buildCounterTargetSslProxyList = 0; |
7149 buildTargetSslProxyList() { | 7710 buildTargetSslProxyList() { |
7150 var o = new api.TargetSslProxyList(); | 7711 var o = new api.TargetSslProxyList(); |
7151 buildCounterTargetSslProxyList++; | 7712 buildCounterTargetSslProxyList++; |
7152 if (buildCounterTargetSslProxyList < 3) { | 7713 if (buildCounterTargetSslProxyList < 3) { |
7153 o.id = "foo"; | 7714 o.id = "foo"; |
7154 o.items = buildUnnamed2356(); | 7715 o.items = buildUnnamed2144(); |
7155 o.kind = "foo"; | 7716 o.kind = "foo"; |
7156 o.nextPageToken = "foo"; | 7717 o.nextPageToken = "foo"; |
7157 o.selfLink = "foo"; | 7718 o.selfLink = "foo"; |
7158 } | 7719 } |
7159 buildCounterTargetSslProxyList--; | 7720 buildCounterTargetSslProxyList--; |
7160 return o; | 7721 return o; |
7161 } | 7722 } |
7162 | 7723 |
7163 checkTargetSslProxyList(api.TargetSslProxyList o) { | 7724 checkTargetSslProxyList(api.TargetSslProxyList o) { |
7164 buildCounterTargetSslProxyList++; | 7725 buildCounterTargetSslProxyList++; |
7165 if (buildCounterTargetSslProxyList < 3) { | 7726 if (buildCounterTargetSslProxyList < 3) { |
7166 unittest.expect(o.id, unittest.equals('foo')); | 7727 unittest.expect(o.id, unittest.equals('foo')); |
7167 checkUnnamed2356(o.items); | 7728 checkUnnamed2144(o.items); |
7168 unittest.expect(o.kind, unittest.equals('foo')); | 7729 unittest.expect(o.kind, unittest.equals('foo')); |
7169 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7730 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7170 unittest.expect(o.selfLink, unittest.equals('foo')); | 7731 unittest.expect(o.selfLink, unittest.equals('foo')); |
7171 } | 7732 } |
7172 buildCounterTargetSslProxyList--; | 7733 buildCounterTargetSslProxyList--; |
7173 } | 7734 } |
7174 | 7735 |
7175 buildUnnamed2357() { | 7736 buildUnnamed2145() { |
7176 var o = new core.List<core.String>(); | 7737 var o = new core.List<core.String>(); |
7177 o.add("foo"); | 7738 o.add("foo"); |
7178 o.add("foo"); | 7739 o.add("foo"); |
7179 return o; | 7740 return o; |
7180 } | 7741 } |
7181 | 7742 |
7182 checkUnnamed2357(core.List<core.String> o) { | 7743 checkUnnamed2145(core.List<core.String> o) { |
7183 unittest.expect(o, unittest.hasLength(2)); | 7744 unittest.expect(o, unittest.hasLength(2)); |
7184 unittest.expect(o[0], unittest.equals('foo')); | 7745 unittest.expect(o[0], unittest.equals('foo')); |
7185 unittest.expect(o[1], unittest.equals('foo')); | 7746 unittest.expect(o[1], unittest.equals('foo')); |
7186 } | 7747 } |
7187 | 7748 |
7188 buildUnnamed2358() { | 7749 buildUnnamed2146() { |
7189 var o = new core.List<core.String>(); | 7750 var o = new core.List<core.String>(); |
7190 o.add("foo"); | 7751 o.add("foo"); |
7191 o.add("foo"); | 7752 o.add("foo"); |
7192 return o; | 7753 return o; |
7193 } | 7754 } |
7194 | 7755 |
7195 checkUnnamed2358(core.List<core.String> o) { | 7756 checkUnnamed2146(core.List<core.String> o) { |
7196 unittest.expect(o, unittest.hasLength(2)); | 7757 unittest.expect(o, unittest.hasLength(2)); |
7197 unittest.expect(o[0], unittest.equals('foo')); | 7758 unittest.expect(o[0], unittest.equals('foo')); |
7198 unittest.expect(o[1], unittest.equals('foo')); | 7759 unittest.expect(o[1], unittest.equals('foo')); |
7199 } | 7760 } |
7200 | 7761 |
7201 core.int buildCounterTargetVpnGateway = 0; | 7762 core.int buildCounterTargetVpnGateway = 0; |
7202 buildTargetVpnGateway() { | 7763 buildTargetVpnGateway() { |
7203 var o = new api.TargetVpnGateway(); | 7764 var o = new api.TargetVpnGateway(); |
7204 buildCounterTargetVpnGateway++; | 7765 buildCounterTargetVpnGateway++; |
7205 if (buildCounterTargetVpnGateway < 3) { | 7766 if (buildCounterTargetVpnGateway < 3) { |
7206 o.creationTimestamp = "foo"; | 7767 o.creationTimestamp = "foo"; |
7207 o.description = "foo"; | 7768 o.description = "foo"; |
7208 o.forwardingRules = buildUnnamed2357(); | 7769 o.forwardingRules = buildUnnamed2145(); |
7209 o.id = "foo"; | 7770 o.id = "foo"; |
7210 o.kind = "foo"; | 7771 o.kind = "foo"; |
7211 o.name = "foo"; | 7772 o.name = "foo"; |
7212 o.network = "foo"; | 7773 o.network = "foo"; |
7213 o.region = "foo"; | 7774 o.region = "foo"; |
7214 o.selfLink = "foo"; | 7775 o.selfLink = "foo"; |
7215 o.status = "foo"; | 7776 o.status = "foo"; |
7216 o.tunnels = buildUnnamed2358(); | 7777 o.tunnels = buildUnnamed2146(); |
7217 } | 7778 } |
7218 buildCounterTargetVpnGateway--; | 7779 buildCounterTargetVpnGateway--; |
7219 return o; | 7780 return o; |
7220 } | 7781 } |
7221 | 7782 |
7222 checkTargetVpnGateway(api.TargetVpnGateway o) { | 7783 checkTargetVpnGateway(api.TargetVpnGateway o) { |
7223 buildCounterTargetVpnGateway++; | 7784 buildCounterTargetVpnGateway++; |
7224 if (buildCounterTargetVpnGateway < 3) { | 7785 if (buildCounterTargetVpnGateway < 3) { |
7225 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 7786 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
7226 unittest.expect(o.description, unittest.equals('foo')); | 7787 unittest.expect(o.description, unittest.equals('foo')); |
7227 checkUnnamed2357(o.forwardingRules); | 7788 checkUnnamed2145(o.forwardingRules); |
7228 unittest.expect(o.id, unittest.equals('foo')); | 7789 unittest.expect(o.id, unittest.equals('foo')); |
7229 unittest.expect(o.kind, unittest.equals('foo')); | 7790 unittest.expect(o.kind, unittest.equals('foo')); |
7230 unittest.expect(o.name, unittest.equals('foo')); | 7791 unittest.expect(o.name, unittest.equals('foo')); |
7231 unittest.expect(o.network, unittest.equals('foo')); | 7792 unittest.expect(o.network, unittest.equals('foo')); |
7232 unittest.expect(o.region, unittest.equals('foo')); | 7793 unittest.expect(o.region, unittest.equals('foo')); |
7233 unittest.expect(o.selfLink, unittest.equals('foo')); | 7794 unittest.expect(o.selfLink, unittest.equals('foo')); |
7234 unittest.expect(o.status, unittest.equals('foo')); | 7795 unittest.expect(o.status, unittest.equals('foo')); |
7235 checkUnnamed2358(o.tunnels); | 7796 checkUnnamed2146(o.tunnels); |
7236 } | 7797 } |
7237 buildCounterTargetVpnGateway--; | 7798 buildCounterTargetVpnGateway--; |
7238 } | 7799 } |
7239 | 7800 |
7240 buildUnnamed2359() { | 7801 buildUnnamed2147() { |
7241 var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); | 7802 var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); |
7242 o["x"] = buildTargetVpnGatewaysScopedList(); | 7803 o["x"] = buildTargetVpnGatewaysScopedList(); |
7243 o["y"] = buildTargetVpnGatewaysScopedList(); | 7804 o["y"] = buildTargetVpnGatewaysScopedList(); |
7244 return o; | 7805 return o; |
7245 } | 7806 } |
7246 | 7807 |
7247 checkUnnamed2359(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { | 7808 checkUnnamed2147(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { |
7248 unittest.expect(o, unittest.hasLength(2)); | 7809 unittest.expect(o, unittest.hasLength(2)); |
7249 checkTargetVpnGatewaysScopedList(o["x"]); | 7810 checkTargetVpnGatewaysScopedList(o["x"]); |
7250 checkTargetVpnGatewaysScopedList(o["y"]); | 7811 checkTargetVpnGatewaysScopedList(o["y"]); |
7251 } | 7812 } |
7252 | 7813 |
7253 core.int buildCounterTargetVpnGatewayAggregatedList = 0; | 7814 core.int buildCounterTargetVpnGatewayAggregatedList = 0; |
7254 buildTargetVpnGatewayAggregatedList() { | 7815 buildTargetVpnGatewayAggregatedList() { |
7255 var o = new api.TargetVpnGatewayAggregatedList(); | 7816 var o = new api.TargetVpnGatewayAggregatedList(); |
7256 buildCounterTargetVpnGatewayAggregatedList++; | 7817 buildCounterTargetVpnGatewayAggregatedList++; |
7257 if (buildCounterTargetVpnGatewayAggregatedList < 3) { | 7818 if (buildCounterTargetVpnGatewayAggregatedList < 3) { |
7258 o.id = "foo"; | 7819 o.id = "foo"; |
7259 o.items = buildUnnamed2359(); | 7820 o.items = buildUnnamed2147(); |
7260 o.kind = "foo"; | 7821 o.kind = "foo"; |
7261 o.nextPageToken = "foo"; | 7822 o.nextPageToken = "foo"; |
7262 o.selfLink = "foo"; | 7823 o.selfLink = "foo"; |
7263 } | 7824 } |
7264 buildCounterTargetVpnGatewayAggregatedList--; | 7825 buildCounterTargetVpnGatewayAggregatedList--; |
7265 return o; | 7826 return o; |
7266 } | 7827 } |
7267 | 7828 |
7268 checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) { | 7829 checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) { |
7269 buildCounterTargetVpnGatewayAggregatedList++; | 7830 buildCounterTargetVpnGatewayAggregatedList++; |
7270 if (buildCounterTargetVpnGatewayAggregatedList < 3) { | 7831 if (buildCounterTargetVpnGatewayAggregatedList < 3) { |
7271 unittest.expect(o.id, unittest.equals('foo')); | 7832 unittest.expect(o.id, unittest.equals('foo')); |
7272 checkUnnamed2359(o.items); | 7833 checkUnnamed2147(o.items); |
7273 unittest.expect(o.kind, unittest.equals('foo')); | 7834 unittest.expect(o.kind, unittest.equals('foo')); |
7274 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7835 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7275 unittest.expect(o.selfLink, unittest.equals('foo')); | 7836 unittest.expect(o.selfLink, unittest.equals('foo')); |
7276 } | 7837 } |
7277 buildCounterTargetVpnGatewayAggregatedList--; | 7838 buildCounterTargetVpnGatewayAggregatedList--; |
7278 } | 7839 } |
7279 | 7840 |
7280 buildUnnamed2360() { | 7841 buildUnnamed2148() { |
7281 var o = new core.List<api.TargetVpnGateway>(); | 7842 var o = new core.List<api.TargetVpnGateway>(); |
7282 o.add(buildTargetVpnGateway()); | 7843 o.add(buildTargetVpnGateway()); |
7283 o.add(buildTargetVpnGateway()); | 7844 o.add(buildTargetVpnGateway()); |
7284 return o; | 7845 return o; |
7285 } | 7846 } |
7286 | 7847 |
7287 checkUnnamed2360(core.List<api.TargetVpnGateway> o) { | 7848 checkUnnamed2148(core.List<api.TargetVpnGateway> o) { |
7288 unittest.expect(o, unittest.hasLength(2)); | 7849 unittest.expect(o, unittest.hasLength(2)); |
7289 checkTargetVpnGateway(o[0]); | 7850 checkTargetVpnGateway(o[0]); |
7290 checkTargetVpnGateway(o[1]); | 7851 checkTargetVpnGateway(o[1]); |
7291 } | 7852 } |
7292 | 7853 |
7293 core.int buildCounterTargetVpnGatewayList = 0; | 7854 core.int buildCounterTargetVpnGatewayList = 0; |
7294 buildTargetVpnGatewayList() { | 7855 buildTargetVpnGatewayList() { |
7295 var o = new api.TargetVpnGatewayList(); | 7856 var o = new api.TargetVpnGatewayList(); |
7296 buildCounterTargetVpnGatewayList++; | 7857 buildCounterTargetVpnGatewayList++; |
7297 if (buildCounterTargetVpnGatewayList < 3) { | 7858 if (buildCounterTargetVpnGatewayList < 3) { |
7298 o.id = "foo"; | 7859 o.id = "foo"; |
7299 o.items = buildUnnamed2360(); | 7860 o.items = buildUnnamed2148(); |
7300 o.kind = "foo"; | 7861 o.kind = "foo"; |
7301 o.nextPageToken = "foo"; | 7862 o.nextPageToken = "foo"; |
7302 o.selfLink = "foo"; | 7863 o.selfLink = "foo"; |
7303 } | 7864 } |
7304 buildCounterTargetVpnGatewayList--; | 7865 buildCounterTargetVpnGatewayList--; |
7305 return o; | 7866 return o; |
7306 } | 7867 } |
7307 | 7868 |
7308 checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { | 7869 checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { |
7309 buildCounterTargetVpnGatewayList++; | 7870 buildCounterTargetVpnGatewayList++; |
7310 if (buildCounterTargetVpnGatewayList < 3) { | 7871 if (buildCounterTargetVpnGatewayList < 3) { |
7311 unittest.expect(o.id, unittest.equals('foo')); | 7872 unittest.expect(o.id, unittest.equals('foo')); |
7312 checkUnnamed2360(o.items); | 7873 checkUnnamed2148(o.items); |
7313 unittest.expect(o.kind, unittest.equals('foo')); | 7874 unittest.expect(o.kind, unittest.equals('foo')); |
7314 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7875 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7315 unittest.expect(o.selfLink, unittest.equals('foo')); | 7876 unittest.expect(o.selfLink, unittest.equals('foo')); |
7316 } | 7877 } |
7317 buildCounterTargetVpnGatewayList--; | 7878 buildCounterTargetVpnGatewayList--; |
7318 } | 7879 } |
7319 | 7880 |
7320 buildUnnamed2361() { | 7881 buildUnnamed2149() { |
7321 var o = new core.List<api.TargetVpnGateway>(); | 7882 var o = new core.List<api.TargetVpnGateway>(); |
7322 o.add(buildTargetVpnGateway()); | 7883 o.add(buildTargetVpnGateway()); |
7323 o.add(buildTargetVpnGateway()); | 7884 o.add(buildTargetVpnGateway()); |
7324 return o; | 7885 return o; |
7325 } | 7886 } |
7326 | 7887 |
7327 checkUnnamed2361(core.List<api.TargetVpnGateway> o) { | 7888 checkUnnamed2149(core.List<api.TargetVpnGateway> o) { |
7328 unittest.expect(o, unittest.hasLength(2)); | 7889 unittest.expect(o, unittest.hasLength(2)); |
7329 checkTargetVpnGateway(o[0]); | 7890 checkTargetVpnGateway(o[0]); |
7330 checkTargetVpnGateway(o[1]); | 7891 checkTargetVpnGateway(o[1]); |
7331 } | 7892 } |
7332 | 7893 |
7333 core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0; | 7894 core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0; |
7334 buildTargetVpnGatewaysScopedListWarningData() { | 7895 buildTargetVpnGatewaysScopedListWarningData() { |
7335 var o = new api.TargetVpnGatewaysScopedListWarningData(); | 7896 var o = new api.TargetVpnGatewaysScopedListWarningData(); |
7336 buildCounterTargetVpnGatewaysScopedListWarningData++; | 7897 buildCounterTargetVpnGatewaysScopedListWarningData++; |
7337 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { | 7898 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { |
7338 o.key = "foo"; | 7899 o.key = "foo"; |
7339 o.value = "foo"; | 7900 o.value = "foo"; |
7340 } | 7901 } |
7341 buildCounterTargetVpnGatewaysScopedListWarningData--; | 7902 buildCounterTargetVpnGatewaysScopedListWarningData--; |
7342 return o; | 7903 return o; |
7343 } | 7904 } |
7344 | 7905 |
7345 checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarni
ngData o) { | 7906 checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarni
ngData o) { |
7346 buildCounterTargetVpnGatewaysScopedListWarningData++; | 7907 buildCounterTargetVpnGatewaysScopedListWarningData++; |
7347 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { | 7908 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { |
7348 unittest.expect(o.key, unittest.equals('foo')); | 7909 unittest.expect(o.key, unittest.equals('foo')); |
7349 unittest.expect(o.value, unittest.equals('foo')); | 7910 unittest.expect(o.value, unittest.equals('foo')); |
7350 } | 7911 } |
7351 buildCounterTargetVpnGatewaysScopedListWarningData--; | 7912 buildCounterTargetVpnGatewaysScopedListWarningData--; |
7352 } | 7913 } |
7353 | 7914 |
7354 buildUnnamed2362() { | 7915 buildUnnamed2150() { |
7355 var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); | 7916 var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); |
7356 o.add(buildTargetVpnGatewaysScopedListWarningData()); | 7917 o.add(buildTargetVpnGatewaysScopedListWarningData()); |
7357 o.add(buildTargetVpnGatewaysScopedListWarningData()); | 7918 o.add(buildTargetVpnGatewaysScopedListWarningData()); |
7358 return o; | 7919 return o; |
7359 } | 7920 } |
7360 | 7921 |
7361 checkUnnamed2362(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { | 7922 checkUnnamed2150(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { |
7362 unittest.expect(o, unittest.hasLength(2)); | 7923 unittest.expect(o, unittest.hasLength(2)); |
7363 checkTargetVpnGatewaysScopedListWarningData(o[0]); | 7924 checkTargetVpnGatewaysScopedListWarningData(o[0]); |
7364 checkTargetVpnGatewaysScopedListWarningData(o[1]); | 7925 checkTargetVpnGatewaysScopedListWarningData(o[1]); |
7365 } | 7926 } |
7366 | 7927 |
7367 core.int buildCounterTargetVpnGatewaysScopedListWarning = 0; | 7928 core.int buildCounterTargetVpnGatewaysScopedListWarning = 0; |
7368 buildTargetVpnGatewaysScopedListWarning() { | 7929 buildTargetVpnGatewaysScopedListWarning() { |
7369 var o = new api.TargetVpnGatewaysScopedListWarning(); | 7930 var o = new api.TargetVpnGatewaysScopedListWarning(); |
7370 buildCounterTargetVpnGatewaysScopedListWarning++; | 7931 buildCounterTargetVpnGatewaysScopedListWarning++; |
7371 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { | 7932 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { |
7372 o.code = "foo"; | 7933 o.code = "foo"; |
7373 o.data = buildUnnamed2362(); | 7934 o.data = buildUnnamed2150(); |
7374 o.message = "foo"; | 7935 o.message = "foo"; |
7375 } | 7936 } |
7376 buildCounterTargetVpnGatewaysScopedListWarning--; | 7937 buildCounterTargetVpnGatewaysScopedListWarning--; |
7377 return o; | 7938 return o; |
7378 } | 7939 } |
7379 | 7940 |
7380 checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o
) { | 7941 checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o
) { |
7381 buildCounterTargetVpnGatewaysScopedListWarning++; | 7942 buildCounterTargetVpnGatewaysScopedListWarning++; |
7382 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { | 7943 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { |
7383 unittest.expect(o.code, unittest.equals('foo')); | 7944 unittest.expect(o.code, unittest.equals('foo')); |
7384 checkUnnamed2362(o.data); | 7945 checkUnnamed2150(o.data); |
7385 unittest.expect(o.message, unittest.equals('foo')); | 7946 unittest.expect(o.message, unittest.equals('foo')); |
7386 } | 7947 } |
7387 buildCounterTargetVpnGatewaysScopedListWarning--; | 7948 buildCounterTargetVpnGatewaysScopedListWarning--; |
7388 } | 7949 } |
7389 | 7950 |
7390 core.int buildCounterTargetVpnGatewaysScopedList = 0; | 7951 core.int buildCounterTargetVpnGatewaysScopedList = 0; |
7391 buildTargetVpnGatewaysScopedList() { | 7952 buildTargetVpnGatewaysScopedList() { |
7392 var o = new api.TargetVpnGatewaysScopedList(); | 7953 var o = new api.TargetVpnGatewaysScopedList(); |
7393 buildCounterTargetVpnGatewaysScopedList++; | 7954 buildCounterTargetVpnGatewaysScopedList++; |
7394 if (buildCounterTargetVpnGatewaysScopedList < 3) { | 7955 if (buildCounterTargetVpnGatewaysScopedList < 3) { |
7395 o.targetVpnGateways = buildUnnamed2361(); | 7956 o.targetVpnGateways = buildUnnamed2149(); |
7396 o.warning = buildTargetVpnGatewaysScopedListWarning(); | 7957 o.warning = buildTargetVpnGatewaysScopedListWarning(); |
7397 } | 7958 } |
7398 buildCounterTargetVpnGatewaysScopedList--; | 7959 buildCounterTargetVpnGatewaysScopedList--; |
7399 return o; | 7960 return o; |
7400 } | 7961 } |
7401 | 7962 |
7402 checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { | 7963 checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { |
7403 buildCounterTargetVpnGatewaysScopedList++; | 7964 buildCounterTargetVpnGatewaysScopedList++; |
7404 if (buildCounterTargetVpnGatewaysScopedList < 3) { | 7965 if (buildCounterTargetVpnGatewaysScopedList < 3) { |
7405 checkUnnamed2361(o.targetVpnGateways); | 7966 checkUnnamed2149(o.targetVpnGateways); |
7406 checkTargetVpnGatewaysScopedListWarning(o.warning); | 7967 checkTargetVpnGatewaysScopedListWarning(o.warning); |
7407 } | 7968 } |
7408 buildCounterTargetVpnGatewaysScopedList--; | 7969 buildCounterTargetVpnGatewaysScopedList--; |
7409 } | 7970 } |
7410 | 7971 |
7411 core.int buildCounterTestFailure = 0; | 7972 core.int buildCounterTestFailure = 0; |
7412 buildTestFailure() { | 7973 buildTestFailure() { |
7413 var o = new api.TestFailure(); | 7974 var o = new api.TestFailure(); |
7414 buildCounterTestFailure++; | 7975 buildCounterTestFailure++; |
7415 if (buildCounterTestFailure < 3) { | 7976 if (buildCounterTestFailure < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
7426 buildCounterTestFailure++; | 7987 buildCounterTestFailure++; |
7427 if (buildCounterTestFailure < 3) { | 7988 if (buildCounterTestFailure < 3) { |
7428 unittest.expect(o.actualService, unittest.equals('foo')); | 7989 unittest.expect(o.actualService, unittest.equals('foo')); |
7429 unittest.expect(o.expectedService, unittest.equals('foo')); | 7990 unittest.expect(o.expectedService, unittest.equals('foo')); |
7430 unittest.expect(o.host, unittest.equals('foo')); | 7991 unittest.expect(o.host, unittest.equals('foo')); |
7431 unittest.expect(o.path, unittest.equals('foo')); | 7992 unittest.expect(o.path, unittest.equals('foo')); |
7432 } | 7993 } |
7433 buildCounterTestFailure--; | 7994 buildCounterTestFailure--; |
7434 } | 7995 } |
7435 | 7996 |
7436 buildUnnamed2363() { | 7997 buildUnnamed2151() { |
7437 var o = new core.List<api.HostRule>(); | 7998 var o = new core.List<api.HostRule>(); |
7438 o.add(buildHostRule()); | 7999 o.add(buildHostRule()); |
7439 o.add(buildHostRule()); | 8000 o.add(buildHostRule()); |
7440 return o; | 8001 return o; |
7441 } | 8002 } |
7442 | 8003 |
7443 checkUnnamed2363(core.List<api.HostRule> o) { | 8004 checkUnnamed2151(core.List<api.HostRule> o) { |
7444 unittest.expect(o, unittest.hasLength(2)); | 8005 unittest.expect(o, unittest.hasLength(2)); |
7445 checkHostRule(o[0]); | 8006 checkHostRule(o[0]); |
7446 checkHostRule(o[1]); | 8007 checkHostRule(o[1]); |
7447 } | 8008 } |
7448 | 8009 |
7449 buildUnnamed2364() { | 8010 buildUnnamed2152() { |
7450 var o = new core.List<api.PathMatcher>(); | 8011 var o = new core.List<api.PathMatcher>(); |
7451 o.add(buildPathMatcher()); | 8012 o.add(buildPathMatcher()); |
7452 o.add(buildPathMatcher()); | 8013 o.add(buildPathMatcher()); |
7453 return o; | 8014 return o; |
7454 } | 8015 } |
7455 | 8016 |
7456 checkUnnamed2364(core.List<api.PathMatcher> o) { | 8017 checkUnnamed2152(core.List<api.PathMatcher> o) { |
7457 unittest.expect(o, unittest.hasLength(2)); | 8018 unittest.expect(o, unittest.hasLength(2)); |
7458 checkPathMatcher(o[0]); | 8019 checkPathMatcher(o[0]); |
7459 checkPathMatcher(o[1]); | 8020 checkPathMatcher(o[1]); |
7460 } | 8021 } |
7461 | 8022 |
7462 buildUnnamed2365() { | 8023 buildUnnamed2153() { |
7463 var o = new core.List<api.UrlMapTest>(); | 8024 var o = new core.List<api.UrlMapTest>(); |
7464 o.add(buildUrlMapTest()); | 8025 o.add(buildUrlMapTest()); |
7465 o.add(buildUrlMapTest()); | 8026 o.add(buildUrlMapTest()); |
7466 return o; | 8027 return o; |
7467 } | 8028 } |
7468 | 8029 |
7469 checkUnnamed2365(core.List<api.UrlMapTest> o) { | 8030 checkUnnamed2153(core.List<api.UrlMapTest> o) { |
7470 unittest.expect(o, unittest.hasLength(2)); | 8031 unittest.expect(o, unittest.hasLength(2)); |
7471 checkUrlMapTest(o[0]); | 8032 checkUrlMapTest(o[0]); |
7472 checkUrlMapTest(o[1]); | 8033 checkUrlMapTest(o[1]); |
7473 } | 8034 } |
7474 | 8035 |
7475 core.int buildCounterUrlMap = 0; | 8036 core.int buildCounterUrlMap = 0; |
7476 buildUrlMap() { | 8037 buildUrlMap() { |
7477 var o = new api.UrlMap(); | 8038 var o = new api.UrlMap(); |
7478 buildCounterUrlMap++; | 8039 buildCounterUrlMap++; |
7479 if (buildCounterUrlMap < 3) { | 8040 if (buildCounterUrlMap < 3) { |
7480 o.creationTimestamp = "foo"; | 8041 o.creationTimestamp = "foo"; |
7481 o.defaultService = "foo"; | 8042 o.defaultService = "foo"; |
7482 o.description = "foo"; | 8043 o.description = "foo"; |
7483 o.fingerprint = "foo"; | 8044 o.fingerprint = "foo"; |
7484 o.hostRules = buildUnnamed2363(); | 8045 o.hostRules = buildUnnamed2151(); |
7485 o.id = "foo"; | 8046 o.id = "foo"; |
7486 o.kind = "foo"; | 8047 o.kind = "foo"; |
7487 o.name = "foo"; | 8048 o.name = "foo"; |
7488 o.pathMatchers = buildUnnamed2364(); | 8049 o.pathMatchers = buildUnnamed2152(); |
7489 o.selfLink = "foo"; | 8050 o.selfLink = "foo"; |
7490 o.tests = buildUnnamed2365(); | 8051 o.tests = buildUnnamed2153(); |
7491 } | 8052 } |
7492 buildCounterUrlMap--; | 8053 buildCounterUrlMap--; |
7493 return o; | 8054 return o; |
7494 } | 8055 } |
7495 | 8056 |
7496 checkUrlMap(api.UrlMap o) { | 8057 checkUrlMap(api.UrlMap o) { |
7497 buildCounterUrlMap++; | 8058 buildCounterUrlMap++; |
7498 if (buildCounterUrlMap < 3) { | 8059 if (buildCounterUrlMap < 3) { |
7499 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 8060 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
7500 unittest.expect(o.defaultService, unittest.equals('foo')); | 8061 unittest.expect(o.defaultService, unittest.equals('foo')); |
7501 unittest.expect(o.description, unittest.equals('foo')); | 8062 unittest.expect(o.description, unittest.equals('foo')); |
7502 unittest.expect(o.fingerprint, unittest.equals('foo')); | 8063 unittest.expect(o.fingerprint, unittest.equals('foo')); |
7503 checkUnnamed2363(o.hostRules); | 8064 checkUnnamed2151(o.hostRules); |
7504 unittest.expect(o.id, unittest.equals('foo')); | 8065 unittest.expect(o.id, unittest.equals('foo')); |
7505 unittest.expect(o.kind, unittest.equals('foo')); | 8066 unittest.expect(o.kind, unittest.equals('foo')); |
7506 unittest.expect(o.name, unittest.equals('foo')); | 8067 unittest.expect(o.name, unittest.equals('foo')); |
7507 checkUnnamed2364(o.pathMatchers); | 8068 checkUnnamed2152(o.pathMatchers); |
7508 unittest.expect(o.selfLink, unittest.equals('foo')); | 8069 unittest.expect(o.selfLink, unittest.equals('foo')); |
7509 checkUnnamed2365(o.tests); | 8070 checkUnnamed2153(o.tests); |
7510 } | 8071 } |
7511 buildCounterUrlMap--; | 8072 buildCounterUrlMap--; |
7512 } | 8073 } |
7513 | 8074 |
7514 buildUnnamed2366() { | 8075 buildUnnamed2154() { |
7515 var o = new core.List<api.UrlMap>(); | 8076 var o = new core.List<api.UrlMap>(); |
7516 o.add(buildUrlMap()); | 8077 o.add(buildUrlMap()); |
7517 o.add(buildUrlMap()); | 8078 o.add(buildUrlMap()); |
7518 return o; | 8079 return o; |
7519 } | 8080 } |
7520 | 8081 |
7521 checkUnnamed2366(core.List<api.UrlMap> o) { | 8082 checkUnnamed2154(core.List<api.UrlMap> o) { |
7522 unittest.expect(o, unittest.hasLength(2)); | 8083 unittest.expect(o, unittest.hasLength(2)); |
7523 checkUrlMap(o[0]); | 8084 checkUrlMap(o[0]); |
7524 checkUrlMap(o[1]); | 8085 checkUrlMap(o[1]); |
7525 } | 8086 } |
7526 | 8087 |
7527 core.int buildCounterUrlMapList = 0; | 8088 core.int buildCounterUrlMapList = 0; |
7528 buildUrlMapList() { | 8089 buildUrlMapList() { |
7529 var o = new api.UrlMapList(); | 8090 var o = new api.UrlMapList(); |
7530 buildCounterUrlMapList++; | 8091 buildCounterUrlMapList++; |
7531 if (buildCounterUrlMapList < 3) { | 8092 if (buildCounterUrlMapList < 3) { |
7532 o.id = "foo"; | 8093 o.id = "foo"; |
7533 o.items = buildUnnamed2366(); | 8094 o.items = buildUnnamed2154(); |
7534 o.kind = "foo"; | 8095 o.kind = "foo"; |
7535 o.nextPageToken = "foo"; | 8096 o.nextPageToken = "foo"; |
7536 o.selfLink = "foo"; | 8097 o.selfLink = "foo"; |
7537 } | 8098 } |
7538 buildCounterUrlMapList--; | 8099 buildCounterUrlMapList--; |
7539 return o; | 8100 return o; |
7540 } | 8101 } |
7541 | 8102 |
7542 checkUrlMapList(api.UrlMapList o) { | 8103 checkUrlMapList(api.UrlMapList o) { |
7543 buildCounterUrlMapList++; | 8104 buildCounterUrlMapList++; |
7544 if (buildCounterUrlMapList < 3) { | 8105 if (buildCounterUrlMapList < 3) { |
7545 unittest.expect(o.id, unittest.equals('foo')); | 8106 unittest.expect(o.id, unittest.equals('foo')); |
7546 checkUnnamed2366(o.items); | 8107 checkUnnamed2154(o.items); |
7547 unittest.expect(o.kind, unittest.equals('foo')); | 8108 unittest.expect(o.kind, unittest.equals('foo')); |
7548 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8109 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7549 unittest.expect(o.selfLink, unittest.equals('foo')); | 8110 unittest.expect(o.selfLink, unittest.equals('foo')); |
7550 } | 8111 } |
7551 buildCounterUrlMapList--; | 8112 buildCounterUrlMapList--; |
7552 } | 8113 } |
7553 | 8114 |
7554 core.int buildCounterUrlMapReference = 0; | 8115 core.int buildCounterUrlMapReference = 0; |
7555 buildUrlMapReference() { | 8116 buildUrlMapReference() { |
7556 var o = new api.UrlMapReference(); | 8117 var o = new api.UrlMapReference(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7588 buildCounterUrlMapTest++; | 8149 buildCounterUrlMapTest++; |
7589 if (buildCounterUrlMapTest < 3) { | 8150 if (buildCounterUrlMapTest < 3) { |
7590 unittest.expect(o.description, unittest.equals('foo')); | 8151 unittest.expect(o.description, unittest.equals('foo')); |
7591 unittest.expect(o.host, unittest.equals('foo')); | 8152 unittest.expect(o.host, unittest.equals('foo')); |
7592 unittest.expect(o.path, unittest.equals('foo')); | 8153 unittest.expect(o.path, unittest.equals('foo')); |
7593 unittest.expect(o.service, unittest.equals('foo')); | 8154 unittest.expect(o.service, unittest.equals('foo')); |
7594 } | 8155 } |
7595 buildCounterUrlMapTest--; | 8156 buildCounterUrlMapTest--; |
7596 } | 8157 } |
7597 | 8158 |
7598 buildUnnamed2367() { | 8159 buildUnnamed2155() { |
7599 var o = new core.List<core.String>(); | 8160 var o = new core.List<core.String>(); |
7600 o.add("foo"); | 8161 o.add("foo"); |
7601 o.add("foo"); | 8162 o.add("foo"); |
7602 return o; | 8163 return o; |
7603 } | 8164 } |
7604 | 8165 |
7605 checkUnnamed2367(core.List<core.String> o) { | 8166 checkUnnamed2155(core.List<core.String> o) { |
7606 unittest.expect(o, unittest.hasLength(2)); | 8167 unittest.expect(o, unittest.hasLength(2)); |
7607 unittest.expect(o[0], unittest.equals('foo')); | 8168 unittest.expect(o[0], unittest.equals('foo')); |
7608 unittest.expect(o[1], unittest.equals('foo')); | 8169 unittest.expect(o[1], unittest.equals('foo')); |
7609 } | 8170 } |
7610 | 8171 |
7611 buildUnnamed2368() { | 8172 buildUnnamed2156() { |
7612 var o = new core.List<api.TestFailure>(); | 8173 var o = new core.List<api.TestFailure>(); |
7613 o.add(buildTestFailure()); | 8174 o.add(buildTestFailure()); |
7614 o.add(buildTestFailure()); | 8175 o.add(buildTestFailure()); |
7615 return o; | 8176 return o; |
7616 } | 8177 } |
7617 | 8178 |
7618 checkUnnamed2368(core.List<api.TestFailure> o) { | 8179 checkUnnamed2156(core.List<api.TestFailure> o) { |
7619 unittest.expect(o, unittest.hasLength(2)); | 8180 unittest.expect(o, unittest.hasLength(2)); |
7620 checkTestFailure(o[0]); | 8181 checkTestFailure(o[0]); |
7621 checkTestFailure(o[1]); | 8182 checkTestFailure(o[1]); |
7622 } | 8183 } |
7623 | 8184 |
7624 core.int buildCounterUrlMapValidationResult = 0; | 8185 core.int buildCounterUrlMapValidationResult = 0; |
7625 buildUrlMapValidationResult() { | 8186 buildUrlMapValidationResult() { |
7626 var o = new api.UrlMapValidationResult(); | 8187 var o = new api.UrlMapValidationResult(); |
7627 buildCounterUrlMapValidationResult++; | 8188 buildCounterUrlMapValidationResult++; |
7628 if (buildCounterUrlMapValidationResult < 3) { | 8189 if (buildCounterUrlMapValidationResult < 3) { |
7629 o.loadErrors = buildUnnamed2367(); | 8190 o.loadErrors = buildUnnamed2155(); |
7630 o.loadSucceeded = true; | 8191 o.loadSucceeded = true; |
7631 o.testFailures = buildUnnamed2368(); | 8192 o.testFailures = buildUnnamed2156(); |
7632 o.testPassed = true; | 8193 o.testPassed = true; |
7633 } | 8194 } |
7634 buildCounterUrlMapValidationResult--; | 8195 buildCounterUrlMapValidationResult--; |
7635 return o; | 8196 return o; |
7636 } | 8197 } |
7637 | 8198 |
7638 checkUrlMapValidationResult(api.UrlMapValidationResult o) { | 8199 checkUrlMapValidationResult(api.UrlMapValidationResult o) { |
7639 buildCounterUrlMapValidationResult++; | 8200 buildCounterUrlMapValidationResult++; |
7640 if (buildCounterUrlMapValidationResult < 3) { | 8201 if (buildCounterUrlMapValidationResult < 3) { |
7641 checkUnnamed2367(o.loadErrors); | 8202 checkUnnamed2155(o.loadErrors); |
7642 unittest.expect(o.loadSucceeded, unittest.isTrue); | 8203 unittest.expect(o.loadSucceeded, unittest.isTrue); |
7643 checkUnnamed2368(o.testFailures); | 8204 checkUnnamed2156(o.testFailures); |
7644 unittest.expect(o.testPassed, unittest.isTrue); | 8205 unittest.expect(o.testPassed, unittest.isTrue); |
7645 } | 8206 } |
7646 buildCounterUrlMapValidationResult--; | 8207 buildCounterUrlMapValidationResult--; |
7647 } | 8208 } |
7648 | 8209 |
7649 core.int buildCounterUrlMapsValidateRequest = 0; | 8210 core.int buildCounterUrlMapsValidateRequest = 0; |
7650 buildUrlMapsValidateRequest() { | 8211 buildUrlMapsValidateRequest() { |
7651 var o = new api.UrlMapsValidateRequest(); | 8212 var o = new api.UrlMapsValidateRequest(); |
7652 buildCounterUrlMapsValidateRequest++; | 8213 buildCounterUrlMapsValidateRequest++; |
7653 if (buildCounterUrlMapsValidateRequest < 3) { | 8214 if (buildCounterUrlMapsValidateRequest < 3) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7698 | 8259 |
7699 checkUsageExportLocation(api.UsageExportLocation o) { | 8260 checkUsageExportLocation(api.UsageExportLocation o) { |
7700 buildCounterUsageExportLocation++; | 8261 buildCounterUsageExportLocation++; |
7701 if (buildCounterUsageExportLocation < 3) { | 8262 if (buildCounterUsageExportLocation < 3) { |
7702 unittest.expect(o.bucketName, unittest.equals('foo')); | 8263 unittest.expect(o.bucketName, unittest.equals('foo')); |
7703 unittest.expect(o.reportNamePrefix, unittest.equals('foo')); | 8264 unittest.expect(o.reportNamePrefix, unittest.equals('foo')); |
7704 } | 8265 } |
7705 buildCounterUsageExportLocation--; | 8266 buildCounterUsageExportLocation--; |
7706 } | 8267 } |
7707 | 8268 |
7708 buildUnnamed2369() { | 8269 buildUnnamed2157() { |
7709 var o = new core.List<core.String>(); | 8270 var o = new core.List<core.String>(); |
7710 o.add("foo"); | 8271 o.add("foo"); |
7711 o.add("foo"); | 8272 o.add("foo"); |
7712 return o; | 8273 return o; |
7713 } | 8274 } |
7714 | 8275 |
7715 checkUnnamed2369(core.List<core.String> o) { | 8276 checkUnnamed2157(core.List<core.String> o) { |
7716 unittest.expect(o, unittest.hasLength(2)); | 8277 unittest.expect(o, unittest.hasLength(2)); |
7717 unittest.expect(o[0], unittest.equals('foo')); | 8278 unittest.expect(o[0], unittest.equals('foo')); |
7718 unittest.expect(o[1], unittest.equals('foo')); | 8279 unittest.expect(o[1], unittest.equals('foo')); |
7719 } | 8280 } |
7720 | 8281 |
7721 buildUnnamed2370() { | 8282 buildUnnamed2158() { |
7722 var o = new core.List<core.String>(); | 8283 var o = new core.List<core.String>(); |
7723 o.add("foo"); | 8284 o.add("foo"); |
7724 o.add("foo"); | 8285 o.add("foo"); |
7725 return o; | 8286 return o; |
7726 } | 8287 } |
7727 | 8288 |
7728 checkUnnamed2370(core.List<core.String> o) { | 8289 checkUnnamed2158(core.List<core.String> o) { |
7729 unittest.expect(o, unittest.hasLength(2)); | 8290 unittest.expect(o, unittest.hasLength(2)); |
7730 unittest.expect(o[0], unittest.equals('foo')); | 8291 unittest.expect(o[0], unittest.equals('foo')); |
7731 unittest.expect(o[1], unittest.equals('foo')); | 8292 unittest.expect(o[1], unittest.equals('foo')); |
7732 } | 8293 } |
7733 | 8294 |
7734 core.int buildCounterVpnTunnel = 0; | 8295 core.int buildCounterVpnTunnel = 0; |
7735 buildVpnTunnel() { | 8296 buildVpnTunnel() { |
7736 var o = new api.VpnTunnel(); | 8297 var o = new api.VpnTunnel(); |
7737 buildCounterVpnTunnel++; | 8298 buildCounterVpnTunnel++; |
7738 if (buildCounterVpnTunnel < 3) { | 8299 if (buildCounterVpnTunnel < 3) { |
7739 o.creationTimestamp = "foo"; | 8300 o.creationTimestamp = "foo"; |
7740 o.description = "foo"; | 8301 o.description = "foo"; |
7741 o.detailedStatus = "foo"; | 8302 o.detailedStatus = "foo"; |
7742 o.id = "foo"; | 8303 o.id = "foo"; |
7743 o.ikeVersion = 42; | 8304 o.ikeVersion = 42; |
7744 o.kind = "foo"; | 8305 o.kind = "foo"; |
7745 o.localTrafficSelector = buildUnnamed2369(); | 8306 o.localTrafficSelector = buildUnnamed2157(); |
7746 o.name = "foo"; | 8307 o.name = "foo"; |
7747 o.peerIp = "foo"; | 8308 o.peerIp = "foo"; |
7748 o.region = "foo"; | 8309 o.region = "foo"; |
7749 o.remoteTrafficSelector = buildUnnamed2370(); | 8310 o.remoteTrafficSelector = buildUnnamed2158(); |
7750 o.router = "foo"; | 8311 o.router = "foo"; |
7751 o.selfLink = "foo"; | 8312 o.selfLink = "foo"; |
7752 o.sharedSecret = "foo"; | 8313 o.sharedSecret = "foo"; |
7753 o.sharedSecretHash = "foo"; | 8314 o.sharedSecretHash = "foo"; |
7754 o.status = "foo"; | 8315 o.status = "foo"; |
7755 o.targetVpnGateway = "foo"; | 8316 o.targetVpnGateway = "foo"; |
7756 } | 8317 } |
7757 buildCounterVpnTunnel--; | 8318 buildCounterVpnTunnel--; |
7758 return o; | 8319 return o; |
7759 } | 8320 } |
7760 | 8321 |
7761 checkVpnTunnel(api.VpnTunnel o) { | 8322 checkVpnTunnel(api.VpnTunnel o) { |
7762 buildCounterVpnTunnel++; | 8323 buildCounterVpnTunnel++; |
7763 if (buildCounterVpnTunnel < 3) { | 8324 if (buildCounterVpnTunnel < 3) { |
7764 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 8325 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
7765 unittest.expect(o.description, unittest.equals('foo')); | 8326 unittest.expect(o.description, unittest.equals('foo')); |
7766 unittest.expect(o.detailedStatus, unittest.equals('foo')); | 8327 unittest.expect(o.detailedStatus, unittest.equals('foo')); |
7767 unittest.expect(o.id, unittest.equals('foo')); | 8328 unittest.expect(o.id, unittest.equals('foo')); |
7768 unittest.expect(o.ikeVersion, unittest.equals(42)); | 8329 unittest.expect(o.ikeVersion, unittest.equals(42)); |
7769 unittest.expect(o.kind, unittest.equals('foo')); | 8330 unittest.expect(o.kind, unittest.equals('foo')); |
7770 checkUnnamed2369(o.localTrafficSelector); | 8331 checkUnnamed2157(o.localTrafficSelector); |
7771 unittest.expect(o.name, unittest.equals('foo')); | 8332 unittest.expect(o.name, unittest.equals('foo')); |
7772 unittest.expect(o.peerIp, unittest.equals('foo')); | 8333 unittest.expect(o.peerIp, unittest.equals('foo')); |
7773 unittest.expect(o.region, unittest.equals('foo')); | 8334 unittest.expect(o.region, unittest.equals('foo')); |
7774 checkUnnamed2370(o.remoteTrafficSelector); | 8335 checkUnnamed2158(o.remoteTrafficSelector); |
7775 unittest.expect(o.router, unittest.equals('foo')); | 8336 unittest.expect(o.router, unittest.equals('foo')); |
7776 unittest.expect(o.selfLink, unittest.equals('foo')); | 8337 unittest.expect(o.selfLink, unittest.equals('foo')); |
7777 unittest.expect(o.sharedSecret, unittest.equals('foo')); | 8338 unittest.expect(o.sharedSecret, unittest.equals('foo')); |
7778 unittest.expect(o.sharedSecretHash, unittest.equals('foo')); | 8339 unittest.expect(o.sharedSecretHash, unittest.equals('foo')); |
7779 unittest.expect(o.status, unittest.equals('foo')); | 8340 unittest.expect(o.status, unittest.equals('foo')); |
7780 unittest.expect(o.targetVpnGateway, unittest.equals('foo')); | 8341 unittest.expect(o.targetVpnGateway, unittest.equals('foo')); |
7781 } | 8342 } |
7782 buildCounterVpnTunnel--; | 8343 buildCounterVpnTunnel--; |
7783 } | 8344 } |
7784 | 8345 |
7785 buildUnnamed2371() { | 8346 buildUnnamed2159() { |
7786 var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); | 8347 var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); |
7787 o["x"] = buildVpnTunnelsScopedList(); | 8348 o["x"] = buildVpnTunnelsScopedList(); |
7788 o["y"] = buildVpnTunnelsScopedList(); | 8349 o["y"] = buildVpnTunnelsScopedList(); |
7789 return o; | 8350 return o; |
7790 } | 8351 } |
7791 | 8352 |
7792 checkUnnamed2371(core.Map<core.String, api.VpnTunnelsScopedList> o) { | 8353 checkUnnamed2159(core.Map<core.String, api.VpnTunnelsScopedList> o) { |
7793 unittest.expect(o, unittest.hasLength(2)); | 8354 unittest.expect(o, unittest.hasLength(2)); |
7794 checkVpnTunnelsScopedList(o["x"]); | 8355 checkVpnTunnelsScopedList(o["x"]); |
7795 checkVpnTunnelsScopedList(o["y"]); | 8356 checkVpnTunnelsScopedList(o["y"]); |
7796 } | 8357 } |
7797 | 8358 |
7798 core.int buildCounterVpnTunnelAggregatedList = 0; | 8359 core.int buildCounterVpnTunnelAggregatedList = 0; |
7799 buildVpnTunnelAggregatedList() { | 8360 buildVpnTunnelAggregatedList() { |
7800 var o = new api.VpnTunnelAggregatedList(); | 8361 var o = new api.VpnTunnelAggregatedList(); |
7801 buildCounterVpnTunnelAggregatedList++; | 8362 buildCounterVpnTunnelAggregatedList++; |
7802 if (buildCounterVpnTunnelAggregatedList < 3) { | 8363 if (buildCounterVpnTunnelAggregatedList < 3) { |
7803 o.id = "foo"; | 8364 o.id = "foo"; |
7804 o.items = buildUnnamed2371(); | 8365 o.items = buildUnnamed2159(); |
7805 o.kind = "foo"; | 8366 o.kind = "foo"; |
7806 o.nextPageToken = "foo"; | 8367 o.nextPageToken = "foo"; |
7807 o.selfLink = "foo"; | 8368 o.selfLink = "foo"; |
7808 } | 8369 } |
7809 buildCounterVpnTunnelAggregatedList--; | 8370 buildCounterVpnTunnelAggregatedList--; |
7810 return o; | 8371 return o; |
7811 } | 8372 } |
7812 | 8373 |
7813 checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) { | 8374 checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) { |
7814 buildCounterVpnTunnelAggregatedList++; | 8375 buildCounterVpnTunnelAggregatedList++; |
7815 if (buildCounterVpnTunnelAggregatedList < 3) { | 8376 if (buildCounterVpnTunnelAggregatedList < 3) { |
7816 unittest.expect(o.id, unittest.equals('foo')); | 8377 unittest.expect(o.id, unittest.equals('foo')); |
7817 checkUnnamed2371(o.items); | 8378 checkUnnamed2159(o.items); |
7818 unittest.expect(o.kind, unittest.equals('foo')); | 8379 unittest.expect(o.kind, unittest.equals('foo')); |
7819 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8380 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7820 unittest.expect(o.selfLink, unittest.equals('foo')); | 8381 unittest.expect(o.selfLink, unittest.equals('foo')); |
7821 } | 8382 } |
7822 buildCounterVpnTunnelAggregatedList--; | 8383 buildCounterVpnTunnelAggregatedList--; |
7823 } | 8384 } |
7824 | 8385 |
7825 buildUnnamed2372() { | 8386 buildUnnamed2160() { |
7826 var o = new core.List<api.VpnTunnel>(); | 8387 var o = new core.List<api.VpnTunnel>(); |
7827 o.add(buildVpnTunnel()); | 8388 o.add(buildVpnTunnel()); |
7828 o.add(buildVpnTunnel()); | 8389 o.add(buildVpnTunnel()); |
7829 return o; | 8390 return o; |
7830 } | 8391 } |
7831 | 8392 |
7832 checkUnnamed2372(core.List<api.VpnTunnel> o) { | 8393 checkUnnamed2160(core.List<api.VpnTunnel> o) { |
7833 unittest.expect(o, unittest.hasLength(2)); | 8394 unittest.expect(o, unittest.hasLength(2)); |
7834 checkVpnTunnel(o[0]); | 8395 checkVpnTunnel(o[0]); |
7835 checkVpnTunnel(o[1]); | 8396 checkVpnTunnel(o[1]); |
7836 } | 8397 } |
7837 | 8398 |
7838 core.int buildCounterVpnTunnelList = 0; | 8399 core.int buildCounterVpnTunnelList = 0; |
7839 buildVpnTunnelList() { | 8400 buildVpnTunnelList() { |
7840 var o = new api.VpnTunnelList(); | 8401 var o = new api.VpnTunnelList(); |
7841 buildCounterVpnTunnelList++; | 8402 buildCounterVpnTunnelList++; |
7842 if (buildCounterVpnTunnelList < 3) { | 8403 if (buildCounterVpnTunnelList < 3) { |
7843 o.id = "foo"; | 8404 o.id = "foo"; |
7844 o.items = buildUnnamed2372(); | 8405 o.items = buildUnnamed2160(); |
7845 o.kind = "foo"; | 8406 o.kind = "foo"; |
7846 o.nextPageToken = "foo"; | 8407 o.nextPageToken = "foo"; |
7847 o.selfLink = "foo"; | 8408 o.selfLink = "foo"; |
7848 } | 8409 } |
7849 buildCounterVpnTunnelList--; | 8410 buildCounterVpnTunnelList--; |
7850 return o; | 8411 return o; |
7851 } | 8412 } |
7852 | 8413 |
7853 checkVpnTunnelList(api.VpnTunnelList o) { | 8414 checkVpnTunnelList(api.VpnTunnelList o) { |
7854 buildCounterVpnTunnelList++; | 8415 buildCounterVpnTunnelList++; |
7855 if (buildCounterVpnTunnelList < 3) { | 8416 if (buildCounterVpnTunnelList < 3) { |
7856 unittest.expect(o.id, unittest.equals('foo')); | 8417 unittest.expect(o.id, unittest.equals('foo')); |
7857 checkUnnamed2372(o.items); | 8418 checkUnnamed2160(o.items); |
7858 unittest.expect(o.kind, unittest.equals('foo')); | 8419 unittest.expect(o.kind, unittest.equals('foo')); |
7859 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8420 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
7860 unittest.expect(o.selfLink, unittest.equals('foo')); | 8421 unittest.expect(o.selfLink, unittest.equals('foo')); |
7861 } | 8422 } |
7862 buildCounterVpnTunnelList--; | 8423 buildCounterVpnTunnelList--; |
7863 } | 8424 } |
7864 | 8425 |
7865 buildUnnamed2373() { | 8426 buildUnnamed2161() { |
7866 var o = new core.List<api.VpnTunnel>(); | 8427 var o = new core.List<api.VpnTunnel>(); |
7867 o.add(buildVpnTunnel()); | 8428 o.add(buildVpnTunnel()); |
7868 o.add(buildVpnTunnel()); | 8429 o.add(buildVpnTunnel()); |
7869 return o; | 8430 return o; |
7870 } | 8431 } |
7871 | 8432 |
7872 checkUnnamed2373(core.List<api.VpnTunnel> o) { | 8433 checkUnnamed2161(core.List<api.VpnTunnel> o) { |
7873 unittest.expect(o, unittest.hasLength(2)); | 8434 unittest.expect(o, unittest.hasLength(2)); |
7874 checkVpnTunnel(o[0]); | 8435 checkVpnTunnel(o[0]); |
7875 checkVpnTunnel(o[1]); | 8436 checkVpnTunnel(o[1]); |
7876 } | 8437 } |
7877 | 8438 |
7878 core.int buildCounterVpnTunnelsScopedListWarningData = 0; | 8439 core.int buildCounterVpnTunnelsScopedListWarningData = 0; |
7879 buildVpnTunnelsScopedListWarningData() { | 8440 buildVpnTunnelsScopedListWarningData() { |
7880 var o = new api.VpnTunnelsScopedListWarningData(); | 8441 var o = new api.VpnTunnelsScopedListWarningData(); |
7881 buildCounterVpnTunnelsScopedListWarningData++; | 8442 buildCounterVpnTunnelsScopedListWarningData++; |
7882 if (buildCounterVpnTunnelsScopedListWarningData < 3) { | 8443 if (buildCounterVpnTunnelsScopedListWarningData < 3) { |
7883 o.key = "foo"; | 8444 o.key = "foo"; |
7884 o.value = "foo"; | 8445 o.value = "foo"; |
7885 } | 8446 } |
7886 buildCounterVpnTunnelsScopedListWarningData--; | 8447 buildCounterVpnTunnelsScopedListWarningData--; |
7887 return o; | 8448 return o; |
7888 } | 8449 } |
7889 | 8450 |
7890 checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) { | 8451 checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) { |
7891 buildCounterVpnTunnelsScopedListWarningData++; | 8452 buildCounterVpnTunnelsScopedListWarningData++; |
7892 if (buildCounterVpnTunnelsScopedListWarningData < 3) { | 8453 if (buildCounterVpnTunnelsScopedListWarningData < 3) { |
7893 unittest.expect(o.key, unittest.equals('foo')); | 8454 unittest.expect(o.key, unittest.equals('foo')); |
7894 unittest.expect(o.value, unittest.equals('foo')); | 8455 unittest.expect(o.value, unittest.equals('foo')); |
7895 } | 8456 } |
7896 buildCounterVpnTunnelsScopedListWarningData--; | 8457 buildCounterVpnTunnelsScopedListWarningData--; |
7897 } | 8458 } |
7898 | 8459 |
7899 buildUnnamed2374() { | 8460 buildUnnamed2162() { |
7900 var o = new core.List<api.VpnTunnelsScopedListWarningData>(); | 8461 var o = new core.List<api.VpnTunnelsScopedListWarningData>(); |
7901 o.add(buildVpnTunnelsScopedListWarningData()); | 8462 o.add(buildVpnTunnelsScopedListWarningData()); |
7902 o.add(buildVpnTunnelsScopedListWarningData()); | 8463 o.add(buildVpnTunnelsScopedListWarningData()); |
7903 return o; | 8464 return o; |
7904 } | 8465 } |
7905 | 8466 |
7906 checkUnnamed2374(core.List<api.VpnTunnelsScopedListWarningData> o) { | 8467 checkUnnamed2162(core.List<api.VpnTunnelsScopedListWarningData> o) { |
7907 unittest.expect(o, unittest.hasLength(2)); | 8468 unittest.expect(o, unittest.hasLength(2)); |
7908 checkVpnTunnelsScopedListWarningData(o[0]); | 8469 checkVpnTunnelsScopedListWarningData(o[0]); |
7909 checkVpnTunnelsScopedListWarningData(o[1]); | 8470 checkVpnTunnelsScopedListWarningData(o[1]); |
7910 } | 8471 } |
7911 | 8472 |
7912 core.int buildCounterVpnTunnelsScopedListWarning = 0; | 8473 core.int buildCounterVpnTunnelsScopedListWarning = 0; |
7913 buildVpnTunnelsScopedListWarning() { | 8474 buildVpnTunnelsScopedListWarning() { |
7914 var o = new api.VpnTunnelsScopedListWarning(); | 8475 var o = new api.VpnTunnelsScopedListWarning(); |
7915 buildCounterVpnTunnelsScopedListWarning++; | 8476 buildCounterVpnTunnelsScopedListWarning++; |
7916 if (buildCounterVpnTunnelsScopedListWarning < 3) { | 8477 if (buildCounterVpnTunnelsScopedListWarning < 3) { |
7917 o.code = "foo"; | 8478 o.code = "foo"; |
7918 o.data = buildUnnamed2374(); | 8479 o.data = buildUnnamed2162(); |
7919 o.message = "foo"; | 8480 o.message = "foo"; |
7920 } | 8481 } |
7921 buildCounterVpnTunnelsScopedListWarning--; | 8482 buildCounterVpnTunnelsScopedListWarning--; |
7922 return o; | 8483 return o; |
7923 } | 8484 } |
7924 | 8485 |
7925 checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) { | 8486 checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) { |
7926 buildCounterVpnTunnelsScopedListWarning++; | 8487 buildCounterVpnTunnelsScopedListWarning++; |
7927 if (buildCounterVpnTunnelsScopedListWarning < 3) { | 8488 if (buildCounterVpnTunnelsScopedListWarning < 3) { |
7928 unittest.expect(o.code, unittest.equals('foo')); | 8489 unittest.expect(o.code, unittest.equals('foo')); |
7929 checkUnnamed2374(o.data); | 8490 checkUnnamed2162(o.data); |
7930 unittest.expect(o.message, unittest.equals('foo')); | 8491 unittest.expect(o.message, unittest.equals('foo')); |
7931 } | 8492 } |
7932 buildCounterVpnTunnelsScopedListWarning--; | 8493 buildCounterVpnTunnelsScopedListWarning--; |
7933 } | 8494 } |
7934 | 8495 |
7935 core.int buildCounterVpnTunnelsScopedList = 0; | 8496 core.int buildCounterVpnTunnelsScopedList = 0; |
7936 buildVpnTunnelsScopedList() { | 8497 buildVpnTunnelsScopedList() { |
7937 var o = new api.VpnTunnelsScopedList(); | 8498 var o = new api.VpnTunnelsScopedList(); |
7938 buildCounterVpnTunnelsScopedList++; | 8499 buildCounterVpnTunnelsScopedList++; |
7939 if (buildCounterVpnTunnelsScopedList < 3) { | 8500 if (buildCounterVpnTunnelsScopedList < 3) { |
7940 o.vpnTunnels = buildUnnamed2373(); | 8501 o.vpnTunnels = buildUnnamed2161(); |
7941 o.warning = buildVpnTunnelsScopedListWarning(); | 8502 o.warning = buildVpnTunnelsScopedListWarning(); |
7942 } | 8503 } |
7943 buildCounterVpnTunnelsScopedList--; | 8504 buildCounterVpnTunnelsScopedList--; |
7944 return o; | 8505 return o; |
7945 } | 8506 } |
7946 | 8507 |
7947 checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { | 8508 checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { |
7948 buildCounterVpnTunnelsScopedList++; | 8509 buildCounterVpnTunnelsScopedList++; |
7949 if (buildCounterVpnTunnelsScopedList < 3) { | 8510 if (buildCounterVpnTunnelsScopedList < 3) { |
7950 checkUnnamed2373(o.vpnTunnels); | 8511 checkUnnamed2161(o.vpnTunnels); |
7951 checkVpnTunnelsScopedListWarning(o.warning); | 8512 checkVpnTunnelsScopedListWarning(o.warning); |
7952 } | 8513 } |
7953 buildCounterVpnTunnelsScopedList--; | 8514 buildCounterVpnTunnelsScopedList--; |
7954 } | 8515 } |
7955 | 8516 |
7956 core.int buildCounterZone = 0; | 8517 core.int buildCounterZone = 0; |
7957 buildZone() { | 8518 buildZone() { |
7958 var o = new api.Zone(); | 8519 var o = new api.Zone(); |
7959 buildCounterZone++; | 8520 buildCounterZone++; |
7960 if (buildCounterZone < 3) { | 8521 if (buildCounterZone < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
7981 unittest.expect(o.id, unittest.equals('foo')); | 8542 unittest.expect(o.id, unittest.equals('foo')); |
7982 unittest.expect(o.kind, unittest.equals('foo')); | 8543 unittest.expect(o.kind, unittest.equals('foo')); |
7983 unittest.expect(o.name, unittest.equals('foo')); | 8544 unittest.expect(o.name, unittest.equals('foo')); |
7984 unittest.expect(o.region, unittest.equals('foo')); | 8545 unittest.expect(o.region, unittest.equals('foo')); |
7985 unittest.expect(o.selfLink, unittest.equals('foo')); | 8546 unittest.expect(o.selfLink, unittest.equals('foo')); |
7986 unittest.expect(o.status, unittest.equals('foo')); | 8547 unittest.expect(o.status, unittest.equals('foo')); |
7987 } | 8548 } |
7988 buildCounterZone--; | 8549 buildCounterZone--; |
7989 } | 8550 } |
7990 | 8551 |
7991 buildUnnamed2375() { | 8552 buildUnnamed2163() { |
7992 var o = new core.List<api.Zone>(); | 8553 var o = new core.List<api.Zone>(); |
7993 o.add(buildZone()); | 8554 o.add(buildZone()); |
7994 o.add(buildZone()); | 8555 o.add(buildZone()); |
7995 return o; | 8556 return o; |
7996 } | 8557 } |
7997 | 8558 |
7998 checkUnnamed2375(core.List<api.Zone> o) { | 8559 checkUnnamed2163(core.List<api.Zone> o) { |
7999 unittest.expect(o, unittest.hasLength(2)); | 8560 unittest.expect(o, unittest.hasLength(2)); |
8000 checkZone(o[0]); | 8561 checkZone(o[0]); |
8001 checkZone(o[1]); | 8562 checkZone(o[1]); |
8002 } | 8563 } |
8003 | 8564 |
8004 core.int buildCounterZoneList = 0; | 8565 core.int buildCounterZoneList = 0; |
8005 buildZoneList() { | 8566 buildZoneList() { |
8006 var o = new api.ZoneList(); | 8567 var o = new api.ZoneList(); |
8007 buildCounterZoneList++; | 8568 buildCounterZoneList++; |
8008 if (buildCounterZoneList < 3) { | 8569 if (buildCounterZoneList < 3) { |
8009 o.id = "foo"; | 8570 o.id = "foo"; |
8010 o.items = buildUnnamed2375(); | 8571 o.items = buildUnnamed2163(); |
8011 o.kind = "foo"; | 8572 o.kind = "foo"; |
8012 o.nextPageToken = "foo"; | 8573 o.nextPageToken = "foo"; |
8013 o.selfLink = "foo"; | 8574 o.selfLink = "foo"; |
8014 } | 8575 } |
8015 buildCounterZoneList--; | 8576 buildCounterZoneList--; |
8016 return o; | 8577 return o; |
8017 } | 8578 } |
8018 | 8579 |
8019 checkZoneList(api.ZoneList o) { | 8580 checkZoneList(api.ZoneList o) { |
8020 buildCounterZoneList++; | 8581 buildCounterZoneList++; |
8021 if (buildCounterZoneList < 3) { | 8582 if (buildCounterZoneList < 3) { |
8022 unittest.expect(o.id, unittest.equals('foo')); | 8583 unittest.expect(o.id, unittest.equals('foo')); |
8023 checkUnnamed2375(o.items); | 8584 checkUnnamed2163(o.items); |
8024 unittest.expect(o.kind, unittest.equals('foo')); | 8585 unittest.expect(o.kind, unittest.equals('foo')); |
8025 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8586 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
8026 unittest.expect(o.selfLink, unittest.equals('foo')); | 8587 unittest.expect(o.selfLink, unittest.equals('foo')); |
8027 } | 8588 } |
8028 buildCounterZoneList--; | 8589 buildCounterZoneList--; |
8029 } | 8590 } |
8030 | 8591 |
8031 | 8592 |
8032 main() { | 8593 main() { |
8033 unittest.group("obj-schema-AccessConfig", () { | 8594 unittest.group("obj-schema-AccessConfig", () { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8212 | 8773 |
8213 unittest.group("obj-schema-BackendService", () { | 8774 unittest.group("obj-schema-BackendService", () { |
8214 unittest.test("to-json--from-json", () { | 8775 unittest.test("to-json--from-json", () { |
8215 var o = buildBackendService(); | 8776 var o = buildBackendService(); |
8216 var od = new api.BackendService.fromJson(o.toJson()); | 8777 var od = new api.BackendService.fromJson(o.toJson()); |
8217 checkBackendService(od); | 8778 checkBackendService(od); |
8218 }); | 8779 }); |
8219 }); | 8780 }); |
8220 | 8781 |
8221 | 8782 |
| 8783 unittest.group("obj-schema-BackendServiceAggregatedList", () { |
| 8784 unittest.test("to-json--from-json", () { |
| 8785 var o = buildBackendServiceAggregatedList(); |
| 8786 var od = new api.BackendServiceAggregatedList.fromJson(o.toJson()); |
| 8787 checkBackendServiceAggregatedList(od); |
| 8788 }); |
| 8789 }); |
| 8790 |
| 8791 |
8222 unittest.group("obj-schema-BackendServiceGroupHealth", () { | 8792 unittest.group("obj-schema-BackendServiceGroupHealth", () { |
8223 unittest.test("to-json--from-json", () { | 8793 unittest.test("to-json--from-json", () { |
8224 var o = buildBackendServiceGroupHealth(); | 8794 var o = buildBackendServiceGroupHealth(); |
8225 var od = new api.BackendServiceGroupHealth.fromJson(o.toJson()); | 8795 var od = new api.BackendServiceGroupHealth.fromJson(o.toJson()); |
8226 checkBackendServiceGroupHealth(od); | 8796 checkBackendServiceGroupHealth(od); |
8227 }); | 8797 }); |
8228 }); | 8798 }); |
8229 | 8799 |
8230 | 8800 |
8231 unittest.group("obj-schema-BackendServiceList", () { | 8801 unittest.group("obj-schema-BackendServiceList", () { |
8232 unittest.test("to-json--from-json", () { | 8802 unittest.test("to-json--from-json", () { |
8233 var o = buildBackendServiceList(); | 8803 var o = buildBackendServiceList(); |
8234 var od = new api.BackendServiceList.fromJson(o.toJson()); | 8804 var od = new api.BackendServiceList.fromJson(o.toJson()); |
8235 checkBackendServiceList(od); | 8805 checkBackendServiceList(od); |
8236 }); | 8806 }); |
8237 }); | 8807 }); |
8238 | 8808 |
8239 | 8809 |
| 8810 unittest.group("obj-schema-BackendServicesScopedListWarningData", () { |
| 8811 unittest.test("to-json--from-json", () { |
| 8812 var o = buildBackendServicesScopedListWarningData(); |
| 8813 var od = new api.BackendServicesScopedListWarningData.fromJson(o.toJson())
; |
| 8814 checkBackendServicesScopedListWarningData(od); |
| 8815 }); |
| 8816 }); |
| 8817 |
| 8818 |
| 8819 unittest.group("obj-schema-BackendServicesScopedListWarning", () { |
| 8820 unittest.test("to-json--from-json", () { |
| 8821 var o = buildBackendServicesScopedListWarning(); |
| 8822 var od = new api.BackendServicesScopedListWarning.fromJson(o.toJson()); |
| 8823 checkBackendServicesScopedListWarning(od); |
| 8824 }); |
| 8825 }); |
| 8826 |
| 8827 |
| 8828 unittest.group("obj-schema-BackendServicesScopedList", () { |
| 8829 unittest.test("to-json--from-json", () { |
| 8830 var o = buildBackendServicesScopedList(); |
| 8831 var od = new api.BackendServicesScopedList.fromJson(o.toJson()); |
| 8832 checkBackendServicesScopedList(od); |
| 8833 }); |
| 8834 }); |
| 8835 |
| 8836 |
8240 unittest.group("obj-schema-CacheInvalidationRule", () { | 8837 unittest.group("obj-schema-CacheInvalidationRule", () { |
8241 unittest.test("to-json--from-json", () { | 8838 unittest.test("to-json--from-json", () { |
8242 var o = buildCacheInvalidationRule(); | 8839 var o = buildCacheInvalidationRule(); |
8243 var od = new api.CacheInvalidationRule.fromJson(o.toJson()); | 8840 var od = new api.CacheInvalidationRule.fromJson(o.toJson()); |
8244 checkCacheInvalidationRule(od); | 8841 checkCacheInvalidationRule(od); |
8245 }); | 8842 }); |
8246 }); | 8843 }); |
8247 | 8844 |
8248 | 8845 |
8249 unittest.group("obj-schema-ConnectionDraining", () { | 8846 unittest.group("obj-schema-ConnectionDraining", () { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8482 | 9079 |
8483 unittest.group("obj-schema-ForwardingRulesScopedList", () { | 9080 unittest.group("obj-schema-ForwardingRulesScopedList", () { |
8484 unittest.test("to-json--from-json", () { | 9081 unittest.test("to-json--from-json", () { |
8485 var o = buildForwardingRulesScopedList(); | 9082 var o = buildForwardingRulesScopedList(); |
8486 var od = new api.ForwardingRulesScopedList.fromJson(o.toJson()); | 9083 var od = new api.ForwardingRulesScopedList.fromJson(o.toJson()); |
8487 checkForwardingRulesScopedList(od); | 9084 checkForwardingRulesScopedList(od); |
8488 }); | 9085 }); |
8489 }); | 9086 }); |
8490 | 9087 |
8491 | 9088 |
8492 unittest.group("obj-schema-HTTP2HealthCheck", () { | 9089 unittest.group("obj-schema-GuestOsFeature", () { |
8493 unittest.test("to-json--from-json", () { | 9090 unittest.test("to-json--from-json", () { |
8494 var o = buildHTTP2HealthCheck(); | 9091 var o = buildGuestOsFeature(); |
8495 var od = new api.HTTP2HealthCheck.fromJson(o.toJson()); | 9092 var od = new api.GuestOsFeature.fromJson(o.toJson()); |
8496 checkHTTP2HealthCheck(od); | 9093 checkGuestOsFeature(od); |
8497 }); | 9094 }); |
8498 }); | 9095 }); |
8499 | 9096 |
8500 | 9097 |
8501 unittest.group("obj-schema-HTTPHealthCheck", () { | 9098 unittest.group("obj-schema-HTTPHealthCheck", () { |
8502 unittest.test("to-json--from-json", () { | 9099 unittest.test("to-json--from-json", () { |
8503 var o = buildHTTPHealthCheck(); | 9100 var o = buildHTTPHealthCheck(); |
8504 var od = new api.HTTPHealthCheck.fromJson(o.toJson()); | 9101 var od = new api.HTTPHealthCheck.fromJson(o.toJson()); |
8505 checkHTTPHealthCheck(od); | 9102 checkHTTPHealthCheck(od); |
8506 }); | 9103 }); |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9256 | 9853 |
9257 unittest.group("obj-schema-Region", () { | 9854 unittest.group("obj-schema-Region", () { |
9258 unittest.test("to-json--from-json", () { | 9855 unittest.test("to-json--from-json", () { |
9259 var o = buildRegion(); | 9856 var o = buildRegion(); |
9260 var od = new api.Region.fromJson(o.toJson()); | 9857 var od = new api.Region.fromJson(o.toJson()); |
9261 checkRegion(od); | 9858 checkRegion(od); |
9262 }); | 9859 }); |
9263 }); | 9860 }); |
9264 | 9861 |
9265 | 9862 |
| 9863 unittest.group("obj-schema-RegionAutoscalerList", () { |
| 9864 unittest.test("to-json--from-json", () { |
| 9865 var o = buildRegionAutoscalerList(); |
| 9866 var od = new api.RegionAutoscalerList.fromJson(o.toJson()); |
| 9867 checkRegionAutoscalerList(od); |
| 9868 }); |
| 9869 }); |
| 9870 |
| 9871 |
| 9872 unittest.group("obj-schema-RegionInstanceGroupList", () { |
| 9873 unittest.test("to-json--from-json", () { |
| 9874 var o = buildRegionInstanceGroupList(); |
| 9875 var od = new api.RegionInstanceGroupList.fromJson(o.toJson()); |
| 9876 checkRegionInstanceGroupList(od); |
| 9877 }); |
| 9878 }); |
| 9879 |
| 9880 |
| 9881 unittest.group("obj-schema-RegionInstanceGroupManagerList", () { |
| 9882 unittest.test("to-json--from-json", () { |
| 9883 var o = buildRegionInstanceGroupManagerList(); |
| 9884 var od = new api.RegionInstanceGroupManagerList.fromJson(o.toJson()); |
| 9885 checkRegionInstanceGroupManagerList(od); |
| 9886 }); |
| 9887 }); |
| 9888 |
| 9889 |
| 9890 unittest.group("obj-schema-RegionInstanceGroupManagersAbandonInstancesRequest"
, () { |
| 9891 unittest.test("to-json--from-json", () { |
| 9892 var o = buildRegionInstanceGroupManagersAbandonInstancesRequest(); |
| 9893 var od = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fromJs
on(o.toJson()); |
| 9894 checkRegionInstanceGroupManagersAbandonInstancesRequest(od); |
| 9895 }); |
| 9896 }); |
| 9897 |
| 9898 |
| 9899 unittest.group("obj-schema-RegionInstanceGroupManagersDeleteInstancesRequest",
() { |
| 9900 unittest.test("to-json--from-json", () { |
| 9901 var o = buildRegionInstanceGroupManagersDeleteInstancesRequest(); |
| 9902 var od = new api.RegionInstanceGroupManagersDeleteInstancesRequest.fromJso
n(o.toJson()); |
| 9903 checkRegionInstanceGroupManagersDeleteInstancesRequest(od); |
| 9904 }); |
| 9905 }); |
| 9906 |
| 9907 |
| 9908 unittest.group("obj-schema-RegionInstanceGroupManagersListInstancesResponse",
() { |
| 9909 unittest.test("to-json--from-json", () { |
| 9910 var o = buildRegionInstanceGroupManagersListInstancesResponse(); |
| 9911 var od = new api.RegionInstanceGroupManagersListInstancesResponse.fromJson
(o.toJson()); |
| 9912 checkRegionInstanceGroupManagersListInstancesResponse(od); |
| 9913 }); |
| 9914 }); |
| 9915 |
| 9916 |
| 9917 unittest.group("obj-schema-RegionInstanceGroupManagersRecreateRequest", () { |
| 9918 unittest.test("to-json--from-json", () { |
| 9919 var o = buildRegionInstanceGroupManagersRecreateRequest(); |
| 9920 var od = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(o.toJ
son()); |
| 9921 checkRegionInstanceGroupManagersRecreateRequest(od); |
| 9922 }); |
| 9923 }); |
| 9924 |
| 9925 |
| 9926 unittest.group("obj-schema-RegionInstanceGroupManagersSetTargetPoolsRequest",
() { |
| 9927 unittest.test("to-json--from-json", () { |
| 9928 var o = buildRegionInstanceGroupManagersSetTargetPoolsRequest(); |
| 9929 var od = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson
(o.toJson()); |
| 9930 checkRegionInstanceGroupManagersSetTargetPoolsRequest(od); |
| 9931 }); |
| 9932 }); |
| 9933 |
| 9934 |
| 9935 unittest.group("obj-schema-RegionInstanceGroupManagersSetTemplateRequest", ()
{ |
| 9936 unittest.test("to-json--from-json", () { |
| 9937 var o = buildRegionInstanceGroupManagersSetTemplateRequest(); |
| 9938 var od = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson(o.
toJson()); |
| 9939 checkRegionInstanceGroupManagersSetTemplateRequest(od); |
| 9940 }); |
| 9941 }); |
| 9942 |
| 9943 |
| 9944 unittest.group("obj-schema-RegionInstanceGroupsListInstances", () { |
| 9945 unittest.test("to-json--from-json", () { |
| 9946 var o = buildRegionInstanceGroupsListInstances(); |
| 9947 var od = new api.RegionInstanceGroupsListInstances.fromJson(o.toJson()); |
| 9948 checkRegionInstanceGroupsListInstances(od); |
| 9949 }); |
| 9950 }); |
| 9951 |
| 9952 |
| 9953 unittest.group("obj-schema-RegionInstanceGroupsListInstancesRequest", () { |
| 9954 unittest.test("to-json--from-json", () { |
| 9955 var o = buildRegionInstanceGroupsListInstancesRequest(); |
| 9956 var od = new api.RegionInstanceGroupsListInstancesRequest.fromJson(o.toJso
n()); |
| 9957 checkRegionInstanceGroupsListInstancesRequest(od); |
| 9958 }); |
| 9959 }); |
| 9960 |
| 9961 |
| 9962 unittest.group("obj-schema-RegionInstanceGroupsSetNamedPortsRequest", () { |
| 9963 unittest.test("to-json--from-json", () { |
| 9964 var o = buildRegionInstanceGroupsSetNamedPortsRequest(); |
| 9965 var od = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(o.toJso
n()); |
| 9966 checkRegionInstanceGroupsSetNamedPortsRequest(od); |
| 9967 }); |
| 9968 }); |
| 9969 |
| 9970 |
9266 unittest.group("obj-schema-RegionList", () { | 9971 unittest.group("obj-schema-RegionList", () { |
9267 unittest.test("to-json--from-json", () { | 9972 unittest.test("to-json--from-json", () { |
9268 var o = buildRegionList(); | 9973 var o = buildRegionList(); |
9269 var od = new api.RegionList.fromJson(o.toJson()); | 9974 var od = new api.RegionList.fromJson(o.toJson()); |
9270 checkRegionList(od); | 9975 checkRegionList(od); |
9271 }); | 9976 }); |
9272 }); | 9977 }); |
9273 | 9978 |
9274 | 9979 |
9275 unittest.group("obj-schema-ResourceGroupReference", () { | 9980 unittest.group("obj-schema-ResourceGroupReference", () { |
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10048 | 10753 |
10049 unittest.group("resource-AddressesResourceApi", () { | 10754 unittest.group("resource-AddressesResourceApi", () { |
10050 unittest.test("method--aggregatedList", () { | 10755 unittest.test("method--aggregatedList", () { |
10051 | 10756 |
10052 var mock = new HttpServerMock(); | 10757 var mock = new HttpServerMock(); |
10053 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 10758 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
10054 var arg_project = "foo"; | 10759 var arg_project = "foo"; |
10055 var arg_filter = "foo"; | 10760 var arg_filter = "foo"; |
10056 var arg_maxResults = 42; | 10761 var arg_maxResults = 42; |
10057 var arg_orderBy = "foo"; | 10762 var arg_orderBy = "foo"; |
| 10763 var arg_pageToken = "foo"; |
| 10764 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10765 var path = (req.url).path; |
| 10766 var pathOffset = 0; |
| 10767 var index; |
| 10768 var subPart; |
| 10769 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10770 pathOffset += 1; |
| 10771 |
| 10772 var query = (req.url).query; |
| 10773 var queryOffset = 0; |
| 10774 var queryMap = {}; |
| 10775 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10776 parseBool(n) { |
| 10777 if (n == "true") return true; |
| 10778 if (n == "false") return false; |
| 10779 if (n == null) return null; |
| 10780 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10781 } |
| 10782 if (query.length > 0) { |
| 10783 for (var part in query.split("&")) { |
| 10784 var keyvalue = part.split("="); |
| 10785 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10786 } |
| 10787 } |
| 10788 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10789 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10790 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 10791 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10792 |
| 10793 |
| 10794 var h = { |
| 10795 "content-type" : "application/json; charset=utf-8", |
| 10796 }; |
| 10797 var resp = convert.JSON.encode(buildAddressAggregatedList()); |
| 10798 return new async.Future.value(stringResponse(200, h, resp)); |
| 10799 }), true); |
| 10800 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.AddressAggregatedList response) { |
| 10801 checkAddressAggregatedList(response); |
| 10802 }))); |
| 10803 }); |
| 10804 |
| 10805 unittest.test("method--delete", () { |
| 10806 |
| 10807 var mock = new HttpServerMock(); |
| 10808 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 10809 var arg_project = "foo"; |
| 10810 var arg_region = "foo"; |
| 10811 var arg_address = "foo"; |
| 10812 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10813 var path = (req.url).path; |
| 10814 var pathOffset = 0; |
| 10815 var index; |
| 10816 var subPart; |
| 10817 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10818 pathOffset += 1; |
| 10819 |
| 10820 var query = (req.url).query; |
| 10821 var queryOffset = 0; |
| 10822 var queryMap = {}; |
| 10823 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10824 parseBool(n) { |
| 10825 if (n == "true") return true; |
| 10826 if (n == "false") return false; |
| 10827 if (n == null) return null; |
| 10828 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10829 } |
| 10830 if (query.length > 0) { |
| 10831 for (var part in query.split("&")) { |
| 10832 var keyvalue = part.split("="); |
| 10833 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10834 } |
| 10835 } |
| 10836 |
| 10837 |
| 10838 var h = { |
| 10839 "content-type" : "application/json; charset=utf-8", |
| 10840 }; |
| 10841 var resp = convert.JSON.encode(buildOperation()); |
| 10842 return new async.Future.value(stringResponse(200, h, resp)); |
| 10843 }), true); |
| 10844 res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync
(((api.Operation response) { |
| 10845 checkOperation(response); |
| 10846 }))); |
| 10847 }); |
| 10848 |
| 10849 unittest.test("method--get", () { |
| 10850 |
| 10851 var mock = new HttpServerMock(); |
| 10852 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 10853 var arg_project = "foo"; |
| 10854 var arg_region = "foo"; |
| 10855 var arg_address = "foo"; |
| 10856 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10857 var path = (req.url).path; |
| 10858 var pathOffset = 0; |
| 10859 var index; |
| 10860 var subPart; |
| 10861 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10862 pathOffset += 1; |
| 10863 |
| 10864 var query = (req.url).query; |
| 10865 var queryOffset = 0; |
| 10866 var queryMap = {}; |
| 10867 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10868 parseBool(n) { |
| 10869 if (n == "true") return true; |
| 10870 if (n == "false") return false; |
| 10871 if (n == null) return null; |
| 10872 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10873 } |
| 10874 if (query.length > 0) { |
| 10875 for (var part in query.split("&")) { |
| 10876 var keyvalue = part.split("="); |
| 10877 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10878 } |
| 10879 } |
| 10880 |
| 10881 |
| 10882 var h = { |
| 10883 "content-type" : "application/json; charset=utf-8", |
| 10884 }; |
| 10885 var resp = convert.JSON.encode(buildAddress()); |
| 10886 return new async.Future.value(stringResponse(200, h, resp)); |
| 10887 }), true); |
| 10888 res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((
api.Address response) { |
| 10889 checkAddress(response); |
| 10890 }))); |
| 10891 }); |
| 10892 |
| 10893 unittest.test("method--insert", () { |
| 10894 |
| 10895 var mock = new HttpServerMock(); |
| 10896 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 10897 var arg_request = buildAddress(); |
| 10898 var arg_project = "foo"; |
| 10899 var arg_region = "foo"; |
| 10900 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10901 var obj = new api.Address.fromJson(json); |
| 10902 checkAddress(obj); |
| 10903 |
| 10904 var path = (req.url).path; |
| 10905 var pathOffset = 0; |
| 10906 var index; |
| 10907 var subPart; |
| 10908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10909 pathOffset += 1; |
| 10910 |
| 10911 var query = (req.url).query; |
| 10912 var queryOffset = 0; |
| 10913 var queryMap = {}; |
| 10914 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10915 parseBool(n) { |
| 10916 if (n == "true") return true; |
| 10917 if (n == "false") return false; |
| 10918 if (n == null) return null; |
| 10919 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10920 } |
| 10921 if (query.length > 0) { |
| 10922 for (var part in query.split("&")) { |
| 10923 var keyvalue = part.split("="); |
| 10924 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10925 } |
| 10926 } |
| 10927 |
| 10928 |
| 10929 var h = { |
| 10930 "content-type" : "application/json; charset=utf-8", |
| 10931 }; |
| 10932 var resp = convert.JSON.encode(buildOperation()); |
| 10933 return new async.Future.value(stringResponse(200, h, resp)); |
| 10934 }), true); |
| 10935 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
| 10936 checkOperation(response); |
| 10937 }))); |
| 10938 }); |
| 10939 |
| 10940 unittest.test("method--list", () { |
| 10941 |
| 10942 var mock = new HttpServerMock(); |
| 10943 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 10944 var arg_project = "foo"; |
| 10945 var arg_region = "foo"; |
| 10946 var arg_filter = "foo"; |
| 10947 var arg_maxResults = 42; |
| 10948 var arg_orderBy = "foo"; |
| 10949 var arg_pageToken = "foo"; |
| 10950 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10951 var path = (req.url).path; |
| 10952 var pathOffset = 0; |
| 10953 var index; |
| 10954 var subPart; |
| 10955 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10956 pathOffset += 1; |
| 10957 |
| 10958 var query = (req.url).query; |
| 10959 var queryOffset = 0; |
| 10960 var queryMap = {}; |
| 10961 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10962 parseBool(n) { |
| 10963 if (n == "true") return true; |
| 10964 if (n == "false") return false; |
| 10965 if (n == null) return null; |
| 10966 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10967 } |
| 10968 if (query.length > 0) { |
| 10969 for (var part in query.split("&")) { |
| 10970 var keyvalue = part.split("="); |
| 10971 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10972 } |
| 10973 } |
| 10974 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10975 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10976 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 10977 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10978 |
| 10979 |
| 10980 var h = { |
| 10981 "content-type" : "application/json; charset=utf-8", |
| 10982 }; |
| 10983 var resp = convert.JSON.encode(buildAddressList()); |
| 10984 return new async.Future.value(stringResponse(200, h, resp)); |
| 10985 }), true); |
| 10986 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.AddressList response) { |
| 10987 checkAddressList(response); |
| 10988 }))); |
| 10989 }); |
| 10990 |
| 10991 }); |
| 10992 |
| 10993 |
| 10994 unittest.group("resource-AutoscalersResourceApi", () { |
| 10995 unittest.test("method--aggregatedList", () { |
| 10996 |
| 10997 var mock = new HttpServerMock(); |
| 10998 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 10999 var arg_project = "foo"; |
| 11000 var arg_filter = "foo"; |
| 11001 var arg_maxResults = 42; |
| 11002 var arg_orderBy = "foo"; |
| 11003 var arg_pageToken = "foo"; |
| 11004 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11005 var path = (req.url).path; |
| 11006 var pathOffset = 0; |
| 11007 var index; |
| 11008 var subPart; |
| 11009 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11010 pathOffset += 1; |
| 11011 |
| 11012 var query = (req.url).query; |
| 11013 var queryOffset = 0; |
| 11014 var queryMap = {}; |
| 11015 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11016 parseBool(n) { |
| 11017 if (n == "true") return true; |
| 11018 if (n == "false") return false; |
| 11019 if (n == null) return null; |
| 11020 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11021 } |
| 11022 if (query.length > 0) { |
| 11023 for (var part in query.split("&")) { |
| 11024 var keyvalue = part.split("="); |
| 11025 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11026 } |
| 11027 } |
| 11028 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11029 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11030 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11031 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11032 |
| 11033 |
| 11034 var h = { |
| 11035 "content-type" : "application/json; charset=utf-8", |
| 11036 }; |
| 11037 var resp = convert.JSON.encode(buildAutoscalerAggregatedList()); |
| 11038 return new async.Future.value(stringResponse(200, h, resp)); |
| 11039 }), true); |
| 11040 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.AutoscalerAggregatedList response) { |
| 11041 checkAutoscalerAggregatedList(response); |
| 11042 }))); |
| 11043 }); |
| 11044 |
| 11045 unittest.test("method--delete", () { |
| 11046 |
| 11047 var mock = new HttpServerMock(); |
| 11048 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 11049 var arg_project = "foo"; |
| 11050 var arg_zone = "foo"; |
| 11051 var arg_autoscaler = "foo"; |
| 11052 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11053 var path = (req.url).path; |
| 11054 var pathOffset = 0; |
| 11055 var index; |
| 11056 var subPart; |
| 11057 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11058 pathOffset += 1; |
| 11059 |
| 11060 var query = (req.url).query; |
| 11061 var queryOffset = 0; |
| 11062 var queryMap = {}; |
| 11063 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11064 parseBool(n) { |
| 11065 if (n == "true") return true; |
| 11066 if (n == "false") return false; |
| 11067 if (n == null) return null; |
| 11068 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11069 } |
| 11070 if (query.length > 0) { |
| 11071 for (var part in query.split("&")) { |
| 11072 var keyvalue = part.split("="); |
| 11073 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11074 } |
| 11075 } |
| 11076 |
| 11077 |
| 11078 var h = { |
| 11079 "content-type" : "application/json; charset=utf-8", |
| 11080 }; |
| 11081 var resp = convert.JSON.encode(buildOperation()); |
| 11082 return new async.Future.value(stringResponse(200, h, resp)); |
| 11083 }), true); |
| 11084 res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsyn
c(((api.Operation response) { |
| 11085 checkOperation(response); |
| 11086 }))); |
| 11087 }); |
| 11088 |
| 11089 unittest.test("method--get", () { |
| 11090 |
| 11091 var mock = new HttpServerMock(); |
| 11092 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 11093 var arg_project = "foo"; |
| 11094 var arg_zone = "foo"; |
| 11095 var arg_autoscaler = "foo"; |
| 11096 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11097 var path = (req.url).path; |
| 11098 var pathOffset = 0; |
| 11099 var index; |
| 11100 var subPart; |
| 11101 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11102 pathOffset += 1; |
| 11103 |
| 11104 var query = (req.url).query; |
| 11105 var queryOffset = 0; |
| 11106 var queryMap = {}; |
| 11107 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11108 parseBool(n) { |
| 11109 if (n == "true") return true; |
| 11110 if (n == "false") return false; |
| 11111 if (n == null) return null; |
| 11112 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11113 } |
| 11114 if (query.length > 0) { |
| 11115 for (var part in query.split("&")) { |
| 11116 var keyvalue = part.split("="); |
| 11117 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11118 } |
| 11119 } |
| 11120 |
| 11121 |
| 11122 var h = { |
| 11123 "content-type" : "application/json; charset=utf-8", |
| 11124 }; |
| 11125 var resp = convert.JSON.encode(buildAutoscaler()); |
| 11126 return new async.Future.value(stringResponse(200, h, resp)); |
| 11127 }), true); |
| 11128 res.get(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync((
(api.Autoscaler response) { |
| 11129 checkAutoscaler(response); |
| 11130 }))); |
| 11131 }); |
| 11132 |
| 11133 unittest.test("method--insert", () { |
| 11134 |
| 11135 var mock = new HttpServerMock(); |
| 11136 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 11137 var arg_request = buildAutoscaler(); |
| 11138 var arg_project = "foo"; |
| 11139 var arg_zone = "foo"; |
| 11140 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11141 var obj = new api.Autoscaler.fromJson(json); |
| 11142 checkAutoscaler(obj); |
| 11143 |
| 11144 var path = (req.url).path; |
| 11145 var pathOffset = 0; |
| 11146 var index; |
| 11147 var subPart; |
| 11148 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11149 pathOffset += 1; |
| 11150 |
| 11151 var query = (req.url).query; |
| 11152 var queryOffset = 0; |
| 11153 var queryMap = {}; |
| 11154 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11155 parseBool(n) { |
| 11156 if (n == "true") return true; |
| 11157 if (n == "false") return false; |
| 11158 if (n == null) return null; |
| 11159 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11160 } |
| 11161 if (query.length > 0) { |
| 11162 for (var part in query.split("&")) { |
| 11163 var keyvalue = part.split("="); |
| 11164 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11165 } |
| 11166 } |
| 11167 |
| 11168 |
| 11169 var h = { |
| 11170 "content-type" : "application/json; charset=utf-8", |
| 11171 }; |
| 11172 var resp = convert.JSON.encode(buildOperation()); |
| 11173 return new async.Future.value(stringResponse(200, h, resp)); |
| 11174 }), true); |
| 11175 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
| 11176 checkOperation(response); |
| 11177 }))); |
| 11178 }); |
| 11179 |
| 11180 unittest.test("method--list", () { |
| 11181 |
| 11182 var mock = new HttpServerMock(); |
| 11183 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 11184 var arg_project = "foo"; |
| 11185 var arg_zone = "foo"; |
| 11186 var arg_filter = "foo"; |
| 11187 var arg_maxResults = 42; |
| 11188 var arg_orderBy = "foo"; |
| 11189 var arg_pageToken = "foo"; |
| 11190 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11191 var path = (req.url).path; |
| 11192 var pathOffset = 0; |
| 11193 var index; |
| 11194 var subPart; |
| 11195 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11196 pathOffset += 1; |
| 11197 |
| 11198 var query = (req.url).query; |
| 11199 var queryOffset = 0; |
| 11200 var queryMap = {}; |
| 11201 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11202 parseBool(n) { |
| 11203 if (n == "true") return true; |
| 11204 if (n == "false") return false; |
| 11205 if (n == null) return null; |
| 11206 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11207 } |
| 11208 if (query.length > 0) { |
| 11209 for (var part in query.split("&")) { |
| 11210 var keyvalue = part.split("="); |
| 11211 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11212 } |
| 11213 } |
| 11214 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11215 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11216 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11217 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11218 |
| 11219 |
| 11220 var h = { |
| 11221 "content-type" : "application/json; charset=utf-8", |
| 11222 }; |
| 11223 var resp = convert.JSON.encode(buildAutoscalerList()); |
| 11224 return new async.Future.value(stringResponse(200, h, resp)); |
| 11225 }), true); |
| 11226 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.AutoscalerList response) { |
| 11227 checkAutoscalerList(response); |
| 11228 }))); |
| 11229 }); |
| 11230 |
| 11231 unittest.test("method--patch", () { |
| 11232 |
| 11233 var mock = new HttpServerMock(); |
| 11234 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 11235 var arg_request = buildAutoscaler(); |
| 11236 var arg_project = "foo"; |
| 11237 var arg_zone = "foo"; |
| 11238 var arg_autoscaler = "foo"; |
| 11239 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11240 var obj = new api.Autoscaler.fromJson(json); |
| 11241 checkAutoscaler(obj); |
| 11242 |
| 11243 var path = (req.url).path; |
| 11244 var pathOffset = 0; |
| 11245 var index; |
| 11246 var subPart; |
| 11247 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11248 pathOffset += 1; |
| 11249 |
| 11250 var query = (req.url).query; |
| 11251 var queryOffset = 0; |
| 11252 var queryMap = {}; |
| 11253 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11254 parseBool(n) { |
| 11255 if (n == "true") return true; |
| 11256 if (n == "false") return false; |
| 11257 if (n == null) return null; |
| 11258 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11259 } |
| 11260 if (query.length > 0) { |
| 11261 for (var part in query.split("&")) { |
| 11262 var keyvalue = part.split("="); |
| 11263 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11264 } |
| 11265 } |
| 11266 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
| 11267 |
| 11268 |
| 11269 var h = { |
| 11270 "content-type" : "application/json; charset=utf-8", |
| 11271 }; |
| 11272 var resp = convert.JSON.encode(buildOperation()); |
| 11273 return new async.Future.value(stringResponse(200, h, resp)); |
| 11274 }), true); |
| 11275 res.patch(arg_request, arg_project, arg_zone, arg_autoscaler).then(unittes
t.expectAsync(((api.Operation response) { |
| 11276 checkOperation(response); |
| 11277 }))); |
| 11278 }); |
| 11279 |
| 11280 unittest.test("method--update", () { |
| 11281 |
| 11282 var mock = new HttpServerMock(); |
| 11283 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 11284 var arg_request = buildAutoscaler(); |
| 11285 var arg_project = "foo"; |
| 11286 var arg_zone = "foo"; |
| 11287 var arg_autoscaler = "foo"; |
| 11288 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11289 var obj = new api.Autoscaler.fromJson(json); |
| 11290 checkAutoscaler(obj); |
| 11291 |
| 11292 var path = (req.url).path; |
| 11293 var pathOffset = 0; |
| 11294 var index; |
| 11295 var subPart; |
| 11296 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11297 pathOffset += 1; |
| 11298 |
| 11299 var query = (req.url).query; |
| 11300 var queryOffset = 0; |
| 11301 var queryMap = {}; |
| 11302 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11303 parseBool(n) { |
| 11304 if (n == "true") return true; |
| 11305 if (n == "false") return false; |
| 11306 if (n == null) return null; |
| 11307 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11308 } |
| 11309 if (query.length > 0) { |
| 11310 for (var part in query.split("&")) { |
| 11311 var keyvalue = part.split("="); |
| 11312 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11313 } |
| 11314 } |
| 11315 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
| 11316 |
| 11317 |
| 11318 var h = { |
| 11319 "content-type" : "application/json; charset=utf-8", |
| 11320 }; |
| 11321 var resp = convert.JSON.encode(buildOperation()); |
| 11322 return new async.Future.value(stringResponse(200, h, resp)); |
| 11323 }), true); |
| 11324 res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler)
.then(unittest.expectAsync(((api.Operation response) { |
| 11325 checkOperation(response); |
| 11326 }))); |
| 11327 }); |
| 11328 |
| 11329 }); |
| 11330 |
| 11331 |
| 11332 unittest.group("resource-BackendServicesResourceApi", () { |
| 11333 unittest.test("method--aggregatedList", () { |
| 11334 |
| 11335 var mock = new HttpServerMock(); |
| 11336 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11337 var arg_project = "foo"; |
| 11338 var arg_filter = "foo"; |
| 11339 var arg_maxResults = 42; |
| 11340 var arg_orderBy = "foo"; |
| 11341 var arg_pageToken = "foo"; |
| 11342 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11343 var path = (req.url).path; |
| 11344 var pathOffset = 0; |
| 11345 var index; |
| 11346 var subPart; |
| 11347 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11348 pathOffset += 1; |
| 11349 |
| 11350 var query = (req.url).query; |
| 11351 var queryOffset = 0; |
| 11352 var queryMap = {}; |
| 11353 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11354 parseBool(n) { |
| 11355 if (n == "true") return true; |
| 11356 if (n == "false") return false; |
| 11357 if (n == null) return null; |
| 11358 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11359 } |
| 11360 if (query.length > 0) { |
| 11361 for (var part in query.split("&")) { |
| 11362 var keyvalue = part.split("="); |
| 11363 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11364 } |
| 11365 } |
| 11366 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11367 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11368 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11369 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11370 |
| 11371 |
| 11372 var h = { |
| 11373 "content-type" : "application/json; charset=utf-8", |
| 11374 }; |
| 11375 var resp = convert.JSON.encode(buildBackendServiceAggregatedList()); |
| 11376 return new async.Future.value(stringResponse(200, h, resp)); |
| 11377 }), true); |
| 11378 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.BackendServiceAggregatedList response) { |
| 11379 checkBackendServiceAggregatedList(response); |
| 11380 }))); |
| 11381 }); |
| 11382 |
| 11383 unittest.test("method--delete", () { |
| 11384 |
| 11385 var mock = new HttpServerMock(); |
| 11386 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11387 var arg_project = "foo"; |
| 11388 var arg_backendService = "foo"; |
| 11389 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11390 var path = (req.url).path; |
| 11391 var pathOffset = 0; |
| 11392 var index; |
| 11393 var subPart; |
| 11394 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11395 pathOffset += 1; |
| 11396 |
| 11397 var query = (req.url).query; |
| 11398 var queryOffset = 0; |
| 11399 var queryMap = {}; |
| 11400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11401 parseBool(n) { |
| 11402 if (n == "true") return true; |
| 11403 if (n == "false") return false; |
| 11404 if (n == null) return null; |
| 11405 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11406 } |
| 11407 if (query.length > 0) { |
| 11408 for (var part in query.split("&")) { |
| 11409 var keyvalue = part.split("="); |
| 11410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11411 } |
| 11412 } |
| 11413 |
| 11414 |
| 11415 var h = { |
| 11416 "content-type" : "application/json; charset=utf-8", |
| 11417 }; |
| 11418 var resp = convert.JSON.encode(buildOperation()); |
| 11419 return new async.Future.value(stringResponse(200, h, resp)); |
| 11420 }), true); |
| 11421 res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((ap
i.Operation response) { |
| 11422 checkOperation(response); |
| 11423 }))); |
| 11424 }); |
| 11425 |
| 11426 unittest.test("method--get", () { |
| 11427 |
| 11428 var mock = new HttpServerMock(); |
| 11429 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11430 var arg_project = "foo"; |
| 11431 var arg_backendService = "foo"; |
| 11432 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11433 var path = (req.url).path; |
| 11434 var pathOffset = 0; |
| 11435 var index; |
| 11436 var subPart; |
| 11437 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11438 pathOffset += 1; |
| 11439 |
| 11440 var query = (req.url).query; |
| 11441 var queryOffset = 0; |
| 11442 var queryMap = {}; |
| 11443 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11444 parseBool(n) { |
| 11445 if (n == "true") return true; |
| 11446 if (n == "false") return false; |
| 11447 if (n == null) return null; |
| 11448 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11449 } |
| 11450 if (query.length > 0) { |
| 11451 for (var part in query.split("&")) { |
| 11452 var keyvalue = part.split("="); |
| 11453 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11454 } |
| 11455 } |
| 11456 |
| 11457 |
| 11458 var h = { |
| 11459 "content-type" : "application/json; charset=utf-8", |
| 11460 }; |
| 11461 var resp = convert.JSON.encode(buildBackendService()); |
| 11462 return new async.Future.value(stringResponse(200, h, resp)); |
| 11463 }), true); |
| 11464 res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.B
ackendService response) { |
| 11465 checkBackendService(response); |
| 11466 }))); |
| 11467 }); |
| 11468 |
| 11469 unittest.test("method--getHealth", () { |
| 11470 |
| 11471 var mock = new HttpServerMock(); |
| 11472 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11473 var arg_request = buildResourceGroupReference(); |
| 11474 var arg_project = "foo"; |
| 11475 var arg_backendService = "foo"; |
| 11476 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11477 var obj = new api.ResourceGroupReference.fromJson(json); |
| 11478 checkResourceGroupReference(obj); |
| 11479 |
| 11480 var path = (req.url).path; |
| 11481 var pathOffset = 0; |
| 11482 var index; |
| 11483 var subPart; |
| 11484 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11485 pathOffset += 1; |
| 11486 |
| 11487 var query = (req.url).query; |
| 11488 var queryOffset = 0; |
| 11489 var queryMap = {}; |
| 11490 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11491 parseBool(n) { |
| 11492 if (n == "true") return true; |
| 11493 if (n == "false") return false; |
| 11494 if (n == null) return null; |
| 11495 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11496 } |
| 11497 if (query.length > 0) { |
| 11498 for (var part in query.split("&")) { |
| 11499 var keyvalue = part.split("="); |
| 11500 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11501 } |
| 11502 } |
| 11503 |
| 11504 |
| 11505 var h = { |
| 11506 "content-type" : "application/json; charset=utf-8", |
| 11507 }; |
| 11508 var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); |
| 11509 return new async.Future.value(stringResponse(200, h, resp)); |
| 11510 }), true); |
| 11511 res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.
expectAsync(((api.BackendServiceGroupHealth response) { |
| 11512 checkBackendServiceGroupHealth(response); |
| 11513 }))); |
| 11514 }); |
| 11515 |
| 11516 unittest.test("method--insert", () { |
| 11517 |
| 11518 var mock = new HttpServerMock(); |
| 11519 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11520 var arg_request = buildBackendService(); |
| 11521 var arg_project = "foo"; |
| 11522 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11523 var obj = new api.BackendService.fromJson(json); |
| 11524 checkBackendService(obj); |
| 11525 |
| 11526 var path = (req.url).path; |
| 11527 var pathOffset = 0; |
| 11528 var index; |
| 11529 var subPart; |
| 11530 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11531 pathOffset += 1; |
| 11532 |
| 11533 var query = (req.url).query; |
| 11534 var queryOffset = 0; |
| 11535 var queryMap = {}; |
| 11536 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11537 parseBool(n) { |
| 11538 if (n == "true") return true; |
| 11539 if (n == "false") return false; |
| 11540 if (n == null) return null; |
| 11541 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11542 } |
| 11543 if (query.length > 0) { |
| 11544 for (var part in query.split("&")) { |
| 11545 var keyvalue = part.split("="); |
| 11546 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11547 } |
| 11548 } |
| 11549 |
| 11550 |
| 11551 var h = { |
| 11552 "content-type" : "application/json; charset=utf-8", |
| 11553 }; |
| 11554 var resp = convert.JSON.encode(buildOperation()); |
| 11555 return new async.Future.value(stringResponse(200, h, resp)); |
| 11556 }), true); |
| 11557 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 11558 checkOperation(response); |
| 11559 }))); |
| 11560 }); |
| 11561 |
| 11562 unittest.test("method--list", () { |
| 11563 |
| 11564 var mock = new HttpServerMock(); |
| 11565 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11566 var arg_project = "foo"; |
| 11567 var arg_filter = "foo"; |
| 11568 var arg_maxResults = 42; |
| 11569 var arg_orderBy = "foo"; |
| 11570 var arg_pageToken = "foo"; |
| 11571 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11572 var path = (req.url).path; |
| 11573 var pathOffset = 0; |
| 11574 var index; |
| 11575 var subPart; |
| 11576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11577 pathOffset += 1; |
| 11578 |
| 11579 var query = (req.url).query; |
| 11580 var queryOffset = 0; |
| 11581 var queryMap = {}; |
| 11582 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11583 parseBool(n) { |
| 11584 if (n == "true") return true; |
| 11585 if (n == "false") return false; |
| 11586 if (n == null) return null; |
| 11587 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11588 } |
| 11589 if (query.length > 0) { |
| 11590 for (var part in query.split("&")) { |
| 11591 var keyvalue = part.split("="); |
| 11592 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11593 } |
| 11594 } |
| 11595 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11596 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11597 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11598 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11599 |
| 11600 |
| 11601 var h = { |
| 11602 "content-type" : "application/json; charset=utf-8", |
| 11603 }; |
| 11604 var resp = convert.JSON.encode(buildBackendServiceList()); |
| 11605 return new async.Future.value(stringResponse(200, h, resp)); |
| 11606 }), true); |
| 11607 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Back
endServiceList response) { |
| 11608 checkBackendServiceList(response); |
| 11609 }))); |
| 11610 }); |
| 11611 |
| 11612 unittest.test("method--patch", () { |
| 11613 |
| 11614 var mock = new HttpServerMock(); |
| 11615 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11616 var arg_request = buildBackendService(); |
| 11617 var arg_project = "foo"; |
| 11618 var arg_backendService = "foo"; |
| 11619 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11620 var obj = new api.BackendService.fromJson(json); |
| 11621 checkBackendService(obj); |
| 11622 |
| 11623 var path = (req.url).path; |
| 11624 var pathOffset = 0; |
| 11625 var index; |
| 11626 var subPart; |
| 11627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11628 pathOffset += 1; |
| 11629 |
| 11630 var query = (req.url).query; |
| 11631 var queryOffset = 0; |
| 11632 var queryMap = {}; |
| 11633 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11634 parseBool(n) { |
| 11635 if (n == "true") return true; |
| 11636 if (n == "false") return false; |
| 11637 if (n == null) return null; |
| 11638 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11639 } |
| 11640 if (query.length > 0) { |
| 11641 for (var part in query.split("&")) { |
| 11642 var keyvalue = part.split("="); |
| 11643 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11644 } |
| 11645 } |
| 11646 |
| 11647 |
| 11648 var h = { |
| 11649 "content-type" : "application/json; charset=utf-8", |
| 11650 }; |
| 11651 var resp = convert.JSON.encode(buildOperation()); |
| 11652 return new async.Future.value(stringResponse(200, h, resp)); |
| 11653 }), true); |
| 11654 res.patch(arg_request, arg_project, arg_backendService).then(unittest.expe
ctAsync(((api.Operation response) { |
| 11655 checkOperation(response); |
| 11656 }))); |
| 11657 }); |
| 11658 |
| 11659 unittest.test("method--update", () { |
| 11660 |
| 11661 var mock = new HttpServerMock(); |
| 11662 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 11663 var arg_request = buildBackendService(); |
| 11664 var arg_project = "foo"; |
| 11665 var arg_backendService = "foo"; |
| 11666 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11667 var obj = new api.BackendService.fromJson(json); |
| 11668 checkBackendService(obj); |
| 11669 |
| 11670 var path = (req.url).path; |
| 11671 var pathOffset = 0; |
| 11672 var index; |
| 11673 var subPart; |
| 11674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11675 pathOffset += 1; |
| 11676 |
| 11677 var query = (req.url).query; |
| 11678 var queryOffset = 0; |
| 11679 var queryMap = {}; |
| 11680 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11681 parseBool(n) { |
| 11682 if (n == "true") return true; |
| 11683 if (n == "false") return false; |
| 11684 if (n == null) return null; |
| 11685 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11686 } |
| 11687 if (query.length > 0) { |
| 11688 for (var part in query.split("&")) { |
| 11689 var keyvalue = part.split("="); |
| 11690 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11691 } |
| 11692 } |
| 11693 |
| 11694 |
| 11695 var h = { |
| 11696 "content-type" : "application/json; charset=utf-8", |
| 11697 }; |
| 11698 var resp = convert.JSON.encode(buildOperation()); |
| 11699 return new async.Future.value(stringResponse(200, h, resp)); |
| 11700 }), true); |
| 11701 res.update(arg_request, arg_project, arg_backendService).then(unittest.exp
ectAsync(((api.Operation response) { |
| 11702 checkOperation(response); |
| 11703 }))); |
| 11704 }); |
| 11705 |
| 11706 }); |
| 11707 |
| 11708 |
| 11709 unittest.group("resource-DiskTypesResourceApi", () { |
| 11710 unittest.test("method--aggregatedList", () { |
| 11711 |
| 11712 var mock = new HttpServerMock(); |
| 11713 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; |
| 11714 var arg_project = "foo"; |
| 11715 var arg_filter = "foo"; |
| 11716 var arg_maxResults = 42; |
| 11717 var arg_orderBy = "foo"; |
| 11718 var arg_pageToken = "foo"; |
| 11719 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11720 var path = (req.url).path; |
| 11721 var pathOffset = 0; |
| 11722 var index; |
| 11723 var subPart; |
| 11724 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11725 pathOffset += 1; |
| 11726 |
| 11727 var query = (req.url).query; |
| 11728 var queryOffset = 0; |
| 11729 var queryMap = {}; |
| 11730 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11731 parseBool(n) { |
| 11732 if (n == "true") return true; |
| 11733 if (n == "false") return false; |
| 11734 if (n == null) return null; |
| 11735 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11736 } |
| 11737 if (query.length > 0) { |
| 11738 for (var part in query.split("&")) { |
| 11739 var keyvalue = part.split("="); |
| 11740 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11741 } |
| 11742 } |
| 11743 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11744 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11745 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11746 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11747 |
| 11748 |
| 11749 var h = { |
| 11750 "content-type" : "application/json; charset=utf-8", |
| 11751 }; |
| 11752 var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); |
| 11753 return new async.Future.value(stringResponse(200, h, resp)); |
| 11754 }), true); |
| 11755 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskTypeAggregatedList response) { |
| 11756 checkDiskTypeAggregatedList(response); |
| 11757 }))); |
| 11758 }); |
| 11759 |
| 11760 unittest.test("method--get", () { |
| 11761 |
| 11762 var mock = new HttpServerMock(); |
| 11763 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; |
| 11764 var arg_project = "foo"; |
| 11765 var arg_zone = "foo"; |
| 11766 var arg_diskType = "foo"; |
| 11767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11768 var path = (req.url).path; |
| 11769 var pathOffset = 0; |
| 11770 var index; |
| 11771 var subPart; |
| 11772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11773 pathOffset += 1; |
| 11774 |
| 11775 var query = (req.url).query; |
| 11776 var queryOffset = 0; |
| 11777 var queryMap = {}; |
| 11778 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11779 parseBool(n) { |
| 11780 if (n == "true") return true; |
| 11781 if (n == "false") return false; |
| 11782 if (n == null) return null; |
| 11783 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11784 } |
| 11785 if (query.length > 0) { |
| 11786 for (var part in query.split("&")) { |
| 11787 var keyvalue = part.split("="); |
| 11788 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11789 } |
| 11790 } |
| 11791 |
| 11792 |
| 11793 var h = { |
| 11794 "content-type" : "application/json; charset=utf-8", |
| 11795 }; |
| 11796 var resp = convert.JSON.encode(buildDiskType()); |
| 11797 return new async.Future.value(stringResponse(200, h, resp)); |
| 11798 }), true); |
| 11799 res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((a
pi.DiskType response) { |
| 11800 checkDiskType(response); |
| 11801 }))); |
| 11802 }); |
| 11803 |
| 11804 unittest.test("method--list", () { |
| 11805 |
| 11806 var mock = new HttpServerMock(); |
| 11807 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; |
| 11808 var arg_project = "foo"; |
| 11809 var arg_zone = "foo"; |
| 11810 var arg_filter = "foo"; |
| 11811 var arg_maxResults = 42; |
| 11812 var arg_orderBy = "foo"; |
| 11813 var arg_pageToken = "foo"; |
| 11814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11815 var path = (req.url).path; |
| 11816 var pathOffset = 0; |
| 11817 var index; |
| 11818 var subPart; |
| 11819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11820 pathOffset += 1; |
| 11821 |
| 11822 var query = (req.url).query; |
| 11823 var queryOffset = 0; |
| 11824 var queryMap = {}; |
| 11825 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11826 parseBool(n) { |
| 11827 if (n == "true") return true; |
| 11828 if (n == "false") return false; |
| 11829 if (n == null) return null; |
| 11830 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11831 } |
| 11832 if (query.length > 0) { |
| 11833 for (var part in query.split("&")) { |
| 11834 var keyvalue = part.split("="); |
| 11835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11836 } |
| 11837 } |
| 11838 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11839 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11840 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11841 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11842 |
| 11843 |
| 11844 var h = { |
| 11845 "content-type" : "application/json; charset=utf-8", |
| 11846 }; |
| 11847 var resp = convert.JSON.encode(buildDiskTypeList()); |
| 11848 return new async.Future.value(stringResponse(200, h, resp)); |
| 11849 }), true); |
| 11850 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskTypeList response) { |
| 11851 checkDiskTypeList(response); |
| 11852 }))); |
| 11853 }); |
| 11854 |
| 11855 }); |
| 11856 |
| 11857 |
| 11858 unittest.group("resource-DisksResourceApi", () { |
| 11859 unittest.test("method--aggregatedList", () { |
| 11860 |
| 11861 var mock = new HttpServerMock(); |
| 11862 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 11863 var arg_project = "foo"; |
| 11864 var arg_filter = "foo"; |
| 11865 var arg_maxResults = 42; |
| 11866 var arg_orderBy = "foo"; |
| 11867 var arg_pageToken = "foo"; |
| 11868 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11869 var path = (req.url).path; |
| 11870 var pathOffset = 0; |
| 11871 var index; |
| 11872 var subPart; |
| 11873 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11874 pathOffset += 1; |
| 11875 |
| 11876 var query = (req.url).query; |
| 11877 var queryOffset = 0; |
| 11878 var queryMap = {}; |
| 11879 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11880 parseBool(n) { |
| 11881 if (n == "true") return true; |
| 11882 if (n == "false") return false; |
| 11883 if (n == null) return null; |
| 11884 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11885 } |
| 11886 if (query.length > 0) { |
| 11887 for (var part in query.split("&")) { |
| 11888 var keyvalue = part.split("="); |
| 11889 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11890 } |
| 11891 } |
| 11892 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11893 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11894 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 11895 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11896 |
| 11897 |
| 11898 var h = { |
| 11899 "content-type" : "application/json; charset=utf-8", |
| 11900 }; |
| 11901 var resp = convert.JSON.encode(buildDiskAggregatedList()); |
| 11902 return new async.Future.value(stringResponse(200, h, resp)); |
| 11903 }), true); |
| 11904 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskAggregatedList response) { |
| 11905 checkDiskAggregatedList(response); |
| 11906 }))); |
| 11907 }); |
| 11908 |
| 11909 unittest.test("method--createSnapshot", () { |
| 11910 |
| 11911 var mock = new HttpServerMock(); |
| 11912 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 11913 var arg_request = buildSnapshot(); |
| 11914 var arg_project = "foo"; |
| 11915 var arg_zone = "foo"; |
| 11916 var arg_disk = "foo"; |
| 11917 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11918 var obj = new api.Snapshot.fromJson(json); |
| 11919 checkSnapshot(obj); |
| 11920 |
| 11921 var path = (req.url).path; |
| 11922 var pathOffset = 0; |
| 11923 var index; |
| 11924 var subPart; |
| 11925 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11926 pathOffset += 1; |
| 11927 |
| 11928 var query = (req.url).query; |
| 11929 var queryOffset = 0; |
| 11930 var queryMap = {}; |
| 11931 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11932 parseBool(n) { |
| 11933 if (n == "true") return true; |
| 11934 if (n == "false") return false; |
| 11935 if (n == null) return null; |
| 11936 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11937 } |
| 11938 if (query.length > 0) { |
| 11939 for (var part in query.split("&")) { |
| 11940 var keyvalue = part.split("="); |
| 11941 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11942 } |
| 11943 } |
| 11944 |
| 11945 |
| 11946 var h = { |
| 11947 "content-type" : "application/json; charset=utf-8", |
| 11948 }; |
| 11949 var resp = convert.JSON.encode(buildOperation()); |
| 11950 return new async.Future.value(stringResponse(200, h, resp)); |
| 11951 }), true); |
| 11952 res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk).then(unit
test.expectAsync(((api.Operation response) { |
| 11953 checkOperation(response); |
| 11954 }))); |
| 11955 }); |
| 11956 |
| 11957 unittest.test("method--delete", () { |
| 11958 |
| 11959 var mock = new HttpServerMock(); |
| 11960 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 11961 var arg_project = "foo"; |
| 11962 var arg_zone = "foo"; |
| 11963 var arg_disk = "foo"; |
| 11964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11965 var path = (req.url).path; |
| 11966 var pathOffset = 0; |
| 11967 var index; |
| 11968 var subPart; |
| 11969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11970 pathOffset += 1; |
| 11971 |
| 11972 var query = (req.url).query; |
| 11973 var queryOffset = 0; |
| 11974 var queryMap = {}; |
| 11975 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 11976 parseBool(n) { |
| 11977 if (n == "true") return true; |
| 11978 if (n == "false") return false; |
| 11979 if (n == null) return null; |
| 11980 throw new core.ArgumentError("Invalid boolean: $n"); |
| 11981 } |
| 11982 if (query.length > 0) { |
| 11983 for (var part in query.split("&")) { |
| 11984 var keyvalue = part.split("="); |
| 11985 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11986 } |
| 11987 } |
| 11988 |
| 11989 |
| 11990 var h = { |
| 11991 "content-type" : "application/json; charset=utf-8", |
| 11992 }; |
| 11993 var resp = convert.JSON.encode(buildOperation()); |
| 11994 return new async.Future.value(stringResponse(200, h, resp)); |
| 11995 }), true); |
| 11996 res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((ap
i.Operation response) { |
| 11997 checkOperation(response); |
| 11998 }))); |
| 11999 }); |
| 12000 |
| 12001 unittest.test("method--get", () { |
| 12002 |
| 12003 var mock = new HttpServerMock(); |
| 12004 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 12005 var arg_project = "foo"; |
| 12006 var arg_zone = "foo"; |
| 12007 var arg_disk = "foo"; |
| 12008 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12009 var path = (req.url).path; |
| 12010 var pathOffset = 0; |
| 12011 var index; |
| 12012 var subPart; |
| 12013 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12014 pathOffset += 1; |
| 12015 |
| 12016 var query = (req.url).query; |
| 12017 var queryOffset = 0; |
| 12018 var queryMap = {}; |
| 12019 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12020 parseBool(n) { |
| 12021 if (n == "true") return true; |
| 12022 if (n == "false") return false; |
| 12023 if (n == null) return null; |
| 12024 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12025 } |
| 12026 if (query.length > 0) { |
| 12027 for (var part in query.split("&")) { |
| 12028 var keyvalue = part.split("="); |
| 12029 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12030 } |
| 12031 } |
| 12032 |
| 12033 |
| 12034 var h = { |
| 12035 "content-type" : "application/json; charset=utf-8", |
| 12036 }; |
| 12037 var resp = convert.JSON.encode(buildDisk()); |
| 12038 return new async.Future.value(stringResponse(200, h, resp)); |
| 12039 }), true); |
| 12040 res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.D
isk response) { |
| 12041 checkDisk(response); |
| 12042 }))); |
| 12043 }); |
| 12044 |
| 12045 unittest.test("method--insert", () { |
| 12046 |
| 12047 var mock = new HttpServerMock(); |
| 12048 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 12049 var arg_request = buildDisk(); |
| 12050 var arg_project = "foo"; |
| 12051 var arg_zone = "foo"; |
| 12052 var arg_sourceImage = "foo"; |
| 12053 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12054 var obj = new api.Disk.fromJson(json); |
| 12055 checkDisk(obj); |
| 12056 |
| 12057 var path = (req.url).path; |
| 12058 var pathOffset = 0; |
| 12059 var index; |
| 12060 var subPart; |
| 12061 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12062 pathOffset += 1; |
| 12063 |
| 12064 var query = (req.url).query; |
| 12065 var queryOffset = 0; |
| 12066 var queryMap = {}; |
| 12067 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12068 parseBool(n) { |
| 12069 if (n == "true") return true; |
| 12070 if (n == "false") return false; |
| 12071 if (n == null) return null; |
| 12072 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12073 } |
| 12074 if (query.length > 0) { |
| 12075 for (var part in query.split("&")) { |
| 12076 var keyvalue = part.split("="); |
| 12077 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12078 } |
| 12079 } |
| 12080 unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourc
eImage)); |
| 12081 |
| 12082 |
| 12083 var h = { |
| 12084 "content-type" : "application/json; charset=utf-8", |
| 12085 }; |
| 12086 var resp = convert.JSON.encode(buildOperation()); |
| 12087 return new async.Future.value(stringResponse(200, h, resp)); |
| 12088 }), true); |
| 12089 res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImag
e).then(unittest.expectAsync(((api.Operation response) { |
| 12090 checkOperation(response); |
| 12091 }))); |
| 12092 }); |
| 12093 |
| 12094 unittest.test("method--list", () { |
| 12095 |
| 12096 var mock = new HttpServerMock(); |
| 12097 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 12098 var arg_project = "foo"; |
| 12099 var arg_zone = "foo"; |
| 12100 var arg_filter = "foo"; |
| 12101 var arg_maxResults = 42; |
| 12102 var arg_orderBy = "foo"; |
10058 var arg_pageToken = "foo"; | 12103 var arg_pageToken = "foo"; |
10059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10060 var path = (req.url).path; | 12105 var path = (req.url).path; |
10061 var pathOffset = 0; | 12106 var pathOffset = 0; |
10062 var index; | 12107 var index; |
10063 var subPart; | 12108 var subPart; |
10064 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12109 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10065 pathOffset += 1; | 12110 pathOffset += 1; |
10066 | 12111 |
10067 var query = (req.url).query; | 12112 var query = (req.url).query; |
(...skipping 14 matching lines...) Expand all Loading... |
10082 } | 12127 } |
10083 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 12128 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
10084 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 12129 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
10085 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 12130 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
10086 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 12131 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
10087 | 12132 |
10088 | 12133 |
10089 var h = { | 12134 var h = { |
10090 "content-type" : "application/json; charset=utf-8", | 12135 "content-type" : "application/json; charset=utf-8", |
10091 }; | 12136 }; |
10092 var resp = convert.JSON.encode(buildAddressAggregatedList()); | 12137 var resp = convert.JSON.encode(buildDiskList()); |
10093 return new async.Future.value(stringResponse(200, h, resp)); | 12138 return new async.Future.value(stringResponse(200, h, resp)); |
10094 }), true); | 12139 }), true); |
10095 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.AddressAggregatedList response) { | 12140 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskList response) { |
10096 checkAddressAggregatedList(response); | 12141 checkDiskList(response); |
10097 }))); | 12142 }))); |
10098 }); | 12143 }); |
10099 | 12144 |
| 12145 unittest.test("method--resize", () { |
| 12146 |
| 12147 var mock = new HttpServerMock(); |
| 12148 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 12149 var arg_request = buildDisksResizeRequest(); |
| 12150 var arg_project = "foo"; |
| 12151 var arg_zone = "foo"; |
| 12152 var arg_disk = "foo"; |
| 12153 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12154 var obj = new api.DisksResizeRequest.fromJson(json); |
| 12155 checkDisksResizeRequest(obj); |
| 12156 |
| 12157 var path = (req.url).path; |
| 12158 var pathOffset = 0; |
| 12159 var index; |
| 12160 var subPart; |
| 12161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12162 pathOffset += 1; |
| 12163 |
| 12164 var query = (req.url).query; |
| 12165 var queryOffset = 0; |
| 12166 var queryMap = {}; |
| 12167 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12168 parseBool(n) { |
| 12169 if (n == "true") return true; |
| 12170 if (n == "false") return false; |
| 12171 if (n == null) return null; |
| 12172 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12173 } |
| 12174 if (query.length > 0) { |
| 12175 for (var part in query.split("&")) { |
| 12176 var keyvalue = part.split("="); |
| 12177 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12178 } |
| 12179 } |
| 12180 |
| 12181 |
| 12182 var h = { |
| 12183 "content-type" : "application/json; charset=utf-8", |
| 12184 }; |
| 12185 var resp = convert.JSON.encode(buildOperation()); |
| 12186 return new async.Future.value(stringResponse(200, h, resp)); |
| 12187 }), true); |
| 12188 res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.exp
ectAsync(((api.Operation response) { |
| 12189 checkOperation(response); |
| 12190 }))); |
| 12191 }); |
| 12192 |
| 12193 }); |
| 12194 |
| 12195 |
| 12196 unittest.group("resource-FirewallsResourceApi", () { |
10100 unittest.test("method--delete", () { | 12197 unittest.test("method--delete", () { |
10101 | 12198 |
10102 var mock = new HttpServerMock(); | 12199 var mock = new HttpServerMock(); |
10103 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12200 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
10104 var arg_project = "foo"; | 12201 var arg_project = "foo"; |
10105 var arg_region = "foo"; | 12202 var arg_firewall = "foo"; |
10106 var arg_address = "foo"; | |
10107 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12203 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10108 var path = (req.url).path; | 12204 var path = (req.url).path; |
10109 var pathOffset = 0; | 12205 var pathOffset = 0; |
10110 var index; | 12206 var index; |
10111 var subPart; | 12207 var subPart; |
10112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12208 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10113 pathOffset += 1; | 12209 pathOffset += 1; |
10114 | 12210 |
10115 var query = (req.url).query; | 12211 var query = (req.url).query; |
10116 var queryOffset = 0; | 12212 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
10129 } | 12225 } |
10130 } | 12226 } |
10131 | 12227 |
10132 | 12228 |
10133 var h = { | 12229 var h = { |
10134 "content-type" : "application/json; charset=utf-8", | 12230 "content-type" : "application/json; charset=utf-8", |
10135 }; | 12231 }; |
10136 var resp = convert.JSON.encode(buildOperation()); | 12232 var resp = convert.JSON.encode(buildOperation()); |
10137 return new async.Future.value(stringResponse(200, h, resp)); | 12233 return new async.Future.value(stringResponse(200, h, resp)); |
10138 }), true); | 12234 }), true); |
10139 res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync
(((api.Operation response) { | 12235 res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Oper
ation response) { |
10140 checkOperation(response); | 12236 checkOperation(response); |
10141 }))); | 12237 }))); |
10142 }); | 12238 }); |
10143 | 12239 |
10144 unittest.test("method--get", () { | 12240 unittest.test("method--get", () { |
10145 | 12241 |
10146 var mock = new HttpServerMock(); | 12242 var mock = new HttpServerMock(); |
10147 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12243 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
10148 var arg_project = "foo"; | 12244 var arg_project = "foo"; |
10149 var arg_region = "foo"; | 12245 var arg_firewall = "foo"; |
10150 var arg_address = "foo"; | |
10151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12246 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10152 var path = (req.url).path; | 12247 var path = (req.url).path; |
10153 var pathOffset = 0; | 12248 var pathOffset = 0; |
10154 var index; | 12249 var index; |
10155 var subPart; | 12250 var subPart; |
10156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12251 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10157 pathOffset += 1; | 12252 pathOffset += 1; |
10158 | 12253 |
10159 var query = (req.url).query; | 12254 var query = (req.url).query; |
10160 var queryOffset = 0; | 12255 var queryOffset = 0; |
10161 var queryMap = {}; | 12256 var queryMap = {}; |
10162 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12257 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10163 parseBool(n) { | 12258 parseBool(n) { |
10164 if (n == "true") return true; | 12259 if (n == "true") return true; |
10165 if (n == "false") return false; | 12260 if (n == "false") return false; |
10166 if (n == null) return null; | 12261 if (n == null) return null; |
10167 throw new core.ArgumentError("Invalid boolean: $n"); | 12262 throw new core.ArgumentError("Invalid boolean: $n"); |
10168 } | 12263 } |
10169 if (query.length > 0) { | 12264 if (query.length > 0) { |
10170 for (var part in query.split("&")) { | 12265 for (var part in query.split("&")) { |
10171 var keyvalue = part.split("="); | 12266 var keyvalue = part.split("="); |
10172 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12267 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10173 } | 12268 } |
10174 } | 12269 } |
10175 | 12270 |
10176 | 12271 |
10177 var h = { | 12272 var h = { |
10178 "content-type" : "application/json; charset=utf-8", | 12273 "content-type" : "application/json; charset=utf-8", |
10179 }; | 12274 }; |
10180 var resp = convert.JSON.encode(buildAddress()); | 12275 var resp = convert.JSON.encode(buildFirewall()); |
10181 return new async.Future.value(stringResponse(200, h, resp)); | 12276 return new async.Future.value(stringResponse(200, h, resp)); |
10182 }), true); | 12277 }), true); |
10183 res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((
api.Address response) { | 12278 res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewal
l response) { |
10184 checkAddress(response); | 12279 checkFirewall(response); |
10185 }))); | 12280 }))); |
10186 }); | 12281 }); |
10187 | 12282 |
10188 unittest.test("method--insert", () { | 12283 unittest.test("method--insert", () { |
10189 | 12284 |
10190 var mock = new HttpServerMock(); | 12285 var mock = new HttpServerMock(); |
10191 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12286 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
10192 var arg_request = buildAddress(); | 12287 var arg_request = buildFirewall(); |
10193 var arg_project = "foo"; | 12288 var arg_project = "foo"; |
10194 var arg_region = "foo"; | |
10195 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12289 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10196 var obj = new api.Address.fromJson(json); | 12290 var obj = new api.Firewall.fromJson(json); |
10197 checkAddress(obj); | 12291 checkFirewall(obj); |
10198 | 12292 |
10199 var path = (req.url).path; | 12293 var path = (req.url).path; |
10200 var pathOffset = 0; | 12294 var pathOffset = 0; |
10201 var index; | 12295 var index; |
10202 var subPart; | 12296 var subPart; |
10203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10204 pathOffset += 1; | 12298 pathOffset += 1; |
10205 | 12299 |
10206 var query = (req.url).query; | 12300 var query = (req.url).query; |
10207 var queryOffset = 0; | 12301 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
10220 } | 12314 } |
10221 } | 12315 } |
10222 | 12316 |
10223 | 12317 |
10224 var h = { | 12318 var h = { |
10225 "content-type" : "application/json; charset=utf-8", | 12319 "content-type" : "application/json; charset=utf-8", |
10226 }; | 12320 }; |
10227 var resp = convert.JSON.encode(buildOperation()); | 12321 var resp = convert.JSON.encode(buildOperation()); |
10228 return new async.Future.value(stringResponse(200, h, resp)); | 12322 return new async.Future.value(stringResponse(200, h, resp)); |
10229 }), true); | 12323 }), true); |
10230 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { | 12324 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
10231 checkOperation(response); | 12325 checkOperation(response); |
10232 }))); | 12326 }))); |
10233 }); | 12327 }); |
10234 | 12328 |
10235 unittest.test("method--list", () { | 12329 unittest.test("method--list", () { |
10236 | 12330 |
10237 var mock = new HttpServerMock(); | 12331 var mock = new HttpServerMock(); |
10238 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12332 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
10239 var arg_project = "foo"; | 12333 var arg_project = "foo"; |
10240 var arg_region = "foo"; | |
10241 var arg_filter = "foo"; | 12334 var arg_filter = "foo"; |
10242 var arg_maxResults = 42; | 12335 var arg_maxResults = 42; |
10243 var arg_orderBy = "foo"; | 12336 var arg_orderBy = "foo"; |
10244 var arg_pageToken = "foo"; | 12337 var arg_pageToken = "foo"; |
10245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12338 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10246 var path = (req.url).path; | 12339 var path = (req.url).path; |
10247 var pathOffset = 0; | 12340 var pathOffset = 0; |
10248 var index; | 12341 var index; |
10249 var subPart; | 12342 var subPart; |
10250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12343 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 17 matching lines...) Expand all Loading... |
10268 } | 12361 } |
10269 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 12362 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
10270 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 12363 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
10271 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 12364 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
10272 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 12365 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
10273 | 12366 |
10274 | 12367 |
10275 var h = { | 12368 var h = { |
10276 "content-type" : "application/json; charset=utf-8", | 12369 "content-type" : "application/json; charset=utf-8", |
10277 }; | 12370 }; |
10278 var resp = convert.JSON.encode(buildAddressList()); | 12371 var resp = convert.JSON.encode(buildFirewallList()); |
10279 return new async.Future.value(stringResponse(200, h, resp)); | 12372 return new async.Future.value(stringResponse(200, h, resp)); |
10280 }), true); | 12373 }), true); |
10281 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.AddressList response) { | 12374 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Fire
wallList response) { |
10282 checkAddressList(response); | 12375 checkFirewallList(response); |
10283 }))); | 12376 }))); |
10284 }); | 12377 }); |
10285 | 12378 |
10286 }); | 12379 unittest.test("method--patch", () { |
10287 | |
10288 | |
10289 unittest.group("resource-AutoscalersResourceApi", () { | |
10290 unittest.test("method--aggregatedList", () { | |
10291 | 12380 |
10292 var mock = new HttpServerMock(); | 12381 var mock = new HttpServerMock(); |
10293 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12382 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 12383 var arg_request = buildFirewall(); |
10294 var arg_project = "foo"; | 12384 var arg_project = "foo"; |
10295 var arg_filter = "foo"; | 12385 var arg_firewall = "foo"; |
10296 var arg_maxResults = 42; | |
10297 var arg_orderBy = "foo"; | |
10298 var arg_pageToken = "foo"; | |
10299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12387 var obj = new api.Firewall.fromJson(json); |
| 12388 checkFirewall(obj); |
| 12389 |
10300 var path = (req.url).path; | 12390 var path = (req.url).path; |
10301 var pathOffset = 0; | 12391 var pathOffset = 0; |
10302 var index; | 12392 var index; |
10303 var subPart; | 12393 var subPart; |
10304 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12394 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10305 pathOffset += 1; | 12395 pathOffset += 1; |
10306 | 12396 |
10307 var query = (req.url).query; | 12397 var query = (req.url).query; |
10308 var queryOffset = 0; | 12398 var queryOffset = 0; |
10309 var queryMap = {}; | 12399 var queryMap = {}; |
10310 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10311 parseBool(n) { | 12401 parseBool(n) { |
10312 if (n == "true") return true; | 12402 if (n == "true") return true; |
10313 if (n == "false") return false; | 12403 if (n == "false") return false; |
10314 if (n == null) return null; | 12404 if (n == null) return null; |
10315 throw new core.ArgumentError("Invalid boolean: $n"); | 12405 throw new core.ArgumentError("Invalid boolean: $n"); |
10316 } | 12406 } |
10317 if (query.length > 0) { | 12407 if (query.length > 0) { |
10318 for (var part in query.split("&")) { | 12408 for (var part in query.split("&")) { |
10319 var keyvalue = part.split("="); | 12409 var keyvalue = part.split("="); |
10320 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10321 } | 12411 } |
10322 } | 12412 } |
10323 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
10324 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
10325 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
10326 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
10327 | 12413 |
10328 | 12414 |
10329 var h = { | 12415 var h = { |
10330 "content-type" : "application/json; charset=utf-8", | 12416 "content-type" : "application/json; charset=utf-8", |
10331 }; | 12417 }; |
10332 var resp = convert.JSON.encode(buildAutoscalerAggregatedList()); | 12418 var resp = convert.JSON.encode(buildOperation()); |
10333 return new async.Future.value(stringResponse(200, h, resp)); | 12419 return new async.Future.value(stringResponse(200, h, resp)); |
10334 }), true); | 12420 }), true); |
10335 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.AutoscalerAggregatedList response) { | 12421 res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsyn
c(((api.Operation response) { |
10336 checkAutoscalerAggregatedList(response); | 12422 checkOperation(response); |
10337 }))); | 12423 }))); |
10338 }); | 12424 }); |
10339 | 12425 |
10340 unittest.test("method--delete", () { | 12426 unittest.test("method--update", () { |
10341 | 12427 |
10342 var mock = new HttpServerMock(); | 12428 var mock = new HttpServerMock(); |
10343 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12429 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 12430 var arg_request = buildFirewall(); |
10344 var arg_project = "foo"; | 12431 var arg_project = "foo"; |
10345 var arg_zone = "foo"; | 12432 var arg_firewall = "foo"; |
10346 var arg_autoscaler = "foo"; | |
10347 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12434 var obj = new api.Firewall.fromJson(json); |
| 12435 checkFirewall(obj); |
| 12436 |
10348 var path = (req.url).path; | 12437 var path = (req.url).path; |
10349 var pathOffset = 0; | 12438 var pathOffset = 0; |
10350 var index; | 12439 var index; |
10351 var subPart; | 12440 var subPart; |
10352 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10353 pathOffset += 1; | 12442 pathOffset += 1; |
10354 | 12443 |
10355 var query = (req.url).query; | 12444 var query = (req.url).query; |
10356 var queryOffset = 0; | 12445 var queryOffset = 0; |
10357 var queryMap = {}; | 12446 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
10369 } | 12458 } |
10370 } | 12459 } |
10371 | 12460 |
10372 | 12461 |
10373 var h = { | 12462 var h = { |
10374 "content-type" : "application/json; charset=utf-8", | 12463 "content-type" : "application/json; charset=utf-8", |
10375 }; | 12464 }; |
10376 var resp = convert.JSON.encode(buildOperation()); | 12465 var resp = convert.JSON.encode(buildOperation()); |
10377 return new async.Future.value(stringResponse(200, h, resp)); | 12466 return new async.Future.value(stringResponse(200, h, resp)); |
10378 }), true); | 12467 }), true); |
10379 res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsyn
c(((api.Operation response) { | 12468 res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsy
nc(((api.Operation response) { |
10380 checkOperation(response); | 12469 checkOperation(response); |
10381 }))); | 12470 }))); |
10382 }); | 12471 }); |
10383 | 12472 |
10384 unittest.test("method--get", () { | 12473 }); |
| 12474 |
| 12475 |
| 12476 unittest.group("resource-ForwardingRulesResourceApi", () { |
| 12477 unittest.test("method--aggregatedList", () { |
10385 | 12478 |
10386 var mock = new HttpServerMock(); | 12479 var mock = new HttpServerMock(); |
10387 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12480 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
10388 var arg_project = "foo"; | 12481 var arg_project = "foo"; |
10389 var arg_zone = "foo"; | 12482 var arg_filter = "foo"; |
10390 var arg_autoscaler = "foo"; | 12483 var arg_maxResults = 42; |
| 12484 var arg_orderBy = "foo"; |
| 12485 var arg_pageToken = "foo"; |
10391 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12486 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10392 var path = (req.url).path; | 12487 var path = (req.url).path; |
10393 var pathOffset = 0; | 12488 var pathOffset = 0; |
10394 var index; | 12489 var index; |
10395 var subPart; | 12490 var subPart; |
10396 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12491 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10397 pathOffset += 1; | 12492 pathOffset += 1; |
10398 | 12493 |
10399 var query = (req.url).query; | 12494 var query = (req.url).query; |
10400 var queryOffset = 0; | 12495 var queryOffset = 0; |
10401 var queryMap = {}; | 12496 var queryMap = {}; |
10402 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12497 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10403 parseBool(n) { | 12498 parseBool(n) { |
10404 if (n == "true") return true; | 12499 if (n == "true") return true; |
10405 if (n == "false") return false; | 12500 if (n == "false") return false; |
10406 if (n == null) return null; | 12501 if (n == null) return null; |
10407 throw new core.ArgumentError("Invalid boolean: $n"); | 12502 throw new core.ArgumentError("Invalid boolean: $n"); |
10408 } | 12503 } |
10409 if (query.length > 0) { | 12504 if (query.length > 0) { |
10410 for (var part in query.split("&")) { | 12505 for (var part in query.split("&")) { |
10411 var keyvalue = part.split("="); | 12506 var keyvalue = part.split("="); |
10412 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12507 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10413 } | 12508 } |
10414 } | 12509 } |
| 12510 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 12511 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 12512 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 12513 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
10415 | 12514 |
10416 | 12515 |
10417 var h = { | 12516 var h = { |
10418 "content-type" : "application/json; charset=utf-8", | 12517 "content-type" : "application/json; charset=utf-8", |
10419 }; | 12518 }; |
10420 var resp = convert.JSON.encode(buildAutoscaler()); | 12519 var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); |
10421 return new async.Future.value(stringResponse(200, h, resp)); | 12520 return new async.Future.value(stringResponse(200, h, resp)); |
10422 }), true); | 12521 }), true); |
10423 res.get(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsync((
(api.Autoscaler response) { | 12522 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.ForwardingRuleAggregatedList response) { |
10424 checkAutoscaler(response); | 12523 checkForwardingRuleAggregatedList(response); |
10425 }))); | 12524 }))); |
10426 }); | 12525 }); |
10427 | 12526 |
10428 unittest.test("method--insert", () { | 12527 unittest.test("method--delete", () { |
10429 | 12528 |
10430 var mock = new HttpServerMock(); | 12529 var mock = new HttpServerMock(); |
10431 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12530 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
10432 var arg_request = buildAutoscaler(); | |
10433 var arg_project = "foo"; | 12531 var arg_project = "foo"; |
10434 var arg_zone = "foo"; | 12532 var arg_region = "foo"; |
| 12533 var arg_forwardingRule = "foo"; |
10435 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10436 var obj = new api.Autoscaler.fromJson(json); | |
10437 checkAutoscaler(obj); | |
10438 | |
10439 var path = (req.url).path; | 12535 var path = (req.url).path; |
10440 var pathOffset = 0; | 12536 var pathOffset = 0; |
10441 var index; | 12537 var index; |
10442 var subPart; | 12538 var subPart; |
10443 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10444 pathOffset += 1; | 12540 pathOffset += 1; |
10445 | 12541 |
10446 var query = (req.url).query; | 12542 var query = (req.url).query; |
10447 var queryOffset = 0; | 12543 var queryOffset = 0; |
10448 var queryMap = {}; | 12544 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
10460 } | 12556 } |
10461 } | 12557 } |
10462 | 12558 |
10463 | 12559 |
10464 var h = { | 12560 var h = { |
10465 "content-type" : "application/json; charset=utf-8", | 12561 "content-type" : "application/json; charset=utf-8", |
10466 }; | 12562 }; |
10467 var resp = convert.JSON.encode(buildOperation()); | 12563 var resp = convert.JSON.encode(buildOperation()); |
10468 return new async.Future.value(stringResponse(200, h, resp)); | 12564 return new async.Future.value(stringResponse(200, h, resp)); |
10469 }), true); | 12565 }), true); |
10470 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 12566 res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expe
ctAsync(((api.Operation response) { |
10471 checkOperation(response); | 12567 checkOperation(response); |
10472 }))); | 12568 }))); |
10473 }); | 12569 }); |
10474 | 12570 |
10475 unittest.test("method--list", () { | 12571 unittest.test("method--get", () { |
10476 | 12572 |
10477 var mock = new HttpServerMock(); | 12573 var mock = new HttpServerMock(); |
10478 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12574 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
10479 var arg_project = "foo"; | 12575 var arg_project = "foo"; |
10480 var arg_zone = "foo"; | 12576 var arg_region = "foo"; |
10481 var arg_filter = "foo"; | 12577 var arg_forwardingRule = "foo"; |
10482 var arg_maxResults = 42; | |
10483 var arg_orderBy = "foo"; | |
10484 var arg_pageToken = "foo"; | |
10485 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12578 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10486 var path = (req.url).path; | 12579 var path = (req.url).path; |
10487 var pathOffset = 0; | 12580 var pathOffset = 0; |
10488 var index; | 12581 var index; |
10489 var subPart; | 12582 var subPart; |
10490 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12583 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10491 pathOffset += 1; | 12584 pathOffset += 1; |
10492 | 12585 |
10493 var query = (req.url).query; | 12586 var query = (req.url).query; |
10494 var queryOffset = 0; | 12587 var queryOffset = 0; |
10495 var queryMap = {}; | 12588 var queryMap = {}; |
10496 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12589 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10497 parseBool(n) { | 12590 parseBool(n) { |
10498 if (n == "true") return true; | 12591 if (n == "true") return true; |
10499 if (n == "false") return false; | 12592 if (n == "false") return false; |
10500 if (n == null) return null; | 12593 if (n == null) return null; |
10501 throw new core.ArgumentError("Invalid boolean: $n"); | 12594 throw new core.ArgumentError("Invalid boolean: $n"); |
10502 } | 12595 } |
10503 if (query.length > 0) { | 12596 if (query.length > 0) { |
10504 for (var part in query.split("&")) { | 12597 for (var part in query.split("&")) { |
10505 var keyvalue = part.split("="); | 12598 var keyvalue = part.split("="); |
10506 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12599 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10507 } | 12600 } |
10508 } | 12601 } |
10509 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
10510 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
10511 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
10512 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
10513 | 12602 |
10514 | 12603 |
10515 var h = { | 12604 var h = { |
10516 "content-type" : "application/json; charset=utf-8", | 12605 "content-type" : "application/json; charset=utf-8", |
10517 }; | 12606 }; |
10518 var resp = convert.JSON.encode(buildAutoscalerList()); | 12607 var resp = convert.JSON.encode(buildForwardingRule()); |
10519 return new async.Future.value(stringResponse(200, h, resp)); | 12608 return new async.Future.value(stringResponse(200, h, resp)); |
10520 }), true); | 12609 }), true); |
10521 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.AutoscalerList response) { | 12610 res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectA
sync(((api.ForwardingRule response) { |
10522 checkAutoscalerList(response); | 12611 checkForwardingRule(response); |
10523 }))); | 12612 }))); |
10524 }); | 12613 }); |
10525 | 12614 |
10526 unittest.test("method--patch", () { | 12615 unittest.test("method--insert", () { |
10527 | 12616 |
10528 var mock = new HttpServerMock(); | 12617 var mock = new HttpServerMock(); |
10529 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12618 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
10530 var arg_request = buildAutoscaler(); | 12619 var arg_request = buildForwardingRule(); |
10531 var arg_project = "foo"; | 12620 var arg_project = "foo"; |
10532 var arg_zone = "foo"; | 12621 var arg_region = "foo"; |
10533 var arg_autoscaler = "foo"; | |
10534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10535 var obj = new api.Autoscaler.fromJson(json); | 12623 var obj = new api.ForwardingRule.fromJson(json); |
10536 checkAutoscaler(obj); | 12624 checkForwardingRule(obj); |
10537 | 12625 |
10538 var path = (req.url).path; | 12626 var path = (req.url).path; |
10539 var pathOffset = 0; | 12627 var pathOffset = 0; |
10540 var index; | 12628 var index; |
10541 var subPart; | 12629 var subPart; |
10542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12630 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10543 pathOffset += 1; | 12631 pathOffset += 1; |
10544 | 12632 |
10545 var query = (req.url).query; | 12633 var query = (req.url).query; |
10546 var queryOffset = 0; | 12634 var queryOffset = 0; |
10547 var queryMap = {}; | 12635 var queryMap = {}; |
10548 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12636 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10549 parseBool(n) { | 12637 parseBool(n) { |
10550 if (n == "true") return true; | 12638 if (n == "true") return true; |
10551 if (n == "false") return false; | 12639 if (n == "false") return false; |
10552 if (n == null) return null; | 12640 if (n == null) return null; |
10553 throw new core.ArgumentError("Invalid boolean: $n"); | 12641 throw new core.ArgumentError("Invalid boolean: $n"); |
10554 } | 12642 } |
10555 if (query.length > 0) { | 12643 if (query.length > 0) { |
10556 for (var part in query.split("&")) { | 12644 for (var part in query.split("&")) { |
10557 var keyvalue = part.split("="); | 12645 var keyvalue = part.split("="); |
10558 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12646 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10559 } | 12647 } |
10560 } | 12648 } |
10561 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); | |
10562 | 12649 |
10563 | 12650 |
10564 var h = { | 12651 var h = { |
10565 "content-type" : "application/json; charset=utf-8", | 12652 "content-type" : "application/json; charset=utf-8", |
10566 }; | 12653 }; |
10567 var resp = convert.JSON.encode(buildOperation()); | 12654 var resp = convert.JSON.encode(buildOperation()); |
10568 return new async.Future.value(stringResponse(200, h, resp)); | 12655 return new async.Future.value(stringResponse(200, h, resp)); |
10569 }), true); | 12656 }), true); |
10570 res.patch(arg_request, arg_project, arg_zone, arg_autoscaler).then(unittes
t.expectAsync(((api.Operation response) { | 12657 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
10571 checkOperation(response); | 12658 checkOperation(response); |
10572 }))); | 12659 }))); |
10573 }); | 12660 }); |
10574 | 12661 |
10575 unittest.test("method--update", () { | 12662 unittest.test("method--list", () { |
10576 | 12663 |
10577 var mock = new HttpServerMock(); | 12664 var mock = new HttpServerMock(); |
10578 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 12665 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
10579 var arg_request = buildAutoscaler(); | |
10580 var arg_project = "foo"; | 12666 var arg_project = "foo"; |
10581 var arg_zone = "foo"; | 12667 var arg_region = "foo"; |
10582 var arg_autoscaler = "foo"; | 12668 var arg_filter = "foo"; |
| 12669 var arg_maxResults = 42; |
| 12670 var arg_orderBy = "foo"; |
| 12671 var arg_pageToken = "foo"; |
10583 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12672 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10584 var obj = new api.Autoscaler.fromJson(json); | |
10585 checkAutoscaler(obj); | |
10586 | |
10587 var path = (req.url).path; | 12673 var path = (req.url).path; |
10588 var pathOffset = 0; | 12674 var pathOffset = 0; |
10589 var index; | 12675 var index; |
10590 var subPart; | 12676 var subPart; |
10591 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12677 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10592 pathOffset += 1; | 12678 pathOffset += 1; |
10593 | 12679 |
10594 var query = (req.url).query; | 12680 var query = (req.url).query; |
10595 var queryOffset = 0; | 12681 var queryOffset = 0; |
10596 var queryMap = {}; | 12682 var queryMap = {}; |
10597 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12683 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10598 parseBool(n) { | 12684 parseBool(n) { |
10599 if (n == "true") return true; | 12685 if (n == "true") return true; |
10600 if (n == "false") return false; | 12686 if (n == "false") return false; |
10601 if (n == null) return null; | 12687 if (n == null) return null; |
10602 throw new core.ArgumentError("Invalid boolean: $n"); | 12688 throw new core.ArgumentError("Invalid boolean: $n"); |
10603 } | 12689 } |
10604 if (query.length > 0) { | 12690 if (query.length > 0) { |
10605 for (var part in query.split("&")) { | 12691 for (var part in query.split("&")) { |
10606 var keyvalue = part.split("="); | 12692 var keyvalue = part.split("="); |
10607 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12693 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10608 } | 12694 } |
10609 } | 12695 } |
10610 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); | 12696 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 12697 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 12698 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 12699 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
10611 | 12700 |
10612 | 12701 |
10613 var h = { | 12702 var h = { |
10614 "content-type" : "application/json; charset=utf-8", | 12703 "content-type" : "application/json; charset=utf-8", |
10615 }; | 12704 }; |
10616 var resp = convert.JSON.encode(buildOperation()); | 12705 var resp = convert.JSON.encode(buildForwardingRuleList()); |
10617 return new async.Future.value(stringResponse(200, h, resp)); | 12706 return new async.Future.value(stringResponse(200, h, resp)); |
10618 }), true); | 12707 }), true); |
10619 res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler)
.then(unittest.expectAsync(((api.Operation response) { | 12708 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.ForwardingRuleList response) { |
10620 checkOperation(response); | 12709 checkForwardingRuleList(response); |
10621 }))); | 12710 }))); |
10622 }); | 12711 }); |
10623 | 12712 |
10624 }); | 12713 unittest.test("method--setTarget", () { |
10625 | |
10626 | |
10627 unittest.group("resource-BackendServicesResourceApi", () { | |
10628 unittest.test("method--delete", () { | |
10629 | 12714 |
10630 var mock = new HttpServerMock(); | 12715 var mock = new HttpServerMock(); |
10631 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12716 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 12717 var arg_request = buildTargetReference(); |
10632 var arg_project = "foo"; | 12718 var arg_project = "foo"; |
10633 var arg_backendService = "foo"; | 12719 var arg_region = "foo"; |
| 12720 var arg_forwardingRule = "foo"; |
10634 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12722 var obj = new api.TargetReference.fromJson(json); |
| 12723 checkTargetReference(obj); |
| 12724 |
10635 var path = (req.url).path; | 12725 var path = (req.url).path; |
10636 var pathOffset = 0; | 12726 var pathOffset = 0; |
10637 var index; | 12727 var index; |
10638 var subPart; | 12728 var subPart; |
10639 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10640 pathOffset += 1; | 12730 pathOffset += 1; |
10641 | 12731 |
10642 var query = (req.url).query; | 12732 var query = (req.url).query; |
10643 var queryOffset = 0; | 12733 var queryOffset = 0; |
10644 var queryMap = {}; | 12734 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
10656 } | 12746 } |
10657 } | 12747 } |
10658 | 12748 |
10659 | 12749 |
10660 var h = { | 12750 var h = { |
10661 "content-type" : "application/json; charset=utf-8", | 12751 "content-type" : "application/json; charset=utf-8", |
10662 }; | 12752 }; |
10663 var resp = convert.JSON.encode(buildOperation()); | 12753 var resp = convert.JSON.encode(buildOperation()); |
10664 return new async.Future.value(stringResponse(200, h, resp)); | 12754 return new async.Future.value(stringResponse(200, h, resp)); |
10665 }), true); | 12755 }), true); |
10666 res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((ap
i.Operation response) { | 12756 res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).th
en(unittest.expectAsync(((api.Operation response) { |
10667 checkOperation(response); | 12757 checkOperation(response); |
10668 }))); | 12758 }))); |
10669 }); | 12759 }); |
10670 | 12760 |
10671 unittest.test("method--get", () { | 12761 }); |
| 12762 |
| 12763 |
| 12764 unittest.group("resource-GlobalAddressesResourceApi", () { |
| 12765 unittest.test("method--delete", () { |
10672 | 12766 |
10673 var mock = new HttpServerMock(); | 12767 var mock = new HttpServerMock(); |
10674 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12768 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
10675 var arg_project = "foo"; | 12769 var arg_project = "foo"; |
10676 var arg_backendService = "foo"; | 12770 var arg_address = "foo"; |
10677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12771 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10678 var path = (req.url).path; | 12772 var path = (req.url).path; |
10679 var pathOffset = 0; | 12773 var pathOffset = 0; |
10680 var index; | 12774 var index; |
10681 var subPart; | 12775 var subPart; |
10682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12776 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10683 pathOffset += 1; | 12777 pathOffset += 1; |
10684 | 12778 |
10685 var query = (req.url).query; | 12779 var query = (req.url).query; |
10686 var queryOffset = 0; | 12780 var queryOffset = 0; |
10687 var queryMap = {}; | 12781 var queryMap = {}; |
10688 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12782 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10689 parseBool(n) { | 12783 parseBool(n) { |
10690 if (n == "true") return true; | 12784 if (n == "true") return true; |
10691 if (n == "false") return false; | 12785 if (n == "false") return false; |
10692 if (n == null) return null; | 12786 if (n == null) return null; |
10693 throw new core.ArgumentError("Invalid boolean: $n"); | 12787 throw new core.ArgumentError("Invalid boolean: $n"); |
10694 } | 12788 } |
10695 if (query.length > 0) { | 12789 if (query.length > 0) { |
10696 for (var part in query.split("&")) { | 12790 for (var part in query.split("&")) { |
10697 var keyvalue = part.split("="); | 12791 var keyvalue = part.split("="); |
10698 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12792 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10699 } | 12793 } |
10700 } | 12794 } |
10701 | 12795 |
10702 | 12796 |
10703 var h = { | 12797 var h = { |
10704 "content-type" : "application/json; charset=utf-8", | 12798 "content-type" : "application/json; charset=utf-8", |
10705 }; | 12799 }; |
10706 var resp = convert.JSON.encode(buildBackendService()); | 12800 var resp = convert.JSON.encode(buildOperation()); |
10707 return new async.Future.value(stringResponse(200, h, resp)); | 12801 return new async.Future.value(stringResponse(200, h, resp)); |
10708 }), true); | 12802 }), true); |
10709 res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.B
ackendService response) { | 12803 res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Opera
tion response) { |
10710 checkBackendService(response); | 12804 checkOperation(response); |
10711 }))); | 12805 }))); |
10712 }); | 12806 }); |
10713 | 12807 |
10714 unittest.test("method--getHealth", () { | 12808 unittest.test("method--get", () { |
10715 | 12809 |
10716 var mock = new HttpServerMock(); | 12810 var mock = new HttpServerMock(); |
10717 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12811 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
10718 var arg_request = buildResourceGroupReference(); | |
10719 var arg_project = "foo"; | 12812 var arg_project = "foo"; |
10720 var arg_backendService = "foo"; | 12813 var arg_address = "foo"; |
10721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10722 var obj = new api.ResourceGroupReference.fromJson(json); | |
10723 checkResourceGroupReference(obj); | |
10724 | |
10725 var path = (req.url).path; | 12815 var path = (req.url).path; |
10726 var pathOffset = 0; | 12816 var pathOffset = 0; |
10727 var index; | 12817 var index; |
10728 var subPart; | 12818 var subPart; |
10729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10730 pathOffset += 1; | 12820 pathOffset += 1; |
10731 | 12821 |
10732 var query = (req.url).query; | 12822 var query = (req.url).query; |
10733 var queryOffset = 0; | 12823 var queryOffset = 0; |
10734 var queryMap = {}; | 12824 var queryMap = {}; |
10735 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12825 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10736 parseBool(n) { | 12826 parseBool(n) { |
10737 if (n == "true") return true; | 12827 if (n == "true") return true; |
10738 if (n == "false") return false; | 12828 if (n == "false") return false; |
10739 if (n == null) return null; | 12829 if (n == null) return null; |
10740 throw new core.ArgumentError("Invalid boolean: $n"); | 12830 throw new core.ArgumentError("Invalid boolean: $n"); |
10741 } | 12831 } |
10742 if (query.length > 0) { | 12832 if (query.length > 0) { |
10743 for (var part in query.split("&")) { | 12833 for (var part in query.split("&")) { |
10744 var keyvalue = part.split("="); | 12834 var keyvalue = part.split("="); |
10745 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10746 } | 12836 } |
10747 } | 12837 } |
10748 | 12838 |
10749 | 12839 |
10750 var h = { | 12840 var h = { |
10751 "content-type" : "application/json; charset=utf-8", | 12841 "content-type" : "application/json; charset=utf-8", |
10752 }; | 12842 }; |
10753 var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); | 12843 var resp = convert.JSON.encode(buildAddress()); |
10754 return new async.Future.value(stringResponse(200, h, resp)); | 12844 return new async.Future.value(stringResponse(200, h, resp)); |
10755 }), true); | 12845 }), true); |
10756 res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.
expectAsync(((api.BackendServiceGroupHealth response) { | 12846 res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address
response) { |
10757 checkBackendServiceGroupHealth(response); | 12847 checkAddress(response); |
10758 }))); | 12848 }))); |
10759 }); | 12849 }); |
10760 | 12850 |
10761 unittest.test("method--insert", () { | 12851 unittest.test("method--insert", () { |
10762 | 12852 |
10763 var mock = new HttpServerMock(); | 12853 var mock = new HttpServerMock(); |
10764 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12854 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
10765 var arg_request = buildBackendService(); | 12855 var arg_request = buildAddress(); |
10766 var arg_project = "foo"; | 12856 var arg_project = "foo"; |
10767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12857 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10768 var obj = new api.BackendService.fromJson(json); | 12858 var obj = new api.Address.fromJson(json); |
10769 checkBackendService(obj); | 12859 checkAddress(obj); |
10770 | 12860 |
10771 var path = (req.url).path; | 12861 var path = (req.url).path; |
10772 var pathOffset = 0; | 12862 var pathOffset = 0; |
10773 var index; | 12863 var index; |
10774 var subPart; | 12864 var subPart; |
10775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10776 pathOffset += 1; | 12866 pathOffset += 1; |
10777 | 12867 |
10778 var query = (req.url).query; | 12868 var query = (req.url).query; |
10779 var queryOffset = 0; | 12869 var queryOffset = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
10800 return new async.Future.value(stringResponse(200, h, resp)); | 12890 return new async.Future.value(stringResponse(200, h, resp)); |
10801 }), true); | 12891 }), true); |
10802 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 12892 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
10803 checkOperation(response); | 12893 checkOperation(response); |
10804 }))); | 12894 }))); |
10805 }); | 12895 }); |
10806 | 12896 |
10807 unittest.test("method--list", () { | 12897 unittest.test("method--list", () { |
10808 | 12898 |
10809 var mock = new HttpServerMock(); | 12899 var mock = new HttpServerMock(); |
10810 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12900 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
10811 var arg_project = "foo"; | 12901 var arg_project = "foo"; |
10812 var arg_filter = "foo"; | 12902 var arg_filter = "foo"; |
10813 var arg_maxResults = 42; | 12903 var arg_maxResults = 42; |
10814 var arg_orderBy = "foo"; | 12904 var arg_orderBy = "foo"; |
10815 var arg_pageToken = "foo"; | 12905 var arg_pageToken = "foo"; |
10816 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10817 var path = (req.url).path; | 12907 var path = (req.url).path; |
10818 var pathOffset = 0; | 12908 var pathOffset = 0; |
10819 var index; | 12909 var index; |
10820 var subPart; | 12910 var subPart; |
(...skipping 18 matching lines...) Expand all Loading... |
10839 } | 12929 } |
10840 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 12930 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
10841 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 12931 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
10842 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 12932 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
10843 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 12933 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
10844 | 12934 |
10845 | 12935 |
10846 var h = { | 12936 var h = { |
10847 "content-type" : "application/json; charset=utf-8", | 12937 "content-type" : "application/json; charset=utf-8", |
10848 }; | 12938 }; |
10849 var resp = convert.JSON.encode(buildBackendServiceList()); | 12939 var resp = convert.JSON.encode(buildAddressList()); |
10850 return new async.Future.value(stringResponse(200, h, resp)); | 12940 return new async.Future.value(stringResponse(200, h, resp)); |
10851 }), true); | 12941 }), true); |
10852 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Back
endServiceList response) { | 12942 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Addr
essList response) { |
10853 checkBackendServiceList(response); | 12943 checkAddressList(response); |
10854 }))); | 12944 }))); |
10855 }); | 12945 }); |
10856 | 12946 |
10857 unittest.test("method--patch", () { | 12947 }); |
| 12948 |
| 12949 |
| 12950 unittest.group("resource-GlobalForwardingRulesResourceApi", () { |
| 12951 unittest.test("method--delete", () { |
10858 | 12952 |
10859 var mock = new HttpServerMock(); | 12953 var mock = new HttpServerMock(); |
10860 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12954 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
10861 var arg_request = buildBackendService(); | |
10862 var arg_project = "foo"; | 12955 var arg_project = "foo"; |
10863 var arg_backendService = "foo"; | 12956 var arg_forwardingRule = "foo"; |
10864 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12957 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10865 var obj = new api.BackendService.fromJson(json); | |
10866 checkBackendService(obj); | |
10867 | |
10868 var path = (req.url).path; | 12958 var path = (req.url).path; |
10869 var pathOffset = 0; | 12959 var pathOffset = 0; |
10870 var index; | 12960 var index; |
10871 var subPart; | 12961 var subPart; |
10872 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12962 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10873 pathOffset += 1; | 12963 pathOffset += 1; |
10874 | 12964 |
10875 var query = (req.url).query; | 12965 var query = (req.url).query; |
10876 var queryOffset = 0; | 12966 var queryOffset = 0; |
10877 var queryMap = {}; | 12967 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
10889 } | 12979 } |
10890 } | 12980 } |
10891 | 12981 |
10892 | 12982 |
10893 var h = { | 12983 var h = { |
10894 "content-type" : "application/json; charset=utf-8", | 12984 "content-type" : "application/json; charset=utf-8", |
10895 }; | 12985 }; |
10896 var resp = convert.JSON.encode(buildOperation()); | 12986 var resp = convert.JSON.encode(buildOperation()); |
10897 return new async.Future.value(stringResponse(200, h, resp)); | 12987 return new async.Future.value(stringResponse(200, h, resp)); |
10898 }), true); | 12988 }), true); |
10899 res.patch(arg_request, arg_project, arg_backendService).then(unittest.expe
ctAsync(((api.Operation response) { | 12989 res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((ap
i.Operation response) { |
10900 checkOperation(response); | 12990 checkOperation(response); |
10901 }))); | 12991 }))); |
10902 }); | 12992 }); |
10903 | 12993 |
10904 unittest.test("method--update", () { | 12994 unittest.test("method--get", () { |
10905 | 12995 |
10906 var mock = new HttpServerMock(); | 12996 var mock = new HttpServerMock(); |
10907 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 12997 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
10908 var arg_request = buildBackendService(); | |
10909 var arg_project = "foo"; | 12998 var arg_project = "foo"; |
10910 var arg_backendService = "foo"; | 12999 var arg_forwardingRule = "foo"; |
10911 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13000 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
10912 var obj = new api.BackendService.fromJson(json); | |
10913 checkBackendService(obj); | |
10914 | |
10915 var path = (req.url).path; | 13001 var path = (req.url).path; |
10916 var pathOffset = 0; | 13002 var pathOffset = 0; |
10917 var index; | 13003 var index; |
10918 var subPart; | 13004 var subPart; |
10919 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10920 pathOffset += 1; | 13006 pathOffset += 1; |
10921 | 13007 |
10922 var query = (req.url).query; | 13008 var query = (req.url).query; |
10923 var queryOffset = 0; | 13009 var queryOffset = 0; |
10924 var queryMap = {}; | 13010 var queryMap = {}; |
10925 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13011 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10926 parseBool(n) { | 13012 parseBool(n) { |
10927 if (n == "true") return true; | 13013 if (n == "true") return true; |
10928 if (n == "false") return false; | 13014 if (n == "false") return false; |
10929 if (n == null) return null; | 13015 if (n == null) return null; |
10930 throw new core.ArgumentError("Invalid boolean: $n"); | 13016 throw new core.ArgumentError("Invalid boolean: $n"); |
10931 } | 13017 } |
10932 if (query.length > 0) { | 13018 if (query.length > 0) { |
10933 for (var part in query.split("&")) { | 13019 for (var part in query.split("&")) { |
10934 var keyvalue = part.split("="); | 13020 var keyvalue = part.split("="); |
10935 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13021 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10936 } | 13022 } |
10937 } | 13023 } |
10938 | 13024 |
10939 | 13025 |
10940 var h = { | 13026 var h = { |
10941 "content-type" : "application/json; charset=utf-8", | 13027 "content-type" : "application/json; charset=utf-8", |
10942 }; | 13028 }; |
10943 var resp = convert.JSON.encode(buildOperation()); | 13029 var resp = convert.JSON.encode(buildForwardingRule()); |
10944 return new async.Future.value(stringResponse(200, h, resp)); | 13030 return new async.Future.value(stringResponse(200, h, resp)); |
10945 }), true); | 13031 }), true); |
10946 res.update(arg_request, arg_project, arg_backendService).then(unittest.exp
ectAsync(((api.Operation response) { | 13032 res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.F
orwardingRule response) { |
10947 checkOperation(response); | 13033 checkForwardingRule(response); |
10948 }))); | 13034 }))); |
10949 }); | 13035 }); |
10950 | 13036 |
10951 }); | 13037 unittest.test("method--insert", () { |
10952 | |
10953 | |
10954 unittest.group("resource-DiskTypesResourceApi", () { | |
10955 unittest.test("method--aggregatedList", () { | |
10956 | 13038 |
10957 var mock = new HttpServerMock(); | 13039 var mock = new HttpServerMock(); |
10958 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; | 13040 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 13041 var arg_request = buildForwardingRule(); |
10959 var arg_project = "foo"; | 13042 var arg_project = "foo"; |
10960 var arg_filter = "foo"; | |
10961 var arg_maxResults = 42; | |
10962 var arg_orderBy = "foo"; | |
10963 var arg_pageToken = "foo"; | |
10964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13044 var obj = new api.ForwardingRule.fromJson(json); |
| 13045 checkForwardingRule(obj); |
| 13046 |
10965 var path = (req.url).path; | 13047 var path = (req.url).path; |
10966 var pathOffset = 0; | 13048 var pathOffset = 0; |
10967 var index; | 13049 var index; |
10968 var subPart; | 13050 var subPart; |
10969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13051 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
10970 pathOffset += 1; | 13052 pathOffset += 1; |
10971 | 13053 |
10972 var query = (req.url).query; | 13054 var query = (req.url).query; |
10973 var queryOffset = 0; | 13055 var queryOffset = 0; |
10974 var queryMap = {}; | 13056 var queryMap = {}; |
10975 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13057 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
10976 parseBool(n) { | 13058 parseBool(n) { |
10977 if (n == "true") return true; | 13059 if (n == "true") return true; |
10978 if (n == "false") return false; | 13060 if (n == "false") return false; |
10979 if (n == null) return null; | 13061 if (n == null) return null; |
10980 throw new core.ArgumentError("Invalid boolean: $n"); | 13062 throw new core.ArgumentError("Invalid boolean: $n"); |
10981 } | 13063 } |
10982 if (query.length > 0) { | 13064 if (query.length > 0) { |
10983 for (var part in query.split("&")) { | 13065 for (var part in query.split("&")) { |
10984 var keyvalue = part.split("="); | 13066 var keyvalue = part.split("="); |
10985 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13067 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
10986 } | 13068 } |
10987 } | 13069 } |
10988 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
10989 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
10990 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
10991 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
10992 | 13070 |
10993 | 13071 |
10994 var h = { | 13072 var h = { |
10995 "content-type" : "application/json; charset=utf-8", | 13073 "content-type" : "application/json; charset=utf-8", |
10996 }; | 13074 }; |
10997 var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); | 13075 var resp = convert.JSON.encode(buildOperation()); |
10998 return new async.Future.value(stringResponse(200, h, resp)); | 13076 return new async.Future.value(stringResponse(200, h, resp)); |
10999 }), true); | 13077 }), true); |
11000 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskTypeAggregatedList response) { | 13078 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
11001 checkDiskTypeAggregatedList(response); | 13079 checkOperation(response); |
11002 }))); | 13080 }))); |
11003 }); | 13081 }); |
11004 | 13082 |
11005 unittest.test("method--get", () { | 13083 unittest.test("method--list", () { |
11006 | 13084 |
11007 var mock = new HttpServerMock(); | 13085 var mock = new HttpServerMock(); |
11008 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; | 13086 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
11009 var arg_project = "foo"; | 13087 var arg_project = "foo"; |
11010 var arg_zone = "foo"; | 13088 var arg_filter = "foo"; |
11011 var arg_diskType = "foo"; | 13089 var arg_maxResults = 42; |
| 13090 var arg_orderBy = "foo"; |
| 13091 var arg_pageToken = "foo"; |
11012 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13092 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11013 var path = (req.url).path; | 13093 var path = (req.url).path; |
11014 var pathOffset = 0; | 13094 var pathOffset = 0; |
11015 var index; | 13095 var index; |
11016 var subPart; | 13096 var subPart; |
11017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13097 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11018 pathOffset += 1; | 13098 pathOffset += 1; |
11019 | 13099 |
11020 var query = (req.url).query; | 13100 var query = (req.url).query; |
11021 var queryOffset = 0; | 13101 var queryOffset = 0; |
11022 var queryMap = {}; | 13102 var queryMap = {}; |
11023 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13103 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11024 parseBool(n) { | 13104 parseBool(n) { |
11025 if (n == "true") return true; | 13105 if (n == "true") return true; |
11026 if (n == "false") return false; | 13106 if (n == "false") return false; |
11027 if (n == null) return null; | 13107 if (n == null) return null; |
11028 throw new core.ArgumentError("Invalid boolean: $n"); | 13108 throw new core.ArgumentError("Invalid boolean: $n"); |
11029 } | 13109 } |
11030 if (query.length > 0) { | 13110 if (query.length > 0) { |
11031 for (var part in query.split("&")) { | 13111 for (var part in query.split("&")) { |
11032 var keyvalue = part.split("="); | 13112 var keyvalue = part.split("="); |
11033 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13113 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11034 } | 13114 } |
11035 } | 13115 } |
| 13116 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 13117 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 13118 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 13119 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
11036 | 13120 |
11037 | 13121 |
11038 var h = { | 13122 var h = { |
11039 "content-type" : "application/json; charset=utf-8", | 13123 "content-type" : "application/json; charset=utf-8", |
11040 }; | 13124 }; |
11041 var resp = convert.JSON.encode(buildDiskType()); | 13125 var resp = convert.JSON.encode(buildForwardingRuleList()); |
11042 return new async.Future.value(stringResponse(200, h, resp)); | 13126 return new async.Future.value(stringResponse(200, h, resp)); |
11043 }), true); | 13127 }), true); |
11044 res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((a
pi.DiskType response) { | 13128 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Forw
ardingRuleList response) { |
11045 checkDiskType(response); | 13129 checkForwardingRuleList(response); |
11046 }))); | 13130 }))); |
11047 }); | 13131 }); |
11048 | 13132 |
11049 unittest.test("method--list", () { | 13133 unittest.test("method--setTarget", () { |
11050 | 13134 |
11051 var mock = new HttpServerMock(); | 13135 var mock = new HttpServerMock(); |
11052 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; | 13136 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 13137 var arg_request = buildTargetReference(); |
11053 var arg_project = "foo"; | 13138 var arg_project = "foo"; |
11054 var arg_zone = "foo"; | 13139 var arg_forwardingRule = "foo"; |
11055 var arg_filter = "foo"; | |
11056 var arg_maxResults = 42; | |
11057 var arg_orderBy = "foo"; | |
11058 var arg_pageToken = "foo"; | |
11059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13140 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13141 var obj = new api.TargetReference.fromJson(json); |
| 13142 checkTargetReference(obj); |
| 13143 |
11060 var path = (req.url).path; | 13144 var path = (req.url).path; |
11061 var pathOffset = 0; | 13145 var pathOffset = 0; |
11062 var index; | 13146 var index; |
11063 var subPart; | 13147 var subPart; |
11064 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13148 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11065 pathOffset += 1; | 13149 pathOffset += 1; |
11066 | 13150 |
11067 var query = (req.url).query; | 13151 var query = (req.url).query; |
11068 var queryOffset = 0; | 13152 var queryOffset = 0; |
11069 var queryMap = {}; | 13153 var queryMap = {}; |
11070 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13154 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11071 parseBool(n) { | 13155 parseBool(n) { |
11072 if (n == "true") return true; | 13156 if (n == "true") return true; |
11073 if (n == "false") return false; | 13157 if (n == "false") return false; |
11074 if (n == null) return null; | 13158 if (n == null) return null; |
11075 throw new core.ArgumentError("Invalid boolean: $n"); | 13159 throw new core.ArgumentError("Invalid boolean: $n"); |
11076 } | 13160 } |
11077 if (query.length > 0) { | 13161 if (query.length > 0) { |
11078 for (var part in query.split("&")) { | 13162 for (var part in query.split("&")) { |
11079 var keyvalue = part.split("="); | 13163 var keyvalue = part.split("="); |
11080 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13164 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11081 } | 13165 } |
11082 } | 13166 } |
11083 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
11084 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
11085 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
11086 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
11087 | 13167 |
11088 | 13168 |
11089 var h = { | 13169 var h = { |
11090 "content-type" : "application/json; charset=utf-8", | 13170 "content-type" : "application/json; charset=utf-8", |
11091 }; | 13171 }; |
11092 var resp = convert.JSON.encode(buildDiskTypeList()); | 13172 var resp = convert.JSON.encode(buildOperation()); |
11093 return new async.Future.value(stringResponse(200, h, resp)); | 13173 return new async.Future.value(stringResponse(200, h, resp)); |
11094 }), true); | 13174 }), true); |
11095 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskTypeList response) { | 13175 res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.
expectAsync(((api.Operation response) { |
11096 checkDiskTypeList(response); | 13176 checkOperation(response); |
11097 }))); | 13177 }))); |
11098 }); | 13178 }); |
11099 | 13179 |
11100 }); | 13180 }); |
11101 | 13181 |
11102 | 13182 |
11103 unittest.group("resource-DisksResourceApi", () { | 13183 unittest.group("resource-GlobalOperationsResourceApi", () { |
11104 unittest.test("method--aggregatedList", () { | 13184 unittest.test("method--aggregatedList", () { |
11105 | 13185 |
11106 var mock = new HttpServerMock(); | 13186 var mock = new HttpServerMock(); |
11107 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 13187 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
11108 var arg_project = "foo"; | 13188 var arg_project = "foo"; |
11109 var arg_filter = "foo"; | 13189 var arg_filter = "foo"; |
11110 var arg_maxResults = 42; | 13190 var arg_maxResults = 42; |
11111 var arg_orderBy = "foo"; | 13191 var arg_orderBy = "foo"; |
11112 var arg_pageToken = "foo"; | 13192 var arg_pageToken = "foo"; |
11113 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13193 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11114 var path = (req.url).path; | 13194 var path = (req.url).path; |
11115 var pathOffset = 0; | 13195 var pathOffset = 0; |
11116 var index; | 13196 var index; |
11117 var subPart; | 13197 var subPart; |
(...skipping 18 matching lines...) Expand all Loading... |
11136 } | 13216 } |
11137 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 13217 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
11138 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 13218 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
11139 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 13219 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
11140 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 13220 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
11141 | 13221 |
11142 | 13222 |
11143 var h = { | 13223 var h = { |
11144 "content-type" : "application/json; charset=utf-8", | 13224 "content-type" : "application/json; charset=utf-8", |
11145 }; | 13225 }; |
11146 var resp = convert.JSON.encode(buildDiskAggregatedList()); | 13226 var resp = convert.JSON.encode(buildOperationAggregatedList()); |
11147 return new async.Future.value(stringResponse(200, h, resp)); | 13227 return new async.Future.value(stringResponse(200, h, resp)); |
11148 }), true); | 13228 }), true); |
11149 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskAggregatedList response) { | 13229 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.OperationAggregatedList response) { |
11150 checkDiskAggregatedList(response); | 13230 checkOperationAggregatedList(response); |
11151 }))); | 13231 }))); |
11152 }); | 13232 }); |
11153 | 13233 |
11154 unittest.test("method--createSnapshot", () { | 13234 unittest.test("method--delete", () { |
11155 | 13235 |
11156 var mock = new HttpServerMock(); | 13236 var mock = new HttpServerMock(); |
11157 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 13237 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
11158 var arg_request = buildSnapshot(); | |
11159 var arg_project = "foo"; | 13238 var arg_project = "foo"; |
11160 var arg_zone = "foo"; | 13239 var arg_operation = "foo"; |
11161 var arg_disk = "foo"; | |
11162 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13240 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11163 var obj = new api.Snapshot.fromJson(json); | |
11164 checkSnapshot(obj); | |
11165 | |
11166 var path = (req.url).path; | 13241 var path = (req.url).path; |
11167 var pathOffset = 0; | 13242 var pathOffset = 0; |
11168 var index; | 13243 var index; |
11169 var subPart; | 13244 var subPart; |
11170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13245 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11171 pathOffset += 1; | 13246 pathOffset += 1; |
11172 | 13247 |
11173 var query = (req.url).query; | 13248 var query = (req.url).query; |
11174 var queryOffset = 0; | 13249 var queryOffset = 0; |
11175 var queryMap = {}; | 13250 var queryMap = {}; |
11176 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13251 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11177 parseBool(n) { | 13252 parseBool(n) { |
11178 if (n == "true") return true; | 13253 if (n == "true") return true; |
11179 if (n == "false") return false; | 13254 if (n == "false") return false; |
11180 if (n == null) return null; | 13255 if (n == null) return null; |
11181 throw new core.ArgumentError("Invalid boolean: $n"); | 13256 throw new core.ArgumentError("Invalid boolean: $n"); |
11182 } | 13257 } |
11183 if (query.length > 0) { | 13258 if (query.length > 0) { |
11184 for (var part in query.split("&")) { | 13259 for (var part in query.split("&")) { |
11185 var keyvalue = part.split("="); | 13260 var keyvalue = part.split("="); |
11186 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13261 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11187 } | 13262 } |
11188 } | 13263 } |
11189 | 13264 |
11190 | 13265 |
11191 var h = { | 13266 var h = { |
11192 "content-type" : "application/json; charset=utf-8", | 13267 "content-type" : "application/json; charset=utf-8", |
11193 }; | 13268 }; |
11194 var resp = convert.JSON.encode(buildOperation()); | 13269 var resp = ""; |
11195 return new async.Future.value(stringResponse(200, h, resp)); | 13270 return new async.Future.value(stringResponse(200, h, resp)); |
11196 }), true); | 13271 }), true); |
11197 res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk).then(unit
test.expectAsync(((api.Operation response) { | 13272 res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); |
11198 checkOperation(response); | |
11199 }))); | |
11200 }); | 13273 }); |
11201 | 13274 |
11202 unittest.test("method--delete", () { | 13275 unittest.test("method--get", () { |
11203 | 13276 |
11204 var mock = new HttpServerMock(); | 13277 var mock = new HttpServerMock(); |
11205 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 13278 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
11206 var arg_project = "foo"; | 13279 var arg_project = "foo"; |
11207 var arg_zone = "foo"; | 13280 var arg_operation = "foo"; |
11208 var arg_disk = "foo"; | |
11209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11210 var path = (req.url).path; | 13282 var path = (req.url).path; |
11211 var pathOffset = 0; | 13283 var pathOffset = 0; |
11212 var index; | 13284 var index; |
11213 var subPart; | 13285 var subPart; |
11214 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11215 pathOffset += 1; | 13287 pathOffset += 1; |
11216 | 13288 |
11217 var query = (req.url).query; | 13289 var query = (req.url).query; |
11218 var queryOffset = 0; | 13290 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
11231 } | 13303 } |
11232 } | 13304 } |
11233 | 13305 |
11234 | 13306 |
11235 var h = { | 13307 var h = { |
11236 "content-type" : "application/json; charset=utf-8", | 13308 "content-type" : "application/json; charset=utf-8", |
11237 }; | 13309 }; |
11238 var resp = convert.JSON.encode(buildOperation()); | 13310 var resp = convert.JSON.encode(buildOperation()); |
11239 return new async.Future.value(stringResponse(200, h, resp)); | 13311 return new async.Future.value(stringResponse(200, h, resp)); |
11240 }), true); | 13312 }), true); |
11241 res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((ap
i.Operation response) { | 13313 res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operat
ion response) { |
11242 checkOperation(response); | 13314 checkOperation(response); |
11243 }))); | 13315 }))); |
11244 }); | 13316 }); |
11245 | 13317 |
11246 unittest.test("method--get", () { | 13318 unittest.test("method--list", () { |
11247 | 13319 |
11248 var mock = new HttpServerMock(); | 13320 var mock = new HttpServerMock(); |
11249 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 13321 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
11250 var arg_project = "foo"; | 13322 var arg_project = "foo"; |
11251 var arg_zone = "foo"; | 13323 var arg_filter = "foo"; |
11252 var arg_disk = "foo"; | 13324 var arg_maxResults = 42; |
| 13325 var arg_orderBy = "foo"; |
| 13326 var arg_pageToken = "foo"; |
11253 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13327 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11254 var path = (req.url).path; | 13328 var path = (req.url).path; |
11255 var pathOffset = 0; | 13329 var pathOffset = 0; |
11256 var index; | 13330 var index; |
11257 var subPart; | 13331 var subPart; |
11258 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13332 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11259 pathOffset += 1; | 13333 pathOffset += 1; |
11260 | 13334 |
11261 var query = (req.url).query; | 13335 var query = (req.url).query; |
11262 var queryOffset = 0; | 13336 var queryOffset = 0; |
11263 var queryMap = {}; | 13337 var queryMap = {}; |
11264 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13338 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11265 parseBool(n) { | 13339 parseBool(n) { |
11266 if (n == "true") return true; | 13340 if (n == "true") return true; |
11267 if (n == "false") return false; | 13341 if (n == "false") return false; |
11268 if (n == null) return null; | 13342 if (n == null) return null; |
11269 throw new core.ArgumentError("Invalid boolean: $n"); | 13343 throw new core.ArgumentError("Invalid boolean: $n"); |
11270 } | 13344 } |
11271 if (query.length > 0) { | 13345 if (query.length > 0) { |
11272 for (var part in query.split("&")) { | 13346 for (var part in query.split("&")) { |
11273 var keyvalue = part.split("="); | 13347 var keyvalue = part.split("="); |
11274 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13348 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11275 } | 13349 } |
11276 } | 13350 } |
| 13351 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 13352 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 13353 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 13354 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
11277 | 13355 |
11278 | 13356 |
11279 var h = { | 13357 var h = { |
11280 "content-type" : "application/json; charset=utf-8", | 13358 "content-type" : "application/json; charset=utf-8", |
11281 }; | 13359 }; |
11282 var resp = convert.JSON.encode(buildDisk()); | 13360 var resp = convert.JSON.encode(buildOperationList()); |
11283 return new async.Future.value(stringResponse(200, h, resp)); | 13361 return new async.Future.value(stringResponse(200, h, resp)); |
11284 }), true); | 13362 }), true); |
11285 res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.D
isk response) { | 13363 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Oper
ationList response) { |
11286 checkDisk(response); | 13364 checkOperationList(response); |
11287 }))); | 13365 }))); |
11288 }); | 13366 }); |
11289 | 13367 |
11290 unittest.test("method--insert", () { | 13368 }); |
| 13369 |
| 13370 |
| 13371 unittest.group("resource-HealthChecksResourceApi", () { |
| 13372 unittest.test("method--delete", () { |
11291 | 13373 |
11292 var mock = new HttpServerMock(); | 13374 var mock = new HttpServerMock(); |
11293 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 13375 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
11294 var arg_request = buildDisk(); | |
11295 var arg_project = "foo"; | 13376 var arg_project = "foo"; |
11296 var arg_zone = "foo"; | 13377 var arg_healthCheck = "foo"; |
11297 var arg_sourceImage = "foo"; | |
11298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
11299 var obj = new api.Disk.fromJson(json); | |
11300 checkDisk(obj); | |
11301 | |
11302 var path = (req.url).path; | |
11303 var pathOffset = 0; | |
11304 var index; | |
11305 var subPart; | |
11306 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
11307 pathOffset += 1; | |
11308 | |
11309 var query = (req.url).query; | |
11310 var queryOffset = 0; | |
11311 var queryMap = {}; | |
11312 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
11313 parseBool(n) { | |
11314 if (n == "true") return true; | |
11315 if (n == "false") return false; | |
11316 if (n == null) return null; | |
11317 throw new core.ArgumentError("Invalid boolean: $n"); | |
11318 } | |
11319 if (query.length > 0) { | |
11320 for (var part in query.split("&")) { | |
11321 var keyvalue = part.split("="); | |
11322 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
11323 } | |
11324 } | |
11325 unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourc
eImage)); | |
11326 | |
11327 | |
11328 var h = { | |
11329 "content-type" : "application/json; charset=utf-8", | |
11330 }; | |
11331 var resp = convert.JSON.encode(buildOperation()); | |
11332 return new async.Future.value(stringResponse(200, h, resp)); | |
11333 }), true); | |
11334 res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImag
e).then(unittest.expectAsync(((api.Operation response) { | |
11335 checkOperation(response); | |
11336 }))); | |
11337 }); | |
11338 | |
11339 unittest.test("method--list", () { | |
11340 | |
11341 var mock = new HttpServerMock(); | |
11342 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | |
11343 var arg_project = "foo"; | |
11344 var arg_zone = "foo"; | |
11345 var arg_filter = "foo"; | |
11346 var arg_maxResults = 42; | |
11347 var arg_orderBy = "foo"; | |
11348 var arg_pageToken = "foo"; | |
11349 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11350 var path = (req.url).path; | 13379 var path = (req.url).path; |
11351 var pathOffset = 0; | 13380 var pathOffset = 0; |
11352 var index; | 13381 var index; |
11353 var subPart; | 13382 var subPart; |
11354 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11355 pathOffset += 1; | 13384 pathOffset += 1; |
11356 | 13385 |
11357 var query = (req.url).query; | 13386 var query = (req.url).query; |
11358 var queryOffset = 0; | 13387 var queryOffset = 0; |
11359 var queryMap = {}; | 13388 var queryMap = {}; |
11360 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13389 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11361 parseBool(n) { | 13390 parseBool(n) { |
11362 if (n == "true") return true; | 13391 if (n == "true") return true; |
11363 if (n == "false") return false; | 13392 if (n == "false") return false; |
11364 if (n == null) return null; | 13393 if (n == null) return null; |
11365 throw new core.ArgumentError("Invalid boolean: $n"); | 13394 throw new core.ArgumentError("Invalid boolean: $n"); |
11366 } | 13395 } |
11367 if (query.length > 0) { | 13396 if (query.length > 0) { |
11368 for (var part in query.split("&")) { | 13397 for (var part in query.split("&")) { |
11369 var keyvalue = part.split("="); | 13398 var keyvalue = part.split("="); |
11370 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13399 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11371 } | 13400 } |
11372 } | 13401 } |
11373 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
11374 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
11375 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
11376 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
11377 | 13402 |
11378 | 13403 |
11379 var h = { | 13404 var h = { |
11380 "content-type" : "application/json; charset=utf-8", | 13405 "content-type" : "application/json; charset=utf-8", |
11381 }; | 13406 }; |
11382 var resp = convert.JSON.encode(buildDiskList()); | 13407 var resp = convert.JSON.encode(buildOperation()); |
11383 return new async.Future.value(stringResponse(200, h, resp)); | 13408 return new async.Future.value(stringResponse(200, h, resp)); |
11384 }), true); | 13409 }), true); |
11385 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.DiskList response) { | 13410 res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.O
peration response) { |
11386 checkDiskList(response); | 13411 checkOperation(response); |
11387 }))); | 13412 }))); |
11388 }); | 13413 }); |
11389 | 13414 |
11390 unittest.test("method--resize", () { | 13415 unittest.test("method--get", () { |
11391 | 13416 |
11392 var mock = new HttpServerMock(); | 13417 var mock = new HttpServerMock(); |
11393 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 13418 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
11394 var arg_request = buildDisksResizeRequest(); | |
11395 var arg_project = "foo"; | 13419 var arg_project = "foo"; |
11396 var arg_zone = "foo"; | 13420 var arg_healthCheck = "foo"; |
11397 var arg_disk = "foo"; | |
11398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13421 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11399 var obj = new api.DisksResizeRequest.fromJson(json); | |
11400 checkDisksResizeRequest(obj); | |
11401 | |
11402 var path = (req.url).path; | 13422 var path = (req.url).path; |
11403 var pathOffset = 0; | 13423 var pathOffset = 0; |
11404 var index; | 13424 var index; |
11405 var subPart; | 13425 var subPart; |
11406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13426 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11407 pathOffset += 1; | 13427 pathOffset += 1; |
11408 | 13428 |
11409 var query = (req.url).query; | 13429 var query = (req.url).query; |
11410 var queryOffset = 0; | 13430 var queryOffset = 0; |
11411 var queryMap = {}; | 13431 var queryMap = {}; |
11412 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13432 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11413 parseBool(n) { | 13433 parseBool(n) { |
11414 if (n == "true") return true; | 13434 if (n == "true") return true; |
11415 if (n == "false") return false; | 13435 if (n == "false") return false; |
11416 if (n == null) return null; | 13436 if (n == null) return null; |
11417 throw new core.ArgumentError("Invalid boolean: $n"); | 13437 throw new core.ArgumentError("Invalid boolean: $n"); |
11418 } | 13438 } |
11419 if (query.length > 0) { | 13439 if (query.length > 0) { |
11420 for (var part in query.split("&")) { | 13440 for (var part in query.split("&")) { |
11421 var keyvalue = part.split("="); | 13441 var keyvalue = part.split("="); |
11422 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13442 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11423 } | 13443 } |
11424 } | 13444 } |
11425 | 13445 |
11426 | 13446 |
11427 var h = { | 13447 var h = { |
11428 "content-type" : "application/json; charset=utf-8", | 13448 "content-type" : "application/json; charset=utf-8", |
11429 }; | 13449 }; |
11430 var resp = convert.JSON.encode(buildOperation()); | 13450 var resp = convert.JSON.encode(buildHealthCheck()); |
11431 return new async.Future.value(stringResponse(200, h, resp)); | 13451 return new async.Future.value(stringResponse(200, h, resp)); |
11432 }), true); | 13452 }), true); |
11433 res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.exp
ectAsync(((api.Operation response) { | 13453 res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Heal
thCheck response) { |
11434 checkOperation(response); | 13454 checkHealthCheck(response); |
11435 }))); | 13455 }))); |
11436 }); | 13456 }); |
11437 | 13457 |
11438 }); | 13458 unittest.test("method--insert", () { |
11439 | |
11440 | |
11441 unittest.group("resource-FirewallsResourceApi", () { | |
11442 unittest.test("method--delete", () { | |
11443 | 13459 |
11444 var mock = new HttpServerMock(); | 13460 var mock = new HttpServerMock(); |
11445 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 13461 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 13462 var arg_request = buildHealthCheck(); |
11446 var arg_project = "foo"; | 13463 var arg_project = "foo"; |
11447 var arg_firewall = "foo"; | |
11448 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13464 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13465 var obj = new api.HealthCheck.fromJson(json); |
| 13466 checkHealthCheck(obj); |
| 13467 |
11449 var path = (req.url).path; | 13468 var path = (req.url).path; |
11450 var pathOffset = 0; | 13469 var pathOffset = 0; |
11451 var index; | 13470 var index; |
11452 var subPart; | 13471 var subPart; |
11453 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13472 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11454 pathOffset += 1; | 13473 pathOffset += 1; |
11455 | 13474 |
11456 var query = (req.url).query; | 13475 var query = (req.url).query; |
11457 var queryOffset = 0; | 13476 var queryOffset = 0; |
11458 var queryMap = {}; | 13477 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
11470 } | 13489 } |
11471 } | 13490 } |
11472 | 13491 |
11473 | 13492 |
11474 var h = { | 13493 var h = { |
11475 "content-type" : "application/json; charset=utf-8", | 13494 "content-type" : "application/json; charset=utf-8", |
11476 }; | 13495 }; |
11477 var resp = convert.JSON.encode(buildOperation()); | 13496 var resp = convert.JSON.encode(buildOperation()); |
11478 return new async.Future.value(stringResponse(200, h, resp)); | 13497 return new async.Future.value(stringResponse(200, h, resp)); |
11479 }), true); | 13498 }), true); |
11480 res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Oper
ation response) { | 13499 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
11481 checkOperation(response); | 13500 checkOperation(response); |
11482 }))); | 13501 }))); |
11483 }); | 13502 }); |
11484 | 13503 |
11485 unittest.test("method--get", () { | 13504 unittest.test("method--list", () { |
11486 | 13505 |
11487 var mock = new HttpServerMock(); | 13506 var mock = new HttpServerMock(); |
11488 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 13507 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
11489 var arg_project = "foo"; | 13508 var arg_project = "foo"; |
11490 var arg_firewall = "foo"; | 13509 var arg_filter = "foo"; |
| 13510 var arg_maxResults = 42; |
| 13511 var arg_orderBy = "foo"; |
| 13512 var arg_pageToken = "foo"; |
11491 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11492 var path = (req.url).path; | 13514 var path = (req.url).path; |
11493 var pathOffset = 0; | 13515 var pathOffset = 0; |
11494 var index; | 13516 var index; |
11495 var subPart; | 13517 var subPart; |
11496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13518 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11497 pathOffset += 1; | 13519 pathOffset += 1; |
11498 | 13520 |
11499 var query = (req.url).query; | 13521 var query = (req.url).query; |
11500 var queryOffset = 0; | 13522 var queryOffset = 0; |
11501 var queryMap = {}; | 13523 var queryMap = {}; |
11502 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13524 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11503 parseBool(n) { | 13525 parseBool(n) { |
11504 if (n == "true") return true; | 13526 if (n == "true") return true; |
11505 if (n == "false") return false; | 13527 if (n == "false") return false; |
11506 if (n == null) return null; | 13528 if (n == null) return null; |
11507 throw new core.ArgumentError("Invalid boolean: $n"); | 13529 throw new core.ArgumentError("Invalid boolean: $n"); |
11508 } | 13530 } |
11509 if (query.length > 0) { | 13531 if (query.length > 0) { |
11510 for (var part in query.split("&")) { | 13532 for (var part in query.split("&")) { |
11511 var keyvalue = part.split("="); | 13533 var keyvalue = part.split("="); |
11512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13534 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11513 } | 13535 } |
11514 } | 13536 } |
| 13537 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 13538 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 13539 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 13540 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
11515 | 13541 |
11516 | 13542 |
11517 var h = { | 13543 var h = { |
11518 "content-type" : "application/json; charset=utf-8", | 13544 "content-type" : "application/json; charset=utf-8", |
11519 }; | 13545 }; |
11520 var resp = convert.JSON.encode(buildFirewall()); | 13546 var resp = convert.JSON.encode(buildHealthCheckList()); |
11521 return new async.Future.value(stringResponse(200, h, resp)); | 13547 return new async.Future.value(stringResponse(200, h, resp)); |
11522 }), true); | 13548 }), true); |
11523 res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewal
l response) { | 13549 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Heal
thCheckList response) { |
11524 checkFirewall(response); | 13550 checkHealthCheckList(response); |
11525 }))); | 13551 }))); |
11526 }); | 13552 }); |
11527 | 13553 |
11528 unittest.test("method--insert", () { | 13554 unittest.test("method--patch", () { |
11529 | 13555 |
11530 var mock = new HttpServerMock(); | 13556 var mock = new HttpServerMock(); |
11531 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 13557 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
11532 var arg_request = buildFirewall(); | 13558 var arg_request = buildHealthCheck(); |
11533 var arg_project = "foo"; | 13559 var arg_project = "foo"; |
| 13560 var arg_healthCheck = "foo"; |
11534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13561 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11535 var obj = new api.Firewall.fromJson(json); | 13562 var obj = new api.HealthCheck.fromJson(json); |
11536 checkFirewall(obj); | 13563 checkHealthCheck(obj); |
11537 | 13564 |
11538 var path = (req.url).path; | 13565 var path = (req.url).path; |
11539 var pathOffset = 0; | 13566 var pathOffset = 0; |
11540 var index; | 13567 var index; |
11541 var subPart; | 13568 var subPart; |
11542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11543 pathOffset += 1; | 13570 pathOffset += 1; |
11544 | 13571 |
11545 var query = (req.url).query; | 13572 var query = (req.url).query; |
11546 var queryOffset = 0; | 13573 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
11559 } | 13586 } |
11560 } | 13587 } |
11561 | 13588 |
11562 | 13589 |
11563 var h = { | 13590 var h = { |
11564 "content-type" : "application/json; charset=utf-8", | 13591 "content-type" : "application/json; charset=utf-8", |
11565 }; | 13592 }; |
11566 var resp = convert.JSON.encode(buildOperation()); | 13593 var resp = convert.JSON.encode(buildOperation()); |
11567 return new async.Future.value(stringResponse(200, h, resp)); | 13594 return new async.Future.value(stringResponse(200, h, resp)); |
11568 }), true); | 13595 }), true); |
11569 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 13596 res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectA
sync(((api.Operation response) { |
11570 checkOperation(response); | 13597 checkOperation(response); |
11571 }))); | 13598 }))); |
11572 }); | 13599 }); |
11573 | 13600 |
11574 unittest.test("method--list", () { | 13601 unittest.test("method--update", () { |
11575 | 13602 |
11576 var mock = new HttpServerMock(); | 13603 var mock = new HttpServerMock(); |
11577 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 13604 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 13605 var arg_request = buildHealthCheck(); |
11578 var arg_project = "foo"; | 13606 var arg_project = "foo"; |
11579 var arg_filter = "foo"; | 13607 var arg_healthCheck = "foo"; |
11580 var arg_maxResults = 42; | |
11581 var arg_orderBy = "foo"; | |
11582 var arg_pageToken = "foo"; | |
11583 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13608 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13609 var obj = new api.HealthCheck.fromJson(json); |
| 13610 checkHealthCheck(obj); |
| 13611 |
11584 var path = (req.url).path; | 13612 var path = (req.url).path; |
11585 var pathOffset = 0; | 13613 var pathOffset = 0; |
11586 var index; | 13614 var index; |
11587 var subPart; | 13615 var subPart; |
11588 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13616 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11589 pathOffset += 1; | 13617 pathOffset += 1; |
11590 | 13618 |
11591 var query = (req.url).query; | 13619 var query = (req.url).query; |
11592 var queryOffset = 0; | 13620 var queryOffset = 0; |
11593 var queryMap = {}; | 13621 var queryMap = {}; |
11594 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13622 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11595 parseBool(n) { | 13623 parseBool(n) { |
11596 if (n == "true") return true; | 13624 if (n == "true") return true; |
11597 if (n == "false") return false; | 13625 if (n == "false") return false; |
11598 if (n == null) return null; | 13626 if (n == null) return null; |
11599 throw new core.ArgumentError("Invalid boolean: $n"); | 13627 throw new core.ArgumentError("Invalid boolean: $n"); |
11600 } | 13628 } |
11601 if (query.length > 0) { | 13629 if (query.length > 0) { |
11602 for (var part in query.split("&")) { | 13630 for (var part in query.split("&")) { |
11603 var keyvalue = part.split("="); | 13631 var keyvalue = part.split("="); |
11604 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13632 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11605 } | 13633 } |
11606 } | 13634 } |
11607 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
11608 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
11609 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
11610 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
11611 | 13635 |
11612 | 13636 |
11613 var h = { | 13637 var h = { |
11614 "content-type" : "application/json; charset=utf-8", | 13638 "content-type" : "application/json; charset=utf-8", |
11615 }; | 13639 }; |
11616 var resp = convert.JSON.encode(buildFirewallList()); | 13640 var resp = convert.JSON.encode(buildOperation()); |
11617 return new async.Future.value(stringResponse(200, h, resp)); | 13641 return new async.Future.value(stringResponse(200, h, resp)); |
11618 }), true); | 13642 }), true); |
11619 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Fire
wallList response) { | 13643 res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expect
Async(((api.Operation response) { |
11620 checkFirewallList(response); | 13644 checkOperation(response); |
11621 }))); | 13645 }))); |
11622 }); | 13646 }); |
11623 | 13647 |
11624 unittest.test("method--patch", () { | 13648 }); |
| 13649 |
| 13650 |
| 13651 unittest.group("resource-HttpHealthChecksResourceApi", () { |
| 13652 unittest.test("method--delete", () { |
11625 | 13653 |
11626 var mock = new HttpServerMock(); | 13654 var mock = new HttpServerMock(); |
11627 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 13655 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
11628 var arg_request = buildFirewall(); | |
11629 var arg_project = "foo"; | 13656 var arg_project = "foo"; |
11630 var arg_firewall = "foo"; | 13657 var arg_httpHealthCheck = "foo"; |
11631 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13658 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11632 var obj = new api.Firewall.fromJson(json); | |
11633 checkFirewall(obj); | |
11634 | |
11635 var path = (req.url).path; | 13659 var path = (req.url).path; |
11636 var pathOffset = 0; | 13660 var pathOffset = 0; |
11637 var index; | 13661 var index; |
11638 var subPart; | 13662 var subPart; |
11639 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13663 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11640 pathOffset += 1; | 13664 pathOffset += 1; |
11641 | 13665 |
11642 var query = (req.url).query; | 13666 var query = (req.url).query; |
11643 var queryOffset = 0; | 13667 var queryOffset = 0; |
11644 var queryMap = {}; | 13668 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
11656 } | 13680 } |
11657 } | 13681 } |
11658 | 13682 |
11659 | 13683 |
11660 var h = { | 13684 var h = { |
11661 "content-type" : "application/json; charset=utf-8", | 13685 "content-type" : "application/json; charset=utf-8", |
11662 }; | 13686 }; |
11663 var resp = convert.JSON.encode(buildOperation()); | 13687 var resp = convert.JSON.encode(buildOperation()); |
11664 return new async.Future.value(stringResponse(200, h, resp)); | 13688 return new async.Future.value(stringResponse(200, h, resp)); |
11665 }), true); | 13689 }), true); |
11666 res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsyn
c(((api.Operation response) { | 13690 res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((a
pi.Operation response) { |
11667 checkOperation(response); | 13691 checkOperation(response); |
11668 }))); | 13692 }))); |
11669 }); | 13693 }); |
11670 | 13694 |
11671 unittest.test("method--update", () { | 13695 unittest.test("method--get", () { |
11672 | 13696 |
11673 var mock = new HttpServerMock(); | 13697 var mock = new HttpServerMock(); |
11674 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 13698 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
11675 var arg_request = buildFirewall(); | |
11676 var arg_project = "foo"; | 13699 var arg_project = "foo"; |
11677 var arg_firewall = "foo"; | 13700 var arg_httpHealthCheck = "foo"; |
11678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11679 var obj = new api.Firewall.fromJson(json); | |
11680 checkFirewall(obj); | |
11681 | |
11682 var path = (req.url).path; | 13702 var path = (req.url).path; |
11683 var pathOffset = 0; | 13703 var pathOffset = 0; |
11684 var index; | 13704 var index; |
11685 var subPart; | 13705 var subPart; |
11686 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11687 pathOffset += 1; | 13707 pathOffset += 1; |
11688 | 13708 |
11689 var query = (req.url).query; | 13709 var query = (req.url).query; |
11690 var queryOffset = 0; | 13710 var queryOffset = 0; |
11691 var queryMap = {}; | 13711 var queryMap = {}; |
11692 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13712 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11693 parseBool(n) { | 13713 parseBool(n) { |
11694 if (n == "true") return true; | 13714 if (n == "true") return true; |
11695 if (n == "false") return false; | 13715 if (n == "false") return false; |
11696 if (n == null) return null; | 13716 if (n == null) return null; |
11697 throw new core.ArgumentError("Invalid boolean: $n"); | 13717 throw new core.ArgumentError("Invalid boolean: $n"); |
11698 } | 13718 } |
11699 if (query.length > 0) { | 13719 if (query.length > 0) { |
11700 for (var part in query.split("&")) { | 13720 for (var part in query.split("&")) { |
11701 var keyvalue = part.split("="); | 13721 var keyvalue = part.split("="); |
11702 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13722 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11703 } | 13723 } |
11704 } | 13724 } |
11705 | 13725 |
11706 | 13726 |
11707 var h = { | 13727 var h = { |
11708 "content-type" : "application/json; charset=utf-8", | 13728 "content-type" : "application/json; charset=utf-8", |
11709 }; | 13729 }; |
11710 var resp = convert.JSON.encode(buildOperation()); | 13730 var resp = convert.JSON.encode(buildHttpHealthCheck()); |
11711 return new async.Future.value(stringResponse(200, h, resp)); | 13731 return new async.Future.value(stringResponse(200, h, resp)); |
11712 }), true); | 13732 }), true); |
11713 res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsy
nc(((api.Operation response) { | 13733 res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.
HttpHealthCheck response) { |
11714 checkOperation(response); | 13734 checkHttpHealthCheck(response); |
11715 }))); | 13735 }))); |
11716 }); | 13736 }); |
11717 | 13737 |
11718 }); | 13738 unittest.test("method--insert", () { |
11719 | |
11720 | |
11721 unittest.group("resource-ForwardingRulesResourceApi", () { | |
11722 unittest.test("method--aggregatedList", () { | |
11723 | 13739 |
11724 var mock = new HttpServerMock(); | 13740 var mock = new HttpServerMock(); |
11725 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 13741 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 13742 var arg_request = buildHttpHealthCheck(); |
11726 var arg_project = "foo"; | 13743 var arg_project = "foo"; |
11727 var arg_filter = "foo"; | |
11728 var arg_maxResults = 42; | |
11729 var arg_orderBy = "foo"; | |
11730 var arg_pageToken = "foo"; | |
11731 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13745 var obj = new api.HttpHealthCheck.fromJson(json); |
| 13746 checkHttpHealthCheck(obj); |
| 13747 |
11732 var path = (req.url).path; | 13748 var path = (req.url).path; |
11733 var pathOffset = 0; | 13749 var pathOffset = 0; |
11734 var index; | 13750 var index; |
11735 var subPart; | 13751 var subPart; |
11736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11737 pathOffset += 1; | 13753 pathOffset += 1; |
11738 | 13754 |
11739 var query = (req.url).query; | 13755 var query = (req.url).query; |
11740 var queryOffset = 0; | 13756 var queryOffset = 0; |
11741 var queryMap = {}; | 13757 var queryMap = {}; |
11742 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13758 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11743 parseBool(n) { | 13759 parseBool(n) { |
11744 if (n == "true") return true; | 13760 if (n == "true") return true; |
11745 if (n == "false") return false; | 13761 if (n == "false") return false; |
11746 if (n == null) return null; | 13762 if (n == null) return null; |
11747 throw new core.ArgumentError("Invalid boolean: $n"); | 13763 throw new core.ArgumentError("Invalid boolean: $n"); |
11748 } | 13764 } |
11749 if (query.length > 0) { | 13765 if (query.length > 0) { |
11750 for (var part in query.split("&")) { | 13766 for (var part in query.split("&")) { |
11751 var keyvalue = part.split("="); | 13767 var keyvalue = part.split("="); |
11752 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11753 } | 13769 } |
11754 } | 13770 } |
11755 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
11756 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
11757 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
11758 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
11759 | 13771 |
11760 | 13772 |
11761 var h = { | 13773 var h = { |
11762 "content-type" : "application/json; charset=utf-8", | 13774 "content-type" : "application/json; charset=utf-8", |
11763 }; | 13775 }; |
11764 var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); | 13776 var resp = convert.JSON.encode(buildOperation()); |
11765 return new async.Future.value(stringResponse(200, h, resp)); | 13777 return new async.Future.value(stringResponse(200, h, resp)); |
11766 }), true); | 13778 }), true); |
11767 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.ForwardingRuleAggregatedList response) { | 13779 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
11768 checkForwardingRuleAggregatedList(response); | 13780 checkOperation(response); |
11769 }))); | 13781 }))); |
11770 }); | 13782 }); |
11771 | 13783 |
11772 unittest.test("method--delete", () { | 13784 unittest.test("method--list", () { |
11773 | 13785 |
11774 var mock = new HttpServerMock(); | 13786 var mock = new HttpServerMock(); |
11775 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 13787 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
11776 var arg_project = "foo"; | 13788 var arg_project = "foo"; |
11777 var arg_region = "foo"; | 13789 var arg_filter = "foo"; |
11778 var arg_forwardingRule = "foo"; | 13790 var arg_maxResults = 42; |
| 13791 var arg_orderBy = "foo"; |
| 13792 var arg_pageToken = "foo"; |
11779 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13793 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11780 var path = (req.url).path; | 13794 var path = (req.url).path; |
11781 var pathOffset = 0; | 13795 var pathOffset = 0; |
11782 var index; | 13796 var index; |
11783 var subPart; | 13797 var subPart; |
11784 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11785 pathOffset += 1; | 13799 pathOffset += 1; |
11786 | 13800 |
11787 var query = (req.url).query; | 13801 var query = (req.url).query; |
11788 var queryOffset = 0; | 13802 var queryOffset = 0; |
11789 var queryMap = {}; | 13803 var queryMap = {}; |
11790 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13804 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11791 parseBool(n) { | 13805 parseBool(n) { |
11792 if (n == "true") return true; | 13806 if (n == "true") return true; |
11793 if (n == "false") return false; | 13807 if (n == "false") return false; |
11794 if (n == null) return null; | 13808 if (n == null) return null; |
11795 throw new core.ArgumentError("Invalid boolean: $n"); | 13809 throw new core.ArgumentError("Invalid boolean: $n"); |
11796 } | 13810 } |
11797 if (query.length > 0) { | 13811 if (query.length > 0) { |
11798 for (var part in query.split("&")) { | 13812 for (var part in query.split("&")) { |
11799 var keyvalue = part.split("="); | 13813 var keyvalue = part.split("="); |
11800 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13814 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11801 } | 13815 } |
11802 } | 13816 } |
| 13817 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 13818 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 13819 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 13820 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
11803 | 13821 |
11804 | 13822 |
11805 var h = { | 13823 var h = { |
11806 "content-type" : "application/json; charset=utf-8", | 13824 "content-type" : "application/json; charset=utf-8", |
11807 }; | 13825 }; |
11808 var resp = convert.JSON.encode(buildOperation()); | 13826 var resp = convert.JSON.encode(buildHttpHealthCheckList()); |
11809 return new async.Future.value(stringResponse(200, h, resp)); | 13827 return new async.Future.value(stringResponse(200, h, resp)); |
11810 }), true); | 13828 }), true); |
11811 res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expe
ctAsync(((api.Operation response) { | 13829 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Http
HealthCheckList response) { |
11812 checkOperation(response); | 13830 checkHttpHealthCheckList(response); |
11813 }))); | 13831 }))); |
11814 }); | 13832 }); |
11815 | 13833 |
11816 unittest.test("method--get", () { | 13834 unittest.test("method--patch", () { |
11817 | 13835 |
11818 var mock = new HttpServerMock(); | 13836 var mock = new HttpServerMock(); |
11819 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 13837 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 13838 var arg_request = buildHttpHealthCheck(); |
11820 var arg_project = "foo"; | 13839 var arg_project = "foo"; |
11821 var arg_region = "foo"; | 13840 var arg_httpHealthCheck = "foo"; |
11822 var arg_forwardingRule = "foo"; | |
11823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13841 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 13842 var obj = new api.HttpHealthCheck.fromJson(json); |
| 13843 checkHttpHealthCheck(obj); |
| 13844 |
11824 var path = (req.url).path; | 13845 var path = (req.url).path; |
11825 var pathOffset = 0; | 13846 var pathOffset = 0; |
11826 var index; | 13847 var index; |
11827 var subPart; | 13848 var subPart; |
11828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11829 pathOffset += 1; | 13850 pathOffset += 1; |
11830 | 13851 |
11831 var query = (req.url).query; | 13852 var query = (req.url).query; |
11832 var queryOffset = 0; | 13853 var queryOffset = 0; |
11833 var queryMap = {}; | 13854 var queryMap = {}; |
11834 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13855 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11835 parseBool(n) { | 13856 parseBool(n) { |
11836 if (n == "true") return true; | 13857 if (n == "true") return true; |
11837 if (n == "false") return false; | 13858 if (n == "false") return false; |
11838 if (n == null) return null; | 13859 if (n == null) return null; |
11839 throw new core.ArgumentError("Invalid boolean: $n"); | 13860 throw new core.ArgumentError("Invalid boolean: $n"); |
11840 } | 13861 } |
11841 if (query.length > 0) { | 13862 if (query.length > 0) { |
11842 for (var part in query.split("&")) { | 13863 for (var part in query.split("&")) { |
11843 var keyvalue = part.split("="); | 13864 var keyvalue = part.split("="); |
11844 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13865 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11845 } | 13866 } |
11846 } | 13867 } |
11847 | 13868 |
11848 | 13869 |
11849 var h = { | 13870 var h = { |
11850 "content-type" : "application/json; charset=utf-8", | 13871 "content-type" : "application/json; charset=utf-8", |
11851 }; | 13872 }; |
11852 var resp = convert.JSON.encode(buildForwardingRule()); | 13873 var resp = convert.JSON.encode(buildOperation()); |
11853 return new async.Future.value(stringResponse(200, h, resp)); | 13874 return new async.Future.value(stringResponse(200, h, resp)); |
11854 }), true); | 13875 }), true); |
11855 res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectA
sync(((api.ForwardingRule response) { | 13876 res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.exp
ectAsync(((api.Operation response) { |
11856 checkForwardingRule(response); | 13877 checkOperation(response); |
11857 }))); | 13878 }))); |
11858 }); | 13879 }); |
11859 | 13880 |
11860 unittest.test("method--insert", () { | 13881 unittest.test("method--update", () { |
11861 | 13882 |
11862 var mock = new HttpServerMock(); | 13883 var mock = new HttpServerMock(); |
11863 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 13884 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
11864 var arg_request = buildForwardingRule(); | 13885 var arg_request = buildHttpHealthCheck(); |
11865 var arg_project = "foo"; | 13886 var arg_project = "foo"; |
11866 var arg_region = "foo"; | 13887 var arg_httpHealthCheck = "foo"; |
11867 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13888 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11868 var obj = new api.ForwardingRule.fromJson(json); | 13889 var obj = new api.HttpHealthCheck.fromJson(json); |
11869 checkForwardingRule(obj); | 13890 checkHttpHealthCheck(obj); |
11870 | 13891 |
11871 var path = (req.url).path; | 13892 var path = (req.url).path; |
11872 var pathOffset = 0; | 13893 var pathOffset = 0; |
11873 var index; | 13894 var index; |
11874 var subPart; | 13895 var subPart; |
11875 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13896 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11876 pathOffset += 1; | 13897 pathOffset += 1; |
11877 | 13898 |
11878 var query = (req.url).query; | 13899 var query = (req.url).query; |
11879 var queryOffset = 0; | 13900 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
11892 } | 13913 } |
11893 } | 13914 } |
11894 | 13915 |
11895 | 13916 |
11896 var h = { | 13917 var h = { |
11897 "content-type" : "application/json; charset=utf-8", | 13918 "content-type" : "application/json; charset=utf-8", |
11898 }; | 13919 }; |
11899 var resp = convert.JSON.encode(buildOperation()); | 13920 var resp = convert.JSON.encode(buildOperation()); |
11900 return new async.Future.value(stringResponse(200, h, resp)); | 13921 return new async.Future.value(stringResponse(200, h, resp)); |
11901 }), true); | 13922 }), true); |
11902 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { | 13923 res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.ex
pectAsync(((api.Operation response) { |
11903 checkOperation(response); | 13924 checkOperation(response); |
11904 }))); | 13925 }))); |
11905 }); | 13926 }); |
11906 | 13927 |
11907 unittest.test("method--list", () { | 13928 }); |
| 13929 |
| 13930 |
| 13931 unittest.group("resource-HttpsHealthChecksResourceApi", () { |
| 13932 unittest.test("method--delete", () { |
11908 | 13933 |
11909 var mock = new HttpServerMock(); | 13934 var mock = new HttpServerMock(); |
11910 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 13935 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
11911 var arg_project = "foo"; | 13936 var arg_project = "foo"; |
11912 var arg_region = "foo"; | 13937 var arg_httpsHealthCheck = "foo"; |
11913 var arg_filter = "foo"; | |
11914 var arg_maxResults = 42; | |
11915 var arg_orderBy = "foo"; | |
11916 var arg_pageToken = "foo"; | |
11917 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13938 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11918 var path = (req.url).path; | 13939 var path = (req.url).path; |
11919 var pathOffset = 0; | 13940 var pathOffset = 0; |
11920 var index; | 13941 var index; |
11921 var subPart; | 13942 var subPart; |
11922 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13943 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11923 pathOffset += 1; | 13944 pathOffset += 1; |
11924 | 13945 |
11925 var query = (req.url).query; | 13946 var query = (req.url).query; |
11926 var queryOffset = 0; | 13947 var queryOffset = 0; |
11927 var queryMap = {}; | 13948 var queryMap = {}; |
11928 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13949 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11929 parseBool(n) { | 13950 parseBool(n) { |
11930 if (n == "true") return true; | 13951 if (n == "true") return true; |
11931 if (n == "false") return false; | 13952 if (n == "false") return false; |
11932 if (n == null) return null; | 13953 if (n == null) return null; |
11933 throw new core.ArgumentError("Invalid boolean: $n"); | 13954 throw new core.ArgumentError("Invalid boolean: $n"); |
11934 } | 13955 } |
11935 if (query.length > 0) { | 13956 if (query.length > 0) { |
11936 for (var part in query.split("&")) { | 13957 for (var part in query.split("&")) { |
11937 var keyvalue = part.split("="); | 13958 var keyvalue = part.split("="); |
11938 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13959 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11939 } | 13960 } |
11940 } | 13961 } |
11941 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
11942 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
11943 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
11944 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
11945 | 13962 |
11946 | 13963 |
11947 var h = { | 13964 var h = { |
11948 "content-type" : "application/json; charset=utf-8", | 13965 "content-type" : "application/json; charset=utf-8", |
11949 }; | 13966 }; |
11950 var resp = convert.JSON.encode(buildForwardingRuleList()); | 13967 var resp = convert.JSON.encode(buildOperation()); |
11951 return new async.Future.value(stringResponse(200, h, resp)); | 13968 return new async.Future.value(stringResponse(200, h, resp)); |
11952 }), true); | 13969 }), true); |
11953 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.ForwardingRuleList response) { | 13970 res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((
api.Operation response) { |
11954 checkForwardingRuleList(response); | 13971 checkOperation(response); |
11955 }))); | 13972 }))); |
11956 }); | 13973 }); |
11957 | 13974 |
11958 unittest.test("method--setTarget", () { | 13975 unittest.test("method--get", () { |
11959 | 13976 |
11960 var mock = new HttpServerMock(); | 13977 var mock = new HttpServerMock(); |
11961 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 13978 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
11962 var arg_request = buildTargetReference(); | |
11963 var arg_project = "foo"; | 13979 var arg_project = "foo"; |
11964 var arg_region = "foo"; | 13980 var arg_httpsHealthCheck = "foo"; |
11965 var arg_forwardingRule = "foo"; | |
11966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
11967 var obj = new api.TargetReference.fromJson(json); | |
11968 checkTargetReference(obj); | |
11969 | |
11970 var path = (req.url).path; | 13982 var path = (req.url).path; |
11971 var pathOffset = 0; | 13983 var pathOffset = 0; |
11972 var index; | 13984 var index; |
11973 var subPart; | 13985 var subPart; |
11974 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
11975 pathOffset += 1; | 13987 pathOffset += 1; |
11976 | 13988 |
11977 var query = (req.url).query; | 13989 var query = (req.url).query; |
11978 var queryOffset = 0; | 13990 var queryOffset = 0; |
11979 var queryMap = {}; | 13991 var queryMap = {}; |
11980 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13992 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
11981 parseBool(n) { | 13993 parseBool(n) { |
11982 if (n == "true") return true; | 13994 if (n == "true") return true; |
11983 if (n == "false") return false; | 13995 if (n == "false") return false; |
11984 if (n == null) return null; | 13996 if (n == null) return null; |
11985 throw new core.ArgumentError("Invalid boolean: $n"); | 13997 throw new core.ArgumentError("Invalid boolean: $n"); |
11986 } | 13998 } |
11987 if (query.length > 0) { | 13999 if (query.length > 0) { |
11988 for (var part in query.split("&")) { | 14000 for (var part in query.split("&")) { |
11989 var keyvalue = part.split("="); | 14001 var keyvalue = part.split("="); |
11990 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
11991 } | 14003 } |
11992 } | 14004 } |
11993 | 14005 |
11994 | 14006 |
11995 var h = { | 14007 var h = { |
11996 "content-type" : "application/json; charset=utf-8", | 14008 "content-type" : "application/json; charset=utf-8", |
11997 }; | 14009 }; |
11998 var resp = convert.JSON.encode(buildOperation()); | 14010 var resp = convert.JSON.encode(buildHttpsHealthCheck()); |
11999 return new async.Future.value(stringResponse(200, h, resp)); | 14011 return new async.Future.value(stringResponse(200, h, resp)); |
12000 }), true); | 14012 }), true); |
12001 res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).th
en(unittest.expectAsync(((api.Operation response) { | 14013 res.get(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api
.HttpsHealthCheck response) { |
12002 checkOperation(response); | 14014 checkHttpsHealthCheck(response); |
12003 }))); | 14015 }))); |
12004 }); | 14016 }); |
12005 | 14017 |
12006 }); | 14018 unittest.test("method--insert", () { |
12007 | |
12008 | |
12009 unittest.group("resource-GlobalAddressesResourceApi", () { | |
12010 unittest.test("method--delete", () { | |
12011 | 14019 |
12012 var mock = new HttpServerMock(); | 14020 var mock = new HttpServerMock(); |
12013 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 14021 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 14022 var arg_request = buildHttpsHealthCheck(); |
12014 var arg_project = "foo"; | 14023 var arg_project = "foo"; |
12015 var arg_address = "foo"; | |
12016 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14025 var obj = new api.HttpsHealthCheck.fromJson(json); |
| 14026 checkHttpsHealthCheck(obj); |
| 14027 |
12017 var path = (req.url).path; | 14028 var path = (req.url).path; |
12018 var pathOffset = 0; | 14029 var pathOffset = 0; |
12019 var index; | 14030 var index; |
12020 var subPart; | 14031 var subPart; |
12021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14032 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12022 pathOffset += 1; | 14033 pathOffset += 1; |
12023 | 14034 |
12024 var query = (req.url).query; | 14035 var query = (req.url).query; |
12025 var queryOffset = 0; | 14036 var queryOffset = 0; |
12026 var queryMap = {}; | 14037 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
12038 } | 14049 } |
12039 } | 14050 } |
12040 | 14051 |
12041 | 14052 |
12042 var h = { | 14053 var h = { |
12043 "content-type" : "application/json; charset=utf-8", | 14054 "content-type" : "application/json; charset=utf-8", |
12044 }; | 14055 }; |
12045 var resp = convert.JSON.encode(buildOperation()); | 14056 var resp = convert.JSON.encode(buildOperation()); |
12046 return new async.Future.value(stringResponse(200, h, resp)); | 14057 return new async.Future.value(stringResponse(200, h, resp)); |
12047 }), true); | 14058 }), true); |
12048 res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Opera
tion response) { | 14059 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
12049 checkOperation(response); | 14060 checkOperation(response); |
12050 }))); | 14061 }))); |
12051 }); | 14062 }); |
12052 | 14063 |
12053 unittest.test("method--get", () { | 14064 unittest.test("method--list", () { |
12054 | 14065 |
12055 var mock = new HttpServerMock(); | 14066 var mock = new HttpServerMock(); |
12056 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 14067 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
12057 var arg_project = "foo"; | 14068 var arg_project = "foo"; |
12058 var arg_address = "foo"; | 14069 var arg_filter = "foo"; |
| 14070 var arg_maxResults = 42; |
| 14071 var arg_orderBy = "foo"; |
| 14072 var arg_pageToken = "foo"; |
12059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14073 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12060 var path = (req.url).path; | 14074 var path = (req.url).path; |
12061 var pathOffset = 0; | 14075 var pathOffset = 0; |
12062 var index; | 14076 var index; |
12063 var subPart; | 14077 var subPart; |
12064 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14078 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12065 pathOffset += 1; | 14079 pathOffset += 1; |
12066 | 14080 |
12067 var query = (req.url).query; | 14081 var query = (req.url).query; |
12068 var queryOffset = 0; | 14082 var queryOffset = 0; |
12069 var queryMap = {}; | 14083 var queryMap = {}; |
12070 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14084 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12071 parseBool(n) { | 14085 parseBool(n) { |
12072 if (n == "true") return true; | 14086 if (n == "true") return true; |
12073 if (n == "false") return false; | 14087 if (n == "false") return false; |
12074 if (n == null) return null; | 14088 if (n == null) return null; |
12075 throw new core.ArgumentError("Invalid boolean: $n"); | 14089 throw new core.ArgumentError("Invalid boolean: $n"); |
12076 } | 14090 } |
12077 if (query.length > 0) { | 14091 if (query.length > 0) { |
12078 for (var part in query.split("&")) { | 14092 for (var part in query.split("&")) { |
12079 var keyvalue = part.split("="); | 14093 var keyvalue = part.split("="); |
12080 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14094 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12081 } | 14095 } |
12082 } | 14096 } |
| 14097 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 14098 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 14099 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 14100 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
12083 | 14101 |
12084 | 14102 |
12085 var h = { | 14103 var h = { |
12086 "content-type" : "application/json; charset=utf-8", | 14104 "content-type" : "application/json; charset=utf-8", |
12087 }; | 14105 }; |
12088 var resp = convert.JSON.encode(buildAddress()); | 14106 var resp = convert.JSON.encode(buildHttpsHealthCheckList()); |
12089 return new async.Future.value(stringResponse(200, h, resp)); | 14107 return new async.Future.value(stringResponse(200, h, resp)); |
12090 }), true); | 14108 }), true); |
12091 res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address
response) { | 14109 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Http
sHealthCheckList response) { |
12092 checkAddress(response); | 14110 checkHttpsHealthCheckList(response); |
12093 }))); | 14111 }))); |
12094 }); | 14112 }); |
12095 | 14113 |
12096 unittest.test("method--insert", () { | 14114 unittest.test("method--patch", () { |
12097 | 14115 |
12098 var mock = new HttpServerMock(); | 14116 var mock = new HttpServerMock(); |
12099 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 14117 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
12100 var arg_request = buildAddress(); | 14118 var arg_request = buildHttpsHealthCheck(); |
12101 var arg_project = "foo"; | 14119 var arg_project = "foo"; |
| 14120 var arg_httpsHealthCheck = "foo"; |
12102 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12103 var obj = new api.Address.fromJson(json); | 14122 var obj = new api.HttpsHealthCheck.fromJson(json); |
12104 checkAddress(obj); | 14123 checkHttpsHealthCheck(obj); |
12105 | 14124 |
12106 var path = (req.url).path; | 14125 var path = (req.url).path; |
12107 var pathOffset = 0; | 14126 var pathOffset = 0; |
12108 var index; | 14127 var index; |
12109 var subPart; | 14128 var subPart; |
12110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14129 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12111 pathOffset += 1; | 14130 pathOffset += 1; |
12112 | 14131 |
12113 var query = (req.url).query; | 14132 var query = (req.url).query; |
12114 var queryOffset = 0; | 14133 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
12127 } | 14146 } |
12128 } | 14147 } |
12129 | 14148 |
12130 | 14149 |
12131 var h = { | 14150 var h = { |
12132 "content-type" : "application/json; charset=utf-8", | 14151 "content-type" : "application/json; charset=utf-8", |
12133 }; | 14152 }; |
12134 var resp = convert.JSON.encode(buildOperation()); | 14153 var resp = convert.JSON.encode(buildOperation()); |
12135 return new async.Future.value(stringResponse(200, h, resp)); | 14154 return new async.Future.value(stringResponse(200, h, resp)); |
12136 }), true); | 14155 }), true); |
12137 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 14156 res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.ex
pectAsync(((api.Operation response) { |
12138 checkOperation(response); | 14157 checkOperation(response); |
12139 }))); | 14158 }))); |
12140 }); | 14159 }); |
12141 | 14160 |
12142 unittest.test("method--list", () { | 14161 unittest.test("method--update", () { |
12143 | 14162 |
12144 var mock = new HttpServerMock(); | 14163 var mock = new HttpServerMock(); |
12145 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 14164 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 14165 var arg_request = buildHttpsHealthCheck(); |
12146 var arg_project = "foo"; | 14166 var arg_project = "foo"; |
12147 var arg_filter = "foo"; | 14167 var arg_httpsHealthCheck = "foo"; |
12148 var arg_maxResults = 42; | |
12149 var arg_orderBy = "foo"; | |
12150 var arg_pageToken = "foo"; | |
12151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14168 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14169 var obj = new api.HttpsHealthCheck.fromJson(json); |
| 14170 checkHttpsHealthCheck(obj); |
| 14171 |
12152 var path = (req.url).path; | 14172 var path = (req.url).path; |
12153 var pathOffset = 0; | 14173 var pathOffset = 0; |
12154 var index; | 14174 var index; |
12155 var subPart; | 14175 var subPart; |
12156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14176 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12157 pathOffset += 1; | 14177 pathOffset += 1; |
12158 | 14178 |
12159 var query = (req.url).query; | 14179 var query = (req.url).query; |
12160 var queryOffset = 0; | 14180 var queryOffset = 0; |
12161 var queryMap = {}; | 14181 var queryMap = {}; |
12162 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14182 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12163 parseBool(n) { | 14183 parseBool(n) { |
12164 if (n == "true") return true; | 14184 if (n == "true") return true; |
12165 if (n == "false") return false; | 14185 if (n == "false") return false; |
12166 if (n == null) return null; | 14186 if (n == null) return null; |
12167 throw new core.ArgumentError("Invalid boolean: $n"); | 14187 throw new core.ArgumentError("Invalid boolean: $n"); |
12168 } | 14188 } |
12169 if (query.length > 0) { | 14189 if (query.length > 0) { |
12170 for (var part in query.split("&")) { | 14190 for (var part in query.split("&")) { |
12171 var keyvalue = part.split("="); | 14191 var keyvalue = part.split("="); |
12172 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14192 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12173 } | 14193 } |
12174 } | 14194 } |
12175 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
12176 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
12177 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
12178 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
12179 | 14195 |
12180 | 14196 |
12181 var h = { | 14197 var h = { |
12182 "content-type" : "application/json; charset=utf-8", | 14198 "content-type" : "application/json; charset=utf-8", |
12183 }; | 14199 }; |
12184 var resp = convert.JSON.encode(buildAddressList()); | 14200 var resp = convert.JSON.encode(buildOperation()); |
12185 return new async.Future.value(stringResponse(200, h, resp)); | 14201 return new async.Future.value(stringResponse(200, h, resp)); |
12186 }), true); | 14202 }), true); |
12187 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Addr
essList response) { | 14203 res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.e
xpectAsync(((api.Operation response) { |
12188 checkAddressList(response); | 14204 checkOperation(response); |
12189 }))); | 14205 }))); |
12190 }); | 14206 }); |
12191 | 14207 |
12192 }); | 14208 }); |
12193 | 14209 |
12194 | 14210 |
12195 unittest.group("resource-GlobalForwardingRulesResourceApi", () { | 14211 unittest.group("resource-ImagesResourceApi", () { |
12196 unittest.test("method--delete", () { | 14212 unittest.test("method--delete", () { |
12197 | 14213 |
12198 var mock = new HttpServerMock(); | 14214 var mock = new HttpServerMock(); |
12199 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 14215 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
12200 var arg_project = "foo"; | 14216 var arg_project = "foo"; |
12201 var arg_forwardingRule = "foo"; | 14217 var arg_image = "foo"; |
12202 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14218 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12203 var path = (req.url).path; | 14219 var path = (req.url).path; |
12204 var pathOffset = 0; | 14220 var pathOffset = 0; |
12205 var index; | 14221 var index; |
12206 var subPart; | 14222 var subPart; |
12207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12208 pathOffset += 1; | 14224 pathOffset += 1; |
12209 | 14225 |
12210 var query = (req.url).query; | 14226 var query = (req.url).query; |
12211 var queryOffset = 0; | 14227 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
12224 } | 14240 } |
12225 } | 14241 } |
12226 | 14242 |
12227 | 14243 |
12228 var h = { | 14244 var h = { |
12229 "content-type" : "application/json; charset=utf-8", | 14245 "content-type" : "application/json; charset=utf-8", |
12230 }; | 14246 }; |
12231 var resp = convert.JSON.encode(buildOperation()); | 14247 var resp = convert.JSON.encode(buildOperation()); |
12232 return new async.Future.value(stringResponse(200, h, resp)); | 14248 return new async.Future.value(stringResponse(200, h, resp)); |
12233 }), true); | 14249 }), true); |
12234 res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((ap
i.Operation response) { | 14250 res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operati
on response) { |
12235 checkOperation(response); | 14251 checkOperation(response); |
12236 }))); | 14252 }))); |
12237 }); | 14253 }); |
12238 | 14254 |
12239 unittest.test("method--get", () { | 14255 unittest.test("method--deprecate", () { |
12240 | 14256 |
12241 var mock = new HttpServerMock(); | 14257 var mock = new HttpServerMock(); |
12242 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 14258 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 14259 var arg_request = buildDeprecationStatus(); |
12243 var arg_project = "foo"; | 14260 var arg_project = "foo"; |
12244 var arg_forwardingRule = "foo"; | 14261 var arg_image = "foo"; |
12245 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14262 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14263 var obj = new api.DeprecationStatus.fromJson(json); |
| 14264 checkDeprecationStatus(obj); |
| 14265 |
12246 var path = (req.url).path; | 14266 var path = (req.url).path; |
12247 var pathOffset = 0; | 14267 var pathOffset = 0; |
12248 var index; | 14268 var index; |
12249 var subPart; | 14269 var subPart; |
12250 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12251 pathOffset += 1; | 14271 pathOffset += 1; |
12252 | 14272 |
12253 var query = (req.url).query; | 14273 var query = (req.url).query; |
12254 var queryOffset = 0; | 14274 var queryOffset = 0; |
12255 var queryMap = {}; | 14275 var queryMap = {}; |
12256 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14276 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12257 parseBool(n) { | 14277 parseBool(n) { |
12258 if (n == "true") return true; | 14278 if (n == "true") return true; |
12259 if (n == "false") return false; | 14279 if (n == "false") return false; |
12260 if (n == null) return null; | 14280 if (n == null) return null; |
12261 throw new core.ArgumentError("Invalid boolean: $n"); | 14281 throw new core.ArgumentError("Invalid boolean: $n"); |
12262 } | 14282 } |
12263 if (query.length > 0) { | 14283 if (query.length > 0) { |
12264 for (var part in query.split("&")) { | 14284 for (var part in query.split("&")) { |
12265 var keyvalue = part.split("="); | 14285 var keyvalue = part.split("="); |
12266 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14286 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12267 } | 14287 } |
12268 } | 14288 } |
12269 | 14289 |
12270 | 14290 |
12271 var h = { | 14291 var h = { |
12272 "content-type" : "application/json; charset=utf-8", | 14292 "content-type" : "application/json; charset=utf-8", |
12273 }; | 14293 }; |
12274 var resp = convert.JSON.encode(buildForwardingRule()); | 14294 var resp = convert.JSON.encode(buildOperation()); |
12275 return new async.Future.value(stringResponse(200, h, resp)); | 14295 return new async.Future.value(stringResponse(200, h, resp)); |
12276 }), true); | 14296 }), true); |
12277 res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.F
orwardingRule response) { | 14297 res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsy
nc(((api.Operation response) { |
12278 checkForwardingRule(response); | 14298 checkOperation(response); |
12279 }))); | 14299 }))); |
12280 }); | 14300 }); |
12281 | 14301 |
12282 unittest.test("method--insert", () { | 14302 unittest.test("method--get", () { |
12283 | 14303 |
12284 var mock = new HttpServerMock(); | 14304 var mock = new HttpServerMock(); |
12285 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 14305 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
12286 var arg_request = buildForwardingRule(); | |
12287 var arg_project = "foo"; | 14306 var arg_project = "foo"; |
| 14307 var arg_image = "foo"; |
12288 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12289 var obj = new api.ForwardingRule.fromJson(json); | |
12290 checkForwardingRule(obj); | |
12291 | |
12292 var path = (req.url).path; | 14309 var path = (req.url).path; |
12293 var pathOffset = 0; | 14310 var pathOffset = 0; |
12294 var index; | 14311 var index; |
12295 var subPart; | 14312 var subPart; |
12296 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14313 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12297 pathOffset += 1; | 14314 pathOffset += 1; |
12298 | 14315 |
12299 var query = (req.url).query; | 14316 var query = (req.url).query; |
12300 var queryOffset = 0; | 14317 var queryOffset = 0; |
12301 var queryMap = {}; | 14318 var queryMap = {}; |
12302 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14319 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12303 parseBool(n) { | 14320 parseBool(n) { |
12304 if (n == "true") return true; | 14321 if (n == "true") return true; |
12305 if (n == "false") return false; | 14322 if (n == "false") return false; |
12306 if (n == null) return null; | 14323 if (n == null) return null; |
12307 throw new core.ArgumentError("Invalid boolean: $n"); | 14324 throw new core.ArgumentError("Invalid boolean: $n"); |
12308 } | 14325 } |
12309 if (query.length > 0) { | 14326 if (query.length > 0) { |
12310 for (var part in query.split("&")) { | 14327 for (var part in query.split("&")) { |
12311 var keyvalue = part.split("="); | 14328 var keyvalue = part.split("="); |
12312 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14329 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12313 } | 14330 } |
12314 } | 14331 } |
12315 | 14332 |
12316 | 14333 |
12317 var h = { | 14334 var h = { |
12318 "content-type" : "application/json; charset=utf-8", | 14335 "content-type" : "application/json; charset=utf-8", |
12319 }; | 14336 }; |
12320 var resp = convert.JSON.encode(buildOperation()); | 14337 var resp = convert.JSON.encode(buildImage()); |
12321 return new async.Future.value(stringResponse(200, h, resp)); | 14338 return new async.Future.value(stringResponse(200, h, resp)); |
12322 }), true); | 14339 }), true); |
12323 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 14340 res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image resp
onse) { |
12324 checkOperation(response); | 14341 checkImage(response); |
12325 }))); | 14342 }))); |
12326 }); | 14343 }); |
12327 | 14344 |
12328 unittest.test("method--list", () { | 14345 unittest.test("method--getFromFamily", () { |
12329 | 14346 |
12330 var mock = new HttpServerMock(); | 14347 var mock = new HttpServerMock(); |
12331 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 14348 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
12332 var arg_project = "foo"; | 14349 var arg_project = "foo"; |
12333 var arg_filter = "foo"; | 14350 var arg_family = "foo"; |
12334 var arg_maxResults = 42; | |
12335 var arg_orderBy = "foo"; | |
12336 var arg_pageToken = "foo"; | |
12337 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14351 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12338 var path = (req.url).path; | 14352 var path = (req.url).path; |
12339 var pathOffset = 0; | 14353 var pathOffset = 0; |
12340 var index; | 14354 var index; |
12341 var subPart; | 14355 var subPart; |
12342 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14356 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12343 pathOffset += 1; | 14357 pathOffset += 1; |
12344 | 14358 |
12345 var query = (req.url).query; | 14359 var query = (req.url).query; |
12346 var queryOffset = 0; | 14360 var queryOffset = 0; |
12347 var queryMap = {}; | 14361 var queryMap = {}; |
12348 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14362 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12349 parseBool(n) { | 14363 parseBool(n) { |
12350 if (n == "true") return true; | 14364 if (n == "true") return true; |
12351 if (n == "false") return false; | 14365 if (n == "false") return false; |
12352 if (n == null) return null; | 14366 if (n == null) return null; |
12353 throw new core.ArgumentError("Invalid boolean: $n"); | 14367 throw new core.ArgumentError("Invalid boolean: $n"); |
12354 } | 14368 } |
12355 if (query.length > 0) { | 14369 if (query.length > 0) { |
12356 for (var part in query.split("&")) { | 14370 for (var part in query.split("&")) { |
12357 var keyvalue = part.split("="); | 14371 var keyvalue = part.split("="); |
12358 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14372 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12359 } | 14373 } |
12360 } | 14374 } |
12361 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
12362 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
12363 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
12364 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
12365 | 14375 |
12366 | 14376 |
12367 var h = { | 14377 var h = { |
12368 "content-type" : "application/json; charset=utf-8", | 14378 "content-type" : "application/json; charset=utf-8", |
12369 }; | 14379 }; |
12370 var resp = convert.JSON.encode(buildForwardingRuleList()); | 14380 var resp = convert.JSON.encode(buildImage()); |
12371 return new async.Future.value(stringResponse(200, h, resp)); | 14381 return new async.Future.value(stringResponse(200, h, resp)); |
12372 }), true); | 14382 }), true); |
12373 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Forw
ardingRuleList response) { | 14383 res.getFromFamily(arg_project, arg_family).then(unittest.expectAsync(((api
.Image response) { |
12374 checkForwardingRuleList(response); | 14384 checkImage(response); |
12375 }))); | 14385 }))); |
12376 }); | 14386 }); |
12377 | 14387 |
12378 unittest.test("method--setTarget", () { | 14388 unittest.test("method--insert", () { |
12379 | 14389 |
12380 var mock = new HttpServerMock(); | 14390 var mock = new HttpServerMock(); |
12381 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 14391 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
12382 var arg_request = buildTargetReference(); | 14392 var arg_request = buildImage(); |
12383 var arg_project = "foo"; | 14393 var arg_project = "foo"; |
12384 var arg_forwardingRule = "foo"; | |
12385 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14394 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12386 var obj = new api.TargetReference.fromJson(json); | 14395 var obj = new api.Image.fromJson(json); |
12387 checkTargetReference(obj); | 14396 checkImage(obj); |
12388 | 14397 |
12389 var path = (req.url).path; | 14398 var path = (req.url).path; |
12390 var pathOffset = 0; | 14399 var pathOffset = 0; |
12391 var index; | 14400 var index; |
12392 var subPart; | 14401 var subPart; |
12393 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12394 pathOffset += 1; | 14403 pathOffset += 1; |
12395 | 14404 |
12396 var query = (req.url).query; | 14405 var query = (req.url).query; |
12397 var queryOffset = 0; | 14406 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
12410 } | 14419 } |
12411 } | 14420 } |
12412 | 14421 |
12413 | 14422 |
12414 var h = { | 14423 var h = { |
12415 "content-type" : "application/json; charset=utf-8", | 14424 "content-type" : "application/json; charset=utf-8", |
12416 }; | 14425 }; |
12417 var resp = convert.JSON.encode(buildOperation()); | 14426 var resp = convert.JSON.encode(buildOperation()); |
12418 return new async.Future.value(stringResponse(200, h, resp)); | 14427 return new async.Future.value(stringResponse(200, h, resp)); |
12419 }), true); | 14428 }), true); |
12420 res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.
expectAsync(((api.Operation response) { | 14429 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
12421 checkOperation(response); | 14430 checkOperation(response); |
12422 }))); | 14431 }))); |
12423 }); | 14432 }); |
12424 | 14433 |
12425 }); | 14434 unittest.test("method--list", () { |
12426 | |
12427 | |
12428 unittest.group("resource-GlobalOperationsResourceApi", () { | |
12429 unittest.test("method--aggregatedList", () { | |
12430 | 14435 |
12431 var mock = new HttpServerMock(); | 14436 var mock = new HttpServerMock(); |
12432 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 14437 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
12433 var arg_project = "foo"; | 14438 var arg_project = "foo"; |
12434 var arg_filter = "foo"; | 14439 var arg_filter = "foo"; |
12435 var arg_maxResults = 42; | 14440 var arg_maxResults = 42; |
12436 var arg_orderBy = "foo"; | 14441 var arg_orderBy = "foo"; |
12437 var arg_pageToken = "foo"; | 14442 var arg_pageToken = "foo"; |
12438 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14443 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12439 var path = (req.url).path; | 14444 var path = (req.url).path; |
12440 var pathOffset = 0; | 14445 var pathOffset = 0; |
12441 var index; | 14446 var index; |
12442 var subPart; | 14447 var subPart; |
(...skipping 18 matching lines...) Expand all Loading... |
12461 } | 14466 } |
12462 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 14467 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
12463 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 14468 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
12464 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 14469 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
12465 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 14470 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
12466 | 14471 |
12467 | 14472 |
12468 var h = { | 14473 var h = { |
12469 "content-type" : "application/json; charset=utf-8", | 14474 "content-type" : "application/json; charset=utf-8", |
12470 }; | 14475 }; |
12471 var resp = convert.JSON.encode(buildOperationAggregatedList()); | 14476 var resp = convert.JSON.encode(buildImageList()); |
12472 return new async.Future.value(stringResponse(200, h, resp)); | 14477 return new async.Future.value(stringResponse(200, h, resp)); |
12473 }), true); | 14478 }), true); |
12474 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.OperationAggregatedList response) { | 14479 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Imag
eList response) { |
12475 checkOperationAggregatedList(response); | 14480 checkImageList(response); |
12476 }))); | 14481 }))); |
12477 }); | 14482 }); |
12478 | 14483 |
12479 unittest.test("method--delete", () { | 14484 }); |
| 14485 |
| 14486 |
| 14487 unittest.group("resource-InstanceGroupManagersResourceApi", () { |
| 14488 unittest.test("method--abandonInstances", () { |
12480 | 14489 |
12481 var mock = new HttpServerMock(); | 14490 var mock = new HttpServerMock(); |
12482 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 14491 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 14492 var arg_request = buildInstanceGroupManagersAbandonInstancesRequest(); |
12483 var arg_project = "foo"; | 14493 var arg_project = "foo"; |
12484 var arg_operation = "foo"; | 14494 var arg_zone = "foo"; |
| 14495 var arg_instanceGroupManager = "foo"; |
12485 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14497 var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(
json); |
| 14498 checkInstanceGroupManagersAbandonInstancesRequest(obj); |
| 14499 |
12486 var path = (req.url).path; | 14500 var path = (req.url).path; |
12487 var pathOffset = 0; | 14501 var pathOffset = 0; |
12488 var index; | 14502 var index; |
12489 var subPart; | 14503 var subPart; |
12490 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14504 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12491 pathOffset += 1; | 14505 pathOffset += 1; |
12492 | 14506 |
12493 var query = (req.url).query; | 14507 var query = (req.url).query; |
12494 var queryOffset = 0; | 14508 var queryOffset = 0; |
12495 var queryMap = {}; | 14509 var queryMap = {}; |
12496 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14510 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12497 parseBool(n) { | 14511 parseBool(n) { |
12498 if (n == "true") return true; | 14512 if (n == "true") return true; |
12499 if (n == "false") return false; | 14513 if (n == "false") return false; |
12500 if (n == null) return null; | 14514 if (n == null) return null; |
12501 throw new core.ArgumentError("Invalid boolean: $n"); | 14515 throw new core.ArgumentError("Invalid boolean: $n"); |
12502 } | 14516 } |
12503 if (query.length > 0) { | 14517 if (query.length > 0) { |
12504 for (var part in query.split("&")) { | 14518 for (var part in query.split("&")) { |
12505 var keyvalue = part.split("="); | 14519 var keyvalue = part.split("="); |
12506 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14520 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12507 } | 14521 } |
12508 } | 14522 } |
12509 | 14523 |
12510 | 14524 |
12511 var h = { | 14525 var h = { |
12512 "content-type" : "application/json; charset=utf-8", | 14526 "content-type" : "application/json; charset=utf-8", |
12513 }; | 14527 }; |
12514 var resp = ""; | 14528 var resp = convert.JSON.encode(buildOperation()); |
12515 return new async.Future.value(stringResponse(200, h, resp)); | 14529 return new async.Future.value(stringResponse(200, h, resp)); |
12516 }), true); | 14530 }), true); |
12517 res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); | 14531 res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroup
Manager).then(unittest.expectAsync(((api.Operation response) { |
| 14532 checkOperation(response); |
| 14533 }))); |
12518 }); | 14534 }); |
12519 | 14535 |
12520 unittest.test("method--get", () { | 14536 unittest.test("method--aggregatedList", () { |
12521 | 14537 |
12522 var mock = new HttpServerMock(); | 14538 var mock = new HttpServerMock(); |
12523 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 14539 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12524 var arg_project = "foo"; | 14540 var arg_project = "foo"; |
12525 var arg_operation = "foo"; | 14541 var arg_filter = "foo"; |
| 14542 var arg_maxResults = 42; |
| 14543 var arg_orderBy = "foo"; |
| 14544 var arg_pageToken = "foo"; |
12526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14545 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12527 var path = (req.url).path; | 14546 var path = (req.url).path; |
12528 var pathOffset = 0; | 14547 var pathOffset = 0; |
12529 var index; | 14548 var index; |
12530 var subPart; | 14549 var subPart; |
12531 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14550 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12532 pathOffset += 1; | 14551 pathOffset += 1; |
12533 | 14552 |
12534 var query = (req.url).query; | 14553 var query = (req.url).query; |
12535 var queryOffset = 0; | 14554 var queryOffset = 0; |
12536 var queryMap = {}; | 14555 var queryMap = {}; |
12537 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14556 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12538 parseBool(n) { | 14557 parseBool(n) { |
12539 if (n == "true") return true; | 14558 if (n == "true") return true; |
12540 if (n == "false") return false; | 14559 if (n == "false") return false; |
12541 if (n == null) return null; | 14560 if (n == null) return null; |
12542 throw new core.ArgumentError("Invalid boolean: $n"); | 14561 throw new core.ArgumentError("Invalid boolean: $n"); |
12543 } | 14562 } |
12544 if (query.length > 0) { | 14563 if (query.length > 0) { |
12545 for (var part in query.split("&")) { | 14564 for (var part in query.split("&")) { |
12546 var keyvalue = part.split("="); | 14565 var keyvalue = part.split("="); |
12547 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14566 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12548 } | 14567 } |
12549 } | 14568 } |
| 14569 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 14570 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 14571 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 14572 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
12550 | 14573 |
12551 | 14574 |
12552 var h = { | 14575 var h = { |
12553 "content-type" : "application/json; charset=utf-8", | 14576 "content-type" : "application/json; charset=utf-8", |
12554 }; | 14577 }; |
12555 var resp = convert.JSON.encode(buildOperation()); | 14578 var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList()
); |
12556 return new async.Future.value(stringResponse(200, h, resp)); | 14579 return new async.Future.value(stringResponse(200, h, resp)); |
12557 }), true); | 14580 }), true); |
12558 res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operat
ion response) { | 14581 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupManagerAggregatedList response) { |
12559 checkOperation(response); | 14582 checkInstanceGroupManagerAggregatedList(response); |
12560 }))); | 14583 }))); |
12561 }); | 14584 }); |
12562 | 14585 |
12563 unittest.test("method--list", () { | 14586 unittest.test("method--delete", () { |
12564 | 14587 |
12565 var mock = new HttpServerMock(); | 14588 var mock = new HttpServerMock(); |
12566 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 14589 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12567 var arg_project = "foo"; | 14590 var arg_project = "foo"; |
12568 var arg_filter = "foo"; | 14591 var arg_zone = "foo"; |
12569 var arg_maxResults = 42; | 14592 var arg_instanceGroupManager = "foo"; |
12570 var arg_orderBy = "foo"; | |
12571 var arg_pageToken = "foo"; | |
12572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14593 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12573 var path = (req.url).path; | 14594 var path = (req.url).path; |
12574 var pathOffset = 0; | 14595 var pathOffset = 0; |
12575 var index; | 14596 var index; |
12576 var subPart; | 14597 var subPart; |
12577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14598 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12578 pathOffset += 1; | 14599 pathOffset += 1; |
12579 | 14600 |
12580 var query = (req.url).query; | 14601 var query = (req.url).query; |
12581 var queryOffset = 0; | 14602 var queryOffset = 0; |
12582 var queryMap = {}; | 14603 var queryMap = {}; |
12583 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14604 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12584 parseBool(n) { | 14605 parseBool(n) { |
12585 if (n == "true") return true; | 14606 if (n == "true") return true; |
12586 if (n == "false") return false; | 14607 if (n == "false") return false; |
12587 if (n == null) return null; | 14608 if (n == null) return null; |
12588 throw new core.ArgumentError("Invalid boolean: $n"); | 14609 throw new core.ArgumentError("Invalid boolean: $n"); |
12589 } | 14610 } |
12590 if (query.length > 0) { | 14611 if (query.length > 0) { |
12591 for (var part in query.split("&")) { | 14612 for (var part in query.split("&")) { |
12592 var keyvalue = part.split("="); | 14613 var keyvalue = part.split("="); |
12593 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14614 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12594 } | 14615 } |
12595 } | 14616 } |
12596 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
12597 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
12598 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
12599 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
12600 | 14617 |
12601 | 14618 |
12602 var h = { | 14619 var h = { |
12603 "content-type" : "application/json; charset=utf-8", | 14620 "content-type" : "application/json; charset=utf-8", |
12604 }; | 14621 }; |
12605 var resp = convert.JSON.encode(buildOperationList()); | 14622 var resp = convert.JSON.encode(buildOperation()); |
12606 return new async.Future.value(stringResponse(200, h, resp)); | 14623 return new async.Future.value(stringResponse(200, h, resp)); |
12607 }), true); | 14624 }), true); |
12608 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Oper
ationList response) { | 14625 res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.
expectAsync(((api.Operation response) { |
12609 checkOperationList(response); | 14626 checkOperation(response); |
12610 }))); | 14627 }))); |
12611 }); | 14628 }); |
12612 | 14629 |
12613 }); | 14630 unittest.test("method--deleteInstances", () { |
12614 | |
12615 | |
12616 unittest.group("resource-HealthChecksResourceApi", () { | |
12617 unittest.test("method--delete", () { | |
12618 | 14631 |
12619 var mock = new HttpServerMock(); | 14632 var mock = new HttpServerMock(); |
12620 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 14633 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 14634 var arg_request = buildInstanceGroupManagersDeleteInstancesRequest(); |
12621 var arg_project = "foo"; | 14635 var arg_project = "foo"; |
12622 var arg_healthCheck = "foo"; | 14636 var arg_zone = "foo"; |
| 14637 var arg_instanceGroupManager = "foo"; |
12623 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14638 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14639 var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(j
son); |
| 14640 checkInstanceGroupManagersDeleteInstancesRequest(obj); |
| 14641 |
12624 var path = (req.url).path; | 14642 var path = (req.url).path; |
12625 var pathOffset = 0; | 14643 var pathOffset = 0; |
12626 var index; | 14644 var index; |
12627 var subPart; | 14645 var subPart; |
12628 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14646 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12629 pathOffset += 1; | 14647 pathOffset += 1; |
12630 | 14648 |
12631 var query = (req.url).query; | 14649 var query = (req.url).query; |
12632 var queryOffset = 0; | 14650 var queryOffset = 0; |
12633 var queryMap = {}; | 14651 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
12645 } | 14663 } |
12646 } | 14664 } |
12647 | 14665 |
12648 | 14666 |
12649 var h = { | 14667 var h = { |
12650 "content-type" : "application/json; charset=utf-8", | 14668 "content-type" : "application/json; charset=utf-8", |
12651 }; | 14669 }; |
12652 var resp = convert.JSON.encode(buildOperation()); | 14670 var resp = convert.JSON.encode(buildOperation()); |
12653 return new async.Future.value(stringResponse(200, h, resp)); | 14671 return new async.Future.value(stringResponse(200, h, resp)); |
12654 }), true); | 14672 }), true); |
12655 res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.O
peration response) { | 14673 res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupM
anager).then(unittest.expectAsync(((api.Operation response) { |
12656 checkOperation(response); | 14674 checkOperation(response); |
12657 }))); | 14675 }))); |
12658 }); | 14676 }); |
12659 | 14677 |
12660 unittest.test("method--get", () { | 14678 unittest.test("method--get", () { |
12661 | 14679 |
12662 var mock = new HttpServerMock(); | 14680 var mock = new HttpServerMock(); |
12663 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 14681 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12664 var arg_project = "foo"; | 14682 var arg_project = "foo"; |
12665 var arg_healthCheck = "foo"; | 14683 var arg_zone = "foo"; |
| 14684 var arg_instanceGroupManager = "foo"; |
12666 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14685 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12667 var path = (req.url).path; | 14686 var path = (req.url).path; |
12668 var pathOffset = 0; | 14687 var pathOffset = 0; |
12669 var index; | 14688 var index; |
12670 var subPart; | 14689 var subPart; |
12671 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14690 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12672 pathOffset += 1; | 14691 pathOffset += 1; |
12673 | 14692 |
12674 var query = (req.url).query; | 14693 var query = (req.url).query; |
12675 var queryOffset = 0; | 14694 var queryOffset = 0; |
12676 var queryMap = {}; | 14695 var queryMap = {}; |
12677 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14696 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12678 parseBool(n) { | 14697 parseBool(n) { |
12679 if (n == "true") return true; | 14698 if (n == "true") return true; |
12680 if (n == "false") return false; | 14699 if (n == "false") return false; |
12681 if (n == null) return null; | 14700 if (n == null) return null; |
12682 throw new core.ArgumentError("Invalid boolean: $n"); | 14701 throw new core.ArgumentError("Invalid boolean: $n"); |
12683 } | 14702 } |
12684 if (query.length > 0) { | 14703 if (query.length > 0) { |
12685 for (var part in query.split("&")) { | 14704 for (var part in query.split("&")) { |
12686 var keyvalue = part.split("="); | 14705 var keyvalue = part.split("="); |
12687 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14706 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12688 } | 14707 } |
12689 } | 14708 } |
12690 | 14709 |
12691 | 14710 |
12692 var h = { | 14711 var h = { |
12693 "content-type" : "application/json; charset=utf-8", | 14712 "content-type" : "application/json; charset=utf-8", |
12694 }; | 14713 }; |
12695 var resp = convert.JSON.encode(buildHealthCheck()); | 14714 var resp = convert.JSON.encode(buildInstanceGroupManager()); |
12696 return new async.Future.value(stringResponse(200, h, resp)); | 14715 return new async.Future.value(stringResponse(200, h, resp)); |
12697 }), true); | 14716 }), true); |
12698 res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.Heal
thCheck response) { | 14717 res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.exp
ectAsync(((api.InstanceGroupManager response) { |
12699 checkHealthCheck(response); | 14718 checkInstanceGroupManager(response); |
12700 }))); | 14719 }))); |
12701 }); | 14720 }); |
12702 | 14721 |
12703 unittest.test("method--insert", () { | 14722 unittest.test("method--insert", () { |
12704 | 14723 |
12705 var mock = new HttpServerMock(); | 14724 var mock = new HttpServerMock(); |
12706 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 14725 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12707 var arg_request = buildHealthCheck(); | 14726 var arg_request = buildInstanceGroupManager(); |
12708 var arg_project = "foo"; | 14727 var arg_project = "foo"; |
| 14728 var arg_zone = "foo"; |
12709 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14729 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12710 var obj = new api.HealthCheck.fromJson(json); | 14730 var obj = new api.InstanceGroupManager.fromJson(json); |
12711 checkHealthCheck(obj); | 14731 checkInstanceGroupManager(obj); |
12712 | 14732 |
12713 var path = (req.url).path; | 14733 var path = (req.url).path; |
12714 var pathOffset = 0; | 14734 var pathOffset = 0; |
12715 var index; | 14735 var index; |
12716 var subPart; | 14736 var subPart; |
12717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14737 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12718 pathOffset += 1; | 14738 pathOffset += 1; |
12719 | 14739 |
12720 var query = (req.url).query; | 14740 var query = (req.url).query; |
12721 var queryOffset = 0; | 14741 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
12734 } | 14754 } |
12735 } | 14755 } |
12736 | 14756 |
12737 | 14757 |
12738 var h = { | 14758 var h = { |
12739 "content-type" : "application/json; charset=utf-8", | 14759 "content-type" : "application/json; charset=utf-8", |
12740 }; | 14760 }; |
12741 var resp = convert.JSON.encode(buildOperation()); | 14761 var resp = convert.JSON.encode(buildOperation()); |
12742 return new async.Future.value(stringResponse(200, h, resp)); | 14762 return new async.Future.value(stringResponse(200, h, resp)); |
12743 }), true); | 14763 }), true); |
12744 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 14764 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
12745 checkOperation(response); | 14765 checkOperation(response); |
12746 }))); | 14766 }))); |
12747 }); | 14767 }); |
12748 | 14768 |
12749 unittest.test("method--list", () { | 14769 unittest.test("method--list", () { |
12750 | 14770 |
12751 var mock = new HttpServerMock(); | 14771 var mock = new HttpServerMock(); |
12752 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 14772 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12753 var arg_project = "foo"; | 14773 var arg_project = "foo"; |
| 14774 var arg_zone = "foo"; |
12754 var arg_filter = "foo"; | 14775 var arg_filter = "foo"; |
12755 var arg_maxResults = 42; | 14776 var arg_maxResults = 42; |
12756 var arg_orderBy = "foo"; | 14777 var arg_orderBy = "foo"; |
12757 var arg_pageToken = "foo"; | 14778 var arg_pageToken = "foo"; |
12758 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14779 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12759 var path = (req.url).path; | 14780 var path = (req.url).path; |
12760 var pathOffset = 0; | 14781 var pathOffset = 0; |
12761 var index; | 14782 var index; |
12762 var subPart; | 14783 var subPart; |
12763 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14784 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 17 matching lines...) Expand all Loading... |
12781 } | 14802 } |
12782 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 14803 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
12783 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 14804 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
12784 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 14805 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
12785 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 14806 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
12786 | 14807 |
12787 | 14808 |
12788 var h = { | 14809 var h = { |
12789 "content-type" : "application/json; charset=utf-8", | 14810 "content-type" : "application/json; charset=utf-8", |
12790 }; | 14811 }; |
12791 var resp = convert.JSON.encode(buildHealthCheckList()); | 14812 var resp = convert.JSON.encode(buildInstanceGroupManagerList()); |
12792 return new async.Future.value(stringResponse(200, h, resp)); | 14813 return new async.Future.value(stringResponse(200, h, resp)); |
12793 }), true); | 14814 }), true); |
12794 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Heal
thCheckList response) { | 14815 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupManagerList response) { |
12795 checkHealthCheckList(response); | 14816 checkInstanceGroupManagerList(response); |
12796 }))); | 14817 }))); |
12797 }); | 14818 }); |
12798 | 14819 |
12799 unittest.test("method--patch", () { | 14820 unittest.test("method--listManagedInstances", () { |
12800 | 14821 |
12801 var mock = new HttpServerMock(); | 14822 var mock = new HttpServerMock(); |
12802 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 14823 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12803 var arg_request = buildHealthCheck(); | |
12804 var arg_project = "foo"; | 14824 var arg_project = "foo"; |
12805 var arg_healthCheck = "foo"; | 14825 var arg_zone = "foo"; |
| 14826 var arg_instanceGroupManager = "foo"; |
12806 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14827 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12807 var obj = new api.HealthCheck.fromJson(json); | |
12808 checkHealthCheck(obj); | |
12809 | |
12810 var path = (req.url).path; | 14828 var path = (req.url).path; |
12811 var pathOffset = 0; | 14829 var pathOffset = 0; |
12812 var index; | 14830 var index; |
12813 var subPart; | 14831 var subPart; |
12814 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12815 pathOffset += 1; | 14833 pathOffset += 1; |
12816 | 14834 |
12817 var query = (req.url).query; | 14835 var query = (req.url).query; |
12818 var queryOffset = 0; | 14836 var queryOffset = 0; |
12819 var queryMap = {}; | 14837 var queryMap = {}; |
12820 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14838 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12821 parseBool(n) { | 14839 parseBool(n) { |
12822 if (n == "true") return true; | 14840 if (n == "true") return true; |
12823 if (n == "false") return false; | 14841 if (n == "false") return false; |
12824 if (n == null) return null; | 14842 if (n == null) return null; |
12825 throw new core.ArgumentError("Invalid boolean: $n"); | 14843 throw new core.ArgumentError("Invalid boolean: $n"); |
12826 } | 14844 } |
12827 if (query.length > 0) { | 14845 if (query.length > 0) { |
12828 for (var part in query.split("&")) { | 14846 for (var part in query.split("&")) { |
12829 var keyvalue = part.split("="); | 14847 var keyvalue = part.split("="); |
12830 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14848 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12831 } | 14849 } |
12832 } | 14850 } |
12833 | 14851 |
12834 | 14852 |
12835 var h = { | 14853 var h = { |
12836 "content-type" : "application/json; charset=utf-8", | 14854 "content-type" : "application/json; charset=utf-8", |
12837 }; | 14855 }; |
12838 var resp = convert.JSON.encode(buildOperation()); | 14856 var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInst
ancesResponse()); |
12839 return new async.Future.value(stringResponse(200, h, resp)); | 14857 return new async.Future.value(stringResponse(200, h, resp)); |
12840 }), true); | 14858 }), true); |
12841 res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectA
sync(((api.Operation response) { | 14859 res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager).
then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesRespons
e response) { |
12842 checkOperation(response); | 14860 checkInstanceGroupManagersListManagedInstancesResponse(response); |
12843 }))); | 14861 }))); |
12844 }); | 14862 }); |
12845 | 14863 |
12846 unittest.test("method--update", () { | 14864 unittest.test("method--recreateInstances", () { |
12847 | 14865 |
12848 var mock = new HttpServerMock(); | 14866 var mock = new HttpServerMock(); |
12849 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 14867 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12850 var arg_request = buildHealthCheck(); | 14868 var arg_request = buildInstanceGroupManagersRecreateInstancesRequest(); |
12851 var arg_project = "foo"; | 14869 var arg_project = "foo"; |
12852 var arg_healthCheck = "foo"; | 14870 var arg_zone = "foo"; |
| 14871 var arg_instanceGroupManager = "foo"; |
12853 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12854 var obj = new api.HealthCheck.fromJson(json); | 14873 var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson
(json); |
12855 checkHealthCheck(obj); | 14874 checkInstanceGroupManagersRecreateInstancesRequest(obj); |
12856 | 14875 |
12857 var path = (req.url).path; | 14876 var path = (req.url).path; |
12858 var pathOffset = 0; | 14877 var pathOffset = 0; |
12859 var index; | 14878 var index; |
12860 var subPart; | 14879 var subPart; |
12861 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12862 pathOffset += 1; | 14881 pathOffset += 1; |
12863 | 14882 |
12864 var query = (req.url).query; | 14883 var query = (req.url).query; |
12865 var queryOffset = 0; | 14884 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
12878 } | 14897 } |
12879 } | 14898 } |
12880 | 14899 |
12881 | 14900 |
12882 var h = { | 14901 var h = { |
12883 "content-type" : "application/json; charset=utf-8", | 14902 "content-type" : "application/json; charset=utf-8", |
12884 }; | 14903 }; |
12885 var resp = convert.JSON.encode(buildOperation()); | 14904 var resp = convert.JSON.encode(buildOperation()); |
12886 return new async.Future.value(stringResponse(200, h, resp)); | 14905 return new async.Future.value(stringResponse(200, h, resp)); |
12887 }), true); | 14906 }), true); |
12888 res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expect
Async(((api.Operation response) { | 14907 res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGrou
pManager).then(unittest.expectAsync(((api.Operation response) { |
12889 checkOperation(response); | 14908 checkOperation(response); |
12890 }))); | 14909 }))); |
12891 }); | 14910 }); |
12892 | 14911 |
12893 }); | 14912 unittest.test("method--resize", () { |
12894 | |
12895 | |
12896 unittest.group("resource-HttpHealthChecksResourceApi", () { | |
12897 unittest.test("method--delete", () { | |
12898 | 14913 |
12899 var mock = new HttpServerMock(); | 14914 var mock = new HttpServerMock(); |
12900 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 14915 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12901 var arg_project = "foo"; | 14916 var arg_project = "foo"; |
12902 var arg_httpHealthCheck = "foo"; | 14917 var arg_zone = "foo"; |
| 14918 var arg_instanceGroupManager = "foo"; |
| 14919 var arg_size = 42; |
12903 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14920 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12904 var path = (req.url).path; | 14921 var path = (req.url).path; |
12905 var pathOffset = 0; | 14922 var pathOffset = 0; |
12906 var index; | 14923 var index; |
12907 var subPart; | 14924 var subPart; |
12908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14925 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12909 pathOffset += 1; | 14926 pathOffset += 1; |
12910 | 14927 |
12911 var query = (req.url).query; | 14928 var query = (req.url).query; |
12912 var queryOffset = 0; | 14929 var queryOffset = 0; |
12913 var queryMap = {}; | 14930 var queryMap = {}; |
12914 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14931 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12915 parseBool(n) { | 14932 parseBool(n) { |
12916 if (n == "true") return true; | 14933 if (n == "true") return true; |
12917 if (n == "false") return false; | 14934 if (n == "false") return false; |
12918 if (n == null) return null; | 14935 if (n == null) return null; |
12919 throw new core.ArgumentError("Invalid boolean: $n"); | 14936 throw new core.ArgumentError("Invalid boolean: $n"); |
12920 } | 14937 } |
12921 if (query.length > 0) { | 14938 if (query.length > 0) { |
12922 for (var part in query.split("&")) { | 14939 for (var part in query.split("&")) { |
12923 var keyvalue = part.split("="); | 14940 var keyvalue = part.split("="); |
12924 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14941 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12925 } | 14942 } |
12926 } | 14943 } |
| 14944 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); |
12927 | 14945 |
12928 | 14946 |
12929 var h = { | 14947 var h = { |
12930 "content-type" : "application/json; charset=utf-8", | 14948 "content-type" : "application/json; charset=utf-8", |
12931 }; | 14949 }; |
12932 var resp = convert.JSON.encode(buildOperation()); | 14950 var resp = convert.JSON.encode(buildOperation()); |
12933 return new async.Future.value(stringResponse(200, h, resp)); | 14951 return new async.Future.value(stringResponse(200, h, resp)); |
12934 }), true); | 14952 }), true); |
12935 res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((a
pi.Operation response) { | 14953 res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then
(unittest.expectAsync(((api.Operation response) { |
12936 checkOperation(response); | 14954 checkOperation(response); |
12937 }))); | 14955 }))); |
12938 }); | 14956 }); |
12939 | 14957 |
12940 unittest.test("method--get", () { | 14958 unittest.test("method--setInstanceTemplate", () { |
12941 | 14959 |
12942 var mock = new HttpServerMock(); | 14960 var mock = new HttpServerMock(); |
12943 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 14961 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 14962 var arg_request = buildInstanceGroupManagersSetInstanceTemplateRequest(); |
12944 var arg_project = "foo"; | 14963 var arg_project = "foo"; |
12945 var arg_httpHealthCheck = "foo"; | 14964 var arg_zone = "foo"; |
| 14965 var arg_instanceGroupManager = "foo"; |
12946 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 14966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 14967 var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJs
on(json); |
| 14968 checkInstanceGroupManagersSetInstanceTemplateRequest(obj); |
| 14969 |
12947 var path = (req.url).path; | 14970 var path = (req.url).path; |
12948 var pathOffset = 0; | 14971 var pathOffset = 0; |
12949 var index; | 14972 var index; |
12950 var subPart; | 14973 var subPart; |
12951 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14974 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12952 pathOffset += 1; | 14975 pathOffset += 1; |
12953 | 14976 |
12954 var query = (req.url).query; | 14977 var query = (req.url).query; |
12955 var queryOffset = 0; | 14978 var queryOffset = 0; |
12956 var queryMap = {}; | 14979 var queryMap = {}; |
12957 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14980 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
12958 parseBool(n) { | 14981 parseBool(n) { |
12959 if (n == "true") return true; | 14982 if (n == "true") return true; |
12960 if (n == "false") return false; | 14983 if (n == "false") return false; |
12961 if (n == null) return null; | 14984 if (n == null) return null; |
12962 throw new core.ArgumentError("Invalid boolean: $n"); | 14985 throw new core.ArgumentError("Invalid boolean: $n"); |
12963 } | 14986 } |
12964 if (query.length > 0) { | 14987 if (query.length > 0) { |
12965 for (var part in query.split("&")) { | 14988 for (var part in query.split("&")) { |
12966 var keyvalue = part.split("="); | 14989 var keyvalue = part.split("="); |
12967 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14990 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
12968 } | 14991 } |
12969 } | 14992 } |
12970 | 14993 |
12971 | 14994 |
12972 var h = { | 14995 var h = { |
12973 "content-type" : "application/json; charset=utf-8", | 14996 "content-type" : "application/json; charset=utf-8", |
12974 }; | 14997 }; |
12975 var resp = convert.JSON.encode(buildHttpHealthCheck()); | 14998 var resp = convert.JSON.encode(buildOperation()); |
12976 return new async.Future.value(stringResponse(200, h, resp)); | 14999 return new async.Future.value(stringResponse(200, h, resp)); |
12977 }), true); | 15000 }), true); |
12978 res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.
HttpHealthCheck response) { | 15001 res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGr
oupManager).then(unittest.expectAsync(((api.Operation response) { |
12979 checkHttpHealthCheck(response); | 15002 checkOperation(response); |
12980 }))); | 15003 }))); |
12981 }); | 15004 }); |
12982 | 15005 |
12983 unittest.test("method--insert", () { | 15006 unittest.test("method--setTargetPools", () { |
12984 | 15007 |
12985 var mock = new HttpServerMock(); | 15008 var mock = new HttpServerMock(); |
12986 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 15009 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
12987 var arg_request = buildHttpHealthCheck(); | 15010 var arg_request = buildInstanceGroupManagersSetTargetPoolsRequest(); |
12988 var arg_project = "foo"; | 15011 var arg_project = "foo"; |
| 15012 var arg_zone = "foo"; |
| 15013 var arg_instanceGroupManager = "foo"; |
12989 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15014 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
12990 var obj = new api.HttpHealthCheck.fromJson(json); | 15015 var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(js
on); |
12991 checkHttpHealthCheck(obj); | 15016 checkInstanceGroupManagersSetTargetPoolsRequest(obj); |
12992 | 15017 |
12993 var path = (req.url).path; | 15018 var path = (req.url).path; |
12994 var pathOffset = 0; | 15019 var pathOffset = 0; |
12995 var index; | 15020 var index; |
12996 var subPart; | 15021 var subPart; |
12997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15022 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
12998 pathOffset += 1; | 15023 pathOffset += 1; |
12999 | 15024 |
13000 var query = (req.url).query; | 15025 var query = (req.url).query; |
13001 var queryOffset = 0; | 15026 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
13014 } | 15039 } |
13015 } | 15040 } |
13016 | 15041 |
13017 | 15042 |
13018 var h = { | 15043 var h = { |
13019 "content-type" : "application/json; charset=utf-8", | 15044 "content-type" : "application/json; charset=utf-8", |
13020 }; | 15045 }; |
13021 var resp = convert.JSON.encode(buildOperation()); | 15046 var resp = convert.JSON.encode(buildOperation()); |
13022 return new async.Future.value(stringResponse(200, h, resp)); | 15047 return new async.Future.value(stringResponse(200, h, resp)); |
13023 }), true); | 15048 }), true); |
13024 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 15049 res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupMa
nager).then(unittest.expectAsync(((api.Operation response) { |
13025 checkOperation(response); | 15050 checkOperation(response); |
13026 }))); | 15051 }))); |
13027 }); | 15052 }); |
13028 | 15053 |
13029 unittest.test("method--list", () { | 15054 }); |
| 15055 |
| 15056 |
| 15057 unittest.group("resource-InstanceGroupsResourceApi", () { |
| 15058 unittest.test("method--addInstances", () { |
13030 | 15059 |
13031 var mock = new HttpServerMock(); | 15060 var mock = new HttpServerMock(); |
13032 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 15061 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 15062 var arg_request = buildInstanceGroupsAddInstancesRequest(); |
13033 var arg_project = "foo"; | 15063 var arg_project = "foo"; |
13034 var arg_filter = "foo"; | 15064 var arg_zone = "foo"; |
13035 var arg_maxResults = 42; | 15065 var arg_instanceGroup = "foo"; |
13036 var arg_orderBy = "foo"; | |
13037 var arg_pageToken = "foo"; | |
13038 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15066 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15067 var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json); |
| 15068 checkInstanceGroupsAddInstancesRequest(obj); |
| 15069 |
13039 var path = (req.url).path; | 15070 var path = (req.url).path; |
13040 var pathOffset = 0; | 15071 var pathOffset = 0; |
13041 var index; | 15072 var index; |
13042 var subPart; | 15073 var subPart; |
13043 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15074 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13044 pathOffset += 1; | 15075 pathOffset += 1; |
13045 | 15076 |
13046 var query = (req.url).query; | 15077 var query = (req.url).query; |
13047 var queryOffset = 0; | 15078 var queryOffset = 0; |
13048 var queryMap = {}; | 15079 var queryMap = {}; |
13049 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15080 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13050 parseBool(n) { | 15081 parseBool(n) { |
13051 if (n == "true") return true; | 15082 if (n == "true") return true; |
13052 if (n == "false") return false; | 15083 if (n == "false") return false; |
13053 if (n == null) return null; | 15084 if (n == null) return null; |
13054 throw new core.ArgumentError("Invalid boolean: $n"); | 15085 throw new core.ArgumentError("Invalid boolean: $n"); |
13055 } | 15086 } |
13056 if (query.length > 0) { | 15087 if (query.length > 0) { |
13057 for (var part in query.split("&")) { | 15088 for (var part in query.split("&")) { |
13058 var keyvalue = part.split("="); | 15089 var keyvalue = part.split("="); |
13059 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15090 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13060 } | 15091 } |
13061 } | 15092 } |
13062 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
13063 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
13064 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
13065 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
13066 | 15093 |
13067 | 15094 |
13068 var h = { | 15095 var h = { |
13069 "content-type" : "application/json; charset=utf-8", | 15096 "content-type" : "application/json; charset=utf-8", |
13070 }; | 15097 }; |
13071 var resp = convert.JSON.encode(buildHttpHealthCheckList()); | 15098 var resp = convert.JSON.encode(buildOperation()); |
13072 return new async.Future.value(stringResponse(200, h, resp)); | 15099 return new async.Future.value(stringResponse(200, h, resp)); |
13073 }), true); | 15100 }), true); |
13074 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Http
HealthCheckList response) { | 15101 res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).th
en(unittest.expectAsync(((api.Operation response) { |
13075 checkHttpHealthCheckList(response); | 15102 checkOperation(response); |
13076 }))); | 15103 }))); |
13077 }); | 15104 }); |
13078 | 15105 |
13079 unittest.test("method--patch", () { | 15106 unittest.test("method--aggregatedList", () { |
13080 | 15107 |
13081 var mock = new HttpServerMock(); | 15108 var mock = new HttpServerMock(); |
13082 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 15109 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
13083 var arg_request = buildHttpHealthCheck(); | |
13084 var arg_project = "foo"; | 15110 var arg_project = "foo"; |
13085 var arg_httpHealthCheck = "foo"; | 15111 var arg_filter = "foo"; |
| 15112 var arg_maxResults = 42; |
| 15113 var arg_orderBy = "foo"; |
| 15114 var arg_pageToken = "foo"; |
13086 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13087 var obj = new api.HttpHealthCheck.fromJson(json); | |
13088 checkHttpHealthCheck(obj); | |
13089 | |
13090 var path = (req.url).path; | 15116 var path = (req.url).path; |
13091 var pathOffset = 0; | 15117 var pathOffset = 0; |
13092 var index; | 15118 var index; |
13093 var subPart; | 15119 var subPart; |
13094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15120 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13095 pathOffset += 1; | 15121 pathOffset += 1; |
13096 | 15122 |
13097 var query = (req.url).query; | 15123 var query = (req.url).query; |
13098 var queryOffset = 0; | 15124 var queryOffset = 0; |
13099 var queryMap = {}; | 15125 var queryMap = {}; |
13100 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15126 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13101 parseBool(n) { | 15127 parseBool(n) { |
13102 if (n == "true") return true; | 15128 if (n == "true") return true; |
13103 if (n == "false") return false; | 15129 if (n == "false") return false; |
13104 if (n == null) return null; | 15130 if (n == null) return null; |
13105 throw new core.ArgumentError("Invalid boolean: $n"); | 15131 throw new core.ArgumentError("Invalid boolean: $n"); |
13106 } | 15132 } |
13107 if (query.length > 0) { | 15133 if (query.length > 0) { |
13108 for (var part in query.split("&")) { | 15134 for (var part in query.split("&")) { |
13109 var keyvalue = part.split("="); | 15135 var keyvalue = part.split("="); |
13110 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15136 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13111 } | 15137 } |
13112 } | 15138 } |
| 15139 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 15140 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 15141 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 15142 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
13113 | 15143 |
13114 | 15144 |
13115 var h = { | 15145 var h = { |
13116 "content-type" : "application/json; charset=utf-8", | 15146 "content-type" : "application/json; charset=utf-8", |
13117 }; | 15147 }; |
13118 var resp = convert.JSON.encode(buildOperation()); | 15148 var resp = convert.JSON.encode(buildInstanceGroupAggregatedList()); |
13119 return new async.Future.value(stringResponse(200, h, resp)); | 15149 return new async.Future.value(stringResponse(200, h, resp)); |
13120 }), true); | 15150 }), true); |
13121 res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.exp
ectAsync(((api.Operation response) { | 15151 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupAggregatedList response) { |
13122 checkOperation(response); | 15152 checkInstanceGroupAggregatedList(response); |
13123 }))); | 15153 }))); |
13124 }); | 15154 }); |
13125 | 15155 |
13126 unittest.test("method--update", () { | 15156 unittest.test("method--delete", () { |
13127 | 15157 |
13128 var mock = new HttpServerMock(); | 15158 var mock = new HttpServerMock(); |
13129 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 15159 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
13130 var arg_request = buildHttpHealthCheck(); | |
13131 var arg_project = "foo"; | 15160 var arg_project = "foo"; |
13132 var arg_httpHealthCheck = "foo"; | 15161 var arg_zone = "foo"; |
| 15162 var arg_instanceGroup = "foo"; |
13133 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15163 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13134 var obj = new api.HttpHealthCheck.fromJson(json); | |
13135 checkHttpHealthCheck(obj); | |
13136 | |
13137 var path = (req.url).path; | 15164 var path = (req.url).path; |
13138 var pathOffset = 0; | 15165 var pathOffset = 0; |
13139 var index; | 15166 var index; |
13140 var subPart; | 15167 var subPart; |
13141 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15168 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13142 pathOffset += 1; | 15169 pathOffset += 1; |
13143 | 15170 |
13144 var query = (req.url).query; | 15171 var query = (req.url).query; |
13145 var queryOffset = 0; | 15172 var queryOffset = 0; |
13146 var queryMap = {}; | 15173 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
13158 } | 15185 } |
13159 } | 15186 } |
13160 | 15187 |
13161 | 15188 |
13162 var h = { | 15189 var h = { |
13163 "content-type" : "application/json; charset=utf-8", | 15190 "content-type" : "application/json; charset=utf-8", |
13164 }; | 15191 }; |
13165 var resp = convert.JSON.encode(buildOperation()); | 15192 var resp = convert.JSON.encode(buildOperation()); |
13166 return new async.Future.value(stringResponse(200, h, resp)); | 15193 return new async.Future.value(stringResponse(200, h, resp)); |
13167 }), true); | 15194 }), true); |
13168 res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.ex
pectAsync(((api.Operation response) { | 15195 res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectA
sync(((api.Operation response) { |
13169 checkOperation(response); | 15196 checkOperation(response); |
13170 }))); | 15197 }))); |
13171 }); | 15198 }); |
13172 | 15199 |
13173 }); | 15200 unittest.test("method--get", () { |
13174 | |
13175 | |
13176 unittest.group("resource-HttpsHealthChecksResourceApi", () { | |
13177 unittest.test("method--delete", () { | |
13178 | 15201 |
13179 var mock = new HttpServerMock(); | 15202 var mock = new HttpServerMock(); |
13180 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 15203 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
13181 var arg_project = "foo"; | 15204 var arg_project = "foo"; |
13182 var arg_httpsHealthCheck = "foo"; | 15205 var arg_zone = "foo"; |
| 15206 var arg_instanceGroup = "foo"; |
13183 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15207 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13184 var path = (req.url).path; | 15208 var path = (req.url).path; |
13185 var pathOffset = 0; | 15209 var pathOffset = 0; |
13186 var index; | 15210 var index; |
13187 var subPart; | 15211 var subPart; |
13188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15212 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13189 pathOffset += 1; | 15213 pathOffset += 1; |
13190 | 15214 |
13191 var query = (req.url).query; | 15215 var query = (req.url).query; |
13192 var queryOffset = 0; | 15216 var queryOffset = 0; |
13193 var queryMap = {}; | 15217 var queryMap = {}; |
13194 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15218 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13195 parseBool(n) { | 15219 parseBool(n) { |
13196 if (n == "true") return true; | 15220 if (n == "true") return true; |
13197 if (n == "false") return false; | 15221 if (n == "false") return false; |
13198 if (n == null) return null; | 15222 if (n == null) return null; |
13199 throw new core.ArgumentError("Invalid boolean: $n"); | 15223 throw new core.ArgumentError("Invalid boolean: $n"); |
13200 } | 15224 } |
13201 if (query.length > 0) { | 15225 if (query.length > 0) { |
13202 for (var part in query.split("&")) { | 15226 for (var part in query.split("&")) { |
13203 var keyvalue = part.split("="); | 15227 var keyvalue = part.split("="); |
13204 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15228 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13205 } | 15229 } |
13206 } | 15230 } |
13207 | 15231 |
13208 | 15232 |
13209 var h = { | 15233 var h = { |
13210 "content-type" : "application/json; charset=utf-8", | 15234 "content-type" : "application/json; charset=utf-8", |
13211 }; | 15235 }; |
13212 var resp = convert.JSON.encode(buildOperation()); | 15236 var resp = convert.JSON.encode(buildInstanceGroup()); |
13213 return new async.Future.value(stringResponse(200, h, resp)); | 15237 return new async.Future.value(stringResponse(200, h, resp)); |
13214 }), true); | 15238 }), true); |
13215 res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((
api.Operation response) { | 15239 res.get(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsyn
c(((api.InstanceGroup response) { |
13216 checkOperation(response); | 15240 checkInstanceGroup(response); |
13217 }))); | 15241 }))); |
13218 }); | 15242 }); |
13219 | 15243 |
13220 unittest.test("method--get", () { | 15244 unittest.test("method--insert", () { |
13221 | 15245 |
13222 var mock = new HttpServerMock(); | 15246 var mock = new HttpServerMock(); |
13223 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 15247 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 15248 var arg_request = buildInstanceGroup(); |
13224 var arg_project = "foo"; | 15249 var arg_project = "foo"; |
13225 var arg_httpsHealthCheck = "foo"; | 15250 var arg_zone = "foo"; |
13226 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15251 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15252 var obj = new api.InstanceGroup.fromJson(json); |
| 15253 checkInstanceGroup(obj); |
| 15254 |
13227 var path = (req.url).path; | 15255 var path = (req.url).path; |
13228 var pathOffset = 0; | 15256 var pathOffset = 0; |
13229 var index; | 15257 var index; |
13230 var subPart; | 15258 var subPart; |
13231 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15259 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13232 pathOffset += 1; | 15260 pathOffset += 1; |
13233 | 15261 |
13234 var query = (req.url).query; | 15262 var query = (req.url).query; |
13235 var queryOffset = 0; | 15263 var queryOffset = 0; |
13236 var queryMap = {}; | 15264 var queryMap = {}; |
13237 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15265 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13238 parseBool(n) { | 15266 parseBool(n) { |
13239 if (n == "true") return true; | 15267 if (n == "true") return true; |
13240 if (n == "false") return false; | 15268 if (n == "false") return false; |
13241 if (n == null) return null; | 15269 if (n == null) return null; |
13242 throw new core.ArgumentError("Invalid boolean: $n"); | 15270 throw new core.ArgumentError("Invalid boolean: $n"); |
13243 } | 15271 } |
13244 if (query.length > 0) { | 15272 if (query.length > 0) { |
13245 for (var part in query.split("&")) { | 15273 for (var part in query.split("&")) { |
13246 var keyvalue = part.split("="); | 15274 var keyvalue = part.split("="); |
13247 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15275 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13248 } | 15276 } |
13249 } | 15277 } |
13250 | 15278 |
13251 | 15279 |
13252 var h = { | 15280 var h = { |
13253 "content-type" : "application/json; charset=utf-8", | 15281 "content-type" : "application/json; charset=utf-8", |
13254 }; | 15282 }; |
13255 var resp = convert.JSON.encode(buildHttpsHealthCheck()); | 15283 var resp = convert.JSON.encode(buildOperation()); |
13256 return new async.Future.value(stringResponse(200, h, resp)); | 15284 return new async.Future.value(stringResponse(200, h, resp)); |
13257 }), true); | 15285 }), true); |
13258 res.get(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync(((api
.HttpsHealthCheck response) { | 15286 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
13259 checkHttpsHealthCheck(response); | 15287 checkOperation(response); |
13260 }))); | 15288 }))); |
13261 }); | 15289 }); |
13262 | 15290 |
13263 unittest.test("method--insert", () { | 15291 unittest.test("method--list", () { |
13264 | 15292 |
13265 var mock = new HttpServerMock(); | 15293 var mock = new HttpServerMock(); |
13266 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 15294 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
13267 var arg_request = buildHttpsHealthCheck(); | |
13268 var arg_project = "foo"; | 15295 var arg_project = "foo"; |
| 15296 var arg_zone = "foo"; |
| 15297 var arg_filter = "foo"; |
| 15298 var arg_maxResults = 42; |
| 15299 var arg_orderBy = "foo"; |
| 15300 var arg_pageToken = "foo"; |
13269 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15301 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13270 var obj = new api.HttpsHealthCheck.fromJson(json); | |
13271 checkHttpsHealthCheck(obj); | |
13272 | |
13273 var path = (req.url).path; | 15302 var path = (req.url).path; |
13274 var pathOffset = 0; | 15303 var pathOffset = 0; |
13275 var index; | 15304 var index; |
13276 var subPart; | 15305 var subPart; |
13277 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15306 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13278 pathOffset += 1; | 15307 pathOffset += 1; |
13279 | 15308 |
13280 var query = (req.url).query; | 15309 var query = (req.url).query; |
13281 var queryOffset = 0; | 15310 var queryOffset = 0; |
13282 var queryMap = {}; | 15311 var queryMap = {}; |
13283 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15312 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13284 parseBool(n) { | 15313 parseBool(n) { |
13285 if (n == "true") return true; | 15314 if (n == "true") return true; |
13286 if (n == "false") return false; | 15315 if (n == "false") return false; |
13287 if (n == null) return null; | 15316 if (n == null) return null; |
13288 throw new core.ArgumentError("Invalid boolean: $n"); | 15317 throw new core.ArgumentError("Invalid boolean: $n"); |
13289 } | 15318 } |
13290 if (query.length > 0) { | 15319 if (query.length > 0) { |
13291 for (var part in query.split("&")) { | 15320 for (var part in query.split("&")) { |
13292 var keyvalue = part.split("="); | 15321 var keyvalue = part.split("="); |
13293 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15322 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13294 } | 15323 } |
13295 } | 15324 } |
| 15325 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 15326 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 15327 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 15328 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
13296 | 15329 |
13297 | 15330 |
13298 var h = { | 15331 var h = { |
13299 "content-type" : "application/json; charset=utf-8", | 15332 "content-type" : "application/json; charset=utf-8", |
13300 }; | 15333 }; |
13301 var resp = convert.JSON.encode(buildOperation()); | 15334 var resp = convert.JSON.encode(buildInstanceGroupList()); |
13302 return new async.Future.value(stringResponse(200, h, resp)); | 15335 return new async.Future.value(stringResponse(200, h, resp)); |
13303 }), true); | 15336 }), true); |
13304 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 15337 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupList response) { |
13305 checkOperation(response); | 15338 checkInstanceGroupList(response); |
13306 }))); | 15339 }))); |
13307 }); | 15340 }); |
13308 | 15341 |
13309 unittest.test("method--list", () { | 15342 unittest.test("method--listInstances", () { |
13310 | 15343 |
13311 var mock = new HttpServerMock(); | 15344 var mock = new HttpServerMock(); |
13312 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 15345 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 15346 var arg_request = buildInstanceGroupsListInstancesRequest(); |
13313 var arg_project = "foo"; | 15347 var arg_project = "foo"; |
| 15348 var arg_zone = "foo"; |
| 15349 var arg_instanceGroup = "foo"; |
13314 var arg_filter = "foo"; | 15350 var arg_filter = "foo"; |
13315 var arg_maxResults = 42; | 15351 var arg_maxResults = 42; |
13316 var arg_orderBy = "foo"; | 15352 var arg_orderBy = "foo"; |
13317 var arg_pageToken = "foo"; | 15353 var arg_pageToken = "foo"; |
13318 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15354 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15355 var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json); |
| 15356 checkInstanceGroupsListInstancesRequest(obj); |
| 15357 |
13319 var path = (req.url).path; | 15358 var path = (req.url).path; |
13320 var pathOffset = 0; | 15359 var pathOffset = 0; |
13321 var index; | 15360 var index; |
13322 var subPart; | 15361 var subPart; |
13323 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15362 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13324 pathOffset += 1; | 15363 pathOffset += 1; |
13325 | 15364 |
13326 var query = (req.url).query; | 15365 var query = (req.url).query; |
13327 var queryOffset = 0; | 15366 var queryOffset = 0; |
13328 var queryMap = {}; | 15367 var queryMap = {}; |
(...skipping 12 matching lines...) Expand all Loading... |
13341 } | 15380 } |
13342 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 15381 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
13343 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 15382 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
13344 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 15383 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
13345 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 15384 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
13346 | 15385 |
13347 | 15386 |
13348 var h = { | 15387 var h = { |
13349 "content-type" : "application/json; charset=utf-8", | 15388 "content-type" : "application/json; charset=utf-8", |
13350 }; | 15389 }; |
13351 var resp = convert.JSON.encode(buildHttpsHealthCheckList()); | 15390 var resp = convert.JSON.encode(buildInstanceGroupsListInstances()); |
13352 return new async.Future.value(stringResponse(200, h, resp)); | 15391 return new async.Future.value(stringResponse(200, h, resp)); |
13353 }), true); | 15392 }), true); |
13354 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Http
sHealthCheckList response) { | 15393 res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, f
ilter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances respo
nse) { |
13355 checkHttpsHealthCheckList(response); | 15394 checkInstanceGroupsListInstances(response); |
13356 }))); | 15395 }))); |
13357 }); | 15396 }); |
13358 | 15397 |
13359 unittest.test("method--patch", () { | 15398 unittest.test("method--removeInstances", () { |
13360 | 15399 |
13361 var mock = new HttpServerMock(); | 15400 var mock = new HttpServerMock(); |
13362 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 15401 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
13363 var arg_request = buildHttpsHealthCheck(); | 15402 var arg_request = buildInstanceGroupsRemoveInstancesRequest(); |
13364 var arg_project = "foo"; | 15403 var arg_project = "foo"; |
13365 var arg_httpsHealthCheck = "foo"; | 15404 var arg_zone = "foo"; |
| 15405 var arg_instanceGroup = "foo"; |
13366 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15406 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13367 var obj = new api.HttpsHealthCheck.fromJson(json); | 15407 var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json); |
13368 checkHttpsHealthCheck(obj); | 15408 checkInstanceGroupsRemoveInstancesRequest(obj); |
13369 | 15409 |
13370 var path = (req.url).path; | 15410 var path = (req.url).path; |
13371 var pathOffset = 0; | 15411 var pathOffset = 0; |
13372 var index; | 15412 var index; |
13373 var subPart; | 15413 var subPart; |
13374 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15414 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13375 pathOffset += 1; | 15415 pathOffset += 1; |
13376 | 15416 |
13377 var query = (req.url).query; | 15417 var query = (req.url).query; |
13378 var queryOffset = 0; | 15418 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
13391 } | 15431 } |
13392 } | 15432 } |
13393 | 15433 |
13394 | 15434 |
13395 var h = { | 15435 var h = { |
13396 "content-type" : "application/json; charset=utf-8", | 15436 "content-type" : "application/json; charset=utf-8", |
13397 }; | 15437 }; |
13398 var resp = convert.JSON.encode(buildOperation()); | 15438 var resp = convert.JSON.encode(buildOperation()); |
13399 return new async.Future.value(stringResponse(200, h, resp)); | 15439 return new async.Future.value(stringResponse(200, h, resp)); |
13400 }), true); | 15440 }), true); |
13401 res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.ex
pectAsync(((api.Operation response) { | 15441 res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup)
.then(unittest.expectAsync(((api.Operation response) { |
13402 checkOperation(response); | 15442 checkOperation(response); |
13403 }))); | 15443 }))); |
13404 }); | 15444 }); |
13405 | 15445 |
13406 unittest.test("method--update", () { | 15446 unittest.test("method--setNamedPorts", () { |
13407 | 15447 |
13408 var mock = new HttpServerMock(); | 15448 var mock = new HttpServerMock(); |
13409 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 15449 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
13410 var arg_request = buildHttpsHealthCheck(); | 15450 var arg_request = buildInstanceGroupsSetNamedPortsRequest(); |
13411 var arg_project = "foo"; | 15451 var arg_project = "foo"; |
13412 var arg_httpsHealthCheck = "foo"; | 15452 var arg_zone = "foo"; |
| 15453 var arg_instanceGroup = "foo"; |
13413 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15454 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13414 var obj = new api.HttpsHealthCheck.fromJson(json); | 15455 var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json); |
13415 checkHttpsHealthCheck(obj); | 15456 checkInstanceGroupsSetNamedPortsRequest(obj); |
13416 | 15457 |
13417 var path = (req.url).path; | 15458 var path = (req.url).path; |
13418 var pathOffset = 0; | 15459 var pathOffset = 0; |
13419 var index; | 15460 var index; |
13420 var subPart; | 15461 var subPart; |
13421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13422 pathOffset += 1; | 15463 pathOffset += 1; |
13423 | 15464 |
13424 var query = (req.url).query; | 15465 var query = (req.url).query; |
13425 var queryOffset = 0; | 15466 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
13438 } | 15479 } |
13439 } | 15480 } |
13440 | 15481 |
13441 | 15482 |
13442 var h = { | 15483 var h = { |
13443 "content-type" : "application/json; charset=utf-8", | 15484 "content-type" : "application/json; charset=utf-8", |
13444 }; | 15485 }; |
13445 var resp = convert.JSON.encode(buildOperation()); | 15486 var resp = convert.JSON.encode(buildOperation()); |
13446 return new async.Future.value(stringResponse(200, h, resp)); | 15487 return new async.Future.value(stringResponse(200, h, resp)); |
13447 }), true); | 15488 }), true); |
13448 res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.e
xpectAsync(((api.Operation response) { | 15489 res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).t
hen(unittest.expectAsync(((api.Operation response) { |
13449 checkOperation(response); | 15490 checkOperation(response); |
13450 }))); | 15491 }))); |
13451 }); | 15492 }); |
13452 | 15493 |
13453 }); | 15494 }); |
13454 | 15495 |
13455 | 15496 |
13456 unittest.group("resource-ImagesResourceApi", () { | 15497 unittest.group("resource-InstanceTemplatesResourceApi", () { |
13457 unittest.test("method--delete", () { | 15498 unittest.test("method--delete", () { |
13458 | 15499 |
13459 var mock = new HttpServerMock(); | 15500 var mock = new HttpServerMock(); |
13460 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 15501 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
13461 var arg_project = "foo"; | 15502 var arg_project = "foo"; |
13462 var arg_image = "foo"; | 15503 var arg_instanceTemplate = "foo"; |
13463 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13464 var path = (req.url).path; | 15505 var path = (req.url).path; |
13465 var pathOffset = 0; | 15506 var pathOffset = 0; |
13466 var index; | 15507 var index; |
13467 var subPart; | 15508 var subPart; |
13468 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13469 pathOffset += 1; | 15510 pathOffset += 1; |
13470 | 15511 |
13471 var query = (req.url).query; | 15512 var query = (req.url).query; |
13472 var queryOffset = 0; | 15513 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
13485 } | 15526 } |
13486 } | 15527 } |
13487 | 15528 |
13488 | 15529 |
13489 var h = { | 15530 var h = { |
13490 "content-type" : "application/json; charset=utf-8", | 15531 "content-type" : "application/json; charset=utf-8", |
13491 }; | 15532 }; |
13492 var resp = convert.JSON.encode(buildOperation()); | 15533 var resp = convert.JSON.encode(buildOperation()); |
13493 return new async.Future.value(stringResponse(200, h, resp)); | 15534 return new async.Future.value(stringResponse(200, h, resp)); |
13494 }), true); | 15535 }), true); |
13495 res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operati
on response) { | 15536 res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((
api.Operation response) { |
13496 checkOperation(response); | 15537 checkOperation(response); |
13497 }))); | 15538 }))); |
13498 }); | 15539 }); |
13499 | 15540 |
13500 unittest.test("method--deprecate", () { | 15541 unittest.test("method--get", () { |
13501 | 15542 |
13502 var mock = new HttpServerMock(); | 15543 var mock = new HttpServerMock(); |
13503 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 15544 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
13504 var arg_request = buildDeprecationStatus(); | |
13505 var arg_project = "foo"; | 15545 var arg_project = "foo"; |
13506 var arg_image = "foo"; | 15546 var arg_instanceTemplate = "foo"; |
13507 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15547 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13508 var obj = new api.DeprecationStatus.fromJson(json); | |
13509 checkDeprecationStatus(obj); | |
13510 | |
13511 var path = (req.url).path; | 15548 var path = (req.url).path; |
13512 var pathOffset = 0; | 15549 var pathOffset = 0; |
13513 var index; | 15550 var index; |
13514 var subPart; | 15551 var subPart; |
13515 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13516 pathOffset += 1; | 15553 pathOffset += 1; |
13517 | 15554 |
13518 var query = (req.url).query; | 15555 var query = (req.url).query; |
13519 var queryOffset = 0; | 15556 var queryOffset = 0; |
13520 var queryMap = {}; | 15557 var queryMap = {}; |
13521 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15558 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13522 parseBool(n) { | 15559 parseBool(n) { |
13523 if (n == "true") return true; | 15560 if (n == "true") return true; |
13524 if (n == "false") return false; | 15561 if (n == "false") return false; |
13525 if (n == null) return null; | 15562 if (n == null) return null; |
13526 throw new core.ArgumentError("Invalid boolean: $n"); | 15563 throw new core.ArgumentError("Invalid boolean: $n"); |
13527 } | 15564 } |
13528 if (query.length > 0) { | 15565 if (query.length > 0) { |
13529 for (var part in query.split("&")) { | 15566 for (var part in query.split("&")) { |
13530 var keyvalue = part.split("="); | 15567 var keyvalue = part.split("="); |
13531 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15568 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13532 } | 15569 } |
13533 } | 15570 } |
13534 | 15571 |
13535 | 15572 |
13536 var h = { | 15573 var h = { |
13537 "content-type" : "application/json; charset=utf-8", | 15574 "content-type" : "application/json; charset=utf-8", |
13538 }; | 15575 }; |
13539 var resp = convert.JSON.encode(buildOperation()); | 15576 var resp = convert.JSON.encode(buildInstanceTemplate()); |
13540 return new async.Future.value(stringResponse(200, h, resp)); | 15577 return new async.Future.value(stringResponse(200, h, resp)); |
13541 }), true); | 15578 }), true); |
13542 res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsy
nc(((api.Operation response) { | 15579 res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api
.InstanceTemplate response) { |
13543 checkOperation(response); | 15580 checkInstanceTemplate(response); |
13544 }))); | 15581 }))); |
13545 }); | 15582 }); |
13546 | 15583 |
13547 unittest.test("method--get", () { | 15584 unittest.test("method--insert", () { |
13548 | 15585 |
13549 var mock = new HttpServerMock(); | 15586 var mock = new HttpServerMock(); |
13550 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 15587 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 15588 var arg_request = buildInstanceTemplate(); |
13551 var arg_project = "foo"; | 15589 var arg_project = "foo"; |
13552 var arg_image = "foo"; | |
13553 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15590 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 15591 var obj = new api.InstanceTemplate.fromJson(json); |
| 15592 checkInstanceTemplate(obj); |
| 15593 |
13554 var path = (req.url).path; | 15594 var path = (req.url).path; |
13555 var pathOffset = 0; | 15595 var pathOffset = 0; |
13556 var index; | 15596 var index; |
13557 var subPart; | 15597 var subPart; |
13558 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15598 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13559 pathOffset += 1; | 15599 pathOffset += 1; |
13560 | 15600 |
13561 var query = (req.url).query; | 15601 var query = (req.url).query; |
13562 var queryOffset = 0; | 15602 var queryOffset = 0; |
13563 var queryMap = {}; | 15603 var queryMap = {}; |
13564 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15604 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13565 parseBool(n) { | 15605 parseBool(n) { |
13566 if (n == "true") return true; | 15606 if (n == "true") return true; |
13567 if (n == "false") return false; | 15607 if (n == "false") return false; |
13568 if (n == null) return null; | 15608 if (n == null) return null; |
13569 throw new core.ArgumentError("Invalid boolean: $n"); | 15609 throw new core.ArgumentError("Invalid boolean: $n"); |
13570 } | 15610 } |
13571 if (query.length > 0) { | 15611 if (query.length > 0) { |
13572 for (var part in query.split("&")) { | 15612 for (var part in query.split("&")) { |
13573 var keyvalue = part.split("="); | 15613 var keyvalue = part.split("="); |
13574 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15614 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13575 } | 15615 } |
13576 } | 15616 } |
13577 | 15617 |
13578 | 15618 |
13579 var h = { | 15619 var h = { |
13580 "content-type" : "application/json; charset=utf-8", | 15620 "content-type" : "application/json; charset=utf-8", |
13581 }; | 15621 }; |
13582 var resp = convert.JSON.encode(buildImage()); | 15622 var resp = convert.JSON.encode(buildOperation()); |
13583 return new async.Future.value(stringResponse(200, h, resp)); | 15623 return new async.Future.value(stringResponse(200, h, resp)); |
13584 }), true); | 15624 }), true); |
13585 res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image resp
onse) { | 15625 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
13586 checkImage(response); | 15626 checkOperation(response); |
13587 }))); | 15627 }))); |
13588 }); | 15628 }); |
13589 | 15629 |
13590 unittest.test("method--getFromFamily", () { | 15630 unittest.test("method--list", () { |
13591 | 15631 |
13592 var mock = new HttpServerMock(); | 15632 var mock = new HttpServerMock(); |
13593 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 15633 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
13594 var arg_project = "foo"; | 15634 var arg_project = "foo"; |
13595 var arg_family = "foo"; | 15635 var arg_filter = "foo"; |
| 15636 var arg_maxResults = 42; |
| 15637 var arg_orderBy = "foo"; |
| 15638 var arg_pageToken = "foo"; |
13596 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13597 var path = (req.url).path; | 15640 var path = (req.url).path; |
13598 var pathOffset = 0; | 15641 var pathOffset = 0; |
13599 var index; | 15642 var index; |
13600 var subPart; | 15643 var subPart; |
13601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15644 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13602 pathOffset += 1; | 15645 pathOffset += 1; |
13603 | 15646 |
13604 var query = (req.url).query; | 15647 var query = (req.url).query; |
13605 var queryOffset = 0; | 15648 var queryOffset = 0; |
13606 var queryMap = {}; | 15649 var queryMap = {}; |
13607 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15650 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13608 parseBool(n) { | 15651 parseBool(n) { |
13609 if (n == "true") return true; | 15652 if (n == "true") return true; |
13610 if (n == "false") return false; | 15653 if (n == "false") return false; |
13611 if (n == null) return null; | 15654 if (n == null) return null; |
13612 throw new core.ArgumentError("Invalid boolean: $n"); | 15655 throw new core.ArgumentError("Invalid boolean: $n"); |
13613 } | 15656 } |
13614 if (query.length > 0) { | 15657 if (query.length > 0) { |
13615 for (var part in query.split("&")) { | 15658 for (var part in query.split("&")) { |
13616 var keyvalue = part.split("="); | 15659 var keyvalue = part.split("="); |
13617 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15660 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13618 } | 15661 } |
13619 } | 15662 } |
| 15663 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 15664 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 15665 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 15666 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
13620 | 15667 |
13621 | 15668 |
13622 var h = { | 15669 var h = { |
13623 "content-type" : "application/json; charset=utf-8", | 15670 "content-type" : "application/json; charset=utf-8", |
13624 }; | 15671 }; |
13625 var resp = convert.JSON.encode(buildImage()); | 15672 var resp = convert.JSON.encode(buildInstanceTemplateList()); |
13626 return new async.Future.value(stringResponse(200, h, resp)); | 15673 return new async.Future.value(stringResponse(200, h, resp)); |
13627 }), true); | 15674 }), true); |
13628 res.getFromFamily(arg_project, arg_family).then(unittest.expectAsync(((api
.Image response) { | 15675 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Inst
anceTemplateList response) { |
13629 checkImage(response); | 15676 checkInstanceTemplateList(response); |
13630 }))); | 15677 }))); |
13631 }); | 15678 }); |
13632 | 15679 |
13633 unittest.test("method--insert", () { | 15680 }); |
| 15681 |
| 15682 |
| 15683 unittest.group("resource-InstancesResourceApi", () { |
| 15684 unittest.test("method--addAccessConfig", () { |
13634 | 15685 |
13635 var mock = new HttpServerMock(); | 15686 var mock = new HttpServerMock(); |
13636 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 15687 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13637 var arg_request = buildImage(); | 15688 var arg_request = buildAccessConfig(); |
13638 var arg_project = "foo"; | 15689 var arg_project = "foo"; |
| 15690 var arg_zone = "foo"; |
| 15691 var arg_instance = "foo"; |
| 15692 var arg_networkInterface = "foo"; |
13639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15693 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13640 var obj = new api.Image.fromJson(json); | 15694 var obj = new api.AccessConfig.fromJson(json); |
13641 checkImage(obj); | 15695 checkAccessConfig(obj); |
13642 | 15696 |
13643 var path = (req.url).path; | 15697 var path = (req.url).path; |
13644 var pathOffset = 0; | 15698 var pathOffset = 0; |
13645 var index; | 15699 var index; |
13646 var subPart; | 15700 var subPart; |
13647 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15701 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13648 pathOffset += 1; | 15702 pathOffset += 1; |
13649 | 15703 |
13650 var query = (req.url).query; | 15704 var query = (req.url).query; |
13651 var queryOffset = 0; | 15705 var queryOffset = 0; |
13652 var queryMap = {}; | 15706 var queryMap = {}; |
13653 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15707 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13654 parseBool(n) { | 15708 parseBool(n) { |
13655 if (n == "true") return true; | 15709 if (n == "true") return true; |
13656 if (n == "false") return false; | 15710 if (n == "false") return false; |
13657 if (n == null) return null; | 15711 if (n == null) return null; |
13658 throw new core.ArgumentError("Invalid boolean: $n"); | 15712 throw new core.ArgumentError("Invalid boolean: $n"); |
13659 } | 15713 } |
13660 if (query.length > 0) { | 15714 if (query.length > 0) { |
13661 for (var part in query.split("&")) { | 15715 for (var part in query.split("&")) { |
13662 var keyvalue = part.split("="); | 15716 var keyvalue = part.split("="); |
13663 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15717 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13664 } | 15718 } |
13665 } | 15719 } |
| 15720 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); |
13666 | 15721 |
13667 | 15722 |
13668 var h = { | 15723 var h = { |
13669 "content-type" : "application/json; charset=utf-8", | 15724 "content-type" : "application/json; charset=utf-8", |
13670 }; | 15725 }; |
13671 var resp = convert.JSON.encode(buildOperation()); | 15726 var resp = convert.JSON.encode(buildOperation()); |
13672 return new async.Future.value(stringResponse(200, h, resp)); | 15727 return new async.Future.value(stringResponse(200, h, resp)); |
13673 }), true); | 15728 }), true); |
13674 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 15729 res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_
networkInterface).then(unittest.expectAsync(((api.Operation response) { |
13675 checkOperation(response); | 15730 checkOperation(response); |
13676 }))); | 15731 }))); |
13677 }); | 15732 }); |
13678 | 15733 |
13679 unittest.test("method--list", () { | 15734 unittest.test("method--aggregatedList", () { |
13680 | 15735 |
13681 var mock = new HttpServerMock(); | 15736 var mock = new HttpServerMock(); |
13682 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 15737 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13683 var arg_project = "foo"; | 15738 var arg_project = "foo"; |
13684 var arg_filter = "foo"; | 15739 var arg_filter = "foo"; |
13685 var arg_maxResults = 42; | 15740 var arg_maxResults = 42; |
13686 var arg_orderBy = "foo"; | 15741 var arg_orderBy = "foo"; |
13687 var arg_pageToken = "foo"; | 15742 var arg_pageToken = "foo"; |
13688 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15743 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13689 var path = (req.url).path; | 15744 var path = (req.url).path; |
13690 var pathOffset = 0; | 15745 var pathOffset = 0; |
13691 var index; | 15746 var index; |
13692 var subPart; | 15747 var subPart; |
(...skipping 18 matching lines...) Expand all Loading... |
13711 } | 15766 } |
13712 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 15767 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
13713 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 15768 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
13714 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 15769 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
13715 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 15770 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
13716 | 15771 |
13717 | 15772 |
13718 var h = { | 15773 var h = { |
13719 "content-type" : "application/json; charset=utf-8", | 15774 "content-type" : "application/json; charset=utf-8", |
13720 }; | 15775 }; |
13721 var resp = convert.JSON.encode(buildImageList()); | 15776 var resp = convert.JSON.encode(buildInstanceAggregatedList()); |
13722 return new async.Future.value(stringResponse(200, h, resp)); | 15777 return new async.Future.value(stringResponse(200, h, resp)); |
13723 }), true); | 15778 }), true); |
13724 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Imag
eList response) { | 15779 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceAggregatedList response) { |
13725 checkImageList(response); | 15780 checkInstanceAggregatedList(response); |
13726 }))); | 15781 }))); |
13727 }); | 15782 }); |
13728 | 15783 |
13729 }); | 15784 unittest.test("method--attachDisk", () { |
13730 | |
13731 | |
13732 unittest.group("resource-InstanceGroupManagersResourceApi", () { | |
13733 unittest.test("method--abandonInstances", () { | |
13734 | 15785 |
13735 var mock = new HttpServerMock(); | 15786 var mock = new HttpServerMock(); |
13736 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 15787 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13737 var arg_request = buildInstanceGroupManagersAbandonInstancesRequest(); | 15788 var arg_request = buildAttachedDisk(); |
13738 var arg_project = "foo"; | 15789 var arg_project = "foo"; |
13739 var arg_zone = "foo"; | 15790 var arg_zone = "foo"; |
13740 var arg_instanceGroupManager = "foo"; | 15791 var arg_instance = "foo"; |
13741 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15792 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13742 var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(
json); | 15793 var obj = new api.AttachedDisk.fromJson(json); |
13743 checkInstanceGroupManagersAbandonInstancesRequest(obj); | 15794 checkAttachedDisk(obj); |
13744 | 15795 |
13745 var path = (req.url).path; | 15796 var path = (req.url).path; |
13746 var pathOffset = 0; | 15797 var pathOffset = 0; |
13747 var index; | 15798 var index; |
13748 var subPart; | 15799 var subPart; |
13749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15800 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13750 pathOffset += 1; | 15801 pathOffset += 1; |
13751 | 15802 |
13752 var query = (req.url).query; | 15803 var query = (req.url).query; |
13753 var queryOffset = 0; | 15804 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
13766 } | 15817 } |
13767 } | 15818 } |
13768 | 15819 |
13769 | 15820 |
13770 var h = { | 15821 var h = { |
13771 "content-type" : "application/json; charset=utf-8", | 15822 "content-type" : "application/json; charset=utf-8", |
13772 }; | 15823 }; |
13773 var resp = convert.JSON.encode(buildOperation()); | 15824 var resp = convert.JSON.encode(buildOperation()); |
13774 return new async.Future.value(stringResponse(200, h, resp)); | 15825 return new async.Future.value(stringResponse(200, h, resp)); |
13775 }), true); | 15826 }), true); |
13776 res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroup
Manager).then(unittest.expectAsync(((api.Operation response) { | 15827 res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unit
test.expectAsync(((api.Operation response) { |
13777 checkOperation(response); | 15828 checkOperation(response); |
13778 }))); | 15829 }))); |
13779 }); | 15830 }); |
13780 | 15831 |
13781 unittest.test("method--aggregatedList", () { | 15832 unittest.test("method--delete", () { |
13782 | 15833 |
13783 var mock = new HttpServerMock(); | 15834 var mock = new HttpServerMock(); |
13784 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 15835 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13785 var arg_project = "foo"; | 15836 var arg_project = "foo"; |
13786 var arg_filter = "foo"; | 15837 var arg_zone = "foo"; |
13787 var arg_maxResults = 42; | 15838 var arg_instance = "foo"; |
13788 var arg_orderBy = "foo"; | |
13789 var arg_pageToken = "foo"; | |
13790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15839 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13791 var path = (req.url).path; | 15840 var path = (req.url).path; |
13792 var pathOffset = 0; | 15841 var pathOffset = 0; |
13793 var index; | 15842 var index; |
13794 var subPart; | 15843 var subPart; |
13795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15844 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13796 pathOffset += 1; | 15845 pathOffset += 1; |
13797 | 15846 |
13798 var query = (req.url).query; | 15847 var query = (req.url).query; |
13799 var queryOffset = 0; | 15848 var queryOffset = 0; |
13800 var queryMap = {}; | 15849 var queryMap = {}; |
13801 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15850 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13802 parseBool(n) { | 15851 parseBool(n) { |
13803 if (n == "true") return true; | 15852 if (n == "true") return true; |
13804 if (n == "false") return false; | 15853 if (n == "false") return false; |
13805 if (n == null) return null; | 15854 if (n == null) return null; |
13806 throw new core.ArgumentError("Invalid boolean: $n"); | 15855 throw new core.ArgumentError("Invalid boolean: $n"); |
13807 } | 15856 } |
13808 if (query.length > 0) { | 15857 if (query.length > 0) { |
13809 for (var part in query.split("&")) { | 15858 for (var part in query.split("&")) { |
13810 var keyvalue = part.split("="); | 15859 var keyvalue = part.split("="); |
13811 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15860 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13812 } | 15861 } |
13813 } | 15862 } |
13814 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
13815 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
13816 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
13817 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
13818 | 15863 |
13819 | 15864 |
13820 var h = { | 15865 var h = { |
13821 "content-type" : "application/json; charset=utf-8", | 15866 "content-type" : "application/json; charset=utf-8", |
13822 }; | 15867 }; |
13823 var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList()
); | 15868 var resp = convert.JSON.encode(buildOperation()); |
13824 return new async.Future.value(stringResponse(200, h, resp)); | 15869 return new async.Future.value(stringResponse(200, h, resp)); |
13825 }), true); | 15870 }), true); |
13826 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupManagerAggregatedList response) { | 15871 res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(
((api.Operation response) { |
13827 checkInstanceGroupManagerAggregatedList(response); | 15872 checkOperation(response); |
13828 }))); | 15873 }))); |
13829 }); | 15874 }); |
13830 | 15875 |
13831 unittest.test("method--delete", () { | 15876 unittest.test("method--deleteAccessConfig", () { |
13832 | 15877 |
13833 var mock = new HttpServerMock(); | 15878 var mock = new HttpServerMock(); |
13834 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 15879 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13835 var arg_project = "foo"; | 15880 var arg_project = "foo"; |
13836 var arg_zone = "foo"; | 15881 var arg_zone = "foo"; |
13837 var arg_instanceGroupManager = "foo"; | 15882 var arg_instance = "foo"; |
| 15883 var arg_accessConfig = "foo"; |
| 15884 var arg_networkInterface = "foo"; |
13838 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15885 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13839 var path = (req.url).path; | 15886 var path = (req.url).path; |
13840 var pathOffset = 0; | 15887 var pathOffset = 0; |
13841 var index; | 15888 var index; |
13842 var subPart; | 15889 var subPart; |
13843 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15890 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13844 pathOffset += 1; | 15891 pathOffset += 1; |
13845 | 15892 |
13846 var query = (req.url).query; | 15893 var query = (req.url).query; |
13847 var queryOffset = 0; | 15894 var queryOffset = 0; |
13848 var queryMap = {}; | 15895 var queryMap = {}; |
13849 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15896 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13850 parseBool(n) { | 15897 parseBool(n) { |
13851 if (n == "true") return true; | 15898 if (n == "true") return true; |
13852 if (n == "false") return false; | 15899 if (n == "false") return false; |
13853 if (n == null) return null; | 15900 if (n == null) return null; |
13854 throw new core.ArgumentError("Invalid boolean: $n"); | 15901 throw new core.ArgumentError("Invalid boolean: $n"); |
13855 } | 15902 } |
13856 if (query.length > 0) { | 15903 if (query.length > 0) { |
13857 for (var part in query.split("&")) { | 15904 for (var part in query.split("&")) { |
13858 var keyvalue = part.split("="); | 15905 var keyvalue = part.split("="); |
13859 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15906 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13860 } | 15907 } |
13861 } | 15908 } |
| 15909 unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_acce
ssConfig)); |
| 15910 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); |
13862 | 15911 |
13863 | 15912 |
13864 var h = { | 15913 var h = { |
13865 "content-type" : "application/json; charset=utf-8", | 15914 "content-type" : "application/json; charset=utf-8", |
13866 }; | 15915 }; |
13867 var resp = convert.JSON.encode(buildOperation()); | 15916 var resp = convert.JSON.encode(buildOperation()); |
13868 return new async.Future.value(stringResponse(200, h, resp)); | 15917 return new async.Future.value(stringResponse(200, h, resp)); |
13869 }), true); | 15918 }), true); |
13870 res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.
expectAsync(((api.Operation response) { | 15919 res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConf
ig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) { |
13871 checkOperation(response); | 15920 checkOperation(response); |
13872 }))); | 15921 }))); |
13873 }); | 15922 }); |
13874 | 15923 |
13875 unittest.test("method--deleteInstances", () { | 15924 unittest.test("method--detachDisk", () { |
13876 | 15925 |
13877 var mock = new HttpServerMock(); | 15926 var mock = new HttpServerMock(); |
13878 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 15927 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13879 var arg_request = buildInstanceGroupManagersDeleteInstancesRequest(); | |
13880 var arg_project = "foo"; | 15928 var arg_project = "foo"; |
13881 var arg_zone = "foo"; | 15929 var arg_zone = "foo"; |
13882 var arg_instanceGroupManager = "foo"; | 15930 var arg_instance = "foo"; |
| 15931 var arg_deviceName = "foo"; |
13883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13884 var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(j
son); | |
13885 checkInstanceGroupManagersDeleteInstancesRequest(obj); | |
13886 | |
13887 var path = (req.url).path; | 15933 var path = (req.url).path; |
13888 var pathOffset = 0; | 15934 var pathOffset = 0; |
13889 var index; | 15935 var index; |
13890 var subPart; | 15936 var subPart; |
13891 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15937 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13892 pathOffset += 1; | 15938 pathOffset += 1; |
13893 | 15939 |
13894 var query = (req.url).query; | 15940 var query = (req.url).query; |
13895 var queryOffset = 0; | 15941 var queryOffset = 0; |
13896 var queryMap = {}; | 15942 var queryMap = {}; |
13897 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15943 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13898 parseBool(n) { | 15944 parseBool(n) { |
13899 if (n == "true") return true; | 15945 if (n == "true") return true; |
13900 if (n == "false") return false; | 15946 if (n == "false") return false; |
13901 if (n == null) return null; | 15947 if (n == null) return null; |
13902 throw new core.ArgumentError("Invalid boolean: $n"); | 15948 throw new core.ArgumentError("Invalid boolean: $n"); |
13903 } | 15949 } |
13904 if (query.length > 0) { | 15950 if (query.length > 0) { |
13905 for (var part in query.split("&")) { | 15951 for (var part in query.split("&")) { |
13906 var keyvalue = part.split("="); | 15952 var keyvalue = part.split("="); |
13907 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15953 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13908 } | 15954 } |
13909 } | 15955 } |
| 15956 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); |
13910 | 15957 |
13911 | 15958 |
13912 var h = { | 15959 var h = { |
13913 "content-type" : "application/json; charset=utf-8", | 15960 "content-type" : "application/json; charset=utf-8", |
13914 }; | 15961 }; |
13915 var resp = convert.JSON.encode(buildOperation()); | 15962 var resp = convert.JSON.encode(buildOperation()); |
13916 return new async.Future.value(stringResponse(200, h, resp)); | 15963 return new async.Future.value(stringResponse(200, h, resp)); |
13917 }), true); | 15964 }), true); |
13918 res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupM
anager).then(unittest.expectAsync(((api.Operation response) { | 15965 res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(u
nittest.expectAsync(((api.Operation response) { |
13919 checkOperation(response); | 15966 checkOperation(response); |
13920 }))); | 15967 }))); |
13921 }); | 15968 }); |
13922 | 15969 |
13923 unittest.test("method--get", () { | 15970 unittest.test("method--get", () { |
13924 | 15971 |
13925 var mock = new HttpServerMock(); | 15972 var mock = new HttpServerMock(); |
13926 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 15973 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13927 var arg_project = "foo"; | 15974 var arg_project = "foo"; |
13928 var arg_zone = "foo"; | 15975 var arg_zone = "foo"; |
13929 var arg_instanceGroupManager = "foo"; | 15976 var arg_instance = "foo"; |
13930 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 15977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13931 var path = (req.url).path; | 15978 var path = (req.url).path; |
13932 var pathOffset = 0; | 15979 var pathOffset = 0; |
13933 var index; | 15980 var index; |
13934 var subPart; | 15981 var subPart; |
13935 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13936 pathOffset += 1; | 15983 pathOffset += 1; |
13937 | 15984 |
13938 var query = (req.url).query; | 15985 var query = (req.url).query; |
13939 var queryOffset = 0; | 15986 var queryOffset = 0; |
13940 var queryMap = {}; | 15987 var queryMap = {}; |
13941 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15988 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13942 parseBool(n) { | 15989 parseBool(n) { |
13943 if (n == "true") return true; | 15990 if (n == "true") return true; |
13944 if (n == "false") return false; | 15991 if (n == "false") return false; |
13945 if (n == null) return null; | 15992 if (n == null) return null; |
13946 throw new core.ArgumentError("Invalid boolean: $n"); | 15993 throw new core.ArgumentError("Invalid boolean: $n"); |
13947 } | 15994 } |
13948 if (query.length > 0) { | 15995 if (query.length > 0) { |
13949 for (var part in query.split("&")) { | 15996 for (var part in query.split("&")) { |
13950 var keyvalue = part.split("="); | 15997 var keyvalue = part.split("="); |
13951 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15998 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13952 } | 15999 } |
13953 } | 16000 } |
13954 | 16001 |
13955 | 16002 |
13956 var h = { | 16003 var h = { |
13957 "content-type" : "application/json; charset=utf-8", | 16004 "content-type" : "application/json; charset=utf-8", |
13958 }; | 16005 }; |
13959 var resp = convert.JSON.encode(buildInstanceGroupManager()); | 16006 var resp = convert.JSON.encode(buildInstance()); |
13960 return new async.Future.value(stringResponse(200, h, resp)); | 16007 return new async.Future.value(stringResponse(200, h, resp)); |
13961 }), true); | 16008 }), true); |
13962 res.get(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.exp
ectAsync(((api.InstanceGroupManager response) { | 16009 res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((a
pi.Instance response) { |
13963 checkInstanceGroupManager(response); | 16010 checkInstance(response); |
13964 }))); | 16011 }))); |
13965 }); | 16012 }); |
13966 | 16013 |
13967 unittest.test("method--insert", () { | 16014 unittest.test("method--getSerialPortOutput", () { |
13968 | 16015 |
13969 var mock = new HttpServerMock(); | 16016 var mock = new HttpServerMock(); |
13970 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16017 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
13971 var arg_request = buildInstanceGroupManager(); | |
13972 var arg_project = "foo"; | 16018 var arg_project = "foo"; |
13973 var arg_zone = "foo"; | 16019 var arg_zone = "foo"; |
| 16020 var arg_instance = "foo"; |
| 16021 var arg_port = 42; |
| 16022 var arg_start_1 = "foo"; |
13974 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16023 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
13975 var obj = new api.InstanceGroupManager.fromJson(json); | |
13976 checkInstanceGroupManager(obj); | |
13977 | |
13978 var path = (req.url).path; | 16024 var path = (req.url).path; |
13979 var pathOffset = 0; | 16025 var pathOffset = 0; |
13980 var index; | 16026 var index; |
13981 var subPart; | 16027 var subPart; |
13982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16028 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
13983 pathOffset += 1; | 16029 pathOffset += 1; |
13984 | 16030 |
13985 var query = (req.url).query; | 16031 var query = (req.url).query; |
13986 var queryOffset = 0; | 16032 var queryOffset = 0; |
13987 var queryMap = {}; | 16033 var queryMap = {}; |
13988 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16034 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
13989 parseBool(n) { | 16035 parseBool(n) { |
13990 if (n == "true") return true; | 16036 if (n == "true") return true; |
13991 if (n == "false") return false; | 16037 if (n == "false") return false; |
13992 if (n == null) return null; | 16038 if (n == null) return null; |
13993 throw new core.ArgumentError("Invalid boolean: $n"); | 16039 throw new core.ArgumentError("Invalid boolean: $n"); |
13994 } | 16040 } |
13995 if (query.length > 0) { | 16041 if (query.length > 0) { |
13996 for (var part in query.split("&")) { | 16042 for (var part in query.split("&")) { |
13997 var keyvalue = part.split("="); | 16043 var keyvalue = part.split("="); |
13998 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16044 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
13999 } | 16045 } |
14000 } | 16046 } |
| 16047 unittest.expect(core.int.parse(queryMap["port"].first), unittest.equals(
arg_port)); |
| 16048 unittest.expect(queryMap["start"].first, unittest.equals(arg_start_1)); |
14001 | 16049 |
14002 | 16050 |
14003 var h = { | 16051 var h = { |
14004 "content-type" : "application/json; charset=utf-8", | 16052 "content-type" : "application/json; charset=utf-8", |
14005 }; | 16053 }; |
14006 var resp = convert.JSON.encode(buildOperation()); | 16054 var resp = convert.JSON.encode(buildSerialPortOutput()); |
14007 return new async.Future.value(stringResponse(200, h, resp)); | 16055 return new async.Future.value(stringResponse(200, h, resp)); |
14008 }), true); | 16056 }), true); |
14009 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 16057 res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_por
t, start_1: arg_start_1).then(unittest.expectAsync(((api.SerialPortOutput respon
se) { |
14010 checkOperation(response); | 16058 checkSerialPortOutput(response); |
14011 }))); | 16059 }))); |
14012 }); | 16060 }); |
14013 | 16061 |
14014 unittest.test("method--list", () { | 16062 unittest.test("method--insert", () { |
14015 | 16063 |
14016 var mock = new HttpServerMock(); | 16064 var mock = new HttpServerMock(); |
14017 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16065 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 16066 var arg_request = buildInstance(); |
14018 var arg_project = "foo"; | 16067 var arg_project = "foo"; |
14019 var arg_zone = "foo"; | 16068 var arg_zone = "foo"; |
14020 var arg_filter = "foo"; | |
14021 var arg_maxResults = 42; | |
14022 var arg_orderBy = "foo"; | |
14023 var arg_pageToken = "foo"; | |
14024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16069 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16070 var obj = new api.Instance.fromJson(json); |
| 16071 checkInstance(obj); |
| 16072 |
14025 var path = (req.url).path; | 16073 var path = (req.url).path; |
14026 var pathOffset = 0; | 16074 var pathOffset = 0; |
14027 var index; | 16075 var index; |
14028 var subPart; | 16076 var subPart; |
14029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14030 pathOffset += 1; | 16078 pathOffset += 1; |
14031 | 16079 |
14032 var query = (req.url).query; | 16080 var query = (req.url).query; |
14033 var queryOffset = 0; | 16081 var queryOffset = 0; |
14034 var queryMap = {}; | 16082 var queryMap = {}; |
14035 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16083 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14036 parseBool(n) { | 16084 parseBool(n) { |
14037 if (n == "true") return true; | 16085 if (n == "true") return true; |
14038 if (n == "false") return false; | 16086 if (n == "false") return false; |
14039 if (n == null) return null; | 16087 if (n == null) return null; |
14040 throw new core.ArgumentError("Invalid boolean: $n"); | 16088 throw new core.ArgumentError("Invalid boolean: $n"); |
14041 } | 16089 } |
14042 if (query.length > 0) { | 16090 if (query.length > 0) { |
14043 for (var part in query.split("&")) { | 16091 for (var part in query.split("&")) { |
14044 var keyvalue = part.split("="); | 16092 var keyvalue = part.split("="); |
14045 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16093 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14046 } | 16094 } |
14047 } | 16095 } |
14048 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
14049 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
14050 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
14051 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
14052 | 16096 |
14053 | 16097 |
14054 var h = { | 16098 var h = { |
14055 "content-type" : "application/json; charset=utf-8", | 16099 "content-type" : "application/json; charset=utf-8", |
14056 }; | 16100 }; |
14057 var resp = convert.JSON.encode(buildInstanceGroupManagerList()); | 16101 var resp = convert.JSON.encode(buildOperation()); |
14058 return new async.Future.value(stringResponse(200, h, resp)); | 16102 return new async.Future.value(stringResponse(200, h, resp)); |
14059 }), true); | 16103 }), true); |
14060 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupManagerList response) { | 16104 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
14061 checkInstanceGroupManagerList(response); | 16105 checkOperation(response); |
14062 }))); | 16106 }))); |
14063 }); | 16107 }); |
14064 | 16108 |
14065 unittest.test("method--listManagedInstances", () { | 16109 unittest.test("method--list", () { |
14066 | 16110 |
14067 var mock = new HttpServerMock(); | 16111 var mock = new HttpServerMock(); |
14068 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16112 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14069 var arg_project = "foo"; | 16113 var arg_project = "foo"; |
14070 var arg_zone = "foo"; | 16114 var arg_zone = "foo"; |
14071 var arg_instanceGroupManager = "foo"; | |
14072 var arg_filter = "foo"; | 16115 var arg_filter = "foo"; |
14073 var arg_maxResults = 42; | 16116 var arg_maxResults = 42; |
| 16117 var arg_orderBy = "foo"; |
14074 var arg_pageToken = "foo"; | 16118 var arg_pageToken = "foo"; |
14075 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16119 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14076 var path = (req.url).path; | 16120 var path = (req.url).path; |
14077 var pathOffset = 0; | 16121 var pathOffset = 0; |
14078 var index; | 16122 var index; |
14079 var subPart; | 16123 var subPart; |
14080 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14081 pathOffset += 1; | 16125 pathOffset += 1; |
14082 | 16126 |
14083 var query = (req.url).query; | 16127 var query = (req.url).query; |
14084 var queryOffset = 0; | 16128 var queryOffset = 0; |
14085 var queryMap = {}; | 16129 var queryMap = {}; |
14086 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16130 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14087 parseBool(n) { | 16131 parseBool(n) { |
14088 if (n == "true") return true; | 16132 if (n == "true") return true; |
14089 if (n == "false") return false; | 16133 if (n == "false") return false; |
14090 if (n == null) return null; | 16134 if (n == null) return null; |
14091 throw new core.ArgumentError("Invalid boolean: $n"); | 16135 throw new core.ArgumentError("Invalid boolean: $n"); |
14092 } | 16136 } |
14093 if (query.length > 0) { | 16137 if (query.length > 0) { |
14094 for (var part in query.split("&")) { | 16138 for (var part in query.split("&")) { |
14095 var keyvalue = part.split("="); | 16139 var keyvalue = part.split("="); |
14096 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16140 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14097 } | 16141 } |
14098 } | 16142 } |
14099 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 16143 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
14100 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 16144 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 16145 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
14101 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 16146 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
14102 | 16147 |
14103 | 16148 |
14104 var h = { | 16149 var h = { |
14105 "content-type" : "application/json; charset=utf-8", | 16150 "content-type" : "application/json; charset=utf-8", |
14106 }; | 16151 }; |
14107 var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInst
ancesResponse()); | 16152 var resp = convert.JSON.encode(buildInstanceList()); |
14108 return new async.Future.value(stringResponse(200, h, resp)); | 16153 return new async.Future.value(stringResponse(200, h, resp)); |
14109 }), true); | 16154 }), true); |
14110 res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager,
filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(u
nittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse resp
onse) { | 16155 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceList response) { |
14111 checkInstanceGroupManagersListManagedInstancesResponse(response); | 16156 checkInstanceList(response); |
14112 }))); | 16157 }))); |
14113 }); | 16158 }); |
14114 | 16159 |
14115 unittest.test("method--recreateInstances", () { | 16160 unittest.test("method--reset", () { |
14116 | 16161 |
14117 var mock = new HttpServerMock(); | 16162 var mock = new HttpServerMock(); |
14118 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16163 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14119 var arg_request = buildInstanceGroupManagersRecreateInstancesRequest(); | |
14120 var arg_project = "foo"; | 16164 var arg_project = "foo"; |
14121 var arg_zone = "foo"; | 16165 var arg_zone = "foo"; |
14122 var arg_instanceGroupManager = "foo"; | 16166 var arg_instance = "foo"; |
14123 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14124 var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson
(json); | |
14125 checkInstanceGroupManagersRecreateInstancesRequest(obj); | |
14126 | |
14127 var path = (req.url).path; | 16168 var path = (req.url).path; |
14128 var pathOffset = 0; | 16169 var pathOffset = 0; |
14129 var index; | 16170 var index; |
14130 var subPart; | 16171 var subPart; |
14131 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14132 pathOffset += 1; | 16173 pathOffset += 1; |
14133 | 16174 |
14134 var query = (req.url).query; | 16175 var query = (req.url).query; |
14135 var queryOffset = 0; | 16176 var queryOffset = 0; |
14136 var queryMap = {}; | 16177 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
14148 } | 16189 } |
14149 } | 16190 } |
14150 | 16191 |
14151 | 16192 |
14152 var h = { | 16193 var h = { |
14153 "content-type" : "application/json; charset=utf-8", | 16194 "content-type" : "application/json; charset=utf-8", |
14154 }; | 16195 }; |
14155 var resp = convert.JSON.encode(buildOperation()); | 16196 var resp = convert.JSON.encode(buildOperation()); |
14156 return new async.Future.value(stringResponse(200, h, resp)); | 16197 return new async.Future.value(stringResponse(200, h, resp)); |
14157 }), true); | 16198 }), true); |
14158 res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGrou
pManager).then(unittest.expectAsync(((api.Operation response) { | 16199 res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { |
14159 checkOperation(response); | 16200 checkOperation(response); |
14160 }))); | 16201 }))); |
14161 }); | 16202 }); |
14162 | 16203 |
14163 unittest.test("method--resize", () { | 16204 unittest.test("method--setDiskAutoDelete", () { |
14164 | 16205 |
14165 var mock = new HttpServerMock(); | 16206 var mock = new HttpServerMock(); |
14166 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16207 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14167 var arg_project = "foo"; | 16208 var arg_project = "foo"; |
14168 var arg_zone = "foo"; | 16209 var arg_zone = "foo"; |
14169 var arg_instanceGroupManager = "foo"; | 16210 var arg_instance = "foo"; |
14170 var arg_size = 42; | 16211 var arg_autoDelete = true; |
| 16212 var arg_deviceName = "foo"; |
14171 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14172 var path = (req.url).path; | 16214 var path = (req.url).path; |
14173 var pathOffset = 0; | 16215 var pathOffset = 0; |
14174 var index; | 16216 var index; |
14175 var subPart; | 16217 var subPart; |
14176 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16218 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14177 pathOffset += 1; | 16219 pathOffset += 1; |
14178 | 16220 |
14179 var query = (req.url).query; | 16221 var query = (req.url).query; |
14180 var queryOffset = 0; | 16222 var queryOffset = 0; |
14181 var queryMap = {}; | 16223 var queryMap = {}; |
14182 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16224 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14183 parseBool(n) { | 16225 parseBool(n) { |
14184 if (n == "true") return true; | 16226 if (n == "true") return true; |
14185 if (n == "false") return false; | 16227 if (n == "false") return false; |
14186 if (n == null) return null; | 16228 if (n == null) return null; |
14187 throw new core.ArgumentError("Invalid boolean: $n"); | 16229 throw new core.ArgumentError("Invalid boolean: $n"); |
14188 } | 16230 } |
14189 if (query.length > 0) { | 16231 if (query.length > 0) { |
14190 for (var part in query.split("&")) { | 16232 for (var part in query.split("&")) { |
14191 var keyvalue = part.split("="); | 16233 var keyvalue = part.split("="); |
14192 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16234 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14193 } | 16235 } |
14194 } | 16236 } |
14195 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); | 16237 unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_auto
Delete")); |
| 16238 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); |
14196 | 16239 |
14197 | 16240 |
14198 var h = { | 16241 var h = { |
14199 "content-type" : "application/json; charset=utf-8", | 16242 "content-type" : "application/json; charset=utf-8", |
14200 }; | 16243 }; |
14201 var resp = convert.JSON.encode(buildOperation()); | 16244 var resp = convert.JSON.encode(buildOperation()); |
14202 return new async.Future.value(stringResponse(200, h, resp)); | 16245 return new async.Future.value(stringResponse(200, h, resp)); |
14203 }), true); | 16246 }), true); |
14204 res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then
(unittest.expectAsync(((api.Operation response) { | 16247 res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete,
arg_deviceName).then(unittest.expectAsync(((api.Operation response) { |
14205 checkOperation(response); | 16248 checkOperation(response); |
14206 }))); | 16249 }))); |
14207 }); | 16250 }); |
14208 | 16251 |
14209 unittest.test("method--setInstanceTemplate", () { | 16252 unittest.test("method--setMachineType", () { |
14210 | 16253 |
14211 var mock = new HttpServerMock(); | 16254 var mock = new HttpServerMock(); |
14212 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16255 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14213 var arg_request = buildInstanceGroupManagersSetInstanceTemplateRequest(); | 16256 var arg_request = buildInstancesSetMachineTypeRequest(); |
14214 var arg_project = "foo"; | 16257 var arg_project = "foo"; |
14215 var arg_zone = "foo"; | 16258 var arg_zone = "foo"; |
14216 var arg_instanceGroupManager = "foo"; | 16259 var arg_instance = "foo"; |
14217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14218 var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJs
on(json); | 16261 var obj = new api.InstancesSetMachineTypeRequest.fromJson(json); |
14219 checkInstanceGroupManagersSetInstanceTemplateRequest(obj); | 16262 checkInstancesSetMachineTypeRequest(obj); |
14220 | 16263 |
14221 var path = (req.url).path; | 16264 var path = (req.url).path; |
14222 var pathOffset = 0; | 16265 var pathOffset = 0; |
14223 var index; | 16266 var index; |
14224 var subPart; | 16267 var subPart; |
14225 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16268 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14226 pathOffset += 1; | 16269 pathOffset += 1; |
14227 | 16270 |
14228 var query = (req.url).query; | 16271 var query = (req.url).query; |
14229 var queryOffset = 0; | 16272 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
14242 } | 16285 } |
14243 } | 16286 } |
14244 | 16287 |
14245 | 16288 |
14246 var h = { | 16289 var h = { |
14247 "content-type" : "application/json; charset=utf-8", | 16290 "content-type" : "application/json; charset=utf-8", |
14248 }; | 16291 }; |
14249 var resp = convert.JSON.encode(buildOperation()); | 16292 var resp = convert.JSON.encode(buildOperation()); |
14250 return new async.Future.value(stringResponse(200, h, resp)); | 16293 return new async.Future.value(stringResponse(200, h, resp)); |
14251 }), true); | 16294 }), true); |
14252 res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGr
oupManager).then(unittest.expectAsync(((api.Operation response) { | 16295 res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(
unittest.expectAsync(((api.Operation response) { |
14253 checkOperation(response); | 16296 checkOperation(response); |
14254 }))); | 16297 }))); |
14255 }); | 16298 }); |
14256 | 16299 |
14257 unittest.test("method--setTargetPools", () { | 16300 unittest.test("method--setMetadata", () { |
14258 | 16301 |
14259 var mock = new HttpServerMock(); | 16302 var mock = new HttpServerMock(); |
14260 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16303 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14261 var arg_request = buildInstanceGroupManagersSetTargetPoolsRequest(); | 16304 var arg_request = buildMetadata(); |
14262 var arg_project = "foo"; | 16305 var arg_project = "foo"; |
14263 var arg_zone = "foo"; | 16306 var arg_zone = "foo"; |
14264 var arg_instanceGroupManager = "foo"; | 16307 var arg_instance = "foo"; |
14265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14266 var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(js
on); | 16309 var obj = new api.Metadata.fromJson(json); |
14267 checkInstanceGroupManagersSetTargetPoolsRequest(obj); | 16310 checkMetadata(obj); |
14268 | 16311 |
14269 var path = (req.url).path; | 16312 var path = (req.url).path; |
14270 var pathOffset = 0; | 16313 var pathOffset = 0; |
14271 var index; | 16314 var index; |
14272 var subPart; | 16315 var subPart; |
14273 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16316 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14274 pathOffset += 1; | 16317 pathOffset += 1; |
14275 | 16318 |
14276 var query = (req.url).query; | 16319 var query = (req.url).query; |
14277 var queryOffset = 0; | 16320 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
14290 } | 16333 } |
14291 } | 16334 } |
14292 | 16335 |
14293 | 16336 |
14294 var h = { | 16337 var h = { |
14295 "content-type" : "application/json; charset=utf-8", | 16338 "content-type" : "application/json; charset=utf-8", |
14296 }; | 16339 }; |
14297 var resp = convert.JSON.encode(buildOperation()); | 16340 var resp = convert.JSON.encode(buildOperation()); |
14298 return new async.Future.value(stringResponse(200, h, resp)); | 16341 return new async.Future.value(stringResponse(200, h, resp)); |
14299 }), true); | 16342 }), true); |
14300 res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupMa
nager).then(unittest.expectAsync(((api.Operation response) { | 16343 res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(uni
ttest.expectAsync(((api.Operation response) { |
14301 checkOperation(response); | 16344 checkOperation(response); |
14302 }))); | 16345 }))); |
14303 }); | 16346 }); |
14304 | 16347 |
14305 }); | 16348 unittest.test("method--setScheduling", () { |
14306 | |
14307 | |
14308 unittest.group("resource-InstanceGroupsResourceApi", () { | |
14309 unittest.test("method--addInstances", () { | |
14310 | 16349 |
14311 var mock = new HttpServerMock(); | 16350 var mock = new HttpServerMock(); |
14312 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16351 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14313 var arg_request = buildInstanceGroupsAddInstancesRequest(); | 16352 var arg_request = buildScheduling(); |
14314 var arg_project = "foo"; | 16353 var arg_project = "foo"; |
14315 var arg_zone = "foo"; | 16354 var arg_zone = "foo"; |
14316 var arg_instanceGroup = "foo"; | 16355 var arg_instance = "foo"; |
14317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16356 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14318 var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json); | 16357 var obj = new api.Scheduling.fromJson(json); |
14319 checkInstanceGroupsAddInstancesRequest(obj); | 16358 checkScheduling(obj); |
14320 | 16359 |
14321 var path = (req.url).path; | 16360 var path = (req.url).path; |
14322 var pathOffset = 0; | 16361 var pathOffset = 0; |
14323 var index; | 16362 var index; |
14324 var subPart; | 16363 var subPart; |
14325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16364 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14326 pathOffset += 1; | 16365 pathOffset += 1; |
14327 | 16366 |
14328 var query = (req.url).query; | 16367 var query = (req.url).query; |
14329 var queryOffset = 0; | 16368 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
14342 } | 16381 } |
14343 } | 16382 } |
14344 | 16383 |
14345 | 16384 |
14346 var h = { | 16385 var h = { |
14347 "content-type" : "application/json; charset=utf-8", | 16386 "content-type" : "application/json; charset=utf-8", |
14348 }; | 16387 }; |
14349 var resp = convert.JSON.encode(buildOperation()); | 16388 var resp = convert.JSON.encode(buildOperation()); |
14350 return new async.Future.value(stringResponse(200, h, resp)); | 16389 return new async.Future.value(stringResponse(200, h, resp)); |
14351 }), true); | 16390 }), true); |
14352 res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).th
en(unittest.expectAsync(((api.Operation response) { | 16391 res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(u
nittest.expectAsync(((api.Operation response) { |
14353 checkOperation(response); | 16392 checkOperation(response); |
14354 }))); | 16393 }))); |
14355 }); | 16394 }); |
14356 | 16395 |
14357 unittest.test("method--aggregatedList", () { | 16396 unittest.test("method--setTags", () { |
14358 | 16397 |
14359 var mock = new HttpServerMock(); | 16398 var mock = new HttpServerMock(); |
14360 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16399 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 16400 var arg_request = buildTags(); |
14361 var arg_project = "foo"; | 16401 var arg_project = "foo"; |
14362 var arg_filter = "foo"; | 16402 var arg_zone = "foo"; |
14363 var arg_maxResults = 42; | 16403 var arg_instance = "foo"; |
14364 var arg_orderBy = "foo"; | |
14365 var arg_pageToken = "foo"; | |
14366 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16404 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16405 var obj = new api.Tags.fromJson(json); |
| 16406 checkTags(obj); |
| 16407 |
14367 var path = (req.url).path; | 16408 var path = (req.url).path; |
14368 var pathOffset = 0; | 16409 var pathOffset = 0; |
14369 var index; | 16410 var index; |
14370 var subPart; | 16411 var subPart; |
14371 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16412 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14372 pathOffset += 1; | 16413 pathOffset += 1; |
14373 | 16414 |
14374 var query = (req.url).query; | 16415 var query = (req.url).query; |
14375 var queryOffset = 0; | 16416 var queryOffset = 0; |
14376 var queryMap = {}; | 16417 var queryMap = {}; |
14377 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16418 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14378 parseBool(n) { | 16419 parseBool(n) { |
14379 if (n == "true") return true; | 16420 if (n == "true") return true; |
14380 if (n == "false") return false; | 16421 if (n == "false") return false; |
14381 if (n == null) return null; | 16422 if (n == null) return null; |
14382 throw new core.ArgumentError("Invalid boolean: $n"); | 16423 throw new core.ArgumentError("Invalid boolean: $n"); |
14383 } | 16424 } |
14384 if (query.length > 0) { | 16425 if (query.length > 0) { |
14385 for (var part in query.split("&")) { | 16426 for (var part in query.split("&")) { |
14386 var keyvalue = part.split("="); | 16427 var keyvalue = part.split("="); |
14387 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16428 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14388 } | 16429 } |
14389 } | 16430 } |
14390 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
14391 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
14392 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
14393 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
14394 | 16431 |
14395 | 16432 |
14396 var h = { | 16433 var h = { |
14397 "content-type" : "application/json; charset=utf-8", | 16434 "content-type" : "application/json; charset=utf-8", |
14398 }; | 16435 }; |
14399 var resp = convert.JSON.encode(buildInstanceGroupAggregatedList()); | 16436 var resp = convert.JSON.encode(buildOperation()); |
14400 return new async.Future.value(stringResponse(200, h, resp)); | 16437 return new async.Future.value(stringResponse(200, h, resp)); |
14401 }), true); | 16438 }), true); |
14402 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupAggregatedList response) { | 16439 res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittes
t.expectAsync(((api.Operation response) { |
14403 checkInstanceGroupAggregatedList(response); | 16440 checkOperation(response); |
14404 }))); | 16441 }))); |
14405 }); | 16442 }); |
14406 | 16443 |
14407 unittest.test("method--delete", () { | 16444 unittest.test("method--start", () { |
14408 | 16445 |
14409 var mock = new HttpServerMock(); | 16446 var mock = new HttpServerMock(); |
14410 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16447 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14411 var arg_project = "foo"; | 16448 var arg_project = "foo"; |
14412 var arg_zone = "foo"; | 16449 var arg_zone = "foo"; |
14413 var arg_instanceGroup = "foo"; | 16450 var arg_instance = "foo"; |
14414 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16451 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14415 var path = (req.url).path; | 16452 var path = (req.url).path; |
14416 var pathOffset = 0; | 16453 var pathOffset = 0; |
14417 var index; | 16454 var index; |
14418 var subPart; | 16455 var subPart; |
14419 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16456 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14420 pathOffset += 1; | 16457 pathOffset += 1; |
14421 | 16458 |
14422 var query = (req.url).query; | 16459 var query = (req.url).query; |
14423 var queryOffset = 0; | 16460 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
14436 } | 16473 } |
14437 } | 16474 } |
14438 | 16475 |
14439 | 16476 |
14440 var h = { | 16477 var h = { |
14441 "content-type" : "application/json; charset=utf-8", | 16478 "content-type" : "application/json; charset=utf-8", |
14442 }; | 16479 }; |
14443 var resp = convert.JSON.encode(buildOperation()); | 16480 var resp = convert.JSON.encode(buildOperation()); |
14444 return new async.Future.value(stringResponse(200, h, resp)); | 16481 return new async.Future.value(stringResponse(200, h, resp)); |
14445 }), true); | 16482 }), true); |
14446 res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectA
sync(((api.Operation response) { | 16483 res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { |
14447 checkOperation(response); | 16484 checkOperation(response); |
14448 }))); | 16485 }))); |
14449 }); | 16486 }); |
14450 | 16487 |
14451 unittest.test("method--get", () { | 16488 unittest.test("method--startWithEncryptionKey", () { |
14452 | 16489 |
14453 var mock = new HttpServerMock(); | 16490 var mock = new HttpServerMock(); |
14454 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16491 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 16492 var arg_request = buildInstancesStartWithEncryptionKeyRequest(); |
14455 var arg_project = "foo"; | 16493 var arg_project = "foo"; |
14456 var arg_zone = "foo"; | 16494 var arg_zone = "foo"; |
14457 var arg_instanceGroup = "foo"; | 16495 var arg_instance = "foo"; |
14458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16497 var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json); |
| 16498 checkInstancesStartWithEncryptionKeyRequest(obj); |
| 16499 |
14459 var path = (req.url).path; | 16500 var path = (req.url).path; |
14460 var pathOffset = 0; | 16501 var pathOffset = 0; |
14461 var index; | 16502 var index; |
14462 var subPart; | 16503 var subPart; |
14463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16504 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14464 pathOffset += 1; | 16505 pathOffset += 1; |
14465 | 16506 |
14466 var query = (req.url).query; | 16507 var query = (req.url).query; |
14467 var queryOffset = 0; | 16508 var queryOffset = 0; |
14468 var queryMap = {}; | 16509 var queryMap = {}; |
14469 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16510 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14470 parseBool(n) { | 16511 parseBool(n) { |
14471 if (n == "true") return true; | 16512 if (n == "true") return true; |
14472 if (n == "false") return false; | 16513 if (n == "false") return false; |
14473 if (n == null) return null; | 16514 if (n == null) return null; |
14474 throw new core.ArgumentError("Invalid boolean: $n"); | 16515 throw new core.ArgumentError("Invalid boolean: $n"); |
14475 } | 16516 } |
14476 if (query.length > 0) { | 16517 if (query.length > 0) { |
14477 for (var part in query.split("&")) { | 16518 for (var part in query.split("&")) { |
14478 var keyvalue = part.split("="); | 16519 var keyvalue = part.split("="); |
14479 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16520 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14480 } | 16521 } |
14481 } | 16522 } |
14482 | 16523 |
14483 | 16524 |
14484 var h = { | 16525 var h = { |
14485 "content-type" : "application/json; charset=utf-8", | 16526 "content-type" : "application/json; charset=utf-8", |
14486 }; | 16527 }; |
14487 var resp = convert.JSON.encode(buildInstanceGroup()); | 16528 var resp = convert.JSON.encode(buildOperation()); |
14488 return new async.Future.value(stringResponse(200, h, resp)); | 16529 return new async.Future.value(stringResponse(200, h, resp)); |
14489 }), true); | 16530 }), true); |
14490 res.get(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectAsyn
c(((api.InstanceGroup response) { | 16531 res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instanc
e).then(unittest.expectAsync(((api.Operation response) { |
14491 checkInstanceGroup(response); | 16532 checkOperation(response); |
14492 }))); | 16533 }))); |
14493 }); | 16534 }); |
14494 | 16535 |
14495 unittest.test("method--insert", () { | 16536 unittest.test("method--stop", () { |
14496 | 16537 |
14497 var mock = new HttpServerMock(); | 16538 var mock = new HttpServerMock(); |
14498 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16539 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
14499 var arg_request = buildInstanceGroup(); | |
14500 var arg_project = "foo"; | 16540 var arg_project = "foo"; |
14501 var arg_zone = "foo"; | 16541 var arg_zone = "foo"; |
| 16542 var arg_instance = "foo"; |
14502 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16543 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14503 var obj = new api.InstanceGroup.fromJson(json); | |
14504 checkInstanceGroup(obj); | |
14505 | |
14506 var path = (req.url).path; | 16544 var path = (req.url).path; |
14507 var pathOffset = 0; | 16545 var pathOffset = 0; |
14508 var index; | 16546 var index; |
14509 var subPart; | 16547 var subPart; |
14510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16548 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14511 pathOffset += 1; | 16549 pathOffset += 1; |
14512 | 16550 |
14513 var query = (req.url).query; | 16551 var query = (req.url).query; |
14514 var queryOffset = 0; | 16552 var queryOffset = 0; |
14515 var queryMap = {}; | 16553 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
14527 } | 16565 } |
14528 } | 16566 } |
14529 | 16567 |
14530 | 16568 |
14531 var h = { | 16569 var h = { |
14532 "content-type" : "application/json; charset=utf-8", | 16570 "content-type" : "application/json; charset=utf-8", |
14533 }; | 16571 }; |
14534 var resp = convert.JSON.encode(buildOperation()); | 16572 var resp = convert.JSON.encode(buildOperation()); |
14535 return new async.Future.value(stringResponse(200, h, resp)); | 16573 return new async.Future.value(stringResponse(200, h, resp)); |
14536 }), true); | 16574 }), true); |
14537 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 16575 res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((
api.Operation response) { |
14538 checkOperation(response); | 16576 checkOperation(response); |
14539 }))); | 16577 }))); |
14540 }); | 16578 }); |
14541 | 16579 |
14542 unittest.test("method--list", () { | 16580 }); |
| 16581 |
| 16582 |
| 16583 unittest.group("resource-LicensesResourceApi", () { |
| 16584 unittest.test("method--get", () { |
14543 | 16585 |
14544 var mock = new HttpServerMock(); | 16586 var mock = new HttpServerMock(); |
14545 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16587 api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; |
14546 var arg_project = "foo"; | 16588 var arg_project = "foo"; |
14547 var arg_zone = "foo"; | 16589 var arg_license = "foo"; |
14548 var arg_filter = "foo"; | |
14549 var arg_maxResults = 42; | |
14550 var arg_orderBy = "foo"; | |
14551 var arg_pageToken = "foo"; | |
14552 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16590 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14553 var path = (req.url).path; | 16591 var path = (req.url).path; |
14554 var pathOffset = 0; | 16592 var pathOffset = 0; |
14555 var index; | 16593 var index; |
14556 var subPart; | 16594 var subPart; |
14557 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16595 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14558 pathOffset += 1; | 16596 pathOffset += 1; |
14559 | 16597 |
14560 var query = (req.url).query; | 16598 var query = (req.url).query; |
14561 var queryOffset = 0; | 16599 var queryOffset = 0; |
14562 var queryMap = {}; | 16600 var queryMap = {}; |
14563 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16601 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14564 parseBool(n) { | 16602 parseBool(n) { |
14565 if (n == "true") return true; | 16603 if (n == "true") return true; |
14566 if (n == "false") return false; | 16604 if (n == "false") return false; |
14567 if (n == null) return null; | 16605 if (n == null) return null; |
14568 throw new core.ArgumentError("Invalid boolean: $n"); | 16606 throw new core.ArgumentError("Invalid boolean: $n"); |
14569 } | 16607 } |
14570 if (query.length > 0) { | 16608 if (query.length > 0) { |
14571 for (var part in query.split("&")) { | 16609 for (var part in query.split("&")) { |
14572 var keyvalue = part.split("="); | 16610 var keyvalue = part.split("="); |
14573 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16611 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14574 } | 16612 } |
14575 } | 16613 } |
14576 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
14577 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
14578 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
14579 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
14580 | 16614 |
14581 | 16615 |
14582 var h = { | 16616 var h = { |
14583 "content-type" : "application/json; charset=utf-8", | 16617 "content-type" : "application/json; charset=utf-8", |
14584 }; | 16618 }; |
14585 var resp = convert.JSON.encode(buildInstanceGroupList()); | 16619 var resp = convert.JSON.encode(buildLicense()); |
14586 return new async.Future.value(stringResponse(200, h, resp)); | 16620 return new async.Future.value(stringResponse(200, h, resp)); |
14587 }), true); | 16621 }), true); |
14588 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceGroupList response) { | 16622 res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License
response) { |
14589 checkInstanceGroupList(response); | 16623 checkLicense(response); |
14590 }))); | 16624 }))); |
14591 }); | 16625 }); |
14592 | 16626 |
14593 unittest.test("method--listInstances", () { | 16627 }); |
| 16628 |
| 16629 |
| 16630 unittest.group("resource-MachineTypesResourceApi", () { |
| 16631 unittest.test("method--aggregatedList", () { |
14594 | 16632 |
14595 var mock = new HttpServerMock(); | 16633 var mock = new HttpServerMock(); |
14596 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16634 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; |
14597 var arg_request = buildInstanceGroupsListInstancesRequest(); | |
14598 var arg_project = "foo"; | 16635 var arg_project = "foo"; |
14599 var arg_zone = "foo"; | |
14600 var arg_instanceGroup = "foo"; | |
14601 var arg_filter = "foo"; | 16636 var arg_filter = "foo"; |
14602 var arg_maxResults = 42; | 16637 var arg_maxResults = 42; |
14603 var arg_orderBy = "foo"; | 16638 var arg_orderBy = "foo"; |
14604 var arg_pageToken = "foo"; | 16639 var arg_pageToken = "foo"; |
14605 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16640 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14606 var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json); | |
14607 checkInstanceGroupsListInstancesRequest(obj); | |
14608 | |
14609 var path = (req.url).path; | 16641 var path = (req.url).path; |
14610 var pathOffset = 0; | 16642 var pathOffset = 0; |
14611 var index; | 16643 var index; |
14612 var subPart; | 16644 var subPart; |
14613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16645 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14614 pathOffset += 1; | 16646 pathOffset += 1; |
14615 | 16647 |
14616 var query = (req.url).query; | 16648 var query = (req.url).query; |
14617 var queryOffset = 0; | 16649 var queryOffset = 0; |
14618 var queryMap = {}; | 16650 var queryMap = {}; |
(...skipping 12 matching lines...) Expand all Loading... |
14631 } | 16663 } |
14632 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 16664 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
14633 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 16665 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
14634 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 16666 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
14635 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 16667 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
14636 | 16668 |
14637 | 16669 |
14638 var h = { | 16670 var h = { |
14639 "content-type" : "application/json; charset=utf-8", | 16671 "content-type" : "application/json; charset=utf-8", |
14640 }; | 16672 }; |
14641 var resp = convert.JSON.encode(buildInstanceGroupsListInstances()); | 16673 var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); |
14642 return new async.Future.value(stringResponse(200, h, resp)); | 16674 return new async.Future.value(stringResponse(200, h, resp)); |
14643 }), true); | 16675 }), true); |
14644 res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, f
ilter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances respo
nse) { | 16676 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.MachineTypeAggregatedList response) { |
14645 checkInstanceGroupsListInstances(response); | 16677 checkMachineTypeAggregatedList(response); |
14646 }))); | 16678 }))); |
14647 }); | 16679 }); |
14648 | 16680 |
14649 unittest.test("method--removeInstances", () { | 16681 unittest.test("method--get", () { |
14650 | 16682 |
14651 var mock = new HttpServerMock(); | 16683 var mock = new HttpServerMock(); |
14652 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16684 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; |
14653 var arg_request = buildInstanceGroupsRemoveInstancesRequest(); | |
14654 var arg_project = "foo"; | 16685 var arg_project = "foo"; |
14655 var arg_zone = "foo"; | 16686 var arg_zone = "foo"; |
14656 var arg_instanceGroup = "foo"; | 16687 var arg_machineType = "foo"; |
14657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16688 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14658 var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json); | |
14659 checkInstanceGroupsRemoveInstancesRequest(obj); | |
14660 | |
14661 var path = (req.url).path; | 16689 var path = (req.url).path; |
14662 var pathOffset = 0; | 16690 var pathOffset = 0; |
14663 var index; | 16691 var index; |
14664 var subPart; | 16692 var subPart; |
14665 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16693 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14666 pathOffset += 1; | 16694 pathOffset += 1; |
14667 | 16695 |
14668 var query = (req.url).query; | 16696 var query = (req.url).query; |
14669 var queryOffset = 0; | 16697 var queryOffset = 0; |
14670 var queryMap = {}; | 16698 var queryMap = {}; |
14671 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16699 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14672 parseBool(n) { | 16700 parseBool(n) { |
14673 if (n == "true") return true; | 16701 if (n == "true") return true; |
14674 if (n == "false") return false; | 16702 if (n == "false") return false; |
14675 if (n == null) return null; | 16703 if (n == null) return null; |
14676 throw new core.ArgumentError("Invalid boolean: $n"); | 16704 throw new core.ArgumentError("Invalid boolean: $n"); |
14677 } | 16705 } |
14678 if (query.length > 0) { | 16706 if (query.length > 0) { |
14679 for (var part in query.split("&")) { | 16707 for (var part in query.split("&")) { |
14680 var keyvalue = part.split("="); | 16708 var keyvalue = part.split("="); |
14681 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16709 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14682 } | 16710 } |
14683 } | 16711 } |
14684 | 16712 |
14685 | 16713 |
14686 var h = { | 16714 var h = { |
14687 "content-type" : "application/json; charset=utf-8", | 16715 "content-type" : "application/json; charset=utf-8", |
14688 }; | 16716 }; |
14689 var resp = convert.JSON.encode(buildOperation()); | 16717 var resp = convert.JSON.encode(buildMachineType()); |
14690 return new async.Future.value(stringResponse(200, h, resp)); | 16718 return new async.Future.value(stringResponse(200, h, resp)); |
14691 }), true); | 16719 }), true); |
14692 res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup)
.then(unittest.expectAsync(((api.Operation response) { | 16720 res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(
((api.MachineType response) { |
14693 checkOperation(response); | 16721 checkMachineType(response); |
14694 }))); | 16722 }))); |
14695 }); | 16723 }); |
14696 | 16724 |
14697 unittest.test("method--setNamedPorts", () { | 16725 unittest.test("method--list", () { |
14698 | 16726 |
14699 var mock = new HttpServerMock(); | 16727 var mock = new HttpServerMock(); |
14700 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 16728 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; |
14701 var arg_request = buildInstanceGroupsSetNamedPortsRequest(); | |
14702 var arg_project = "foo"; | 16729 var arg_project = "foo"; |
14703 var arg_zone = "foo"; | 16730 var arg_zone = "foo"; |
14704 var arg_instanceGroup = "foo"; | 16731 var arg_filter = "foo"; |
| 16732 var arg_maxResults = 42; |
| 16733 var arg_orderBy = "foo"; |
| 16734 var arg_pageToken = "foo"; |
14705 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16735 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14706 var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json); | |
14707 checkInstanceGroupsSetNamedPortsRequest(obj); | |
14708 | |
14709 var path = (req.url).path; | 16736 var path = (req.url).path; |
14710 var pathOffset = 0; | 16737 var pathOffset = 0; |
14711 var index; | 16738 var index; |
14712 var subPart; | 16739 var subPart; |
14713 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16740 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14714 pathOffset += 1; | 16741 pathOffset += 1; |
14715 | 16742 |
14716 var query = (req.url).query; | 16743 var query = (req.url).query; |
14717 var queryOffset = 0; | 16744 var queryOffset = 0; |
14718 var queryMap = {}; | 16745 var queryMap = {}; |
14719 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16746 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14720 parseBool(n) { | 16747 parseBool(n) { |
14721 if (n == "true") return true; | 16748 if (n == "true") return true; |
14722 if (n == "false") return false; | 16749 if (n == "false") return false; |
14723 if (n == null) return null; | 16750 if (n == null) return null; |
14724 throw new core.ArgumentError("Invalid boolean: $n"); | 16751 throw new core.ArgumentError("Invalid boolean: $n"); |
14725 } | 16752 } |
14726 if (query.length > 0) { | 16753 if (query.length > 0) { |
14727 for (var part in query.split("&")) { | 16754 for (var part in query.split("&")) { |
14728 var keyvalue = part.split("="); | 16755 var keyvalue = part.split("="); |
14729 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16756 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14730 } | 16757 } |
14731 } | 16758 } |
| 16759 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 16760 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 16761 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 16762 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
14732 | 16763 |
14733 | 16764 |
14734 var h = { | 16765 var h = { |
14735 "content-type" : "application/json; charset=utf-8", | 16766 "content-type" : "application/json; charset=utf-8", |
14736 }; | 16767 }; |
14737 var resp = convert.JSON.encode(buildOperation()); | 16768 var resp = convert.JSON.encode(buildMachineTypeList()); |
14738 return new async.Future.value(stringResponse(200, h, resp)); | 16769 return new async.Future.value(stringResponse(200, h, resp)); |
14739 }), true); | 16770 }), true); |
14740 res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).t
hen(unittest.expectAsync(((api.Operation response) { | 16771 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.MachineTypeList response) { |
14741 checkOperation(response); | 16772 checkMachineTypeList(response); |
14742 }))); | 16773 }))); |
14743 }); | 16774 }); |
14744 | 16775 |
14745 }); | 16776 }); |
14746 | 16777 |
14747 | 16778 |
14748 unittest.group("resource-InstanceTemplatesResourceApi", () { | 16779 unittest.group("resource-NetworksResourceApi", () { |
14749 unittest.test("method--delete", () { | 16780 unittest.test("method--delete", () { |
14750 | 16781 |
14751 var mock = new HttpServerMock(); | 16782 var mock = new HttpServerMock(); |
14752 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 16783 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
14753 var arg_project = "foo"; | 16784 var arg_project = "foo"; |
14754 var arg_instanceTemplate = "foo"; | 16785 var arg_network = "foo"; |
14755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16786 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14756 var path = (req.url).path; | 16787 var path = (req.url).path; |
14757 var pathOffset = 0; | 16788 var pathOffset = 0; |
14758 var index; | 16789 var index; |
14759 var subPart; | 16790 var subPart; |
14760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16791 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14761 pathOffset += 1; | 16792 pathOffset += 1; |
14762 | 16793 |
14763 var query = (req.url).query; | 16794 var query = (req.url).query; |
14764 var queryOffset = 0; | 16795 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
14777 } | 16808 } |
14778 } | 16809 } |
14779 | 16810 |
14780 | 16811 |
14781 var h = { | 16812 var h = { |
14782 "content-type" : "application/json; charset=utf-8", | 16813 "content-type" : "application/json; charset=utf-8", |
14783 }; | 16814 }; |
14784 var resp = convert.JSON.encode(buildOperation()); | 16815 var resp = convert.JSON.encode(buildOperation()); |
14785 return new async.Future.value(stringResponse(200, h, resp)); | 16816 return new async.Future.value(stringResponse(200, h, resp)); |
14786 }), true); | 16817 }), true); |
14787 res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((
api.Operation response) { | 16818 res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Opera
tion response) { |
14788 checkOperation(response); | 16819 checkOperation(response); |
14789 }))); | 16820 }))); |
14790 }); | 16821 }); |
14791 | 16822 |
14792 unittest.test("method--get", () { | 16823 unittest.test("method--get", () { |
14793 | 16824 |
14794 var mock = new HttpServerMock(); | 16825 var mock = new HttpServerMock(); |
14795 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 16826 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
14796 var arg_project = "foo"; | 16827 var arg_project = "foo"; |
14797 var arg_instanceTemplate = "foo"; | 16828 var arg_network = "foo"; |
14798 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16829 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14799 var path = (req.url).path; | 16830 var path = (req.url).path; |
14800 var pathOffset = 0; | 16831 var pathOffset = 0; |
14801 var index; | 16832 var index; |
14802 var subPart; | 16833 var subPart; |
14803 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16834 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14804 pathOffset += 1; | 16835 pathOffset += 1; |
14805 | 16836 |
14806 var query = (req.url).query; | 16837 var query = (req.url).query; |
14807 var queryOffset = 0; | 16838 var queryOffset = 0; |
14808 var queryMap = {}; | 16839 var queryMap = {}; |
14809 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16840 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14810 parseBool(n) { | 16841 parseBool(n) { |
14811 if (n == "true") return true; | 16842 if (n == "true") return true; |
14812 if (n == "false") return false; | 16843 if (n == "false") return false; |
14813 if (n == null) return null; | 16844 if (n == null) return null; |
14814 throw new core.ArgumentError("Invalid boolean: $n"); | 16845 throw new core.ArgumentError("Invalid boolean: $n"); |
14815 } | 16846 } |
14816 if (query.length > 0) { | 16847 if (query.length > 0) { |
14817 for (var part in query.split("&")) { | 16848 for (var part in query.split("&")) { |
14818 var keyvalue = part.split("="); | 16849 var keyvalue = part.split("="); |
14819 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16850 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14820 } | 16851 } |
14821 } | 16852 } |
14822 | 16853 |
14823 | 16854 |
14824 var h = { | 16855 var h = { |
14825 "content-type" : "application/json; charset=utf-8", | 16856 "content-type" : "application/json; charset=utf-8", |
14826 }; | 16857 }; |
14827 var resp = convert.JSON.encode(buildInstanceTemplate()); | 16858 var resp = convert.JSON.encode(buildNetwork()); |
14828 return new async.Future.value(stringResponse(200, h, resp)); | 16859 return new async.Future.value(stringResponse(200, h, resp)); |
14829 }), true); | 16860 }), true); |
14830 res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api
.InstanceTemplate response) { | 16861 res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network
response) { |
14831 checkInstanceTemplate(response); | 16862 checkNetwork(response); |
14832 }))); | 16863 }))); |
14833 }); | 16864 }); |
14834 | 16865 |
14835 unittest.test("method--insert", () { | 16866 unittest.test("method--insert", () { |
14836 | 16867 |
14837 var mock = new HttpServerMock(); | 16868 var mock = new HttpServerMock(); |
14838 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 16869 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
14839 var arg_request = buildInstanceTemplate(); | 16870 var arg_request = buildNetwork(); |
14840 var arg_project = "foo"; | 16871 var arg_project = "foo"; |
14841 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14842 var obj = new api.InstanceTemplate.fromJson(json); | 16873 var obj = new api.Network.fromJson(json); |
14843 checkInstanceTemplate(obj); | 16874 checkNetwork(obj); |
14844 | 16875 |
14845 var path = (req.url).path; | 16876 var path = (req.url).path; |
14846 var pathOffset = 0; | 16877 var pathOffset = 0; |
14847 var index; | 16878 var index; |
14848 var subPart; | 16879 var subPart; |
14849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14850 pathOffset += 1; | 16881 pathOffset += 1; |
14851 | 16882 |
14852 var query = (req.url).query; | 16883 var query = (req.url).query; |
14853 var queryOffset = 0; | 16884 var queryOffset = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
14874 return new async.Future.value(stringResponse(200, h, resp)); | 16905 return new async.Future.value(stringResponse(200, h, resp)); |
14875 }), true); | 16906 }), true); |
14876 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 16907 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
14877 checkOperation(response); | 16908 checkOperation(response); |
14878 }))); | 16909 }))); |
14879 }); | 16910 }); |
14880 | 16911 |
14881 unittest.test("method--list", () { | 16912 unittest.test("method--list", () { |
14882 | 16913 |
14883 var mock = new HttpServerMock(); | 16914 var mock = new HttpServerMock(); |
14884 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 16915 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
14885 var arg_project = "foo"; | 16916 var arg_project = "foo"; |
14886 var arg_filter = "foo"; | 16917 var arg_filter = "foo"; |
14887 var arg_maxResults = 42; | 16918 var arg_maxResults = 42; |
14888 var arg_orderBy = "foo"; | 16919 var arg_orderBy = "foo"; |
14889 var arg_pageToken = "foo"; | 16920 var arg_pageToken = "foo"; |
14890 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 16921 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14891 var path = (req.url).path; | 16922 var path = (req.url).path; |
14892 var pathOffset = 0; | 16923 var pathOffset = 0; |
14893 var index; | 16924 var index; |
14894 var subPart; | 16925 var subPart; |
(...skipping 18 matching lines...) Expand all Loading... |
14913 } | 16944 } |
14914 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 16945 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
14915 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 16946 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
14916 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 16947 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
14917 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 16948 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
14918 | 16949 |
14919 | 16950 |
14920 var h = { | 16951 var h = { |
14921 "content-type" : "application/json; charset=utf-8", | 16952 "content-type" : "application/json; charset=utf-8", |
14922 }; | 16953 }; |
14923 var resp = convert.JSON.encode(buildInstanceTemplateList()); | 16954 var resp = convert.JSON.encode(buildNetworkList()); |
14924 return new async.Future.value(stringResponse(200, h, resp)); | 16955 return new async.Future.value(stringResponse(200, h, resp)); |
14925 }), true); | 16956 }), true); |
14926 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Inst
anceTemplateList response) { | 16957 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Netw
orkList response) { |
14927 checkInstanceTemplateList(response); | 16958 checkNetworkList(response); |
| 16959 }))); |
| 16960 }); |
| 16961 |
| 16962 unittest.test("method--switchToCustomMode", () { |
| 16963 |
| 16964 var mock = new HttpServerMock(); |
| 16965 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 16966 var arg_project = "foo"; |
| 16967 var arg_network = "foo"; |
| 16968 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 16969 var path = (req.url).path; |
| 16970 var pathOffset = 0; |
| 16971 var index; |
| 16972 var subPart; |
| 16973 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16974 pathOffset += 1; |
| 16975 |
| 16976 var query = (req.url).query; |
| 16977 var queryOffset = 0; |
| 16978 var queryMap = {}; |
| 16979 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16980 parseBool(n) { |
| 16981 if (n == "true") return true; |
| 16982 if (n == "false") return false; |
| 16983 if (n == null) return null; |
| 16984 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16985 } |
| 16986 if (query.length > 0) { |
| 16987 for (var part in query.split("&")) { |
| 16988 var keyvalue = part.split("="); |
| 16989 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16990 } |
| 16991 } |
| 16992 |
| 16993 |
| 16994 var h = { |
| 16995 "content-type" : "application/json; charset=utf-8", |
| 16996 }; |
| 16997 var resp = convert.JSON.encode(buildOperation()); |
| 16998 return new async.Future.value(stringResponse(200, h, resp)); |
| 16999 }), true); |
| 17000 res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync
(((api.Operation response) { |
| 17001 checkOperation(response); |
14928 }))); | 17002 }))); |
14929 }); | 17003 }); |
14930 | 17004 |
14931 }); | 17005 }); |
14932 | 17006 |
14933 | 17007 |
14934 unittest.group("resource-InstancesResourceApi", () { | 17008 unittest.group("resource-ProjectsResourceApi", () { |
14935 unittest.test("method--addAccessConfig", () { | 17009 unittest.test("method--get", () { |
14936 | 17010 |
14937 var mock = new HttpServerMock(); | 17011 var mock = new HttpServerMock(); |
14938 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17012 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
14939 var arg_request = buildAccessConfig(); | |
14940 var arg_project = "foo"; | 17013 var arg_project = "foo"; |
14941 var arg_zone = "foo"; | |
14942 var arg_instance = "foo"; | |
14943 var arg_networkInterface = "foo"; | |
14944 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17014 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
14945 var obj = new api.AccessConfig.fromJson(json); | |
14946 checkAccessConfig(obj); | |
14947 | |
14948 var path = (req.url).path; | 17015 var path = (req.url).path; |
14949 var pathOffset = 0; | 17016 var pathOffset = 0; |
14950 var index; | 17017 var index; |
14951 var subPart; | 17018 var subPart; |
14952 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17019 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
14953 pathOffset += 1; | 17020 pathOffset += 1; |
14954 | 17021 |
14955 var query = (req.url).query; | 17022 var query = (req.url).query; |
14956 var queryOffset = 0; | 17023 var queryOffset = 0; |
14957 var queryMap = {}; | 17024 var queryMap = {}; |
14958 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17025 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
14959 parseBool(n) { | 17026 parseBool(n) { |
14960 if (n == "true") return true; | 17027 if (n == "true") return true; |
14961 if (n == "false") return false; | 17028 if (n == "false") return false; |
14962 if (n == null) return null; | 17029 if (n == null) return null; |
14963 throw new core.ArgumentError("Invalid boolean: $n"); | 17030 throw new core.ArgumentError("Invalid boolean: $n"); |
14964 } | 17031 } |
14965 if (query.length > 0) { | 17032 if (query.length > 0) { |
14966 for (var part in query.split("&")) { | 17033 for (var part in query.split("&")) { |
14967 var keyvalue = part.split("="); | 17034 var keyvalue = part.split("="); |
14968 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17035 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
14969 } | 17036 } |
14970 } | 17037 } |
14971 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); | |
14972 | 17038 |
14973 | 17039 |
14974 var h = { | 17040 var h = { |
14975 "content-type" : "application/json; charset=utf-8", | 17041 "content-type" : "application/json; charset=utf-8", |
14976 }; | 17042 }; |
14977 var resp = convert.JSON.encode(buildOperation()); | 17043 var resp = convert.JSON.encode(buildProject()); |
14978 return new async.Future.value(stringResponse(200, h, resp)); | 17044 return new async.Future.value(stringResponse(200, h, resp)); |
14979 }), true); | 17045 }), true); |
14980 res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_
networkInterface).then(unittest.expectAsync(((api.Operation response) { | 17046 res.get(arg_project).then(unittest.expectAsync(((api.Project response) { |
14981 checkOperation(response); | 17047 checkProject(response); |
14982 }))); | 17048 }))); |
14983 }); | 17049 }); |
14984 | 17050 |
14985 unittest.test("method--aggregatedList", () { | 17051 unittest.test("method--moveDisk", () { |
14986 | 17052 |
14987 var mock = new HttpServerMock(); | 17053 var mock = new HttpServerMock(); |
14988 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17054 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 17055 var arg_request = buildDiskMoveRequest(); |
14989 var arg_project = "foo"; | 17056 var arg_project = "foo"; |
14990 var arg_filter = "foo"; | |
14991 var arg_maxResults = 42; | |
14992 var arg_orderBy = "foo"; | |
14993 var arg_pageToken = "foo"; | |
14994 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17057 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17058 var obj = new api.DiskMoveRequest.fromJson(json); |
| 17059 checkDiskMoveRequest(obj); |
| 17060 |
14995 var path = (req.url).path; | 17061 var path = (req.url).path; |
14996 var pathOffset = 0; | 17062 var pathOffset = 0; |
14997 var index; | 17063 var index; |
14998 var subPart; | 17064 var subPart; |
14999 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17065 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15000 pathOffset += 1; | 17066 pathOffset += 1; |
15001 | 17067 |
15002 var query = (req.url).query; | 17068 var query = (req.url).query; |
15003 var queryOffset = 0; | 17069 var queryOffset = 0; |
15004 var queryMap = {}; | 17070 var queryMap = {}; |
15005 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17071 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15006 parseBool(n) { | 17072 parseBool(n) { |
15007 if (n == "true") return true; | 17073 if (n == "true") return true; |
15008 if (n == "false") return false; | 17074 if (n == "false") return false; |
15009 if (n == null) return null; | 17075 if (n == null) return null; |
15010 throw new core.ArgumentError("Invalid boolean: $n"); | 17076 throw new core.ArgumentError("Invalid boolean: $n"); |
15011 } | 17077 } |
15012 if (query.length > 0) { | 17078 if (query.length > 0) { |
15013 for (var part in query.split("&")) { | 17079 for (var part in query.split("&")) { |
15014 var keyvalue = part.split("="); | 17080 var keyvalue = part.split("="); |
15015 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17081 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15016 } | 17082 } |
15017 } | 17083 } |
15018 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
15019 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
15020 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
15021 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
15022 | 17084 |
15023 | 17085 |
15024 var h = { | 17086 var h = { |
15025 "content-type" : "application/json; charset=utf-8", | 17087 "content-type" : "application/json; charset=utf-8", |
15026 }; | 17088 }; |
15027 var resp = convert.JSON.encode(buildInstanceAggregatedList()); | 17089 var resp = convert.JSON.encode(buildOperation()); |
15028 return new async.Future.value(stringResponse(200, h, resp)); | 17090 return new async.Future.value(stringResponse(200, h, resp)); |
15029 }), true); | 17091 }), true); |
15030 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceAggregatedList response) { | 17092 res.moveDisk(arg_request, arg_project).then(unittest.expectAsync(((api.Ope
ration response) { |
15031 checkInstanceAggregatedList(response); | 17093 checkOperation(response); |
15032 }))); | 17094 }))); |
15033 }); | 17095 }); |
15034 | 17096 |
15035 unittest.test("method--attachDisk", () { | 17097 unittest.test("method--moveInstance", () { |
15036 | 17098 |
15037 var mock = new HttpServerMock(); | 17099 var mock = new HttpServerMock(); |
15038 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17100 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
15039 var arg_request = buildAttachedDisk(); | 17101 var arg_request = buildInstanceMoveRequest(); |
15040 var arg_project = "foo"; | 17102 var arg_project = "foo"; |
15041 var arg_zone = "foo"; | |
15042 var arg_instance = "foo"; | |
15043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15044 var obj = new api.AttachedDisk.fromJson(json); | 17104 var obj = new api.InstanceMoveRequest.fromJson(json); |
15045 checkAttachedDisk(obj); | 17105 checkInstanceMoveRequest(obj); |
15046 | 17106 |
15047 var path = (req.url).path; | 17107 var path = (req.url).path; |
15048 var pathOffset = 0; | 17108 var pathOffset = 0; |
15049 var index; | 17109 var index; |
15050 var subPart; | 17110 var subPart; |
15051 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17111 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15052 pathOffset += 1; | 17112 pathOffset += 1; |
15053 | 17113 |
15054 var query = (req.url).query; | 17114 var query = (req.url).query; |
15055 var queryOffset = 0; | 17115 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
15068 } | 17128 } |
15069 } | 17129 } |
15070 | 17130 |
15071 | 17131 |
15072 var h = { | 17132 var h = { |
15073 "content-type" : "application/json; charset=utf-8", | 17133 "content-type" : "application/json; charset=utf-8", |
15074 }; | 17134 }; |
15075 var resp = convert.JSON.encode(buildOperation()); | 17135 var resp = convert.JSON.encode(buildOperation()); |
15076 return new async.Future.value(stringResponse(200, h, resp)); | 17136 return new async.Future.value(stringResponse(200, h, resp)); |
15077 }), true); | 17137 }), true); |
15078 res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unit
test.expectAsync(((api.Operation response) { | 17138 res.moveInstance(arg_request, arg_project).then(unittest.expectAsync(((api
.Operation response) { |
15079 checkOperation(response); | 17139 checkOperation(response); |
15080 }))); | 17140 }))); |
15081 }); | 17141 }); |
15082 | 17142 |
15083 unittest.test("method--delete", () { | 17143 unittest.test("method--setCommonInstanceMetadata", () { |
15084 | 17144 |
15085 var mock = new HttpServerMock(); | 17145 var mock = new HttpServerMock(); |
15086 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17146 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 17147 var arg_request = buildMetadata(); |
15087 var arg_project = "foo"; | 17148 var arg_project = "foo"; |
15088 var arg_zone = "foo"; | |
15089 var arg_instance = "foo"; | |
15090 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17150 var obj = new api.Metadata.fromJson(json); |
| 17151 checkMetadata(obj); |
| 17152 |
15091 var path = (req.url).path; | 17153 var path = (req.url).path; |
15092 var pathOffset = 0; | 17154 var pathOffset = 0; |
15093 var index; | 17155 var index; |
15094 var subPart; | 17156 var subPart; |
15095 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17157 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15096 pathOffset += 1; | 17158 pathOffset += 1; |
15097 | 17159 |
15098 var query = (req.url).query; | 17160 var query = (req.url).query; |
15099 var queryOffset = 0; | 17161 var queryOffset = 0; |
15100 var queryMap = {}; | 17162 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
15112 } | 17174 } |
15113 } | 17175 } |
15114 | 17176 |
15115 | 17177 |
15116 var h = { | 17178 var h = { |
15117 "content-type" : "application/json; charset=utf-8", | 17179 "content-type" : "application/json; charset=utf-8", |
15118 }; | 17180 }; |
15119 var resp = convert.JSON.encode(buildOperation()); | 17181 var resp = convert.JSON.encode(buildOperation()); |
15120 return new async.Future.value(stringResponse(200, h, resp)); | 17182 return new async.Future.value(stringResponse(200, h, resp)); |
15121 }), true); | 17183 }), true); |
15122 res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(
((api.Operation response) { | 17184 res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expe
ctAsync(((api.Operation response) { |
15123 checkOperation(response); | 17185 checkOperation(response); |
15124 }))); | 17186 }))); |
15125 }); | 17187 }); |
15126 | 17188 |
15127 unittest.test("method--deleteAccessConfig", () { | 17189 unittest.test("method--setUsageExportBucket", () { |
15128 | 17190 |
15129 var mock = new HttpServerMock(); | 17191 var mock = new HttpServerMock(); |
15130 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17192 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 17193 var arg_request = buildUsageExportLocation(); |
15131 var arg_project = "foo"; | 17194 var arg_project = "foo"; |
15132 var arg_zone = "foo"; | |
15133 var arg_instance = "foo"; | |
15134 var arg_accessConfig = "foo"; | |
15135 var arg_networkInterface = "foo"; | |
15136 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17195 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17196 var obj = new api.UsageExportLocation.fromJson(json); |
| 17197 checkUsageExportLocation(obj); |
| 17198 |
15137 var path = (req.url).path; | 17199 var path = (req.url).path; |
15138 var pathOffset = 0; | 17200 var pathOffset = 0; |
15139 var index; | 17201 var index; |
15140 var subPart; | 17202 var subPart; |
15141 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15142 pathOffset += 1; | 17204 pathOffset += 1; |
15143 | 17205 |
15144 var query = (req.url).query; | 17206 var query = (req.url).query; |
15145 var queryOffset = 0; | 17207 var queryOffset = 0; |
15146 var queryMap = {}; | 17208 var queryMap = {}; |
15147 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17209 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15148 parseBool(n) { | 17210 parseBool(n) { |
15149 if (n == "true") return true; | 17211 if (n == "true") return true; |
15150 if (n == "false") return false; | 17212 if (n == "false") return false; |
15151 if (n == null) return null; | 17213 if (n == null) return null; |
15152 throw new core.ArgumentError("Invalid boolean: $n"); | 17214 throw new core.ArgumentError("Invalid boolean: $n"); |
15153 } | 17215 } |
15154 if (query.length > 0) { | 17216 if (query.length > 0) { |
15155 for (var part in query.split("&")) { | 17217 for (var part in query.split("&")) { |
15156 var keyvalue = part.split("="); | 17218 var keyvalue = part.split("="); |
15157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15158 } | 17220 } |
15159 } | 17221 } |
15160 unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_acce
ssConfig)); | |
15161 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); | |
15162 | 17222 |
15163 | 17223 |
15164 var h = { | 17224 var h = { |
15165 "content-type" : "application/json; charset=utf-8", | 17225 "content-type" : "application/json; charset=utf-8", |
15166 }; | 17226 }; |
15167 var resp = convert.JSON.encode(buildOperation()); | 17227 var resp = convert.JSON.encode(buildOperation()); |
15168 return new async.Future.value(stringResponse(200, h, resp)); | 17228 return new async.Future.value(stringResponse(200, h, resp)); |
15169 }), true); | 17229 }), true); |
15170 res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConf
ig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) { | 17230 res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsy
nc(((api.Operation response) { |
15171 checkOperation(response); | 17231 checkOperation(response); |
15172 }))); | 17232 }))); |
15173 }); | 17233 }); |
15174 | 17234 |
15175 unittest.test("method--detachDisk", () { | 17235 }); |
| 17236 |
| 17237 |
| 17238 unittest.group("resource-RegionAutoscalersResourceApi", () { |
| 17239 unittest.test("method--delete", () { |
15176 | 17240 |
15177 var mock = new HttpServerMock(); | 17241 var mock = new HttpServerMock(); |
15178 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17242 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
15179 var arg_project = "foo"; | 17243 var arg_project = "foo"; |
15180 var arg_zone = "foo"; | 17244 var arg_region = "foo"; |
15181 var arg_instance = "foo"; | 17245 var arg_autoscaler = "foo"; |
15182 var arg_deviceName = "foo"; | |
15183 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17246 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15184 var path = (req.url).path; | 17247 var path = (req.url).path; |
15185 var pathOffset = 0; | 17248 var pathOffset = 0; |
15186 var index; | 17249 var index; |
15187 var subPart; | 17250 var subPart; |
15188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17251 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15189 pathOffset += 1; | 17252 pathOffset += 1; |
15190 | 17253 |
15191 var query = (req.url).query; | 17254 var query = (req.url).query; |
15192 var queryOffset = 0; | 17255 var queryOffset = 0; |
15193 var queryMap = {}; | 17256 var queryMap = {}; |
15194 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17257 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15195 parseBool(n) { | 17258 parseBool(n) { |
15196 if (n == "true") return true; | 17259 if (n == "true") return true; |
15197 if (n == "false") return false; | 17260 if (n == "false") return false; |
15198 if (n == null) return null; | 17261 if (n == null) return null; |
15199 throw new core.ArgumentError("Invalid boolean: $n"); | 17262 throw new core.ArgumentError("Invalid boolean: $n"); |
15200 } | 17263 } |
15201 if (query.length > 0) { | 17264 if (query.length > 0) { |
15202 for (var part in query.split("&")) { | 17265 for (var part in query.split("&")) { |
15203 var keyvalue = part.split("="); | 17266 var keyvalue = part.split("="); |
15204 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17267 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15205 } | 17268 } |
15206 } | 17269 } |
15207 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); | |
15208 | 17270 |
15209 | 17271 |
15210 var h = { | 17272 var h = { |
15211 "content-type" : "application/json; charset=utf-8", | 17273 "content-type" : "application/json; charset=utf-8", |
15212 }; | 17274 }; |
15213 var resp = convert.JSON.encode(buildOperation()); | 17275 var resp = convert.JSON.encode(buildOperation()); |
15214 return new async.Future.value(stringResponse(200, h, resp)); | 17276 return new async.Future.value(stringResponse(200, h, resp)); |
15215 }), true); | 17277 }), true); |
15216 res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(u
nittest.expectAsync(((api.Operation response) { | 17278 res.delete(arg_project, arg_region, arg_autoscaler).then(unittest.expectAs
ync(((api.Operation response) { |
15217 checkOperation(response); | 17279 checkOperation(response); |
15218 }))); | 17280 }))); |
15219 }); | 17281 }); |
15220 | 17282 |
15221 unittest.test("method--get", () { | 17283 unittest.test("method--get", () { |
15222 | 17284 |
15223 var mock = new HttpServerMock(); | 17285 var mock = new HttpServerMock(); |
15224 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17286 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
15225 var arg_project = "foo"; | 17287 var arg_project = "foo"; |
15226 var arg_zone = "foo"; | 17288 var arg_region = "foo"; |
15227 var arg_instance = "foo"; | 17289 var arg_autoscaler = "foo"; |
15228 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17290 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15229 var path = (req.url).path; | 17291 var path = (req.url).path; |
15230 var pathOffset = 0; | 17292 var pathOffset = 0; |
15231 var index; | 17293 var index; |
15232 var subPart; | 17294 var subPart; |
15233 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17295 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15234 pathOffset += 1; | 17296 pathOffset += 1; |
15235 | 17297 |
15236 var query = (req.url).query; | 17298 var query = (req.url).query; |
15237 var queryOffset = 0; | 17299 var queryOffset = 0; |
15238 var queryMap = {}; | 17300 var queryMap = {}; |
15239 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17301 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15240 parseBool(n) { | 17302 parseBool(n) { |
15241 if (n == "true") return true; | 17303 if (n == "true") return true; |
15242 if (n == "false") return false; | 17304 if (n == "false") return false; |
15243 if (n == null) return null; | 17305 if (n == null) return null; |
15244 throw new core.ArgumentError("Invalid boolean: $n"); | 17306 throw new core.ArgumentError("Invalid boolean: $n"); |
15245 } | 17307 } |
15246 if (query.length > 0) { | 17308 if (query.length > 0) { |
15247 for (var part in query.split("&")) { | 17309 for (var part in query.split("&")) { |
15248 var keyvalue = part.split("="); | 17310 var keyvalue = part.split("="); |
15249 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17311 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15250 } | 17312 } |
15251 } | 17313 } |
15252 | 17314 |
15253 | 17315 |
15254 var h = { | 17316 var h = { |
15255 "content-type" : "application/json; charset=utf-8", | 17317 "content-type" : "application/json; charset=utf-8", |
15256 }; | 17318 }; |
15257 var resp = convert.JSON.encode(buildInstance()); | 17319 var resp = convert.JSON.encode(buildAutoscaler()); |
15258 return new async.Future.value(stringResponse(200, h, resp)); | 17320 return new async.Future.value(stringResponse(200, h, resp)); |
15259 }), true); | 17321 }), true); |
15260 res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((a
pi.Instance response) { | 17322 res.get(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync
(((api.Autoscaler response) { |
15261 checkInstance(response); | 17323 checkAutoscaler(response); |
15262 }))); | 17324 }))); |
15263 }); | 17325 }); |
15264 | 17326 |
15265 unittest.test("method--getSerialPortOutput", () { | 17327 unittest.test("method--insert", () { |
15266 | 17328 |
15267 var mock = new HttpServerMock(); | 17329 var mock = new HttpServerMock(); |
15268 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17330 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 17331 var arg_request = buildAutoscaler(); |
15269 var arg_project = "foo"; | 17332 var arg_project = "foo"; |
15270 var arg_zone = "foo"; | 17333 var arg_region = "foo"; |
15271 var arg_instance = "foo"; | |
15272 var arg_port = 42; | |
15273 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17334 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17335 var obj = new api.Autoscaler.fromJson(json); |
| 17336 checkAutoscaler(obj); |
| 17337 |
15274 var path = (req.url).path; | 17338 var path = (req.url).path; |
15275 var pathOffset = 0; | 17339 var pathOffset = 0; |
15276 var index; | 17340 var index; |
15277 var subPart; | 17341 var subPart; |
15278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17342 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15279 pathOffset += 1; | 17343 pathOffset += 1; |
15280 | 17344 |
15281 var query = (req.url).query; | 17345 var query = (req.url).query; |
15282 var queryOffset = 0; | 17346 var queryOffset = 0; |
15283 var queryMap = {}; | 17347 var queryMap = {}; |
15284 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17348 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15285 parseBool(n) { | 17349 parseBool(n) { |
15286 if (n == "true") return true; | 17350 if (n == "true") return true; |
15287 if (n == "false") return false; | 17351 if (n == "false") return false; |
15288 if (n == null) return null; | 17352 if (n == null) return null; |
15289 throw new core.ArgumentError("Invalid boolean: $n"); | 17353 throw new core.ArgumentError("Invalid boolean: $n"); |
15290 } | 17354 } |
15291 if (query.length > 0) { | 17355 if (query.length > 0) { |
15292 for (var part in query.split("&")) { | 17356 for (var part in query.split("&")) { |
15293 var keyvalue = part.split("="); | 17357 var keyvalue = part.split("="); |
15294 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17358 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15295 } | 17359 } |
15296 } | 17360 } |
15297 unittest.expect(core.int.parse(queryMap["port"].first), unittest.equals(
arg_port)); | |
15298 | 17361 |
15299 | 17362 |
15300 var h = { | 17363 var h = { |
15301 "content-type" : "application/json; charset=utf-8", | 17364 "content-type" : "application/json; charset=utf-8", |
15302 }; | 17365 }; |
15303 var resp = convert.JSON.encode(buildSerialPortOutput()); | 17366 var resp = convert.JSON.encode(buildOperation()); |
15304 return new async.Future.value(stringResponse(200, h, resp)); | 17367 return new async.Future.value(stringResponse(200, h, resp)); |
15305 }), true); | 17368 }), true); |
15306 res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_por
t).then(unittest.expectAsync(((api.SerialPortOutput response) { | 17369 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
15307 checkSerialPortOutput(response); | 17370 checkOperation(response); |
15308 }))); | 17371 }))); |
15309 }); | 17372 }); |
15310 | 17373 |
15311 unittest.test("method--insert", () { | 17374 unittest.test("method--list", () { |
15312 | 17375 |
15313 var mock = new HttpServerMock(); | 17376 var mock = new HttpServerMock(); |
15314 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17377 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
15315 var arg_request = buildInstance(); | |
15316 var arg_project = "foo"; | 17378 var arg_project = "foo"; |
15317 var arg_zone = "foo"; | 17379 var arg_region = "foo"; |
| 17380 var arg_filter = "foo"; |
| 17381 var arg_maxResults = 42; |
| 17382 var arg_orderBy = "foo"; |
| 17383 var arg_pageToken = "foo"; |
15318 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17384 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15319 var obj = new api.Instance.fromJson(json); | |
15320 checkInstance(obj); | |
15321 | |
15322 var path = (req.url).path; | 17385 var path = (req.url).path; |
15323 var pathOffset = 0; | 17386 var pathOffset = 0; |
15324 var index; | 17387 var index; |
15325 var subPart; | 17388 var subPart; |
15326 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17389 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15327 pathOffset += 1; | 17390 pathOffset += 1; |
15328 | 17391 |
15329 var query = (req.url).query; | 17392 var query = (req.url).query; |
15330 var queryOffset = 0; | 17393 var queryOffset = 0; |
15331 var queryMap = {}; | 17394 var queryMap = {}; |
15332 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17395 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15333 parseBool(n) { | 17396 parseBool(n) { |
15334 if (n == "true") return true; | 17397 if (n == "true") return true; |
15335 if (n == "false") return false; | 17398 if (n == "false") return false; |
15336 if (n == null) return null; | 17399 if (n == null) return null; |
15337 throw new core.ArgumentError("Invalid boolean: $n"); | 17400 throw new core.ArgumentError("Invalid boolean: $n"); |
15338 } | 17401 } |
15339 if (query.length > 0) { | 17402 if (query.length > 0) { |
15340 for (var part in query.split("&")) { | 17403 for (var part in query.split("&")) { |
15341 var keyvalue = part.split("="); | 17404 var keyvalue = part.split("="); |
15342 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17405 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15343 } | 17406 } |
15344 } | 17407 } |
| 17408 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 17409 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 17410 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 17411 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
15345 | 17412 |
15346 | 17413 |
15347 var h = { | 17414 var h = { |
15348 "content-type" : "application/json; charset=utf-8", | 17415 "content-type" : "application/json; charset=utf-8", |
15349 }; | 17416 }; |
15350 var resp = convert.JSON.encode(buildOperation()); | 17417 var resp = convert.JSON.encode(buildRegionAutoscalerList()); |
15351 return new async.Future.value(stringResponse(200, h, resp)); | 17418 return new async.Future.value(stringResponse(200, h, resp)); |
15352 }), true); | 17419 }), true); |
15353 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 17420 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.RegionAutoscalerList response) { |
15354 checkOperation(response); | 17421 checkRegionAutoscalerList(response); |
15355 }))); | 17422 }))); |
15356 }); | 17423 }); |
15357 | 17424 |
15358 unittest.test("method--list", () { | 17425 unittest.test("method--patch", () { |
15359 | 17426 |
15360 var mock = new HttpServerMock(); | 17427 var mock = new HttpServerMock(); |
15361 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17428 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 17429 var arg_request = buildAutoscaler(); |
15362 var arg_project = "foo"; | 17430 var arg_project = "foo"; |
15363 var arg_zone = "foo"; | 17431 var arg_region = "foo"; |
15364 var arg_filter = "foo"; | 17432 var arg_autoscaler = "foo"; |
15365 var arg_maxResults = 42; | |
15366 var arg_orderBy = "foo"; | |
15367 var arg_pageToken = "foo"; | |
15368 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17434 var obj = new api.Autoscaler.fromJson(json); |
| 17435 checkAutoscaler(obj); |
| 17436 |
15369 var path = (req.url).path; | 17437 var path = (req.url).path; |
15370 var pathOffset = 0; | 17438 var pathOffset = 0; |
15371 var index; | 17439 var index; |
15372 var subPart; | 17440 var subPart; |
15373 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15374 pathOffset += 1; | 17442 pathOffset += 1; |
15375 | 17443 |
15376 var query = (req.url).query; | 17444 var query = (req.url).query; |
15377 var queryOffset = 0; | 17445 var queryOffset = 0; |
15378 var queryMap = {}; | 17446 var queryMap = {}; |
15379 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17447 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15380 parseBool(n) { | 17448 parseBool(n) { |
15381 if (n == "true") return true; | 17449 if (n == "true") return true; |
15382 if (n == "false") return false; | 17450 if (n == "false") return false; |
15383 if (n == null) return null; | 17451 if (n == null) return null; |
15384 throw new core.ArgumentError("Invalid boolean: $n"); | 17452 throw new core.ArgumentError("Invalid boolean: $n"); |
15385 } | 17453 } |
15386 if (query.length > 0) { | 17454 if (query.length > 0) { |
15387 for (var part in query.split("&")) { | 17455 for (var part in query.split("&")) { |
15388 var keyvalue = part.split("="); | 17456 var keyvalue = part.split("="); |
15389 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17457 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15390 } | 17458 } |
15391 } | 17459 } |
15392 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 17460 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
15393 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
15394 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
15395 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
15396 | 17461 |
15397 | 17462 |
15398 var h = { | 17463 var h = { |
15399 "content-type" : "application/json; charset=utf-8", | 17464 "content-type" : "application/json; charset=utf-8", |
15400 }; | 17465 }; |
15401 var resp = convert.JSON.encode(buildInstanceList()); | 17466 var resp = convert.JSON.encode(buildOperation()); |
15402 return new async.Future.value(stringResponse(200, h, resp)); | 17467 return new async.Future.value(stringResponse(200, h, resp)); |
15403 }), true); | 17468 }), true); |
15404 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.InstanceList response) { | 17469 res.patch(arg_request, arg_project, arg_region, arg_autoscaler).then(unitt
est.expectAsync(((api.Operation response) { |
15405 checkInstanceList(response); | 17470 checkOperation(response); |
15406 }))); | 17471 }))); |
15407 }); | 17472 }); |
15408 | 17473 |
15409 unittest.test("method--reset", () { | 17474 unittest.test("method--update", () { |
15410 | 17475 |
15411 var mock = new HttpServerMock(); | 17476 var mock = new HttpServerMock(); |
15412 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17477 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 17478 var arg_request = buildAutoscaler(); |
15413 var arg_project = "foo"; | 17479 var arg_project = "foo"; |
15414 var arg_zone = "foo"; | 17480 var arg_region = "foo"; |
15415 var arg_instance = "foo"; | 17481 var arg_autoscaler = "foo"; |
15416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17482 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17483 var obj = new api.Autoscaler.fromJson(json); |
| 17484 checkAutoscaler(obj); |
| 17485 |
15417 var path = (req.url).path; | 17486 var path = (req.url).path; |
15418 var pathOffset = 0; | 17487 var pathOffset = 0; |
15419 var index; | 17488 var index; |
15420 var subPart; | 17489 var subPart; |
15421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17490 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15422 pathOffset += 1; | 17491 pathOffset += 1; |
15423 | 17492 |
15424 var query = (req.url).query; | 17493 var query = (req.url).query; |
15425 var queryOffset = 0; | 17494 var queryOffset = 0; |
15426 var queryMap = {}; | 17495 var queryMap = {}; |
15427 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17496 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15428 parseBool(n) { | 17497 parseBool(n) { |
15429 if (n == "true") return true; | 17498 if (n == "true") return true; |
15430 if (n == "false") return false; | 17499 if (n == "false") return false; |
15431 if (n == null) return null; | 17500 if (n == null) return null; |
15432 throw new core.ArgumentError("Invalid boolean: $n"); | 17501 throw new core.ArgumentError("Invalid boolean: $n"); |
15433 } | 17502 } |
15434 if (query.length > 0) { | 17503 if (query.length > 0) { |
15435 for (var part in query.split("&")) { | 17504 for (var part in query.split("&")) { |
15436 var keyvalue = part.split("="); | 17505 var keyvalue = part.split("="); |
15437 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17506 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15438 } | 17507 } |
15439 } | 17508 } |
| 17509 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
15440 | 17510 |
15441 | 17511 |
15442 var h = { | 17512 var h = { |
15443 "content-type" : "application/json; charset=utf-8", | 17513 "content-type" : "application/json; charset=utf-8", |
15444 }; | 17514 }; |
15445 var resp = convert.JSON.encode(buildOperation()); | 17515 var resp = convert.JSON.encode(buildOperation()); |
15446 return new async.Future.value(stringResponse(200, h, resp)); | 17516 return new async.Future.value(stringResponse(200, h, resp)); |
15447 }), true); | 17517 }), true); |
15448 res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { | 17518 res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscale
r).then(unittest.expectAsync(((api.Operation response) { |
15449 checkOperation(response); | 17519 checkOperation(response); |
15450 }))); | 17520 }))); |
15451 }); | 17521 }); |
15452 | 17522 |
15453 unittest.test("method--setDiskAutoDelete", () { | 17523 }); |
| 17524 |
| 17525 |
| 17526 unittest.group("resource-RegionBackendServicesResourceApi", () { |
| 17527 unittest.test("method--delete", () { |
15454 | 17528 |
15455 var mock = new HttpServerMock(); | 17529 var mock = new HttpServerMock(); |
15456 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17530 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
15457 var arg_project = "foo"; | 17531 var arg_project = "foo"; |
15458 var arg_zone = "foo"; | 17532 var arg_region = "foo"; |
15459 var arg_instance = "foo"; | 17533 var arg_backendService = "foo"; |
15460 var arg_autoDelete = true; | |
15461 var arg_deviceName = "foo"; | |
15462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15463 var path = (req.url).path; | 17535 var path = (req.url).path; |
15464 var pathOffset = 0; | 17536 var pathOffset = 0; |
15465 var index; | 17537 var index; |
15466 var subPart; | 17538 var subPart; |
15467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15468 pathOffset += 1; | 17540 pathOffset += 1; |
15469 | 17541 |
15470 var query = (req.url).query; | 17542 var query = (req.url).query; |
15471 var queryOffset = 0; | 17543 var queryOffset = 0; |
15472 var queryMap = {}; | 17544 var queryMap = {}; |
15473 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17545 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15474 parseBool(n) { | 17546 parseBool(n) { |
15475 if (n == "true") return true; | 17547 if (n == "true") return true; |
15476 if (n == "false") return false; | 17548 if (n == "false") return false; |
15477 if (n == null) return null; | 17549 if (n == null) return null; |
15478 throw new core.ArgumentError("Invalid boolean: $n"); | 17550 throw new core.ArgumentError("Invalid boolean: $n"); |
15479 } | 17551 } |
15480 if (query.length > 0) { | 17552 if (query.length > 0) { |
15481 for (var part in query.split("&")) { | 17553 for (var part in query.split("&")) { |
15482 var keyvalue = part.split("="); | 17554 var keyvalue = part.split("="); |
15483 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17555 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15484 } | 17556 } |
15485 } | 17557 } |
15486 unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_auto
Delete")); | |
15487 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); | |
15488 | 17558 |
15489 | 17559 |
15490 var h = { | 17560 var h = { |
15491 "content-type" : "application/json; charset=utf-8", | 17561 "content-type" : "application/json; charset=utf-8", |
15492 }; | 17562 }; |
15493 var resp = convert.JSON.encode(buildOperation()); | 17563 var resp = convert.JSON.encode(buildOperation()); |
15494 return new async.Future.value(stringResponse(200, h, resp)); | 17564 return new async.Future.value(stringResponse(200, h, resp)); |
15495 }), true); | 17565 }), true); |
15496 res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete,
arg_deviceName).then(unittest.expectAsync(((api.Operation response) { | 17566 res.delete(arg_project, arg_region, arg_backendService).then(unittest.expe
ctAsync(((api.Operation response) { |
15497 checkOperation(response); | 17567 checkOperation(response); |
15498 }))); | 17568 }))); |
15499 }); | 17569 }); |
15500 | 17570 |
15501 unittest.test("method--setMachineType", () { | 17571 unittest.test("method--get", () { |
15502 | 17572 |
15503 var mock = new HttpServerMock(); | 17573 var mock = new HttpServerMock(); |
15504 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17574 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
15505 var arg_request = buildInstancesSetMachineTypeRequest(); | |
15506 var arg_project = "foo"; | 17575 var arg_project = "foo"; |
15507 var arg_zone = "foo"; | 17576 var arg_region = "foo"; |
15508 var arg_instance = "foo"; | 17577 var arg_backendService = "foo"; |
15509 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17578 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15510 var obj = new api.InstancesSetMachineTypeRequest.fromJson(json); | |
15511 checkInstancesSetMachineTypeRequest(obj); | |
15512 | |
15513 var path = (req.url).path; | 17579 var path = (req.url).path; |
15514 var pathOffset = 0; | 17580 var pathOffset = 0; |
15515 var index; | 17581 var index; |
15516 var subPart; | 17582 var subPart; |
15517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17583 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15518 pathOffset += 1; | 17584 pathOffset += 1; |
15519 | 17585 |
15520 var query = (req.url).query; | 17586 var query = (req.url).query; |
15521 var queryOffset = 0; | 17587 var queryOffset = 0; |
15522 var queryMap = {}; | 17588 var queryMap = {}; |
15523 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17589 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15524 parseBool(n) { | 17590 parseBool(n) { |
15525 if (n == "true") return true; | 17591 if (n == "true") return true; |
15526 if (n == "false") return false; | 17592 if (n == "false") return false; |
15527 if (n == null) return null; | 17593 if (n == null) return null; |
15528 throw new core.ArgumentError("Invalid boolean: $n"); | 17594 throw new core.ArgumentError("Invalid boolean: $n"); |
15529 } | 17595 } |
15530 if (query.length > 0) { | 17596 if (query.length > 0) { |
15531 for (var part in query.split("&")) { | 17597 for (var part in query.split("&")) { |
15532 var keyvalue = part.split("="); | 17598 var keyvalue = part.split("="); |
15533 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17599 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15534 } | 17600 } |
15535 } | 17601 } |
15536 | 17602 |
15537 | 17603 |
15538 var h = { | 17604 var h = { |
15539 "content-type" : "application/json; charset=utf-8", | 17605 "content-type" : "application/json; charset=utf-8", |
15540 }; | 17606 }; |
15541 var resp = convert.JSON.encode(buildOperation()); | 17607 var resp = convert.JSON.encode(buildBackendService()); |
15542 return new async.Future.value(stringResponse(200, h, resp)); | 17608 return new async.Future.value(stringResponse(200, h, resp)); |
15543 }), true); | 17609 }), true); |
15544 res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(
unittest.expectAsync(((api.Operation response) { | 17610 res.get(arg_project, arg_region, arg_backendService).then(unittest.expectA
sync(((api.BackendService response) { |
15545 checkOperation(response); | 17611 checkBackendService(response); |
15546 }))); | 17612 }))); |
15547 }); | 17613 }); |
15548 | 17614 |
15549 unittest.test("method--setMetadata", () { | 17615 unittest.test("method--getHealth", () { |
15550 | 17616 |
15551 var mock = new HttpServerMock(); | 17617 var mock = new HttpServerMock(); |
15552 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17618 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
15553 var arg_request = buildMetadata(); | 17619 var arg_request = buildResourceGroupReference(); |
15554 var arg_project = "foo"; | 17620 var arg_project = "foo"; |
15555 var arg_zone = "foo"; | 17621 var arg_region = "foo"; |
15556 var arg_instance = "foo"; | 17622 var arg_backendService = "foo"; |
15557 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17623 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15558 var obj = new api.Metadata.fromJson(json); | 17624 var obj = new api.ResourceGroupReference.fromJson(json); |
15559 checkMetadata(obj); | 17625 checkResourceGroupReference(obj); |
15560 | 17626 |
15561 var path = (req.url).path; | 17627 var path = (req.url).path; |
15562 var pathOffset = 0; | 17628 var pathOffset = 0; |
15563 var index; | 17629 var index; |
15564 var subPart; | 17630 var subPart; |
15565 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17631 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15566 pathOffset += 1; | 17632 pathOffset += 1; |
15567 | 17633 |
15568 var query = (req.url).query; | 17634 var query = (req.url).query; |
15569 var queryOffset = 0; | 17635 var queryOffset = 0; |
15570 var queryMap = {}; | 17636 var queryMap = {}; |
15571 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17637 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15572 parseBool(n) { | 17638 parseBool(n) { |
15573 if (n == "true") return true; | 17639 if (n == "true") return true; |
15574 if (n == "false") return false; | 17640 if (n == "false") return false; |
15575 if (n == null) return null; | 17641 if (n == null) return null; |
15576 throw new core.ArgumentError("Invalid boolean: $n"); | 17642 throw new core.ArgumentError("Invalid boolean: $n"); |
15577 } | 17643 } |
15578 if (query.length > 0) { | 17644 if (query.length > 0) { |
15579 for (var part in query.split("&")) { | 17645 for (var part in query.split("&")) { |
15580 var keyvalue = part.split("="); | 17646 var keyvalue = part.split("="); |
15581 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17647 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15582 } | 17648 } |
15583 } | 17649 } |
15584 | 17650 |
15585 | 17651 |
15586 var h = { | 17652 var h = { |
15587 "content-type" : "application/json; charset=utf-8", | 17653 "content-type" : "application/json; charset=utf-8", |
15588 }; | 17654 }; |
15589 var resp = convert.JSON.encode(buildOperation()); | 17655 var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); |
15590 return new async.Future.value(stringResponse(200, h, resp)); | 17656 return new async.Future.value(stringResponse(200, h, resp)); |
15591 }), true); | 17657 }), true); |
15592 res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(uni
ttest.expectAsync(((api.Operation response) { | 17658 res.getHealth(arg_request, arg_project, arg_region, arg_backendService).th
en(unittest.expectAsync(((api.BackendServiceGroupHealth response) { |
15593 checkOperation(response); | 17659 checkBackendServiceGroupHealth(response); |
15594 }))); | 17660 }))); |
15595 }); | 17661 }); |
15596 | 17662 |
15597 unittest.test("method--setScheduling", () { | 17663 unittest.test("method--insert", () { |
15598 | 17664 |
15599 var mock = new HttpServerMock(); | 17665 var mock = new HttpServerMock(); |
15600 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17666 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
15601 var arg_request = buildScheduling(); | 17667 var arg_request = buildBackendService(); |
15602 var arg_project = "foo"; | 17668 var arg_project = "foo"; |
15603 var arg_zone = "foo"; | 17669 var arg_region = "foo"; |
15604 var arg_instance = "foo"; | |
15605 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15606 var obj = new api.Scheduling.fromJson(json); | 17671 var obj = new api.BackendService.fromJson(json); |
15607 checkScheduling(obj); | 17672 checkBackendService(obj); |
15608 | 17673 |
15609 var path = (req.url).path; | 17674 var path = (req.url).path; |
15610 var pathOffset = 0; | 17675 var pathOffset = 0; |
15611 var index; | 17676 var index; |
15612 var subPart; | 17677 var subPart; |
15613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17678 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15614 pathOffset += 1; | 17679 pathOffset += 1; |
15615 | 17680 |
15616 var query = (req.url).query; | 17681 var query = (req.url).query; |
15617 var queryOffset = 0; | 17682 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
15630 } | 17695 } |
15631 } | 17696 } |
15632 | 17697 |
15633 | 17698 |
15634 var h = { | 17699 var h = { |
15635 "content-type" : "application/json; charset=utf-8", | 17700 "content-type" : "application/json; charset=utf-8", |
15636 }; | 17701 }; |
15637 var resp = convert.JSON.encode(buildOperation()); | 17702 var resp = convert.JSON.encode(buildOperation()); |
15638 return new async.Future.value(stringResponse(200, h, resp)); | 17703 return new async.Future.value(stringResponse(200, h, resp)); |
15639 }), true); | 17704 }), true); |
15640 res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(u
nittest.expectAsync(((api.Operation response) { | 17705 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
15641 checkOperation(response); | 17706 checkOperation(response); |
15642 }))); | 17707 }))); |
15643 }); | 17708 }); |
15644 | 17709 |
15645 unittest.test("method--setTags", () { | 17710 unittest.test("method--list", () { |
15646 | 17711 |
15647 var mock = new HttpServerMock(); | 17712 var mock = new HttpServerMock(); |
15648 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17713 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
15649 var arg_request = buildTags(); | |
15650 var arg_project = "foo"; | 17714 var arg_project = "foo"; |
15651 var arg_zone = "foo"; | 17715 var arg_region = "foo"; |
15652 var arg_instance = "foo"; | 17716 var arg_filter = "foo"; |
| 17717 var arg_maxResults = 42; |
| 17718 var arg_orderBy = "foo"; |
| 17719 var arg_pageToken = "foo"; |
15653 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15654 var obj = new api.Tags.fromJson(json); | |
15655 checkTags(obj); | |
15656 | |
15657 var path = (req.url).path; | 17721 var path = (req.url).path; |
15658 var pathOffset = 0; | 17722 var pathOffset = 0; |
15659 var index; | 17723 var index; |
15660 var subPart; | 17724 var subPart; |
15661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15662 pathOffset += 1; | 17726 pathOffset += 1; |
15663 | 17727 |
15664 var query = (req.url).query; | 17728 var query = (req.url).query; |
15665 var queryOffset = 0; | 17729 var queryOffset = 0; |
15666 var queryMap = {}; | 17730 var queryMap = {}; |
15667 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17731 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15668 parseBool(n) { | 17732 parseBool(n) { |
15669 if (n == "true") return true; | 17733 if (n == "true") return true; |
15670 if (n == "false") return false; | 17734 if (n == "false") return false; |
15671 if (n == null) return null; | 17735 if (n == null) return null; |
15672 throw new core.ArgumentError("Invalid boolean: $n"); | 17736 throw new core.ArgumentError("Invalid boolean: $n"); |
15673 } | 17737 } |
15674 if (query.length > 0) { | 17738 if (query.length > 0) { |
15675 for (var part in query.split("&")) { | 17739 for (var part in query.split("&")) { |
15676 var keyvalue = part.split("="); | 17740 var keyvalue = part.split("="); |
15677 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17741 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15678 } | 17742 } |
15679 } | 17743 } |
| 17744 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 17745 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 17746 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 17747 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
15680 | 17748 |
15681 | 17749 |
15682 var h = { | 17750 var h = { |
15683 "content-type" : "application/json; charset=utf-8", | 17751 "content-type" : "application/json; charset=utf-8", |
15684 }; | 17752 }; |
15685 var resp = convert.JSON.encode(buildOperation()); | 17753 var resp = convert.JSON.encode(buildBackendServiceList()); |
15686 return new async.Future.value(stringResponse(200, h, resp)); | 17754 return new async.Future.value(stringResponse(200, h, resp)); |
15687 }), true); | 17755 }), true); |
15688 res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittes
t.expectAsync(((api.Operation response) { | 17756 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.BackendServiceList response) { |
15689 checkOperation(response); | 17757 checkBackendServiceList(response); |
15690 }))); | 17758 }))); |
15691 }); | 17759 }); |
15692 | 17760 |
15693 unittest.test("method--start", () { | 17761 unittest.test("method--patch", () { |
15694 | 17762 |
15695 var mock = new HttpServerMock(); | 17763 var mock = new HttpServerMock(); |
15696 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17764 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 17765 var arg_request = buildBackendService(); |
15697 var arg_project = "foo"; | 17766 var arg_project = "foo"; |
15698 var arg_zone = "foo"; | 17767 var arg_region = "foo"; |
15699 var arg_instance = "foo"; | 17768 var arg_backendService = "foo"; |
15700 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17769 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17770 var obj = new api.BackendService.fromJson(json); |
| 17771 checkBackendService(obj); |
| 17772 |
15701 var path = (req.url).path; | 17773 var path = (req.url).path; |
15702 var pathOffset = 0; | 17774 var pathOffset = 0; |
15703 var index; | 17775 var index; |
15704 var subPart; | 17776 var subPart; |
15705 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17777 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15706 pathOffset += 1; | 17778 pathOffset += 1; |
15707 | 17779 |
15708 var query = (req.url).query; | 17780 var query = (req.url).query; |
15709 var queryOffset = 0; | 17781 var queryOffset = 0; |
15710 var queryMap = {}; | 17782 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
15722 } | 17794 } |
15723 } | 17795 } |
15724 | 17796 |
15725 | 17797 |
15726 var h = { | 17798 var h = { |
15727 "content-type" : "application/json; charset=utf-8", | 17799 "content-type" : "application/json; charset=utf-8", |
15728 }; | 17800 }; |
15729 var resp = convert.JSON.encode(buildOperation()); | 17801 var resp = convert.JSON.encode(buildOperation()); |
15730 return new async.Future.value(stringResponse(200, h, resp)); | 17802 return new async.Future.value(stringResponse(200, h, resp)); |
15731 }), true); | 17803 }), true); |
15732 res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { | 17804 res.patch(arg_request, arg_project, arg_region, arg_backendService).then(u
nittest.expectAsync(((api.Operation response) { |
15733 checkOperation(response); | 17805 checkOperation(response); |
15734 }))); | 17806 }))); |
15735 }); | 17807 }); |
15736 | 17808 |
15737 unittest.test("method--startWithEncryptionKey", () { | 17809 unittest.test("method--update", () { |
15738 | 17810 |
15739 var mock = new HttpServerMock(); | 17811 var mock = new HttpServerMock(); |
15740 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17812 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
15741 var arg_request = buildInstancesStartWithEncryptionKeyRequest(); | 17813 var arg_request = buildBackendService(); |
15742 var arg_project = "foo"; | 17814 var arg_project = "foo"; |
15743 var arg_zone = "foo"; | 17815 var arg_region = "foo"; |
15744 var arg_instance = "foo"; | 17816 var arg_backendService = "foo"; |
15745 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17817 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15746 var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json); | 17818 var obj = new api.BackendService.fromJson(json); |
15747 checkInstancesStartWithEncryptionKeyRequest(obj); | 17819 checkBackendService(obj); |
15748 | 17820 |
15749 var path = (req.url).path; | 17821 var path = (req.url).path; |
15750 var pathOffset = 0; | 17822 var pathOffset = 0; |
15751 var index; | 17823 var index; |
15752 var subPart; | 17824 var subPart; |
15753 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17825 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15754 pathOffset += 1; | 17826 pathOffset += 1; |
15755 | 17827 |
15756 var query = (req.url).query; | 17828 var query = (req.url).query; |
15757 var queryOffset = 0; | 17829 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
15770 } | 17842 } |
15771 } | 17843 } |
15772 | 17844 |
15773 | 17845 |
15774 var h = { | 17846 var h = { |
15775 "content-type" : "application/json; charset=utf-8", | 17847 "content-type" : "application/json; charset=utf-8", |
15776 }; | 17848 }; |
15777 var resp = convert.JSON.encode(buildOperation()); | 17849 var resp = convert.JSON.encode(buildOperation()); |
15778 return new async.Future.value(stringResponse(200, h, resp)); | 17850 return new async.Future.value(stringResponse(200, h, resp)); |
15779 }), true); | 17851 }), true); |
15780 res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instanc
e).then(unittest.expectAsync(((api.Operation response) { | 17852 res.update(arg_request, arg_project, arg_region, arg_backendService).then(
unittest.expectAsync(((api.Operation response) { |
15781 checkOperation(response); | 17853 checkOperation(response); |
15782 }))); | 17854 }))); |
15783 }); | 17855 }); |
15784 | 17856 |
15785 unittest.test("method--stop", () { | 17857 }); |
| 17858 |
| 17859 |
| 17860 unittest.group("resource-RegionInstanceGroupManagersResourceApi", () { |
| 17861 unittest.test("method--abandonInstances", () { |
15786 | 17862 |
15787 var mock = new HttpServerMock(); | 17863 var mock = new HttpServerMock(); |
15788 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 17864 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 17865 var arg_request = buildRegionInstanceGroupManagersAbandonInstancesRequest(
); |
15789 var arg_project = "foo"; | 17866 var arg_project = "foo"; |
15790 var arg_zone = "foo"; | 17867 var arg_region = "foo"; |
15791 var arg_instance = "foo"; | 17868 var arg_instanceGroupManager = "foo"; |
15792 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17869 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17870 var obj = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fro
mJson(json); |
| 17871 checkRegionInstanceGroupManagersAbandonInstancesRequest(obj); |
| 17872 |
15793 var path = (req.url).path; | 17873 var path = (req.url).path; |
15794 var pathOffset = 0; | 17874 var pathOffset = 0; |
15795 var index; | 17875 var index; |
15796 var subPart; | 17876 var subPart; |
15797 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17877 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15798 pathOffset += 1; | 17878 pathOffset += 1; |
15799 | 17879 |
15800 var query = (req.url).query; | 17880 var query = (req.url).query; |
15801 var queryOffset = 0; | 17881 var queryOffset = 0; |
15802 var queryMap = {}; | 17882 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
15814 } | 17894 } |
15815 } | 17895 } |
15816 | 17896 |
15817 | 17897 |
15818 var h = { | 17898 var h = { |
15819 "content-type" : "application/json; charset=utf-8", | 17899 "content-type" : "application/json; charset=utf-8", |
15820 }; | 17900 }; |
15821 var resp = convert.JSON.encode(buildOperation()); | 17901 var resp = convert.JSON.encode(buildOperation()); |
15822 return new async.Future.value(stringResponse(200, h, resp)); | 17902 return new async.Future.value(stringResponse(200, h, resp)); |
15823 }), true); | 17903 }), true); |
15824 res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((
api.Operation response) { | 17904 res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGro
upManager).then(unittest.expectAsync(((api.Operation response) { |
15825 checkOperation(response); | 17905 checkOperation(response); |
15826 }))); | 17906 }))); |
15827 }); | 17907 }); |
15828 | 17908 |
15829 }); | 17909 unittest.test("method--delete", () { |
15830 | |
15831 | |
15832 unittest.group("resource-LicensesResourceApi", () { | |
15833 unittest.test("method--get", () { | |
15834 | 17910 |
15835 var mock = new HttpServerMock(); | 17911 var mock = new HttpServerMock(); |
15836 api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; | 17912 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
15837 var arg_project = "foo"; | 17913 var arg_project = "foo"; |
15838 var arg_license = "foo"; | 17914 var arg_region = "foo"; |
| 17915 var arg_instanceGroupManager = "foo"; |
15839 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17916 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15840 var path = (req.url).path; | 17917 var path = (req.url).path; |
15841 var pathOffset = 0; | 17918 var pathOffset = 0; |
15842 var index; | 17919 var index; |
15843 var subPart; | 17920 var subPart; |
15844 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17921 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15845 pathOffset += 1; | 17922 pathOffset += 1; |
15846 | 17923 |
15847 var query = (req.url).query; | 17924 var query = (req.url).query; |
15848 var queryOffset = 0; | 17925 var queryOffset = 0; |
15849 var queryMap = {}; | 17926 var queryMap = {}; |
15850 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17927 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15851 parseBool(n) { | 17928 parseBool(n) { |
15852 if (n == "true") return true; | 17929 if (n == "true") return true; |
15853 if (n == "false") return false; | 17930 if (n == "false") return false; |
15854 if (n == null) return null; | 17931 if (n == null) return null; |
15855 throw new core.ArgumentError("Invalid boolean: $n"); | 17932 throw new core.ArgumentError("Invalid boolean: $n"); |
15856 } | 17933 } |
15857 if (query.length > 0) { | 17934 if (query.length > 0) { |
15858 for (var part in query.split("&")) { | 17935 for (var part in query.split("&")) { |
15859 var keyvalue = part.split("="); | 17936 var keyvalue = part.split("="); |
15860 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17937 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15861 } | 17938 } |
15862 } | 17939 } |
15863 | 17940 |
15864 | 17941 |
15865 var h = { | 17942 var h = { |
15866 "content-type" : "application/json; charset=utf-8", | 17943 "content-type" : "application/json; charset=utf-8", |
15867 }; | 17944 }; |
15868 var resp = convert.JSON.encode(buildLicense()); | 17945 var resp = convert.JSON.encode(buildOperation()); |
15869 return new async.Future.value(stringResponse(200, h, resp)); | 17946 return new async.Future.value(stringResponse(200, h, resp)); |
15870 }), true); | 17947 }), true); |
15871 res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License
response) { | 17948 res.delete(arg_project, arg_region, arg_instanceGroupManager).then(unittes
t.expectAsync(((api.Operation response) { |
15872 checkLicense(response); | 17949 checkOperation(response); |
15873 }))); | 17950 }))); |
15874 }); | 17951 }); |
15875 | 17952 |
15876 }); | 17953 unittest.test("method--deleteInstances", () { |
15877 | |
15878 | |
15879 unittest.group("resource-MachineTypesResourceApi", () { | |
15880 unittest.test("method--aggregatedList", () { | |
15881 | 17954 |
15882 var mock = new HttpServerMock(); | 17955 var mock = new HttpServerMock(); |
15883 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; | 17956 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 17957 var arg_request = buildRegionInstanceGroupManagersDeleteInstancesRequest()
; |
15884 var arg_project = "foo"; | 17958 var arg_project = "foo"; |
15885 var arg_filter = "foo"; | 17959 var arg_region = "foo"; |
15886 var arg_maxResults = 42; | 17960 var arg_instanceGroupManager = "foo"; |
15887 var arg_orderBy = "foo"; | |
15888 var arg_pageToken = "foo"; | |
15889 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 17961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 17962 var obj = new api.RegionInstanceGroupManagersDeleteInstancesRequest.from
Json(json); |
| 17963 checkRegionInstanceGroupManagersDeleteInstancesRequest(obj); |
| 17964 |
15890 var path = (req.url).path; | 17965 var path = (req.url).path; |
15891 var pathOffset = 0; | 17966 var pathOffset = 0; |
15892 var index; | 17967 var index; |
15893 var subPart; | 17968 var subPart; |
15894 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15895 pathOffset += 1; | 17970 pathOffset += 1; |
15896 | 17971 |
15897 var query = (req.url).query; | 17972 var query = (req.url).query; |
15898 var queryOffset = 0; | 17973 var queryOffset = 0; |
15899 var queryMap = {}; | 17974 var queryMap = {}; |
15900 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17975 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15901 parseBool(n) { | 17976 parseBool(n) { |
15902 if (n == "true") return true; | 17977 if (n == "true") return true; |
15903 if (n == "false") return false; | 17978 if (n == "false") return false; |
15904 if (n == null) return null; | 17979 if (n == null) return null; |
15905 throw new core.ArgumentError("Invalid boolean: $n"); | 17980 throw new core.ArgumentError("Invalid boolean: $n"); |
15906 } | 17981 } |
15907 if (query.length > 0) { | 17982 if (query.length > 0) { |
15908 for (var part in query.split("&")) { | 17983 for (var part in query.split("&")) { |
15909 var keyvalue = part.split("="); | 17984 var keyvalue = part.split("="); |
15910 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17985 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15911 } | 17986 } |
15912 } | 17987 } |
15913 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
15914 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
15915 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
15916 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
15917 | 17988 |
15918 | 17989 |
15919 var h = { | 17990 var h = { |
15920 "content-type" : "application/json; charset=utf-8", | 17991 "content-type" : "application/json; charset=utf-8", |
15921 }; | 17992 }; |
15922 var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); | 17993 var resp = convert.JSON.encode(buildOperation()); |
15923 return new async.Future.value(stringResponse(200, h, resp)); | 17994 return new async.Future.value(stringResponse(200, h, resp)); |
15924 }), true); | 17995 }), true); |
15925 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.MachineTypeAggregatedList response) { | 17996 res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGrou
pManager).then(unittest.expectAsync(((api.Operation response) { |
15926 checkMachineTypeAggregatedList(response); | 17997 checkOperation(response); |
15927 }))); | 17998 }))); |
15928 }); | 17999 }); |
15929 | 18000 |
15930 unittest.test("method--get", () { | 18001 unittest.test("method--get", () { |
15931 | 18002 |
15932 var mock = new HttpServerMock(); | 18003 var mock = new HttpServerMock(); |
15933 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; | 18004 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
15934 var arg_project = "foo"; | 18005 var arg_project = "foo"; |
15935 var arg_zone = "foo"; | 18006 var arg_region = "foo"; |
15936 var arg_machineType = "foo"; | 18007 var arg_instanceGroupManager = "foo"; |
15937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18008 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
15938 var path = (req.url).path; | 18009 var path = (req.url).path; |
15939 var pathOffset = 0; | 18010 var pathOffset = 0; |
15940 var index; | 18011 var index; |
15941 var subPart; | 18012 var subPart; |
15942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18013 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15943 pathOffset += 1; | 18014 pathOffset += 1; |
15944 | 18015 |
15945 var query = (req.url).query; | 18016 var query = (req.url).query; |
15946 var queryOffset = 0; | 18017 var queryOffset = 0; |
15947 var queryMap = {}; | 18018 var queryMap = {}; |
15948 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18019 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15949 parseBool(n) { | 18020 parseBool(n) { |
15950 if (n == "true") return true; | 18021 if (n == "true") return true; |
15951 if (n == "false") return false; | 18022 if (n == "false") return false; |
15952 if (n == null) return null; | 18023 if (n == null) return null; |
15953 throw new core.ArgumentError("Invalid boolean: $n"); | 18024 throw new core.ArgumentError("Invalid boolean: $n"); |
15954 } | 18025 } |
15955 if (query.length > 0) { | 18026 if (query.length > 0) { |
15956 for (var part in query.split("&")) { | 18027 for (var part in query.split("&")) { |
15957 var keyvalue = part.split("="); | 18028 var keyvalue = part.split("="); |
15958 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18029 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
15959 } | 18030 } |
15960 } | 18031 } |
15961 | 18032 |
15962 | 18033 |
15963 var h = { | 18034 var h = { |
15964 "content-type" : "application/json; charset=utf-8", | 18035 "content-type" : "application/json; charset=utf-8", |
15965 }; | 18036 }; |
15966 var resp = convert.JSON.encode(buildMachineType()); | 18037 var resp = convert.JSON.encode(buildInstanceGroupManager()); |
15967 return new async.Future.value(stringResponse(200, h, resp)); | 18038 return new async.Future.value(stringResponse(200, h, resp)); |
15968 }), true); | 18039 }), true); |
15969 res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(
((api.MachineType response) { | 18040 res.get(arg_project, arg_region, arg_instanceGroupManager).then(unittest.e
xpectAsync(((api.InstanceGroupManager response) { |
15970 checkMachineType(response); | 18041 checkInstanceGroupManager(response); |
15971 }))); | 18042 }))); |
15972 }); | 18043 }); |
15973 | 18044 |
15974 unittest.test("method--list", () { | 18045 unittest.test("method--insert", () { |
15975 | 18046 |
15976 var mock = new HttpServerMock(); | 18047 var mock = new HttpServerMock(); |
15977 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; | 18048 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 18049 var arg_request = buildInstanceGroupManager(); |
15978 var arg_project = "foo"; | 18050 var arg_project = "foo"; |
15979 var arg_zone = "foo"; | 18051 var arg_region = "foo"; |
15980 var arg_filter = "foo"; | |
15981 var arg_maxResults = 42; | |
15982 var arg_orderBy = "foo"; | |
15983 var arg_pageToken = "foo"; | |
15984 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18052 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18053 var obj = new api.InstanceGroupManager.fromJson(json); |
| 18054 checkInstanceGroupManager(obj); |
| 18055 |
15985 var path = (req.url).path; | 18056 var path = (req.url).path; |
15986 var pathOffset = 0; | 18057 var pathOffset = 0; |
15987 var index; | 18058 var index; |
15988 var subPart; | 18059 var subPart; |
15989 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18060 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
15990 pathOffset += 1; | 18061 pathOffset += 1; |
15991 | 18062 |
15992 var query = (req.url).query; | 18063 var query = (req.url).query; |
15993 var queryOffset = 0; | 18064 var queryOffset = 0; |
15994 var queryMap = {}; | 18065 var queryMap = {}; |
15995 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18066 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
15996 parseBool(n) { | 18067 parseBool(n) { |
15997 if (n == "true") return true; | 18068 if (n == "true") return true; |
15998 if (n == "false") return false; | 18069 if (n == "false") return false; |
15999 if (n == null) return null; | 18070 if (n == null) return null; |
16000 throw new core.ArgumentError("Invalid boolean: $n"); | 18071 throw new core.ArgumentError("Invalid boolean: $n"); |
16001 } | 18072 } |
16002 if (query.length > 0) { | 18073 if (query.length > 0) { |
16003 for (var part in query.split("&")) { | 18074 for (var part in query.split("&")) { |
16004 var keyvalue = part.split("="); | 18075 var keyvalue = part.split("="); |
16005 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18076 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16006 } | 18077 } |
16007 } | 18078 } |
16008 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
16009 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
16010 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
16011 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
16012 | 18079 |
16013 | 18080 |
16014 var h = { | 18081 var h = { |
16015 "content-type" : "application/json; charset=utf-8", | 18082 "content-type" : "application/json; charset=utf-8", |
16016 }; | 18083 }; |
16017 var resp = convert.JSON.encode(buildMachineTypeList()); | 18084 var resp = convert.JSON.encode(buildOperation()); |
16018 return new async.Future.value(stringResponse(200, h, resp)); | 18085 return new async.Future.value(stringResponse(200, h, resp)); |
16019 }), true); | 18086 }), true); |
16020 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(
((api.MachineTypeList response) { | 18087 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
16021 checkMachineTypeList(response); | 18088 checkOperation(response); |
16022 }))); | 18089 }))); |
16023 }); | 18090 }); |
16024 | 18091 |
16025 }); | 18092 unittest.test("method--list", () { |
16026 | |
16027 | |
16028 unittest.group("resource-NetworksResourceApi", () { | |
16029 unittest.test("method--delete", () { | |
16030 | 18093 |
16031 var mock = new HttpServerMock(); | 18094 var mock = new HttpServerMock(); |
16032 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 18095 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
16033 var arg_project = "foo"; | 18096 var arg_project = "foo"; |
16034 var arg_network = "foo"; | 18097 var arg_region = "foo"; |
| 18098 var arg_filter = "foo"; |
| 18099 var arg_maxResults = 42; |
| 18100 var arg_orderBy = "foo"; |
| 18101 var arg_pageToken = "foo"; |
16035 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18102 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16036 var path = (req.url).path; | 18103 var path = (req.url).path; |
16037 var pathOffset = 0; | 18104 var pathOffset = 0; |
16038 var index; | 18105 var index; |
16039 var subPart; | 18106 var subPart; |
16040 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18107 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16041 pathOffset += 1; | 18108 pathOffset += 1; |
16042 | 18109 |
16043 var query = (req.url).query; | 18110 var query = (req.url).query; |
16044 var queryOffset = 0; | 18111 var queryOffset = 0; |
16045 var queryMap = {}; | 18112 var queryMap = {}; |
16046 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16047 parseBool(n) { | 18114 parseBool(n) { |
16048 if (n == "true") return true; | 18115 if (n == "true") return true; |
16049 if (n == "false") return false; | 18116 if (n == "false") return false; |
16050 if (n == null) return null; | 18117 if (n == null) return null; |
16051 throw new core.ArgumentError("Invalid boolean: $n"); | 18118 throw new core.ArgumentError("Invalid boolean: $n"); |
16052 } | 18119 } |
16053 if (query.length > 0) { | 18120 if (query.length > 0) { |
16054 for (var part in query.split("&")) { | 18121 for (var part in query.split("&")) { |
16055 var keyvalue = part.split("="); | 18122 var keyvalue = part.split("="); |
16056 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18123 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16057 } | 18124 } |
16058 } | 18125 } |
| 18126 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 18127 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18128 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 18129 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
16059 | 18130 |
16060 | 18131 |
16061 var h = { | 18132 var h = { |
16062 "content-type" : "application/json; charset=utf-8", | 18133 "content-type" : "application/json; charset=utf-8", |
16063 }; | 18134 }; |
16064 var resp = convert.JSON.encode(buildOperation()); | 18135 var resp = convert.JSON.encode(buildRegionInstanceGroupManagerList()); |
16065 return new async.Future.value(stringResponse(200, h, resp)); | 18136 return new async.Future.value(stringResponse(200, h, resp)); |
16066 }), true); | 18137 }), true); |
16067 res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Opera
tion response) { | 18138 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.RegionInstanceGroupManagerList response) { |
16068 checkOperation(response); | 18139 checkRegionInstanceGroupManagerList(response); |
16069 }))); | 18140 }))); |
16070 }); | 18141 }); |
16071 | 18142 |
16072 unittest.test("method--get", () { | 18143 unittest.test("method--listManagedInstances", () { |
16073 | 18144 |
16074 var mock = new HttpServerMock(); | 18145 var mock = new HttpServerMock(); |
16075 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 18146 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
16076 var arg_project = "foo"; | 18147 var arg_project = "foo"; |
16077 var arg_network = "foo"; | 18148 var arg_region = "foo"; |
| 18149 var arg_instanceGroupManager = "foo"; |
16078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18150 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16079 var path = (req.url).path; | 18151 var path = (req.url).path; |
16080 var pathOffset = 0; | 18152 var pathOffset = 0; |
16081 var index; | 18153 var index; |
16082 var subPart; | 18154 var subPart; |
16083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18155 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16084 pathOffset += 1; | 18156 pathOffset += 1; |
16085 | 18157 |
16086 var query = (req.url).query; | 18158 var query = (req.url).query; |
16087 var queryOffset = 0; | 18159 var queryOffset = 0; |
16088 var queryMap = {}; | 18160 var queryMap = {}; |
16089 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18161 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16090 parseBool(n) { | 18162 parseBool(n) { |
16091 if (n == "true") return true; | 18163 if (n == "true") return true; |
16092 if (n == "false") return false; | 18164 if (n == "false") return false; |
16093 if (n == null) return null; | 18165 if (n == null) return null; |
16094 throw new core.ArgumentError("Invalid boolean: $n"); | 18166 throw new core.ArgumentError("Invalid boolean: $n"); |
16095 } | 18167 } |
16096 if (query.length > 0) { | 18168 if (query.length > 0) { |
16097 for (var part in query.split("&")) { | 18169 for (var part in query.split("&")) { |
16098 var keyvalue = part.split("="); | 18170 var keyvalue = part.split("="); |
16099 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18171 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16100 } | 18172 } |
16101 } | 18173 } |
16102 | 18174 |
16103 | 18175 |
16104 var h = { | 18176 var h = { |
16105 "content-type" : "application/json; charset=utf-8", | 18177 "content-type" : "application/json; charset=utf-8", |
16106 }; | 18178 }; |
16107 var resp = convert.JSON.encode(buildNetwork()); | 18179 var resp = convert.JSON.encode(buildRegionInstanceGroupManagersListInsta
ncesResponse()); |
16108 return new async.Future.value(stringResponse(200, h, resp)); | 18180 return new async.Future.value(stringResponse(200, h, resp)); |
16109 }), true); | 18181 }), true); |
16110 res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network
response) { | 18182 res.listManagedInstances(arg_project, arg_region, arg_instanceGroupManager
).then(unittest.expectAsync(((api.RegionInstanceGroupManagersListInstancesRespon
se response) { |
16111 checkNetwork(response); | 18183 checkRegionInstanceGroupManagersListInstancesResponse(response); |
16112 }))); | 18184 }))); |
16113 }); | 18185 }); |
16114 | 18186 |
16115 unittest.test("method--insert", () { | 18187 unittest.test("method--recreateInstances", () { |
16116 | 18188 |
16117 var mock = new HttpServerMock(); | 18189 var mock = new HttpServerMock(); |
16118 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 18190 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
16119 var arg_request = buildNetwork(); | 18191 var arg_request = buildRegionInstanceGroupManagersRecreateRequest(); |
16120 var arg_project = "foo"; | 18192 var arg_project = "foo"; |
| 18193 var arg_region = "foo"; |
| 18194 var arg_instanceGroupManager = "foo"; |
16121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18195 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16122 var obj = new api.Network.fromJson(json); | 18196 var obj = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(js
on); |
16123 checkNetwork(obj); | 18197 checkRegionInstanceGroupManagersRecreateRequest(obj); |
16124 | 18198 |
16125 var path = (req.url).path; | 18199 var path = (req.url).path; |
16126 var pathOffset = 0; | 18200 var pathOffset = 0; |
16127 var index; | 18201 var index; |
16128 var subPart; | 18202 var subPart; |
16129 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16130 pathOffset += 1; | 18204 pathOffset += 1; |
16131 | 18205 |
16132 var query = (req.url).query; | 18206 var query = (req.url).query; |
16133 var queryOffset = 0; | 18207 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
16146 } | 18220 } |
16147 } | 18221 } |
16148 | 18222 |
16149 | 18223 |
16150 var h = { | 18224 var h = { |
16151 "content-type" : "application/json; charset=utf-8", | 18225 "content-type" : "application/json; charset=utf-8", |
16152 }; | 18226 }; |
16153 var resp = convert.JSON.encode(buildOperation()); | 18227 var resp = convert.JSON.encode(buildOperation()); |
16154 return new async.Future.value(stringResponse(200, h, resp)); | 18228 return new async.Future.value(stringResponse(200, h, resp)); |
16155 }), true); | 18229 }), true); |
16156 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 18230 res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGr
oupManager).then(unittest.expectAsync(((api.Operation response) { |
16157 checkOperation(response); | 18231 checkOperation(response); |
16158 }))); | 18232 }))); |
16159 }); | 18233 }); |
16160 | 18234 |
16161 unittest.test("method--list", () { | 18235 unittest.test("method--resize", () { |
16162 | 18236 |
16163 var mock = new HttpServerMock(); | 18237 var mock = new HttpServerMock(); |
16164 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 18238 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
16165 var arg_project = "foo"; | 18239 var arg_project = "foo"; |
16166 var arg_filter = "foo"; | 18240 var arg_region = "foo"; |
16167 var arg_maxResults = 42; | 18241 var arg_instanceGroupManager = "foo"; |
16168 var arg_orderBy = "foo"; | 18242 var arg_size = 42; |
16169 var arg_pageToken = "foo"; | |
16170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16171 var path = (req.url).path; | 18244 var path = (req.url).path; |
16172 var pathOffset = 0; | 18245 var pathOffset = 0; |
16173 var index; | 18246 var index; |
16174 var subPart; | 18247 var subPart; |
16175 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18248 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16176 pathOffset += 1; | 18249 pathOffset += 1; |
16177 | 18250 |
16178 var query = (req.url).query; | 18251 var query = (req.url).query; |
16179 var queryOffset = 0; | 18252 var queryOffset = 0; |
16180 var queryMap = {}; | 18253 var queryMap = {}; |
16181 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18254 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16182 parseBool(n) { | 18255 parseBool(n) { |
16183 if (n == "true") return true; | 18256 if (n == "true") return true; |
16184 if (n == "false") return false; | 18257 if (n == "false") return false; |
16185 if (n == null) return null; | 18258 if (n == null) return null; |
16186 throw new core.ArgumentError("Invalid boolean: $n"); | 18259 throw new core.ArgumentError("Invalid boolean: $n"); |
16187 } | 18260 } |
16188 if (query.length > 0) { | 18261 if (query.length > 0) { |
16189 for (var part in query.split("&")) { | 18262 for (var part in query.split("&")) { |
16190 var keyvalue = part.split("="); | 18263 var keyvalue = part.split("="); |
16191 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18264 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16192 } | 18265 } |
16193 } | 18266 } |
16194 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 18267 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); |
16195 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | |
16196 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | |
16197 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
16198 | 18268 |
16199 | 18269 |
16200 var h = { | 18270 var h = { |
16201 "content-type" : "application/json; charset=utf-8", | 18271 "content-type" : "application/json; charset=utf-8", |
16202 }; | 18272 }; |
16203 var resp = convert.JSON.encode(buildNetworkList()); | 18273 var resp = convert.JSON.encode(buildOperation()); |
16204 return new async.Future.value(stringResponse(200, h, resp)); | 18274 return new async.Future.value(stringResponse(200, h, resp)); |
16205 }), true); | 18275 }), true); |
16206 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Netw
orkList response) { | 18276 res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size).th
en(unittest.expectAsync(((api.Operation response) { |
16207 checkNetworkList(response); | 18277 checkOperation(response); |
16208 }))); | 18278 }))); |
16209 }); | 18279 }); |
16210 | 18280 |
16211 unittest.test("method--switchToCustomMode", () { | 18281 unittest.test("method--setInstanceTemplate", () { |
16212 | 18282 |
16213 var mock = new HttpServerMock(); | 18283 var mock = new HttpServerMock(); |
16214 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 18284 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 18285 var arg_request = buildRegionInstanceGroupManagersSetTemplateRequest(); |
16215 var arg_project = "foo"; | 18286 var arg_project = "foo"; |
16216 var arg_network = "foo"; | 18287 var arg_region = "foo"; |
| 18288 var arg_instanceGroupManager = "foo"; |
16217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18289 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18290 var obj = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson
(json); |
| 18291 checkRegionInstanceGroupManagersSetTemplateRequest(obj); |
| 18292 |
16218 var path = (req.url).path; | 18293 var path = (req.url).path; |
16219 var pathOffset = 0; | 18294 var pathOffset = 0; |
16220 var index; | 18295 var index; |
16221 var subPart; | 18296 var subPart; |
16222 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18297 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16223 pathOffset += 1; | 18298 pathOffset += 1; |
16224 | 18299 |
16225 var query = (req.url).query; | 18300 var query = (req.url).query; |
16226 var queryOffset = 0; | 18301 var queryOffset = 0; |
16227 var queryMap = {}; | 18302 var queryMap = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
16239 } | 18314 } |
16240 } | 18315 } |
16241 | 18316 |
16242 | 18317 |
16243 var h = { | 18318 var h = { |
16244 "content-type" : "application/json; charset=utf-8", | 18319 "content-type" : "application/json; charset=utf-8", |
16245 }; | 18320 }; |
16246 var resp = convert.JSON.encode(buildOperation()); | 18321 var resp = convert.JSON.encode(buildOperation()); |
16247 return new async.Future.value(stringResponse(200, h, resp)); | 18322 return new async.Future.value(stringResponse(200, h, resp)); |
16248 }), true); | 18323 }), true); |
16249 res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync
(((api.Operation response) { | 18324 res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instance
GroupManager).then(unittest.expectAsync(((api.Operation response) { |
16250 checkOperation(response); | 18325 checkOperation(response); |
16251 }))); | 18326 }))); |
16252 }); | 18327 }); |
16253 | 18328 |
16254 }); | 18329 unittest.test("method--setTargetPools", () { |
16255 | |
16256 | |
16257 unittest.group("resource-ProjectsResourceApi", () { | |
16258 unittest.test("method--get", () { | |
16259 | 18330 |
16260 var mock = new HttpServerMock(); | 18331 var mock = new HttpServerMock(); |
16261 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 18332 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 18333 var arg_request = buildRegionInstanceGroupManagersSetTargetPoolsRequest(); |
16262 var arg_project = "foo"; | 18334 var arg_project = "foo"; |
| 18335 var arg_region = "foo"; |
| 18336 var arg_instanceGroupManager = "foo"; |
16263 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18337 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 18338 var obj = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJ
son(json); |
| 18339 checkRegionInstanceGroupManagersSetTargetPoolsRequest(obj); |
| 18340 |
16264 var path = (req.url).path; | 18341 var path = (req.url).path; |
16265 var pathOffset = 0; | 18342 var pathOffset = 0; |
16266 var index; | 18343 var index; |
16267 var subPart; | 18344 var subPart; |
16268 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16269 pathOffset += 1; | 18346 pathOffset += 1; |
16270 | 18347 |
16271 var query = (req.url).query; | 18348 var query = (req.url).query; |
16272 var queryOffset = 0; | 18349 var queryOffset = 0; |
16273 var queryMap = {}; | 18350 var queryMap = {}; |
16274 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18351 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16275 parseBool(n) { | 18352 parseBool(n) { |
16276 if (n == "true") return true; | 18353 if (n == "true") return true; |
16277 if (n == "false") return false; | 18354 if (n == "false") return false; |
16278 if (n == null) return null; | 18355 if (n == null) return null; |
16279 throw new core.ArgumentError("Invalid boolean: $n"); | 18356 throw new core.ArgumentError("Invalid boolean: $n"); |
16280 } | 18357 } |
16281 if (query.length > 0) { | 18358 if (query.length > 0) { |
16282 for (var part in query.split("&")) { | 18359 for (var part in query.split("&")) { |
16283 var keyvalue = part.split("="); | 18360 var keyvalue = part.split("="); |
16284 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18361 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16285 } | 18362 } |
16286 } | 18363 } |
16287 | 18364 |
16288 | 18365 |
16289 var h = { | 18366 var h = { |
16290 "content-type" : "application/json; charset=utf-8", | 18367 "content-type" : "application/json; charset=utf-8", |
16291 }; | 18368 }; |
16292 var resp = convert.JSON.encode(buildProject()); | 18369 var resp = convert.JSON.encode(buildOperation()); |
16293 return new async.Future.value(stringResponse(200, h, resp)); | 18370 return new async.Future.value(stringResponse(200, h, resp)); |
16294 }), true); | 18371 }), true); |
16295 res.get(arg_project).then(unittest.expectAsync(((api.Project response) { | 18372 res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroup
Manager).then(unittest.expectAsync(((api.Operation response) { |
16296 checkProject(response); | 18373 checkOperation(response); |
16297 }))); | 18374 }))); |
16298 }); | 18375 }); |
16299 | 18376 |
16300 unittest.test("method--moveDisk", () { | 18377 }); |
| 18378 |
| 18379 |
| 18380 unittest.group("resource-RegionInstanceGroupsResourceApi", () { |
| 18381 unittest.test("method--get", () { |
16301 | 18382 |
16302 var mock = new HttpServerMock(); | 18383 var mock = new HttpServerMock(); |
16303 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 18384 api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionI
nstanceGroups; |
16304 var arg_request = buildDiskMoveRequest(); | |
16305 var arg_project = "foo"; | 18385 var arg_project = "foo"; |
| 18386 var arg_region = "foo"; |
| 18387 var arg_instanceGroup = "foo"; |
16306 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18388 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16307 var obj = new api.DiskMoveRequest.fromJson(json); | |
16308 checkDiskMoveRequest(obj); | |
16309 | |
16310 var path = (req.url).path; | 18389 var path = (req.url).path; |
16311 var pathOffset = 0; | 18390 var pathOffset = 0; |
16312 var index; | 18391 var index; |
16313 var subPart; | 18392 var subPart; |
16314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18393 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16315 pathOffset += 1; | 18394 pathOffset += 1; |
16316 | 18395 |
16317 var query = (req.url).query; | 18396 var query = (req.url).query; |
16318 var queryOffset = 0; | 18397 var queryOffset = 0; |
16319 var queryMap = {}; | 18398 var queryMap = {}; |
16320 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18399 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16321 parseBool(n) { | 18400 parseBool(n) { |
16322 if (n == "true") return true; | 18401 if (n == "true") return true; |
16323 if (n == "false") return false; | 18402 if (n == "false") return false; |
16324 if (n == null) return null; | 18403 if (n == null) return null; |
16325 throw new core.ArgumentError("Invalid boolean: $n"); | 18404 throw new core.ArgumentError("Invalid boolean: $n"); |
16326 } | 18405 } |
16327 if (query.length > 0) { | 18406 if (query.length > 0) { |
16328 for (var part in query.split("&")) { | 18407 for (var part in query.split("&")) { |
16329 var keyvalue = part.split("="); | 18408 var keyvalue = part.split("="); |
16330 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18409 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16331 } | 18410 } |
16332 } | 18411 } |
16333 | 18412 |
16334 | 18413 |
16335 var h = { | 18414 var h = { |
16336 "content-type" : "application/json; charset=utf-8", | 18415 "content-type" : "application/json; charset=utf-8", |
16337 }; | 18416 }; |
16338 var resp = convert.JSON.encode(buildOperation()); | 18417 var resp = convert.JSON.encode(buildInstanceGroup()); |
16339 return new async.Future.value(stringResponse(200, h, resp)); | 18418 return new async.Future.value(stringResponse(200, h, resp)); |
16340 }), true); | 18419 }), true); |
16341 res.moveDisk(arg_request, arg_project).then(unittest.expectAsync(((api.Ope
ration response) { | 18420 res.get(arg_project, arg_region, arg_instanceGroup).then(unittest.expectAs
ync(((api.InstanceGroup response) { |
16342 checkOperation(response); | 18421 checkInstanceGroup(response); |
16343 }))); | 18422 }))); |
16344 }); | 18423 }); |
16345 | 18424 |
16346 unittest.test("method--moveInstance", () { | 18425 unittest.test("method--list", () { |
16347 | 18426 |
16348 var mock = new HttpServerMock(); | 18427 var mock = new HttpServerMock(); |
16349 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 18428 api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionI
nstanceGroups; |
16350 var arg_request = buildInstanceMoveRequest(); | |
16351 var arg_project = "foo"; | 18429 var arg_project = "foo"; |
| 18430 var arg_region = "foo"; |
| 18431 var arg_filter = "foo"; |
| 18432 var arg_maxResults = 42; |
| 18433 var arg_orderBy = "foo"; |
| 18434 var arg_pageToken = "foo"; |
16352 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18435 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16353 var obj = new api.InstanceMoveRequest.fromJson(json); | |
16354 checkInstanceMoveRequest(obj); | |
16355 | |
16356 var path = (req.url).path; | 18436 var path = (req.url).path; |
16357 var pathOffset = 0; | 18437 var pathOffset = 0; |
16358 var index; | 18438 var index; |
16359 var subPart; | 18439 var subPart; |
16360 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18440 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16361 pathOffset += 1; | 18441 pathOffset += 1; |
16362 | 18442 |
16363 var query = (req.url).query; | 18443 var query = (req.url).query; |
16364 var queryOffset = 0; | 18444 var queryOffset = 0; |
16365 var queryMap = {}; | 18445 var queryMap = {}; |
16366 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18446 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16367 parseBool(n) { | 18447 parseBool(n) { |
16368 if (n == "true") return true; | 18448 if (n == "true") return true; |
16369 if (n == "false") return false; | 18449 if (n == "false") return false; |
16370 if (n == null) return null; | 18450 if (n == null) return null; |
16371 throw new core.ArgumentError("Invalid boolean: $n"); | 18451 throw new core.ArgumentError("Invalid boolean: $n"); |
16372 } | 18452 } |
16373 if (query.length > 0) { | 18453 if (query.length > 0) { |
16374 for (var part in query.split("&")) { | 18454 for (var part in query.split("&")) { |
16375 var keyvalue = part.split("="); | 18455 var keyvalue = part.split("="); |
16376 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18456 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16377 } | 18457 } |
16378 } | 18458 } |
| 18459 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 18460 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18461 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 18462 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
16379 | 18463 |
16380 | 18464 |
16381 var h = { | 18465 var h = { |
16382 "content-type" : "application/json; charset=utf-8", | 18466 "content-type" : "application/json; charset=utf-8", |
16383 }; | 18467 }; |
16384 var resp = convert.JSON.encode(buildOperation()); | 18468 var resp = convert.JSON.encode(buildRegionInstanceGroupList()); |
16385 return new async.Future.value(stringResponse(200, h, resp)); | 18469 return new async.Future.value(stringResponse(200, h, resp)); |
16386 }), true); | 18470 }), true); |
16387 res.moveInstance(arg_request, arg_project).then(unittest.expectAsync(((api
.Operation response) { | 18471 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsyn
c(((api.RegionInstanceGroupList response) { |
16388 checkOperation(response); | 18472 checkRegionInstanceGroupList(response); |
16389 }))); | 18473 }))); |
16390 }); | 18474 }); |
16391 | 18475 |
16392 unittest.test("method--setCommonInstanceMetadata", () { | 18476 unittest.test("method--listInstances", () { |
16393 | 18477 |
16394 var mock = new HttpServerMock(); | 18478 var mock = new HttpServerMock(); |
16395 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 18479 api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionI
nstanceGroups; |
16396 var arg_request = buildMetadata(); | 18480 var arg_request = buildRegionInstanceGroupsListInstancesRequest(); |
16397 var arg_project = "foo"; | 18481 var arg_project = "foo"; |
| 18482 var arg_region = "foo"; |
| 18483 var arg_instanceGroup = "foo"; |
| 18484 var arg_filter = "foo"; |
| 18485 var arg_maxResults = 42; |
| 18486 var arg_orderBy = "foo"; |
| 18487 var arg_pageToken = "foo"; |
16398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18488 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16399 var obj = new api.Metadata.fromJson(json); | 18489 var obj = new api.RegionInstanceGroupsListInstancesRequest.fromJson(json
); |
16400 checkMetadata(obj); | 18490 checkRegionInstanceGroupsListInstancesRequest(obj); |
16401 | 18491 |
16402 var path = (req.url).path; | 18492 var path = (req.url).path; |
16403 var pathOffset = 0; | 18493 var pathOffset = 0; |
16404 var index; | 18494 var index; |
16405 var subPart; | 18495 var subPart; |
16406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16407 pathOffset += 1; | 18497 pathOffset += 1; |
16408 | 18498 |
16409 var query = (req.url).query; | 18499 var query = (req.url).query; |
16410 var queryOffset = 0; | 18500 var queryOffset = 0; |
16411 var queryMap = {}; | 18501 var queryMap = {}; |
16412 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18502 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
16413 parseBool(n) { | 18503 parseBool(n) { |
16414 if (n == "true") return true; | 18504 if (n == "true") return true; |
16415 if (n == "false") return false; | 18505 if (n == "false") return false; |
16416 if (n == null) return null; | 18506 if (n == null) return null; |
16417 throw new core.ArgumentError("Invalid boolean: $n"); | 18507 throw new core.ArgumentError("Invalid boolean: $n"); |
16418 } | 18508 } |
16419 if (query.length > 0) { | 18509 if (query.length > 0) { |
16420 for (var part in query.split("&")) { | 18510 for (var part in query.split("&")) { |
16421 var keyvalue = part.split("="); | 18511 var keyvalue = part.split("="); |
16422 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
16423 } | 18513 } |
16424 } | 18514 } |
| 18515 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 18516 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 18517 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 18518 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
16425 | 18519 |
16426 | 18520 |
16427 var h = { | 18521 var h = { |
16428 "content-type" : "application/json; charset=utf-8", | 18522 "content-type" : "application/json; charset=utf-8", |
16429 }; | 18523 }; |
16430 var resp = convert.JSON.encode(buildOperation()); | 18524 var resp = convert.JSON.encode(buildRegionInstanceGroupsListInstances())
; |
16431 return new async.Future.value(stringResponse(200, h, resp)); | 18525 return new async.Future.value(stringResponse(200, h, resp)); |
16432 }), true); | 18526 }), true); |
16433 res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expe
ctAsync(((api.Operation response) { | 18527 res.listInstances(arg_request, arg_project, arg_region, arg_instanceGroup,
filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupsListInstanc
es response) { |
16434 checkOperation(response); | 18528 checkRegionInstanceGroupsListInstances(response); |
16435 }))); | 18529 }))); |
16436 }); | 18530 }); |
16437 | 18531 |
16438 unittest.test("method--setUsageExportBucket", () { | 18532 unittest.test("method--setNamedPorts", () { |
16439 | 18533 |
16440 var mock = new HttpServerMock(); | 18534 var mock = new HttpServerMock(); |
16441 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 18535 api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionI
nstanceGroups; |
16442 var arg_request = buildUsageExportLocation(); | 18536 var arg_request = buildRegionInstanceGroupsSetNamedPortsRequest(); |
16443 var arg_project = "foo"; | 18537 var arg_project = "foo"; |
| 18538 var arg_region = "foo"; |
| 18539 var arg_instanceGroup = "foo"; |
16444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 18540 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
16445 var obj = new api.UsageExportLocation.fromJson(json); | 18541 var obj = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(json
); |
16446 checkUsageExportLocation(obj); | 18542 checkRegionInstanceGroupsSetNamedPortsRequest(obj); |
16447 | 18543 |
16448 var path = (req.url).path; | 18544 var path = (req.url).path; |
16449 var pathOffset = 0; | 18545 var pathOffset = 0; |
16450 var index; | 18546 var index; |
16451 var subPart; | 18547 var subPart; |
16452 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18548 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
16453 pathOffset += 1; | 18549 pathOffset += 1; |
16454 | 18550 |
16455 var query = (req.url).query; | 18551 var query = (req.url).query; |
16456 var queryOffset = 0; | 18552 var queryOffset = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
16469 } | 18565 } |
16470 } | 18566 } |
16471 | 18567 |
16472 | 18568 |
16473 var h = { | 18569 var h = { |
16474 "content-type" : "application/json; charset=utf-8", | 18570 "content-type" : "application/json; charset=utf-8", |
16475 }; | 18571 }; |
16476 var resp = convert.JSON.encode(buildOperation()); | 18572 var resp = convert.JSON.encode(buildOperation()); |
16477 return new async.Future.value(stringResponse(200, h, resp)); | 18573 return new async.Future.value(stringResponse(200, h, resp)); |
16478 }), true); | 18574 }), true); |
16479 res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsy
nc(((api.Operation response) { | 18575 res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup)
.then(unittest.expectAsync(((api.Operation response) { |
16480 checkOperation(response); | 18576 checkOperation(response); |
16481 }))); | 18577 }))); |
16482 }); | 18578 }); |
16483 | 18579 |
16484 }); | 18580 }); |
16485 | 18581 |
16486 | 18582 |
16487 unittest.group("resource-RegionOperationsResourceApi", () { | 18583 unittest.group("resource-RegionOperationsResourceApi", () { |
16488 unittest.test("method--delete", () { | 18584 unittest.test("method--delete", () { |
16489 | 18585 |
(...skipping 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20647 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Zone
List response) { | 22743 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Zone
List response) { |
20648 checkZoneList(response); | 22744 checkZoneList(response); |
20649 }))); | 22745 }))); |
20650 }); | 22746 }); |
20651 | 22747 |
20652 }); | 22748 }); |
20653 | 22749 |
20654 | 22750 |
20655 } | 22751 } |
20656 | 22752 |
OLD | NEW |