| 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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 unittest.expect(o.id, unittest.equals('foo')); | 100 unittest.expect(o.id, unittest.equals('foo')); |
| 101 unittest.expect(o.kind, unittest.equals('foo')); | 101 unittest.expect(o.kind, unittest.equals('foo')); |
| 102 unittest.expect(o.maximumCardsPerInstance, unittest.equals(42)); | 102 unittest.expect(o.maximumCardsPerInstance, unittest.equals(42)); |
| 103 unittest.expect(o.name, unittest.equals('foo')); | 103 unittest.expect(o.name, unittest.equals('foo')); |
| 104 unittest.expect(o.selfLink, unittest.equals('foo')); | 104 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 105 unittest.expect(o.zone, unittest.equals('foo')); | 105 unittest.expect(o.zone, unittest.equals('foo')); |
| 106 } | 106 } |
| 107 buildCounterAcceleratorType--; | 107 buildCounterAcceleratorType--; |
| 108 } | 108 } |
| 109 | 109 |
| 110 buildUnnamed2221() { | 110 buildUnnamed2239() { |
| 111 var o = new core.Map<core.String, api.AcceleratorTypesScopedList>(); | 111 var o = new core.Map<core.String, api.AcceleratorTypesScopedList>(); |
| 112 o["x"] = buildAcceleratorTypesScopedList(); | 112 o["x"] = buildAcceleratorTypesScopedList(); |
| 113 o["y"] = buildAcceleratorTypesScopedList(); | 113 o["y"] = buildAcceleratorTypesScopedList(); |
| 114 return o; | 114 return o; |
| 115 } | 115 } |
| 116 | 116 |
| 117 checkUnnamed2221(core.Map<core.String, api.AcceleratorTypesScopedList> o) { | 117 checkUnnamed2239(core.Map<core.String, api.AcceleratorTypesScopedList> o) { |
| 118 unittest.expect(o, unittest.hasLength(2)); | 118 unittest.expect(o, unittest.hasLength(2)); |
| 119 checkAcceleratorTypesScopedList(o["x"]); | 119 checkAcceleratorTypesScopedList(o["x"]); |
| 120 checkAcceleratorTypesScopedList(o["y"]); | 120 checkAcceleratorTypesScopedList(o["y"]); |
| 121 } | 121 } |
| 122 | 122 |
| 123 core.int buildCounterAcceleratorTypeAggregatedList = 0; | 123 core.int buildCounterAcceleratorTypeAggregatedList = 0; |
| 124 buildAcceleratorTypeAggregatedList() { | 124 buildAcceleratorTypeAggregatedList() { |
| 125 var o = new api.AcceleratorTypeAggregatedList(); | 125 var o = new api.AcceleratorTypeAggregatedList(); |
| 126 buildCounterAcceleratorTypeAggregatedList++; | 126 buildCounterAcceleratorTypeAggregatedList++; |
| 127 if (buildCounterAcceleratorTypeAggregatedList < 3) { | 127 if (buildCounterAcceleratorTypeAggregatedList < 3) { |
| 128 o.id = "foo"; | 128 o.id = "foo"; |
| 129 o.items = buildUnnamed2221(); | 129 o.items = buildUnnamed2239(); |
| 130 o.kind = "foo"; | 130 o.kind = "foo"; |
| 131 o.nextPageToken = "foo"; | 131 o.nextPageToken = "foo"; |
| 132 o.selfLink = "foo"; | 132 o.selfLink = "foo"; |
| 133 } | 133 } |
| 134 buildCounterAcceleratorTypeAggregatedList--; | 134 buildCounterAcceleratorTypeAggregatedList--; |
| 135 return o; | 135 return o; |
| 136 } | 136 } |
| 137 | 137 |
| 138 checkAcceleratorTypeAggregatedList(api.AcceleratorTypeAggregatedList o) { | 138 checkAcceleratorTypeAggregatedList(api.AcceleratorTypeAggregatedList o) { |
| 139 buildCounterAcceleratorTypeAggregatedList++; | 139 buildCounterAcceleratorTypeAggregatedList++; |
| 140 if (buildCounterAcceleratorTypeAggregatedList < 3) { | 140 if (buildCounterAcceleratorTypeAggregatedList < 3) { |
| 141 unittest.expect(o.id, unittest.equals('foo')); | 141 unittest.expect(o.id, unittest.equals('foo')); |
| 142 checkUnnamed2221(o.items); | 142 checkUnnamed2239(o.items); |
| 143 unittest.expect(o.kind, unittest.equals('foo')); | 143 unittest.expect(o.kind, unittest.equals('foo')); |
| 144 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 144 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 145 unittest.expect(o.selfLink, unittest.equals('foo')); | 145 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 146 } | 146 } |
| 147 buildCounterAcceleratorTypeAggregatedList--; | 147 buildCounterAcceleratorTypeAggregatedList--; |
| 148 } | 148 } |
| 149 | 149 |
| 150 buildUnnamed2222() { | 150 buildUnnamed2240() { |
| 151 var o = new core.List<api.AcceleratorType>(); | 151 var o = new core.List<api.AcceleratorType>(); |
| 152 o.add(buildAcceleratorType()); | 152 o.add(buildAcceleratorType()); |
| 153 o.add(buildAcceleratorType()); | 153 o.add(buildAcceleratorType()); |
| 154 return o; | 154 return o; |
| 155 } | 155 } |
| 156 | 156 |
| 157 checkUnnamed2222(core.List<api.AcceleratorType> o) { | 157 checkUnnamed2240(core.List<api.AcceleratorType> o) { |
| 158 unittest.expect(o, unittest.hasLength(2)); | 158 unittest.expect(o, unittest.hasLength(2)); |
| 159 checkAcceleratorType(o[0]); | 159 checkAcceleratorType(o[0]); |
| 160 checkAcceleratorType(o[1]); | 160 checkAcceleratorType(o[1]); |
| 161 } | 161 } |
| 162 | 162 |
| 163 core.int buildCounterAcceleratorTypeList = 0; | 163 core.int buildCounterAcceleratorTypeList = 0; |
| 164 buildAcceleratorTypeList() { | 164 buildAcceleratorTypeList() { |
| 165 var o = new api.AcceleratorTypeList(); | 165 var o = new api.AcceleratorTypeList(); |
| 166 buildCounterAcceleratorTypeList++; | 166 buildCounterAcceleratorTypeList++; |
| 167 if (buildCounterAcceleratorTypeList < 3) { | 167 if (buildCounterAcceleratorTypeList < 3) { |
| 168 o.id = "foo"; | 168 o.id = "foo"; |
| 169 o.items = buildUnnamed2222(); | 169 o.items = buildUnnamed2240(); |
| 170 o.kind = "foo"; | 170 o.kind = "foo"; |
| 171 o.nextPageToken = "foo"; | 171 o.nextPageToken = "foo"; |
| 172 o.selfLink = "foo"; | 172 o.selfLink = "foo"; |
| 173 } | 173 } |
| 174 buildCounterAcceleratorTypeList--; | 174 buildCounterAcceleratorTypeList--; |
| 175 return o; | 175 return o; |
| 176 } | 176 } |
| 177 | 177 |
| 178 checkAcceleratorTypeList(api.AcceleratorTypeList o) { | 178 checkAcceleratorTypeList(api.AcceleratorTypeList o) { |
| 179 buildCounterAcceleratorTypeList++; | 179 buildCounterAcceleratorTypeList++; |
| 180 if (buildCounterAcceleratorTypeList < 3) { | 180 if (buildCounterAcceleratorTypeList < 3) { |
| 181 unittest.expect(o.id, unittest.equals('foo')); | 181 unittest.expect(o.id, unittest.equals('foo')); |
| 182 checkUnnamed2222(o.items); | 182 checkUnnamed2240(o.items); |
| 183 unittest.expect(o.kind, unittest.equals('foo')); | 183 unittest.expect(o.kind, unittest.equals('foo')); |
| 184 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 184 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 185 unittest.expect(o.selfLink, unittest.equals('foo')); | 185 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 186 } | 186 } |
| 187 buildCounterAcceleratorTypeList--; | 187 buildCounterAcceleratorTypeList--; |
| 188 } | 188 } |
| 189 | 189 |
| 190 buildUnnamed2223() { | 190 buildUnnamed2241() { |
| 191 var o = new core.List<api.AcceleratorType>(); | 191 var o = new core.List<api.AcceleratorType>(); |
| 192 o.add(buildAcceleratorType()); | 192 o.add(buildAcceleratorType()); |
| 193 o.add(buildAcceleratorType()); | 193 o.add(buildAcceleratorType()); |
| 194 return o; | 194 return o; |
| 195 } | 195 } |
| 196 | 196 |
| 197 checkUnnamed2223(core.List<api.AcceleratorType> o) { | 197 checkUnnamed2241(core.List<api.AcceleratorType> o) { |
| 198 unittest.expect(o, unittest.hasLength(2)); | 198 unittest.expect(o, unittest.hasLength(2)); |
| 199 checkAcceleratorType(o[0]); | 199 checkAcceleratorType(o[0]); |
| 200 checkAcceleratorType(o[1]); | 200 checkAcceleratorType(o[1]); |
| 201 } | 201 } |
| 202 | 202 |
| 203 core.int buildCounterAcceleratorTypesScopedListWarningData = 0; | 203 core.int buildCounterAcceleratorTypesScopedListWarningData = 0; |
| 204 buildAcceleratorTypesScopedListWarningData() { | 204 buildAcceleratorTypesScopedListWarningData() { |
| 205 var o = new api.AcceleratorTypesScopedListWarningData(); | 205 var o = new api.AcceleratorTypesScopedListWarningData(); |
| 206 buildCounterAcceleratorTypesScopedListWarningData++; | 206 buildCounterAcceleratorTypesScopedListWarningData++; |
| 207 if (buildCounterAcceleratorTypesScopedListWarningData < 3) { | 207 if (buildCounterAcceleratorTypesScopedListWarningData < 3) { |
| 208 o.key = "foo"; | 208 o.key = "foo"; |
| 209 o.value = "foo"; | 209 o.value = "foo"; |
| 210 } | 210 } |
| 211 buildCounterAcceleratorTypesScopedListWarningData--; | 211 buildCounterAcceleratorTypesScopedListWarningData--; |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkAcceleratorTypesScopedListWarningData(api.AcceleratorTypesScopedListWarning
Data o) { | 215 checkAcceleratorTypesScopedListWarningData(api.AcceleratorTypesScopedListWarning
Data o) { |
| 216 buildCounterAcceleratorTypesScopedListWarningData++; | 216 buildCounterAcceleratorTypesScopedListWarningData++; |
| 217 if (buildCounterAcceleratorTypesScopedListWarningData < 3) { | 217 if (buildCounterAcceleratorTypesScopedListWarningData < 3) { |
| 218 unittest.expect(o.key, unittest.equals('foo')); | 218 unittest.expect(o.key, unittest.equals('foo')); |
| 219 unittest.expect(o.value, unittest.equals('foo')); | 219 unittest.expect(o.value, unittest.equals('foo')); |
| 220 } | 220 } |
| 221 buildCounterAcceleratorTypesScopedListWarningData--; | 221 buildCounterAcceleratorTypesScopedListWarningData--; |
| 222 } | 222 } |
| 223 | 223 |
| 224 buildUnnamed2224() { | 224 buildUnnamed2242() { |
| 225 var o = new core.List<api.AcceleratorTypesScopedListWarningData>(); | 225 var o = new core.List<api.AcceleratorTypesScopedListWarningData>(); |
| 226 o.add(buildAcceleratorTypesScopedListWarningData()); | 226 o.add(buildAcceleratorTypesScopedListWarningData()); |
| 227 o.add(buildAcceleratorTypesScopedListWarningData()); | 227 o.add(buildAcceleratorTypesScopedListWarningData()); |
| 228 return o; | 228 return o; |
| 229 } | 229 } |
| 230 | 230 |
| 231 checkUnnamed2224(core.List<api.AcceleratorTypesScopedListWarningData> o) { | 231 checkUnnamed2242(core.List<api.AcceleratorTypesScopedListWarningData> o) { |
| 232 unittest.expect(o, unittest.hasLength(2)); | 232 unittest.expect(o, unittest.hasLength(2)); |
| 233 checkAcceleratorTypesScopedListWarningData(o[0]); | 233 checkAcceleratorTypesScopedListWarningData(o[0]); |
| 234 checkAcceleratorTypesScopedListWarningData(o[1]); | 234 checkAcceleratorTypesScopedListWarningData(o[1]); |
| 235 } | 235 } |
| 236 | 236 |
| 237 core.int buildCounterAcceleratorTypesScopedListWarning = 0; | 237 core.int buildCounterAcceleratorTypesScopedListWarning = 0; |
| 238 buildAcceleratorTypesScopedListWarning() { | 238 buildAcceleratorTypesScopedListWarning() { |
| 239 var o = new api.AcceleratorTypesScopedListWarning(); | 239 var o = new api.AcceleratorTypesScopedListWarning(); |
| 240 buildCounterAcceleratorTypesScopedListWarning++; | 240 buildCounterAcceleratorTypesScopedListWarning++; |
| 241 if (buildCounterAcceleratorTypesScopedListWarning < 3) { | 241 if (buildCounterAcceleratorTypesScopedListWarning < 3) { |
| 242 o.code = "foo"; | 242 o.code = "foo"; |
| 243 o.data = buildUnnamed2224(); | 243 o.data = buildUnnamed2242(); |
| 244 o.message = "foo"; | 244 o.message = "foo"; |
| 245 } | 245 } |
| 246 buildCounterAcceleratorTypesScopedListWarning--; | 246 buildCounterAcceleratorTypesScopedListWarning--; |
| 247 return o; | 247 return o; |
| 248 } | 248 } |
| 249 | 249 |
| 250 checkAcceleratorTypesScopedListWarning(api.AcceleratorTypesScopedListWarning o)
{ | 250 checkAcceleratorTypesScopedListWarning(api.AcceleratorTypesScopedListWarning o)
{ |
| 251 buildCounterAcceleratorTypesScopedListWarning++; | 251 buildCounterAcceleratorTypesScopedListWarning++; |
| 252 if (buildCounterAcceleratorTypesScopedListWarning < 3) { | 252 if (buildCounterAcceleratorTypesScopedListWarning < 3) { |
| 253 unittest.expect(o.code, unittest.equals('foo')); | 253 unittest.expect(o.code, unittest.equals('foo')); |
| 254 checkUnnamed2224(o.data); | 254 checkUnnamed2242(o.data); |
| 255 unittest.expect(o.message, unittest.equals('foo')); | 255 unittest.expect(o.message, unittest.equals('foo')); |
| 256 } | 256 } |
| 257 buildCounterAcceleratorTypesScopedListWarning--; | 257 buildCounterAcceleratorTypesScopedListWarning--; |
| 258 } | 258 } |
| 259 | 259 |
| 260 core.int buildCounterAcceleratorTypesScopedList = 0; | 260 core.int buildCounterAcceleratorTypesScopedList = 0; |
| 261 buildAcceleratorTypesScopedList() { | 261 buildAcceleratorTypesScopedList() { |
| 262 var o = new api.AcceleratorTypesScopedList(); | 262 var o = new api.AcceleratorTypesScopedList(); |
| 263 buildCounterAcceleratorTypesScopedList++; | 263 buildCounterAcceleratorTypesScopedList++; |
| 264 if (buildCounterAcceleratorTypesScopedList < 3) { | 264 if (buildCounterAcceleratorTypesScopedList < 3) { |
| 265 o.acceleratorTypes = buildUnnamed2223(); | 265 o.acceleratorTypes = buildUnnamed2241(); |
| 266 o.warning = buildAcceleratorTypesScopedListWarning(); | 266 o.warning = buildAcceleratorTypesScopedListWarning(); |
| 267 } | 267 } |
| 268 buildCounterAcceleratorTypesScopedList--; | 268 buildCounterAcceleratorTypesScopedList--; |
| 269 return o; | 269 return o; |
| 270 } | 270 } |
| 271 | 271 |
| 272 checkAcceleratorTypesScopedList(api.AcceleratorTypesScopedList o) { | 272 checkAcceleratorTypesScopedList(api.AcceleratorTypesScopedList o) { |
| 273 buildCounterAcceleratorTypesScopedList++; | 273 buildCounterAcceleratorTypesScopedList++; |
| 274 if (buildCounterAcceleratorTypesScopedList < 3) { | 274 if (buildCounterAcceleratorTypesScopedList < 3) { |
| 275 checkUnnamed2223(o.acceleratorTypes); | 275 checkUnnamed2241(o.acceleratorTypes); |
| 276 checkAcceleratorTypesScopedListWarning(o.warning); | 276 checkAcceleratorTypesScopedListWarning(o.warning); |
| 277 } | 277 } |
| 278 buildCounterAcceleratorTypesScopedList--; | 278 buildCounterAcceleratorTypesScopedList--; |
| 279 } | 279 } |
| 280 | 280 |
| 281 core.int buildCounterAccessConfig = 0; | 281 core.int buildCounterAccessConfig = 0; |
| 282 buildAccessConfig() { | 282 buildAccessConfig() { |
| 283 var o = new api.AccessConfig(); | 283 var o = new api.AccessConfig(); |
| 284 buildCounterAccessConfig++; | 284 buildCounterAccessConfig++; |
| 285 if (buildCounterAccessConfig < 3) { | 285 if (buildCounterAccessConfig < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 296 buildCounterAccessConfig++; | 296 buildCounterAccessConfig++; |
| 297 if (buildCounterAccessConfig < 3) { | 297 if (buildCounterAccessConfig < 3) { |
| 298 unittest.expect(o.kind, unittest.equals('foo')); | 298 unittest.expect(o.kind, unittest.equals('foo')); |
| 299 unittest.expect(o.name, unittest.equals('foo')); | 299 unittest.expect(o.name, unittest.equals('foo')); |
| 300 unittest.expect(o.natIP, unittest.equals('foo')); | 300 unittest.expect(o.natIP, unittest.equals('foo')); |
| 301 unittest.expect(o.type, unittest.equals('foo')); | 301 unittest.expect(o.type, unittest.equals('foo')); |
| 302 } | 302 } |
| 303 buildCounterAccessConfig--; | 303 buildCounterAccessConfig--; |
| 304 } | 304 } |
| 305 | 305 |
| 306 buildUnnamed2225() { | 306 buildUnnamed2243() { |
| 307 var o = new core.List<core.String>(); | 307 var o = new core.List<core.String>(); |
| 308 o.add("foo"); | 308 o.add("foo"); |
| 309 o.add("foo"); | 309 o.add("foo"); |
| 310 return o; | 310 return o; |
| 311 } | 311 } |
| 312 | 312 |
| 313 checkUnnamed2225(core.List<core.String> o) { | 313 checkUnnamed2243(core.List<core.String> o) { |
| 314 unittest.expect(o, unittest.hasLength(2)); | 314 unittest.expect(o, unittest.hasLength(2)); |
| 315 unittest.expect(o[0], unittest.equals('foo')); | 315 unittest.expect(o[0], unittest.equals('foo')); |
| 316 unittest.expect(o[1], unittest.equals('foo')); | 316 unittest.expect(o[1], unittest.equals('foo')); |
| 317 } | 317 } |
| 318 | 318 |
| 319 core.int buildCounterAddress = 0; | 319 core.int buildCounterAddress = 0; |
| 320 buildAddress() { | 320 buildAddress() { |
| 321 var o = new api.Address(); | 321 var o = new api.Address(); |
| 322 buildCounterAddress++; | 322 buildCounterAddress++; |
| 323 if (buildCounterAddress < 3) { | 323 if (buildCounterAddress < 3) { |
| 324 o.address = "foo"; | 324 o.address = "foo"; |
| 325 o.creationTimestamp = "foo"; | 325 o.creationTimestamp = "foo"; |
| 326 o.description = "foo"; | 326 o.description = "foo"; |
| 327 o.id = "foo"; | 327 o.id = "foo"; |
| 328 o.ipVersion = "foo"; | 328 o.ipVersion = "foo"; |
| 329 o.kind = "foo"; | 329 o.kind = "foo"; |
| 330 o.name = "foo"; | 330 o.name = "foo"; |
| 331 o.region = "foo"; | 331 o.region = "foo"; |
| 332 o.selfLink = "foo"; | 332 o.selfLink = "foo"; |
| 333 o.status = "foo"; | 333 o.status = "foo"; |
| 334 o.users = buildUnnamed2225(); | 334 o.users = buildUnnamed2243(); |
| 335 } | 335 } |
| 336 buildCounterAddress--; | 336 buildCounterAddress--; |
| 337 return o; | 337 return o; |
| 338 } | 338 } |
| 339 | 339 |
| 340 checkAddress(api.Address o) { | 340 checkAddress(api.Address o) { |
| 341 buildCounterAddress++; | 341 buildCounterAddress++; |
| 342 if (buildCounterAddress < 3) { | 342 if (buildCounterAddress < 3) { |
| 343 unittest.expect(o.address, unittest.equals('foo')); | 343 unittest.expect(o.address, unittest.equals('foo')); |
| 344 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 344 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 345 unittest.expect(o.description, unittest.equals('foo')); | 345 unittest.expect(o.description, unittest.equals('foo')); |
| 346 unittest.expect(o.id, unittest.equals('foo')); | 346 unittest.expect(o.id, unittest.equals('foo')); |
| 347 unittest.expect(o.ipVersion, unittest.equals('foo')); | 347 unittest.expect(o.ipVersion, unittest.equals('foo')); |
| 348 unittest.expect(o.kind, unittest.equals('foo')); | 348 unittest.expect(o.kind, unittest.equals('foo')); |
| 349 unittest.expect(o.name, unittest.equals('foo')); | 349 unittest.expect(o.name, unittest.equals('foo')); |
| 350 unittest.expect(o.region, unittest.equals('foo')); | 350 unittest.expect(o.region, unittest.equals('foo')); |
| 351 unittest.expect(o.selfLink, unittest.equals('foo')); | 351 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 352 unittest.expect(o.status, unittest.equals('foo')); | 352 unittest.expect(o.status, unittest.equals('foo')); |
| 353 checkUnnamed2225(o.users); | 353 checkUnnamed2243(o.users); |
| 354 } | 354 } |
| 355 buildCounterAddress--; | 355 buildCounterAddress--; |
| 356 } | 356 } |
| 357 | 357 |
| 358 buildUnnamed2226() { | 358 buildUnnamed2244() { |
| 359 var o = new core.Map<core.String, api.AddressesScopedList>(); | 359 var o = new core.Map<core.String, api.AddressesScopedList>(); |
| 360 o["x"] = buildAddressesScopedList(); | 360 o["x"] = buildAddressesScopedList(); |
| 361 o["y"] = buildAddressesScopedList(); | 361 o["y"] = buildAddressesScopedList(); |
| 362 return o; | 362 return o; |
| 363 } | 363 } |
| 364 | 364 |
| 365 checkUnnamed2226(core.Map<core.String, api.AddressesScopedList> o) { | 365 checkUnnamed2244(core.Map<core.String, api.AddressesScopedList> o) { |
| 366 unittest.expect(o, unittest.hasLength(2)); | 366 unittest.expect(o, unittest.hasLength(2)); |
| 367 checkAddressesScopedList(o["x"]); | 367 checkAddressesScopedList(o["x"]); |
| 368 checkAddressesScopedList(o["y"]); | 368 checkAddressesScopedList(o["y"]); |
| 369 } | 369 } |
| 370 | 370 |
| 371 core.int buildCounterAddressAggregatedList = 0; | 371 core.int buildCounterAddressAggregatedList = 0; |
| 372 buildAddressAggregatedList() { | 372 buildAddressAggregatedList() { |
| 373 var o = new api.AddressAggregatedList(); | 373 var o = new api.AddressAggregatedList(); |
| 374 buildCounterAddressAggregatedList++; | 374 buildCounterAddressAggregatedList++; |
| 375 if (buildCounterAddressAggregatedList < 3) { | 375 if (buildCounterAddressAggregatedList < 3) { |
| 376 o.id = "foo"; | 376 o.id = "foo"; |
| 377 o.items = buildUnnamed2226(); | 377 o.items = buildUnnamed2244(); |
| 378 o.kind = "foo"; | 378 o.kind = "foo"; |
| 379 o.nextPageToken = "foo"; | 379 o.nextPageToken = "foo"; |
| 380 o.selfLink = "foo"; | 380 o.selfLink = "foo"; |
| 381 } | 381 } |
| 382 buildCounterAddressAggregatedList--; | 382 buildCounterAddressAggregatedList--; |
| 383 return o; | 383 return o; |
| 384 } | 384 } |
| 385 | 385 |
| 386 checkAddressAggregatedList(api.AddressAggregatedList o) { | 386 checkAddressAggregatedList(api.AddressAggregatedList o) { |
| 387 buildCounterAddressAggregatedList++; | 387 buildCounterAddressAggregatedList++; |
| 388 if (buildCounterAddressAggregatedList < 3) { | 388 if (buildCounterAddressAggregatedList < 3) { |
| 389 unittest.expect(o.id, unittest.equals('foo')); | 389 unittest.expect(o.id, unittest.equals('foo')); |
| 390 checkUnnamed2226(o.items); | 390 checkUnnamed2244(o.items); |
| 391 unittest.expect(o.kind, unittest.equals('foo')); | 391 unittest.expect(o.kind, unittest.equals('foo')); |
| 392 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 392 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 393 unittest.expect(o.selfLink, unittest.equals('foo')); | 393 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 394 } | 394 } |
| 395 buildCounterAddressAggregatedList--; | 395 buildCounterAddressAggregatedList--; |
| 396 } | 396 } |
| 397 | 397 |
| 398 buildUnnamed2227() { | 398 buildUnnamed2245() { |
| 399 var o = new core.List<api.Address>(); | 399 var o = new core.List<api.Address>(); |
| 400 o.add(buildAddress()); | 400 o.add(buildAddress()); |
| 401 o.add(buildAddress()); | 401 o.add(buildAddress()); |
| 402 return o; | 402 return o; |
| 403 } | 403 } |
| 404 | 404 |
| 405 checkUnnamed2227(core.List<api.Address> o) { | 405 checkUnnamed2245(core.List<api.Address> o) { |
| 406 unittest.expect(o, unittest.hasLength(2)); | 406 unittest.expect(o, unittest.hasLength(2)); |
| 407 checkAddress(o[0]); | 407 checkAddress(o[0]); |
| 408 checkAddress(o[1]); | 408 checkAddress(o[1]); |
| 409 } | 409 } |
| 410 | 410 |
| 411 core.int buildCounterAddressList = 0; | 411 core.int buildCounterAddressList = 0; |
| 412 buildAddressList() { | 412 buildAddressList() { |
| 413 var o = new api.AddressList(); | 413 var o = new api.AddressList(); |
| 414 buildCounterAddressList++; | 414 buildCounterAddressList++; |
| 415 if (buildCounterAddressList < 3) { | 415 if (buildCounterAddressList < 3) { |
| 416 o.id = "foo"; | 416 o.id = "foo"; |
| 417 o.items = buildUnnamed2227(); | 417 o.items = buildUnnamed2245(); |
| 418 o.kind = "foo"; | 418 o.kind = "foo"; |
| 419 o.nextPageToken = "foo"; | 419 o.nextPageToken = "foo"; |
| 420 o.selfLink = "foo"; | 420 o.selfLink = "foo"; |
| 421 } | 421 } |
| 422 buildCounterAddressList--; | 422 buildCounterAddressList--; |
| 423 return o; | 423 return o; |
| 424 } | 424 } |
| 425 | 425 |
| 426 checkAddressList(api.AddressList o) { | 426 checkAddressList(api.AddressList o) { |
| 427 buildCounterAddressList++; | 427 buildCounterAddressList++; |
| 428 if (buildCounterAddressList < 3) { | 428 if (buildCounterAddressList < 3) { |
| 429 unittest.expect(o.id, unittest.equals('foo')); | 429 unittest.expect(o.id, unittest.equals('foo')); |
| 430 checkUnnamed2227(o.items); | 430 checkUnnamed2245(o.items); |
| 431 unittest.expect(o.kind, unittest.equals('foo')); | 431 unittest.expect(o.kind, unittest.equals('foo')); |
| 432 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 432 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 433 unittest.expect(o.selfLink, unittest.equals('foo')); | 433 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 434 } | 434 } |
| 435 buildCounterAddressList--; | 435 buildCounterAddressList--; |
| 436 } | 436 } |
| 437 | 437 |
| 438 buildUnnamed2228() { | 438 buildUnnamed2246() { |
| 439 var o = new core.List<api.Address>(); | 439 var o = new core.List<api.Address>(); |
| 440 o.add(buildAddress()); | 440 o.add(buildAddress()); |
| 441 o.add(buildAddress()); | 441 o.add(buildAddress()); |
| 442 return o; | 442 return o; |
| 443 } | 443 } |
| 444 | 444 |
| 445 checkUnnamed2228(core.List<api.Address> o) { | 445 checkUnnamed2246(core.List<api.Address> o) { |
| 446 unittest.expect(o, unittest.hasLength(2)); | 446 unittest.expect(o, unittest.hasLength(2)); |
| 447 checkAddress(o[0]); | 447 checkAddress(o[0]); |
| 448 checkAddress(o[1]); | 448 checkAddress(o[1]); |
| 449 } | 449 } |
| 450 | 450 |
| 451 core.int buildCounterAddressesScopedListWarningData = 0; | 451 core.int buildCounterAddressesScopedListWarningData = 0; |
| 452 buildAddressesScopedListWarningData() { | 452 buildAddressesScopedListWarningData() { |
| 453 var o = new api.AddressesScopedListWarningData(); | 453 var o = new api.AddressesScopedListWarningData(); |
| 454 buildCounterAddressesScopedListWarningData++; | 454 buildCounterAddressesScopedListWarningData++; |
| 455 if (buildCounterAddressesScopedListWarningData < 3) { | 455 if (buildCounterAddressesScopedListWarningData < 3) { |
| 456 o.key = "foo"; | 456 o.key = "foo"; |
| 457 o.value = "foo"; | 457 o.value = "foo"; |
| 458 } | 458 } |
| 459 buildCounterAddressesScopedListWarningData--; | 459 buildCounterAddressesScopedListWarningData--; |
| 460 return o; | 460 return o; |
| 461 } | 461 } |
| 462 | 462 |
| 463 checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) { | 463 checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) { |
| 464 buildCounterAddressesScopedListWarningData++; | 464 buildCounterAddressesScopedListWarningData++; |
| 465 if (buildCounterAddressesScopedListWarningData < 3) { | 465 if (buildCounterAddressesScopedListWarningData < 3) { |
| 466 unittest.expect(o.key, unittest.equals('foo')); | 466 unittest.expect(o.key, unittest.equals('foo')); |
| 467 unittest.expect(o.value, unittest.equals('foo')); | 467 unittest.expect(o.value, unittest.equals('foo')); |
| 468 } | 468 } |
| 469 buildCounterAddressesScopedListWarningData--; | 469 buildCounterAddressesScopedListWarningData--; |
| 470 } | 470 } |
| 471 | 471 |
| 472 buildUnnamed2229() { | 472 buildUnnamed2247() { |
| 473 var o = new core.List<api.AddressesScopedListWarningData>(); | 473 var o = new core.List<api.AddressesScopedListWarningData>(); |
| 474 o.add(buildAddressesScopedListWarningData()); | 474 o.add(buildAddressesScopedListWarningData()); |
| 475 o.add(buildAddressesScopedListWarningData()); | 475 o.add(buildAddressesScopedListWarningData()); |
| 476 return o; | 476 return o; |
| 477 } | 477 } |
| 478 | 478 |
| 479 checkUnnamed2229(core.List<api.AddressesScopedListWarningData> o) { | 479 checkUnnamed2247(core.List<api.AddressesScopedListWarningData> o) { |
| 480 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
| 481 checkAddressesScopedListWarningData(o[0]); | 481 checkAddressesScopedListWarningData(o[0]); |
| 482 checkAddressesScopedListWarningData(o[1]); | 482 checkAddressesScopedListWarningData(o[1]); |
| 483 } | 483 } |
| 484 | 484 |
| 485 core.int buildCounterAddressesScopedListWarning = 0; | 485 core.int buildCounterAddressesScopedListWarning = 0; |
| 486 buildAddressesScopedListWarning() { | 486 buildAddressesScopedListWarning() { |
| 487 var o = new api.AddressesScopedListWarning(); | 487 var o = new api.AddressesScopedListWarning(); |
| 488 buildCounterAddressesScopedListWarning++; | 488 buildCounterAddressesScopedListWarning++; |
| 489 if (buildCounterAddressesScopedListWarning < 3) { | 489 if (buildCounterAddressesScopedListWarning < 3) { |
| 490 o.code = "foo"; | 490 o.code = "foo"; |
| 491 o.data = buildUnnamed2229(); | 491 o.data = buildUnnamed2247(); |
| 492 o.message = "foo"; | 492 o.message = "foo"; |
| 493 } | 493 } |
| 494 buildCounterAddressesScopedListWarning--; | 494 buildCounterAddressesScopedListWarning--; |
| 495 return o; | 495 return o; |
| 496 } | 496 } |
| 497 | 497 |
| 498 checkAddressesScopedListWarning(api.AddressesScopedListWarning o) { | 498 checkAddressesScopedListWarning(api.AddressesScopedListWarning o) { |
| 499 buildCounterAddressesScopedListWarning++; | 499 buildCounterAddressesScopedListWarning++; |
| 500 if (buildCounterAddressesScopedListWarning < 3) { | 500 if (buildCounterAddressesScopedListWarning < 3) { |
| 501 unittest.expect(o.code, unittest.equals('foo')); | 501 unittest.expect(o.code, unittest.equals('foo')); |
| 502 checkUnnamed2229(o.data); | 502 checkUnnamed2247(o.data); |
| 503 unittest.expect(o.message, unittest.equals('foo')); | 503 unittest.expect(o.message, unittest.equals('foo')); |
| 504 } | 504 } |
| 505 buildCounterAddressesScopedListWarning--; | 505 buildCounterAddressesScopedListWarning--; |
| 506 } | 506 } |
| 507 | 507 |
| 508 core.int buildCounterAddressesScopedList = 0; | 508 core.int buildCounterAddressesScopedList = 0; |
| 509 buildAddressesScopedList() { | 509 buildAddressesScopedList() { |
| 510 var o = new api.AddressesScopedList(); | 510 var o = new api.AddressesScopedList(); |
| 511 buildCounterAddressesScopedList++; | 511 buildCounterAddressesScopedList++; |
| 512 if (buildCounterAddressesScopedList < 3) { | 512 if (buildCounterAddressesScopedList < 3) { |
| 513 o.addresses = buildUnnamed2228(); | 513 o.addresses = buildUnnamed2246(); |
| 514 o.warning = buildAddressesScopedListWarning(); | 514 o.warning = buildAddressesScopedListWarning(); |
| 515 } | 515 } |
| 516 buildCounterAddressesScopedList--; | 516 buildCounterAddressesScopedList--; |
| 517 return o; | 517 return o; |
| 518 } | 518 } |
| 519 | 519 |
| 520 checkAddressesScopedList(api.AddressesScopedList o) { | 520 checkAddressesScopedList(api.AddressesScopedList o) { |
| 521 buildCounterAddressesScopedList++; | 521 buildCounterAddressesScopedList++; |
| 522 if (buildCounterAddressesScopedList < 3) { | 522 if (buildCounterAddressesScopedList < 3) { |
| 523 checkUnnamed2228(o.addresses); | 523 checkUnnamed2246(o.addresses); |
| 524 checkAddressesScopedListWarning(o.warning); | 524 checkAddressesScopedListWarning(o.warning); |
| 525 } | 525 } |
| 526 buildCounterAddressesScopedList--; | 526 buildCounterAddressesScopedList--; |
| 527 } | 527 } |
| 528 | 528 |
| 529 core.int buildCounterAliasIpRange = 0; | 529 core.int buildCounterAliasIpRange = 0; |
| 530 buildAliasIpRange() { | 530 buildAliasIpRange() { |
| 531 var o = new api.AliasIpRange(); | 531 var o = new api.AliasIpRange(); |
| 532 buildCounterAliasIpRange++; | 532 buildCounterAliasIpRange++; |
| 533 if (buildCounterAliasIpRange < 3) { | 533 if (buildCounterAliasIpRange < 3) { |
| 534 o.ipCidrRange = "foo"; | 534 o.ipCidrRange = "foo"; |
| 535 o.subnetworkRangeName = "foo"; | 535 o.subnetworkRangeName = "foo"; |
| 536 } | 536 } |
| 537 buildCounterAliasIpRange--; | 537 buildCounterAliasIpRange--; |
| 538 return o; | 538 return o; |
| 539 } | 539 } |
| 540 | 540 |
| 541 checkAliasIpRange(api.AliasIpRange o) { | 541 checkAliasIpRange(api.AliasIpRange o) { |
| 542 buildCounterAliasIpRange++; | 542 buildCounterAliasIpRange++; |
| 543 if (buildCounterAliasIpRange < 3) { | 543 if (buildCounterAliasIpRange < 3) { |
| 544 unittest.expect(o.ipCidrRange, unittest.equals('foo')); | 544 unittest.expect(o.ipCidrRange, unittest.equals('foo')); |
| 545 unittest.expect(o.subnetworkRangeName, unittest.equals('foo')); | 545 unittest.expect(o.subnetworkRangeName, unittest.equals('foo')); |
| 546 } | 546 } |
| 547 buildCounterAliasIpRange--; | 547 buildCounterAliasIpRange--; |
| 548 } | 548 } |
| 549 | 549 |
| 550 buildUnnamed2230() { | 550 buildUnnamed2248() { |
| 551 var o = new core.List<core.String>(); | 551 var o = new core.List<core.String>(); |
| 552 o.add("foo"); | 552 o.add("foo"); |
| 553 o.add("foo"); | 553 o.add("foo"); |
| 554 return o; | 554 return o; |
| 555 } | 555 } |
| 556 | 556 |
| 557 checkUnnamed2230(core.List<core.String> o) { | 557 checkUnnamed2248(core.List<core.String> o) { |
| 558 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
| 559 unittest.expect(o[0], unittest.equals('foo')); | 559 unittest.expect(o[0], unittest.equals('foo')); |
| 560 unittest.expect(o[1], unittest.equals('foo')); | 560 unittest.expect(o[1], unittest.equals('foo')); |
| 561 } | 561 } |
| 562 | 562 |
| 563 core.int buildCounterAttachedDisk = 0; | 563 core.int buildCounterAttachedDisk = 0; |
| 564 buildAttachedDisk() { | 564 buildAttachedDisk() { |
| 565 var o = new api.AttachedDisk(); | 565 var o = new api.AttachedDisk(); |
| 566 buildCounterAttachedDisk++; | 566 buildCounterAttachedDisk++; |
| 567 if (buildCounterAttachedDisk < 3) { | 567 if (buildCounterAttachedDisk < 3) { |
| 568 o.autoDelete = true; | 568 o.autoDelete = true; |
| 569 o.boot = true; | 569 o.boot = true; |
| 570 o.deviceName = "foo"; | 570 o.deviceName = "foo"; |
| 571 o.diskEncryptionKey = buildCustomerEncryptionKey(); | 571 o.diskEncryptionKey = buildCustomerEncryptionKey(); |
| 572 o.index = 42; | 572 o.index = 42; |
| 573 o.initializeParams = buildAttachedDiskInitializeParams(); | 573 o.initializeParams = buildAttachedDiskInitializeParams(); |
| 574 o.interface = "foo"; | 574 o.interface = "foo"; |
| 575 o.kind = "foo"; | 575 o.kind = "foo"; |
| 576 o.licenses = buildUnnamed2230(); | 576 o.licenses = buildUnnamed2248(); |
| 577 o.mode = "foo"; | 577 o.mode = "foo"; |
| 578 o.source = "foo"; | 578 o.source = "foo"; |
| 579 o.type = "foo"; | 579 o.type = "foo"; |
| 580 } | 580 } |
| 581 buildCounterAttachedDisk--; | 581 buildCounterAttachedDisk--; |
| 582 return o; | 582 return o; |
| 583 } | 583 } |
| 584 | 584 |
| 585 checkAttachedDisk(api.AttachedDisk o) { | 585 checkAttachedDisk(api.AttachedDisk o) { |
| 586 buildCounterAttachedDisk++; | 586 buildCounterAttachedDisk++; |
| 587 if (buildCounterAttachedDisk < 3) { | 587 if (buildCounterAttachedDisk < 3) { |
| 588 unittest.expect(o.autoDelete, unittest.isTrue); | 588 unittest.expect(o.autoDelete, unittest.isTrue); |
| 589 unittest.expect(o.boot, unittest.isTrue); | 589 unittest.expect(o.boot, unittest.isTrue); |
| 590 unittest.expect(o.deviceName, unittest.equals('foo')); | 590 unittest.expect(o.deviceName, unittest.equals('foo')); |
| 591 checkCustomerEncryptionKey(o.diskEncryptionKey); | 591 checkCustomerEncryptionKey(o.diskEncryptionKey); |
| 592 unittest.expect(o.index, unittest.equals(42)); | 592 unittest.expect(o.index, unittest.equals(42)); |
| 593 checkAttachedDiskInitializeParams(o.initializeParams); | 593 checkAttachedDiskInitializeParams(o.initializeParams); |
| 594 unittest.expect(o.interface, unittest.equals('foo')); | 594 unittest.expect(o.interface, unittest.equals('foo')); |
| 595 unittest.expect(o.kind, unittest.equals('foo')); | 595 unittest.expect(o.kind, unittest.equals('foo')); |
| 596 checkUnnamed2230(o.licenses); | 596 checkUnnamed2248(o.licenses); |
| 597 unittest.expect(o.mode, unittest.equals('foo')); | 597 unittest.expect(o.mode, unittest.equals('foo')); |
| 598 unittest.expect(o.source, unittest.equals('foo')); | 598 unittest.expect(o.source, unittest.equals('foo')); |
| 599 unittest.expect(o.type, unittest.equals('foo')); | 599 unittest.expect(o.type, unittest.equals('foo')); |
| 600 } | 600 } |
| 601 buildCounterAttachedDisk--; | 601 buildCounterAttachedDisk--; |
| 602 } | 602 } |
| 603 | 603 |
| 604 core.int buildCounterAttachedDiskInitializeParams = 0; | 604 core.int buildCounterAttachedDiskInitializeParams = 0; |
| 605 buildAttachedDiskInitializeParams() { | 605 buildAttachedDiskInitializeParams() { |
| 606 var o = new api.AttachedDiskInitializeParams(); | 606 var o = new api.AttachedDiskInitializeParams(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 621 if (buildCounterAttachedDiskInitializeParams < 3) { | 621 if (buildCounterAttachedDiskInitializeParams < 3) { |
| 622 unittest.expect(o.diskName, unittest.equals('foo')); | 622 unittest.expect(o.diskName, unittest.equals('foo')); |
| 623 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 623 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
| 624 unittest.expect(o.diskType, unittest.equals('foo')); | 624 unittest.expect(o.diskType, unittest.equals('foo')); |
| 625 unittest.expect(o.sourceImage, unittest.equals('foo')); | 625 unittest.expect(o.sourceImage, unittest.equals('foo')); |
| 626 checkCustomerEncryptionKey(o.sourceImageEncryptionKey); | 626 checkCustomerEncryptionKey(o.sourceImageEncryptionKey); |
| 627 } | 627 } |
| 628 buildCounterAttachedDiskInitializeParams--; | 628 buildCounterAttachedDiskInitializeParams--; |
| 629 } | 629 } |
| 630 | 630 |
| 631 buildUnnamed2231() { | 631 buildUnnamed2249() { |
| 632 var o = new core.List<api.AutoscalerStatusDetails>(); | 632 var o = new core.List<api.AutoscalerStatusDetails>(); |
| 633 o.add(buildAutoscalerStatusDetails()); | 633 o.add(buildAutoscalerStatusDetails()); |
| 634 o.add(buildAutoscalerStatusDetails()); | 634 o.add(buildAutoscalerStatusDetails()); |
| 635 return o; | 635 return o; |
| 636 } | 636 } |
| 637 | 637 |
| 638 checkUnnamed2231(core.List<api.AutoscalerStatusDetails> o) { | 638 checkUnnamed2249(core.List<api.AutoscalerStatusDetails> o) { |
| 639 unittest.expect(o, unittest.hasLength(2)); | 639 unittest.expect(o, unittest.hasLength(2)); |
| 640 checkAutoscalerStatusDetails(o[0]); | 640 checkAutoscalerStatusDetails(o[0]); |
| 641 checkAutoscalerStatusDetails(o[1]); | 641 checkAutoscalerStatusDetails(o[1]); |
| 642 } | 642 } |
| 643 | 643 |
| 644 core.int buildCounterAutoscaler = 0; | 644 core.int buildCounterAutoscaler = 0; |
| 645 buildAutoscaler() { | 645 buildAutoscaler() { |
| 646 var o = new api.Autoscaler(); | 646 var o = new api.Autoscaler(); |
| 647 buildCounterAutoscaler++; | 647 buildCounterAutoscaler++; |
| 648 if (buildCounterAutoscaler < 3) { | 648 if (buildCounterAutoscaler < 3) { |
| 649 o.autoscalingPolicy = buildAutoscalingPolicy(); | 649 o.autoscalingPolicy = buildAutoscalingPolicy(); |
| 650 o.creationTimestamp = "foo"; | 650 o.creationTimestamp = "foo"; |
| 651 o.description = "foo"; | 651 o.description = "foo"; |
| 652 o.id = "foo"; | 652 o.id = "foo"; |
| 653 o.kind = "foo"; | 653 o.kind = "foo"; |
| 654 o.name = "foo"; | 654 o.name = "foo"; |
| 655 o.region = "foo"; | 655 o.region = "foo"; |
| 656 o.selfLink = "foo"; | 656 o.selfLink = "foo"; |
| 657 o.status = "foo"; | 657 o.status = "foo"; |
| 658 o.statusDetails = buildUnnamed2231(); | 658 o.statusDetails = buildUnnamed2249(); |
| 659 o.target = "foo"; | 659 o.target = "foo"; |
| 660 o.zone = "foo"; | 660 o.zone = "foo"; |
| 661 } | 661 } |
| 662 buildCounterAutoscaler--; | 662 buildCounterAutoscaler--; |
| 663 return o; | 663 return o; |
| 664 } | 664 } |
| 665 | 665 |
| 666 checkAutoscaler(api.Autoscaler o) { | 666 checkAutoscaler(api.Autoscaler o) { |
| 667 buildCounterAutoscaler++; | 667 buildCounterAutoscaler++; |
| 668 if (buildCounterAutoscaler < 3) { | 668 if (buildCounterAutoscaler < 3) { |
| 669 checkAutoscalingPolicy(o.autoscalingPolicy); | 669 checkAutoscalingPolicy(o.autoscalingPolicy); |
| 670 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 670 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 671 unittest.expect(o.description, unittest.equals('foo')); | 671 unittest.expect(o.description, unittest.equals('foo')); |
| 672 unittest.expect(o.id, unittest.equals('foo')); | 672 unittest.expect(o.id, unittest.equals('foo')); |
| 673 unittest.expect(o.kind, unittest.equals('foo')); | 673 unittest.expect(o.kind, unittest.equals('foo')); |
| 674 unittest.expect(o.name, unittest.equals('foo')); | 674 unittest.expect(o.name, unittest.equals('foo')); |
| 675 unittest.expect(o.region, unittest.equals('foo')); | 675 unittest.expect(o.region, unittest.equals('foo')); |
| 676 unittest.expect(o.selfLink, unittest.equals('foo')); | 676 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 677 unittest.expect(o.status, unittest.equals('foo')); | 677 unittest.expect(o.status, unittest.equals('foo')); |
| 678 checkUnnamed2231(o.statusDetails); | 678 checkUnnamed2249(o.statusDetails); |
| 679 unittest.expect(o.target, unittest.equals('foo')); | 679 unittest.expect(o.target, unittest.equals('foo')); |
| 680 unittest.expect(o.zone, unittest.equals('foo')); | 680 unittest.expect(o.zone, unittest.equals('foo')); |
| 681 } | 681 } |
| 682 buildCounterAutoscaler--; | 682 buildCounterAutoscaler--; |
| 683 } | 683 } |
| 684 | 684 |
| 685 buildUnnamed2232() { | 685 buildUnnamed2250() { |
| 686 var o = new core.Map<core.String, api.AutoscalersScopedList>(); | 686 var o = new core.Map<core.String, api.AutoscalersScopedList>(); |
| 687 o["x"] = buildAutoscalersScopedList(); | 687 o["x"] = buildAutoscalersScopedList(); |
| 688 o["y"] = buildAutoscalersScopedList(); | 688 o["y"] = buildAutoscalersScopedList(); |
| 689 return o; | 689 return o; |
| 690 } | 690 } |
| 691 | 691 |
| 692 checkUnnamed2232(core.Map<core.String, api.AutoscalersScopedList> o) { | 692 checkUnnamed2250(core.Map<core.String, api.AutoscalersScopedList> o) { |
| 693 unittest.expect(o, unittest.hasLength(2)); | 693 unittest.expect(o, unittest.hasLength(2)); |
| 694 checkAutoscalersScopedList(o["x"]); | 694 checkAutoscalersScopedList(o["x"]); |
| 695 checkAutoscalersScopedList(o["y"]); | 695 checkAutoscalersScopedList(o["y"]); |
| 696 } | 696 } |
| 697 | 697 |
| 698 core.int buildCounterAutoscalerAggregatedList = 0; | 698 core.int buildCounterAutoscalerAggregatedList = 0; |
| 699 buildAutoscalerAggregatedList() { | 699 buildAutoscalerAggregatedList() { |
| 700 var o = new api.AutoscalerAggregatedList(); | 700 var o = new api.AutoscalerAggregatedList(); |
| 701 buildCounterAutoscalerAggregatedList++; | 701 buildCounterAutoscalerAggregatedList++; |
| 702 if (buildCounterAutoscalerAggregatedList < 3) { | 702 if (buildCounterAutoscalerAggregatedList < 3) { |
| 703 o.id = "foo"; | 703 o.id = "foo"; |
| 704 o.items = buildUnnamed2232(); | 704 o.items = buildUnnamed2250(); |
| 705 o.kind = "foo"; | 705 o.kind = "foo"; |
| 706 o.nextPageToken = "foo"; | 706 o.nextPageToken = "foo"; |
| 707 o.selfLink = "foo"; | 707 o.selfLink = "foo"; |
| 708 } | 708 } |
| 709 buildCounterAutoscalerAggregatedList--; | 709 buildCounterAutoscalerAggregatedList--; |
| 710 return o; | 710 return o; |
| 711 } | 711 } |
| 712 | 712 |
| 713 checkAutoscalerAggregatedList(api.AutoscalerAggregatedList o) { | 713 checkAutoscalerAggregatedList(api.AutoscalerAggregatedList o) { |
| 714 buildCounterAutoscalerAggregatedList++; | 714 buildCounterAutoscalerAggregatedList++; |
| 715 if (buildCounterAutoscalerAggregatedList < 3) { | 715 if (buildCounterAutoscalerAggregatedList < 3) { |
| 716 unittest.expect(o.id, unittest.equals('foo')); | 716 unittest.expect(o.id, unittest.equals('foo')); |
| 717 checkUnnamed2232(o.items); | 717 checkUnnamed2250(o.items); |
| 718 unittest.expect(o.kind, unittest.equals('foo')); | 718 unittest.expect(o.kind, unittest.equals('foo')); |
| 719 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 719 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 720 unittest.expect(o.selfLink, unittest.equals('foo')); | 720 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 721 } | 721 } |
| 722 buildCounterAutoscalerAggregatedList--; | 722 buildCounterAutoscalerAggregatedList--; |
| 723 } | 723 } |
| 724 | 724 |
| 725 buildUnnamed2233() { | 725 buildUnnamed2251() { |
| 726 var o = new core.List<api.Autoscaler>(); | 726 var o = new core.List<api.Autoscaler>(); |
| 727 o.add(buildAutoscaler()); | 727 o.add(buildAutoscaler()); |
| 728 o.add(buildAutoscaler()); | 728 o.add(buildAutoscaler()); |
| 729 return o; | 729 return o; |
| 730 } | 730 } |
| 731 | 731 |
| 732 checkUnnamed2233(core.List<api.Autoscaler> o) { | 732 checkUnnamed2251(core.List<api.Autoscaler> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
| 734 checkAutoscaler(o[0]); | 734 checkAutoscaler(o[0]); |
| 735 checkAutoscaler(o[1]); | 735 checkAutoscaler(o[1]); |
| 736 } | 736 } |
| 737 | 737 |
| 738 core.int buildCounterAutoscalerList = 0; | 738 core.int buildCounterAutoscalerList = 0; |
| 739 buildAutoscalerList() { | 739 buildAutoscalerList() { |
| 740 var o = new api.AutoscalerList(); | 740 var o = new api.AutoscalerList(); |
| 741 buildCounterAutoscalerList++; | 741 buildCounterAutoscalerList++; |
| 742 if (buildCounterAutoscalerList < 3) { | 742 if (buildCounterAutoscalerList < 3) { |
| 743 o.id = "foo"; | 743 o.id = "foo"; |
| 744 o.items = buildUnnamed2233(); | 744 o.items = buildUnnamed2251(); |
| 745 o.kind = "foo"; | 745 o.kind = "foo"; |
| 746 o.nextPageToken = "foo"; | 746 o.nextPageToken = "foo"; |
| 747 o.selfLink = "foo"; | 747 o.selfLink = "foo"; |
| 748 } | 748 } |
| 749 buildCounterAutoscalerList--; | 749 buildCounterAutoscalerList--; |
| 750 return o; | 750 return o; |
| 751 } | 751 } |
| 752 | 752 |
| 753 checkAutoscalerList(api.AutoscalerList o) { | 753 checkAutoscalerList(api.AutoscalerList o) { |
| 754 buildCounterAutoscalerList++; | 754 buildCounterAutoscalerList++; |
| 755 if (buildCounterAutoscalerList < 3) { | 755 if (buildCounterAutoscalerList < 3) { |
| 756 unittest.expect(o.id, unittest.equals('foo')); | 756 unittest.expect(o.id, unittest.equals('foo')); |
| 757 checkUnnamed2233(o.items); | 757 checkUnnamed2251(o.items); |
| 758 unittest.expect(o.kind, unittest.equals('foo')); | 758 unittest.expect(o.kind, unittest.equals('foo')); |
| 759 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 759 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 760 unittest.expect(o.selfLink, unittest.equals('foo')); | 760 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 761 } | 761 } |
| 762 buildCounterAutoscalerList--; | 762 buildCounterAutoscalerList--; |
| 763 } | 763 } |
| 764 | 764 |
| 765 core.int buildCounterAutoscalerStatusDetails = 0; | 765 core.int buildCounterAutoscalerStatusDetails = 0; |
| 766 buildAutoscalerStatusDetails() { | 766 buildAutoscalerStatusDetails() { |
| 767 var o = new api.AutoscalerStatusDetails(); | 767 var o = new api.AutoscalerStatusDetails(); |
| 768 buildCounterAutoscalerStatusDetails++; | 768 buildCounterAutoscalerStatusDetails++; |
| 769 if (buildCounterAutoscalerStatusDetails < 3) { | 769 if (buildCounterAutoscalerStatusDetails < 3) { |
| 770 o.message = "foo"; | 770 o.message = "foo"; |
| 771 o.type = "foo"; | 771 o.type = "foo"; |
| 772 } | 772 } |
| 773 buildCounterAutoscalerStatusDetails--; | 773 buildCounterAutoscalerStatusDetails--; |
| 774 return o; | 774 return o; |
| 775 } | 775 } |
| 776 | 776 |
| 777 checkAutoscalerStatusDetails(api.AutoscalerStatusDetails o) { | 777 checkAutoscalerStatusDetails(api.AutoscalerStatusDetails o) { |
| 778 buildCounterAutoscalerStatusDetails++; | 778 buildCounterAutoscalerStatusDetails++; |
| 779 if (buildCounterAutoscalerStatusDetails < 3) { | 779 if (buildCounterAutoscalerStatusDetails < 3) { |
| 780 unittest.expect(o.message, unittest.equals('foo')); | 780 unittest.expect(o.message, unittest.equals('foo')); |
| 781 unittest.expect(o.type, unittest.equals('foo')); | 781 unittest.expect(o.type, unittest.equals('foo')); |
| 782 } | 782 } |
| 783 buildCounterAutoscalerStatusDetails--; | 783 buildCounterAutoscalerStatusDetails--; |
| 784 } | 784 } |
| 785 | 785 |
| 786 buildUnnamed2234() { | 786 buildUnnamed2252() { |
| 787 var o = new core.List<api.Autoscaler>(); | 787 var o = new core.List<api.Autoscaler>(); |
| 788 o.add(buildAutoscaler()); | 788 o.add(buildAutoscaler()); |
| 789 o.add(buildAutoscaler()); | 789 o.add(buildAutoscaler()); |
| 790 return o; | 790 return o; |
| 791 } | 791 } |
| 792 | 792 |
| 793 checkUnnamed2234(core.List<api.Autoscaler> o) { | 793 checkUnnamed2252(core.List<api.Autoscaler> o) { |
| 794 unittest.expect(o, unittest.hasLength(2)); | 794 unittest.expect(o, unittest.hasLength(2)); |
| 795 checkAutoscaler(o[0]); | 795 checkAutoscaler(o[0]); |
| 796 checkAutoscaler(o[1]); | 796 checkAutoscaler(o[1]); |
| 797 } | 797 } |
| 798 | 798 |
| 799 core.int buildCounterAutoscalersScopedListWarningData = 0; | 799 core.int buildCounterAutoscalersScopedListWarningData = 0; |
| 800 buildAutoscalersScopedListWarningData() { | 800 buildAutoscalersScopedListWarningData() { |
| 801 var o = new api.AutoscalersScopedListWarningData(); | 801 var o = new api.AutoscalersScopedListWarningData(); |
| 802 buildCounterAutoscalersScopedListWarningData++; | 802 buildCounterAutoscalersScopedListWarningData++; |
| 803 if (buildCounterAutoscalersScopedListWarningData < 3) { | 803 if (buildCounterAutoscalersScopedListWarningData < 3) { |
| 804 o.key = "foo"; | 804 o.key = "foo"; |
| 805 o.value = "foo"; | 805 o.value = "foo"; |
| 806 } | 806 } |
| 807 buildCounterAutoscalersScopedListWarningData--; | 807 buildCounterAutoscalersScopedListWarningData--; |
| 808 return o; | 808 return o; |
| 809 } | 809 } |
| 810 | 810 |
| 811 checkAutoscalersScopedListWarningData(api.AutoscalersScopedListWarningData o) { | 811 checkAutoscalersScopedListWarningData(api.AutoscalersScopedListWarningData o) { |
| 812 buildCounterAutoscalersScopedListWarningData++; | 812 buildCounterAutoscalersScopedListWarningData++; |
| 813 if (buildCounterAutoscalersScopedListWarningData < 3) { | 813 if (buildCounterAutoscalersScopedListWarningData < 3) { |
| 814 unittest.expect(o.key, unittest.equals('foo')); | 814 unittest.expect(o.key, unittest.equals('foo')); |
| 815 unittest.expect(o.value, unittest.equals('foo')); | 815 unittest.expect(o.value, unittest.equals('foo')); |
| 816 } | 816 } |
| 817 buildCounterAutoscalersScopedListWarningData--; | 817 buildCounterAutoscalersScopedListWarningData--; |
| 818 } | 818 } |
| 819 | 819 |
| 820 buildUnnamed2235() { | 820 buildUnnamed2253() { |
| 821 var o = new core.List<api.AutoscalersScopedListWarningData>(); | 821 var o = new core.List<api.AutoscalersScopedListWarningData>(); |
| 822 o.add(buildAutoscalersScopedListWarningData()); | 822 o.add(buildAutoscalersScopedListWarningData()); |
| 823 o.add(buildAutoscalersScopedListWarningData()); | 823 o.add(buildAutoscalersScopedListWarningData()); |
| 824 return o; | 824 return o; |
| 825 } | 825 } |
| 826 | 826 |
| 827 checkUnnamed2235(core.List<api.AutoscalersScopedListWarningData> o) { | 827 checkUnnamed2253(core.List<api.AutoscalersScopedListWarningData> o) { |
| 828 unittest.expect(o, unittest.hasLength(2)); | 828 unittest.expect(o, unittest.hasLength(2)); |
| 829 checkAutoscalersScopedListWarningData(o[0]); | 829 checkAutoscalersScopedListWarningData(o[0]); |
| 830 checkAutoscalersScopedListWarningData(o[1]); | 830 checkAutoscalersScopedListWarningData(o[1]); |
| 831 } | 831 } |
| 832 | 832 |
| 833 core.int buildCounterAutoscalersScopedListWarning = 0; | 833 core.int buildCounterAutoscalersScopedListWarning = 0; |
| 834 buildAutoscalersScopedListWarning() { | 834 buildAutoscalersScopedListWarning() { |
| 835 var o = new api.AutoscalersScopedListWarning(); | 835 var o = new api.AutoscalersScopedListWarning(); |
| 836 buildCounterAutoscalersScopedListWarning++; | 836 buildCounterAutoscalersScopedListWarning++; |
| 837 if (buildCounterAutoscalersScopedListWarning < 3) { | 837 if (buildCounterAutoscalersScopedListWarning < 3) { |
| 838 o.code = "foo"; | 838 o.code = "foo"; |
| 839 o.data = buildUnnamed2235(); | 839 o.data = buildUnnamed2253(); |
| 840 o.message = "foo"; | 840 o.message = "foo"; |
| 841 } | 841 } |
| 842 buildCounterAutoscalersScopedListWarning--; | 842 buildCounterAutoscalersScopedListWarning--; |
| 843 return o; | 843 return o; |
| 844 } | 844 } |
| 845 | 845 |
| 846 checkAutoscalersScopedListWarning(api.AutoscalersScopedListWarning o) { | 846 checkAutoscalersScopedListWarning(api.AutoscalersScopedListWarning o) { |
| 847 buildCounterAutoscalersScopedListWarning++; | 847 buildCounterAutoscalersScopedListWarning++; |
| 848 if (buildCounterAutoscalersScopedListWarning < 3) { | 848 if (buildCounterAutoscalersScopedListWarning < 3) { |
| 849 unittest.expect(o.code, unittest.equals('foo')); | 849 unittest.expect(o.code, unittest.equals('foo')); |
| 850 checkUnnamed2235(o.data); | 850 checkUnnamed2253(o.data); |
| 851 unittest.expect(o.message, unittest.equals('foo')); | 851 unittest.expect(o.message, unittest.equals('foo')); |
| 852 } | 852 } |
| 853 buildCounterAutoscalersScopedListWarning--; | 853 buildCounterAutoscalersScopedListWarning--; |
| 854 } | 854 } |
| 855 | 855 |
| 856 core.int buildCounterAutoscalersScopedList = 0; | 856 core.int buildCounterAutoscalersScopedList = 0; |
| 857 buildAutoscalersScopedList() { | 857 buildAutoscalersScopedList() { |
| 858 var o = new api.AutoscalersScopedList(); | 858 var o = new api.AutoscalersScopedList(); |
| 859 buildCounterAutoscalersScopedList++; | 859 buildCounterAutoscalersScopedList++; |
| 860 if (buildCounterAutoscalersScopedList < 3) { | 860 if (buildCounterAutoscalersScopedList < 3) { |
| 861 o.autoscalers = buildUnnamed2234(); | 861 o.autoscalers = buildUnnamed2252(); |
| 862 o.warning = buildAutoscalersScopedListWarning(); | 862 o.warning = buildAutoscalersScopedListWarning(); |
| 863 } | 863 } |
| 864 buildCounterAutoscalersScopedList--; | 864 buildCounterAutoscalersScopedList--; |
| 865 return o; | 865 return o; |
| 866 } | 866 } |
| 867 | 867 |
| 868 checkAutoscalersScopedList(api.AutoscalersScopedList o) { | 868 checkAutoscalersScopedList(api.AutoscalersScopedList o) { |
| 869 buildCounterAutoscalersScopedList++; | 869 buildCounterAutoscalersScopedList++; |
| 870 if (buildCounterAutoscalersScopedList < 3) { | 870 if (buildCounterAutoscalersScopedList < 3) { |
| 871 checkUnnamed2234(o.autoscalers); | 871 checkUnnamed2252(o.autoscalers); |
| 872 checkAutoscalersScopedListWarning(o.warning); | 872 checkAutoscalersScopedListWarning(o.warning); |
| 873 } | 873 } |
| 874 buildCounterAutoscalersScopedList--; | 874 buildCounterAutoscalersScopedList--; |
| 875 } | 875 } |
| 876 | 876 |
| 877 buildUnnamed2236() { | 877 buildUnnamed2254() { |
| 878 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); | 878 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); |
| 879 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 879 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
| 880 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 880 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
| 881 return o; | 881 return o; |
| 882 } | 882 } |
| 883 | 883 |
| 884 checkUnnamed2236(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { | 884 checkUnnamed2254(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { |
| 885 unittest.expect(o, unittest.hasLength(2)); | 885 unittest.expect(o, unittest.hasLength(2)); |
| 886 checkAutoscalingPolicyCustomMetricUtilization(o[0]); | 886 checkAutoscalingPolicyCustomMetricUtilization(o[0]); |
| 887 checkAutoscalingPolicyCustomMetricUtilization(o[1]); | 887 checkAutoscalingPolicyCustomMetricUtilization(o[1]); |
| 888 } | 888 } |
| 889 | 889 |
| 890 core.int buildCounterAutoscalingPolicy = 0; | 890 core.int buildCounterAutoscalingPolicy = 0; |
| 891 buildAutoscalingPolicy() { | 891 buildAutoscalingPolicy() { |
| 892 var o = new api.AutoscalingPolicy(); | 892 var o = new api.AutoscalingPolicy(); |
| 893 buildCounterAutoscalingPolicy++; | 893 buildCounterAutoscalingPolicy++; |
| 894 if (buildCounterAutoscalingPolicy < 3) { | 894 if (buildCounterAutoscalingPolicy < 3) { |
| 895 o.coolDownPeriodSec = 42; | 895 o.coolDownPeriodSec = 42; |
| 896 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); | 896 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); |
| 897 o.customMetricUtilizations = buildUnnamed2236(); | 897 o.customMetricUtilizations = buildUnnamed2254(); |
| 898 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); | 898 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); |
| 899 o.maxNumReplicas = 42; | 899 o.maxNumReplicas = 42; |
| 900 o.minNumReplicas = 42; | 900 o.minNumReplicas = 42; |
| 901 } | 901 } |
| 902 buildCounterAutoscalingPolicy--; | 902 buildCounterAutoscalingPolicy--; |
| 903 return o; | 903 return o; |
| 904 } | 904 } |
| 905 | 905 |
| 906 checkAutoscalingPolicy(api.AutoscalingPolicy o) { | 906 checkAutoscalingPolicy(api.AutoscalingPolicy o) { |
| 907 buildCounterAutoscalingPolicy++; | 907 buildCounterAutoscalingPolicy++; |
| 908 if (buildCounterAutoscalingPolicy < 3) { | 908 if (buildCounterAutoscalingPolicy < 3) { |
| 909 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); | 909 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); |
| 910 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); | 910 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); |
| 911 checkUnnamed2236(o.customMetricUtilizations); | 911 checkUnnamed2254(o.customMetricUtilizations); |
| 912 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); | 912 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); |
| 913 unittest.expect(o.maxNumReplicas, unittest.equals(42)); | 913 unittest.expect(o.maxNumReplicas, unittest.equals(42)); |
| 914 unittest.expect(o.minNumReplicas, unittest.equals(42)); | 914 unittest.expect(o.minNumReplicas, unittest.equals(42)); |
| 915 } | 915 } |
| 916 buildCounterAutoscalingPolicy--; | 916 buildCounterAutoscalingPolicy--; |
| 917 } | 917 } |
| 918 | 918 |
| 919 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; | 919 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; |
| 920 buildAutoscalingPolicyCpuUtilization() { | 920 buildAutoscalingPolicyCpuUtilization() { |
| 921 var o = new api.AutoscalingPolicyCpuUtilization(); | 921 var o = new api.AutoscalingPolicyCpuUtilization(); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 unittest.expect(o.description, unittest.equals('foo')); | 1038 unittest.expect(o.description, unittest.equals('foo')); |
| 1039 unittest.expect(o.enableCdn, unittest.isTrue); | 1039 unittest.expect(o.enableCdn, unittest.isTrue); |
| 1040 unittest.expect(o.id, unittest.equals('foo')); | 1040 unittest.expect(o.id, unittest.equals('foo')); |
| 1041 unittest.expect(o.kind, unittest.equals('foo')); | 1041 unittest.expect(o.kind, unittest.equals('foo')); |
| 1042 unittest.expect(o.name, unittest.equals('foo')); | 1042 unittest.expect(o.name, unittest.equals('foo')); |
| 1043 unittest.expect(o.selfLink, unittest.equals('foo')); | 1043 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1044 } | 1044 } |
| 1045 buildCounterBackendBucket--; | 1045 buildCounterBackendBucket--; |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 buildUnnamed2237() { | 1048 buildUnnamed2255() { |
| 1049 var o = new core.List<api.BackendBucket>(); | 1049 var o = new core.List<api.BackendBucket>(); |
| 1050 o.add(buildBackendBucket()); | 1050 o.add(buildBackendBucket()); |
| 1051 o.add(buildBackendBucket()); | 1051 o.add(buildBackendBucket()); |
| 1052 return o; | 1052 return o; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 checkUnnamed2237(core.List<api.BackendBucket> o) { | 1055 checkUnnamed2255(core.List<api.BackendBucket> o) { |
| 1056 unittest.expect(o, unittest.hasLength(2)); | 1056 unittest.expect(o, unittest.hasLength(2)); |
| 1057 checkBackendBucket(o[0]); | 1057 checkBackendBucket(o[0]); |
| 1058 checkBackendBucket(o[1]); | 1058 checkBackendBucket(o[1]); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 core.int buildCounterBackendBucketList = 0; | 1061 core.int buildCounterBackendBucketList = 0; |
| 1062 buildBackendBucketList() { | 1062 buildBackendBucketList() { |
| 1063 var o = new api.BackendBucketList(); | 1063 var o = new api.BackendBucketList(); |
| 1064 buildCounterBackendBucketList++; | 1064 buildCounterBackendBucketList++; |
| 1065 if (buildCounterBackendBucketList < 3) { | 1065 if (buildCounterBackendBucketList < 3) { |
| 1066 o.id = "foo"; | 1066 o.id = "foo"; |
| 1067 o.items = buildUnnamed2237(); | 1067 o.items = buildUnnamed2255(); |
| 1068 o.kind = "foo"; | 1068 o.kind = "foo"; |
| 1069 o.nextPageToken = "foo"; | 1069 o.nextPageToken = "foo"; |
| 1070 o.selfLink = "foo"; | 1070 o.selfLink = "foo"; |
| 1071 } | 1071 } |
| 1072 buildCounterBackendBucketList--; | 1072 buildCounterBackendBucketList--; |
| 1073 return o; | 1073 return o; |
| 1074 } | 1074 } |
| 1075 | 1075 |
| 1076 checkBackendBucketList(api.BackendBucketList o) { | 1076 checkBackendBucketList(api.BackendBucketList o) { |
| 1077 buildCounterBackendBucketList++; | 1077 buildCounterBackendBucketList++; |
| 1078 if (buildCounterBackendBucketList < 3) { | 1078 if (buildCounterBackendBucketList < 3) { |
| 1079 unittest.expect(o.id, unittest.equals('foo')); | 1079 unittest.expect(o.id, unittest.equals('foo')); |
| 1080 checkUnnamed2237(o.items); | 1080 checkUnnamed2255(o.items); |
| 1081 unittest.expect(o.kind, unittest.equals('foo')); | 1081 unittest.expect(o.kind, unittest.equals('foo')); |
| 1082 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1082 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1083 unittest.expect(o.selfLink, unittest.equals('foo')); | 1083 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1084 } | 1084 } |
| 1085 buildCounterBackendBucketList--; | 1085 buildCounterBackendBucketList--; |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 buildUnnamed2238() { | 1088 buildUnnamed2256() { |
| 1089 var o = new core.List<api.Backend>(); | 1089 var o = new core.List<api.Backend>(); |
| 1090 o.add(buildBackend()); | 1090 o.add(buildBackend()); |
| 1091 o.add(buildBackend()); | 1091 o.add(buildBackend()); |
| 1092 return o; | 1092 return o; |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 checkUnnamed2238(core.List<api.Backend> o) { | 1095 checkUnnamed2256(core.List<api.Backend> o) { |
| 1096 unittest.expect(o, unittest.hasLength(2)); | 1096 unittest.expect(o, unittest.hasLength(2)); |
| 1097 checkBackend(o[0]); | 1097 checkBackend(o[0]); |
| 1098 checkBackend(o[1]); | 1098 checkBackend(o[1]); |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 buildUnnamed2239() { | 1101 buildUnnamed2257() { |
| 1102 var o = new core.List<core.String>(); | 1102 var o = new core.List<core.String>(); |
| 1103 o.add("foo"); | 1103 o.add("foo"); |
| 1104 o.add("foo"); | 1104 o.add("foo"); |
| 1105 return o; | 1105 return o; |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 checkUnnamed2239(core.List<core.String> o) { | 1108 checkUnnamed2257(core.List<core.String> o) { |
| 1109 unittest.expect(o, unittest.hasLength(2)); | 1109 unittest.expect(o, unittest.hasLength(2)); |
| 1110 unittest.expect(o[0], unittest.equals('foo')); | 1110 unittest.expect(o[0], unittest.equals('foo')); |
| 1111 unittest.expect(o[1], unittest.equals('foo')); | 1111 unittest.expect(o[1], unittest.equals('foo')); |
| 1112 } | 1112 } |
| 1113 | 1113 |
| 1114 core.int buildCounterBackendService = 0; | 1114 core.int buildCounterBackendService = 0; |
| 1115 buildBackendService() { | 1115 buildBackendService() { |
| 1116 var o = new api.BackendService(); | 1116 var o = new api.BackendService(); |
| 1117 buildCounterBackendService++; | 1117 buildCounterBackendService++; |
| 1118 if (buildCounterBackendService < 3) { | 1118 if (buildCounterBackendService < 3) { |
| 1119 o.affinityCookieTtlSec = 42; | 1119 o.affinityCookieTtlSec = 42; |
| 1120 o.backends = buildUnnamed2238(); | 1120 o.backends = buildUnnamed2256(); |
| 1121 o.cdnPolicy = buildBackendServiceCdnPolicy(); | 1121 o.cdnPolicy = buildBackendServiceCdnPolicy(); |
| 1122 o.connectionDraining = buildConnectionDraining(); | 1122 o.connectionDraining = buildConnectionDraining(); |
| 1123 o.creationTimestamp = "foo"; | 1123 o.creationTimestamp = "foo"; |
| 1124 o.description = "foo"; | 1124 o.description = "foo"; |
| 1125 o.enableCDN = true; | 1125 o.enableCDN = true; |
| 1126 o.fingerprint = "foo"; | 1126 o.fingerprint = "foo"; |
| 1127 o.healthChecks = buildUnnamed2239(); | 1127 o.healthChecks = buildUnnamed2257(); |
| 1128 o.iap = buildBackendServiceIAP(); | 1128 o.iap = buildBackendServiceIAP(); |
| 1129 o.id = "foo"; | 1129 o.id = "foo"; |
| 1130 o.kind = "foo"; | 1130 o.kind = "foo"; |
| 1131 o.loadBalancingScheme = "foo"; | 1131 o.loadBalancingScheme = "foo"; |
| 1132 o.name = "foo"; | 1132 o.name = "foo"; |
| 1133 o.port = 42; | 1133 o.port = 42; |
| 1134 o.portName = "foo"; | 1134 o.portName = "foo"; |
| 1135 o.protocol = "foo"; | 1135 o.protocol = "foo"; |
| 1136 o.region = "foo"; | 1136 o.region = "foo"; |
| 1137 o.selfLink = "foo"; | 1137 o.selfLink = "foo"; |
| 1138 o.sessionAffinity = "foo"; | 1138 o.sessionAffinity = "foo"; |
| 1139 o.timeoutSec = 42; | 1139 o.timeoutSec = 42; |
| 1140 } | 1140 } |
| 1141 buildCounterBackendService--; | 1141 buildCounterBackendService--; |
| 1142 return o; | 1142 return o; |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 checkBackendService(api.BackendService o) { | 1145 checkBackendService(api.BackendService o) { |
| 1146 buildCounterBackendService++; | 1146 buildCounterBackendService++; |
| 1147 if (buildCounterBackendService < 3) { | 1147 if (buildCounterBackendService < 3) { |
| 1148 unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); | 1148 unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); |
| 1149 checkUnnamed2238(o.backends); | 1149 checkUnnamed2256(o.backends); |
| 1150 checkBackendServiceCdnPolicy(o.cdnPolicy); | 1150 checkBackendServiceCdnPolicy(o.cdnPolicy); |
| 1151 checkConnectionDraining(o.connectionDraining); | 1151 checkConnectionDraining(o.connectionDraining); |
| 1152 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1152 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 1153 unittest.expect(o.description, unittest.equals('foo')); | 1153 unittest.expect(o.description, unittest.equals('foo')); |
| 1154 unittest.expect(o.enableCDN, unittest.isTrue); | 1154 unittest.expect(o.enableCDN, unittest.isTrue); |
| 1155 unittest.expect(o.fingerprint, unittest.equals('foo')); | 1155 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 1156 checkUnnamed2239(o.healthChecks); | 1156 checkUnnamed2257(o.healthChecks); |
| 1157 checkBackendServiceIAP(o.iap); | 1157 checkBackendServiceIAP(o.iap); |
| 1158 unittest.expect(o.id, unittest.equals('foo')); | 1158 unittest.expect(o.id, unittest.equals('foo')); |
| 1159 unittest.expect(o.kind, unittest.equals('foo')); | 1159 unittest.expect(o.kind, unittest.equals('foo')); |
| 1160 unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); | 1160 unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); |
| 1161 unittest.expect(o.name, unittest.equals('foo')); | 1161 unittest.expect(o.name, unittest.equals('foo')); |
| 1162 unittest.expect(o.port, unittest.equals(42)); | 1162 unittest.expect(o.port, unittest.equals(42)); |
| 1163 unittest.expect(o.portName, unittest.equals('foo')); | 1163 unittest.expect(o.portName, unittest.equals('foo')); |
| 1164 unittest.expect(o.protocol, unittest.equals('foo')); | 1164 unittest.expect(o.protocol, unittest.equals('foo')); |
| 1165 unittest.expect(o.region, unittest.equals('foo')); | 1165 unittest.expect(o.region, unittest.equals('foo')); |
| 1166 unittest.expect(o.selfLink, unittest.equals('foo')); | 1166 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1167 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 1167 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
| 1168 unittest.expect(o.timeoutSec, unittest.equals(42)); | 1168 unittest.expect(o.timeoutSec, unittest.equals(42)); |
| 1169 } | 1169 } |
| 1170 buildCounterBackendService--; | 1170 buildCounterBackendService--; |
| 1171 } | 1171 } |
| 1172 | 1172 |
| 1173 buildUnnamed2240() { | 1173 buildUnnamed2258() { |
| 1174 var o = new core.Map<core.String, api.BackendServicesScopedList>(); | 1174 var o = new core.Map<core.String, api.BackendServicesScopedList>(); |
| 1175 o["x"] = buildBackendServicesScopedList(); | 1175 o["x"] = buildBackendServicesScopedList(); |
| 1176 o["y"] = buildBackendServicesScopedList(); | 1176 o["y"] = buildBackendServicesScopedList(); |
| 1177 return o; | 1177 return o; |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 checkUnnamed2240(core.Map<core.String, api.BackendServicesScopedList> o) { | 1180 checkUnnamed2258(core.Map<core.String, api.BackendServicesScopedList> o) { |
| 1181 unittest.expect(o, unittest.hasLength(2)); | 1181 unittest.expect(o, unittest.hasLength(2)); |
| 1182 checkBackendServicesScopedList(o["x"]); | 1182 checkBackendServicesScopedList(o["x"]); |
| 1183 checkBackendServicesScopedList(o["y"]); | 1183 checkBackendServicesScopedList(o["y"]); |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 core.int buildCounterBackendServiceAggregatedList = 0; | 1186 core.int buildCounterBackendServiceAggregatedList = 0; |
| 1187 buildBackendServiceAggregatedList() { | 1187 buildBackendServiceAggregatedList() { |
| 1188 var o = new api.BackendServiceAggregatedList(); | 1188 var o = new api.BackendServiceAggregatedList(); |
| 1189 buildCounterBackendServiceAggregatedList++; | 1189 buildCounterBackendServiceAggregatedList++; |
| 1190 if (buildCounterBackendServiceAggregatedList < 3) { | 1190 if (buildCounterBackendServiceAggregatedList < 3) { |
| 1191 o.id = "foo"; | 1191 o.id = "foo"; |
| 1192 o.items = buildUnnamed2240(); | 1192 o.items = buildUnnamed2258(); |
| 1193 o.kind = "foo"; | 1193 o.kind = "foo"; |
| 1194 o.nextPageToken = "foo"; | 1194 o.nextPageToken = "foo"; |
| 1195 o.selfLink = "foo"; | 1195 o.selfLink = "foo"; |
| 1196 } | 1196 } |
| 1197 buildCounterBackendServiceAggregatedList--; | 1197 buildCounterBackendServiceAggregatedList--; |
| 1198 return o; | 1198 return o; |
| 1199 } | 1199 } |
| 1200 | 1200 |
| 1201 checkBackendServiceAggregatedList(api.BackendServiceAggregatedList o) { | 1201 checkBackendServiceAggregatedList(api.BackendServiceAggregatedList o) { |
| 1202 buildCounterBackendServiceAggregatedList++; | 1202 buildCounterBackendServiceAggregatedList++; |
| 1203 if (buildCounterBackendServiceAggregatedList < 3) { | 1203 if (buildCounterBackendServiceAggregatedList < 3) { |
| 1204 unittest.expect(o.id, unittest.equals('foo')); | 1204 unittest.expect(o.id, unittest.equals('foo')); |
| 1205 checkUnnamed2240(o.items); | 1205 checkUnnamed2258(o.items); |
| 1206 unittest.expect(o.kind, unittest.equals('foo')); | 1206 unittest.expect(o.kind, unittest.equals('foo')); |
| 1207 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1207 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1208 unittest.expect(o.selfLink, unittest.equals('foo')); | 1208 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1209 } | 1209 } |
| 1210 buildCounterBackendServiceAggregatedList--; | 1210 buildCounterBackendServiceAggregatedList--; |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 core.int buildCounterBackendServiceCdnPolicy = 0; | 1213 core.int buildCounterBackendServiceCdnPolicy = 0; |
| 1214 buildBackendServiceCdnPolicy() { | 1214 buildBackendServiceCdnPolicy() { |
| 1215 var o = new api.BackendServiceCdnPolicy(); | 1215 var o = new api.BackendServiceCdnPolicy(); |
| 1216 buildCounterBackendServiceCdnPolicy++; | 1216 buildCounterBackendServiceCdnPolicy++; |
| 1217 if (buildCounterBackendServiceCdnPolicy < 3) { | 1217 if (buildCounterBackendServiceCdnPolicy < 3) { |
| 1218 o.cacheKeyPolicy = buildCacheKeyPolicy(); | 1218 o.cacheKeyPolicy = buildCacheKeyPolicy(); |
| 1219 } | 1219 } |
| 1220 buildCounterBackendServiceCdnPolicy--; | 1220 buildCounterBackendServiceCdnPolicy--; |
| 1221 return o; | 1221 return o; |
| 1222 } | 1222 } |
| 1223 | 1223 |
| 1224 checkBackendServiceCdnPolicy(api.BackendServiceCdnPolicy o) { | 1224 checkBackendServiceCdnPolicy(api.BackendServiceCdnPolicy o) { |
| 1225 buildCounterBackendServiceCdnPolicy++; | 1225 buildCounterBackendServiceCdnPolicy++; |
| 1226 if (buildCounterBackendServiceCdnPolicy < 3) { | 1226 if (buildCounterBackendServiceCdnPolicy < 3) { |
| 1227 checkCacheKeyPolicy(o.cacheKeyPolicy); | 1227 checkCacheKeyPolicy(o.cacheKeyPolicy); |
| 1228 } | 1228 } |
| 1229 buildCounterBackendServiceCdnPolicy--; | 1229 buildCounterBackendServiceCdnPolicy--; |
| 1230 } | 1230 } |
| 1231 | 1231 |
| 1232 buildUnnamed2241() { | 1232 buildUnnamed2259() { |
| 1233 var o = new core.List<api.HealthStatus>(); | 1233 var o = new core.List<api.HealthStatus>(); |
| 1234 o.add(buildHealthStatus()); | 1234 o.add(buildHealthStatus()); |
| 1235 o.add(buildHealthStatus()); | 1235 o.add(buildHealthStatus()); |
| 1236 return o; | 1236 return o; |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 checkUnnamed2241(core.List<api.HealthStatus> o) { | 1239 checkUnnamed2259(core.List<api.HealthStatus> o) { |
| 1240 unittest.expect(o, unittest.hasLength(2)); | 1240 unittest.expect(o, unittest.hasLength(2)); |
| 1241 checkHealthStatus(o[0]); | 1241 checkHealthStatus(o[0]); |
| 1242 checkHealthStatus(o[1]); | 1242 checkHealthStatus(o[1]); |
| 1243 } | 1243 } |
| 1244 | 1244 |
| 1245 core.int buildCounterBackendServiceGroupHealth = 0; | 1245 core.int buildCounterBackendServiceGroupHealth = 0; |
| 1246 buildBackendServiceGroupHealth() { | 1246 buildBackendServiceGroupHealth() { |
| 1247 var o = new api.BackendServiceGroupHealth(); | 1247 var o = new api.BackendServiceGroupHealth(); |
| 1248 buildCounterBackendServiceGroupHealth++; | 1248 buildCounterBackendServiceGroupHealth++; |
| 1249 if (buildCounterBackendServiceGroupHealth < 3) { | 1249 if (buildCounterBackendServiceGroupHealth < 3) { |
| 1250 o.healthStatus = buildUnnamed2241(); | 1250 o.healthStatus = buildUnnamed2259(); |
| 1251 o.kind = "foo"; | 1251 o.kind = "foo"; |
| 1252 } | 1252 } |
| 1253 buildCounterBackendServiceGroupHealth--; | 1253 buildCounterBackendServiceGroupHealth--; |
| 1254 return o; | 1254 return o; |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { | 1257 checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { |
| 1258 buildCounterBackendServiceGroupHealth++; | 1258 buildCounterBackendServiceGroupHealth++; |
| 1259 if (buildCounterBackendServiceGroupHealth < 3) { | 1259 if (buildCounterBackendServiceGroupHealth < 3) { |
| 1260 checkUnnamed2241(o.healthStatus); | 1260 checkUnnamed2259(o.healthStatus); |
| 1261 unittest.expect(o.kind, unittest.equals('foo')); | 1261 unittest.expect(o.kind, unittest.equals('foo')); |
| 1262 } | 1262 } |
| 1263 buildCounterBackendServiceGroupHealth--; | 1263 buildCounterBackendServiceGroupHealth--; |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 core.int buildCounterBackendServiceIAP = 0; | 1266 core.int buildCounterBackendServiceIAP = 0; |
| 1267 buildBackendServiceIAP() { | 1267 buildBackendServiceIAP() { |
| 1268 var o = new api.BackendServiceIAP(); | 1268 var o = new api.BackendServiceIAP(); |
| 1269 buildCounterBackendServiceIAP++; | 1269 buildCounterBackendServiceIAP++; |
| 1270 if (buildCounterBackendServiceIAP < 3) { | 1270 if (buildCounterBackendServiceIAP < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1281 buildCounterBackendServiceIAP++; | 1281 buildCounterBackendServiceIAP++; |
| 1282 if (buildCounterBackendServiceIAP < 3) { | 1282 if (buildCounterBackendServiceIAP < 3) { |
| 1283 unittest.expect(o.enabled, unittest.isTrue); | 1283 unittest.expect(o.enabled, unittest.isTrue); |
| 1284 unittest.expect(o.oauth2ClientId, unittest.equals('foo')); | 1284 unittest.expect(o.oauth2ClientId, unittest.equals('foo')); |
| 1285 unittest.expect(o.oauth2ClientSecret, unittest.equals('foo')); | 1285 unittest.expect(o.oauth2ClientSecret, unittest.equals('foo')); |
| 1286 unittest.expect(o.oauth2ClientSecretSha256, unittest.equals('foo')); | 1286 unittest.expect(o.oauth2ClientSecretSha256, unittest.equals('foo')); |
| 1287 } | 1287 } |
| 1288 buildCounterBackendServiceIAP--; | 1288 buildCounterBackendServiceIAP--; |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 buildUnnamed2242() { | 1291 buildUnnamed2260() { |
| 1292 var o = new core.List<api.BackendService>(); | 1292 var o = new core.List<api.BackendService>(); |
| 1293 o.add(buildBackendService()); | 1293 o.add(buildBackendService()); |
| 1294 o.add(buildBackendService()); | 1294 o.add(buildBackendService()); |
| 1295 return o; | 1295 return o; |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 checkUnnamed2242(core.List<api.BackendService> o) { | 1298 checkUnnamed2260(core.List<api.BackendService> o) { |
| 1299 unittest.expect(o, unittest.hasLength(2)); | 1299 unittest.expect(o, unittest.hasLength(2)); |
| 1300 checkBackendService(o[0]); | 1300 checkBackendService(o[0]); |
| 1301 checkBackendService(o[1]); | 1301 checkBackendService(o[1]); |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 core.int buildCounterBackendServiceList = 0; | 1304 core.int buildCounterBackendServiceList = 0; |
| 1305 buildBackendServiceList() { | 1305 buildBackendServiceList() { |
| 1306 var o = new api.BackendServiceList(); | 1306 var o = new api.BackendServiceList(); |
| 1307 buildCounterBackendServiceList++; | 1307 buildCounterBackendServiceList++; |
| 1308 if (buildCounterBackendServiceList < 3) { | 1308 if (buildCounterBackendServiceList < 3) { |
| 1309 o.id = "foo"; | 1309 o.id = "foo"; |
| 1310 o.items = buildUnnamed2242(); | 1310 o.items = buildUnnamed2260(); |
| 1311 o.kind = "foo"; | 1311 o.kind = "foo"; |
| 1312 o.nextPageToken = "foo"; | 1312 o.nextPageToken = "foo"; |
| 1313 o.selfLink = "foo"; | 1313 o.selfLink = "foo"; |
| 1314 } | 1314 } |
| 1315 buildCounterBackendServiceList--; | 1315 buildCounterBackendServiceList--; |
| 1316 return o; | 1316 return o; |
| 1317 } | 1317 } |
| 1318 | 1318 |
| 1319 checkBackendServiceList(api.BackendServiceList o) { | 1319 checkBackendServiceList(api.BackendServiceList o) { |
| 1320 buildCounterBackendServiceList++; | 1320 buildCounterBackendServiceList++; |
| 1321 if (buildCounterBackendServiceList < 3) { | 1321 if (buildCounterBackendServiceList < 3) { |
| 1322 unittest.expect(o.id, unittest.equals('foo')); | 1322 unittest.expect(o.id, unittest.equals('foo')); |
| 1323 checkUnnamed2242(o.items); | 1323 checkUnnamed2260(o.items); |
| 1324 unittest.expect(o.kind, unittest.equals('foo')); | 1324 unittest.expect(o.kind, unittest.equals('foo')); |
| 1325 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1325 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1326 unittest.expect(o.selfLink, unittest.equals('foo')); | 1326 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1327 } | 1327 } |
| 1328 buildCounterBackendServiceList--; | 1328 buildCounterBackendServiceList--; |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 buildUnnamed2243() { | 1331 buildUnnamed2261() { |
| 1332 var o = new core.List<api.BackendService>(); | 1332 var o = new core.List<api.BackendService>(); |
| 1333 o.add(buildBackendService()); | 1333 o.add(buildBackendService()); |
| 1334 o.add(buildBackendService()); | 1334 o.add(buildBackendService()); |
| 1335 return o; | 1335 return o; |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 checkUnnamed2243(core.List<api.BackendService> o) { | 1338 checkUnnamed2261(core.List<api.BackendService> o) { |
| 1339 unittest.expect(o, unittest.hasLength(2)); | 1339 unittest.expect(o, unittest.hasLength(2)); |
| 1340 checkBackendService(o[0]); | 1340 checkBackendService(o[0]); |
| 1341 checkBackendService(o[1]); | 1341 checkBackendService(o[1]); |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 core.int buildCounterBackendServicesScopedListWarningData = 0; | 1344 core.int buildCounterBackendServicesScopedListWarningData = 0; |
| 1345 buildBackendServicesScopedListWarningData() { | 1345 buildBackendServicesScopedListWarningData() { |
| 1346 var o = new api.BackendServicesScopedListWarningData(); | 1346 var o = new api.BackendServicesScopedListWarningData(); |
| 1347 buildCounterBackendServicesScopedListWarningData++; | 1347 buildCounterBackendServicesScopedListWarningData++; |
| 1348 if (buildCounterBackendServicesScopedListWarningData < 3) { | 1348 if (buildCounterBackendServicesScopedListWarningData < 3) { |
| 1349 o.key = "foo"; | 1349 o.key = "foo"; |
| 1350 o.value = "foo"; | 1350 o.value = "foo"; |
| 1351 } | 1351 } |
| 1352 buildCounterBackendServicesScopedListWarningData--; | 1352 buildCounterBackendServicesScopedListWarningData--; |
| 1353 return o; | 1353 return o; |
| 1354 } | 1354 } |
| 1355 | 1355 |
| 1356 checkBackendServicesScopedListWarningData(api.BackendServicesScopedListWarningDa
ta o) { | 1356 checkBackendServicesScopedListWarningData(api.BackendServicesScopedListWarningDa
ta o) { |
| 1357 buildCounterBackendServicesScopedListWarningData++; | 1357 buildCounterBackendServicesScopedListWarningData++; |
| 1358 if (buildCounterBackendServicesScopedListWarningData < 3) { | 1358 if (buildCounterBackendServicesScopedListWarningData < 3) { |
| 1359 unittest.expect(o.key, unittest.equals('foo')); | 1359 unittest.expect(o.key, unittest.equals('foo')); |
| 1360 unittest.expect(o.value, unittest.equals('foo')); | 1360 unittest.expect(o.value, unittest.equals('foo')); |
| 1361 } | 1361 } |
| 1362 buildCounterBackendServicesScopedListWarningData--; | 1362 buildCounterBackendServicesScopedListWarningData--; |
| 1363 } | 1363 } |
| 1364 | 1364 |
| 1365 buildUnnamed2244() { | 1365 buildUnnamed2262() { |
| 1366 var o = new core.List<api.BackendServicesScopedListWarningData>(); | 1366 var o = new core.List<api.BackendServicesScopedListWarningData>(); |
| 1367 o.add(buildBackendServicesScopedListWarningData()); | 1367 o.add(buildBackendServicesScopedListWarningData()); |
| 1368 o.add(buildBackendServicesScopedListWarningData()); | 1368 o.add(buildBackendServicesScopedListWarningData()); |
| 1369 return o; | 1369 return o; |
| 1370 } | 1370 } |
| 1371 | 1371 |
| 1372 checkUnnamed2244(core.List<api.BackendServicesScopedListWarningData> o) { | 1372 checkUnnamed2262(core.List<api.BackendServicesScopedListWarningData> o) { |
| 1373 unittest.expect(o, unittest.hasLength(2)); | 1373 unittest.expect(o, unittest.hasLength(2)); |
| 1374 checkBackendServicesScopedListWarningData(o[0]); | 1374 checkBackendServicesScopedListWarningData(o[0]); |
| 1375 checkBackendServicesScopedListWarningData(o[1]); | 1375 checkBackendServicesScopedListWarningData(o[1]); |
| 1376 } | 1376 } |
| 1377 | 1377 |
| 1378 core.int buildCounterBackendServicesScopedListWarning = 0; | 1378 core.int buildCounterBackendServicesScopedListWarning = 0; |
| 1379 buildBackendServicesScopedListWarning() { | 1379 buildBackendServicesScopedListWarning() { |
| 1380 var o = new api.BackendServicesScopedListWarning(); | 1380 var o = new api.BackendServicesScopedListWarning(); |
| 1381 buildCounterBackendServicesScopedListWarning++; | 1381 buildCounterBackendServicesScopedListWarning++; |
| 1382 if (buildCounterBackendServicesScopedListWarning < 3) { | 1382 if (buildCounterBackendServicesScopedListWarning < 3) { |
| 1383 o.code = "foo"; | 1383 o.code = "foo"; |
| 1384 o.data = buildUnnamed2244(); | 1384 o.data = buildUnnamed2262(); |
| 1385 o.message = "foo"; | 1385 o.message = "foo"; |
| 1386 } | 1386 } |
| 1387 buildCounterBackendServicesScopedListWarning--; | 1387 buildCounterBackendServicesScopedListWarning--; |
| 1388 return o; | 1388 return o; |
| 1389 } | 1389 } |
| 1390 | 1390 |
| 1391 checkBackendServicesScopedListWarning(api.BackendServicesScopedListWarning o) { | 1391 checkBackendServicesScopedListWarning(api.BackendServicesScopedListWarning o) { |
| 1392 buildCounterBackendServicesScopedListWarning++; | 1392 buildCounterBackendServicesScopedListWarning++; |
| 1393 if (buildCounterBackendServicesScopedListWarning < 3) { | 1393 if (buildCounterBackendServicesScopedListWarning < 3) { |
| 1394 unittest.expect(o.code, unittest.equals('foo')); | 1394 unittest.expect(o.code, unittest.equals('foo')); |
| 1395 checkUnnamed2244(o.data); | 1395 checkUnnamed2262(o.data); |
| 1396 unittest.expect(o.message, unittest.equals('foo')); | 1396 unittest.expect(o.message, unittest.equals('foo')); |
| 1397 } | 1397 } |
| 1398 buildCounterBackendServicesScopedListWarning--; | 1398 buildCounterBackendServicesScopedListWarning--; |
| 1399 } | 1399 } |
| 1400 | 1400 |
| 1401 core.int buildCounterBackendServicesScopedList = 0; | 1401 core.int buildCounterBackendServicesScopedList = 0; |
| 1402 buildBackendServicesScopedList() { | 1402 buildBackendServicesScopedList() { |
| 1403 var o = new api.BackendServicesScopedList(); | 1403 var o = new api.BackendServicesScopedList(); |
| 1404 buildCounterBackendServicesScopedList++; | 1404 buildCounterBackendServicesScopedList++; |
| 1405 if (buildCounterBackendServicesScopedList < 3) { | 1405 if (buildCounterBackendServicesScopedList < 3) { |
| 1406 o.backendServices = buildUnnamed2243(); | 1406 o.backendServices = buildUnnamed2261(); |
| 1407 o.warning = buildBackendServicesScopedListWarning(); | 1407 o.warning = buildBackendServicesScopedListWarning(); |
| 1408 } | 1408 } |
| 1409 buildCounterBackendServicesScopedList--; | 1409 buildCounterBackendServicesScopedList--; |
| 1410 return o; | 1410 return o; |
| 1411 } | 1411 } |
| 1412 | 1412 |
| 1413 checkBackendServicesScopedList(api.BackendServicesScopedList o) { | 1413 checkBackendServicesScopedList(api.BackendServicesScopedList o) { |
| 1414 buildCounterBackendServicesScopedList++; | 1414 buildCounterBackendServicesScopedList++; |
| 1415 if (buildCounterBackendServicesScopedList < 3) { | 1415 if (buildCounterBackendServicesScopedList < 3) { |
| 1416 checkUnnamed2243(o.backendServices); | 1416 checkUnnamed2261(o.backendServices); |
| 1417 checkBackendServicesScopedListWarning(o.warning); | 1417 checkBackendServicesScopedListWarning(o.warning); |
| 1418 } | 1418 } |
| 1419 buildCounterBackendServicesScopedList--; | 1419 buildCounterBackendServicesScopedList--; |
| 1420 } | 1420 } |
| 1421 | 1421 |
| 1422 core.int buildCounterCacheInvalidationRule = 0; | 1422 core.int buildCounterCacheInvalidationRule = 0; |
| 1423 buildCacheInvalidationRule() { | 1423 buildCacheInvalidationRule() { |
| 1424 var o = new api.CacheInvalidationRule(); | 1424 var o = new api.CacheInvalidationRule(); |
| 1425 buildCounterCacheInvalidationRule++; | 1425 buildCounterCacheInvalidationRule++; |
| 1426 if (buildCounterCacheInvalidationRule < 3) { | 1426 if (buildCounterCacheInvalidationRule < 3) { |
| 1427 o.host = "foo"; | 1427 o.host = "foo"; |
| 1428 o.path = "foo"; | 1428 o.path = "foo"; |
| 1429 } | 1429 } |
| 1430 buildCounterCacheInvalidationRule--; | 1430 buildCounterCacheInvalidationRule--; |
| 1431 return o; | 1431 return o; |
| 1432 } | 1432 } |
| 1433 | 1433 |
| 1434 checkCacheInvalidationRule(api.CacheInvalidationRule o) { | 1434 checkCacheInvalidationRule(api.CacheInvalidationRule o) { |
| 1435 buildCounterCacheInvalidationRule++; | 1435 buildCounterCacheInvalidationRule++; |
| 1436 if (buildCounterCacheInvalidationRule < 3) { | 1436 if (buildCounterCacheInvalidationRule < 3) { |
| 1437 unittest.expect(o.host, unittest.equals('foo')); | 1437 unittest.expect(o.host, unittest.equals('foo')); |
| 1438 unittest.expect(o.path, unittest.equals('foo')); | 1438 unittest.expect(o.path, unittest.equals('foo')); |
| 1439 } | 1439 } |
| 1440 buildCounterCacheInvalidationRule--; | 1440 buildCounterCacheInvalidationRule--; |
| 1441 } | 1441 } |
| 1442 | 1442 |
| 1443 buildUnnamed2245() { | 1443 buildUnnamed2263() { |
| 1444 var o = new core.List<core.String>(); | 1444 var o = new core.List<core.String>(); |
| 1445 o.add("foo"); | 1445 o.add("foo"); |
| 1446 o.add("foo"); | 1446 o.add("foo"); |
| 1447 return o; | 1447 return o; |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 checkUnnamed2245(core.List<core.String> o) { | 1450 checkUnnamed2263(core.List<core.String> o) { |
| 1451 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
| 1452 unittest.expect(o[0], unittest.equals('foo')); | 1452 unittest.expect(o[0], unittest.equals('foo')); |
| 1453 unittest.expect(o[1], unittest.equals('foo')); | 1453 unittest.expect(o[1], unittest.equals('foo')); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 buildUnnamed2246() { | 1456 buildUnnamed2264() { |
| 1457 var o = new core.List<core.String>(); | 1457 var o = new core.List<core.String>(); |
| 1458 o.add("foo"); | 1458 o.add("foo"); |
| 1459 o.add("foo"); | 1459 o.add("foo"); |
| 1460 return o; | 1460 return o; |
| 1461 } | 1461 } |
| 1462 | 1462 |
| 1463 checkUnnamed2246(core.List<core.String> o) { | 1463 checkUnnamed2264(core.List<core.String> o) { |
| 1464 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
| 1465 unittest.expect(o[0], unittest.equals('foo')); | 1465 unittest.expect(o[0], unittest.equals('foo')); |
| 1466 unittest.expect(o[1], unittest.equals('foo')); | 1466 unittest.expect(o[1], unittest.equals('foo')); |
| 1467 } | 1467 } |
| 1468 | 1468 |
| 1469 core.int buildCounterCacheKeyPolicy = 0; | 1469 core.int buildCounterCacheKeyPolicy = 0; |
| 1470 buildCacheKeyPolicy() { | 1470 buildCacheKeyPolicy() { |
| 1471 var o = new api.CacheKeyPolicy(); | 1471 var o = new api.CacheKeyPolicy(); |
| 1472 buildCounterCacheKeyPolicy++; | 1472 buildCounterCacheKeyPolicy++; |
| 1473 if (buildCounterCacheKeyPolicy < 3) { | 1473 if (buildCounterCacheKeyPolicy < 3) { |
| 1474 o.includeHost = true; | 1474 o.includeHost = true; |
| 1475 o.includeProtocol = true; | 1475 o.includeProtocol = true; |
| 1476 o.includeQueryString = true; | 1476 o.includeQueryString = true; |
| 1477 o.queryStringBlacklist = buildUnnamed2245(); | 1477 o.queryStringBlacklist = buildUnnamed2263(); |
| 1478 o.queryStringWhitelist = buildUnnamed2246(); | 1478 o.queryStringWhitelist = buildUnnamed2264(); |
| 1479 } | 1479 } |
| 1480 buildCounterCacheKeyPolicy--; | 1480 buildCounterCacheKeyPolicy--; |
| 1481 return o; | 1481 return o; |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 checkCacheKeyPolicy(api.CacheKeyPolicy o) { | 1484 checkCacheKeyPolicy(api.CacheKeyPolicy o) { |
| 1485 buildCounterCacheKeyPolicy++; | 1485 buildCounterCacheKeyPolicy++; |
| 1486 if (buildCounterCacheKeyPolicy < 3) { | 1486 if (buildCounterCacheKeyPolicy < 3) { |
| 1487 unittest.expect(o.includeHost, unittest.isTrue); | 1487 unittest.expect(o.includeHost, unittest.isTrue); |
| 1488 unittest.expect(o.includeProtocol, unittest.isTrue); | 1488 unittest.expect(o.includeProtocol, unittest.isTrue); |
| 1489 unittest.expect(o.includeQueryString, unittest.isTrue); | 1489 unittest.expect(o.includeQueryString, unittest.isTrue); |
| 1490 checkUnnamed2245(o.queryStringBlacklist); | 1490 checkUnnamed2263(o.queryStringBlacklist); |
| 1491 checkUnnamed2246(o.queryStringWhitelist); | 1491 checkUnnamed2264(o.queryStringWhitelist); |
| 1492 } | 1492 } |
| 1493 buildCounterCacheKeyPolicy--; | 1493 buildCounterCacheKeyPolicy--; |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 buildUnnamed2247() { | 1496 buildUnnamed2265() { |
| 1497 var o = new core.List<api.ResourceCommitment>(); | 1497 var o = new core.List<api.ResourceCommitment>(); |
| 1498 o.add(buildResourceCommitment()); | 1498 o.add(buildResourceCommitment()); |
| 1499 o.add(buildResourceCommitment()); | 1499 o.add(buildResourceCommitment()); |
| 1500 return o; | 1500 return o; |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 checkUnnamed2247(core.List<api.ResourceCommitment> o) { | 1503 checkUnnamed2265(core.List<api.ResourceCommitment> o) { |
| 1504 unittest.expect(o, unittest.hasLength(2)); | 1504 unittest.expect(o, unittest.hasLength(2)); |
| 1505 checkResourceCommitment(o[0]); | 1505 checkResourceCommitment(o[0]); |
| 1506 checkResourceCommitment(o[1]); | 1506 checkResourceCommitment(o[1]); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 core.int buildCounterCommitment = 0; | 1509 core.int buildCounterCommitment = 0; |
| 1510 buildCommitment() { | 1510 buildCommitment() { |
| 1511 var o = new api.Commitment(); | 1511 var o = new api.Commitment(); |
| 1512 buildCounterCommitment++; | 1512 buildCounterCommitment++; |
| 1513 if (buildCounterCommitment < 3) { | 1513 if (buildCounterCommitment < 3) { |
| 1514 o.creationTimestamp = "foo"; | 1514 o.creationTimestamp = "foo"; |
| 1515 o.description = "foo"; | 1515 o.description = "foo"; |
| 1516 o.endTimestamp = "foo"; | 1516 o.endTimestamp = "foo"; |
| 1517 o.id = "foo"; | 1517 o.id = "foo"; |
| 1518 o.kind = "foo"; | 1518 o.kind = "foo"; |
| 1519 o.name = "foo"; | 1519 o.name = "foo"; |
| 1520 o.plan = "foo"; | 1520 o.plan = "foo"; |
| 1521 o.region = "foo"; | 1521 o.region = "foo"; |
| 1522 o.resources = buildUnnamed2247(); | 1522 o.resources = buildUnnamed2265(); |
| 1523 o.selfLink = "foo"; | 1523 o.selfLink = "foo"; |
| 1524 o.startTimestamp = "foo"; | 1524 o.startTimestamp = "foo"; |
| 1525 o.status = "foo"; | 1525 o.status = "foo"; |
| 1526 o.statusMessage = "foo"; | 1526 o.statusMessage = "foo"; |
| 1527 } | 1527 } |
| 1528 buildCounterCommitment--; | 1528 buildCounterCommitment--; |
| 1529 return o; | 1529 return o; |
| 1530 } | 1530 } |
| 1531 | 1531 |
| 1532 checkCommitment(api.Commitment o) { | 1532 checkCommitment(api.Commitment o) { |
| 1533 buildCounterCommitment++; | 1533 buildCounterCommitment++; |
| 1534 if (buildCounterCommitment < 3) { | 1534 if (buildCounterCommitment < 3) { |
| 1535 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1535 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 1536 unittest.expect(o.description, unittest.equals('foo')); | 1536 unittest.expect(o.description, unittest.equals('foo')); |
| 1537 unittest.expect(o.endTimestamp, unittest.equals('foo')); | 1537 unittest.expect(o.endTimestamp, unittest.equals('foo')); |
| 1538 unittest.expect(o.id, unittest.equals('foo')); | 1538 unittest.expect(o.id, unittest.equals('foo')); |
| 1539 unittest.expect(o.kind, unittest.equals('foo')); | 1539 unittest.expect(o.kind, unittest.equals('foo')); |
| 1540 unittest.expect(o.name, unittest.equals('foo')); | 1540 unittest.expect(o.name, unittest.equals('foo')); |
| 1541 unittest.expect(o.plan, unittest.equals('foo')); | 1541 unittest.expect(o.plan, unittest.equals('foo')); |
| 1542 unittest.expect(o.region, unittest.equals('foo')); | 1542 unittest.expect(o.region, unittest.equals('foo')); |
| 1543 checkUnnamed2247(o.resources); | 1543 checkUnnamed2265(o.resources); |
| 1544 unittest.expect(o.selfLink, unittest.equals('foo')); | 1544 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1545 unittest.expect(o.startTimestamp, unittest.equals('foo')); | 1545 unittest.expect(o.startTimestamp, unittest.equals('foo')); |
| 1546 unittest.expect(o.status, unittest.equals('foo')); | 1546 unittest.expect(o.status, unittest.equals('foo')); |
| 1547 unittest.expect(o.statusMessage, unittest.equals('foo')); | 1547 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 1548 } | 1548 } |
| 1549 buildCounterCommitment--; | 1549 buildCounterCommitment--; |
| 1550 } | 1550 } |
| 1551 | 1551 |
| 1552 buildUnnamed2248() { | 1552 buildUnnamed2266() { |
| 1553 var o = new core.Map<core.String, api.CommitmentsScopedList>(); | 1553 var o = new core.Map<core.String, api.CommitmentsScopedList>(); |
| 1554 o["x"] = buildCommitmentsScopedList(); | 1554 o["x"] = buildCommitmentsScopedList(); |
| 1555 o["y"] = buildCommitmentsScopedList(); | 1555 o["y"] = buildCommitmentsScopedList(); |
| 1556 return o; | 1556 return o; |
| 1557 } | 1557 } |
| 1558 | 1558 |
| 1559 checkUnnamed2248(core.Map<core.String, api.CommitmentsScopedList> o) { | 1559 checkUnnamed2266(core.Map<core.String, api.CommitmentsScopedList> o) { |
| 1560 unittest.expect(o, unittest.hasLength(2)); | 1560 unittest.expect(o, unittest.hasLength(2)); |
| 1561 checkCommitmentsScopedList(o["x"]); | 1561 checkCommitmentsScopedList(o["x"]); |
| 1562 checkCommitmentsScopedList(o["y"]); | 1562 checkCommitmentsScopedList(o["y"]); |
| 1563 } | 1563 } |
| 1564 | 1564 |
| 1565 core.int buildCounterCommitmentAggregatedList = 0; | 1565 core.int buildCounterCommitmentAggregatedList = 0; |
| 1566 buildCommitmentAggregatedList() { | 1566 buildCommitmentAggregatedList() { |
| 1567 var o = new api.CommitmentAggregatedList(); | 1567 var o = new api.CommitmentAggregatedList(); |
| 1568 buildCounterCommitmentAggregatedList++; | 1568 buildCounterCommitmentAggregatedList++; |
| 1569 if (buildCounterCommitmentAggregatedList < 3) { | 1569 if (buildCounterCommitmentAggregatedList < 3) { |
| 1570 o.id = "foo"; | 1570 o.id = "foo"; |
| 1571 o.items = buildUnnamed2248(); | 1571 o.items = buildUnnamed2266(); |
| 1572 o.kind = "foo"; | 1572 o.kind = "foo"; |
| 1573 o.nextPageToken = "foo"; | 1573 o.nextPageToken = "foo"; |
| 1574 o.selfLink = "foo"; | 1574 o.selfLink = "foo"; |
| 1575 } | 1575 } |
| 1576 buildCounterCommitmentAggregatedList--; | 1576 buildCounterCommitmentAggregatedList--; |
| 1577 return o; | 1577 return o; |
| 1578 } | 1578 } |
| 1579 | 1579 |
| 1580 checkCommitmentAggregatedList(api.CommitmentAggregatedList o) { | 1580 checkCommitmentAggregatedList(api.CommitmentAggregatedList o) { |
| 1581 buildCounterCommitmentAggregatedList++; | 1581 buildCounterCommitmentAggregatedList++; |
| 1582 if (buildCounterCommitmentAggregatedList < 3) { | 1582 if (buildCounterCommitmentAggregatedList < 3) { |
| 1583 unittest.expect(o.id, unittest.equals('foo')); | 1583 unittest.expect(o.id, unittest.equals('foo')); |
| 1584 checkUnnamed2248(o.items); | 1584 checkUnnamed2266(o.items); |
| 1585 unittest.expect(o.kind, unittest.equals('foo')); | 1585 unittest.expect(o.kind, unittest.equals('foo')); |
| 1586 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1586 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1587 unittest.expect(o.selfLink, unittest.equals('foo')); | 1587 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1588 } | 1588 } |
| 1589 buildCounterCommitmentAggregatedList--; | 1589 buildCounterCommitmentAggregatedList--; |
| 1590 } | 1590 } |
| 1591 | 1591 |
| 1592 buildUnnamed2249() { | 1592 buildUnnamed2267() { |
| 1593 var o = new core.List<api.Commitment>(); | 1593 var o = new core.List<api.Commitment>(); |
| 1594 o.add(buildCommitment()); | 1594 o.add(buildCommitment()); |
| 1595 o.add(buildCommitment()); | 1595 o.add(buildCommitment()); |
| 1596 return o; | 1596 return o; |
| 1597 } | 1597 } |
| 1598 | 1598 |
| 1599 checkUnnamed2249(core.List<api.Commitment> o) { | 1599 checkUnnamed2267(core.List<api.Commitment> o) { |
| 1600 unittest.expect(o, unittest.hasLength(2)); | 1600 unittest.expect(o, unittest.hasLength(2)); |
| 1601 checkCommitment(o[0]); | 1601 checkCommitment(o[0]); |
| 1602 checkCommitment(o[1]); | 1602 checkCommitment(o[1]); |
| 1603 } | 1603 } |
| 1604 | 1604 |
| 1605 core.int buildCounterCommitmentList = 0; | 1605 core.int buildCounterCommitmentList = 0; |
| 1606 buildCommitmentList() { | 1606 buildCommitmentList() { |
| 1607 var o = new api.CommitmentList(); | 1607 var o = new api.CommitmentList(); |
| 1608 buildCounterCommitmentList++; | 1608 buildCounterCommitmentList++; |
| 1609 if (buildCounterCommitmentList < 3) { | 1609 if (buildCounterCommitmentList < 3) { |
| 1610 o.id = "foo"; | 1610 o.id = "foo"; |
| 1611 o.items = buildUnnamed2249(); | 1611 o.items = buildUnnamed2267(); |
| 1612 o.kind = "foo"; | 1612 o.kind = "foo"; |
| 1613 o.nextPageToken = "foo"; | 1613 o.nextPageToken = "foo"; |
| 1614 o.selfLink = "foo"; | 1614 o.selfLink = "foo"; |
| 1615 } | 1615 } |
| 1616 buildCounterCommitmentList--; | 1616 buildCounterCommitmentList--; |
| 1617 return o; | 1617 return o; |
| 1618 } | 1618 } |
| 1619 | 1619 |
| 1620 checkCommitmentList(api.CommitmentList o) { | 1620 checkCommitmentList(api.CommitmentList o) { |
| 1621 buildCounterCommitmentList++; | 1621 buildCounterCommitmentList++; |
| 1622 if (buildCounterCommitmentList < 3) { | 1622 if (buildCounterCommitmentList < 3) { |
| 1623 unittest.expect(o.id, unittest.equals('foo')); | 1623 unittest.expect(o.id, unittest.equals('foo')); |
| 1624 checkUnnamed2249(o.items); | 1624 checkUnnamed2267(o.items); |
| 1625 unittest.expect(o.kind, unittest.equals('foo')); | 1625 unittest.expect(o.kind, unittest.equals('foo')); |
| 1626 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1626 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1627 unittest.expect(o.selfLink, unittest.equals('foo')); | 1627 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1628 } | 1628 } |
| 1629 buildCounterCommitmentList--; | 1629 buildCounterCommitmentList--; |
| 1630 } | 1630 } |
| 1631 | 1631 |
| 1632 buildUnnamed2250() { | 1632 buildUnnamed2268() { |
| 1633 var o = new core.List<api.Commitment>(); | 1633 var o = new core.List<api.Commitment>(); |
| 1634 o.add(buildCommitment()); | 1634 o.add(buildCommitment()); |
| 1635 o.add(buildCommitment()); | 1635 o.add(buildCommitment()); |
| 1636 return o; | 1636 return o; |
| 1637 } | 1637 } |
| 1638 | 1638 |
| 1639 checkUnnamed2250(core.List<api.Commitment> o) { | 1639 checkUnnamed2268(core.List<api.Commitment> o) { |
| 1640 unittest.expect(o, unittest.hasLength(2)); | 1640 unittest.expect(o, unittest.hasLength(2)); |
| 1641 checkCommitment(o[0]); | 1641 checkCommitment(o[0]); |
| 1642 checkCommitment(o[1]); | 1642 checkCommitment(o[1]); |
| 1643 } | 1643 } |
| 1644 | 1644 |
| 1645 core.int buildCounterCommitmentsScopedListWarningData = 0; | 1645 core.int buildCounterCommitmentsScopedListWarningData = 0; |
| 1646 buildCommitmentsScopedListWarningData() { | 1646 buildCommitmentsScopedListWarningData() { |
| 1647 var o = new api.CommitmentsScopedListWarningData(); | 1647 var o = new api.CommitmentsScopedListWarningData(); |
| 1648 buildCounterCommitmentsScopedListWarningData++; | 1648 buildCounterCommitmentsScopedListWarningData++; |
| 1649 if (buildCounterCommitmentsScopedListWarningData < 3) { | 1649 if (buildCounterCommitmentsScopedListWarningData < 3) { |
| 1650 o.key = "foo"; | 1650 o.key = "foo"; |
| 1651 o.value = "foo"; | 1651 o.value = "foo"; |
| 1652 } | 1652 } |
| 1653 buildCounterCommitmentsScopedListWarningData--; | 1653 buildCounterCommitmentsScopedListWarningData--; |
| 1654 return o; | 1654 return o; |
| 1655 } | 1655 } |
| 1656 | 1656 |
| 1657 checkCommitmentsScopedListWarningData(api.CommitmentsScopedListWarningData o) { | 1657 checkCommitmentsScopedListWarningData(api.CommitmentsScopedListWarningData o) { |
| 1658 buildCounterCommitmentsScopedListWarningData++; | 1658 buildCounterCommitmentsScopedListWarningData++; |
| 1659 if (buildCounterCommitmentsScopedListWarningData < 3) { | 1659 if (buildCounterCommitmentsScopedListWarningData < 3) { |
| 1660 unittest.expect(o.key, unittest.equals('foo')); | 1660 unittest.expect(o.key, unittest.equals('foo')); |
| 1661 unittest.expect(o.value, unittest.equals('foo')); | 1661 unittest.expect(o.value, unittest.equals('foo')); |
| 1662 } | 1662 } |
| 1663 buildCounterCommitmentsScopedListWarningData--; | 1663 buildCounterCommitmentsScopedListWarningData--; |
| 1664 } | 1664 } |
| 1665 | 1665 |
| 1666 buildUnnamed2251() { | 1666 buildUnnamed2269() { |
| 1667 var o = new core.List<api.CommitmentsScopedListWarningData>(); | 1667 var o = new core.List<api.CommitmentsScopedListWarningData>(); |
| 1668 o.add(buildCommitmentsScopedListWarningData()); | 1668 o.add(buildCommitmentsScopedListWarningData()); |
| 1669 o.add(buildCommitmentsScopedListWarningData()); | 1669 o.add(buildCommitmentsScopedListWarningData()); |
| 1670 return o; | 1670 return o; |
| 1671 } | 1671 } |
| 1672 | 1672 |
| 1673 checkUnnamed2251(core.List<api.CommitmentsScopedListWarningData> o) { | 1673 checkUnnamed2269(core.List<api.CommitmentsScopedListWarningData> o) { |
| 1674 unittest.expect(o, unittest.hasLength(2)); | 1674 unittest.expect(o, unittest.hasLength(2)); |
| 1675 checkCommitmentsScopedListWarningData(o[0]); | 1675 checkCommitmentsScopedListWarningData(o[0]); |
| 1676 checkCommitmentsScopedListWarningData(o[1]); | 1676 checkCommitmentsScopedListWarningData(o[1]); |
| 1677 } | 1677 } |
| 1678 | 1678 |
| 1679 core.int buildCounterCommitmentsScopedListWarning = 0; | 1679 core.int buildCounterCommitmentsScopedListWarning = 0; |
| 1680 buildCommitmentsScopedListWarning() { | 1680 buildCommitmentsScopedListWarning() { |
| 1681 var o = new api.CommitmentsScopedListWarning(); | 1681 var o = new api.CommitmentsScopedListWarning(); |
| 1682 buildCounterCommitmentsScopedListWarning++; | 1682 buildCounterCommitmentsScopedListWarning++; |
| 1683 if (buildCounterCommitmentsScopedListWarning < 3) { | 1683 if (buildCounterCommitmentsScopedListWarning < 3) { |
| 1684 o.code = "foo"; | 1684 o.code = "foo"; |
| 1685 o.data = buildUnnamed2251(); | 1685 o.data = buildUnnamed2269(); |
| 1686 o.message = "foo"; | 1686 o.message = "foo"; |
| 1687 } | 1687 } |
| 1688 buildCounterCommitmentsScopedListWarning--; | 1688 buildCounterCommitmentsScopedListWarning--; |
| 1689 return o; | 1689 return o; |
| 1690 } | 1690 } |
| 1691 | 1691 |
| 1692 checkCommitmentsScopedListWarning(api.CommitmentsScopedListWarning o) { | 1692 checkCommitmentsScopedListWarning(api.CommitmentsScopedListWarning o) { |
| 1693 buildCounterCommitmentsScopedListWarning++; | 1693 buildCounterCommitmentsScopedListWarning++; |
| 1694 if (buildCounterCommitmentsScopedListWarning < 3) { | 1694 if (buildCounterCommitmentsScopedListWarning < 3) { |
| 1695 unittest.expect(o.code, unittest.equals('foo')); | 1695 unittest.expect(o.code, unittest.equals('foo')); |
| 1696 checkUnnamed2251(o.data); | 1696 checkUnnamed2269(o.data); |
| 1697 unittest.expect(o.message, unittest.equals('foo')); | 1697 unittest.expect(o.message, unittest.equals('foo')); |
| 1698 } | 1698 } |
| 1699 buildCounterCommitmentsScopedListWarning--; | 1699 buildCounterCommitmentsScopedListWarning--; |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 core.int buildCounterCommitmentsScopedList = 0; | 1702 core.int buildCounterCommitmentsScopedList = 0; |
| 1703 buildCommitmentsScopedList() { | 1703 buildCommitmentsScopedList() { |
| 1704 var o = new api.CommitmentsScopedList(); | 1704 var o = new api.CommitmentsScopedList(); |
| 1705 buildCounterCommitmentsScopedList++; | 1705 buildCounterCommitmentsScopedList++; |
| 1706 if (buildCounterCommitmentsScopedList < 3) { | 1706 if (buildCounterCommitmentsScopedList < 3) { |
| 1707 o.commitments = buildUnnamed2250(); | 1707 o.commitments = buildUnnamed2268(); |
| 1708 o.warning = buildCommitmentsScopedListWarning(); | 1708 o.warning = buildCommitmentsScopedListWarning(); |
| 1709 } | 1709 } |
| 1710 buildCounterCommitmentsScopedList--; | 1710 buildCounterCommitmentsScopedList--; |
| 1711 return o; | 1711 return o; |
| 1712 } | 1712 } |
| 1713 | 1713 |
| 1714 checkCommitmentsScopedList(api.CommitmentsScopedList o) { | 1714 checkCommitmentsScopedList(api.CommitmentsScopedList o) { |
| 1715 buildCounterCommitmentsScopedList++; | 1715 buildCounterCommitmentsScopedList++; |
| 1716 if (buildCounterCommitmentsScopedList < 3) { | 1716 if (buildCounterCommitmentsScopedList < 3) { |
| 1717 checkUnnamed2250(o.commitments); | 1717 checkUnnamed2268(o.commitments); |
| 1718 checkCommitmentsScopedListWarning(o.warning); | 1718 checkCommitmentsScopedListWarning(o.warning); |
| 1719 } | 1719 } |
| 1720 buildCounterCommitmentsScopedList--; | 1720 buildCounterCommitmentsScopedList--; |
| 1721 } | 1721 } |
| 1722 | 1722 |
| 1723 core.int buildCounterConnectionDraining = 0; | 1723 core.int buildCounterConnectionDraining = 0; |
| 1724 buildConnectionDraining() { | 1724 buildConnectionDraining() { |
| 1725 var o = new api.ConnectionDraining(); | 1725 var o = new api.ConnectionDraining(); |
| 1726 buildCounterConnectionDraining++; | 1726 buildCounterConnectionDraining++; |
| 1727 if (buildCounterConnectionDraining < 3) { | 1727 if (buildCounterConnectionDraining < 3) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1801 if (buildCounterDeprecationStatus < 3) { | 1801 if (buildCounterDeprecationStatus < 3) { |
| 1802 unittest.expect(o.deleted, unittest.equals('foo')); | 1802 unittest.expect(o.deleted, unittest.equals('foo')); |
| 1803 unittest.expect(o.deprecated, unittest.equals('foo')); | 1803 unittest.expect(o.deprecated, unittest.equals('foo')); |
| 1804 unittest.expect(o.obsolete, unittest.equals('foo')); | 1804 unittest.expect(o.obsolete, unittest.equals('foo')); |
| 1805 unittest.expect(o.replacement, unittest.equals('foo')); | 1805 unittest.expect(o.replacement, unittest.equals('foo')); |
| 1806 unittest.expect(o.state, unittest.equals('foo')); | 1806 unittest.expect(o.state, unittest.equals('foo')); |
| 1807 } | 1807 } |
| 1808 buildCounterDeprecationStatus--; | 1808 buildCounterDeprecationStatus--; |
| 1809 } | 1809 } |
| 1810 | 1810 |
| 1811 buildUnnamed2252() { | 1811 buildUnnamed2270() { |
| 1812 var o = new core.Map<core.String, core.String>(); | 1812 var o = new core.Map<core.String, core.String>(); |
| 1813 o["x"] = "foo"; | 1813 o["x"] = "foo"; |
| 1814 o["y"] = "foo"; | 1814 o["y"] = "foo"; |
| 1815 return o; | 1815 return o; |
| 1816 } | 1816 } |
| 1817 | 1817 |
| 1818 checkUnnamed2252(core.Map<core.String, core.String> o) { | 1818 checkUnnamed2270(core.Map<core.String, core.String> o) { |
| 1819 unittest.expect(o, unittest.hasLength(2)); | 1819 unittest.expect(o, unittest.hasLength(2)); |
| 1820 unittest.expect(o["x"], unittest.equals('foo')); | 1820 unittest.expect(o["x"], unittest.equals('foo')); |
| 1821 unittest.expect(o["y"], unittest.equals('foo')); | 1821 unittest.expect(o["y"], unittest.equals('foo')); |
| 1822 } | 1822 } |
| 1823 | 1823 |
| 1824 buildUnnamed2253() { | 1824 buildUnnamed2271() { |
| 1825 var o = new core.List<core.String>(); | 1825 var o = new core.List<core.String>(); |
| 1826 o.add("foo"); | 1826 o.add("foo"); |
| 1827 o.add("foo"); | 1827 o.add("foo"); |
| 1828 return o; | 1828 return o; |
| 1829 } | 1829 } |
| 1830 | 1830 |
| 1831 checkUnnamed2253(core.List<core.String> o) { | 1831 checkUnnamed2271(core.List<core.String> o) { |
| 1832 unittest.expect(o, unittest.hasLength(2)); | 1832 unittest.expect(o, unittest.hasLength(2)); |
| 1833 unittest.expect(o[0], unittest.equals('foo')); | 1833 unittest.expect(o[0], unittest.equals('foo')); |
| 1834 unittest.expect(o[1], unittest.equals('foo')); | 1834 unittest.expect(o[1], unittest.equals('foo')); |
| 1835 } | 1835 } |
| 1836 | 1836 |
| 1837 buildUnnamed2254() { | 1837 buildUnnamed2272() { |
| 1838 var o = new core.List<core.String>(); | 1838 var o = new core.List<core.String>(); |
| 1839 o.add("foo"); | 1839 o.add("foo"); |
| 1840 o.add("foo"); | 1840 o.add("foo"); |
| 1841 return o; | 1841 return o; |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 checkUnnamed2254(core.List<core.String> o) { | 1844 checkUnnamed2272(core.List<core.String> o) { |
| 1845 unittest.expect(o, unittest.hasLength(2)); | 1845 unittest.expect(o, unittest.hasLength(2)); |
| 1846 unittest.expect(o[0], unittest.equals('foo')); | 1846 unittest.expect(o[0], unittest.equals('foo')); |
| 1847 unittest.expect(o[1], unittest.equals('foo')); | 1847 unittest.expect(o[1], unittest.equals('foo')); |
| 1848 } | 1848 } |
| 1849 | 1849 |
| 1850 core.int buildCounterDisk = 0; | 1850 core.int buildCounterDisk = 0; |
| 1851 buildDisk() { | 1851 buildDisk() { |
| 1852 var o = new api.Disk(); | 1852 var o = new api.Disk(); |
| 1853 buildCounterDisk++; | 1853 buildCounterDisk++; |
| 1854 if (buildCounterDisk < 3) { | 1854 if (buildCounterDisk < 3) { |
| 1855 o.creationTimestamp = "foo"; | 1855 o.creationTimestamp = "foo"; |
| 1856 o.description = "foo"; | 1856 o.description = "foo"; |
| 1857 o.diskEncryptionKey = buildCustomerEncryptionKey(); | 1857 o.diskEncryptionKey = buildCustomerEncryptionKey(); |
| 1858 o.id = "foo"; | 1858 o.id = "foo"; |
| 1859 o.kind = "foo"; | 1859 o.kind = "foo"; |
| 1860 o.labelFingerprint = "foo"; | 1860 o.labelFingerprint = "foo"; |
| 1861 o.labels = buildUnnamed2252(); | 1861 o.labels = buildUnnamed2270(); |
| 1862 o.lastAttachTimestamp = "foo"; | 1862 o.lastAttachTimestamp = "foo"; |
| 1863 o.lastDetachTimestamp = "foo"; | 1863 o.lastDetachTimestamp = "foo"; |
| 1864 o.licenses = buildUnnamed2253(); | 1864 o.licenses = buildUnnamed2271(); |
| 1865 o.name = "foo"; | 1865 o.name = "foo"; |
| 1866 o.options = "foo"; | 1866 o.options = "foo"; |
| 1867 o.selfLink = "foo"; | 1867 o.selfLink = "foo"; |
| 1868 o.sizeGb = "foo"; | 1868 o.sizeGb = "foo"; |
| 1869 o.sourceImage = "foo"; | 1869 o.sourceImage = "foo"; |
| 1870 o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); | 1870 o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); |
| 1871 o.sourceImageId = "foo"; | 1871 o.sourceImageId = "foo"; |
| 1872 o.sourceSnapshot = "foo"; | 1872 o.sourceSnapshot = "foo"; |
| 1873 o.sourceSnapshotEncryptionKey = buildCustomerEncryptionKey(); | 1873 o.sourceSnapshotEncryptionKey = buildCustomerEncryptionKey(); |
| 1874 o.sourceSnapshotId = "foo"; | 1874 o.sourceSnapshotId = "foo"; |
| 1875 o.status = "foo"; | 1875 o.status = "foo"; |
| 1876 o.type = "foo"; | 1876 o.type = "foo"; |
| 1877 o.users = buildUnnamed2254(); | 1877 o.users = buildUnnamed2272(); |
| 1878 o.zone = "foo"; | 1878 o.zone = "foo"; |
| 1879 } | 1879 } |
| 1880 buildCounterDisk--; | 1880 buildCounterDisk--; |
| 1881 return o; | 1881 return o; |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 checkDisk(api.Disk o) { | 1884 checkDisk(api.Disk o) { |
| 1885 buildCounterDisk++; | 1885 buildCounterDisk++; |
| 1886 if (buildCounterDisk < 3) { | 1886 if (buildCounterDisk < 3) { |
| 1887 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1887 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 1888 unittest.expect(o.description, unittest.equals('foo')); | 1888 unittest.expect(o.description, unittest.equals('foo')); |
| 1889 checkCustomerEncryptionKey(o.diskEncryptionKey); | 1889 checkCustomerEncryptionKey(o.diskEncryptionKey); |
| 1890 unittest.expect(o.id, unittest.equals('foo')); | 1890 unittest.expect(o.id, unittest.equals('foo')); |
| 1891 unittest.expect(o.kind, unittest.equals('foo')); | 1891 unittest.expect(o.kind, unittest.equals('foo')); |
| 1892 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 1892 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 1893 checkUnnamed2252(o.labels); | 1893 checkUnnamed2270(o.labels); |
| 1894 unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); | 1894 unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); |
| 1895 unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); | 1895 unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); |
| 1896 checkUnnamed2253(o.licenses); | 1896 checkUnnamed2271(o.licenses); |
| 1897 unittest.expect(o.name, unittest.equals('foo')); | 1897 unittest.expect(o.name, unittest.equals('foo')); |
| 1898 unittest.expect(o.options, unittest.equals('foo')); | 1898 unittest.expect(o.options, unittest.equals('foo')); |
| 1899 unittest.expect(o.selfLink, unittest.equals('foo')); | 1899 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1900 unittest.expect(o.sizeGb, unittest.equals('foo')); | 1900 unittest.expect(o.sizeGb, unittest.equals('foo')); |
| 1901 unittest.expect(o.sourceImage, unittest.equals('foo')); | 1901 unittest.expect(o.sourceImage, unittest.equals('foo')); |
| 1902 checkCustomerEncryptionKey(o.sourceImageEncryptionKey); | 1902 checkCustomerEncryptionKey(o.sourceImageEncryptionKey); |
| 1903 unittest.expect(o.sourceImageId, unittest.equals('foo')); | 1903 unittest.expect(o.sourceImageId, unittest.equals('foo')); |
| 1904 unittest.expect(o.sourceSnapshot, unittest.equals('foo')); | 1904 unittest.expect(o.sourceSnapshot, unittest.equals('foo')); |
| 1905 checkCustomerEncryptionKey(o.sourceSnapshotEncryptionKey); | 1905 checkCustomerEncryptionKey(o.sourceSnapshotEncryptionKey); |
| 1906 unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); | 1906 unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); |
| 1907 unittest.expect(o.status, unittest.equals('foo')); | 1907 unittest.expect(o.status, unittest.equals('foo')); |
| 1908 unittest.expect(o.type, unittest.equals('foo')); | 1908 unittest.expect(o.type, unittest.equals('foo')); |
| 1909 checkUnnamed2254(o.users); | 1909 checkUnnamed2272(o.users); |
| 1910 unittest.expect(o.zone, unittest.equals('foo')); | 1910 unittest.expect(o.zone, unittest.equals('foo')); |
| 1911 } | 1911 } |
| 1912 buildCounterDisk--; | 1912 buildCounterDisk--; |
| 1913 } | 1913 } |
| 1914 | 1914 |
| 1915 buildUnnamed2255() { | 1915 buildUnnamed2273() { |
| 1916 var o = new core.Map<core.String, api.DisksScopedList>(); | 1916 var o = new core.Map<core.String, api.DisksScopedList>(); |
| 1917 o["x"] = buildDisksScopedList(); | 1917 o["x"] = buildDisksScopedList(); |
| 1918 o["y"] = buildDisksScopedList(); | 1918 o["y"] = buildDisksScopedList(); |
| 1919 return o; | 1919 return o; |
| 1920 } | 1920 } |
| 1921 | 1921 |
| 1922 checkUnnamed2255(core.Map<core.String, api.DisksScopedList> o) { | 1922 checkUnnamed2273(core.Map<core.String, api.DisksScopedList> o) { |
| 1923 unittest.expect(o, unittest.hasLength(2)); | 1923 unittest.expect(o, unittest.hasLength(2)); |
| 1924 checkDisksScopedList(o["x"]); | 1924 checkDisksScopedList(o["x"]); |
| 1925 checkDisksScopedList(o["y"]); | 1925 checkDisksScopedList(o["y"]); |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 core.int buildCounterDiskAggregatedList = 0; | 1928 core.int buildCounterDiskAggregatedList = 0; |
| 1929 buildDiskAggregatedList() { | 1929 buildDiskAggregatedList() { |
| 1930 var o = new api.DiskAggregatedList(); | 1930 var o = new api.DiskAggregatedList(); |
| 1931 buildCounterDiskAggregatedList++; | 1931 buildCounterDiskAggregatedList++; |
| 1932 if (buildCounterDiskAggregatedList < 3) { | 1932 if (buildCounterDiskAggregatedList < 3) { |
| 1933 o.id = "foo"; | 1933 o.id = "foo"; |
| 1934 o.items = buildUnnamed2255(); | 1934 o.items = buildUnnamed2273(); |
| 1935 o.kind = "foo"; | 1935 o.kind = "foo"; |
| 1936 o.nextPageToken = "foo"; | 1936 o.nextPageToken = "foo"; |
| 1937 o.selfLink = "foo"; | 1937 o.selfLink = "foo"; |
| 1938 } | 1938 } |
| 1939 buildCounterDiskAggregatedList--; | 1939 buildCounterDiskAggregatedList--; |
| 1940 return o; | 1940 return o; |
| 1941 } | 1941 } |
| 1942 | 1942 |
| 1943 checkDiskAggregatedList(api.DiskAggregatedList o) { | 1943 checkDiskAggregatedList(api.DiskAggregatedList o) { |
| 1944 buildCounterDiskAggregatedList++; | 1944 buildCounterDiskAggregatedList++; |
| 1945 if (buildCounterDiskAggregatedList < 3) { | 1945 if (buildCounterDiskAggregatedList < 3) { |
| 1946 unittest.expect(o.id, unittest.equals('foo')); | 1946 unittest.expect(o.id, unittest.equals('foo')); |
| 1947 checkUnnamed2255(o.items); | 1947 checkUnnamed2273(o.items); |
| 1948 unittest.expect(o.kind, unittest.equals('foo')); | 1948 unittest.expect(o.kind, unittest.equals('foo')); |
| 1949 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1949 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1950 unittest.expect(o.selfLink, unittest.equals('foo')); | 1950 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1951 } | 1951 } |
| 1952 buildCounterDiskAggregatedList--; | 1952 buildCounterDiskAggregatedList--; |
| 1953 } | 1953 } |
| 1954 | 1954 |
| 1955 buildUnnamed2256() { | 1955 buildUnnamed2274() { |
| 1956 var o = new core.List<api.Disk>(); | 1956 var o = new core.List<api.Disk>(); |
| 1957 o.add(buildDisk()); | 1957 o.add(buildDisk()); |
| 1958 o.add(buildDisk()); | 1958 o.add(buildDisk()); |
| 1959 return o; | 1959 return o; |
| 1960 } | 1960 } |
| 1961 | 1961 |
| 1962 checkUnnamed2256(core.List<api.Disk> o) { | 1962 checkUnnamed2274(core.List<api.Disk> o) { |
| 1963 unittest.expect(o, unittest.hasLength(2)); | 1963 unittest.expect(o, unittest.hasLength(2)); |
| 1964 checkDisk(o[0]); | 1964 checkDisk(o[0]); |
| 1965 checkDisk(o[1]); | 1965 checkDisk(o[1]); |
| 1966 } | 1966 } |
| 1967 | 1967 |
| 1968 core.int buildCounterDiskList = 0; | 1968 core.int buildCounterDiskList = 0; |
| 1969 buildDiskList() { | 1969 buildDiskList() { |
| 1970 var o = new api.DiskList(); | 1970 var o = new api.DiskList(); |
| 1971 buildCounterDiskList++; | 1971 buildCounterDiskList++; |
| 1972 if (buildCounterDiskList < 3) { | 1972 if (buildCounterDiskList < 3) { |
| 1973 o.id = "foo"; | 1973 o.id = "foo"; |
| 1974 o.items = buildUnnamed2256(); | 1974 o.items = buildUnnamed2274(); |
| 1975 o.kind = "foo"; | 1975 o.kind = "foo"; |
| 1976 o.nextPageToken = "foo"; | 1976 o.nextPageToken = "foo"; |
| 1977 o.selfLink = "foo"; | 1977 o.selfLink = "foo"; |
| 1978 } | 1978 } |
| 1979 buildCounterDiskList--; | 1979 buildCounterDiskList--; |
| 1980 return o; | 1980 return o; |
| 1981 } | 1981 } |
| 1982 | 1982 |
| 1983 checkDiskList(api.DiskList o) { | 1983 checkDiskList(api.DiskList o) { |
| 1984 buildCounterDiskList++; | 1984 buildCounterDiskList++; |
| 1985 if (buildCounterDiskList < 3) { | 1985 if (buildCounterDiskList < 3) { |
| 1986 unittest.expect(o.id, unittest.equals('foo')); | 1986 unittest.expect(o.id, unittest.equals('foo')); |
| 1987 checkUnnamed2256(o.items); | 1987 checkUnnamed2274(o.items); |
| 1988 unittest.expect(o.kind, unittest.equals('foo')); | 1988 unittest.expect(o.kind, unittest.equals('foo')); |
| 1989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1989 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1990 unittest.expect(o.selfLink, unittest.equals('foo')); | 1990 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1991 } | 1991 } |
| 1992 buildCounterDiskList--; | 1992 buildCounterDiskList--; |
| 1993 } | 1993 } |
| 1994 | 1994 |
| 1995 core.int buildCounterDiskMoveRequest = 0; | 1995 core.int buildCounterDiskMoveRequest = 0; |
| 1996 buildDiskMoveRequest() { | 1996 buildDiskMoveRequest() { |
| 1997 var o = new api.DiskMoveRequest(); | 1997 var o = new api.DiskMoveRequest(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 unittest.expect(o.id, unittest.equals('foo')); | 2043 unittest.expect(o.id, unittest.equals('foo')); |
| 2044 unittest.expect(o.kind, unittest.equals('foo')); | 2044 unittest.expect(o.kind, unittest.equals('foo')); |
| 2045 unittest.expect(o.name, unittest.equals('foo')); | 2045 unittest.expect(o.name, unittest.equals('foo')); |
| 2046 unittest.expect(o.selfLink, unittest.equals('foo')); | 2046 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2047 unittest.expect(o.validDiskSize, unittest.equals('foo')); | 2047 unittest.expect(o.validDiskSize, unittest.equals('foo')); |
| 2048 unittest.expect(o.zone, unittest.equals('foo')); | 2048 unittest.expect(o.zone, unittest.equals('foo')); |
| 2049 } | 2049 } |
| 2050 buildCounterDiskType--; | 2050 buildCounterDiskType--; |
| 2051 } | 2051 } |
| 2052 | 2052 |
| 2053 buildUnnamed2257() { | 2053 buildUnnamed2275() { |
| 2054 var o = new core.Map<core.String, api.DiskTypesScopedList>(); | 2054 var o = new core.Map<core.String, api.DiskTypesScopedList>(); |
| 2055 o["x"] = buildDiskTypesScopedList(); | 2055 o["x"] = buildDiskTypesScopedList(); |
| 2056 o["y"] = buildDiskTypesScopedList(); | 2056 o["y"] = buildDiskTypesScopedList(); |
| 2057 return o; | 2057 return o; |
| 2058 } | 2058 } |
| 2059 | 2059 |
| 2060 checkUnnamed2257(core.Map<core.String, api.DiskTypesScopedList> o) { | 2060 checkUnnamed2275(core.Map<core.String, api.DiskTypesScopedList> o) { |
| 2061 unittest.expect(o, unittest.hasLength(2)); | 2061 unittest.expect(o, unittest.hasLength(2)); |
| 2062 checkDiskTypesScopedList(o["x"]); | 2062 checkDiskTypesScopedList(o["x"]); |
| 2063 checkDiskTypesScopedList(o["y"]); | 2063 checkDiskTypesScopedList(o["y"]); |
| 2064 } | 2064 } |
| 2065 | 2065 |
| 2066 core.int buildCounterDiskTypeAggregatedList = 0; | 2066 core.int buildCounterDiskTypeAggregatedList = 0; |
| 2067 buildDiskTypeAggregatedList() { | 2067 buildDiskTypeAggregatedList() { |
| 2068 var o = new api.DiskTypeAggregatedList(); | 2068 var o = new api.DiskTypeAggregatedList(); |
| 2069 buildCounterDiskTypeAggregatedList++; | 2069 buildCounterDiskTypeAggregatedList++; |
| 2070 if (buildCounterDiskTypeAggregatedList < 3) { | 2070 if (buildCounterDiskTypeAggregatedList < 3) { |
| 2071 o.id = "foo"; | 2071 o.id = "foo"; |
| 2072 o.items = buildUnnamed2257(); | 2072 o.items = buildUnnamed2275(); |
| 2073 o.kind = "foo"; | 2073 o.kind = "foo"; |
| 2074 o.nextPageToken = "foo"; | 2074 o.nextPageToken = "foo"; |
| 2075 o.selfLink = "foo"; | 2075 o.selfLink = "foo"; |
| 2076 } | 2076 } |
| 2077 buildCounterDiskTypeAggregatedList--; | 2077 buildCounterDiskTypeAggregatedList--; |
| 2078 return o; | 2078 return o; |
| 2079 } | 2079 } |
| 2080 | 2080 |
| 2081 checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { | 2081 checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { |
| 2082 buildCounterDiskTypeAggregatedList++; | 2082 buildCounterDiskTypeAggregatedList++; |
| 2083 if (buildCounterDiskTypeAggregatedList < 3) { | 2083 if (buildCounterDiskTypeAggregatedList < 3) { |
| 2084 unittest.expect(o.id, unittest.equals('foo')); | 2084 unittest.expect(o.id, unittest.equals('foo')); |
| 2085 checkUnnamed2257(o.items); | 2085 checkUnnamed2275(o.items); |
| 2086 unittest.expect(o.kind, unittest.equals('foo')); | 2086 unittest.expect(o.kind, unittest.equals('foo')); |
| 2087 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2087 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2088 unittest.expect(o.selfLink, unittest.equals('foo')); | 2088 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2089 } | 2089 } |
| 2090 buildCounterDiskTypeAggregatedList--; | 2090 buildCounterDiskTypeAggregatedList--; |
| 2091 } | 2091 } |
| 2092 | 2092 |
| 2093 buildUnnamed2258() { | 2093 buildUnnamed2276() { |
| 2094 var o = new core.List<api.DiskType>(); | 2094 var o = new core.List<api.DiskType>(); |
| 2095 o.add(buildDiskType()); | 2095 o.add(buildDiskType()); |
| 2096 o.add(buildDiskType()); | 2096 o.add(buildDiskType()); |
| 2097 return o; | 2097 return o; |
| 2098 } | 2098 } |
| 2099 | 2099 |
| 2100 checkUnnamed2258(core.List<api.DiskType> o) { | 2100 checkUnnamed2276(core.List<api.DiskType> o) { |
| 2101 unittest.expect(o, unittest.hasLength(2)); | 2101 unittest.expect(o, unittest.hasLength(2)); |
| 2102 checkDiskType(o[0]); | 2102 checkDiskType(o[0]); |
| 2103 checkDiskType(o[1]); | 2103 checkDiskType(o[1]); |
| 2104 } | 2104 } |
| 2105 | 2105 |
| 2106 core.int buildCounterDiskTypeList = 0; | 2106 core.int buildCounterDiskTypeList = 0; |
| 2107 buildDiskTypeList() { | 2107 buildDiskTypeList() { |
| 2108 var o = new api.DiskTypeList(); | 2108 var o = new api.DiskTypeList(); |
| 2109 buildCounterDiskTypeList++; | 2109 buildCounterDiskTypeList++; |
| 2110 if (buildCounterDiskTypeList < 3) { | 2110 if (buildCounterDiskTypeList < 3) { |
| 2111 o.id = "foo"; | 2111 o.id = "foo"; |
| 2112 o.items = buildUnnamed2258(); | 2112 o.items = buildUnnamed2276(); |
| 2113 o.kind = "foo"; | 2113 o.kind = "foo"; |
| 2114 o.nextPageToken = "foo"; | 2114 o.nextPageToken = "foo"; |
| 2115 o.selfLink = "foo"; | 2115 o.selfLink = "foo"; |
| 2116 } | 2116 } |
| 2117 buildCounterDiskTypeList--; | 2117 buildCounterDiskTypeList--; |
| 2118 return o; | 2118 return o; |
| 2119 } | 2119 } |
| 2120 | 2120 |
| 2121 checkDiskTypeList(api.DiskTypeList o) { | 2121 checkDiskTypeList(api.DiskTypeList o) { |
| 2122 buildCounterDiskTypeList++; | 2122 buildCounterDiskTypeList++; |
| 2123 if (buildCounterDiskTypeList < 3) { | 2123 if (buildCounterDiskTypeList < 3) { |
| 2124 unittest.expect(o.id, unittest.equals('foo')); | 2124 unittest.expect(o.id, unittest.equals('foo')); |
| 2125 checkUnnamed2258(o.items); | 2125 checkUnnamed2276(o.items); |
| 2126 unittest.expect(o.kind, unittest.equals('foo')); | 2126 unittest.expect(o.kind, unittest.equals('foo')); |
| 2127 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2127 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2128 unittest.expect(o.selfLink, unittest.equals('foo')); | 2128 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2129 } | 2129 } |
| 2130 buildCounterDiskTypeList--; | 2130 buildCounterDiskTypeList--; |
| 2131 } | 2131 } |
| 2132 | 2132 |
| 2133 buildUnnamed2259() { | 2133 buildUnnamed2277() { |
| 2134 var o = new core.List<api.DiskType>(); | 2134 var o = new core.List<api.DiskType>(); |
| 2135 o.add(buildDiskType()); | 2135 o.add(buildDiskType()); |
| 2136 o.add(buildDiskType()); | 2136 o.add(buildDiskType()); |
| 2137 return o; | 2137 return o; |
| 2138 } | 2138 } |
| 2139 | 2139 |
| 2140 checkUnnamed2259(core.List<api.DiskType> o) { | 2140 checkUnnamed2277(core.List<api.DiskType> o) { |
| 2141 unittest.expect(o, unittest.hasLength(2)); | 2141 unittest.expect(o, unittest.hasLength(2)); |
| 2142 checkDiskType(o[0]); | 2142 checkDiskType(o[0]); |
| 2143 checkDiskType(o[1]); | 2143 checkDiskType(o[1]); |
| 2144 } | 2144 } |
| 2145 | 2145 |
| 2146 core.int buildCounterDiskTypesScopedListWarningData = 0; | 2146 core.int buildCounterDiskTypesScopedListWarningData = 0; |
| 2147 buildDiskTypesScopedListWarningData() { | 2147 buildDiskTypesScopedListWarningData() { |
| 2148 var o = new api.DiskTypesScopedListWarningData(); | 2148 var o = new api.DiskTypesScopedListWarningData(); |
| 2149 buildCounterDiskTypesScopedListWarningData++; | 2149 buildCounterDiskTypesScopedListWarningData++; |
| 2150 if (buildCounterDiskTypesScopedListWarningData < 3) { | 2150 if (buildCounterDiskTypesScopedListWarningData < 3) { |
| 2151 o.key = "foo"; | 2151 o.key = "foo"; |
| 2152 o.value = "foo"; | 2152 o.value = "foo"; |
| 2153 } | 2153 } |
| 2154 buildCounterDiskTypesScopedListWarningData--; | 2154 buildCounterDiskTypesScopedListWarningData--; |
| 2155 return o; | 2155 return o; |
| 2156 } | 2156 } |
| 2157 | 2157 |
| 2158 checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { | 2158 checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { |
| 2159 buildCounterDiskTypesScopedListWarningData++; | 2159 buildCounterDiskTypesScopedListWarningData++; |
| 2160 if (buildCounterDiskTypesScopedListWarningData < 3) { | 2160 if (buildCounterDiskTypesScopedListWarningData < 3) { |
| 2161 unittest.expect(o.key, unittest.equals('foo')); | 2161 unittest.expect(o.key, unittest.equals('foo')); |
| 2162 unittest.expect(o.value, unittest.equals('foo')); | 2162 unittest.expect(o.value, unittest.equals('foo')); |
| 2163 } | 2163 } |
| 2164 buildCounterDiskTypesScopedListWarningData--; | 2164 buildCounterDiskTypesScopedListWarningData--; |
| 2165 } | 2165 } |
| 2166 | 2166 |
| 2167 buildUnnamed2260() { | 2167 buildUnnamed2278() { |
| 2168 var o = new core.List<api.DiskTypesScopedListWarningData>(); | 2168 var o = new core.List<api.DiskTypesScopedListWarningData>(); |
| 2169 o.add(buildDiskTypesScopedListWarningData()); | 2169 o.add(buildDiskTypesScopedListWarningData()); |
| 2170 o.add(buildDiskTypesScopedListWarningData()); | 2170 o.add(buildDiskTypesScopedListWarningData()); |
| 2171 return o; | 2171 return o; |
| 2172 } | 2172 } |
| 2173 | 2173 |
| 2174 checkUnnamed2260(core.List<api.DiskTypesScopedListWarningData> o) { | 2174 checkUnnamed2278(core.List<api.DiskTypesScopedListWarningData> o) { |
| 2175 unittest.expect(o, unittest.hasLength(2)); | 2175 unittest.expect(o, unittest.hasLength(2)); |
| 2176 checkDiskTypesScopedListWarningData(o[0]); | 2176 checkDiskTypesScopedListWarningData(o[0]); |
| 2177 checkDiskTypesScopedListWarningData(o[1]); | 2177 checkDiskTypesScopedListWarningData(o[1]); |
| 2178 } | 2178 } |
| 2179 | 2179 |
| 2180 core.int buildCounterDiskTypesScopedListWarning = 0; | 2180 core.int buildCounterDiskTypesScopedListWarning = 0; |
| 2181 buildDiskTypesScopedListWarning() { | 2181 buildDiskTypesScopedListWarning() { |
| 2182 var o = new api.DiskTypesScopedListWarning(); | 2182 var o = new api.DiskTypesScopedListWarning(); |
| 2183 buildCounterDiskTypesScopedListWarning++; | 2183 buildCounterDiskTypesScopedListWarning++; |
| 2184 if (buildCounterDiskTypesScopedListWarning < 3) { | 2184 if (buildCounterDiskTypesScopedListWarning < 3) { |
| 2185 o.code = "foo"; | 2185 o.code = "foo"; |
| 2186 o.data = buildUnnamed2260(); | 2186 o.data = buildUnnamed2278(); |
| 2187 o.message = "foo"; | 2187 o.message = "foo"; |
| 2188 } | 2188 } |
| 2189 buildCounterDiskTypesScopedListWarning--; | 2189 buildCounterDiskTypesScopedListWarning--; |
| 2190 return o; | 2190 return o; |
| 2191 } | 2191 } |
| 2192 | 2192 |
| 2193 checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { | 2193 checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { |
| 2194 buildCounterDiskTypesScopedListWarning++; | 2194 buildCounterDiskTypesScopedListWarning++; |
| 2195 if (buildCounterDiskTypesScopedListWarning < 3) { | 2195 if (buildCounterDiskTypesScopedListWarning < 3) { |
| 2196 unittest.expect(o.code, unittest.equals('foo')); | 2196 unittest.expect(o.code, unittest.equals('foo')); |
| 2197 checkUnnamed2260(o.data); | 2197 checkUnnamed2278(o.data); |
| 2198 unittest.expect(o.message, unittest.equals('foo')); | 2198 unittest.expect(o.message, unittest.equals('foo')); |
| 2199 } | 2199 } |
| 2200 buildCounterDiskTypesScopedListWarning--; | 2200 buildCounterDiskTypesScopedListWarning--; |
| 2201 } | 2201 } |
| 2202 | 2202 |
| 2203 core.int buildCounterDiskTypesScopedList = 0; | 2203 core.int buildCounterDiskTypesScopedList = 0; |
| 2204 buildDiskTypesScopedList() { | 2204 buildDiskTypesScopedList() { |
| 2205 var o = new api.DiskTypesScopedList(); | 2205 var o = new api.DiskTypesScopedList(); |
| 2206 buildCounterDiskTypesScopedList++; | 2206 buildCounterDiskTypesScopedList++; |
| 2207 if (buildCounterDiskTypesScopedList < 3) { | 2207 if (buildCounterDiskTypesScopedList < 3) { |
| 2208 o.diskTypes = buildUnnamed2259(); | 2208 o.diskTypes = buildUnnamed2277(); |
| 2209 o.warning = buildDiskTypesScopedListWarning(); | 2209 o.warning = buildDiskTypesScopedListWarning(); |
| 2210 } | 2210 } |
| 2211 buildCounterDiskTypesScopedList--; | 2211 buildCounterDiskTypesScopedList--; |
| 2212 return o; | 2212 return o; |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 checkDiskTypesScopedList(api.DiskTypesScopedList o) { | 2215 checkDiskTypesScopedList(api.DiskTypesScopedList o) { |
| 2216 buildCounterDiskTypesScopedList++; | 2216 buildCounterDiskTypesScopedList++; |
| 2217 if (buildCounterDiskTypesScopedList < 3) { | 2217 if (buildCounterDiskTypesScopedList < 3) { |
| 2218 checkUnnamed2259(o.diskTypes); | 2218 checkUnnamed2277(o.diskTypes); |
| 2219 checkDiskTypesScopedListWarning(o.warning); | 2219 checkDiskTypesScopedListWarning(o.warning); |
| 2220 } | 2220 } |
| 2221 buildCounterDiskTypesScopedList--; | 2221 buildCounterDiskTypesScopedList--; |
| 2222 } | 2222 } |
| 2223 | 2223 |
| 2224 core.int buildCounterDisksResizeRequest = 0; | 2224 core.int buildCounterDisksResizeRequest = 0; |
| 2225 buildDisksResizeRequest() { | 2225 buildDisksResizeRequest() { |
| 2226 var o = new api.DisksResizeRequest(); | 2226 var o = new api.DisksResizeRequest(); |
| 2227 buildCounterDisksResizeRequest++; | 2227 buildCounterDisksResizeRequest++; |
| 2228 if (buildCounterDisksResizeRequest < 3) { | 2228 if (buildCounterDisksResizeRequest < 3) { |
| 2229 o.sizeGb = "foo"; | 2229 o.sizeGb = "foo"; |
| 2230 } | 2230 } |
| 2231 buildCounterDisksResizeRequest--; | 2231 buildCounterDisksResizeRequest--; |
| 2232 return o; | 2232 return o; |
| 2233 } | 2233 } |
| 2234 | 2234 |
| 2235 checkDisksResizeRequest(api.DisksResizeRequest o) { | 2235 checkDisksResizeRequest(api.DisksResizeRequest o) { |
| 2236 buildCounterDisksResizeRequest++; | 2236 buildCounterDisksResizeRequest++; |
| 2237 if (buildCounterDisksResizeRequest < 3) { | 2237 if (buildCounterDisksResizeRequest < 3) { |
| 2238 unittest.expect(o.sizeGb, unittest.equals('foo')); | 2238 unittest.expect(o.sizeGb, unittest.equals('foo')); |
| 2239 } | 2239 } |
| 2240 buildCounterDisksResizeRequest--; | 2240 buildCounterDisksResizeRequest--; |
| 2241 } | 2241 } |
| 2242 | 2242 |
| 2243 buildUnnamed2261() { | 2243 buildUnnamed2279() { |
| 2244 var o = new core.List<api.Disk>(); | 2244 var o = new core.List<api.Disk>(); |
| 2245 o.add(buildDisk()); | 2245 o.add(buildDisk()); |
| 2246 o.add(buildDisk()); | 2246 o.add(buildDisk()); |
| 2247 return o; | 2247 return o; |
| 2248 } | 2248 } |
| 2249 | 2249 |
| 2250 checkUnnamed2261(core.List<api.Disk> o) { | 2250 checkUnnamed2279(core.List<api.Disk> o) { |
| 2251 unittest.expect(o, unittest.hasLength(2)); | 2251 unittest.expect(o, unittest.hasLength(2)); |
| 2252 checkDisk(o[0]); | 2252 checkDisk(o[0]); |
| 2253 checkDisk(o[1]); | 2253 checkDisk(o[1]); |
| 2254 } | 2254 } |
| 2255 | 2255 |
| 2256 core.int buildCounterDisksScopedListWarningData = 0; | 2256 core.int buildCounterDisksScopedListWarningData = 0; |
| 2257 buildDisksScopedListWarningData() { | 2257 buildDisksScopedListWarningData() { |
| 2258 var o = new api.DisksScopedListWarningData(); | 2258 var o = new api.DisksScopedListWarningData(); |
| 2259 buildCounterDisksScopedListWarningData++; | 2259 buildCounterDisksScopedListWarningData++; |
| 2260 if (buildCounterDisksScopedListWarningData < 3) { | 2260 if (buildCounterDisksScopedListWarningData < 3) { |
| 2261 o.key = "foo"; | 2261 o.key = "foo"; |
| 2262 o.value = "foo"; | 2262 o.value = "foo"; |
| 2263 } | 2263 } |
| 2264 buildCounterDisksScopedListWarningData--; | 2264 buildCounterDisksScopedListWarningData--; |
| 2265 return o; | 2265 return o; |
| 2266 } | 2266 } |
| 2267 | 2267 |
| 2268 checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { | 2268 checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { |
| 2269 buildCounterDisksScopedListWarningData++; | 2269 buildCounterDisksScopedListWarningData++; |
| 2270 if (buildCounterDisksScopedListWarningData < 3) { | 2270 if (buildCounterDisksScopedListWarningData < 3) { |
| 2271 unittest.expect(o.key, unittest.equals('foo')); | 2271 unittest.expect(o.key, unittest.equals('foo')); |
| 2272 unittest.expect(o.value, unittest.equals('foo')); | 2272 unittest.expect(o.value, unittest.equals('foo')); |
| 2273 } | 2273 } |
| 2274 buildCounterDisksScopedListWarningData--; | 2274 buildCounterDisksScopedListWarningData--; |
| 2275 } | 2275 } |
| 2276 | 2276 |
| 2277 buildUnnamed2262() { | 2277 buildUnnamed2280() { |
| 2278 var o = new core.List<api.DisksScopedListWarningData>(); | 2278 var o = new core.List<api.DisksScopedListWarningData>(); |
| 2279 o.add(buildDisksScopedListWarningData()); | 2279 o.add(buildDisksScopedListWarningData()); |
| 2280 o.add(buildDisksScopedListWarningData()); | 2280 o.add(buildDisksScopedListWarningData()); |
| 2281 return o; | 2281 return o; |
| 2282 } | 2282 } |
| 2283 | 2283 |
| 2284 checkUnnamed2262(core.List<api.DisksScopedListWarningData> o) { | 2284 checkUnnamed2280(core.List<api.DisksScopedListWarningData> o) { |
| 2285 unittest.expect(o, unittest.hasLength(2)); | 2285 unittest.expect(o, unittest.hasLength(2)); |
| 2286 checkDisksScopedListWarningData(o[0]); | 2286 checkDisksScopedListWarningData(o[0]); |
| 2287 checkDisksScopedListWarningData(o[1]); | 2287 checkDisksScopedListWarningData(o[1]); |
| 2288 } | 2288 } |
| 2289 | 2289 |
| 2290 core.int buildCounterDisksScopedListWarning = 0; | 2290 core.int buildCounterDisksScopedListWarning = 0; |
| 2291 buildDisksScopedListWarning() { | 2291 buildDisksScopedListWarning() { |
| 2292 var o = new api.DisksScopedListWarning(); | 2292 var o = new api.DisksScopedListWarning(); |
| 2293 buildCounterDisksScopedListWarning++; | 2293 buildCounterDisksScopedListWarning++; |
| 2294 if (buildCounterDisksScopedListWarning < 3) { | 2294 if (buildCounterDisksScopedListWarning < 3) { |
| 2295 o.code = "foo"; | 2295 o.code = "foo"; |
| 2296 o.data = buildUnnamed2262(); | 2296 o.data = buildUnnamed2280(); |
| 2297 o.message = "foo"; | 2297 o.message = "foo"; |
| 2298 } | 2298 } |
| 2299 buildCounterDisksScopedListWarning--; | 2299 buildCounterDisksScopedListWarning--; |
| 2300 return o; | 2300 return o; |
| 2301 } | 2301 } |
| 2302 | 2302 |
| 2303 checkDisksScopedListWarning(api.DisksScopedListWarning o) { | 2303 checkDisksScopedListWarning(api.DisksScopedListWarning o) { |
| 2304 buildCounterDisksScopedListWarning++; | 2304 buildCounterDisksScopedListWarning++; |
| 2305 if (buildCounterDisksScopedListWarning < 3) { | 2305 if (buildCounterDisksScopedListWarning < 3) { |
| 2306 unittest.expect(o.code, unittest.equals('foo')); | 2306 unittest.expect(o.code, unittest.equals('foo')); |
| 2307 checkUnnamed2262(o.data); | 2307 checkUnnamed2280(o.data); |
| 2308 unittest.expect(o.message, unittest.equals('foo')); | 2308 unittest.expect(o.message, unittest.equals('foo')); |
| 2309 } | 2309 } |
| 2310 buildCounterDisksScopedListWarning--; | 2310 buildCounterDisksScopedListWarning--; |
| 2311 } | 2311 } |
| 2312 | 2312 |
| 2313 core.int buildCounterDisksScopedList = 0; | 2313 core.int buildCounterDisksScopedList = 0; |
| 2314 buildDisksScopedList() { | 2314 buildDisksScopedList() { |
| 2315 var o = new api.DisksScopedList(); | 2315 var o = new api.DisksScopedList(); |
| 2316 buildCounterDisksScopedList++; | 2316 buildCounterDisksScopedList++; |
| 2317 if (buildCounterDisksScopedList < 3) { | 2317 if (buildCounterDisksScopedList < 3) { |
| 2318 o.disks = buildUnnamed2261(); | 2318 o.disks = buildUnnamed2279(); |
| 2319 o.warning = buildDisksScopedListWarning(); | 2319 o.warning = buildDisksScopedListWarning(); |
| 2320 } | 2320 } |
| 2321 buildCounterDisksScopedList--; | 2321 buildCounterDisksScopedList--; |
| 2322 return o; | 2322 return o; |
| 2323 } | 2323 } |
| 2324 | 2324 |
| 2325 checkDisksScopedList(api.DisksScopedList o) { | 2325 checkDisksScopedList(api.DisksScopedList o) { |
| 2326 buildCounterDisksScopedList++; | 2326 buildCounterDisksScopedList++; |
| 2327 if (buildCounterDisksScopedList < 3) { | 2327 if (buildCounterDisksScopedList < 3) { |
| 2328 checkUnnamed2261(o.disks); | 2328 checkUnnamed2279(o.disks); |
| 2329 checkDisksScopedListWarning(o.warning); | 2329 checkDisksScopedListWarning(o.warning); |
| 2330 } | 2330 } |
| 2331 buildCounterDisksScopedList--; | 2331 buildCounterDisksScopedList--; |
| 2332 } | 2332 } |
| 2333 | 2333 |
| 2334 buildUnnamed2263() { | 2334 buildUnnamed2281() { |
| 2335 var o = new core.List<core.String>(); | 2335 var o = new core.List<core.String>(); |
| 2336 o.add("foo"); | 2336 o.add("foo"); |
| 2337 o.add("foo"); | 2337 o.add("foo"); |
| 2338 return o; | 2338 return o; |
| 2339 } | 2339 } |
| 2340 | 2340 |
| 2341 checkUnnamed2263(core.List<core.String> o) { | 2341 checkUnnamed2281(core.List<core.String> o) { |
| 2342 unittest.expect(o, unittest.hasLength(2)); | 2342 unittest.expect(o, unittest.hasLength(2)); |
| 2343 unittest.expect(o[0], unittest.equals('foo')); | 2343 unittest.expect(o[0], unittest.equals('foo')); |
| 2344 unittest.expect(o[1], unittest.equals('foo')); | 2344 unittest.expect(o[1], unittest.equals('foo')); |
| 2345 } | 2345 } |
| 2346 | 2346 |
| 2347 core.int buildCounterFirewallAllowed = 0; | 2347 core.int buildCounterFirewallAllowed = 0; |
| 2348 buildFirewallAllowed() { | 2348 buildFirewallAllowed() { |
| 2349 var o = new api.FirewallAllowed(); | 2349 var o = new api.FirewallAllowed(); |
| 2350 buildCounterFirewallAllowed++; | 2350 buildCounterFirewallAllowed++; |
| 2351 if (buildCounterFirewallAllowed < 3) { | 2351 if (buildCounterFirewallAllowed < 3) { |
| 2352 o.IPProtocol = "foo"; | 2352 o.IPProtocol = "foo"; |
| 2353 o.ports = buildUnnamed2263(); | 2353 o.ports = buildUnnamed2281(); |
| 2354 } | 2354 } |
| 2355 buildCounterFirewallAllowed--; | 2355 buildCounterFirewallAllowed--; |
| 2356 return o; | 2356 return o; |
| 2357 } | 2357 } |
| 2358 | 2358 |
| 2359 checkFirewallAllowed(api.FirewallAllowed o) { | 2359 checkFirewallAllowed(api.FirewallAllowed o) { |
| 2360 buildCounterFirewallAllowed++; | 2360 buildCounterFirewallAllowed++; |
| 2361 if (buildCounterFirewallAllowed < 3) { | 2361 if (buildCounterFirewallAllowed < 3) { |
| 2362 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 2362 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
| 2363 checkUnnamed2263(o.ports); | 2363 checkUnnamed2281(o.ports); |
| 2364 } | 2364 } |
| 2365 buildCounterFirewallAllowed--; | 2365 buildCounterFirewallAllowed--; |
| 2366 } | 2366 } |
| 2367 | 2367 |
| 2368 buildUnnamed2264() { | 2368 buildUnnamed2282() { |
| 2369 var o = new core.List<api.FirewallAllowed>(); | 2369 var o = new core.List<api.FirewallAllowed>(); |
| 2370 o.add(buildFirewallAllowed()); | 2370 o.add(buildFirewallAllowed()); |
| 2371 o.add(buildFirewallAllowed()); | 2371 o.add(buildFirewallAllowed()); |
| 2372 return o; | 2372 return o; |
| 2373 } | 2373 } |
| 2374 | 2374 |
| 2375 checkUnnamed2264(core.List<api.FirewallAllowed> o) { | 2375 checkUnnamed2282(core.List<api.FirewallAllowed> o) { |
| 2376 unittest.expect(o, unittest.hasLength(2)); | 2376 unittest.expect(o, unittest.hasLength(2)); |
| 2377 checkFirewallAllowed(o[0]); | 2377 checkFirewallAllowed(o[0]); |
| 2378 checkFirewallAllowed(o[1]); | 2378 checkFirewallAllowed(o[1]); |
| 2379 } | 2379 } |
| 2380 | 2380 |
| 2381 buildUnnamed2265() { | 2381 buildUnnamed2283() { |
| 2382 var o = new core.List<core.String>(); | 2382 var o = new core.List<core.String>(); |
| 2383 o.add("foo"); | 2383 o.add("foo"); |
| 2384 o.add("foo"); | 2384 o.add("foo"); |
| 2385 return o; | 2385 return o; |
| 2386 } | 2386 } |
| 2387 | 2387 |
| 2388 checkUnnamed2265(core.List<core.String> o) { | 2388 checkUnnamed2283(core.List<core.String> o) { |
| 2389 unittest.expect(o, unittest.hasLength(2)); | 2389 unittest.expect(o, unittest.hasLength(2)); |
| 2390 unittest.expect(o[0], unittest.equals('foo')); | 2390 unittest.expect(o[0], unittest.equals('foo')); |
| 2391 unittest.expect(o[1], unittest.equals('foo')); | 2391 unittest.expect(o[1], unittest.equals('foo')); |
| 2392 } | 2392 } |
| 2393 | 2393 |
| 2394 buildUnnamed2266() { | 2394 core.int buildCounterFirewallDenied = 0; |
| 2395 buildFirewallDenied() { |
| 2396 var o = new api.FirewallDenied(); |
| 2397 buildCounterFirewallDenied++; |
| 2398 if (buildCounterFirewallDenied < 3) { |
| 2399 o.IPProtocol = "foo"; |
| 2400 o.ports = buildUnnamed2283(); |
| 2401 } |
| 2402 buildCounterFirewallDenied--; |
| 2403 return o; |
| 2404 } |
| 2405 |
| 2406 checkFirewallDenied(api.FirewallDenied o) { |
| 2407 buildCounterFirewallDenied++; |
| 2408 if (buildCounterFirewallDenied < 3) { |
| 2409 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
| 2410 checkUnnamed2283(o.ports); |
| 2411 } |
| 2412 buildCounterFirewallDenied--; |
| 2413 } |
| 2414 |
| 2415 buildUnnamed2284() { |
| 2416 var o = new core.List<api.FirewallDenied>(); |
| 2417 o.add(buildFirewallDenied()); |
| 2418 o.add(buildFirewallDenied()); |
| 2419 return o; |
| 2420 } |
| 2421 |
| 2422 checkUnnamed2284(core.List<api.FirewallDenied> o) { |
| 2423 unittest.expect(o, unittest.hasLength(2)); |
| 2424 checkFirewallDenied(o[0]); |
| 2425 checkFirewallDenied(o[1]); |
| 2426 } |
| 2427 |
| 2428 buildUnnamed2285() { |
| 2395 var o = new core.List<core.String>(); | 2429 var o = new core.List<core.String>(); |
| 2396 o.add("foo"); | 2430 o.add("foo"); |
| 2397 o.add("foo"); | 2431 o.add("foo"); |
| 2398 return o; | 2432 return o; |
| 2399 } | 2433 } |
| 2400 | 2434 |
| 2401 checkUnnamed2266(core.List<core.String> o) { | 2435 checkUnnamed2285(core.List<core.String> o) { |
| 2402 unittest.expect(o, unittest.hasLength(2)); | 2436 unittest.expect(o, unittest.hasLength(2)); |
| 2403 unittest.expect(o[0], unittest.equals('foo')); | 2437 unittest.expect(o[0], unittest.equals('foo')); |
| 2404 unittest.expect(o[1], unittest.equals('foo')); | 2438 unittest.expect(o[1], unittest.equals('foo')); |
| 2405 } | 2439 } |
| 2406 | 2440 |
| 2407 buildUnnamed2267() { | 2441 buildUnnamed2286() { |
| 2408 var o = new core.List<core.String>(); | 2442 var o = new core.List<core.String>(); |
| 2409 o.add("foo"); | 2443 o.add("foo"); |
| 2410 o.add("foo"); | 2444 o.add("foo"); |
| 2411 return o; | 2445 return o; |
| 2412 } | 2446 } |
| 2413 | 2447 |
| 2414 checkUnnamed2267(core.List<core.String> o) { | 2448 checkUnnamed2286(core.List<core.String> o) { |
| 2415 unittest.expect(o, unittest.hasLength(2)); | 2449 unittest.expect(o, unittest.hasLength(2)); |
| 2416 unittest.expect(o[0], unittest.equals('foo')); | 2450 unittest.expect(o[0], unittest.equals('foo')); |
| 2417 unittest.expect(o[1], unittest.equals('foo')); | 2451 unittest.expect(o[1], unittest.equals('foo')); |
| 2452 } |
| 2453 |
| 2454 buildUnnamed2287() { |
| 2455 var o = new core.List<core.String>(); |
| 2456 o.add("foo"); |
| 2457 o.add("foo"); |
| 2458 return o; |
| 2459 } |
| 2460 |
| 2461 checkUnnamed2287(core.List<core.String> o) { |
| 2462 unittest.expect(o, unittest.hasLength(2)); |
| 2463 unittest.expect(o[0], unittest.equals('foo')); |
| 2464 unittest.expect(o[1], unittest.equals('foo')); |
| 2465 } |
| 2466 |
| 2467 buildUnnamed2288() { |
| 2468 var o = new core.List<core.String>(); |
| 2469 o.add("foo"); |
| 2470 o.add("foo"); |
| 2471 return o; |
| 2472 } |
| 2473 |
| 2474 checkUnnamed2288(core.List<core.String> o) { |
| 2475 unittest.expect(o, unittest.hasLength(2)); |
| 2476 unittest.expect(o[0], unittest.equals('foo')); |
| 2477 unittest.expect(o[1], unittest.equals('foo')); |
| 2418 } | 2478 } |
| 2419 | 2479 |
| 2420 core.int buildCounterFirewall = 0; | 2480 core.int buildCounterFirewall = 0; |
| 2421 buildFirewall() { | 2481 buildFirewall() { |
| 2422 var o = new api.Firewall(); | 2482 var o = new api.Firewall(); |
| 2423 buildCounterFirewall++; | 2483 buildCounterFirewall++; |
| 2424 if (buildCounterFirewall < 3) { | 2484 if (buildCounterFirewall < 3) { |
| 2425 o.allowed = buildUnnamed2264(); | 2485 o.allowed = buildUnnamed2282(); |
| 2426 o.creationTimestamp = "foo"; | 2486 o.creationTimestamp = "foo"; |
| 2487 o.denied = buildUnnamed2284(); |
| 2427 o.description = "foo"; | 2488 o.description = "foo"; |
| 2489 o.destinationRanges = buildUnnamed2285(); |
| 2490 o.direction = "foo"; |
| 2428 o.id = "foo"; | 2491 o.id = "foo"; |
| 2429 o.kind = "foo"; | 2492 o.kind = "foo"; |
| 2430 o.name = "foo"; | 2493 o.name = "foo"; |
| 2431 o.network = "foo"; | 2494 o.network = "foo"; |
| 2495 o.priority = 42; |
| 2432 o.selfLink = "foo"; | 2496 o.selfLink = "foo"; |
| 2433 o.sourceRanges = buildUnnamed2265(); | 2497 o.sourceRanges = buildUnnamed2286(); |
| 2434 o.sourceTags = buildUnnamed2266(); | 2498 o.sourceTags = buildUnnamed2287(); |
| 2435 o.targetTags = buildUnnamed2267(); | 2499 o.targetTags = buildUnnamed2288(); |
| 2436 } | 2500 } |
| 2437 buildCounterFirewall--; | 2501 buildCounterFirewall--; |
| 2438 return o; | 2502 return o; |
| 2439 } | 2503 } |
| 2440 | 2504 |
| 2441 checkFirewall(api.Firewall o) { | 2505 checkFirewall(api.Firewall o) { |
| 2442 buildCounterFirewall++; | 2506 buildCounterFirewall++; |
| 2443 if (buildCounterFirewall < 3) { | 2507 if (buildCounterFirewall < 3) { |
| 2444 checkUnnamed2264(o.allowed); | 2508 checkUnnamed2282(o.allowed); |
| 2445 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2509 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 2510 checkUnnamed2284(o.denied); |
| 2446 unittest.expect(o.description, unittest.equals('foo')); | 2511 unittest.expect(o.description, unittest.equals('foo')); |
| 2512 checkUnnamed2285(o.destinationRanges); |
| 2513 unittest.expect(o.direction, unittest.equals('foo')); |
| 2447 unittest.expect(o.id, unittest.equals('foo')); | 2514 unittest.expect(o.id, unittest.equals('foo')); |
| 2448 unittest.expect(o.kind, unittest.equals('foo')); | 2515 unittest.expect(o.kind, unittest.equals('foo')); |
| 2449 unittest.expect(o.name, unittest.equals('foo')); | 2516 unittest.expect(o.name, unittest.equals('foo')); |
| 2450 unittest.expect(o.network, unittest.equals('foo')); | 2517 unittest.expect(o.network, unittest.equals('foo')); |
| 2518 unittest.expect(o.priority, unittest.equals(42)); |
| 2451 unittest.expect(o.selfLink, unittest.equals('foo')); | 2519 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2452 checkUnnamed2265(o.sourceRanges); | 2520 checkUnnamed2286(o.sourceRanges); |
| 2453 checkUnnamed2266(o.sourceTags); | 2521 checkUnnamed2287(o.sourceTags); |
| 2454 checkUnnamed2267(o.targetTags); | 2522 checkUnnamed2288(o.targetTags); |
| 2455 } | 2523 } |
| 2456 buildCounterFirewall--; | 2524 buildCounterFirewall--; |
| 2457 } | 2525 } |
| 2458 | 2526 |
| 2459 buildUnnamed2268() { | 2527 buildUnnamed2289() { |
| 2460 var o = new core.List<api.Firewall>(); | 2528 var o = new core.List<api.Firewall>(); |
| 2461 o.add(buildFirewall()); | 2529 o.add(buildFirewall()); |
| 2462 o.add(buildFirewall()); | 2530 o.add(buildFirewall()); |
| 2463 return o; | 2531 return o; |
| 2464 } | 2532 } |
| 2465 | 2533 |
| 2466 checkUnnamed2268(core.List<api.Firewall> o) { | 2534 checkUnnamed2289(core.List<api.Firewall> o) { |
| 2467 unittest.expect(o, unittest.hasLength(2)); | 2535 unittest.expect(o, unittest.hasLength(2)); |
| 2468 checkFirewall(o[0]); | 2536 checkFirewall(o[0]); |
| 2469 checkFirewall(o[1]); | 2537 checkFirewall(o[1]); |
| 2470 } | 2538 } |
| 2471 | 2539 |
| 2472 core.int buildCounterFirewallList = 0; | 2540 core.int buildCounterFirewallList = 0; |
| 2473 buildFirewallList() { | 2541 buildFirewallList() { |
| 2474 var o = new api.FirewallList(); | 2542 var o = new api.FirewallList(); |
| 2475 buildCounterFirewallList++; | 2543 buildCounterFirewallList++; |
| 2476 if (buildCounterFirewallList < 3) { | 2544 if (buildCounterFirewallList < 3) { |
| 2477 o.id = "foo"; | 2545 o.id = "foo"; |
| 2478 o.items = buildUnnamed2268(); | 2546 o.items = buildUnnamed2289(); |
| 2479 o.kind = "foo"; | 2547 o.kind = "foo"; |
| 2480 o.nextPageToken = "foo"; | 2548 o.nextPageToken = "foo"; |
| 2481 o.selfLink = "foo"; | 2549 o.selfLink = "foo"; |
| 2482 } | 2550 } |
| 2483 buildCounterFirewallList--; | 2551 buildCounterFirewallList--; |
| 2484 return o; | 2552 return o; |
| 2485 } | 2553 } |
| 2486 | 2554 |
| 2487 checkFirewallList(api.FirewallList o) { | 2555 checkFirewallList(api.FirewallList o) { |
| 2488 buildCounterFirewallList++; | 2556 buildCounterFirewallList++; |
| 2489 if (buildCounterFirewallList < 3) { | 2557 if (buildCounterFirewallList < 3) { |
| 2490 unittest.expect(o.id, unittest.equals('foo')); | 2558 unittest.expect(o.id, unittest.equals('foo')); |
| 2491 checkUnnamed2268(o.items); | 2559 checkUnnamed2289(o.items); |
| 2492 unittest.expect(o.kind, unittest.equals('foo')); | 2560 unittest.expect(o.kind, unittest.equals('foo')); |
| 2493 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2561 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2494 unittest.expect(o.selfLink, unittest.equals('foo')); | 2562 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2495 } | 2563 } |
| 2496 buildCounterFirewallList--; | 2564 buildCounterFirewallList--; |
| 2497 } | 2565 } |
| 2498 | 2566 |
| 2499 buildUnnamed2269() { | 2567 buildUnnamed2290() { |
| 2500 var o = new core.List<core.String>(); | 2568 var o = new core.List<core.String>(); |
| 2501 o.add("foo"); | 2569 o.add("foo"); |
| 2502 o.add("foo"); | 2570 o.add("foo"); |
| 2503 return o; | 2571 return o; |
| 2504 } | 2572 } |
| 2505 | 2573 |
| 2506 checkUnnamed2269(core.List<core.String> o) { | 2574 checkUnnamed2290(core.List<core.String> o) { |
| 2507 unittest.expect(o, unittest.hasLength(2)); | 2575 unittest.expect(o, unittest.hasLength(2)); |
| 2508 unittest.expect(o[0], unittest.equals('foo')); | 2576 unittest.expect(o[0], unittest.equals('foo')); |
| 2509 unittest.expect(o[1], unittest.equals('foo')); | 2577 unittest.expect(o[1], unittest.equals('foo')); |
| 2510 } | 2578 } |
| 2511 | 2579 |
| 2512 core.int buildCounterForwardingRule = 0; | 2580 core.int buildCounterForwardingRule = 0; |
| 2513 buildForwardingRule() { | 2581 buildForwardingRule() { |
| 2514 var o = new api.ForwardingRule(); | 2582 var o = new api.ForwardingRule(); |
| 2515 buildCounterForwardingRule++; | 2583 buildCounterForwardingRule++; |
| 2516 if (buildCounterForwardingRule < 3) { | 2584 if (buildCounterForwardingRule < 3) { |
| 2517 o.IPAddress = "foo"; | 2585 o.IPAddress = "foo"; |
| 2518 o.IPProtocol = "foo"; | 2586 o.IPProtocol = "foo"; |
| 2519 o.backendService = "foo"; | 2587 o.backendService = "foo"; |
| 2520 o.creationTimestamp = "foo"; | 2588 o.creationTimestamp = "foo"; |
| 2521 o.description = "foo"; | 2589 o.description = "foo"; |
| 2522 o.id = "foo"; | 2590 o.id = "foo"; |
| 2523 o.ipVersion = "foo"; | 2591 o.ipVersion = "foo"; |
| 2524 o.kind = "foo"; | 2592 o.kind = "foo"; |
| 2525 o.loadBalancingScheme = "foo"; | 2593 o.loadBalancingScheme = "foo"; |
| 2526 o.name = "foo"; | 2594 o.name = "foo"; |
| 2527 o.network = "foo"; | 2595 o.network = "foo"; |
| 2528 o.portRange = "foo"; | 2596 o.portRange = "foo"; |
| 2529 o.ports = buildUnnamed2269(); | 2597 o.ports = buildUnnamed2290(); |
| 2530 o.region = "foo"; | 2598 o.region = "foo"; |
| 2531 o.selfLink = "foo"; | 2599 o.selfLink = "foo"; |
| 2532 o.subnetwork = "foo"; | 2600 o.subnetwork = "foo"; |
| 2533 o.target = "foo"; | 2601 o.target = "foo"; |
| 2534 } | 2602 } |
| 2535 buildCounterForwardingRule--; | 2603 buildCounterForwardingRule--; |
| 2536 return o; | 2604 return o; |
| 2537 } | 2605 } |
| 2538 | 2606 |
| 2539 checkForwardingRule(api.ForwardingRule o) { | 2607 checkForwardingRule(api.ForwardingRule o) { |
| 2540 buildCounterForwardingRule++; | 2608 buildCounterForwardingRule++; |
| 2541 if (buildCounterForwardingRule < 3) { | 2609 if (buildCounterForwardingRule < 3) { |
| 2542 unittest.expect(o.IPAddress, unittest.equals('foo')); | 2610 unittest.expect(o.IPAddress, unittest.equals('foo')); |
| 2543 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 2611 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
| 2544 unittest.expect(o.backendService, unittest.equals('foo')); | 2612 unittest.expect(o.backendService, unittest.equals('foo')); |
| 2545 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2613 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 2546 unittest.expect(o.description, unittest.equals('foo')); | 2614 unittest.expect(o.description, unittest.equals('foo')); |
| 2547 unittest.expect(o.id, unittest.equals('foo')); | 2615 unittest.expect(o.id, unittest.equals('foo')); |
| 2548 unittest.expect(o.ipVersion, unittest.equals('foo')); | 2616 unittest.expect(o.ipVersion, unittest.equals('foo')); |
| 2549 unittest.expect(o.kind, unittest.equals('foo')); | 2617 unittest.expect(o.kind, unittest.equals('foo')); |
| 2550 unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); | 2618 unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); |
| 2551 unittest.expect(o.name, unittest.equals('foo')); | 2619 unittest.expect(o.name, unittest.equals('foo')); |
| 2552 unittest.expect(o.network, unittest.equals('foo')); | 2620 unittest.expect(o.network, unittest.equals('foo')); |
| 2553 unittest.expect(o.portRange, unittest.equals('foo')); | 2621 unittest.expect(o.portRange, unittest.equals('foo')); |
| 2554 checkUnnamed2269(o.ports); | 2622 checkUnnamed2290(o.ports); |
| 2555 unittest.expect(o.region, unittest.equals('foo')); | 2623 unittest.expect(o.region, unittest.equals('foo')); |
| 2556 unittest.expect(o.selfLink, unittest.equals('foo')); | 2624 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2557 unittest.expect(o.subnetwork, unittest.equals('foo')); | 2625 unittest.expect(o.subnetwork, unittest.equals('foo')); |
| 2558 unittest.expect(o.target, unittest.equals('foo')); | 2626 unittest.expect(o.target, unittest.equals('foo')); |
| 2559 } | 2627 } |
| 2560 buildCounterForwardingRule--; | 2628 buildCounterForwardingRule--; |
| 2561 } | 2629 } |
| 2562 | 2630 |
| 2563 buildUnnamed2270() { | 2631 buildUnnamed2291() { |
| 2564 var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); | 2632 var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); |
| 2565 o["x"] = buildForwardingRulesScopedList(); | 2633 o["x"] = buildForwardingRulesScopedList(); |
| 2566 o["y"] = buildForwardingRulesScopedList(); | 2634 o["y"] = buildForwardingRulesScopedList(); |
| 2567 return o; | 2635 return o; |
| 2568 } | 2636 } |
| 2569 | 2637 |
| 2570 checkUnnamed2270(core.Map<core.String, api.ForwardingRulesScopedList> o) { | 2638 checkUnnamed2291(core.Map<core.String, api.ForwardingRulesScopedList> o) { |
| 2571 unittest.expect(o, unittest.hasLength(2)); | 2639 unittest.expect(o, unittest.hasLength(2)); |
| 2572 checkForwardingRulesScopedList(o["x"]); | 2640 checkForwardingRulesScopedList(o["x"]); |
| 2573 checkForwardingRulesScopedList(o["y"]); | 2641 checkForwardingRulesScopedList(o["y"]); |
| 2574 } | 2642 } |
| 2575 | 2643 |
| 2576 core.int buildCounterForwardingRuleAggregatedList = 0; | 2644 core.int buildCounterForwardingRuleAggregatedList = 0; |
| 2577 buildForwardingRuleAggregatedList() { | 2645 buildForwardingRuleAggregatedList() { |
| 2578 var o = new api.ForwardingRuleAggregatedList(); | 2646 var o = new api.ForwardingRuleAggregatedList(); |
| 2579 buildCounterForwardingRuleAggregatedList++; | 2647 buildCounterForwardingRuleAggregatedList++; |
| 2580 if (buildCounterForwardingRuleAggregatedList < 3) { | 2648 if (buildCounterForwardingRuleAggregatedList < 3) { |
| 2581 o.id = "foo"; | 2649 o.id = "foo"; |
| 2582 o.items = buildUnnamed2270(); | 2650 o.items = buildUnnamed2291(); |
| 2583 o.kind = "foo"; | 2651 o.kind = "foo"; |
| 2584 o.nextPageToken = "foo"; | 2652 o.nextPageToken = "foo"; |
| 2585 o.selfLink = "foo"; | 2653 o.selfLink = "foo"; |
| 2586 } | 2654 } |
| 2587 buildCounterForwardingRuleAggregatedList--; | 2655 buildCounterForwardingRuleAggregatedList--; |
| 2588 return o; | 2656 return o; |
| 2589 } | 2657 } |
| 2590 | 2658 |
| 2591 checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { | 2659 checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { |
| 2592 buildCounterForwardingRuleAggregatedList++; | 2660 buildCounterForwardingRuleAggregatedList++; |
| 2593 if (buildCounterForwardingRuleAggregatedList < 3) { | 2661 if (buildCounterForwardingRuleAggregatedList < 3) { |
| 2594 unittest.expect(o.id, unittest.equals('foo')); | 2662 unittest.expect(o.id, unittest.equals('foo')); |
| 2595 checkUnnamed2270(o.items); | 2663 checkUnnamed2291(o.items); |
| 2596 unittest.expect(o.kind, unittest.equals('foo')); | 2664 unittest.expect(o.kind, unittest.equals('foo')); |
| 2597 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2665 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2598 unittest.expect(o.selfLink, unittest.equals('foo')); | 2666 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2599 } | 2667 } |
| 2600 buildCounterForwardingRuleAggregatedList--; | 2668 buildCounterForwardingRuleAggregatedList--; |
| 2601 } | 2669 } |
| 2602 | 2670 |
| 2603 buildUnnamed2271() { | 2671 buildUnnamed2292() { |
| 2604 var o = new core.List<api.ForwardingRule>(); | 2672 var o = new core.List<api.ForwardingRule>(); |
| 2605 o.add(buildForwardingRule()); | 2673 o.add(buildForwardingRule()); |
| 2606 o.add(buildForwardingRule()); | 2674 o.add(buildForwardingRule()); |
| 2607 return o; | 2675 return o; |
| 2608 } | 2676 } |
| 2609 | 2677 |
| 2610 checkUnnamed2271(core.List<api.ForwardingRule> o) { | 2678 checkUnnamed2292(core.List<api.ForwardingRule> o) { |
| 2611 unittest.expect(o, unittest.hasLength(2)); | 2679 unittest.expect(o, unittest.hasLength(2)); |
| 2612 checkForwardingRule(o[0]); | 2680 checkForwardingRule(o[0]); |
| 2613 checkForwardingRule(o[1]); | 2681 checkForwardingRule(o[1]); |
| 2614 } | 2682 } |
| 2615 | 2683 |
| 2616 core.int buildCounterForwardingRuleList = 0; | 2684 core.int buildCounterForwardingRuleList = 0; |
| 2617 buildForwardingRuleList() { | 2685 buildForwardingRuleList() { |
| 2618 var o = new api.ForwardingRuleList(); | 2686 var o = new api.ForwardingRuleList(); |
| 2619 buildCounterForwardingRuleList++; | 2687 buildCounterForwardingRuleList++; |
| 2620 if (buildCounterForwardingRuleList < 3) { | 2688 if (buildCounterForwardingRuleList < 3) { |
| 2621 o.id = "foo"; | 2689 o.id = "foo"; |
| 2622 o.items = buildUnnamed2271(); | 2690 o.items = buildUnnamed2292(); |
| 2623 o.kind = "foo"; | 2691 o.kind = "foo"; |
| 2624 o.nextPageToken = "foo"; | 2692 o.nextPageToken = "foo"; |
| 2625 o.selfLink = "foo"; | 2693 o.selfLink = "foo"; |
| 2626 } | 2694 } |
| 2627 buildCounterForwardingRuleList--; | 2695 buildCounterForwardingRuleList--; |
| 2628 return o; | 2696 return o; |
| 2629 } | 2697 } |
| 2630 | 2698 |
| 2631 checkForwardingRuleList(api.ForwardingRuleList o) { | 2699 checkForwardingRuleList(api.ForwardingRuleList o) { |
| 2632 buildCounterForwardingRuleList++; | 2700 buildCounterForwardingRuleList++; |
| 2633 if (buildCounterForwardingRuleList < 3) { | 2701 if (buildCounterForwardingRuleList < 3) { |
| 2634 unittest.expect(o.id, unittest.equals('foo')); | 2702 unittest.expect(o.id, unittest.equals('foo')); |
| 2635 checkUnnamed2271(o.items); | 2703 checkUnnamed2292(o.items); |
| 2636 unittest.expect(o.kind, unittest.equals('foo')); | 2704 unittest.expect(o.kind, unittest.equals('foo')); |
| 2637 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2705 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2638 unittest.expect(o.selfLink, unittest.equals('foo')); | 2706 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2639 } | 2707 } |
| 2640 buildCounterForwardingRuleList--; | 2708 buildCounterForwardingRuleList--; |
| 2641 } | 2709 } |
| 2642 | 2710 |
| 2643 buildUnnamed2272() { | 2711 buildUnnamed2293() { |
| 2644 var o = new core.List<api.ForwardingRule>(); | 2712 var o = new core.List<api.ForwardingRule>(); |
| 2645 o.add(buildForwardingRule()); | 2713 o.add(buildForwardingRule()); |
| 2646 o.add(buildForwardingRule()); | 2714 o.add(buildForwardingRule()); |
| 2647 return o; | 2715 return o; |
| 2648 } | 2716 } |
| 2649 | 2717 |
| 2650 checkUnnamed2272(core.List<api.ForwardingRule> o) { | 2718 checkUnnamed2293(core.List<api.ForwardingRule> o) { |
| 2651 unittest.expect(o, unittest.hasLength(2)); | 2719 unittest.expect(o, unittest.hasLength(2)); |
| 2652 checkForwardingRule(o[0]); | 2720 checkForwardingRule(o[0]); |
| 2653 checkForwardingRule(o[1]); | 2721 checkForwardingRule(o[1]); |
| 2654 } | 2722 } |
| 2655 | 2723 |
| 2656 core.int buildCounterForwardingRulesScopedListWarningData = 0; | 2724 core.int buildCounterForwardingRulesScopedListWarningData = 0; |
| 2657 buildForwardingRulesScopedListWarningData() { | 2725 buildForwardingRulesScopedListWarningData() { |
| 2658 var o = new api.ForwardingRulesScopedListWarningData(); | 2726 var o = new api.ForwardingRulesScopedListWarningData(); |
| 2659 buildCounterForwardingRulesScopedListWarningData++; | 2727 buildCounterForwardingRulesScopedListWarningData++; |
| 2660 if (buildCounterForwardingRulesScopedListWarningData < 3) { | 2728 if (buildCounterForwardingRulesScopedListWarningData < 3) { |
| 2661 o.key = "foo"; | 2729 o.key = "foo"; |
| 2662 o.value = "foo"; | 2730 o.value = "foo"; |
| 2663 } | 2731 } |
| 2664 buildCounterForwardingRulesScopedListWarningData--; | 2732 buildCounterForwardingRulesScopedListWarningData--; |
| 2665 return o; | 2733 return o; |
| 2666 } | 2734 } |
| 2667 | 2735 |
| 2668 checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
ta o) { | 2736 checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
ta o) { |
| 2669 buildCounterForwardingRulesScopedListWarningData++; | 2737 buildCounterForwardingRulesScopedListWarningData++; |
| 2670 if (buildCounterForwardingRulesScopedListWarningData < 3) { | 2738 if (buildCounterForwardingRulesScopedListWarningData < 3) { |
| 2671 unittest.expect(o.key, unittest.equals('foo')); | 2739 unittest.expect(o.key, unittest.equals('foo')); |
| 2672 unittest.expect(o.value, unittest.equals('foo')); | 2740 unittest.expect(o.value, unittest.equals('foo')); |
| 2673 } | 2741 } |
| 2674 buildCounterForwardingRulesScopedListWarningData--; | 2742 buildCounterForwardingRulesScopedListWarningData--; |
| 2675 } | 2743 } |
| 2676 | 2744 |
| 2677 buildUnnamed2273() { | 2745 buildUnnamed2294() { |
| 2678 var o = new core.List<api.ForwardingRulesScopedListWarningData>(); | 2746 var o = new core.List<api.ForwardingRulesScopedListWarningData>(); |
| 2679 o.add(buildForwardingRulesScopedListWarningData()); | 2747 o.add(buildForwardingRulesScopedListWarningData()); |
| 2680 o.add(buildForwardingRulesScopedListWarningData()); | 2748 o.add(buildForwardingRulesScopedListWarningData()); |
| 2681 return o; | 2749 return o; |
| 2682 } | 2750 } |
| 2683 | 2751 |
| 2684 checkUnnamed2273(core.List<api.ForwardingRulesScopedListWarningData> o) { | 2752 checkUnnamed2294(core.List<api.ForwardingRulesScopedListWarningData> o) { |
| 2685 unittest.expect(o, unittest.hasLength(2)); | 2753 unittest.expect(o, unittest.hasLength(2)); |
| 2686 checkForwardingRulesScopedListWarningData(o[0]); | 2754 checkForwardingRulesScopedListWarningData(o[0]); |
| 2687 checkForwardingRulesScopedListWarningData(o[1]); | 2755 checkForwardingRulesScopedListWarningData(o[1]); |
| 2688 } | 2756 } |
| 2689 | 2757 |
| 2690 core.int buildCounterForwardingRulesScopedListWarning = 0; | 2758 core.int buildCounterForwardingRulesScopedListWarning = 0; |
| 2691 buildForwardingRulesScopedListWarning() { | 2759 buildForwardingRulesScopedListWarning() { |
| 2692 var o = new api.ForwardingRulesScopedListWarning(); | 2760 var o = new api.ForwardingRulesScopedListWarning(); |
| 2693 buildCounterForwardingRulesScopedListWarning++; | 2761 buildCounterForwardingRulesScopedListWarning++; |
| 2694 if (buildCounterForwardingRulesScopedListWarning < 3) { | 2762 if (buildCounterForwardingRulesScopedListWarning < 3) { |
| 2695 o.code = "foo"; | 2763 o.code = "foo"; |
| 2696 o.data = buildUnnamed2273(); | 2764 o.data = buildUnnamed2294(); |
| 2697 o.message = "foo"; | 2765 o.message = "foo"; |
| 2698 } | 2766 } |
| 2699 buildCounterForwardingRulesScopedListWarning--; | 2767 buildCounterForwardingRulesScopedListWarning--; |
| 2700 return o; | 2768 return o; |
| 2701 } | 2769 } |
| 2702 | 2770 |
| 2703 checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) { | 2771 checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) { |
| 2704 buildCounterForwardingRulesScopedListWarning++; | 2772 buildCounterForwardingRulesScopedListWarning++; |
| 2705 if (buildCounterForwardingRulesScopedListWarning < 3) { | 2773 if (buildCounterForwardingRulesScopedListWarning < 3) { |
| 2706 unittest.expect(o.code, unittest.equals('foo')); | 2774 unittest.expect(o.code, unittest.equals('foo')); |
| 2707 checkUnnamed2273(o.data); | 2775 checkUnnamed2294(o.data); |
| 2708 unittest.expect(o.message, unittest.equals('foo')); | 2776 unittest.expect(o.message, unittest.equals('foo')); |
| 2709 } | 2777 } |
| 2710 buildCounterForwardingRulesScopedListWarning--; | 2778 buildCounterForwardingRulesScopedListWarning--; |
| 2711 } | 2779 } |
| 2712 | 2780 |
| 2713 core.int buildCounterForwardingRulesScopedList = 0; | 2781 core.int buildCounterForwardingRulesScopedList = 0; |
| 2714 buildForwardingRulesScopedList() { | 2782 buildForwardingRulesScopedList() { |
| 2715 var o = new api.ForwardingRulesScopedList(); | 2783 var o = new api.ForwardingRulesScopedList(); |
| 2716 buildCounterForwardingRulesScopedList++; | 2784 buildCounterForwardingRulesScopedList++; |
| 2717 if (buildCounterForwardingRulesScopedList < 3) { | 2785 if (buildCounterForwardingRulesScopedList < 3) { |
| 2718 o.forwardingRules = buildUnnamed2272(); | 2786 o.forwardingRules = buildUnnamed2293(); |
| 2719 o.warning = buildForwardingRulesScopedListWarning(); | 2787 o.warning = buildForwardingRulesScopedListWarning(); |
| 2720 } | 2788 } |
| 2721 buildCounterForwardingRulesScopedList--; | 2789 buildCounterForwardingRulesScopedList--; |
| 2722 return o; | 2790 return o; |
| 2723 } | 2791 } |
| 2724 | 2792 |
| 2725 checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { | 2793 checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { |
| 2726 buildCounterForwardingRulesScopedList++; | 2794 buildCounterForwardingRulesScopedList++; |
| 2727 if (buildCounterForwardingRulesScopedList < 3) { | 2795 if (buildCounterForwardingRulesScopedList < 3) { |
| 2728 checkUnnamed2272(o.forwardingRules); | 2796 checkUnnamed2293(o.forwardingRules); |
| 2729 checkForwardingRulesScopedListWarning(o.warning); | 2797 checkForwardingRulesScopedListWarning(o.warning); |
| 2730 } | 2798 } |
| 2731 buildCounterForwardingRulesScopedList--; | 2799 buildCounterForwardingRulesScopedList--; |
| 2732 } | 2800 } |
| 2733 | 2801 |
| 2734 buildUnnamed2274() { | 2802 buildUnnamed2295() { |
| 2735 var o = new core.Map<core.String, core.String>(); | 2803 var o = new core.Map<core.String, core.String>(); |
| 2736 o["x"] = "foo"; | 2804 o["x"] = "foo"; |
| 2737 o["y"] = "foo"; | 2805 o["y"] = "foo"; |
| 2738 return o; | 2806 return o; |
| 2739 } | 2807 } |
| 2740 | 2808 |
| 2741 checkUnnamed2274(core.Map<core.String, core.String> o) { | 2809 checkUnnamed2295(core.Map<core.String, core.String> o) { |
| 2742 unittest.expect(o, unittest.hasLength(2)); | 2810 unittest.expect(o, unittest.hasLength(2)); |
| 2743 unittest.expect(o["x"], unittest.equals('foo')); | 2811 unittest.expect(o["x"], unittest.equals('foo')); |
| 2744 unittest.expect(o["y"], unittest.equals('foo')); | 2812 unittest.expect(o["y"], unittest.equals('foo')); |
| 2745 } | 2813 } |
| 2746 | 2814 |
| 2747 core.int buildCounterGlobalSetLabelsRequest = 0; | 2815 core.int buildCounterGlobalSetLabelsRequest = 0; |
| 2748 buildGlobalSetLabelsRequest() { | 2816 buildGlobalSetLabelsRequest() { |
| 2749 var o = new api.GlobalSetLabelsRequest(); | 2817 var o = new api.GlobalSetLabelsRequest(); |
| 2750 buildCounterGlobalSetLabelsRequest++; | 2818 buildCounterGlobalSetLabelsRequest++; |
| 2751 if (buildCounterGlobalSetLabelsRequest < 3) { | 2819 if (buildCounterGlobalSetLabelsRequest < 3) { |
| 2752 o.labelFingerprint = "foo"; | 2820 o.labelFingerprint = "foo"; |
| 2753 o.labels = buildUnnamed2274(); | 2821 o.labels = buildUnnamed2295(); |
| 2754 } | 2822 } |
| 2755 buildCounterGlobalSetLabelsRequest--; | 2823 buildCounterGlobalSetLabelsRequest--; |
| 2756 return o; | 2824 return o; |
| 2757 } | 2825 } |
| 2758 | 2826 |
| 2759 checkGlobalSetLabelsRequest(api.GlobalSetLabelsRequest o) { | 2827 checkGlobalSetLabelsRequest(api.GlobalSetLabelsRequest o) { |
| 2760 buildCounterGlobalSetLabelsRequest++; | 2828 buildCounterGlobalSetLabelsRequest++; |
| 2761 if (buildCounterGlobalSetLabelsRequest < 3) { | 2829 if (buildCounterGlobalSetLabelsRequest < 3) { |
| 2762 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 2830 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 2763 checkUnnamed2274(o.labels); | 2831 checkUnnamed2295(o.labels); |
| 2764 } | 2832 } |
| 2765 buildCounterGlobalSetLabelsRequest--; | 2833 buildCounterGlobalSetLabelsRequest--; |
| 2766 } | 2834 } |
| 2767 | 2835 |
| 2768 core.int buildCounterGuestOsFeature = 0; | 2836 core.int buildCounterGuestOsFeature = 0; |
| 2769 buildGuestOsFeature() { | 2837 buildGuestOsFeature() { |
| 2770 var o = new api.GuestOsFeature(); | 2838 var o = new api.GuestOsFeature(); |
| 2771 buildCounterGuestOsFeature++; | 2839 buildCounterGuestOsFeature++; |
| 2772 if (buildCounterGuestOsFeature < 3) { | 2840 if (buildCounterGuestOsFeature < 3) { |
| 2773 o.type = "foo"; | 2841 o.type = "foo"; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2878 unittest.expect(o.selfLink, unittest.equals('foo')); | 2946 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2879 checkSSLHealthCheck(o.sslHealthCheck); | 2947 checkSSLHealthCheck(o.sslHealthCheck); |
| 2880 checkTCPHealthCheck(o.tcpHealthCheck); | 2948 checkTCPHealthCheck(o.tcpHealthCheck); |
| 2881 unittest.expect(o.timeoutSec, unittest.equals(42)); | 2949 unittest.expect(o.timeoutSec, unittest.equals(42)); |
| 2882 unittest.expect(o.type, unittest.equals('foo')); | 2950 unittest.expect(o.type, unittest.equals('foo')); |
| 2883 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 2951 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
| 2884 } | 2952 } |
| 2885 buildCounterHealthCheck--; | 2953 buildCounterHealthCheck--; |
| 2886 } | 2954 } |
| 2887 | 2955 |
| 2888 buildUnnamed2275() { | 2956 buildUnnamed2296() { |
| 2889 var o = new core.List<api.HealthCheck>(); | 2957 var o = new core.List<api.HealthCheck>(); |
| 2890 o.add(buildHealthCheck()); | 2958 o.add(buildHealthCheck()); |
| 2891 o.add(buildHealthCheck()); | 2959 o.add(buildHealthCheck()); |
| 2892 return o; | 2960 return o; |
| 2893 } | 2961 } |
| 2894 | 2962 |
| 2895 checkUnnamed2275(core.List<api.HealthCheck> o) { | 2963 checkUnnamed2296(core.List<api.HealthCheck> o) { |
| 2896 unittest.expect(o, unittest.hasLength(2)); | 2964 unittest.expect(o, unittest.hasLength(2)); |
| 2897 checkHealthCheck(o[0]); | 2965 checkHealthCheck(o[0]); |
| 2898 checkHealthCheck(o[1]); | 2966 checkHealthCheck(o[1]); |
| 2899 } | 2967 } |
| 2900 | 2968 |
| 2901 core.int buildCounterHealthCheckList = 0; | 2969 core.int buildCounterHealthCheckList = 0; |
| 2902 buildHealthCheckList() { | 2970 buildHealthCheckList() { |
| 2903 var o = new api.HealthCheckList(); | 2971 var o = new api.HealthCheckList(); |
| 2904 buildCounterHealthCheckList++; | 2972 buildCounterHealthCheckList++; |
| 2905 if (buildCounterHealthCheckList < 3) { | 2973 if (buildCounterHealthCheckList < 3) { |
| 2906 o.id = "foo"; | 2974 o.id = "foo"; |
| 2907 o.items = buildUnnamed2275(); | 2975 o.items = buildUnnamed2296(); |
| 2908 o.kind = "foo"; | 2976 o.kind = "foo"; |
| 2909 o.nextPageToken = "foo"; | 2977 o.nextPageToken = "foo"; |
| 2910 o.selfLink = "foo"; | 2978 o.selfLink = "foo"; |
| 2911 } | 2979 } |
| 2912 buildCounterHealthCheckList--; | 2980 buildCounterHealthCheckList--; |
| 2913 return o; | 2981 return o; |
| 2914 } | 2982 } |
| 2915 | 2983 |
| 2916 checkHealthCheckList(api.HealthCheckList o) { | 2984 checkHealthCheckList(api.HealthCheckList o) { |
| 2917 buildCounterHealthCheckList++; | 2985 buildCounterHealthCheckList++; |
| 2918 if (buildCounterHealthCheckList < 3) { | 2986 if (buildCounterHealthCheckList < 3) { |
| 2919 unittest.expect(o.id, unittest.equals('foo')); | 2987 unittest.expect(o.id, unittest.equals('foo')); |
| 2920 checkUnnamed2275(o.items); | 2988 checkUnnamed2296(o.items); |
| 2921 unittest.expect(o.kind, unittest.equals('foo')); | 2989 unittest.expect(o.kind, unittest.equals('foo')); |
| 2922 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2990 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2923 unittest.expect(o.selfLink, unittest.equals('foo')); | 2991 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2924 } | 2992 } |
| 2925 buildCounterHealthCheckList--; | 2993 buildCounterHealthCheckList--; |
| 2926 } | 2994 } |
| 2927 | 2995 |
| 2928 core.int buildCounterHealthCheckReference = 0; | 2996 core.int buildCounterHealthCheckReference = 0; |
| 2929 buildHealthCheckReference() { | 2997 buildHealthCheckReference() { |
| 2930 var o = new api.HealthCheckReference(); | 2998 var o = new api.HealthCheckReference(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2962 buildCounterHealthStatus++; | 3030 buildCounterHealthStatus++; |
| 2963 if (buildCounterHealthStatus < 3) { | 3031 if (buildCounterHealthStatus < 3) { |
| 2964 unittest.expect(o.healthState, unittest.equals('foo')); | 3032 unittest.expect(o.healthState, unittest.equals('foo')); |
| 2965 unittest.expect(o.instance, unittest.equals('foo')); | 3033 unittest.expect(o.instance, unittest.equals('foo')); |
| 2966 unittest.expect(o.ipAddress, unittest.equals('foo')); | 3034 unittest.expect(o.ipAddress, unittest.equals('foo')); |
| 2967 unittest.expect(o.port, unittest.equals(42)); | 3035 unittest.expect(o.port, unittest.equals(42)); |
| 2968 } | 3036 } |
| 2969 buildCounterHealthStatus--; | 3037 buildCounterHealthStatus--; |
| 2970 } | 3038 } |
| 2971 | 3039 |
| 2972 buildUnnamed2276() { | 3040 buildUnnamed2297() { |
| 2973 var o = new core.List<core.String>(); | 3041 var o = new core.List<core.String>(); |
| 2974 o.add("foo"); | 3042 o.add("foo"); |
| 2975 o.add("foo"); | 3043 o.add("foo"); |
| 2976 return o; | 3044 return o; |
| 2977 } | 3045 } |
| 2978 | 3046 |
| 2979 checkUnnamed2276(core.List<core.String> o) { | 3047 checkUnnamed2297(core.List<core.String> o) { |
| 2980 unittest.expect(o, unittest.hasLength(2)); | 3048 unittest.expect(o, unittest.hasLength(2)); |
| 2981 unittest.expect(o[0], unittest.equals('foo')); | 3049 unittest.expect(o[0], unittest.equals('foo')); |
| 2982 unittest.expect(o[1], unittest.equals('foo')); | 3050 unittest.expect(o[1], unittest.equals('foo')); |
| 2983 } | 3051 } |
| 2984 | 3052 |
| 2985 core.int buildCounterHostRule = 0; | 3053 core.int buildCounterHostRule = 0; |
| 2986 buildHostRule() { | 3054 buildHostRule() { |
| 2987 var o = new api.HostRule(); | 3055 var o = new api.HostRule(); |
| 2988 buildCounterHostRule++; | 3056 buildCounterHostRule++; |
| 2989 if (buildCounterHostRule < 3) { | 3057 if (buildCounterHostRule < 3) { |
| 2990 o.description = "foo"; | 3058 o.description = "foo"; |
| 2991 o.hosts = buildUnnamed2276(); | 3059 o.hosts = buildUnnamed2297(); |
| 2992 o.pathMatcher = "foo"; | 3060 o.pathMatcher = "foo"; |
| 2993 } | 3061 } |
| 2994 buildCounterHostRule--; | 3062 buildCounterHostRule--; |
| 2995 return o; | 3063 return o; |
| 2996 } | 3064 } |
| 2997 | 3065 |
| 2998 checkHostRule(api.HostRule o) { | 3066 checkHostRule(api.HostRule o) { |
| 2999 buildCounterHostRule++; | 3067 buildCounterHostRule++; |
| 3000 if (buildCounterHostRule < 3) { | 3068 if (buildCounterHostRule < 3) { |
| 3001 unittest.expect(o.description, unittest.equals('foo')); | 3069 unittest.expect(o.description, unittest.equals('foo')); |
| 3002 checkUnnamed2276(o.hosts); | 3070 checkUnnamed2297(o.hosts); |
| 3003 unittest.expect(o.pathMatcher, unittest.equals('foo')); | 3071 unittest.expect(o.pathMatcher, unittest.equals('foo')); |
| 3004 } | 3072 } |
| 3005 buildCounterHostRule--; | 3073 buildCounterHostRule--; |
| 3006 } | 3074 } |
| 3007 | 3075 |
| 3008 core.int buildCounterHttpHealthCheck = 0; | 3076 core.int buildCounterHttpHealthCheck = 0; |
| 3009 buildHttpHealthCheck() { | 3077 buildHttpHealthCheck() { |
| 3010 var o = new api.HttpHealthCheck(); | 3078 var o = new api.HttpHealthCheck(); |
| 3011 buildCounterHttpHealthCheck++; | 3079 buildCounterHttpHealthCheck++; |
| 3012 if (buildCounterHttpHealthCheck < 3) { | 3080 if (buildCounterHttpHealthCheck < 3) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 3041 unittest.expect(o.name, unittest.equals('foo')); | 3109 unittest.expect(o.name, unittest.equals('foo')); |
| 3042 unittest.expect(o.port, unittest.equals(42)); | 3110 unittest.expect(o.port, unittest.equals(42)); |
| 3043 unittest.expect(o.requestPath, unittest.equals('foo')); | 3111 unittest.expect(o.requestPath, unittest.equals('foo')); |
| 3044 unittest.expect(o.selfLink, unittest.equals('foo')); | 3112 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3045 unittest.expect(o.timeoutSec, unittest.equals(42)); | 3113 unittest.expect(o.timeoutSec, unittest.equals(42)); |
| 3046 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 3114 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
| 3047 } | 3115 } |
| 3048 buildCounterHttpHealthCheck--; | 3116 buildCounterHttpHealthCheck--; |
| 3049 } | 3117 } |
| 3050 | 3118 |
| 3051 buildUnnamed2277() { | 3119 buildUnnamed2298() { |
| 3052 var o = new core.List<api.HttpHealthCheck>(); | 3120 var o = new core.List<api.HttpHealthCheck>(); |
| 3053 o.add(buildHttpHealthCheck()); | 3121 o.add(buildHttpHealthCheck()); |
| 3054 o.add(buildHttpHealthCheck()); | 3122 o.add(buildHttpHealthCheck()); |
| 3055 return o; | 3123 return o; |
| 3056 } | 3124 } |
| 3057 | 3125 |
| 3058 checkUnnamed2277(core.List<api.HttpHealthCheck> o) { | 3126 checkUnnamed2298(core.List<api.HttpHealthCheck> o) { |
| 3059 unittest.expect(o, unittest.hasLength(2)); | 3127 unittest.expect(o, unittest.hasLength(2)); |
| 3060 checkHttpHealthCheck(o[0]); | 3128 checkHttpHealthCheck(o[0]); |
| 3061 checkHttpHealthCheck(o[1]); | 3129 checkHttpHealthCheck(o[1]); |
| 3062 } | 3130 } |
| 3063 | 3131 |
| 3064 core.int buildCounterHttpHealthCheckList = 0; | 3132 core.int buildCounterHttpHealthCheckList = 0; |
| 3065 buildHttpHealthCheckList() { | 3133 buildHttpHealthCheckList() { |
| 3066 var o = new api.HttpHealthCheckList(); | 3134 var o = new api.HttpHealthCheckList(); |
| 3067 buildCounterHttpHealthCheckList++; | 3135 buildCounterHttpHealthCheckList++; |
| 3068 if (buildCounterHttpHealthCheckList < 3) { | 3136 if (buildCounterHttpHealthCheckList < 3) { |
| 3069 o.id = "foo"; | 3137 o.id = "foo"; |
| 3070 o.items = buildUnnamed2277(); | 3138 o.items = buildUnnamed2298(); |
| 3071 o.kind = "foo"; | 3139 o.kind = "foo"; |
| 3072 o.nextPageToken = "foo"; | 3140 o.nextPageToken = "foo"; |
| 3073 o.selfLink = "foo"; | 3141 o.selfLink = "foo"; |
| 3074 } | 3142 } |
| 3075 buildCounterHttpHealthCheckList--; | 3143 buildCounterHttpHealthCheckList--; |
| 3076 return o; | 3144 return o; |
| 3077 } | 3145 } |
| 3078 | 3146 |
| 3079 checkHttpHealthCheckList(api.HttpHealthCheckList o) { | 3147 checkHttpHealthCheckList(api.HttpHealthCheckList o) { |
| 3080 buildCounterHttpHealthCheckList++; | 3148 buildCounterHttpHealthCheckList++; |
| 3081 if (buildCounterHttpHealthCheckList < 3) { | 3149 if (buildCounterHttpHealthCheckList < 3) { |
| 3082 unittest.expect(o.id, unittest.equals('foo')); | 3150 unittest.expect(o.id, unittest.equals('foo')); |
| 3083 checkUnnamed2277(o.items); | 3151 checkUnnamed2298(o.items); |
| 3084 unittest.expect(o.kind, unittest.equals('foo')); | 3152 unittest.expect(o.kind, unittest.equals('foo')); |
| 3085 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3153 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3086 unittest.expect(o.selfLink, unittest.equals('foo')); | 3154 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3087 } | 3155 } |
| 3088 buildCounterHttpHealthCheckList--; | 3156 buildCounterHttpHealthCheckList--; |
| 3089 } | 3157 } |
| 3090 | 3158 |
| 3091 core.int buildCounterHttpsHealthCheck = 0; | 3159 core.int buildCounterHttpsHealthCheck = 0; |
| 3092 buildHttpsHealthCheck() { | 3160 buildHttpsHealthCheck() { |
| 3093 var o = new api.HttpsHealthCheck(); | 3161 var o = new api.HttpsHealthCheck(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 3124 unittest.expect(o.name, unittest.equals('foo')); | 3192 unittest.expect(o.name, unittest.equals('foo')); |
| 3125 unittest.expect(o.port, unittest.equals(42)); | 3193 unittest.expect(o.port, unittest.equals(42)); |
| 3126 unittest.expect(o.requestPath, unittest.equals('foo')); | 3194 unittest.expect(o.requestPath, unittest.equals('foo')); |
| 3127 unittest.expect(o.selfLink, unittest.equals('foo')); | 3195 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3128 unittest.expect(o.timeoutSec, unittest.equals(42)); | 3196 unittest.expect(o.timeoutSec, unittest.equals(42)); |
| 3129 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 3197 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
| 3130 } | 3198 } |
| 3131 buildCounterHttpsHealthCheck--; | 3199 buildCounterHttpsHealthCheck--; |
| 3132 } | 3200 } |
| 3133 | 3201 |
| 3134 buildUnnamed2278() { | 3202 buildUnnamed2299() { |
| 3135 var o = new core.List<api.HttpsHealthCheck>(); | 3203 var o = new core.List<api.HttpsHealthCheck>(); |
| 3136 o.add(buildHttpsHealthCheck()); | 3204 o.add(buildHttpsHealthCheck()); |
| 3137 o.add(buildHttpsHealthCheck()); | 3205 o.add(buildHttpsHealthCheck()); |
| 3138 return o; | 3206 return o; |
| 3139 } | 3207 } |
| 3140 | 3208 |
| 3141 checkUnnamed2278(core.List<api.HttpsHealthCheck> o) { | 3209 checkUnnamed2299(core.List<api.HttpsHealthCheck> o) { |
| 3142 unittest.expect(o, unittest.hasLength(2)); | 3210 unittest.expect(o, unittest.hasLength(2)); |
| 3143 checkHttpsHealthCheck(o[0]); | 3211 checkHttpsHealthCheck(o[0]); |
| 3144 checkHttpsHealthCheck(o[1]); | 3212 checkHttpsHealthCheck(o[1]); |
| 3145 } | 3213 } |
| 3146 | 3214 |
| 3147 core.int buildCounterHttpsHealthCheckList = 0; | 3215 core.int buildCounterHttpsHealthCheckList = 0; |
| 3148 buildHttpsHealthCheckList() { | 3216 buildHttpsHealthCheckList() { |
| 3149 var o = new api.HttpsHealthCheckList(); | 3217 var o = new api.HttpsHealthCheckList(); |
| 3150 buildCounterHttpsHealthCheckList++; | 3218 buildCounterHttpsHealthCheckList++; |
| 3151 if (buildCounterHttpsHealthCheckList < 3) { | 3219 if (buildCounterHttpsHealthCheckList < 3) { |
| 3152 o.id = "foo"; | 3220 o.id = "foo"; |
| 3153 o.items = buildUnnamed2278(); | 3221 o.items = buildUnnamed2299(); |
| 3154 o.kind = "foo"; | 3222 o.kind = "foo"; |
| 3155 o.nextPageToken = "foo"; | 3223 o.nextPageToken = "foo"; |
| 3156 o.selfLink = "foo"; | 3224 o.selfLink = "foo"; |
| 3157 } | 3225 } |
| 3158 buildCounterHttpsHealthCheckList--; | 3226 buildCounterHttpsHealthCheckList--; |
| 3159 return o; | 3227 return o; |
| 3160 } | 3228 } |
| 3161 | 3229 |
| 3162 checkHttpsHealthCheckList(api.HttpsHealthCheckList o) { | 3230 checkHttpsHealthCheckList(api.HttpsHealthCheckList o) { |
| 3163 buildCounterHttpsHealthCheckList++; | 3231 buildCounterHttpsHealthCheckList++; |
| 3164 if (buildCounterHttpsHealthCheckList < 3) { | 3232 if (buildCounterHttpsHealthCheckList < 3) { |
| 3165 unittest.expect(o.id, unittest.equals('foo')); | 3233 unittest.expect(o.id, unittest.equals('foo')); |
| 3166 checkUnnamed2278(o.items); | 3234 checkUnnamed2299(o.items); |
| 3167 unittest.expect(o.kind, unittest.equals('foo')); | 3235 unittest.expect(o.kind, unittest.equals('foo')); |
| 3168 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3236 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3169 unittest.expect(o.selfLink, unittest.equals('foo')); | 3237 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3170 } | 3238 } |
| 3171 buildCounterHttpsHealthCheckList--; | 3239 buildCounterHttpsHealthCheckList--; |
| 3172 } | 3240 } |
| 3173 | 3241 |
| 3174 buildUnnamed2279() { | 3242 buildUnnamed2300() { |
| 3175 var o = new core.List<api.GuestOsFeature>(); | 3243 var o = new core.List<api.GuestOsFeature>(); |
| 3176 o.add(buildGuestOsFeature()); | 3244 o.add(buildGuestOsFeature()); |
| 3177 o.add(buildGuestOsFeature()); | 3245 o.add(buildGuestOsFeature()); |
| 3178 return o; | 3246 return o; |
| 3179 } | 3247 } |
| 3180 | 3248 |
| 3181 checkUnnamed2279(core.List<api.GuestOsFeature> o) { | 3249 checkUnnamed2300(core.List<api.GuestOsFeature> o) { |
| 3182 unittest.expect(o, unittest.hasLength(2)); | 3250 unittest.expect(o, unittest.hasLength(2)); |
| 3183 checkGuestOsFeature(o[0]); | 3251 checkGuestOsFeature(o[0]); |
| 3184 checkGuestOsFeature(o[1]); | 3252 checkGuestOsFeature(o[1]); |
| 3185 } | 3253 } |
| 3186 | 3254 |
| 3187 buildUnnamed2280() { | 3255 buildUnnamed2301() { |
| 3188 var o = new core.Map<core.String, core.String>(); | 3256 var o = new core.Map<core.String, core.String>(); |
| 3189 o["x"] = "foo"; | 3257 o["x"] = "foo"; |
| 3190 o["y"] = "foo"; | 3258 o["y"] = "foo"; |
| 3191 return o; | 3259 return o; |
| 3192 } | 3260 } |
| 3193 | 3261 |
| 3194 checkUnnamed2280(core.Map<core.String, core.String> o) { | 3262 checkUnnamed2301(core.Map<core.String, core.String> o) { |
| 3195 unittest.expect(o, unittest.hasLength(2)); | 3263 unittest.expect(o, unittest.hasLength(2)); |
| 3196 unittest.expect(o["x"], unittest.equals('foo')); | 3264 unittest.expect(o["x"], unittest.equals('foo')); |
| 3197 unittest.expect(o["y"], unittest.equals('foo')); | 3265 unittest.expect(o["y"], unittest.equals('foo')); |
| 3198 } | 3266 } |
| 3199 | 3267 |
| 3200 buildUnnamed2281() { | 3268 buildUnnamed2302() { |
| 3201 var o = new core.List<core.String>(); | 3269 var o = new core.List<core.String>(); |
| 3202 o.add("foo"); | 3270 o.add("foo"); |
| 3203 o.add("foo"); | 3271 o.add("foo"); |
| 3204 return o; | 3272 return o; |
| 3205 } | 3273 } |
| 3206 | 3274 |
| 3207 checkUnnamed2281(core.List<core.String> o) { | 3275 checkUnnamed2302(core.List<core.String> o) { |
| 3208 unittest.expect(o, unittest.hasLength(2)); | 3276 unittest.expect(o, unittest.hasLength(2)); |
| 3209 unittest.expect(o[0], unittest.equals('foo')); | 3277 unittest.expect(o[0], unittest.equals('foo')); |
| 3210 unittest.expect(o[1], unittest.equals('foo')); | 3278 unittest.expect(o[1], unittest.equals('foo')); |
| 3211 } | 3279 } |
| 3212 | 3280 |
| 3213 core.int buildCounterImageRawDisk = 0; | 3281 core.int buildCounterImageRawDisk = 0; |
| 3214 buildImageRawDisk() { | 3282 buildImageRawDisk() { |
| 3215 var o = new api.ImageRawDisk(); | 3283 var o = new api.ImageRawDisk(); |
| 3216 buildCounterImageRawDisk++; | 3284 buildCounterImageRawDisk++; |
| 3217 if (buildCounterImageRawDisk < 3) { | 3285 if (buildCounterImageRawDisk < 3) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3237 buildImage() { | 3305 buildImage() { |
| 3238 var o = new api.Image(); | 3306 var o = new api.Image(); |
| 3239 buildCounterImage++; | 3307 buildCounterImage++; |
| 3240 if (buildCounterImage < 3) { | 3308 if (buildCounterImage < 3) { |
| 3241 o.archiveSizeBytes = "foo"; | 3309 o.archiveSizeBytes = "foo"; |
| 3242 o.creationTimestamp = "foo"; | 3310 o.creationTimestamp = "foo"; |
| 3243 o.deprecated = buildDeprecationStatus(); | 3311 o.deprecated = buildDeprecationStatus(); |
| 3244 o.description = "foo"; | 3312 o.description = "foo"; |
| 3245 o.diskSizeGb = "foo"; | 3313 o.diskSizeGb = "foo"; |
| 3246 o.family = "foo"; | 3314 o.family = "foo"; |
| 3247 o.guestOsFeatures = buildUnnamed2279(); | 3315 o.guestOsFeatures = buildUnnamed2300(); |
| 3248 o.id = "foo"; | 3316 o.id = "foo"; |
| 3249 o.imageEncryptionKey = buildCustomerEncryptionKey(); | 3317 o.imageEncryptionKey = buildCustomerEncryptionKey(); |
| 3250 o.kind = "foo"; | 3318 o.kind = "foo"; |
| 3251 o.labelFingerprint = "foo"; | 3319 o.labelFingerprint = "foo"; |
| 3252 o.labels = buildUnnamed2280(); | 3320 o.labels = buildUnnamed2301(); |
| 3253 o.licenses = buildUnnamed2281(); | 3321 o.licenses = buildUnnamed2302(); |
| 3254 o.name = "foo"; | 3322 o.name = "foo"; |
| 3255 o.rawDisk = buildImageRawDisk(); | 3323 o.rawDisk = buildImageRawDisk(); |
| 3256 o.selfLink = "foo"; | 3324 o.selfLink = "foo"; |
| 3257 o.sourceDisk = "foo"; | 3325 o.sourceDisk = "foo"; |
| 3258 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); | 3326 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); |
| 3259 o.sourceDiskId = "foo"; | 3327 o.sourceDiskId = "foo"; |
| 3260 o.sourceType = "foo"; | 3328 o.sourceType = "foo"; |
| 3261 o.status = "foo"; | 3329 o.status = "foo"; |
| 3262 } | 3330 } |
| 3263 buildCounterImage--; | 3331 buildCounterImage--; |
| 3264 return o; | 3332 return o; |
| 3265 } | 3333 } |
| 3266 | 3334 |
| 3267 checkImage(api.Image o) { | 3335 checkImage(api.Image o) { |
| 3268 buildCounterImage++; | 3336 buildCounterImage++; |
| 3269 if (buildCounterImage < 3) { | 3337 if (buildCounterImage < 3) { |
| 3270 unittest.expect(o.archiveSizeBytes, unittest.equals('foo')); | 3338 unittest.expect(o.archiveSizeBytes, unittest.equals('foo')); |
| 3271 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3339 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3272 checkDeprecationStatus(o.deprecated); | 3340 checkDeprecationStatus(o.deprecated); |
| 3273 unittest.expect(o.description, unittest.equals('foo')); | 3341 unittest.expect(o.description, unittest.equals('foo')); |
| 3274 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 3342 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
| 3275 unittest.expect(o.family, unittest.equals('foo')); | 3343 unittest.expect(o.family, unittest.equals('foo')); |
| 3276 checkUnnamed2279(o.guestOsFeatures); | 3344 checkUnnamed2300(o.guestOsFeatures); |
| 3277 unittest.expect(o.id, unittest.equals('foo')); | 3345 unittest.expect(o.id, unittest.equals('foo')); |
| 3278 checkCustomerEncryptionKey(o.imageEncryptionKey); | 3346 checkCustomerEncryptionKey(o.imageEncryptionKey); |
| 3279 unittest.expect(o.kind, unittest.equals('foo')); | 3347 unittest.expect(o.kind, unittest.equals('foo')); |
| 3280 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 3348 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 3281 checkUnnamed2280(o.labels); | 3349 checkUnnamed2301(o.labels); |
| 3282 checkUnnamed2281(o.licenses); | 3350 checkUnnamed2302(o.licenses); |
| 3283 unittest.expect(o.name, unittest.equals('foo')); | 3351 unittest.expect(o.name, unittest.equals('foo')); |
| 3284 checkImageRawDisk(o.rawDisk); | 3352 checkImageRawDisk(o.rawDisk); |
| 3285 unittest.expect(o.selfLink, unittest.equals('foo')); | 3353 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3286 unittest.expect(o.sourceDisk, unittest.equals('foo')); | 3354 unittest.expect(o.sourceDisk, unittest.equals('foo')); |
| 3287 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); | 3355 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); |
| 3288 unittest.expect(o.sourceDiskId, unittest.equals('foo')); | 3356 unittest.expect(o.sourceDiskId, unittest.equals('foo')); |
| 3289 unittest.expect(o.sourceType, unittest.equals('foo')); | 3357 unittest.expect(o.sourceType, unittest.equals('foo')); |
| 3290 unittest.expect(o.status, unittest.equals('foo')); | 3358 unittest.expect(o.status, unittest.equals('foo')); |
| 3291 } | 3359 } |
| 3292 buildCounterImage--; | 3360 buildCounterImage--; |
| 3293 } | 3361 } |
| 3294 | 3362 |
| 3295 buildUnnamed2282() { | 3363 buildUnnamed2303() { |
| 3296 var o = new core.List<api.Image>(); | 3364 var o = new core.List<api.Image>(); |
| 3297 o.add(buildImage()); | 3365 o.add(buildImage()); |
| 3298 o.add(buildImage()); | 3366 o.add(buildImage()); |
| 3299 return o; | 3367 return o; |
| 3300 } | 3368 } |
| 3301 | 3369 |
| 3302 checkUnnamed2282(core.List<api.Image> o) { | 3370 checkUnnamed2303(core.List<api.Image> o) { |
| 3303 unittest.expect(o, unittest.hasLength(2)); | 3371 unittest.expect(o, unittest.hasLength(2)); |
| 3304 checkImage(o[0]); | 3372 checkImage(o[0]); |
| 3305 checkImage(o[1]); | 3373 checkImage(o[1]); |
| 3306 } | 3374 } |
| 3307 | 3375 |
| 3308 core.int buildCounterImageList = 0; | 3376 core.int buildCounterImageList = 0; |
| 3309 buildImageList() { | 3377 buildImageList() { |
| 3310 var o = new api.ImageList(); | 3378 var o = new api.ImageList(); |
| 3311 buildCounterImageList++; | 3379 buildCounterImageList++; |
| 3312 if (buildCounterImageList < 3) { | 3380 if (buildCounterImageList < 3) { |
| 3313 o.id = "foo"; | 3381 o.id = "foo"; |
| 3314 o.items = buildUnnamed2282(); | 3382 o.items = buildUnnamed2303(); |
| 3315 o.kind = "foo"; | 3383 o.kind = "foo"; |
| 3316 o.nextPageToken = "foo"; | 3384 o.nextPageToken = "foo"; |
| 3317 o.selfLink = "foo"; | 3385 o.selfLink = "foo"; |
| 3318 } | 3386 } |
| 3319 buildCounterImageList--; | 3387 buildCounterImageList--; |
| 3320 return o; | 3388 return o; |
| 3321 } | 3389 } |
| 3322 | 3390 |
| 3323 checkImageList(api.ImageList o) { | 3391 checkImageList(api.ImageList o) { |
| 3324 buildCounterImageList++; | 3392 buildCounterImageList++; |
| 3325 if (buildCounterImageList < 3) { | 3393 if (buildCounterImageList < 3) { |
| 3326 unittest.expect(o.id, unittest.equals('foo')); | 3394 unittest.expect(o.id, unittest.equals('foo')); |
| 3327 checkUnnamed2282(o.items); | 3395 checkUnnamed2303(o.items); |
| 3328 unittest.expect(o.kind, unittest.equals('foo')); | 3396 unittest.expect(o.kind, unittest.equals('foo')); |
| 3329 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3397 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3330 unittest.expect(o.selfLink, unittest.equals('foo')); | 3398 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3331 } | 3399 } |
| 3332 buildCounterImageList--; | 3400 buildCounterImageList--; |
| 3333 } | 3401 } |
| 3334 | 3402 |
| 3335 buildUnnamed2283() { | 3403 buildUnnamed2304() { |
| 3336 var o = new core.List<api.AttachedDisk>(); | 3404 var o = new core.List<api.AttachedDisk>(); |
| 3337 o.add(buildAttachedDisk()); | 3405 o.add(buildAttachedDisk()); |
| 3338 o.add(buildAttachedDisk()); | 3406 o.add(buildAttachedDisk()); |
| 3339 return o; | 3407 return o; |
| 3340 } | 3408 } |
| 3341 | 3409 |
| 3342 checkUnnamed2283(core.List<api.AttachedDisk> o) { | 3410 checkUnnamed2304(core.List<api.AttachedDisk> o) { |
| 3343 unittest.expect(o, unittest.hasLength(2)); | 3411 unittest.expect(o, unittest.hasLength(2)); |
| 3344 checkAttachedDisk(o[0]); | 3412 checkAttachedDisk(o[0]); |
| 3345 checkAttachedDisk(o[1]); | 3413 checkAttachedDisk(o[1]); |
| 3346 } | 3414 } |
| 3347 | 3415 |
| 3348 buildUnnamed2284() { | 3416 buildUnnamed2305() { |
| 3349 var o = new core.List<api.AcceleratorConfig>(); | 3417 var o = new core.List<api.AcceleratorConfig>(); |
| 3350 o.add(buildAcceleratorConfig()); | 3418 o.add(buildAcceleratorConfig()); |
| 3351 o.add(buildAcceleratorConfig()); | 3419 o.add(buildAcceleratorConfig()); |
| 3352 return o; | 3420 return o; |
| 3353 } | 3421 } |
| 3354 | 3422 |
| 3355 checkUnnamed2284(core.List<api.AcceleratorConfig> o) { | 3423 checkUnnamed2305(core.List<api.AcceleratorConfig> o) { |
| 3356 unittest.expect(o, unittest.hasLength(2)); | 3424 unittest.expect(o, unittest.hasLength(2)); |
| 3357 checkAcceleratorConfig(o[0]); | 3425 checkAcceleratorConfig(o[0]); |
| 3358 checkAcceleratorConfig(o[1]); | 3426 checkAcceleratorConfig(o[1]); |
| 3359 } | 3427 } |
| 3360 | 3428 |
| 3361 buildUnnamed2285() { | 3429 buildUnnamed2306() { |
| 3362 var o = new core.Map<core.String, core.String>(); | 3430 var o = new core.Map<core.String, core.String>(); |
| 3363 o["x"] = "foo"; | 3431 o["x"] = "foo"; |
| 3364 o["y"] = "foo"; | 3432 o["y"] = "foo"; |
| 3365 return o; | 3433 return o; |
| 3366 } | 3434 } |
| 3367 | 3435 |
| 3368 checkUnnamed2285(core.Map<core.String, core.String> o) { | 3436 checkUnnamed2306(core.Map<core.String, core.String> o) { |
| 3369 unittest.expect(o, unittest.hasLength(2)); | 3437 unittest.expect(o, unittest.hasLength(2)); |
| 3370 unittest.expect(o["x"], unittest.equals('foo')); | 3438 unittest.expect(o["x"], unittest.equals('foo')); |
| 3371 unittest.expect(o["y"], unittest.equals('foo')); | 3439 unittest.expect(o["y"], unittest.equals('foo')); |
| 3372 } | 3440 } |
| 3373 | 3441 |
| 3374 buildUnnamed2286() { | 3442 buildUnnamed2307() { |
| 3375 var o = new core.List<api.NetworkInterface>(); | 3443 var o = new core.List<api.NetworkInterface>(); |
| 3376 o.add(buildNetworkInterface()); | 3444 o.add(buildNetworkInterface()); |
| 3377 o.add(buildNetworkInterface()); | 3445 o.add(buildNetworkInterface()); |
| 3378 return o; | 3446 return o; |
| 3379 } | 3447 } |
| 3380 | 3448 |
| 3381 checkUnnamed2286(core.List<api.NetworkInterface> o) { | 3449 checkUnnamed2307(core.List<api.NetworkInterface> o) { |
| 3382 unittest.expect(o, unittest.hasLength(2)); | 3450 unittest.expect(o, unittest.hasLength(2)); |
| 3383 checkNetworkInterface(o[0]); | 3451 checkNetworkInterface(o[0]); |
| 3384 checkNetworkInterface(o[1]); | 3452 checkNetworkInterface(o[1]); |
| 3385 } | 3453 } |
| 3386 | 3454 |
| 3387 buildUnnamed2287() { | 3455 buildUnnamed2308() { |
| 3388 var o = new core.List<api.ServiceAccount>(); | 3456 var o = new core.List<api.ServiceAccount>(); |
| 3389 o.add(buildServiceAccount()); | 3457 o.add(buildServiceAccount()); |
| 3390 o.add(buildServiceAccount()); | 3458 o.add(buildServiceAccount()); |
| 3391 return o; | 3459 return o; |
| 3392 } | 3460 } |
| 3393 | 3461 |
| 3394 checkUnnamed2287(core.List<api.ServiceAccount> o) { | 3462 checkUnnamed2308(core.List<api.ServiceAccount> o) { |
| 3395 unittest.expect(o, unittest.hasLength(2)); | 3463 unittest.expect(o, unittest.hasLength(2)); |
| 3396 checkServiceAccount(o[0]); | 3464 checkServiceAccount(o[0]); |
| 3397 checkServiceAccount(o[1]); | 3465 checkServiceAccount(o[1]); |
| 3398 } | 3466 } |
| 3399 | 3467 |
| 3400 core.int buildCounterInstance = 0; | 3468 core.int buildCounterInstance = 0; |
| 3401 buildInstance() { | 3469 buildInstance() { |
| 3402 var o = new api.Instance(); | 3470 var o = new api.Instance(); |
| 3403 buildCounterInstance++; | 3471 buildCounterInstance++; |
| 3404 if (buildCounterInstance < 3) { | 3472 if (buildCounterInstance < 3) { |
| 3405 o.canIpForward = true; | 3473 o.canIpForward = true; |
| 3406 o.cpuPlatform = "foo"; | 3474 o.cpuPlatform = "foo"; |
| 3407 o.creationTimestamp = "foo"; | 3475 o.creationTimestamp = "foo"; |
| 3408 o.description = "foo"; | 3476 o.description = "foo"; |
| 3409 o.disks = buildUnnamed2283(); | 3477 o.disks = buildUnnamed2304(); |
| 3410 o.guestAccelerators = buildUnnamed2284(); | 3478 o.guestAccelerators = buildUnnamed2305(); |
| 3411 o.id = "foo"; | 3479 o.id = "foo"; |
| 3412 o.kind = "foo"; | 3480 o.kind = "foo"; |
| 3413 o.labelFingerprint = "foo"; | 3481 o.labelFingerprint = "foo"; |
| 3414 o.labels = buildUnnamed2285(); | 3482 o.labels = buildUnnamed2306(); |
| 3415 o.machineType = "foo"; | 3483 o.machineType = "foo"; |
| 3416 o.metadata = buildMetadata(); | 3484 o.metadata = buildMetadata(); |
| 3417 o.name = "foo"; | 3485 o.name = "foo"; |
| 3418 o.networkInterfaces = buildUnnamed2286(); | 3486 o.networkInterfaces = buildUnnamed2307(); |
| 3419 o.scheduling = buildScheduling(); | 3487 o.scheduling = buildScheduling(); |
| 3420 o.selfLink = "foo"; | 3488 o.selfLink = "foo"; |
| 3421 o.serviceAccounts = buildUnnamed2287(); | 3489 o.serviceAccounts = buildUnnamed2308(); |
| 3422 o.startRestricted = true; | 3490 o.startRestricted = true; |
| 3423 o.status = "foo"; | 3491 o.status = "foo"; |
| 3424 o.statusMessage = "foo"; | 3492 o.statusMessage = "foo"; |
| 3425 o.tags = buildTags(); | 3493 o.tags = buildTags(); |
| 3426 o.zone = "foo"; | 3494 o.zone = "foo"; |
| 3427 } | 3495 } |
| 3428 buildCounterInstance--; | 3496 buildCounterInstance--; |
| 3429 return o; | 3497 return o; |
| 3430 } | 3498 } |
| 3431 | 3499 |
| 3432 checkInstance(api.Instance o) { | 3500 checkInstance(api.Instance o) { |
| 3433 buildCounterInstance++; | 3501 buildCounterInstance++; |
| 3434 if (buildCounterInstance < 3) { | 3502 if (buildCounterInstance < 3) { |
| 3435 unittest.expect(o.canIpForward, unittest.isTrue); | 3503 unittest.expect(o.canIpForward, unittest.isTrue); |
| 3436 unittest.expect(o.cpuPlatform, unittest.equals('foo')); | 3504 unittest.expect(o.cpuPlatform, unittest.equals('foo')); |
| 3437 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3505 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3438 unittest.expect(o.description, unittest.equals('foo')); | 3506 unittest.expect(o.description, unittest.equals('foo')); |
| 3439 checkUnnamed2283(o.disks); | 3507 checkUnnamed2304(o.disks); |
| 3440 checkUnnamed2284(o.guestAccelerators); | 3508 checkUnnamed2305(o.guestAccelerators); |
| 3441 unittest.expect(o.id, unittest.equals('foo')); | 3509 unittest.expect(o.id, unittest.equals('foo')); |
| 3442 unittest.expect(o.kind, unittest.equals('foo')); | 3510 unittest.expect(o.kind, unittest.equals('foo')); |
| 3443 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 3511 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 3444 checkUnnamed2285(o.labels); | 3512 checkUnnamed2306(o.labels); |
| 3445 unittest.expect(o.machineType, unittest.equals('foo')); | 3513 unittest.expect(o.machineType, unittest.equals('foo')); |
| 3446 checkMetadata(o.metadata); | 3514 checkMetadata(o.metadata); |
| 3447 unittest.expect(o.name, unittest.equals('foo')); | 3515 unittest.expect(o.name, unittest.equals('foo')); |
| 3448 checkUnnamed2286(o.networkInterfaces); | 3516 checkUnnamed2307(o.networkInterfaces); |
| 3449 checkScheduling(o.scheduling); | 3517 checkScheduling(o.scheduling); |
| 3450 unittest.expect(o.selfLink, unittest.equals('foo')); | 3518 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3451 checkUnnamed2287(o.serviceAccounts); | 3519 checkUnnamed2308(o.serviceAccounts); |
| 3452 unittest.expect(o.startRestricted, unittest.isTrue); | 3520 unittest.expect(o.startRestricted, unittest.isTrue); |
| 3453 unittest.expect(o.status, unittest.equals('foo')); | 3521 unittest.expect(o.status, unittest.equals('foo')); |
| 3454 unittest.expect(o.statusMessage, unittest.equals('foo')); | 3522 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 3455 checkTags(o.tags); | 3523 checkTags(o.tags); |
| 3456 unittest.expect(o.zone, unittest.equals('foo')); | 3524 unittest.expect(o.zone, unittest.equals('foo')); |
| 3457 } | 3525 } |
| 3458 buildCounterInstance--; | 3526 buildCounterInstance--; |
| 3459 } | 3527 } |
| 3460 | 3528 |
| 3461 buildUnnamed2288() { | 3529 buildUnnamed2309() { |
| 3462 var o = new core.Map<core.String, api.InstancesScopedList>(); | 3530 var o = new core.Map<core.String, api.InstancesScopedList>(); |
| 3463 o["x"] = buildInstancesScopedList(); | 3531 o["x"] = buildInstancesScopedList(); |
| 3464 o["y"] = buildInstancesScopedList(); | 3532 o["y"] = buildInstancesScopedList(); |
| 3465 return o; | 3533 return o; |
| 3466 } | 3534 } |
| 3467 | 3535 |
| 3468 checkUnnamed2288(core.Map<core.String, api.InstancesScopedList> o) { | 3536 checkUnnamed2309(core.Map<core.String, api.InstancesScopedList> o) { |
| 3469 unittest.expect(o, unittest.hasLength(2)); | 3537 unittest.expect(o, unittest.hasLength(2)); |
| 3470 checkInstancesScopedList(o["x"]); | 3538 checkInstancesScopedList(o["x"]); |
| 3471 checkInstancesScopedList(o["y"]); | 3539 checkInstancesScopedList(o["y"]); |
| 3472 } | 3540 } |
| 3473 | 3541 |
| 3474 core.int buildCounterInstanceAggregatedList = 0; | 3542 core.int buildCounterInstanceAggregatedList = 0; |
| 3475 buildInstanceAggregatedList() { | 3543 buildInstanceAggregatedList() { |
| 3476 var o = new api.InstanceAggregatedList(); | 3544 var o = new api.InstanceAggregatedList(); |
| 3477 buildCounterInstanceAggregatedList++; | 3545 buildCounterInstanceAggregatedList++; |
| 3478 if (buildCounterInstanceAggregatedList < 3) { | 3546 if (buildCounterInstanceAggregatedList < 3) { |
| 3479 o.id = "foo"; | 3547 o.id = "foo"; |
| 3480 o.items = buildUnnamed2288(); | 3548 o.items = buildUnnamed2309(); |
| 3481 o.kind = "foo"; | 3549 o.kind = "foo"; |
| 3482 o.nextPageToken = "foo"; | 3550 o.nextPageToken = "foo"; |
| 3483 o.selfLink = "foo"; | 3551 o.selfLink = "foo"; |
| 3484 } | 3552 } |
| 3485 buildCounterInstanceAggregatedList--; | 3553 buildCounterInstanceAggregatedList--; |
| 3486 return o; | 3554 return o; |
| 3487 } | 3555 } |
| 3488 | 3556 |
| 3489 checkInstanceAggregatedList(api.InstanceAggregatedList o) { | 3557 checkInstanceAggregatedList(api.InstanceAggregatedList o) { |
| 3490 buildCounterInstanceAggregatedList++; | 3558 buildCounterInstanceAggregatedList++; |
| 3491 if (buildCounterInstanceAggregatedList < 3) { | 3559 if (buildCounterInstanceAggregatedList < 3) { |
| 3492 unittest.expect(o.id, unittest.equals('foo')); | 3560 unittest.expect(o.id, unittest.equals('foo')); |
| 3493 checkUnnamed2288(o.items); | 3561 checkUnnamed2309(o.items); |
| 3494 unittest.expect(o.kind, unittest.equals('foo')); | 3562 unittest.expect(o.kind, unittest.equals('foo')); |
| 3495 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3563 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3496 unittest.expect(o.selfLink, unittest.equals('foo')); | 3564 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3497 } | 3565 } |
| 3498 buildCounterInstanceAggregatedList--; | 3566 buildCounterInstanceAggregatedList--; |
| 3499 } | 3567 } |
| 3500 | 3568 |
| 3501 buildUnnamed2289() { | 3569 buildUnnamed2310() { |
| 3502 var o = new core.List<api.NamedPort>(); | 3570 var o = new core.List<api.NamedPort>(); |
| 3503 o.add(buildNamedPort()); | 3571 o.add(buildNamedPort()); |
| 3504 o.add(buildNamedPort()); | 3572 o.add(buildNamedPort()); |
| 3505 return o; | 3573 return o; |
| 3506 } | 3574 } |
| 3507 | 3575 |
| 3508 checkUnnamed2289(core.List<api.NamedPort> o) { | 3576 checkUnnamed2310(core.List<api.NamedPort> o) { |
| 3509 unittest.expect(o, unittest.hasLength(2)); | 3577 unittest.expect(o, unittest.hasLength(2)); |
| 3510 checkNamedPort(o[0]); | 3578 checkNamedPort(o[0]); |
| 3511 checkNamedPort(o[1]); | 3579 checkNamedPort(o[1]); |
| 3512 } | 3580 } |
| 3513 | 3581 |
| 3514 core.int buildCounterInstanceGroup = 0; | 3582 core.int buildCounterInstanceGroup = 0; |
| 3515 buildInstanceGroup() { | 3583 buildInstanceGroup() { |
| 3516 var o = new api.InstanceGroup(); | 3584 var o = new api.InstanceGroup(); |
| 3517 buildCounterInstanceGroup++; | 3585 buildCounterInstanceGroup++; |
| 3518 if (buildCounterInstanceGroup < 3) { | 3586 if (buildCounterInstanceGroup < 3) { |
| 3519 o.creationTimestamp = "foo"; | 3587 o.creationTimestamp = "foo"; |
| 3520 o.description = "foo"; | 3588 o.description = "foo"; |
| 3521 o.fingerprint = "foo"; | 3589 o.fingerprint = "foo"; |
| 3522 o.id = "foo"; | 3590 o.id = "foo"; |
| 3523 o.kind = "foo"; | 3591 o.kind = "foo"; |
| 3524 o.name = "foo"; | 3592 o.name = "foo"; |
| 3525 o.namedPorts = buildUnnamed2289(); | 3593 o.namedPorts = buildUnnamed2310(); |
| 3526 o.network = "foo"; | 3594 o.network = "foo"; |
| 3527 o.region = "foo"; | 3595 o.region = "foo"; |
| 3528 o.selfLink = "foo"; | 3596 o.selfLink = "foo"; |
| 3529 o.size = 42; | 3597 o.size = 42; |
| 3530 o.subnetwork = "foo"; | 3598 o.subnetwork = "foo"; |
| 3531 o.zone = "foo"; | 3599 o.zone = "foo"; |
| 3532 } | 3600 } |
| 3533 buildCounterInstanceGroup--; | 3601 buildCounterInstanceGroup--; |
| 3534 return o; | 3602 return o; |
| 3535 } | 3603 } |
| 3536 | 3604 |
| 3537 checkInstanceGroup(api.InstanceGroup o) { | 3605 checkInstanceGroup(api.InstanceGroup o) { |
| 3538 buildCounterInstanceGroup++; | 3606 buildCounterInstanceGroup++; |
| 3539 if (buildCounterInstanceGroup < 3) { | 3607 if (buildCounterInstanceGroup < 3) { |
| 3540 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3608 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3541 unittest.expect(o.description, unittest.equals('foo')); | 3609 unittest.expect(o.description, unittest.equals('foo')); |
| 3542 unittest.expect(o.fingerprint, unittest.equals('foo')); | 3610 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 3543 unittest.expect(o.id, unittest.equals('foo')); | 3611 unittest.expect(o.id, unittest.equals('foo')); |
| 3544 unittest.expect(o.kind, unittest.equals('foo')); | 3612 unittest.expect(o.kind, unittest.equals('foo')); |
| 3545 unittest.expect(o.name, unittest.equals('foo')); | 3613 unittest.expect(o.name, unittest.equals('foo')); |
| 3546 checkUnnamed2289(o.namedPorts); | 3614 checkUnnamed2310(o.namedPorts); |
| 3547 unittest.expect(o.network, unittest.equals('foo')); | 3615 unittest.expect(o.network, unittest.equals('foo')); |
| 3548 unittest.expect(o.region, unittest.equals('foo')); | 3616 unittest.expect(o.region, unittest.equals('foo')); |
| 3549 unittest.expect(o.selfLink, unittest.equals('foo')); | 3617 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3550 unittest.expect(o.size, unittest.equals(42)); | 3618 unittest.expect(o.size, unittest.equals(42)); |
| 3551 unittest.expect(o.subnetwork, unittest.equals('foo')); | 3619 unittest.expect(o.subnetwork, unittest.equals('foo')); |
| 3552 unittest.expect(o.zone, unittest.equals('foo')); | 3620 unittest.expect(o.zone, unittest.equals('foo')); |
| 3553 } | 3621 } |
| 3554 buildCounterInstanceGroup--; | 3622 buildCounterInstanceGroup--; |
| 3555 } | 3623 } |
| 3556 | 3624 |
| 3557 buildUnnamed2290() { | 3625 buildUnnamed2311() { |
| 3558 var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); | 3626 var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); |
| 3559 o["x"] = buildInstanceGroupsScopedList(); | 3627 o["x"] = buildInstanceGroupsScopedList(); |
| 3560 o["y"] = buildInstanceGroupsScopedList(); | 3628 o["y"] = buildInstanceGroupsScopedList(); |
| 3561 return o; | 3629 return o; |
| 3562 } | 3630 } |
| 3563 | 3631 |
| 3564 checkUnnamed2290(core.Map<core.String, api.InstanceGroupsScopedList> o) { | 3632 checkUnnamed2311(core.Map<core.String, api.InstanceGroupsScopedList> o) { |
| 3565 unittest.expect(o, unittest.hasLength(2)); | 3633 unittest.expect(o, unittest.hasLength(2)); |
| 3566 checkInstanceGroupsScopedList(o["x"]); | 3634 checkInstanceGroupsScopedList(o["x"]); |
| 3567 checkInstanceGroupsScopedList(o["y"]); | 3635 checkInstanceGroupsScopedList(o["y"]); |
| 3568 } | 3636 } |
| 3569 | 3637 |
| 3570 core.int buildCounterInstanceGroupAggregatedList = 0; | 3638 core.int buildCounterInstanceGroupAggregatedList = 0; |
| 3571 buildInstanceGroupAggregatedList() { | 3639 buildInstanceGroupAggregatedList() { |
| 3572 var o = new api.InstanceGroupAggregatedList(); | 3640 var o = new api.InstanceGroupAggregatedList(); |
| 3573 buildCounterInstanceGroupAggregatedList++; | 3641 buildCounterInstanceGroupAggregatedList++; |
| 3574 if (buildCounterInstanceGroupAggregatedList < 3) { | 3642 if (buildCounterInstanceGroupAggregatedList < 3) { |
| 3575 o.id = "foo"; | 3643 o.id = "foo"; |
| 3576 o.items = buildUnnamed2290(); | 3644 o.items = buildUnnamed2311(); |
| 3577 o.kind = "foo"; | 3645 o.kind = "foo"; |
| 3578 o.nextPageToken = "foo"; | 3646 o.nextPageToken = "foo"; |
| 3579 o.selfLink = "foo"; | 3647 o.selfLink = "foo"; |
| 3580 } | 3648 } |
| 3581 buildCounterInstanceGroupAggregatedList--; | 3649 buildCounterInstanceGroupAggregatedList--; |
| 3582 return o; | 3650 return o; |
| 3583 } | 3651 } |
| 3584 | 3652 |
| 3585 checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) { | 3653 checkInstanceGroupAggregatedList(api.InstanceGroupAggregatedList o) { |
| 3586 buildCounterInstanceGroupAggregatedList++; | 3654 buildCounterInstanceGroupAggregatedList++; |
| 3587 if (buildCounterInstanceGroupAggregatedList < 3) { | 3655 if (buildCounterInstanceGroupAggregatedList < 3) { |
| 3588 unittest.expect(o.id, unittest.equals('foo')); | 3656 unittest.expect(o.id, unittest.equals('foo')); |
| 3589 checkUnnamed2290(o.items); | 3657 checkUnnamed2311(o.items); |
| 3590 unittest.expect(o.kind, unittest.equals('foo')); | 3658 unittest.expect(o.kind, unittest.equals('foo')); |
| 3591 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3659 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3592 unittest.expect(o.selfLink, unittest.equals('foo')); | 3660 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3593 } | 3661 } |
| 3594 buildCounterInstanceGroupAggregatedList--; | 3662 buildCounterInstanceGroupAggregatedList--; |
| 3595 } | 3663 } |
| 3596 | 3664 |
| 3597 buildUnnamed2291() { | 3665 buildUnnamed2312() { |
| 3598 var o = new core.List<api.InstanceGroup>(); | 3666 var o = new core.List<api.InstanceGroup>(); |
| 3599 o.add(buildInstanceGroup()); | 3667 o.add(buildInstanceGroup()); |
| 3600 o.add(buildInstanceGroup()); | 3668 o.add(buildInstanceGroup()); |
| 3601 return o; | 3669 return o; |
| 3602 } | 3670 } |
| 3603 | 3671 |
| 3604 checkUnnamed2291(core.List<api.InstanceGroup> o) { | 3672 checkUnnamed2312(core.List<api.InstanceGroup> o) { |
| 3605 unittest.expect(o, unittest.hasLength(2)); | 3673 unittest.expect(o, unittest.hasLength(2)); |
| 3606 checkInstanceGroup(o[0]); | 3674 checkInstanceGroup(o[0]); |
| 3607 checkInstanceGroup(o[1]); | 3675 checkInstanceGroup(o[1]); |
| 3608 } | 3676 } |
| 3609 | 3677 |
| 3610 core.int buildCounterInstanceGroupList = 0; | 3678 core.int buildCounterInstanceGroupList = 0; |
| 3611 buildInstanceGroupList() { | 3679 buildInstanceGroupList() { |
| 3612 var o = new api.InstanceGroupList(); | 3680 var o = new api.InstanceGroupList(); |
| 3613 buildCounterInstanceGroupList++; | 3681 buildCounterInstanceGroupList++; |
| 3614 if (buildCounterInstanceGroupList < 3) { | 3682 if (buildCounterInstanceGroupList < 3) { |
| 3615 o.id = "foo"; | 3683 o.id = "foo"; |
| 3616 o.items = buildUnnamed2291(); | 3684 o.items = buildUnnamed2312(); |
| 3617 o.kind = "foo"; | 3685 o.kind = "foo"; |
| 3618 o.nextPageToken = "foo"; | 3686 o.nextPageToken = "foo"; |
| 3619 o.selfLink = "foo"; | 3687 o.selfLink = "foo"; |
| 3620 } | 3688 } |
| 3621 buildCounterInstanceGroupList--; | 3689 buildCounterInstanceGroupList--; |
| 3622 return o; | 3690 return o; |
| 3623 } | 3691 } |
| 3624 | 3692 |
| 3625 checkInstanceGroupList(api.InstanceGroupList o) { | 3693 checkInstanceGroupList(api.InstanceGroupList o) { |
| 3626 buildCounterInstanceGroupList++; | 3694 buildCounterInstanceGroupList++; |
| 3627 if (buildCounterInstanceGroupList < 3) { | 3695 if (buildCounterInstanceGroupList < 3) { |
| 3628 unittest.expect(o.id, unittest.equals('foo')); | 3696 unittest.expect(o.id, unittest.equals('foo')); |
| 3629 checkUnnamed2291(o.items); | 3697 checkUnnamed2312(o.items); |
| 3630 unittest.expect(o.kind, unittest.equals('foo')); | 3698 unittest.expect(o.kind, unittest.equals('foo')); |
| 3631 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3699 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3632 unittest.expect(o.selfLink, unittest.equals('foo')); | 3700 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3633 } | 3701 } |
| 3634 buildCounterInstanceGroupList--; | 3702 buildCounterInstanceGroupList--; |
| 3635 } | 3703 } |
| 3636 | 3704 |
| 3637 buildUnnamed2292() { | 3705 buildUnnamed2313() { |
| 3638 var o = new core.List<api.NamedPort>(); | 3706 var o = new core.List<api.NamedPort>(); |
| 3639 o.add(buildNamedPort()); | 3707 o.add(buildNamedPort()); |
| 3640 o.add(buildNamedPort()); | 3708 o.add(buildNamedPort()); |
| 3641 return o; | 3709 return o; |
| 3642 } | 3710 } |
| 3643 | 3711 |
| 3644 checkUnnamed2292(core.List<api.NamedPort> o) { | 3712 checkUnnamed2313(core.List<api.NamedPort> o) { |
| 3645 unittest.expect(o, unittest.hasLength(2)); | 3713 unittest.expect(o, unittest.hasLength(2)); |
| 3646 checkNamedPort(o[0]); | 3714 checkNamedPort(o[0]); |
| 3647 checkNamedPort(o[1]); | 3715 checkNamedPort(o[1]); |
| 3648 } | 3716 } |
| 3649 | 3717 |
| 3650 buildUnnamed2293() { | 3718 buildUnnamed2314() { |
| 3651 var o = new core.List<core.String>(); | 3719 var o = new core.List<core.String>(); |
| 3652 o.add("foo"); | 3720 o.add("foo"); |
| 3653 o.add("foo"); | 3721 o.add("foo"); |
| 3654 return o; | 3722 return o; |
| 3655 } | 3723 } |
| 3656 | 3724 |
| 3657 checkUnnamed2293(core.List<core.String> o) { | 3725 checkUnnamed2314(core.List<core.String> o) { |
| 3658 unittest.expect(o, unittest.hasLength(2)); | 3726 unittest.expect(o, unittest.hasLength(2)); |
| 3659 unittest.expect(o[0], unittest.equals('foo')); | 3727 unittest.expect(o[0], unittest.equals('foo')); |
| 3660 unittest.expect(o[1], unittest.equals('foo')); | 3728 unittest.expect(o[1], unittest.equals('foo')); |
| 3661 } | 3729 } |
| 3662 | 3730 |
| 3663 core.int buildCounterInstanceGroupManager = 0; | 3731 core.int buildCounterInstanceGroupManager = 0; |
| 3664 buildInstanceGroupManager() { | 3732 buildInstanceGroupManager() { |
| 3665 var o = new api.InstanceGroupManager(); | 3733 var o = new api.InstanceGroupManager(); |
| 3666 buildCounterInstanceGroupManager++; | 3734 buildCounterInstanceGroupManager++; |
| 3667 if (buildCounterInstanceGroupManager < 3) { | 3735 if (buildCounterInstanceGroupManager < 3) { |
| 3668 o.baseInstanceName = "foo"; | 3736 o.baseInstanceName = "foo"; |
| 3669 o.creationTimestamp = "foo"; | 3737 o.creationTimestamp = "foo"; |
| 3670 o.currentActions = buildInstanceGroupManagerActionsSummary(); | 3738 o.currentActions = buildInstanceGroupManagerActionsSummary(); |
| 3671 o.description = "foo"; | 3739 o.description = "foo"; |
| 3672 o.fingerprint = "foo"; | 3740 o.fingerprint = "foo"; |
| 3673 o.id = "foo"; | 3741 o.id = "foo"; |
| 3674 o.instanceGroup = "foo"; | 3742 o.instanceGroup = "foo"; |
| 3675 o.instanceTemplate = "foo"; | 3743 o.instanceTemplate = "foo"; |
| 3676 o.kind = "foo"; | 3744 o.kind = "foo"; |
| 3677 o.name = "foo"; | 3745 o.name = "foo"; |
| 3678 o.namedPorts = buildUnnamed2292(); | 3746 o.namedPorts = buildUnnamed2313(); |
| 3679 o.region = "foo"; | 3747 o.region = "foo"; |
| 3680 o.selfLink = "foo"; | 3748 o.selfLink = "foo"; |
| 3681 o.targetPools = buildUnnamed2293(); | 3749 o.targetPools = buildUnnamed2314(); |
| 3682 o.targetSize = 42; | 3750 o.targetSize = 42; |
| 3683 o.zone = "foo"; | 3751 o.zone = "foo"; |
| 3684 } | 3752 } |
| 3685 buildCounterInstanceGroupManager--; | 3753 buildCounterInstanceGroupManager--; |
| 3686 return o; | 3754 return o; |
| 3687 } | 3755 } |
| 3688 | 3756 |
| 3689 checkInstanceGroupManager(api.InstanceGroupManager o) { | 3757 checkInstanceGroupManager(api.InstanceGroupManager o) { |
| 3690 buildCounterInstanceGroupManager++; | 3758 buildCounterInstanceGroupManager++; |
| 3691 if (buildCounterInstanceGroupManager < 3) { | 3759 if (buildCounterInstanceGroupManager < 3) { |
| 3692 unittest.expect(o.baseInstanceName, unittest.equals('foo')); | 3760 unittest.expect(o.baseInstanceName, unittest.equals('foo')); |
| 3693 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3761 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3694 checkInstanceGroupManagerActionsSummary(o.currentActions); | 3762 checkInstanceGroupManagerActionsSummary(o.currentActions); |
| 3695 unittest.expect(o.description, unittest.equals('foo')); | 3763 unittest.expect(o.description, unittest.equals('foo')); |
| 3696 unittest.expect(o.fingerprint, unittest.equals('foo')); | 3764 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 3697 unittest.expect(o.id, unittest.equals('foo')); | 3765 unittest.expect(o.id, unittest.equals('foo')); |
| 3698 unittest.expect(o.instanceGroup, unittest.equals('foo')); | 3766 unittest.expect(o.instanceGroup, unittest.equals('foo')); |
| 3699 unittest.expect(o.instanceTemplate, unittest.equals('foo')); | 3767 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
| 3700 unittest.expect(o.kind, unittest.equals('foo')); | 3768 unittest.expect(o.kind, unittest.equals('foo')); |
| 3701 unittest.expect(o.name, unittest.equals('foo')); | 3769 unittest.expect(o.name, unittest.equals('foo')); |
| 3702 checkUnnamed2292(o.namedPorts); | 3770 checkUnnamed2313(o.namedPorts); |
| 3703 unittest.expect(o.region, unittest.equals('foo')); | 3771 unittest.expect(o.region, unittest.equals('foo')); |
| 3704 unittest.expect(o.selfLink, unittest.equals('foo')); | 3772 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3705 checkUnnamed2293(o.targetPools); | 3773 checkUnnamed2314(o.targetPools); |
| 3706 unittest.expect(o.targetSize, unittest.equals(42)); | 3774 unittest.expect(o.targetSize, unittest.equals(42)); |
| 3707 unittest.expect(o.zone, unittest.equals('foo')); | 3775 unittest.expect(o.zone, unittest.equals('foo')); |
| 3708 } | 3776 } |
| 3709 buildCounterInstanceGroupManager--; | 3777 buildCounterInstanceGroupManager--; |
| 3710 } | 3778 } |
| 3711 | 3779 |
| 3712 core.int buildCounterInstanceGroupManagerActionsSummary = 0; | 3780 core.int buildCounterInstanceGroupManagerActionsSummary = 0; |
| 3713 buildInstanceGroupManagerActionsSummary() { | 3781 buildInstanceGroupManagerActionsSummary() { |
| 3714 var o = new api.InstanceGroupManagerActionsSummary(); | 3782 var o = new api.InstanceGroupManagerActionsSummary(); |
| 3715 buildCounterInstanceGroupManagerActionsSummary++; | 3783 buildCounterInstanceGroupManagerActionsSummary++; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 3735 unittest.expect(o.creatingWithoutRetries, unittest.equals(42)); | 3803 unittest.expect(o.creatingWithoutRetries, unittest.equals(42)); |
| 3736 unittest.expect(o.deleting, unittest.equals(42)); | 3804 unittest.expect(o.deleting, unittest.equals(42)); |
| 3737 unittest.expect(o.none, unittest.equals(42)); | 3805 unittest.expect(o.none, unittest.equals(42)); |
| 3738 unittest.expect(o.recreating, unittest.equals(42)); | 3806 unittest.expect(o.recreating, unittest.equals(42)); |
| 3739 unittest.expect(o.refreshing, unittest.equals(42)); | 3807 unittest.expect(o.refreshing, unittest.equals(42)); |
| 3740 unittest.expect(o.restarting, unittest.equals(42)); | 3808 unittest.expect(o.restarting, unittest.equals(42)); |
| 3741 } | 3809 } |
| 3742 buildCounterInstanceGroupManagerActionsSummary--; | 3810 buildCounterInstanceGroupManagerActionsSummary--; |
| 3743 } | 3811 } |
| 3744 | 3812 |
| 3745 buildUnnamed2294() { | 3813 buildUnnamed2315() { |
| 3746 var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); | 3814 var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); |
| 3747 o["x"] = buildInstanceGroupManagersScopedList(); | 3815 o["x"] = buildInstanceGroupManagersScopedList(); |
| 3748 o["y"] = buildInstanceGroupManagersScopedList(); | 3816 o["y"] = buildInstanceGroupManagersScopedList(); |
| 3749 return o; | 3817 return o; |
| 3750 } | 3818 } |
| 3751 | 3819 |
| 3752 checkUnnamed2294(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { | 3820 checkUnnamed2315(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { |
| 3753 unittest.expect(o, unittest.hasLength(2)); | 3821 unittest.expect(o, unittest.hasLength(2)); |
| 3754 checkInstanceGroupManagersScopedList(o["x"]); | 3822 checkInstanceGroupManagersScopedList(o["x"]); |
| 3755 checkInstanceGroupManagersScopedList(o["y"]); | 3823 checkInstanceGroupManagersScopedList(o["y"]); |
| 3756 } | 3824 } |
| 3757 | 3825 |
| 3758 core.int buildCounterInstanceGroupManagerAggregatedList = 0; | 3826 core.int buildCounterInstanceGroupManagerAggregatedList = 0; |
| 3759 buildInstanceGroupManagerAggregatedList() { | 3827 buildInstanceGroupManagerAggregatedList() { |
| 3760 var o = new api.InstanceGroupManagerAggregatedList(); | 3828 var o = new api.InstanceGroupManagerAggregatedList(); |
| 3761 buildCounterInstanceGroupManagerAggregatedList++; | 3829 buildCounterInstanceGroupManagerAggregatedList++; |
| 3762 if (buildCounterInstanceGroupManagerAggregatedList < 3) { | 3830 if (buildCounterInstanceGroupManagerAggregatedList < 3) { |
| 3763 o.id = "foo"; | 3831 o.id = "foo"; |
| 3764 o.items = buildUnnamed2294(); | 3832 o.items = buildUnnamed2315(); |
| 3765 o.kind = "foo"; | 3833 o.kind = "foo"; |
| 3766 o.nextPageToken = "foo"; | 3834 o.nextPageToken = "foo"; |
| 3767 o.selfLink = "foo"; | 3835 o.selfLink = "foo"; |
| 3768 } | 3836 } |
| 3769 buildCounterInstanceGroupManagerAggregatedList--; | 3837 buildCounterInstanceGroupManagerAggregatedList--; |
| 3770 return o; | 3838 return o; |
| 3771 } | 3839 } |
| 3772 | 3840 |
| 3773 checkInstanceGroupManagerAggregatedList(api.InstanceGroupManagerAggregatedList o
) { | 3841 checkInstanceGroupManagerAggregatedList(api.InstanceGroupManagerAggregatedList o
) { |
| 3774 buildCounterInstanceGroupManagerAggregatedList++; | 3842 buildCounterInstanceGroupManagerAggregatedList++; |
| 3775 if (buildCounterInstanceGroupManagerAggregatedList < 3) { | 3843 if (buildCounterInstanceGroupManagerAggregatedList < 3) { |
| 3776 unittest.expect(o.id, unittest.equals('foo')); | 3844 unittest.expect(o.id, unittest.equals('foo')); |
| 3777 checkUnnamed2294(o.items); | 3845 checkUnnamed2315(o.items); |
| 3778 unittest.expect(o.kind, unittest.equals('foo')); | 3846 unittest.expect(o.kind, unittest.equals('foo')); |
| 3779 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3847 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3780 unittest.expect(o.selfLink, unittest.equals('foo')); | 3848 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3781 } | 3849 } |
| 3782 buildCounterInstanceGroupManagerAggregatedList--; | 3850 buildCounterInstanceGroupManagerAggregatedList--; |
| 3783 } | 3851 } |
| 3784 | 3852 |
| 3785 buildUnnamed2295() { | 3853 buildUnnamed2316() { |
| 3786 var o = new core.List<api.InstanceGroupManager>(); | 3854 var o = new core.List<api.InstanceGroupManager>(); |
| 3787 o.add(buildInstanceGroupManager()); | 3855 o.add(buildInstanceGroupManager()); |
| 3788 o.add(buildInstanceGroupManager()); | 3856 o.add(buildInstanceGroupManager()); |
| 3789 return o; | 3857 return o; |
| 3790 } | 3858 } |
| 3791 | 3859 |
| 3792 checkUnnamed2295(core.List<api.InstanceGroupManager> o) { | 3860 checkUnnamed2316(core.List<api.InstanceGroupManager> o) { |
| 3793 unittest.expect(o, unittest.hasLength(2)); | 3861 unittest.expect(o, unittest.hasLength(2)); |
| 3794 checkInstanceGroupManager(o[0]); | 3862 checkInstanceGroupManager(o[0]); |
| 3795 checkInstanceGroupManager(o[1]); | 3863 checkInstanceGroupManager(o[1]); |
| 3796 } | 3864 } |
| 3797 | 3865 |
| 3798 core.int buildCounterInstanceGroupManagerList = 0; | 3866 core.int buildCounterInstanceGroupManagerList = 0; |
| 3799 buildInstanceGroupManagerList() { | 3867 buildInstanceGroupManagerList() { |
| 3800 var o = new api.InstanceGroupManagerList(); | 3868 var o = new api.InstanceGroupManagerList(); |
| 3801 buildCounterInstanceGroupManagerList++; | 3869 buildCounterInstanceGroupManagerList++; |
| 3802 if (buildCounterInstanceGroupManagerList < 3) { | 3870 if (buildCounterInstanceGroupManagerList < 3) { |
| 3803 o.id = "foo"; | 3871 o.id = "foo"; |
| 3804 o.items = buildUnnamed2295(); | 3872 o.items = buildUnnamed2316(); |
| 3805 o.kind = "foo"; | 3873 o.kind = "foo"; |
| 3806 o.nextPageToken = "foo"; | 3874 o.nextPageToken = "foo"; |
| 3807 o.selfLink = "foo"; | 3875 o.selfLink = "foo"; |
| 3808 } | 3876 } |
| 3809 buildCounterInstanceGroupManagerList--; | 3877 buildCounterInstanceGroupManagerList--; |
| 3810 return o; | 3878 return o; |
| 3811 } | 3879 } |
| 3812 | 3880 |
| 3813 checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { | 3881 checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { |
| 3814 buildCounterInstanceGroupManagerList++; | 3882 buildCounterInstanceGroupManagerList++; |
| 3815 if (buildCounterInstanceGroupManagerList < 3) { | 3883 if (buildCounterInstanceGroupManagerList < 3) { |
| 3816 unittest.expect(o.id, unittest.equals('foo')); | 3884 unittest.expect(o.id, unittest.equals('foo')); |
| 3817 checkUnnamed2295(o.items); | 3885 checkUnnamed2316(o.items); |
| 3818 unittest.expect(o.kind, unittest.equals('foo')); | 3886 unittest.expect(o.kind, unittest.equals('foo')); |
| 3819 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3887 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3820 unittest.expect(o.selfLink, unittest.equals('foo')); | 3888 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3821 } | 3889 } |
| 3822 buildCounterInstanceGroupManagerList--; | 3890 buildCounterInstanceGroupManagerList--; |
| 3823 } | 3891 } |
| 3824 | 3892 |
| 3825 buildUnnamed2296() { | 3893 buildUnnamed2317() { |
| 3826 var o = new core.List<core.String>(); | 3894 var o = new core.List<core.String>(); |
| 3827 o.add("foo"); | 3895 o.add("foo"); |
| 3828 o.add("foo"); | 3896 o.add("foo"); |
| 3829 return o; | 3897 return o; |
| 3830 } | 3898 } |
| 3831 | 3899 |
| 3832 checkUnnamed2296(core.List<core.String> o) { | 3900 checkUnnamed2317(core.List<core.String> o) { |
| 3833 unittest.expect(o, unittest.hasLength(2)); | 3901 unittest.expect(o, unittest.hasLength(2)); |
| 3834 unittest.expect(o[0], unittest.equals('foo')); | 3902 unittest.expect(o[0], unittest.equals('foo')); |
| 3835 unittest.expect(o[1], unittest.equals('foo')); | 3903 unittest.expect(o[1], unittest.equals('foo')); |
| 3836 } | 3904 } |
| 3837 | 3905 |
| 3838 core.int buildCounterInstanceGroupManagersAbandonInstancesRequest = 0; | 3906 core.int buildCounterInstanceGroupManagersAbandonInstancesRequest = 0; |
| 3839 buildInstanceGroupManagersAbandonInstancesRequest() { | 3907 buildInstanceGroupManagersAbandonInstancesRequest() { |
| 3840 var o = new api.InstanceGroupManagersAbandonInstancesRequest(); | 3908 var o = new api.InstanceGroupManagersAbandonInstancesRequest(); |
| 3841 buildCounterInstanceGroupManagersAbandonInstancesRequest++; | 3909 buildCounterInstanceGroupManagersAbandonInstancesRequest++; |
| 3842 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { | 3910 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { |
| 3843 o.instances = buildUnnamed2296(); | 3911 o.instances = buildUnnamed2317(); |
| 3844 } | 3912 } |
| 3845 buildCounterInstanceGroupManagersAbandonInstancesRequest--; | 3913 buildCounterInstanceGroupManagersAbandonInstancesRequest--; |
| 3846 return o; | 3914 return o; |
| 3847 } | 3915 } |
| 3848 | 3916 |
| 3849 checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAband
onInstancesRequest o) { | 3917 checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAband
onInstancesRequest o) { |
| 3850 buildCounterInstanceGroupManagersAbandonInstancesRequest++; | 3918 buildCounterInstanceGroupManagersAbandonInstancesRequest++; |
| 3851 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { | 3919 if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { |
| 3852 checkUnnamed2296(o.instances); | 3920 checkUnnamed2317(o.instances); |
| 3853 } | 3921 } |
| 3854 buildCounterInstanceGroupManagersAbandonInstancesRequest--; | 3922 buildCounterInstanceGroupManagersAbandonInstancesRequest--; |
| 3855 } | 3923 } |
| 3856 | 3924 |
| 3857 buildUnnamed2297() { | 3925 buildUnnamed2318() { |
| 3858 var o = new core.List<core.String>(); | 3926 var o = new core.List<core.String>(); |
| 3859 o.add("foo"); | 3927 o.add("foo"); |
| 3860 o.add("foo"); | 3928 o.add("foo"); |
| 3861 return o; | 3929 return o; |
| 3862 } | 3930 } |
| 3863 | 3931 |
| 3864 checkUnnamed2297(core.List<core.String> o) { | 3932 checkUnnamed2318(core.List<core.String> o) { |
| 3865 unittest.expect(o, unittest.hasLength(2)); | 3933 unittest.expect(o, unittest.hasLength(2)); |
| 3866 unittest.expect(o[0], unittest.equals('foo')); | 3934 unittest.expect(o[0], unittest.equals('foo')); |
| 3867 unittest.expect(o[1], unittest.equals('foo')); | 3935 unittest.expect(o[1], unittest.equals('foo')); |
| 3868 } | 3936 } |
| 3869 | 3937 |
| 3870 core.int buildCounterInstanceGroupManagersDeleteInstancesRequest = 0; | 3938 core.int buildCounterInstanceGroupManagersDeleteInstancesRequest = 0; |
| 3871 buildInstanceGroupManagersDeleteInstancesRequest() { | 3939 buildInstanceGroupManagersDeleteInstancesRequest() { |
| 3872 var o = new api.InstanceGroupManagersDeleteInstancesRequest(); | 3940 var o = new api.InstanceGroupManagersDeleteInstancesRequest(); |
| 3873 buildCounterInstanceGroupManagersDeleteInstancesRequest++; | 3941 buildCounterInstanceGroupManagersDeleteInstancesRequest++; |
| 3874 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { | 3942 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { |
| 3875 o.instances = buildUnnamed2297(); | 3943 o.instances = buildUnnamed2318(); |
| 3876 } | 3944 } |
| 3877 buildCounterInstanceGroupManagersDeleteInstancesRequest--; | 3945 buildCounterInstanceGroupManagersDeleteInstancesRequest--; |
| 3878 return o; | 3946 return o; |
| 3879 } | 3947 } |
| 3880 | 3948 |
| 3881 checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDelete
InstancesRequest o) { | 3949 checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDelete
InstancesRequest o) { |
| 3882 buildCounterInstanceGroupManagersDeleteInstancesRequest++; | 3950 buildCounterInstanceGroupManagersDeleteInstancesRequest++; |
| 3883 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { | 3951 if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { |
| 3884 checkUnnamed2297(o.instances); | 3952 checkUnnamed2318(o.instances); |
| 3885 } | 3953 } |
| 3886 buildCounterInstanceGroupManagersDeleteInstancesRequest--; | 3954 buildCounterInstanceGroupManagersDeleteInstancesRequest--; |
| 3887 } | 3955 } |
| 3888 | 3956 |
| 3889 buildUnnamed2298() { | 3957 buildUnnamed2319() { |
| 3890 var o = new core.List<api.ManagedInstance>(); | 3958 var o = new core.List<api.ManagedInstance>(); |
| 3891 o.add(buildManagedInstance()); | 3959 o.add(buildManagedInstance()); |
| 3892 o.add(buildManagedInstance()); | 3960 o.add(buildManagedInstance()); |
| 3893 return o; | 3961 return o; |
| 3894 } | 3962 } |
| 3895 | 3963 |
| 3896 checkUnnamed2298(core.List<api.ManagedInstance> o) { | 3964 checkUnnamed2319(core.List<api.ManagedInstance> o) { |
| 3897 unittest.expect(o, unittest.hasLength(2)); | 3965 unittest.expect(o, unittest.hasLength(2)); |
| 3898 checkManagedInstance(o[0]); | 3966 checkManagedInstance(o[0]); |
| 3899 checkManagedInstance(o[1]); | 3967 checkManagedInstance(o[1]); |
| 3900 } | 3968 } |
| 3901 | 3969 |
| 3902 core.int buildCounterInstanceGroupManagersListManagedInstancesResponse = 0; | 3970 core.int buildCounterInstanceGroupManagersListManagedInstancesResponse = 0; |
| 3903 buildInstanceGroupManagersListManagedInstancesResponse() { | 3971 buildInstanceGroupManagersListManagedInstancesResponse() { |
| 3904 var o = new api.InstanceGroupManagersListManagedInstancesResponse(); | 3972 var o = new api.InstanceGroupManagersListManagedInstancesResponse(); |
| 3905 buildCounterInstanceGroupManagersListManagedInstancesResponse++; | 3973 buildCounterInstanceGroupManagersListManagedInstancesResponse++; |
| 3906 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { | 3974 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { |
| 3907 o.managedInstances = buildUnnamed2298(); | 3975 o.managedInstances = buildUnnamed2319(); |
| 3908 } | 3976 } |
| 3909 buildCounterInstanceGroupManagersListManagedInstancesResponse--; | 3977 buildCounterInstanceGroupManagersListManagedInstancesResponse--; |
| 3910 return o; | 3978 return o; |
| 3911 } | 3979 } |
| 3912 | 3980 |
| 3913 checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagers
ListManagedInstancesResponse o) { | 3981 checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagers
ListManagedInstancesResponse o) { |
| 3914 buildCounterInstanceGroupManagersListManagedInstancesResponse++; | 3982 buildCounterInstanceGroupManagersListManagedInstancesResponse++; |
| 3915 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { | 3983 if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { |
| 3916 checkUnnamed2298(o.managedInstances); | 3984 checkUnnamed2319(o.managedInstances); |
| 3917 } | 3985 } |
| 3918 buildCounterInstanceGroupManagersListManagedInstancesResponse--; | 3986 buildCounterInstanceGroupManagersListManagedInstancesResponse--; |
| 3919 } | 3987 } |
| 3920 | 3988 |
| 3921 buildUnnamed2299() { | 3989 buildUnnamed2320() { |
| 3922 var o = new core.List<core.String>(); | 3990 var o = new core.List<core.String>(); |
| 3923 o.add("foo"); | 3991 o.add("foo"); |
| 3924 o.add("foo"); | 3992 o.add("foo"); |
| 3925 return o; | 3993 return o; |
| 3926 } | 3994 } |
| 3927 | 3995 |
| 3928 checkUnnamed2299(core.List<core.String> o) { | 3996 checkUnnamed2320(core.List<core.String> o) { |
| 3929 unittest.expect(o, unittest.hasLength(2)); | 3997 unittest.expect(o, unittest.hasLength(2)); |
| 3930 unittest.expect(o[0], unittest.equals('foo')); | 3998 unittest.expect(o[0], unittest.equals('foo')); |
| 3931 unittest.expect(o[1], unittest.equals('foo')); | 3999 unittest.expect(o[1], unittest.equals('foo')); |
| 3932 } | 4000 } |
| 3933 | 4001 |
| 3934 core.int buildCounterInstanceGroupManagersRecreateInstancesRequest = 0; | 4002 core.int buildCounterInstanceGroupManagersRecreateInstancesRequest = 0; |
| 3935 buildInstanceGroupManagersRecreateInstancesRequest() { | 4003 buildInstanceGroupManagersRecreateInstancesRequest() { |
| 3936 var o = new api.InstanceGroupManagersRecreateInstancesRequest(); | 4004 var o = new api.InstanceGroupManagersRecreateInstancesRequest(); |
| 3937 buildCounterInstanceGroupManagersRecreateInstancesRequest++; | 4005 buildCounterInstanceGroupManagersRecreateInstancesRequest++; |
| 3938 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { | 4006 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { |
| 3939 o.instances = buildUnnamed2299(); | 4007 o.instances = buildUnnamed2320(); |
| 3940 } | 4008 } |
| 3941 buildCounterInstanceGroupManagersRecreateInstancesRequest--; | 4009 buildCounterInstanceGroupManagersRecreateInstancesRequest--; |
| 3942 return o; | 4010 return o; |
| 3943 } | 4011 } |
| 3944 | 4012 |
| 3945 checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecr
eateInstancesRequest o) { | 4013 checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecr
eateInstancesRequest o) { |
| 3946 buildCounterInstanceGroupManagersRecreateInstancesRequest++; | 4014 buildCounterInstanceGroupManagersRecreateInstancesRequest++; |
| 3947 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { | 4015 if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { |
| 3948 checkUnnamed2299(o.instances); | 4016 checkUnnamed2320(o.instances); |
| 3949 } | 4017 } |
| 3950 buildCounterInstanceGroupManagersRecreateInstancesRequest--; | 4018 buildCounterInstanceGroupManagersRecreateInstancesRequest--; |
| 3951 } | 4019 } |
| 3952 | 4020 |
| 3953 buildUnnamed2300() { | 4021 buildUnnamed2321() { |
| 3954 var o = new core.List<api.InstanceGroupManager>(); | 4022 var o = new core.List<api.InstanceGroupManager>(); |
| 3955 o.add(buildInstanceGroupManager()); | 4023 o.add(buildInstanceGroupManager()); |
| 3956 o.add(buildInstanceGroupManager()); | 4024 o.add(buildInstanceGroupManager()); |
| 3957 return o; | 4025 return o; |
| 3958 } | 4026 } |
| 3959 | 4027 |
| 3960 checkUnnamed2300(core.List<api.InstanceGroupManager> o) { | 4028 checkUnnamed2321(core.List<api.InstanceGroupManager> o) { |
| 3961 unittest.expect(o, unittest.hasLength(2)); | 4029 unittest.expect(o, unittest.hasLength(2)); |
| 3962 checkInstanceGroupManager(o[0]); | 4030 checkInstanceGroupManager(o[0]); |
| 3963 checkInstanceGroupManager(o[1]); | 4031 checkInstanceGroupManager(o[1]); |
| 3964 } | 4032 } |
| 3965 | 4033 |
| 3966 core.int buildCounterInstanceGroupManagersScopedListWarningData = 0; | 4034 core.int buildCounterInstanceGroupManagersScopedListWarningData = 0; |
| 3967 buildInstanceGroupManagersScopedListWarningData() { | 4035 buildInstanceGroupManagersScopedListWarningData() { |
| 3968 var o = new api.InstanceGroupManagersScopedListWarningData(); | 4036 var o = new api.InstanceGroupManagersScopedListWarningData(); |
| 3969 buildCounterInstanceGroupManagersScopedListWarningData++; | 4037 buildCounterInstanceGroupManagersScopedListWarningData++; |
| 3970 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { | 4038 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { |
| 3971 o.key = "foo"; | 4039 o.key = "foo"; |
| 3972 o.value = "foo"; | 4040 o.value = "foo"; |
| 3973 } | 4041 } |
| 3974 buildCounterInstanceGroupManagersScopedListWarningData--; | 4042 buildCounterInstanceGroupManagersScopedListWarningData--; |
| 3975 return o; | 4043 return o; |
| 3976 } | 4044 } |
| 3977 | 4045 |
| 3978 checkInstanceGroupManagersScopedListWarningData(api.InstanceGroupManagersScopedL
istWarningData o) { | 4046 checkInstanceGroupManagersScopedListWarningData(api.InstanceGroupManagersScopedL
istWarningData o) { |
| 3979 buildCounterInstanceGroupManagersScopedListWarningData++; | 4047 buildCounterInstanceGroupManagersScopedListWarningData++; |
| 3980 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { | 4048 if (buildCounterInstanceGroupManagersScopedListWarningData < 3) { |
| 3981 unittest.expect(o.key, unittest.equals('foo')); | 4049 unittest.expect(o.key, unittest.equals('foo')); |
| 3982 unittest.expect(o.value, unittest.equals('foo')); | 4050 unittest.expect(o.value, unittest.equals('foo')); |
| 3983 } | 4051 } |
| 3984 buildCounterInstanceGroupManagersScopedListWarningData--; | 4052 buildCounterInstanceGroupManagersScopedListWarningData--; |
| 3985 } | 4053 } |
| 3986 | 4054 |
| 3987 buildUnnamed2301() { | 4055 buildUnnamed2322() { |
| 3988 var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); | 4056 var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); |
| 3989 o.add(buildInstanceGroupManagersScopedListWarningData()); | 4057 o.add(buildInstanceGroupManagersScopedListWarningData()); |
| 3990 o.add(buildInstanceGroupManagersScopedListWarningData()); | 4058 o.add(buildInstanceGroupManagersScopedListWarningData()); |
| 3991 return o; | 4059 return o; |
| 3992 } | 4060 } |
| 3993 | 4061 |
| 3994 checkUnnamed2301(core.List<api.InstanceGroupManagersScopedListWarningData> o) { | 4062 checkUnnamed2322(core.List<api.InstanceGroupManagersScopedListWarningData> o) { |
| 3995 unittest.expect(o, unittest.hasLength(2)); | 4063 unittest.expect(o, unittest.hasLength(2)); |
| 3996 checkInstanceGroupManagersScopedListWarningData(o[0]); | 4064 checkInstanceGroupManagersScopedListWarningData(o[0]); |
| 3997 checkInstanceGroupManagersScopedListWarningData(o[1]); | 4065 checkInstanceGroupManagersScopedListWarningData(o[1]); |
| 3998 } | 4066 } |
| 3999 | 4067 |
| 4000 core.int buildCounterInstanceGroupManagersScopedListWarning = 0; | 4068 core.int buildCounterInstanceGroupManagersScopedListWarning = 0; |
| 4001 buildInstanceGroupManagersScopedListWarning() { | 4069 buildInstanceGroupManagersScopedListWarning() { |
| 4002 var o = new api.InstanceGroupManagersScopedListWarning(); | 4070 var o = new api.InstanceGroupManagersScopedListWarning(); |
| 4003 buildCounterInstanceGroupManagersScopedListWarning++; | 4071 buildCounterInstanceGroupManagersScopedListWarning++; |
| 4004 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { | 4072 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { |
| 4005 o.code = "foo"; | 4073 o.code = "foo"; |
| 4006 o.data = buildUnnamed2301(); | 4074 o.data = buildUnnamed2322(); |
| 4007 o.message = "foo"; | 4075 o.message = "foo"; |
| 4008 } | 4076 } |
| 4009 buildCounterInstanceGroupManagersScopedListWarning--; | 4077 buildCounterInstanceGroupManagersScopedListWarning--; |
| 4010 return o; | 4078 return o; |
| 4011 } | 4079 } |
| 4012 | 4080 |
| 4013 checkInstanceGroupManagersScopedListWarning(api.InstanceGroupManagersScopedListW
arning o) { | 4081 checkInstanceGroupManagersScopedListWarning(api.InstanceGroupManagersScopedListW
arning o) { |
| 4014 buildCounterInstanceGroupManagersScopedListWarning++; | 4082 buildCounterInstanceGroupManagersScopedListWarning++; |
| 4015 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { | 4083 if (buildCounterInstanceGroupManagersScopedListWarning < 3) { |
| 4016 unittest.expect(o.code, unittest.equals('foo')); | 4084 unittest.expect(o.code, unittest.equals('foo')); |
| 4017 checkUnnamed2301(o.data); | 4085 checkUnnamed2322(o.data); |
| 4018 unittest.expect(o.message, unittest.equals('foo')); | 4086 unittest.expect(o.message, unittest.equals('foo')); |
| 4019 } | 4087 } |
| 4020 buildCounterInstanceGroupManagersScopedListWarning--; | 4088 buildCounterInstanceGroupManagersScopedListWarning--; |
| 4021 } | 4089 } |
| 4022 | 4090 |
| 4023 core.int buildCounterInstanceGroupManagersScopedList = 0; | 4091 core.int buildCounterInstanceGroupManagersScopedList = 0; |
| 4024 buildInstanceGroupManagersScopedList() { | 4092 buildInstanceGroupManagersScopedList() { |
| 4025 var o = new api.InstanceGroupManagersScopedList(); | 4093 var o = new api.InstanceGroupManagersScopedList(); |
| 4026 buildCounterInstanceGroupManagersScopedList++; | 4094 buildCounterInstanceGroupManagersScopedList++; |
| 4027 if (buildCounterInstanceGroupManagersScopedList < 3) { | 4095 if (buildCounterInstanceGroupManagersScopedList < 3) { |
| 4028 o.instanceGroupManagers = buildUnnamed2300(); | 4096 o.instanceGroupManagers = buildUnnamed2321(); |
| 4029 o.warning = buildInstanceGroupManagersScopedListWarning(); | 4097 o.warning = buildInstanceGroupManagersScopedListWarning(); |
| 4030 } | 4098 } |
| 4031 buildCounterInstanceGroupManagersScopedList--; | 4099 buildCounterInstanceGroupManagersScopedList--; |
| 4032 return o; | 4100 return o; |
| 4033 } | 4101 } |
| 4034 | 4102 |
| 4035 checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { | 4103 checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { |
| 4036 buildCounterInstanceGroupManagersScopedList++; | 4104 buildCounterInstanceGroupManagersScopedList++; |
| 4037 if (buildCounterInstanceGroupManagersScopedList < 3) { | 4105 if (buildCounterInstanceGroupManagersScopedList < 3) { |
| 4038 checkUnnamed2300(o.instanceGroupManagers); | 4106 checkUnnamed2321(o.instanceGroupManagers); |
| 4039 checkInstanceGroupManagersScopedListWarning(o.warning); | 4107 checkInstanceGroupManagersScopedListWarning(o.warning); |
| 4040 } | 4108 } |
| 4041 buildCounterInstanceGroupManagersScopedList--; | 4109 buildCounterInstanceGroupManagersScopedList--; |
| 4042 } | 4110 } |
| 4043 | 4111 |
| 4044 core.int buildCounterInstanceGroupManagersSetInstanceTemplateRequest = 0; | 4112 core.int buildCounterInstanceGroupManagersSetInstanceTemplateRequest = 0; |
| 4045 buildInstanceGroupManagersSetInstanceTemplateRequest() { | 4113 buildInstanceGroupManagersSetInstanceTemplateRequest() { |
| 4046 var o = new api.InstanceGroupManagersSetInstanceTemplateRequest(); | 4114 var o = new api.InstanceGroupManagersSetInstanceTemplateRequest(); |
| 4047 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; | 4115 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; |
| 4048 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { | 4116 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { |
| 4049 o.instanceTemplate = "foo"; | 4117 o.instanceTemplate = "foo"; |
| 4050 } | 4118 } |
| 4051 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; | 4119 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; |
| 4052 return o; | 4120 return o; |
| 4053 } | 4121 } |
| 4054 | 4122 |
| 4055 checkInstanceGroupManagersSetInstanceTemplateRequest(api.InstanceGroupManagersSe
tInstanceTemplateRequest o) { | 4123 checkInstanceGroupManagersSetInstanceTemplateRequest(api.InstanceGroupManagersSe
tInstanceTemplateRequest o) { |
| 4056 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; | 4124 buildCounterInstanceGroupManagersSetInstanceTemplateRequest++; |
| 4057 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { | 4125 if (buildCounterInstanceGroupManagersSetInstanceTemplateRequest < 3) { |
| 4058 unittest.expect(o.instanceTemplate, unittest.equals('foo')); | 4126 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
| 4059 } | 4127 } |
| 4060 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; | 4128 buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; |
| 4061 } | 4129 } |
| 4062 | 4130 |
| 4063 buildUnnamed2302() { | 4131 buildUnnamed2323() { |
| 4064 var o = new core.List<core.String>(); | 4132 var o = new core.List<core.String>(); |
| 4065 o.add("foo"); | 4133 o.add("foo"); |
| 4066 o.add("foo"); | 4134 o.add("foo"); |
| 4067 return o; | 4135 return o; |
| 4068 } | 4136 } |
| 4069 | 4137 |
| 4070 checkUnnamed2302(core.List<core.String> o) { | 4138 checkUnnamed2323(core.List<core.String> o) { |
| 4071 unittest.expect(o, unittest.hasLength(2)); | 4139 unittest.expect(o, unittest.hasLength(2)); |
| 4072 unittest.expect(o[0], unittest.equals('foo')); | 4140 unittest.expect(o[0], unittest.equals('foo')); |
| 4073 unittest.expect(o[1], unittest.equals('foo')); | 4141 unittest.expect(o[1], unittest.equals('foo')); |
| 4074 } | 4142 } |
| 4075 | 4143 |
| 4076 core.int buildCounterInstanceGroupManagersSetTargetPoolsRequest = 0; | 4144 core.int buildCounterInstanceGroupManagersSetTargetPoolsRequest = 0; |
| 4077 buildInstanceGroupManagersSetTargetPoolsRequest() { | 4145 buildInstanceGroupManagersSetTargetPoolsRequest() { |
| 4078 var o = new api.InstanceGroupManagersSetTargetPoolsRequest(); | 4146 var o = new api.InstanceGroupManagersSetTargetPoolsRequest(); |
| 4079 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; | 4147 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; |
| 4080 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { | 4148 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { |
| 4081 o.fingerprint = "foo"; | 4149 o.fingerprint = "foo"; |
| 4082 o.targetPools = buildUnnamed2302(); | 4150 o.targetPools = buildUnnamed2323(); |
| 4083 } | 4151 } |
| 4084 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; | 4152 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; |
| 4085 return o; | 4153 return o; |
| 4086 } | 4154 } |
| 4087 | 4155 |
| 4088 checkInstanceGroupManagersSetTargetPoolsRequest(api.InstanceGroupManagersSetTarg
etPoolsRequest o) { | 4156 checkInstanceGroupManagersSetTargetPoolsRequest(api.InstanceGroupManagersSetTarg
etPoolsRequest o) { |
| 4089 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; | 4157 buildCounterInstanceGroupManagersSetTargetPoolsRequest++; |
| 4090 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { | 4158 if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { |
| 4091 unittest.expect(o.fingerprint, unittest.equals('foo')); | 4159 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 4092 checkUnnamed2302(o.targetPools); | 4160 checkUnnamed2323(o.targetPools); |
| 4093 } | 4161 } |
| 4094 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; | 4162 buildCounterInstanceGroupManagersSetTargetPoolsRequest--; |
| 4095 } | 4163 } |
| 4096 | 4164 |
| 4097 buildUnnamed2303() { | 4165 buildUnnamed2324() { |
| 4098 var o = new core.List<api.InstanceReference>(); | 4166 var o = new core.List<api.InstanceReference>(); |
| 4099 o.add(buildInstanceReference()); | 4167 o.add(buildInstanceReference()); |
| 4100 o.add(buildInstanceReference()); | 4168 o.add(buildInstanceReference()); |
| 4101 return o; | 4169 return o; |
| 4102 } | 4170 } |
| 4103 | 4171 |
| 4104 checkUnnamed2303(core.List<api.InstanceReference> o) { | 4172 checkUnnamed2324(core.List<api.InstanceReference> o) { |
| 4105 unittest.expect(o, unittest.hasLength(2)); | 4173 unittest.expect(o, unittest.hasLength(2)); |
| 4106 checkInstanceReference(o[0]); | 4174 checkInstanceReference(o[0]); |
| 4107 checkInstanceReference(o[1]); | 4175 checkInstanceReference(o[1]); |
| 4108 } | 4176 } |
| 4109 | 4177 |
| 4110 core.int buildCounterInstanceGroupsAddInstancesRequest = 0; | 4178 core.int buildCounterInstanceGroupsAddInstancesRequest = 0; |
| 4111 buildInstanceGroupsAddInstancesRequest() { | 4179 buildInstanceGroupsAddInstancesRequest() { |
| 4112 var o = new api.InstanceGroupsAddInstancesRequest(); | 4180 var o = new api.InstanceGroupsAddInstancesRequest(); |
| 4113 buildCounterInstanceGroupsAddInstancesRequest++; | 4181 buildCounterInstanceGroupsAddInstancesRequest++; |
| 4114 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { | 4182 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { |
| 4115 o.instances = buildUnnamed2303(); | 4183 o.instances = buildUnnamed2324(); |
| 4116 } | 4184 } |
| 4117 buildCounterInstanceGroupsAddInstancesRequest--; | 4185 buildCounterInstanceGroupsAddInstancesRequest--; |
| 4118 return o; | 4186 return o; |
| 4119 } | 4187 } |
| 4120 | 4188 |
| 4121 checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o)
{ | 4189 checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o)
{ |
| 4122 buildCounterInstanceGroupsAddInstancesRequest++; | 4190 buildCounterInstanceGroupsAddInstancesRequest++; |
| 4123 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { | 4191 if (buildCounterInstanceGroupsAddInstancesRequest < 3) { |
| 4124 checkUnnamed2303(o.instances); | 4192 checkUnnamed2324(o.instances); |
| 4125 } | 4193 } |
| 4126 buildCounterInstanceGroupsAddInstancesRequest--; | 4194 buildCounterInstanceGroupsAddInstancesRequest--; |
| 4127 } | 4195 } |
| 4128 | 4196 |
| 4129 buildUnnamed2304() { | 4197 buildUnnamed2325() { |
| 4130 var o = new core.List<api.InstanceWithNamedPorts>(); | 4198 var o = new core.List<api.InstanceWithNamedPorts>(); |
| 4131 o.add(buildInstanceWithNamedPorts()); | 4199 o.add(buildInstanceWithNamedPorts()); |
| 4132 o.add(buildInstanceWithNamedPorts()); | 4200 o.add(buildInstanceWithNamedPorts()); |
| 4133 return o; | 4201 return o; |
| 4134 } | 4202 } |
| 4135 | 4203 |
| 4136 checkUnnamed2304(core.List<api.InstanceWithNamedPorts> o) { | 4204 checkUnnamed2325(core.List<api.InstanceWithNamedPorts> o) { |
| 4137 unittest.expect(o, unittest.hasLength(2)); | 4205 unittest.expect(o, unittest.hasLength(2)); |
| 4138 checkInstanceWithNamedPorts(o[0]); | 4206 checkInstanceWithNamedPorts(o[0]); |
| 4139 checkInstanceWithNamedPorts(o[1]); | 4207 checkInstanceWithNamedPorts(o[1]); |
| 4140 } | 4208 } |
| 4141 | 4209 |
| 4142 core.int buildCounterInstanceGroupsListInstances = 0; | 4210 core.int buildCounterInstanceGroupsListInstances = 0; |
| 4143 buildInstanceGroupsListInstances() { | 4211 buildInstanceGroupsListInstances() { |
| 4144 var o = new api.InstanceGroupsListInstances(); | 4212 var o = new api.InstanceGroupsListInstances(); |
| 4145 buildCounterInstanceGroupsListInstances++; | 4213 buildCounterInstanceGroupsListInstances++; |
| 4146 if (buildCounterInstanceGroupsListInstances < 3) { | 4214 if (buildCounterInstanceGroupsListInstances < 3) { |
| 4147 o.id = "foo"; | 4215 o.id = "foo"; |
| 4148 o.items = buildUnnamed2304(); | 4216 o.items = buildUnnamed2325(); |
| 4149 o.kind = "foo"; | 4217 o.kind = "foo"; |
| 4150 o.nextPageToken = "foo"; | 4218 o.nextPageToken = "foo"; |
| 4151 o.selfLink = "foo"; | 4219 o.selfLink = "foo"; |
| 4152 } | 4220 } |
| 4153 buildCounterInstanceGroupsListInstances--; | 4221 buildCounterInstanceGroupsListInstances--; |
| 4154 return o; | 4222 return o; |
| 4155 } | 4223 } |
| 4156 | 4224 |
| 4157 checkInstanceGroupsListInstances(api.InstanceGroupsListInstances o) { | 4225 checkInstanceGroupsListInstances(api.InstanceGroupsListInstances o) { |
| 4158 buildCounterInstanceGroupsListInstances++; | 4226 buildCounterInstanceGroupsListInstances++; |
| 4159 if (buildCounterInstanceGroupsListInstances < 3) { | 4227 if (buildCounterInstanceGroupsListInstances < 3) { |
| 4160 unittest.expect(o.id, unittest.equals('foo')); | 4228 unittest.expect(o.id, unittest.equals('foo')); |
| 4161 checkUnnamed2304(o.items); | 4229 checkUnnamed2325(o.items); |
| 4162 unittest.expect(o.kind, unittest.equals('foo')); | 4230 unittest.expect(o.kind, unittest.equals('foo')); |
| 4163 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4231 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4164 unittest.expect(o.selfLink, unittest.equals('foo')); | 4232 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4165 } | 4233 } |
| 4166 buildCounterInstanceGroupsListInstances--; | 4234 buildCounterInstanceGroupsListInstances--; |
| 4167 } | 4235 } |
| 4168 | 4236 |
| 4169 core.int buildCounterInstanceGroupsListInstancesRequest = 0; | 4237 core.int buildCounterInstanceGroupsListInstancesRequest = 0; |
| 4170 buildInstanceGroupsListInstancesRequest() { | 4238 buildInstanceGroupsListInstancesRequest() { |
| 4171 var o = new api.InstanceGroupsListInstancesRequest(); | 4239 var o = new api.InstanceGroupsListInstancesRequest(); |
| 4172 buildCounterInstanceGroupsListInstancesRequest++; | 4240 buildCounterInstanceGroupsListInstancesRequest++; |
| 4173 if (buildCounterInstanceGroupsListInstancesRequest < 3) { | 4241 if (buildCounterInstanceGroupsListInstancesRequest < 3) { |
| 4174 o.instanceState = "foo"; | 4242 o.instanceState = "foo"; |
| 4175 } | 4243 } |
| 4176 buildCounterInstanceGroupsListInstancesRequest--; | 4244 buildCounterInstanceGroupsListInstancesRequest--; |
| 4177 return o; | 4245 return o; |
| 4178 } | 4246 } |
| 4179 | 4247 |
| 4180 checkInstanceGroupsListInstancesRequest(api.InstanceGroupsListInstancesRequest o
) { | 4248 checkInstanceGroupsListInstancesRequest(api.InstanceGroupsListInstancesRequest o
) { |
| 4181 buildCounterInstanceGroupsListInstancesRequest++; | 4249 buildCounterInstanceGroupsListInstancesRequest++; |
| 4182 if (buildCounterInstanceGroupsListInstancesRequest < 3) { | 4250 if (buildCounterInstanceGroupsListInstancesRequest < 3) { |
| 4183 unittest.expect(o.instanceState, unittest.equals('foo')); | 4251 unittest.expect(o.instanceState, unittest.equals('foo')); |
| 4184 } | 4252 } |
| 4185 buildCounterInstanceGroupsListInstancesRequest--; | 4253 buildCounterInstanceGroupsListInstancesRequest--; |
| 4186 } | 4254 } |
| 4187 | 4255 |
| 4188 buildUnnamed2305() { | 4256 buildUnnamed2326() { |
| 4189 var o = new core.List<api.InstanceReference>(); | 4257 var o = new core.List<api.InstanceReference>(); |
| 4190 o.add(buildInstanceReference()); | 4258 o.add(buildInstanceReference()); |
| 4191 o.add(buildInstanceReference()); | 4259 o.add(buildInstanceReference()); |
| 4192 return o; | 4260 return o; |
| 4193 } | 4261 } |
| 4194 | 4262 |
| 4195 checkUnnamed2305(core.List<api.InstanceReference> o) { | 4263 checkUnnamed2326(core.List<api.InstanceReference> o) { |
| 4196 unittest.expect(o, unittest.hasLength(2)); | 4264 unittest.expect(o, unittest.hasLength(2)); |
| 4197 checkInstanceReference(o[0]); | 4265 checkInstanceReference(o[0]); |
| 4198 checkInstanceReference(o[1]); | 4266 checkInstanceReference(o[1]); |
| 4199 } | 4267 } |
| 4200 | 4268 |
| 4201 core.int buildCounterInstanceGroupsRemoveInstancesRequest = 0; | 4269 core.int buildCounterInstanceGroupsRemoveInstancesRequest = 0; |
| 4202 buildInstanceGroupsRemoveInstancesRequest() { | 4270 buildInstanceGroupsRemoveInstancesRequest() { |
| 4203 var o = new api.InstanceGroupsRemoveInstancesRequest(); | 4271 var o = new api.InstanceGroupsRemoveInstancesRequest(); |
| 4204 buildCounterInstanceGroupsRemoveInstancesRequest++; | 4272 buildCounterInstanceGroupsRemoveInstancesRequest++; |
| 4205 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { | 4273 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { |
| 4206 o.instances = buildUnnamed2305(); | 4274 o.instances = buildUnnamed2326(); |
| 4207 } | 4275 } |
| 4208 buildCounterInstanceGroupsRemoveInstancesRequest--; | 4276 buildCounterInstanceGroupsRemoveInstancesRequest--; |
| 4209 return o; | 4277 return o; |
| 4210 } | 4278 } |
| 4211 | 4279 |
| 4212 checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesReque
st o) { | 4280 checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesReque
st o) { |
| 4213 buildCounterInstanceGroupsRemoveInstancesRequest++; | 4281 buildCounterInstanceGroupsRemoveInstancesRequest++; |
| 4214 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { | 4282 if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { |
| 4215 checkUnnamed2305(o.instances); | 4283 checkUnnamed2326(o.instances); |
| 4216 } | 4284 } |
| 4217 buildCounterInstanceGroupsRemoveInstancesRequest--; | 4285 buildCounterInstanceGroupsRemoveInstancesRequest--; |
| 4218 } | 4286 } |
| 4219 | 4287 |
| 4220 buildUnnamed2306() { | 4288 buildUnnamed2327() { |
| 4221 var o = new core.List<api.InstanceGroup>(); | 4289 var o = new core.List<api.InstanceGroup>(); |
| 4222 o.add(buildInstanceGroup()); | 4290 o.add(buildInstanceGroup()); |
| 4223 o.add(buildInstanceGroup()); | 4291 o.add(buildInstanceGroup()); |
| 4224 return o; | 4292 return o; |
| 4225 } | 4293 } |
| 4226 | 4294 |
| 4227 checkUnnamed2306(core.List<api.InstanceGroup> o) { | 4295 checkUnnamed2327(core.List<api.InstanceGroup> o) { |
| 4228 unittest.expect(o, unittest.hasLength(2)); | 4296 unittest.expect(o, unittest.hasLength(2)); |
| 4229 checkInstanceGroup(o[0]); | 4297 checkInstanceGroup(o[0]); |
| 4230 checkInstanceGroup(o[1]); | 4298 checkInstanceGroup(o[1]); |
| 4231 } | 4299 } |
| 4232 | 4300 |
| 4233 core.int buildCounterInstanceGroupsScopedListWarningData = 0; | 4301 core.int buildCounterInstanceGroupsScopedListWarningData = 0; |
| 4234 buildInstanceGroupsScopedListWarningData() { | 4302 buildInstanceGroupsScopedListWarningData() { |
| 4235 var o = new api.InstanceGroupsScopedListWarningData(); | 4303 var o = new api.InstanceGroupsScopedListWarningData(); |
| 4236 buildCounterInstanceGroupsScopedListWarningData++; | 4304 buildCounterInstanceGroupsScopedListWarningData++; |
| 4237 if (buildCounterInstanceGroupsScopedListWarningData < 3) { | 4305 if (buildCounterInstanceGroupsScopedListWarningData < 3) { |
| 4238 o.key = "foo"; | 4306 o.key = "foo"; |
| 4239 o.value = "foo"; | 4307 o.value = "foo"; |
| 4240 } | 4308 } |
| 4241 buildCounterInstanceGroupsScopedListWarningData--; | 4309 buildCounterInstanceGroupsScopedListWarningData--; |
| 4242 return o; | 4310 return o; |
| 4243 } | 4311 } |
| 4244 | 4312 |
| 4245 checkInstanceGroupsScopedListWarningData(api.InstanceGroupsScopedListWarningData
o) { | 4313 checkInstanceGroupsScopedListWarningData(api.InstanceGroupsScopedListWarningData
o) { |
| 4246 buildCounterInstanceGroupsScopedListWarningData++; | 4314 buildCounterInstanceGroupsScopedListWarningData++; |
| 4247 if (buildCounterInstanceGroupsScopedListWarningData < 3) { | 4315 if (buildCounterInstanceGroupsScopedListWarningData < 3) { |
| 4248 unittest.expect(o.key, unittest.equals('foo')); | 4316 unittest.expect(o.key, unittest.equals('foo')); |
| 4249 unittest.expect(o.value, unittest.equals('foo')); | 4317 unittest.expect(o.value, unittest.equals('foo')); |
| 4250 } | 4318 } |
| 4251 buildCounterInstanceGroupsScopedListWarningData--; | 4319 buildCounterInstanceGroupsScopedListWarningData--; |
| 4252 } | 4320 } |
| 4253 | 4321 |
| 4254 buildUnnamed2307() { | 4322 buildUnnamed2328() { |
| 4255 var o = new core.List<api.InstanceGroupsScopedListWarningData>(); | 4323 var o = new core.List<api.InstanceGroupsScopedListWarningData>(); |
| 4256 o.add(buildInstanceGroupsScopedListWarningData()); | 4324 o.add(buildInstanceGroupsScopedListWarningData()); |
| 4257 o.add(buildInstanceGroupsScopedListWarningData()); | 4325 o.add(buildInstanceGroupsScopedListWarningData()); |
| 4258 return o; | 4326 return o; |
| 4259 } | 4327 } |
| 4260 | 4328 |
| 4261 checkUnnamed2307(core.List<api.InstanceGroupsScopedListWarningData> o) { | 4329 checkUnnamed2328(core.List<api.InstanceGroupsScopedListWarningData> o) { |
| 4262 unittest.expect(o, unittest.hasLength(2)); | 4330 unittest.expect(o, unittest.hasLength(2)); |
| 4263 checkInstanceGroupsScopedListWarningData(o[0]); | 4331 checkInstanceGroupsScopedListWarningData(o[0]); |
| 4264 checkInstanceGroupsScopedListWarningData(o[1]); | 4332 checkInstanceGroupsScopedListWarningData(o[1]); |
| 4265 } | 4333 } |
| 4266 | 4334 |
| 4267 core.int buildCounterInstanceGroupsScopedListWarning = 0; | 4335 core.int buildCounterInstanceGroupsScopedListWarning = 0; |
| 4268 buildInstanceGroupsScopedListWarning() { | 4336 buildInstanceGroupsScopedListWarning() { |
| 4269 var o = new api.InstanceGroupsScopedListWarning(); | 4337 var o = new api.InstanceGroupsScopedListWarning(); |
| 4270 buildCounterInstanceGroupsScopedListWarning++; | 4338 buildCounterInstanceGroupsScopedListWarning++; |
| 4271 if (buildCounterInstanceGroupsScopedListWarning < 3) { | 4339 if (buildCounterInstanceGroupsScopedListWarning < 3) { |
| 4272 o.code = "foo"; | 4340 o.code = "foo"; |
| 4273 o.data = buildUnnamed2307(); | 4341 o.data = buildUnnamed2328(); |
| 4274 o.message = "foo"; | 4342 o.message = "foo"; |
| 4275 } | 4343 } |
| 4276 buildCounterInstanceGroupsScopedListWarning--; | 4344 buildCounterInstanceGroupsScopedListWarning--; |
| 4277 return o; | 4345 return o; |
| 4278 } | 4346 } |
| 4279 | 4347 |
| 4280 checkInstanceGroupsScopedListWarning(api.InstanceGroupsScopedListWarning o) { | 4348 checkInstanceGroupsScopedListWarning(api.InstanceGroupsScopedListWarning o) { |
| 4281 buildCounterInstanceGroupsScopedListWarning++; | 4349 buildCounterInstanceGroupsScopedListWarning++; |
| 4282 if (buildCounterInstanceGroupsScopedListWarning < 3) { | 4350 if (buildCounterInstanceGroupsScopedListWarning < 3) { |
| 4283 unittest.expect(o.code, unittest.equals('foo')); | 4351 unittest.expect(o.code, unittest.equals('foo')); |
| 4284 checkUnnamed2307(o.data); | 4352 checkUnnamed2328(o.data); |
| 4285 unittest.expect(o.message, unittest.equals('foo')); | 4353 unittest.expect(o.message, unittest.equals('foo')); |
| 4286 } | 4354 } |
| 4287 buildCounterInstanceGroupsScopedListWarning--; | 4355 buildCounterInstanceGroupsScopedListWarning--; |
| 4288 } | 4356 } |
| 4289 | 4357 |
| 4290 core.int buildCounterInstanceGroupsScopedList = 0; | 4358 core.int buildCounterInstanceGroupsScopedList = 0; |
| 4291 buildInstanceGroupsScopedList() { | 4359 buildInstanceGroupsScopedList() { |
| 4292 var o = new api.InstanceGroupsScopedList(); | 4360 var o = new api.InstanceGroupsScopedList(); |
| 4293 buildCounterInstanceGroupsScopedList++; | 4361 buildCounterInstanceGroupsScopedList++; |
| 4294 if (buildCounterInstanceGroupsScopedList < 3) { | 4362 if (buildCounterInstanceGroupsScopedList < 3) { |
| 4295 o.instanceGroups = buildUnnamed2306(); | 4363 o.instanceGroups = buildUnnamed2327(); |
| 4296 o.warning = buildInstanceGroupsScopedListWarning(); | 4364 o.warning = buildInstanceGroupsScopedListWarning(); |
| 4297 } | 4365 } |
| 4298 buildCounterInstanceGroupsScopedList--; | 4366 buildCounterInstanceGroupsScopedList--; |
| 4299 return o; | 4367 return o; |
| 4300 } | 4368 } |
| 4301 | 4369 |
| 4302 checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { | 4370 checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { |
| 4303 buildCounterInstanceGroupsScopedList++; | 4371 buildCounterInstanceGroupsScopedList++; |
| 4304 if (buildCounterInstanceGroupsScopedList < 3) { | 4372 if (buildCounterInstanceGroupsScopedList < 3) { |
| 4305 checkUnnamed2306(o.instanceGroups); | 4373 checkUnnamed2327(o.instanceGroups); |
| 4306 checkInstanceGroupsScopedListWarning(o.warning); | 4374 checkInstanceGroupsScopedListWarning(o.warning); |
| 4307 } | 4375 } |
| 4308 buildCounterInstanceGroupsScopedList--; | 4376 buildCounterInstanceGroupsScopedList--; |
| 4309 } | 4377 } |
| 4310 | 4378 |
| 4311 buildUnnamed2308() { | 4379 buildUnnamed2329() { |
| 4312 var o = new core.List<api.NamedPort>(); | 4380 var o = new core.List<api.NamedPort>(); |
| 4313 o.add(buildNamedPort()); | 4381 o.add(buildNamedPort()); |
| 4314 o.add(buildNamedPort()); | 4382 o.add(buildNamedPort()); |
| 4315 return o; | 4383 return o; |
| 4316 } | 4384 } |
| 4317 | 4385 |
| 4318 checkUnnamed2308(core.List<api.NamedPort> o) { | 4386 checkUnnamed2329(core.List<api.NamedPort> o) { |
| 4319 unittest.expect(o, unittest.hasLength(2)); | 4387 unittest.expect(o, unittest.hasLength(2)); |
| 4320 checkNamedPort(o[0]); | 4388 checkNamedPort(o[0]); |
| 4321 checkNamedPort(o[1]); | 4389 checkNamedPort(o[1]); |
| 4322 } | 4390 } |
| 4323 | 4391 |
| 4324 core.int buildCounterInstanceGroupsSetNamedPortsRequest = 0; | 4392 core.int buildCounterInstanceGroupsSetNamedPortsRequest = 0; |
| 4325 buildInstanceGroupsSetNamedPortsRequest() { | 4393 buildInstanceGroupsSetNamedPortsRequest() { |
| 4326 var o = new api.InstanceGroupsSetNamedPortsRequest(); | 4394 var o = new api.InstanceGroupsSetNamedPortsRequest(); |
| 4327 buildCounterInstanceGroupsSetNamedPortsRequest++; | 4395 buildCounterInstanceGroupsSetNamedPortsRequest++; |
| 4328 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { | 4396 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { |
| 4329 o.fingerprint = "foo"; | 4397 o.fingerprint = "foo"; |
| 4330 o.namedPorts = buildUnnamed2308(); | 4398 o.namedPorts = buildUnnamed2329(); |
| 4331 } | 4399 } |
| 4332 buildCounterInstanceGroupsSetNamedPortsRequest--; | 4400 buildCounterInstanceGroupsSetNamedPortsRequest--; |
| 4333 return o; | 4401 return o; |
| 4334 } | 4402 } |
| 4335 | 4403 |
| 4336 checkInstanceGroupsSetNamedPortsRequest(api.InstanceGroupsSetNamedPortsRequest o
) { | 4404 checkInstanceGroupsSetNamedPortsRequest(api.InstanceGroupsSetNamedPortsRequest o
) { |
| 4337 buildCounterInstanceGroupsSetNamedPortsRequest++; | 4405 buildCounterInstanceGroupsSetNamedPortsRequest++; |
| 4338 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { | 4406 if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { |
| 4339 unittest.expect(o.fingerprint, unittest.equals('foo')); | 4407 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 4340 checkUnnamed2308(o.namedPorts); | 4408 checkUnnamed2329(o.namedPorts); |
| 4341 } | 4409 } |
| 4342 buildCounterInstanceGroupsSetNamedPortsRequest--; | 4410 buildCounterInstanceGroupsSetNamedPortsRequest--; |
| 4343 } | 4411 } |
| 4344 | 4412 |
| 4345 buildUnnamed2309() { | 4413 buildUnnamed2330() { |
| 4346 var o = new core.List<api.Instance>(); | 4414 var o = new core.List<api.Instance>(); |
| 4347 o.add(buildInstance()); | 4415 o.add(buildInstance()); |
| 4348 o.add(buildInstance()); | 4416 o.add(buildInstance()); |
| 4349 return o; | 4417 return o; |
| 4350 } | 4418 } |
| 4351 | 4419 |
| 4352 checkUnnamed2309(core.List<api.Instance> o) { | 4420 checkUnnamed2330(core.List<api.Instance> o) { |
| 4353 unittest.expect(o, unittest.hasLength(2)); | 4421 unittest.expect(o, unittest.hasLength(2)); |
| 4354 checkInstance(o[0]); | 4422 checkInstance(o[0]); |
| 4355 checkInstance(o[1]); | 4423 checkInstance(o[1]); |
| 4356 } | 4424 } |
| 4357 | 4425 |
| 4358 core.int buildCounterInstanceList = 0; | 4426 core.int buildCounterInstanceList = 0; |
| 4359 buildInstanceList() { | 4427 buildInstanceList() { |
| 4360 var o = new api.InstanceList(); | 4428 var o = new api.InstanceList(); |
| 4361 buildCounterInstanceList++; | 4429 buildCounterInstanceList++; |
| 4362 if (buildCounterInstanceList < 3) { | 4430 if (buildCounterInstanceList < 3) { |
| 4363 o.id = "foo"; | 4431 o.id = "foo"; |
| 4364 o.items = buildUnnamed2309(); | 4432 o.items = buildUnnamed2330(); |
| 4365 o.kind = "foo"; | 4433 o.kind = "foo"; |
| 4366 o.nextPageToken = "foo"; | 4434 o.nextPageToken = "foo"; |
| 4367 o.selfLink = "foo"; | 4435 o.selfLink = "foo"; |
| 4368 } | 4436 } |
| 4369 buildCounterInstanceList--; | 4437 buildCounterInstanceList--; |
| 4370 return o; | 4438 return o; |
| 4371 } | 4439 } |
| 4372 | 4440 |
| 4373 checkInstanceList(api.InstanceList o) { | 4441 checkInstanceList(api.InstanceList o) { |
| 4374 buildCounterInstanceList++; | 4442 buildCounterInstanceList++; |
| 4375 if (buildCounterInstanceList < 3) { | 4443 if (buildCounterInstanceList < 3) { |
| 4376 unittest.expect(o.id, unittest.equals('foo')); | 4444 unittest.expect(o.id, unittest.equals('foo')); |
| 4377 checkUnnamed2309(o.items); | 4445 checkUnnamed2330(o.items); |
| 4378 unittest.expect(o.kind, unittest.equals('foo')); | 4446 unittest.expect(o.kind, unittest.equals('foo')); |
| 4379 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4447 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4380 unittest.expect(o.selfLink, unittest.equals('foo')); | 4448 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4381 } | 4449 } |
| 4382 buildCounterInstanceList--; | 4450 buildCounterInstanceList--; |
| 4383 } | 4451 } |
| 4384 | 4452 |
| 4385 core.int buildCounterInstanceMoveRequest = 0; | 4453 core.int buildCounterInstanceMoveRequest = 0; |
| 4386 buildInstanceMoveRequest() { | 4454 buildInstanceMoveRequest() { |
| 4387 var o = new api.InstanceMoveRequest(); | 4455 var o = new api.InstanceMoveRequest(); |
| 4388 buildCounterInstanceMoveRequest++; | 4456 buildCounterInstanceMoveRequest++; |
| 4389 if (buildCounterInstanceMoveRequest < 3) { | 4457 if (buildCounterInstanceMoveRequest < 3) { |
| 4390 o.destinationZone = "foo"; | 4458 o.destinationZone = "foo"; |
| 4391 o.targetInstance = "foo"; | 4459 o.targetInstance = "foo"; |
| 4392 } | 4460 } |
| 4393 buildCounterInstanceMoveRequest--; | 4461 buildCounterInstanceMoveRequest--; |
| 4394 return o; | 4462 return o; |
| 4395 } | 4463 } |
| 4396 | 4464 |
| 4397 checkInstanceMoveRequest(api.InstanceMoveRequest o) { | 4465 checkInstanceMoveRequest(api.InstanceMoveRequest o) { |
| 4398 buildCounterInstanceMoveRequest++; | 4466 buildCounterInstanceMoveRequest++; |
| 4399 if (buildCounterInstanceMoveRequest < 3) { | 4467 if (buildCounterInstanceMoveRequest < 3) { |
| 4400 unittest.expect(o.destinationZone, unittest.equals('foo')); | 4468 unittest.expect(o.destinationZone, unittest.equals('foo')); |
| 4401 unittest.expect(o.targetInstance, unittest.equals('foo')); | 4469 unittest.expect(o.targetInstance, unittest.equals('foo')); |
| 4402 } | 4470 } |
| 4403 buildCounterInstanceMoveRequest--; | 4471 buildCounterInstanceMoveRequest--; |
| 4404 } | 4472 } |
| 4405 | 4473 |
| 4406 buildUnnamed2310() { | 4474 buildUnnamed2331() { |
| 4407 var o = new core.List<api.AttachedDisk>(); | 4475 var o = new core.List<api.AttachedDisk>(); |
| 4408 o.add(buildAttachedDisk()); | 4476 o.add(buildAttachedDisk()); |
| 4409 o.add(buildAttachedDisk()); | 4477 o.add(buildAttachedDisk()); |
| 4410 return o; | 4478 return o; |
| 4411 } | 4479 } |
| 4412 | 4480 |
| 4413 checkUnnamed2310(core.List<api.AttachedDisk> o) { | 4481 checkUnnamed2331(core.List<api.AttachedDisk> o) { |
| 4414 unittest.expect(o, unittest.hasLength(2)); | 4482 unittest.expect(o, unittest.hasLength(2)); |
| 4415 checkAttachedDisk(o[0]); | 4483 checkAttachedDisk(o[0]); |
| 4416 checkAttachedDisk(o[1]); | 4484 checkAttachedDisk(o[1]); |
| 4417 } | 4485 } |
| 4418 | 4486 |
| 4419 buildUnnamed2311() { | 4487 buildUnnamed2332() { |
| 4420 var o = new core.List<api.AcceleratorConfig>(); | 4488 var o = new core.List<api.AcceleratorConfig>(); |
| 4421 o.add(buildAcceleratorConfig()); | 4489 o.add(buildAcceleratorConfig()); |
| 4422 o.add(buildAcceleratorConfig()); | 4490 o.add(buildAcceleratorConfig()); |
| 4423 return o; | 4491 return o; |
| 4424 } | 4492 } |
| 4425 | 4493 |
| 4426 checkUnnamed2311(core.List<api.AcceleratorConfig> o) { | 4494 checkUnnamed2332(core.List<api.AcceleratorConfig> o) { |
| 4427 unittest.expect(o, unittest.hasLength(2)); | 4495 unittest.expect(o, unittest.hasLength(2)); |
| 4428 checkAcceleratorConfig(o[0]); | 4496 checkAcceleratorConfig(o[0]); |
| 4429 checkAcceleratorConfig(o[1]); | 4497 checkAcceleratorConfig(o[1]); |
| 4430 } | 4498 } |
| 4431 | 4499 |
| 4432 buildUnnamed2312() { | 4500 buildUnnamed2333() { |
| 4433 var o = new core.Map<core.String, core.String>(); | 4501 var o = new core.Map<core.String, core.String>(); |
| 4434 o["x"] = "foo"; | 4502 o["x"] = "foo"; |
| 4435 o["y"] = "foo"; | 4503 o["y"] = "foo"; |
| 4436 return o; | 4504 return o; |
| 4437 } | 4505 } |
| 4438 | 4506 |
| 4439 checkUnnamed2312(core.Map<core.String, core.String> o) { | 4507 checkUnnamed2333(core.Map<core.String, core.String> o) { |
| 4440 unittest.expect(o, unittest.hasLength(2)); | 4508 unittest.expect(o, unittest.hasLength(2)); |
| 4441 unittest.expect(o["x"], unittest.equals('foo')); | 4509 unittest.expect(o["x"], unittest.equals('foo')); |
| 4442 unittest.expect(o["y"], unittest.equals('foo')); | 4510 unittest.expect(o["y"], unittest.equals('foo')); |
| 4443 } | 4511 } |
| 4444 | 4512 |
| 4445 buildUnnamed2313() { | 4513 buildUnnamed2334() { |
| 4446 var o = new core.List<api.NetworkInterface>(); | 4514 var o = new core.List<api.NetworkInterface>(); |
| 4447 o.add(buildNetworkInterface()); | 4515 o.add(buildNetworkInterface()); |
| 4448 o.add(buildNetworkInterface()); | 4516 o.add(buildNetworkInterface()); |
| 4449 return o; | 4517 return o; |
| 4450 } | 4518 } |
| 4451 | 4519 |
| 4452 checkUnnamed2313(core.List<api.NetworkInterface> o) { | 4520 checkUnnamed2334(core.List<api.NetworkInterface> o) { |
| 4453 unittest.expect(o, unittest.hasLength(2)); | 4521 unittest.expect(o, unittest.hasLength(2)); |
| 4454 checkNetworkInterface(o[0]); | 4522 checkNetworkInterface(o[0]); |
| 4455 checkNetworkInterface(o[1]); | 4523 checkNetworkInterface(o[1]); |
| 4456 } | 4524 } |
| 4457 | 4525 |
| 4458 buildUnnamed2314() { | 4526 buildUnnamed2335() { |
| 4459 var o = new core.List<api.ServiceAccount>(); | 4527 var o = new core.List<api.ServiceAccount>(); |
| 4460 o.add(buildServiceAccount()); | 4528 o.add(buildServiceAccount()); |
| 4461 o.add(buildServiceAccount()); | 4529 o.add(buildServiceAccount()); |
| 4462 return o; | 4530 return o; |
| 4463 } | 4531 } |
| 4464 | 4532 |
| 4465 checkUnnamed2314(core.List<api.ServiceAccount> o) { | 4533 checkUnnamed2335(core.List<api.ServiceAccount> o) { |
| 4466 unittest.expect(o, unittest.hasLength(2)); | 4534 unittest.expect(o, unittest.hasLength(2)); |
| 4467 checkServiceAccount(o[0]); | 4535 checkServiceAccount(o[0]); |
| 4468 checkServiceAccount(o[1]); | 4536 checkServiceAccount(o[1]); |
| 4469 } | 4537 } |
| 4470 | 4538 |
| 4471 core.int buildCounterInstanceProperties = 0; | 4539 core.int buildCounterInstanceProperties = 0; |
| 4472 buildInstanceProperties() { | 4540 buildInstanceProperties() { |
| 4473 var o = new api.InstanceProperties(); | 4541 var o = new api.InstanceProperties(); |
| 4474 buildCounterInstanceProperties++; | 4542 buildCounterInstanceProperties++; |
| 4475 if (buildCounterInstanceProperties < 3) { | 4543 if (buildCounterInstanceProperties < 3) { |
| 4476 o.canIpForward = true; | 4544 o.canIpForward = true; |
| 4477 o.description = "foo"; | 4545 o.description = "foo"; |
| 4478 o.disks = buildUnnamed2310(); | 4546 o.disks = buildUnnamed2331(); |
| 4479 o.guestAccelerators = buildUnnamed2311(); | 4547 o.guestAccelerators = buildUnnamed2332(); |
| 4480 o.labels = buildUnnamed2312(); | 4548 o.labels = buildUnnamed2333(); |
| 4481 o.machineType = "foo"; | 4549 o.machineType = "foo"; |
| 4482 o.metadata = buildMetadata(); | 4550 o.metadata = buildMetadata(); |
| 4483 o.networkInterfaces = buildUnnamed2313(); | 4551 o.networkInterfaces = buildUnnamed2334(); |
| 4484 o.scheduling = buildScheduling(); | 4552 o.scheduling = buildScheduling(); |
| 4485 o.serviceAccounts = buildUnnamed2314(); | 4553 o.serviceAccounts = buildUnnamed2335(); |
| 4486 o.tags = buildTags(); | 4554 o.tags = buildTags(); |
| 4487 } | 4555 } |
| 4488 buildCounterInstanceProperties--; | 4556 buildCounterInstanceProperties--; |
| 4489 return o; | 4557 return o; |
| 4490 } | 4558 } |
| 4491 | 4559 |
| 4492 checkInstanceProperties(api.InstanceProperties o) { | 4560 checkInstanceProperties(api.InstanceProperties o) { |
| 4493 buildCounterInstanceProperties++; | 4561 buildCounterInstanceProperties++; |
| 4494 if (buildCounterInstanceProperties < 3) { | 4562 if (buildCounterInstanceProperties < 3) { |
| 4495 unittest.expect(o.canIpForward, unittest.isTrue); | 4563 unittest.expect(o.canIpForward, unittest.isTrue); |
| 4496 unittest.expect(o.description, unittest.equals('foo')); | 4564 unittest.expect(o.description, unittest.equals('foo')); |
| 4497 checkUnnamed2310(o.disks); | 4565 checkUnnamed2331(o.disks); |
| 4498 checkUnnamed2311(o.guestAccelerators); | 4566 checkUnnamed2332(o.guestAccelerators); |
| 4499 checkUnnamed2312(o.labels); | 4567 checkUnnamed2333(o.labels); |
| 4500 unittest.expect(o.machineType, unittest.equals('foo')); | 4568 unittest.expect(o.machineType, unittest.equals('foo')); |
| 4501 checkMetadata(o.metadata); | 4569 checkMetadata(o.metadata); |
| 4502 checkUnnamed2313(o.networkInterfaces); | 4570 checkUnnamed2334(o.networkInterfaces); |
| 4503 checkScheduling(o.scheduling); | 4571 checkScheduling(o.scheduling); |
| 4504 checkUnnamed2314(o.serviceAccounts); | 4572 checkUnnamed2335(o.serviceAccounts); |
| 4505 checkTags(o.tags); | 4573 checkTags(o.tags); |
| 4506 } | 4574 } |
| 4507 buildCounterInstanceProperties--; | 4575 buildCounterInstanceProperties--; |
| 4508 } | 4576 } |
| 4509 | 4577 |
| 4510 core.int buildCounterInstanceReference = 0; | 4578 core.int buildCounterInstanceReference = 0; |
| 4511 buildInstanceReference() { | 4579 buildInstanceReference() { |
| 4512 var o = new api.InstanceReference(); | 4580 var o = new api.InstanceReference(); |
| 4513 buildCounterInstanceReference++; | 4581 buildCounterInstanceReference++; |
| 4514 if (buildCounterInstanceReference < 3) { | 4582 if (buildCounterInstanceReference < 3) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4550 unittest.expect(o.description, unittest.equals('foo')); | 4618 unittest.expect(o.description, unittest.equals('foo')); |
| 4551 unittest.expect(o.id, unittest.equals('foo')); | 4619 unittest.expect(o.id, unittest.equals('foo')); |
| 4552 unittest.expect(o.kind, unittest.equals('foo')); | 4620 unittest.expect(o.kind, unittest.equals('foo')); |
| 4553 unittest.expect(o.name, unittest.equals('foo')); | 4621 unittest.expect(o.name, unittest.equals('foo')); |
| 4554 checkInstanceProperties(o.properties); | 4622 checkInstanceProperties(o.properties); |
| 4555 unittest.expect(o.selfLink, unittest.equals('foo')); | 4623 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4556 } | 4624 } |
| 4557 buildCounterInstanceTemplate--; | 4625 buildCounterInstanceTemplate--; |
| 4558 } | 4626 } |
| 4559 | 4627 |
| 4560 buildUnnamed2315() { | 4628 buildUnnamed2336() { |
| 4561 var o = new core.List<api.InstanceTemplate>(); | 4629 var o = new core.List<api.InstanceTemplate>(); |
| 4562 o.add(buildInstanceTemplate()); | 4630 o.add(buildInstanceTemplate()); |
| 4563 o.add(buildInstanceTemplate()); | 4631 o.add(buildInstanceTemplate()); |
| 4564 return o; | 4632 return o; |
| 4565 } | 4633 } |
| 4566 | 4634 |
| 4567 checkUnnamed2315(core.List<api.InstanceTemplate> o) { | 4635 checkUnnamed2336(core.List<api.InstanceTemplate> o) { |
| 4568 unittest.expect(o, unittest.hasLength(2)); | 4636 unittest.expect(o, unittest.hasLength(2)); |
| 4569 checkInstanceTemplate(o[0]); | 4637 checkInstanceTemplate(o[0]); |
| 4570 checkInstanceTemplate(o[1]); | 4638 checkInstanceTemplate(o[1]); |
| 4571 } | 4639 } |
| 4572 | 4640 |
| 4573 core.int buildCounterInstanceTemplateList = 0; | 4641 core.int buildCounterInstanceTemplateList = 0; |
| 4574 buildInstanceTemplateList() { | 4642 buildInstanceTemplateList() { |
| 4575 var o = new api.InstanceTemplateList(); | 4643 var o = new api.InstanceTemplateList(); |
| 4576 buildCounterInstanceTemplateList++; | 4644 buildCounterInstanceTemplateList++; |
| 4577 if (buildCounterInstanceTemplateList < 3) { | 4645 if (buildCounterInstanceTemplateList < 3) { |
| 4578 o.id = "foo"; | 4646 o.id = "foo"; |
| 4579 o.items = buildUnnamed2315(); | 4647 o.items = buildUnnamed2336(); |
| 4580 o.kind = "foo"; | 4648 o.kind = "foo"; |
| 4581 o.nextPageToken = "foo"; | 4649 o.nextPageToken = "foo"; |
| 4582 o.selfLink = "foo"; | 4650 o.selfLink = "foo"; |
| 4583 } | 4651 } |
| 4584 buildCounterInstanceTemplateList--; | 4652 buildCounterInstanceTemplateList--; |
| 4585 return o; | 4653 return o; |
| 4586 } | 4654 } |
| 4587 | 4655 |
| 4588 checkInstanceTemplateList(api.InstanceTemplateList o) { | 4656 checkInstanceTemplateList(api.InstanceTemplateList o) { |
| 4589 buildCounterInstanceTemplateList++; | 4657 buildCounterInstanceTemplateList++; |
| 4590 if (buildCounterInstanceTemplateList < 3) { | 4658 if (buildCounterInstanceTemplateList < 3) { |
| 4591 unittest.expect(o.id, unittest.equals('foo')); | 4659 unittest.expect(o.id, unittest.equals('foo')); |
| 4592 checkUnnamed2315(o.items); | 4660 checkUnnamed2336(o.items); |
| 4593 unittest.expect(o.kind, unittest.equals('foo')); | 4661 unittest.expect(o.kind, unittest.equals('foo')); |
| 4594 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4662 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4595 unittest.expect(o.selfLink, unittest.equals('foo')); | 4663 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4596 } | 4664 } |
| 4597 buildCounterInstanceTemplateList--; | 4665 buildCounterInstanceTemplateList--; |
| 4598 } | 4666 } |
| 4599 | 4667 |
| 4600 buildUnnamed2316() { | 4668 buildUnnamed2337() { |
| 4601 var o = new core.List<api.NamedPort>(); | 4669 var o = new core.List<api.NamedPort>(); |
| 4602 o.add(buildNamedPort()); | 4670 o.add(buildNamedPort()); |
| 4603 o.add(buildNamedPort()); | 4671 o.add(buildNamedPort()); |
| 4604 return o; | 4672 return o; |
| 4605 } | 4673 } |
| 4606 | 4674 |
| 4607 checkUnnamed2316(core.List<api.NamedPort> o) { | 4675 checkUnnamed2337(core.List<api.NamedPort> o) { |
| 4608 unittest.expect(o, unittest.hasLength(2)); | 4676 unittest.expect(o, unittest.hasLength(2)); |
| 4609 checkNamedPort(o[0]); | 4677 checkNamedPort(o[0]); |
| 4610 checkNamedPort(o[1]); | 4678 checkNamedPort(o[1]); |
| 4611 } | 4679 } |
| 4612 | 4680 |
| 4613 core.int buildCounterInstanceWithNamedPorts = 0; | 4681 core.int buildCounterInstanceWithNamedPorts = 0; |
| 4614 buildInstanceWithNamedPorts() { | 4682 buildInstanceWithNamedPorts() { |
| 4615 var o = new api.InstanceWithNamedPorts(); | 4683 var o = new api.InstanceWithNamedPorts(); |
| 4616 buildCounterInstanceWithNamedPorts++; | 4684 buildCounterInstanceWithNamedPorts++; |
| 4617 if (buildCounterInstanceWithNamedPorts < 3) { | 4685 if (buildCounterInstanceWithNamedPorts < 3) { |
| 4618 o.instance = "foo"; | 4686 o.instance = "foo"; |
| 4619 o.namedPorts = buildUnnamed2316(); | 4687 o.namedPorts = buildUnnamed2337(); |
| 4620 o.status = "foo"; | 4688 o.status = "foo"; |
| 4621 } | 4689 } |
| 4622 buildCounterInstanceWithNamedPorts--; | 4690 buildCounterInstanceWithNamedPorts--; |
| 4623 return o; | 4691 return o; |
| 4624 } | 4692 } |
| 4625 | 4693 |
| 4626 checkInstanceWithNamedPorts(api.InstanceWithNamedPorts o) { | 4694 checkInstanceWithNamedPorts(api.InstanceWithNamedPorts o) { |
| 4627 buildCounterInstanceWithNamedPorts++; | 4695 buildCounterInstanceWithNamedPorts++; |
| 4628 if (buildCounterInstanceWithNamedPorts < 3) { | 4696 if (buildCounterInstanceWithNamedPorts < 3) { |
| 4629 unittest.expect(o.instance, unittest.equals('foo')); | 4697 unittest.expect(o.instance, unittest.equals('foo')); |
| 4630 checkUnnamed2316(o.namedPorts); | 4698 checkUnnamed2337(o.namedPorts); |
| 4631 unittest.expect(o.status, unittest.equals('foo')); | 4699 unittest.expect(o.status, unittest.equals('foo')); |
| 4632 } | 4700 } |
| 4633 buildCounterInstanceWithNamedPorts--; | 4701 buildCounterInstanceWithNamedPorts--; |
| 4634 } | 4702 } |
| 4635 | 4703 |
| 4636 buildUnnamed2317() { | 4704 buildUnnamed2338() { |
| 4637 var o = new core.List<api.Instance>(); | 4705 var o = new core.List<api.Instance>(); |
| 4638 o.add(buildInstance()); | 4706 o.add(buildInstance()); |
| 4639 o.add(buildInstance()); | 4707 o.add(buildInstance()); |
| 4640 return o; | 4708 return o; |
| 4641 } | 4709 } |
| 4642 | 4710 |
| 4643 checkUnnamed2317(core.List<api.Instance> o) { | 4711 checkUnnamed2338(core.List<api.Instance> o) { |
| 4644 unittest.expect(o, unittest.hasLength(2)); | 4712 unittest.expect(o, unittest.hasLength(2)); |
| 4645 checkInstance(o[0]); | 4713 checkInstance(o[0]); |
| 4646 checkInstance(o[1]); | 4714 checkInstance(o[1]); |
| 4647 } | 4715 } |
| 4648 | 4716 |
| 4649 core.int buildCounterInstancesScopedListWarningData = 0; | 4717 core.int buildCounterInstancesScopedListWarningData = 0; |
| 4650 buildInstancesScopedListWarningData() { | 4718 buildInstancesScopedListWarningData() { |
| 4651 var o = new api.InstancesScopedListWarningData(); | 4719 var o = new api.InstancesScopedListWarningData(); |
| 4652 buildCounterInstancesScopedListWarningData++; | 4720 buildCounterInstancesScopedListWarningData++; |
| 4653 if (buildCounterInstancesScopedListWarningData < 3) { | 4721 if (buildCounterInstancesScopedListWarningData < 3) { |
| 4654 o.key = "foo"; | 4722 o.key = "foo"; |
| 4655 o.value = "foo"; | 4723 o.value = "foo"; |
| 4656 } | 4724 } |
| 4657 buildCounterInstancesScopedListWarningData--; | 4725 buildCounterInstancesScopedListWarningData--; |
| 4658 return o; | 4726 return o; |
| 4659 } | 4727 } |
| 4660 | 4728 |
| 4661 checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { | 4729 checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { |
| 4662 buildCounterInstancesScopedListWarningData++; | 4730 buildCounterInstancesScopedListWarningData++; |
| 4663 if (buildCounterInstancesScopedListWarningData < 3) { | 4731 if (buildCounterInstancesScopedListWarningData < 3) { |
| 4664 unittest.expect(o.key, unittest.equals('foo')); | 4732 unittest.expect(o.key, unittest.equals('foo')); |
| 4665 unittest.expect(o.value, unittest.equals('foo')); | 4733 unittest.expect(o.value, unittest.equals('foo')); |
| 4666 } | 4734 } |
| 4667 buildCounterInstancesScopedListWarningData--; | 4735 buildCounterInstancesScopedListWarningData--; |
| 4668 } | 4736 } |
| 4669 | 4737 |
| 4670 buildUnnamed2318() { | 4738 buildUnnamed2339() { |
| 4671 var o = new core.List<api.InstancesScopedListWarningData>(); | 4739 var o = new core.List<api.InstancesScopedListWarningData>(); |
| 4672 o.add(buildInstancesScopedListWarningData()); | 4740 o.add(buildInstancesScopedListWarningData()); |
| 4673 o.add(buildInstancesScopedListWarningData()); | 4741 o.add(buildInstancesScopedListWarningData()); |
| 4674 return o; | 4742 return o; |
| 4675 } | 4743 } |
| 4676 | 4744 |
| 4677 checkUnnamed2318(core.List<api.InstancesScopedListWarningData> o) { | 4745 checkUnnamed2339(core.List<api.InstancesScopedListWarningData> o) { |
| 4678 unittest.expect(o, unittest.hasLength(2)); | 4746 unittest.expect(o, unittest.hasLength(2)); |
| 4679 checkInstancesScopedListWarningData(o[0]); | 4747 checkInstancesScopedListWarningData(o[0]); |
| 4680 checkInstancesScopedListWarningData(o[1]); | 4748 checkInstancesScopedListWarningData(o[1]); |
| 4681 } | 4749 } |
| 4682 | 4750 |
| 4683 core.int buildCounterInstancesScopedListWarning = 0; | 4751 core.int buildCounterInstancesScopedListWarning = 0; |
| 4684 buildInstancesScopedListWarning() { | 4752 buildInstancesScopedListWarning() { |
| 4685 var o = new api.InstancesScopedListWarning(); | 4753 var o = new api.InstancesScopedListWarning(); |
| 4686 buildCounterInstancesScopedListWarning++; | 4754 buildCounterInstancesScopedListWarning++; |
| 4687 if (buildCounterInstancesScopedListWarning < 3) { | 4755 if (buildCounterInstancesScopedListWarning < 3) { |
| 4688 o.code = "foo"; | 4756 o.code = "foo"; |
| 4689 o.data = buildUnnamed2318(); | 4757 o.data = buildUnnamed2339(); |
| 4690 o.message = "foo"; | 4758 o.message = "foo"; |
| 4691 } | 4759 } |
| 4692 buildCounterInstancesScopedListWarning--; | 4760 buildCounterInstancesScopedListWarning--; |
| 4693 return o; | 4761 return o; |
| 4694 } | 4762 } |
| 4695 | 4763 |
| 4696 checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { | 4764 checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { |
| 4697 buildCounterInstancesScopedListWarning++; | 4765 buildCounterInstancesScopedListWarning++; |
| 4698 if (buildCounterInstancesScopedListWarning < 3) { | 4766 if (buildCounterInstancesScopedListWarning < 3) { |
| 4699 unittest.expect(o.code, unittest.equals('foo')); | 4767 unittest.expect(o.code, unittest.equals('foo')); |
| 4700 checkUnnamed2318(o.data); | 4768 checkUnnamed2339(o.data); |
| 4701 unittest.expect(o.message, unittest.equals('foo')); | 4769 unittest.expect(o.message, unittest.equals('foo')); |
| 4702 } | 4770 } |
| 4703 buildCounterInstancesScopedListWarning--; | 4771 buildCounterInstancesScopedListWarning--; |
| 4704 } | 4772 } |
| 4705 | 4773 |
| 4706 core.int buildCounterInstancesScopedList = 0; | 4774 core.int buildCounterInstancesScopedList = 0; |
| 4707 buildInstancesScopedList() { | 4775 buildInstancesScopedList() { |
| 4708 var o = new api.InstancesScopedList(); | 4776 var o = new api.InstancesScopedList(); |
| 4709 buildCounterInstancesScopedList++; | 4777 buildCounterInstancesScopedList++; |
| 4710 if (buildCounterInstancesScopedList < 3) { | 4778 if (buildCounterInstancesScopedList < 3) { |
| 4711 o.instances = buildUnnamed2317(); | 4779 o.instances = buildUnnamed2338(); |
| 4712 o.warning = buildInstancesScopedListWarning(); | 4780 o.warning = buildInstancesScopedListWarning(); |
| 4713 } | 4781 } |
| 4714 buildCounterInstancesScopedList--; | 4782 buildCounterInstancesScopedList--; |
| 4715 return o; | 4783 return o; |
| 4716 } | 4784 } |
| 4717 | 4785 |
| 4718 checkInstancesScopedList(api.InstancesScopedList o) { | 4786 checkInstancesScopedList(api.InstancesScopedList o) { |
| 4719 buildCounterInstancesScopedList++; | 4787 buildCounterInstancesScopedList++; |
| 4720 if (buildCounterInstancesScopedList < 3) { | 4788 if (buildCounterInstancesScopedList < 3) { |
| 4721 checkUnnamed2317(o.instances); | 4789 checkUnnamed2338(o.instances); |
| 4722 checkInstancesScopedListWarning(o.warning); | 4790 checkInstancesScopedListWarning(o.warning); |
| 4723 } | 4791 } |
| 4724 buildCounterInstancesScopedList--; | 4792 buildCounterInstancesScopedList--; |
| 4725 } | 4793 } |
| 4726 | 4794 |
| 4727 buildUnnamed2319() { | 4795 buildUnnamed2340() { |
| 4728 var o = new core.Map<core.String, core.String>(); | 4796 var o = new core.Map<core.String, core.String>(); |
| 4729 o["x"] = "foo"; | 4797 o["x"] = "foo"; |
| 4730 o["y"] = "foo"; | 4798 o["y"] = "foo"; |
| 4731 return o; | 4799 return o; |
| 4732 } | 4800 } |
| 4733 | 4801 |
| 4734 checkUnnamed2319(core.Map<core.String, core.String> o) { | 4802 checkUnnamed2340(core.Map<core.String, core.String> o) { |
| 4735 unittest.expect(o, unittest.hasLength(2)); | 4803 unittest.expect(o, unittest.hasLength(2)); |
| 4736 unittest.expect(o["x"], unittest.equals('foo')); | 4804 unittest.expect(o["x"], unittest.equals('foo')); |
| 4737 unittest.expect(o["y"], unittest.equals('foo')); | 4805 unittest.expect(o["y"], unittest.equals('foo')); |
| 4738 } | 4806 } |
| 4739 | 4807 |
| 4740 core.int buildCounterInstancesSetLabelsRequest = 0; | 4808 core.int buildCounterInstancesSetLabelsRequest = 0; |
| 4741 buildInstancesSetLabelsRequest() { | 4809 buildInstancesSetLabelsRequest() { |
| 4742 var o = new api.InstancesSetLabelsRequest(); | 4810 var o = new api.InstancesSetLabelsRequest(); |
| 4743 buildCounterInstancesSetLabelsRequest++; | 4811 buildCounterInstancesSetLabelsRequest++; |
| 4744 if (buildCounterInstancesSetLabelsRequest < 3) { | 4812 if (buildCounterInstancesSetLabelsRequest < 3) { |
| 4745 o.labelFingerprint = "foo"; | 4813 o.labelFingerprint = "foo"; |
| 4746 o.labels = buildUnnamed2319(); | 4814 o.labels = buildUnnamed2340(); |
| 4747 } | 4815 } |
| 4748 buildCounterInstancesSetLabelsRequest--; | 4816 buildCounterInstancesSetLabelsRequest--; |
| 4749 return o; | 4817 return o; |
| 4750 } | 4818 } |
| 4751 | 4819 |
| 4752 checkInstancesSetLabelsRequest(api.InstancesSetLabelsRequest o) { | 4820 checkInstancesSetLabelsRequest(api.InstancesSetLabelsRequest o) { |
| 4753 buildCounterInstancesSetLabelsRequest++; | 4821 buildCounterInstancesSetLabelsRequest++; |
| 4754 if (buildCounterInstancesSetLabelsRequest < 3) { | 4822 if (buildCounterInstancesSetLabelsRequest < 3) { |
| 4755 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 4823 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 4756 checkUnnamed2319(o.labels); | 4824 checkUnnamed2340(o.labels); |
| 4757 } | 4825 } |
| 4758 buildCounterInstancesSetLabelsRequest--; | 4826 buildCounterInstancesSetLabelsRequest--; |
| 4759 } | 4827 } |
| 4760 | 4828 |
| 4761 buildUnnamed2320() { | 4829 buildUnnamed2341() { |
| 4762 var o = new core.List<api.AcceleratorConfig>(); | 4830 var o = new core.List<api.AcceleratorConfig>(); |
| 4763 o.add(buildAcceleratorConfig()); | 4831 o.add(buildAcceleratorConfig()); |
| 4764 o.add(buildAcceleratorConfig()); | 4832 o.add(buildAcceleratorConfig()); |
| 4765 return o; | 4833 return o; |
| 4766 } | 4834 } |
| 4767 | 4835 |
| 4768 checkUnnamed2320(core.List<api.AcceleratorConfig> o) { | 4836 checkUnnamed2341(core.List<api.AcceleratorConfig> o) { |
| 4769 unittest.expect(o, unittest.hasLength(2)); | 4837 unittest.expect(o, unittest.hasLength(2)); |
| 4770 checkAcceleratorConfig(o[0]); | 4838 checkAcceleratorConfig(o[0]); |
| 4771 checkAcceleratorConfig(o[1]); | 4839 checkAcceleratorConfig(o[1]); |
| 4772 } | 4840 } |
| 4773 | 4841 |
| 4774 core.int buildCounterInstancesSetMachineResourcesRequest = 0; | 4842 core.int buildCounterInstancesSetMachineResourcesRequest = 0; |
| 4775 buildInstancesSetMachineResourcesRequest() { | 4843 buildInstancesSetMachineResourcesRequest() { |
| 4776 var o = new api.InstancesSetMachineResourcesRequest(); | 4844 var o = new api.InstancesSetMachineResourcesRequest(); |
| 4777 buildCounterInstancesSetMachineResourcesRequest++; | 4845 buildCounterInstancesSetMachineResourcesRequest++; |
| 4778 if (buildCounterInstancesSetMachineResourcesRequest < 3) { | 4846 if (buildCounterInstancesSetMachineResourcesRequest < 3) { |
| 4779 o.guestAccelerators = buildUnnamed2320(); | 4847 o.guestAccelerators = buildUnnamed2341(); |
| 4780 } | 4848 } |
| 4781 buildCounterInstancesSetMachineResourcesRequest--; | 4849 buildCounterInstancesSetMachineResourcesRequest--; |
| 4782 return o; | 4850 return o; |
| 4783 } | 4851 } |
| 4784 | 4852 |
| 4785 checkInstancesSetMachineResourcesRequest(api.InstancesSetMachineResourcesRequest
o) { | 4853 checkInstancesSetMachineResourcesRequest(api.InstancesSetMachineResourcesRequest
o) { |
| 4786 buildCounterInstancesSetMachineResourcesRequest++; | 4854 buildCounterInstancesSetMachineResourcesRequest++; |
| 4787 if (buildCounterInstancesSetMachineResourcesRequest < 3) { | 4855 if (buildCounterInstancesSetMachineResourcesRequest < 3) { |
| 4788 checkUnnamed2320(o.guestAccelerators); | 4856 checkUnnamed2341(o.guestAccelerators); |
| 4789 } | 4857 } |
| 4790 buildCounterInstancesSetMachineResourcesRequest--; | 4858 buildCounterInstancesSetMachineResourcesRequest--; |
| 4791 } | 4859 } |
| 4792 | 4860 |
| 4793 core.int buildCounterInstancesSetMachineTypeRequest = 0; | 4861 core.int buildCounterInstancesSetMachineTypeRequest = 0; |
| 4794 buildInstancesSetMachineTypeRequest() { | 4862 buildInstancesSetMachineTypeRequest() { |
| 4795 var o = new api.InstancesSetMachineTypeRequest(); | 4863 var o = new api.InstancesSetMachineTypeRequest(); |
| 4796 buildCounterInstancesSetMachineTypeRequest++; | 4864 buildCounterInstancesSetMachineTypeRequest++; |
| 4797 if (buildCounterInstancesSetMachineTypeRequest < 3) { | 4865 if (buildCounterInstancesSetMachineTypeRequest < 3) { |
| 4798 o.machineType = "foo"; | 4866 o.machineType = "foo"; |
| 4799 } | 4867 } |
| 4800 buildCounterInstancesSetMachineTypeRequest--; | 4868 buildCounterInstancesSetMachineTypeRequest--; |
| 4801 return o; | 4869 return o; |
| 4802 } | 4870 } |
| 4803 | 4871 |
| 4804 checkInstancesSetMachineTypeRequest(api.InstancesSetMachineTypeRequest o) { | 4872 checkInstancesSetMachineTypeRequest(api.InstancesSetMachineTypeRequest o) { |
| 4805 buildCounterInstancesSetMachineTypeRequest++; | 4873 buildCounterInstancesSetMachineTypeRequest++; |
| 4806 if (buildCounterInstancesSetMachineTypeRequest < 3) { | 4874 if (buildCounterInstancesSetMachineTypeRequest < 3) { |
| 4807 unittest.expect(o.machineType, unittest.equals('foo')); | 4875 unittest.expect(o.machineType, unittest.equals('foo')); |
| 4808 } | 4876 } |
| 4809 buildCounterInstancesSetMachineTypeRequest--; | 4877 buildCounterInstancesSetMachineTypeRequest--; |
| 4810 } | 4878 } |
| 4811 | 4879 |
| 4812 buildUnnamed2321() { | 4880 buildUnnamed2342() { |
| 4813 var o = new core.List<core.String>(); | 4881 var o = new core.List<core.String>(); |
| 4814 o.add("foo"); | 4882 o.add("foo"); |
| 4815 o.add("foo"); | 4883 o.add("foo"); |
| 4816 return o; | 4884 return o; |
| 4817 } | 4885 } |
| 4818 | 4886 |
| 4819 checkUnnamed2321(core.List<core.String> o) { | 4887 checkUnnamed2342(core.List<core.String> o) { |
| 4820 unittest.expect(o, unittest.hasLength(2)); | 4888 unittest.expect(o, unittest.hasLength(2)); |
| 4821 unittest.expect(o[0], unittest.equals('foo')); | 4889 unittest.expect(o[0], unittest.equals('foo')); |
| 4822 unittest.expect(o[1], unittest.equals('foo')); | 4890 unittest.expect(o[1], unittest.equals('foo')); |
| 4823 } | 4891 } |
| 4824 | 4892 |
| 4825 core.int buildCounterInstancesSetServiceAccountRequest = 0; | 4893 core.int buildCounterInstancesSetServiceAccountRequest = 0; |
| 4826 buildInstancesSetServiceAccountRequest() { | 4894 buildInstancesSetServiceAccountRequest() { |
| 4827 var o = new api.InstancesSetServiceAccountRequest(); | 4895 var o = new api.InstancesSetServiceAccountRequest(); |
| 4828 buildCounterInstancesSetServiceAccountRequest++; | 4896 buildCounterInstancesSetServiceAccountRequest++; |
| 4829 if (buildCounterInstancesSetServiceAccountRequest < 3) { | 4897 if (buildCounterInstancesSetServiceAccountRequest < 3) { |
| 4830 o.email = "foo"; | 4898 o.email = "foo"; |
| 4831 o.scopes = buildUnnamed2321(); | 4899 o.scopes = buildUnnamed2342(); |
| 4832 } | 4900 } |
| 4833 buildCounterInstancesSetServiceAccountRequest--; | 4901 buildCounterInstancesSetServiceAccountRequest--; |
| 4834 return o; | 4902 return o; |
| 4835 } | 4903 } |
| 4836 | 4904 |
| 4837 checkInstancesSetServiceAccountRequest(api.InstancesSetServiceAccountRequest o)
{ | 4905 checkInstancesSetServiceAccountRequest(api.InstancesSetServiceAccountRequest o)
{ |
| 4838 buildCounterInstancesSetServiceAccountRequest++; | 4906 buildCounterInstancesSetServiceAccountRequest++; |
| 4839 if (buildCounterInstancesSetServiceAccountRequest < 3) { | 4907 if (buildCounterInstancesSetServiceAccountRequest < 3) { |
| 4840 unittest.expect(o.email, unittest.equals('foo')); | 4908 unittest.expect(o.email, unittest.equals('foo')); |
| 4841 checkUnnamed2321(o.scopes); | 4909 checkUnnamed2342(o.scopes); |
| 4842 } | 4910 } |
| 4843 buildCounterInstancesSetServiceAccountRequest--; | 4911 buildCounterInstancesSetServiceAccountRequest--; |
| 4844 } | 4912 } |
| 4845 | 4913 |
| 4846 buildUnnamed2322() { | 4914 buildUnnamed2343() { |
| 4847 var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); | 4915 var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); |
| 4848 o.add(buildCustomerEncryptionKeyProtectedDisk()); | 4916 o.add(buildCustomerEncryptionKeyProtectedDisk()); |
| 4849 o.add(buildCustomerEncryptionKeyProtectedDisk()); | 4917 o.add(buildCustomerEncryptionKeyProtectedDisk()); |
| 4850 return o; | 4918 return o; |
| 4851 } | 4919 } |
| 4852 | 4920 |
| 4853 checkUnnamed2322(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { | 4921 checkUnnamed2343(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { |
| 4854 unittest.expect(o, unittest.hasLength(2)); | 4922 unittest.expect(o, unittest.hasLength(2)); |
| 4855 checkCustomerEncryptionKeyProtectedDisk(o[0]); | 4923 checkCustomerEncryptionKeyProtectedDisk(o[0]); |
| 4856 checkCustomerEncryptionKeyProtectedDisk(o[1]); | 4924 checkCustomerEncryptionKeyProtectedDisk(o[1]); |
| 4857 } | 4925 } |
| 4858 | 4926 |
| 4859 core.int buildCounterInstancesStartWithEncryptionKeyRequest = 0; | 4927 core.int buildCounterInstancesStartWithEncryptionKeyRequest = 0; |
| 4860 buildInstancesStartWithEncryptionKeyRequest() { | 4928 buildInstancesStartWithEncryptionKeyRequest() { |
| 4861 var o = new api.InstancesStartWithEncryptionKeyRequest(); | 4929 var o = new api.InstancesStartWithEncryptionKeyRequest(); |
| 4862 buildCounterInstancesStartWithEncryptionKeyRequest++; | 4930 buildCounterInstancesStartWithEncryptionKeyRequest++; |
| 4863 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { | 4931 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { |
| 4864 o.disks = buildUnnamed2322(); | 4932 o.disks = buildUnnamed2343(); |
| 4865 } | 4933 } |
| 4866 buildCounterInstancesStartWithEncryptionKeyRequest--; | 4934 buildCounterInstancesStartWithEncryptionKeyRequest--; |
| 4867 return o; | 4935 return o; |
| 4868 } | 4936 } |
| 4869 | 4937 |
| 4870 checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyR
equest o) { | 4938 checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyR
equest o) { |
| 4871 buildCounterInstancesStartWithEncryptionKeyRequest++; | 4939 buildCounterInstancesStartWithEncryptionKeyRequest++; |
| 4872 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { | 4940 if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { |
| 4873 checkUnnamed2322(o.disks); | 4941 checkUnnamed2343(o.disks); |
| 4874 } | 4942 } |
| 4875 buildCounterInstancesStartWithEncryptionKeyRequest--; | 4943 buildCounterInstancesStartWithEncryptionKeyRequest--; |
| 4876 } | 4944 } |
| 4877 | 4945 |
| 4878 core.int buildCounterLicense = 0; | 4946 core.int buildCounterLicense = 0; |
| 4879 buildLicense() { | 4947 buildLicense() { |
| 4880 var o = new api.License(); | 4948 var o = new api.License(); |
| 4881 buildCounterLicense++; | 4949 buildCounterLicense++; |
| 4882 if (buildCounterLicense < 3) { | 4950 if (buildCounterLicense < 3) { |
| 4883 o.chargesUseFee = true; | 4951 o.chargesUseFee = true; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 4912 } | 4980 } |
| 4913 | 4981 |
| 4914 checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) { | 4982 checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) { |
| 4915 buildCounterMachineTypeScratchDisks++; | 4983 buildCounterMachineTypeScratchDisks++; |
| 4916 if (buildCounterMachineTypeScratchDisks < 3) { | 4984 if (buildCounterMachineTypeScratchDisks < 3) { |
| 4917 unittest.expect(o.diskGb, unittest.equals(42)); | 4985 unittest.expect(o.diskGb, unittest.equals(42)); |
| 4918 } | 4986 } |
| 4919 buildCounterMachineTypeScratchDisks--; | 4987 buildCounterMachineTypeScratchDisks--; |
| 4920 } | 4988 } |
| 4921 | 4989 |
| 4922 buildUnnamed2323() { | 4990 buildUnnamed2344() { |
| 4923 var o = new core.List<api.MachineTypeScratchDisks>(); | 4991 var o = new core.List<api.MachineTypeScratchDisks>(); |
| 4924 o.add(buildMachineTypeScratchDisks()); | 4992 o.add(buildMachineTypeScratchDisks()); |
| 4925 o.add(buildMachineTypeScratchDisks()); | 4993 o.add(buildMachineTypeScratchDisks()); |
| 4926 return o; | 4994 return o; |
| 4927 } | 4995 } |
| 4928 | 4996 |
| 4929 checkUnnamed2323(core.List<api.MachineTypeScratchDisks> o) { | 4997 checkUnnamed2344(core.List<api.MachineTypeScratchDisks> o) { |
| 4930 unittest.expect(o, unittest.hasLength(2)); | 4998 unittest.expect(o, unittest.hasLength(2)); |
| 4931 checkMachineTypeScratchDisks(o[0]); | 4999 checkMachineTypeScratchDisks(o[0]); |
| 4932 checkMachineTypeScratchDisks(o[1]); | 5000 checkMachineTypeScratchDisks(o[1]); |
| 4933 } | 5001 } |
| 4934 | 5002 |
| 4935 core.int buildCounterMachineType = 0; | 5003 core.int buildCounterMachineType = 0; |
| 4936 buildMachineType() { | 5004 buildMachineType() { |
| 4937 var o = new api.MachineType(); | 5005 var o = new api.MachineType(); |
| 4938 buildCounterMachineType++; | 5006 buildCounterMachineType++; |
| 4939 if (buildCounterMachineType < 3) { | 5007 if (buildCounterMachineType < 3) { |
| 4940 o.creationTimestamp = "foo"; | 5008 o.creationTimestamp = "foo"; |
| 4941 o.deprecated = buildDeprecationStatus(); | 5009 o.deprecated = buildDeprecationStatus(); |
| 4942 o.description = "foo"; | 5010 o.description = "foo"; |
| 4943 o.guestCpus = 42; | 5011 o.guestCpus = 42; |
| 4944 o.id = "foo"; | 5012 o.id = "foo"; |
| 4945 o.imageSpaceGb = 42; | 5013 o.imageSpaceGb = 42; |
| 4946 o.isSharedCpu = true; | 5014 o.isSharedCpu = true; |
| 4947 o.kind = "foo"; | 5015 o.kind = "foo"; |
| 4948 o.maximumPersistentDisks = 42; | 5016 o.maximumPersistentDisks = 42; |
| 4949 o.maximumPersistentDisksSizeGb = "foo"; | 5017 o.maximumPersistentDisksSizeGb = "foo"; |
| 4950 o.memoryMb = 42; | 5018 o.memoryMb = 42; |
| 4951 o.name = "foo"; | 5019 o.name = "foo"; |
| 4952 o.scratchDisks = buildUnnamed2323(); | 5020 o.scratchDisks = buildUnnamed2344(); |
| 4953 o.selfLink = "foo"; | 5021 o.selfLink = "foo"; |
| 4954 o.zone = "foo"; | 5022 o.zone = "foo"; |
| 4955 } | 5023 } |
| 4956 buildCounterMachineType--; | 5024 buildCounterMachineType--; |
| 4957 return o; | 5025 return o; |
| 4958 } | 5026 } |
| 4959 | 5027 |
| 4960 checkMachineType(api.MachineType o) { | 5028 checkMachineType(api.MachineType o) { |
| 4961 buildCounterMachineType++; | 5029 buildCounterMachineType++; |
| 4962 if (buildCounterMachineType < 3) { | 5030 if (buildCounterMachineType < 3) { |
| 4963 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5031 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 4964 checkDeprecationStatus(o.deprecated); | 5032 checkDeprecationStatus(o.deprecated); |
| 4965 unittest.expect(o.description, unittest.equals('foo')); | 5033 unittest.expect(o.description, unittest.equals('foo')); |
| 4966 unittest.expect(o.guestCpus, unittest.equals(42)); | 5034 unittest.expect(o.guestCpus, unittest.equals(42)); |
| 4967 unittest.expect(o.id, unittest.equals('foo')); | 5035 unittest.expect(o.id, unittest.equals('foo')); |
| 4968 unittest.expect(o.imageSpaceGb, unittest.equals(42)); | 5036 unittest.expect(o.imageSpaceGb, unittest.equals(42)); |
| 4969 unittest.expect(o.isSharedCpu, unittest.isTrue); | 5037 unittest.expect(o.isSharedCpu, unittest.isTrue); |
| 4970 unittest.expect(o.kind, unittest.equals('foo')); | 5038 unittest.expect(o.kind, unittest.equals('foo')); |
| 4971 unittest.expect(o.maximumPersistentDisks, unittest.equals(42)); | 5039 unittest.expect(o.maximumPersistentDisks, unittest.equals(42)); |
| 4972 unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); | 5040 unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); |
| 4973 unittest.expect(o.memoryMb, unittest.equals(42)); | 5041 unittest.expect(o.memoryMb, unittest.equals(42)); |
| 4974 unittest.expect(o.name, unittest.equals('foo')); | 5042 unittest.expect(o.name, unittest.equals('foo')); |
| 4975 checkUnnamed2323(o.scratchDisks); | 5043 checkUnnamed2344(o.scratchDisks); |
| 4976 unittest.expect(o.selfLink, unittest.equals('foo')); | 5044 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4977 unittest.expect(o.zone, unittest.equals('foo')); | 5045 unittest.expect(o.zone, unittest.equals('foo')); |
| 4978 } | 5046 } |
| 4979 buildCounterMachineType--; | 5047 buildCounterMachineType--; |
| 4980 } | 5048 } |
| 4981 | 5049 |
| 4982 buildUnnamed2324() { | 5050 buildUnnamed2345() { |
| 4983 var o = new core.Map<core.String, api.MachineTypesScopedList>(); | 5051 var o = new core.Map<core.String, api.MachineTypesScopedList>(); |
| 4984 o["x"] = buildMachineTypesScopedList(); | 5052 o["x"] = buildMachineTypesScopedList(); |
| 4985 o["y"] = buildMachineTypesScopedList(); | 5053 o["y"] = buildMachineTypesScopedList(); |
| 4986 return o; | 5054 return o; |
| 4987 } | 5055 } |
| 4988 | 5056 |
| 4989 checkUnnamed2324(core.Map<core.String, api.MachineTypesScopedList> o) { | 5057 checkUnnamed2345(core.Map<core.String, api.MachineTypesScopedList> o) { |
| 4990 unittest.expect(o, unittest.hasLength(2)); | 5058 unittest.expect(o, unittest.hasLength(2)); |
| 4991 checkMachineTypesScopedList(o["x"]); | 5059 checkMachineTypesScopedList(o["x"]); |
| 4992 checkMachineTypesScopedList(o["y"]); | 5060 checkMachineTypesScopedList(o["y"]); |
| 4993 } | 5061 } |
| 4994 | 5062 |
| 4995 core.int buildCounterMachineTypeAggregatedList = 0; | 5063 core.int buildCounterMachineTypeAggregatedList = 0; |
| 4996 buildMachineTypeAggregatedList() { | 5064 buildMachineTypeAggregatedList() { |
| 4997 var o = new api.MachineTypeAggregatedList(); | 5065 var o = new api.MachineTypeAggregatedList(); |
| 4998 buildCounterMachineTypeAggregatedList++; | 5066 buildCounterMachineTypeAggregatedList++; |
| 4999 if (buildCounterMachineTypeAggregatedList < 3) { | 5067 if (buildCounterMachineTypeAggregatedList < 3) { |
| 5000 o.id = "foo"; | 5068 o.id = "foo"; |
| 5001 o.items = buildUnnamed2324(); | 5069 o.items = buildUnnamed2345(); |
| 5002 o.kind = "foo"; | 5070 o.kind = "foo"; |
| 5003 o.nextPageToken = "foo"; | 5071 o.nextPageToken = "foo"; |
| 5004 o.selfLink = "foo"; | 5072 o.selfLink = "foo"; |
| 5005 } | 5073 } |
| 5006 buildCounterMachineTypeAggregatedList--; | 5074 buildCounterMachineTypeAggregatedList--; |
| 5007 return o; | 5075 return o; |
| 5008 } | 5076 } |
| 5009 | 5077 |
| 5010 checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { | 5078 checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { |
| 5011 buildCounterMachineTypeAggregatedList++; | 5079 buildCounterMachineTypeAggregatedList++; |
| 5012 if (buildCounterMachineTypeAggregatedList < 3) { | 5080 if (buildCounterMachineTypeAggregatedList < 3) { |
| 5013 unittest.expect(o.id, unittest.equals('foo')); | 5081 unittest.expect(o.id, unittest.equals('foo')); |
| 5014 checkUnnamed2324(o.items); | 5082 checkUnnamed2345(o.items); |
| 5015 unittest.expect(o.kind, unittest.equals('foo')); | 5083 unittest.expect(o.kind, unittest.equals('foo')); |
| 5016 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5084 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5017 unittest.expect(o.selfLink, unittest.equals('foo')); | 5085 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5018 } | 5086 } |
| 5019 buildCounterMachineTypeAggregatedList--; | 5087 buildCounterMachineTypeAggregatedList--; |
| 5020 } | 5088 } |
| 5021 | 5089 |
| 5022 buildUnnamed2325() { | 5090 buildUnnamed2346() { |
| 5023 var o = new core.List<api.MachineType>(); | 5091 var o = new core.List<api.MachineType>(); |
| 5024 o.add(buildMachineType()); | 5092 o.add(buildMachineType()); |
| 5025 o.add(buildMachineType()); | 5093 o.add(buildMachineType()); |
| 5026 return o; | 5094 return o; |
| 5027 } | 5095 } |
| 5028 | 5096 |
| 5029 checkUnnamed2325(core.List<api.MachineType> o) { | 5097 checkUnnamed2346(core.List<api.MachineType> o) { |
| 5030 unittest.expect(o, unittest.hasLength(2)); | 5098 unittest.expect(o, unittest.hasLength(2)); |
| 5031 checkMachineType(o[0]); | 5099 checkMachineType(o[0]); |
| 5032 checkMachineType(o[1]); | 5100 checkMachineType(o[1]); |
| 5033 } | 5101 } |
| 5034 | 5102 |
| 5035 core.int buildCounterMachineTypeList = 0; | 5103 core.int buildCounterMachineTypeList = 0; |
| 5036 buildMachineTypeList() { | 5104 buildMachineTypeList() { |
| 5037 var o = new api.MachineTypeList(); | 5105 var o = new api.MachineTypeList(); |
| 5038 buildCounterMachineTypeList++; | 5106 buildCounterMachineTypeList++; |
| 5039 if (buildCounterMachineTypeList < 3) { | 5107 if (buildCounterMachineTypeList < 3) { |
| 5040 o.id = "foo"; | 5108 o.id = "foo"; |
| 5041 o.items = buildUnnamed2325(); | 5109 o.items = buildUnnamed2346(); |
| 5042 o.kind = "foo"; | 5110 o.kind = "foo"; |
| 5043 o.nextPageToken = "foo"; | 5111 o.nextPageToken = "foo"; |
| 5044 o.selfLink = "foo"; | 5112 o.selfLink = "foo"; |
| 5045 } | 5113 } |
| 5046 buildCounterMachineTypeList--; | 5114 buildCounterMachineTypeList--; |
| 5047 return o; | 5115 return o; |
| 5048 } | 5116 } |
| 5049 | 5117 |
| 5050 checkMachineTypeList(api.MachineTypeList o) { | 5118 checkMachineTypeList(api.MachineTypeList o) { |
| 5051 buildCounterMachineTypeList++; | 5119 buildCounterMachineTypeList++; |
| 5052 if (buildCounterMachineTypeList < 3) { | 5120 if (buildCounterMachineTypeList < 3) { |
| 5053 unittest.expect(o.id, unittest.equals('foo')); | 5121 unittest.expect(o.id, unittest.equals('foo')); |
| 5054 checkUnnamed2325(o.items); | 5122 checkUnnamed2346(o.items); |
| 5055 unittest.expect(o.kind, unittest.equals('foo')); | 5123 unittest.expect(o.kind, unittest.equals('foo')); |
| 5056 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5124 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5057 unittest.expect(o.selfLink, unittest.equals('foo')); | 5125 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5058 } | 5126 } |
| 5059 buildCounterMachineTypeList--; | 5127 buildCounterMachineTypeList--; |
| 5060 } | 5128 } |
| 5061 | 5129 |
| 5062 buildUnnamed2326() { | 5130 buildUnnamed2347() { |
| 5063 var o = new core.List<api.MachineType>(); | 5131 var o = new core.List<api.MachineType>(); |
| 5064 o.add(buildMachineType()); | 5132 o.add(buildMachineType()); |
| 5065 o.add(buildMachineType()); | 5133 o.add(buildMachineType()); |
| 5066 return o; | 5134 return o; |
| 5067 } | 5135 } |
| 5068 | 5136 |
| 5069 checkUnnamed2326(core.List<api.MachineType> o) { | 5137 checkUnnamed2347(core.List<api.MachineType> o) { |
| 5070 unittest.expect(o, unittest.hasLength(2)); | 5138 unittest.expect(o, unittest.hasLength(2)); |
| 5071 checkMachineType(o[0]); | 5139 checkMachineType(o[0]); |
| 5072 checkMachineType(o[1]); | 5140 checkMachineType(o[1]); |
| 5073 } | 5141 } |
| 5074 | 5142 |
| 5075 core.int buildCounterMachineTypesScopedListWarningData = 0; | 5143 core.int buildCounterMachineTypesScopedListWarningData = 0; |
| 5076 buildMachineTypesScopedListWarningData() { | 5144 buildMachineTypesScopedListWarningData() { |
| 5077 var o = new api.MachineTypesScopedListWarningData(); | 5145 var o = new api.MachineTypesScopedListWarningData(); |
| 5078 buildCounterMachineTypesScopedListWarningData++; | 5146 buildCounterMachineTypesScopedListWarningData++; |
| 5079 if (buildCounterMachineTypesScopedListWarningData < 3) { | 5147 if (buildCounterMachineTypesScopedListWarningData < 3) { |
| 5080 o.key = "foo"; | 5148 o.key = "foo"; |
| 5081 o.value = "foo"; | 5149 o.value = "foo"; |
| 5082 } | 5150 } |
| 5083 buildCounterMachineTypesScopedListWarningData--; | 5151 buildCounterMachineTypesScopedListWarningData--; |
| 5084 return o; | 5152 return o; |
| 5085 } | 5153 } |
| 5086 | 5154 |
| 5087 checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
{ | 5155 checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
{ |
| 5088 buildCounterMachineTypesScopedListWarningData++; | 5156 buildCounterMachineTypesScopedListWarningData++; |
| 5089 if (buildCounterMachineTypesScopedListWarningData < 3) { | 5157 if (buildCounterMachineTypesScopedListWarningData < 3) { |
| 5090 unittest.expect(o.key, unittest.equals('foo')); | 5158 unittest.expect(o.key, unittest.equals('foo')); |
| 5091 unittest.expect(o.value, unittest.equals('foo')); | 5159 unittest.expect(o.value, unittest.equals('foo')); |
| 5092 } | 5160 } |
| 5093 buildCounterMachineTypesScopedListWarningData--; | 5161 buildCounterMachineTypesScopedListWarningData--; |
| 5094 } | 5162 } |
| 5095 | 5163 |
| 5096 buildUnnamed2327() { | 5164 buildUnnamed2348() { |
| 5097 var o = new core.List<api.MachineTypesScopedListWarningData>(); | 5165 var o = new core.List<api.MachineTypesScopedListWarningData>(); |
| 5098 o.add(buildMachineTypesScopedListWarningData()); | 5166 o.add(buildMachineTypesScopedListWarningData()); |
| 5099 o.add(buildMachineTypesScopedListWarningData()); | 5167 o.add(buildMachineTypesScopedListWarningData()); |
| 5100 return o; | 5168 return o; |
| 5101 } | 5169 } |
| 5102 | 5170 |
| 5103 checkUnnamed2327(core.List<api.MachineTypesScopedListWarningData> o) { | 5171 checkUnnamed2348(core.List<api.MachineTypesScopedListWarningData> o) { |
| 5104 unittest.expect(o, unittest.hasLength(2)); | 5172 unittest.expect(o, unittest.hasLength(2)); |
| 5105 checkMachineTypesScopedListWarningData(o[0]); | 5173 checkMachineTypesScopedListWarningData(o[0]); |
| 5106 checkMachineTypesScopedListWarningData(o[1]); | 5174 checkMachineTypesScopedListWarningData(o[1]); |
| 5107 } | 5175 } |
| 5108 | 5176 |
| 5109 core.int buildCounterMachineTypesScopedListWarning = 0; | 5177 core.int buildCounterMachineTypesScopedListWarning = 0; |
| 5110 buildMachineTypesScopedListWarning() { | 5178 buildMachineTypesScopedListWarning() { |
| 5111 var o = new api.MachineTypesScopedListWarning(); | 5179 var o = new api.MachineTypesScopedListWarning(); |
| 5112 buildCounterMachineTypesScopedListWarning++; | 5180 buildCounterMachineTypesScopedListWarning++; |
| 5113 if (buildCounterMachineTypesScopedListWarning < 3) { | 5181 if (buildCounterMachineTypesScopedListWarning < 3) { |
| 5114 o.code = "foo"; | 5182 o.code = "foo"; |
| 5115 o.data = buildUnnamed2327(); | 5183 o.data = buildUnnamed2348(); |
| 5116 o.message = "foo"; | 5184 o.message = "foo"; |
| 5117 } | 5185 } |
| 5118 buildCounterMachineTypesScopedListWarning--; | 5186 buildCounterMachineTypesScopedListWarning--; |
| 5119 return o; | 5187 return o; |
| 5120 } | 5188 } |
| 5121 | 5189 |
| 5122 checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { | 5190 checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { |
| 5123 buildCounterMachineTypesScopedListWarning++; | 5191 buildCounterMachineTypesScopedListWarning++; |
| 5124 if (buildCounterMachineTypesScopedListWarning < 3) { | 5192 if (buildCounterMachineTypesScopedListWarning < 3) { |
| 5125 unittest.expect(o.code, unittest.equals('foo')); | 5193 unittest.expect(o.code, unittest.equals('foo')); |
| 5126 checkUnnamed2327(o.data); | 5194 checkUnnamed2348(o.data); |
| 5127 unittest.expect(o.message, unittest.equals('foo')); | 5195 unittest.expect(o.message, unittest.equals('foo')); |
| 5128 } | 5196 } |
| 5129 buildCounterMachineTypesScopedListWarning--; | 5197 buildCounterMachineTypesScopedListWarning--; |
| 5130 } | 5198 } |
| 5131 | 5199 |
| 5132 core.int buildCounterMachineTypesScopedList = 0; | 5200 core.int buildCounterMachineTypesScopedList = 0; |
| 5133 buildMachineTypesScopedList() { | 5201 buildMachineTypesScopedList() { |
| 5134 var o = new api.MachineTypesScopedList(); | 5202 var o = new api.MachineTypesScopedList(); |
| 5135 buildCounterMachineTypesScopedList++; | 5203 buildCounterMachineTypesScopedList++; |
| 5136 if (buildCounterMachineTypesScopedList < 3) { | 5204 if (buildCounterMachineTypesScopedList < 3) { |
| 5137 o.machineTypes = buildUnnamed2326(); | 5205 o.machineTypes = buildUnnamed2347(); |
| 5138 o.warning = buildMachineTypesScopedListWarning(); | 5206 o.warning = buildMachineTypesScopedListWarning(); |
| 5139 } | 5207 } |
| 5140 buildCounterMachineTypesScopedList--; | 5208 buildCounterMachineTypesScopedList--; |
| 5141 return o; | 5209 return o; |
| 5142 } | 5210 } |
| 5143 | 5211 |
| 5144 checkMachineTypesScopedList(api.MachineTypesScopedList o) { | 5212 checkMachineTypesScopedList(api.MachineTypesScopedList o) { |
| 5145 buildCounterMachineTypesScopedList++; | 5213 buildCounterMachineTypesScopedList++; |
| 5146 if (buildCounterMachineTypesScopedList < 3) { | 5214 if (buildCounterMachineTypesScopedList < 3) { |
| 5147 checkUnnamed2326(o.machineTypes); | 5215 checkUnnamed2347(o.machineTypes); |
| 5148 checkMachineTypesScopedListWarning(o.warning); | 5216 checkMachineTypesScopedListWarning(o.warning); |
| 5149 } | 5217 } |
| 5150 buildCounterMachineTypesScopedList--; | 5218 buildCounterMachineTypesScopedList--; |
| 5151 } | 5219 } |
| 5152 | 5220 |
| 5153 core.int buildCounterManagedInstance = 0; | 5221 core.int buildCounterManagedInstance = 0; |
| 5154 buildManagedInstance() { | 5222 buildManagedInstance() { |
| 5155 var o = new api.ManagedInstance(); | 5223 var o = new api.ManagedInstance(); |
| 5156 buildCounterManagedInstance++; | 5224 buildCounterManagedInstance++; |
| 5157 if (buildCounterManagedInstance < 3) { | 5225 if (buildCounterManagedInstance < 3) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5193 checkManagedInstanceLastAttemptErrorsErrors(api.ManagedInstanceLastAttemptErrors
Errors o) { | 5261 checkManagedInstanceLastAttemptErrorsErrors(api.ManagedInstanceLastAttemptErrors
Errors o) { |
| 5194 buildCounterManagedInstanceLastAttemptErrorsErrors++; | 5262 buildCounterManagedInstanceLastAttemptErrorsErrors++; |
| 5195 if (buildCounterManagedInstanceLastAttemptErrorsErrors < 3) { | 5263 if (buildCounterManagedInstanceLastAttemptErrorsErrors < 3) { |
| 5196 unittest.expect(o.code, unittest.equals('foo')); | 5264 unittest.expect(o.code, unittest.equals('foo')); |
| 5197 unittest.expect(o.location, unittest.equals('foo')); | 5265 unittest.expect(o.location, unittest.equals('foo')); |
| 5198 unittest.expect(o.message, unittest.equals('foo')); | 5266 unittest.expect(o.message, unittest.equals('foo')); |
| 5199 } | 5267 } |
| 5200 buildCounterManagedInstanceLastAttemptErrorsErrors--; | 5268 buildCounterManagedInstanceLastAttemptErrorsErrors--; |
| 5201 } | 5269 } |
| 5202 | 5270 |
| 5203 buildUnnamed2328() { | 5271 buildUnnamed2349() { |
| 5204 var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); | 5272 var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); |
| 5205 o.add(buildManagedInstanceLastAttemptErrorsErrors()); | 5273 o.add(buildManagedInstanceLastAttemptErrorsErrors()); |
| 5206 o.add(buildManagedInstanceLastAttemptErrorsErrors()); | 5274 o.add(buildManagedInstanceLastAttemptErrorsErrors()); |
| 5207 return o; | 5275 return o; |
| 5208 } | 5276 } |
| 5209 | 5277 |
| 5210 checkUnnamed2328(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { | 5278 checkUnnamed2349(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { |
| 5211 unittest.expect(o, unittest.hasLength(2)); | 5279 unittest.expect(o, unittest.hasLength(2)); |
| 5212 checkManagedInstanceLastAttemptErrorsErrors(o[0]); | 5280 checkManagedInstanceLastAttemptErrorsErrors(o[0]); |
| 5213 checkManagedInstanceLastAttemptErrorsErrors(o[1]); | 5281 checkManagedInstanceLastAttemptErrorsErrors(o[1]); |
| 5214 } | 5282 } |
| 5215 | 5283 |
| 5216 core.int buildCounterManagedInstanceLastAttemptErrors = 0; | 5284 core.int buildCounterManagedInstanceLastAttemptErrors = 0; |
| 5217 buildManagedInstanceLastAttemptErrors() { | 5285 buildManagedInstanceLastAttemptErrors() { |
| 5218 var o = new api.ManagedInstanceLastAttemptErrors(); | 5286 var o = new api.ManagedInstanceLastAttemptErrors(); |
| 5219 buildCounterManagedInstanceLastAttemptErrors++; | 5287 buildCounterManagedInstanceLastAttemptErrors++; |
| 5220 if (buildCounterManagedInstanceLastAttemptErrors < 3) { | 5288 if (buildCounterManagedInstanceLastAttemptErrors < 3) { |
| 5221 o.errors = buildUnnamed2328(); | 5289 o.errors = buildUnnamed2349(); |
| 5222 } | 5290 } |
| 5223 buildCounterManagedInstanceLastAttemptErrors--; | 5291 buildCounterManagedInstanceLastAttemptErrors--; |
| 5224 return o; | 5292 return o; |
| 5225 } | 5293 } |
| 5226 | 5294 |
| 5227 checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { | 5295 checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { |
| 5228 buildCounterManagedInstanceLastAttemptErrors++; | 5296 buildCounterManagedInstanceLastAttemptErrors++; |
| 5229 if (buildCounterManagedInstanceLastAttemptErrors < 3) { | 5297 if (buildCounterManagedInstanceLastAttemptErrors < 3) { |
| 5230 checkUnnamed2328(o.errors); | 5298 checkUnnamed2349(o.errors); |
| 5231 } | 5299 } |
| 5232 buildCounterManagedInstanceLastAttemptErrors--; | 5300 buildCounterManagedInstanceLastAttemptErrors--; |
| 5233 } | 5301 } |
| 5234 | 5302 |
| 5235 core.int buildCounterManagedInstanceLastAttempt = 0; | 5303 core.int buildCounterManagedInstanceLastAttempt = 0; |
| 5236 buildManagedInstanceLastAttempt() { | 5304 buildManagedInstanceLastAttempt() { |
| 5237 var o = new api.ManagedInstanceLastAttempt(); | 5305 var o = new api.ManagedInstanceLastAttempt(); |
| 5238 buildCounterManagedInstanceLastAttempt++; | 5306 buildCounterManagedInstanceLastAttempt++; |
| 5239 if (buildCounterManagedInstanceLastAttempt < 3) { | 5307 if (buildCounterManagedInstanceLastAttempt < 3) { |
| 5240 o.errors = buildManagedInstanceLastAttemptErrors(); | 5308 o.errors = buildManagedInstanceLastAttemptErrors(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5265 | 5333 |
| 5266 checkMetadataItems(api.MetadataItems o) { | 5334 checkMetadataItems(api.MetadataItems o) { |
| 5267 buildCounterMetadataItems++; | 5335 buildCounterMetadataItems++; |
| 5268 if (buildCounterMetadataItems < 3) { | 5336 if (buildCounterMetadataItems < 3) { |
| 5269 unittest.expect(o.key, unittest.equals('foo')); | 5337 unittest.expect(o.key, unittest.equals('foo')); |
| 5270 unittest.expect(o.value, unittest.equals('foo')); | 5338 unittest.expect(o.value, unittest.equals('foo')); |
| 5271 } | 5339 } |
| 5272 buildCounterMetadataItems--; | 5340 buildCounterMetadataItems--; |
| 5273 } | 5341 } |
| 5274 | 5342 |
| 5275 buildUnnamed2329() { | 5343 buildUnnamed2350() { |
| 5276 var o = new core.List<api.MetadataItems>(); | 5344 var o = new core.List<api.MetadataItems>(); |
| 5277 o.add(buildMetadataItems()); | 5345 o.add(buildMetadataItems()); |
| 5278 o.add(buildMetadataItems()); | 5346 o.add(buildMetadataItems()); |
| 5279 return o; | 5347 return o; |
| 5280 } | 5348 } |
| 5281 | 5349 |
| 5282 checkUnnamed2329(core.List<api.MetadataItems> o) { | 5350 checkUnnamed2350(core.List<api.MetadataItems> o) { |
| 5283 unittest.expect(o, unittest.hasLength(2)); | 5351 unittest.expect(o, unittest.hasLength(2)); |
| 5284 checkMetadataItems(o[0]); | 5352 checkMetadataItems(o[0]); |
| 5285 checkMetadataItems(o[1]); | 5353 checkMetadataItems(o[1]); |
| 5286 } | 5354 } |
| 5287 | 5355 |
| 5288 core.int buildCounterMetadata = 0; | 5356 core.int buildCounterMetadata = 0; |
| 5289 buildMetadata() { | 5357 buildMetadata() { |
| 5290 var o = new api.Metadata(); | 5358 var o = new api.Metadata(); |
| 5291 buildCounterMetadata++; | 5359 buildCounterMetadata++; |
| 5292 if (buildCounterMetadata < 3) { | 5360 if (buildCounterMetadata < 3) { |
| 5293 o.fingerprint = "foo"; | 5361 o.fingerprint = "foo"; |
| 5294 o.items = buildUnnamed2329(); | 5362 o.items = buildUnnamed2350(); |
| 5295 o.kind = "foo"; | 5363 o.kind = "foo"; |
| 5296 } | 5364 } |
| 5297 buildCounterMetadata--; | 5365 buildCounterMetadata--; |
| 5298 return o; | 5366 return o; |
| 5299 } | 5367 } |
| 5300 | 5368 |
| 5301 checkMetadata(api.Metadata o) { | 5369 checkMetadata(api.Metadata o) { |
| 5302 buildCounterMetadata++; | 5370 buildCounterMetadata++; |
| 5303 if (buildCounterMetadata < 3) { | 5371 if (buildCounterMetadata < 3) { |
| 5304 unittest.expect(o.fingerprint, unittest.equals('foo')); | 5372 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 5305 checkUnnamed2329(o.items); | 5373 checkUnnamed2350(o.items); |
| 5306 unittest.expect(o.kind, unittest.equals('foo')); | 5374 unittest.expect(o.kind, unittest.equals('foo')); |
| 5307 } | 5375 } |
| 5308 buildCounterMetadata--; | 5376 buildCounterMetadata--; |
| 5309 } | 5377 } |
| 5310 | 5378 |
| 5311 core.int buildCounterNamedPort = 0; | 5379 core.int buildCounterNamedPort = 0; |
| 5312 buildNamedPort() { | 5380 buildNamedPort() { |
| 5313 var o = new api.NamedPort(); | 5381 var o = new api.NamedPort(); |
| 5314 buildCounterNamedPort++; | 5382 buildCounterNamedPort++; |
| 5315 if (buildCounterNamedPort < 3) { | 5383 if (buildCounterNamedPort < 3) { |
| 5316 o.name = "foo"; | 5384 o.name = "foo"; |
| 5317 o.port = 42; | 5385 o.port = 42; |
| 5318 } | 5386 } |
| 5319 buildCounterNamedPort--; | 5387 buildCounterNamedPort--; |
| 5320 return o; | 5388 return o; |
| 5321 } | 5389 } |
| 5322 | 5390 |
| 5323 checkNamedPort(api.NamedPort o) { | 5391 checkNamedPort(api.NamedPort o) { |
| 5324 buildCounterNamedPort++; | 5392 buildCounterNamedPort++; |
| 5325 if (buildCounterNamedPort < 3) { | 5393 if (buildCounterNamedPort < 3) { |
| 5326 unittest.expect(o.name, unittest.equals('foo')); | 5394 unittest.expect(o.name, unittest.equals('foo')); |
| 5327 unittest.expect(o.port, unittest.equals(42)); | 5395 unittest.expect(o.port, unittest.equals(42)); |
| 5328 } | 5396 } |
| 5329 buildCounterNamedPort--; | 5397 buildCounterNamedPort--; |
| 5330 } | 5398 } |
| 5331 | 5399 |
| 5332 buildUnnamed2330() { | 5400 buildUnnamed2351() { |
| 5333 var o = new core.List<api.NetworkPeering>(); | 5401 var o = new core.List<api.NetworkPeering>(); |
| 5334 o.add(buildNetworkPeering()); | 5402 o.add(buildNetworkPeering()); |
| 5335 o.add(buildNetworkPeering()); | 5403 o.add(buildNetworkPeering()); |
| 5336 return o; | 5404 return o; |
| 5337 } | 5405 } |
| 5338 | 5406 |
| 5339 checkUnnamed2330(core.List<api.NetworkPeering> o) { | 5407 checkUnnamed2351(core.List<api.NetworkPeering> o) { |
| 5340 unittest.expect(o, unittest.hasLength(2)); | 5408 unittest.expect(o, unittest.hasLength(2)); |
| 5341 checkNetworkPeering(o[0]); | 5409 checkNetworkPeering(o[0]); |
| 5342 checkNetworkPeering(o[1]); | 5410 checkNetworkPeering(o[1]); |
| 5343 } | 5411 } |
| 5344 | 5412 |
| 5345 buildUnnamed2331() { | 5413 buildUnnamed2352() { |
| 5346 var o = new core.List<core.String>(); | 5414 var o = new core.List<core.String>(); |
| 5347 o.add("foo"); | 5415 o.add("foo"); |
| 5348 o.add("foo"); | 5416 o.add("foo"); |
| 5349 return o; | 5417 return o; |
| 5350 } | 5418 } |
| 5351 | 5419 |
| 5352 checkUnnamed2331(core.List<core.String> o) { | 5420 checkUnnamed2352(core.List<core.String> o) { |
| 5353 unittest.expect(o, unittest.hasLength(2)); | 5421 unittest.expect(o, unittest.hasLength(2)); |
| 5354 unittest.expect(o[0], unittest.equals('foo')); | 5422 unittest.expect(o[0], unittest.equals('foo')); |
| 5355 unittest.expect(o[1], unittest.equals('foo')); | 5423 unittest.expect(o[1], unittest.equals('foo')); |
| 5356 } | 5424 } |
| 5357 | 5425 |
| 5358 core.int buildCounterNetwork = 0; | 5426 core.int buildCounterNetwork = 0; |
| 5359 buildNetwork() { | 5427 buildNetwork() { |
| 5360 var o = new api.Network(); | 5428 var o = new api.Network(); |
| 5361 buildCounterNetwork++; | 5429 buildCounterNetwork++; |
| 5362 if (buildCounterNetwork < 3) { | 5430 if (buildCounterNetwork < 3) { |
| 5363 o.IPv4Range = "foo"; | 5431 o.IPv4Range = "foo"; |
| 5364 o.autoCreateSubnetworks = true; | 5432 o.autoCreateSubnetworks = true; |
| 5365 o.creationTimestamp = "foo"; | 5433 o.creationTimestamp = "foo"; |
| 5366 o.description = "foo"; | 5434 o.description = "foo"; |
| 5367 o.gatewayIPv4 = "foo"; | 5435 o.gatewayIPv4 = "foo"; |
| 5368 o.id = "foo"; | 5436 o.id = "foo"; |
| 5369 o.kind = "foo"; | 5437 o.kind = "foo"; |
| 5370 o.name = "foo"; | 5438 o.name = "foo"; |
| 5371 o.peerings = buildUnnamed2330(); | 5439 o.peerings = buildUnnamed2351(); |
| 5372 o.selfLink = "foo"; | 5440 o.selfLink = "foo"; |
| 5373 o.subnetworks = buildUnnamed2331(); | 5441 o.subnetworks = buildUnnamed2352(); |
| 5374 } | 5442 } |
| 5375 buildCounterNetwork--; | 5443 buildCounterNetwork--; |
| 5376 return o; | 5444 return o; |
| 5377 } | 5445 } |
| 5378 | 5446 |
| 5379 checkNetwork(api.Network o) { | 5447 checkNetwork(api.Network o) { |
| 5380 buildCounterNetwork++; | 5448 buildCounterNetwork++; |
| 5381 if (buildCounterNetwork < 3) { | 5449 if (buildCounterNetwork < 3) { |
| 5382 unittest.expect(o.IPv4Range, unittest.equals('foo')); | 5450 unittest.expect(o.IPv4Range, unittest.equals('foo')); |
| 5383 unittest.expect(o.autoCreateSubnetworks, unittest.isTrue); | 5451 unittest.expect(o.autoCreateSubnetworks, unittest.isTrue); |
| 5384 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5452 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 5385 unittest.expect(o.description, unittest.equals('foo')); | 5453 unittest.expect(o.description, unittest.equals('foo')); |
| 5386 unittest.expect(o.gatewayIPv4, unittest.equals('foo')); | 5454 unittest.expect(o.gatewayIPv4, unittest.equals('foo')); |
| 5387 unittest.expect(o.id, unittest.equals('foo')); | 5455 unittest.expect(o.id, unittest.equals('foo')); |
| 5388 unittest.expect(o.kind, unittest.equals('foo')); | 5456 unittest.expect(o.kind, unittest.equals('foo')); |
| 5389 unittest.expect(o.name, unittest.equals('foo')); | 5457 unittest.expect(o.name, unittest.equals('foo')); |
| 5390 checkUnnamed2330(o.peerings); | 5458 checkUnnamed2351(o.peerings); |
| 5391 unittest.expect(o.selfLink, unittest.equals('foo')); | 5459 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5392 checkUnnamed2331(o.subnetworks); | 5460 checkUnnamed2352(o.subnetworks); |
| 5393 } | 5461 } |
| 5394 buildCounterNetwork--; | 5462 buildCounterNetwork--; |
| 5395 } | 5463 } |
| 5396 | 5464 |
| 5397 buildUnnamed2332() { | 5465 buildUnnamed2353() { |
| 5398 var o = new core.List<api.AccessConfig>(); | 5466 var o = new core.List<api.AccessConfig>(); |
| 5399 o.add(buildAccessConfig()); | 5467 o.add(buildAccessConfig()); |
| 5400 o.add(buildAccessConfig()); | 5468 o.add(buildAccessConfig()); |
| 5401 return o; | 5469 return o; |
| 5402 } | 5470 } |
| 5403 | 5471 |
| 5404 checkUnnamed2332(core.List<api.AccessConfig> o) { | 5472 checkUnnamed2353(core.List<api.AccessConfig> o) { |
| 5405 unittest.expect(o, unittest.hasLength(2)); | 5473 unittest.expect(o, unittest.hasLength(2)); |
| 5406 checkAccessConfig(o[0]); | 5474 checkAccessConfig(o[0]); |
| 5407 checkAccessConfig(o[1]); | 5475 checkAccessConfig(o[1]); |
| 5408 } | 5476 } |
| 5409 | 5477 |
| 5410 buildUnnamed2333() { | 5478 buildUnnamed2354() { |
| 5411 var o = new core.List<api.AliasIpRange>(); | 5479 var o = new core.List<api.AliasIpRange>(); |
| 5412 o.add(buildAliasIpRange()); | 5480 o.add(buildAliasIpRange()); |
| 5413 o.add(buildAliasIpRange()); | 5481 o.add(buildAliasIpRange()); |
| 5414 return o; | 5482 return o; |
| 5415 } | 5483 } |
| 5416 | 5484 |
| 5417 checkUnnamed2333(core.List<api.AliasIpRange> o) { | 5485 checkUnnamed2354(core.List<api.AliasIpRange> o) { |
| 5418 unittest.expect(o, unittest.hasLength(2)); | 5486 unittest.expect(o, unittest.hasLength(2)); |
| 5419 checkAliasIpRange(o[0]); | 5487 checkAliasIpRange(o[0]); |
| 5420 checkAliasIpRange(o[1]); | 5488 checkAliasIpRange(o[1]); |
| 5421 } | 5489 } |
| 5422 | 5490 |
| 5423 core.int buildCounterNetworkInterface = 0; | 5491 core.int buildCounterNetworkInterface = 0; |
| 5424 buildNetworkInterface() { | 5492 buildNetworkInterface() { |
| 5425 var o = new api.NetworkInterface(); | 5493 var o = new api.NetworkInterface(); |
| 5426 buildCounterNetworkInterface++; | 5494 buildCounterNetworkInterface++; |
| 5427 if (buildCounterNetworkInterface < 3) { | 5495 if (buildCounterNetworkInterface < 3) { |
| 5428 o.accessConfigs = buildUnnamed2332(); | 5496 o.accessConfigs = buildUnnamed2353(); |
| 5429 o.aliasIpRanges = buildUnnamed2333(); | 5497 o.aliasIpRanges = buildUnnamed2354(); |
| 5430 o.kind = "foo"; | 5498 o.kind = "foo"; |
| 5431 o.name = "foo"; | 5499 o.name = "foo"; |
| 5432 o.network = "foo"; | 5500 o.network = "foo"; |
| 5433 o.networkIP = "foo"; | 5501 o.networkIP = "foo"; |
| 5434 o.subnetwork = "foo"; | 5502 o.subnetwork = "foo"; |
| 5435 } | 5503 } |
| 5436 buildCounterNetworkInterface--; | 5504 buildCounterNetworkInterface--; |
| 5437 return o; | 5505 return o; |
| 5438 } | 5506 } |
| 5439 | 5507 |
| 5440 checkNetworkInterface(api.NetworkInterface o) { | 5508 checkNetworkInterface(api.NetworkInterface o) { |
| 5441 buildCounterNetworkInterface++; | 5509 buildCounterNetworkInterface++; |
| 5442 if (buildCounterNetworkInterface < 3) { | 5510 if (buildCounterNetworkInterface < 3) { |
| 5443 checkUnnamed2332(o.accessConfigs); | 5511 checkUnnamed2353(o.accessConfigs); |
| 5444 checkUnnamed2333(o.aliasIpRanges); | 5512 checkUnnamed2354(o.aliasIpRanges); |
| 5445 unittest.expect(o.kind, unittest.equals('foo')); | 5513 unittest.expect(o.kind, unittest.equals('foo')); |
| 5446 unittest.expect(o.name, unittest.equals('foo')); | 5514 unittest.expect(o.name, unittest.equals('foo')); |
| 5447 unittest.expect(o.network, unittest.equals('foo')); | 5515 unittest.expect(o.network, unittest.equals('foo')); |
| 5448 unittest.expect(o.networkIP, unittest.equals('foo')); | 5516 unittest.expect(o.networkIP, unittest.equals('foo')); |
| 5449 unittest.expect(o.subnetwork, unittest.equals('foo')); | 5517 unittest.expect(o.subnetwork, unittest.equals('foo')); |
| 5450 } | 5518 } |
| 5451 buildCounterNetworkInterface--; | 5519 buildCounterNetworkInterface--; |
| 5452 } | 5520 } |
| 5453 | 5521 |
| 5454 buildUnnamed2334() { | 5522 buildUnnamed2355() { |
| 5455 var o = new core.List<api.Network>(); | 5523 var o = new core.List<api.Network>(); |
| 5456 o.add(buildNetwork()); | 5524 o.add(buildNetwork()); |
| 5457 o.add(buildNetwork()); | 5525 o.add(buildNetwork()); |
| 5458 return o; | 5526 return o; |
| 5459 } | 5527 } |
| 5460 | 5528 |
| 5461 checkUnnamed2334(core.List<api.Network> o) { | 5529 checkUnnamed2355(core.List<api.Network> o) { |
| 5462 unittest.expect(o, unittest.hasLength(2)); | 5530 unittest.expect(o, unittest.hasLength(2)); |
| 5463 checkNetwork(o[0]); | 5531 checkNetwork(o[0]); |
| 5464 checkNetwork(o[1]); | 5532 checkNetwork(o[1]); |
| 5465 } | 5533 } |
| 5466 | 5534 |
| 5467 core.int buildCounterNetworkList = 0; | 5535 core.int buildCounterNetworkList = 0; |
| 5468 buildNetworkList() { | 5536 buildNetworkList() { |
| 5469 var o = new api.NetworkList(); | 5537 var o = new api.NetworkList(); |
| 5470 buildCounterNetworkList++; | 5538 buildCounterNetworkList++; |
| 5471 if (buildCounterNetworkList < 3) { | 5539 if (buildCounterNetworkList < 3) { |
| 5472 o.id = "foo"; | 5540 o.id = "foo"; |
| 5473 o.items = buildUnnamed2334(); | 5541 o.items = buildUnnamed2355(); |
| 5474 o.kind = "foo"; | 5542 o.kind = "foo"; |
| 5475 o.nextPageToken = "foo"; | 5543 o.nextPageToken = "foo"; |
| 5476 o.selfLink = "foo"; | 5544 o.selfLink = "foo"; |
| 5477 } | 5545 } |
| 5478 buildCounterNetworkList--; | 5546 buildCounterNetworkList--; |
| 5479 return o; | 5547 return o; |
| 5480 } | 5548 } |
| 5481 | 5549 |
| 5482 checkNetworkList(api.NetworkList o) { | 5550 checkNetworkList(api.NetworkList o) { |
| 5483 buildCounterNetworkList++; | 5551 buildCounterNetworkList++; |
| 5484 if (buildCounterNetworkList < 3) { | 5552 if (buildCounterNetworkList < 3) { |
| 5485 unittest.expect(o.id, unittest.equals('foo')); | 5553 unittest.expect(o.id, unittest.equals('foo')); |
| 5486 checkUnnamed2334(o.items); | 5554 checkUnnamed2355(o.items); |
| 5487 unittest.expect(o.kind, unittest.equals('foo')); | 5555 unittest.expect(o.kind, unittest.equals('foo')); |
| 5488 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5556 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5489 unittest.expect(o.selfLink, unittest.equals('foo')); | 5557 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5490 } | 5558 } |
| 5491 buildCounterNetworkList--; | 5559 buildCounterNetworkList--; |
| 5492 } | 5560 } |
| 5493 | 5561 |
| 5494 core.int buildCounterNetworkPeering = 0; | 5562 core.int buildCounterNetworkPeering = 0; |
| 5495 buildNetworkPeering() { | 5563 buildNetworkPeering() { |
| 5496 var o = new api.NetworkPeering(); | 5564 var o = new api.NetworkPeering(); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5576 checkOperationErrorErrors(api.OperationErrorErrors o) { | 5644 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 5577 buildCounterOperationErrorErrors++; | 5645 buildCounterOperationErrorErrors++; |
| 5578 if (buildCounterOperationErrorErrors < 3) { | 5646 if (buildCounterOperationErrorErrors < 3) { |
| 5579 unittest.expect(o.code, unittest.equals('foo')); | 5647 unittest.expect(o.code, unittest.equals('foo')); |
| 5580 unittest.expect(o.location, unittest.equals('foo')); | 5648 unittest.expect(o.location, unittest.equals('foo')); |
| 5581 unittest.expect(o.message, unittest.equals('foo')); | 5649 unittest.expect(o.message, unittest.equals('foo')); |
| 5582 } | 5650 } |
| 5583 buildCounterOperationErrorErrors--; | 5651 buildCounterOperationErrorErrors--; |
| 5584 } | 5652 } |
| 5585 | 5653 |
| 5586 buildUnnamed2335() { | 5654 buildUnnamed2356() { |
| 5587 var o = new core.List<api.OperationErrorErrors>(); | 5655 var o = new core.List<api.OperationErrorErrors>(); |
| 5588 o.add(buildOperationErrorErrors()); | 5656 o.add(buildOperationErrorErrors()); |
| 5589 o.add(buildOperationErrorErrors()); | 5657 o.add(buildOperationErrorErrors()); |
| 5590 return o; | 5658 return o; |
| 5591 } | 5659 } |
| 5592 | 5660 |
| 5593 checkUnnamed2335(core.List<api.OperationErrorErrors> o) { | 5661 checkUnnamed2356(core.List<api.OperationErrorErrors> o) { |
| 5594 unittest.expect(o, unittest.hasLength(2)); | 5662 unittest.expect(o, unittest.hasLength(2)); |
| 5595 checkOperationErrorErrors(o[0]); | 5663 checkOperationErrorErrors(o[0]); |
| 5596 checkOperationErrorErrors(o[1]); | 5664 checkOperationErrorErrors(o[1]); |
| 5597 } | 5665 } |
| 5598 | 5666 |
| 5599 core.int buildCounterOperationError = 0; | 5667 core.int buildCounterOperationError = 0; |
| 5600 buildOperationError() { | 5668 buildOperationError() { |
| 5601 var o = new api.OperationError(); | 5669 var o = new api.OperationError(); |
| 5602 buildCounterOperationError++; | 5670 buildCounterOperationError++; |
| 5603 if (buildCounterOperationError < 3) { | 5671 if (buildCounterOperationError < 3) { |
| 5604 o.errors = buildUnnamed2335(); | 5672 o.errors = buildUnnamed2356(); |
| 5605 } | 5673 } |
| 5606 buildCounterOperationError--; | 5674 buildCounterOperationError--; |
| 5607 return o; | 5675 return o; |
| 5608 } | 5676 } |
| 5609 | 5677 |
| 5610 checkOperationError(api.OperationError o) { | 5678 checkOperationError(api.OperationError o) { |
| 5611 buildCounterOperationError++; | 5679 buildCounterOperationError++; |
| 5612 if (buildCounterOperationError < 3) { | 5680 if (buildCounterOperationError < 3) { |
| 5613 checkUnnamed2335(o.errors); | 5681 checkUnnamed2356(o.errors); |
| 5614 } | 5682 } |
| 5615 buildCounterOperationError--; | 5683 buildCounterOperationError--; |
| 5616 } | 5684 } |
| 5617 | 5685 |
| 5618 core.int buildCounterOperationWarningsData = 0; | 5686 core.int buildCounterOperationWarningsData = 0; |
| 5619 buildOperationWarningsData() { | 5687 buildOperationWarningsData() { |
| 5620 var o = new api.OperationWarningsData(); | 5688 var o = new api.OperationWarningsData(); |
| 5621 buildCounterOperationWarningsData++; | 5689 buildCounterOperationWarningsData++; |
| 5622 if (buildCounterOperationWarningsData < 3) { | 5690 if (buildCounterOperationWarningsData < 3) { |
| 5623 o.key = "foo"; | 5691 o.key = "foo"; |
| 5624 o.value = "foo"; | 5692 o.value = "foo"; |
| 5625 } | 5693 } |
| 5626 buildCounterOperationWarningsData--; | 5694 buildCounterOperationWarningsData--; |
| 5627 return o; | 5695 return o; |
| 5628 } | 5696 } |
| 5629 | 5697 |
| 5630 checkOperationWarningsData(api.OperationWarningsData o) { | 5698 checkOperationWarningsData(api.OperationWarningsData o) { |
| 5631 buildCounterOperationWarningsData++; | 5699 buildCounterOperationWarningsData++; |
| 5632 if (buildCounterOperationWarningsData < 3) { | 5700 if (buildCounterOperationWarningsData < 3) { |
| 5633 unittest.expect(o.key, unittest.equals('foo')); | 5701 unittest.expect(o.key, unittest.equals('foo')); |
| 5634 unittest.expect(o.value, unittest.equals('foo')); | 5702 unittest.expect(o.value, unittest.equals('foo')); |
| 5635 } | 5703 } |
| 5636 buildCounterOperationWarningsData--; | 5704 buildCounterOperationWarningsData--; |
| 5637 } | 5705 } |
| 5638 | 5706 |
| 5639 buildUnnamed2336() { | 5707 buildUnnamed2357() { |
| 5640 var o = new core.List<api.OperationWarningsData>(); | 5708 var o = new core.List<api.OperationWarningsData>(); |
| 5641 o.add(buildOperationWarningsData()); | 5709 o.add(buildOperationWarningsData()); |
| 5642 o.add(buildOperationWarningsData()); | 5710 o.add(buildOperationWarningsData()); |
| 5643 return o; | 5711 return o; |
| 5644 } | 5712 } |
| 5645 | 5713 |
| 5646 checkUnnamed2336(core.List<api.OperationWarningsData> o) { | 5714 checkUnnamed2357(core.List<api.OperationWarningsData> o) { |
| 5647 unittest.expect(o, unittest.hasLength(2)); | 5715 unittest.expect(o, unittest.hasLength(2)); |
| 5648 checkOperationWarningsData(o[0]); | 5716 checkOperationWarningsData(o[0]); |
| 5649 checkOperationWarningsData(o[1]); | 5717 checkOperationWarningsData(o[1]); |
| 5650 } | 5718 } |
| 5651 | 5719 |
| 5652 core.int buildCounterOperationWarnings = 0; | 5720 core.int buildCounterOperationWarnings = 0; |
| 5653 buildOperationWarnings() { | 5721 buildOperationWarnings() { |
| 5654 var o = new api.OperationWarnings(); | 5722 var o = new api.OperationWarnings(); |
| 5655 buildCounterOperationWarnings++; | 5723 buildCounterOperationWarnings++; |
| 5656 if (buildCounterOperationWarnings < 3) { | 5724 if (buildCounterOperationWarnings < 3) { |
| 5657 o.code = "foo"; | 5725 o.code = "foo"; |
| 5658 o.data = buildUnnamed2336(); | 5726 o.data = buildUnnamed2357(); |
| 5659 o.message = "foo"; | 5727 o.message = "foo"; |
| 5660 } | 5728 } |
| 5661 buildCounterOperationWarnings--; | 5729 buildCounterOperationWarnings--; |
| 5662 return o; | 5730 return o; |
| 5663 } | 5731 } |
| 5664 | 5732 |
| 5665 checkOperationWarnings(api.OperationWarnings o) { | 5733 checkOperationWarnings(api.OperationWarnings o) { |
| 5666 buildCounterOperationWarnings++; | 5734 buildCounterOperationWarnings++; |
| 5667 if (buildCounterOperationWarnings < 3) { | 5735 if (buildCounterOperationWarnings < 3) { |
| 5668 unittest.expect(o.code, unittest.equals('foo')); | 5736 unittest.expect(o.code, unittest.equals('foo')); |
| 5669 checkUnnamed2336(o.data); | 5737 checkUnnamed2357(o.data); |
| 5670 unittest.expect(o.message, unittest.equals('foo')); | 5738 unittest.expect(o.message, unittest.equals('foo')); |
| 5671 } | 5739 } |
| 5672 buildCounterOperationWarnings--; | 5740 buildCounterOperationWarnings--; |
| 5673 } | 5741 } |
| 5674 | 5742 |
| 5675 buildUnnamed2337() { | 5743 buildUnnamed2358() { |
| 5676 var o = new core.List<api.OperationWarnings>(); | 5744 var o = new core.List<api.OperationWarnings>(); |
| 5677 o.add(buildOperationWarnings()); | 5745 o.add(buildOperationWarnings()); |
| 5678 o.add(buildOperationWarnings()); | 5746 o.add(buildOperationWarnings()); |
| 5679 return o; | 5747 return o; |
| 5680 } | 5748 } |
| 5681 | 5749 |
| 5682 checkUnnamed2337(core.List<api.OperationWarnings> o) { | 5750 checkUnnamed2358(core.List<api.OperationWarnings> o) { |
| 5683 unittest.expect(o, unittest.hasLength(2)); | 5751 unittest.expect(o, unittest.hasLength(2)); |
| 5684 checkOperationWarnings(o[0]); | 5752 checkOperationWarnings(o[0]); |
| 5685 checkOperationWarnings(o[1]); | 5753 checkOperationWarnings(o[1]); |
| 5686 } | 5754 } |
| 5687 | 5755 |
| 5688 core.int buildCounterOperation = 0; | 5756 core.int buildCounterOperation = 0; |
| 5689 buildOperation() { | 5757 buildOperation() { |
| 5690 var o = new api.Operation(); | 5758 var o = new api.Operation(); |
| 5691 buildCounterOperation++; | 5759 buildCounterOperation++; |
| 5692 if (buildCounterOperation < 3) { | 5760 if (buildCounterOperation < 3) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5704 o.operationType = "foo"; | 5772 o.operationType = "foo"; |
| 5705 o.progress = 42; | 5773 o.progress = 42; |
| 5706 o.region = "foo"; | 5774 o.region = "foo"; |
| 5707 o.selfLink = "foo"; | 5775 o.selfLink = "foo"; |
| 5708 o.startTime = "foo"; | 5776 o.startTime = "foo"; |
| 5709 o.status = "foo"; | 5777 o.status = "foo"; |
| 5710 o.statusMessage = "foo"; | 5778 o.statusMessage = "foo"; |
| 5711 o.targetId = "foo"; | 5779 o.targetId = "foo"; |
| 5712 o.targetLink = "foo"; | 5780 o.targetLink = "foo"; |
| 5713 o.user = "foo"; | 5781 o.user = "foo"; |
| 5714 o.warnings = buildUnnamed2337(); | 5782 o.warnings = buildUnnamed2358(); |
| 5715 o.zone = "foo"; | 5783 o.zone = "foo"; |
| 5716 } | 5784 } |
| 5717 buildCounterOperation--; | 5785 buildCounterOperation--; |
| 5718 return o; | 5786 return o; |
| 5719 } | 5787 } |
| 5720 | 5788 |
| 5721 checkOperation(api.Operation o) { | 5789 checkOperation(api.Operation o) { |
| 5722 buildCounterOperation++; | 5790 buildCounterOperation++; |
| 5723 if (buildCounterOperation < 3) { | 5791 if (buildCounterOperation < 3) { |
| 5724 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 5792 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 5735 unittest.expect(o.operationType, unittest.equals('foo')); | 5803 unittest.expect(o.operationType, unittest.equals('foo')); |
| 5736 unittest.expect(o.progress, unittest.equals(42)); | 5804 unittest.expect(o.progress, unittest.equals(42)); |
| 5737 unittest.expect(o.region, unittest.equals('foo')); | 5805 unittest.expect(o.region, unittest.equals('foo')); |
| 5738 unittest.expect(o.selfLink, unittest.equals('foo')); | 5806 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5739 unittest.expect(o.startTime, unittest.equals('foo')); | 5807 unittest.expect(o.startTime, unittest.equals('foo')); |
| 5740 unittest.expect(o.status, unittest.equals('foo')); | 5808 unittest.expect(o.status, unittest.equals('foo')); |
| 5741 unittest.expect(o.statusMessage, unittest.equals('foo')); | 5809 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 5742 unittest.expect(o.targetId, unittest.equals('foo')); | 5810 unittest.expect(o.targetId, unittest.equals('foo')); |
| 5743 unittest.expect(o.targetLink, unittest.equals('foo')); | 5811 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 5744 unittest.expect(o.user, unittest.equals('foo')); | 5812 unittest.expect(o.user, unittest.equals('foo')); |
| 5745 checkUnnamed2337(o.warnings); | 5813 checkUnnamed2358(o.warnings); |
| 5746 unittest.expect(o.zone, unittest.equals('foo')); | 5814 unittest.expect(o.zone, unittest.equals('foo')); |
| 5747 } | 5815 } |
| 5748 buildCounterOperation--; | 5816 buildCounterOperation--; |
| 5749 } | 5817 } |
| 5750 | 5818 |
| 5751 buildUnnamed2338() { | 5819 buildUnnamed2359() { |
| 5752 var o = new core.Map<core.String, api.OperationsScopedList>(); | 5820 var o = new core.Map<core.String, api.OperationsScopedList>(); |
| 5753 o["x"] = buildOperationsScopedList(); | 5821 o["x"] = buildOperationsScopedList(); |
| 5754 o["y"] = buildOperationsScopedList(); | 5822 o["y"] = buildOperationsScopedList(); |
| 5755 return o; | 5823 return o; |
| 5756 } | 5824 } |
| 5757 | 5825 |
| 5758 checkUnnamed2338(core.Map<core.String, api.OperationsScopedList> o) { | 5826 checkUnnamed2359(core.Map<core.String, api.OperationsScopedList> o) { |
| 5759 unittest.expect(o, unittest.hasLength(2)); | 5827 unittest.expect(o, unittest.hasLength(2)); |
| 5760 checkOperationsScopedList(o["x"]); | 5828 checkOperationsScopedList(o["x"]); |
| 5761 checkOperationsScopedList(o["y"]); | 5829 checkOperationsScopedList(o["y"]); |
| 5762 } | 5830 } |
| 5763 | 5831 |
| 5764 core.int buildCounterOperationAggregatedList = 0; | 5832 core.int buildCounterOperationAggregatedList = 0; |
| 5765 buildOperationAggregatedList() { | 5833 buildOperationAggregatedList() { |
| 5766 var o = new api.OperationAggregatedList(); | 5834 var o = new api.OperationAggregatedList(); |
| 5767 buildCounterOperationAggregatedList++; | 5835 buildCounterOperationAggregatedList++; |
| 5768 if (buildCounterOperationAggregatedList < 3) { | 5836 if (buildCounterOperationAggregatedList < 3) { |
| 5769 o.id = "foo"; | 5837 o.id = "foo"; |
| 5770 o.items = buildUnnamed2338(); | 5838 o.items = buildUnnamed2359(); |
| 5771 o.kind = "foo"; | 5839 o.kind = "foo"; |
| 5772 o.nextPageToken = "foo"; | 5840 o.nextPageToken = "foo"; |
| 5773 o.selfLink = "foo"; | 5841 o.selfLink = "foo"; |
| 5774 } | 5842 } |
| 5775 buildCounterOperationAggregatedList--; | 5843 buildCounterOperationAggregatedList--; |
| 5776 return o; | 5844 return o; |
| 5777 } | 5845 } |
| 5778 | 5846 |
| 5779 checkOperationAggregatedList(api.OperationAggregatedList o) { | 5847 checkOperationAggregatedList(api.OperationAggregatedList o) { |
| 5780 buildCounterOperationAggregatedList++; | 5848 buildCounterOperationAggregatedList++; |
| 5781 if (buildCounterOperationAggregatedList < 3) { | 5849 if (buildCounterOperationAggregatedList < 3) { |
| 5782 unittest.expect(o.id, unittest.equals('foo')); | 5850 unittest.expect(o.id, unittest.equals('foo')); |
| 5783 checkUnnamed2338(o.items); | 5851 checkUnnamed2359(o.items); |
| 5784 unittest.expect(o.kind, unittest.equals('foo')); | 5852 unittest.expect(o.kind, unittest.equals('foo')); |
| 5785 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5853 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5786 unittest.expect(o.selfLink, unittest.equals('foo')); | 5854 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5787 } | 5855 } |
| 5788 buildCounterOperationAggregatedList--; | 5856 buildCounterOperationAggregatedList--; |
| 5789 } | 5857 } |
| 5790 | 5858 |
| 5791 buildUnnamed2339() { | 5859 buildUnnamed2360() { |
| 5792 var o = new core.List<api.Operation>(); | 5860 var o = new core.List<api.Operation>(); |
| 5793 o.add(buildOperation()); | 5861 o.add(buildOperation()); |
| 5794 o.add(buildOperation()); | 5862 o.add(buildOperation()); |
| 5795 return o; | 5863 return o; |
| 5796 } | 5864 } |
| 5797 | 5865 |
| 5798 checkUnnamed2339(core.List<api.Operation> o) { | 5866 checkUnnamed2360(core.List<api.Operation> o) { |
| 5799 unittest.expect(o, unittest.hasLength(2)); | 5867 unittest.expect(o, unittest.hasLength(2)); |
| 5800 checkOperation(o[0]); | 5868 checkOperation(o[0]); |
| 5801 checkOperation(o[1]); | 5869 checkOperation(o[1]); |
| 5802 } | 5870 } |
| 5803 | 5871 |
| 5804 core.int buildCounterOperationList = 0; | 5872 core.int buildCounterOperationList = 0; |
| 5805 buildOperationList() { | 5873 buildOperationList() { |
| 5806 var o = new api.OperationList(); | 5874 var o = new api.OperationList(); |
| 5807 buildCounterOperationList++; | 5875 buildCounterOperationList++; |
| 5808 if (buildCounterOperationList < 3) { | 5876 if (buildCounterOperationList < 3) { |
| 5809 o.id = "foo"; | 5877 o.id = "foo"; |
| 5810 o.items = buildUnnamed2339(); | 5878 o.items = buildUnnamed2360(); |
| 5811 o.kind = "foo"; | 5879 o.kind = "foo"; |
| 5812 o.nextPageToken = "foo"; | 5880 o.nextPageToken = "foo"; |
| 5813 o.selfLink = "foo"; | 5881 o.selfLink = "foo"; |
| 5814 } | 5882 } |
| 5815 buildCounterOperationList--; | 5883 buildCounterOperationList--; |
| 5816 return o; | 5884 return o; |
| 5817 } | 5885 } |
| 5818 | 5886 |
| 5819 checkOperationList(api.OperationList o) { | 5887 checkOperationList(api.OperationList o) { |
| 5820 buildCounterOperationList++; | 5888 buildCounterOperationList++; |
| 5821 if (buildCounterOperationList < 3) { | 5889 if (buildCounterOperationList < 3) { |
| 5822 unittest.expect(o.id, unittest.equals('foo')); | 5890 unittest.expect(o.id, unittest.equals('foo')); |
| 5823 checkUnnamed2339(o.items); | 5891 checkUnnamed2360(o.items); |
| 5824 unittest.expect(o.kind, unittest.equals('foo')); | 5892 unittest.expect(o.kind, unittest.equals('foo')); |
| 5825 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5893 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 5826 unittest.expect(o.selfLink, unittest.equals('foo')); | 5894 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 5827 } | 5895 } |
| 5828 buildCounterOperationList--; | 5896 buildCounterOperationList--; |
| 5829 } | 5897 } |
| 5830 | 5898 |
| 5831 buildUnnamed2340() { | 5899 buildUnnamed2361() { |
| 5832 var o = new core.List<api.Operation>(); | 5900 var o = new core.List<api.Operation>(); |
| 5833 o.add(buildOperation()); | 5901 o.add(buildOperation()); |
| 5834 o.add(buildOperation()); | 5902 o.add(buildOperation()); |
| 5835 return o; | 5903 return o; |
| 5836 } | 5904 } |
| 5837 | 5905 |
| 5838 checkUnnamed2340(core.List<api.Operation> o) { | 5906 checkUnnamed2361(core.List<api.Operation> o) { |
| 5839 unittest.expect(o, unittest.hasLength(2)); | 5907 unittest.expect(o, unittest.hasLength(2)); |
| 5840 checkOperation(o[0]); | 5908 checkOperation(o[0]); |
| 5841 checkOperation(o[1]); | 5909 checkOperation(o[1]); |
| 5842 } | 5910 } |
| 5843 | 5911 |
| 5844 core.int buildCounterOperationsScopedListWarningData = 0; | 5912 core.int buildCounterOperationsScopedListWarningData = 0; |
| 5845 buildOperationsScopedListWarningData() { | 5913 buildOperationsScopedListWarningData() { |
| 5846 var o = new api.OperationsScopedListWarningData(); | 5914 var o = new api.OperationsScopedListWarningData(); |
| 5847 buildCounterOperationsScopedListWarningData++; | 5915 buildCounterOperationsScopedListWarningData++; |
| 5848 if (buildCounterOperationsScopedListWarningData < 3) { | 5916 if (buildCounterOperationsScopedListWarningData < 3) { |
| 5849 o.key = "foo"; | 5917 o.key = "foo"; |
| 5850 o.value = "foo"; | 5918 o.value = "foo"; |
| 5851 } | 5919 } |
| 5852 buildCounterOperationsScopedListWarningData--; | 5920 buildCounterOperationsScopedListWarningData--; |
| 5853 return o; | 5921 return o; |
| 5854 } | 5922 } |
| 5855 | 5923 |
| 5856 checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) { | 5924 checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) { |
| 5857 buildCounterOperationsScopedListWarningData++; | 5925 buildCounterOperationsScopedListWarningData++; |
| 5858 if (buildCounterOperationsScopedListWarningData < 3) { | 5926 if (buildCounterOperationsScopedListWarningData < 3) { |
| 5859 unittest.expect(o.key, unittest.equals('foo')); | 5927 unittest.expect(o.key, unittest.equals('foo')); |
| 5860 unittest.expect(o.value, unittest.equals('foo')); | 5928 unittest.expect(o.value, unittest.equals('foo')); |
| 5861 } | 5929 } |
| 5862 buildCounterOperationsScopedListWarningData--; | 5930 buildCounterOperationsScopedListWarningData--; |
| 5863 } | 5931 } |
| 5864 | 5932 |
| 5865 buildUnnamed2341() { | 5933 buildUnnamed2362() { |
| 5866 var o = new core.List<api.OperationsScopedListWarningData>(); | 5934 var o = new core.List<api.OperationsScopedListWarningData>(); |
| 5867 o.add(buildOperationsScopedListWarningData()); | 5935 o.add(buildOperationsScopedListWarningData()); |
| 5868 o.add(buildOperationsScopedListWarningData()); | 5936 o.add(buildOperationsScopedListWarningData()); |
| 5869 return o; | 5937 return o; |
| 5870 } | 5938 } |
| 5871 | 5939 |
| 5872 checkUnnamed2341(core.List<api.OperationsScopedListWarningData> o) { | 5940 checkUnnamed2362(core.List<api.OperationsScopedListWarningData> o) { |
| 5873 unittest.expect(o, unittest.hasLength(2)); | 5941 unittest.expect(o, unittest.hasLength(2)); |
| 5874 checkOperationsScopedListWarningData(o[0]); | 5942 checkOperationsScopedListWarningData(o[0]); |
| 5875 checkOperationsScopedListWarningData(o[1]); | 5943 checkOperationsScopedListWarningData(o[1]); |
| 5876 } | 5944 } |
| 5877 | 5945 |
| 5878 core.int buildCounterOperationsScopedListWarning = 0; | 5946 core.int buildCounterOperationsScopedListWarning = 0; |
| 5879 buildOperationsScopedListWarning() { | 5947 buildOperationsScopedListWarning() { |
| 5880 var o = new api.OperationsScopedListWarning(); | 5948 var o = new api.OperationsScopedListWarning(); |
| 5881 buildCounterOperationsScopedListWarning++; | 5949 buildCounterOperationsScopedListWarning++; |
| 5882 if (buildCounterOperationsScopedListWarning < 3) { | 5950 if (buildCounterOperationsScopedListWarning < 3) { |
| 5883 o.code = "foo"; | 5951 o.code = "foo"; |
| 5884 o.data = buildUnnamed2341(); | 5952 o.data = buildUnnamed2362(); |
| 5885 o.message = "foo"; | 5953 o.message = "foo"; |
| 5886 } | 5954 } |
| 5887 buildCounterOperationsScopedListWarning--; | 5955 buildCounterOperationsScopedListWarning--; |
| 5888 return o; | 5956 return o; |
| 5889 } | 5957 } |
| 5890 | 5958 |
| 5891 checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { | 5959 checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { |
| 5892 buildCounterOperationsScopedListWarning++; | 5960 buildCounterOperationsScopedListWarning++; |
| 5893 if (buildCounterOperationsScopedListWarning < 3) { | 5961 if (buildCounterOperationsScopedListWarning < 3) { |
| 5894 unittest.expect(o.code, unittest.equals('foo')); | 5962 unittest.expect(o.code, unittest.equals('foo')); |
| 5895 checkUnnamed2341(o.data); | 5963 checkUnnamed2362(o.data); |
| 5896 unittest.expect(o.message, unittest.equals('foo')); | 5964 unittest.expect(o.message, unittest.equals('foo')); |
| 5897 } | 5965 } |
| 5898 buildCounterOperationsScopedListWarning--; | 5966 buildCounterOperationsScopedListWarning--; |
| 5899 } | 5967 } |
| 5900 | 5968 |
| 5901 core.int buildCounterOperationsScopedList = 0; | 5969 core.int buildCounterOperationsScopedList = 0; |
| 5902 buildOperationsScopedList() { | 5970 buildOperationsScopedList() { |
| 5903 var o = new api.OperationsScopedList(); | 5971 var o = new api.OperationsScopedList(); |
| 5904 buildCounterOperationsScopedList++; | 5972 buildCounterOperationsScopedList++; |
| 5905 if (buildCounterOperationsScopedList < 3) { | 5973 if (buildCounterOperationsScopedList < 3) { |
| 5906 o.operations = buildUnnamed2340(); | 5974 o.operations = buildUnnamed2361(); |
| 5907 o.warning = buildOperationsScopedListWarning(); | 5975 o.warning = buildOperationsScopedListWarning(); |
| 5908 } | 5976 } |
| 5909 buildCounterOperationsScopedList--; | 5977 buildCounterOperationsScopedList--; |
| 5910 return o; | 5978 return o; |
| 5911 } | 5979 } |
| 5912 | 5980 |
| 5913 checkOperationsScopedList(api.OperationsScopedList o) { | 5981 checkOperationsScopedList(api.OperationsScopedList o) { |
| 5914 buildCounterOperationsScopedList++; | 5982 buildCounterOperationsScopedList++; |
| 5915 if (buildCounterOperationsScopedList < 3) { | 5983 if (buildCounterOperationsScopedList < 3) { |
| 5916 checkUnnamed2340(o.operations); | 5984 checkUnnamed2361(o.operations); |
| 5917 checkOperationsScopedListWarning(o.warning); | 5985 checkOperationsScopedListWarning(o.warning); |
| 5918 } | 5986 } |
| 5919 buildCounterOperationsScopedList--; | 5987 buildCounterOperationsScopedList--; |
| 5920 } | 5988 } |
| 5921 | 5989 |
| 5922 buildUnnamed2342() { | 5990 buildUnnamed2363() { |
| 5923 var o = new core.List<api.PathRule>(); | 5991 var o = new core.List<api.PathRule>(); |
| 5924 o.add(buildPathRule()); | 5992 o.add(buildPathRule()); |
| 5925 o.add(buildPathRule()); | 5993 o.add(buildPathRule()); |
| 5926 return o; | 5994 return o; |
| 5927 } | 5995 } |
| 5928 | 5996 |
| 5929 checkUnnamed2342(core.List<api.PathRule> o) { | 5997 checkUnnamed2363(core.List<api.PathRule> o) { |
| 5930 unittest.expect(o, unittest.hasLength(2)); | 5998 unittest.expect(o, unittest.hasLength(2)); |
| 5931 checkPathRule(o[0]); | 5999 checkPathRule(o[0]); |
| 5932 checkPathRule(o[1]); | 6000 checkPathRule(o[1]); |
| 5933 } | 6001 } |
| 5934 | 6002 |
| 5935 core.int buildCounterPathMatcher = 0; | 6003 core.int buildCounterPathMatcher = 0; |
| 5936 buildPathMatcher() { | 6004 buildPathMatcher() { |
| 5937 var o = new api.PathMatcher(); | 6005 var o = new api.PathMatcher(); |
| 5938 buildCounterPathMatcher++; | 6006 buildCounterPathMatcher++; |
| 5939 if (buildCounterPathMatcher < 3) { | 6007 if (buildCounterPathMatcher < 3) { |
| 5940 o.defaultService = "foo"; | 6008 o.defaultService = "foo"; |
| 5941 o.description = "foo"; | 6009 o.description = "foo"; |
| 5942 o.name = "foo"; | 6010 o.name = "foo"; |
| 5943 o.pathRules = buildUnnamed2342(); | 6011 o.pathRules = buildUnnamed2363(); |
| 5944 } | 6012 } |
| 5945 buildCounterPathMatcher--; | 6013 buildCounterPathMatcher--; |
| 5946 return o; | 6014 return o; |
| 5947 } | 6015 } |
| 5948 | 6016 |
| 5949 checkPathMatcher(api.PathMatcher o) { | 6017 checkPathMatcher(api.PathMatcher o) { |
| 5950 buildCounterPathMatcher++; | 6018 buildCounterPathMatcher++; |
| 5951 if (buildCounterPathMatcher < 3) { | 6019 if (buildCounterPathMatcher < 3) { |
| 5952 unittest.expect(o.defaultService, unittest.equals('foo')); | 6020 unittest.expect(o.defaultService, unittest.equals('foo')); |
| 5953 unittest.expect(o.description, unittest.equals('foo')); | 6021 unittest.expect(o.description, unittest.equals('foo')); |
| 5954 unittest.expect(o.name, unittest.equals('foo')); | 6022 unittest.expect(o.name, unittest.equals('foo')); |
| 5955 checkUnnamed2342(o.pathRules); | 6023 checkUnnamed2363(o.pathRules); |
| 5956 } | 6024 } |
| 5957 buildCounterPathMatcher--; | 6025 buildCounterPathMatcher--; |
| 5958 } | 6026 } |
| 5959 | 6027 |
| 5960 buildUnnamed2343() { | 6028 buildUnnamed2364() { |
| 5961 var o = new core.List<core.String>(); | 6029 var o = new core.List<core.String>(); |
| 5962 o.add("foo"); | 6030 o.add("foo"); |
| 5963 o.add("foo"); | 6031 o.add("foo"); |
| 5964 return o; | 6032 return o; |
| 5965 } | 6033 } |
| 5966 | 6034 |
| 5967 checkUnnamed2343(core.List<core.String> o) { | 6035 checkUnnamed2364(core.List<core.String> o) { |
| 5968 unittest.expect(o, unittest.hasLength(2)); | 6036 unittest.expect(o, unittest.hasLength(2)); |
| 5969 unittest.expect(o[0], unittest.equals('foo')); | 6037 unittest.expect(o[0], unittest.equals('foo')); |
| 5970 unittest.expect(o[1], unittest.equals('foo')); | 6038 unittest.expect(o[1], unittest.equals('foo')); |
| 5971 } | 6039 } |
| 5972 | 6040 |
| 5973 core.int buildCounterPathRule = 0; | 6041 core.int buildCounterPathRule = 0; |
| 5974 buildPathRule() { | 6042 buildPathRule() { |
| 5975 var o = new api.PathRule(); | 6043 var o = new api.PathRule(); |
| 5976 buildCounterPathRule++; | 6044 buildCounterPathRule++; |
| 5977 if (buildCounterPathRule < 3) { | 6045 if (buildCounterPathRule < 3) { |
| 5978 o.paths = buildUnnamed2343(); | 6046 o.paths = buildUnnamed2364(); |
| 5979 o.service = "foo"; | 6047 o.service = "foo"; |
| 5980 } | 6048 } |
| 5981 buildCounterPathRule--; | 6049 buildCounterPathRule--; |
| 5982 return o; | 6050 return o; |
| 5983 } | 6051 } |
| 5984 | 6052 |
| 5985 checkPathRule(api.PathRule o) { | 6053 checkPathRule(api.PathRule o) { |
| 5986 buildCounterPathRule++; | 6054 buildCounterPathRule++; |
| 5987 if (buildCounterPathRule < 3) { | 6055 if (buildCounterPathRule < 3) { |
| 5988 checkUnnamed2343(o.paths); | 6056 checkUnnamed2364(o.paths); |
| 5989 unittest.expect(o.service, unittest.equals('foo')); | 6057 unittest.expect(o.service, unittest.equals('foo')); |
| 5990 } | 6058 } |
| 5991 buildCounterPathRule--; | 6059 buildCounterPathRule--; |
| 5992 } | 6060 } |
| 5993 | 6061 |
| 5994 buildUnnamed2344() { | 6062 buildUnnamed2365() { |
| 5995 var o = new core.List<core.String>(); | 6063 var o = new core.List<core.String>(); |
| 5996 o.add("foo"); | 6064 o.add("foo"); |
| 5997 o.add("foo"); | 6065 o.add("foo"); |
| 5998 return o; | 6066 return o; |
| 5999 } | 6067 } |
| 6000 | 6068 |
| 6001 checkUnnamed2344(core.List<core.String> o) { | 6069 checkUnnamed2365(core.List<core.String> o) { |
| 6002 unittest.expect(o, unittest.hasLength(2)); | 6070 unittest.expect(o, unittest.hasLength(2)); |
| 6003 unittest.expect(o[0], unittest.equals('foo')); | 6071 unittest.expect(o[0], unittest.equals('foo')); |
| 6004 unittest.expect(o[1], unittest.equals('foo')); | 6072 unittest.expect(o[1], unittest.equals('foo')); |
| 6005 } | 6073 } |
| 6006 | 6074 |
| 6007 buildUnnamed2345() { | 6075 buildUnnamed2366() { |
| 6008 var o = new core.List<api.Quota>(); | 6076 var o = new core.List<api.Quota>(); |
| 6009 o.add(buildQuota()); | 6077 o.add(buildQuota()); |
| 6010 o.add(buildQuota()); | 6078 o.add(buildQuota()); |
| 6011 return o; | 6079 return o; |
| 6012 } | 6080 } |
| 6013 | 6081 |
| 6014 checkUnnamed2345(core.List<api.Quota> o) { | 6082 checkUnnamed2366(core.List<api.Quota> o) { |
| 6015 unittest.expect(o, unittest.hasLength(2)); | 6083 unittest.expect(o, unittest.hasLength(2)); |
| 6016 checkQuota(o[0]); | 6084 checkQuota(o[0]); |
| 6017 checkQuota(o[1]); | 6085 checkQuota(o[1]); |
| 6018 } | 6086 } |
| 6019 | 6087 |
| 6020 core.int buildCounterProject = 0; | 6088 core.int buildCounterProject = 0; |
| 6021 buildProject() { | 6089 buildProject() { |
| 6022 var o = new api.Project(); | 6090 var o = new api.Project(); |
| 6023 buildCounterProject++; | 6091 buildCounterProject++; |
| 6024 if (buildCounterProject < 3) { | 6092 if (buildCounterProject < 3) { |
| 6025 o.commonInstanceMetadata = buildMetadata(); | 6093 o.commonInstanceMetadata = buildMetadata(); |
| 6026 o.creationTimestamp = "foo"; | 6094 o.creationTimestamp = "foo"; |
| 6027 o.defaultServiceAccount = "foo"; | 6095 o.defaultServiceAccount = "foo"; |
| 6028 o.description = "foo"; | 6096 o.description = "foo"; |
| 6029 o.enabledFeatures = buildUnnamed2344(); | 6097 o.enabledFeatures = buildUnnamed2365(); |
| 6030 o.id = "foo"; | 6098 o.id = "foo"; |
| 6031 o.kind = "foo"; | 6099 o.kind = "foo"; |
| 6032 o.name = "foo"; | 6100 o.name = "foo"; |
| 6033 o.quotas = buildUnnamed2345(); | 6101 o.quotas = buildUnnamed2366(); |
| 6034 o.selfLink = "foo"; | 6102 o.selfLink = "foo"; |
| 6035 o.usageExportLocation = buildUsageExportLocation(); | 6103 o.usageExportLocation = buildUsageExportLocation(); |
| 6036 o.xpnProjectStatus = "foo"; | 6104 o.xpnProjectStatus = "foo"; |
| 6037 } | 6105 } |
| 6038 buildCounterProject--; | 6106 buildCounterProject--; |
| 6039 return o; | 6107 return o; |
| 6040 } | 6108 } |
| 6041 | 6109 |
| 6042 checkProject(api.Project o) { | 6110 checkProject(api.Project o) { |
| 6043 buildCounterProject++; | 6111 buildCounterProject++; |
| 6044 if (buildCounterProject < 3) { | 6112 if (buildCounterProject < 3) { |
| 6045 checkMetadata(o.commonInstanceMetadata); | 6113 checkMetadata(o.commonInstanceMetadata); |
| 6046 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 6114 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 6047 unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); | 6115 unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); |
| 6048 unittest.expect(o.description, unittest.equals('foo')); | 6116 unittest.expect(o.description, unittest.equals('foo')); |
| 6049 checkUnnamed2344(o.enabledFeatures); | 6117 checkUnnamed2365(o.enabledFeatures); |
| 6050 unittest.expect(o.id, unittest.equals('foo')); | 6118 unittest.expect(o.id, unittest.equals('foo')); |
| 6051 unittest.expect(o.kind, unittest.equals('foo')); | 6119 unittest.expect(o.kind, unittest.equals('foo')); |
| 6052 unittest.expect(o.name, unittest.equals('foo')); | 6120 unittest.expect(o.name, unittest.equals('foo')); |
| 6053 checkUnnamed2345(o.quotas); | 6121 checkUnnamed2366(o.quotas); |
| 6054 unittest.expect(o.selfLink, unittest.equals('foo')); | 6122 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6055 checkUsageExportLocation(o.usageExportLocation); | 6123 checkUsageExportLocation(o.usageExportLocation); |
| 6056 unittest.expect(o.xpnProjectStatus, unittest.equals('foo')); | 6124 unittest.expect(o.xpnProjectStatus, unittest.equals('foo')); |
| 6057 } | 6125 } |
| 6058 buildCounterProject--; | 6126 buildCounterProject--; |
| 6059 } | 6127 } |
| 6060 | 6128 |
| 6061 core.int buildCounterProjectsDisableXpnResourceRequest = 0; | 6129 core.int buildCounterProjectsDisableXpnResourceRequest = 0; |
| 6062 buildProjectsDisableXpnResourceRequest() { | 6130 buildProjectsDisableXpnResourceRequest() { |
| 6063 var o = new api.ProjectsDisableXpnResourceRequest(); | 6131 var o = new api.ProjectsDisableXpnResourceRequest(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6089 } | 6157 } |
| 6090 | 6158 |
| 6091 checkProjectsEnableXpnResourceRequest(api.ProjectsEnableXpnResourceRequest o) { | 6159 checkProjectsEnableXpnResourceRequest(api.ProjectsEnableXpnResourceRequest o) { |
| 6092 buildCounterProjectsEnableXpnResourceRequest++; | 6160 buildCounterProjectsEnableXpnResourceRequest++; |
| 6093 if (buildCounterProjectsEnableXpnResourceRequest < 3) { | 6161 if (buildCounterProjectsEnableXpnResourceRequest < 3) { |
| 6094 checkXpnResourceId(o.xpnResource); | 6162 checkXpnResourceId(o.xpnResource); |
| 6095 } | 6163 } |
| 6096 buildCounterProjectsEnableXpnResourceRequest--; | 6164 buildCounterProjectsEnableXpnResourceRequest--; |
| 6097 } | 6165 } |
| 6098 | 6166 |
| 6099 buildUnnamed2346() { | 6167 buildUnnamed2367() { |
| 6100 var o = new core.List<api.XpnResourceId>(); | 6168 var o = new core.List<api.XpnResourceId>(); |
| 6101 o.add(buildXpnResourceId()); | 6169 o.add(buildXpnResourceId()); |
| 6102 o.add(buildXpnResourceId()); | 6170 o.add(buildXpnResourceId()); |
| 6103 return o; | 6171 return o; |
| 6104 } | 6172 } |
| 6105 | 6173 |
| 6106 checkUnnamed2346(core.List<api.XpnResourceId> o) { | 6174 checkUnnamed2367(core.List<api.XpnResourceId> o) { |
| 6107 unittest.expect(o, unittest.hasLength(2)); | 6175 unittest.expect(o, unittest.hasLength(2)); |
| 6108 checkXpnResourceId(o[0]); | 6176 checkXpnResourceId(o[0]); |
| 6109 checkXpnResourceId(o[1]); | 6177 checkXpnResourceId(o[1]); |
| 6110 } | 6178 } |
| 6111 | 6179 |
| 6112 core.int buildCounterProjectsGetXpnResources = 0; | 6180 core.int buildCounterProjectsGetXpnResources = 0; |
| 6113 buildProjectsGetXpnResources() { | 6181 buildProjectsGetXpnResources() { |
| 6114 var o = new api.ProjectsGetXpnResources(); | 6182 var o = new api.ProjectsGetXpnResources(); |
| 6115 buildCounterProjectsGetXpnResources++; | 6183 buildCounterProjectsGetXpnResources++; |
| 6116 if (buildCounterProjectsGetXpnResources < 3) { | 6184 if (buildCounterProjectsGetXpnResources < 3) { |
| 6117 o.kind = "foo"; | 6185 o.kind = "foo"; |
| 6118 o.nextPageToken = "foo"; | 6186 o.nextPageToken = "foo"; |
| 6119 o.resources = buildUnnamed2346(); | 6187 o.resources = buildUnnamed2367(); |
| 6120 } | 6188 } |
| 6121 buildCounterProjectsGetXpnResources--; | 6189 buildCounterProjectsGetXpnResources--; |
| 6122 return o; | 6190 return o; |
| 6123 } | 6191 } |
| 6124 | 6192 |
| 6125 checkProjectsGetXpnResources(api.ProjectsGetXpnResources o) { | 6193 checkProjectsGetXpnResources(api.ProjectsGetXpnResources o) { |
| 6126 buildCounterProjectsGetXpnResources++; | 6194 buildCounterProjectsGetXpnResources++; |
| 6127 if (buildCounterProjectsGetXpnResources < 3) { | 6195 if (buildCounterProjectsGetXpnResources < 3) { |
| 6128 unittest.expect(o.kind, unittest.equals('foo')); | 6196 unittest.expect(o.kind, unittest.equals('foo')); |
| 6129 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6197 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6130 checkUnnamed2346(o.resources); | 6198 checkUnnamed2367(o.resources); |
| 6131 } | 6199 } |
| 6132 buildCounterProjectsGetXpnResources--; | 6200 buildCounterProjectsGetXpnResources--; |
| 6133 } | 6201 } |
| 6134 | 6202 |
| 6135 core.int buildCounterProjectsListXpnHostsRequest = 0; | 6203 core.int buildCounterProjectsListXpnHostsRequest = 0; |
| 6136 buildProjectsListXpnHostsRequest() { | 6204 buildProjectsListXpnHostsRequest() { |
| 6137 var o = new api.ProjectsListXpnHostsRequest(); | 6205 var o = new api.ProjectsListXpnHostsRequest(); |
| 6138 buildCounterProjectsListXpnHostsRequest++; | 6206 buildCounterProjectsListXpnHostsRequest++; |
| 6139 if (buildCounterProjectsListXpnHostsRequest < 3) { | 6207 if (buildCounterProjectsListXpnHostsRequest < 3) { |
| 6140 o.organization = "foo"; | 6208 o.organization = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 6167 checkQuota(api.Quota o) { | 6235 checkQuota(api.Quota o) { |
| 6168 buildCounterQuota++; | 6236 buildCounterQuota++; |
| 6169 if (buildCounterQuota < 3) { | 6237 if (buildCounterQuota < 3) { |
| 6170 unittest.expect(o.limit, unittest.equals(42.0)); | 6238 unittest.expect(o.limit, unittest.equals(42.0)); |
| 6171 unittest.expect(o.metric, unittest.equals('foo')); | 6239 unittest.expect(o.metric, unittest.equals('foo')); |
| 6172 unittest.expect(o.usage, unittest.equals(42.0)); | 6240 unittest.expect(o.usage, unittest.equals(42.0)); |
| 6173 } | 6241 } |
| 6174 buildCounterQuota--; | 6242 buildCounterQuota--; |
| 6175 } | 6243 } |
| 6176 | 6244 |
| 6177 buildUnnamed2347() { | 6245 buildUnnamed2368() { |
| 6178 var o = new core.List<api.Quota>(); | 6246 var o = new core.List<api.Quota>(); |
| 6179 o.add(buildQuota()); | 6247 o.add(buildQuota()); |
| 6180 o.add(buildQuota()); | 6248 o.add(buildQuota()); |
| 6181 return o; | 6249 return o; |
| 6182 } | 6250 } |
| 6183 | 6251 |
| 6184 checkUnnamed2347(core.List<api.Quota> o) { | 6252 checkUnnamed2368(core.List<api.Quota> o) { |
| 6185 unittest.expect(o, unittest.hasLength(2)); | 6253 unittest.expect(o, unittest.hasLength(2)); |
| 6186 checkQuota(o[0]); | 6254 checkQuota(o[0]); |
| 6187 checkQuota(o[1]); | 6255 checkQuota(o[1]); |
| 6188 } | 6256 } |
| 6189 | 6257 |
| 6190 buildUnnamed2348() { | 6258 buildUnnamed2369() { |
| 6191 var o = new core.List<core.String>(); | 6259 var o = new core.List<core.String>(); |
| 6192 o.add("foo"); | 6260 o.add("foo"); |
| 6193 o.add("foo"); | 6261 o.add("foo"); |
| 6194 return o; | 6262 return o; |
| 6195 } | 6263 } |
| 6196 | 6264 |
| 6197 checkUnnamed2348(core.List<core.String> o) { | 6265 checkUnnamed2369(core.List<core.String> o) { |
| 6198 unittest.expect(o, unittest.hasLength(2)); | 6266 unittest.expect(o, unittest.hasLength(2)); |
| 6199 unittest.expect(o[0], unittest.equals('foo')); | 6267 unittest.expect(o[0], unittest.equals('foo')); |
| 6200 unittest.expect(o[1], unittest.equals('foo')); | 6268 unittest.expect(o[1], unittest.equals('foo')); |
| 6201 } | 6269 } |
| 6202 | 6270 |
| 6203 core.int buildCounterRegion = 0; | 6271 core.int buildCounterRegion = 0; |
| 6204 buildRegion() { | 6272 buildRegion() { |
| 6205 var o = new api.Region(); | 6273 var o = new api.Region(); |
| 6206 buildCounterRegion++; | 6274 buildCounterRegion++; |
| 6207 if (buildCounterRegion < 3) { | 6275 if (buildCounterRegion < 3) { |
| 6208 o.creationTimestamp = "foo"; | 6276 o.creationTimestamp = "foo"; |
| 6209 o.deprecated = buildDeprecationStatus(); | 6277 o.deprecated = buildDeprecationStatus(); |
| 6210 o.description = "foo"; | 6278 o.description = "foo"; |
| 6211 o.id = "foo"; | 6279 o.id = "foo"; |
| 6212 o.kind = "foo"; | 6280 o.kind = "foo"; |
| 6213 o.name = "foo"; | 6281 o.name = "foo"; |
| 6214 o.quotas = buildUnnamed2347(); | 6282 o.quotas = buildUnnamed2368(); |
| 6215 o.selfLink = "foo"; | 6283 o.selfLink = "foo"; |
| 6216 o.status = "foo"; | 6284 o.status = "foo"; |
| 6217 o.zones = buildUnnamed2348(); | 6285 o.zones = buildUnnamed2369(); |
| 6218 } | 6286 } |
| 6219 buildCounterRegion--; | 6287 buildCounterRegion--; |
| 6220 return o; | 6288 return o; |
| 6221 } | 6289 } |
| 6222 | 6290 |
| 6223 checkRegion(api.Region o) { | 6291 checkRegion(api.Region o) { |
| 6224 buildCounterRegion++; | 6292 buildCounterRegion++; |
| 6225 if (buildCounterRegion < 3) { | 6293 if (buildCounterRegion < 3) { |
| 6226 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 6294 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 6227 checkDeprecationStatus(o.deprecated); | 6295 checkDeprecationStatus(o.deprecated); |
| 6228 unittest.expect(o.description, unittest.equals('foo')); | 6296 unittest.expect(o.description, unittest.equals('foo')); |
| 6229 unittest.expect(o.id, unittest.equals('foo')); | 6297 unittest.expect(o.id, unittest.equals('foo')); |
| 6230 unittest.expect(o.kind, unittest.equals('foo')); | 6298 unittest.expect(o.kind, unittest.equals('foo')); |
| 6231 unittest.expect(o.name, unittest.equals('foo')); | 6299 unittest.expect(o.name, unittest.equals('foo')); |
| 6232 checkUnnamed2347(o.quotas); | 6300 checkUnnamed2368(o.quotas); |
| 6233 unittest.expect(o.selfLink, unittest.equals('foo')); | 6301 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6234 unittest.expect(o.status, unittest.equals('foo')); | 6302 unittest.expect(o.status, unittest.equals('foo')); |
| 6235 checkUnnamed2348(o.zones); | 6303 checkUnnamed2369(o.zones); |
| 6236 } | 6304 } |
| 6237 buildCounterRegion--; | 6305 buildCounterRegion--; |
| 6238 } | 6306 } |
| 6239 | 6307 |
| 6240 buildUnnamed2349() { | 6308 buildUnnamed2370() { |
| 6241 var o = new core.List<api.Autoscaler>(); | 6309 var o = new core.List<api.Autoscaler>(); |
| 6242 o.add(buildAutoscaler()); | 6310 o.add(buildAutoscaler()); |
| 6243 o.add(buildAutoscaler()); | 6311 o.add(buildAutoscaler()); |
| 6244 return o; | 6312 return o; |
| 6245 } | 6313 } |
| 6246 | 6314 |
| 6247 checkUnnamed2349(core.List<api.Autoscaler> o) { | 6315 checkUnnamed2370(core.List<api.Autoscaler> o) { |
| 6248 unittest.expect(o, unittest.hasLength(2)); | 6316 unittest.expect(o, unittest.hasLength(2)); |
| 6249 checkAutoscaler(o[0]); | 6317 checkAutoscaler(o[0]); |
| 6250 checkAutoscaler(o[1]); | 6318 checkAutoscaler(o[1]); |
| 6251 } | 6319 } |
| 6252 | 6320 |
| 6253 core.int buildCounterRegionAutoscalerList = 0; | 6321 core.int buildCounterRegionAutoscalerList = 0; |
| 6254 buildRegionAutoscalerList() { | 6322 buildRegionAutoscalerList() { |
| 6255 var o = new api.RegionAutoscalerList(); | 6323 var o = new api.RegionAutoscalerList(); |
| 6256 buildCounterRegionAutoscalerList++; | 6324 buildCounterRegionAutoscalerList++; |
| 6257 if (buildCounterRegionAutoscalerList < 3) { | 6325 if (buildCounterRegionAutoscalerList < 3) { |
| 6258 o.id = "foo"; | 6326 o.id = "foo"; |
| 6259 o.items = buildUnnamed2349(); | 6327 o.items = buildUnnamed2370(); |
| 6260 o.kind = "foo"; | 6328 o.kind = "foo"; |
| 6261 o.nextPageToken = "foo"; | 6329 o.nextPageToken = "foo"; |
| 6262 o.selfLink = "foo"; | 6330 o.selfLink = "foo"; |
| 6263 } | 6331 } |
| 6264 buildCounterRegionAutoscalerList--; | 6332 buildCounterRegionAutoscalerList--; |
| 6265 return o; | 6333 return o; |
| 6266 } | 6334 } |
| 6267 | 6335 |
| 6268 checkRegionAutoscalerList(api.RegionAutoscalerList o) { | 6336 checkRegionAutoscalerList(api.RegionAutoscalerList o) { |
| 6269 buildCounterRegionAutoscalerList++; | 6337 buildCounterRegionAutoscalerList++; |
| 6270 if (buildCounterRegionAutoscalerList < 3) { | 6338 if (buildCounterRegionAutoscalerList < 3) { |
| 6271 unittest.expect(o.id, unittest.equals('foo')); | 6339 unittest.expect(o.id, unittest.equals('foo')); |
| 6272 checkUnnamed2349(o.items); | 6340 checkUnnamed2370(o.items); |
| 6273 unittest.expect(o.kind, unittest.equals('foo')); | 6341 unittest.expect(o.kind, unittest.equals('foo')); |
| 6274 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6342 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6275 unittest.expect(o.selfLink, unittest.equals('foo')); | 6343 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6276 } | 6344 } |
| 6277 buildCounterRegionAutoscalerList--; | 6345 buildCounterRegionAutoscalerList--; |
| 6278 } | 6346 } |
| 6279 | 6347 |
| 6280 buildUnnamed2350() { | 6348 buildUnnamed2371() { |
| 6281 var o = new core.List<api.InstanceGroup>(); | 6349 var o = new core.List<api.InstanceGroup>(); |
| 6282 o.add(buildInstanceGroup()); | 6350 o.add(buildInstanceGroup()); |
| 6283 o.add(buildInstanceGroup()); | 6351 o.add(buildInstanceGroup()); |
| 6284 return o; | 6352 return o; |
| 6285 } | 6353 } |
| 6286 | 6354 |
| 6287 checkUnnamed2350(core.List<api.InstanceGroup> o) { | 6355 checkUnnamed2371(core.List<api.InstanceGroup> o) { |
| 6288 unittest.expect(o, unittest.hasLength(2)); | 6356 unittest.expect(o, unittest.hasLength(2)); |
| 6289 checkInstanceGroup(o[0]); | 6357 checkInstanceGroup(o[0]); |
| 6290 checkInstanceGroup(o[1]); | 6358 checkInstanceGroup(o[1]); |
| 6291 } | 6359 } |
| 6292 | 6360 |
| 6293 core.int buildCounterRegionInstanceGroupList = 0; | 6361 core.int buildCounterRegionInstanceGroupList = 0; |
| 6294 buildRegionInstanceGroupList() { | 6362 buildRegionInstanceGroupList() { |
| 6295 var o = new api.RegionInstanceGroupList(); | 6363 var o = new api.RegionInstanceGroupList(); |
| 6296 buildCounterRegionInstanceGroupList++; | 6364 buildCounterRegionInstanceGroupList++; |
| 6297 if (buildCounterRegionInstanceGroupList < 3) { | 6365 if (buildCounterRegionInstanceGroupList < 3) { |
| 6298 o.id = "foo"; | 6366 o.id = "foo"; |
| 6299 o.items = buildUnnamed2350(); | 6367 o.items = buildUnnamed2371(); |
| 6300 o.kind = "foo"; | 6368 o.kind = "foo"; |
| 6301 o.nextPageToken = "foo"; | 6369 o.nextPageToken = "foo"; |
| 6302 o.selfLink = "foo"; | 6370 o.selfLink = "foo"; |
| 6303 } | 6371 } |
| 6304 buildCounterRegionInstanceGroupList--; | 6372 buildCounterRegionInstanceGroupList--; |
| 6305 return o; | 6373 return o; |
| 6306 } | 6374 } |
| 6307 | 6375 |
| 6308 checkRegionInstanceGroupList(api.RegionInstanceGroupList o) { | 6376 checkRegionInstanceGroupList(api.RegionInstanceGroupList o) { |
| 6309 buildCounterRegionInstanceGroupList++; | 6377 buildCounterRegionInstanceGroupList++; |
| 6310 if (buildCounterRegionInstanceGroupList < 3) { | 6378 if (buildCounterRegionInstanceGroupList < 3) { |
| 6311 unittest.expect(o.id, unittest.equals('foo')); | 6379 unittest.expect(o.id, unittest.equals('foo')); |
| 6312 checkUnnamed2350(o.items); | 6380 checkUnnamed2371(o.items); |
| 6313 unittest.expect(o.kind, unittest.equals('foo')); | 6381 unittest.expect(o.kind, unittest.equals('foo')); |
| 6314 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6382 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6315 unittest.expect(o.selfLink, unittest.equals('foo')); | 6383 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6316 } | 6384 } |
| 6317 buildCounterRegionInstanceGroupList--; | 6385 buildCounterRegionInstanceGroupList--; |
| 6318 } | 6386 } |
| 6319 | 6387 |
| 6320 buildUnnamed2351() { | 6388 buildUnnamed2372() { |
| 6321 var o = new core.List<api.InstanceGroupManager>(); | 6389 var o = new core.List<api.InstanceGroupManager>(); |
| 6322 o.add(buildInstanceGroupManager()); | 6390 o.add(buildInstanceGroupManager()); |
| 6323 o.add(buildInstanceGroupManager()); | 6391 o.add(buildInstanceGroupManager()); |
| 6324 return o; | 6392 return o; |
| 6325 } | 6393 } |
| 6326 | 6394 |
| 6327 checkUnnamed2351(core.List<api.InstanceGroupManager> o) { | 6395 checkUnnamed2372(core.List<api.InstanceGroupManager> o) { |
| 6328 unittest.expect(o, unittest.hasLength(2)); | 6396 unittest.expect(o, unittest.hasLength(2)); |
| 6329 checkInstanceGroupManager(o[0]); | 6397 checkInstanceGroupManager(o[0]); |
| 6330 checkInstanceGroupManager(o[1]); | 6398 checkInstanceGroupManager(o[1]); |
| 6331 } | 6399 } |
| 6332 | 6400 |
| 6333 core.int buildCounterRegionInstanceGroupManagerList = 0; | 6401 core.int buildCounterRegionInstanceGroupManagerList = 0; |
| 6334 buildRegionInstanceGroupManagerList() { | 6402 buildRegionInstanceGroupManagerList() { |
| 6335 var o = new api.RegionInstanceGroupManagerList(); | 6403 var o = new api.RegionInstanceGroupManagerList(); |
| 6336 buildCounterRegionInstanceGroupManagerList++; | 6404 buildCounterRegionInstanceGroupManagerList++; |
| 6337 if (buildCounterRegionInstanceGroupManagerList < 3) { | 6405 if (buildCounterRegionInstanceGroupManagerList < 3) { |
| 6338 o.id = "foo"; | 6406 o.id = "foo"; |
| 6339 o.items = buildUnnamed2351(); | 6407 o.items = buildUnnamed2372(); |
| 6340 o.kind = "foo"; | 6408 o.kind = "foo"; |
| 6341 o.nextPageToken = "foo"; | 6409 o.nextPageToken = "foo"; |
| 6342 o.selfLink = "foo"; | 6410 o.selfLink = "foo"; |
| 6343 } | 6411 } |
| 6344 buildCounterRegionInstanceGroupManagerList--; | 6412 buildCounterRegionInstanceGroupManagerList--; |
| 6345 return o; | 6413 return o; |
| 6346 } | 6414 } |
| 6347 | 6415 |
| 6348 checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) { | 6416 checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) { |
| 6349 buildCounterRegionInstanceGroupManagerList++; | 6417 buildCounterRegionInstanceGroupManagerList++; |
| 6350 if (buildCounterRegionInstanceGroupManagerList < 3) { | 6418 if (buildCounterRegionInstanceGroupManagerList < 3) { |
| 6351 unittest.expect(o.id, unittest.equals('foo')); | 6419 unittest.expect(o.id, unittest.equals('foo')); |
| 6352 checkUnnamed2351(o.items); | 6420 checkUnnamed2372(o.items); |
| 6353 unittest.expect(o.kind, unittest.equals('foo')); | 6421 unittest.expect(o.kind, unittest.equals('foo')); |
| 6354 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6422 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6355 unittest.expect(o.selfLink, unittest.equals('foo')); | 6423 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6356 } | 6424 } |
| 6357 buildCounterRegionInstanceGroupManagerList--; | 6425 buildCounterRegionInstanceGroupManagerList--; |
| 6358 } | 6426 } |
| 6359 | 6427 |
| 6360 buildUnnamed2352() { | 6428 buildUnnamed2373() { |
| 6361 var o = new core.List<core.String>(); | 6429 var o = new core.List<core.String>(); |
| 6362 o.add("foo"); | 6430 o.add("foo"); |
| 6363 o.add("foo"); | 6431 o.add("foo"); |
| 6364 return o; | 6432 return o; |
| 6365 } | 6433 } |
| 6366 | 6434 |
| 6367 checkUnnamed2352(core.List<core.String> o) { | 6435 checkUnnamed2373(core.List<core.String> o) { |
| 6368 unittest.expect(o, unittest.hasLength(2)); | 6436 unittest.expect(o, unittest.hasLength(2)); |
| 6369 unittest.expect(o[0], unittest.equals('foo')); | 6437 unittest.expect(o[0], unittest.equals('foo')); |
| 6370 unittest.expect(o[1], unittest.equals('foo')); | 6438 unittest.expect(o[1], unittest.equals('foo')); |
| 6371 } | 6439 } |
| 6372 | 6440 |
| 6373 core.int buildCounterRegionInstanceGroupManagersAbandonInstancesRequest = 0; | 6441 core.int buildCounterRegionInstanceGroupManagersAbandonInstancesRequest = 0; |
| 6374 buildRegionInstanceGroupManagersAbandonInstancesRequest() { | 6442 buildRegionInstanceGroupManagersAbandonInstancesRequest() { |
| 6375 var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); | 6443 var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); |
| 6376 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; | 6444 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; |
| 6377 if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { | 6445 if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { |
| 6378 o.instances = buildUnnamed2352(); | 6446 o.instances = buildUnnamed2373(); |
| 6379 } | 6447 } |
| 6380 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; | 6448 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; |
| 6381 return o; | 6449 return o; |
| 6382 } | 6450 } |
| 6383 | 6451 |
| 6384 checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupM
anagersAbandonInstancesRequest o) { | 6452 checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupM
anagersAbandonInstancesRequest o) { |
| 6385 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; | 6453 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; |
| 6386 if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { | 6454 if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { |
| 6387 checkUnnamed2352(o.instances); | 6455 checkUnnamed2373(o.instances); |
| 6388 } | 6456 } |
| 6389 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; | 6457 buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; |
| 6390 } | 6458 } |
| 6391 | 6459 |
| 6392 buildUnnamed2353() { | 6460 buildUnnamed2374() { |
| 6393 var o = new core.List<core.String>(); | 6461 var o = new core.List<core.String>(); |
| 6394 o.add("foo"); | 6462 o.add("foo"); |
| 6395 o.add("foo"); | 6463 o.add("foo"); |
| 6396 return o; | 6464 return o; |
| 6397 } | 6465 } |
| 6398 | 6466 |
| 6399 checkUnnamed2353(core.List<core.String> o) { | 6467 checkUnnamed2374(core.List<core.String> o) { |
| 6400 unittest.expect(o, unittest.hasLength(2)); | 6468 unittest.expect(o, unittest.hasLength(2)); |
| 6401 unittest.expect(o[0], unittest.equals('foo')); | 6469 unittest.expect(o[0], unittest.equals('foo')); |
| 6402 unittest.expect(o[1], unittest.equals('foo')); | 6470 unittest.expect(o[1], unittest.equals('foo')); |
| 6403 } | 6471 } |
| 6404 | 6472 |
| 6405 core.int buildCounterRegionInstanceGroupManagersDeleteInstancesRequest = 0; | 6473 core.int buildCounterRegionInstanceGroupManagersDeleteInstancesRequest = 0; |
| 6406 buildRegionInstanceGroupManagersDeleteInstancesRequest() { | 6474 buildRegionInstanceGroupManagersDeleteInstancesRequest() { |
| 6407 var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); | 6475 var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); |
| 6408 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; | 6476 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; |
| 6409 if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { | 6477 if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { |
| 6410 o.instances = buildUnnamed2353(); | 6478 o.instances = buildUnnamed2374(); |
| 6411 } | 6479 } |
| 6412 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; | 6480 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; |
| 6413 return o; | 6481 return o; |
| 6414 } | 6482 } |
| 6415 | 6483 |
| 6416 checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupMa
nagersDeleteInstancesRequest o) { | 6484 checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupMa
nagersDeleteInstancesRequest o) { |
| 6417 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; | 6485 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; |
| 6418 if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { | 6486 if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { |
| 6419 checkUnnamed2353(o.instances); | 6487 checkUnnamed2374(o.instances); |
| 6420 } | 6488 } |
| 6421 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; | 6489 buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; |
| 6422 } | 6490 } |
| 6423 | 6491 |
| 6424 buildUnnamed2354() { | 6492 buildUnnamed2375() { |
| 6425 var o = new core.List<api.ManagedInstance>(); | 6493 var o = new core.List<api.ManagedInstance>(); |
| 6426 o.add(buildManagedInstance()); | 6494 o.add(buildManagedInstance()); |
| 6427 o.add(buildManagedInstance()); | 6495 o.add(buildManagedInstance()); |
| 6428 return o; | 6496 return o; |
| 6429 } | 6497 } |
| 6430 | 6498 |
| 6431 checkUnnamed2354(core.List<api.ManagedInstance> o) { | 6499 checkUnnamed2375(core.List<api.ManagedInstance> o) { |
| 6432 unittest.expect(o, unittest.hasLength(2)); | 6500 unittest.expect(o, unittest.hasLength(2)); |
| 6433 checkManagedInstance(o[0]); | 6501 checkManagedInstance(o[0]); |
| 6434 checkManagedInstance(o[1]); | 6502 checkManagedInstance(o[1]); |
| 6435 } | 6503 } |
| 6436 | 6504 |
| 6437 core.int buildCounterRegionInstanceGroupManagersListInstancesResponse = 0; | 6505 core.int buildCounterRegionInstanceGroupManagersListInstancesResponse = 0; |
| 6438 buildRegionInstanceGroupManagersListInstancesResponse() { | 6506 buildRegionInstanceGroupManagersListInstancesResponse() { |
| 6439 var o = new api.RegionInstanceGroupManagersListInstancesResponse(); | 6507 var o = new api.RegionInstanceGroupManagersListInstancesResponse(); |
| 6440 buildCounterRegionInstanceGroupManagersListInstancesResponse++; | 6508 buildCounterRegionInstanceGroupManagersListInstancesResponse++; |
| 6441 if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { | 6509 if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { |
| 6442 o.managedInstances = buildUnnamed2354(); | 6510 o.managedInstances = buildUnnamed2375(); |
| 6443 } | 6511 } |
| 6444 buildCounterRegionInstanceGroupManagersListInstancesResponse--; | 6512 buildCounterRegionInstanceGroupManagersListInstancesResponse--; |
| 6445 return o; | 6513 return o; |
| 6446 } | 6514 } |
| 6447 | 6515 |
| 6448 checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupMan
agersListInstancesResponse o) { | 6516 checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupMan
agersListInstancesResponse o) { |
| 6449 buildCounterRegionInstanceGroupManagersListInstancesResponse++; | 6517 buildCounterRegionInstanceGroupManagersListInstancesResponse++; |
| 6450 if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { | 6518 if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { |
| 6451 checkUnnamed2354(o.managedInstances); | 6519 checkUnnamed2375(o.managedInstances); |
| 6452 } | 6520 } |
| 6453 buildCounterRegionInstanceGroupManagersListInstancesResponse--; | 6521 buildCounterRegionInstanceGroupManagersListInstancesResponse--; |
| 6454 } | 6522 } |
| 6455 | 6523 |
| 6456 buildUnnamed2355() { | 6524 buildUnnamed2376() { |
| 6457 var o = new core.List<core.String>(); | 6525 var o = new core.List<core.String>(); |
| 6458 o.add("foo"); | 6526 o.add("foo"); |
| 6459 o.add("foo"); | 6527 o.add("foo"); |
| 6460 return o; | 6528 return o; |
| 6461 } | 6529 } |
| 6462 | 6530 |
| 6463 checkUnnamed2355(core.List<core.String> o) { | 6531 checkUnnamed2376(core.List<core.String> o) { |
| 6464 unittest.expect(o, unittest.hasLength(2)); | 6532 unittest.expect(o, unittest.hasLength(2)); |
| 6465 unittest.expect(o[0], unittest.equals('foo')); | 6533 unittest.expect(o[0], unittest.equals('foo')); |
| 6466 unittest.expect(o[1], unittest.equals('foo')); | 6534 unittest.expect(o[1], unittest.equals('foo')); |
| 6467 } | 6535 } |
| 6468 | 6536 |
| 6469 core.int buildCounterRegionInstanceGroupManagersRecreateRequest = 0; | 6537 core.int buildCounterRegionInstanceGroupManagersRecreateRequest = 0; |
| 6470 buildRegionInstanceGroupManagersRecreateRequest() { | 6538 buildRegionInstanceGroupManagersRecreateRequest() { |
| 6471 var o = new api.RegionInstanceGroupManagersRecreateRequest(); | 6539 var o = new api.RegionInstanceGroupManagersRecreateRequest(); |
| 6472 buildCounterRegionInstanceGroupManagersRecreateRequest++; | 6540 buildCounterRegionInstanceGroupManagersRecreateRequest++; |
| 6473 if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { | 6541 if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { |
| 6474 o.instances = buildUnnamed2355(); | 6542 o.instances = buildUnnamed2376(); |
| 6475 } | 6543 } |
| 6476 buildCounterRegionInstanceGroupManagersRecreateRequest--; | 6544 buildCounterRegionInstanceGroupManagersRecreateRequest--; |
| 6477 return o; | 6545 return o; |
| 6478 } | 6546 } |
| 6479 | 6547 |
| 6480 checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersR
ecreateRequest o) { | 6548 checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersR
ecreateRequest o) { |
| 6481 buildCounterRegionInstanceGroupManagersRecreateRequest++; | 6549 buildCounterRegionInstanceGroupManagersRecreateRequest++; |
| 6482 if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { | 6550 if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { |
| 6483 checkUnnamed2355(o.instances); | 6551 checkUnnamed2376(o.instances); |
| 6484 } | 6552 } |
| 6485 buildCounterRegionInstanceGroupManagersRecreateRequest--; | 6553 buildCounterRegionInstanceGroupManagersRecreateRequest--; |
| 6486 } | 6554 } |
| 6487 | 6555 |
| 6488 buildUnnamed2356() { | 6556 buildUnnamed2377() { |
| 6489 var o = new core.List<core.String>(); | 6557 var o = new core.List<core.String>(); |
| 6490 o.add("foo"); | 6558 o.add("foo"); |
| 6491 o.add("foo"); | 6559 o.add("foo"); |
| 6492 return o; | 6560 return o; |
| 6493 } | 6561 } |
| 6494 | 6562 |
| 6495 checkUnnamed2356(core.List<core.String> o) { | 6563 checkUnnamed2377(core.List<core.String> o) { |
| 6496 unittest.expect(o, unittest.hasLength(2)); | 6564 unittest.expect(o, unittest.hasLength(2)); |
| 6497 unittest.expect(o[0], unittest.equals('foo')); | 6565 unittest.expect(o[0], unittest.equals('foo')); |
| 6498 unittest.expect(o[1], unittest.equals('foo')); | 6566 unittest.expect(o[1], unittest.equals('foo')); |
| 6499 } | 6567 } |
| 6500 | 6568 |
| 6501 core.int buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest = 0; | 6569 core.int buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest = 0; |
| 6502 buildRegionInstanceGroupManagersSetTargetPoolsRequest() { | 6570 buildRegionInstanceGroupManagersSetTargetPoolsRequest() { |
| 6503 var o = new api.RegionInstanceGroupManagersSetTargetPoolsRequest(); | 6571 var o = new api.RegionInstanceGroupManagersSetTargetPoolsRequest(); |
| 6504 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; | 6572 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; |
| 6505 if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { | 6573 if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { |
| 6506 o.fingerprint = "foo"; | 6574 o.fingerprint = "foo"; |
| 6507 o.targetPools = buildUnnamed2356(); | 6575 o.targetPools = buildUnnamed2377(); |
| 6508 } | 6576 } |
| 6509 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; | 6577 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; |
| 6510 return o; | 6578 return o; |
| 6511 } | 6579 } |
| 6512 | 6580 |
| 6513 checkRegionInstanceGroupManagersSetTargetPoolsRequest(api.RegionInstanceGroupMan
agersSetTargetPoolsRequest o) { | 6581 checkRegionInstanceGroupManagersSetTargetPoolsRequest(api.RegionInstanceGroupMan
agersSetTargetPoolsRequest o) { |
| 6514 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; | 6582 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; |
| 6515 if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { | 6583 if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { |
| 6516 unittest.expect(o.fingerprint, unittest.equals('foo')); | 6584 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 6517 checkUnnamed2356(o.targetPools); | 6585 checkUnnamed2377(o.targetPools); |
| 6518 } | 6586 } |
| 6519 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; | 6587 buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; |
| 6520 } | 6588 } |
| 6521 | 6589 |
| 6522 core.int buildCounterRegionInstanceGroupManagersSetTemplateRequest = 0; | 6590 core.int buildCounterRegionInstanceGroupManagersSetTemplateRequest = 0; |
| 6523 buildRegionInstanceGroupManagersSetTemplateRequest() { | 6591 buildRegionInstanceGroupManagersSetTemplateRequest() { |
| 6524 var o = new api.RegionInstanceGroupManagersSetTemplateRequest(); | 6592 var o = new api.RegionInstanceGroupManagersSetTemplateRequest(); |
| 6525 buildCounterRegionInstanceGroupManagersSetTemplateRequest++; | 6593 buildCounterRegionInstanceGroupManagersSetTemplateRequest++; |
| 6526 if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { | 6594 if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { |
| 6527 o.instanceTemplate = "foo"; | 6595 o.instanceTemplate = "foo"; |
| 6528 } | 6596 } |
| 6529 buildCounterRegionInstanceGroupManagersSetTemplateRequest--; | 6597 buildCounterRegionInstanceGroupManagersSetTemplateRequest--; |
| 6530 return o; | 6598 return o; |
| 6531 } | 6599 } |
| 6532 | 6600 |
| 6533 checkRegionInstanceGroupManagersSetTemplateRequest(api.RegionInstanceGroupManage
rsSetTemplateRequest o) { | 6601 checkRegionInstanceGroupManagersSetTemplateRequest(api.RegionInstanceGroupManage
rsSetTemplateRequest o) { |
| 6534 buildCounterRegionInstanceGroupManagersSetTemplateRequest++; | 6602 buildCounterRegionInstanceGroupManagersSetTemplateRequest++; |
| 6535 if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { | 6603 if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { |
| 6536 unittest.expect(o.instanceTemplate, unittest.equals('foo')); | 6604 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
| 6537 } | 6605 } |
| 6538 buildCounterRegionInstanceGroupManagersSetTemplateRequest--; | 6606 buildCounterRegionInstanceGroupManagersSetTemplateRequest--; |
| 6539 } | 6607 } |
| 6540 | 6608 |
| 6541 buildUnnamed2357() { | 6609 buildUnnamed2378() { |
| 6542 var o = new core.List<api.InstanceWithNamedPorts>(); | 6610 var o = new core.List<api.InstanceWithNamedPorts>(); |
| 6543 o.add(buildInstanceWithNamedPorts()); | 6611 o.add(buildInstanceWithNamedPorts()); |
| 6544 o.add(buildInstanceWithNamedPorts()); | 6612 o.add(buildInstanceWithNamedPorts()); |
| 6545 return o; | 6613 return o; |
| 6546 } | 6614 } |
| 6547 | 6615 |
| 6548 checkUnnamed2357(core.List<api.InstanceWithNamedPorts> o) { | 6616 checkUnnamed2378(core.List<api.InstanceWithNamedPorts> o) { |
| 6549 unittest.expect(o, unittest.hasLength(2)); | 6617 unittest.expect(o, unittest.hasLength(2)); |
| 6550 checkInstanceWithNamedPorts(o[0]); | 6618 checkInstanceWithNamedPorts(o[0]); |
| 6551 checkInstanceWithNamedPorts(o[1]); | 6619 checkInstanceWithNamedPorts(o[1]); |
| 6552 } | 6620 } |
| 6553 | 6621 |
| 6554 core.int buildCounterRegionInstanceGroupsListInstances = 0; | 6622 core.int buildCounterRegionInstanceGroupsListInstances = 0; |
| 6555 buildRegionInstanceGroupsListInstances() { | 6623 buildRegionInstanceGroupsListInstances() { |
| 6556 var o = new api.RegionInstanceGroupsListInstances(); | 6624 var o = new api.RegionInstanceGroupsListInstances(); |
| 6557 buildCounterRegionInstanceGroupsListInstances++; | 6625 buildCounterRegionInstanceGroupsListInstances++; |
| 6558 if (buildCounterRegionInstanceGroupsListInstances < 3) { | 6626 if (buildCounterRegionInstanceGroupsListInstances < 3) { |
| 6559 o.id = "foo"; | 6627 o.id = "foo"; |
| 6560 o.items = buildUnnamed2357(); | 6628 o.items = buildUnnamed2378(); |
| 6561 o.kind = "foo"; | 6629 o.kind = "foo"; |
| 6562 o.nextPageToken = "foo"; | 6630 o.nextPageToken = "foo"; |
| 6563 o.selfLink = "foo"; | 6631 o.selfLink = "foo"; |
| 6564 } | 6632 } |
| 6565 buildCounterRegionInstanceGroupsListInstances--; | 6633 buildCounterRegionInstanceGroupsListInstances--; |
| 6566 return o; | 6634 return o; |
| 6567 } | 6635 } |
| 6568 | 6636 |
| 6569 checkRegionInstanceGroupsListInstances(api.RegionInstanceGroupsListInstances o)
{ | 6637 checkRegionInstanceGroupsListInstances(api.RegionInstanceGroupsListInstances o)
{ |
| 6570 buildCounterRegionInstanceGroupsListInstances++; | 6638 buildCounterRegionInstanceGroupsListInstances++; |
| 6571 if (buildCounterRegionInstanceGroupsListInstances < 3) { | 6639 if (buildCounterRegionInstanceGroupsListInstances < 3) { |
| 6572 unittest.expect(o.id, unittest.equals('foo')); | 6640 unittest.expect(o.id, unittest.equals('foo')); |
| 6573 checkUnnamed2357(o.items); | 6641 checkUnnamed2378(o.items); |
| 6574 unittest.expect(o.kind, unittest.equals('foo')); | 6642 unittest.expect(o.kind, unittest.equals('foo')); |
| 6575 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6643 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6576 unittest.expect(o.selfLink, unittest.equals('foo')); | 6644 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6577 } | 6645 } |
| 6578 buildCounterRegionInstanceGroupsListInstances--; | 6646 buildCounterRegionInstanceGroupsListInstances--; |
| 6579 } | 6647 } |
| 6580 | 6648 |
| 6581 core.int buildCounterRegionInstanceGroupsListInstancesRequest = 0; | 6649 core.int buildCounterRegionInstanceGroupsListInstancesRequest = 0; |
| 6582 buildRegionInstanceGroupsListInstancesRequest() { | 6650 buildRegionInstanceGroupsListInstancesRequest() { |
| 6583 var o = new api.RegionInstanceGroupsListInstancesRequest(); | 6651 var o = new api.RegionInstanceGroupsListInstancesRequest(); |
| 6584 buildCounterRegionInstanceGroupsListInstancesRequest++; | 6652 buildCounterRegionInstanceGroupsListInstancesRequest++; |
| 6585 if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { | 6653 if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { |
| 6586 o.instanceState = "foo"; | 6654 o.instanceState = "foo"; |
| 6587 o.portName = "foo"; | 6655 o.portName = "foo"; |
| 6588 } | 6656 } |
| 6589 buildCounterRegionInstanceGroupsListInstancesRequest--; | 6657 buildCounterRegionInstanceGroupsListInstancesRequest--; |
| 6590 return o; | 6658 return o; |
| 6591 } | 6659 } |
| 6592 | 6660 |
| 6593 checkRegionInstanceGroupsListInstancesRequest(api.RegionInstanceGroupsListInstan
cesRequest o) { | 6661 checkRegionInstanceGroupsListInstancesRequest(api.RegionInstanceGroupsListInstan
cesRequest o) { |
| 6594 buildCounterRegionInstanceGroupsListInstancesRequest++; | 6662 buildCounterRegionInstanceGroupsListInstancesRequest++; |
| 6595 if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { | 6663 if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { |
| 6596 unittest.expect(o.instanceState, unittest.equals('foo')); | 6664 unittest.expect(o.instanceState, unittest.equals('foo')); |
| 6597 unittest.expect(o.portName, unittest.equals('foo')); | 6665 unittest.expect(o.portName, unittest.equals('foo')); |
| 6598 } | 6666 } |
| 6599 buildCounterRegionInstanceGroupsListInstancesRequest--; | 6667 buildCounterRegionInstanceGroupsListInstancesRequest--; |
| 6600 } | 6668 } |
| 6601 | 6669 |
| 6602 buildUnnamed2358() { | 6670 buildUnnamed2379() { |
| 6603 var o = new core.List<api.NamedPort>(); | 6671 var o = new core.List<api.NamedPort>(); |
| 6604 o.add(buildNamedPort()); | 6672 o.add(buildNamedPort()); |
| 6605 o.add(buildNamedPort()); | 6673 o.add(buildNamedPort()); |
| 6606 return o; | 6674 return o; |
| 6607 } | 6675 } |
| 6608 | 6676 |
| 6609 checkUnnamed2358(core.List<api.NamedPort> o) { | 6677 checkUnnamed2379(core.List<api.NamedPort> o) { |
| 6610 unittest.expect(o, unittest.hasLength(2)); | 6678 unittest.expect(o, unittest.hasLength(2)); |
| 6611 checkNamedPort(o[0]); | 6679 checkNamedPort(o[0]); |
| 6612 checkNamedPort(o[1]); | 6680 checkNamedPort(o[1]); |
| 6613 } | 6681 } |
| 6614 | 6682 |
| 6615 core.int buildCounterRegionInstanceGroupsSetNamedPortsRequest = 0; | 6683 core.int buildCounterRegionInstanceGroupsSetNamedPortsRequest = 0; |
| 6616 buildRegionInstanceGroupsSetNamedPortsRequest() { | 6684 buildRegionInstanceGroupsSetNamedPortsRequest() { |
| 6617 var o = new api.RegionInstanceGroupsSetNamedPortsRequest(); | 6685 var o = new api.RegionInstanceGroupsSetNamedPortsRequest(); |
| 6618 buildCounterRegionInstanceGroupsSetNamedPortsRequest++; | 6686 buildCounterRegionInstanceGroupsSetNamedPortsRequest++; |
| 6619 if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { | 6687 if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { |
| 6620 o.fingerprint = "foo"; | 6688 o.fingerprint = "foo"; |
| 6621 o.namedPorts = buildUnnamed2358(); | 6689 o.namedPorts = buildUnnamed2379(); |
| 6622 } | 6690 } |
| 6623 buildCounterRegionInstanceGroupsSetNamedPortsRequest--; | 6691 buildCounterRegionInstanceGroupsSetNamedPortsRequest--; |
| 6624 return o; | 6692 return o; |
| 6625 } | 6693 } |
| 6626 | 6694 |
| 6627 checkRegionInstanceGroupsSetNamedPortsRequest(api.RegionInstanceGroupsSetNamedPo
rtsRequest o) { | 6695 checkRegionInstanceGroupsSetNamedPortsRequest(api.RegionInstanceGroupsSetNamedPo
rtsRequest o) { |
| 6628 buildCounterRegionInstanceGroupsSetNamedPortsRequest++; | 6696 buildCounterRegionInstanceGroupsSetNamedPortsRequest++; |
| 6629 if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { | 6697 if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { |
| 6630 unittest.expect(o.fingerprint, unittest.equals('foo')); | 6698 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 6631 checkUnnamed2358(o.namedPorts); | 6699 checkUnnamed2379(o.namedPorts); |
| 6632 } | 6700 } |
| 6633 buildCounterRegionInstanceGroupsSetNamedPortsRequest--; | 6701 buildCounterRegionInstanceGroupsSetNamedPortsRequest--; |
| 6634 } | 6702 } |
| 6635 | 6703 |
| 6636 buildUnnamed2359() { | 6704 buildUnnamed2380() { |
| 6637 var o = new core.List<api.Region>(); | 6705 var o = new core.List<api.Region>(); |
| 6638 o.add(buildRegion()); | 6706 o.add(buildRegion()); |
| 6639 o.add(buildRegion()); | 6707 o.add(buildRegion()); |
| 6640 return o; | 6708 return o; |
| 6641 } | 6709 } |
| 6642 | 6710 |
| 6643 checkUnnamed2359(core.List<api.Region> o) { | 6711 checkUnnamed2380(core.List<api.Region> o) { |
| 6644 unittest.expect(o, unittest.hasLength(2)); | 6712 unittest.expect(o, unittest.hasLength(2)); |
| 6645 checkRegion(o[0]); | 6713 checkRegion(o[0]); |
| 6646 checkRegion(o[1]); | 6714 checkRegion(o[1]); |
| 6647 } | 6715 } |
| 6648 | 6716 |
| 6649 core.int buildCounterRegionList = 0; | 6717 core.int buildCounterRegionList = 0; |
| 6650 buildRegionList() { | 6718 buildRegionList() { |
| 6651 var o = new api.RegionList(); | 6719 var o = new api.RegionList(); |
| 6652 buildCounterRegionList++; | 6720 buildCounterRegionList++; |
| 6653 if (buildCounterRegionList < 3) { | 6721 if (buildCounterRegionList < 3) { |
| 6654 o.id = "foo"; | 6722 o.id = "foo"; |
| 6655 o.items = buildUnnamed2359(); | 6723 o.items = buildUnnamed2380(); |
| 6656 o.kind = "foo"; | 6724 o.kind = "foo"; |
| 6657 o.nextPageToken = "foo"; | 6725 o.nextPageToken = "foo"; |
| 6658 o.selfLink = "foo"; | 6726 o.selfLink = "foo"; |
| 6659 } | 6727 } |
| 6660 buildCounterRegionList--; | 6728 buildCounterRegionList--; |
| 6661 return o; | 6729 return o; |
| 6662 } | 6730 } |
| 6663 | 6731 |
| 6664 checkRegionList(api.RegionList o) { | 6732 checkRegionList(api.RegionList o) { |
| 6665 buildCounterRegionList++; | 6733 buildCounterRegionList++; |
| 6666 if (buildCounterRegionList < 3) { | 6734 if (buildCounterRegionList < 3) { |
| 6667 unittest.expect(o.id, unittest.equals('foo')); | 6735 unittest.expect(o.id, unittest.equals('foo')); |
| 6668 checkUnnamed2359(o.items); | 6736 checkUnnamed2380(o.items); |
| 6669 unittest.expect(o.kind, unittest.equals('foo')); | 6737 unittest.expect(o.kind, unittest.equals('foo')); |
| 6670 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6738 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6671 unittest.expect(o.selfLink, unittest.equals('foo')); | 6739 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6672 } | 6740 } |
| 6673 buildCounterRegionList--; | 6741 buildCounterRegionList--; |
| 6674 } | 6742 } |
| 6675 | 6743 |
| 6676 core.int buildCounterResourceCommitment = 0; | 6744 core.int buildCounterResourceCommitment = 0; |
| 6677 buildResourceCommitment() { | 6745 buildResourceCommitment() { |
| 6678 var o = new api.ResourceCommitment(); | 6746 var o = new api.ResourceCommitment(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6706 } | 6774 } |
| 6707 | 6775 |
| 6708 checkResourceGroupReference(api.ResourceGroupReference o) { | 6776 checkResourceGroupReference(api.ResourceGroupReference o) { |
| 6709 buildCounterResourceGroupReference++; | 6777 buildCounterResourceGroupReference++; |
| 6710 if (buildCounterResourceGroupReference < 3) { | 6778 if (buildCounterResourceGroupReference < 3) { |
| 6711 unittest.expect(o.group, unittest.equals('foo')); | 6779 unittest.expect(o.group, unittest.equals('foo')); |
| 6712 } | 6780 } |
| 6713 buildCounterResourceGroupReference--; | 6781 buildCounterResourceGroupReference--; |
| 6714 } | 6782 } |
| 6715 | 6783 |
| 6716 buildUnnamed2360() { | 6784 buildUnnamed2381() { |
| 6717 var o = new core.List<core.String>(); | 6785 var o = new core.List<core.String>(); |
| 6718 o.add("foo"); | 6786 o.add("foo"); |
| 6719 o.add("foo"); | 6787 o.add("foo"); |
| 6720 return o; | 6788 return o; |
| 6721 } | 6789 } |
| 6722 | 6790 |
| 6723 checkUnnamed2360(core.List<core.String> o) { | 6791 checkUnnamed2381(core.List<core.String> o) { |
| 6724 unittest.expect(o, unittest.hasLength(2)); | 6792 unittest.expect(o, unittest.hasLength(2)); |
| 6725 unittest.expect(o[0], unittest.equals('foo')); | 6793 unittest.expect(o[0], unittest.equals('foo')); |
| 6726 unittest.expect(o[1], unittest.equals('foo')); | 6794 unittest.expect(o[1], unittest.equals('foo')); |
| 6727 } | 6795 } |
| 6728 | 6796 |
| 6729 core.int buildCounterRouteWarningsData = 0; | 6797 core.int buildCounterRouteWarningsData = 0; |
| 6730 buildRouteWarningsData() { | 6798 buildRouteWarningsData() { |
| 6731 var o = new api.RouteWarningsData(); | 6799 var o = new api.RouteWarningsData(); |
| 6732 buildCounterRouteWarningsData++; | 6800 buildCounterRouteWarningsData++; |
| 6733 if (buildCounterRouteWarningsData < 3) { | 6801 if (buildCounterRouteWarningsData < 3) { |
| 6734 o.key = "foo"; | 6802 o.key = "foo"; |
| 6735 o.value = "foo"; | 6803 o.value = "foo"; |
| 6736 } | 6804 } |
| 6737 buildCounterRouteWarningsData--; | 6805 buildCounterRouteWarningsData--; |
| 6738 return o; | 6806 return o; |
| 6739 } | 6807 } |
| 6740 | 6808 |
| 6741 checkRouteWarningsData(api.RouteWarningsData o) { | 6809 checkRouteWarningsData(api.RouteWarningsData o) { |
| 6742 buildCounterRouteWarningsData++; | 6810 buildCounterRouteWarningsData++; |
| 6743 if (buildCounterRouteWarningsData < 3) { | 6811 if (buildCounterRouteWarningsData < 3) { |
| 6744 unittest.expect(o.key, unittest.equals('foo')); | 6812 unittest.expect(o.key, unittest.equals('foo')); |
| 6745 unittest.expect(o.value, unittest.equals('foo')); | 6813 unittest.expect(o.value, unittest.equals('foo')); |
| 6746 } | 6814 } |
| 6747 buildCounterRouteWarningsData--; | 6815 buildCounterRouteWarningsData--; |
| 6748 } | 6816 } |
| 6749 | 6817 |
| 6750 buildUnnamed2361() { | 6818 buildUnnamed2382() { |
| 6751 var o = new core.List<api.RouteWarningsData>(); | 6819 var o = new core.List<api.RouteWarningsData>(); |
| 6752 o.add(buildRouteWarningsData()); | 6820 o.add(buildRouteWarningsData()); |
| 6753 o.add(buildRouteWarningsData()); | 6821 o.add(buildRouteWarningsData()); |
| 6754 return o; | 6822 return o; |
| 6755 } | 6823 } |
| 6756 | 6824 |
| 6757 checkUnnamed2361(core.List<api.RouteWarningsData> o) { | 6825 checkUnnamed2382(core.List<api.RouteWarningsData> o) { |
| 6758 unittest.expect(o, unittest.hasLength(2)); | 6826 unittest.expect(o, unittest.hasLength(2)); |
| 6759 checkRouteWarningsData(o[0]); | 6827 checkRouteWarningsData(o[0]); |
| 6760 checkRouteWarningsData(o[1]); | 6828 checkRouteWarningsData(o[1]); |
| 6761 } | 6829 } |
| 6762 | 6830 |
| 6763 core.int buildCounterRouteWarnings = 0; | 6831 core.int buildCounterRouteWarnings = 0; |
| 6764 buildRouteWarnings() { | 6832 buildRouteWarnings() { |
| 6765 var o = new api.RouteWarnings(); | 6833 var o = new api.RouteWarnings(); |
| 6766 buildCounterRouteWarnings++; | 6834 buildCounterRouteWarnings++; |
| 6767 if (buildCounterRouteWarnings < 3) { | 6835 if (buildCounterRouteWarnings < 3) { |
| 6768 o.code = "foo"; | 6836 o.code = "foo"; |
| 6769 o.data = buildUnnamed2361(); | 6837 o.data = buildUnnamed2382(); |
| 6770 o.message = "foo"; | 6838 o.message = "foo"; |
| 6771 } | 6839 } |
| 6772 buildCounterRouteWarnings--; | 6840 buildCounterRouteWarnings--; |
| 6773 return o; | 6841 return o; |
| 6774 } | 6842 } |
| 6775 | 6843 |
| 6776 checkRouteWarnings(api.RouteWarnings o) { | 6844 checkRouteWarnings(api.RouteWarnings o) { |
| 6777 buildCounterRouteWarnings++; | 6845 buildCounterRouteWarnings++; |
| 6778 if (buildCounterRouteWarnings < 3) { | 6846 if (buildCounterRouteWarnings < 3) { |
| 6779 unittest.expect(o.code, unittest.equals('foo')); | 6847 unittest.expect(o.code, unittest.equals('foo')); |
| 6780 checkUnnamed2361(o.data); | 6848 checkUnnamed2382(o.data); |
| 6781 unittest.expect(o.message, unittest.equals('foo')); | 6849 unittest.expect(o.message, unittest.equals('foo')); |
| 6782 } | 6850 } |
| 6783 buildCounterRouteWarnings--; | 6851 buildCounterRouteWarnings--; |
| 6784 } | 6852 } |
| 6785 | 6853 |
| 6786 buildUnnamed2362() { | 6854 buildUnnamed2383() { |
| 6787 var o = new core.List<api.RouteWarnings>(); | 6855 var o = new core.List<api.RouteWarnings>(); |
| 6788 o.add(buildRouteWarnings()); | 6856 o.add(buildRouteWarnings()); |
| 6789 o.add(buildRouteWarnings()); | 6857 o.add(buildRouteWarnings()); |
| 6790 return o; | 6858 return o; |
| 6791 } | 6859 } |
| 6792 | 6860 |
| 6793 checkUnnamed2362(core.List<api.RouteWarnings> o) { | 6861 checkUnnamed2383(core.List<api.RouteWarnings> o) { |
| 6794 unittest.expect(o, unittest.hasLength(2)); | 6862 unittest.expect(o, unittest.hasLength(2)); |
| 6795 checkRouteWarnings(o[0]); | 6863 checkRouteWarnings(o[0]); |
| 6796 checkRouteWarnings(o[1]); | 6864 checkRouteWarnings(o[1]); |
| 6797 } | 6865 } |
| 6798 | 6866 |
| 6799 core.int buildCounterRoute = 0; | 6867 core.int buildCounterRoute = 0; |
| 6800 buildRoute() { | 6868 buildRoute() { |
| 6801 var o = new api.Route(); | 6869 var o = new api.Route(); |
| 6802 buildCounterRoute++; | 6870 buildCounterRoute++; |
| 6803 if (buildCounterRoute < 3) { | 6871 if (buildCounterRoute < 3) { |
| 6804 o.creationTimestamp = "foo"; | 6872 o.creationTimestamp = "foo"; |
| 6805 o.description = "foo"; | 6873 o.description = "foo"; |
| 6806 o.destRange = "foo"; | 6874 o.destRange = "foo"; |
| 6807 o.id = "foo"; | 6875 o.id = "foo"; |
| 6808 o.kind = "foo"; | 6876 o.kind = "foo"; |
| 6809 o.name = "foo"; | 6877 o.name = "foo"; |
| 6810 o.network = "foo"; | 6878 o.network = "foo"; |
| 6811 o.nextHopGateway = "foo"; | 6879 o.nextHopGateway = "foo"; |
| 6812 o.nextHopInstance = "foo"; | 6880 o.nextHopInstance = "foo"; |
| 6813 o.nextHopIp = "foo"; | 6881 o.nextHopIp = "foo"; |
| 6814 o.nextHopNetwork = "foo"; | 6882 o.nextHopNetwork = "foo"; |
| 6815 o.nextHopPeering = "foo"; | 6883 o.nextHopPeering = "foo"; |
| 6816 o.nextHopVpnTunnel = "foo"; | 6884 o.nextHopVpnTunnel = "foo"; |
| 6817 o.priority = 42; | 6885 o.priority = 42; |
| 6818 o.selfLink = "foo"; | 6886 o.selfLink = "foo"; |
| 6819 o.tags = buildUnnamed2360(); | 6887 o.tags = buildUnnamed2381(); |
| 6820 o.warnings = buildUnnamed2362(); | 6888 o.warnings = buildUnnamed2383(); |
| 6821 } | 6889 } |
| 6822 buildCounterRoute--; | 6890 buildCounterRoute--; |
| 6823 return o; | 6891 return o; |
| 6824 } | 6892 } |
| 6825 | 6893 |
| 6826 checkRoute(api.Route o) { | 6894 checkRoute(api.Route o) { |
| 6827 buildCounterRoute++; | 6895 buildCounterRoute++; |
| 6828 if (buildCounterRoute < 3) { | 6896 if (buildCounterRoute < 3) { |
| 6829 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 6897 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 6830 unittest.expect(o.description, unittest.equals('foo')); | 6898 unittest.expect(o.description, unittest.equals('foo')); |
| 6831 unittest.expect(o.destRange, unittest.equals('foo')); | 6899 unittest.expect(o.destRange, unittest.equals('foo')); |
| 6832 unittest.expect(o.id, unittest.equals('foo')); | 6900 unittest.expect(o.id, unittest.equals('foo')); |
| 6833 unittest.expect(o.kind, unittest.equals('foo')); | 6901 unittest.expect(o.kind, unittest.equals('foo')); |
| 6834 unittest.expect(o.name, unittest.equals('foo')); | 6902 unittest.expect(o.name, unittest.equals('foo')); |
| 6835 unittest.expect(o.network, unittest.equals('foo')); | 6903 unittest.expect(o.network, unittest.equals('foo')); |
| 6836 unittest.expect(o.nextHopGateway, unittest.equals('foo')); | 6904 unittest.expect(o.nextHopGateway, unittest.equals('foo')); |
| 6837 unittest.expect(o.nextHopInstance, unittest.equals('foo')); | 6905 unittest.expect(o.nextHopInstance, unittest.equals('foo')); |
| 6838 unittest.expect(o.nextHopIp, unittest.equals('foo')); | 6906 unittest.expect(o.nextHopIp, unittest.equals('foo')); |
| 6839 unittest.expect(o.nextHopNetwork, unittest.equals('foo')); | 6907 unittest.expect(o.nextHopNetwork, unittest.equals('foo')); |
| 6840 unittest.expect(o.nextHopPeering, unittest.equals('foo')); | 6908 unittest.expect(o.nextHopPeering, unittest.equals('foo')); |
| 6841 unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); | 6909 unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); |
| 6842 unittest.expect(o.priority, unittest.equals(42)); | 6910 unittest.expect(o.priority, unittest.equals(42)); |
| 6843 unittest.expect(o.selfLink, unittest.equals('foo')); | 6911 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6844 checkUnnamed2360(o.tags); | 6912 checkUnnamed2381(o.tags); |
| 6845 checkUnnamed2362(o.warnings); | 6913 checkUnnamed2383(o.warnings); |
| 6846 } | 6914 } |
| 6847 buildCounterRoute--; | 6915 buildCounterRoute--; |
| 6848 } | 6916 } |
| 6849 | 6917 |
| 6850 buildUnnamed2363() { | 6918 buildUnnamed2384() { |
| 6851 var o = new core.List<api.Route>(); | 6919 var o = new core.List<api.Route>(); |
| 6852 o.add(buildRoute()); | 6920 o.add(buildRoute()); |
| 6853 o.add(buildRoute()); | 6921 o.add(buildRoute()); |
| 6854 return o; | 6922 return o; |
| 6855 } | 6923 } |
| 6856 | 6924 |
| 6857 checkUnnamed2363(core.List<api.Route> o) { | 6925 checkUnnamed2384(core.List<api.Route> o) { |
| 6858 unittest.expect(o, unittest.hasLength(2)); | 6926 unittest.expect(o, unittest.hasLength(2)); |
| 6859 checkRoute(o[0]); | 6927 checkRoute(o[0]); |
| 6860 checkRoute(o[1]); | 6928 checkRoute(o[1]); |
| 6861 } | 6929 } |
| 6862 | 6930 |
| 6863 core.int buildCounterRouteList = 0; | 6931 core.int buildCounterRouteList = 0; |
| 6864 buildRouteList() { | 6932 buildRouteList() { |
| 6865 var o = new api.RouteList(); | 6933 var o = new api.RouteList(); |
| 6866 buildCounterRouteList++; | 6934 buildCounterRouteList++; |
| 6867 if (buildCounterRouteList < 3) { | 6935 if (buildCounterRouteList < 3) { |
| 6868 o.id = "foo"; | 6936 o.id = "foo"; |
| 6869 o.items = buildUnnamed2363(); | 6937 o.items = buildUnnamed2384(); |
| 6870 o.kind = "foo"; | 6938 o.kind = "foo"; |
| 6871 o.nextPageToken = "foo"; | 6939 o.nextPageToken = "foo"; |
| 6872 o.selfLink = "foo"; | 6940 o.selfLink = "foo"; |
| 6873 } | 6941 } |
| 6874 buildCounterRouteList--; | 6942 buildCounterRouteList--; |
| 6875 return o; | 6943 return o; |
| 6876 } | 6944 } |
| 6877 | 6945 |
| 6878 checkRouteList(api.RouteList o) { | 6946 checkRouteList(api.RouteList o) { |
| 6879 buildCounterRouteList++; | 6947 buildCounterRouteList++; |
| 6880 if (buildCounterRouteList < 3) { | 6948 if (buildCounterRouteList < 3) { |
| 6881 unittest.expect(o.id, unittest.equals('foo')); | 6949 unittest.expect(o.id, unittest.equals('foo')); |
| 6882 checkUnnamed2363(o.items); | 6950 checkUnnamed2384(o.items); |
| 6883 unittest.expect(o.kind, unittest.equals('foo')); | 6951 unittest.expect(o.kind, unittest.equals('foo')); |
| 6884 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 6952 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6885 unittest.expect(o.selfLink, unittest.equals('foo')); | 6953 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6886 } | 6954 } |
| 6887 buildCounterRouteList--; | 6955 buildCounterRouteList--; |
| 6888 } | 6956 } |
| 6889 | 6957 |
| 6890 buildUnnamed2364() { | 6958 buildUnnamed2385() { |
| 6891 var o = new core.List<api.RouterBgpPeer>(); | 6959 var o = new core.List<api.RouterBgpPeer>(); |
| 6892 o.add(buildRouterBgpPeer()); | 6960 o.add(buildRouterBgpPeer()); |
| 6893 o.add(buildRouterBgpPeer()); | 6961 o.add(buildRouterBgpPeer()); |
| 6894 return o; | 6962 return o; |
| 6895 } | 6963 } |
| 6896 | 6964 |
| 6897 checkUnnamed2364(core.List<api.RouterBgpPeer> o) { | 6965 checkUnnamed2385(core.List<api.RouterBgpPeer> o) { |
| 6898 unittest.expect(o, unittest.hasLength(2)); | 6966 unittest.expect(o, unittest.hasLength(2)); |
| 6899 checkRouterBgpPeer(o[0]); | 6967 checkRouterBgpPeer(o[0]); |
| 6900 checkRouterBgpPeer(o[1]); | 6968 checkRouterBgpPeer(o[1]); |
| 6901 } | 6969 } |
| 6902 | 6970 |
| 6903 buildUnnamed2365() { | 6971 buildUnnamed2386() { |
| 6904 var o = new core.List<api.RouterInterface>(); | 6972 var o = new core.List<api.RouterInterface>(); |
| 6905 o.add(buildRouterInterface()); | 6973 o.add(buildRouterInterface()); |
| 6906 o.add(buildRouterInterface()); | 6974 o.add(buildRouterInterface()); |
| 6907 return o; | 6975 return o; |
| 6908 } | 6976 } |
| 6909 | 6977 |
| 6910 checkUnnamed2365(core.List<api.RouterInterface> o) { | 6978 checkUnnamed2386(core.List<api.RouterInterface> o) { |
| 6911 unittest.expect(o, unittest.hasLength(2)); | 6979 unittest.expect(o, unittest.hasLength(2)); |
| 6912 checkRouterInterface(o[0]); | 6980 checkRouterInterface(o[0]); |
| 6913 checkRouterInterface(o[1]); | 6981 checkRouterInterface(o[1]); |
| 6914 } | 6982 } |
| 6915 | 6983 |
| 6916 core.int buildCounterRouter = 0; | 6984 core.int buildCounterRouter = 0; |
| 6917 buildRouter() { | 6985 buildRouter() { |
| 6918 var o = new api.Router(); | 6986 var o = new api.Router(); |
| 6919 buildCounterRouter++; | 6987 buildCounterRouter++; |
| 6920 if (buildCounterRouter < 3) { | 6988 if (buildCounterRouter < 3) { |
| 6921 o.bgp = buildRouterBgp(); | 6989 o.bgp = buildRouterBgp(); |
| 6922 o.bgpPeers = buildUnnamed2364(); | 6990 o.bgpPeers = buildUnnamed2385(); |
| 6923 o.creationTimestamp = "foo"; | 6991 o.creationTimestamp = "foo"; |
| 6924 o.description = "foo"; | 6992 o.description = "foo"; |
| 6925 o.id = "foo"; | 6993 o.id = "foo"; |
| 6926 o.interfaces = buildUnnamed2365(); | 6994 o.interfaces = buildUnnamed2386(); |
| 6927 o.kind = "foo"; | 6995 o.kind = "foo"; |
| 6928 o.name = "foo"; | 6996 o.name = "foo"; |
| 6929 o.network = "foo"; | 6997 o.network = "foo"; |
| 6930 o.region = "foo"; | 6998 o.region = "foo"; |
| 6931 o.selfLink = "foo"; | 6999 o.selfLink = "foo"; |
| 6932 } | 7000 } |
| 6933 buildCounterRouter--; | 7001 buildCounterRouter--; |
| 6934 return o; | 7002 return o; |
| 6935 } | 7003 } |
| 6936 | 7004 |
| 6937 checkRouter(api.Router o) { | 7005 checkRouter(api.Router o) { |
| 6938 buildCounterRouter++; | 7006 buildCounterRouter++; |
| 6939 if (buildCounterRouter < 3) { | 7007 if (buildCounterRouter < 3) { |
| 6940 checkRouterBgp(o.bgp); | 7008 checkRouterBgp(o.bgp); |
| 6941 checkUnnamed2364(o.bgpPeers); | 7009 checkUnnamed2385(o.bgpPeers); |
| 6942 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 7010 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 6943 unittest.expect(o.description, unittest.equals('foo')); | 7011 unittest.expect(o.description, unittest.equals('foo')); |
| 6944 unittest.expect(o.id, unittest.equals('foo')); | 7012 unittest.expect(o.id, unittest.equals('foo')); |
| 6945 checkUnnamed2365(o.interfaces); | 7013 checkUnnamed2386(o.interfaces); |
| 6946 unittest.expect(o.kind, unittest.equals('foo')); | 7014 unittest.expect(o.kind, unittest.equals('foo')); |
| 6947 unittest.expect(o.name, unittest.equals('foo')); | 7015 unittest.expect(o.name, unittest.equals('foo')); |
| 6948 unittest.expect(o.network, unittest.equals('foo')); | 7016 unittest.expect(o.network, unittest.equals('foo')); |
| 6949 unittest.expect(o.region, unittest.equals('foo')); | 7017 unittest.expect(o.region, unittest.equals('foo')); |
| 6950 unittest.expect(o.selfLink, unittest.equals('foo')); | 7018 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6951 } | 7019 } |
| 6952 buildCounterRouter--; | 7020 buildCounterRouter--; |
| 6953 } | 7021 } |
| 6954 | 7022 |
| 6955 buildUnnamed2366() { | 7023 buildUnnamed2387() { |
| 6956 var o = new core.Map<core.String, api.RoutersScopedList>(); | 7024 var o = new core.Map<core.String, api.RoutersScopedList>(); |
| 6957 o["x"] = buildRoutersScopedList(); | 7025 o["x"] = buildRoutersScopedList(); |
| 6958 o["y"] = buildRoutersScopedList(); | 7026 o["y"] = buildRoutersScopedList(); |
| 6959 return o; | 7027 return o; |
| 6960 } | 7028 } |
| 6961 | 7029 |
| 6962 checkUnnamed2366(core.Map<core.String, api.RoutersScopedList> o) { | 7030 checkUnnamed2387(core.Map<core.String, api.RoutersScopedList> o) { |
| 6963 unittest.expect(o, unittest.hasLength(2)); | 7031 unittest.expect(o, unittest.hasLength(2)); |
| 6964 checkRoutersScopedList(o["x"]); | 7032 checkRoutersScopedList(o["x"]); |
| 6965 checkRoutersScopedList(o["y"]); | 7033 checkRoutersScopedList(o["y"]); |
| 6966 } | 7034 } |
| 6967 | 7035 |
| 6968 core.int buildCounterRouterAggregatedList = 0; | 7036 core.int buildCounterRouterAggregatedList = 0; |
| 6969 buildRouterAggregatedList() { | 7037 buildRouterAggregatedList() { |
| 6970 var o = new api.RouterAggregatedList(); | 7038 var o = new api.RouterAggregatedList(); |
| 6971 buildCounterRouterAggregatedList++; | 7039 buildCounterRouterAggregatedList++; |
| 6972 if (buildCounterRouterAggregatedList < 3) { | 7040 if (buildCounterRouterAggregatedList < 3) { |
| 6973 o.id = "foo"; | 7041 o.id = "foo"; |
| 6974 o.items = buildUnnamed2366(); | 7042 o.items = buildUnnamed2387(); |
| 6975 o.kind = "foo"; | 7043 o.kind = "foo"; |
| 6976 o.nextPageToken = "foo"; | 7044 o.nextPageToken = "foo"; |
| 6977 o.selfLink = "foo"; | 7045 o.selfLink = "foo"; |
| 6978 } | 7046 } |
| 6979 buildCounterRouterAggregatedList--; | 7047 buildCounterRouterAggregatedList--; |
| 6980 return o; | 7048 return o; |
| 6981 } | 7049 } |
| 6982 | 7050 |
| 6983 checkRouterAggregatedList(api.RouterAggregatedList o) { | 7051 checkRouterAggregatedList(api.RouterAggregatedList o) { |
| 6984 buildCounterRouterAggregatedList++; | 7052 buildCounterRouterAggregatedList++; |
| 6985 if (buildCounterRouterAggregatedList < 3) { | 7053 if (buildCounterRouterAggregatedList < 3) { |
| 6986 unittest.expect(o.id, unittest.equals('foo')); | 7054 unittest.expect(o.id, unittest.equals('foo')); |
| 6987 checkUnnamed2366(o.items); | 7055 checkUnnamed2387(o.items); |
| 6988 unittest.expect(o.kind, unittest.equals('foo')); | 7056 unittest.expect(o.kind, unittest.equals('foo')); |
| 6989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7057 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 6990 unittest.expect(o.selfLink, unittest.equals('foo')); | 7058 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 6991 } | 7059 } |
| 6992 buildCounterRouterAggregatedList--; | 7060 buildCounterRouterAggregatedList--; |
| 6993 } | 7061 } |
| 6994 | 7062 |
| 6995 core.int buildCounterRouterBgp = 0; | 7063 core.int buildCounterRouterBgp = 0; |
| 6996 buildRouterBgp() { | 7064 buildRouterBgp() { |
| 6997 var o = new api.RouterBgp(); | 7065 var o = new api.RouterBgp(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7056 checkRouterInterface(api.RouterInterface o) { | 7124 checkRouterInterface(api.RouterInterface o) { |
| 7057 buildCounterRouterInterface++; | 7125 buildCounterRouterInterface++; |
| 7058 if (buildCounterRouterInterface < 3) { | 7126 if (buildCounterRouterInterface < 3) { |
| 7059 unittest.expect(o.ipRange, unittest.equals('foo')); | 7127 unittest.expect(o.ipRange, unittest.equals('foo')); |
| 7060 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); | 7128 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); |
| 7061 unittest.expect(o.name, unittest.equals('foo')); | 7129 unittest.expect(o.name, unittest.equals('foo')); |
| 7062 } | 7130 } |
| 7063 buildCounterRouterInterface--; | 7131 buildCounterRouterInterface--; |
| 7064 } | 7132 } |
| 7065 | 7133 |
| 7066 buildUnnamed2367() { | 7134 buildUnnamed2388() { |
| 7067 var o = new core.List<api.Router>(); | 7135 var o = new core.List<api.Router>(); |
| 7068 o.add(buildRouter()); | 7136 o.add(buildRouter()); |
| 7069 o.add(buildRouter()); | 7137 o.add(buildRouter()); |
| 7070 return o; | 7138 return o; |
| 7071 } | 7139 } |
| 7072 | 7140 |
| 7073 checkUnnamed2367(core.List<api.Router> o) { | 7141 checkUnnamed2388(core.List<api.Router> o) { |
| 7074 unittest.expect(o, unittest.hasLength(2)); | 7142 unittest.expect(o, unittest.hasLength(2)); |
| 7075 checkRouter(o[0]); | 7143 checkRouter(o[0]); |
| 7076 checkRouter(o[1]); | 7144 checkRouter(o[1]); |
| 7077 } | 7145 } |
| 7078 | 7146 |
| 7079 core.int buildCounterRouterList = 0; | 7147 core.int buildCounterRouterList = 0; |
| 7080 buildRouterList() { | 7148 buildRouterList() { |
| 7081 var o = new api.RouterList(); | 7149 var o = new api.RouterList(); |
| 7082 buildCounterRouterList++; | 7150 buildCounterRouterList++; |
| 7083 if (buildCounterRouterList < 3) { | 7151 if (buildCounterRouterList < 3) { |
| 7084 o.id = "foo"; | 7152 o.id = "foo"; |
| 7085 o.items = buildUnnamed2367(); | 7153 o.items = buildUnnamed2388(); |
| 7086 o.kind = "foo"; | 7154 o.kind = "foo"; |
| 7087 o.nextPageToken = "foo"; | 7155 o.nextPageToken = "foo"; |
| 7088 o.selfLink = "foo"; | 7156 o.selfLink = "foo"; |
| 7089 } | 7157 } |
| 7090 buildCounterRouterList--; | 7158 buildCounterRouterList--; |
| 7091 return o; | 7159 return o; |
| 7092 } | 7160 } |
| 7093 | 7161 |
| 7094 checkRouterList(api.RouterList o) { | 7162 checkRouterList(api.RouterList o) { |
| 7095 buildCounterRouterList++; | 7163 buildCounterRouterList++; |
| 7096 if (buildCounterRouterList < 3) { | 7164 if (buildCounterRouterList < 3) { |
| 7097 unittest.expect(o.id, unittest.equals('foo')); | 7165 unittest.expect(o.id, unittest.equals('foo')); |
| 7098 checkUnnamed2367(o.items); | 7166 checkUnnamed2388(o.items); |
| 7099 unittest.expect(o.kind, unittest.equals('foo')); | 7167 unittest.expect(o.kind, unittest.equals('foo')); |
| 7100 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7168 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7101 unittest.expect(o.selfLink, unittest.equals('foo')); | 7169 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7102 } | 7170 } |
| 7103 buildCounterRouterList--; | 7171 buildCounterRouterList--; |
| 7104 } | 7172 } |
| 7105 | 7173 |
| 7106 buildUnnamed2368() { | 7174 buildUnnamed2389() { |
| 7107 var o = new core.List<api.Route>(); | 7175 var o = new core.List<api.Route>(); |
| 7108 o.add(buildRoute()); | 7176 o.add(buildRoute()); |
| 7109 o.add(buildRoute()); | 7177 o.add(buildRoute()); |
| 7110 return o; | 7178 return o; |
| 7111 } | 7179 } |
| 7112 | 7180 |
| 7113 checkUnnamed2368(core.List<api.Route> o) { | 7181 checkUnnamed2389(core.List<api.Route> o) { |
| 7114 unittest.expect(o, unittest.hasLength(2)); | 7182 unittest.expect(o, unittest.hasLength(2)); |
| 7115 checkRoute(o[0]); | 7183 checkRoute(o[0]); |
| 7116 checkRoute(o[1]); | 7184 checkRoute(o[1]); |
| 7117 } | 7185 } |
| 7118 | 7186 |
| 7119 buildUnnamed2369() { | 7187 buildUnnamed2390() { |
| 7120 var o = new core.List<api.Route>(); | 7188 var o = new core.List<api.Route>(); |
| 7121 o.add(buildRoute()); | 7189 o.add(buildRoute()); |
| 7122 o.add(buildRoute()); | 7190 o.add(buildRoute()); |
| 7123 return o; | 7191 return o; |
| 7124 } | 7192 } |
| 7125 | 7193 |
| 7126 checkUnnamed2369(core.List<api.Route> o) { | 7194 checkUnnamed2390(core.List<api.Route> o) { |
| 7127 unittest.expect(o, unittest.hasLength(2)); | 7195 unittest.expect(o, unittest.hasLength(2)); |
| 7128 checkRoute(o[0]); | 7196 checkRoute(o[0]); |
| 7129 checkRoute(o[1]); | 7197 checkRoute(o[1]); |
| 7130 } | 7198 } |
| 7131 | 7199 |
| 7132 buildUnnamed2370() { | 7200 buildUnnamed2391() { |
| 7133 var o = new core.List<api.RouterStatusBgpPeerStatus>(); | 7201 var o = new core.List<api.RouterStatusBgpPeerStatus>(); |
| 7134 o.add(buildRouterStatusBgpPeerStatus()); | 7202 o.add(buildRouterStatusBgpPeerStatus()); |
| 7135 o.add(buildRouterStatusBgpPeerStatus()); | 7203 o.add(buildRouterStatusBgpPeerStatus()); |
| 7136 return o; | 7204 return o; |
| 7137 } | 7205 } |
| 7138 | 7206 |
| 7139 checkUnnamed2370(core.List<api.RouterStatusBgpPeerStatus> o) { | 7207 checkUnnamed2391(core.List<api.RouterStatusBgpPeerStatus> o) { |
| 7140 unittest.expect(o, unittest.hasLength(2)); | 7208 unittest.expect(o, unittest.hasLength(2)); |
| 7141 checkRouterStatusBgpPeerStatus(o[0]); | 7209 checkRouterStatusBgpPeerStatus(o[0]); |
| 7142 checkRouterStatusBgpPeerStatus(o[1]); | 7210 checkRouterStatusBgpPeerStatus(o[1]); |
| 7143 } | 7211 } |
| 7144 | 7212 |
| 7145 core.int buildCounterRouterStatus = 0; | 7213 core.int buildCounterRouterStatus = 0; |
| 7146 buildRouterStatus() { | 7214 buildRouterStatus() { |
| 7147 var o = new api.RouterStatus(); | 7215 var o = new api.RouterStatus(); |
| 7148 buildCounterRouterStatus++; | 7216 buildCounterRouterStatus++; |
| 7149 if (buildCounterRouterStatus < 3) { | 7217 if (buildCounterRouterStatus < 3) { |
| 7150 o.bestRoutes = buildUnnamed2368(); | 7218 o.bestRoutes = buildUnnamed2389(); |
| 7151 o.bestRoutesForRouter = buildUnnamed2369(); | 7219 o.bestRoutesForRouter = buildUnnamed2390(); |
| 7152 o.bgpPeerStatus = buildUnnamed2370(); | 7220 o.bgpPeerStatus = buildUnnamed2391(); |
| 7153 o.network = "foo"; | 7221 o.network = "foo"; |
| 7154 } | 7222 } |
| 7155 buildCounterRouterStatus--; | 7223 buildCounterRouterStatus--; |
| 7156 return o; | 7224 return o; |
| 7157 } | 7225 } |
| 7158 | 7226 |
| 7159 checkRouterStatus(api.RouterStatus o) { | 7227 checkRouterStatus(api.RouterStatus o) { |
| 7160 buildCounterRouterStatus++; | 7228 buildCounterRouterStatus++; |
| 7161 if (buildCounterRouterStatus < 3) { | 7229 if (buildCounterRouterStatus < 3) { |
| 7162 checkUnnamed2368(o.bestRoutes); | 7230 checkUnnamed2389(o.bestRoutes); |
| 7163 checkUnnamed2369(o.bestRoutesForRouter); | 7231 checkUnnamed2390(o.bestRoutesForRouter); |
| 7164 checkUnnamed2370(o.bgpPeerStatus); | 7232 checkUnnamed2391(o.bgpPeerStatus); |
| 7165 unittest.expect(o.network, unittest.equals('foo')); | 7233 unittest.expect(o.network, unittest.equals('foo')); |
| 7166 } | 7234 } |
| 7167 buildCounterRouterStatus--; | 7235 buildCounterRouterStatus--; |
| 7168 } | 7236 } |
| 7169 | 7237 |
| 7170 buildUnnamed2371() { | 7238 buildUnnamed2392() { |
| 7171 var o = new core.List<api.Route>(); | 7239 var o = new core.List<api.Route>(); |
| 7172 o.add(buildRoute()); | 7240 o.add(buildRoute()); |
| 7173 o.add(buildRoute()); | 7241 o.add(buildRoute()); |
| 7174 return o; | 7242 return o; |
| 7175 } | 7243 } |
| 7176 | 7244 |
| 7177 checkUnnamed2371(core.List<api.Route> o) { | 7245 checkUnnamed2392(core.List<api.Route> o) { |
| 7178 unittest.expect(o, unittest.hasLength(2)); | 7246 unittest.expect(o, unittest.hasLength(2)); |
| 7179 checkRoute(o[0]); | 7247 checkRoute(o[0]); |
| 7180 checkRoute(o[1]); | 7248 checkRoute(o[1]); |
| 7181 } | 7249 } |
| 7182 | 7250 |
| 7183 core.int buildCounterRouterStatusBgpPeerStatus = 0; | 7251 core.int buildCounterRouterStatusBgpPeerStatus = 0; |
| 7184 buildRouterStatusBgpPeerStatus() { | 7252 buildRouterStatusBgpPeerStatus() { |
| 7185 var o = new api.RouterStatusBgpPeerStatus(); | 7253 var o = new api.RouterStatusBgpPeerStatus(); |
| 7186 buildCounterRouterStatusBgpPeerStatus++; | 7254 buildCounterRouterStatusBgpPeerStatus++; |
| 7187 if (buildCounterRouterStatusBgpPeerStatus < 3) { | 7255 if (buildCounterRouterStatusBgpPeerStatus < 3) { |
| 7188 o.advertisedRoutes = buildUnnamed2371(); | 7256 o.advertisedRoutes = buildUnnamed2392(); |
| 7189 o.ipAddress = "foo"; | 7257 o.ipAddress = "foo"; |
| 7190 o.linkedVpnTunnel = "foo"; | 7258 o.linkedVpnTunnel = "foo"; |
| 7191 o.name = "foo"; | 7259 o.name = "foo"; |
| 7192 o.numLearnedRoutes = 42; | 7260 o.numLearnedRoutes = 42; |
| 7193 o.peerIpAddress = "foo"; | 7261 o.peerIpAddress = "foo"; |
| 7194 o.state = "foo"; | 7262 o.state = "foo"; |
| 7195 o.status = "foo"; | 7263 o.status = "foo"; |
| 7196 o.uptime = "foo"; | 7264 o.uptime = "foo"; |
| 7197 o.uptimeSeconds = "foo"; | 7265 o.uptimeSeconds = "foo"; |
| 7198 } | 7266 } |
| 7199 buildCounterRouterStatusBgpPeerStatus--; | 7267 buildCounterRouterStatusBgpPeerStatus--; |
| 7200 return o; | 7268 return o; |
| 7201 } | 7269 } |
| 7202 | 7270 |
| 7203 checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { | 7271 checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { |
| 7204 buildCounterRouterStatusBgpPeerStatus++; | 7272 buildCounterRouterStatusBgpPeerStatus++; |
| 7205 if (buildCounterRouterStatusBgpPeerStatus < 3) { | 7273 if (buildCounterRouterStatusBgpPeerStatus < 3) { |
| 7206 checkUnnamed2371(o.advertisedRoutes); | 7274 checkUnnamed2392(o.advertisedRoutes); |
| 7207 unittest.expect(o.ipAddress, unittest.equals('foo')); | 7275 unittest.expect(o.ipAddress, unittest.equals('foo')); |
| 7208 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); | 7276 unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); |
| 7209 unittest.expect(o.name, unittest.equals('foo')); | 7277 unittest.expect(o.name, unittest.equals('foo')); |
| 7210 unittest.expect(o.numLearnedRoutes, unittest.equals(42)); | 7278 unittest.expect(o.numLearnedRoutes, unittest.equals(42)); |
| 7211 unittest.expect(o.peerIpAddress, unittest.equals('foo')); | 7279 unittest.expect(o.peerIpAddress, unittest.equals('foo')); |
| 7212 unittest.expect(o.state, unittest.equals('foo')); | 7280 unittest.expect(o.state, unittest.equals('foo')); |
| 7213 unittest.expect(o.status, unittest.equals('foo')); | 7281 unittest.expect(o.status, unittest.equals('foo')); |
| 7214 unittest.expect(o.uptime, unittest.equals('foo')); | 7282 unittest.expect(o.uptime, unittest.equals('foo')); |
| 7215 unittest.expect(o.uptimeSeconds, unittest.equals('foo')); | 7283 unittest.expect(o.uptimeSeconds, unittest.equals('foo')); |
| 7216 } | 7284 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7250 } | 7318 } |
| 7251 | 7319 |
| 7252 checkRoutersPreviewResponse(api.RoutersPreviewResponse o) { | 7320 checkRoutersPreviewResponse(api.RoutersPreviewResponse o) { |
| 7253 buildCounterRoutersPreviewResponse++; | 7321 buildCounterRoutersPreviewResponse++; |
| 7254 if (buildCounterRoutersPreviewResponse < 3) { | 7322 if (buildCounterRoutersPreviewResponse < 3) { |
| 7255 checkRouter(o.resource); | 7323 checkRouter(o.resource); |
| 7256 } | 7324 } |
| 7257 buildCounterRoutersPreviewResponse--; | 7325 buildCounterRoutersPreviewResponse--; |
| 7258 } | 7326 } |
| 7259 | 7327 |
| 7260 buildUnnamed2372() { | 7328 buildUnnamed2393() { |
| 7261 var o = new core.List<api.Router>(); | 7329 var o = new core.List<api.Router>(); |
| 7262 o.add(buildRouter()); | 7330 o.add(buildRouter()); |
| 7263 o.add(buildRouter()); | 7331 o.add(buildRouter()); |
| 7264 return o; | 7332 return o; |
| 7265 } | 7333 } |
| 7266 | 7334 |
| 7267 checkUnnamed2372(core.List<api.Router> o) { | 7335 checkUnnamed2393(core.List<api.Router> o) { |
| 7268 unittest.expect(o, unittest.hasLength(2)); | 7336 unittest.expect(o, unittest.hasLength(2)); |
| 7269 checkRouter(o[0]); | 7337 checkRouter(o[0]); |
| 7270 checkRouter(o[1]); | 7338 checkRouter(o[1]); |
| 7271 } | 7339 } |
| 7272 | 7340 |
| 7273 core.int buildCounterRoutersScopedListWarningData = 0; | 7341 core.int buildCounterRoutersScopedListWarningData = 0; |
| 7274 buildRoutersScopedListWarningData() { | 7342 buildRoutersScopedListWarningData() { |
| 7275 var o = new api.RoutersScopedListWarningData(); | 7343 var o = new api.RoutersScopedListWarningData(); |
| 7276 buildCounterRoutersScopedListWarningData++; | 7344 buildCounterRoutersScopedListWarningData++; |
| 7277 if (buildCounterRoutersScopedListWarningData < 3) { | 7345 if (buildCounterRoutersScopedListWarningData < 3) { |
| 7278 o.key = "foo"; | 7346 o.key = "foo"; |
| 7279 o.value = "foo"; | 7347 o.value = "foo"; |
| 7280 } | 7348 } |
| 7281 buildCounterRoutersScopedListWarningData--; | 7349 buildCounterRoutersScopedListWarningData--; |
| 7282 return o; | 7350 return o; |
| 7283 } | 7351 } |
| 7284 | 7352 |
| 7285 checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) { | 7353 checkRoutersScopedListWarningData(api.RoutersScopedListWarningData o) { |
| 7286 buildCounterRoutersScopedListWarningData++; | 7354 buildCounterRoutersScopedListWarningData++; |
| 7287 if (buildCounterRoutersScopedListWarningData < 3) { | 7355 if (buildCounterRoutersScopedListWarningData < 3) { |
| 7288 unittest.expect(o.key, unittest.equals('foo')); | 7356 unittest.expect(o.key, unittest.equals('foo')); |
| 7289 unittest.expect(o.value, unittest.equals('foo')); | 7357 unittest.expect(o.value, unittest.equals('foo')); |
| 7290 } | 7358 } |
| 7291 buildCounterRoutersScopedListWarningData--; | 7359 buildCounterRoutersScopedListWarningData--; |
| 7292 } | 7360 } |
| 7293 | 7361 |
| 7294 buildUnnamed2373() { | 7362 buildUnnamed2394() { |
| 7295 var o = new core.List<api.RoutersScopedListWarningData>(); | 7363 var o = new core.List<api.RoutersScopedListWarningData>(); |
| 7296 o.add(buildRoutersScopedListWarningData()); | 7364 o.add(buildRoutersScopedListWarningData()); |
| 7297 o.add(buildRoutersScopedListWarningData()); | 7365 o.add(buildRoutersScopedListWarningData()); |
| 7298 return o; | 7366 return o; |
| 7299 } | 7367 } |
| 7300 | 7368 |
| 7301 checkUnnamed2373(core.List<api.RoutersScopedListWarningData> o) { | 7369 checkUnnamed2394(core.List<api.RoutersScopedListWarningData> o) { |
| 7302 unittest.expect(o, unittest.hasLength(2)); | 7370 unittest.expect(o, unittest.hasLength(2)); |
| 7303 checkRoutersScopedListWarningData(o[0]); | 7371 checkRoutersScopedListWarningData(o[0]); |
| 7304 checkRoutersScopedListWarningData(o[1]); | 7372 checkRoutersScopedListWarningData(o[1]); |
| 7305 } | 7373 } |
| 7306 | 7374 |
| 7307 core.int buildCounterRoutersScopedListWarning = 0; | 7375 core.int buildCounterRoutersScopedListWarning = 0; |
| 7308 buildRoutersScopedListWarning() { | 7376 buildRoutersScopedListWarning() { |
| 7309 var o = new api.RoutersScopedListWarning(); | 7377 var o = new api.RoutersScopedListWarning(); |
| 7310 buildCounterRoutersScopedListWarning++; | 7378 buildCounterRoutersScopedListWarning++; |
| 7311 if (buildCounterRoutersScopedListWarning < 3) { | 7379 if (buildCounterRoutersScopedListWarning < 3) { |
| 7312 o.code = "foo"; | 7380 o.code = "foo"; |
| 7313 o.data = buildUnnamed2373(); | 7381 o.data = buildUnnamed2394(); |
| 7314 o.message = "foo"; | 7382 o.message = "foo"; |
| 7315 } | 7383 } |
| 7316 buildCounterRoutersScopedListWarning--; | 7384 buildCounterRoutersScopedListWarning--; |
| 7317 return o; | 7385 return o; |
| 7318 } | 7386 } |
| 7319 | 7387 |
| 7320 checkRoutersScopedListWarning(api.RoutersScopedListWarning o) { | 7388 checkRoutersScopedListWarning(api.RoutersScopedListWarning o) { |
| 7321 buildCounterRoutersScopedListWarning++; | 7389 buildCounterRoutersScopedListWarning++; |
| 7322 if (buildCounterRoutersScopedListWarning < 3) { | 7390 if (buildCounterRoutersScopedListWarning < 3) { |
| 7323 unittest.expect(o.code, unittest.equals('foo')); | 7391 unittest.expect(o.code, unittest.equals('foo')); |
| 7324 checkUnnamed2373(o.data); | 7392 checkUnnamed2394(o.data); |
| 7325 unittest.expect(o.message, unittest.equals('foo')); | 7393 unittest.expect(o.message, unittest.equals('foo')); |
| 7326 } | 7394 } |
| 7327 buildCounterRoutersScopedListWarning--; | 7395 buildCounterRoutersScopedListWarning--; |
| 7328 } | 7396 } |
| 7329 | 7397 |
| 7330 core.int buildCounterRoutersScopedList = 0; | 7398 core.int buildCounterRoutersScopedList = 0; |
| 7331 buildRoutersScopedList() { | 7399 buildRoutersScopedList() { |
| 7332 var o = new api.RoutersScopedList(); | 7400 var o = new api.RoutersScopedList(); |
| 7333 buildCounterRoutersScopedList++; | 7401 buildCounterRoutersScopedList++; |
| 7334 if (buildCounterRoutersScopedList < 3) { | 7402 if (buildCounterRoutersScopedList < 3) { |
| 7335 o.routers = buildUnnamed2372(); | 7403 o.routers = buildUnnamed2393(); |
| 7336 o.warning = buildRoutersScopedListWarning(); | 7404 o.warning = buildRoutersScopedListWarning(); |
| 7337 } | 7405 } |
| 7338 buildCounterRoutersScopedList--; | 7406 buildCounterRoutersScopedList--; |
| 7339 return o; | 7407 return o; |
| 7340 } | 7408 } |
| 7341 | 7409 |
| 7342 checkRoutersScopedList(api.RoutersScopedList o) { | 7410 checkRoutersScopedList(api.RoutersScopedList o) { |
| 7343 buildCounterRoutersScopedList++; | 7411 buildCounterRoutersScopedList++; |
| 7344 if (buildCounterRoutersScopedList < 3) { | 7412 if (buildCounterRoutersScopedList < 3) { |
| 7345 checkUnnamed2372(o.routers); | 7413 checkUnnamed2393(o.routers); |
| 7346 checkRoutersScopedListWarning(o.warning); | 7414 checkRoutersScopedListWarning(o.warning); |
| 7347 } | 7415 } |
| 7348 buildCounterRoutersScopedList--; | 7416 buildCounterRoutersScopedList--; |
| 7349 } | 7417 } |
| 7350 | 7418 |
| 7351 core.int buildCounterSSLHealthCheck = 0; | 7419 core.int buildCounterSSLHealthCheck = 0; |
| 7352 buildSSLHealthCheck() { | 7420 buildSSLHealthCheck() { |
| 7353 var o = new api.SSLHealthCheck(); | 7421 var o = new api.SSLHealthCheck(); |
| 7354 buildCounterSSLHealthCheck++; | 7422 buildCounterSSLHealthCheck++; |
| 7355 if (buildCounterSSLHealthCheck < 3) { | 7423 if (buildCounterSSLHealthCheck < 3) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7418 if (buildCounterSerialPortOutput < 3) { | 7486 if (buildCounterSerialPortOutput < 3) { |
| 7419 unittest.expect(o.contents, unittest.equals('foo')); | 7487 unittest.expect(o.contents, unittest.equals('foo')); |
| 7420 unittest.expect(o.kind, unittest.equals('foo')); | 7488 unittest.expect(o.kind, unittest.equals('foo')); |
| 7421 unittest.expect(o.next, unittest.equals('foo')); | 7489 unittest.expect(o.next, unittest.equals('foo')); |
| 7422 unittest.expect(o.selfLink, unittest.equals('foo')); | 7490 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7423 unittest.expect(o.start, unittest.equals('foo')); | 7491 unittest.expect(o.start, unittest.equals('foo')); |
| 7424 } | 7492 } |
| 7425 buildCounterSerialPortOutput--; | 7493 buildCounterSerialPortOutput--; |
| 7426 } | 7494 } |
| 7427 | 7495 |
| 7428 buildUnnamed2374() { | 7496 buildUnnamed2395() { |
| 7429 var o = new core.List<core.String>(); | 7497 var o = new core.List<core.String>(); |
| 7430 o.add("foo"); | 7498 o.add("foo"); |
| 7431 o.add("foo"); | 7499 o.add("foo"); |
| 7432 return o; | 7500 return o; |
| 7433 } | 7501 } |
| 7434 | 7502 |
| 7435 checkUnnamed2374(core.List<core.String> o) { | 7503 checkUnnamed2395(core.List<core.String> o) { |
| 7436 unittest.expect(o, unittest.hasLength(2)); | 7504 unittest.expect(o, unittest.hasLength(2)); |
| 7437 unittest.expect(o[0], unittest.equals('foo')); | 7505 unittest.expect(o[0], unittest.equals('foo')); |
| 7438 unittest.expect(o[1], unittest.equals('foo')); | 7506 unittest.expect(o[1], unittest.equals('foo')); |
| 7439 } | 7507 } |
| 7440 | 7508 |
| 7441 core.int buildCounterServiceAccount = 0; | 7509 core.int buildCounterServiceAccount = 0; |
| 7442 buildServiceAccount() { | 7510 buildServiceAccount() { |
| 7443 var o = new api.ServiceAccount(); | 7511 var o = new api.ServiceAccount(); |
| 7444 buildCounterServiceAccount++; | 7512 buildCounterServiceAccount++; |
| 7445 if (buildCounterServiceAccount < 3) { | 7513 if (buildCounterServiceAccount < 3) { |
| 7446 o.email = "foo"; | 7514 o.email = "foo"; |
| 7447 o.scopes = buildUnnamed2374(); | 7515 o.scopes = buildUnnamed2395(); |
| 7448 } | 7516 } |
| 7449 buildCounterServiceAccount--; | 7517 buildCounterServiceAccount--; |
| 7450 return o; | 7518 return o; |
| 7451 } | 7519 } |
| 7452 | 7520 |
| 7453 checkServiceAccount(api.ServiceAccount o) { | 7521 checkServiceAccount(api.ServiceAccount o) { |
| 7454 buildCounterServiceAccount++; | 7522 buildCounterServiceAccount++; |
| 7455 if (buildCounterServiceAccount < 3) { | 7523 if (buildCounterServiceAccount < 3) { |
| 7456 unittest.expect(o.email, unittest.equals('foo')); | 7524 unittest.expect(o.email, unittest.equals('foo')); |
| 7457 checkUnnamed2374(o.scopes); | 7525 checkUnnamed2395(o.scopes); |
| 7458 } | 7526 } |
| 7459 buildCounterServiceAccount--; | 7527 buildCounterServiceAccount--; |
| 7460 } | 7528 } |
| 7461 | 7529 |
| 7462 buildUnnamed2375() { | 7530 buildUnnamed2396() { |
| 7463 var o = new core.Map<core.String, core.String>(); | 7531 var o = new core.Map<core.String, core.String>(); |
| 7464 o["x"] = "foo"; | 7532 o["x"] = "foo"; |
| 7465 o["y"] = "foo"; | 7533 o["y"] = "foo"; |
| 7466 return o; | 7534 return o; |
| 7467 } | 7535 } |
| 7468 | 7536 |
| 7469 checkUnnamed2375(core.Map<core.String, core.String> o) { | 7537 checkUnnamed2396(core.Map<core.String, core.String> o) { |
| 7470 unittest.expect(o, unittest.hasLength(2)); | 7538 unittest.expect(o, unittest.hasLength(2)); |
| 7471 unittest.expect(o["x"], unittest.equals('foo')); | 7539 unittest.expect(o["x"], unittest.equals('foo')); |
| 7472 unittest.expect(o["y"], unittest.equals('foo')); | 7540 unittest.expect(o["y"], unittest.equals('foo')); |
| 7473 } | 7541 } |
| 7474 | 7542 |
| 7475 buildUnnamed2376() { | 7543 buildUnnamed2397() { |
| 7476 var o = new core.List<core.String>(); | 7544 var o = new core.List<core.String>(); |
| 7477 o.add("foo"); | 7545 o.add("foo"); |
| 7478 o.add("foo"); | 7546 o.add("foo"); |
| 7479 return o; | 7547 return o; |
| 7480 } | 7548 } |
| 7481 | 7549 |
| 7482 checkUnnamed2376(core.List<core.String> o) { | 7550 checkUnnamed2397(core.List<core.String> o) { |
| 7483 unittest.expect(o, unittest.hasLength(2)); | 7551 unittest.expect(o, unittest.hasLength(2)); |
| 7484 unittest.expect(o[0], unittest.equals('foo')); | 7552 unittest.expect(o[0], unittest.equals('foo')); |
| 7485 unittest.expect(o[1], unittest.equals('foo')); | 7553 unittest.expect(o[1], unittest.equals('foo')); |
| 7486 } | 7554 } |
| 7487 | 7555 |
| 7488 core.int buildCounterSnapshot = 0; | 7556 core.int buildCounterSnapshot = 0; |
| 7489 buildSnapshot() { | 7557 buildSnapshot() { |
| 7490 var o = new api.Snapshot(); | 7558 var o = new api.Snapshot(); |
| 7491 buildCounterSnapshot++; | 7559 buildCounterSnapshot++; |
| 7492 if (buildCounterSnapshot < 3) { | 7560 if (buildCounterSnapshot < 3) { |
| 7493 o.creationTimestamp = "foo"; | 7561 o.creationTimestamp = "foo"; |
| 7494 o.description = "foo"; | 7562 o.description = "foo"; |
| 7495 o.diskSizeGb = "foo"; | 7563 o.diskSizeGb = "foo"; |
| 7496 o.id = "foo"; | 7564 o.id = "foo"; |
| 7497 o.kind = "foo"; | 7565 o.kind = "foo"; |
| 7498 o.labelFingerprint = "foo"; | 7566 o.labelFingerprint = "foo"; |
| 7499 o.labels = buildUnnamed2375(); | 7567 o.labels = buildUnnamed2396(); |
| 7500 o.licenses = buildUnnamed2376(); | 7568 o.licenses = buildUnnamed2397(); |
| 7501 o.name = "foo"; | 7569 o.name = "foo"; |
| 7502 o.selfLink = "foo"; | 7570 o.selfLink = "foo"; |
| 7503 o.snapshotEncryptionKey = buildCustomerEncryptionKey(); | 7571 o.snapshotEncryptionKey = buildCustomerEncryptionKey(); |
| 7504 o.sourceDisk = "foo"; | 7572 o.sourceDisk = "foo"; |
| 7505 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); | 7573 o.sourceDiskEncryptionKey = buildCustomerEncryptionKey(); |
| 7506 o.sourceDiskId = "foo"; | 7574 o.sourceDiskId = "foo"; |
| 7507 o.status = "foo"; | 7575 o.status = "foo"; |
| 7508 o.storageBytes = "foo"; | 7576 o.storageBytes = "foo"; |
| 7509 o.storageBytesStatus = "foo"; | 7577 o.storageBytesStatus = "foo"; |
| 7510 } | 7578 } |
| 7511 buildCounterSnapshot--; | 7579 buildCounterSnapshot--; |
| 7512 return o; | 7580 return o; |
| 7513 } | 7581 } |
| 7514 | 7582 |
| 7515 checkSnapshot(api.Snapshot o) { | 7583 checkSnapshot(api.Snapshot o) { |
| 7516 buildCounterSnapshot++; | 7584 buildCounterSnapshot++; |
| 7517 if (buildCounterSnapshot < 3) { | 7585 if (buildCounterSnapshot < 3) { |
| 7518 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 7586 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 7519 unittest.expect(o.description, unittest.equals('foo')); | 7587 unittest.expect(o.description, unittest.equals('foo')); |
| 7520 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 7588 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
| 7521 unittest.expect(o.id, unittest.equals('foo')); | 7589 unittest.expect(o.id, unittest.equals('foo')); |
| 7522 unittest.expect(o.kind, unittest.equals('foo')); | 7590 unittest.expect(o.kind, unittest.equals('foo')); |
| 7523 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 7591 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 7524 checkUnnamed2375(o.labels); | 7592 checkUnnamed2396(o.labels); |
| 7525 checkUnnamed2376(o.licenses); | 7593 checkUnnamed2397(o.licenses); |
| 7526 unittest.expect(o.name, unittest.equals('foo')); | 7594 unittest.expect(o.name, unittest.equals('foo')); |
| 7527 unittest.expect(o.selfLink, unittest.equals('foo')); | 7595 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7528 checkCustomerEncryptionKey(o.snapshotEncryptionKey); | 7596 checkCustomerEncryptionKey(o.snapshotEncryptionKey); |
| 7529 unittest.expect(o.sourceDisk, unittest.equals('foo')); | 7597 unittest.expect(o.sourceDisk, unittest.equals('foo')); |
| 7530 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); | 7598 checkCustomerEncryptionKey(o.sourceDiskEncryptionKey); |
| 7531 unittest.expect(o.sourceDiskId, unittest.equals('foo')); | 7599 unittest.expect(o.sourceDiskId, unittest.equals('foo')); |
| 7532 unittest.expect(o.status, unittest.equals('foo')); | 7600 unittest.expect(o.status, unittest.equals('foo')); |
| 7533 unittest.expect(o.storageBytes, unittest.equals('foo')); | 7601 unittest.expect(o.storageBytes, unittest.equals('foo')); |
| 7534 unittest.expect(o.storageBytesStatus, unittest.equals('foo')); | 7602 unittest.expect(o.storageBytesStatus, unittest.equals('foo')); |
| 7535 } | 7603 } |
| 7536 buildCounterSnapshot--; | 7604 buildCounterSnapshot--; |
| 7537 } | 7605 } |
| 7538 | 7606 |
| 7539 buildUnnamed2377() { | 7607 buildUnnamed2398() { |
| 7540 var o = new core.List<api.Snapshot>(); | 7608 var o = new core.List<api.Snapshot>(); |
| 7541 o.add(buildSnapshot()); | 7609 o.add(buildSnapshot()); |
| 7542 o.add(buildSnapshot()); | 7610 o.add(buildSnapshot()); |
| 7543 return o; | 7611 return o; |
| 7544 } | 7612 } |
| 7545 | 7613 |
| 7546 checkUnnamed2377(core.List<api.Snapshot> o) { | 7614 checkUnnamed2398(core.List<api.Snapshot> o) { |
| 7547 unittest.expect(o, unittest.hasLength(2)); | 7615 unittest.expect(o, unittest.hasLength(2)); |
| 7548 checkSnapshot(o[0]); | 7616 checkSnapshot(o[0]); |
| 7549 checkSnapshot(o[1]); | 7617 checkSnapshot(o[1]); |
| 7550 } | 7618 } |
| 7551 | 7619 |
| 7552 core.int buildCounterSnapshotList = 0; | 7620 core.int buildCounterSnapshotList = 0; |
| 7553 buildSnapshotList() { | 7621 buildSnapshotList() { |
| 7554 var o = new api.SnapshotList(); | 7622 var o = new api.SnapshotList(); |
| 7555 buildCounterSnapshotList++; | 7623 buildCounterSnapshotList++; |
| 7556 if (buildCounterSnapshotList < 3) { | 7624 if (buildCounterSnapshotList < 3) { |
| 7557 o.id = "foo"; | 7625 o.id = "foo"; |
| 7558 o.items = buildUnnamed2377(); | 7626 o.items = buildUnnamed2398(); |
| 7559 o.kind = "foo"; | 7627 o.kind = "foo"; |
| 7560 o.nextPageToken = "foo"; | 7628 o.nextPageToken = "foo"; |
| 7561 o.selfLink = "foo"; | 7629 o.selfLink = "foo"; |
| 7562 } | 7630 } |
| 7563 buildCounterSnapshotList--; | 7631 buildCounterSnapshotList--; |
| 7564 return o; | 7632 return o; |
| 7565 } | 7633 } |
| 7566 | 7634 |
| 7567 checkSnapshotList(api.SnapshotList o) { | 7635 checkSnapshotList(api.SnapshotList o) { |
| 7568 buildCounterSnapshotList++; | 7636 buildCounterSnapshotList++; |
| 7569 if (buildCounterSnapshotList < 3) { | 7637 if (buildCounterSnapshotList < 3) { |
| 7570 unittest.expect(o.id, unittest.equals('foo')); | 7638 unittest.expect(o.id, unittest.equals('foo')); |
| 7571 checkUnnamed2377(o.items); | 7639 checkUnnamed2398(o.items); |
| 7572 unittest.expect(o.kind, unittest.equals('foo')); | 7640 unittest.expect(o.kind, unittest.equals('foo')); |
| 7573 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7641 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7574 unittest.expect(o.selfLink, unittest.equals('foo')); | 7642 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7575 } | 7643 } |
| 7576 buildCounterSnapshotList--; | 7644 buildCounterSnapshotList--; |
| 7577 } | 7645 } |
| 7578 | 7646 |
| 7579 core.int buildCounterSslCertificate = 0; | 7647 core.int buildCounterSslCertificate = 0; |
| 7580 buildSslCertificate() { | 7648 buildSslCertificate() { |
| 7581 var o = new api.SslCertificate(); | 7649 var o = new api.SslCertificate(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 7602 unittest.expect(o.description, unittest.equals('foo')); | 7670 unittest.expect(o.description, unittest.equals('foo')); |
| 7603 unittest.expect(o.id, unittest.equals('foo')); | 7671 unittest.expect(o.id, unittest.equals('foo')); |
| 7604 unittest.expect(o.kind, unittest.equals('foo')); | 7672 unittest.expect(o.kind, unittest.equals('foo')); |
| 7605 unittest.expect(o.name, unittest.equals('foo')); | 7673 unittest.expect(o.name, unittest.equals('foo')); |
| 7606 unittest.expect(o.privateKey, unittest.equals('foo')); | 7674 unittest.expect(o.privateKey, unittest.equals('foo')); |
| 7607 unittest.expect(o.selfLink, unittest.equals('foo')); | 7675 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7608 } | 7676 } |
| 7609 buildCounterSslCertificate--; | 7677 buildCounterSslCertificate--; |
| 7610 } | 7678 } |
| 7611 | 7679 |
| 7612 buildUnnamed2378() { | 7680 buildUnnamed2399() { |
| 7613 var o = new core.List<api.SslCertificate>(); | 7681 var o = new core.List<api.SslCertificate>(); |
| 7614 o.add(buildSslCertificate()); | 7682 o.add(buildSslCertificate()); |
| 7615 o.add(buildSslCertificate()); | 7683 o.add(buildSslCertificate()); |
| 7616 return o; | 7684 return o; |
| 7617 } | 7685 } |
| 7618 | 7686 |
| 7619 checkUnnamed2378(core.List<api.SslCertificate> o) { | 7687 checkUnnamed2399(core.List<api.SslCertificate> o) { |
| 7620 unittest.expect(o, unittest.hasLength(2)); | 7688 unittest.expect(o, unittest.hasLength(2)); |
| 7621 checkSslCertificate(o[0]); | 7689 checkSslCertificate(o[0]); |
| 7622 checkSslCertificate(o[1]); | 7690 checkSslCertificate(o[1]); |
| 7623 } | 7691 } |
| 7624 | 7692 |
| 7625 core.int buildCounterSslCertificateList = 0; | 7693 core.int buildCounterSslCertificateList = 0; |
| 7626 buildSslCertificateList() { | 7694 buildSslCertificateList() { |
| 7627 var o = new api.SslCertificateList(); | 7695 var o = new api.SslCertificateList(); |
| 7628 buildCounterSslCertificateList++; | 7696 buildCounterSslCertificateList++; |
| 7629 if (buildCounterSslCertificateList < 3) { | 7697 if (buildCounterSslCertificateList < 3) { |
| 7630 o.id = "foo"; | 7698 o.id = "foo"; |
| 7631 o.items = buildUnnamed2378(); | 7699 o.items = buildUnnamed2399(); |
| 7632 o.kind = "foo"; | 7700 o.kind = "foo"; |
| 7633 o.nextPageToken = "foo"; | 7701 o.nextPageToken = "foo"; |
| 7634 o.selfLink = "foo"; | 7702 o.selfLink = "foo"; |
| 7635 } | 7703 } |
| 7636 buildCounterSslCertificateList--; | 7704 buildCounterSslCertificateList--; |
| 7637 return o; | 7705 return o; |
| 7638 } | 7706 } |
| 7639 | 7707 |
| 7640 checkSslCertificateList(api.SslCertificateList o) { | 7708 checkSslCertificateList(api.SslCertificateList o) { |
| 7641 buildCounterSslCertificateList++; | 7709 buildCounterSslCertificateList++; |
| 7642 if (buildCounterSslCertificateList < 3) { | 7710 if (buildCounterSslCertificateList < 3) { |
| 7643 unittest.expect(o.id, unittest.equals('foo')); | 7711 unittest.expect(o.id, unittest.equals('foo')); |
| 7644 checkUnnamed2378(o.items); | 7712 checkUnnamed2399(o.items); |
| 7645 unittest.expect(o.kind, unittest.equals('foo')); | 7713 unittest.expect(o.kind, unittest.equals('foo')); |
| 7646 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7714 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7647 unittest.expect(o.selfLink, unittest.equals('foo')); | 7715 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7648 } | 7716 } |
| 7649 buildCounterSslCertificateList--; | 7717 buildCounterSslCertificateList--; |
| 7650 } | 7718 } |
| 7651 | 7719 |
| 7652 buildUnnamed2379() { | 7720 buildUnnamed2400() { |
| 7653 var o = new core.List<api.SubnetworkSecondaryRange>(); | 7721 var o = new core.List<api.SubnetworkSecondaryRange>(); |
| 7654 o.add(buildSubnetworkSecondaryRange()); | 7722 o.add(buildSubnetworkSecondaryRange()); |
| 7655 o.add(buildSubnetworkSecondaryRange()); | 7723 o.add(buildSubnetworkSecondaryRange()); |
| 7656 return o; | 7724 return o; |
| 7657 } | 7725 } |
| 7658 | 7726 |
| 7659 checkUnnamed2379(core.List<api.SubnetworkSecondaryRange> o) { | 7727 checkUnnamed2400(core.List<api.SubnetworkSecondaryRange> o) { |
| 7660 unittest.expect(o, unittest.hasLength(2)); | 7728 unittest.expect(o, unittest.hasLength(2)); |
| 7661 checkSubnetworkSecondaryRange(o[0]); | 7729 checkSubnetworkSecondaryRange(o[0]); |
| 7662 checkSubnetworkSecondaryRange(o[1]); | 7730 checkSubnetworkSecondaryRange(o[1]); |
| 7663 } | 7731 } |
| 7664 | 7732 |
| 7665 core.int buildCounterSubnetwork = 0; | 7733 core.int buildCounterSubnetwork = 0; |
| 7666 buildSubnetwork() { | 7734 buildSubnetwork() { |
| 7667 var o = new api.Subnetwork(); | 7735 var o = new api.Subnetwork(); |
| 7668 buildCounterSubnetwork++; | 7736 buildCounterSubnetwork++; |
| 7669 if (buildCounterSubnetwork < 3) { | 7737 if (buildCounterSubnetwork < 3) { |
| 7670 o.creationTimestamp = "foo"; | 7738 o.creationTimestamp = "foo"; |
| 7671 o.description = "foo"; | 7739 o.description = "foo"; |
| 7672 o.gatewayAddress = "foo"; | 7740 o.gatewayAddress = "foo"; |
| 7673 o.id = "foo"; | 7741 o.id = "foo"; |
| 7674 o.ipCidrRange = "foo"; | 7742 o.ipCidrRange = "foo"; |
| 7675 o.kind = "foo"; | 7743 o.kind = "foo"; |
| 7676 o.name = "foo"; | 7744 o.name = "foo"; |
| 7677 o.network = "foo"; | 7745 o.network = "foo"; |
| 7678 o.privateIpGoogleAccess = true; | 7746 o.privateIpGoogleAccess = true; |
| 7679 o.region = "foo"; | 7747 o.region = "foo"; |
| 7680 o.secondaryIpRanges = buildUnnamed2379(); | 7748 o.secondaryIpRanges = buildUnnamed2400(); |
| 7681 o.selfLink = "foo"; | 7749 o.selfLink = "foo"; |
| 7682 } | 7750 } |
| 7683 buildCounterSubnetwork--; | 7751 buildCounterSubnetwork--; |
| 7684 return o; | 7752 return o; |
| 7685 } | 7753 } |
| 7686 | 7754 |
| 7687 checkSubnetwork(api.Subnetwork o) { | 7755 checkSubnetwork(api.Subnetwork o) { |
| 7688 buildCounterSubnetwork++; | 7756 buildCounterSubnetwork++; |
| 7689 if (buildCounterSubnetwork < 3) { | 7757 if (buildCounterSubnetwork < 3) { |
| 7690 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 7758 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 7691 unittest.expect(o.description, unittest.equals('foo')); | 7759 unittest.expect(o.description, unittest.equals('foo')); |
| 7692 unittest.expect(o.gatewayAddress, unittest.equals('foo')); | 7760 unittest.expect(o.gatewayAddress, unittest.equals('foo')); |
| 7693 unittest.expect(o.id, unittest.equals('foo')); | 7761 unittest.expect(o.id, unittest.equals('foo')); |
| 7694 unittest.expect(o.ipCidrRange, unittest.equals('foo')); | 7762 unittest.expect(o.ipCidrRange, unittest.equals('foo')); |
| 7695 unittest.expect(o.kind, unittest.equals('foo')); | 7763 unittest.expect(o.kind, unittest.equals('foo')); |
| 7696 unittest.expect(o.name, unittest.equals('foo')); | 7764 unittest.expect(o.name, unittest.equals('foo')); |
| 7697 unittest.expect(o.network, unittest.equals('foo')); | 7765 unittest.expect(o.network, unittest.equals('foo')); |
| 7698 unittest.expect(o.privateIpGoogleAccess, unittest.isTrue); | 7766 unittest.expect(o.privateIpGoogleAccess, unittest.isTrue); |
| 7699 unittest.expect(o.region, unittest.equals('foo')); | 7767 unittest.expect(o.region, unittest.equals('foo')); |
| 7700 checkUnnamed2379(o.secondaryIpRanges); | 7768 checkUnnamed2400(o.secondaryIpRanges); |
| 7701 unittest.expect(o.selfLink, unittest.equals('foo')); | 7769 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7702 } | 7770 } |
| 7703 buildCounterSubnetwork--; | 7771 buildCounterSubnetwork--; |
| 7704 } | 7772 } |
| 7705 | 7773 |
| 7706 buildUnnamed2380() { | 7774 buildUnnamed2401() { |
| 7707 var o = new core.Map<core.String, api.SubnetworksScopedList>(); | 7775 var o = new core.Map<core.String, api.SubnetworksScopedList>(); |
| 7708 o["x"] = buildSubnetworksScopedList(); | 7776 o["x"] = buildSubnetworksScopedList(); |
| 7709 o["y"] = buildSubnetworksScopedList(); | 7777 o["y"] = buildSubnetworksScopedList(); |
| 7710 return o; | 7778 return o; |
| 7711 } | 7779 } |
| 7712 | 7780 |
| 7713 checkUnnamed2380(core.Map<core.String, api.SubnetworksScopedList> o) { | 7781 checkUnnamed2401(core.Map<core.String, api.SubnetworksScopedList> o) { |
| 7714 unittest.expect(o, unittest.hasLength(2)); | 7782 unittest.expect(o, unittest.hasLength(2)); |
| 7715 checkSubnetworksScopedList(o["x"]); | 7783 checkSubnetworksScopedList(o["x"]); |
| 7716 checkSubnetworksScopedList(o["y"]); | 7784 checkSubnetworksScopedList(o["y"]); |
| 7717 } | 7785 } |
| 7718 | 7786 |
| 7719 core.int buildCounterSubnetworkAggregatedList = 0; | 7787 core.int buildCounterSubnetworkAggregatedList = 0; |
| 7720 buildSubnetworkAggregatedList() { | 7788 buildSubnetworkAggregatedList() { |
| 7721 var o = new api.SubnetworkAggregatedList(); | 7789 var o = new api.SubnetworkAggregatedList(); |
| 7722 buildCounterSubnetworkAggregatedList++; | 7790 buildCounterSubnetworkAggregatedList++; |
| 7723 if (buildCounterSubnetworkAggregatedList < 3) { | 7791 if (buildCounterSubnetworkAggregatedList < 3) { |
| 7724 o.id = "foo"; | 7792 o.id = "foo"; |
| 7725 o.items = buildUnnamed2380(); | 7793 o.items = buildUnnamed2401(); |
| 7726 o.kind = "foo"; | 7794 o.kind = "foo"; |
| 7727 o.nextPageToken = "foo"; | 7795 o.nextPageToken = "foo"; |
| 7728 o.selfLink = "foo"; | 7796 o.selfLink = "foo"; |
| 7729 } | 7797 } |
| 7730 buildCounterSubnetworkAggregatedList--; | 7798 buildCounterSubnetworkAggregatedList--; |
| 7731 return o; | 7799 return o; |
| 7732 } | 7800 } |
| 7733 | 7801 |
| 7734 checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) { | 7802 checkSubnetworkAggregatedList(api.SubnetworkAggregatedList o) { |
| 7735 buildCounterSubnetworkAggregatedList++; | 7803 buildCounterSubnetworkAggregatedList++; |
| 7736 if (buildCounterSubnetworkAggregatedList < 3) { | 7804 if (buildCounterSubnetworkAggregatedList < 3) { |
| 7737 unittest.expect(o.id, unittest.equals('foo')); | 7805 unittest.expect(o.id, unittest.equals('foo')); |
| 7738 checkUnnamed2380(o.items); | 7806 checkUnnamed2401(o.items); |
| 7739 unittest.expect(o.kind, unittest.equals('foo')); | 7807 unittest.expect(o.kind, unittest.equals('foo')); |
| 7740 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7808 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7741 unittest.expect(o.selfLink, unittest.equals('foo')); | 7809 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7742 } | 7810 } |
| 7743 buildCounterSubnetworkAggregatedList--; | 7811 buildCounterSubnetworkAggregatedList--; |
| 7744 } | 7812 } |
| 7745 | 7813 |
| 7746 buildUnnamed2381() { | 7814 buildUnnamed2402() { |
| 7747 var o = new core.List<api.Subnetwork>(); | 7815 var o = new core.List<api.Subnetwork>(); |
| 7748 o.add(buildSubnetwork()); | 7816 o.add(buildSubnetwork()); |
| 7749 o.add(buildSubnetwork()); | 7817 o.add(buildSubnetwork()); |
| 7750 return o; | 7818 return o; |
| 7751 } | 7819 } |
| 7752 | 7820 |
| 7753 checkUnnamed2381(core.List<api.Subnetwork> o) { | 7821 checkUnnamed2402(core.List<api.Subnetwork> o) { |
| 7754 unittest.expect(o, unittest.hasLength(2)); | 7822 unittest.expect(o, unittest.hasLength(2)); |
| 7755 checkSubnetwork(o[0]); | 7823 checkSubnetwork(o[0]); |
| 7756 checkSubnetwork(o[1]); | 7824 checkSubnetwork(o[1]); |
| 7757 } | 7825 } |
| 7758 | 7826 |
| 7759 core.int buildCounterSubnetworkList = 0; | 7827 core.int buildCounterSubnetworkList = 0; |
| 7760 buildSubnetworkList() { | 7828 buildSubnetworkList() { |
| 7761 var o = new api.SubnetworkList(); | 7829 var o = new api.SubnetworkList(); |
| 7762 buildCounterSubnetworkList++; | 7830 buildCounterSubnetworkList++; |
| 7763 if (buildCounterSubnetworkList < 3) { | 7831 if (buildCounterSubnetworkList < 3) { |
| 7764 o.id = "foo"; | 7832 o.id = "foo"; |
| 7765 o.items = buildUnnamed2381(); | 7833 o.items = buildUnnamed2402(); |
| 7766 o.kind = "foo"; | 7834 o.kind = "foo"; |
| 7767 o.nextPageToken = "foo"; | 7835 o.nextPageToken = "foo"; |
| 7768 o.selfLink = "foo"; | 7836 o.selfLink = "foo"; |
| 7769 } | 7837 } |
| 7770 buildCounterSubnetworkList--; | 7838 buildCounterSubnetworkList--; |
| 7771 return o; | 7839 return o; |
| 7772 } | 7840 } |
| 7773 | 7841 |
| 7774 checkSubnetworkList(api.SubnetworkList o) { | 7842 checkSubnetworkList(api.SubnetworkList o) { |
| 7775 buildCounterSubnetworkList++; | 7843 buildCounterSubnetworkList++; |
| 7776 if (buildCounterSubnetworkList < 3) { | 7844 if (buildCounterSubnetworkList < 3) { |
| 7777 unittest.expect(o.id, unittest.equals('foo')); | 7845 unittest.expect(o.id, unittest.equals('foo')); |
| 7778 checkUnnamed2381(o.items); | 7846 checkUnnamed2402(o.items); |
| 7779 unittest.expect(o.kind, unittest.equals('foo')); | 7847 unittest.expect(o.kind, unittest.equals('foo')); |
| 7780 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 7848 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 7781 unittest.expect(o.selfLink, unittest.equals('foo')); | 7849 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 7782 } | 7850 } |
| 7783 buildCounterSubnetworkList--; | 7851 buildCounterSubnetworkList--; |
| 7784 } | 7852 } |
| 7785 | 7853 |
| 7786 core.int buildCounterSubnetworkSecondaryRange = 0; | 7854 core.int buildCounterSubnetworkSecondaryRange = 0; |
| 7787 buildSubnetworkSecondaryRange() { | 7855 buildSubnetworkSecondaryRange() { |
| 7788 var o = new api.SubnetworkSecondaryRange(); | 7856 var o = new api.SubnetworkSecondaryRange(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7816 } | 7884 } |
| 7817 | 7885 |
| 7818 checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest
o) { | 7886 checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest
o) { |
| 7819 buildCounterSubnetworksExpandIpCidrRangeRequest++; | 7887 buildCounterSubnetworksExpandIpCidrRangeRequest++; |
| 7820 if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { | 7888 if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { |
| 7821 unittest.expect(o.ipCidrRange, unittest.equals('foo')); | 7889 unittest.expect(o.ipCidrRange, unittest.equals('foo')); |
| 7822 } | 7890 } |
| 7823 buildCounterSubnetworksExpandIpCidrRangeRequest--; | 7891 buildCounterSubnetworksExpandIpCidrRangeRequest--; |
| 7824 } | 7892 } |
| 7825 | 7893 |
| 7826 buildUnnamed2382() { | 7894 buildUnnamed2403() { |
| 7827 var o = new core.List<api.Subnetwork>(); | 7895 var o = new core.List<api.Subnetwork>(); |
| 7828 o.add(buildSubnetwork()); | 7896 o.add(buildSubnetwork()); |
| 7829 o.add(buildSubnetwork()); | 7897 o.add(buildSubnetwork()); |
| 7830 return o; | 7898 return o; |
| 7831 } | 7899 } |
| 7832 | 7900 |
| 7833 checkUnnamed2382(core.List<api.Subnetwork> o) { | 7901 checkUnnamed2403(core.List<api.Subnetwork> o) { |
| 7834 unittest.expect(o, unittest.hasLength(2)); | 7902 unittest.expect(o, unittest.hasLength(2)); |
| 7835 checkSubnetwork(o[0]); | 7903 checkSubnetwork(o[0]); |
| 7836 checkSubnetwork(o[1]); | 7904 checkSubnetwork(o[1]); |
| 7837 } | 7905 } |
| 7838 | 7906 |
| 7839 core.int buildCounterSubnetworksScopedListWarningData = 0; | 7907 core.int buildCounterSubnetworksScopedListWarningData = 0; |
| 7840 buildSubnetworksScopedListWarningData() { | 7908 buildSubnetworksScopedListWarningData() { |
| 7841 var o = new api.SubnetworksScopedListWarningData(); | 7909 var o = new api.SubnetworksScopedListWarningData(); |
| 7842 buildCounterSubnetworksScopedListWarningData++; | 7910 buildCounterSubnetworksScopedListWarningData++; |
| 7843 if (buildCounterSubnetworksScopedListWarningData < 3) { | 7911 if (buildCounterSubnetworksScopedListWarningData < 3) { |
| 7844 o.key = "foo"; | 7912 o.key = "foo"; |
| 7845 o.value = "foo"; | 7913 o.value = "foo"; |
| 7846 } | 7914 } |
| 7847 buildCounterSubnetworksScopedListWarningData--; | 7915 buildCounterSubnetworksScopedListWarningData--; |
| 7848 return o; | 7916 return o; |
| 7849 } | 7917 } |
| 7850 | 7918 |
| 7851 checkSubnetworksScopedListWarningData(api.SubnetworksScopedListWarningData o) { | 7919 checkSubnetworksScopedListWarningData(api.SubnetworksScopedListWarningData o) { |
| 7852 buildCounterSubnetworksScopedListWarningData++; | 7920 buildCounterSubnetworksScopedListWarningData++; |
| 7853 if (buildCounterSubnetworksScopedListWarningData < 3) { | 7921 if (buildCounterSubnetworksScopedListWarningData < 3) { |
| 7854 unittest.expect(o.key, unittest.equals('foo')); | 7922 unittest.expect(o.key, unittest.equals('foo')); |
| 7855 unittest.expect(o.value, unittest.equals('foo')); | 7923 unittest.expect(o.value, unittest.equals('foo')); |
| 7856 } | 7924 } |
| 7857 buildCounterSubnetworksScopedListWarningData--; | 7925 buildCounterSubnetworksScopedListWarningData--; |
| 7858 } | 7926 } |
| 7859 | 7927 |
| 7860 buildUnnamed2383() { | 7928 buildUnnamed2404() { |
| 7861 var o = new core.List<api.SubnetworksScopedListWarningData>(); | 7929 var o = new core.List<api.SubnetworksScopedListWarningData>(); |
| 7862 o.add(buildSubnetworksScopedListWarningData()); | 7930 o.add(buildSubnetworksScopedListWarningData()); |
| 7863 o.add(buildSubnetworksScopedListWarningData()); | 7931 o.add(buildSubnetworksScopedListWarningData()); |
| 7864 return o; | 7932 return o; |
| 7865 } | 7933 } |
| 7866 | 7934 |
| 7867 checkUnnamed2383(core.List<api.SubnetworksScopedListWarningData> o) { | 7935 checkUnnamed2404(core.List<api.SubnetworksScopedListWarningData> o) { |
| 7868 unittest.expect(o, unittest.hasLength(2)); | 7936 unittest.expect(o, unittest.hasLength(2)); |
| 7869 checkSubnetworksScopedListWarningData(o[0]); | 7937 checkSubnetworksScopedListWarningData(o[0]); |
| 7870 checkSubnetworksScopedListWarningData(o[1]); | 7938 checkSubnetworksScopedListWarningData(o[1]); |
| 7871 } | 7939 } |
| 7872 | 7940 |
| 7873 core.int buildCounterSubnetworksScopedListWarning = 0; | 7941 core.int buildCounterSubnetworksScopedListWarning = 0; |
| 7874 buildSubnetworksScopedListWarning() { | 7942 buildSubnetworksScopedListWarning() { |
| 7875 var o = new api.SubnetworksScopedListWarning(); | 7943 var o = new api.SubnetworksScopedListWarning(); |
| 7876 buildCounterSubnetworksScopedListWarning++; | 7944 buildCounterSubnetworksScopedListWarning++; |
| 7877 if (buildCounterSubnetworksScopedListWarning < 3) { | 7945 if (buildCounterSubnetworksScopedListWarning < 3) { |
| 7878 o.code = "foo"; | 7946 o.code = "foo"; |
| 7879 o.data = buildUnnamed2383(); | 7947 o.data = buildUnnamed2404(); |
| 7880 o.message = "foo"; | 7948 o.message = "foo"; |
| 7881 } | 7949 } |
| 7882 buildCounterSubnetworksScopedListWarning--; | 7950 buildCounterSubnetworksScopedListWarning--; |
| 7883 return o; | 7951 return o; |
| 7884 } | 7952 } |
| 7885 | 7953 |
| 7886 checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) { | 7954 checkSubnetworksScopedListWarning(api.SubnetworksScopedListWarning o) { |
| 7887 buildCounterSubnetworksScopedListWarning++; | 7955 buildCounterSubnetworksScopedListWarning++; |
| 7888 if (buildCounterSubnetworksScopedListWarning < 3) { | 7956 if (buildCounterSubnetworksScopedListWarning < 3) { |
| 7889 unittest.expect(o.code, unittest.equals('foo')); | 7957 unittest.expect(o.code, unittest.equals('foo')); |
| 7890 checkUnnamed2383(o.data); | 7958 checkUnnamed2404(o.data); |
| 7891 unittest.expect(o.message, unittest.equals('foo')); | 7959 unittest.expect(o.message, unittest.equals('foo')); |
| 7892 } | 7960 } |
| 7893 buildCounterSubnetworksScopedListWarning--; | 7961 buildCounterSubnetworksScopedListWarning--; |
| 7894 } | 7962 } |
| 7895 | 7963 |
| 7896 core.int buildCounterSubnetworksScopedList = 0; | 7964 core.int buildCounterSubnetworksScopedList = 0; |
| 7897 buildSubnetworksScopedList() { | 7965 buildSubnetworksScopedList() { |
| 7898 var o = new api.SubnetworksScopedList(); | 7966 var o = new api.SubnetworksScopedList(); |
| 7899 buildCounterSubnetworksScopedList++; | 7967 buildCounterSubnetworksScopedList++; |
| 7900 if (buildCounterSubnetworksScopedList < 3) { | 7968 if (buildCounterSubnetworksScopedList < 3) { |
| 7901 o.subnetworks = buildUnnamed2382(); | 7969 o.subnetworks = buildUnnamed2403(); |
| 7902 o.warning = buildSubnetworksScopedListWarning(); | 7970 o.warning = buildSubnetworksScopedListWarning(); |
| 7903 } | 7971 } |
| 7904 buildCounterSubnetworksScopedList--; | 7972 buildCounterSubnetworksScopedList--; |
| 7905 return o; | 7973 return o; |
| 7906 } | 7974 } |
| 7907 | 7975 |
| 7908 checkSubnetworksScopedList(api.SubnetworksScopedList o) { | 7976 checkSubnetworksScopedList(api.SubnetworksScopedList o) { |
| 7909 buildCounterSubnetworksScopedList++; | 7977 buildCounterSubnetworksScopedList++; |
| 7910 if (buildCounterSubnetworksScopedList < 3) { | 7978 if (buildCounterSubnetworksScopedList < 3) { |
| 7911 checkUnnamed2382(o.subnetworks); | 7979 checkUnnamed2403(o.subnetworks); |
| 7912 checkSubnetworksScopedListWarning(o.warning); | 7980 checkSubnetworksScopedListWarning(o.warning); |
| 7913 } | 7981 } |
| 7914 buildCounterSubnetworksScopedList--; | 7982 buildCounterSubnetworksScopedList--; |
| 7915 } | 7983 } |
| 7916 | 7984 |
| 7917 core.int buildCounterSubnetworksSetPrivateIpGoogleAccessRequest = 0; | 7985 core.int buildCounterSubnetworksSetPrivateIpGoogleAccessRequest = 0; |
| 7918 buildSubnetworksSetPrivateIpGoogleAccessRequest() { | 7986 buildSubnetworksSetPrivateIpGoogleAccessRequest() { |
| 7919 var o = new api.SubnetworksSetPrivateIpGoogleAccessRequest(); | 7987 var o = new api.SubnetworksSetPrivateIpGoogleAccessRequest(); |
| 7920 buildCounterSubnetworksSetPrivateIpGoogleAccessRequest++; | 7988 buildCounterSubnetworksSetPrivateIpGoogleAccessRequest++; |
| 7921 if (buildCounterSubnetworksSetPrivateIpGoogleAccessRequest < 3) { | 7989 if (buildCounterSubnetworksSetPrivateIpGoogleAccessRequest < 3) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7953 if (buildCounterTCPHealthCheck < 3) { | 8021 if (buildCounterTCPHealthCheck < 3) { |
| 7954 unittest.expect(o.port, unittest.equals(42)); | 8022 unittest.expect(o.port, unittest.equals(42)); |
| 7955 unittest.expect(o.portName, unittest.equals('foo')); | 8023 unittest.expect(o.portName, unittest.equals('foo')); |
| 7956 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 8024 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
| 7957 unittest.expect(o.request, unittest.equals('foo')); | 8025 unittest.expect(o.request, unittest.equals('foo')); |
| 7958 unittest.expect(o.response, unittest.equals('foo')); | 8026 unittest.expect(o.response, unittest.equals('foo')); |
| 7959 } | 8027 } |
| 7960 buildCounterTCPHealthCheck--; | 8028 buildCounterTCPHealthCheck--; |
| 7961 } | 8029 } |
| 7962 | 8030 |
| 7963 buildUnnamed2384() { | 8031 buildUnnamed2405() { |
| 7964 var o = new core.List<core.String>(); | 8032 var o = new core.List<core.String>(); |
| 7965 o.add("foo"); | 8033 o.add("foo"); |
| 7966 o.add("foo"); | 8034 o.add("foo"); |
| 7967 return o; | 8035 return o; |
| 7968 } | 8036 } |
| 7969 | 8037 |
| 7970 checkUnnamed2384(core.List<core.String> o) { | 8038 checkUnnamed2405(core.List<core.String> o) { |
| 7971 unittest.expect(o, unittest.hasLength(2)); | 8039 unittest.expect(o, unittest.hasLength(2)); |
| 7972 unittest.expect(o[0], unittest.equals('foo')); | 8040 unittest.expect(o[0], unittest.equals('foo')); |
| 7973 unittest.expect(o[1], unittest.equals('foo')); | 8041 unittest.expect(o[1], unittest.equals('foo')); |
| 7974 } | 8042 } |
| 7975 | 8043 |
| 7976 core.int buildCounterTags = 0; | 8044 core.int buildCounterTags = 0; |
| 7977 buildTags() { | 8045 buildTags() { |
| 7978 var o = new api.Tags(); | 8046 var o = new api.Tags(); |
| 7979 buildCounterTags++; | 8047 buildCounterTags++; |
| 7980 if (buildCounterTags < 3) { | 8048 if (buildCounterTags < 3) { |
| 7981 o.fingerprint = "foo"; | 8049 o.fingerprint = "foo"; |
| 7982 o.items = buildUnnamed2384(); | 8050 o.items = buildUnnamed2405(); |
| 7983 } | 8051 } |
| 7984 buildCounterTags--; | 8052 buildCounterTags--; |
| 7985 return o; | 8053 return o; |
| 7986 } | 8054 } |
| 7987 | 8055 |
| 7988 checkTags(api.Tags o) { | 8056 checkTags(api.Tags o) { |
| 7989 buildCounterTags++; | 8057 buildCounterTags++; |
| 7990 if (buildCounterTags < 3) { | 8058 if (buildCounterTags < 3) { |
| 7991 unittest.expect(o.fingerprint, unittest.equals('foo')); | 8059 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 7992 checkUnnamed2384(o.items); | 8060 checkUnnamed2405(o.items); |
| 7993 } | 8061 } |
| 7994 buildCounterTags--; | 8062 buildCounterTags--; |
| 7995 } | 8063 } |
| 7996 | 8064 |
| 7997 core.int buildCounterTargetHttpProxy = 0; | 8065 core.int buildCounterTargetHttpProxy = 0; |
| 7998 buildTargetHttpProxy() { | 8066 buildTargetHttpProxy() { |
| 7999 var o = new api.TargetHttpProxy(); | 8067 var o = new api.TargetHttpProxy(); |
| 8000 buildCounterTargetHttpProxy++; | 8068 buildCounterTargetHttpProxy++; |
| 8001 if (buildCounterTargetHttpProxy < 3) { | 8069 if (buildCounterTargetHttpProxy < 3) { |
| 8002 o.creationTimestamp = "foo"; | 8070 o.creationTimestamp = "foo"; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 8018 unittest.expect(o.description, unittest.equals('foo')); | 8086 unittest.expect(o.description, unittest.equals('foo')); |
| 8019 unittest.expect(o.id, unittest.equals('foo')); | 8087 unittest.expect(o.id, unittest.equals('foo')); |
| 8020 unittest.expect(o.kind, unittest.equals('foo')); | 8088 unittest.expect(o.kind, unittest.equals('foo')); |
| 8021 unittest.expect(o.name, unittest.equals('foo')); | 8089 unittest.expect(o.name, unittest.equals('foo')); |
| 8022 unittest.expect(o.selfLink, unittest.equals('foo')); | 8090 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8023 unittest.expect(o.urlMap, unittest.equals('foo')); | 8091 unittest.expect(o.urlMap, unittest.equals('foo')); |
| 8024 } | 8092 } |
| 8025 buildCounterTargetHttpProxy--; | 8093 buildCounterTargetHttpProxy--; |
| 8026 } | 8094 } |
| 8027 | 8095 |
| 8028 buildUnnamed2385() { | 8096 buildUnnamed2406() { |
| 8029 var o = new core.List<api.TargetHttpProxy>(); | 8097 var o = new core.List<api.TargetHttpProxy>(); |
| 8030 o.add(buildTargetHttpProxy()); | 8098 o.add(buildTargetHttpProxy()); |
| 8031 o.add(buildTargetHttpProxy()); | 8099 o.add(buildTargetHttpProxy()); |
| 8032 return o; | 8100 return o; |
| 8033 } | 8101 } |
| 8034 | 8102 |
| 8035 checkUnnamed2385(core.List<api.TargetHttpProxy> o) { | 8103 checkUnnamed2406(core.List<api.TargetHttpProxy> o) { |
| 8036 unittest.expect(o, unittest.hasLength(2)); | 8104 unittest.expect(o, unittest.hasLength(2)); |
| 8037 checkTargetHttpProxy(o[0]); | 8105 checkTargetHttpProxy(o[0]); |
| 8038 checkTargetHttpProxy(o[1]); | 8106 checkTargetHttpProxy(o[1]); |
| 8039 } | 8107 } |
| 8040 | 8108 |
| 8041 core.int buildCounterTargetHttpProxyList = 0; | 8109 core.int buildCounterTargetHttpProxyList = 0; |
| 8042 buildTargetHttpProxyList() { | 8110 buildTargetHttpProxyList() { |
| 8043 var o = new api.TargetHttpProxyList(); | 8111 var o = new api.TargetHttpProxyList(); |
| 8044 buildCounterTargetHttpProxyList++; | 8112 buildCounterTargetHttpProxyList++; |
| 8045 if (buildCounterTargetHttpProxyList < 3) { | 8113 if (buildCounterTargetHttpProxyList < 3) { |
| 8046 o.id = "foo"; | 8114 o.id = "foo"; |
| 8047 o.items = buildUnnamed2385(); | 8115 o.items = buildUnnamed2406(); |
| 8048 o.kind = "foo"; | 8116 o.kind = "foo"; |
| 8049 o.nextPageToken = "foo"; | 8117 o.nextPageToken = "foo"; |
| 8050 o.selfLink = "foo"; | 8118 o.selfLink = "foo"; |
| 8051 } | 8119 } |
| 8052 buildCounterTargetHttpProxyList--; | 8120 buildCounterTargetHttpProxyList--; |
| 8053 return o; | 8121 return o; |
| 8054 } | 8122 } |
| 8055 | 8123 |
| 8056 checkTargetHttpProxyList(api.TargetHttpProxyList o) { | 8124 checkTargetHttpProxyList(api.TargetHttpProxyList o) { |
| 8057 buildCounterTargetHttpProxyList++; | 8125 buildCounterTargetHttpProxyList++; |
| 8058 if (buildCounterTargetHttpProxyList < 3) { | 8126 if (buildCounterTargetHttpProxyList < 3) { |
| 8059 unittest.expect(o.id, unittest.equals('foo')); | 8127 unittest.expect(o.id, unittest.equals('foo')); |
| 8060 checkUnnamed2385(o.items); | 8128 checkUnnamed2406(o.items); |
| 8061 unittest.expect(o.kind, unittest.equals('foo')); | 8129 unittest.expect(o.kind, unittest.equals('foo')); |
| 8062 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8130 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8063 unittest.expect(o.selfLink, unittest.equals('foo')); | 8131 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8064 } | 8132 } |
| 8065 buildCounterTargetHttpProxyList--; | 8133 buildCounterTargetHttpProxyList--; |
| 8066 } | 8134 } |
| 8067 | 8135 |
| 8068 buildUnnamed2386() { | 8136 buildUnnamed2407() { |
| 8069 var o = new core.List<core.String>(); | 8137 var o = new core.List<core.String>(); |
| 8070 o.add("foo"); | 8138 o.add("foo"); |
| 8071 o.add("foo"); | 8139 o.add("foo"); |
| 8072 return o; | 8140 return o; |
| 8073 } | 8141 } |
| 8074 | 8142 |
| 8075 checkUnnamed2386(core.List<core.String> o) { | 8143 checkUnnamed2407(core.List<core.String> o) { |
| 8076 unittest.expect(o, unittest.hasLength(2)); | 8144 unittest.expect(o, unittest.hasLength(2)); |
| 8077 unittest.expect(o[0], unittest.equals('foo')); | 8145 unittest.expect(o[0], unittest.equals('foo')); |
| 8078 unittest.expect(o[1], unittest.equals('foo')); | 8146 unittest.expect(o[1], unittest.equals('foo')); |
| 8079 } | 8147 } |
| 8080 | 8148 |
| 8081 core.int buildCounterTargetHttpsProxiesSetSslCertificatesRequest = 0; | 8149 core.int buildCounterTargetHttpsProxiesSetSslCertificatesRequest = 0; |
| 8082 buildTargetHttpsProxiesSetSslCertificatesRequest() { | 8150 buildTargetHttpsProxiesSetSslCertificatesRequest() { |
| 8083 var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); | 8151 var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); |
| 8084 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; | 8152 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; |
| 8085 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { | 8153 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { |
| 8086 o.sslCertificates = buildUnnamed2386(); | 8154 o.sslCertificates = buildUnnamed2407(); |
| 8087 } | 8155 } |
| 8088 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; | 8156 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; |
| 8089 return o; | 8157 return o; |
| 8090 } | 8158 } |
| 8091 | 8159 |
| 8092 checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCer
tificatesRequest o) { | 8160 checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCer
tificatesRequest o) { |
| 8093 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; | 8161 buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; |
| 8094 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { | 8162 if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { |
| 8095 checkUnnamed2386(o.sslCertificates); | 8163 checkUnnamed2407(o.sslCertificates); |
| 8096 } | 8164 } |
| 8097 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; | 8165 buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; |
| 8098 } | 8166 } |
| 8099 | 8167 |
| 8100 buildUnnamed2387() { | 8168 buildUnnamed2408() { |
| 8101 var o = new core.List<core.String>(); | 8169 var o = new core.List<core.String>(); |
| 8102 o.add("foo"); | 8170 o.add("foo"); |
| 8103 o.add("foo"); | 8171 o.add("foo"); |
| 8104 return o; | 8172 return o; |
| 8105 } | 8173 } |
| 8106 | 8174 |
| 8107 checkUnnamed2387(core.List<core.String> o) { | 8175 checkUnnamed2408(core.List<core.String> o) { |
| 8108 unittest.expect(o, unittest.hasLength(2)); | 8176 unittest.expect(o, unittest.hasLength(2)); |
| 8109 unittest.expect(o[0], unittest.equals('foo')); | 8177 unittest.expect(o[0], unittest.equals('foo')); |
| 8110 unittest.expect(o[1], unittest.equals('foo')); | 8178 unittest.expect(o[1], unittest.equals('foo')); |
| 8111 } | 8179 } |
| 8112 | 8180 |
| 8113 core.int buildCounterTargetHttpsProxy = 0; | 8181 core.int buildCounterTargetHttpsProxy = 0; |
| 8114 buildTargetHttpsProxy() { | 8182 buildTargetHttpsProxy() { |
| 8115 var o = new api.TargetHttpsProxy(); | 8183 var o = new api.TargetHttpsProxy(); |
| 8116 buildCounterTargetHttpsProxy++; | 8184 buildCounterTargetHttpsProxy++; |
| 8117 if (buildCounterTargetHttpsProxy < 3) { | 8185 if (buildCounterTargetHttpsProxy < 3) { |
| 8118 o.creationTimestamp = "foo"; | 8186 o.creationTimestamp = "foo"; |
| 8119 o.description = "foo"; | 8187 o.description = "foo"; |
| 8120 o.id = "foo"; | 8188 o.id = "foo"; |
| 8121 o.kind = "foo"; | 8189 o.kind = "foo"; |
| 8122 o.name = "foo"; | 8190 o.name = "foo"; |
| 8123 o.selfLink = "foo"; | 8191 o.selfLink = "foo"; |
| 8124 o.sslCertificates = buildUnnamed2387(); | 8192 o.sslCertificates = buildUnnamed2408(); |
| 8125 o.urlMap = "foo"; | 8193 o.urlMap = "foo"; |
| 8126 } | 8194 } |
| 8127 buildCounterTargetHttpsProxy--; | 8195 buildCounterTargetHttpsProxy--; |
| 8128 return o; | 8196 return o; |
| 8129 } | 8197 } |
| 8130 | 8198 |
| 8131 checkTargetHttpsProxy(api.TargetHttpsProxy o) { | 8199 checkTargetHttpsProxy(api.TargetHttpsProxy o) { |
| 8132 buildCounterTargetHttpsProxy++; | 8200 buildCounterTargetHttpsProxy++; |
| 8133 if (buildCounterTargetHttpsProxy < 3) { | 8201 if (buildCounterTargetHttpsProxy < 3) { |
| 8134 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 8202 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 8135 unittest.expect(o.description, unittest.equals('foo')); | 8203 unittest.expect(o.description, unittest.equals('foo')); |
| 8136 unittest.expect(o.id, unittest.equals('foo')); | 8204 unittest.expect(o.id, unittest.equals('foo')); |
| 8137 unittest.expect(o.kind, unittest.equals('foo')); | 8205 unittest.expect(o.kind, unittest.equals('foo')); |
| 8138 unittest.expect(o.name, unittest.equals('foo')); | 8206 unittest.expect(o.name, unittest.equals('foo')); |
| 8139 unittest.expect(o.selfLink, unittest.equals('foo')); | 8207 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8140 checkUnnamed2387(o.sslCertificates); | 8208 checkUnnamed2408(o.sslCertificates); |
| 8141 unittest.expect(o.urlMap, unittest.equals('foo')); | 8209 unittest.expect(o.urlMap, unittest.equals('foo')); |
| 8142 } | 8210 } |
| 8143 buildCounterTargetHttpsProxy--; | 8211 buildCounterTargetHttpsProxy--; |
| 8144 } | 8212 } |
| 8145 | 8213 |
| 8146 buildUnnamed2388() { | 8214 buildUnnamed2409() { |
| 8147 var o = new core.List<api.TargetHttpsProxy>(); | 8215 var o = new core.List<api.TargetHttpsProxy>(); |
| 8148 o.add(buildTargetHttpsProxy()); | 8216 o.add(buildTargetHttpsProxy()); |
| 8149 o.add(buildTargetHttpsProxy()); | 8217 o.add(buildTargetHttpsProxy()); |
| 8150 return o; | 8218 return o; |
| 8151 } | 8219 } |
| 8152 | 8220 |
| 8153 checkUnnamed2388(core.List<api.TargetHttpsProxy> o) { | 8221 checkUnnamed2409(core.List<api.TargetHttpsProxy> o) { |
| 8154 unittest.expect(o, unittest.hasLength(2)); | 8222 unittest.expect(o, unittest.hasLength(2)); |
| 8155 checkTargetHttpsProxy(o[0]); | 8223 checkTargetHttpsProxy(o[0]); |
| 8156 checkTargetHttpsProxy(o[1]); | 8224 checkTargetHttpsProxy(o[1]); |
| 8157 } | 8225 } |
| 8158 | 8226 |
| 8159 core.int buildCounterTargetHttpsProxyList = 0; | 8227 core.int buildCounterTargetHttpsProxyList = 0; |
| 8160 buildTargetHttpsProxyList() { | 8228 buildTargetHttpsProxyList() { |
| 8161 var o = new api.TargetHttpsProxyList(); | 8229 var o = new api.TargetHttpsProxyList(); |
| 8162 buildCounterTargetHttpsProxyList++; | 8230 buildCounterTargetHttpsProxyList++; |
| 8163 if (buildCounterTargetHttpsProxyList < 3) { | 8231 if (buildCounterTargetHttpsProxyList < 3) { |
| 8164 o.id = "foo"; | 8232 o.id = "foo"; |
| 8165 o.items = buildUnnamed2388(); | 8233 o.items = buildUnnamed2409(); |
| 8166 o.kind = "foo"; | 8234 o.kind = "foo"; |
| 8167 o.nextPageToken = "foo"; | 8235 o.nextPageToken = "foo"; |
| 8168 o.selfLink = "foo"; | 8236 o.selfLink = "foo"; |
| 8169 } | 8237 } |
| 8170 buildCounterTargetHttpsProxyList--; | 8238 buildCounterTargetHttpsProxyList--; |
| 8171 return o; | 8239 return o; |
| 8172 } | 8240 } |
| 8173 | 8241 |
| 8174 checkTargetHttpsProxyList(api.TargetHttpsProxyList o) { | 8242 checkTargetHttpsProxyList(api.TargetHttpsProxyList o) { |
| 8175 buildCounterTargetHttpsProxyList++; | 8243 buildCounterTargetHttpsProxyList++; |
| 8176 if (buildCounterTargetHttpsProxyList < 3) { | 8244 if (buildCounterTargetHttpsProxyList < 3) { |
| 8177 unittest.expect(o.id, unittest.equals('foo')); | 8245 unittest.expect(o.id, unittest.equals('foo')); |
| 8178 checkUnnamed2388(o.items); | 8246 checkUnnamed2409(o.items); |
| 8179 unittest.expect(o.kind, unittest.equals('foo')); | 8247 unittest.expect(o.kind, unittest.equals('foo')); |
| 8180 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8248 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8181 unittest.expect(o.selfLink, unittest.equals('foo')); | 8249 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8182 } | 8250 } |
| 8183 buildCounterTargetHttpsProxyList--; | 8251 buildCounterTargetHttpsProxyList--; |
| 8184 } | 8252 } |
| 8185 | 8253 |
| 8186 core.int buildCounterTargetInstance = 0; | 8254 core.int buildCounterTargetInstance = 0; |
| 8187 buildTargetInstance() { | 8255 buildTargetInstance() { |
| 8188 var o = new api.TargetInstance(); | 8256 var o = new api.TargetInstance(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 8211 unittest.expect(o.instance, unittest.equals('foo')); | 8279 unittest.expect(o.instance, unittest.equals('foo')); |
| 8212 unittest.expect(o.kind, unittest.equals('foo')); | 8280 unittest.expect(o.kind, unittest.equals('foo')); |
| 8213 unittest.expect(o.name, unittest.equals('foo')); | 8281 unittest.expect(o.name, unittest.equals('foo')); |
| 8214 unittest.expect(o.natPolicy, unittest.equals('foo')); | 8282 unittest.expect(o.natPolicy, unittest.equals('foo')); |
| 8215 unittest.expect(o.selfLink, unittest.equals('foo')); | 8283 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8216 unittest.expect(o.zone, unittest.equals('foo')); | 8284 unittest.expect(o.zone, unittest.equals('foo')); |
| 8217 } | 8285 } |
| 8218 buildCounterTargetInstance--; | 8286 buildCounterTargetInstance--; |
| 8219 } | 8287 } |
| 8220 | 8288 |
| 8221 buildUnnamed2389() { | 8289 buildUnnamed2410() { |
| 8222 var o = new core.Map<core.String, api.TargetInstancesScopedList>(); | 8290 var o = new core.Map<core.String, api.TargetInstancesScopedList>(); |
| 8223 o["x"] = buildTargetInstancesScopedList(); | 8291 o["x"] = buildTargetInstancesScopedList(); |
| 8224 o["y"] = buildTargetInstancesScopedList(); | 8292 o["y"] = buildTargetInstancesScopedList(); |
| 8225 return o; | 8293 return o; |
| 8226 } | 8294 } |
| 8227 | 8295 |
| 8228 checkUnnamed2389(core.Map<core.String, api.TargetInstancesScopedList> o) { | 8296 checkUnnamed2410(core.Map<core.String, api.TargetInstancesScopedList> o) { |
| 8229 unittest.expect(o, unittest.hasLength(2)); | 8297 unittest.expect(o, unittest.hasLength(2)); |
| 8230 checkTargetInstancesScopedList(o["x"]); | 8298 checkTargetInstancesScopedList(o["x"]); |
| 8231 checkTargetInstancesScopedList(o["y"]); | 8299 checkTargetInstancesScopedList(o["y"]); |
| 8232 } | 8300 } |
| 8233 | 8301 |
| 8234 core.int buildCounterTargetInstanceAggregatedList = 0; | 8302 core.int buildCounterTargetInstanceAggregatedList = 0; |
| 8235 buildTargetInstanceAggregatedList() { | 8303 buildTargetInstanceAggregatedList() { |
| 8236 var o = new api.TargetInstanceAggregatedList(); | 8304 var o = new api.TargetInstanceAggregatedList(); |
| 8237 buildCounterTargetInstanceAggregatedList++; | 8305 buildCounterTargetInstanceAggregatedList++; |
| 8238 if (buildCounterTargetInstanceAggregatedList < 3) { | 8306 if (buildCounterTargetInstanceAggregatedList < 3) { |
| 8239 o.id = "foo"; | 8307 o.id = "foo"; |
| 8240 o.items = buildUnnamed2389(); | 8308 o.items = buildUnnamed2410(); |
| 8241 o.kind = "foo"; | 8309 o.kind = "foo"; |
| 8242 o.nextPageToken = "foo"; | 8310 o.nextPageToken = "foo"; |
| 8243 o.selfLink = "foo"; | 8311 o.selfLink = "foo"; |
| 8244 } | 8312 } |
| 8245 buildCounterTargetInstanceAggregatedList--; | 8313 buildCounterTargetInstanceAggregatedList--; |
| 8246 return o; | 8314 return o; |
| 8247 } | 8315 } |
| 8248 | 8316 |
| 8249 checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { | 8317 checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { |
| 8250 buildCounterTargetInstanceAggregatedList++; | 8318 buildCounterTargetInstanceAggregatedList++; |
| 8251 if (buildCounterTargetInstanceAggregatedList < 3) { | 8319 if (buildCounterTargetInstanceAggregatedList < 3) { |
| 8252 unittest.expect(o.id, unittest.equals('foo')); | 8320 unittest.expect(o.id, unittest.equals('foo')); |
| 8253 checkUnnamed2389(o.items); | 8321 checkUnnamed2410(o.items); |
| 8254 unittest.expect(o.kind, unittest.equals('foo')); | 8322 unittest.expect(o.kind, unittest.equals('foo')); |
| 8255 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8323 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8256 unittest.expect(o.selfLink, unittest.equals('foo')); | 8324 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8257 } | 8325 } |
| 8258 buildCounterTargetInstanceAggregatedList--; | 8326 buildCounterTargetInstanceAggregatedList--; |
| 8259 } | 8327 } |
| 8260 | 8328 |
| 8261 buildUnnamed2390() { | 8329 buildUnnamed2411() { |
| 8262 var o = new core.List<api.TargetInstance>(); | 8330 var o = new core.List<api.TargetInstance>(); |
| 8263 o.add(buildTargetInstance()); | 8331 o.add(buildTargetInstance()); |
| 8264 o.add(buildTargetInstance()); | 8332 o.add(buildTargetInstance()); |
| 8265 return o; | 8333 return o; |
| 8266 } | 8334 } |
| 8267 | 8335 |
| 8268 checkUnnamed2390(core.List<api.TargetInstance> o) { | 8336 checkUnnamed2411(core.List<api.TargetInstance> o) { |
| 8269 unittest.expect(o, unittest.hasLength(2)); | 8337 unittest.expect(o, unittest.hasLength(2)); |
| 8270 checkTargetInstance(o[0]); | 8338 checkTargetInstance(o[0]); |
| 8271 checkTargetInstance(o[1]); | 8339 checkTargetInstance(o[1]); |
| 8272 } | 8340 } |
| 8273 | 8341 |
| 8274 core.int buildCounterTargetInstanceList = 0; | 8342 core.int buildCounterTargetInstanceList = 0; |
| 8275 buildTargetInstanceList() { | 8343 buildTargetInstanceList() { |
| 8276 var o = new api.TargetInstanceList(); | 8344 var o = new api.TargetInstanceList(); |
| 8277 buildCounterTargetInstanceList++; | 8345 buildCounterTargetInstanceList++; |
| 8278 if (buildCounterTargetInstanceList < 3) { | 8346 if (buildCounterTargetInstanceList < 3) { |
| 8279 o.id = "foo"; | 8347 o.id = "foo"; |
| 8280 o.items = buildUnnamed2390(); | 8348 o.items = buildUnnamed2411(); |
| 8281 o.kind = "foo"; | 8349 o.kind = "foo"; |
| 8282 o.nextPageToken = "foo"; | 8350 o.nextPageToken = "foo"; |
| 8283 o.selfLink = "foo"; | 8351 o.selfLink = "foo"; |
| 8284 } | 8352 } |
| 8285 buildCounterTargetInstanceList--; | 8353 buildCounterTargetInstanceList--; |
| 8286 return o; | 8354 return o; |
| 8287 } | 8355 } |
| 8288 | 8356 |
| 8289 checkTargetInstanceList(api.TargetInstanceList o) { | 8357 checkTargetInstanceList(api.TargetInstanceList o) { |
| 8290 buildCounterTargetInstanceList++; | 8358 buildCounterTargetInstanceList++; |
| 8291 if (buildCounterTargetInstanceList < 3) { | 8359 if (buildCounterTargetInstanceList < 3) { |
| 8292 unittest.expect(o.id, unittest.equals('foo')); | 8360 unittest.expect(o.id, unittest.equals('foo')); |
| 8293 checkUnnamed2390(o.items); | 8361 checkUnnamed2411(o.items); |
| 8294 unittest.expect(o.kind, unittest.equals('foo')); | 8362 unittest.expect(o.kind, unittest.equals('foo')); |
| 8295 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8363 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8296 unittest.expect(o.selfLink, unittest.equals('foo')); | 8364 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8297 } | 8365 } |
| 8298 buildCounterTargetInstanceList--; | 8366 buildCounterTargetInstanceList--; |
| 8299 } | 8367 } |
| 8300 | 8368 |
| 8301 buildUnnamed2391() { | 8369 buildUnnamed2412() { |
| 8302 var o = new core.List<api.TargetInstance>(); | 8370 var o = new core.List<api.TargetInstance>(); |
| 8303 o.add(buildTargetInstance()); | 8371 o.add(buildTargetInstance()); |
| 8304 o.add(buildTargetInstance()); | 8372 o.add(buildTargetInstance()); |
| 8305 return o; | 8373 return o; |
| 8306 } | 8374 } |
| 8307 | 8375 |
| 8308 checkUnnamed2391(core.List<api.TargetInstance> o) { | 8376 checkUnnamed2412(core.List<api.TargetInstance> o) { |
| 8309 unittest.expect(o, unittest.hasLength(2)); | 8377 unittest.expect(o, unittest.hasLength(2)); |
| 8310 checkTargetInstance(o[0]); | 8378 checkTargetInstance(o[0]); |
| 8311 checkTargetInstance(o[1]); | 8379 checkTargetInstance(o[1]); |
| 8312 } | 8380 } |
| 8313 | 8381 |
| 8314 core.int buildCounterTargetInstancesScopedListWarningData = 0; | 8382 core.int buildCounterTargetInstancesScopedListWarningData = 0; |
| 8315 buildTargetInstancesScopedListWarningData() { | 8383 buildTargetInstancesScopedListWarningData() { |
| 8316 var o = new api.TargetInstancesScopedListWarningData(); | 8384 var o = new api.TargetInstancesScopedListWarningData(); |
| 8317 buildCounterTargetInstancesScopedListWarningData++; | 8385 buildCounterTargetInstancesScopedListWarningData++; |
| 8318 if (buildCounterTargetInstancesScopedListWarningData < 3) { | 8386 if (buildCounterTargetInstancesScopedListWarningData < 3) { |
| 8319 o.key = "foo"; | 8387 o.key = "foo"; |
| 8320 o.value = "foo"; | 8388 o.value = "foo"; |
| 8321 } | 8389 } |
| 8322 buildCounterTargetInstancesScopedListWarningData--; | 8390 buildCounterTargetInstancesScopedListWarningData--; |
| 8323 return o; | 8391 return o; |
| 8324 } | 8392 } |
| 8325 | 8393 |
| 8326 checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningDa
ta o) { | 8394 checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningDa
ta o) { |
| 8327 buildCounterTargetInstancesScopedListWarningData++; | 8395 buildCounterTargetInstancesScopedListWarningData++; |
| 8328 if (buildCounterTargetInstancesScopedListWarningData < 3) { | 8396 if (buildCounterTargetInstancesScopedListWarningData < 3) { |
| 8329 unittest.expect(o.key, unittest.equals('foo')); | 8397 unittest.expect(o.key, unittest.equals('foo')); |
| 8330 unittest.expect(o.value, unittest.equals('foo')); | 8398 unittest.expect(o.value, unittest.equals('foo')); |
| 8331 } | 8399 } |
| 8332 buildCounterTargetInstancesScopedListWarningData--; | 8400 buildCounterTargetInstancesScopedListWarningData--; |
| 8333 } | 8401 } |
| 8334 | 8402 |
| 8335 buildUnnamed2392() { | 8403 buildUnnamed2413() { |
| 8336 var o = new core.List<api.TargetInstancesScopedListWarningData>(); | 8404 var o = new core.List<api.TargetInstancesScopedListWarningData>(); |
| 8337 o.add(buildTargetInstancesScopedListWarningData()); | 8405 o.add(buildTargetInstancesScopedListWarningData()); |
| 8338 o.add(buildTargetInstancesScopedListWarningData()); | 8406 o.add(buildTargetInstancesScopedListWarningData()); |
| 8339 return o; | 8407 return o; |
| 8340 } | 8408 } |
| 8341 | 8409 |
| 8342 checkUnnamed2392(core.List<api.TargetInstancesScopedListWarningData> o) { | 8410 checkUnnamed2413(core.List<api.TargetInstancesScopedListWarningData> o) { |
| 8343 unittest.expect(o, unittest.hasLength(2)); | 8411 unittest.expect(o, unittest.hasLength(2)); |
| 8344 checkTargetInstancesScopedListWarningData(o[0]); | 8412 checkTargetInstancesScopedListWarningData(o[0]); |
| 8345 checkTargetInstancesScopedListWarningData(o[1]); | 8413 checkTargetInstancesScopedListWarningData(o[1]); |
| 8346 } | 8414 } |
| 8347 | 8415 |
| 8348 core.int buildCounterTargetInstancesScopedListWarning = 0; | 8416 core.int buildCounterTargetInstancesScopedListWarning = 0; |
| 8349 buildTargetInstancesScopedListWarning() { | 8417 buildTargetInstancesScopedListWarning() { |
| 8350 var o = new api.TargetInstancesScopedListWarning(); | 8418 var o = new api.TargetInstancesScopedListWarning(); |
| 8351 buildCounterTargetInstancesScopedListWarning++; | 8419 buildCounterTargetInstancesScopedListWarning++; |
| 8352 if (buildCounterTargetInstancesScopedListWarning < 3) { | 8420 if (buildCounterTargetInstancesScopedListWarning < 3) { |
| 8353 o.code = "foo"; | 8421 o.code = "foo"; |
| 8354 o.data = buildUnnamed2392(); | 8422 o.data = buildUnnamed2413(); |
| 8355 o.message = "foo"; | 8423 o.message = "foo"; |
| 8356 } | 8424 } |
| 8357 buildCounterTargetInstancesScopedListWarning--; | 8425 buildCounterTargetInstancesScopedListWarning--; |
| 8358 return o; | 8426 return o; |
| 8359 } | 8427 } |
| 8360 | 8428 |
| 8361 checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) { | 8429 checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) { |
| 8362 buildCounterTargetInstancesScopedListWarning++; | 8430 buildCounterTargetInstancesScopedListWarning++; |
| 8363 if (buildCounterTargetInstancesScopedListWarning < 3) { | 8431 if (buildCounterTargetInstancesScopedListWarning < 3) { |
| 8364 unittest.expect(o.code, unittest.equals('foo')); | 8432 unittest.expect(o.code, unittest.equals('foo')); |
| 8365 checkUnnamed2392(o.data); | 8433 checkUnnamed2413(o.data); |
| 8366 unittest.expect(o.message, unittest.equals('foo')); | 8434 unittest.expect(o.message, unittest.equals('foo')); |
| 8367 } | 8435 } |
| 8368 buildCounterTargetInstancesScopedListWarning--; | 8436 buildCounterTargetInstancesScopedListWarning--; |
| 8369 } | 8437 } |
| 8370 | 8438 |
| 8371 core.int buildCounterTargetInstancesScopedList = 0; | 8439 core.int buildCounterTargetInstancesScopedList = 0; |
| 8372 buildTargetInstancesScopedList() { | 8440 buildTargetInstancesScopedList() { |
| 8373 var o = new api.TargetInstancesScopedList(); | 8441 var o = new api.TargetInstancesScopedList(); |
| 8374 buildCounterTargetInstancesScopedList++; | 8442 buildCounterTargetInstancesScopedList++; |
| 8375 if (buildCounterTargetInstancesScopedList < 3) { | 8443 if (buildCounterTargetInstancesScopedList < 3) { |
| 8376 o.targetInstances = buildUnnamed2391(); | 8444 o.targetInstances = buildUnnamed2412(); |
| 8377 o.warning = buildTargetInstancesScopedListWarning(); | 8445 o.warning = buildTargetInstancesScopedListWarning(); |
| 8378 } | 8446 } |
| 8379 buildCounterTargetInstancesScopedList--; | 8447 buildCounterTargetInstancesScopedList--; |
| 8380 return o; | 8448 return o; |
| 8381 } | 8449 } |
| 8382 | 8450 |
| 8383 checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { | 8451 checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { |
| 8384 buildCounterTargetInstancesScopedList++; | 8452 buildCounterTargetInstancesScopedList++; |
| 8385 if (buildCounterTargetInstancesScopedList < 3) { | 8453 if (buildCounterTargetInstancesScopedList < 3) { |
| 8386 checkUnnamed2391(o.targetInstances); | 8454 checkUnnamed2412(o.targetInstances); |
| 8387 checkTargetInstancesScopedListWarning(o.warning); | 8455 checkTargetInstancesScopedListWarning(o.warning); |
| 8388 } | 8456 } |
| 8389 buildCounterTargetInstancesScopedList--; | 8457 buildCounterTargetInstancesScopedList--; |
| 8390 } | 8458 } |
| 8391 | 8459 |
| 8392 buildUnnamed2393() { | 8460 buildUnnamed2414() { |
| 8393 var o = new core.List<core.String>(); | 8461 var o = new core.List<core.String>(); |
| 8394 o.add("foo"); | 8462 o.add("foo"); |
| 8395 o.add("foo"); | 8463 o.add("foo"); |
| 8396 return o; | 8464 return o; |
| 8397 } | 8465 } |
| 8398 | 8466 |
| 8399 checkUnnamed2393(core.List<core.String> o) { | 8467 checkUnnamed2414(core.List<core.String> o) { |
| 8400 unittest.expect(o, unittest.hasLength(2)); | 8468 unittest.expect(o, unittest.hasLength(2)); |
| 8401 unittest.expect(o[0], unittest.equals('foo')); | 8469 unittest.expect(o[0], unittest.equals('foo')); |
| 8402 unittest.expect(o[1], unittest.equals('foo')); | 8470 unittest.expect(o[1], unittest.equals('foo')); |
| 8403 } | 8471 } |
| 8404 | 8472 |
| 8405 buildUnnamed2394() { | 8473 buildUnnamed2415() { |
| 8406 var o = new core.List<core.String>(); | 8474 var o = new core.List<core.String>(); |
| 8407 o.add("foo"); | 8475 o.add("foo"); |
| 8408 o.add("foo"); | 8476 o.add("foo"); |
| 8409 return o; | 8477 return o; |
| 8410 } | 8478 } |
| 8411 | 8479 |
| 8412 checkUnnamed2394(core.List<core.String> o) { | 8480 checkUnnamed2415(core.List<core.String> o) { |
| 8413 unittest.expect(o, unittest.hasLength(2)); | 8481 unittest.expect(o, unittest.hasLength(2)); |
| 8414 unittest.expect(o[0], unittest.equals('foo')); | 8482 unittest.expect(o[0], unittest.equals('foo')); |
| 8415 unittest.expect(o[1], unittest.equals('foo')); | 8483 unittest.expect(o[1], unittest.equals('foo')); |
| 8416 } | 8484 } |
| 8417 | 8485 |
| 8418 core.int buildCounterTargetPool = 0; | 8486 core.int buildCounterTargetPool = 0; |
| 8419 buildTargetPool() { | 8487 buildTargetPool() { |
| 8420 var o = new api.TargetPool(); | 8488 var o = new api.TargetPool(); |
| 8421 buildCounterTargetPool++; | 8489 buildCounterTargetPool++; |
| 8422 if (buildCounterTargetPool < 3) { | 8490 if (buildCounterTargetPool < 3) { |
| 8423 o.backupPool = "foo"; | 8491 o.backupPool = "foo"; |
| 8424 o.creationTimestamp = "foo"; | 8492 o.creationTimestamp = "foo"; |
| 8425 o.description = "foo"; | 8493 o.description = "foo"; |
| 8426 o.failoverRatio = 42.0; | 8494 o.failoverRatio = 42.0; |
| 8427 o.healthChecks = buildUnnamed2393(); | 8495 o.healthChecks = buildUnnamed2414(); |
| 8428 o.id = "foo"; | 8496 o.id = "foo"; |
| 8429 o.instances = buildUnnamed2394(); | 8497 o.instances = buildUnnamed2415(); |
| 8430 o.kind = "foo"; | 8498 o.kind = "foo"; |
| 8431 o.name = "foo"; | 8499 o.name = "foo"; |
| 8432 o.region = "foo"; | 8500 o.region = "foo"; |
| 8433 o.selfLink = "foo"; | 8501 o.selfLink = "foo"; |
| 8434 o.sessionAffinity = "foo"; | 8502 o.sessionAffinity = "foo"; |
| 8435 } | 8503 } |
| 8436 buildCounterTargetPool--; | 8504 buildCounterTargetPool--; |
| 8437 return o; | 8505 return o; |
| 8438 } | 8506 } |
| 8439 | 8507 |
| 8440 checkTargetPool(api.TargetPool o) { | 8508 checkTargetPool(api.TargetPool o) { |
| 8441 buildCounterTargetPool++; | 8509 buildCounterTargetPool++; |
| 8442 if (buildCounterTargetPool < 3) { | 8510 if (buildCounterTargetPool < 3) { |
| 8443 unittest.expect(o.backupPool, unittest.equals('foo')); | 8511 unittest.expect(o.backupPool, unittest.equals('foo')); |
| 8444 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 8512 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 8445 unittest.expect(o.description, unittest.equals('foo')); | 8513 unittest.expect(o.description, unittest.equals('foo')); |
| 8446 unittest.expect(o.failoverRatio, unittest.equals(42.0)); | 8514 unittest.expect(o.failoverRatio, unittest.equals(42.0)); |
| 8447 checkUnnamed2393(o.healthChecks); | 8515 checkUnnamed2414(o.healthChecks); |
| 8448 unittest.expect(o.id, unittest.equals('foo')); | 8516 unittest.expect(o.id, unittest.equals('foo')); |
| 8449 checkUnnamed2394(o.instances); | 8517 checkUnnamed2415(o.instances); |
| 8450 unittest.expect(o.kind, unittest.equals('foo')); | 8518 unittest.expect(o.kind, unittest.equals('foo')); |
| 8451 unittest.expect(o.name, unittest.equals('foo')); | 8519 unittest.expect(o.name, unittest.equals('foo')); |
| 8452 unittest.expect(o.region, unittest.equals('foo')); | 8520 unittest.expect(o.region, unittest.equals('foo')); |
| 8453 unittest.expect(o.selfLink, unittest.equals('foo')); | 8521 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8454 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 8522 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
| 8455 } | 8523 } |
| 8456 buildCounterTargetPool--; | 8524 buildCounterTargetPool--; |
| 8457 } | 8525 } |
| 8458 | 8526 |
| 8459 buildUnnamed2395() { | 8527 buildUnnamed2416() { |
| 8460 var o = new core.Map<core.String, api.TargetPoolsScopedList>(); | 8528 var o = new core.Map<core.String, api.TargetPoolsScopedList>(); |
| 8461 o["x"] = buildTargetPoolsScopedList(); | 8529 o["x"] = buildTargetPoolsScopedList(); |
| 8462 o["y"] = buildTargetPoolsScopedList(); | 8530 o["y"] = buildTargetPoolsScopedList(); |
| 8463 return o; | 8531 return o; |
| 8464 } | 8532 } |
| 8465 | 8533 |
| 8466 checkUnnamed2395(core.Map<core.String, api.TargetPoolsScopedList> o) { | 8534 checkUnnamed2416(core.Map<core.String, api.TargetPoolsScopedList> o) { |
| 8467 unittest.expect(o, unittest.hasLength(2)); | 8535 unittest.expect(o, unittest.hasLength(2)); |
| 8468 checkTargetPoolsScopedList(o["x"]); | 8536 checkTargetPoolsScopedList(o["x"]); |
| 8469 checkTargetPoolsScopedList(o["y"]); | 8537 checkTargetPoolsScopedList(o["y"]); |
| 8470 } | 8538 } |
| 8471 | 8539 |
| 8472 core.int buildCounterTargetPoolAggregatedList = 0; | 8540 core.int buildCounterTargetPoolAggregatedList = 0; |
| 8473 buildTargetPoolAggregatedList() { | 8541 buildTargetPoolAggregatedList() { |
| 8474 var o = new api.TargetPoolAggregatedList(); | 8542 var o = new api.TargetPoolAggregatedList(); |
| 8475 buildCounterTargetPoolAggregatedList++; | 8543 buildCounterTargetPoolAggregatedList++; |
| 8476 if (buildCounterTargetPoolAggregatedList < 3) { | 8544 if (buildCounterTargetPoolAggregatedList < 3) { |
| 8477 o.id = "foo"; | 8545 o.id = "foo"; |
| 8478 o.items = buildUnnamed2395(); | 8546 o.items = buildUnnamed2416(); |
| 8479 o.kind = "foo"; | 8547 o.kind = "foo"; |
| 8480 o.nextPageToken = "foo"; | 8548 o.nextPageToken = "foo"; |
| 8481 o.selfLink = "foo"; | 8549 o.selfLink = "foo"; |
| 8482 } | 8550 } |
| 8483 buildCounterTargetPoolAggregatedList--; | 8551 buildCounterTargetPoolAggregatedList--; |
| 8484 return o; | 8552 return o; |
| 8485 } | 8553 } |
| 8486 | 8554 |
| 8487 checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { | 8555 checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { |
| 8488 buildCounterTargetPoolAggregatedList++; | 8556 buildCounterTargetPoolAggregatedList++; |
| 8489 if (buildCounterTargetPoolAggregatedList < 3) { | 8557 if (buildCounterTargetPoolAggregatedList < 3) { |
| 8490 unittest.expect(o.id, unittest.equals('foo')); | 8558 unittest.expect(o.id, unittest.equals('foo')); |
| 8491 checkUnnamed2395(o.items); | 8559 checkUnnamed2416(o.items); |
| 8492 unittest.expect(o.kind, unittest.equals('foo')); | 8560 unittest.expect(o.kind, unittest.equals('foo')); |
| 8493 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8561 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8494 unittest.expect(o.selfLink, unittest.equals('foo')); | 8562 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8495 } | 8563 } |
| 8496 buildCounterTargetPoolAggregatedList--; | 8564 buildCounterTargetPoolAggregatedList--; |
| 8497 } | 8565 } |
| 8498 | 8566 |
| 8499 buildUnnamed2396() { | 8567 buildUnnamed2417() { |
| 8500 var o = new core.List<api.HealthStatus>(); | 8568 var o = new core.List<api.HealthStatus>(); |
| 8501 o.add(buildHealthStatus()); | 8569 o.add(buildHealthStatus()); |
| 8502 o.add(buildHealthStatus()); | 8570 o.add(buildHealthStatus()); |
| 8503 return o; | 8571 return o; |
| 8504 } | 8572 } |
| 8505 | 8573 |
| 8506 checkUnnamed2396(core.List<api.HealthStatus> o) { | 8574 checkUnnamed2417(core.List<api.HealthStatus> o) { |
| 8507 unittest.expect(o, unittest.hasLength(2)); | 8575 unittest.expect(o, unittest.hasLength(2)); |
| 8508 checkHealthStatus(o[0]); | 8576 checkHealthStatus(o[0]); |
| 8509 checkHealthStatus(o[1]); | 8577 checkHealthStatus(o[1]); |
| 8510 } | 8578 } |
| 8511 | 8579 |
| 8512 core.int buildCounterTargetPoolInstanceHealth = 0; | 8580 core.int buildCounterTargetPoolInstanceHealth = 0; |
| 8513 buildTargetPoolInstanceHealth() { | 8581 buildTargetPoolInstanceHealth() { |
| 8514 var o = new api.TargetPoolInstanceHealth(); | 8582 var o = new api.TargetPoolInstanceHealth(); |
| 8515 buildCounterTargetPoolInstanceHealth++; | 8583 buildCounterTargetPoolInstanceHealth++; |
| 8516 if (buildCounterTargetPoolInstanceHealth < 3) { | 8584 if (buildCounterTargetPoolInstanceHealth < 3) { |
| 8517 o.healthStatus = buildUnnamed2396(); | 8585 o.healthStatus = buildUnnamed2417(); |
| 8518 o.kind = "foo"; | 8586 o.kind = "foo"; |
| 8519 } | 8587 } |
| 8520 buildCounterTargetPoolInstanceHealth--; | 8588 buildCounterTargetPoolInstanceHealth--; |
| 8521 return o; | 8589 return o; |
| 8522 } | 8590 } |
| 8523 | 8591 |
| 8524 checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { | 8592 checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { |
| 8525 buildCounterTargetPoolInstanceHealth++; | 8593 buildCounterTargetPoolInstanceHealth++; |
| 8526 if (buildCounterTargetPoolInstanceHealth < 3) { | 8594 if (buildCounterTargetPoolInstanceHealth < 3) { |
| 8527 checkUnnamed2396(o.healthStatus); | 8595 checkUnnamed2417(o.healthStatus); |
| 8528 unittest.expect(o.kind, unittest.equals('foo')); | 8596 unittest.expect(o.kind, unittest.equals('foo')); |
| 8529 } | 8597 } |
| 8530 buildCounterTargetPoolInstanceHealth--; | 8598 buildCounterTargetPoolInstanceHealth--; |
| 8531 } | 8599 } |
| 8532 | 8600 |
| 8533 buildUnnamed2397() { | 8601 buildUnnamed2418() { |
| 8534 var o = new core.List<api.TargetPool>(); | 8602 var o = new core.List<api.TargetPool>(); |
| 8535 o.add(buildTargetPool()); | 8603 o.add(buildTargetPool()); |
| 8536 o.add(buildTargetPool()); | 8604 o.add(buildTargetPool()); |
| 8537 return o; | 8605 return o; |
| 8538 } | 8606 } |
| 8539 | 8607 |
| 8540 checkUnnamed2397(core.List<api.TargetPool> o) { | 8608 checkUnnamed2418(core.List<api.TargetPool> o) { |
| 8541 unittest.expect(o, unittest.hasLength(2)); | 8609 unittest.expect(o, unittest.hasLength(2)); |
| 8542 checkTargetPool(o[0]); | 8610 checkTargetPool(o[0]); |
| 8543 checkTargetPool(o[1]); | 8611 checkTargetPool(o[1]); |
| 8544 } | 8612 } |
| 8545 | 8613 |
| 8546 core.int buildCounterTargetPoolList = 0; | 8614 core.int buildCounterTargetPoolList = 0; |
| 8547 buildTargetPoolList() { | 8615 buildTargetPoolList() { |
| 8548 var o = new api.TargetPoolList(); | 8616 var o = new api.TargetPoolList(); |
| 8549 buildCounterTargetPoolList++; | 8617 buildCounterTargetPoolList++; |
| 8550 if (buildCounterTargetPoolList < 3) { | 8618 if (buildCounterTargetPoolList < 3) { |
| 8551 o.id = "foo"; | 8619 o.id = "foo"; |
| 8552 o.items = buildUnnamed2397(); | 8620 o.items = buildUnnamed2418(); |
| 8553 o.kind = "foo"; | 8621 o.kind = "foo"; |
| 8554 o.nextPageToken = "foo"; | 8622 o.nextPageToken = "foo"; |
| 8555 o.selfLink = "foo"; | 8623 o.selfLink = "foo"; |
| 8556 } | 8624 } |
| 8557 buildCounterTargetPoolList--; | 8625 buildCounterTargetPoolList--; |
| 8558 return o; | 8626 return o; |
| 8559 } | 8627 } |
| 8560 | 8628 |
| 8561 checkTargetPoolList(api.TargetPoolList o) { | 8629 checkTargetPoolList(api.TargetPoolList o) { |
| 8562 buildCounterTargetPoolList++; | 8630 buildCounterTargetPoolList++; |
| 8563 if (buildCounterTargetPoolList < 3) { | 8631 if (buildCounterTargetPoolList < 3) { |
| 8564 unittest.expect(o.id, unittest.equals('foo')); | 8632 unittest.expect(o.id, unittest.equals('foo')); |
| 8565 checkUnnamed2397(o.items); | 8633 checkUnnamed2418(o.items); |
| 8566 unittest.expect(o.kind, unittest.equals('foo')); | 8634 unittest.expect(o.kind, unittest.equals('foo')); |
| 8567 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 8635 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8568 unittest.expect(o.selfLink, unittest.equals('foo')); | 8636 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8569 } | 8637 } |
| 8570 buildCounterTargetPoolList--; | 8638 buildCounterTargetPoolList--; |
| 8571 } | 8639 } |
| 8572 | 8640 |
| 8573 buildUnnamed2398() { | 8641 buildUnnamed2419() { |
| 8574 var o = new core.List<api.HealthCheckReference>(); | 8642 var o = new core.List<api.HealthCheckReference>(); |
| 8575 o.add(buildHealthCheckReference()); | 8643 o.add(buildHealthCheckReference()); |
| 8576 o.add(buildHealthCheckReference()); | 8644 o.add(buildHealthCheckReference()); |
| 8577 return o; | 8645 return o; |
| 8578 } | 8646 } |
| 8579 | 8647 |
| 8580 checkUnnamed2398(core.List<api.HealthCheckReference> o) { | 8648 checkUnnamed2419(core.List<api.HealthCheckReference> o) { |
| 8581 unittest.expect(o, unittest.hasLength(2)); | 8649 unittest.expect(o, unittest.hasLength(2)); |
| 8582 checkHealthCheckReference(o[0]); | 8650 checkHealthCheckReference(o[0]); |
| 8583 checkHealthCheckReference(o[1]); | 8651 checkHealthCheckReference(o[1]); |
| 8584 } | 8652 } |
| 8585 | 8653 |
| 8586 core.int buildCounterTargetPoolsAddHealthCheckRequest = 0; | 8654 core.int buildCounterTargetPoolsAddHealthCheckRequest = 0; |
| 8587 buildTargetPoolsAddHealthCheckRequest() { | 8655 buildTargetPoolsAddHealthCheckRequest() { |
| 8588 var o = new api.TargetPoolsAddHealthCheckRequest(); | 8656 var o = new api.TargetPoolsAddHealthCheckRequest(); |
| 8589 buildCounterTargetPoolsAddHealthCheckRequest++; | 8657 buildCounterTargetPoolsAddHealthCheckRequest++; |
| 8590 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { | 8658 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { |
| 8591 o.healthChecks = buildUnnamed2398(); | 8659 o.healthChecks = buildUnnamed2419(); |
| 8592 } | 8660 } |
| 8593 buildCounterTargetPoolsAddHealthCheckRequest--; | 8661 buildCounterTargetPoolsAddHealthCheckRequest--; |
| 8594 return o; | 8662 return o; |
| 8595 } | 8663 } |
| 8596 | 8664 |
| 8597 checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { | 8665 checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { |
| 8598 buildCounterTargetPoolsAddHealthCheckRequest++; | 8666 buildCounterTargetPoolsAddHealthCheckRequest++; |
| 8599 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { | 8667 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { |
| 8600 checkUnnamed2398(o.healthChecks); | 8668 checkUnnamed2419(o.healthChecks); |
| 8601 } | 8669 } |
| 8602 buildCounterTargetPoolsAddHealthCheckRequest--; | 8670 buildCounterTargetPoolsAddHealthCheckRequest--; |
| 8603 } | 8671 } |
| 8604 | 8672 |
| 8605 buildUnnamed2399() { | 8673 buildUnnamed2420() { |
| 8606 var o = new core.List<api.InstanceReference>(); | 8674 var o = new core.List<api.InstanceReference>(); |
| 8607 o.add(buildInstanceReference()); | 8675 o.add(buildInstanceReference()); |
| 8608 o.add(buildInstanceReference()); | 8676 o.add(buildInstanceReference()); |
| 8609 return o; | 8677 return o; |
| 8610 } | 8678 } |
| 8611 | 8679 |
| 8612 checkUnnamed2399(core.List<api.InstanceReference> o) { | 8680 checkUnnamed2420(core.List<api.InstanceReference> o) { |
| 8613 unittest.expect(o, unittest.hasLength(2)); | 8681 unittest.expect(o, unittest.hasLength(2)); |
| 8614 checkInstanceReference(o[0]); | 8682 checkInstanceReference(o[0]); |
| 8615 checkInstanceReference(o[1]); | 8683 checkInstanceReference(o[1]); |
| 8616 } | 8684 } |
| 8617 | 8685 |
| 8618 core.int buildCounterTargetPoolsAddInstanceRequest = 0; | 8686 core.int buildCounterTargetPoolsAddInstanceRequest = 0; |
| 8619 buildTargetPoolsAddInstanceRequest() { | 8687 buildTargetPoolsAddInstanceRequest() { |
| 8620 var o = new api.TargetPoolsAddInstanceRequest(); | 8688 var o = new api.TargetPoolsAddInstanceRequest(); |
| 8621 buildCounterTargetPoolsAddInstanceRequest++; | 8689 buildCounterTargetPoolsAddInstanceRequest++; |
| 8622 if (buildCounterTargetPoolsAddInstanceRequest < 3) { | 8690 if (buildCounterTargetPoolsAddInstanceRequest < 3) { |
| 8623 o.instances = buildUnnamed2399(); | 8691 o.instances = buildUnnamed2420(); |
| 8624 } | 8692 } |
| 8625 buildCounterTargetPoolsAddInstanceRequest--; | 8693 buildCounterTargetPoolsAddInstanceRequest--; |
| 8626 return o; | 8694 return o; |
| 8627 } | 8695 } |
| 8628 | 8696 |
| 8629 checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { | 8697 checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { |
| 8630 buildCounterTargetPoolsAddInstanceRequest++; | 8698 buildCounterTargetPoolsAddInstanceRequest++; |
| 8631 if (buildCounterTargetPoolsAddInstanceRequest < 3) { | 8699 if (buildCounterTargetPoolsAddInstanceRequest < 3) { |
| 8632 checkUnnamed2399(o.instances); | 8700 checkUnnamed2420(o.instances); |
| 8633 } | 8701 } |
| 8634 buildCounterTargetPoolsAddInstanceRequest--; | 8702 buildCounterTargetPoolsAddInstanceRequest--; |
| 8635 } | 8703 } |
| 8636 | 8704 |
| 8637 buildUnnamed2400() { | 8705 buildUnnamed2421() { |
| 8638 var o = new core.List<api.HealthCheckReference>(); | 8706 var o = new core.List<api.HealthCheckReference>(); |
| 8639 o.add(buildHealthCheckReference()); | 8707 o.add(buildHealthCheckReference()); |
| 8640 o.add(buildHealthCheckReference()); | 8708 o.add(buildHealthCheckReference()); |
| 8641 return o; | 8709 return o; |
| 8642 } | 8710 } |
| 8643 | 8711 |
| 8644 checkUnnamed2400(core.List<api.HealthCheckReference> o) { | 8712 checkUnnamed2421(core.List<api.HealthCheckReference> o) { |
| 8645 unittest.expect(o, unittest.hasLength(2)); | 8713 unittest.expect(o, unittest.hasLength(2)); |
| 8646 checkHealthCheckReference(o[0]); | 8714 checkHealthCheckReference(o[0]); |
| 8647 checkHealthCheckReference(o[1]); | 8715 checkHealthCheckReference(o[1]); |
| 8648 } | 8716 } |
| 8649 | 8717 |
| 8650 core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0; | 8718 core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0; |
| 8651 buildTargetPoolsRemoveHealthCheckRequest() { | 8719 buildTargetPoolsRemoveHealthCheckRequest() { |
| 8652 var o = new api.TargetPoolsRemoveHealthCheckRequest(); | 8720 var o = new api.TargetPoolsRemoveHealthCheckRequest(); |
| 8653 buildCounterTargetPoolsRemoveHealthCheckRequest++; | 8721 buildCounterTargetPoolsRemoveHealthCheckRequest++; |
| 8654 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { | 8722 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { |
| 8655 o.healthChecks = buildUnnamed2400(); | 8723 o.healthChecks = buildUnnamed2421(); |
| 8656 } | 8724 } |
| 8657 buildCounterTargetPoolsRemoveHealthCheckRequest--; | 8725 buildCounterTargetPoolsRemoveHealthCheckRequest--; |
| 8658 return o; | 8726 return o; |
| 8659 } | 8727 } |
| 8660 | 8728 |
| 8661 checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest
o) { | 8729 checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest
o) { |
| 8662 buildCounterTargetPoolsRemoveHealthCheckRequest++; | 8730 buildCounterTargetPoolsRemoveHealthCheckRequest++; |
| 8663 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { | 8731 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { |
| 8664 checkUnnamed2400(o.healthChecks); | 8732 checkUnnamed2421(o.healthChecks); |
| 8665 } | 8733 } |
| 8666 buildCounterTargetPoolsRemoveHealthCheckRequest--; | 8734 buildCounterTargetPoolsRemoveHealthCheckRequest--; |
| 8667 } | 8735 } |
| 8668 | 8736 |
| 8669 buildUnnamed2401() { | 8737 buildUnnamed2422() { |
| 8670 var o = new core.List<api.InstanceReference>(); | 8738 var o = new core.List<api.InstanceReference>(); |
| 8671 o.add(buildInstanceReference()); | 8739 o.add(buildInstanceReference()); |
| 8672 o.add(buildInstanceReference()); | 8740 o.add(buildInstanceReference()); |
| 8673 return o; | 8741 return o; |
| 8674 } | 8742 } |
| 8675 | 8743 |
| 8676 checkUnnamed2401(core.List<api.InstanceReference> o) { | 8744 checkUnnamed2422(core.List<api.InstanceReference> o) { |
| 8677 unittest.expect(o, unittest.hasLength(2)); | 8745 unittest.expect(o, unittest.hasLength(2)); |
| 8678 checkInstanceReference(o[0]); | 8746 checkInstanceReference(o[0]); |
| 8679 checkInstanceReference(o[1]); | 8747 checkInstanceReference(o[1]); |
| 8680 } | 8748 } |
| 8681 | 8749 |
| 8682 core.int buildCounterTargetPoolsRemoveInstanceRequest = 0; | 8750 core.int buildCounterTargetPoolsRemoveInstanceRequest = 0; |
| 8683 buildTargetPoolsRemoveInstanceRequest() { | 8751 buildTargetPoolsRemoveInstanceRequest() { |
| 8684 var o = new api.TargetPoolsRemoveInstanceRequest(); | 8752 var o = new api.TargetPoolsRemoveInstanceRequest(); |
| 8685 buildCounterTargetPoolsRemoveInstanceRequest++; | 8753 buildCounterTargetPoolsRemoveInstanceRequest++; |
| 8686 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { | 8754 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { |
| 8687 o.instances = buildUnnamed2401(); | 8755 o.instances = buildUnnamed2422(); |
| 8688 } | 8756 } |
| 8689 buildCounterTargetPoolsRemoveInstanceRequest--; | 8757 buildCounterTargetPoolsRemoveInstanceRequest--; |
| 8690 return o; | 8758 return o; |
| 8691 } | 8759 } |
| 8692 | 8760 |
| 8693 checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { | 8761 checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { |
| 8694 buildCounterTargetPoolsRemoveInstanceRequest++; | 8762 buildCounterTargetPoolsRemoveInstanceRequest++; |
| 8695 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { | 8763 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { |
| 8696 checkUnnamed2401(o.instances); | 8764 checkUnnamed2422(o.instances); |
| 8697 } | 8765 } |
| 8698 buildCounterTargetPoolsRemoveInstanceRequest--; | 8766 buildCounterTargetPoolsRemoveInstanceRequest--; |
| 8699 } | 8767 } |
| 8700 | 8768 |
| 8701 buildUnnamed2402() { | 8769 buildUnnamed2423() { |
| 8702 var o = new core.List<api.TargetPool>(); | 8770 var o = new core.List<api.TargetPool>(); |
| 8703 o.add(buildTargetPool()); | 8771 o.add(buildTargetPool()); |
| 8704 o.add(buildTargetPool()); | 8772 o.add(buildTargetPool()); |
| 8705 return o; | 8773 return o; |
| 8706 } | 8774 } |
| 8707 | 8775 |
| 8708 checkUnnamed2402(core.List<api.TargetPool> o) { | 8776 checkUnnamed2423(core.List<api.TargetPool> o) { |
| 8709 unittest.expect(o, unittest.hasLength(2)); | 8777 unittest.expect(o, unittest.hasLength(2)); |
| 8710 checkTargetPool(o[0]); | 8778 checkTargetPool(o[0]); |
| 8711 checkTargetPool(o[1]); | 8779 checkTargetPool(o[1]); |
| 8712 } | 8780 } |
| 8713 | 8781 |
| 8714 core.int buildCounterTargetPoolsScopedListWarningData = 0; | 8782 core.int buildCounterTargetPoolsScopedListWarningData = 0; |
| 8715 buildTargetPoolsScopedListWarningData() { | 8783 buildTargetPoolsScopedListWarningData() { |
| 8716 var o = new api.TargetPoolsScopedListWarningData(); | 8784 var o = new api.TargetPoolsScopedListWarningData(); |
| 8717 buildCounterTargetPoolsScopedListWarningData++; | 8785 buildCounterTargetPoolsScopedListWarningData++; |
| 8718 if (buildCounterTargetPoolsScopedListWarningData < 3) { | 8786 if (buildCounterTargetPoolsScopedListWarningData < 3) { |
| 8719 o.key = "foo"; | 8787 o.key = "foo"; |
| 8720 o.value = "foo"; | 8788 o.value = "foo"; |
| 8721 } | 8789 } |
| 8722 buildCounterTargetPoolsScopedListWarningData--; | 8790 buildCounterTargetPoolsScopedListWarningData--; |
| 8723 return o; | 8791 return o; |
| 8724 } | 8792 } |
| 8725 | 8793 |
| 8726 checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) { | 8794 checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) { |
| 8727 buildCounterTargetPoolsScopedListWarningData++; | 8795 buildCounterTargetPoolsScopedListWarningData++; |
| 8728 if (buildCounterTargetPoolsScopedListWarningData < 3) { | 8796 if (buildCounterTargetPoolsScopedListWarningData < 3) { |
| 8729 unittest.expect(o.key, unittest.equals('foo')); | 8797 unittest.expect(o.key, unittest.equals('foo')); |
| 8730 unittest.expect(o.value, unittest.equals('foo')); | 8798 unittest.expect(o.value, unittest.equals('foo')); |
| 8731 } | 8799 } |
| 8732 buildCounterTargetPoolsScopedListWarningData--; | 8800 buildCounterTargetPoolsScopedListWarningData--; |
| 8733 } | 8801 } |
| 8734 | 8802 |
| 8735 buildUnnamed2403() { | 8803 buildUnnamed2424() { |
| 8736 var o = new core.List<api.TargetPoolsScopedListWarningData>(); | 8804 var o = new core.List<api.TargetPoolsScopedListWarningData>(); |
| 8737 o.add(buildTargetPoolsScopedListWarningData()); | 8805 o.add(buildTargetPoolsScopedListWarningData()); |
| 8738 o.add(buildTargetPoolsScopedListWarningData()); | 8806 o.add(buildTargetPoolsScopedListWarningData()); |
| 8739 return o; | 8807 return o; |
| 8740 } | 8808 } |
| 8741 | 8809 |
| 8742 checkUnnamed2403(core.List<api.TargetPoolsScopedListWarningData> o) { | 8810 checkUnnamed2424(core.List<api.TargetPoolsScopedListWarningData> o) { |
| 8743 unittest.expect(o, unittest.hasLength(2)); | 8811 unittest.expect(o, unittest.hasLength(2)); |
| 8744 checkTargetPoolsScopedListWarningData(o[0]); | 8812 checkTargetPoolsScopedListWarningData(o[0]); |
| 8745 checkTargetPoolsScopedListWarningData(o[1]); | 8813 checkTargetPoolsScopedListWarningData(o[1]); |
| 8746 } | 8814 } |
| 8747 | 8815 |
| 8748 core.int buildCounterTargetPoolsScopedListWarning = 0; | 8816 core.int buildCounterTargetPoolsScopedListWarning = 0; |
| 8749 buildTargetPoolsScopedListWarning() { | 8817 buildTargetPoolsScopedListWarning() { |
| 8750 var o = new api.TargetPoolsScopedListWarning(); | 8818 var o = new api.TargetPoolsScopedListWarning(); |
| 8751 buildCounterTargetPoolsScopedListWarning++; | 8819 buildCounterTargetPoolsScopedListWarning++; |
| 8752 if (buildCounterTargetPoolsScopedListWarning < 3) { | 8820 if (buildCounterTargetPoolsScopedListWarning < 3) { |
| 8753 o.code = "foo"; | 8821 o.code = "foo"; |
| 8754 o.data = buildUnnamed2403(); | 8822 o.data = buildUnnamed2424(); |
| 8755 o.message = "foo"; | 8823 o.message = "foo"; |
| 8756 } | 8824 } |
| 8757 buildCounterTargetPoolsScopedListWarning--; | 8825 buildCounterTargetPoolsScopedListWarning--; |
| 8758 return o; | 8826 return o; |
| 8759 } | 8827 } |
| 8760 | 8828 |
| 8761 checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { | 8829 checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { |
| 8762 buildCounterTargetPoolsScopedListWarning++; | 8830 buildCounterTargetPoolsScopedListWarning++; |
| 8763 if (buildCounterTargetPoolsScopedListWarning < 3) { | 8831 if (buildCounterTargetPoolsScopedListWarning < 3) { |
| 8764 unittest.expect(o.code, unittest.equals('foo')); | 8832 unittest.expect(o.code, unittest.equals('foo')); |
| 8765 checkUnnamed2403(o.data); | 8833 checkUnnamed2424(o.data); |
| 8766 unittest.expect(o.message, unittest.equals('foo')); | 8834 unittest.expect(o.message, unittest.equals('foo')); |
| 8767 } | 8835 } |
| 8768 buildCounterTargetPoolsScopedListWarning--; | 8836 buildCounterTargetPoolsScopedListWarning--; |
| 8769 } | 8837 } |
| 8770 | 8838 |
| 8771 core.int buildCounterTargetPoolsScopedList = 0; | 8839 core.int buildCounterTargetPoolsScopedList = 0; |
| 8772 buildTargetPoolsScopedList() { | 8840 buildTargetPoolsScopedList() { |
| 8773 var o = new api.TargetPoolsScopedList(); | 8841 var o = new api.TargetPoolsScopedList(); |
| 8774 buildCounterTargetPoolsScopedList++; | 8842 buildCounterTargetPoolsScopedList++; |
| 8775 if (buildCounterTargetPoolsScopedList < 3) { | 8843 if (buildCounterTargetPoolsScopedList < 3) { |
| 8776 o.targetPools = buildUnnamed2402(); | 8844 o.targetPools = buildUnnamed2423(); |
| 8777 o.warning = buildTargetPoolsScopedListWarning(); | 8845 o.warning = buildTargetPoolsScopedListWarning(); |
| 8778 } | 8846 } |
| 8779 buildCounterTargetPoolsScopedList--; | 8847 buildCounterTargetPoolsScopedList--; |
| 8780 return o; | 8848 return o; |
| 8781 } | 8849 } |
| 8782 | 8850 |
| 8783 checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { | 8851 checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { |
| 8784 buildCounterTargetPoolsScopedList++; | 8852 buildCounterTargetPoolsScopedList++; |
| 8785 if (buildCounterTargetPoolsScopedList < 3) { | 8853 if (buildCounterTargetPoolsScopedList < 3) { |
| 8786 checkUnnamed2402(o.targetPools); | 8854 checkUnnamed2423(o.targetPools); |
| 8787 checkTargetPoolsScopedListWarning(o.warning); | 8855 checkTargetPoolsScopedListWarning(o.warning); |
| 8788 } | 8856 } |
| 8789 buildCounterTargetPoolsScopedList--; | 8857 buildCounterTargetPoolsScopedList--; |
| 8790 } | 8858 } |
| 8791 | 8859 |
| 8792 core.int buildCounterTargetReference = 0; | 8860 core.int buildCounterTargetReference = 0; |
| 8793 buildTargetReference() { | 8861 buildTargetReference() { |
| 8794 var o = new api.TargetReference(); | 8862 var o = new api.TargetReference(); |
| 8795 buildCounterTargetReference++; | 8863 buildCounterTargetReference++; |
| 8796 if (buildCounterTargetReference < 3) { | 8864 if (buildCounterTargetReference < 3) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8839 } | 8907 } |
| 8840 | 8908 |
| 8841 checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderReq
uest o) { | 8909 checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderReq
uest o) { |
| 8842 buildCounterTargetSslProxiesSetProxyHeaderRequest++; | 8910 buildCounterTargetSslProxiesSetProxyHeaderRequest++; |
| 8843 if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { | 8911 if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { |
| 8844 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 8912 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
| 8845 } | 8913 } |
| 8846 buildCounterTargetSslProxiesSetProxyHeaderRequest--; | 8914 buildCounterTargetSslProxiesSetProxyHeaderRequest--; |
| 8847 } | 8915 } |
| 8848 | 8916 |
| 8849 buildUnnamed2404() { | 8917 buildUnnamed2425() { |
| 8850 var o = new core.List<core.String>(); | 8918 var o = new core.List<core.String>(); |
| 8851 o.add("foo"); | 8919 o.add("foo"); |
| 8852 o.add("foo"); | 8920 o.add("foo"); |
| 8853 return o; | 8921 return o; |
| 8854 } | 8922 } |
| 8855 | 8923 |
| 8856 checkUnnamed2404(core.List<core.String> o) { | 8924 checkUnnamed2425(core.List<core.String> o) { |
| 8857 unittest.expect(o, unittest.hasLength(2)); | 8925 unittest.expect(o, unittest.hasLength(2)); |
| 8858 unittest.expect(o[0], unittest.equals('foo')); | 8926 unittest.expect(o[0], unittest.equals('foo')); |
| 8859 unittest.expect(o[1], unittest.equals('foo')); | 8927 unittest.expect(o[1], unittest.equals('foo')); |
| 8860 } | 8928 } |
| 8861 | 8929 |
| 8862 core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0; | 8930 core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0; |
| 8863 buildTargetSslProxiesSetSslCertificatesRequest() { | 8931 buildTargetSslProxiesSetSslCertificatesRequest() { |
| 8864 var o = new api.TargetSslProxiesSetSslCertificatesRequest(); | 8932 var o = new api.TargetSslProxiesSetSslCertificatesRequest(); |
| 8865 buildCounterTargetSslProxiesSetSslCertificatesRequest++; | 8933 buildCounterTargetSslProxiesSetSslCertificatesRequest++; |
| 8866 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { | 8934 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { |
| 8867 o.sslCertificates = buildUnnamed2404(); | 8935 o.sslCertificates = buildUnnamed2425(); |
| 8868 } | 8936 } |
| 8869 buildCounterTargetSslProxiesSetSslCertificatesRequest--; | 8937 buildCounterTargetSslProxiesSetSslCertificatesRequest--; |
| 8870 return o; | 8938 return o; |
| 8871 } | 8939 } |
| 8872 | 8940 |
| 8873 checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertifi
catesRequest o) { | 8941 checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertifi
catesRequest o) { |
| 8874 buildCounterTargetSslProxiesSetSslCertificatesRequest++; | 8942 buildCounterTargetSslProxiesSetSslCertificatesRequest++; |
| 8875 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { | 8943 if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { |
| 8876 checkUnnamed2404(o.sslCertificates); | 8944 checkUnnamed2425(o.sslCertificates); |
| 8877 } | 8945 } |
| 8878 buildCounterTargetSslProxiesSetSslCertificatesRequest--; | 8946 buildCounterTargetSslProxiesSetSslCertificatesRequest--; |
| 8879 } | 8947 } |
| 8880 | 8948 |
| 8881 buildUnnamed2405() { | 8949 buildUnnamed2426() { |
| 8882 var o = new core.List<core.String>(); | 8950 var o = new core.List<core.String>(); |
| 8883 o.add("foo"); | 8951 o.add("foo"); |
| 8884 o.add("foo"); | 8952 o.add("foo"); |
| 8885 return o; | 8953 return o; |
| 8886 } | 8954 } |
| 8887 | 8955 |
| 8888 checkUnnamed2405(core.List<core.String> o) { | 8956 checkUnnamed2426(core.List<core.String> o) { |
| 8889 unittest.expect(o, unittest.hasLength(2)); | 8957 unittest.expect(o, unittest.hasLength(2)); |
| 8890 unittest.expect(o[0], unittest.equals('foo')); | 8958 unittest.expect(o[0], unittest.equals('foo')); |
| 8891 unittest.expect(o[1], unittest.equals('foo')); | 8959 unittest.expect(o[1], unittest.equals('foo')); |
| 8892 } | 8960 } |
| 8893 | 8961 |
| 8894 core.int buildCounterTargetSslProxy = 0; | 8962 core.int buildCounterTargetSslProxy = 0; |
| 8895 buildTargetSslProxy() { | 8963 buildTargetSslProxy() { |
| 8896 var o = new api.TargetSslProxy(); | 8964 var o = new api.TargetSslProxy(); |
| 8897 buildCounterTargetSslProxy++; | 8965 buildCounterTargetSslProxy++; |
| 8898 if (buildCounterTargetSslProxy < 3) { | 8966 if (buildCounterTargetSslProxy < 3) { |
| 8899 o.creationTimestamp = "foo"; | 8967 o.creationTimestamp = "foo"; |
| 8900 o.description = "foo"; | 8968 o.description = "foo"; |
| 8901 o.id = "foo"; | 8969 o.id = "foo"; |
| 8902 o.kind = "foo"; | 8970 o.kind = "foo"; |
| 8903 o.name = "foo"; | 8971 o.name = "foo"; |
| 8904 o.proxyHeader = "foo"; | 8972 o.proxyHeader = "foo"; |
| 8905 o.selfLink = "foo"; | 8973 o.selfLink = "foo"; |
| 8906 o.service = "foo"; | 8974 o.service = "foo"; |
| 8907 o.sslCertificates = buildUnnamed2405(); | 8975 o.sslCertificates = buildUnnamed2426(); |
| 8908 } | 8976 } |
| 8909 buildCounterTargetSslProxy--; | 8977 buildCounterTargetSslProxy--; |
| 8910 return o; | 8978 return o; |
| 8911 } | 8979 } |
| 8912 | 8980 |
| 8913 checkTargetSslProxy(api.TargetSslProxy o) { | 8981 checkTargetSslProxy(api.TargetSslProxy o) { |
| 8914 buildCounterTargetSslProxy++; | 8982 buildCounterTargetSslProxy++; |
| 8915 if (buildCounterTargetSslProxy < 3) { | 8983 if (buildCounterTargetSslProxy < 3) { |
| 8916 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 8984 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 8917 unittest.expect(o.description, unittest.equals('foo')); | 8985 unittest.expect(o.description, unittest.equals('foo')); |
| 8918 unittest.expect(o.id, unittest.equals('foo')); | 8986 unittest.expect(o.id, unittest.equals('foo')); |
| 8919 unittest.expect(o.kind, unittest.equals('foo')); | 8987 unittest.expect(o.kind, unittest.equals('foo')); |
| 8920 unittest.expect(o.name, unittest.equals('foo')); | 8988 unittest.expect(o.name, unittest.equals('foo')); |
| 8921 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 8989 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
| 8922 unittest.expect(o.selfLink, unittest.equals('foo')); | 8990 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8923 unittest.expect(o.service, unittest.equals('foo')); | 8991 unittest.expect(o.service, unittest.equals('foo')); |
| 8924 checkUnnamed2405(o.sslCertificates); | 8992 checkUnnamed2426(o.sslCertificates); |
| 8925 } | 8993 } |
| 8926 buildCounterTargetSslProxy--; | 8994 buildCounterTargetSslProxy--; |
| 8927 } | 8995 } |
| 8928 | 8996 |
| 8929 buildUnnamed2406() { | 8997 buildUnnamed2427() { |
| 8930 var o = new core.List<api.TargetSslProxy>(); | 8998 var o = new core.List<api.TargetSslProxy>(); |
| 8931 o.add(buildTargetSslProxy()); | 8999 o.add(buildTargetSslProxy()); |
| 8932 o.add(buildTargetSslProxy()); | 9000 o.add(buildTargetSslProxy()); |
| 8933 return o; | 9001 return o; |
| 8934 } | 9002 } |
| 8935 | 9003 |
| 8936 checkUnnamed2406(core.List<api.TargetSslProxy> o) { | 9004 checkUnnamed2427(core.List<api.TargetSslProxy> o) { |
| 8937 unittest.expect(o, unittest.hasLength(2)); | 9005 unittest.expect(o, unittest.hasLength(2)); |
| 8938 checkTargetSslProxy(o[0]); | 9006 checkTargetSslProxy(o[0]); |
| 8939 checkTargetSslProxy(o[1]); | 9007 checkTargetSslProxy(o[1]); |
| 8940 } | 9008 } |
| 8941 | 9009 |
| 8942 core.int buildCounterTargetSslProxyList = 0; | 9010 core.int buildCounterTargetSslProxyList = 0; |
| 8943 buildTargetSslProxyList() { | 9011 buildTargetSslProxyList() { |
| 8944 var o = new api.TargetSslProxyList(); | 9012 var o = new api.TargetSslProxyList(); |
| 8945 buildCounterTargetSslProxyList++; | 9013 buildCounterTargetSslProxyList++; |
| 8946 if (buildCounterTargetSslProxyList < 3) { | 9014 if (buildCounterTargetSslProxyList < 3) { |
| 8947 o.id = "foo"; | 9015 o.id = "foo"; |
| 8948 o.items = buildUnnamed2406(); | 9016 o.items = buildUnnamed2427(); |
| 8949 o.kind = "foo"; | 9017 o.kind = "foo"; |
| 8950 o.nextPageToken = "foo"; | 9018 o.nextPageToken = "foo"; |
| 8951 o.selfLink = "foo"; | 9019 o.selfLink = "foo"; |
| 8952 } | 9020 } |
| 8953 buildCounterTargetSslProxyList--; | 9021 buildCounterTargetSslProxyList--; |
| 8954 return o; | 9022 return o; |
| 8955 } | 9023 } |
| 8956 | 9024 |
| 8957 checkTargetSslProxyList(api.TargetSslProxyList o) { | 9025 checkTargetSslProxyList(api.TargetSslProxyList o) { |
| 8958 buildCounterTargetSslProxyList++; | 9026 buildCounterTargetSslProxyList++; |
| 8959 if (buildCounterTargetSslProxyList < 3) { | 9027 if (buildCounterTargetSslProxyList < 3) { |
| 8960 unittest.expect(o.id, unittest.equals('foo')); | 9028 unittest.expect(o.id, unittest.equals('foo')); |
| 8961 checkUnnamed2406(o.items); | 9029 checkUnnamed2427(o.items); |
| 8962 unittest.expect(o.kind, unittest.equals('foo')); | 9030 unittest.expect(o.kind, unittest.equals('foo')); |
| 8963 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9031 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 8964 unittest.expect(o.selfLink, unittest.equals('foo')); | 9032 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 8965 } | 9033 } |
| 8966 buildCounterTargetSslProxyList--; | 9034 buildCounterTargetSslProxyList--; |
| 8967 } | 9035 } |
| 8968 | 9036 |
| 8969 core.int buildCounterTargetTcpProxiesSetBackendServiceRequest = 0; | 9037 core.int buildCounterTargetTcpProxiesSetBackendServiceRequest = 0; |
| 8970 buildTargetTcpProxiesSetBackendServiceRequest() { | 9038 buildTargetTcpProxiesSetBackendServiceRequest() { |
| 8971 var o = new api.TargetTcpProxiesSetBackendServiceRequest(); | 9039 var o = new api.TargetTcpProxiesSetBackendServiceRequest(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9030 unittest.expect(o.id, unittest.equals('foo')); | 9098 unittest.expect(o.id, unittest.equals('foo')); |
| 9031 unittest.expect(o.kind, unittest.equals('foo')); | 9099 unittest.expect(o.kind, unittest.equals('foo')); |
| 9032 unittest.expect(o.name, unittest.equals('foo')); | 9100 unittest.expect(o.name, unittest.equals('foo')); |
| 9033 unittest.expect(o.proxyHeader, unittest.equals('foo')); | 9101 unittest.expect(o.proxyHeader, unittest.equals('foo')); |
| 9034 unittest.expect(o.selfLink, unittest.equals('foo')); | 9102 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9035 unittest.expect(o.service, unittest.equals('foo')); | 9103 unittest.expect(o.service, unittest.equals('foo')); |
| 9036 } | 9104 } |
| 9037 buildCounterTargetTcpProxy--; | 9105 buildCounterTargetTcpProxy--; |
| 9038 } | 9106 } |
| 9039 | 9107 |
| 9040 buildUnnamed2407() { | 9108 buildUnnamed2428() { |
| 9041 var o = new core.List<api.TargetTcpProxy>(); | 9109 var o = new core.List<api.TargetTcpProxy>(); |
| 9042 o.add(buildTargetTcpProxy()); | 9110 o.add(buildTargetTcpProxy()); |
| 9043 o.add(buildTargetTcpProxy()); | 9111 o.add(buildTargetTcpProxy()); |
| 9044 return o; | 9112 return o; |
| 9045 } | 9113 } |
| 9046 | 9114 |
| 9047 checkUnnamed2407(core.List<api.TargetTcpProxy> o) { | 9115 checkUnnamed2428(core.List<api.TargetTcpProxy> o) { |
| 9048 unittest.expect(o, unittest.hasLength(2)); | 9116 unittest.expect(o, unittest.hasLength(2)); |
| 9049 checkTargetTcpProxy(o[0]); | 9117 checkTargetTcpProxy(o[0]); |
| 9050 checkTargetTcpProxy(o[1]); | 9118 checkTargetTcpProxy(o[1]); |
| 9051 } | 9119 } |
| 9052 | 9120 |
| 9053 core.int buildCounterTargetTcpProxyList = 0; | 9121 core.int buildCounterTargetTcpProxyList = 0; |
| 9054 buildTargetTcpProxyList() { | 9122 buildTargetTcpProxyList() { |
| 9055 var o = new api.TargetTcpProxyList(); | 9123 var o = new api.TargetTcpProxyList(); |
| 9056 buildCounterTargetTcpProxyList++; | 9124 buildCounterTargetTcpProxyList++; |
| 9057 if (buildCounterTargetTcpProxyList < 3) { | 9125 if (buildCounterTargetTcpProxyList < 3) { |
| 9058 o.id = "foo"; | 9126 o.id = "foo"; |
| 9059 o.items = buildUnnamed2407(); | 9127 o.items = buildUnnamed2428(); |
| 9060 o.kind = "foo"; | 9128 o.kind = "foo"; |
| 9061 o.nextPageToken = "foo"; | 9129 o.nextPageToken = "foo"; |
| 9062 o.selfLink = "foo"; | 9130 o.selfLink = "foo"; |
| 9063 } | 9131 } |
| 9064 buildCounterTargetTcpProxyList--; | 9132 buildCounterTargetTcpProxyList--; |
| 9065 return o; | 9133 return o; |
| 9066 } | 9134 } |
| 9067 | 9135 |
| 9068 checkTargetTcpProxyList(api.TargetTcpProxyList o) { | 9136 checkTargetTcpProxyList(api.TargetTcpProxyList o) { |
| 9069 buildCounterTargetTcpProxyList++; | 9137 buildCounterTargetTcpProxyList++; |
| 9070 if (buildCounterTargetTcpProxyList < 3) { | 9138 if (buildCounterTargetTcpProxyList < 3) { |
| 9071 unittest.expect(o.id, unittest.equals('foo')); | 9139 unittest.expect(o.id, unittest.equals('foo')); |
| 9072 checkUnnamed2407(o.items); | 9140 checkUnnamed2428(o.items); |
| 9073 unittest.expect(o.kind, unittest.equals('foo')); | 9141 unittest.expect(o.kind, unittest.equals('foo')); |
| 9074 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9142 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9075 unittest.expect(o.selfLink, unittest.equals('foo')); | 9143 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9076 } | 9144 } |
| 9077 buildCounterTargetTcpProxyList--; | 9145 buildCounterTargetTcpProxyList--; |
| 9078 } | 9146 } |
| 9079 | 9147 |
| 9080 buildUnnamed2408() { | 9148 buildUnnamed2429() { |
| 9081 var o = new core.List<core.String>(); | 9149 var o = new core.List<core.String>(); |
| 9082 o.add("foo"); | 9150 o.add("foo"); |
| 9083 o.add("foo"); | 9151 o.add("foo"); |
| 9084 return o; | 9152 return o; |
| 9085 } | 9153 } |
| 9086 | 9154 |
| 9087 checkUnnamed2408(core.List<core.String> o) { | 9155 checkUnnamed2429(core.List<core.String> o) { |
| 9088 unittest.expect(o, unittest.hasLength(2)); | 9156 unittest.expect(o, unittest.hasLength(2)); |
| 9089 unittest.expect(o[0], unittest.equals('foo')); | 9157 unittest.expect(o[0], unittest.equals('foo')); |
| 9090 unittest.expect(o[1], unittest.equals('foo')); | 9158 unittest.expect(o[1], unittest.equals('foo')); |
| 9091 } | 9159 } |
| 9092 | 9160 |
| 9093 buildUnnamed2409() { | 9161 buildUnnamed2430() { |
| 9094 var o = new core.List<core.String>(); | 9162 var o = new core.List<core.String>(); |
| 9095 o.add("foo"); | 9163 o.add("foo"); |
| 9096 o.add("foo"); | 9164 o.add("foo"); |
| 9097 return o; | 9165 return o; |
| 9098 } | 9166 } |
| 9099 | 9167 |
| 9100 checkUnnamed2409(core.List<core.String> o) { | 9168 checkUnnamed2430(core.List<core.String> o) { |
| 9101 unittest.expect(o, unittest.hasLength(2)); | 9169 unittest.expect(o, unittest.hasLength(2)); |
| 9102 unittest.expect(o[0], unittest.equals('foo')); | 9170 unittest.expect(o[0], unittest.equals('foo')); |
| 9103 unittest.expect(o[1], unittest.equals('foo')); | 9171 unittest.expect(o[1], unittest.equals('foo')); |
| 9104 } | 9172 } |
| 9105 | 9173 |
| 9106 core.int buildCounterTargetVpnGateway = 0; | 9174 core.int buildCounterTargetVpnGateway = 0; |
| 9107 buildTargetVpnGateway() { | 9175 buildTargetVpnGateway() { |
| 9108 var o = new api.TargetVpnGateway(); | 9176 var o = new api.TargetVpnGateway(); |
| 9109 buildCounterTargetVpnGateway++; | 9177 buildCounterTargetVpnGateway++; |
| 9110 if (buildCounterTargetVpnGateway < 3) { | 9178 if (buildCounterTargetVpnGateway < 3) { |
| 9111 o.creationTimestamp = "foo"; | 9179 o.creationTimestamp = "foo"; |
| 9112 o.description = "foo"; | 9180 o.description = "foo"; |
| 9113 o.forwardingRules = buildUnnamed2408(); | 9181 o.forwardingRules = buildUnnamed2429(); |
| 9114 o.id = "foo"; | 9182 o.id = "foo"; |
| 9115 o.kind = "foo"; | 9183 o.kind = "foo"; |
| 9116 o.name = "foo"; | 9184 o.name = "foo"; |
| 9117 o.network = "foo"; | 9185 o.network = "foo"; |
| 9118 o.region = "foo"; | 9186 o.region = "foo"; |
| 9119 o.selfLink = "foo"; | 9187 o.selfLink = "foo"; |
| 9120 o.status = "foo"; | 9188 o.status = "foo"; |
| 9121 o.tunnels = buildUnnamed2409(); | 9189 o.tunnels = buildUnnamed2430(); |
| 9122 } | 9190 } |
| 9123 buildCounterTargetVpnGateway--; | 9191 buildCounterTargetVpnGateway--; |
| 9124 return o; | 9192 return o; |
| 9125 } | 9193 } |
| 9126 | 9194 |
| 9127 checkTargetVpnGateway(api.TargetVpnGateway o) { | 9195 checkTargetVpnGateway(api.TargetVpnGateway o) { |
| 9128 buildCounterTargetVpnGateway++; | 9196 buildCounterTargetVpnGateway++; |
| 9129 if (buildCounterTargetVpnGateway < 3) { | 9197 if (buildCounterTargetVpnGateway < 3) { |
| 9130 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 9198 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 9131 unittest.expect(o.description, unittest.equals('foo')); | 9199 unittest.expect(o.description, unittest.equals('foo')); |
| 9132 checkUnnamed2408(o.forwardingRules); | 9200 checkUnnamed2429(o.forwardingRules); |
| 9133 unittest.expect(o.id, unittest.equals('foo')); | 9201 unittest.expect(o.id, unittest.equals('foo')); |
| 9134 unittest.expect(o.kind, unittest.equals('foo')); | 9202 unittest.expect(o.kind, unittest.equals('foo')); |
| 9135 unittest.expect(o.name, unittest.equals('foo')); | 9203 unittest.expect(o.name, unittest.equals('foo')); |
| 9136 unittest.expect(o.network, unittest.equals('foo')); | 9204 unittest.expect(o.network, unittest.equals('foo')); |
| 9137 unittest.expect(o.region, unittest.equals('foo')); | 9205 unittest.expect(o.region, unittest.equals('foo')); |
| 9138 unittest.expect(o.selfLink, unittest.equals('foo')); | 9206 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9139 unittest.expect(o.status, unittest.equals('foo')); | 9207 unittest.expect(o.status, unittest.equals('foo')); |
| 9140 checkUnnamed2409(o.tunnels); | 9208 checkUnnamed2430(o.tunnels); |
| 9141 } | 9209 } |
| 9142 buildCounterTargetVpnGateway--; | 9210 buildCounterTargetVpnGateway--; |
| 9143 } | 9211 } |
| 9144 | 9212 |
| 9145 buildUnnamed2410() { | 9213 buildUnnamed2431() { |
| 9146 var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); | 9214 var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); |
| 9147 o["x"] = buildTargetVpnGatewaysScopedList(); | 9215 o["x"] = buildTargetVpnGatewaysScopedList(); |
| 9148 o["y"] = buildTargetVpnGatewaysScopedList(); | 9216 o["y"] = buildTargetVpnGatewaysScopedList(); |
| 9149 return o; | 9217 return o; |
| 9150 } | 9218 } |
| 9151 | 9219 |
| 9152 checkUnnamed2410(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { | 9220 checkUnnamed2431(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { |
| 9153 unittest.expect(o, unittest.hasLength(2)); | 9221 unittest.expect(o, unittest.hasLength(2)); |
| 9154 checkTargetVpnGatewaysScopedList(o["x"]); | 9222 checkTargetVpnGatewaysScopedList(o["x"]); |
| 9155 checkTargetVpnGatewaysScopedList(o["y"]); | 9223 checkTargetVpnGatewaysScopedList(o["y"]); |
| 9156 } | 9224 } |
| 9157 | 9225 |
| 9158 core.int buildCounterTargetVpnGatewayAggregatedList = 0; | 9226 core.int buildCounterTargetVpnGatewayAggregatedList = 0; |
| 9159 buildTargetVpnGatewayAggregatedList() { | 9227 buildTargetVpnGatewayAggregatedList() { |
| 9160 var o = new api.TargetVpnGatewayAggregatedList(); | 9228 var o = new api.TargetVpnGatewayAggregatedList(); |
| 9161 buildCounterTargetVpnGatewayAggregatedList++; | 9229 buildCounterTargetVpnGatewayAggregatedList++; |
| 9162 if (buildCounterTargetVpnGatewayAggregatedList < 3) { | 9230 if (buildCounterTargetVpnGatewayAggregatedList < 3) { |
| 9163 o.id = "foo"; | 9231 o.id = "foo"; |
| 9164 o.items = buildUnnamed2410(); | 9232 o.items = buildUnnamed2431(); |
| 9165 o.kind = "foo"; | 9233 o.kind = "foo"; |
| 9166 o.nextPageToken = "foo"; | 9234 o.nextPageToken = "foo"; |
| 9167 o.selfLink = "foo"; | 9235 o.selfLink = "foo"; |
| 9168 } | 9236 } |
| 9169 buildCounterTargetVpnGatewayAggregatedList--; | 9237 buildCounterTargetVpnGatewayAggregatedList--; |
| 9170 return o; | 9238 return o; |
| 9171 } | 9239 } |
| 9172 | 9240 |
| 9173 checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) { | 9241 checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) { |
| 9174 buildCounterTargetVpnGatewayAggregatedList++; | 9242 buildCounterTargetVpnGatewayAggregatedList++; |
| 9175 if (buildCounterTargetVpnGatewayAggregatedList < 3) { | 9243 if (buildCounterTargetVpnGatewayAggregatedList < 3) { |
| 9176 unittest.expect(o.id, unittest.equals('foo')); | 9244 unittest.expect(o.id, unittest.equals('foo')); |
| 9177 checkUnnamed2410(o.items); | 9245 checkUnnamed2431(o.items); |
| 9178 unittest.expect(o.kind, unittest.equals('foo')); | 9246 unittest.expect(o.kind, unittest.equals('foo')); |
| 9179 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9247 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9180 unittest.expect(o.selfLink, unittest.equals('foo')); | 9248 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9181 } | 9249 } |
| 9182 buildCounterTargetVpnGatewayAggregatedList--; | 9250 buildCounterTargetVpnGatewayAggregatedList--; |
| 9183 } | 9251 } |
| 9184 | 9252 |
| 9185 buildUnnamed2411() { | 9253 buildUnnamed2432() { |
| 9186 var o = new core.List<api.TargetVpnGateway>(); | 9254 var o = new core.List<api.TargetVpnGateway>(); |
| 9187 o.add(buildTargetVpnGateway()); | 9255 o.add(buildTargetVpnGateway()); |
| 9188 o.add(buildTargetVpnGateway()); | 9256 o.add(buildTargetVpnGateway()); |
| 9189 return o; | 9257 return o; |
| 9190 } | 9258 } |
| 9191 | 9259 |
| 9192 checkUnnamed2411(core.List<api.TargetVpnGateway> o) { | 9260 checkUnnamed2432(core.List<api.TargetVpnGateway> o) { |
| 9193 unittest.expect(o, unittest.hasLength(2)); | 9261 unittest.expect(o, unittest.hasLength(2)); |
| 9194 checkTargetVpnGateway(o[0]); | 9262 checkTargetVpnGateway(o[0]); |
| 9195 checkTargetVpnGateway(o[1]); | 9263 checkTargetVpnGateway(o[1]); |
| 9196 } | 9264 } |
| 9197 | 9265 |
| 9198 core.int buildCounterTargetVpnGatewayList = 0; | 9266 core.int buildCounterTargetVpnGatewayList = 0; |
| 9199 buildTargetVpnGatewayList() { | 9267 buildTargetVpnGatewayList() { |
| 9200 var o = new api.TargetVpnGatewayList(); | 9268 var o = new api.TargetVpnGatewayList(); |
| 9201 buildCounterTargetVpnGatewayList++; | 9269 buildCounterTargetVpnGatewayList++; |
| 9202 if (buildCounterTargetVpnGatewayList < 3) { | 9270 if (buildCounterTargetVpnGatewayList < 3) { |
| 9203 o.id = "foo"; | 9271 o.id = "foo"; |
| 9204 o.items = buildUnnamed2411(); | 9272 o.items = buildUnnamed2432(); |
| 9205 o.kind = "foo"; | 9273 o.kind = "foo"; |
| 9206 o.nextPageToken = "foo"; | 9274 o.nextPageToken = "foo"; |
| 9207 o.selfLink = "foo"; | 9275 o.selfLink = "foo"; |
| 9208 } | 9276 } |
| 9209 buildCounterTargetVpnGatewayList--; | 9277 buildCounterTargetVpnGatewayList--; |
| 9210 return o; | 9278 return o; |
| 9211 } | 9279 } |
| 9212 | 9280 |
| 9213 checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { | 9281 checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { |
| 9214 buildCounterTargetVpnGatewayList++; | 9282 buildCounterTargetVpnGatewayList++; |
| 9215 if (buildCounterTargetVpnGatewayList < 3) { | 9283 if (buildCounterTargetVpnGatewayList < 3) { |
| 9216 unittest.expect(o.id, unittest.equals('foo')); | 9284 unittest.expect(o.id, unittest.equals('foo')); |
| 9217 checkUnnamed2411(o.items); | 9285 checkUnnamed2432(o.items); |
| 9218 unittest.expect(o.kind, unittest.equals('foo')); | 9286 unittest.expect(o.kind, unittest.equals('foo')); |
| 9219 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9287 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9220 unittest.expect(o.selfLink, unittest.equals('foo')); | 9288 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9221 } | 9289 } |
| 9222 buildCounterTargetVpnGatewayList--; | 9290 buildCounterTargetVpnGatewayList--; |
| 9223 } | 9291 } |
| 9224 | 9292 |
| 9225 buildUnnamed2412() { | 9293 buildUnnamed2433() { |
| 9226 var o = new core.List<api.TargetVpnGateway>(); | 9294 var o = new core.List<api.TargetVpnGateway>(); |
| 9227 o.add(buildTargetVpnGateway()); | 9295 o.add(buildTargetVpnGateway()); |
| 9228 o.add(buildTargetVpnGateway()); | 9296 o.add(buildTargetVpnGateway()); |
| 9229 return o; | 9297 return o; |
| 9230 } | 9298 } |
| 9231 | 9299 |
| 9232 checkUnnamed2412(core.List<api.TargetVpnGateway> o) { | 9300 checkUnnamed2433(core.List<api.TargetVpnGateway> o) { |
| 9233 unittest.expect(o, unittest.hasLength(2)); | 9301 unittest.expect(o, unittest.hasLength(2)); |
| 9234 checkTargetVpnGateway(o[0]); | 9302 checkTargetVpnGateway(o[0]); |
| 9235 checkTargetVpnGateway(o[1]); | 9303 checkTargetVpnGateway(o[1]); |
| 9236 } | 9304 } |
| 9237 | 9305 |
| 9238 core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0; | 9306 core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0; |
| 9239 buildTargetVpnGatewaysScopedListWarningData() { | 9307 buildTargetVpnGatewaysScopedListWarningData() { |
| 9240 var o = new api.TargetVpnGatewaysScopedListWarningData(); | 9308 var o = new api.TargetVpnGatewaysScopedListWarningData(); |
| 9241 buildCounterTargetVpnGatewaysScopedListWarningData++; | 9309 buildCounterTargetVpnGatewaysScopedListWarningData++; |
| 9242 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { | 9310 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { |
| 9243 o.key = "foo"; | 9311 o.key = "foo"; |
| 9244 o.value = "foo"; | 9312 o.value = "foo"; |
| 9245 } | 9313 } |
| 9246 buildCounterTargetVpnGatewaysScopedListWarningData--; | 9314 buildCounterTargetVpnGatewaysScopedListWarningData--; |
| 9247 return o; | 9315 return o; |
| 9248 } | 9316 } |
| 9249 | 9317 |
| 9250 checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarni
ngData o) { | 9318 checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarni
ngData o) { |
| 9251 buildCounterTargetVpnGatewaysScopedListWarningData++; | 9319 buildCounterTargetVpnGatewaysScopedListWarningData++; |
| 9252 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { | 9320 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { |
| 9253 unittest.expect(o.key, unittest.equals('foo')); | 9321 unittest.expect(o.key, unittest.equals('foo')); |
| 9254 unittest.expect(o.value, unittest.equals('foo')); | 9322 unittest.expect(o.value, unittest.equals('foo')); |
| 9255 } | 9323 } |
| 9256 buildCounterTargetVpnGatewaysScopedListWarningData--; | 9324 buildCounterTargetVpnGatewaysScopedListWarningData--; |
| 9257 } | 9325 } |
| 9258 | 9326 |
| 9259 buildUnnamed2413() { | 9327 buildUnnamed2434() { |
| 9260 var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); | 9328 var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); |
| 9261 o.add(buildTargetVpnGatewaysScopedListWarningData()); | 9329 o.add(buildTargetVpnGatewaysScopedListWarningData()); |
| 9262 o.add(buildTargetVpnGatewaysScopedListWarningData()); | 9330 o.add(buildTargetVpnGatewaysScopedListWarningData()); |
| 9263 return o; | 9331 return o; |
| 9264 } | 9332 } |
| 9265 | 9333 |
| 9266 checkUnnamed2413(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { | 9334 checkUnnamed2434(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { |
| 9267 unittest.expect(o, unittest.hasLength(2)); | 9335 unittest.expect(o, unittest.hasLength(2)); |
| 9268 checkTargetVpnGatewaysScopedListWarningData(o[0]); | 9336 checkTargetVpnGatewaysScopedListWarningData(o[0]); |
| 9269 checkTargetVpnGatewaysScopedListWarningData(o[1]); | 9337 checkTargetVpnGatewaysScopedListWarningData(o[1]); |
| 9270 } | 9338 } |
| 9271 | 9339 |
| 9272 core.int buildCounterTargetVpnGatewaysScopedListWarning = 0; | 9340 core.int buildCounterTargetVpnGatewaysScopedListWarning = 0; |
| 9273 buildTargetVpnGatewaysScopedListWarning() { | 9341 buildTargetVpnGatewaysScopedListWarning() { |
| 9274 var o = new api.TargetVpnGatewaysScopedListWarning(); | 9342 var o = new api.TargetVpnGatewaysScopedListWarning(); |
| 9275 buildCounterTargetVpnGatewaysScopedListWarning++; | 9343 buildCounterTargetVpnGatewaysScopedListWarning++; |
| 9276 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { | 9344 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { |
| 9277 o.code = "foo"; | 9345 o.code = "foo"; |
| 9278 o.data = buildUnnamed2413(); | 9346 o.data = buildUnnamed2434(); |
| 9279 o.message = "foo"; | 9347 o.message = "foo"; |
| 9280 } | 9348 } |
| 9281 buildCounterTargetVpnGatewaysScopedListWarning--; | 9349 buildCounterTargetVpnGatewaysScopedListWarning--; |
| 9282 return o; | 9350 return o; |
| 9283 } | 9351 } |
| 9284 | 9352 |
| 9285 checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o
) { | 9353 checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o
) { |
| 9286 buildCounterTargetVpnGatewaysScopedListWarning++; | 9354 buildCounterTargetVpnGatewaysScopedListWarning++; |
| 9287 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { | 9355 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { |
| 9288 unittest.expect(o.code, unittest.equals('foo')); | 9356 unittest.expect(o.code, unittest.equals('foo')); |
| 9289 checkUnnamed2413(o.data); | 9357 checkUnnamed2434(o.data); |
| 9290 unittest.expect(o.message, unittest.equals('foo')); | 9358 unittest.expect(o.message, unittest.equals('foo')); |
| 9291 } | 9359 } |
| 9292 buildCounterTargetVpnGatewaysScopedListWarning--; | 9360 buildCounterTargetVpnGatewaysScopedListWarning--; |
| 9293 } | 9361 } |
| 9294 | 9362 |
| 9295 core.int buildCounterTargetVpnGatewaysScopedList = 0; | 9363 core.int buildCounterTargetVpnGatewaysScopedList = 0; |
| 9296 buildTargetVpnGatewaysScopedList() { | 9364 buildTargetVpnGatewaysScopedList() { |
| 9297 var o = new api.TargetVpnGatewaysScopedList(); | 9365 var o = new api.TargetVpnGatewaysScopedList(); |
| 9298 buildCounterTargetVpnGatewaysScopedList++; | 9366 buildCounterTargetVpnGatewaysScopedList++; |
| 9299 if (buildCounterTargetVpnGatewaysScopedList < 3) { | 9367 if (buildCounterTargetVpnGatewaysScopedList < 3) { |
| 9300 o.targetVpnGateways = buildUnnamed2412(); | 9368 o.targetVpnGateways = buildUnnamed2433(); |
| 9301 o.warning = buildTargetVpnGatewaysScopedListWarning(); | 9369 o.warning = buildTargetVpnGatewaysScopedListWarning(); |
| 9302 } | 9370 } |
| 9303 buildCounterTargetVpnGatewaysScopedList--; | 9371 buildCounterTargetVpnGatewaysScopedList--; |
| 9304 return o; | 9372 return o; |
| 9305 } | 9373 } |
| 9306 | 9374 |
| 9307 checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { | 9375 checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { |
| 9308 buildCounterTargetVpnGatewaysScopedList++; | 9376 buildCounterTargetVpnGatewaysScopedList++; |
| 9309 if (buildCounterTargetVpnGatewaysScopedList < 3) { | 9377 if (buildCounterTargetVpnGatewaysScopedList < 3) { |
| 9310 checkUnnamed2412(o.targetVpnGateways); | 9378 checkUnnamed2433(o.targetVpnGateways); |
| 9311 checkTargetVpnGatewaysScopedListWarning(o.warning); | 9379 checkTargetVpnGatewaysScopedListWarning(o.warning); |
| 9312 } | 9380 } |
| 9313 buildCounterTargetVpnGatewaysScopedList--; | 9381 buildCounterTargetVpnGatewaysScopedList--; |
| 9314 } | 9382 } |
| 9315 | 9383 |
| 9316 core.int buildCounterTestFailure = 0; | 9384 core.int buildCounterTestFailure = 0; |
| 9317 buildTestFailure() { | 9385 buildTestFailure() { |
| 9318 var o = new api.TestFailure(); | 9386 var o = new api.TestFailure(); |
| 9319 buildCounterTestFailure++; | 9387 buildCounterTestFailure++; |
| 9320 if (buildCounterTestFailure < 3) { | 9388 if (buildCounterTestFailure < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 9331 buildCounterTestFailure++; | 9399 buildCounterTestFailure++; |
| 9332 if (buildCounterTestFailure < 3) { | 9400 if (buildCounterTestFailure < 3) { |
| 9333 unittest.expect(o.actualService, unittest.equals('foo')); | 9401 unittest.expect(o.actualService, unittest.equals('foo')); |
| 9334 unittest.expect(o.expectedService, unittest.equals('foo')); | 9402 unittest.expect(o.expectedService, unittest.equals('foo')); |
| 9335 unittest.expect(o.host, unittest.equals('foo')); | 9403 unittest.expect(o.host, unittest.equals('foo')); |
| 9336 unittest.expect(o.path, unittest.equals('foo')); | 9404 unittest.expect(o.path, unittest.equals('foo')); |
| 9337 } | 9405 } |
| 9338 buildCounterTestFailure--; | 9406 buildCounterTestFailure--; |
| 9339 } | 9407 } |
| 9340 | 9408 |
| 9341 buildUnnamed2414() { | 9409 buildUnnamed2435() { |
| 9342 var o = new core.List<api.HostRule>(); | 9410 var o = new core.List<api.HostRule>(); |
| 9343 o.add(buildHostRule()); | 9411 o.add(buildHostRule()); |
| 9344 o.add(buildHostRule()); | 9412 o.add(buildHostRule()); |
| 9345 return o; | 9413 return o; |
| 9346 } | 9414 } |
| 9347 | 9415 |
| 9348 checkUnnamed2414(core.List<api.HostRule> o) { | 9416 checkUnnamed2435(core.List<api.HostRule> o) { |
| 9349 unittest.expect(o, unittest.hasLength(2)); | 9417 unittest.expect(o, unittest.hasLength(2)); |
| 9350 checkHostRule(o[0]); | 9418 checkHostRule(o[0]); |
| 9351 checkHostRule(o[1]); | 9419 checkHostRule(o[1]); |
| 9352 } | 9420 } |
| 9353 | 9421 |
| 9354 buildUnnamed2415() { | 9422 buildUnnamed2436() { |
| 9355 var o = new core.List<api.PathMatcher>(); | 9423 var o = new core.List<api.PathMatcher>(); |
| 9356 o.add(buildPathMatcher()); | 9424 o.add(buildPathMatcher()); |
| 9357 o.add(buildPathMatcher()); | 9425 o.add(buildPathMatcher()); |
| 9358 return o; | 9426 return o; |
| 9359 } | 9427 } |
| 9360 | 9428 |
| 9361 checkUnnamed2415(core.List<api.PathMatcher> o) { | 9429 checkUnnamed2436(core.List<api.PathMatcher> o) { |
| 9362 unittest.expect(o, unittest.hasLength(2)); | 9430 unittest.expect(o, unittest.hasLength(2)); |
| 9363 checkPathMatcher(o[0]); | 9431 checkPathMatcher(o[0]); |
| 9364 checkPathMatcher(o[1]); | 9432 checkPathMatcher(o[1]); |
| 9365 } | 9433 } |
| 9366 | 9434 |
| 9367 buildUnnamed2416() { | 9435 buildUnnamed2437() { |
| 9368 var o = new core.List<api.UrlMapTest>(); | 9436 var o = new core.List<api.UrlMapTest>(); |
| 9369 o.add(buildUrlMapTest()); | 9437 o.add(buildUrlMapTest()); |
| 9370 o.add(buildUrlMapTest()); | 9438 o.add(buildUrlMapTest()); |
| 9371 return o; | 9439 return o; |
| 9372 } | 9440 } |
| 9373 | 9441 |
| 9374 checkUnnamed2416(core.List<api.UrlMapTest> o) { | 9442 checkUnnamed2437(core.List<api.UrlMapTest> o) { |
| 9375 unittest.expect(o, unittest.hasLength(2)); | 9443 unittest.expect(o, unittest.hasLength(2)); |
| 9376 checkUrlMapTest(o[0]); | 9444 checkUrlMapTest(o[0]); |
| 9377 checkUrlMapTest(o[1]); | 9445 checkUrlMapTest(o[1]); |
| 9378 } | 9446 } |
| 9379 | 9447 |
| 9380 core.int buildCounterUrlMap = 0; | 9448 core.int buildCounterUrlMap = 0; |
| 9381 buildUrlMap() { | 9449 buildUrlMap() { |
| 9382 var o = new api.UrlMap(); | 9450 var o = new api.UrlMap(); |
| 9383 buildCounterUrlMap++; | 9451 buildCounterUrlMap++; |
| 9384 if (buildCounterUrlMap < 3) { | 9452 if (buildCounterUrlMap < 3) { |
| 9385 o.creationTimestamp = "foo"; | 9453 o.creationTimestamp = "foo"; |
| 9386 o.defaultService = "foo"; | 9454 o.defaultService = "foo"; |
| 9387 o.description = "foo"; | 9455 o.description = "foo"; |
| 9388 o.fingerprint = "foo"; | 9456 o.fingerprint = "foo"; |
| 9389 o.hostRules = buildUnnamed2414(); | 9457 o.hostRules = buildUnnamed2435(); |
| 9390 o.id = "foo"; | 9458 o.id = "foo"; |
| 9391 o.kind = "foo"; | 9459 o.kind = "foo"; |
| 9392 o.name = "foo"; | 9460 o.name = "foo"; |
| 9393 o.pathMatchers = buildUnnamed2415(); | 9461 o.pathMatchers = buildUnnamed2436(); |
| 9394 o.selfLink = "foo"; | 9462 o.selfLink = "foo"; |
| 9395 o.tests = buildUnnamed2416(); | 9463 o.tests = buildUnnamed2437(); |
| 9396 } | 9464 } |
| 9397 buildCounterUrlMap--; | 9465 buildCounterUrlMap--; |
| 9398 return o; | 9466 return o; |
| 9399 } | 9467 } |
| 9400 | 9468 |
| 9401 checkUrlMap(api.UrlMap o) { | 9469 checkUrlMap(api.UrlMap o) { |
| 9402 buildCounterUrlMap++; | 9470 buildCounterUrlMap++; |
| 9403 if (buildCounterUrlMap < 3) { | 9471 if (buildCounterUrlMap < 3) { |
| 9404 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 9472 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 9405 unittest.expect(o.defaultService, unittest.equals('foo')); | 9473 unittest.expect(o.defaultService, unittest.equals('foo')); |
| 9406 unittest.expect(o.description, unittest.equals('foo')); | 9474 unittest.expect(o.description, unittest.equals('foo')); |
| 9407 unittest.expect(o.fingerprint, unittest.equals('foo')); | 9475 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 9408 checkUnnamed2414(o.hostRules); | 9476 checkUnnamed2435(o.hostRules); |
| 9409 unittest.expect(o.id, unittest.equals('foo')); | 9477 unittest.expect(o.id, unittest.equals('foo')); |
| 9410 unittest.expect(o.kind, unittest.equals('foo')); | 9478 unittest.expect(o.kind, unittest.equals('foo')); |
| 9411 unittest.expect(o.name, unittest.equals('foo')); | 9479 unittest.expect(o.name, unittest.equals('foo')); |
| 9412 checkUnnamed2415(o.pathMatchers); | 9480 checkUnnamed2436(o.pathMatchers); |
| 9413 unittest.expect(o.selfLink, unittest.equals('foo')); | 9481 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9414 checkUnnamed2416(o.tests); | 9482 checkUnnamed2437(o.tests); |
| 9415 } | 9483 } |
| 9416 buildCounterUrlMap--; | 9484 buildCounterUrlMap--; |
| 9417 } | 9485 } |
| 9418 | 9486 |
| 9419 buildUnnamed2417() { | 9487 buildUnnamed2438() { |
| 9420 var o = new core.List<api.UrlMap>(); | 9488 var o = new core.List<api.UrlMap>(); |
| 9421 o.add(buildUrlMap()); | 9489 o.add(buildUrlMap()); |
| 9422 o.add(buildUrlMap()); | 9490 o.add(buildUrlMap()); |
| 9423 return o; | 9491 return o; |
| 9424 } | 9492 } |
| 9425 | 9493 |
| 9426 checkUnnamed2417(core.List<api.UrlMap> o) { | 9494 checkUnnamed2438(core.List<api.UrlMap> o) { |
| 9427 unittest.expect(o, unittest.hasLength(2)); | 9495 unittest.expect(o, unittest.hasLength(2)); |
| 9428 checkUrlMap(o[0]); | 9496 checkUrlMap(o[0]); |
| 9429 checkUrlMap(o[1]); | 9497 checkUrlMap(o[1]); |
| 9430 } | 9498 } |
| 9431 | 9499 |
| 9432 core.int buildCounterUrlMapList = 0; | 9500 core.int buildCounterUrlMapList = 0; |
| 9433 buildUrlMapList() { | 9501 buildUrlMapList() { |
| 9434 var o = new api.UrlMapList(); | 9502 var o = new api.UrlMapList(); |
| 9435 buildCounterUrlMapList++; | 9503 buildCounterUrlMapList++; |
| 9436 if (buildCounterUrlMapList < 3) { | 9504 if (buildCounterUrlMapList < 3) { |
| 9437 o.id = "foo"; | 9505 o.id = "foo"; |
| 9438 o.items = buildUnnamed2417(); | 9506 o.items = buildUnnamed2438(); |
| 9439 o.kind = "foo"; | 9507 o.kind = "foo"; |
| 9440 o.nextPageToken = "foo"; | 9508 o.nextPageToken = "foo"; |
| 9441 o.selfLink = "foo"; | 9509 o.selfLink = "foo"; |
| 9442 } | 9510 } |
| 9443 buildCounterUrlMapList--; | 9511 buildCounterUrlMapList--; |
| 9444 return o; | 9512 return o; |
| 9445 } | 9513 } |
| 9446 | 9514 |
| 9447 checkUrlMapList(api.UrlMapList o) { | 9515 checkUrlMapList(api.UrlMapList o) { |
| 9448 buildCounterUrlMapList++; | 9516 buildCounterUrlMapList++; |
| 9449 if (buildCounterUrlMapList < 3) { | 9517 if (buildCounterUrlMapList < 3) { |
| 9450 unittest.expect(o.id, unittest.equals('foo')); | 9518 unittest.expect(o.id, unittest.equals('foo')); |
| 9451 checkUnnamed2417(o.items); | 9519 checkUnnamed2438(o.items); |
| 9452 unittest.expect(o.kind, unittest.equals('foo')); | 9520 unittest.expect(o.kind, unittest.equals('foo')); |
| 9453 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9521 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9454 unittest.expect(o.selfLink, unittest.equals('foo')); | 9522 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9455 } | 9523 } |
| 9456 buildCounterUrlMapList--; | 9524 buildCounterUrlMapList--; |
| 9457 } | 9525 } |
| 9458 | 9526 |
| 9459 core.int buildCounterUrlMapReference = 0; | 9527 core.int buildCounterUrlMapReference = 0; |
| 9460 buildUrlMapReference() { | 9528 buildUrlMapReference() { |
| 9461 var o = new api.UrlMapReference(); | 9529 var o = new api.UrlMapReference(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9493 buildCounterUrlMapTest++; | 9561 buildCounterUrlMapTest++; |
| 9494 if (buildCounterUrlMapTest < 3) { | 9562 if (buildCounterUrlMapTest < 3) { |
| 9495 unittest.expect(o.description, unittest.equals('foo')); | 9563 unittest.expect(o.description, unittest.equals('foo')); |
| 9496 unittest.expect(o.host, unittest.equals('foo')); | 9564 unittest.expect(o.host, unittest.equals('foo')); |
| 9497 unittest.expect(o.path, unittest.equals('foo')); | 9565 unittest.expect(o.path, unittest.equals('foo')); |
| 9498 unittest.expect(o.service, unittest.equals('foo')); | 9566 unittest.expect(o.service, unittest.equals('foo')); |
| 9499 } | 9567 } |
| 9500 buildCounterUrlMapTest--; | 9568 buildCounterUrlMapTest--; |
| 9501 } | 9569 } |
| 9502 | 9570 |
| 9503 buildUnnamed2418() { | 9571 buildUnnamed2439() { |
| 9504 var o = new core.List<core.String>(); | 9572 var o = new core.List<core.String>(); |
| 9505 o.add("foo"); | 9573 o.add("foo"); |
| 9506 o.add("foo"); | 9574 o.add("foo"); |
| 9507 return o; | 9575 return o; |
| 9508 } | 9576 } |
| 9509 | 9577 |
| 9510 checkUnnamed2418(core.List<core.String> o) { | 9578 checkUnnamed2439(core.List<core.String> o) { |
| 9511 unittest.expect(o, unittest.hasLength(2)); | 9579 unittest.expect(o, unittest.hasLength(2)); |
| 9512 unittest.expect(o[0], unittest.equals('foo')); | 9580 unittest.expect(o[0], unittest.equals('foo')); |
| 9513 unittest.expect(o[1], unittest.equals('foo')); | 9581 unittest.expect(o[1], unittest.equals('foo')); |
| 9514 } | 9582 } |
| 9515 | 9583 |
| 9516 buildUnnamed2419() { | 9584 buildUnnamed2440() { |
| 9517 var o = new core.List<api.TestFailure>(); | 9585 var o = new core.List<api.TestFailure>(); |
| 9518 o.add(buildTestFailure()); | 9586 o.add(buildTestFailure()); |
| 9519 o.add(buildTestFailure()); | 9587 o.add(buildTestFailure()); |
| 9520 return o; | 9588 return o; |
| 9521 } | 9589 } |
| 9522 | 9590 |
| 9523 checkUnnamed2419(core.List<api.TestFailure> o) { | 9591 checkUnnamed2440(core.List<api.TestFailure> o) { |
| 9524 unittest.expect(o, unittest.hasLength(2)); | 9592 unittest.expect(o, unittest.hasLength(2)); |
| 9525 checkTestFailure(o[0]); | 9593 checkTestFailure(o[0]); |
| 9526 checkTestFailure(o[1]); | 9594 checkTestFailure(o[1]); |
| 9527 } | 9595 } |
| 9528 | 9596 |
| 9529 core.int buildCounterUrlMapValidationResult = 0; | 9597 core.int buildCounterUrlMapValidationResult = 0; |
| 9530 buildUrlMapValidationResult() { | 9598 buildUrlMapValidationResult() { |
| 9531 var o = new api.UrlMapValidationResult(); | 9599 var o = new api.UrlMapValidationResult(); |
| 9532 buildCounterUrlMapValidationResult++; | 9600 buildCounterUrlMapValidationResult++; |
| 9533 if (buildCounterUrlMapValidationResult < 3) { | 9601 if (buildCounterUrlMapValidationResult < 3) { |
| 9534 o.loadErrors = buildUnnamed2418(); | 9602 o.loadErrors = buildUnnamed2439(); |
| 9535 o.loadSucceeded = true; | 9603 o.loadSucceeded = true; |
| 9536 o.testFailures = buildUnnamed2419(); | 9604 o.testFailures = buildUnnamed2440(); |
| 9537 o.testPassed = true; | 9605 o.testPassed = true; |
| 9538 } | 9606 } |
| 9539 buildCounterUrlMapValidationResult--; | 9607 buildCounterUrlMapValidationResult--; |
| 9540 return o; | 9608 return o; |
| 9541 } | 9609 } |
| 9542 | 9610 |
| 9543 checkUrlMapValidationResult(api.UrlMapValidationResult o) { | 9611 checkUrlMapValidationResult(api.UrlMapValidationResult o) { |
| 9544 buildCounterUrlMapValidationResult++; | 9612 buildCounterUrlMapValidationResult++; |
| 9545 if (buildCounterUrlMapValidationResult < 3) { | 9613 if (buildCounterUrlMapValidationResult < 3) { |
| 9546 checkUnnamed2418(o.loadErrors); | 9614 checkUnnamed2439(o.loadErrors); |
| 9547 unittest.expect(o.loadSucceeded, unittest.isTrue); | 9615 unittest.expect(o.loadSucceeded, unittest.isTrue); |
| 9548 checkUnnamed2419(o.testFailures); | 9616 checkUnnamed2440(o.testFailures); |
| 9549 unittest.expect(o.testPassed, unittest.isTrue); | 9617 unittest.expect(o.testPassed, unittest.isTrue); |
| 9550 } | 9618 } |
| 9551 buildCounterUrlMapValidationResult--; | 9619 buildCounterUrlMapValidationResult--; |
| 9552 } | 9620 } |
| 9553 | 9621 |
| 9554 core.int buildCounterUrlMapsValidateRequest = 0; | 9622 core.int buildCounterUrlMapsValidateRequest = 0; |
| 9555 buildUrlMapsValidateRequest() { | 9623 buildUrlMapsValidateRequest() { |
| 9556 var o = new api.UrlMapsValidateRequest(); | 9624 var o = new api.UrlMapsValidateRequest(); |
| 9557 buildCounterUrlMapsValidateRequest++; | 9625 buildCounterUrlMapsValidateRequest++; |
| 9558 if (buildCounterUrlMapsValidateRequest < 3) { | 9626 if (buildCounterUrlMapsValidateRequest < 3) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9603 | 9671 |
| 9604 checkUsageExportLocation(api.UsageExportLocation o) { | 9672 checkUsageExportLocation(api.UsageExportLocation o) { |
| 9605 buildCounterUsageExportLocation++; | 9673 buildCounterUsageExportLocation++; |
| 9606 if (buildCounterUsageExportLocation < 3) { | 9674 if (buildCounterUsageExportLocation < 3) { |
| 9607 unittest.expect(o.bucketName, unittest.equals('foo')); | 9675 unittest.expect(o.bucketName, unittest.equals('foo')); |
| 9608 unittest.expect(o.reportNamePrefix, unittest.equals('foo')); | 9676 unittest.expect(o.reportNamePrefix, unittest.equals('foo')); |
| 9609 } | 9677 } |
| 9610 buildCounterUsageExportLocation--; | 9678 buildCounterUsageExportLocation--; |
| 9611 } | 9679 } |
| 9612 | 9680 |
| 9613 buildUnnamed2420() { | 9681 buildUnnamed2441() { |
| 9614 var o = new core.List<core.String>(); | 9682 var o = new core.List<core.String>(); |
| 9615 o.add("foo"); | 9683 o.add("foo"); |
| 9616 o.add("foo"); | 9684 o.add("foo"); |
| 9617 return o; | 9685 return o; |
| 9618 } | 9686 } |
| 9619 | 9687 |
| 9620 checkUnnamed2420(core.List<core.String> o) { | 9688 checkUnnamed2441(core.List<core.String> o) { |
| 9621 unittest.expect(o, unittest.hasLength(2)); | 9689 unittest.expect(o, unittest.hasLength(2)); |
| 9622 unittest.expect(o[0], unittest.equals('foo')); | 9690 unittest.expect(o[0], unittest.equals('foo')); |
| 9623 unittest.expect(o[1], unittest.equals('foo')); | 9691 unittest.expect(o[1], unittest.equals('foo')); |
| 9624 } | 9692 } |
| 9625 | 9693 |
| 9626 buildUnnamed2421() { | 9694 buildUnnamed2442() { |
| 9627 var o = new core.List<core.String>(); | 9695 var o = new core.List<core.String>(); |
| 9628 o.add("foo"); | 9696 o.add("foo"); |
| 9629 o.add("foo"); | 9697 o.add("foo"); |
| 9630 return o; | 9698 return o; |
| 9631 } | 9699 } |
| 9632 | 9700 |
| 9633 checkUnnamed2421(core.List<core.String> o) { | 9701 checkUnnamed2442(core.List<core.String> o) { |
| 9634 unittest.expect(o, unittest.hasLength(2)); | 9702 unittest.expect(o, unittest.hasLength(2)); |
| 9635 unittest.expect(o[0], unittest.equals('foo')); | 9703 unittest.expect(o[0], unittest.equals('foo')); |
| 9636 unittest.expect(o[1], unittest.equals('foo')); | 9704 unittest.expect(o[1], unittest.equals('foo')); |
| 9637 } | 9705 } |
| 9638 | 9706 |
| 9639 core.int buildCounterVpnTunnel = 0; | 9707 core.int buildCounterVpnTunnel = 0; |
| 9640 buildVpnTunnel() { | 9708 buildVpnTunnel() { |
| 9641 var o = new api.VpnTunnel(); | 9709 var o = new api.VpnTunnel(); |
| 9642 buildCounterVpnTunnel++; | 9710 buildCounterVpnTunnel++; |
| 9643 if (buildCounterVpnTunnel < 3) { | 9711 if (buildCounterVpnTunnel < 3) { |
| 9644 o.creationTimestamp = "foo"; | 9712 o.creationTimestamp = "foo"; |
| 9645 o.description = "foo"; | 9713 o.description = "foo"; |
| 9646 o.detailedStatus = "foo"; | 9714 o.detailedStatus = "foo"; |
| 9647 o.id = "foo"; | 9715 o.id = "foo"; |
| 9648 o.ikeVersion = 42; | 9716 o.ikeVersion = 42; |
| 9649 o.kind = "foo"; | 9717 o.kind = "foo"; |
| 9650 o.localTrafficSelector = buildUnnamed2420(); | 9718 o.localTrafficSelector = buildUnnamed2441(); |
| 9651 o.name = "foo"; | 9719 o.name = "foo"; |
| 9652 o.peerIp = "foo"; | 9720 o.peerIp = "foo"; |
| 9653 o.region = "foo"; | 9721 o.region = "foo"; |
| 9654 o.remoteTrafficSelector = buildUnnamed2421(); | 9722 o.remoteTrafficSelector = buildUnnamed2442(); |
| 9655 o.router = "foo"; | 9723 o.router = "foo"; |
| 9656 o.selfLink = "foo"; | 9724 o.selfLink = "foo"; |
| 9657 o.sharedSecret = "foo"; | 9725 o.sharedSecret = "foo"; |
| 9658 o.sharedSecretHash = "foo"; | 9726 o.sharedSecretHash = "foo"; |
| 9659 o.status = "foo"; | 9727 o.status = "foo"; |
| 9660 o.targetVpnGateway = "foo"; | 9728 o.targetVpnGateway = "foo"; |
| 9661 } | 9729 } |
| 9662 buildCounterVpnTunnel--; | 9730 buildCounterVpnTunnel--; |
| 9663 return o; | 9731 return o; |
| 9664 } | 9732 } |
| 9665 | 9733 |
| 9666 checkVpnTunnel(api.VpnTunnel o) { | 9734 checkVpnTunnel(api.VpnTunnel o) { |
| 9667 buildCounterVpnTunnel++; | 9735 buildCounterVpnTunnel++; |
| 9668 if (buildCounterVpnTunnel < 3) { | 9736 if (buildCounterVpnTunnel < 3) { |
| 9669 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 9737 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 9670 unittest.expect(o.description, unittest.equals('foo')); | 9738 unittest.expect(o.description, unittest.equals('foo')); |
| 9671 unittest.expect(o.detailedStatus, unittest.equals('foo')); | 9739 unittest.expect(o.detailedStatus, unittest.equals('foo')); |
| 9672 unittest.expect(o.id, unittest.equals('foo')); | 9740 unittest.expect(o.id, unittest.equals('foo')); |
| 9673 unittest.expect(o.ikeVersion, unittest.equals(42)); | 9741 unittest.expect(o.ikeVersion, unittest.equals(42)); |
| 9674 unittest.expect(o.kind, unittest.equals('foo')); | 9742 unittest.expect(o.kind, unittest.equals('foo')); |
| 9675 checkUnnamed2420(o.localTrafficSelector); | 9743 checkUnnamed2441(o.localTrafficSelector); |
| 9676 unittest.expect(o.name, unittest.equals('foo')); | 9744 unittest.expect(o.name, unittest.equals('foo')); |
| 9677 unittest.expect(o.peerIp, unittest.equals('foo')); | 9745 unittest.expect(o.peerIp, unittest.equals('foo')); |
| 9678 unittest.expect(o.region, unittest.equals('foo')); | 9746 unittest.expect(o.region, unittest.equals('foo')); |
| 9679 checkUnnamed2421(o.remoteTrafficSelector); | 9747 checkUnnamed2442(o.remoteTrafficSelector); |
| 9680 unittest.expect(o.router, unittest.equals('foo')); | 9748 unittest.expect(o.router, unittest.equals('foo')); |
| 9681 unittest.expect(o.selfLink, unittest.equals('foo')); | 9749 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9682 unittest.expect(o.sharedSecret, unittest.equals('foo')); | 9750 unittest.expect(o.sharedSecret, unittest.equals('foo')); |
| 9683 unittest.expect(o.sharedSecretHash, unittest.equals('foo')); | 9751 unittest.expect(o.sharedSecretHash, unittest.equals('foo')); |
| 9684 unittest.expect(o.status, unittest.equals('foo')); | 9752 unittest.expect(o.status, unittest.equals('foo')); |
| 9685 unittest.expect(o.targetVpnGateway, unittest.equals('foo')); | 9753 unittest.expect(o.targetVpnGateway, unittest.equals('foo')); |
| 9686 } | 9754 } |
| 9687 buildCounterVpnTunnel--; | 9755 buildCounterVpnTunnel--; |
| 9688 } | 9756 } |
| 9689 | 9757 |
| 9690 buildUnnamed2422() { | 9758 buildUnnamed2443() { |
| 9691 var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); | 9759 var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); |
| 9692 o["x"] = buildVpnTunnelsScopedList(); | 9760 o["x"] = buildVpnTunnelsScopedList(); |
| 9693 o["y"] = buildVpnTunnelsScopedList(); | 9761 o["y"] = buildVpnTunnelsScopedList(); |
| 9694 return o; | 9762 return o; |
| 9695 } | 9763 } |
| 9696 | 9764 |
| 9697 checkUnnamed2422(core.Map<core.String, api.VpnTunnelsScopedList> o) { | 9765 checkUnnamed2443(core.Map<core.String, api.VpnTunnelsScopedList> o) { |
| 9698 unittest.expect(o, unittest.hasLength(2)); | 9766 unittest.expect(o, unittest.hasLength(2)); |
| 9699 checkVpnTunnelsScopedList(o["x"]); | 9767 checkVpnTunnelsScopedList(o["x"]); |
| 9700 checkVpnTunnelsScopedList(o["y"]); | 9768 checkVpnTunnelsScopedList(o["y"]); |
| 9701 } | 9769 } |
| 9702 | 9770 |
| 9703 core.int buildCounterVpnTunnelAggregatedList = 0; | 9771 core.int buildCounterVpnTunnelAggregatedList = 0; |
| 9704 buildVpnTunnelAggregatedList() { | 9772 buildVpnTunnelAggregatedList() { |
| 9705 var o = new api.VpnTunnelAggregatedList(); | 9773 var o = new api.VpnTunnelAggregatedList(); |
| 9706 buildCounterVpnTunnelAggregatedList++; | 9774 buildCounterVpnTunnelAggregatedList++; |
| 9707 if (buildCounterVpnTunnelAggregatedList < 3) { | 9775 if (buildCounterVpnTunnelAggregatedList < 3) { |
| 9708 o.id = "foo"; | 9776 o.id = "foo"; |
| 9709 o.items = buildUnnamed2422(); | 9777 o.items = buildUnnamed2443(); |
| 9710 o.kind = "foo"; | 9778 o.kind = "foo"; |
| 9711 o.nextPageToken = "foo"; | 9779 o.nextPageToken = "foo"; |
| 9712 o.selfLink = "foo"; | 9780 o.selfLink = "foo"; |
| 9713 } | 9781 } |
| 9714 buildCounterVpnTunnelAggregatedList--; | 9782 buildCounterVpnTunnelAggregatedList--; |
| 9715 return o; | 9783 return o; |
| 9716 } | 9784 } |
| 9717 | 9785 |
| 9718 checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) { | 9786 checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) { |
| 9719 buildCounterVpnTunnelAggregatedList++; | 9787 buildCounterVpnTunnelAggregatedList++; |
| 9720 if (buildCounterVpnTunnelAggregatedList < 3) { | 9788 if (buildCounterVpnTunnelAggregatedList < 3) { |
| 9721 unittest.expect(o.id, unittest.equals('foo')); | 9789 unittest.expect(o.id, unittest.equals('foo')); |
| 9722 checkUnnamed2422(o.items); | 9790 checkUnnamed2443(o.items); |
| 9723 unittest.expect(o.kind, unittest.equals('foo')); | 9791 unittest.expect(o.kind, unittest.equals('foo')); |
| 9724 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9792 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9725 unittest.expect(o.selfLink, unittest.equals('foo')); | 9793 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9726 } | 9794 } |
| 9727 buildCounterVpnTunnelAggregatedList--; | 9795 buildCounterVpnTunnelAggregatedList--; |
| 9728 } | 9796 } |
| 9729 | 9797 |
| 9730 buildUnnamed2423() { | 9798 buildUnnamed2444() { |
| 9731 var o = new core.List<api.VpnTunnel>(); | 9799 var o = new core.List<api.VpnTunnel>(); |
| 9732 o.add(buildVpnTunnel()); | 9800 o.add(buildVpnTunnel()); |
| 9733 o.add(buildVpnTunnel()); | 9801 o.add(buildVpnTunnel()); |
| 9734 return o; | 9802 return o; |
| 9735 } | 9803 } |
| 9736 | 9804 |
| 9737 checkUnnamed2423(core.List<api.VpnTunnel> o) { | 9805 checkUnnamed2444(core.List<api.VpnTunnel> o) { |
| 9738 unittest.expect(o, unittest.hasLength(2)); | 9806 unittest.expect(o, unittest.hasLength(2)); |
| 9739 checkVpnTunnel(o[0]); | 9807 checkVpnTunnel(o[0]); |
| 9740 checkVpnTunnel(o[1]); | 9808 checkVpnTunnel(o[1]); |
| 9741 } | 9809 } |
| 9742 | 9810 |
| 9743 core.int buildCounterVpnTunnelList = 0; | 9811 core.int buildCounterVpnTunnelList = 0; |
| 9744 buildVpnTunnelList() { | 9812 buildVpnTunnelList() { |
| 9745 var o = new api.VpnTunnelList(); | 9813 var o = new api.VpnTunnelList(); |
| 9746 buildCounterVpnTunnelList++; | 9814 buildCounterVpnTunnelList++; |
| 9747 if (buildCounterVpnTunnelList < 3) { | 9815 if (buildCounterVpnTunnelList < 3) { |
| 9748 o.id = "foo"; | 9816 o.id = "foo"; |
| 9749 o.items = buildUnnamed2423(); | 9817 o.items = buildUnnamed2444(); |
| 9750 o.kind = "foo"; | 9818 o.kind = "foo"; |
| 9751 o.nextPageToken = "foo"; | 9819 o.nextPageToken = "foo"; |
| 9752 o.selfLink = "foo"; | 9820 o.selfLink = "foo"; |
| 9753 } | 9821 } |
| 9754 buildCounterVpnTunnelList--; | 9822 buildCounterVpnTunnelList--; |
| 9755 return o; | 9823 return o; |
| 9756 } | 9824 } |
| 9757 | 9825 |
| 9758 checkVpnTunnelList(api.VpnTunnelList o) { | 9826 checkVpnTunnelList(api.VpnTunnelList o) { |
| 9759 buildCounterVpnTunnelList++; | 9827 buildCounterVpnTunnelList++; |
| 9760 if (buildCounterVpnTunnelList < 3) { | 9828 if (buildCounterVpnTunnelList < 3) { |
| 9761 unittest.expect(o.id, unittest.equals('foo')); | 9829 unittest.expect(o.id, unittest.equals('foo')); |
| 9762 checkUnnamed2423(o.items); | 9830 checkUnnamed2444(o.items); |
| 9763 unittest.expect(o.kind, unittest.equals('foo')); | 9831 unittest.expect(o.kind, unittest.equals('foo')); |
| 9764 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9832 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9765 unittest.expect(o.selfLink, unittest.equals('foo')); | 9833 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9766 } | 9834 } |
| 9767 buildCounterVpnTunnelList--; | 9835 buildCounterVpnTunnelList--; |
| 9768 } | 9836 } |
| 9769 | 9837 |
| 9770 buildUnnamed2424() { | 9838 buildUnnamed2445() { |
| 9771 var o = new core.List<api.VpnTunnel>(); | 9839 var o = new core.List<api.VpnTunnel>(); |
| 9772 o.add(buildVpnTunnel()); | 9840 o.add(buildVpnTunnel()); |
| 9773 o.add(buildVpnTunnel()); | 9841 o.add(buildVpnTunnel()); |
| 9774 return o; | 9842 return o; |
| 9775 } | 9843 } |
| 9776 | 9844 |
| 9777 checkUnnamed2424(core.List<api.VpnTunnel> o) { | 9845 checkUnnamed2445(core.List<api.VpnTunnel> o) { |
| 9778 unittest.expect(o, unittest.hasLength(2)); | 9846 unittest.expect(o, unittest.hasLength(2)); |
| 9779 checkVpnTunnel(o[0]); | 9847 checkVpnTunnel(o[0]); |
| 9780 checkVpnTunnel(o[1]); | 9848 checkVpnTunnel(o[1]); |
| 9781 } | 9849 } |
| 9782 | 9850 |
| 9783 core.int buildCounterVpnTunnelsScopedListWarningData = 0; | 9851 core.int buildCounterVpnTunnelsScopedListWarningData = 0; |
| 9784 buildVpnTunnelsScopedListWarningData() { | 9852 buildVpnTunnelsScopedListWarningData() { |
| 9785 var o = new api.VpnTunnelsScopedListWarningData(); | 9853 var o = new api.VpnTunnelsScopedListWarningData(); |
| 9786 buildCounterVpnTunnelsScopedListWarningData++; | 9854 buildCounterVpnTunnelsScopedListWarningData++; |
| 9787 if (buildCounterVpnTunnelsScopedListWarningData < 3) { | 9855 if (buildCounterVpnTunnelsScopedListWarningData < 3) { |
| 9788 o.key = "foo"; | 9856 o.key = "foo"; |
| 9789 o.value = "foo"; | 9857 o.value = "foo"; |
| 9790 } | 9858 } |
| 9791 buildCounterVpnTunnelsScopedListWarningData--; | 9859 buildCounterVpnTunnelsScopedListWarningData--; |
| 9792 return o; | 9860 return o; |
| 9793 } | 9861 } |
| 9794 | 9862 |
| 9795 checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) { | 9863 checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) { |
| 9796 buildCounterVpnTunnelsScopedListWarningData++; | 9864 buildCounterVpnTunnelsScopedListWarningData++; |
| 9797 if (buildCounterVpnTunnelsScopedListWarningData < 3) { | 9865 if (buildCounterVpnTunnelsScopedListWarningData < 3) { |
| 9798 unittest.expect(o.key, unittest.equals('foo')); | 9866 unittest.expect(o.key, unittest.equals('foo')); |
| 9799 unittest.expect(o.value, unittest.equals('foo')); | 9867 unittest.expect(o.value, unittest.equals('foo')); |
| 9800 } | 9868 } |
| 9801 buildCounterVpnTunnelsScopedListWarningData--; | 9869 buildCounterVpnTunnelsScopedListWarningData--; |
| 9802 } | 9870 } |
| 9803 | 9871 |
| 9804 buildUnnamed2425() { | 9872 buildUnnamed2446() { |
| 9805 var o = new core.List<api.VpnTunnelsScopedListWarningData>(); | 9873 var o = new core.List<api.VpnTunnelsScopedListWarningData>(); |
| 9806 o.add(buildVpnTunnelsScopedListWarningData()); | 9874 o.add(buildVpnTunnelsScopedListWarningData()); |
| 9807 o.add(buildVpnTunnelsScopedListWarningData()); | 9875 o.add(buildVpnTunnelsScopedListWarningData()); |
| 9808 return o; | 9876 return o; |
| 9809 } | 9877 } |
| 9810 | 9878 |
| 9811 checkUnnamed2425(core.List<api.VpnTunnelsScopedListWarningData> o) { | 9879 checkUnnamed2446(core.List<api.VpnTunnelsScopedListWarningData> o) { |
| 9812 unittest.expect(o, unittest.hasLength(2)); | 9880 unittest.expect(o, unittest.hasLength(2)); |
| 9813 checkVpnTunnelsScopedListWarningData(o[0]); | 9881 checkVpnTunnelsScopedListWarningData(o[0]); |
| 9814 checkVpnTunnelsScopedListWarningData(o[1]); | 9882 checkVpnTunnelsScopedListWarningData(o[1]); |
| 9815 } | 9883 } |
| 9816 | 9884 |
| 9817 core.int buildCounterVpnTunnelsScopedListWarning = 0; | 9885 core.int buildCounterVpnTunnelsScopedListWarning = 0; |
| 9818 buildVpnTunnelsScopedListWarning() { | 9886 buildVpnTunnelsScopedListWarning() { |
| 9819 var o = new api.VpnTunnelsScopedListWarning(); | 9887 var o = new api.VpnTunnelsScopedListWarning(); |
| 9820 buildCounterVpnTunnelsScopedListWarning++; | 9888 buildCounterVpnTunnelsScopedListWarning++; |
| 9821 if (buildCounterVpnTunnelsScopedListWarning < 3) { | 9889 if (buildCounterVpnTunnelsScopedListWarning < 3) { |
| 9822 o.code = "foo"; | 9890 o.code = "foo"; |
| 9823 o.data = buildUnnamed2425(); | 9891 o.data = buildUnnamed2446(); |
| 9824 o.message = "foo"; | 9892 o.message = "foo"; |
| 9825 } | 9893 } |
| 9826 buildCounterVpnTunnelsScopedListWarning--; | 9894 buildCounterVpnTunnelsScopedListWarning--; |
| 9827 return o; | 9895 return o; |
| 9828 } | 9896 } |
| 9829 | 9897 |
| 9830 checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) { | 9898 checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) { |
| 9831 buildCounterVpnTunnelsScopedListWarning++; | 9899 buildCounterVpnTunnelsScopedListWarning++; |
| 9832 if (buildCounterVpnTunnelsScopedListWarning < 3) { | 9900 if (buildCounterVpnTunnelsScopedListWarning < 3) { |
| 9833 unittest.expect(o.code, unittest.equals('foo')); | 9901 unittest.expect(o.code, unittest.equals('foo')); |
| 9834 checkUnnamed2425(o.data); | 9902 checkUnnamed2446(o.data); |
| 9835 unittest.expect(o.message, unittest.equals('foo')); | 9903 unittest.expect(o.message, unittest.equals('foo')); |
| 9836 } | 9904 } |
| 9837 buildCounterVpnTunnelsScopedListWarning--; | 9905 buildCounterVpnTunnelsScopedListWarning--; |
| 9838 } | 9906 } |
| 9839 | 9907 |
| 9840 core.int buildCounterVpnTunnelsScopedList = 0; | 9908 core.int buildCounterVpnTunnelsScopedList = 0; |
| 9841 buildVpnTunnelsScopedList() { | 9909 buildVpnTunnelsScopedList() { |
| 9842 var o = new api.VpnTunnelsScopedList(); | 9910 var o = new api.VpnTunnelsScopedList(); |
| 9843 buildCounterVpnTunnelsScopedList++; | 9911 buildCounterVpnTunnelsScopedList++; |
| 9844 if (buildCounterVpnTunnelsScopedList < 3) { | 9912 if (buildCounterVpnTunnelsScopedList < 3) { |
| 9845 o.vpnTunnels = buildUnnamed2424(); | 9913 o.vpnTunnels = buildUnnamed2445(); |
| 9846 o.warning = buildVpnTunnelsScopedListWarning(); | 9914 o.warning = buildVpnTunnelsScopedListWarning(); |
| 9847 } | 9915 } |
| 9848 buildCounterVpnTunnelsScopedList--; | 9916 buildCounterVpnTunnelsScopedList--; |
| 9849 return o; | 9917 return o; |
| 9850 } | 9918 } |
| 9851 | 9919 |
| 9852 checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { | 9920 checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { |
| 9853 buildCounterVpnTunnelsScopedList++; | 9921 buildCounterVpnTunnelsScopedList++; |
| 9854 if (buildCounterVpnTunnelsScopedList < 3) { | 9922 if (buildCounterVpnTunnelsScopedList < 3) { |
| 9855 checkUnnamed2424(o.vpnTunnels); | 9923 checkUnnamed2445(o.vpnTunnels); |
| 9856 checkVpnTunnelsScopedListWarning(o.warning); | 9924 checkVpnTunnelsScopedListWarning(o.warning); |
| 9857 } | 9925 } |
| 9858 buildCounterVpnTunnelsScopedList--; | 9926 buildCounterVpnTunnelsScopedList--; |
| 9859 } | 9927 } |
| 9860 | 9928 |
| 9861 buildUnnamed2426() { | 9929 buildUnnamed2447() { |
| 9862 var o = new core.List<api.Project>(); | 9930 var o = new core.List<api.Project>(); |
| 9863 o.add(buildProject()); | 9931 o.add(buildProject()); |
| 9864 o.add(buildProject()); | 9932 o.add(buildProject()); |
| 9865 return o; | 9933 return o; |
| 9866 } | 9934 } |
| 9867 | 9935 |
| 9868 checkUnnamed2426(core.List<api.Project> o) { | 9936 checkUnnamed2447(core.List<api.Project> o) { |
| 9869 unittest.expect(o, unittest.hasLength(2)); | 9937 unittest.expect(o, unittest.hasLength(2)); |
| 9870 checkProject(o[0]); | 9938 checkProject(o[0]); |
| 9871 checkProject(o[1]); | 9939 checkProject(o[1]); |
| 9872 } | 9940 } |
| 9873 | 9941 |
| 9874 core.int buildCounterXpnHostList = 0; | 9942 core.int buildCounterXpnHostList = 0; |
| 9875 buildXpnHostList() { | 9943 buildXpnHostList() { |
| 9876 var o = new api.XpnHostList(); | 9944 var o = new api.XpnHostList(); |
| 9877 buildCounterXpnHostList++; | 9945 buildCounterXpnHostList++; |
| 9878 if (buildCounterXpnHostList < 3) { | 9946 if (buildCounterXpnHostList < 3) { |
| 9879 o.id = "foo"; | 9947 o.id = "foo"; |
| 9880 o.items = buildUnnamed2426(); | 9948 o.items = buildUnnamed2447(); |
| 9881 o.kind = "foo"; | 9949 o.kind = "foo"; |
| 9882 o.nextPageToken = "foo"; | 9950 o.nextPageToken = "foo"; |
| 9883 o.selfLink = "foo"; | 9951 o.selfLink = "foo"; |
| 9884 } | 9952 } |
| 9885 buildCounterXpnHostList--; | 9953 buildCounterXpnHostList--; |
| 9886 return o; | 9954 return o; |
| 9887 } | 9955 } |
| 9888 | 9956 |
| 9889 checkXpnHostList(api.XpnHostList o) { | 9957 checkXpnHostList(api.XpnHostList o) { |
| 9890 buildCounterXpnHostList++; | 9958 buildCounterXpnHostList++; |
| 9891 if (buildCounterXpnHostList < 3) { | 9959 if (buildCounterXpnHostList < 3) { |
| 9892 unittest.expect(o.id, unittest.equals('foo')); | 9960 unittest.expect(o.id, unittest.equals('foo')); |
| 9893 checkUnnamed2426(o.items); | 9961 checkUnnamed2447(o.items); |
| 9894 unittest.expect(o.kind, unittest.equals('foo')); | 9962 unittest.expect(o.kind, unittest.equals('foo')); |
| 9895 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 9963 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9896 unittest.expect(o.selfLink, unittest.equals('foo')); | 9964 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9897 } | 9965 } |
| 9898 buildCounterXpnHostList--; | 9966 buildCounterXpnHostList--; |
| 9899 } | 9967 } |
| 9900 | 9968 |
| 9901 core.int buildCounterXpnResourceId = 0; | 9969 core.int buildCounterXpnResourceId = 0; |
| 9902 buildXpnResourceId() { | 9970 buildXpnResourceId() { |
| 9903 var o = new api.XpnResourceId(); | 9971 var o = new api.XpnResourceId(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9947 unittest.expect(o.id, unittest.equals('foo')); | 10015 unittest.expect(o.id, unittest.equals('foo')); |
| 9948 unittest.expect(o.kind, unittest.equals('foo')); | 10016 unittest.expect(o.kind, unittest.equals('foo')); |
| 9949 unittest.expect(o.name, unittest.equals('foo')); | 10017 unittest.expect(o.name, unittest.equals('foo')); |
| 9950 unittest.expect(o.region, unittest.equals('foo')); | 10018 unittest.expect(o.region, unittest.equals('foo')); |
| 9951 unittest.expect(o.selfLink, unittest.equals('foo')); | 10019 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9952 unittest.expect(o.status, unittest.equals('foo')); | 10020 unittest.expect(o.status, unittest.equals('foo')); |
| 9953 } | 10021 } |
| 9954 buildCounterZone--; | 10022 buildCounterZone--; |
| 9955 } | 10023 } |
| 9956 | 10024 |
| 9957 buildUnnamed2427() { | 10025 buildUnnamed2448() { |
| 9958 var o = new core.List<api.Zone>(); | 10026 var o = new core.List<api.Zone>(); |
| 9959 o.add(buildZone()); | 10027 o.add(buildZone()); |
| 9960 o.add(buildZone()); | 10028 o.add(buildZone()); |
| 9961 return o; | 10029 return o; |
| 9962 } | 10030 } |
| 9963 | 10031 |
| 9964 checkUnnamed2427(core.List<api.Zone> o) { | 10032 checkUnnamed2448(core.List<api.Zone> o) { |
| 9965 unittest.expect(o, unittest.hasLength(2)); | 10033 unittest.expect(o, unittest.hasLength(2)); |
| 9966 checkZone(o[0]); | 10034 checkZone(o[0]); |
| 9967 checkZone(o[1]); | 10035 checkZone(o[1]); |
| 9968 } | 10036 } |
| 9969 | 10037 |
| 9970 core.int buildCounterZoneList = 0; | 10038 core.int buildCounterZoneList = 0; |
| 9971 buildZoneList() { | 10039 buildZoneList() { |
| 9972 var o = new api.ZoneList(); | 10040 var o = new api.ZoneList(); |
| 9973 buildCounterZoneList++; | 10041 buildCounterZoneList++; |
| 9974 if (buildCounterZoneList < 3) { | 10042 if (buildCounterZoneList < 3) { |
| 9975 o.id = "foo"; | 10043 o.id = "foo"; |
| 9976 o.items = buildUnnamed2427(); | 10044 o.items = buildUnnamed2448(); |
| 9977 o.kind = "foo"; | 10045 o.kind = "foo"; |
| 9978 o.nextPageToken = "foo"; | 10046 o.nextPageToken = "foo"; |
| 9979 o.selfLink = "foo"; | 10047 o.selfLink = "foo"; |
| 9980 } | 10048 } |
| 9981 buildCounterZoneList--; | 10049 buildCounterZoneList--; |
| 9982 return o; | 10050 return o; |
| 9983 } | 10051 } |
| 9984 | 10052 |
| 9985 checkZoneList(api.ZoneList o) { | 10053 checkZoneList(api.ZoneList o) { |
| 9986 buildCounterZoneList++; | 10054 buildCounterZoneList++; |
| 9987 if (buildCounterZoneList < 3) { | 10055 if (buildCounterZoneList < 3) { |
| 9988 unittest.expect(o.id, unittest.equals('foo')); | 10056 unittest.expect(o.id, unittest.equals('foo')); |
| 9989 checkUnnamed2427(o.items); | 10057 checkUnnamed2448(o.items); |
| 9990 unittest.expect(o.kind, unittest.equals('foo')); | 10058 unittest.expect(o.kind, unittest.equals('foo')); |
| 9991 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 10059 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 9992 unittest.expect(o.selfLink, unittest.equals('foo')); | 10060 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 9993 } | 10061 } |
| 9994 buildCounterZoneList--; | 10062 buildCounterZoneList--; |
| 9995 } | 10063 } |
| 9996 | 10064 |
| 9997 buildUnnamed2428() { | 10065 buildUnnamed2449() { |
| 9998 var o = new core.Map<core.String, core.String>(); | 10066 var o = new core.Map<core.String, core.String>(); |
| 9999 o["x"] = "foo"; | 10067 o["x"] = "foo"; |
| 10000 o["y"] = "foo"; | 10068 o["y"] = "foo"; |
| 10001 return o; | 10069 return o; |
| 10002 } | 10070 } |
| 10003 | 10071 |
| 10004 checkUnnamed2428(core.Map<core.String, core.String> o) { | 10072 checkUnnamed2449(core.Map<core.String, core.String> o) { |
| 10005 unittest.expect(o, unittest.hasLength(2)); | 10073 unittest.expect(o, unittest.hasLength(2)); |
| 10006 unittest.expect(o["x"], unittest.equals('foo')); | 10074 unittest.expect(o["x"], unittest.equals('foo')); |
| 10007 unittest.expect(o["y"], unittest.equals('foo')); | 10075 unittest.expect(o["y"], unittest.equals('foo')); |
| 10008 } | 10076 } |
| 10009 | 10077 |
| 10010 core.int buildCounterZoneSetLabelsRequest = 0; | 10078 core.int buildCounterZoneSetLabelsRequest = 0; |
| 10011 buildZoneSetLabelsRequest() { | 10079 buildZoneSetLabelsRequest() { |
| 10012 var o = new api.ZoneSetLabelsRequest(); | 10080 var o = new api.ZoneSetLabelsRequest(); |
| 10013 buildCounterZoneSetLabelsRequest++; | 10081 buildCounterZoneSetLabelsRequest++; |
| 10014 if (buildCounterZoneSetLabelsRequest < 3) { | 10082 if (buildCounterZoneSetLabelsRequest < 3) { |
| 10015 o.labelFingerprint = "foo"; | 10083 o.labelFingerprint = "foo"; |
| 10016 o.labels = buildUnnamed2428(); | 10084 o.labels = buildUnnamed2449(); |
| 10017 } | 10085 } |
| 10018 buildCounterZoneSetLabelsRequest--; | 10086 buildCounterZoneSetLabelsRequest--; |
| 10019 return o; | 10087 return o; |
| 10020 } | 10088 } |
| 10021 | 10089 |
| 10022 checkZoneSetLabelsRequest(api.ZoneSetLabelsRequest o) { | 10090 checkZoneSetLabelsRequest(api.ZoneSetLabelsRequest o) { |
| 10023 buildCounterZoneSetLabelsRequest++; | 10091 buildCounterZoneSetLabelsRequest++; |
| 10024 if (buildCounterZoneSetLabelsRequest < 3) { | 10092 if (buildCounterZoneSetLabelsRequest < 3) { |
| 10025 unittest.expect(o.labelFingerprint, unittest.equals('foo')); | 10093 unittest.expect(o.labelFingerprint, unittest.equals('foo')); |
| 10026 checkUnnamed2428(o.labels); | 10094 checkUnnamed2449(o.labels); |
| 10027 } | 10095 } |
| 10028 buildCounterZoneSetLabelsRequest--; | 10096 buildCounterZoneSetLabelsRequest--; |
| 10029 } | 10097 } |
| 10030 | 10098 |
| 10031 | 10099 |
| 10032 main() { | 10100 main() { |
| 10033 unittest.group("obj-schema-AcceleratorConfig", () { | 10101 unittest.group("obj-schema-AcceleratorConfig", () { |
| 10034 unittest.test("to-json--from-json", () { | 10102 unittest.test("to-json--from-json", () { |
| 10035 var o = buildAcceleratorConfig(); | 10103 var o = buildAcceleratorConfig(); |
| 10036 var od = new api.AcceleratorConfig.fromJson(o.toJson()); | 10104 var od = new api.AcceleratorConfig.fromJson(o.toJson()); |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10626 | 10694 |
| 10627 unittest.group("obj-schema-FirewallAllowed", () { | 10695 unittest.group("obj-schema-FirewallAllowed", () { |
| 10628 unittest.test("to-json--from-json", () { | 10696 unittest.test("to-json--from-json", () { |
| 10629 var o = buildFirewallAllowed(); | 10697 var o = buildFirewallAllowed(); |
| 10630 var od = new api.FirewallAllowed.fromJson(o.toJson()); | 10698 var od = new api.FirewallAllowed.fromJson(o.toJson()); |
| 10631 checkFirewallAllowed(od); | 10699 checkFirewallAllowed(od); |
| 10632 }); | 10700 }); |
| 10633 }); | 10701 }); |
| 10634 | 10702 |
| 10635 | 10703 |
| 10704 unittest.group("obj-schema-FirewallDenied", () { |
| 10705 unittest.test("to-json--from-json", () { |
| 10706 var o = buildFirewallDenied(); |
| 10707 var od = new api.FirewallDenied.fromJson(o.toJson()); |
| 10708 checkFirewallDenied(od); |
| 10709 }); |
| 10710 }); |
| 10711 |
| 10712 |
| 10636 unittest.group("obj-schema-Firewall", () { | 10713 unittest.group("obj-schema-Firewall", () { |
| 10637 unittest.test("to-json--from-json", () { | 10714 unittest.test("to-json--from-json", () { |
| 10638 var o = buildFirewall(); | 10715 var o = buildFirewall(); |
| 10639 var od = new api.Firewall.fromJson(o.toJson()); | 10716 var od = new api.Firewall.fromJson(o.toJson()); |
| 10640 checkFirewall(od); | 10717 checkFirewall(od); |
| 10641 }); | 10718 }); |
| 10642 }); | 10719 }); |
| 10643 | 10720 |
| 10644 | 10721 |
| 10645 unittest.group("obj-schema-FirewallList", () { | 10722 unittest.group("obj-schema-FirewallList", () { |
| (...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12759 }))); | 12836 }))); |
| 12760 }); | 12837 }); |
| 12761 | 12838 |
| 12762 unittest.test("method--delete", () { | 12839 unittest.test("method--delete", () { |
| 12763 | 12840 |
| 12764 var mock = new HttpServerMock(); | 12841 var mock = new HttpServerMock(); |
| 12765 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12842 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 12766 var arg_project = "foo"; | 12843 var arg_project = "foo"; |
| 12767 var arg_region = "foo"; | 12844 var arg_region = "foo"; |
| 12768 var arg_address = "foo"; | 12845 var arg_address = "foo"; |
| 12846 var arg_requestId = "foo"; |
| 12769 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 12847 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 12770 var path = (req.url).path; | 12848 var path = (req.url).path; |
| 12771 var pathOffset = 0; | 12849 var pathOffset = 0; |
| 12772 var index; | 12850 var index; |
| 12773 var subPart; | 12851 var subPart; |
| 12774 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12852 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12775 pathOffset += 1; | 12853 pathOffset += 1; |
| 12776 | 12854 |
| 12777 var query = (req.url).query; | 12855 var query = (req.url).query; |
| 12778 var queryOffset = 0; | 12856 var queryOffset = 0; |
| 12779 var queryMap = {}; | 12857 var queryMap = {}; |
| 12780 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12858 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12781 parseBool(n) { | 12859 parseBool(n) { |
| 12782 if (n == "true") return true; | 12860 if (n == "true") return true; |
| 12783 if (n == "false") return false; | 12861 if (n == "false") return false; |
| 12784 if (n == null) return null; | 12862 if (n == null) return null; |
| 12785 throw new core.ArgumentError("Invalid boolean: $n"); | 12863 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12786 } | 12864 } |
| 12787 if (query.length > 0) { | 12865 if (query.length > 0) { |
| 12788 for (var part in query.split("&")) { | 12866 for (var part in query.split("&")) { |
| 12789 var keyvalue = part.split("="); | 12867 var keyvalue = part.split("="); |
| 12790 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12868 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12791 } | 12869 } |
| 12792 } | 12870 } |
| 12871 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 12793 | 12872 |
| 12794 | 12873 |
| 12795 var h = { | 12874 var h = { |
| 12796 "content-type" : "application/json; charset=utf-8", | 12875 "content-type" : "application/json; charset=utf-8", |
| 12797 }; | 12876 }; |
| 12798 var resp = convert.JSON.encode(buildOperation()); | 12877 var resp = convert.JSON.encode(buildOperation()); |
| 12799 return new async.Future.value(stringResponse(200, h, resp)); | 12878 return new async.Future.value(stringResponse(200, h, resp)); |
| 12800 }), true); | 12879 }), true); |
| 12801 res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync
1(((api.Operation response) { | 12880 res.delete(arg_project, arg_region, arg_address, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 12802 checkOperation(response); | 12881 checkOperation(response); |
| 12803 }))); | 12882 }))); |
| 12804 }); | 12883 }); |
| 12805 | 12884 |
| 12806 unittest.test("method--get", () { | 12885 unittest.test("method--get", () { |
| 12807 | 12886 |
| 12808 var mock = new HttpServerMock(); | 12887 var mock = new HttpServerMock(); |
| 12809 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12888 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 12810 var arg_project = "foo"; | 12889 var arg_project = "foo"; |
| 12811 var arg_region = "foo"; | 12890 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12847 }))); | 12926 }))); |
| 12848 }); | 12927 }); |
| 12849 | 12928 |
| 12850 unittest.test("method--insert", () { | 12929 unittest.test("method--insert", () { |
| 12851 | 12930 |
| 12852 var mock = new HttpServerMock(); | 12931 var mock = new HttpServerMock(); |
| 12853 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12932 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 12854 var arg_request = buildAddress(); | 12933 var arg_request = buildAddress(); |
| 12855 var arg_project = "foo"; | 12934 var arg_project = "foo"; |
| 12856 var arg_region = "foo"; | 12935 var arg_region = "foo"; |
| 12936 var arg_requestId = "foo"; |
| 12857 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 12937 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 12858 var obj = new api.Address.fromJson(json); | 12938 var obj = new api.Address.fromJson(json); |
| 12859 checkAddress(obj); | 12939 checkAddress(obj); |
| 12860 | 12940 |
| 12861 var path = (req.url).path; | 12941 var path = (req.url).path; |
| 12862 var pathOffset = 0; | 12942 var pathOffset = 0; |
| 12863 var index; | 12943 var index; |
| 12864 var subPart; | 12944 var subPart; |
| 12865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12866 pathOffset += 1; | 12946 pathOffset += 1; |
| 12867 | 12947 |
| 12868 var query = (req.url).query; | 12948 var query = (req.url).query; |
| 12869 var queryOffset = 0; | 12949 var queryOffset = 0; |
| 12870 var queryMap = {}; | 12950 var queryMap = {}; |
| 12871 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 12951 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12872 parseBool(n) { | 12952 parseBool(n) { |
| 12873 if (n == "true") return true; | 12953 if (n == "true") return true; |
| 12874 if (n == "false") return false; | 12954 if (n == "false") return false; |
| 12875 if (n == null) return null; | 12955 if (n == null) return null; |
| 12876 throw new core.ArgumentError("Invalid boolean: $n"); | 12956 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12877 } | 12957 } |
| 12878 if (query.length > 0) { | 12958 if (query.length > 0) { |
| 12879 for (var part in query.split("&")) { | 12959 for (var part in query.split("&")) { |
| 12880 var keyvalue = part.split("="); | 12960 var keyvalue = part.split("="); |
| 12881 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12961 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12882 } | 12962 } |
| 12883 } | 12963 } |
| 12964 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 12884 | 12965 |
| 12885 | 12966 |
| 12886 var h = { | 12967 var h = { |
| 12887 "content-type" : "application/json; charset=utf-8", | 12968 "content-type" : "application/json; charset=utf-8", |
| 12888 }; | 12969 }; |
| 12889 var resp = convert.JSON.encode(buildOperation()); | 12970 var resp = convert.JSON.encode(buildOperation()); |
| 12890 return new async.Future.value(stringResponse(200, h, resp)); | 12971 return new async.Future.value(stringResponse(200, h, resp)); |
| 12891 }), true); | 12972 }), true); |
| 12892 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 12973 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 12893 checkOperation(response); | 12974 checkOperation(response); |
| 12894 }))); | 12975 }))); |
| 12895 }); | 12976 }); |
| 12896 | 12977 |
| 12897 unittest.test("method--list", () { | 12978 unittest.test("method--list", () { |
| 12898 | 12979 |
| 12899 var mock = new HttpServerMock(); | 12980 var mock = new HttpServerMock(); |
| 12900 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 12981 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 12901 var arg_project = "foo"; | 12982 var arg_project = "foo"; |
| 12902 var arg_region = "foo"; | 12983 var arg_region = "foo"; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12999 }))); | 13080 }))); |
| 13000 }); | 13081 }); |
| 13001 | 13082 |
| 13002 unittest.test("method--delete", () { | 13083 unittest.test("method--delete", () { |
| 13003 | 13084 |
| 13004 var mock = new HttpServerMock(); | 13085 var mock = new HttpServerMock(); |
| 13005 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 13086 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 13006 var arg_project = "foo"; | 13087 var arg_project = "foo"; |
| 13007 var arg_zone = "foo"; | 13088 var arg_zone = "foo"; |
| 13008 var arg_autoscaler = "foo"; | 13089 var arg_autoscaler = "foo"; |
| 13090 var arg_requestId = "foo"; |
| 13009 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13091 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13010 var path = (req.url).path; | 13092 var path = (req.url).path; |
| 13011 var pathOffset = 0; | 13093 var pathOffset = 0; |
| 13012 var index; | 13094 var index; |
| 13013 var subPart; | 13095 var subPart; |
| 13014 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13096 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13015 pathOffset += 1; | 13097 pathOffset += 1; |
| 13016 | 13098 |
| 13017 var query = (req.url).query; | 13099 var query = (req.url).query; |
| 13018 var queryOffset = 0; | 13100 var queryOffset = 0; |
| 13019 var queryMap = {}; | 13101 var queryMap = {}; |
| 13020 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13102 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13021 parseBool(n) { | 13103 parseBool(n) { |
| 13022 if (n == "true") return true; | 13104 if (n == "true") return true; |
| 13023 if (n == "false") return false; | 13105 if (n == "false") return false; |
| 13024 if (n == null) return null; | 13106 if (n == null) return null; |
| 13025 throw new core.ArgumentError("Invalid boolean: $n"); | 13107 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13026 } | 13108 } |
| 13027 if (query.length > 0) { | 13109 if (query.length > 0) { |
| 13028 for (var part in query.split("&")) { | 13110 for (var part in query.split("&")) { |
| 13029 var keyvalue = part.split("="); | 13111 var keyvalue = part.split("="); |
| 13030 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13112 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13031 } | 13113 } |
| 13032 } | 13114 } |
| 13115 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13033 | 13116 |
| 13034 | 13117 |
| 13035 var h = { | 13118 var h = { |
| 13036 "content-type" : "application/json; charset=utf-8", | 13119 "content-type" : "application/json; charset=utf-8", |
| 13037 }; | 13120 }; |
| 13038 var resp = convert.JSON.encode(buildOperation()); | 13121 var resp = convert.JSON.encode(buildOperation()); |
| 13039 return new async.Future.value(stringResponse(200, h, resp)); | 13122 return new async.Future.value(stringResponse(200, h, resp)); |
| 13040 }), true); | 13123 }), true); |
| 13041 res.delete(arg_project, arg_zone, arg_autoscaler).then(unittest.expectAsyn
c1(((api.Operation response) { | 13124 res.delete(arg_project, arg_zone, arg_autoscaler, requestId: arg_requestId
).then(unittest.expectAsync1(((api.Operation response) { |
| 13042 checkOperation(response); | 13125 checkOperation(response); |
| 13043 }))); | 13126 }))); |
| 13044 }); | 13127 }); |
| 13045 | 13128 |
| 13046 unittest.test("method--get", () { | 13129 unittest.test("method--get", () { |
| 13047 | 13130 |
| 13048 var mock = new HttpServerMock(); | 13131 var mock = new HttpServerMock(); |
| 13049 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 13132 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 13050 var arg_project = "foo"; | 13133 var arg_project = "foo"; |
| 13051 var arg_zone = "foo"; | 13134 var arg_zone = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13087 }))); | 13170 }))); |
| 13088 }); | 13171 }); |
| 13089 | 13172 |
| 13090 unittest.test("method--insert", () { | 13173 unittest.test("method--insert", () { |
| 13091 | 13174 |
| 13092 var mock = new HttpServerMock(); | 13175 var mock = new HttpServerMock(); |
| 13093 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 13176 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 13094 var arg_request = buildAutoscaler(); | 13177 var arg_request = buildAutoscaler(); |
| 13095 var arg_project = "foo"; | 13178 var arg_project = "foo"; |
| 13096 var arg_zone = "foo"; | 13179 var arg_zone = "foo"; |
| 13180 var arg_requestId = "foo"; |
| 13097 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13181 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13098 var obj = new api.Autoscaler.fromJson(json); | 13182 var obj = new api.Autoscaler.fromJson(json); |
| 13099 checkAutoscaler(obj); | 13183 checkAutoscaler(obj); |
| 13100 | 13184 |
| 13101 var path = (req.url).path; | 13185 var path = (req.url).path; |
| 13102 var pathOffset = 0; | 13186 var pathOffset = 0; |
| 13103 var index; | 13187 var index; |
| 13104 var subPart; | 13188 var subPart; |
| 13105 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13189 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13106 pathOffset += 1; | 13190 pathOffset += 1; |
| 13107 | 13191 |
| 13108 var query = (req.url).query; | 13192 var query = (req.url).query; |
| 13109 var queryOffset = 0; | 13193 var queryOffset = 0; |
| 13110 var queryMap = {}; | 13194 var queryMap = {}; |
| 13111 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13112 parseBool(n) { | 13196 parseBool(n) { |
| 13113 if (n == "true") return true; | 13197 if (n == "true") return true; |
| 13114 if (n == "false") return false; | 13198 if (n == "false") return false; |
| 13115 if (n == null) return null; | 13199 if (n == null) return null; |
| 13116 throw new core.ArgumentError("Invalid boolean: $n"); | 13200 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13117 } | 13201 } |
| 13118 if (query.length > 0) { | 13202 if (query.length > 0) { |
| 13119 for (var part in query.split("&")) { | 13203 for (var part in query.split("&")) { |
| 13120 var keyvalue = part.split("="); | 13204 var keyvalue = part.split("="); |
| 13121 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13205 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13122 } | 13206 } |
| 13123 } | 13207 } |
| 13208 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13124 | 13209 |
| 13125 | 13210 |
| 13126 var h = { | 13211 var h = { |
| 13127 "content-type" : "application/json; charset=utf-8", | 13212 "content-type" : "application/json; charset=utf-8", |
| 13128 }; | 13213 }; |
| 13129 var resp = convert.JSON.encode(buildOperation()); | 13214 var resp = convert.JSON.encode(buildOperation()); |
| 13130 return new async.Future.value(stringResponse(200, h, resp)); | 13215 return new async.Future.value(stringResponse(200, h, resp)); |
| 13131 }), true); | 13216 }), true); |
| 13132 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(
((api.Operation response) { | 13217 res.insert(arg_request, arg_project, arg_zone, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 13133 checkOperation(response); | 13218 checkOperation(response); |
| 13134 }))); | 13219 }))); |
| 13135 }); | 13220 }); |
| 13136 | 13221 |
| 13137 unittest.test("method--list", () { | 13222 unittest.test("method--list", () { |
| 13138 | 13223 |
| 13139 var mock = new HttpServerMock(); | 13224 var mock = new HttpServerMock(); |
| 13140 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 13225 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 13141 var arg_project = "foo"; | 13226 var arg_project = "foo"; |
| 13142 var arg_zone = "foo"; | 13227 var arg_zone = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13186 }); | 13271 }); |
| 13187 | 13272 |
| 13188 unittest.test("method--patch", () { | 13273 unittest.test("method--patch", () { |
| 13189 | 13274 |
| 13190 var mock = new HttpServerMock(); | 13275 var mock = new HttpServerMock(); |
| 13191 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 13276 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 13192 var arg_request = buildAutoscaler(); | 13277 var arg_request = buildAutoscaler(); |
| 13193 var arg_project = "foo"; | 13278 var arg_project = "foo"; |
| 13194 var arg_zone = "foo"; | 13279 var arg_zone = "foo"; |
| 13195 var arg_autoscaler = "foo"; | 13280 var arg_autoscaler = "foo"; |
| 13281 var arg_requestId = "foo"; |
| 13196 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13282 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13197 var obj = new api.Autoscaler.fromJson(json); | 13283 var obj = new api.Autoscaler.fromJson(json); |
| 13198 checkAutoscaler(obj); | 13284 checkAutoscaler(obj); |
| 13199 | 13285 |
| 13200 var path = (req.url).path; | 13286 var path = (req.url).path; |
| 13201 var pathOffset = 0; | 13287 var pathOffset = 0; |
| 13202 var index; | 13288 var index; |
| 13203 var subPart; | 13289 var subPart; |
| 13204 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13290 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13205 pathOffset += 1; | 13291 pathOffset += 1; |
| 13206 | 13292 |
| 13207 var query = (req.url).query; | 13293 var query = (req.url).query; |
| 13208 var queryOffset = 0; | 13294 var queryOffset = 0; |
| 13209 var queryMap = {}; | 13295 var queryMap = {}; |
| 13210 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13296 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13211 parseBool(n) { | 13297 parseBool(n) { |
| 13212 if (n == "true") return true; | 13298 if (n == "true") return true; |
| 13213 if (n == "false") return false; | 13299 if (n == "false") return false; |
| 13214 if (n == null) return null; | 13300 if (n == null) return null; |
| 13215 throw new core.ArgumentError("Invalid boolean: $n"); | 13301 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13216 } | 13302 } |
| 13217 if (query.length > 0) { | 13303 if (query.length > 0) { |
| 13218 for (var part in query.split("&")) { | 13304 for (var part in query.split("&")) { |
| 13219 var keyvalue = part.split("="); | 13305 var keyvalue = part.split("="); |
| 13220 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13306 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13221 } | 13307 } |
| 13222 } | 13308 } |
| 13223 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); | 13309 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
| 13310 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13224 | 13311 |
| 13225 | 13312 |
| 13226 var h = { | 13313 var h = { |
| 13227 "content-type" : "application/json; charset=utf-8", | 13314 "content-type" : "application/json; charset=utf-8", |
| 13228 }; | 13315 }; |
| 13229 var resp = convert.JSON.encode(buildOperation()); | 13316 var resp = convert.JSON.encode(buildOperation()); |
| 13230 return new async.Future.value(stringResponse(200, h, resp)); | 13317 return new async.Future.value(stringResponse(200, h, resp)); |
| 13231 }), true); | 13318 }), true); |
| 13232 res.patch(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler).
then(unittest.expectAsync1(((api.Operation response) { | 13319 res.patch(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler,
requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 13233 checkOperation(response); | 13320 checkOperation(response); |
| 13234 }))); | 13321 }))); |
| 13235 }); | 13322 }); |
| 13236 | 13323 |
| 13237 unittest.test("method--update", () { | 13324 unittest.test("method--update", () { |
| 13238 | 13325 |
| 13239 var mock = new HttpServerMock(); | 13326 var mock = new HttpServerMock(); |
| 13240 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; | 13327 api.AutoscalersResourceApi res = new api.ComputeApi(mock).autoscalers; |
| 13241 var arg_request = buildAutoscaler(); | 13328 var arg_request = buildAutoscaler(); |
| 13242 var arg_project = "foo"; | 13329 var arg_project = "foo"; |
| 13243 var arg_zone = "foo"; | 13330 var arg_zone = "foo"; |
| 13244 var arg_autoscaler = "foo"; | 13331 var arg_autoscaler = "foo"; |
| 13332 var arg_requestId = "foo"; |
| 13245 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13333 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13246 var obj = new api.Autoscaler.fromJson(json); | 13334 var obj = new api.Autoscaler.fromJson(json); |
| 13247 checkAutoscaler(obj); | 13335 checkAutoscaler(obj); |
| 13248 | 13336 |
| 13249 var path = (req.url).path; | 13337 var path = (req.url).path; |
| 13250 var pathOffset = 0; | 13338 var pathOffset = 0; |
| 13251 var index; | 13339 var index; |
| 13252 var subPart; | 13340 var subPart; |
| 13253 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13341 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13254 pathOffset += 1; | 13342 pathOffset += 1; |
| 13255 | 13343 |
| 13256 var query = (req.url).query; | 13344 var query = (req.url).query; |
| 13257 var queryOffset = 0; | 13345 var queryOffset = 0; |
| 13258 var queryMap = {}; | 13346 var queryMap = {}; |
| 13259 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13347 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13260 parseBool(n) { | 13348 parseBool(n) { |
| 13261 if (n == "true") return true; | 13349 if (n == "true") return true; |
| 13262 if (n == "false") return false; | 13350 if (n == "false") return false; |
| 13263 if (n == null) return null; | 13351 if (n == null) return null; |
| 13264 throw new core.ArgumentError("Invalid boolean: $n"); | 13352 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13265 } | 13353 } |
| 13266 if (query.length > 0) { | 13354 if (query.length > 0) { |
| 13267 for (var part in query.split("&")) { | 13355 for (var part in query.split("&")) { |
| 13268 var keyvalue = part.split("="); | 13356 var keyvalue = part.split("="); |
| 13269 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13357 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13270 } | 13358 } |
| 13271 } | 13359 } |
| 13272 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); | 13360 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
| 13361 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13273 | 13362 |
| 13274 | 13363 |
| 13275 var h = { | 13364 var h = { |
| 13276 "content-type" : "application/json; charset=utf-8", | 13365 "content-type" : "application/json; charset=utf-8", |
| 13277 }; | 13366 }; |
| 13278 var resp = convert.JSON.encode(buildOperation()); | 13367 var resp = convert.JSON.encode(buildOperation()); |
| 13279 return new async.Future.value(stringResponse(200, h, resp)); | 13368 return new async.Future.value(stringResponse(200, h, resp)); |
| 13280 }), true); | 13369 }), true); |
| 13281 res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler)
.then(unittest.expectAsync1(((api.Operation response) { | 13370 res.update(arg_request, arg_project, arg_zone, autoscaler: arg_autoscaler,
requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response)
{ |
| 13282 checkOperation(response); | 13371 checkOperation(response); |
| 13283 }))); | 13372 }))); |
| 13284 }); | 13373 }); |
| 13285 | 13374 |
| 13286 }); | 13375 }); |
| 13287 | 13376 |
| 13288 | 13377 |
| 13289 unittest.group("resource-BackendBucketsResourceApi", () { | 13378 unittest.group("resource-BackendBucketsResourceApi", () { |
| 13290 unittest.test("method--delete", () { | 13379 unittest.test("method--delete", () { |
| 13291 | 13380 |
| 13292 var mock = new HttpServerMock(); | 13381 var mock = new HttpServerMock(); |
| 13293 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; | 13382 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; |
| 13294 var arg_project = "foo"; | 13383 var arg_project = "foo"; |
| 13295 var arg_backendBucket = "foo"; | 13384 var arg_backendBucket = "foo"; |
| 13385 var arg_requestId = "foo"; |
| 13296 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13386 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13297 var path = (req.url).path; | 13387 var path = (req.url).path; |
| 13298 var pathOffset = 0; | 13388 var pathOffset = 0; |
| 13299 var index; | 13389 var index; |
| 13300 var subPart; | 13390 var subPart; |
| 13301 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13391 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13302 pathOffset += 1; | 13392 pathOffset += 1; |
| 13303 | 13393 |
| 13304 var query = (req.url).query; | 13394 var query = (req.url).query; |
| 13305 var queryOffset = 0; | 13395 var queryOffset = 0; |
| 13306 var queryMap = {}; | 13396 var queryMap = {}; |
| 13307 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13397 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13308 parseBool(n) { | 13398 parseBool(n) { |
| 13309 if (n == "true") return true; | 13399 if (n == "true") return true; |
| 13310 if (n == "false") return false; | 13400 if (n == "false") return false; |
| 13311 if (n == null) return null; | 13401 if (n == null) return null; |
| 13312 throw new core.ArgumentError("Invalid boolean: $n"); | 13402 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13313 } | 13403 } |
| 13314 if (query.length > 0) { | 13404 if (query.length > 0) { |
| 13315 for (var part in query.split("&")) { | 13405 for (var part in query.split("&")) { |
| 13316 var keyvalue = part.split("="); | 13406 var keyvalue = part.split("="); |
| 13317 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13407 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13318 } | 13408 } |
| 13319 } | 13409 } |
| 13410 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13320 | 13411 |
| 13321 | 13412 |
| 13322 var h = { | 13413 var h = { |
| 13323 "content-type" : "application/json; charset=utf-8", | 13414 "content-type" : "application/json; charset=utf-8", |
| 13324 }; | 13415 }; |
| 13325 var resp = convert.JSON.encode(buildOperation()); | 13416 var resp = convert.JSON.encode(buildOperation()); |
| 13326 return new async.Future.value(stringResponse(200, h, resp)); | 13417 return new async.Future.value(stringResponse(200, h, resp)); |
| 13327 }), true); | 13418 }), true); |
| 13328 res.delete(arg_project, arg_backendBucket).then(unittest.expectAsync1(((ap
i.Operation response) { | 13419 res.delete(arg_project, arg_backendBucket, requestId: arg_requestId).then(
unittest.expectAsync1(((api.Operation response) { |
| 13329 checkOperation(response); | 13420 checkOperation(response); |
| 13330 }))); | 13421 }))); |
| 13331 }); | 13422 }); |
| 13332 | 13423 |
| 13333 unittest.test("method--get", () { | 13424 unittest.test("method--get", () { |
| 13334 | 13425 |
| 13335 var mock = new HttpServerMock(); | 13426 var mock = new HttpServerMock(); |
| 13336 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; | 13427 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; |
| 13337 var arg_project = "foo"; | 13428 var arg_project = "foo"; |
| 13338 var arg_backendBucket = "foo"; | 13429 var arg_backendBucket = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13372 checkBackendBucket(response); | 13463 checkBackendBucket(response); |
| 13373 }))); | 13464 }))); |
| 13374 }); | 13465 }); |
| 13375 | 13466 |
| 13376 unittest.test("method--insert", () { | 13467 unittest.test("method--insert", () { |
| 13377 | 13468 |
| 13378 var mock = new HttpServerMock(); | 13469 var mock = new HttpServerMock(); |
| 13379 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; | 13470 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; |
| 13380 var arg_request = buildBackendBucket(); | 13471 var arg_request = buildBackendBucket(); |
| 13381 var arg_project = "foo"; | 13472 var arg_project = "foo"; |
| 13473 var arg_requestId = "foo"; |
| 13382 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13474 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13383 var obj = new api.BackendBucket.fromJson(json); | 13475 var obj = new api.BackendBucket.fromJson(json); |
| 13384 checkBackendBucket(obj); | 13476 checkBackendBucket(obj); |
| 13385 | 13477 |
| 13386 var path = (req.url).path; | 13478 var path = (req.url).path; |
| 13387 var pathOffset = 0; | 13479 var pathOffset = 0; |
| 13388 var index; | 13480 var index; |
| 13389 var subPart; | 13481 var subPart; |
| 13390 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13482 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13391 pathOffset += 1; | 13483 pathOffset += 1; |
| 13392 | 13484 |
| 13393 var query = (req.url).query; | 13485 var query = (req.url).query; |
| 13394 var queryOffset = 0; | 13486 var queryOffset = 0; |
| 13395 var queryMap = {}; | 13487 var queryMap = {}; |
| 13396 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13488 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13397 parseBool(n) { | 13489 parseBool(n) { |
| 13398 if (n == "true") return true; | 13490 if (n == "true") return true; |
| 13399 if (n == "false") return false; | 13491 if (n == "false") return false; |
| 13400 if (n == null) return null; | 13492 if (n == null) return null; |
| 13401 throw new core.ArgumentError("Invalid boolean: $n"); | 13493 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13402 } | 13494 } |
| 13403 if (query.length > 0) { | 13495 if (query.length > 0) { |
| 13404 for (var part in query.split("&")) { | 13496 for (var part in query.split("&")) { |
| 13405 var keyvalue = part.split("="); | 13497 var keyvalue = part.split("="); |
| 13406 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13498 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13407 } | 13499 } |
| 13408 } | 13500 } |
| 13501 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13409 | 13502 |
| 13410 | 13503 |
| 13411 var h = { | 13504 var h = { |
| 13412 "content-type" : "application/json; charset=utf-8", | 13505 "content-type" : "application/json; charset=utf-8", |
| 13413 }; | 13506 }; |
| 13414 var resp = convert.JSON.encode(buildOperation()); | 13507 var resp = convert.JSON.encode(buildOperation()); |
| 13415 return new async.Future.value(stringResponse(200, h, resp)); | 13508 return new async.Future.value(stringResponse(200, h, resp)); |
| 13416 }), true); | 13509 }), true); |
| 13417 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 13510 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 13418 checkOperation(response); | 13511 checkOperation(response); |
| 13419 }))); | 13512 }))); |
| 13420 }); | 13513 }); |
| 13421 | 13514 |
| 13422 unittest.test("method--list", () { | 13515 unittest.test("method--list", () { |
| 13423 | 13516 |
| 13424 var mock = new HttpServerMock(); | 13517 var mock = new HttpServerMock(); |
| 13425 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; | 13518 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; |
| 13426 var arg_project = "foo"; | 13519 var arg_project = "foo"; |
| 13427 var arg_filter = "foo"; | 13520 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13469 }))); | 13562 }))); |
| 13470 }); | 13563 }); |
| 13471 | 13564 |
| 13472 unittest.test("method--patch", () { | 13565 unittest.test("method--patch", () { |
| 13473 | 13566 |
| 13474 var mock = new HttpServerMock(); | 13567 var mock = new HttpServerMock(); |
| 13475 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; | 13568 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; |
| 13476 var arg_request = buildBackendBucket(); | 13569 var arg_request = buildBackendBucket(); |
| 13477 var arg_project = "foo"; | 13570 var arg_project = "foo"; |
| 13478 var arg_backendBucket = "foo"; | 13571 var arg_backendBucket = "foo"; |
| 13572 var arg_requestId = "foo"; |
| 13479 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13573 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13480 var obj = new api.BackendBucket.fromJson(json); | 13574 var obj = new api.BackendBucket.fromJson(json); |
| 13481 checkBackendBucket(obj); | 13575 checkBackendBucket(obj); |
| 13482 | 13576 |
| 13483 var path = (req.url).path; | 13577 var path = (req.url).path; |
| 13484 var pathOffset = 0; | 13578 var pathOffset = 0; |
| 13485 var index; | 13579 var index; |
| 13486 var subPart; | 13580 var subPart; |
| 13487 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13488 pathOffset += 1; | 13582 pathOffset += 1; |
| 13489 | 13583 |
| 13490 var query = (req.url).query; | 13584 var query = (req.url).query; |
| 13491 var queryOffset = 0; | 13585 var queryOffset = 0; |
| 13492 var queryMap = {}; | 13586 var queryMap = {}; |
| 13493 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13587 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13494 parseBool(n) { | 13588 parseBool(n) { |
| 13495 if (n == "true") return true; | 13589 if (n == "true") return true; |
| 13496 if (n == "false") return false; | 13590 if (n == "false") return false; |
| 13497 if (n == null) return null; | 13591 if (n == null) return null; |
| 13498 throw new core.ArgumentError("Invalid boolean: $n"); | 13592 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13499 } | 13593 } |
| 13500 if (query.length > 0) { | 13594 if (query.length > 0) { |
| 13501 for (var part in query.split("&")) { | 13595 for (var part in query.split("&")) { |
| 13502 var keyvalue = part.split("="); | 13596 var keyvalue = part.split("="); |
| 13503 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13504 } | 13598 } |
| 13505 } | 13599 } |
| 13600 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13506 | 13601 |
| 13507 | 13602 |
| 13508 var h = { | 13603 var h = { |
| 13509 "content-type" : "application/json; charset=utf-8", | 13604 "content-type" : "application/json; charset=utf-8", |
| 13510 }; | 13605 }; |
| 13511 var resp = convert.JSON.encode(buildOperation()); | 13606 var resp = convert.JSON.encode(buildOperation()); |
| 13512 return new async.Future.value(stringResponse(200, h, resp)); | 13607 return new async.Future.value(stringResponse(200, h, resp)); |
| 13513 }), true); | 13608 }), true); |
| 13514 res.patch(arg_request, arg_project, arg_backendBucket).then(unittest.expec
tAsync1(((api.Operation response) { | 13609 res.patch(arg_request, arg_project, arg_backendBucket, requestId: arg_requ
estId).then(unittest.expectAsync1(((api.Operation response) { |
| 13515 checkOperation(response); | 13610 checkOperation(response); |
| 13516 }))); | 13611 }))); |
| 13517 }); | 13612 }); |
| 13518 | 13613 |
| 13519 unittest.test("method--update", () { | 13614 unittest.test("method--update", () { |
| 13520 | 13615 |
| 13521 var mock = new HttpServerMock(); | 13616 var mock = new HttpServerMock(); |
| 13522 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; | 13617 api.BackendBucketsResourceApi res = new api.ComputeApi(mock).backendBucket
s; |
| 13523 var arg_request = buildBackendBucket(); | 13618 var arg_request = buildBackendBucket(); |
| 13524 var arg_project = "foo"; | 13619 var arg_project = "foo"; |
| 13525 var arg_backendBucket = "foo"; | 13620 var arg_backendBucket = "foo"; |
| 13621 var arg_requestId = "foo"; |
| 13526 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13622 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13527 var obj = new api.BackendBucket.fromJson(json); | 13623 var obj = new api.BackendBucket.fromJson(json); |
| 13528 checkBackendBucket(obj); | 13624 checkBackendBucket(obj); |
| 13529 | 13625 |
| 13530 var path = (req.url).path; | 13626 var path = (req.url).path; |
| 13531 var pathOffset = 0; | 13627 var pathOffset = 0; |
| 13532 var index; | 13628 var index; |
| 13533 var subPart; | 13629 var subPart; |
| 13534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13630 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13535 pathOffset += 1; | 13631 pathOffset += 1; |
| 13536 | 13632 |
| 13537 var query = (req.url).query; | 13633 var query = (req.url).query; |
| 13538 var queryOffset = 0; | 13634 var queryOffset = 0; |
| 13539 var queryMap = {}; | 13635 var queryMap = {}; |
| 13540 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13636 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13541 parseBool(n) { | 13637 parseBool(n) { |
| 13542 if (n == "true") return true; | 13638 if (n == "true") return true; |
| 13543 if (n == "false") return false; | 13639 if (n == "false") return false; |
| 13544 if (n == null) return null; | 13640 if (n == null) return null; |
| 13545 throw new core.ArgumentError("Invalid boolean: $n"); | 13641 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13546 } | 13642 } |
| 13547 if (query.length > 0) { | 13643 if (query.length > 0) { |
| 13548 for (var part in query.split("&")) { | 13644 for (var part in query.split("&")) { |
| 13549 var keyvalue = part.split("="); | 13645 var keyvalue = part.split("="); |
| 13550 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13646 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13551 } | 13647 } |
| 13552 } | 13648 } |
| 13649 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13553 | 13650 |
| 13554 | 13651 |
| 13555 var h = { | 13652 var h = { |
| 13556 "content-type" : "application/json; charset=utf-8", | 13653 "content-type" : "application/json; charset=utf-8", |
| 13557 }; | 13654 }; |
| 13558 var resp = convert.JSON.encode(buildOperation()); | 13655 var resp = convert.JSON.encode(buildOperation()); |
| 13559 return new async.Future.value(stringResponse(200, h, resp)); | 13656 return new async.Future.value(stringResponse(200, h, resp)); |
| 13560 }), true); | 13657 }), true); |
| 13561 res.update(arg_request, arg_project, arg_backendBucket).then(unittest.expe
ctAsync1(((api.Operation response) { | 13658 res.update(arg_request, arg_project, arg_backendBucket, requestId: arg_req
uestId).then(unittest.expectAsync1(((api.Operation response) { |
| 13562 checkOperation(response); | 13659 checkOperation(response); |
| 13563 }))); | 13660 }))); |
| 13564 }); | 13661 }); |
| 13565 | 13662 |
| 13566 }); | 13663 }); |
| 13567 | 13664 |
| 13568 | 13665 |
| 13569 unittest.group("resource-BackendServicesResourceApi", () { | 13666 unittest.group("resource-BackendServicesResourceApi", () { |
| 13570 unittest.test("method--aggregatedList", () { | 13667 unittest.test("method--aggregatedList", () { |
| 13571 | 13668 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13616 checkBackendServiceAggregatedList(response); | 13713 checkBackendServiceAggregatedList(response); |
| 13617 }))); | 13714 }))); |
| 13618 }); | 13715 }); |
| 13619 | 13716 |
| 13620 unittest.test("method--delete", () { | 13717 unittest.test("method--delete", () { |
| 13621 | 13718 |
| 13622 var mock = new HttpServerMock(); | 13719 var mock = new HttpServerMock(); |
| 13623 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 13720 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 13624 var arg_project = "foo"; | 13721 var arg_project = "foo"; |
| 13625 var arg_backendService = "foo"; | 13722 var arg_backendService = "foo"; |
| 13723 var arg_requestId = "foo"; |
| 13626 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13724 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13627 var path = (req.url).path; | 13725 var path = (req.url).path; |
| 13628 var pathOffset = 0; | 13726 var pathOffset = 0; |
| 13629 var index; | 13727 var index; |
| 13630 var subPart; | 13728 var subPart; |
| 13631 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13632 pathOffset += 1; | 13730 pathOffset += 1; |
| 13633 | 13731 |
| 13634 var query = (req.url).query; | 13732 var query = (req.url).query; |
| 13635 var queryOffset = 0; | 13733 var queryOffset = 0; |
| 13636 var queryMap = {}; | 13734 var queryMap = {}; |
| 13637 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13735 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13638 parseBool(n) { | 13736 parseBool(n) { |
| 13639 if (n == "true") return true; | 13737 if (n == "true") return true; |
| 13640 if (n == "false") return false; | 13738 if (n == "false") return false; |
| 13641 if (n == null) return null; | 13739 if (n == null) return null; |
| 13642 throw new core.ArgumentError("Invalid boolean: $n"); | 13740 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13643 } | 13741 } |
| 13644 if (query.length > 0) { | 13742 if (query.length > 0) { |
| 13645 for (var part in query.split("&")) { | 13743 for (var part in query.split("&")) { |
| 13646 var keyvalue = part.split("="); | 13744 var keyvalue = part.split("="); |
| 13647 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13745 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13648 } | 13746 } |
| 13649 } | 13747 } |
| 13748 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13650 | 13749 |
| 13651 | 13750 |
| 13652 var h = { | 13751 var h = { |
| 13653 "content-type" : "application/json; charset=utf-8", | 13752 "content-type" : "application/json; charset=utf-8", |
| 13654 }; | 13753 }; |
| 13655 var resp = convert.JSON.encode(buildOperation()); | 13754 var resp = convert.JSON.encode(buildOperation()); |
| 13656 return new async.Future.value(stringResponse(200, h, resp)); | 13755 return new async.Future.value(stringResponse(200, h, resp)); |
| 13657 }), true); | 13756 }), true); |
| 13658 res.delete(arg_project, arg_backendService).then(unittest.expectAsync1(((a
pi.Operation response) { | 13757 res.delete(arg_project, arg_backendService, requestId: arg_requestId).then
(unittest.expectAsync1(((api.Operation response) { |
| 13659 checkOperation(response); | 13758 checkOperation(response); |
| 13660 }))); | 13759 }))); |
| 13661 }); | 13760 }); |
| 13662 | 13761 |
| 13663 unittest.test("method--get", () { | 13762 unittest.test("method--get", () { |
| 13664 | 13763 |
| 13665 var mock = new HttpServerMock(); | 13764 var mock = new HttpServerMock(); |
| 13666 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 13765 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 13667 var arg_project = "foo"; | 13766 var arg_project = "foo"; |
| 13668 var arg_backendService = "foo"; | 13767 var arg_backendService = "foo"; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13749 checkBackendServiceGroupHealth(response); | 13848 checkBackendServiceGroupHealth(response); |
| 13750 }))); | 13849 }))); |
| 13751 }); | 13850 }); |
| 13752 | 13851 |
| 13753 unittest.test("method--insert", () { | 13852 unittest.test("method--insert", () { |
| 13754 | 13853 |
| 13755 var mock = new HttpServerMock(); | 13854 var mock = new HttpServerMock(); |
| 13756 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 13855 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 13757 var arg_request = buildBackendService(); | 13856 var arg_request = buildBackendService(); |
| 13758 var arg_project = "foo"; | 13857 var arg_project = "foo"; |
| 13858 var arg_requestId = "foo"; |
| 13759 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13859 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13760 var obj = new api.BackendService.fromJson(json); | 13860 var obj = new api.BackendService.fromJson(json); |
| 13761 checkBackendService(obj); | 13861 checkBackendService(obj); |
| 13762 | 13862 |
| 13763 var path = (req.url).path; | 13863 var path = (req.url).path; |
| 13764 var pathOffset = 0; | 13864 var pathOffset = 0; |
| 13765 var index; | 13865 var index; |
| 13766 var subPart; | 13866 var subPart; |
| 13767 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13867 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13768 pathOffset += 1; | 13868 pathOffset += 1; |
| 13769 | 13869 |
| 13770 var query = (req.url).query; | 13870 var query = (req.url).query; |
| 13771 var queryOffset = 0; | 13871 var queryOffset = 0; |
| 13772 var queryMap = {}; | 13872 var queryMap = {}; |
| 13773 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13873 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13774 parseBool(n) { | 13874 parseBool(n) { |
| 13775 if (n == "true") return true; | 13875 if (n == "true") return true; |
| 13776 if (n == "false") return false; | 13876 if (n == "false") return false; |
| 13777 if (n == null) return null; | 13877 if (n == null) return null; |
| 13778 throw new core.ArgumentError("Invalid boolean: $n"); | 13878 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13779 } | 13879 } |
| 13780 if (query.length > 0) { | 13880 if (query.length > 0) { |
| 13781 for (var part in query.split("&")) { | 13881 for (var part in query.split("&")) { |
| 13782 var keyvalue = part.split("="); | 13882 var keyvalue = part.split("="); |
| 13783 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13883 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13784 } | 13884 } |
| 13785 } | 13885 } |
| 13886 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13786 | 13887 |
| 13787 | 13888 |
| 13788 var h = { | 13889 var h = { |
| 13789 "content-type" : "application/json; charset=utf-8", | 13890 "content-type" : "application/json; charset=utf-8", |
| 13790 }; | 13891 }; |
| 13791 var resp = convert.JSON.encode(buildOperation()); | 13892 var resp = convert.JSON.encode(buildOperation()); |
| 13792 return new async.Future.value(stringResponse(200, h, resp)); | 13893 return new async.Future.value(stringResponse(200, h, resp)); |
| 13793 }), true); | 13894 }), true); |
| 13794 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 13895 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 13795 checkOperation(response); | 13896 checkOperation(response); |
| 13796 }))); | 13897 }))); |
| 13797 }); | 13898 }); |
| 13798 | 13899 |
| 13799 unittest.test("method--list", () { | 13900 unittest.test("method--list", () { |
| 13800 | 13901 |
| 13801 var mock = new HttpServerMock(); | 13902 var mock = new HttpServerMock(); |
| 13802 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 13903 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 13803 var arg_project = "foo"; | 13904 var arg_project = "foo"; |
| 13804 var arg_filter = "foo"; | 13905 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13846 }))); | 13947 }))); |
| 13847 }); | 13948 }); |
| 13848 | 13949 |
| 13849 unittest.test("method--patch", () { | 13950 unittest.test("method--patch", () { |
| 13850 | 13951 |
| 13851 var mock = new HttpServerMock(); | 13952 var mock = new HttpServerMock(); |
| 13852 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 13953 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 13853 var arg_request = buildBackendService(); | 13954 var arg_request = buildBackendService(); |
| 13854 var arg_project = "foo"; | 13955 var arg_project = "foo"; |
| 13855 var arg_backendService = "foo"; | 13956 var arg_backendService = "foo"; |
| 13957 var arg_requestId = "foo"; |
| 13856 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 13958 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13857 var obj = new api.BackendService.fromJson(json); | 13959 var obj = new api.BackendService.fromJson(json); |
| 13858 checkBackendService(obj); | 13960 checkBackendService(obj); |
| 13859 | 13961 |
| 13860 var path = (req.url).path; | 13962 var path = (req.url).path; |
| 13861 var pathOffset = 0; | 13963 var pathOffset = 0; |
| 13862 var index; | 13964 var index; |
| 13863 var subPart; | 13965 var subPart; |
| 13864 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13865 pathOffset += 1; | 13967 pathOffset += 1; |
| 13866 | 13968 |
| 13867 var query = (req.url).query; | 13969 var query = (req.url).query; |
| 13868 var queryOffset = 0; | 13970 var queryOffset = 0; |
| 13869 var queryMap = {}; | 13971 var queryMap = {}; |
| 13870 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 13972 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13871 parseBool(n) { | 13973 parseBool(n) { |
| 13872 if (n == "true") return true; | 13974 if (n == "true") return true; |
| 13873 if (n == "false") return false; | 13975 if (n == "false") return false; |
| 13874 if (n == null) return null; | 13976 if (n == null) return null; |
| 13875 throw new core.ArgumentError("Invalid boolean: $n"); | 13977 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13876 } | 13978 } |
| 13877 if (query.length > 0) { | 13979 if (query.length > 0) { |
| 13878 for (var part in query.split("&")) { | 13980 for (var part in query.split("&")) { |
| 13879 var keyvalue = part.split("="); | 13981 var keyvalue = part.split("="); |
| 13880 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13982 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13881 } | 13983 } |
| 13882 } | 13984 } |
| 13985 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13883 | 13986 |
| 13884 | 13987 |
| 13885 var h = { | 13988 var h = { |
| 13886 "content-type" : "application/json; charset=utf-8", | 13989 "content-type" : "application/json; charset=utf-8", |
| 13887 }; | 13990 }; |
| 13888 var resp = convert.JSON.encode(buildOperation()); | 13991 var resp = convert.JSON.encode(buildOperation()); |
| 13889 return new async.Future.value(stringResponse(200, h, resp)); | 13992 return new async.Future.value(stringResponse(200, h, resp)); |
| 13890 }), true); | 13993 }), true); |
| 13891 res.patch(arg_request, arg_project, arg_backendService).then(unittest.expe
ctAsync1(((api.Operation response) { | 13994 res.patch(arg_request, arg_project, arg_backendService, requestId: arg_req
uestId).then(unittest.expectAsync1(((api.Operation response) { |
| 13892 checkOperation(response); | 13995 checkOperation(response); |
| 13893 }))); | 13996 }))); |
| 13894 }); | 13997 }); |
| 13895 | 13998 |
| 13896 unittest.test("method--update", () { | 13999 unittest.test("method--update", () { |
| 13897 | 14000 |
| 13898 var mock = new HttpServerMock(); | 14001 var mock = new HttpServerMock(); |
| 13899 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 14002 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 13900 var arg_request = buildBackendService(); | 14003 var arg_request = buildBackendService(); |
| 13901 var arg_project = "foo"; | 14004 var arg_project = "foo"; |
| 13902 var arg_backendService = "foo"; | 14005 var arg_backendService = "foo"; |
| 14006 var arg_requestId = "foo"; |
| 13903 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14007 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 13904 var obj = new api.BackendService.fromJson(json); | 14008 var obj = new api.BackendService.fromJson(json); |
| 13905 checkBackendService(obj); | 14009 checkBackendService(obj); |
| 13906 | 14010 |
| 13907 var path = (req.url).path; | 14011 var path = (req.url).path; |
| 13908 var pathOffset = 0; | 14012 var pathOffset = 0; |
| 13909 var index; | 14013 var index; |
| 13910 var subPart; | 14014 var subPart; |
| 13911 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14015 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 13912 pathOffset += 1; | 14016 pathOffset += 1; |
| 13913 | 14017 |
| 13914 var query = (req.url).query; | 14018 var query = (req.url).query; |
| 13915 var queryOffset = 0; | 14019 var queryOffset = 0; |
| 13916 var queryMap = {}; | 14020 var queryMap = {}; |
| 13917 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14021 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 13918 parseBool(n) { | 14022 parseBool(n) { |
| 13919 if (n == "true") return true; | 14023 if (n == "true") return true; |
| 13920 if (n == "false") return false; | 14024 if (n == "false") return false; |
| 13921 if (n == null) return null; | 14025 if (n == null) return null; |
| 13922 throw new core.ArgumentError("Invalid boolean: $n"); | 14026 throw new core.ArgumentError("Invalid boolean: $n"); |
| 13923 } | 14027 } |
| 13924 if (query.length > 0) { | 14028 if (query.length > 0) { |
| 13925 for (var part in query.split("&")) { | 14029 for (var part in query.split("&")) { |
| 13926 var keyvalue = part.split("="); | 14030 var keyvalue = part.split("="); |
| 13927 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14031 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 13928 } | 14032 } |
| 13929 } | 14033 } |
| 14034 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 13930 | 14035 |
| 13931 | 14036 |
| 13932 var h = { | 14037 var h = { |
| 13933 "content-type" : "application/json; charset=utf-8", | 14038 "content-type" : "application/json; charset=utf-8", |
| 13934 }; | 14039 }; |
| 13935 var resp = convert.JSON.encode(buildOperation()); | 14040 var resp = convert.JSON.encode(buildOperation()); |
| 13936 return new async.Future.value(stringResponse(200, h, resp)); | 14041 return new async.Future.value(stringResponse(200, h, resp)); |
| 13937 }), true); | 14042 }), true); |
| 13938 res.update(arg_request, arg_project, arg_backendService).then(unittest.exp
ectAsync1(((api.Operation response) { | 14043 res.update(arg_request, arg_project, arg_backendService, requestId: arg_re
questId).then(unittest.expectAsync1(((api.Operation response) { |
| 13939 checkOperation(response); | 14044 checkOperation(response); |
| 13940 }))); | 14045 }))); |
| 13941 }); | 14046 }); |
| 13942 | 14047 |
| 13943 }); | 14048 }); |
| 13944 | 14049 |
| 13945 | 14050 |
| 13946 unittest.group("resource-DiskTypesResourceApi", () { | 14051 unittest.group("resource-DiskTypesResourceApi", () { |
| 13947 unittest.test("method--aggregatedList", () { | 14052 unittest.test("method--aggregatedList", () { |
| 13948 | 14053 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14145 | 14250 |
| 14146 unittest.test("method--createSnapshot", () { | 14251 unittest.test("method--createSnapshot", () { |
| 14147 | 14252 |
| 14148 var mock = new HttpServerMock(); | 14253 var mock = new HttpServerMock(); |
| 14149 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14254 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14150 var arg_request = buildSnapshot(); | 14255 var arg_request = buildSnapshot(); |
| 14151 var arg_project = "foo"; | 14256 var arg_project = "foo"; |
| 14152 var arg_zone = "foo"; | 14257 var arg_zone = "foo"; |
| 14153 var arg_disk = "foo"; | 14258 var arg_disk = "foo"; |
| 14154 var arg_guestFlush = true; | 14259 var arg_guestFlush = true; |
| 14260 var arg_requestId = "foo"; |
| 14155 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14261 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14156 var obj = new api.Snapshot.fromJson(json); | 14262 var obj = new api.Snapshot.fromJson(json); |
| 14157 checkSnapshot(obj); | 14263 checkSnapshot(obj); |
| 14158 | 14264 |
| 14159 var path = (req.url).path; | 14265 var path = (req.url).path; |
| 14160 var pathOffset = 0; | 14266 var pathOffset = 0; |
| 14161 var index; | 14267 var index; |
| 14162 var subPart; | 14268 var subPart; |
| 14163 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14269 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14164 pathOffset += 1; | 14270 pathOffset += 1; |
| 14165 | 14271 |
| 14166 var query = (req.url).query; | 14272 var query = (req.url).query; |
| 14167 var queryOffset = 0; | 14273 var queryOffset = 0; |
| 14168 var queryMap = {}; | 14274 var queryMap = {}; |
| 14169 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14275 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14170 parseBool(n) { | 14276 parseBool(n) { |
| 14171 if (n == "true") return true; | 14277 if (n == "true") return true; |
| 14172 if (n == "false") return false; | 14278 if (n == "false") return false; |
| 14173 if (n == null) return null; | 14279 if (n == null) return null; |
| 14174 throw new core.ArgumentError("Invalid boolean: $n"); | 14280 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14175 } | 14281 } |
| 14176 if (query.length > 0) { | 14282 if (query.length > 0) { |
| 14177 for (var part in query.split("&")) { | 14283 for (var part in query.split("&")) { |
| 14178 var keyvalue = part.split("="); | 14284 var keyvalue = part.split("="); |
| 14179 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14285 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14180 } | 14286 } |
| 14181 } | 14287 } |
| 14182 unittest.expect(queryMap["guestFlush"].first, unittest.equals("$arg_gues
tFlush")); | 14288 unittest.expect(queryMap["guestFlush"].first, unittest.equals("$arg_gues
tFlush")); |
| 14289 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14183 | 14290 |
| 14184 | 14291 |
| 14185 var h = { | 14292 var h = { |
| 14186 "content-type" : "application/json; charset=utf-8", | 14293 "content-type" : "application/json; charset=utf-8", |
| 14187 }; | 14294 }; |
| 14188 var resp = convert.JSON.encode(buildOperation()); | 14295 var resp = convert.JSON.encode(buildOperation()); |
| 14189 return new async.Future.value(stringResponse(200, h, resp)); | 14296 return new async.Future.value(stringResponse(200, h, resp)); |
| 14190 }), true); | 14297 }), true); |
| 14191 res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk, guestFlus
h: arg_guestFlush).then(unittest.expectAsync1(((api.Operation response) { | 14298 res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk, guestFlus
h: arg_guestFlush, requestId: arg_requestId).then(unittest.expectAsync1(((api.Op
eration response) { |
| 14192 checkOperation(response); | 14299 checkOperation(response); |
| 14193 }))); | 14300 }))); |
| 14194 }); | 14301 }); |
| 14195 | 14302 |
| 14196 unittest.test("method--delete", () { | 14303 unittest.test("method--delete", () { |
| 14197 | 14304 |
| 14198 var mock = new HttpServerMock(); | 14305 var mock = new HttpServerMock(); |
| 14199 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14306 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14200 var arg_project = "foo"; | 14307 var arg_project = "foo"; |
| 14201 var arg_zone = "foo"; | 14308 var arg_zone = "foo"; |
| 14202 var arg_disk = "foo"; | 14309 var arg_disk = "foo"; |
| 14310 var arg_requestId = "foo"; |
| 14203 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14204 var path = (req.url).path; | 14312 var path = (req.url).path; |
| 14205 var pathOffset = 0; | 14313 var pathOffset = 0; |
| 14206 var index; | 14314 var index; |
| 14207 var subPart; | 14315 var subPart; |
| 14208 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14316 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14209 pathOffset += 1; | 14317 pathOffset += 1; |
| 14210 | 14318 |
| 14211 var query = (req.url).query; | 14319 var query = (req.url).query; |
| 14212 var queryOffset = 0; | 14320 var queryOffset = 0; |
| 14213 var queryMap = {}; | 14321 var queryMap = {}; |
| 14214 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14322 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14215 parseBool(n) { | 14323 parseBool(n) { |
| 14216 if (n == "true") return true; | 14324 if (n == "true") return true; |
| 14217 if (n == "false") return false; | 14325 if (n == "false") return false; |
| 14218 if (n == null) return null; | 14326 if (n == null) return null; |
| 14219 throw new core.ArgumentError("Invalid boolean: $n"); | 14327 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14220 } | 14328 } |
| 14221 if (query.length > 0) { | 14329 if (query.length > 0) { |
| 14222 for (var part in query.split("&")) { | 14330 for (var part in query.split("&")) { |
| 14223 var keyvalue = part.split("="); | 14331 var keyvalue = part.split("="); |
| 14224 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14332 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14225 } | 14333 } |
| 14226 } | 14334 } |
| 14335 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14227 | 14336 |
| 14228 | 14337 |
| 14229 var h = { | 14338 var h = { |
| 14230 "content-type" : "application/json; charset=utf-8", | 14339 "content-type" : "application/json; charset=utf-8", |
| 14231 }; | 14340 }; |
| 14232 var resp = convert.JSON.encode(buildOperation()); | 14341 var resp = convert.JSON.encode(buildOperation()); |
| 14233 return new async.Future.value(stringResponse(200, h, resp)); | 14342 return new async.Future.value(stringResponse(200, h, resp)); |
| 14234 }), true); | 14343 }), true); |
| 14235 res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync1(((a
pi.Operation response) { | 14344 res.delete(arg_project, arg_zone, arg_disk, requestId: arg_requestId).then
(unittest.expectAsync1(((api.Operation response) { |
| 14236 checkOperation(response); | 14345 checkOperation(response); |
| 14237 }))); | 14346 }))); |
| 14238 }); | 14347 }); |
| 14239 | 14348 |
| 14240 unittest.test("method--get", () { | 14349 unittest.test("method--get", () { |
| 14241 | 14350 |
| 14242 var mock = new HttpServerMock(); | 14351 var mock = new HttpServerMock(); |
| 14243 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14352 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14244 var arg_project = "foo"; | 14353 var arg_project = "foo"; |
| 14245 var arg_zone = "foo"; | 14354 var arg_zone = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14281 }))); | 14390 }))); |
| 14282 }); | 14391 }); |
| 14283 | 14392 |
| 14284 unittest.test("method--insert", () { | 14393 unittest.test("method--insert", () { |
| 14285 | 14394 |
| 14286 var mock = new HttpServerMock(); | 14395 var mock = new HttpServerMock(); |
| 14287 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14396 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14288 var arg_request = buildDisk(); | 14397 var arg_request = buildDisk(); |
| 14289 var arg_project = "foo"; | 14398 var arg_project = "foo"; |
| 14290 var arg_zone = "foo"; | 14399 var arg_zone = "foo"; |
| 14400 var arg_requestId = "foo"; |
| 14291 var arg_sourceImage = "foo"; | 14401 var arg_sourceImage = "foo"; |
| 14292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14402 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14293 var obj = new api.Disk.fromJson(json); | 14403 var obj = new api.Disk.fromJson(json); |
| 14294 checkDisk(obj); | 14404 checkDisk(obj); |
| 14295 | 14405 |
| 14296 var path = (req.url).path; | 14406 var path = (req.url).path; |
| 14297 var pathOffset = 0; | 14407 var pathOffset = 0; |
| 14298 var index; | 14408 var index; |
| 14299 var subPart; | 14409 var subPart; |
| 14300 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14410 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14301 pathOffset += 1; | 14411 pathOffset += 1; |
| 14302 | 14412 |
| 14303 var query = (req.url).query; | 14413 var query = (req.url).query; |
| 14304 var queryOffset = 0; | 14414 var queryOffset = 0; |
| 14305 var queryMap = {}; | 14415 var queryMap = {}; |
| 14306 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14416 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14307 parseBool(n) { | 14417 parseBool(n) { |
| 14308 if (n == "true") return true; | 14418 if (n == "true") return true; |
| 14309 if (n == "false") return false; | 14419 if (n == "false") return false; |
| 14310 if (n == null) return null; | 14420 if (n == null) return null; |
| 14311 throw new core.ArgumentError("Invalid boolean: $n"); | 14421 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14312 } | 14422 } |
| 14313 if (query.length > 0) { | 14423 if (query.length > 0) { |
| 14314 for (var part in query.split("&")) { | 14424 for (var part in query.split("&")) { |
| 14315 var keyvalue = part.split("="); | 14425 var keyvalue = part.split("="); |
| 14316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14426 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14317 } | 14427 } |
| 14318 } | 14428 } |
| 14429 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14319 unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourc
eImage)); | 14430 unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourc
eImage)); |
| 14320 | 14431 |
| 14321 | 14432 |
| 14322 var h = { | 14433 var h = { |
| 14323 "content-type" : "application/json; charset=utf-8", | 14434 "content-type" : "application/json; charset=utf-8", |
| 14324 }; | 14435 }; |
| 14325 var resp = convert.JSON.encode(buildOperation()); | 14436 var resp = convert.JSON.encode(buildOperation()); |
| 14326 return new async.Future.value(stringResponse(200, h, resp)); | 14437 return new async.Future.value(stringResponse(200, h, resp)); |
| 14327 }), true); | 14438 }), true); |
| 14328 res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImag
e).then(unittest.expectAsync1(((api.Operation response) { | 14439 res.insert(arg_request, arg_project, arg_zone, requestId: arg_requestId, s
ourceImage: arg_sourceImage).then(unittest.expectAsync1(((api.Operation response
) { |
| 14329 checkOperation(response); | 14440 checkOperation(response); |
| 14330 }))); | 14441 }))); |
| 14331 }); | 14442 }); |
| 14332 | 14443 |
| 14333 unittest.test("method--list", () { | 14444 unittest.test("method--list", () { |
| 14334 | 14445 |
| 14335 var mock = new HttpServerMock(); | 14446 var mock = new HttpServerMock(); |
| 14336 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14447 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14337 var arg_project = "foo"; | 14448 var arg_project = "foo"; |
| 14338 var arg_zone = "foo"; | 14449 var arg_zone = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14382 }); | 14493 }); |
| 14383 | 14494 |
| 14384 unittest.test("method--resize", () { | 14495 unittest.test("method--resize", () { |
| 14385 | 14496 |
| 14386 var mock = new HttpServerMock(); | 14497 var mock = new HttpServerMock(); |
| 14387 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14498 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14388 var arg_request = buildDisksResizeRequest(); | 14499 var arg_request = buildDisksResizeRequest(); |
| 14389 var arg_project = "foo"; | 14500 var arg_project = "foo"; |
| 14390 var arg_zone = "foo"; | 14501 var arg_zone = "foo"; |
| 14391 var arg_disk = "foo"; | 14502 var arg_disk = "foo"; |
| 14503 var arg_requestId = "foo"; |
| 14392 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14504 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14393 var obj = new api.DisksResizeRequest.fromJson(json); | 14505 var obj = new api.DisksResizeRequest.fromJson(json); |
| 14394 checkDisksResizeRequest(obj); | 14506 checkDisksResizeRequest(obj); |
| 14395 | 14507 |
| 14396 var path = (req.url).path; | 14508 var path = (req.url).path; |
| 14397 var pathOffset = 0; | 14509 var pathOffset = 0; |
| 14398 var index; | 14510 var index; |
| 14399 var subPart; | 14511 var subPart; |
| 14400 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14401 pathOffset += 1; | 14513 pathOffset += 1; |
| 14402 | 14514 |
| 14403 var query = (req.url).query; | 14515 var query = (req.url).query; |
| 14404 var queryOffset = 0; | 14516 var queryOffset = 0; |
| 14405 var queryMap = {}; | 14517 var queryMap = {}; |
| 14406 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14518 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14407 parseBool(n) { | 14519 parseBool(n) { |
| 14408 if (n == "true") return true; | 14520 if (n == "true") return true; |
| 14409 if (n == "false") return false; | 14521 if (n == "false") return false; |
| 14410 if (n == null) return null; | 14522 if (n == null) return null; |
| 14411 throw new core.ArgumentError("Invalid boolean: $n"); | 14523 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14412 } | 14524 } |
| 14413 if (query.length > 0) { | 14525 if (query.length > 0) { |
| 14414 for (var part in query.split("&")) { | 14526 for (var part in query.split("&")) { |
| 14415 var keyvalue = part.split("="); | 14527 var keyvalue = part.split("="); |
| 14416 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14528 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14417 } | 14529 } |
| 14418 } | 14530 } |
| 14531 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14419 | 14532 |
| 14420 | 14533 |
| 14421 var h = { | 14534 var h = { |
| 14422 "content-type" : "application/json; charset=utf-8", | 14535 "content-type" : "application/json; charset=utf-8", |
| 14423 }; | 14536 }; |
| 14424 var resp = convert.JSON.encode(buildOperation()); | 14537 var resp = convert.JSON.encode(buildOperation()); |
| 14425 return new async.Future.value(stringResponse(200, h, resp)); | 14538 return new async.Future.value(stringResponse(200, h, resp)); |
| 14426 }), true); | 14539 }), true); |
| 14427 res.resize(arg_request, arg_project, arg_zone, arg_disk).then(unittest.exp
ectAsync1(((api.Operation response) { | 14540 res.resize(arg_request, arg_project, arg_zone, arg_disk, requestId: arg_re
questId).then(unittest.expectAsync1(((api.Operation response) { |
| 14428 checkOperation(response); | 14541 checkOperation(response); |
| 14429 }))); | 14542 }))); |
| 14430 }); | 14543 }); |
| 14431 | 14544 |
| 14432 unittest.test("method--setLabels", () { | 14545 unittest.test("method--setLabels", () { |
| 14433 | 14546 |
| 14434 var mock = new HttpServerMock(); | 14547 var mock = new HttpServerMock(); |
| 14435 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 14548 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 14436 var arg_request = buildZoneSetLabelsRequest(); | 14549 var arg_request = buildZoneSetLabelsRequest(); |
| 14437 var arg_project = "foo"; | 14550 var arg_project = "foo"; |
| 14438 var arg_zone = "foo"; | 14551 var arg_zone = "foo"; |
| 14439 var arg_resource = "foo"; | 14552 var arg_resource = "foo"; |
| 14553 var arg_requestId = "foo"; |
| 14440 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14554 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14441 var obj = new api.ZoneSetLabelsRequest.fromJson(json); | 14555 var obj = new api.ZoneSetLabelsRequest.fromJson(json); |
| 14442 checkZoneSetLabelsRequest(obj); | 14556 checkZoneSetLabelsRequest(obj); |
| 14443 | 14557 |
| 14444 var path = (req.url).path; | 14558 var path = (req.url).path; |
| 14445 var pathOffset = 0; | 14559 var pathOffset = 0; |
| 14446 var index; | 14560 var index; |
| 14447 var subPart; | 14561 var subPart; |
| 14448 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14449 pathOffset += 1; | 14563 pathOffset += 1; |
| 14450 | 14564 |
| 14451 var query = (req.url).query; | 14565 var query = (req.url).query; |
| 14452 var queryOffset = 0; | 14566 var queryOffset = 0; |
| 14453 var queryMap = {}; | 14567 var queryMap = {}; |
| 14454 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14568 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14455 parseBool(n) { | 14569 parseBool(n) { |
| 14456 if (n == "true") return true; | 14570 if (n == "true") return true; |
| 14457 if (n == "false") return false; | 14571 if (n == "false") return false; |
| 14458 if (n == null) return null; | 14572 if (n == null) return null; |
| 14459 throw new core.ArgumentError("Invalid boolean: $n"); | 14573 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14460 } | 14574 } |
| 14461 if (query.length > 0) { | 14575 if (query.length > 0) { |
| 14462 for (var part in query.split("&")) { | 14576 for (var part in query.split("&")) { |
| 14463 var keyvalue = part.split("="); | 14577 var keyvalue = part.split("="); |
| 14464 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14578 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14465 } | 14579 } |
| 14466 } | 14580 } |
| 14581 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14467 | 14582 |
| 14468 | 14583 |
| 14469 var h = { | 14584 var h = { |
| 14470 "content-type" : "application/json; charset=utf-8", | 14585 "content-type" : "application/json; charset=utf-8", |
| 14471 }; | 14586 }; |
| 14472 var resp = convert.JSON.encode(buildOperation()); | 14587 var resp = convert.JSON.encode(buildOperation()); |
| 14473 return new async.Future.value(stringResponse(200, h, resp)); | 14588 return new async.Future.value(stringResponse(200, h, resp)); |
| 14474 }), true); | 14589 }), true); |
| 14475 res.setLabels(arg_request, arg_project, arg_zone, arg_resource).then(unitt
est.expectAsync1(((api.Operation response) { | 14590 res.setLabels(arg_request, arg_project, arg_zone, arg_resource, requestId:
arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 14476 checkOperation(response); | 14591 checkOperation(response); |
| 14477 }))); | 14592 }))); |
| 14478 }); | 14593 }); |
| 14479 | 14594 |
| 14480 }); | 14595 }); |
| 14481 | 14596 |
| 14482 | 14597 |
| 14483 unittest.group("resource-FirewallsResourceApi", () { | 14598 unittest.group("resource-FirewallsResourceApi", () { |
| 14484 unittest.test("method--delete", () { | 14599 unittest.test("method--delete", () { |
| 14485 | 14600 |
| 14486 var mock = new HttpServerMock(); | 14601 var mock = new HttpServerMock(); |
| 14487 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 14602 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 14488 var arg_project = "foo"; | 14603 var arg_project = "foo"; |
| 14489 var arg_firewall = "foo"; | 14604 var arg_firewall = "foo"; |
| 14605 var arg_requestId = "foo"; |
| 14490 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14606 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14491 var path = (req.url).path; | 14607 var path = (req.url).path; |
| 14492 var pathOffset = 0; | 14608 var pathOffset = 0; |
| 14493 var index; | 14609 var index; |
| 14494 var subPart; | 14610 var subPart; |
| 14495 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14611 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14496 pathOffset += 1; | 14612 pathOffset += 1; |
| 14497 | 14613 |
| 14498 var query = (req.url).query; | 14614 var query = (req.url).query; |
| 14499 var queryOffset = 0; | 14615 var queryOffset = 0; |
| 14500 var queryMap = {}; | 14616 var queryMap = {}; |
| 14501 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14617 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14502 parseBool(n) { | 14618 parseBool(n) { |
| 14503 if (n == "true") return true; | 14619 if (n == "true") return true; |
| 14504 if (n == "false") return false; | 14620 if (n == "false") return false; |
| 14505 if (n == null) return null; | 14621 if (n == null) return null; |
| 14506 throw new core.ArgumentError("Invalid boolean: $n"); | 14622 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14507 } | 14623 } |
| 14508 if (query.length > 0) { | 14624 if (query.length > 0) { |
| 14509 for (var part in query.split("&")) { | 14625 for (var part in query.split("&")) { |
| 14510 var keyvalue = part.split("="); | 14626 var keyvalue = part.split("="); |
| 14511 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14627 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14512 } | 14628 } |
| 14513 } | 14629 } |
| 14630 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14514 | 14631 |
| 14515 | 14632 |
| 14516 var h = { | 14633 var h = { |
| 14517 "content-type" : "application/json; charset=utf-8", | 14634 "content-type" : "application/json; charset=utf-8", |
| 14518 }; | 14635 }; |
| 14519 var resp = convert.JSON.encode(buildOperation()); | 14636 var resp = convert.JSON.encode(buildOperation()); |
| 14520 return new async.Future.value(stringResponse(200, h, resp)); | 14637 return new async.Future.value(stringResponse(200, h, resp)); |
| 14521 }), true); | 14638 }), true); |
| 14522 res.delete(arg_project, arg_firewall).then(unittest.expectAsync1(((api.Ope
ration response) { | 14639 res.delete(arg_project, arg_firewall, requestId: arg_requestId).then(unitt
est.expectAsync1(((api.Operation response) { |
| 14523 checkOperation(response); | 14640 checkOperation(response); |
| 14524 }))); | 14641 }))); |
| 14525 }); | 14642 }); |
| 14526 | 14643 |
| 14527 unittest.test("method--get", () { | 14644 unittest.test("method--get", () { |
| 14528 | 14645 |
| 14529 var mock = new HttpServerMock(); | 14646 var mock = new HttpServerMock(); |
| 14530 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 14647 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 14531 var arg_project = "foo"; | 14648 var arg_project = "foo"; |
| 14532 var arg_firewall = "foo"; | 14649 var arg_firewall = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14566 checkFirewall(response); | 14683 checkFirewall(response); |
| 14567 }))); | 14684 }))); |
| 14568 }); | 14685 }); |
| 14569 | 14686 |
| 14570 unittest.test("method--insert", () { | 14687 unittest.test("method--insert", () { |
| 14571 | 14688 |
| 14572 var mock = new HttpServerMock(); | 14689 var mock = new HttpServerMock(); |
| 14573 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 14690 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 14574 var arg_request = buildFirewall(); | 14691 var arg_request = buildFirewall(); |
| 14575 var arg_project = "foo"; | 14692 var arg_project = "foo"; |
| 14693 var arg_requestId = "foo"; |
| 14576 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14694 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14577 var obj = new api.Firewall.fromJson(json); | 14695 var obj = new api.Firewall.fromJson(json); |
| 14578 checkFirewall(obj); | 14696 checkFirewall(obj); |
| 14579 | 14697 |
| 14580 var path = (req.url).path; | 14698 var path = (req.url).path; |
| 14581 var pathOffset = 0; | 14699 var pathOffset = 0; |
| 14582 var index; | 14700 var index; |
| 14583 var subPart; | 14701 var subPart; |
| 14584 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14702 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14585 pathOffset += 1; | 14703 pathOffset += 1; |
| 14586 | 14704 |
| 14587 var query = (req.url).query; | 14705 var query = (req.url).query; |
| 14588 var queryOffset = 0; | 14706 var queryOffset = 0; |
| 14589 var queryMap = {}; | 14707 var queryMap = {}; |
| 14590 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14708 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14591 parseBool(n) { | 14709 parseBool(n) { |
| 14592 if (n == "true") return true; | 14710 if (n == "true") return true; |
| 14593 if (n == "false") return false; | 14711 if (n == "false") return false; |
| 14594 if (n == null) return null; | 14712 if (n == null) return null; |
| 14595 throw new core.ArgumentError("Invalid boolean: $n"); | 14713 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14596 } | 14714 } |
| 14597 if (query.length > 0) { | 14715 if (query.length > 0) { |
| 14598 for (var part in query.split("&")) { | 14716 for (var part in query.split("&")) { |
| 14599 var keyvalue = part.split("="); | 14717 var keyvalue = part.split("="); |
| 14600 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14718 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14601 } | 14719 } |
| 14602 } | 14720 } |
| 14721 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14603 | 14722 |
| 14604 | 14723 |
| 14605 var h = { | 14724 var h = { |
| 14606 "content-type" : "application/json; charset=utf-8", | 14725 "content-type" : "application/json; charset=utf-8", |
| 14607 }; | 14726 }; |
| 14608 var resp = convert.JSON.encode(buildOperation()); | 14727 var resp = convert.JSON.encode(buildOperation()); |
| 14609 return new async.Future.value(stringResponse(200, h, resp)); | 14728 return new async.Future.value(stringResponse(200, h, resp)); |
| 14610 }), true); | 14729 }), true); |
| 14611 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 14730 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 14612 checkOperation(response); | 14731 checkOperation(response); |
| 14613 }))); | 14732 }))); |
| 14614 }); | 14733 }); |
| 14615 | 14734 |
| 14616 unittest.test("method--list", () { | 14735 unittest.test("method--list", () { |
| 14617 | 14736 |
| 14618 var mock = new HttpServerMock(); | 14737 var mock = new HttpServerMock(); |
| 14619 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 14738 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 14620 var arg_project = "foo"; | 14739 var arg_project = "foo"; |
| 14621 var arg_filter = "foo"; | 14740 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14663 }))); | 14782 }))); |
| 14664 }); | 14783 }); |
| 14665 | 14784 |
| 14666 unittest.test("method--patch", () { | 14785 unittest.test("method--patch", () { |
| 14667 | 14786 |
| 14668 var mock = new HttpServerMock(); | 14787 var mock = new HttpServerMock(); |
| 14669 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 14788 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 14670 var arg_request = buildFirewall(); | 14789 var arg_request = buildFirewall(); |
| 14671 var arg_project = "foo"; | 14790 var arg_project = "foo"; |
| 14672 var arg_firewall = "foo"; | 14791 var arg_firewall = "foo"; |
| 14792 var arg_requestId = "foo"; |
| 14673 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14793 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14674 var obj = new api.Firewall.fromJson(json); | 14794 var obj = new api.Firewall.fromJson(json); |
| 14675 checkFirewall(obj); | 14795 checkFirewall(obj); |
| 14676 | 14796 |
| 14677 var path = (req.url).path; | 14797 var path = (req.url).path; |
| 14678 var pathOffset = 0; | 14798 var pathOffset = 0; |
| 14679 var index; | 14799 var index; |
| 14680 var subPart; | 14800 var subPart; |
| 14681 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14682 pathOffset += 1; | 14802 pathOffset += 1; |
| 14683 | 14803 |
| 14684 var query = (req.url).query; | 14804 var query = (req.url).query; |
| 14685 var queryOffset = 0; | 14805 var queryOffset = 0; |
| 14686 var queryMap = {}; | 14806 var queryMap = {}; |
| 14687 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14807 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14688 parseBool(n) { | 14808 parseBool(n) { |
| 14689 if (n == "true") return true; | 14809 if (n == "true") return true; |
| 14690 if (n == "false") return false; | 14810 if (n == "false") return false; |
| 14691 if (n == null) return null; | 14811 if (n == null) return null; |
| 14692 throw new core.ArgumentError("Invalid boolean: $n"); | 14812 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14693 } | 14813 } |
| 14694 if (query.length > 0) { | 14814 if (query.length > 0) { |
| 14695 for (var part in query.split("&")) { | 14815 for (var part in query.split("&")) { |
| 14696 var keyvalue = part.split("="); | 14816 var keyvalue = part.split("="); |
| 14697 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14817 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14698 } | 14818 } |
| 14699 } | 14819 } |
| 14820 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14700 | 14821 |
| 14701 | 14822 |
| 14702 var h = { | 14823 var h = { |
| 14703 "content-type" : "application/json; charset=utf-8", | 14824 "content-type" : "application/json; charset=utf-8", |
| 14704 }; | 14825 }; |
| 14705 var resp = convert.JSON.encode(buildOperation()); | 14826 var resp = convert.JSON.encode(buildOperation()); |
| 14706 return new async.Future.value(stringResponse(200, h, resp)); | 14827 return new async.Future.value(stringResponse(200, h, resp)); |
| 14707 }), true); | 14828 }), true); |
| 14708 res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsyn
c1(((api.Operation response) { | 14829 res.patch(arg_request, arg_project, arg_firewall, requestId: arg_requestId
).then(unittest.expectAsync1(((api.Operation response) { |
| 14709 checkOperation(response); | 14830 checkOperation(response); |
| 14710 }))); | 14831 }))); |
| 14711 }); | 14832 }); |
| 14712 | 14833 |
| 14713 unittest.test("method--update", () { | 14834 unittest.test("method--update", () { |
| 14714 | 14835 |
| 14715 var mock = new HttpServerMock(); | 14836 var mock = new HttpServerMock(); |
| 14716 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 14837 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 14717 var arg_request = buildFirewall(); | 14838 var arg_request = buildFirewall(); |
| 14718 var arg_project = "foo"; | 14839 var arg_project = "foo"; |
| 14719 var arg_firewall = "foo"; | 14840 var arg_firewall = "foo"; |
| 14841 var arg_requestId = "foo"; |
| 14720 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14842 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14721 var obj = new api.Firewall.fromJson(json); | 14843 var obj = new api.Firewall.fromJson(json); |
| 14722 checkFirewall(obj); | 14844 checkFirewall(obj); |
| 14723 | 14845 |
| 14724 var path = (req.url).path; | 14846 var path = (req.url).path; |
| 14725 var pathOffset = 0; | 14847 var pathOffset = 0; |
| 14726 var index; | 14848 var index; |
| 14727 var subPart; | 14849 var subPart; |
| 14728 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14850 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14729 pathOffset += 1; | 14851 pathOffset += 1; |
| 14730 | 14852 |
| 14731 var query = (req.url).query; | 14853 var query = (req.url).query; |
| 14732 var queryOffset = 0; | 14854 var queryOffset = 0; |
| 14733 var queryMap = {}; | 14855 var queryMap = {}; |
| 14734 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14856 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14735 parseBool(n) { | 14857 parseBool(n) { |
| 14736 if (n == "true") return true; | 14858 if (n == "true") return true; |
| 14737 if (n == "false") return false; | 14859 if (n == "false") return false; |
| 14738 if (n == null) return null; | 14860 if (n == null) return null; |
| 14739 throw new core.ArgumentError("Invalid boolean: $n"); | 14861 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14740 } | 14862 } |
| 14741 if (query.length > 0) { | 14863 if (query.length > 0) { |
| 14742 for (var part in query.split("&")) { | 14864 for (var part in query.split("&")) { |
| 14743 var keyvalue = part.split("="); | 14865 var keyvalue = part.split("="); |
| 14744 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14866 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14745 } | 14867 } |
| 14746 } | 14868 } |
| 14869 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14747 | 14870 |
| 14748 | 14871 |
| 14749 var h = { | 14872 var h = { |
| 14750 "content-type" : "application/json; charset=utf-8", | 14873 "content-type" : "application/json; charset=utf-8", |
| 14751 }; | 14874 }; |
| 14752 var resp = convert.JSON.encode(buildOperation()); | 14875 var resp = convert.JSON.encode(buildOperation()); |
| 14753 return new async.Future.value(stringResponse(200, h, resp)); | 14876 return new async.Future.value(stringResponse(200, h, resp)); |
| 14754 }), true); | 14877 }), true); |
| 14755 res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsy
nc1(((api.Operation response) { | 14878 res.update(arg_request, arg_project, arg_firewall, requestId: arg_requestI
d).then(unittest.expectAsync1(((api.Operation response) { |
| 14756 checkOperation(response); | 14879 checkOperation(response); |
| 14757 }))); | 14880 }))); |
| 14758 }); | 14881 }); |
| 14759 | 14882 |
| 14760 }); | 14883 }); |
| 14761 | 14884 |
| 14762 | 14885 |
| 14763 unittest.group("resource-ForwardingRulesResourceApi", () { | 14886 unittest.group("resource-ForwardingRulesResourceApi", () { |
| 14764 unittest.test("method--aggregatedList", () { | 14887 unittest.test("method--aggregatedList", () { |
| 14765 | 14888 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14811 }))); | 14934 }))); |
| 14812 }); | 14935 }); |
| 14813 | 14936 |
| 14814 unittest.test("method--delete", () { | 14937 unittest.test("method--delete", () { |
| 14815 | 14938 |
| 14816 var mock = new HttpServerMock(); | 14939 var mock = new HttpServerMock(); |
| 14817 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 14940 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 14818 var arg_project = "foo"; | 14941 var arg_project = "foo"; |
| 14819 var arg_region = "foo"; | 14942 var arg_region = "foo"; |
| 14820 var arg_forwardingRule = "foo"; | 14943 var arg_forwardingRule = "foo"; |
| 14944 var arg_requestId = "foo"; |
| 14821 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 14945 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14822 var path = (req.url).path; | 14946 var path = (req.url).path; |
| 14823 var pathOffset = 0; | 14947 var pathOffset = 0; |
| 14824 var index; | 14948 var index; |
| 14825 var subPart; | 14949 var subPart; |
| 14826 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 14950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14827 pathOffset += 1; | 14951 pathOffset += 1; |
| 14828 | 14952 |
| 14829 var query = (req.url).query; | 14953 var query = (req.url).query; |
| 14830 var queryOffset = 0; | 14954 var queryOffset = 0; |
| 14831 var queryMap = {}; | 14955 var queryMap = {}; |
| 14832 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 14956 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14833 parseBool(n) { | 14957 parseBool(n) { |
| 14834 if (n == "true") return true; | 14958 if (n == "true") return true; |
| 14835 if (n == "false") return false; | 14959 if (n == "false") return false; |
| 14836 if (n == null) return null; | 14960 if (n == null) return null; |
| 14837 throw new core.ArgumentError("Invalid boolean: $n"); | 14961 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14838 } | 14962 } |
| 14839 if (query.length > 0) { | 14963 if (query.length > 0) { |
| 14840 for (var part in query.split("&")) { | 14964 for (var part in query.split("&")) { |
| 14841 var keyvalue = part.split("="); | 14965 var keyvalue = part.split("="); |
| 14842 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 14966 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14843 } | 14967 } |
| 14844 } | 14968 } |
| 14969 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14845 | 14970 |
| 14846 | 14971 |
| 14847 var h = { | 14972 var h = { |
| 14848 "content-type" : "application/json; charset=utf-8", | 14973 "content-type" : "application/json; charset=utf-8", |
| 14849 }; | 14974 }; |
| 14850 var resp = convert.JSON.encode(buildOperation()); | 14975 var resp = convert.JSON.encode(buildOperation()); |
| 14851 return new async.Future.value(stringResponse(200, h, resp)); | 14976 return new async.Future.value(stringResponse(200, h, resp)); |
| 14852 }), true); | 14977 }), true); |
| 14853 res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expe
ctAsync1(((api.Operation response) { | 14978 res.delete(arg_project, arg_region, arg_forwardingRule, requestId: arg_req
uestId).then(unittest.expectAsync1(((api.Operation response) { |
| 14854 checkOperation(response); | 14979 checkOperation(response); |
| 14855 }))); | 14980 }))); |
| 14856 }); | 14981 }); |
| 14857 | 14982 |
| 14858 unittest.test("method--get", () { | 14983 unittest.test("method--get", () { |
| 14859 | 14984 |
| 14860 var mock = new HttpServerMock(); | 14985 var mock = new HttpServerMock(); |
| 14861 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 14986 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 14862 var arg_project = "foo"; | 14987 var arg_project = "foo"; |
| 14863 var arg_region = "foo"; | 14988 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14899 }))); | 15024 }))); |
| 14900 }); | 15025 }); |
| 14901 | 15026 |
| 14902 unittest.test("method--insert", () { | 15027 unittest.test("method--insert", () { |
| 14903 | 15028 |
| 14904 var mock = new HttpServerMock(); | 15029 var mock = new HttpServerMock(); |
| 14905 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 15030 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 14906 var arg_request = buildForwardingRule(); | 15031 var arg_request = buildForwardingRule(); |
| 14907 var arg_project = "foo"; | 15032 var arg_project = "foo"; |
| 14908 var arg_region = "foo"; | 15033 var arg_region = "foo"; |
| 15034 var arg_requestId = "foo"; |
| 14909 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15035 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 14910 var obj = new api.ForwardingRule.fromJson(json); | 15036 var obj = new api.ForwardingRule.fromJson(json); |
| 14911 checkForwardingRule(obj); | 15037 checkForwardingRule(obj); |
| 14912 | 15038 |
| 14913 var path = (req.url).path; | 15039 var path = (req.url).path; |
| 14914 var pathOffset = 0; | 15040 var pathOffset = 0; |
| 14915 var index; | 15041 var index; |
| 14916 var subPart; | 15042 var subPart; |
| 14917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15043 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 14918 pathOffset += 1; | 15044 pathOffset += 1; |
| 14919 | 15045 |
| 14920 var query = (req.url).query; | 15046 var query = (req.url).query; |
| 14921 var queryOffset = 0; | 15047 var queryOffset = 0; |
| 14922 var queryMap = {}; | 15048 var queryMap = {}; |
| 14923 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15049 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 14924 parseBool(n) { | 15050 parseBool(n) { |
| 14925 if (n == "true") return true; | 15051 if (n == "true") return true; |
| 14926 if (n == "false") return false; | 15052 if (n == "false") return false; |
| 14927 if (n == null) return null; | 15053 if (n == null) return null; |
| 14928 throw new core.ArgumentError("Invalid boolean: $n"); | 15054 throw new core.ArgumentError("Invalid boolean: $n"); |
| 14929 } | 15055 } |
| 14930 if (query.length > 0) { | 15056 if (query.length > 0) { |
| 14931 for (var part in query.split("&")) { | 15057 for (var part in query.split("&")) { |
| 14932 var keyvalue = part.split("="); | 15058 var keyvalue = part.split("="); |
| 14933 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15059 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 14934 } | 15060 } |
| 14935 } | 15061 } |
| 15062 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 14936 | 15063 |
| 14937 | 15064 |
| 14938 var h = { | 15065 var h = { |
| 14939 "content-type" : "application/json; charset=utf-8", | 15066 "content-type" : "application/json; charset=utf-8", |
| 14940 }; | 15067 }; |
| 14941 var resp = convert.JSON.encode(buildOperation()); | 15068 var resp = convert.JSON.encode(buildOperation()); |
| 14942 return new async.Future.value(stringResponse(200, h, resp)); | 15069 return new async.Future.value(stringResponse(200, h, resp)); |
| 14943 }), true); | 15070 }), true); |
| 14944 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 15071 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 14945 checkOperation(response); | 15072 checkOperation(response); |
| 14946 }))); | 15073 }))); |
| 14947 }); | 15074 }); |
| 14948 | 15075 |
| 14949 unittest.test("method--list", () { | 15076 unittest.test("method--list", () { |
| 14950 | 15077 |
| 14951 var mock = new HttpServerMock(); | 15078 var mock = new HttpServerMock(); |
| 14952 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 15079 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 14953 var arg_project = "foo"; | 15080 var arg_project = "foo"; |
| 14954 var arg_region = "foo"; | 15081 var arg_region = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14998 }); | 15125 }); |
| 14999 | 15126 |
| 15000 unittest.test("method--setTarget", () { | 15127 unittest.test("method--setTarget", () { |
| 15001 | 15128 |
| 15002 var mock = new HttpServerMock(); | 15129 var mock = new HttpServerMock(); |
| 15003 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 15130 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 15004 var arg_request = buildTargetReference(); | 15131 var arg_request = buildTargetReference(); |
| 15005 var arg_project = "foo"; | 15132 var arg_project = "foo"; |
| 15006 var arg_region = "foo"; | 15133 var arg_region = "foo"; |
| 15007 var arg_forwardingRule = "foo"; | 15134 var arg_forwardingRule = "foo"; |
| 15135 var arg_requestId = "foo"; |
| 15008 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15136 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15009 var obj = new api.TargetReference.fromJson(json); | 15137 var obj = new api.TargetReference.fromJson(json); |
| 15010 checkTargetReference(obj); | 15138 checkTargetReference(obj); |
| 15011 | 15139 |
| 15012 var path = (req.url).path; | 15140 var path = (req.url).path; |
| 15013 var pathOffset = 0; | 15141 var pathOffset = 0; |
| 15014 var index; | 15142 var index; |
| 15015 var subPart; | 15143 var subPart; |
| 15016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15017 pathOffset += 1; | 15145 pathOffset += 1; |
| 15018 | 15146 |
| 15019 var query = (req.url).query; | 15147 var query = (req.url).query; |
| 15020 var queryOffset = 0; | 15148 var queryOffset = 0; |
| 15021 var queryMap = {}; | 15149 var queryMap = {}; |
| 15022 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15150 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15023 parseBool(n) { | 15151 parseBool(n) { |
| 15024 if (n == "true") return true; | 15152 if (n == "true") return true; |
| 15025 if (n == "false") return false; | 15153 if (n == "false") return false; |
| 15026 if (n == null) return null; | 15154 if (n == null) return null; |
| 15027 throw new core.ArgumentError("Invalid boolean: $n"); | 15155 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15028 } | 15156 } |
| 15029 if (query.length > 0) { | 15157 if (query.length > 0) { |
| 15030 for (var part in query.split("&")) { | 15158 for (var part in query.split("&")) { |
| 15031 var keyvalue = part.split("="); | 15159 var keyvalue = part.split("="); |
| 15032 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15160 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15033 } | 15161 } |
| 15034 } | 15162 } |
| 15163 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15035 | 15164 |
| 15036 | 15165 |
| 15037 var h = { | 15166 var h = { |
| 15038 "content-type" : "application/json; charset=utf-8", | 15167 "content-type" : "application/json; charset=utf-8", |
| 15039 }; | 15168 }; |
| 15040 var resp = convert.JSON.encode(buildOperation()); | 15169 var resp = convert.JSON.encode(buildOperation()); |
| 15041 return new async.Future.value(stringResponse(200, h, resp)); | 15170 return new async.Future.value(stringResponse(200, h, resp)); |
| 15042 }), true); | 15171 }), true); |
| 15043 res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).th
en(unittest.expectAsync1(((api.Operation response) { | 15172 res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule, re
questId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 15044 checkOperation(response); | 15173 checkOperation(response); |
| 15045 }))); | 15174 }))); |
| 15046 }); | 15175 }); |
| 15047 | 15176 |
| 15048 }); | 15177 }); |
| 15049 | 15178 |
| 15050 | 15179 |
| 15051 unittest.group("resource-GlobalAddressesResourceApi", () { | 15180 unittest.group("resource-GlobalAddressesResourceApi", () { |
| 15052 unittest.test("method--delete", () { | 15181 unittest.test("method--delete", () { |
| 15053 | 15182 |
| 15054 var mock = new HttpServerMock(); | 15183 var mock = new HttpServerMock(); |
| 15055 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 15184 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 15056 var arg_project = "foo"; | 15185 var arg_project = "foo"; |
| 15057 var arg_address = "foo"; | 15186 var arg_address = "foo"; |
| 15187 var arg_requestId = "foo"; |
| 15058 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15188 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15059 var path = (req.url).path; | 15189 var path = (req.url).path; |
| 15060 var pathOffset = 0; | 15190 var pathOffset = 0; |
| 15061 var index; | 15191 var index; |
| 15062 var subPart; | 15192 var subPart; |
| 15063 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15193 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15064 pathOffset += 1; | 15194 pathOffset += 1; |
| 15065 | 15195 |
| 15066 var query = (req.url).query; | 15196 var query = (req.url).query; |
| 15067 var queryOffset = 0; | 15197 var queryOffset = 0; |
| 15068 var queryMap = {}; | 15198 var queryMap = {}; |
| 15069 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15199 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15070 parseBool(n) { | 15200 parseBool(n) { |
| 15071 if (n == "true") return true; | 15201 if (n == "true") return true; |
| 15072 if (n == "false") return false; | 15202 if (n == "false") return false; |
| 15073 if (n == null) return null; | 15203 if (n == null) return null; |
| 15074 throw new core.ArgumentError("Invalid boolean: $n"); | 15204 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15075 } | 15205 } |
| 15076 if (query.length > 0) { | 15206 if (query.length > 0) { |
| 15077 for (var part in query.split("&")) { | 15207 for (var part in query.split("&")) { |
| 15078 var keyvalue = part.split("="); | 15208 var keyvalue = part.split("="); |
| 15079 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15209 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15080 } | 15210 } |
| 15081 } | 15211 } |
| 15212 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15082 | 15213 |
| 15083 | 15214 |
| 15084 var h = { | 15215 var h = { |
| 15085 "content-type" : "application/json; charset=utf-8", | 15216 "content-type" : "application/json; charset=utf-8", |
| 15086 }; | 15217 }; |
| 15087 var resp = convert.JSON.encode(buildOperation()); | 15218 var resp = convert.JSON.encode(buildOperation()); |
| 15088 return new async.Future.value(stringResponse(200, h, resp)); | 15219 return new async.Future.value(stringResponse(200, h, resp)); |
| 15089 }), true); | 15220 }), true); |
| 15090 res.delete(arg_project, arg_address).then(unittest.expectAsync1(((api.Oper
ation response) { | 15221 res.delete(arg_project, arg_address, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 15091 checkOperation(response); | 15222 checkOperation(response); |
| 15092 }))); | 15223 }))); |
| 15093 }); | 15224 }); |
| 15094 | 15225 |
| 15095 unittest.test("method--get", () { | 15226 unittest.test("method--get", () { |
| 15096 | 15227 |
| 15097 var mock = new HttpServerMock(); | 15228 var mock = new HttpServerMock(); |
| 15098 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 15229 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 15099 var arg_project = "foo"; | 15230 var arg_project = "foo"; |
| 15100 var arg_address = "foo"; | 15231 var arg_address = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15134 checkAddress(response); | 15265 checkAddress(response); |
| 15135 }))); | 15266 }))); |
| 15136 }); | 15267 }); |
| 15137 | 15268 |
| 15138 unittest.test("method--insert", () { | 15269 unittest.test("method--insert", () { |
| 15139 | 15270 |
| 15140 var mock = new HttpServerMock(); | 15271 var mock = new HttpServerMock(); |
| 15141 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 15272 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 15142 var arg_request = buildAddress(); | 15273 var arg_request = buildAddress(); |
| 15143 var arg_project = "foo"; | 15274 var arg_project = "foo"; |
| 15275 var arg_requestId = "foo"; |
| 15144 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15276 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15145 var obj = new api.Address.fromJson(json); | 15277 var obj = new api.Address.fromJson(json); |
| 15146 checkAddress(obj); | 15278 checkAddress(obj); |
| 15147 | 15279 |
| 15148 var path = (req.url).path; | 15280 var path = (req.url).path; |
| 15149 var pathOffset = 0; | 15281 var pathOffset = 0; |
| 15150 var index; | 15282 var index; |
| 15151 var subPart; | 15283 var subPart; |
| 15152 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15284 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15153 pathOffset += 1; | 15285 pathOffset += 1; |
| 15154 | 15286 |
| 15155 var query = (req.url).query; | 15287 var query = (req.url).query; |
| 15156 var queryOffset = 0; | 15288 var queryOffset = 0; |
| 15157 var queryMap = {}; | 15289 var queryMap = {}; |
| 15158 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15290 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15159 parseBool(n) { | 15291 parseBool(n) { |
| 15160 if (n == "true") return true; | 15292 if (n == "true") return true; |
| 15161 if (n == "false") return false; | 15293 if (n == "false") return false; |
| 15162 if (n == null) return null; | 15294 if (n == null) return null; |
| 15163 throw new core.ArgumentError("Invalid boolean: $n"); | 15295 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15164 } | 15296 } |
| 15165 if (query.length > 0) { | 15297 if (query.length > 0) { |
| 15166 for (var part in query.split("&")) { | 15298 for (var part in query.split("&")) { |
| 15167 var keyvalue = part.split("="); | 15299 var keyvalue = part.split("="); |
| 15168 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15300 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15169 } | 15301 } |
| 15170 } | 15302 } |
| 15303 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15171 | 15304 |
| 15172 | 15305 |
| 15173 var h = { | 15306 var h = { |
| 15174 "content-type" : "application/json; charset=utf-8", | 15307 "content-type" : "application/json; charset=utf-8", |
| 15175 }; | 15308 }; |
| 15176 var resp = convert.JSON.encode(buildOperation()); | 15309 var resp = convert.JSON.encode(buildOperation()); |
| 15177 return new async.Future.value(stringResponse(200, h, resp)); | 15310 return new async.Future.value(stringResponse(200, h, resp)); |
| 15178 }), true); | 15311 }), true); |
| 15179 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 15312 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 15180 checkOperation(response); | 15313 checkOperation(response); |
| 15181 }))); | 15314 }))); |
| 15182 }); | 15315 }); |
| 15183 | 15316 |
| 15184 unittest.test("method--list", () { | 15317 unittest.test("method--list", () { |
| 15185 | 15318 |
| 15186 var mock = new HttpServerMock(); | 15319 var mock = new HttpServerMock(); |
| 15187 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 15320 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 15188 var arg_project = "foo"; | 15321 var arg_project = "foo"; |
| 15189 var arg_filter = "foo"; | 15322 var arg_filter = "foo"; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15234 }); | 15367 }); |
| 15235 | 15368 |
| 15236 | 15369 |
| 15237 unittest.group("resource-GlobalForwardingRulesResourceApi", () { | 15370 unittest.group("resource-GlobalForwardingRulesResourceApi", () { |
| 15238 unittest.test("method--delete", () { | 15371 unittest.test("method--delete", () { |
| 15239 | 15372 |
| 15240 var mock = new HttpServerMock(); | 15373 var mock = new HttpServerMock(); |
| 15241 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 15374 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 15242 var arg_project = "foo"; | 15375 var arg_project = "foo"; |
| 15243 var arg_forwardingRule = "foo"; | 15376 var arg_forwardingRule = "foo"; |
| 15377 var arg_requestId = "foo"; |
| 15244 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15378 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15245 var path = (req.url).path; | 15379 var path = (req.url).path; |
| 15246 var pathOffset = 0; | 15380 var pathOffset = 0; |
| 15247 var index; | 15381 var index; |
| 15248 var subPart; | 15382 var subPart; |
| 15249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15383 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15250 pathOffset += 1; | 15384 pathOffset += 1; |
| 15251 | 15385 |
| 15252 var query = (req.url).query; | 15386 var query = (req.url).query; |
| 15253 var queryOffset = 0; | 15387 var queryOffset = 0; |
| 15254 var queryMap = {}; | 15388 var queryMap = {}; |
| 15255 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15389 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15256 parseBool(n) { | 15390 parseBool(n) { |
| 15257 if (n == "true") return true; | 15391 if (n == "true") return true; |
| 15258 if (n == "false") return false; | 15392 if (n == "false") return false; |
| 15259 if (n == null) return null; | 15393 if (n == null) return null; |
| 15260 throw new core.ArgumentError("Invalid boolean: $n"); | 15394 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15261 } | 15395 } |
| 15262 if (query.length > 0) { | 15396 if (query.length > 0) { |
| 15263 for (var part in query.split("&")) { | 15397 for (var part in query.split("&")) { |
| 15264 var keyvalue = part.split("="); | 15398 var keyvalue = part.split("="); |
| 15265 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15399 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15266 } | 15400 } |
| 15267 } | 15401 } |
| 15402 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15268 | 15403 |
| 15269 | 15404 |
| 15270 var h = { | 15405 var h = { |
| 15271 "content-type" : "application/json; charset=utf-8", | 15406 "content-type" : "application/json; charset=utf-8", |
| 15272 }; | 15407 }; |
| 15273 var resp = convert.JSON.encode(buildOperation()); | 15408 var resp = convert.JSON.encode(buildOperation()); |
| 15274 return new async.Future.value(stringResponse(200, h, resp)); | 15409 return new async.Future.value(stringResponse(200, h, resp)); |
| 15275 }), true); | 15410 }), true); |
| 15276 res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync1(((a
pi.Operation response) { | 15411 res.delete(arg_project, arg_forwardingRule, requestId: arg_requestId).then
(unittest.expectAsync1(((api.Operation response) { |
| 15277 checkOperation(response); | 15412 checkOperation(response); |
| 15278 }))); | 15413 }))); |
| 15279 }); | 15414 }); |
| 15280 | 15415 |
| 15281 unittest.test("method--get", () { | 15416 unittest.test("method--get", () { |
| 15282 | 15417 |
| 15283 var mock = new HttpServerMock(); | 15418 var mock = new HttpServerMock(); |
| 15284 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 15419 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 15285 var arg_project = "foo"; | 15420 var arg_project = "foo"; |
| 15286 var arg_forwardingRule = "foo"; | 15421 var arg_forwardingRule = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15320 checkForwardingRule(response); | 15455 checkForwardingRule(response); |
| 15321 }))); | 15456 }))); |
| 15322 }); | 15457 }); |
| 15323 | 15458 |
| 15324 unittest.test("method--insert", () { | 15459 unittest.test("method--insert", () { |
| 15325 | 15460 |
| 15326 var mock = new HttpServerMock(); | 15461 var mock = new HttpServerMock(); |
| 15327 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 15462 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 15328 var arg_request = buildForwardingRule(); | 15463 var arg_request = buildForwardingRule(); |
| 15329 var arg_project = "foo"; | 15464 var arg_project = "foo"; |
| 15465 var arg_requestId = "foo"; |
| 15330 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15466 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15331 var obj = new api.ForwardingRule.fromJson(json); | 15467 var obj = new api.ForwardingRule.fromJson(json); |
| 15332 checkForwardingRule(obj); | 15468 checkForwardingRule(obj); |
| 15333 | 15469 |
| 15334 var path = (req.url).path; | 15470 var path = (req.url).path; |
| 15335 var pathOffset = 0; | 15471 var pathOffset = 0; |
| 15336 var index; | 15472 var index; |
| 15337 var subPart; | 15473 var subPart; |
| 15338 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15474 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15339 pathOffset += 1; | 15475 pathOffset += 1; |
| 15340 | 15476 |
| 15341 var query = (req.url).query; | 15477 var query = (req.url).query; |
| 15342 var queryOffset = 0; | 15478 var queryOffset = 0; |
| 15343 var queryMap = {}; | 15479 var queryMap = {}; |
| 15344 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15480 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15345 parseBool(n) { | 15481 parseBool(n) { |
| 15346 if (n == "true") return true; | 15482 if (n == "true") return true; |
| 15347 if (n == "false") return false; | 15483 if (n == "false") return false; |
| 15348 if (n == null) return null; | 15484 if (n == null) return null; |
| 15349 throw new core.ArgumentError("Invalid boolean: $n"); | 15485 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15350 } | 15486 } |
| 15351 if (query.length > 0) { | 15487 if (query.length > 0) { |
| 15352 for (var part in query.split("&")) { | 15488 for (var part in query.split("&")) { |
| 15353 var keyvalue = part.split("="); | 15489 var keyvalue = part.split("="); |
| 15354 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15490 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15355 } | 15491 } |
| 15356 } | 15492 } |
| 15493 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15357 | 15494 |
| 15358 | 15495 |
| 15359 var h = { | 15496 var h = { |
| 15360 "content-type" : "application/json; charset=utf-8", | 15497 "content-type" : "application/json; charset=utf-8", |
| 15361 }; | 15498 }; |
| 15362 var resp = convert.JSON.encode(buildOperation()); | 15499 var resp = convert.JSON.encode(buildOperation()); |
| 15363 return new async.Future.value(stringResponse(200, h, resp)); | 15500 return new async.Future.value(stringResponse(200, h, resp)); |
| 15364 }), true); | 15501 }), true); |
| 15365 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 15502 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 15366 checkOperation(response); | 15503 checkOperation(response); |
| 15367 }))); | 15504 }))); |
| 15368 }); | 15505 }); |
| 15369 | 15506 |
| 15370 unittest.test("method--list", () { | 15507 unittest.test("method--list", () { |
| 15371 | 15508 |
| 15372 var mock = new HttpServerMock(); | 15509 var mock = new HttpServerMock(); |
| 15373 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 15510 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 15374 var arg_project = "foo"; | 15511 var arg_project = "foo"; |
| 15375 var arg_filter = "foo"; | 15512 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15417 }))); | 15554 }))); |
| 15418 }); | 15555 }); |
| 15419 | 15556 |
| 15420 unittest.test("method--setTarget", () { | 15557 unittest.test("method--setTarget", () { |
| 15421 | 15558 |
| 15422 var mock = new HttpServerMock(); | 15559 var mock = new HttpServerMock(); |
| 15423 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 15560 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 15424 var arg_request = buildTargetReference(); | 15561 var arg_request = buildTargetReference(); |
| 15425 var arg_project = "foo"; | 15562 var arg_project = "foo"; |
| 15426 var arg_forwardingRule = "foo"; | 15563 var arg_forwardingRule = "foo"; |
| 15564 var arg_requestId = "foo"; |
| 15427 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15565 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15428 var obj = new api.TargetReference.fromJson(json); | 15566 var obj = new api.TargetReference.fromJson(json); |
| 15429 checkTargetReference(obj); | 15567 checkTargetReference(obj); |
| 15430 | 15568 |
| 15431 var path = (req.url).path; | 15569 var path = (req.url).path; |
| 15432 var pathOffset = 0; | 15570 var pathOffset = 0; |
| 15433 var index; | 15571 var index; |
| 15434 var subPart; | 15572 var subPart; |
| 15435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15436 pathOffset += 1; | 15574 pathOffset += 1; |
| 15437 | 15575 |
| 15438 var query = (req.url).query; | 15576 var query = (req.url).query; |
| 15439 var queryOffset = 0; | 15577 var queryOffset = 0; |
| 15440 var queryMap = {}; | 15578 var queryMap = {}; |
| 15441 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15579 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15442 parseBool(n) { | 15580 parseBool(n) { |
| 15443 if (n == "true") return true; | 15581 if (n == "true") return true; |
| 15444 if (n == "false") return false; | 15582 if (n == "false") return false; |
| 15445 if (n == null) return null; | 15583 if (n == null) return null; |
| 15446 throw new core.ArgumentError("Invalid boolean: $n"); | 15584 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15447 } | 15585 } |
| 15448 if (query.length > 0) { | 15586 if (query.length > 0) { |
| 15449 for (var part in query.split("&")) { | 15587 for (var part in query.split("&")) { |
| 15450 var keyvalue = part.split("="); | 15588 var keyvalue = part.split("="); |
| 15451 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15589 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15452 } | 15590 } |
| 15453 } | 15591 } |
| 15592 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15454 | 15593 |
| 15455 | 15594 |
| 15456 var h = { | 15595 var h = { |
| 15457 "content-type" : "application/json; charset=utf-8", | 15596 "content-type" : "application/json; charset=utf-8", |
| 15458 }; | 15597 }; |
| 15459 var resp = convert.JSON.encode(buildOperation()); | 15598 var resp = convert.JSON.encode(buildOperation()); |
| 15460 return new async.Future.value(stringResponse(200, h, resp)); | 15599 return new async.Future.value(stringResponse(200, h, resp)); |
| 15461 }), true); | 15600 }), true); |
| 15462 res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.
expectAsync1(((api.Operation response) { | 15601 res.setTarget(arg_request, arg_project, arg_forwardingRule, requestId: arg
_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 15463 checkOperation(response); | 15602 checkOperation(response); |
| 15464 }))); | 15603 }))); |
| 15465 }); | 15604 }); |
| 15466 | 15605 |
| 15467 }); | 15606 }); |
| 15468 | 15607 |
| 15469 | 15608 |
| 15470 unittest.group("resource-GlobalOperationsResourceApi", () { | 15609 unittest.group("resource-GlobalOperationsResourceApi", () { |
| 15471 unittest.test("method--aggregatedList", () { | 15610 unittest.test("method--aggregatedList", () { |
| 15472 | 15611 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15655 }); | 15794 }); |
| 15656 | 15795 |
| 15657 | 15796 |
| 15658 unittest.group("resource-HealthChecksResourceApi", () { | 15797 unittest.group("resource-HealthChecksResourceApi", () { |
| 15659 unittest.test("method--delete", () { | 15798 unittest.test("method--delete", () { |
| 15660 | 15799 |
| 15661 var mock = new HttpServerMock(); | 15800 var mock = new HttpServerMock(); |
| 15662 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 15801 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 15663 var arg_project = "foo"; | 15802 var arg_project = "foo"; |
| 15664 var arg_healthCheck = "foo"; | 15803 var arg_healthCheck = "foo"; |
| 15804 var arg_requestId = "foo"; |
| 15665 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15805 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15666 var path = (req.url).path; | 15806 var path = (req.url).path; |
| 15667 var pathOffset = 0; | 15807 var pathOffset = 0; |
| 15668 var index; | 15808 var index; |
| 15669 var subPart; | 15809 var subPart; |
| 15670 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15810 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15671 pathOffset += 1; | 15811 pathOffset += 1; |
| 15672 | 15812 |
| 15673 var query = (req.url).query; | 15813 var query = (req.url).query; |
| 15674 var queryOffset = 0; | 15814 var queryOffset = 0; |
| 15675 var queryMap = {}; | 15815 var queryMap = {}; |
| 15676 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15816 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15677 parseBool(n) { | 15817 parseBool(n) { |
| 15678 if (n == "true") return true; | 15818 if (n == "true") return true; |
| 15679 if (n == "false") return false; | 15819 if (n == "false") return false; |
| 15680 if (n == null) return null; | 15820 if (n == null) return null; |
| 15681 throw new core.ArgumentError("Invalid boolean: $n"); | 15821 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15682 } | 15822 } |
| 15683 if (query.length > 0) { | 15823 if (query.length > 0) { |
| 15684 for (var part in query.split("&")) { | 15824 for (var part in query.split("&")) { |
| 15685 var keyvalue = part.split("="); | 15825 var keyvalue = part.split("="); |
| 15686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15826 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15687 } | 15827 } |
| 15688 } | 15828 } |
| 15829 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15689 | 15830 |
| 15690 | 15831 |
| 15691 var h = { | 15832 var h = { |
| 15692 "content-type" : "application/json; charset=utf-8", | 15833 "content-type" : "application/json; charset=utf-8", |
| 15693 }; | 15834 }; |
| 15694 var resp = convert.JSON.encode(buildOperation()); | 15835 var resp = convert.JSON.encode(buildOperation()); |
| 15695 return new async.Future.value(stringResponse(200, h, resp)); | 15836 return new async.Future.value(stringResponse(200, h, resp)); |
| 15696 }), true); | 15837 }), true); |
| 15697 res.delete(arg_project, arg_healthCheck).then(unittest.expectAsync1(((api.
Operation response) { | 15838 res.delete(arg_project, arg_healthCheck, requestId: arg_requestId).then(un
ittest.expectAsync1(((api.Operation response) { |
| 15698 checkOperation(response); | 15839 checkOperation(response); |
| 15699 }))); | 15840 }))); |
| 15700 }); | 15841 }); |
| 15701 | 15842 |
| 15702 unittest.test("method--get", () { | 15843 unittest.test("method--get", () { |
| 15703 | 15844 |
| 15704 var mock = new HttpServerMock(); | 15845 var mock = new HttpServerMock(); |
| 15705 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 15846 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 15706 var arg_project = "foo"; | 15847 var arg_project = "foo"; |
| 15707 var arg_healthCheck = "foo"; | 15848 var arg_healthCheck = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15741 checkHealthCheck(response); | 15882 checkHealthCheck(response); |
| 15742 }))); | 15883 }))); |
| 15743 }); | 15884 }); |
| 15744 | 15885 |
| 15745 unittest.test("method--insert", () { | 15886 unittest.test("method--insert", () { |
| 15746 | 15887 |
| 15747 var mock = new HttpServerMock(); | 15888 var mock = new HttpServerMock(); |
| 15748 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 15889 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 15749 var arg_request = buildHealthCheck(); | 15890 var arg_request = buildHealthCheck(); |
| 15750 var arg_project = "foo"; | 15891 var arg_project = "foo"; |
| 15892 var arg_requestId = "foo"; |
| 15751 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15893 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15752 var obj = new api.HealthCheck.fromJson(json); | 15894 var obj = new api.HealthCheck.fromJson(json); |
| 15753 checkHealthCheck(obj); | 15895 checkHealthCheck(obj); |
| 15754 | 15896 |
| 15755 var path = (req.url).path; | 15897 var path = (req.url).path; |
| 15756 var pathOffset = 0; | 15898 var pathOffset = 0; |
| 15757 var index; | 15899 var index; |
| 15758 var subPart; | 15900 var subPart; |
| 15759 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 15901 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15760 pathOffset += 1; | 15902 pathOffset += 1; |
| 15761 | 15903 |
| 15762 var query = (req.url).query; | 15904 var query = (req.url).query; |
| 15763 var queryOffset = 0; | 15905 var queryOffset = 0; |
| 15764 var queryMap = {}; | 15906 var queryMap = {}; |
| 15765 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 15907 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15766 parseBool(n) { | 15908 parseBool(n) { |
| 15767 if (n == "true") return true; | 15909 if (n == "true") return true; |
| 15768 if (n == "false") return false; | 15910 if (n == "false") return false; |
| 15769 if (n == null) return null; | 15911 if (n == null) return null; |
| 15770 throw new core.ArgumentError("Invalid boolean: $n"); | 15912 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15771 } | 15913 } |
| 15772 if (query.length > 0) { | 15914 if (query.length > 0) { |
| 15773 for (var part in query.split("&")) { | 15915 for (var part in query.split("&")) { |
| 15774 var keyvalue = part.split("="); | 15916 var keyvalue = part.split("="); |
| 15775 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 15917 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15776 } | 15918 } |
| 15777 } | 15919 } |
| 15920 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15778 | 15921 |
| 15779 | 15922 |
| 15780 var h = { | 15923 var h = { |
| 15781 "content-type" : "application/json; charset=utf-8", | 15924 "content-type" : "application/json; charset=utf-8", |
| 15782 }; | 15925 }; |
| 15783 var resp = convert.JSON.encode(buildOperation()); | 15926 var resp = convert.JSON.encode(buildOperation()); |
| 15784 return new async.Future.value(stringResponse(200, h, resp)); | 15927 return new async.Future.value(stringResponse(200, h, resp)); |
| 15785 }), true); | 15928 }), true); |
| 15786 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 15929 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 15787 checkOperation(response); | 15930 checkOperation(response); |
| 15788 }))); | 15931 }))); |
| 15789 }); | 15932 }); |
| 15790 | 15933 |
| 15791 unittest.test("method--list", () { | 15934 unittest.test("method--list", () { |
| 15792 | 15935 |
| 15793 var mock = new HttpServerMock(); | 15936 var mock = new HttpServerMock(); |
| 15794 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 15937 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 15795 var arg_project = "foo"; | 15938 var arg_project = "foo"; |
| 15796 var arg_filter = "foo"; | 15939 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15838 }))); | 15981 }))); |
| 15839 }); | 15982 }); |
| 15840 | 15983 |
| 15841 unittest.test("method--patch", () { | 15984 unittest.test("method--patch", () { |
| 15842 | 15985 |
| 15843 var mock = new HttpServerMock(); | 15986 var mock = new HttpServerMock(); |
| 15844 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 15987 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 15845 var arg_request = buildHealthCheck(); | 15988 var arg_request = buildHealthCheck(); |
| 15846 var arg_project = "foo"; | 15989 var arg_project = "foo"; |
| 15847 var arg_healthCheck = "foo"; | 15990 var arg_healthCheck = "foo"; |
| 15991 var arg_requestId = "foo"; |
| 15848 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 15992 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15849 var obj = new api.HealthCheck.fromJson(json); | 15993 var obj = new api.HealthCheck.fromJson(json); |
| 15850 checkHealthCheck(obj); | 15994 checkHealthCheck(obj); |
| 15851 | 15995 |
| 15852 var path = (req.url).path; | 15996 var path = (req.url).path; |
| 15853 var pathOffset = 0; | 15997 var pathOffset = 0; |
| 15854 var index; | 15998 var index; |
| 15855 var subPart; | 15999 var subPart; |
| 15856 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16000 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15857 pathOffset += 1; | 16001 pathOffset += 1; |
| 15858 | 16002 |
| 15859 var query = (req.url).query; | 16003 var query = (req.url).query; |
| 15860 var queryOffset = 0; | 16004 var queryOffset = 0; |
| 15861 var queryMap = {}; | 16005 var queryMap = {}; |
| 15862 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16006 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15863 parseBool(n) { | 16007 parseBool(n) { |
| 15864 if (n == "true") return true; | 16008 if (n == "true") return true; |
| 15865 if (n == "false") return false; | 16009 if (n == "false") return false; |
| 15866 if (n == null) return null; | 16010 if (n == null) return null; |
| 15867 throw new core.ArgumentError("Invalid boolean: $n"); | 16011 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15868 } | 16012 } |
| 15869 if (query.length > 0) { | 16013 if (query.length > 0) { |
| 15870 for (var part in query.split("&")) { | 16014 for (var part in query.split("&")) { |
| 15871 var keyvalue = part.split("="); | 16015 var keyvalue = part.split("="); |
| 15872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16016 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15873 } | 16017 } |
| 15874 } | 16018 } |
| 16019 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15875 | 16020 |
| 15876 | 16021 |
| 15877 var h = { | 16022 var h = { |
| 15878 "content-type" : "application/json; charset=utf-8", | 16023 "content-type" : "application/json; charset=utf-8", |
| 15879 }; | 16024 }; |
| 15880 var resp = convert.JSON.encode(buildOperation()); | 16025 var resp = convert.JSON.encode(buildOperation()); |
| 15881 return new async.Future.value(stringResponse(200, h, resp)); | 16026 return new async.Future.value(stringResponse(200, h, resp)); |
| 15882 }), true); | 16027 }), true); |
| 15883 res.patch(arg_request, arg_project, arg_healthCheck).then(unittest.expectA
sync1(((api.Operation response) { | 16028 res.patch(arg_request, arg_project, arg_healthCheck, requestId: arg_reques
tId).then(unittest.expectAsync1(((api.Operation response) { |
| 15884 checkOperation(response); | 16029 checkOperation(response); |
| 15885 }))); | 16030 }))); |
| 15886 }); | 16031 }); |
| 15887 | 16032 |
| 15888 unittest.test("method--update", () { | 16033 unittest.test("method--update", () { |
| 15889 | 16034 |
| 15890 var mock = new HttpServerMock(); | 16035 var mock = new HttpServerMock(); |
| 15891 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; | 16036 api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; |
| 15892 var arg_request = buildHealthCheck(); | 16037 var arg_request = buildHealthCheck(); |
| 15893 var arg_project = "foo"; | 16038 var arg_project = "foo"; |
| 15894 var arg_healthCheck = "foo"; | 16039 var arg_healthCheck = "foo"; |
| 16040 var arg_requestId = "foo"; |
| 15895 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16041 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15896 var obj = new api.HealthCheck.fromJson(json); | 16042 var obj = new api.HealthCheck.fromJson(json); |
| 15897 checkHealthCheck(obj); | 16043 checkHealthCheck(obj); |
| 15898 | 16044 |
| 15899 var path = (req.url).path; | 16045 var path = (req.url).path; |
| 15900 var pathOffset = 0; | 16046 var pathOffset = 0; |
| 15901 var index; | 16047 var index; |
| 15902 var subPart; | 16048 var subPart; |
| 15903 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16049 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15904 pathOffset += 1; | 16050 pathOffset += 1; |
| 15905 | 16051 |
| 15906 var query = (req.url).query; | 16052 var query = (req.url).query; |
| 15907 var queryOffset = 0; | 16053 var queryOffset = 0; |
| 15908 var queryMap = {}; | 16054 var queryMap = {}; |
| 15909 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16055 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15910 parseBool(n) { | 16056 parseBool(n) { |
| 15911 if (n == "true") return true; | 16057 if (n == "true") return true; |
| 15912 if (n == "false") return false; | 16058 if (n == "false") return false; |
| 15913 if (n == null) return null; | 16059 if (n == null) return null; |
| 15914 throw new core.ArgumentError("Invalid boolean: $n"); | 16060 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15915 } | 16061 } |
| 15916 if (query.length > 0) { | 16062 if (query.length > 0) { |
| 15917 for (var part in query.split("&")) { | 16063 for (var part in query.split("&")) { |
| 15918 var keyvalue = part.split("="); | 16064 var keyvalue = part.split("="); |
| 15919 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16065 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15920 } | 16066 } |
| 15921 } | 16067 } |
| 16068 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15922 | 16069 |
| 15923 | 16070 |
| 15924 var h = { | 16071 var h = { |
| 15925 "content-type" : "application/json; charset=utf-8", | 16072 "content-type" : "application/json; charset=utf-8", |
| 15926 }; | 16073 }; |
| 15927 var resp = convert.JSON.encode(buildOperation()); | 16074 var resp = convert.JSON.encode(buildOperation()); |
| 15928 return new async.Future.value(stringResponse(200, h, resp)); | 16075 return new async.Future.value(stringResponse(200, h, resp)); |
| 15929 }), true); | 16076 }), true); |
| 15930 res.update(arg_request, arg_project, arg_healthCheck).then(unittest.expect
Async1(((api.Operation response) { | 16077 res.update(arg_request, arg_project, arg_healthCheck, requestId: arg_reque
stId).then(unittest.expectAsync1(((api.Operation response) { |
| 15931 checkOperation(response); | 16078 checkOperation(response); |
| 15932 }))); | 16079 }))); |
| 15933 }); | 16080 }); |
| 15934 | 16081 |
| 15935 }); | 16082 }); |
| 15936 | 16083 |
| 15937 | 16084 |
| 15938 unittest.group("resource-HttpHealthChecksResourceApi", () { | 16085 unittest.group("resource-HttpHealthChecksResourceApi", () { |
| 15939 unittest.test("method--delete", () { | 16086 unittest.test("method--delete", () { |
| 15940 | 16087 |
| 15941 var mock = new HttpServerMock(); | 16088 var mock = new HttpServerMock(); |
| 15942 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 16089 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 15943 var arg_project = "foo"; | 16090 var arg_project = "foo"; |
| 15944 var arg_httpHealthCheck = "foo"; | 16091 var arg_httpHealthCheck = "foo"; |
| 16092 var arg_requestId = "foo"; |
| 15945 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16093 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 15946 var path = (req.url).path; | 16094 var path = (req.url).path; |
| 15947 var pathOffset = 0; | 16095 var pathOffset = 0; |
| 15948 var index; | 16096 var index; |
| 15949 var subPart; | 16097 var subPart; |
| 15950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 15951 pathOffset += 1; | 16099 pathOffset += 1; |
| 15952 | 16100 |
| 15953 var query = (req.url).query; | 16101 var query = (req.url).query; |
| 15954 var queryOffset = 0; | 16102 var queryOffset = 0; |
| 15955 var queryMap = {}; | 16103 var queryMap = {}; |
| 15956 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16104 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 15957 parseBool(n) { | 16105 parseBool(n) { |
| 15958 if (n == "true") return true; | 16106 if (n == "true") return true; |
| 15959 if (n == "false") return false; | 16107 if (n == "false") return false; |
| 15960 if (n == null) return null; | 16108 if (n == null) return null; |
| 15961 throw new core.ArgumentError("Invalid boolean: $n"); | 16109 throw new core.ArgumentError("Invalid boolean: $n"); |
| 15962 } | 16110 } |
| 15963 if (query.length > 0) { | 16111 if (query.length > 0) { |
| 15964 for (var part in query.split("&")) { | 16112 for (var part in query.split("&")) { |
| 15965 var keyvalue = part.split("="); | 16113 var keyvalue = part.split("="); |
| 15966 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16114 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 15967 } | 16115 } |
| 15968 } | 16116 } |
| 16117 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 15969 | 16118 |
| 15970 | 16119 |
| 15971 var h = { | 16120 var h = { |
| 15972 "content-type" : "application/json; charset=utf-8", | 16121 "content-type" : "application/json; charset=utf-8", |
| 15973 }; | 16122 }; |
| 15974 var resp = convert.JSON.encode(buildOperation()); | 16123 var resp = convert.JSON.encode(buildOperation()); |
| 15975 return new async.Future.value(stringResponse(200, h, resp)); | 16124 return new async.Future.value(stringResponse(200, h, resp)); |
| 15976 }), true); | 16125 }), true); |
| 15977 res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync1(((
api.Operation response) { | 16126 res.delete(arg_project, arg_httpHealthCheck, requestId: arg_requestId).the
n(unittest.expectAsync1(((api.Operation response) { |
| 15978 checkOperation(response); | 16127 checkOperation(response); |
| 15979 }))); | 16128 }))); |
| 15980 }); | 16129 }); |
| 15981 | 16130 |
| 15982 unittest.test("method--get", () { | 16131 unittest.test("method--get", () { |
| 15983 | 16132 |
| 15984 var mock = new HttpServerMock(); | 16133 var mock = new HttpServerMock(); |
| 15985 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 16134 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 15986 var arg_project = "foo"; | 16135 var arg_project = "foo"; |
| 15987 var arg_httpHealthCheck = "foo"; | 16136 var arg_httpHealthCheck = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16021 checkHttpHealthCheck(response); | 16170 checkHttpHealthCheck(response); |
| 16022 }))); | 16171 }))); |
| 16023 }); | 16172 }); |
| 16024 | 16173 |
| 16025 unittest.test("method--insert", () { | 16174 unittest.test("method--insert", () { |
| 16026 | 16175 |
| 16027 var mock = new HttpServerMock(); | 16176 var mock = new HttpServerMock(); |
| 16028 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 16177 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 16029 var arg_request = buildHttpHealthCheck(); | 16178 var arg_request = buildHttpHealthCheck(); |
| 16030 var arg_project = "foo"; | 16179 var arg_project = "foo"; |
| 16180 var arg_requestId = "foo"; |
| 16031 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16181 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16032 var obj = new api.HttpHealthCheck.fromJson(json); | 16182 var obj = new api.HttpHealthCheck.fromJson(json); |
| 16033 checkHttpHealthCheck(obj); | 16183 checkHttpHealthCheck(obj); |
| 16034 | 16184 |
| 16035 var path = (req.url).path; | 16185 var path = (req.url).path; |
| 16036 var pathOffset = 0; | 16186 var pathOffset = 0; |
| 16037 var index; | 16187 var index; |
| 16038 var subPart; | 16188 var subPart; |
| 16039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16189 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16040 pathOffset += 1; | 16190 pathOffset += 1; |
| 16041 | 16191 |
| 16042 var query = (req.url).query; | 16192 var query = (req.url).query; |
| 16043 var queryOffset = 0; | 16193 var queryOffset = 0; |
| 16044 var queryMap = {}; | 16194 var queryMap = {}; |
| 16045 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16046 parseBool(n) { | 16196 parseBool(n) { |
| 16047 if (n == "true") return true; | 16197 if (n == "true") return true; |
| 16048 if (n == "false") return false; | 16198 if (n == "false") return false; |
| 16049 if (n == null) return null; | 16199 if (n == null) return null; |
| 16050 throw new core.ArgumentError("Invalid boolean: $n"); | 16200 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16051 } | 16201 } |
| 16052 if (query.length > 0) { | 16202 if (query.length > 0) { |
| 16053 for (var part in query.split("&")) { | 16203 for (var part in query.split("&")) { |
| 16054 var keyvalue = part.split("="); | 16204 var keyvalue = part.split("="); |
| 16055 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16205 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16056 } | 16206 } |
| 16057 } | 16207 } |
| 16208 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16058 | 16209 |
| 16059 | 16210 |
| 16060 var h = { | 16211 var h = { |
| 16061 "content-type" : "application/json; charset=utf-8", | 16212 "content-type" : "application/json; charset=utf-8", |
| 16062 }; | 16213 }; |
| 16063 var resp = convert.JSON.encode(buildOperation()); | 16214 var resp = convert.JSON.encode(buildOperation()); |
| 16064 return new async.Future.value(stringResponse(200, h, resp)); | 16215 return new async.Future.value(stringResponse(200, h, resp)); |
| 16065 }), true); | 16216 }), true); |
| 16066 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 16217 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 16067 checkOperation(response); | 16218 checkOperation(response); |
| 16068 }))); | 16219 }))); |
| 16069 }); | 16220 }); |
| 16070 | 16221 |
| 16071 unittest.test("method--list", () { | 16222 unittest.test("method--list", () { |
| 16072 | 16223 |
| 16073 var mock = new HttpServerMock(); | 16224 var mock = new HttpServerMock(); |
| 16074 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 16225 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 16075 var arg_project = "foo"; | 16226 var arg_project = "foo"; |
| 16076 var arg_filter = "foo"; | 16227 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16118 }))); | 16269 }))); |
| 16119 }); | 16270 }); |
| 16120 | 16271 |
| 16121 unittest.test("method--patch", () { | 16272 unittest.test("method--patch", () { |
| 16122 | 16273 |
| 16123 var mock = new HttpServerMock(); | 16274 var mock = new HttpServerMock(); |
| 16124 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 16275 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 16125 var arg_request = buildHttpHealthCheck(); | 16276 var arg_request = buildHttpHealthCheck(); |
| 16126 var arg_project = "foo"; | 16277 var arg_project = "foo"; |
| 16127 var arg_httpHealthCheck = "foo"; | 16278 var arg_httpHealthCheck = "foo"; |
| 16279 var arg_requestId = "foo"; |
| 16128 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16280 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16129 var obj = new api.HttpHealthCheck.fromJson(json); | 16281 var obj = new api.HttpHealthCheck.fromJson(json); |
| 16130 checkHttpHealthCheck(obj); | 16282 checkHttpHealthCheck(obj); |
| 16131 | 16283 |
| 16132 var path = (req.url).path; | 16284 var path = (req.url).path; |
| 16133 var pathOffset = 0; | 16285 var pathOffset = 0; |
| 16134 var index; | 16286 var index; |
| 16135 var subPart; | 16287 var subPart; |
| 16136 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16288 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16137 pathOffset += 1; | 16289 pathOffset += 1; |
| 16138 | 16290 |
| 16139 var query = (req.url).query; | 16291 var query = (req.url).query; |
| 16140 var queryOffset = 0; | 16292 var queryOffset = 0; |
| 16141 var queryMap = {}; | 16293 var queryMap = {}; |
| 16142 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16294 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16143 parseBool(n) { | 16295 parseBool(n) { |
| 16144 if (n == "true") return true; | 16296 if (n == "true") return true; |
| 16145 if (n == "false") return false; | 16297 if (n == "false") return false; |
| 16146 if (n == null) return null; | 16298 if (n == null) return null; |
| 16147 throw new core.ArgumentError("Invalid boolean: $n"); | 16299 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16148 } | 16300 } |
| 16149 if (query.length > 0) { | 16301 if (query.length > 0) { |
| 16150 for (var part in query.split("&")) { | 16302 for (var part in query.split("&")) { |
| 16151 var keyvalue = part.split("="); | 16303 var keyvalue = part.split("="); |
| 16152 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16304 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16153 } | 16305 } |
| 16154 } | 16306 } |
| 16307 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16155 | 16308 |
| 16156 | 16309 |
| 16157 var h = { | 16310 var h = { |
| 16158 "content-type" : "application/json; charset=utf-8", | 16311 "content-type" : "application/json; charset=utf-8", |
| 16159 }; | 16312 }; |
| 16160 var resp = convert.JSON.encode(buildOperation()); | 16313 var resp = convert.JSON.encode(buildOperation()); |
| 16161 return new async.Future.value(stringResponse(200, h, resp)); | 16314 return new async.Future.value(stringResponse(200, h, resp)); |
| 16162 }), true); | 16315 }), true); |
| 16163 res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.exp
ectAsync1(((api.Operation response) { | 16316 res.patch(arg_request, arg_project, arg_httpHealthCheck, requestId: arg_re
questId).then(unittest.expectAsync1(((api.Operation response) { |
| 16164 checkOperation(response); | 16317 checkOperation(response); |
| 16165 }))); | 16318 }))); |
| 16166 }); | 16319 }); |
| 16167 | 16320 |
| 16168 unittest.test("method--update", () { | 16321 unittest.test("method--update", () { |
| 16169 | 16322 |
| 16170 var mock = new HttpServerMock(); | 16323 var mock = new HttpServerMock(); |
| 16171 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 16324 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 16172 var arg_request = buildHttpHealthCheck(); | 16325 var arg_request = buildHttpHealthCheck(); |
| 16173 var arg_project = "foo"; | 16326 var arg_project = "foo"; |
| 16174 var arg_httpHealthCheck = "foo"; | 16327 var arg_httpHealthCheck = "foo"; |
| 16328 var arg_requestId = "foo"; |
| 16175 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16329 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16176 var obj = new api.HttpHealthCheck.fromJson(json); | 16330 var obj = new api.HttpHealthCheck.fromJson(json); |
| 16177 checkHttpHealthCheck(obj); | 16331 checkHttpHealthCheck(obj); |
| 16178 | 16332 |
| 16179 var path = (req.url).path; | 16333 var path = (req.url).path; |
| 16180 var pathOffset = 0; | 16334 var pathOffset = 0; |
| 16181 var index; | 16335 var index; |
| 16182 var subPart; | 16336 var subPart; |
| 16183 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16337 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16184 pathOffset += 1; | 16338 pathOffset += 1; |
| 16185 | 16339 |
| 16186 var query = (req.url).query; | 16340 var query = (req.url).query; |
| 16187 var queryOffset = 0; | 16341 var queryOffset = 0; |
| 16188 var queryMap = {}; | 16342 var queryMap = {}; |
| 16189 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16343 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16190 parseBool(n) { | 16344 parseBool(n) { |
| 16191 if (n == "true") return true; | 16345 if (n == "true") return true; |
| 16192 if (n == "false") return false; | 16346 if (n == "false") return false; |
| 16193 if (n == null) return null; | 16347 if (n == null) return null; |
| 16194 throw new core.ArgumentError("Invalid boolean: $n"); | 16348 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16195 } | 16349 } |
| 16196 if (query.length > 0) { | 16350 if (query.length > 0) { |
| 16197 for (var part in query.split("&")) { | 16351 for (var part in query.split("&")) { |
| 16198 var keyvalue = part.split("="); | 16352 var keyvalue = part.split("="); |
| 16199 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16353 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16200 } | 16354 } |
| 16201 } | 16355 } |
| 16356 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16202 | 16357 |
| 16203 | 16358 |
| 16204 var h = { | 16359 var h = { |
| 16205 "content-type" : "application/json; charset=utf-8", | 16360 "content-type" : "application/json; charset=utf-8", |
| 16206 }; | 16361 }; |
| 16207 var resp = convert.JSON.encode(buildOperation()); | 16362 var resp = convert.JSON.encode(buildOperation()); |
| 16208 return new async.Future.value(stringResponse(200, h, resp)); | 16363 return new async.Future.value(stringResponse(200, h, resp)); |
| 16209 }), true); | 16364 }), true); |
| 16210 res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.ex
pectAsync1(((api.Operation response) { | 16365 res.update(arg_request, arg_project, arg_httpHealthCheck, requestId: arg_r
equestId).then(unittest.expectAsync1(((api.Operation response) { |
| 16211 checkOperation(response); | 16366 checkOperation(response); |
| 16212 }))); | 16367 }))); |
| 16213 }); | 16368 }); |
| 16214 | 16369 |
| 16215 }); | 16370 }); |
| 16216 | 16371 |
| 16217 | 16372 |
| 16218 unittest.group("resource-HttpsHealthChecksResourceApi", () { | 16373 unittest.group("resource-HttpsHealthChecksResourceApi", () { |
| 16219 unittest.test("method--delete", () { | 16374 unittest.test("method--delete", () { |
| 16220 | 16375 |
| 16221 var mock = new HttpServerMock(); | 16376 var mock = new HttpServerMock(); |
| 16222 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 16377 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 16223 var arg_project = "foo"; | 16378 var arg_project = "foo"; |
| 16224 var arg_httpsHealthCheck = "foo"; | 16379 var arg_httpsHealthCheck = "foo"; |
| 16380 var arg_requestId = "foo"; |
| 16225 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16381 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16226 var path = (req.url).path; | 16382 var path = (req.url).path; |
| 16227 var pathOffset = 0; | 16383 var pathOffset = 0; |
| 16228 var index; | 16384 var index; |
| 16229 var subPart; | 16385 var subPart; |
| 16230 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16231 pathOffset += 1; | 16387 pathOffset += 1; |
| 16232 | 16388 |
| 16233 var query = (req.url).query; | 16389 var query = (req.url).query; |
| 16234 var queryOffset = 0; | 16390 var queryOffset = 0; |
| 16235 var queryMap = {}; | 16391 var queryMap = {}; |
| 16236 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16392 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16237 parseBool(n) { | 16393 parseBool(n) { |
| 16238 if (n == "true") return true; | 16394 if (n == "true") return true; |
| 16239 if (n == "false") return false; | 16395 if (n == "false") return false; |
| 16240 if (n == null) return null; | 16396 if (n == null) return null; |
| 16241 throw new core.ArgumentError("Invalid boolean: $n"); | 16397 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16242 } | 16398 } |
| 16243 if (query.length > 0) { | 16399 if (query.length > 0) { |
| 16244 for (var part in query.split("&")) { | 16400 for (var part in query.split("&")) { |
| 16245 var keyvalue = part.split("="); | 16401 var keyvalue = part.split("="); |
| 16246 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16402 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16247 } | 16403 } |
| 16248 } | 16404 } |
| 16405 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16249 | 16406 |
| 16250 | 16407 |
| 16251 var h = { | 16408 var h = { |
| 16252 "content-type" : "application/json; charset=utf-8", | 16409 "content-type" : "application/json; charset=utf-8", |
| 16253 }; | 16410 }; |
| 16254 var resp = convert.JSON.encode(buildOperation()); | 16411 var resp = convert.JSON.encode(buildOperation()); |
| 16255 return new async.Future.value(stringResponse(200, h, resp)); | 16412 return new async.Future.value(stringResponse(200, h, resp)); |
| 16256 }), true); | 16413 }), true); |
| 16257 res.delete(arg_project, arg_httpsHealthCheck).then(unittest.expectAsync1((
(api.Operation response) { | 16414 res.delete(arg_project, arg_httpsHealthCheck, requestId: arg_requestId).th
en(unittest.expectAsync1(((api.Operation response) { |
| 16258 checkOperation(response); | 16415 checkOperation(response); |
| 16259 }))); | 16416 }))); |
| 16260 }); | 16417 }); |
| 16261 | 16418 |
| 16262 unittest.test("method--get", () { | 16419 unittest.test("method--get", () { |
| 16263 | 16420 |
| 16264 var mock = new HttpServerMock(); | 16421 var mock = new HttpServerMock(); |
| 16265 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 16422 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 16266 var arg_project = "foo"; | 16423 var arg_project = "foo"; |
| 16267 var arg_httpsHealthCheck = "foo"; | 16424 var arg_httpsHealthCheck = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16301 checkHttpsHealthCheck(response); | 16458 checkHttpsHealthCheck(response); |
| 16302 }))); | 16459 }))); |
| 16303 }); | 16460 }); |
| 16304 | 16461 |
| 16305 unittest.test("method--insert", () { | 16462 unittest.test("method--insert", () { |
| 16306 | 16463 |
| 16307 var mock = new HttpServerMock(); | 16464 var mock = new HttpServerMock(); |
| 16308 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 16465 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 16309 var arg_request = buildHttpsHealthCheck(); | 16466 var arg_request = buildHttpsHealthCheck(); |
| 16310 var arg_project = "foo"; | 16467 var arg_project = "foo"; |
| 16468 var arg_requestId = "foo"; |
| 16311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16469 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16312 var obj = new api.HttpsHealthCheck.fromJson(json); | 16470 var obj = new api.HttpsHealthCheck.fromJson(json); |
| 16313 checkHttpsHealthCheck(obj); | 16471 checkHttpsHealthCheck(obj); |
| 16314 | 16472 |
| 16315 var path = (req.url).path; | 16473 var path = (req.url).path; |
| 16316 var pathOffset = 0; | 16474 var pathOffset = 0; |
| 16317 var index; | 16475 var index; |
| 16318 var subPart; | 16476 var subPart; |
| 16319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16477 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16320 pathOffset += 1; | 16478 pathOffset += 1; |
| 16321 | 16479 |
| 16322 var query = (req.url).query; | 16480 var query = (req.url).query; |
| 16323 var queryOffset = 0; | 16481 var queryOffset = 0; |
| 16324 var queryMap = {}; | 16482 var queryMap = {}; |
| 16325 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16483 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16326 parseBool(n) { | 16484 parseBool(n) { |
| 16327 if (n == "true") return true; | 16485 if (n == "true") return true; |
| 16328 if (n == "false") return false; | 16486 if (n == "false") return false; |
| 16329 if (n == null) return null; | 16487 if (n == null) return null; |
| 16330 throw new core.ArgumentError("Invalid boolean: $n"); | 16488 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16331 } | 16489 } |
| 16332 if (query.length > 0) { | 16490 if (query.length > 0) { |
| 16333 for (var part in query.split("&")) { | 16491 for (var part in query.split("&")) { |
| 16334 var keyvalue = part.split("="); | 16492 var keyvalue = part.split("="); |
| 16335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16493 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16336 } | 16494 } |
| 16337 } | 16495 } |
| 16496 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16338 | 16497 |
| 16339 | 16498 |
| 16340 var h = { | 16499 var h = { |
| 16341 "content-type" : "application/json; charset=utf-8", | 16500 "content-type" : "application/json; charset=utf-8", |
| 16342 }; | 16501 }; |
| 16343 var resp = convert.JSON.encode(buildOperation()); | 16502 var resp = convert.JSON.encode(buildOperation()); |
| 16344 return new async.Future.value(stringResponse(200, h, resp)); | 16503 return new async.Future.value(stringResponse(200, h, resp)); |
| 16345 }), true); | 16504 }), true); |
| 16346 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 16505 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 16347 checkOperation(response); | 16506 checkOperation(response); |
| 16348 }))); | 16507 }))); |
| 16349 }); | 16508 }); |
| 16350 | 16509 |
| 16351 unittest.test("method--list", () { | 16510 unittest.test("method--list", () { |
| 16352 | 16511 |
| 16353 var mock = new HttpServerMock(); | 16512 var mock = new HttpServerMock(); |
| 16354 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 16513 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 16355 var arg_project = "foo"; | 16514 var arg_project = "foo"; |
| 16356 var arg_filter = "foo"; | 16515 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16398 }))); | 16557 }))); |
| 16399 }); | 16558 }); |
| 16400 | 16559 |
| 16401 unittest.test("method--patch", () { | 16560 unittest.test("method--patch", () { |
| 16402 | 16561 |
| 16403 var mock = new HttpServerMock(); | 16562 var mock = new HttpServerMock(); |
| 16404 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 16563 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 16405 var arg_request = buildHttpsHealthCheck(); | 16564 var arg_request = buildHttpsHealthCheck(); |
| 16406 var arg_project = "foo"; | 16565 var arg_project = "foo"; |
| 16407 var arg_httpsHealthCheck = "foo"; | 16566 var arg_httpsHealthCheck = "foo"; |
| 16567 var arg_requestId = "foo"; |
| 16408 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16568 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16409 var obj = new api.HttpsHealthCheck.fromJson(json); | 16569 var obj = new api.HttpsHealthCheck.fromJson(json); |
| 16410 checkHttpsHealthCheck(obj); | 16570 checkHttpsHealthCheck(obj); |
| 16411 | 16571 |
| 16412 var path = (req.url).path; | 16572 var path = (req.url).path; |
| 16413 var pathOffset = 0; | 16573 var pathOffset = 0; |
| 16414 var index; | 16574 var index; |
| 16415 var subPart; | 16575 var subPart; |
| 16416 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16417 pathOffset += 1; | 16577 pathOffset += 1; |
| 16418 | 16578 |
| 16419 var query = (req.url).query; | 16579 var query = (req.url).query; |
| 16420 var queryOffset = 0; | 16580 var queryOffset = 0; |
| 16421 var queryMap = {}; | 16581 var queryMap = {}; |
| 16422 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16582 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16423 parseBool(n) { | 16583 parseBool(n) { |
| 16424 if (n == "true") return true; | 16584 if (n == "true") return true; |
| 16425 if (n == "false") return false; | 16585 if (n == "false") return false; |
| 16426 if (n == null) return null; | 16586 if (n == null) return null; |
| 16427 throw new core.ArgumentError("Invalid boolean: $n"); | 16587 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16428 } | 16588 } |
| 16429 if (query.length > 0) { | 16589 if (query.length > 0) { |
| 16430 for (var part in query.split("&")) { | 16590 for (var part in query.split("&")) { |
| 16431 var keyvalue = part.split("="); | 16591 var keyvalue = part.split("="); |
| 16432 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16592 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16433 } | 16593 } |
| 16434 } | 16594 } |
| 16595 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16435 | 16596 |
| 16436 | 16597 |
| 16437 var h = { | 16598 var h = { |
| 16438 "content-type" : "application/json; charset=utf-8", | 16599 "content-type" : "application/json; charset=utf-8", |
| 16439 }; | 16600 }; |
| 16440 var resp = convert.JSON.encode(buildOperation()); | 16601 var resp = convert.JSON.encode(buildOperation()); |
| 16441 return new async.Future.value(stringResponse(200, h, resp)); | 16602 return new async.Future.value(stringResponse(200, h, resp)); |
| 16442 }), true); | 16603 }), true); |
| 16443 res.patch(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.ex
pectAsync1(((api.Operation response) { | 16604 res.patch(arg_request, arg_project, arg_httpsHealthCheck, requestId: arg_r
equestId).then(unittest.expectAsync1(((api.Operation response) { |
| 16444 checkOperation(response); | 16605 checkOperation(response); |
| 16445 }))); | 16606 }))); |
| 16446 }); | 16607 }); |
| 16447 | 16608 |
| 16448 unittest.test("method--update", () { | 16609 unittest.test("method--update", () { |
| 16449 | 16610 |
| 16450 var mock = new HttpServerMock(); | 16611 var mock = new HttpServerMock(); |
| 16451 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; | 16612 api.HttpsHealthChecksResourceApi res = new api.ComputeApi(mock).httpsHealt
hChecks; |
| 16452 var arg_request = buildHttpsHealthCheck(); | 16613 var arg_request = buildHttpsHealthCheck(); |
| 16453 var arg_project = "foo"; | 16614 var arg_project = "foo"; |
| 16454 var arg_httpsHealthCheck = "foo"; | 16615 var arg_httpsHealthCheck = "foo"; |
| 16616 var arg_requestId = "foo"; |
| 16455 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16617 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16456 var obj = new api.HttpsHealthCheck.fromJson(json); | 16618 var obj = new api.HttpsHealthCheck.fromJson(json); |
| 16457 checkHttpsHealthCheck(obj); | 16619 checkHttpsHealthCheck(obj); |
| 16458 | 16620 |
| 16459 var path = (req.url).path; | 16621 var path = (req.url).path; |
| 16460 var pathOffset = 0; | 16622 var pathOffset = 0; |
| 16461 var index; | 16623 var index; |
| 16462 var subPart; | 16624 var subPart; |
| 16463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16625 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16464 pathOffset += 1; | 16626 pathOffset += 1; |
| 16465 | 16627 |
| 16466 var query = (req.url).query; | 16628 var query = (req.url).query; |
| 16467 var queryOffset = 0; | 16629 var queryOffset = 0; |
| 16468 var queryMap = {}; | 16630 var queryMap = {}; |
| 16469 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16631 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16470 parseBool(n) { | 16632 parseBool(n) { |
| 16471 if (n == "true") return true; | 16633 if (n == "true") return true; |
| 16472 if (n == "false") return false; | 16634 if (n == "false") return false; |
| 16473 if (n == null) return null; | 16635 if (n == null) return null; |
| 16474 throw new core.ArgumentError("Invalid boolean: $n"); | 16636 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16475 } | 16637 } |
| 16476 if (query.length > 0) { | 16638 if (query.length > 0) { |
| 16477 for (var part in query.split("&")) { | 16639 for (var part in query.split("&")) { |
| 16478 var keyvalue = part.split("="); | 16640 var keyvalue = part.split("="); |
| 16479 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16641 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16480 } | 16642 } |
| 16481 } | 16643 } |
| 16644 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16482 | 16645 |
| 16483 | 16646 |
| 16484 var h = { | 16647 var h = { |
| 16485 "content-type" : "application/json; charset=utf-8", | 16648 "content-type" : "application/json; charset=utf-8", |
| 16486 }; | 16649 }; |
| 16487 var resp = convert.JSON.encode(buildOperation()); | 16650 var resp = convert.JSON.encode(buildOperation()); |
| 16488 return new async.Future.value(stringResponse(200, h, resp)); | 16651 return new async.Future.value(stringResponse(200, h, resp)); |
| 16489 }), true); | 16652 }), true); |
| 16490 res.update(arg_request, arg_project, arg_httpsHealthCheck).then(unittest.e
xpectAsync1(((api.Operation response) { | 16653 res.update(arg_request, arg_project, arg_httpsHealthCheck, requestId: arg_
requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 16491 checkOperation(response); | 16654 checkOperation(response); |
| 16492 }))); | 16655 }))); |
| 16493 }); | 16656 }); |
| 16494 | 16657 |
| 16495 }); | 16658 }); |
| 16496 | 16659 |
| 16497 | 16660 |
| 16498 unittest.group("resource-ImagesResourceApi", () { | 16661 unittest.group("resource-ImagesResourceApi", () { |
| 16499 unittest.test("method--delete", () { | 16662 unittest.test("method--delete", () { |
| 16500 | 16663 |
| 16501 var mock = new HttpServerMock(); | 16664 var mock = new HttpServerMock(); |
| 16502 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 16665 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 16503 var arg_project = "foo"; | 16666 var arg_project = "foo"; |
| 16504 var arg_image = "foo"; | 16667 var arg_image = "foo"; |
| 16668 var arg_requestId = "foo"; |
| 16505 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16669 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16506 var path = (req.url).path; | 16670 var path = (req.url).path; |
| 16507 var pathOffset = 0; | 16671 var pathOffset = 0; |
| 16508 var index; | 16672 var index; |
| 16509 var subPart; | 16673 var subPart; |
| 16510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16511 pathOffset += 1; | 16675 pathOffset += 1; |
| 16512 | 16676 |
| 16513 var query = (req.url).query; | 16677 var query = (req.url).query; |
| 16514 var queryOffset = 0; | 16678 var queryOffset = 0; |
| 16515 var queryMap = {}; | 16679 var queryMap = {}; |
| 16516 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16680 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16517 parseBool(n) { | 16681 parseBool(n) { |
| 16518 if (n == "true") return true; | 16682 if (n == "true") return true; |
| 16519 if (n == "false") return false; | 16683 if (n == "false") return false; |
| 16520 if (n == null) return null; | 16684 if (n == null) return null; |
| 16521 throw new core.ArgumentError("Invalid boolean: $n"); | 16685 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16522 } | 16686 } |
| 16523 if (query.length > 0) { | 16687 if (query.length > 0) { |
| 16524 for (var part in query.split("&")) { | 16688 for (var part in query.split("&")) { |
| 16525 var keyvalue = part.split("="); | 16689 var keyvalue = part.split("="); |
| 16526 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16690 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16527 } | 16691 } |
| 16528 } | 16692 } |
| 16693 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16529 | 16694 |
| 16530 | 16695 |
| 16531 var h = { | 16696 var h = { |
| 16532 "content-type" : "application/json; charset=utf-8", | 16697 "content-type" : "application/json; charset=utf-8", |
| 16533 }; | 16698 }; |
| 16534 var resp = convert.JSON.encode(buildOperation()); | 16699 var resp = convert.JSON.encode(buildOperation()); |
| 16535 return new async.Future.value(stringResponse(200, h, resp)); | 16700 return new async.Future.value(stringResponse(200, h, resp)); |
| 16536 }), true); | 16701 }), true); |
| 16537 res.delete(arg_project, arg_image).then(unittest.expectAsync1(((api.Operat
ion response) { | 16702 res.delete(arg_project, arg_image, requestId: arg_requestId).then(unittest
.expectAsync1(((api.Operation response) { |
| 16538 checkOperation(response); | 16703 checkOperation(response); |
| 16539 }))); | 16704 }))); |
| 16540 }); | 16705 }); |
| 16541 | 16706 |
| 16542 unittest.test("method--deprecate", () { | 16707 unittest.test("method--deprecate", () { |
| 16543 | 16708 |
| 16544 var mock = new HttpServerMock(); | 16709 var mock = new HttpServerMock(); |
| 16545 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 16710 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 16546 var arg_request = buildDeprecationStatus(); | 16711 var arg_request = buildDeprecationStatus(); |
| 16547 var arg_project = "foo"; | 16712 var arg_project = "foo"; |
| 16548 var arg_image = "foo"; | 16713 var arg_image = "foo"; |
| 16714 var arg_requestId = "foo"; |
| 16549 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16715 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16550 var obj = new api.DeprecationStatus.fromJson(json); | 16716 var obj = new api.DeprecationStatus.fromJson(json); |
| 16551 checkDeprecationStatus(obj); | 16717 checkDeprecationStatus(obj); |
| 16552 | 16718 |
| 16553 var path = (req.url).path; | 16719 var path = (req.url).path; |
| 16554 var pathOffset = 0; | 16720 var pathOffset = 0; |
| 16555 var index; | 16721 var index; |
| 16556 var subPart; | 16722 var subPart; |
| 16557 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16723 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16558 pathOffset += 1; | 16724 pathOffset += 1; |
| 16559 | 16725 |
| 16560 var query = (req.url).query; | 16726 var query = (req.url).query; |
| 16561 var queryOffset = 0; | 16727 var queryOffset = 0; |
| 16562 var queryMap = {}; | 16728 var queryMap = {}; |
| 16563 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16729 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16564 parseBool(n) { | 16730 parseBool(n) { |
| 16565 if (n == "true") return true; | 16731 if (n == "true") return true; |
| 16566 if (n == "false") return false; | 16732 if (n == "false") return false; |
| 16567 if (n == null) return null; | 16733 if (n == null) return null; |
| 16568 throw new core.ArgumentError("Invalid boolean: $n"); | 16734 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16569 } | 16735 } |
| 16570 if (query.length > 0) { | 16736 if (query.length > 0) { |
| 16571 for (var part in query.split("&")) { | 16737 for (var part in query.split("&")) { |
| 16572 var keyvalue = part.split("="); | 16738 var keyvalue = part.split("="); |
| 16573 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16739 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16574 } | 16740 } |
| 16575 } | 16741 } |
| 16742 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16576 | 16743 |
| 16577 | 16744 |
| 16578 var h = { | 16745 var h = { |
| 16579 "content-type" : "application/json; charset=utf-8", | 16746 "content-type" : "application/json; charset=utf-8", |
| 16580 }; | 16747 }; |
| 16581 var resp = convert.JSON.encode(buildOperation()); | 16748 var resp = convert.JSON.encode(buildOperation()); |
| 16582 return new async.Future.value(stringResponse(200, h, resp)); | 16749 return new async.Future.value(stringResponse(200, h, resp)); |
| 16583 }), true); | 16750 }), true); |
| 16584 res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsy
nc1(((api.Operation response) { | 16751 res.deprecate(arg_request, arg_project, arg_image, requestId: arg_requestI
d).then(unittest.expectAsync1(((api.Operation response) { |
| 16585 checkOperation(response); | 16752 checkOperation(response); |
| 16586 }))); | 16753 }))); |
| 16587 }); | 16754 }); |
| 16588 | 16755 |
| 16589 unittest.test("method--get", () { | 16756 unittest.test("method--get", () { |
| 16590 | 16757 |
| 16591 var mock = new HttpServerMock(); | 16758 var mock = new HttpServerMock(); |
| 16592 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 16759 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 16593 var arg_project = "foo"; | 16760 var arg_project = "foo"; |
| 16594 var arg_image = "foo"; | 16761 var arg_image = "foo"; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16672 }))); | 16839 }))); |
| 16673 }); | 16840 }); |
| 16674 | 16841 |
| 16675 unittest.test("method--insert", () { | 16842 unittest.test("method--insert", () { |
| 16676 | 16843 |
| 16677 var mock = new HttpServerMock(); | 16844 var mock = new HttpServerMock(); |
| 16678 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 16845 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 16679 var arg_request = buildImage(); | 16846 var arg_request = buildImage(); |
| 16680 var arg_project = "foo"; | 16847 var arg_project = "foo"; |
| 16681 var arg_forceCreate = true; | 16848 var arg_forceCreate = true; |
| 16849 var arg_requestId = "foo"; |
| 16682 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 16850 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16683 var obj = new api.Image.fromJson(json); | 16851 var obj = new api.Image.fromJson(json); |
| 16684 checkImage(obj); | 16852 checkImage(obj); |
| 16685 | 16853 |
| 16686 var path = (req.url).path; | 16854 var path = (req.url).path; |
| 16687 var pathOffset = 0; | 16855 var pathOffset = 0; |
| 16688 var index; | 16856 var index; |
| 16689 var subPart; | 16857 var subPart; |
| 16690 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 16858 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16691 pathOffset += 1; | 16859 pathOffset += 1; |
| 16692 | 16860 |
| 16693 var query = (req.url).query; | 16861 var query = (req.url).query; |
| 16694 var queryOffset = 0; | 16862 var queryOffset = 0; |
| 16695 var queryMap = {}; | 16863 var queryMap = {}; |
| 16696 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 16864 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16697 parseBool(n) { | 16865 parseBool(n) { |
| 16698 if (n == "true") return true; | 16866 if (n == "true") return true; |
| 16699 if (n == "false") return false; | 16867 if (n == "false") return false; |
| 16700 if (n == null) return null; | 16868 if (n == null) return null; |
| 16701 throw new core.ArgumentError("Invalid boolean: $n"); | 16869 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16702 } | 16870 } |
| 16703 if (query.length > 0) { | 16871 if (query.length > 0) { |
| 16704 for (var part in query.split("&")) { | 16872 for (var part in query.split("&")) { |
| 16705 var keyvalue = part.split("="); | 16873 var keyvalue = part.split("="); |
| 16706 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 16874 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16707 } | 16875 } |
| 16708 } | 16876 } |
| 16709 unittest.expect(queryMap["forceCreate"].first, unittest.equals("$arg_for
ceCreate")); | 16877 unittest.expect(queryMap["forceCreate"].first, unittest.equals("$arg_for
ceCreate")); |
| 16878 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16710 | 16879 |
| 16711 | 16880 |
| 16712 var h = { | 16881 var h = { |
| 16713 "content-type" : "application/json; charset=utf-8", | 16882 "content-type" : "application/json; charset=utf-8", |
| 16714 }; | 16883 }; |
| 16715 var resp = convert.JSON.encode(buildOperation()); | 16884 var resp = convert.JSON.encode(buildOperation()); |
| 16716 return new async.Future.value(stringResponse(200, h, resp)); | 16885 return new async.Future.value(stringResponse(200, h, resp)); |
| 16717 }), true); | 16886 }), true); |
| 16718 res.insert(arg_request, arg_project, forceCreate: arg_forceCreate).then(un
ittest.expectAsync1(((api.Operation response) { | 16887 res.insert(arg_request, arg_project, forceCreate: arg_forceCreate, request
Id: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 16719 checkOperation(response); | 16888 checkOperation(response); |
| 16720 }))); | 16889 }))); |
| 16721 }); | 16890 }); |
| 16722 | 16891 |
| 16723 unittest.test("method--list", () { | 16892 unittest.test("method--list", () { |
| 16724 | 16893 |
| 16725 var mock = new HttpServerMock(); | 16894 var mock = new HttpServerMock(); |
| 16726 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 16895 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 16727 var arg_project = "foo"; | 16896 var arg_project = "foo"; |
| 16728 var arg_filter = "foo"; | 16897 var arg_filter = "foo"; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16822 | 16991 |
| 16823 unittest.group("resource-InstanceGroupManagersResourceApi", () { | 16992 unittest.group("resource-InstanceGroupManagersResourceApi", () { |
| 16824 unittest.test("method--abandonInstances", () { | 16993 unittest.test("method--abandonInstances", () { |
| 16825 | 16994 |
| 16826 var mock = new HttpServerMock(); | 16995 var mock = new HttpServerMock(); |
| 16827 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 16996 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 16828 var arg_request = buildInstanceGroupManagersAbandonInstancesRequest(); | 16997 var arg_request = buildInstanceGroupManagersAbandonInstancesRequest(); |
| 16829 var arg_project = "foo"; | 16998 var arg_project = "foo"; |
| 16830 var arg_zone = "foo"; | 16999 var arg_zone = "foo"; |
| 16831 var arg_instanceGroupManager = "foo"; | 17000 var arg_instanceGroupManager = "foo"; |
| 17001 var arg_requestId = "foo"; |
| 16832 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17002 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16833 var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(
json); | 17003 var obj = new api.InstanceGroupManagersAbandonInstancesRequest.fromJson(
json); |
| 16834 checkInstanceGroupManagersAbandonInstancesRequest(obj); | 17004 checkInstanceGroupManagersAbandonInstancesRequest(obj); |
| 16835 | 17005 |
| 16836 var path = (req.url).path; | 17006 var path = (req.url).path; |
| 16837 var pathOffset = 0; | 17007 var pathOffset = 0; |
| 16838 var index; | 17008 var index; |
| 16839 var subPart; | 17009 var subPart; |
| 16840 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17010 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16841 pathOffset += 1; | 17011 pathOffset += 1; |
| 16842 | 17012 |
| 16843 var query = (req.url).query; | 17013 var query = (req.url).query; |
| 16844 var queryOffset = 0; | 17014 var queryOffset = 0; |
| 16845 var queryMap = {}; | 17015 var queryMap = {}; |
| 16846 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17016 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16847 parseBool(n) { | 17017 parseBool(n) { |
| 16848 if (n == "true") return true; | 17018 if (n == "true") return true; |
| 16849 if (n == "false") return false; | 17019 if (n == "false") return false; |
| 16850 if (n == null) return null; | 17020 if (n == null) return null; |
| 16851 throw new core.ArgumentError("Invalid boolean: $n"); | 17021 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16852 } | 17022 } |
| 16853 if (query.length > 0) { | 17023 if (query.length > 0) { |
| 16854 for (var part in query.split("&")) { | 17024 for (var part in query.split("&")) { |
| 16855 var keyvalue = part.split("="); | 17025 var keyvalue = part.split("="); |
| 16856 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17026 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16857 } | 17027 } |
| 16858 } | 17028 } |
| 17029 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16859 | 17030 |
| 16860 | 17031 |
| 16861 var h = { | 17032 var h = { |
| 16862 "content-type" : "application/json; charset=utf-8", | 17033 "content-type" : "application/json; charset=utf-8", |
| 16863 }; | 17034 }; |
| 16864 var resp = convert.JSON.encode(buildOperation()); | 17035 var resp = convert.JSON.encode(buildOperation()); |
| 16865 return new async.Future.value(stringResponse(200, h, resp)); | 17036 return new async.Future.value(stringResponse(200, h, resp)); |
| 16866 }), true); | 17037 }), true); |
| 16867 res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroup
Manager).then(unittest.expectAsync1(((api.Operation response) { | 17038 res.abandonInstances(arg_request, arg_project, arg_zone, arg_instanceGroup
Manager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation re
sponse) { |
| 16868 checkOperation(response); | 17039 checkOperation(response); |
| 16869 }))); | 17040 }))); |
| 16870 }); | 17041 }); |
| 16871 | 17042 |
| 16872 unittest.test("method--aggregatedList", () { | 17043 unittest.test("method--aggregatedList", () { |
| 16873 | 17044 |
| 16874 var mock = new HttpServerMock(); | 17045 var mock = new HttpServerMock(); |
| 16875 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17046 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 16876 var arg_project = "foo"; | 17047 var arg_project = "foo"; |
| 16877 var arg_filter = "foo"; | 17048 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16919 }))); | 17090 }))); |
| 16920 }); | 17091 }); |
| 16921 | 17092 |
| 16922 unittest.test("method--delete", () { | 17093 unittest.test("method--delete", () { |
| 16923 | 17094 |
| 16924 var mock = new HttpServerMock(); | 17095 var mock = new HttpServerMock(); |
| 16925 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17096 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 16926 var arg_project = "foo"; | 17097 var arg_project = "foo"; |
| 16927 var arg_zone = "foo"; | 17098 var arg_zone = "foo"; |
| 16928 var arg_instanceGroupManager = "foo"; | 17099 var arg_instanceGroupManager = "foo"; |
| 17100 var arg_requestId = "foo"; |
| 16929 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17101 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16930 var path = (req.url).path; | 17102 var path = (req.url).path; |
| 16931 var pathOffset = 0; | 17103 var pathOffset = 0; |
| 16932 var index; | 17104 var index; |
| 16933 var subPart; | 17105 var subPart; |
| 16934 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17106 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16935 pathOffset += 1; | 17107 pathOffset += 1; |
| 16936 | 17108 |
| 16937 var query = (req.url).query; | 17109 var query = (req.url).query; |
| 16938 var queryOffset = 0; | 17110 var queryOffset = 0; |
| 16939 var queryMap = {}; | 17111 var queryMap = {}; |
| 16940 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17112 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16941 parseBool(n) { | 17113 parseBool(n) { |
| 16942 if (n == "true") return true; | 17114 if (n == "true") return true; |
| 16943 if (n == "false") return false; | 17115 if (n == "false") return false; |
| 16944 if (n == null) return null; | 17116 if (n == null) return null; |
| 16945 throw new core.ArgumentError("Invalid boolean: $n"); | 17117 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16946 } | 17118 } |
| 16947 if (query.length > 0) { | 17119 if (query.length > 0) { |
| 16948 for (var part in query.split("&")) { | 17120 for (var part in query.split("&")) { |
| 16949 var keyvalue = part.split("="); | 17121 var keyvalue = part.split("="); |
| 16950 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17122 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16951 } | 17123 } |
| 16952 } | 17124 } |
| 17125 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 16953 | 17126 |
| 16954 | 17127 |
| 16955 var h = { | 17128 var h = { |
| 16956 "content-type" : "application/json; charset=utf-8", | 17129 "content-type" : "application/json; charset=utf-8", |
| 16957 }; | 17130 }; |
| 16958 var resp = convert.JSON.encode(buildOperation()); | 17131 var resp = convert.JSON.encode(buildOperation()); |
| 16959 return new async.Future.value(stringResponse(200, h, resp)); | 17132 return new async.Future.value(stringResponse(200, h, resp)); |
| 16960 }), true); | 17133 }), true); |
| 16961 res.delete(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.
expectAsync1(((api.Operation response) { | 17134 res.delete(arg_project, arg_zone, arg_instanceGroupManager, requestId: arg
_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 16962 checkOperation(response); | 17135 checkOperation(response); |
| 16963 }))); | 17136 }))); |
| 16964 }); | 17137 }); |
| 16965 | 17138 |
| 16966 unittest.test("method--deleteInstances", () { | 17139 unittest.test("method--deleteInstances", () { |
| 16967 | 17140 |
| 16968 var mock = new HttpServerMock(); | 17141 var mock = new HttpServerMock(); |
| 16969 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17142 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 16970 var arg_request = buildInstanceGroupManagersDeleteInstancesRequest(); | 17143 var arg_request = buildInstanceGroupManagersDeleteInstancesRequest(); |
| 16971 var arg_project = "foo"; | 17144 var arg_project = "foo"; |
| 16972 var arg_zone = "foo"; | 17145 var arg_zone = "foo"; |
| 16973 var arg_instanceGroupManager = "foo"; | 17146 var arg_instanceGroupManager = "foo"; |
| 17147 var arg_requestId = "foo"; |
| 16974 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17148 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 16975 var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(j
son); | 17149 var obj = new api.InstanceGroupManagersDeleteInstancesRequest.fromJson(j
son); |
| 16976 checkInstanceGroupManagersDeleteInstancesRequest(obj); | 17150 checkInstanceGroupManagersDeleteInstancesRequest(obj); |
| 16977 | 17151 |
| 16978 var path = (req.url).path; | 17152 var path = (req.url).path; |
| 16979 var pathOffset = 0; | 17153 var pathOffset = 0; |
| 16980 var index; | 17154 var index; |
| 16981 var subPart; | 17155 var subPart; |
| 16982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 16983 pathOffset += 1; | 17157 pathOffset += 1; |
| 16984 | 17158 |
| 16985 var query = (req.url).query; | 17159 var query = (req.url).query; |
| 16986 var queryOffset = 0; | 17160 var queryOffset = 0; |
| 16987 var queryMap = {}; | 17161 var queryMap = {}; |
| 16988 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17162 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 16989 parseBool(n) { | 17163 parseBool(n) { |
| 16990 if (n == "true") return true; | 17164 if (n == "true") return true; |
| 16991 if (n == "false") return false; | 17165 if (n == "false") return false; |
| 16992 if (n == null) return null; | 17166 if (n == null) return null; |
| 16993 throw new core.ArgumentError("Invalid boolean: $n"); | 17167 throw new core.ArgumentError("Invalid boolean: $n"); |
| 16994 } | 17168 } |
| 16995 if (query.length > 0) { | 17169 if (query.length > 0) { |
| 16996 for (var part in query.split("&")) { | 17170 for (var part in query.split("&")) { |
| 16997 var keyvalue = part.split("="); | 17171 var keyvalue = part.split("="); |
| 16998 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17172 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 16999 } | 17173 } |
| 17000 } | 17174 } |
| 17175 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17001 | 17176 |
| 17002 | 17177 |
| 17003 var h = { | 17178 var h = { |
| 17004 "content-type" : "application/json; charset=utf-8", | 17179 "content-type" : "application/json; charset=utf-8", |
| 17005 }; | 17180 }; |
| 17006 var resp = convert.JSON.encode(buildOperation()); | 17181 var resp = convert.JSON.encode(buildOperation()); |
| 17007 return new async.Future.value(stringResponse(200, h, resp)); | 17182 return new async.Future.value(stringResponse(200, h, resp)); |
| 17008 }), true); | 17183 }), true); |
| 17009 res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupM
anager).then(unittest.expectAsync1(((api.Operation response) { | 17184 res.deleteInstances(arg_request, arg_project, arg_zone, arg_instanceGroupM
anager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation res
ponse) { |
| 17010 checkOperation(response); | 17185 checkOperation(response); |
| 17011 }))); | 17186 }))); |
| 17012 }); | 17187 }); |
| 17013 | 17188 |
| 17014 unittest.test("method--get", () { | 17189 unittest.test("method--get", () { |
| 17015 | 17190 |
| 17016 var mock = new HttpServerMock(); | 17191 var mock = new HttpServerMock(); |
| 17017 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17192 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17018 var arg_project = "foo"; | 17193 var arg_project = "foo"; |
| 17019 var arg_zone = "foo"; | 17194 var arg_zone = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17055 }))); | 17230 }))); |
| 17056 }); | 17231 }); |
| 17057 | 17232 |
| 17058 unittest.test("method--insert", () { | 17233 unittest.test("method--insert", () { |
| 17059 | 17234 |
| 17060 var mock = new HttpServerMock(); | 17235 var mock = new HttpServerMock(); |
| 17061 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17236 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17062 var arg_request = buildInstanceGroupManager(); | 17237 var arg_request = buildInstanceGroupManager(); |
| 17063 var arg_project = "foo"; | 17238 var arg_project = "foo"; |
| 17064 var arg_zone = "foo"; | 17239 var arg_zone = "foo"; |
| 17240 var arg_requestId = "foo"; |
| 17065 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17241 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17066 var obj = new api.InstanceGroupManager.fromJson(json); | 17242 var obj = new api.InstanceGroupManager.fromJson(json); |
| 17067 checkInstanceGroupManager(obj); | 17243 checkInstanceGroupManager(obj); |
| 17068 | 17244 |
| 17069 var path = (req.url).path; | 17245 var path = (req.url).path; |
| 17070 var pathOffset = 0; | 17246 var pathOffset = 0; |
| 17071 var index; | 17247 var index; |
| 17072 var subPart; | 17248 var subPart; |
| 17073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17074 pathOffset += 1; | 17250 pathOffset += 1; |
| 17075 | 17251 |
| 17076 var query = (req.url).query; | 17252 var query = (req.url).query; |
| 17077 var queryOffset = 0; | 17253 var queryOffset = 0; |
| 17078 var queryMap = {}; | 17254 var queryMap = {}; |
| 17079 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17255 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17080 parseBool(n) { | 17256 parseBool(n) { |
| 17081 if (n == "true") return true; | 17257 if (n == "true") return true; |
| 17082 if (n == "false") return false; | 17258 if (n == "false") return false; |
| 17083 if (n == null) return null; | 17259 if (n == null) return null; |
| 17084 throw new core.ArgumentError("Invalid boolean: $n"); | 17260 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17085 } | 17261 } |
| 17086 if (query.length > 0) { | 17262 if (query.length > 0) { |
| 17087 for (var part in query.split("&")) { | 17263 for (var part in query.split("&")) { |
| 17088 var keyvalue = part.split("="); | 17264 var keyvalue = part.split("="); |
| 17089 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17265 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17090 } | 17266 } |
| 17091 } | 17267 } |
| 17268 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17092 | 17269 |
| 17093 | 17270 |
| 17094 var h = { | 17271 var h = { |
| 17095 "content-type" : "application/json; charset=utf-8", | 17272 "content-type" : "application/json; charset=utf-8", |
| 17096 }; | 17273 }; |
| 17097 var resp = convert.JSON.encode(buildOperation()); | 17274 var resp = convert.JSON.encode(buildOperation()); |
| 17098 return new async.Future.value(stringResponse(200, h, resp)); | 17275 return new async.Future.value(stringResponse(200, h, resp)); |
| 17099 }), true); | 17276 }), true); |
| 17100 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(
((api.Operation response) { | 17277 res.insert(arg_request, arg_project, arg_zone, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 17101 checkOperation(response); | 17278 checkOperation(response); |
| 17102 }))); | 17279 }))); |
| 17103 }); | 17280 }); |
| 17104 | 17281 |
| 17105 unittest.test("method--list", () { | 17282 unittest.test("method--list", () { |
| 17106 | 17283 |
| 17107 var mock = new HttpServerMock(); | 17284 var mock = new HttpServerMock(); |
| 17108 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17285 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17109 var arg_project = "foo"; | 17286 var arg_project = "foo"; |
| 17110 var arg_zone = "foo"; | 17287 var arg_zone = "foo"; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17206 }); | 17383 }); |
| 17207 | 17384 |
| 17208 unittest.test("method--recreateInstances", () { | 17385 unittest.test("method--recreateInstances", () { |
| 17209 | 17386 |
| 17210 var mock = new HttpServerMock(); | 17387 var mock = new HttpServerMock(); |
| 17211 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17388 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17212 var arg_request = buildInstanceGroupManagersRecreateInstancesRequest(); | 17389 var arg_request = buildInstanceGroupManagersRecreateInstancesRequest(); |
| 17213 var arg_project = "foo"; | 17390 var arg_project = "foo"; |
| 17214 var arg_zone = "foo"; | 17391 var arg_zone = "foo"; |
| 17215 var arg_instanceGroupManager = "foo"; | 17392 var arg_instanceGroupManager = "foo"; |
| 17393 var arg_requestId = "foo"; |
| 17216 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17394 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17217 var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson
(json); | 17395 var obj = new api.InstanceGroupManagersRecreateInstancesRequest.fromJson
(json); |
| 17218 checkInstanceGroupManagersRecreateInstancesRequest(obj); | 17396 checkInstanceGroupManagersRecreateInstancesRequest(obj); |
| 17219 | 17397 |
| 17220 var path = (req.url).path; | 17398 var path = (req.url).path; |
| 17221 var pathOffset = 0; | 17399 var pathOffset = 0; |
| 17222 var index; | 17400 var index; |
| 17223 var subPart; | 17401 var subPart; |
| 17224 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17225 pathOffset += 1; | 17403 pathOffset += 1; |
| 17226 | 17404 |
| 17227 var query = (req.url).query; | 17405 var query = (req.url).query; |
| 17228 var queryOffset = 0; | 17406 var queryOffset = 0; |
| 17229 var queryMap = {}; | 17407 var queryMap = {}; |
| 17230 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17408 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17231 parseBool(n) { | 17409 parseBool(n) { |
| 17232 if (n == "true") return true; | 17410 if (n == "true") return true; |
| 17233 if (n == "false") return false; | 17411 if (n == "false") return false; |
| 17234 if (n == null) return null; | 17412 if (n == null) return null; |
| 17235 throw new core.ArgumentError("Invalid boolean: $n"); | 17413 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17236 } | 17414 } |
| 17237 if (query.length > 0) { | 17415 if (query.length > 0) { |
| 17238 for (var part in query.split("&")) { | 17416 for (var part in query.split("&")) { |
| 17239 var keyvalue = part.split("="); | 17417 var keyvalue = part.split("="); |
| 17240 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17418 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17241 } | 17419 } |
| 17242 } | 17420 } |
| 17421 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17243 | 17422 |
| 17244 | 17423 |
| 17245 var h = { | 17424 var h = { |
| 17246 "content-type" : "application/json; charset=utf-8", | 17425 "content-type" : "application/json; charset=utf-8", |
| 17247 }; | 17426 }; |
| 17248 var resp = convert.JSON.encode(buildOperation()); | 17427 var resp = convert.JSON.encode(buildOperation()); |
| 17249 return new async.Future.value(stringResponse(200, h, resp)); | 17428 return new async.Future.value(stringResponse(200, h, resp)); |
| 17250 }), true); | 17429 }), true); |
| 17251 res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGrou
pManager).then(unittest.expectAsync1(((api.Operation response) { | 17430 res.recreateInstances(arg_request, arg_project, arg_zone, arg_instanceGrou
pManager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation r
esponse) { |
| 17252 checkOperation(response); | 17431 checkOperation(response); |
| 17253 }))); | 17432 }))); |
| 17254 }); | 17433 }); |
| 17255 | 17434 |
| 17256 unittest.test("method--resize", () { | 17435 unittest.test("method--resize", () { |
| 17257 | 17436 |
| 17258 var mock = new HttpServerMock(); | 17437 var mock = new HttpServerMock(); |
| 17259 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17438 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17260 var arg_project = "foo"; | 17439 var arg_project = "foo"; |
| 17261 var arg_zone = "foo"; | 17440 var arg_zone = "foo"; |
| 17262 var arg_instanceGroupManager = "foo"; | 17441 var arg_instanceGroupManager = "foo"; |
| 17263 var arg_size = 42; | 17442 var arg_size = 42; |
| 17443 var arg_requestId = "foo"; |
| 17264 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17444 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17265 var path = (req.url).path; | 17445 var path = (req.url).path; |
| 17266 var pathOffset = 0; | 17446 var pathOffset = 0; |
| 17267 var index; | 17447 var index; |
| 17268 var subPart; | 17448 var subPart; |
| 17269 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17270 pathOffset += 1; | 17450 pathOffset += 1; |
| 17271 | 17451 |
| 17272 var query = (req.url).query; | 17452 var query = (req.url).query; |
| 17273 var queryOffset = 0; | 17453 var queryOffset = 0; |
| 17274 var queryMap = {}; | 17454 var queryMap = {}; |
| 17275 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17455 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17276 parseBool(n) { | 17456 parseBool(n) { |
| 17277 if (n == "true") return true; | 17457 if (n == "true") return true; |
| 17278 if (n == "false") return false; | 17458 if (n == "false") return false; |
| 17279 if (n == null) return null; | 17459 if (n == null) return null; |
| 17280 throw new core.ArgumentError("Invalid boolean: $n"); | 17460 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17281 } | 17461 } |
| 17282 if (query.length > 0) { | 17462 if (query.length > 0) { |
| 17283 for (var part in query.split("&")) { | 17463 for (var part in query.split("&")) { |
| 17284 var keyvalue = part.split("="); | 17464 var keyvalue = part.split("="); |
| 17285 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17465 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17286 } | 17466 } |
| 17287 } | 17467 } |
| 17288 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); | 17468 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); |
| 17469 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17289 | 17470 |
| 17290 | 17471 |
| 17291 var h = { | 17472 var h = { |
| 17292 "content-type" : "application/json; charset=utf-8", | 17473 "content-type" : "application/json; charset=utf-8", |
| 17293 }; | 17474 }; |
| 17294 var resp = convert.JSON.encode(buildOperation()); | 17475 var resp = convert.JSON.encode(buildOperation()); |
| 17295 return new async.Future.value(stringResponse(200, h, resp)); | 17476 return new async.Future.value(stringResponse(200, h, resp)); |
| 17296 }), true); | 17477 }), true); |
| 17297 res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size).then
(unittest.expectAsync1(((api.Operation response) { | 17478 res.resize(arg_project, arg_zone, arg_instanceGroupManager, arg_size, requ
estId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 17298 checkOperation(response); | 17479 checkOperation(response); |
| 17299 }))); | 17480 }))); |
| 17300 }); | 17481 }); |
| 17301 | 17482 |
| 17302 unittest.test("method--setInstanceTemplate", () { | 17483 unittest.test("method--setInstanceTemplate", () { |
| 17303 | 17484 |
| 17304 var mock = new HttpServerMock(); | 17485 var mock = new HttpServerMock(); |
| 17305 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17486 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17306 var arg_request = buildInstanceGroupManagersSetInstanceTemplateRequest(); | 17487 var arg_request = buildInstanceGroupManagersSetInstanceTemplateRequest(); |
| 17307 var arg_project = "foo"; | 17488 var arg_project = "foo"; |
| 17308 var arg_zone = "foo"; | 17489 var arg_zone = "foo"; |
| 17309 var arg_instanceGroupManager = "foo"; | 17490 var arg_instanceGroupManager = "foo"; |
| 17491 var arg_requestId = "foo"; |
| 17310 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17492 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17311 var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJs
on(json); | 17493 var obj = new api.InstanceGroupManagersSetInstanceTemplateRequest.fromJs
on(json); |
| 17312 checkInstanceGroupManagersSetInstanceTemplateRequest(obj); | 17494 checkInstanceGroupManagersSetInstanceTemplateRequest(obj); |
| 17313 | 17495 |
| 17314 var path = (req.url).path; | 17496 var path = (req.url).path; |
| 17315 var pathOffset = 0; | 17497 var pathOffset = 0; |
| 17316 var index; | 17498 var index; |
| 17317 var subPart; | 17499 var subPart; |
| 17318 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17500 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17319 pathOffset += 1; | 17501 pathOffset += 1; |
| 17320 | 17502 |
| 17321 var query = (req.url).query; | 17503 var query = (req.url).query; |
| 17322 var queryOffset = 0; | 17504 var queryOffset = 0; |
| 17323 var queryMap = {}; | 17505 var queryMap = {}; |
| 17324 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17506 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17325 parseBool(n) { | 17507 parseBool(n) { |
| 17326 if (n == "true") return true; | 17508 if (n == "true") return true; |
| 17327 if (n == "false") return false; | 17509 if (n == "false") return false; |
| 17328 if (n == null) return null; | 17510 if (n == null) return null; |
| 17329 throw new core.ArgumentError("Invalid boolean: $n"); | 17511 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17330 } | 17512 } |
| 17331 if (query.length > 0) { | 17513 if (query.length > 0) { |
| 17332 for (var part in query.split("&")) { | 17514 for (var part in query.split("&")) { |
| 17333 var keyvalue = part.split("="); | 17515 var keyvalue = part.split("="); |
| 17334 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17516 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17335 } | 17517 } |
| 17336 } | 17518 } |
| 17519 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17337 | 17520 |
| 17338 | 17521 |
| 17339 var h = { | 17522 var h = { |
| 17340 "content-type" : "application/json; charset=utf-8", | 17523 "content-type" : "application/json; charset=utf-8", |
| 17341 }; | 17524 }; |
| 17342 var resp = convert.JSON.encode(buildOperation()); | 17525 var resp = convert.JSON.encode(buildOperation()); |
| 17343 return new async.Future.value(stringResponse(200, h, resp)); | 17526 return new async.Future.value(stringResponse(200, h, resp)); |
| 17344 }), true); | 17527 }), true); |
| 17345 res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGr
oupManager).then(unittest.expectAsync1(((api.Operation response) { | 17528 res.setInstanceTemplate(arg_request, arg_project, arg_zone, arg_instanceGr
oupManager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation
response) { |
| 17346 checkOperation(response); | 17529 checkOperation(response); |
| 17347 }))); | 17530 }))); |
| 17348 }); | 17531 }); |
| 17349 | 17532 |
| 17350 unittest.test("method--setTargetPools", () { | 17533 unittest.test("method--setTargetPools", () { |
| 17351 | 17534 |
| 17352 var mock = new HttpServerMock(); | 17535 var mock = new HttpServerMock(); |
| 17353 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; | 17536 api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instan
ceGroupManagers; |
| 17354 var arg_request = buildInstanceGroupManagersSetTargetPoolsRequest(); | 17537 var arg_request = buildInstanceGroupManagersSetTargetPoolsRequest(); |
| 17355 var arg_project = "foo"; | 17538 var arg_project = "foo"; |
| 17356 var arg_zone = "foo"; | 17539 var arg_zone = "foo"; |
| 17357 var arg_instanceGroupManager = "foo"; | 17540 var arg_instanceGroupManager = "foo"; |
| 17541 var arg_requestId = "foo"; |
| 17358 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17542 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17359 var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(js
on); | 17543 var obj = new api.InstanceGroupManagersSetTargetPoolsRequest.fromJson(js
on); |
| 17360 checkInstanceGroupManagersSetTargetPoolsRequest(obj); | 17544 checkInstanceGroupManagersSetTargetPoolsRequest(obj); |
| 17361 | 17545 |
| 17362 var path = (req.url).path; | 17546 var path = (req.url).path; |
| 17363 var pathOffset = 0; | 17547 var pathOffset = 0; |
| 17364 var index; | 17548 var index; |
| 17365 var subPart; | 17549 var subPart; |
| 17366 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17550 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17367 pathOffset += 1; | 17551 pathOffset += 1; |
| 17368 | 17552 |
| 17369 var query = (req.url).query; | 17553 var query = (req.url).query; |
| 17370 var queryOffset = 0; | 17554 var queryOffset = 0; |
| 17371 var queryMap = {}; | 17555 var queryMap = {}; |
| 17372 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17556 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17373 parseBool(n) { | 17557 parseBool(n) { |
| 17374 if (n == "true") return true; | 17558 if (n == "true") return true; |
| 17375 if (n == "false") return false; | 17559 if (n == "false") return false; |
| 17376 if (n == null) return null; | 17560 if (n == null) return null; |
| 17377 throw new core.ArgumentError("Invalid boolean: $n"); | 17561 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17378 } | 17562 } |
| 17379 if (query.length > 0) { | 17563 if (query.length > 0) { |
| 17380 for (var part in query.split("&")) { | 17564 for (var part in query.split("&")) { |
| 17381 var keyvalue = part.split("="); | 17565 var keyvalue = part.split("="); |
| 17382 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17566 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17383 } | 17567 } |
| 17384 } | 17568 } |
| 17569 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17385 | 17570 |
| 17386 | 17571 |
| 17387 var h = { | 17572 var h = { |
| 17388 "content-type" : "application/json; charset=utf-8", | 17573 "content-type" : "application/json; charset=utf-8", |
| 17389 }; | 17574 }; |
| 17390 var resp = convert.JSON.encode(buildOperation()); | 17575 var resp = convert.JSON.encode(buildOperation()); |
| 17391 return new async.Future.value(stringResponse(200, h, resp)); | 17576 return new async.Future.value(stringResponse(200, h, resp)); |
| 17392 }), true); | 17577 }), true); |
| 17393 res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupMa
nager).then(unittest.expectAsync1(((api.Operation response) { | 17578 res.setTargetPools(arg_request, arg_project, arg_zone, arg_instanceGroupMa
nager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation resp
onse) { |
| 17394 checkOperation(response); | 17579 checkOperation(response); |
| 17395 }))); | 17580 }))); |
| 17396 }); | 17581 }); |
| 17397 | 17582 |
| 17398 }); | 17583 }); |
| 17399 | 17584 |
| 17400 | 17585 |
| 17401 unittest.group("resource-InstanceGroupsResourceApi", () { | 17586 unittest.group("resource-InstanceGroupsResourceApi", () { |
| 17402 unittest.test("method--addInstances", () { | 17587 unittest.test("method--addInstances", () { |
| 17403 | 17588 |
| 17404 var mock = new HttpServerMock(); | 17589 var mock = new HttpServerMock(); |
| 17405 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17590 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17406 var arg_request = buildInstanceGroupsAddInstancesRequest(); | 17591 var arg_request = buildInstanceGroupsAddInstancesRequest(); |
| 17407 var arg_project = "foo"; | 17592 var arg_project = "foo"; |
| 17408 var arg_zone = "foo"; | 17593 var arg_zone = "foo"; |
| 17409 var arg_instanceGroup = "foo"; | 17594 var arg_instanceGroup = "foo"; |
| 17595 var arg_requestId = "foo"; |
| 17410 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17596 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17411 var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json); | 17597 var obj = new api.InstanceGroupsAddInstancesRequest.fromJson(json); |
| 17412 checkInstanceGroupsAddInstancesRequest(obj); | 17598 checkInstanceGroupsAddInstancesRequest(obj); |
| 17413 | 17599 |
| 17414 var path = (req.url).path; | 17600 var path = (req.url).path; |
| 17415 var pathOffset = 0; | 17601 var pathOffset = 0; |
| 17416 var index; | 17602 var index; |
| 17417 var subPart; | 17603 var subPart; |
| 17418 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17604 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17419 pathOffset += 1; | 17605 pathOffset += 1; |
| 17420 | 17606 |
| 17421 var query = (req.url).query; | 17607 var query = (req.url).query; |
| 17422 var queryOffset = 0; | 17608 var queryOffset = 0; |
| 17423 var queryMap = {}; | 17609 var queryMap = {}; |
| 17424 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17610 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17425 parseBool(n) { | 17611 parseBool(n) { |
| 17426 if (n == "true") return true; | 17612 if (n == "true") return true; |
| 17427 if (n == "false") return false; | 17613 if (n == "false") return false; |
| 17428 if (n == null) return null; | 17614 if (n == null) return null; |
| 17429 throw new core.ArgumentError("Invalid boolean: $n"); | 17615 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17430 } | 17616 } |
| 17431 if (query.length > 0) { | 17617 if (query.length > 0) { |
| 17432 for (var part in query.split("&")) { | 17618 for (var part in query.split("&")) { |
| 17433 var keyvalue = part.split("="); | 17619 var keyvalue = part.split("="); |
| 17434 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17620 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17435 } | 17621 } |
| 17436 } | 17622 } |
| 17623 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17437 | 17624 |
| 17438 | 17625 |
| 17439 var h = { | 17626 var h = { |
| 17440 "content-type" : "application/json; charset=utf-8", | 17627 "content-type" : "application/json; charset=utf-8", |
| 17441 }; | 17628 }; |
| 17442 var resp = convert.JSON.encode(buildOperation()); | 17629 var resp = convert.JSON.encode(buildOperation()); |
| 17443 return new async.Future.value(stringResponse(200, h, resp)); | 17630 return new async.Future.value(stringResponse(200, h, resp)); |
| 17444 }), true); | 17631 }), true); |
| 17445 res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup).th
en(unittest.expectAsync1(((api.Operation response) { | 17632 res.addInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, re
questId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 17446 checkOperation(response); | 17633 checkOperation(response); |
| 17447 }))); | 17634 }))); |
| 17448 }); | 17635 }); |
| 17449 | 17636 |
| 17450 unittest.test("method--aggregatedList", () { | 17637 unittest.test("method--aggregatedList", () { |
| 17451 | 17638 |
| 17452 var mock = new HttpServerMock(); | 17639 var mock = new HttpServerMock(); |
| 17453 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17640 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17454 var arg_project = "foo"; | 17641 var arg_project = "foo"; |
| 17455 var arg_filter = "foo"; | 17642 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17497 }))); | 17684 }))); |
| 17498 }); | 17685 }); |
| 17499 | 17686 |
| 17500 unittest.test("method--delete", () { | 17687 unittest.test("method--delete", () { |
| 17501 | 17688 |
| 17502 var mock = new HttpServerMock(); | 17689 var mock = new HttpServerMock(); |
| 17503 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17690 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17504 var arg_project = "foo"; | 17691 var arg_project = "foo"; |
| 17505 var arg_zone = "foo"; | 17692 var arg_zone = "foo"; |
| 17506 var arg_instanceGroup = "foo"; | 17693 var arg_instanceGroup = "foo"; |
| 17694 var arg_requestId = "foo"; |
| 17507 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17695 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17508 var path = (req.url).path; | 17696 var path = (req.url).path; |
| 17509 var pathOffset = 0; | 17697 var pathOffset = 0; |
| 17510 var index; | 17698 var index; |
| 17511 var subPart; | 17699 var subPart; |
| 17512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17513 pathOffset += 1; | 17701 pathOffset += 1; |
| 17514 | 17702 |
| 17515 var query = (req.url).query; | 17703 var query = (req.url).query; |
| 17516 var queryOffset = 0; | 17704 var queryOffset = 0; |
| 17517 var queryMap = {}; | 17705 var queryMap = {}; |
| 17518 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17706 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17519 parseBool(n) { | 17707 parseBool(n) { |
| 17520 if (n == "true") return true; | 17708 if (n == "true") return true; |
| 17521 if (n == "false") return false; | 17709 if (n == "false") return false; |
| 17522 if (n == null) return null; | 17710 if (n == null) return null; |
| 17523 throw new core.ArgumentError("Invalid boolean: $n"); | 17711 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17524 } | 17712 } |
| 17525 if (query.length > 0) { | 17713 if (query.length > 0) { |
| 17526 for (var part in query.split("&")) { | 17714 for (var part in query.split("&")) { |
| 17527 var keyvalue = part.split("="); | 17715 var keyvalue = part.split("="); |
| 17528 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17716 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17529 } | 17717 } |
| 17530 } | 17718 } |
| 17719 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17531 | 17720 |
| 17532 | 17721 |
| 17533 var h = { | 17722 var h = { |
| 17534 "content-type" : "application/json; charset=utf-8", | 17723 "content-type" : "application/json; charset=utf-8", |
| 17535 }; | 17724 }; |
| 17536 var resp = convert.JSON.encode(buildOperation()); | 17725 var resp = convert.JSON.encode(buildOperation()); |
| 17537 return new async.Future.value(stringResponse(200, h, resp)); | 17726 return new async.Future.value(stringResponse(200, h, resp)); |
| 17538 }), true); | 17727 }), true); |
| 17539 res.delete(arg_project, arg_zone, arg_instanceGroup).then(unittest.expectA
sync1(((api.Operation response) { | 17728 res.delete(arg_project, arg_zone, arg_instanceGroup, requestId: arg_reques
tId).then(unittest.expectAsync1(((api.Operation response) { |
| 17540 checkOperation(response); | 17729 checkOperation(response); |
| 17541 }))); | 17730 }))); |
| 17542 }); | 17731 }); |
| 17543 | 17732 |
| 17544 unittest.test("method--get", () { | 17733 unittest.test("method--get", () { |
| 17545 | 17734 |
| 17546 var mock = new HttpServerMock(); | 17735 var mock = new HttpServerMock(); |
| 17547 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17736 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17548 var arg_project = "foo"; | 17737 var arg_project = "foo"; |
| 17549 var arg_zone = "foo"; | 17738 var arg_zone = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17585 }))); | 17774 }))); |
| 17586 }); | 17775 }); |
| 17587 | 17776 |
| 17588 unittest.test("method--insert", () { | 17777 unittest.test("method--insert", () { |
| 17589 | 17778 |
| 17590 var mock = new HttpServerMock(); | 17779 var mock = new HttpServerMock(); |
| 17591 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17780 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17592 var arg_request = buildInstanceGroup(); | 17781 var arg_request = buildInstanceGroup(); |
| 17593 var arg_project = "foo"; | 17782 var arg_project = "foo"; |
| 17594 var arg_zone = "foo"; | 17783 var arg_zone = "foo"; |
| 17784 var arg_requestId = "foo"; |
| 17595 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17785 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17596 var obj = new api.InstanceGroup.fromJson(json); | 17786 var obj = new api.InstanceGroup.fromJson(json); |
| 17597 checkInstanceGroup(obj); | 17787 checkInstanceGroup(obj); |
| 17598 | 17788 |
| 17599 var path = (req.url).path; | 17789 var path = (req.url).path; |
| 17600 var pathOffset = 0; | 17790 var pathOffset = 0; |
| 17601 var index; | 17791 var index; |
| 17602 var subPart; | 17792 var subPart; |
| 17603 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17793 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17604 pathOffset += 1; | 17794 pathOffset += 1; |
| 17605 | 17795 |
| 17606 var query = (req.url).query; | 17796 var query = (req.url).query; |
| 17607 var queryOffset = 0; | 17797 var queryOffset = 0; |
| 17608 var queryMap = {}; | 17798 var queryMap = {}; |
| 17609 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17799 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17610 parseBool(n) { | 17800 parseBool(n) { |
| 17611 if (n == "true") return true; | 17801 if (n == "true") return true; |
| 17612 if (n == "false") return false; | 17802 if (n == "false") return false; |
| 17613 if (n == null) return null; | 17803 if (n == null) return null; |
| 17614 throw new core.ArgumentError("Invalid boolean: $n"); | 17804 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17615 } | 17805 } |
| 17616 if (query.length > 0) { | 17806 if (query.length > 0) { |
| 17617 for (var part in query.split("&")) { | 17807 for (var part in query.split("&")) { |
| 17618 var keyvalue = part.split("="); | 17808 var keyvalue = part.split("="); |
| 17619 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17809 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17620 } | 17810 } |
| 17621 } | 17811 } |
| 17812 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17622 | 17813 |
| 17623 | 17814 |
| 17624 var h = { | 17815 var h = { |
| 17625 "content-type" : "application/json; charset=utf-8", | 17816 "content-type" : "application/json; charset=utf-8", |
| 17626 }; | 17817 }; |
| 17627 var resp = convert.JSON.encode(buildOperation()); | 17818 var resp = convert.JSON.encode(buildOperation()); |
| 17628 return new async.Future.value(stringResponse(200, h, resp)); | 17819 return new async.Future.value(stringResponse(200, h, resp)); |
| 17629 }), true); | 17820 }), true); |
| 17630 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(
((api.Operation response) { | 17821 res.insert(arg_request, arg_project, arg_zone, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 17631 checkOperation(response); | 17822 checkOperation(response); |
| 17632 }))); | 17823 }))); |
| 17633 }); | 17824 }); |
| 17634 | 17825 |
| 17635 unittest.test("method--list", () { | 17826 unittest.test("method--list", () { |
| 17636 | 17827 |
| 17637 var mock = new HttpServerMock(); | 17828 var mock = new HttpServerMock(); |
| 17638 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17829 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17639 var arg_project = "foo"; | 17830 var arg_project = "foo"; |
| 17640 var arg_zone = "foo"; | 17831 var arg_zone = "foo"; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17740 }); | 17931 }); |
| 17741 | 17932 |
| 17742 unittest.test("method--removeInstances", () { | 17933 unittest.test("method--removeInstances", () { |
| 17743 | 17934 |
| 17744 var mock = new HttpServerMock(); | 17935 var mock = new HttpServerMock(); |
| 17745 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17936 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17746 var arg_request = buildInstanceGroupsRemoveInstancesRequest(); | 17937 var arg_request = buildInstanceGroupsRemoveInstancesRequest(); |
| 17747 var arg_project = "foo"; | 17938 var arg_project = "foo"; |
| 17748 var arg_zone = "foo"; | 17939 var arg_zone = "foo"; |
| 17749 var arg_instanceGroup = "foo"; | 17940 var arg_instanceGroup = "foo"; |
| 17941 var arg_requestId = "foo"; |
| 17750 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17942 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17751 var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json); | 17943 var obj = new api.InstanceGroupsRemoveInstancesRequest.fromJson(json); |
| 17752 checkInstanceGroupsRemoveInstancesRequest(obj); | 17944 checkInstanceGroupsRemoveInstancesRequest(obj); |
| 17753 | 17945 |
| 17754 var path = (req.url).path; | 17946 var path = (req.url).path; |
| 17755 var pathOffset = 0; | 17947 var pathOffset = 0; |
| 17756 var index; | 17948 var index; |
| 17757 var subPart; | 17949 var subPart; |
| 17758 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 17950 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17759 pathOffset += 1; | 17951 pathOffset += 1; |
| 17760 | 17952 |
| 17761 var query = (req.url).query; | 17953 var query = (req.url).query; |
| 17762 var queryOffset = 0; | 17954 var queryOffset = 0; |
| 17763 var queryMap = {}; | 17955 var queryMap = {}; |
| 17764 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 17956 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17765 parseBool(n) { | 17957 parseBool(n) { |
| 17766 if (n == "true") return true; | 17958 if (n == "true") return true; |
| 17767 if (n == "false") return false; | 17959 if (n == "false") return false; |
| 17768 if (n == null) return null; | 17960 if (n == null) return null; |
| 17769 throw new core.ArgumentError("Invalid boolean: $n"); | 17961 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17770 } | 17962 } |
| 17771 if (query.length > 0) { | 17963 if (query.length > 0) { |
| 17772 for (var part in query.split("&")) { | 17964 for (var part in query.split("&")) { |
| 17773 var keyvalue = part.split("="); | 17965 var keyvalue = part.split("="); |
| 17774 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 17966 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17775 } | 17967 } |
| 17776 } | 17968 } |
| 17969 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17777 | 17970 |
| 17778 | 17971 |
| 17779 var h = { | 17972 var h = { |
| 17780 "content-type" : "application/json; charset=utf-8", | 17973 "content-type" : "application/json; charset=utf-8", |
| 17781 }; | 17974 }; |
| 17782 var resp = convert.JSON.encode(buildOperation()); | 17975 var resp = convert.JSON.encode(buildOperation()); |
| 17783 return new async.Future.value(stringResponse(200, h, resp)); | 17976 return new async.Future.value(stringResponse(200, h, resp)); |
| 17784 }), true); | 17977 }), true); |
| 17785 res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup)
.then(unittest.expectAsync1(((api.Operation response) { | 17978 res.removeInstances(arg_request, arg_project, arg_zone, arg_instanceGroup,
requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response)
{ |
| 17786 checkOperation(response); | 17979 checkOperation(response); |
| 17787 }))); | 17980 }))); |
| 17788 }); | 17981 }); |
| 17789 | 17982 |
| 17790 unittest.test("method--setNamedPorts", () { | 17983 unittest.test("method--setNamedPorts", () { |
| 17791 | 17984 |
| 17792 var mock = new HttpServerMock(); | 17985 var mock = new HttpServerMock(); |
| 17793 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; | 17986 api.InstanceGroupsResourceApi res = new api.ComputeApi(mock).instanceGroup
s; |
| 17794 var arg_request = buildInstanceGroupsSetNamedPortsRequest(); | 17987 var arg_request = buildInstanceGroupsSetNamedPortsRequest(); |
| 17795 var arg_project = "foo"; | 17988 var arg_project = "foo"; |
| 17796 var arg_zone = "foo"; | 17989 var arg_zone = "foo"; |
| 17797 var arg_instanceGroup = "foo"; | 17990 var arg_instanceGroup = "foo"; |
| 17991 var arg_requestId = "foo"; |
| 17798 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 17992 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17799 var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json); | 17993 var obj = new api.InstanceGroupsSetNamedPortsRequest.fromJson(json); |
| 17800 checkInstanceGroupsSetNamedPortsRequest(obj); | 17994 checkInstanceGroupsSetNamedPortsRequest(obj); |
| 17801 | 17995 |
| 17802 var path = (req.url).path; | 17996 var path = (req.url).path; |
| 17803 var pathOffset = 0; | 17997 var pathOffset = 0; |
| 17804 var index; | 17998 var index; |
| 17805 var subPart; | 17999 var subPart; |
| 17806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18000 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17807 pathOffset += 1; | 18001 pathOffset += 1; |
| 17808 | 18002 |
| 17809 var query = (req.url).query; | 18003 var query = (req.url).query; |
| 17810 var queryOffset = 0; | 18004 var queryOffset = 0; |
| 17811 var queryMap = {}; | 18005 var queryMap = {}; |
| 17812 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18006 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17813 parseBool(n) { | 18007 parseBool(n) { |
| 17814 if (n == "true") return true; | 18008 if (n == "true") return true; |
| 17815 if (n == "false") return false; | 18009 if (n == "false") return false; |
| 17816 if (n == null) return null; | 18010 if (n == null) return null; |
| 17817 throw new core.ArgumentError("Invalid boolean: $n"); | 18011 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17818 } | 18012 } |
| 17819 if (query.length > 0) { | 18013 if (query.length > 0) { |
| 17820 for (var part in query.split("&")) { | 18014 for (var part in query.split("&")) { |
| 17821 var keyvalue = part.split("="); | 18015 var keyvalue = part.split("="); |
| 17822 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18016 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17823 } | 18017 } |
| 17824 } | 18018 } |
| 18019 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17825 | 18020 |
| 17826 | 18021 |
| 17827 var h = { | 18022 var h = { |
| 17828 "content-type" : "application/json; charset=utf-8", | 18023 "content-type" : "application/json; charset=utf-8", |
| 17829 }; | 18024 }; |
| 17830 var resp = convert.JSON.encode(buildOperation()); | 18025 var resp = convert.JSON.encode(buildOperation()); |
| 17831 return new async.Future.value(stringResponse(200, h, resp)); | 18026 return new async.Future.value(stringResponse(200, h, resp)); |
| 17832 }), true); | 18027 }), true); |
| 17833 res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup).t
hen(unittest.expectAsync1(((api.Operation response) { | 18028 res.setNamedPorts(arg_request, arg_project, arg_zone, arg_instanceGroup, r
equestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 17834 checkOperation(response); | 18029 checkOperation(response); |
| 17835 }))); | 18030 }))); |
| 17836 }); | 18031 }); |
| 17837 | 18032 |
| 17838 }); | 18033 }); |
| 17839 | 18034 |
| 17840 | 18035 |
| 17841 unittest.group("resource-InstanceTemplatesResourceApi", () { | 18036 unittest.group("resource-InstanceTemplatesResourceApi", () { |
| 17842 unittest.test("method--delete", () { | 18037 unittest.test("method--delete", () { |
| 17843 | 18038 |
| 17844 var mock = new HttpServerMock(); | 18039 var mock = new HttpServerMock(); |
| 17845 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 18040 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 17846 var arg_project = "foo"; | 18041 var arg_project = "foo"; |
| 17847 var arg_instanceTemplate = "foo"; | 18042 var arg_instanceTemplate = "foo"; |
| 18043 var arg_requestId = "foo"; |
| 17848 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18044 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17849 var path = (req.url).path; | 18045 var path = (req.url).path; |
| 17850 var pathOffset = 0; | 18046 var pathOffset = 0; |
| 17851 var index; | 18047 var index; |
| 17852 var subPart; | 18048 var subPart; |
| 17853 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18049 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17854 pathOffset += 1; | 18050 pathOffset += 1; |
| 17855 | 18051 |
| 17856 var query = (req.url).query; | 18052 var query = (req.url).query; |
| 17857 var queryOffset = 0; | 18053 var queryOffset = 0; |
| 17858 var queryMap = {}; | 18054 var queryMap = {}; |
| 17859 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18055 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17860 parseBool(n) { | 18056 parseBool(n) { |
| 17861 if (n == "true") return true; | 18057 if (n == "true") return true; |
| 17862 if (n == "false") return false; | 18058 if (n == "false") return false; |
| 17863 if (n == null) return null; | 18059 if (n == null) return null; |
| 17864 throw new core.ArgumentError("Invalid boolean: $n"); | 18060 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17865 } | 18061 } |
| 17866 if (query.length > 0) { | 18062 if (query.length > 0) { |
| 17867 for (var part in query.split("&")) { | 18063 for (var part in query.split("&")) { |
| 17868 var keyvalue = part.split("="); | 18064 var keyvalue = part.split("="); |
| 17869 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18065 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17870 } | 18066 } |
| 17871 } | 18067 } |
| 18068 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17872 | 18069 |
| 17873 | 18070 |
| 17874 var h = { | 18071 var h = { |
| 17875 "content-type" : "application/json; charset=utf-8", | 18072 "content-type" : "application/json; charset=utf-8", |
| 17876 }; | 18073 }; |
| 17877 var resp = convert.JSON.encode(buildOperation()); | 18074 var resp = convert.JSON.encode(buildOperation()); |
| 17878 return new async.Future.value(stringResponse(200, h, resp)); | 18075 return new async.Future.value(stringResponse(200, h, resp)); |
| 17879 }), true); | 18076 }), true); |
| 17880 res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync1((
(api.Operation response) { | 18077 res.delete(arg_project, arg_instanceTemplate, requestId: arg_requestId).th
en(unittest.expectAsync1(((api.Operation response) { |
| 17881 checkOperation(response); | 18078 checkOperation(response); |
| 17882 }))); | 18079 }))); |
| 17883 }); | 18080 }); |
| 17884 | 18081 |
| 17885 unittest.test("method--get", () { | 18082 unittest.test("method--get", () { |
| 17886 | 18083 |
| 17887 var mock = new HttpServerMock(); | 18084 var mock = new HttpServerMock(); |
| 17888 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 18085 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 17889 var arg_project = "foo"; | 18086 var arg_project = "foo"; |
| 17890 var arg_instanceTemplate = "foo"; | 18087 var arg_instanceTemplate = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17924 checkInstanceTemplate(response); | 18121 checkInstanceTemplate(response); |
| 17925 }))); | 18122 }))); |
| 17926 }); | 18123 }); |
| 17927 | 18124 |
| 17928 unittest.test("method--insert", () { | 18125 unittest.test("method--insert", () { |
| 17929 | 18126 |
| 17930 var mock = new HttpServerMock(); | 18127 var mock = new HttpServerMock(); |
| 17931 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 18128 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 17932 var arg_request = buildInstanceTemplate(); | 18129 var arg_request = buildInstanceTemplate(); |
| 17933 var arg_project = "foo"; | 18130 var arg_project = "foo"; |
| 18131 var arg_requestId = "foo"; |
| 17934 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18132 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 17935 var obj = new api.InstanceTemplate.fromJson(json); | 18133 var obj = new api.InstanceTemplate.fromJson(json); |
| 17936 checkInstanceTemplate(obj); | 18134 checkInstanceTemplate(obj); |
| 17937 | 18135 |
| 17938 var path = (req.url).path; | 18136 var path = (req.url).path; |
| 17939 var pathOffset = 0; | 18137 var pathOffset = 0; |
| 17940 var index; | 18138 var index; |
| 17941 var subPart; | 18139 var subPart; |
| 17942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18140 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 17943 pathOffset += 1; | 18141 pathOffset += 1; |
| 17944 | 18142 |
| 17945 var query = (req.url).query; | 18143 var query = (req.url).query; |
| 17946 var queryOffset = 0; | 18144 var queryOffset = 0; |
| 17947 var queryMap = {}; | 18145 var queryMap = {}; |
| 17948 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18146 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 17949 parseBool(n) { | 18147 parseBool(n) { |
| 17950 if (n == "true") return true; | 18148 if (n == "true") return true; |
| 17951 if (n == "false") return false; | 18149 if (n == "false") return false; |
| 17952 if (n == null) return null; | 18150 if (n == null) return null; |
| 17953 throw new core.ArgumentError("Invalid boolean: $n"); | 18151 throw new core.ArgumentError("Invalid boolean: $n"); |
| 17954 } | 18152 } |
| 17955 if (query.length > 0) { | 18153 if (query.length > 0) { |
| 17956 for (var part in query.split("&")) { | 18154 for (var part in query.split("&")) { |
| 17957 var keyvalue = part.split("="); | 18155 var keyvalue = part.split("="); |
| 17958 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18156 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 17959 } | 18157 } |
| 17960 } | 18158 } |
| 18159 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 17961 | 18160 |
| 17962 | 18161 |
| 17963 var h = { | 18162 var h = { |
| 17964 "content-type" : "application/json; charset=utf-8", | 18163 "content-type" : "application/json; charset=utf-8", |
| 17965 }; | 18164 }; |
| 17966 var resp = convert.JSON.encode(buildOperation()); | 18165 var resp = convert.JSON.encode(buildOperation()); |
| 17967 return new async.Future.value(stringResponse(200, h, resp)); | 18166 return new async.Future.value(stringResponse(200, h, resp)); |
| 17968 }), true); | 18167 }), true); |
| 17969 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 18168 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 17970 checkOperation(response); | 18169 checkOperation(response); |
| 17971 }))); | 18170 }))); |
| 17972 }); | 18171 }); |
| 17973 | 18172 |
| 17974 unittest.test("method--list", () { | 18173 unittest.test("method--list", () { |
| 17975 | 18174 |
| 17976 var mock = new HttpServerMock(); | 18175 var mock = new HttpServerMock(); |
| 17977 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 18176 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 17978 var arg_project = "foo"; | 18177 var arg_project = "foo"; |
| 17979 var arg_filter = "foo"; | 18178 var arg_filter = "foo"; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18027 unittest.group("resource-InstancesResourceApi", () { | 18226 unittest.group("resource-InstancesResourceApi", () { |
| 18028 unittest.test("method--addAccessConfig", () { | 18227 unittest.test("method--addAccessConfig", () { |
| 18029 | 18228 |
| 18030 var mock = new HttpServerMock(); | 18229 var mock = new HttpServerMock(); |
| 18031 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18230 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18032 var arg_request = buildAccessConfig(); | 18231 var arg_request = buildAccessConfig(); |
| 18033 var arg_project = "foo"; | 18232 var arg_project = "foo"; |
| 18034 var arg_zone = "foo"; | 18233 var arg_zone = "foo"; |
| 18035 var arg_instance = "foo"; | 18234 var arg_instance = "foo"; |
| 18036 var arg_networkInterface = "foo"; | 18235 var arg_networkInterface = "foo"; |
| 18236 var arg_requestId = "foo"; |
| 18037 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18237 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18038 var obj = new api.AccessConfig.fromJson(json); | 18238 var obj = new api.AccessConfig.fromJson(json); |
| 18039 checkAccessConfig(obj); | 18239 checkAccessConfig(obj); |
| 18040 | 18240 |
| 18041 var path = (req.url).path; | 18241 var path = (req.url).path; |
| 18042 var pathOffset = 0; | 18242 var pathOffset = 0; |
| 18043 var index; | 18243 var index; |
| 18044 var subPart; | 18244 var subPart; |
| 18045 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18245 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18046 pathOffset += 1; | 18246 pathOffset += 1; |
| 18047 | 18247 |
| 18048 var query = (req.url).query; | 18248 var query = (req.url).query; |
| 18049 var queryOffset = 0; | 18249 var queryOffset = 0; |
| 18050 var queryMap = {}; | 18250 var queryMap = {}; |
| 18051 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18251 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18052 parseBool(n) { | 18252 parseBool(n) { |
| 18053 if (n == "true") return true; | 18253 if (n == "true") return true; |
| 18054 if (n == "false") return false; | 18254 if (n == "false") return false; |
| 18055 if (n == null) return null; | 18255 if (n == null) return null; |
| 18056 throw new core.ArgumentError("Invalid boolean: $n"); | 18256 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18057 } | 18257 } |
| 18058 if (query.length > 0) { | 18258 if (query.length > 0) { |
| 18059 for (var part in query.split("&")) { | 18259 for (var part in query.split("&")) { |
| 18060 var keyvalue = part.split("="); | 18260 var keyvalue = part.split("="); |
| 18061 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18261 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18062 } | 18262 } |
| 18063 } | 18263 } |
| 18064 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); | 18264 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); |
| 18265 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18065 | 18266 |
| 18066 | 18267 |
| 18067 var h = { | 18268 var h = { |
| 18068 "content-type" : "application/json; charset=utf-8", | 18269 "content-type" : "application/json; charset=utf-8", |
| 18069 }; | 18270 }; |
| 18070 var resp = convert.JSON.encode(buildOperation()); | 18271 var resp = convert.JSON.encode(buildOperation()); |
| 18071 return new async.Future.value(stringResponse(200, h, resp)); | 18272 return new async.Future.value(stringResponse(200, h, resp)); |
| 18072 }), true); | 18273 }), true); |
| 18073 res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_
networkInterface).then(unittest.expectAsync1(((api.Operation response) { | 18274 res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_
networkInterface, requestId: arg_requestId).then(unittest.expectAsync1(((api.Ope
ration response) { |
| 18074 checkOperation(response); | 18275 checkOperation(response); |
| 18075 }))); | 18276 }))); |
| 18076 }); | 18277 }); |
| 18077 | 18278 |
| 18078 unittest.test("method--aggregatedList", () { | 18279 unittest.test("method--aggregatedList", () { |
| 18079 | 18280 |
| 18080 var mock = new HttpServerMock(); | 18281 var mock = new HttpServerMock(); |
| 18081 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18282 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18082 var arg_project = "foo"; | 18283 var arg_project = "foo"; |
| 18083 var arg_filter = "foo"; | 18284 var arg_filter = "foo"; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18126 }); | 18327 }); |
| 18127 | 18328 |
| 18128 unittest.test("method--attachDisk", () { | 18329 unittest.test("method--attachDisk", () { |
| 18129 | 18330 |
| 18130 var mock = new HttpServerMock(); | 18331 var mock = new HttpServerMock(); |
| 18131 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18332 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18132 var arg_request = buildAttachedDisk(); | 18333 var arg_request = buildAttachedDisk(); |
| 18133 var arg_project = "foo"; | 18334 var arg_project = "foo"; |
| 18134 var arg_zone = "foo"; | 18335 var arg_zone = "foo"; |
| 18135 var arg_instance = "foo"; | 18336 var arg_instance = "foo"; |
| 18337 var arg_requestId = "foo"; |
| 18136 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18338 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18137 var obj = new api.AttachedDisk.fromJson(json); | 18339 var obj = new api.AttachedDisk.fromJson(json); |
| 18138 checkAttachedDisk(obj); | 18340 checkAttachedDisk(obj); |
| 18139 | 18341 |
| 18140 var path = (req.url).path; | 18342 var path = (req.url).path; |
| 18141 var pathOffset = 0; | 18343 var pathOffset = 0; |
| 18142 var index; | 18344 var index; |
| 18143 var subPart; | 18345 var subPart; |
| 18144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18145 pathOffset += 1; | 18347 pathOffset += 1; |
| 18146 | 18348 |
| 18147 var query = (req.url).query; | 18349 var query = (req.url).query; |
| 18148 var queryOffset = 0; | 18350 var queryOffset = 0; |
| 18149 var queryMap = {}; | 18351 var queryMap = {}; |
| 18150 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18352 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18151 parseBool(n) { | 18353 parseBool(n) { |
| 18152 if (n == "true") return true; | 18354 if (n == "true") return true; |
| 18153 if (n == "false") return false; | 18355 if (n == "false") return false; |
| 18154 if (n == null) return null; | 18356 if (n == null) return null; |
| 18155 throw new core.ArgumentError("Invalid boolean: $n"); | 18357 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18156 } | 18358 } |
| 18157 if (query.length > 0) { | 18359 if (query.length > 0) { |
| 18158 for (var part in query.split("&")) { | 18360 for (var part in query.split("&")) { |
| 18159 var keyvalue = part.split("="); | 18361 var keyvalue = part.split("="); |
| 18160 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18362 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18161 } | 18363 } |
| 18162 } | 18364 } |
| 18365 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18163 | 18366 |
| 18164 | 18367 |
| 18165 var h = { | 18368 var h = { |
| 18166 "content-type" : "application/json; charset=utf-8", | 18369 "content-type" : "application/json; charset=utf-8", |
| 18167 }; | 18370 }; |
| 18168 var resp = convert.JSON.encode(buildOperation()); | 18371 var resp = convert.JSON.encode(buildOperation()); |
| 18169 return new async.Future.value(stringResponse(200, h, resp)); | 18372 return new async.Future.value(stringResponse(200, h, resp)); |
| 18170 }), true); | 18373 }), true); |
| 18171 res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unit
test.expectAsync1(((api.Operation response) { | 18374 res.attachDisk(arg_request, arg_project, arg_zone, arg_instance, requestId
: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18172 checkOperation(response); | 18375 checkOperation(response); |
| 18173 }))); | 18376 }))); |
| 18174 }); | 18377 }); |
| 18175 | 18378 |
| 18176 unittest.test("method--delete", () { | 18379 unittest.test("method--delete", () { |
| 18177 | 18380 |
| 18178 var mock = new HttpServerMock(); | 18381 var mock = new HttpServerMock(); |
| 18179 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18382 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18180 var arg_project = "foo"; | 18383 var arg_project = "foo"; |
| 18181 var arg_zone = "foo"; | 18384 var arg_zone = "foo"; |
| 18182 var arg_instance = "foo"; | 18385 var arg_instance = "foo"; |
| 18386 var arg_requestId = "foo"; |
| 18183 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18387 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18184 var path = (req.url).path; | 18388 var path = (req.url).path; |
| 18185 var pathOffset = 0; | 18389 var pathOffset = 0; |
| 18186 var index; | 18390 var index; |
| 18187 var subPart; | 18391 var subPart; |
| 18188 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18189 pathOffset += 1; | 18393 pathOffset += 1; |
| 18190 | 18394 |
| 18191 var query = (req.url).query; | 18395 var query = (req.url).query; |
| 18192 var queryOffset = 0; | 18396 var queryOffset = 0; |
| 18193 var queryMap = {}; | 18397 var queryMap = {}; |
| 18194 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18398 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18195 parseBool(n) { | 18399 parseBool(n) { |
| 18196 if (n == "true") return true; | 18400 if (n == "true") return true; |
| 18197 if (n == "false") return false; | 18401 if (n == "false") return false; |
| 18198 if (n == null) return null; | 18402 if (n == null) return null; |
| 18199 throw new core.ArgumentError("Invalid boolean: $n"); | 18403 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18200 } | 18404 } |
| 18201 if (query.length > 0) { | 18405 if (query.length > 0) { |
| 18202 for (var part in query.split("&")) { | 18406 for (var part in query.split("&")) { |
| 18203 var keyvalue = part.split("="); | 18407 var keyvalue = part.split("="); |
| 18204 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18408 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18205 } | 18409 } |
| 18206 } | 18410 } |
| 18411 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18207 | 18412 |
| 18208 | 18413 |
| 18209 var h = { | 18414 var h = { |
| 18210 "content-type" : "application/json; charset=utf-8", | 18415 "content-type" : "application/json; charset=utf-8", |
| 18211 }; | 18416 }; |
| 18212 var resp = convert.JSON.encode(buildOperation()); | 18417 var resp = convert.JSON.encode(buildOperation()); |
| 18213 return new async.Future.value(stringResponse(200, h, resp)); | 18418 return new async.Future.value(stringResponse(200, h, resp)); |
| 18214 }), true); | 18419 }), true); |
| 18215 res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1
(((api.Operation response) { | 18420 res.delete(arg_project, arg_zone, arg_instance, requestId: arg_requestId).
then(unittest.expectAsync1(((api.Operation response) { |
| 18216 checkOperation(response); | 18421 checkOperation(response); |
| 18217 }))); | 18422 }))); |
| 18218 }); | 18423 }); |
| 18219 | 18424 |
| 18220 unittest.test("method--deleteAccessConfig", () { | 18425 unittest.test("method--deleteAccessConfig", () { |
| 18221 | 18426 |
| 18222 var mock = new HttpServerMock(); | 18427 var mock = new HttpServerMock(); |
| 18223 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18428 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18224 var arg_project = "foo"; | 18429 var arg_project = "foo"; |
| 18225 var arg_zone = "foo"; | 18430 var arg_zone = "foo"; |
| 18226 var arg_instance = "foo"; | 18431 var arg_instance = "foo"; |
| 18227 var arg_accessConfig = "foo"; | 18432 var arg_accessConfig = "foo"; |
| 18228 var arg_networkInterface = "foo"; | 18433 var arg_networkInterface = "foo"; |
| 18434 var arg_requestId = "foo"; |
| 18229 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18435 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18230 var path = (req.url).path; | 18436 var path = (req.url).path; |
| 18231 var pathOffset = 0; | 18437 var pathOffset = 0; |
| 18232 var index; | 18438 var index; |
| 18233 var subPart; | 18439 var subPart; |
| 18234 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18440 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18235 pathOffset += 1; | 18441 pathOffset += 1; |
| 18236 | 18442 |
| 18237 var query = (req.url).query; | 18443 var query = (req.url).query; |
| 18238 var queryOffset = 0; | 18444 var queryOffset = 0; |
| 18239 var queryMap = {}; | 18445 var queryMap = {}; |
| 18240 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18446 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18241 parseBool(n) { | 18447 parseBool(n) { |
| 18242 if (n == "true") return true; | 18448 if (n == "true") return true; |
| 18243 if (n == "false") return false; | 18449 if (n == "false") return false; |
| 18244 if (n == null) return null; | 18450 if (n == null) return null; |
| 18245 throw new core.ArgumentError("Invalid boolean: $n"); | 18451 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18246 } | 18452 } |
| 18247 if (query.length > 0) { | 18453 if (query.length > 0) { |
| 18248 for (var part in query.split("&")) { | 18454 for (var part in query.split("&")) { |
| 18249 var keyvalue = part.split("="); | 18455 var keyvalue = part.split("="); |
| 18250 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])); |
| 18251 } | 18457 } |
| 18252 } | 18458 } |
| 18253 unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_acce
ssConfig)); | 18459 unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_acce
ssConfig)); |
| 18254 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); | 18460 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); |
| 18461 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18255 | 18462 |
| 18256 | 18463 |
| 18257 var h = { | 18464 var h = { |
| 18258 "content-type" : "application/json; charset=utf-8", | 18465 "content-type" : "application/json; charset=utf-8", |
| 18259 }; | 18466 }; |
| 18260 var resp = convert.JSON.encode(buildOperation()); | 18467 var resp = convert.JSON.encode(buildOperation()); |
| 18261 return new async.Future.value(stringResponse(200, h, resp)); | 18468 return new async.Future.value(stringResponse(200, h, resp)); |
| 18262 }), true); | 18469 }), true); |
| 18263 res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConf
ig, arg_networkInterface).then(unittest.expectAsync1(((api.Operation response) { | 18470 res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConf
ig, arg_networkInterface, requestId: arg_requestId).then(unittest.expectAsync1((
(api.Operation response) { |
| 18264 checkOperation(response); | 18471 checkOperation(response); |
| 18265 }))); | 18472 }))); |
| 18266 }); | 18473 }); |
| 18267 | 18474 |
| 18268 unittest.test("method--detachDisk", () { | 18475 unittest.test("method--detachDisk", () { |
| 18269 | 18476 |
| 18270 var mock = new HttpServerMock(); | 18477 var mock = new HttpServerMock(); |
| 18271 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18478 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18272 var arg_project = "foo"; | 18479 var arg_project = "foo"; |
| 18273 var arg_zone = "foo"; | 18480 var arg_zone = "foo"; |
| 18274 var arg_instance = "foo"; | 18481 var arg_instance = "foo"; |
| 18275 var arg_deviceName = "foo"; | 18482 var arg_deviceName = "foo"; |
| 18483 var arg_requestId = "foo"; |
| 18276 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18484 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18277 var path = (req.url).path; | 18485 var path = (req.url).path; |
| 18278 var pathOffset = 0; | 18486 var pathOffset = 0; |
| 18279 var index; | 18487 var index; |
| 18280 var subPart; | 18488 var subPart; |
| 18281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18489 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18282 pathOffset += 1; | 18490 pathOffset += 1; |
| 18283 | 18491 |
| 18284 var query = (req.url).query; | 18492 var query = (req.url).query; |
| 18285 var queryOffset = 0; | 18493 var queryOffset = 0; |
| 18286 var queryMap = {}; | 18494 var queryMap = {}; |
| 18287 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18495 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18288 parseBool(n) { | 18496 parseBool(n) { |
| 18289 if (n == "true") return true; | 18497 if (n == "true") return true; |
| 18290 if (n == "false") return false; | 18498 if (n == "false") return false; |
| 18291 if (n == null) return null; | 18499 if (n == null) return null; |
| 18292 throw new core.ArgumentError("Invalid boolean: $n"); | 18500 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18293 } | 18501 } |
| 18294 if (query.length > 0) { | 18502 if (query.length > 0) { |
| 18295 for (var part in query.split("&")) { | 18503 for (var part in query.split("&")) { |
| 18296 var keyvalue = part.split("="); | 18504 var keyvalue = part.split("="); |
| 18297 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18298 } | 18506 } |
| 18299 } | 18507 } |
| 18300 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); | 18508 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); |
| 18509 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18301 | 18510 |
| 18302 | 18511 |
| 18303 var h = { | 18512 var h = { |
| 18304 "content-type" : "application/json; charset=utf-8", | 18513 "content-type" : "application/json; charset=utf-8", |
| 18305 }; | 18514 }; |
| 18306 var resp = convert.JSON.encode(buildOperation()); | 18515 var resp = convert.JSON.encode(buildOperation()); |
| 18307 return new async.Future.value(stringResponse(200, h, resp)); | 18516 return new async.Future.value(stringResponse(200, h, resp)); |
| 18308 }), true); | 18517 }), true); |
| 18309 res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(u
nittest.expectAsync1(((api.Operation response) { | 18518 res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName, reques
tId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18310 checkOperation(response); | 18519 checkOperation(response); |
| 18311 }))); | 18520 }))); |
| 18312 }); | 18521 }); |
| 18313 | 18522 |
| 18314 unittest.test("method--get", () { | 18523 unittest.test("method--get", () { |
| 18315 | 18524 |
| 18316 var mock = new HttpServerMock(); | 18525 var mock = new HttpServerMock(); |
| 18317 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18526 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18318 var arg_project = "foo"; | 18527 var arg_project = "foo"; |
| 18319 var arg_zone = "foo"; | 18528 var arg_zone = "foo"; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18403 }))); | 18612 }))); |
| 18404 }); | 18613 }); |
| 18405 | 18614 |
| 18406 unittest.test("method--insert", () { | 18615 unittest.test("method--insert", () { |
| 18407 | 18616 |
| 18408 var mock = new HttpServerMock(); | 18617 var mock = new HttpServerMock(); |
| 18409 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18618 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18410 var arg_request = buildInstance(); | 18619 var arg_request = buildInstance(); |
| 18411 var arg_project = "foo"; | 18620 var arg_project = "foo"; |
| 18412 var arg_zone = "foo"; | 18621 var arg_zone = "foo"; |
| 18622 var arg_requestId = "foo"; |
| 18413 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18623 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18414 var obj = new api.Instance.fromJson(json); | 18624 var obj = new api.Instance.fromJson(json); |
| 18415 checkInstance(obj); | 18625 checkInstance(obj); |
| 18416 | 18626 |
| 18417 var path = (req.url).path; | 18627 var path = (req.url).path; |
| 18418 var pathOffset = 0; | 18628 var pathOffset = 0; |
| 18419 var index; | 18629 var index; |
| 18420 var subPart; | 18630 var subPart; |
| 18421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18631 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18422 pathOffset += 1; | 18632 pathOffset += 1; |
| 18423 | 18633 |
| 18424 var query = (req.url).query; | 18634 var query = (req.url).query; |
| 18425 var queryOffset = 0; | 18635 var queryOffset = 0; |
| 18426 var queryMap = {}; | 18636 var queryMap = {}; |
| 18427 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18637 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18428 parseBool(n) { | 18638 parseBool(n) { |
| 18429 if (n == "true") return true; | 18639 if (n == "true") return true; |
| 18430 if (n == "false") return false; | 18640 if (n == "false") return false; |
| 18431 if (n == null) return null; | 18641 if (n == null) return null; |
| 18432 throw new core.ArgumentError("Invalid boolean: $n"); | 18642 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18433 } | 18643 } |
| 18434 if (query.length > 0) { | 18644 if (query.length > 0) { |
| 18435 for (var part in query.split("&")) { | 18645 for (var part in query.split("&")) { |
| 18436 var keyvalue = part.split("="); | 18646 var keyvalue = part.split("="); |
| 18437 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18647 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18438 } | 18648 } |
| 18439 } | 18649 } |
| 18650 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18440 | 18651 |
| 18441 | 18652 |
| 18442 var h = { | 18653 var h = { |
| 18443 "content-type" : "application/json; charset=utf-8", | 18654 "content-type" : "application/json; charset=utf-8", |
| 18444 }; | 18655 }; |
| 18445 var resp = convert.JSON.encode(buildOperation()); | 18656 var resp = convert.JSON.encode(buildOperation()); |
| 18446 return new async.Future.value(stringResponse(200, h, resp)); | 18657 return new async.Future.value(stringResponse(200, h, resp)); |
| 18447 }), true); | 18658 }), true); |
| 18448 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(
((api.Operation response) { | 18659 res.insert(arg_request, arg_project, arg_zone, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 18449 checkOperation(response); | 18660 checkOperation(response); |
| 18450 }))); | 18661 }))); |
| 18451 }); | 18662 }); |
| 18452 | 18663 |
| 18453 unittest.test("method--list", () { | 18664 unittest.test("method--list", () { |
| 18454 | 18665 |
| 18455 var mock = new HttpServerMock(); | 18666 var mock = new HttpServerMock(); |
| 18456 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18667 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18457 var arg_project = "foo"; | 18668 var arg_project = "foo"; |
| 18458 var arg_zone = "foo"; | 18669 var arg_zone = "foo"; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18501 }))); | 18712 }))); |
| 18502 }); | 18713 }); |
| 18503 | 18714 |
| 18504 unittest.test("method--reset", () { | 18715 unittest.test("method--reset", () { |
| 18505 | 18716 |
| 18506 var mock = new HttpServerMock(); | 18717 var mock = new HttpServerMock(); |
| 18507 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18718 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18508 var arg_project = "foo"; | 18719 var arg_project = "foo"; |
| 18509 var arg_zone = "foo"; | 18720 var arg_zone = "foo"; |
| 18510 var arg_instance = "foo"; | 18721 var arg_instance = "foo"; |
| 18722 var arg_requestId = "foo"; |
| 18511 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18723 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18512 var path = (req.url).path; | 18724 var path = (req.url).path; |
| 18513 var pathOffset = 0; | 18725 var pathOffset = 0; |
| 18514 var index; | 18726 var index; |
| 18515 var subPart; | 18727 var subPart; |
| 18516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18728 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18517 pathOffset += 1; | 18729 pathOffset += 1; |
| 18518 | 18730 |
| 18519 var query = (req.url).query; | 18731 var query = (req.url).query; |
| 18520 var queryOffset = 0; | 18732 var queryOffset = 0; |
| 18521 var queryMap = {}; | 18733 var queryMap = {}; |
| 18522 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18734 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18523 parseBool(n) { | 18735 parseBool(n) { |
| 18524 if (n == "true") return true; | 18736 if (n == "true") return true; |
| 18525 if (n == "false") return false; | 18737 if (n == "false") return false; |
| 18526 if (n == null) return null; | 18738 if (n == null) return null; |
| 18527 throw new core.ArgumentError("Invalid boolean: $n"); | 18739 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18528 } | 18740 } |
| 18529 if (query.length > 0) { | 18741 if (query.length > 0) { |
| 18530 for (var part in query.split("&")) { | 18742 for (var part in query.split("&")) { |
| 18531 var keyvalue = part.split("="); | 18743 var keyvalue = part.split("="); |
| 18532 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18744 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18533 } | 18745 } |
| 18534 } | 18746 } |
| 18747 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18535 | 18748 |
| 18536 | 18749 |
| 18537 var h = { | 18750 var h = { |
| 18538 "content-type" : "application/json; charset=utf-8", | 18751 "content-type" : "application/json; charset=utf-8", |
| 18539 }; | 18752 }; |
| 18540 var resp = convert.JSON.encode(buildOperation()); | 18753 var resp = convert.JSON.encode(buildOperation()); |
| 18541 return new async.Future.value(stringResponse(200, h, resp)); | 18754 return new async.Future.value(stringResponse(200, h, resp)); |
| 18542 }), true); | 18755 }), true); |
| 18543 res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(
((api.Operation response) { | 18756 res.reset(arg_project, arg_zone, arg_instance, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 18544 checkOperation(response); | 18757 checkOperation(response); |
| 18545 }))); | 18758 }))); |
| 18546 }); | 18759 }); |
| 18547 | 18760 |
| 18548 unittest.test("method--setDiskAutoDelete", () { | 18761 unittest.test("method--setDiskAutoDelete", () { |
| 18549 | 18762 |
| 18550 var mock = new HttpServerMock(); | 18763 var mock = new HttpServerMock(); |
| 18551 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18764 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18552 var arg_project = "foo"; | 18765 var arg_project = "foo"; |
| 18553 var arg_zone = "foo"; | 18766 var arg_zone = "foo"; |
| 18554 var arg_instance = "foo"; | 18767 var arg_instance = "foo"; |
| 18555 var arg_autoDelete = true; | 18768 var arg_autoDelete = true; |
| 18556 var arg_deviceName = "foo"; | 18769 var arg_deviceName = "foo"; |
| 18770 var arg_requestId = "foo"; |
| 18557 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18771 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18558 var path = (req.url).path; | 18772 var path = (req.url).path; |
| 18559 var pathOffset = 0; | 18773 var pathOffset = 0; |
| 18560 var index; | 18774 var index; |
| 18561 var subPart; | 18775 var subPart; |
| 18562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18776 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18563 pathOffset += 1; | 18777 pathOffset += 1; |
| 18564 | 18778 |
| 18565 var query = (req.url).query; | 18779 var query = (req.url).query; |
| 18566 var queryOffset = 0; | 18780 var queryOffset = 0; |
| 18567 var queryMap = {}; | 18781 var queryMap = {}; |
| 18568 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18782 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18569 parseBool(n) { | 18783 parseBool(n) { |
| 18570 if (n == "true") return true; | 18784 if (n == "true") return true; |
| 18571 if (n == "false") return false; | 18785 if (n == "false") return false; |
| 18572 if (n == null) return null; | 18786 if (n == null) return null; |
| 18573 throw new core.ArgumentError("Invalid boolean: $n"); | 18787 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18574 } | 18788 } |
| 18575 if (query.length > 0) { | 18789 if (query.length > 0) { |
| 18576 for (var part in query.split("&")) { | 18790 for (var part in query.split("&")) { |
| 18577 var keyvalue = part.split("="); | 18791 var keyvalue = part.split("="); |
| 18578 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18792 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18579 } | 18793 } |
| 18580 } | 18794 } |
| 18581 unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_auto
Delete")); | 18795 unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_auto
Delete")); |
| 18582 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); | 18796 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); |
| 18797 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18583 | 18798 |
| 18584 | 18799 |
| 18585 var h = { | 18800 var h = { |
| 18586 "content-type" : "application/json; charset=utf-8", | 18801 "content-type" : "application/json; charset=utf-8", |
| 18587 }; | 18802 }; |
| 18588 var resp = convert.JSON.encode(buildOperation()); | 18803 var resp = convert.JSON.encode(buildOperation()); |
| 18589 return new async.Future.value(stringResponse(200, h, resp)); | 18804 return new async.Future.value(stringResponse(200, h, resp)); |
| 18590 }), true); | 18805 }), true); |
| 18591 res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete,
arg_deviceName).then(unittest.expectAsync1(((api.Operation response) { | 18806 res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete,
arg_deviceName, requestId: arg_requestId).then(unittest.expectAsync1(((api.Oper
ation response) { |
| 18592 checkOperation(response); | 18807 checkOperation(response); |
| 18593 }))); | 18808 }))); |
| 18594 }); | 18809 }); |
| 18595 | 18810 |
| 18596 unittest.test("method--setLabels", () { | 18811 unittest.test("method--setLabels", () { |
| 18597 | 18812 |
| 18598 var mock = new HttpServerMock(); | 18813 var mock = new HttpServerMock(); |
| 18599 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18814 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18600 var arg_request = buildInstancesSetLabelsRequest(); | 18815 var arg_request = buildInstancesSetLabelsRequest(); |
| 18601 var arg_project = "foo"; | 18816 var arg_project = "foo"; |
| 18602 var arg_zone = "foo"; | 18817 var arg_zone = "foo"; |
| 18603 var arg_instance = "foo"; | 18818 var arg_instance = "foo"; |
| 18819 var arg_requestId = "foo"; |
| 18604 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18820 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18605 var obj = new api.InstancesSetLabelsRequest.fromJson(json); | 18821 var obj = new api.InstancesSetLabelsRequest.fromJson(json); |
| 18606 checkInstancesSetLabelsRequest(obj); | 18822 checkInstancesSetLabelsRequest(obj); |
| 18607 | 18823 |
| 18608 var path = (req.url).path; | 18824 var path = (req.url).path; |
| 18609 var pathOffset = 0; | 18825 var pathOffset = 0; |
| 18610 var index; | 18826 var index; |
| 18611 var subPart; | 18827 var subPart; |
| 18612 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18613 pathOffset += 1; | 18829 pathOffset += 1; |
| 18614 | 18830 |
| 18615 var query = (req.url).query; | 18831 var query = (req.url).query; |
| 18616 var queryOffset = 0; | 18832 var queryOffset = 0; |
| 18617 var queryMap = {}; | 18833 var queryMap = {}; |
| 18618 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18834 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18619 parseBool(n) { | 18835 parseBool(n) { |
| 18620 if (n == "true") return true; | 18836 if (n == "true") return true; |
| 18621 if (n == "false") return false; | 18837 if (n == "false") return false; |
| 18622 if (n == null) return null; | 18838 if (n == null) return null; |
| 18623 throw new core.ArgumentError("Invalid boolean: $n"); | 18839 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18624 } | 18840 } |
| 18625 if (query.length > 0) { | 18841 if (query.length > 0) { |
| 18626 for (var part in query.split("&")) { | 18842 for (var part in query.split("&")) { |
| 18627 var keyvalue = part.split("="); | 18843 var keyvalue = part.split("="); |
| 18628 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18844 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18629 } | 18845 } |
| 18630 } | 18846 } |
| 18847 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18631 | 18848 |
| 18632 | 18849 |
| 18633 var h = { | 18850 var h = { |
| 18634 "content-type" : "application/json; charset=utf-8", | 18851 "content-type" : "application/json; charset=utf-8", |
| 18635 }; | 18852 }; |
| 18636 var resp = convert.JSON.encode(buildOperation()); | 18853 var resp = convert.JSON.encode(buildOperation()); |
| 18637 return new async.Future.value(stringResponse(200, h, resp)); | 18854 return new async.Future.value(stringResponse(200, h, resp)); |
| 18638 }), true); | 18855 }), true); |
| 18639 res.setLabels(arg_request, arg_project, arg_zone, arg_instance).then(unitt
est.expectAsync1(((api.Operation response) { | 18856 res.setLabels(arg_request, arg_project, arg_zone, arg_instance, requestId:
arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18640 checkOperation(response); | 18857 checkOperation(response); |
| 18641 }))); | 18858 }))); |
| 18642 }); | 18859 }); |
| 18643 | 18860 |
| 18644 unittest.test("method--setMachineResources", () { | 18861 unittest.test("method--setMachineResources", () { |
| 18645 | 18862 |
| 18646 var mock = new HttpServerMock(); | 18863 var mock = new HttpServerMock(); |
| 18647 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18864 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18648 var arg_request = buildInstancesSetMachineResourcesRequest(); | 18865 var arg_request = buildInstancesSetMachineResourcesRequest(); |
| 18649 var arg_project = "foo"; | 18866 var arg_project = "foo"; |
| 18650 var arg_zone = "foo"; | 18867 var arg_zone = "foo"; |
| 18651 var arg_instance = "foo"; | 18868 var arg_instance = "foo"; |
| 18869 var arg_requestId = "foo"; |
| 18652 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18870 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18653 var obj = new api.InstancesSetMachineResourcesRequest.fromJson(json); | 18871 var obj = new api.InstancesSetMachineResourcesRequest.fromJson(json); |
| 18654 checkInstancesSetMachineResourcesRequest(obj); | 18872 checkInstancesSetMachineResourcesRequest(obj); |
| 18655 | 18873 |
| 18656 var path = (req.url).path; | 18874 var path = (req.url).path; |
| 18657 var pathOffset = 0; | 18875 var pathOffset = 0; |
| 18658 var index; | 18876 var index; |
| 18659 var subPart; | 18877 var subPart; |
| 18660 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18661 pathOffset += 1; | 18879 pathOffset += 1; |
| 18662 | 18880 |
| 18663 var query = (req.url).query; | 18881 var query = (req.url).query; |
| 18664 var queryOffset = 0; | 18882 var queryOffset = 0; |
| 18665 var queryMap = {}; | 18883 var queryMap = {}; |
| 18666 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18884 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18667 parseBool(n) { | 18885 parseBool(n) { |
| 18668 if (n == "true") return true; | 18886 if (n == "true") return true; |
| 18669 if (n == "false") return false; | 18887 if (n == "false") return false; |
| 18670 if (n == null) return null; | 18888 if (n == null) return null; |
| 18671 throw new core.ArgumentError("Invalid boolean: $n"); | 18889 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18672 } | 18890 } |
| 18673 if (query.length > 0) { | 18891 if (query.length > 0) { |
| 18674 for (var part in query.split("&")) { | 18892 for (var part in query.split("&")) { |
| 18675 var keyvalue = part.split("="); | 18893 var keyvalue = part.split("="); |
| 18676 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18894 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18677 } | 18895 } |
| 18678 } | 18896 } |
| 18897 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18679 | 18898 |
| 18680 | 18899 |
| 18681 var h = { | 18900 var h = { |
| 18682 "content-type" : "application/json; charset=utf-8", | 18901 "content-type" : "application/json; charset=utf-8", |
| 18683 }; | 18902 }; |
| 18684 var resp = convert.JSON.encode(buildOperation()); | 18903 var resp = convert.JSON.encode(buildOperation()); |
| 18685 return new async.Future.value(stringResponse(200, h, resp)); | 18904 return new async.Future.value(stringResponse(200, h, resp)); |
| 18686 }), true); | 18905 }), true); |
| 18687 res.setMachineResources(arg_request, arg_project, arg_zone, arg_instance).
then(unittest.expectAsync1(((api.Operation response) { | 18906 res.setMachineResources(arg_request, arg_project, arg_zone, arg_instance,
requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18688 checkOperation(response); | 18907 checkOperation(response); |
| 18689 }))); | 18908 }))); |
| 18690 }); | 18909 }); |
| 18691 | 18910 |
| 18692 unittest.test("method--setMachineType", () { | 18911 unittest.test("method--setMachineType", () { |
| 18693 | 18912 |
| 18694 var mock = new HttpServerMock(); | 18913 var mock = new HttpServerMock(); |
| 18695 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18914 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18696 var arg_request = buildInstancesSetMachineTypeRequest(); | 18915 var arg_request = buildInstancesSetMachineTypeRequest(); |
| 18697 var arg_project = "foo"; | 18916 var arg_project = "foo"; |
| 18698 var arg_zone = "foo"; | 18917 var arg_zone = "foo"; |
| 18699 var arg_instance = "foo"; | 18918 var arg_instance = "foo"; |
| 18919 var arg_requestId = "foo"; |
| 18700 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18920 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18701 var obj = new api.InstancesSetMachineTypeRequest.fromJson(json); | 18921 var obj = new api.InstancesSetMachineTypeRequest.fromJson(json); |
| 18702 checkInstancesSetMachineTypeRequest(obj); | 18922 checkInstancesSetMachineTypeRequest(obj); |
| 18703 | 18923 |
| 18704 var path = (req.url).path; | 18924 var path = (req.url).path; |
| 18705 var pathOffset = 0; | 18925 var pathOffset = 0; |
| 18706 var index; | 18926 var index; |
| 18707 var subPart; | 18927 var subPart; |
| 18708 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18709 pathOffset += 1; | 18929 pathOffset += 1; |
| 18710 | 18930 |
| 18711 var query = (req.url).query; | 18931 var query = (req.url).query; |
| 18712 var queryOffset = 0; | 18932 var queryOffset = 0; |
| 18713 var queryMap = {}; | 18933 var queryMap = {}; |
| 18714 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18934 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18715 parseBool(n) { | 18935 parseBool(n) { |
| 18716 if (n == "true") return true; | 18936 if (n == "true") return true; |
| 18717 if (n == "false") return false; | 18937 if (n == "false") return false; |
| 18718 if (n == null) return null; | 18938 if (n == null) return null; |
| 18719 throw new core.ArgumentError("Invalid boolean: $n"); | 18939 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18720 } | 18940 } |
| 18721 if (query.length > 0) { | 18941 if (query.length > 0) { |
| 18722 for (var part in query.split("&")) { | 18942 for (var part in query.split("&")) { |
| 18723 var keyvalue = part.split("="); | 18943 var keyvalue = part.split("="); |
| 18724 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18944 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18725 } | 18945 } |
| 18726 } | 18946 } |
| 18947 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18727 | 18948 |
| 18728 | 18949 |
| 18729 var h = { | 18950 var h = { |
| 18730 "content-type" : "application/json; charset=utf-8", | 18951 "content-type" : "application/json; charset=utf-8", |
| 18731 }; | 18952 }; |
| 18732 var resp = convert.JSON.encode(buildOperation()); | 18953 var resp = convert.JSON.encode(buildOperation()); |
| 18733 return new async.Future.value(stringResponse(200, h, resp)); | 18954 return new async.Future.value(stringResponse(200, h, resp)); |
| 18734 }), true); | 18955 }), true); |
| 18735 res.setMachineType(arg_request, arg_project, arg_zone, arg_instance).then(
unittest.expectAsync1(((api.Operation response) { | 18956 res.setMachineType(arg_request, arg_project, arg_zone, arg_instance, reque
stId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18736 checkOperation(response); | 18957 checkOperation(response); |
| 18737 }))); | 18958 }))); |
| 18738 }); | 18959 }); |
| 18739 | 18960 |
| 18740 unittest.test("method--setMetadata", () { | 18961 unittest.test("method--setMetadata", () { |
| 18741 | 18962 |
| 18742 var mock = new HttpServerMock(); | 18963 var mock = new HttpServerMock(); |
| 18743 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 18964 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18744 var arg_request = buildMetadata(); | 18965 var arg_request = buildMetadata(); |
| 18745 var arg_project = "foo"; | 18966 var arg_project = "foo"; |
| 18746 var arg_zone = "foo"; | 18967 var arg_zone = "foo"; |
| 18747 var arg_instance = "foo"; | 18968 var arg_instance = "foo"; |
| 18969 var arg_requestId = "foo"; |
| 18748 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 18970 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18749 var obj = new api.Metadata.fromJson(json); | 18971 var obj = new api.Metadata.fromJson(json); |
| 18750 checkMetadata(obj); | 18972 checkMetadata(obj); |
| 18751 | 18973 |
| 18752 var path = (req.url).path; | 18974 var path = (req.url).path; |
| 18753 var pathOffset = 0; | 18975 var pathOffset = 0; |
| 18754 var index; | 18976 var index; |
| 18755 var subPart; | 18977 var subPart; |
| 18756 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 18978 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18757 pathOffset += 1; | 18979 pathOffset += 1; |
| 18758 | 18980 |
| 18759 var query = (req.url).query; | 18981 var query = (req.url).query; |
| 18760 var queryOffset = 0; | 18982 var queryOffset = 0; |
| 18761 var queryMap = {}; | 18983 var queryMap = {}; |
| 18762 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 18984 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18763 parseBool(n) { | 18985 parseBool(n) { |
| 18764 if (n == "true") return true; | 18986 if (n == "true") return true; |
| 18765 if (n == "false") return false; | 18987 if (n == "false") return false; |
| 18766 if (n == null) return null; | 18988 if (n == null) return null; |
| 18767 throw new core.ArgumentError("Invalid boolean: $n"); | 18989 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18768 } | 18990 } |
| 18769 if (query.length > 0) { | 18991 if (query.length > 0) { |
| 18770 for (var part in query.split("&")) { | 18992 for (var part in query.split("&")) { |
| 18771 var keyvalue = part.split("="); | 18993 var keyvalue = part.split("="); |
| 18772 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 18994 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18773 } | 18995 } |
| 18774 } | 18996 } |
| 18997 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18775 | 18998 |
| 18776 | 18999 |
| 18777 var h = { | 19000 var h = { |
| 18778 "content-type" : "application/json; charset=utf-8", | 19001 "content-type" : "application/json; charset=utf-8", |
| 18779 }; | 19002 }; |
| 18780 var resp = convert.JSON.encode(buildOperation()); | 19003 var resp = convert.JSON.encode(buildOperation()); |
| 18781 return new async.Future.value(stringResponse(200, h, resp)); | 19004 return new async.Future.value(stringResponse(200, h, resp)); |
| 18782 }), true); | 19005 }), true); |
| 18783 res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(uni
ttest.expectAsync1(((api.Operation response) { | 19006 res.setMetadata(arg_request, arg_project, arg_zone, arg_instance, requestI
d: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18784 checkOperation(response); | 19007 checkOperation(response); |
| 18785 }))); | 19008 }))); |
| 18786 }); | 19009 }); |
| 18787 | 19010 |
| 18788 unittest.test("method--setScheduling", () { | 19011 unittest.test("method--setScheduling", () { |
| 18789 | 19012 |
| 18790 var mock = new HttpServerMock(); | 19013 var mock = new HttpServerMock(); |
| 18791 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 19014 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18792 var arg_request = buildScheduling(); | 19015 var arg_request = buildScheduling(); |
| 18793 var arg_project = "foo"; | 19016 var arg_project = "foo"; |
| 18794 var arg_zone = "foo"; | 19017 var arg_zone = "foo"; |
| 18795 var arg_instance = "foo"; | 19018 var arg_instance = "foo"; |
| 19019 var arg_requestId = "foo"; |
| 18796 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19020 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18797 var obj = new api.Scheduling.fromJson(json); | 19021 var obj = new api.Scheduling.fromJson(json); |
| 18798 checkScheduling(obj); | 19022 checkScheduling(obj); |
| 18799 | 19023 |
| 18800 var path = (req.url).path; | 19024 var path = (req.url).path; |
| 18801 var pathOffset = 0; | 19025 var pathOffset = 0; |
| 18802 var index; | 19026 var index; |
| 18803 var subPart; | 19027 var subPart; |
| 18804 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19028 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18805 pathOffset += 1; | 19029 pathOffset += 1; |
| 18806 | 19030 |
| 18807 var query = (req.url).query; | 19031 var query = (req.url).query; |
| 18808 var queryOffset = 0; | 19032 var queryOffset = 0; |
| 18809 var queryMap = {}; | 19033 var queryMap = {}; |
| 18810 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19034 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18811 parseBool(n) { | 19035 parseBool(n) { |
| 18812 if (n == "true") return true; | 19036 if (n == "true") return true; |
| 18813 if (n == "false") return false; | 19037 if (n == "false") return false; |
| 18814 if (n == null) return null; | 19038 if (n == null) return null; |
| 18815 throw new core.ArgumentError("Invalid boolean: $n"); | 19039 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18816 } | 19040 } |
| 18817 if (query.length > 0) { | 19041 if (query.length > 0) { |
| 18818 for (var part in query.split("&")) { | 19042 for (var part in query.split("&")) { |
| 18819 var keyvalue = part.split("="); | 19043 var keyvalue = part.split("="); |
| 18820 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19044 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18821 } | 19045 } |
| 18822 } | 19046 } |
| 19047 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18823 | 19048 |
| 18824 | 19049 |
| 18825 var h = { | 19050 var h = { |
| 18826 "content-type" : "application/json; charset=utf-8", | 19051 "content-type" : "application/json; charset=utf-8", |
| 18827 }; | 19052 }; |
| 18828 var resp = convert.JSON.encode(buildOperation()); | 19053 var resp = convert.JSON.encode(buildOperation()); |
| 18829 return new async.Future.value(stringResponse(200, h, resp)); | 19054 return new async.Future.value(stringResponse(200, h, resp)); |
| 18830 }), true); | 19055 }), true); |
| 18831 res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(u
nittest.expectAsync1(((api.Operation response) { | 19056 res.setScheduling(arg_request, arg_project, arg_zone, arg_instance, reques
tId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18832 checkOperation(response); | 19057 checkOperation(response); |
| 18833 }))); | 19058 }))); |
| 18834 }); | 19059 }); |
| 18835 | 19060 |
| 18836 unittest.test("method--setServiceAccount", () { | 19061 unittest.test("method--setServiceAccount", () { |
| 18837 | 19062 |
| 18838 var mock = new HttpServerMock(); | 19063 var mock = new HttpServerMock(); |
| 18839 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 19064 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18840 var arg_request = buildInstancesSetServiceAccountRequest(); | 19065 var arg_request = buildInstancesSetServiceAccountRequest(); |
| 18841 var arg_project = "foo"; | 19066 var arg_project = "foo"; |
| 18842 var arg_zone = "foo"; | 19067 var arg_zone = "foo"; |
| 18843 var arg_instance = "foo"; | 19068 var arg_instance = "foo"; |
| 19069 var arg_requestId = "foo"; |
| 18844 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19070 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18845 var obj = new api.InstancesSetServiceAccountRequest.fromJson(json); | 19071 var obj = new api.InstancesSetServiceAccountRequest.fromJson(json); |
| 18846 checkInstancesSetServiceAccountRequest(obj); | 19072 checkInstancesSetServiceAccountRequest(obj); |
| 18847 | 19073 |
| 18848 var path = (req.url).path; | 19074 var path = (req.url).path; |
| 18849 var pathOffset = 0; | 19075 var pathOffset = 0; |
| 18850 var index; | 19076 var index; |
| 18851 var subPart; | 19077 var subPart; |
| 18852 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19078 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18853 pathOffset += 1; | 19079 pathOffset += 1; |
| 18854 | 19080 |
| 18855 var query = (req.url).query; | 19081 var query = (req.url).query; |
| 18856 var queryOffset = 0; | 19082 var queryOffset = 0; |
| 18857 var queryMap = {}; | 19083 var queryMap = {}; |
| 18858 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19084 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18859 parseBool(n) { | 19085 parseBool(n) { |
| 18860 if (n == "true") return true; | 19086 if (n == "true") return true; |
| 18861 if (n == "false") return false; | 19087 if (n == "false") return false; |
| 18862 if (n == null) return null; | 19088 if (n == null) return null; |
| 18863 throw new core.ArgumentError("Invalid boolean: $n"); | 19089 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18864 } | 19090 } |
| 18865 if (query.length > 0) { | 19091 if (query.length > 0) { |
| 18866 for (var part in query.split("&")) { | 19092 for (var part in query.split("&")) { |
| 18867 var keyvalue = part.split("="); | 19093 var keyvalue = part.split("="); |
| 18868 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19094 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18869 } | 19095 } |
| 18870 } | 19096 } |
| 19097 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18871 | 19098 |
| 18872 | 19099 |
| 18873 var h = { | 19100 var h = { |
| 18874 "content-type" : "application/json; charset=utf-8", | 19101 "content-type" : "application/json; charset=utf-8", |
| 18875 }; | 19102 }; |
| 18876 var resp = convert.JSON.encode(buildOperation()); | 19103 var resp = convert.JSON.encode(buildOperation()); |
| 18877 return new async.Future.value(stringResponse(200, h, resp)); | 19104 return new async.Future.value(stringResponse(200, h, resp)); |
| 18878 }), true); | 19105 }), true); |
| 18879 res.setServiceAccount(arg_request, arg_project, arg_zone, arg_instance).th
en(unittest.expectAsync1(((api.Operation response) { | 19106 res.setServiceAccount(arg_request, arg_project, arg_zone, arg_instance, re
questId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18880 checkOperation(response); | 19107 checkOperation(response); |
| 18881 }))); | 19108 }))); |
| 18882 }); | 19109 }); |
| 18883 | 19110 |
| 18884 unittest.test("method--setTags", () { | 19111 unittest.test("method--setTags", () { |
| 18885 | 19112 |
| 18886 var mock = new HttpServerMock(); | 19113 var mock = new HttpServerMock(); |
| 18887 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 19114 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18888 var arg_request = buildTags(); | 19115 var arg_request = buildTags(); |
| 18889 var arg_project = "foo"; | 19116 var arg_project = "foo"; |
| 18890 var arg_zone = "foo"; | 19117 var arg_zone = "foo"; |
| 18891 var arg_instance = "foo"; | 19118 var arg_instance = "foo"; |
| 19119 var arg_requestId = "foo"; |
| 18892 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19120 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18893 var obj = new api.Tags.fromJson(json); | 19121 var obj = new api.Tags.fromJson(json); |
| 18894 checkTags(obj); | 19122 checkTags(obj); |
| 18895 | 19123 |
| 18896 var path = (req.url).path; | 19124 var path = (req.url).path; |
| 18897 var pathOffset = 0; | 19125 var pathOffset = 0; |
| 18898 var index; | 19126 var index; |
| 18899 var subPart; | 19127 var subPart; |
| 18900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19128 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18901 pathOffset += 1; | 19129 pathOffset += 1; |
| 18902 | 19130 |
| 18903 var query = (req.url).query; | 19131 var query = (req.url).query; |
| 18904 var queryOffset = 0; | 19132 var queryOffset = 0; |
| 18905 var queryMap = {}; | 19133 var queryMap = {}; |
| 18906 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19134 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18907 parseBool(n) { | 19135 parseBool(n) { |
| 18908 if (n == "true") return true; | 19136 if (n == "true") return true; |
| 18909 if (n == "false") return false; | 19137 if (n == "false") return false; |
| 18910 if (n == null) return null; | 19138 if (n == null) return null; |
| 18911 throw new core.ArgumentError("Invalid boolean: $n"); | 19139 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18912 } | 19140 } |
| 18913 if (query.length > 0) { | 19141 if (query.length > 0) { |
| 18914 for (var part in query.split("&")) { | 19142 for (var part in query.split("&")) { |
| 18915 var keyvalue = part.split("="); | 19143 var keyvalue = part.split("="); |
| 18916 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19144 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18917 } | 19145 } |
| 18918 } | 19146 } |
| 19147 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18919 | 19148 |
| 18920 | 19149 |
| 18921 var h = { | 19150 var h = { |
| 18922 "content-type" : "application/json; charset=utf-8", | 19151 "content-type" : "application/json; charset=utf-8", |
| 18923 }; | 19152 }; |
| 18924 var resp = convert.JSON.encode(buildOperation()); | 19153 var resp = convert.JSON.encode(buildOperation()); |
| 18925 return new async.Future.value(stringResponse(200, h, resp)); | 19154 return new async.Future.value(stringResponse(200, h, resp)); |
| 18926 }), true); | 19155 }), true); |
| 18927 res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittes
t.expectAsync1(((api.Operation response) { | 19156 res.setTags(arg_request, arg_project, arg_zone, arg_instance, requestId: a
rg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 18928 checkOperation(response); | 19157 checkOperation(response); |
| 18929 }))); | 19158 }))); |
| 18930 }); | 19159 }); |
| 18931 | 19160 |
| 18932 unittest.test("method--start", () { | 19161 unittest.test("method--start", () { |
| 18933 | 19162 |
| 18934 var mock = new HttpServerMock(); | 19163 var mock = new HttpServerMock(); |
| 18935 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 19164 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18936 var arg_project = "foo"; | 19165 var arg_project = "foo"; |
| 18937 var arg_zone = "foo"; | 19166 var arg_zone = "foo"; |
| 18938 var arg_instance = "foo"; | 19167 var arg_instance = "foo"; |
| 19168 var arg_requestId = "foo"; |
| 18939 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19169 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18940 var path = (req.url).path; | 19170 var path = (req.url).path; |
| 18941 var pathOffset = 0; | 19171 var pathOffset = 0; |
| 18942 var index; | 19172 var index; |
| 18943 var subPart; | 19173 var subPart; |
| 18944 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19174 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18945 pathOffset += 1; | 19175 pathOffset += 1; |
| 18946 | 19176 |
| 18947 var query = (req.url).query; | 19177 var query = (req.url).query; |
| 18948 var queryOffset = 0; | 19178 var queryOffset = 0; |
| 18949 var queryMap = {}; | 19179 var queryMap = {}; |
| 18950 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19180 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18951 parseBool(n) { | 19181 parseBool(n) { |
| 18952 if (n == "true") return true; | 19182 if (n == "true") return true; |
| 18953 if (n == "false") return false; | 19183 if (n == "false") return false; |
| 18954 if (n == null) return null; | 19184 if (n == null) return null; |
| 18955 throw new core.ArgumentError("Invalid boolean: $n"); | 19185 throw new core.ArgumentError("Invalid boolean: $n"); |
| 18956 } | 19186 } |
| 18957 if (query.length > 0) { | 19187 if (query.length > 0) { |
| 18958 for (var part in query.split("&")) { | 19188 for (var part in query.split("&")) { |
| 18959 var keyvalue = part.split("="); | 19189 var keyvalue = part.split("="); |
| 18960 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19190 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 18961 } | 19191 } |
| 18962 } | 19192 } |
| 19193 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 18963 | 19194 |
| 18964 | 19195 |
| 18965 var h = { | 19196 var h = { |
| 18966 "content-type" : "application/json; charset=utf-8", | 19197 "content-type" : "application/json; charset=utf-8", |
| 18967 }; | 19198 }; |
| 18968 var resp = convert.JSON.encode(buildOperation()); | 19199 var resp = convert.JSON.encode(buildOperation()); |
| 18969 return new async.Future.value(stringResponse(200, h, resp)); | 19200 return new async.Future.value(stringResponse(200, h, resp)); |
| 18970 }), true); | 19201 }), true); |
| 18971 res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1(
((api.Operation response) { | 19202 res.start(arg_project, arg_zone, arg_instance, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 18972 checkOperation(response); | 19203 checkOperation(response); |
| 18973 }))); | 19204 }))); |
| 18974 }); | 19205 }); |
| 18975 | 19206 |
| 18976 unittest.test("method--startWithEncryptionKey", () { | 19207 unittest.test("method--startWithEncryptionKey", () { |
| 18977 | 19208 |
| 18978 var mock = new HttpServerMock(); | 19209 var mock = new HttpServerMock(); |
| 18979 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 19210 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 18980 var arg_request = buildInstancesStartWithEncryptionKeyRequest(); | 19211 var arg_request = buildInstancesStartWithEncryptionKeyRequest(); |
| 18981 var arg_project = "foo"; | 19212 var arg_project = "foo"; |
| 18982 var arg_zone = "foo"; | 19213 var arg_zone = "foo"; |
| 18983 var arg_instance = "foo"; | 19214 var arg_instance = "foo"; |
| 19215 var arg_requestId = "foo"; |
| 18984 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19216 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 18985 var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json); | 19217 var obj = new api.InstancesStartWithEncryptionKeyRequest.fromJson(json); |
| 18986 checkInstancesStartWithEncryptionKeyRequest(obj); | 19218 checkInstancesStartWithEncryptionKeyRequest(obj); |
| 18987 | 19219 |
| 18988 var path = (req.url).path; | 19220 var path = (req.url).path; |
| 18989 var pathOffset = 0; | 19221 var pathOffset = 0; |
| 18990 var index; | 19222 var index; |
| 18991 var subPart; | 19223 var subPart; |
| 18992 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19224 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 18993 pathOffset += 1; | 19225 pathOffset += 1; |
| 18994 | 19226 |
| 18995 var query = (req.url).query; | 19227 var query = (req.url).query; |
| 18996 var queryOffset = 0; | 19228 var queryOffset = 0; |
| 18997 var queryMap = {}; | 19229 var queryMap = {}; |
| 18998 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19230 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 18999 parseBool(n) { | 19231 parseBool(n) { |
| 19000 if (n == "true") return true; | 19232 if (n == "true") return true; |
| 19001 if (n == "false") return false; | 19233 if (n == "false") return false; |
| 19002 if (n == null) return null; | 19234 if (n == null) return null; |
| 19003 throw new core.ArgumentError("Invalid boolean: $n"); | 19235 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19004 } | 19236 } |
| 19005 if (query.length > 0) { | 19237 if (query.length > 0) { |
| 19006 for (var part in query.split("&")) { | 19238 for (var part in query.split("&")) { |
| 19007 var keyvalue = part.split("="); | 19239 var keyvalue = part.split("="); |
| 19008 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19240 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19009 } | 19241 } |
| 19010 } | 19242 } |
| 19243 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19011 | 19244 |
| 19012 | 19245 |
| 19013 var h = { | 19246 var h = { |
| 19014 "content-type" : "application/json; charset=utf-8", | 19247 "content-type" : "application/json; charset=utf-8", |
| 19015 }; | 19248 }; |
| 19016 var resp = convert.JSON.encode(buildOperation()); | 19249 var resp = convert.JSON.encode(buildOperation()); |
| 19017 return new async.Future.value(stringResponse(200, h, resp)); | 19250 return new async.Future.value(stringResponse(200, h, resp)); |
| 19018 }), true); | 19251 }), true); |
| 19019 res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instanc
e).then(unittest.expectAsync1(((api.Operation response) { | 19252 res.startWithEncryptionKey(arg_request, arg_project, arg_zone, arg_instanc
e, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response
) { |
| 19020 checkOperation(response); | 19253 checkOperation(response); |
| 19021 }))); | 19254 }))); |
| 19022 }); | 19255 }); |
| 19023 | 19256 |
| 19024 unittest.test("method--stop", () { | 19257 unittest.test("method--stop", () { |
| 19025 | 19258 |
| 19026 var mock = new HttpServerMock(); | 19259 var mock = new HttpServerMock(); |
| 19027 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 19260 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 19028 var arg_project = "foo"; | 19261 var arg_project = "foo"; |
| 19029 var arg_zone = "foo"; | 19262 var arg_zone = "foo"; |
| 19030 var arg_instance = "foo"; | 19263 var arg_instance = "foo"; |
| 19264 var arg_requestId = "foo"; |
| 19031 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19265 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19032 var path = (req.url).path; | 19266 var path = (req.url).path; |
| 19033 var pathOffset = 0; | 19267 var pathOffset = 0; |
| 19034 var index; | 19268 var index; |
| 19035 var subPart; | 19269 var subPart; |
| 19036 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19037 pathOffset += 1; | 19271 pathOffset += 1; |
| 19038 | 19272 |
| 19039 var query = (req.url).query; | 19273 var query = (req.url).query; |
| 19040 var queryOffset = 0; | 19274 var queryOffset = 0; |
| 19041 var queryMap = {}; | 19275 var queryMap = {}; |
| 19042 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19276 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19043 parseBool(n) { | 19277 parseBool(n) { |
| 19044 if (n == "true") return true; | 19278 if (n == "true") return true; |
| 19045 if (n == "false") return false; | 19279 if (n == "false") return false; |
| 19046 if (n == null) return null; | 19280 if (n == null) return null; |
| 19047 throw new core.ArgumentError("Invalid boolean: $n"); | 19281 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19048 } | 19282 } |
| 19049 if (query.length > 0) { | 19283 if (query.length > 0) { |
| 19050 for (var part in query.split("&")) { | 19284 for (var part in query.split("&")) { |
| 19051 var keyvalue = part.split("="); | 19285 var keyvalue = part.split("="); |
| 19052 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19286 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19053 } | 19287 } |
| 19054 } | 19288 } |
| 19289 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19055 | 19290 |
| 19056 | 19291 |
| 19057 var h = { | 19292 var h = { |
| 19058 "content-type" : "application/json; charset=utf-8", | 19293 "content-type" : "application/json; charset=utf-8", |
| 19059 }; | 19294 }; |
| 19060 var resp = convert.JSON.encode(buildOperation()); | 19295 var resp = convert.JSON.encode(buildOperation()); |
| 19061 return new async.Future.value(stringResponse(200, h, resp)); | 19296 return new async.Future.value(stringResponse(200, h, resp)); |
| 19062 }), true); | 19297 }), true); |
| 19063 res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync1((
(api.Operation response) { | 19298 res.stop(arg_project, arg_zone, arg_instance, requestId: arg_requestId).th
en(unittest.expectAsync1(((api.Operation response) { |
| 19064 checkOperation(response); | 19299 checkOperation(response); |
| 19065 }))); | 19300 }))); |
| 19066 }); | 19301 }); |
| 19067 | 19302 |
| 19068 }); | 19303 }); |
| 19069 | 19304 |
| 19070 | 19305 |
| 19071 unittest.group("resource-LicensesResourceApi", () { | 19306 unittest.group("resource-LicensesResourceApi", () { |
| 19072 unittest.test("method--get", () { | 19307 unittest.test("method--get", () { |
| 19073 | 19308 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19265 | 19500 |
| 19266 | 19501 |
| 19267 unittest.group("resource-NetworksResourceApi", () { | 19502 unittest.group("resource-NetworksResourceApi", () { |
| 19268 unittest.test("method--addPeering", () { | 19503 unittest.test("method--addPeering", () { |
| 19269 | 19504 |
| 19270 var mock = new HttpServerMock(); | 19505 var mock = new HttpServerMock(); |
| 19271 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19506 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19272 var arg_request = buildNetworksAddPeeringRequest(); | 19507 var arg_request = buildNetworksAddPeeringRequest(); |
| 19273 var arg_project = "foo"; | 19508 var arg_project = "foo"; |
| 19274 var arg_network = "foo"; | 19509 var arg_network = "foo"; |
| 19510 var arg_requestId = "foo"; |
| 19275 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19511 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19276 var obj = new api.NetworksAddPeeringRequest.fromJson(json); | 19512 var obj = new api.NetworksAddPeeringRequest.fromJson(json); |
| 19277 checkNetworksAddPeeringRequest(obj); | 19513 checkNetworksAddPeeringRequest(obj); |
| 19278 | 19514 |
| 19279 var path = (req.url).path; | 19515 var path = (req.url).path; |
| 19280 var pathOffset = 0; | 19516 var pathOffset = 0; |
| 19281 var index; | 19517 var index; |
| 19282 var subPart; | 19518 var subPart; |
| 19283 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19519 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19284 pathOffset += 1; | 19520 pathOffset += 1; |
| 19285 | 19521 |
| 19286 var query = (req.url).query; | 19522 var query = (req.url).query; |
| 19287 var queryOffset = 0; | 19523 var queryOffset = 0; |
| 19288 var queryMap = {}; | 19524 var queryMap = {}; |
| 19289 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19525 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19290 parseBool(n) { | 19526 parseBool(n) { |
| 19291 if (n == "true") return true; | 19527 if (n == "true") return true; |
| 19292 if (n == "false") return false; | 19528 if (n == "false") return false; |
| 19293 if (n == null) return null; | 19529 if (n == null) return null; |
| 19294 throw new core.ArgumentError("Invalid boolean: $n"); | 19530 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19295 } | 19531 } |
| 19296 if (query.length > 0) { | 19532 if (query.length > 0) { |
| 19297 for (var part in query.split("&")) { | 19533 for (var part in query.split("&")) { |
| 19298 var keyvalue = part.split("="); | 19534 var keyvalue = part.split("="); |
| 19299 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19535 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19300 } | 19536 } |
| 19301 } | 19537 } |
| 19538 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19302 | 19539 |
| 19303 | 19540 |
| 19304 var h = { | 19541 var h = { |
| 19305 "content-type" : "application/json; charset=utf-8", | 19542 "content-type" : "application/json; charset=utf-8", |
| 19306 }; | 19543 }; |
| 19307 var resp = convert.JSON.encode(buildOperation()); | 19544 var resp = convert.JSON.encode(buildOperation()); |
| 19308 return new async.Future.value(stringResponse(200, h, resp)); | 19545 return new async.Future.value(stringResponse(200, h, resp)); |
| 19309 }), true); | 19546 }), true); |
| 19310 res.addPeering(arg_request, arg_project, arg_network).then(unittest.expect
Async1(((api.Operation response) { | 19547 res.addPeering(arg_request, arg_project, arg_network, requestId: arg_reque
stId).then(unittest.expectAsync1(((api.Operation response) { |
| 19311 checkOperation(response); | 19548 checkOperation(response); |
| 19312 }))); | 19549 }))); |
| 19313 }); | 19550 }); |
| 19314 | 19551 |
| 19315 unittest.test("method--delete", () { | 19552 unittest.test("method--delete", () { |
| 19316 | 19553 |
| 19317 var mock = new HttpServerMock(); | 19554 var mock = new HttpServerMock(); |
| 19318 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19555 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19319 var arg_project = "foo"; | 19556 var arg_project = "foo"; |
| 19320 var arg_network = "foo"; | 19557 var arg_network = "foo"; |
| 19558 var arg_requestId = "foo"; |
| 19321 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19559 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19322 var path = (req.url).path; | 19560 var path = (req.url).path; |
| 19323 var pathOffset = 0; | 19561 var pathOffset = 0; |
| 19324 var index; | 19562 var index; |
| 19325 var subPart; | 19563 var subPart; |
| 19326 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19327 pathOffset += 1; | 19565 pathOffset += 1; |
| 19328 | 19566 |
| 19329 var query = (req.url).query; | 19567 var query = (req.url).query; |
| 19330 var queryOffset = 0; | 19568 var queryOffset = 0; |
| 19331 var queryMap = {}; | 19569 var queryMap = {}; |
| 19332 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19570 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19333 parseBool(n) { | 19571 parseBool(n) { |
| 19334 if (n == "true") return true; | 19572 if (n == "true") return true; |
| 19335 if (n == "false") return false; | 19573 if (n == "false") return false; |
| 19336 if (n == null) return null; | 19574 if (n == null) return null; |
| 19337 throw new core.ArgumentError("Invalid boolean: $n"); | 19575 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19338 } | 19576 } |
| 19339 if (query.length > 0) { | 19577 if (query.length > 0) { |
| 19340 for (var part in query.split("&")) { | 19578 for (var part in query.split("&")) { |
| 19341 var keyvalue = part.split("="); | 19579 var keyvalue = part.split("="); |
| 19342 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19580 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19343 } | 19581 } |
| 19344 } | 19582 } |
| 19583 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19345 | 19584 |
| 19346 | 19585 |
| 19347 var h = { | 19586 var h = { |
| 19348 "content-type" : "application/json; charset=utf-8", | 19587 "content-type" : "application/json; charset=utf-8", |
| 19349 }; | 19588 }; |
| 19350 var resp = convert.JSON.encode(buildOperation()); | 19589 var resp = convert.JSON.encode(buildOperation()); |
| 19351 return new async.Future.value(stringResponse(200, h, resp)); | 19590 return new async.Future.value(stringResponse(200, h, resp)); |
| 19352 }), true); | 19591 }), true); |
| 19353 res.delete(arg_project, arg_network).then(unittest.expectAsync1(((api.Oper
ation response) { | 19592 res.delete(arg_project, arg_network, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 19354 checkOperation(response); | 19593 checkOperation(response); |
| 19355 }))); | 19594 }))); |
| 19356 }); | 19595 }); |
| 19357 | 19596 |
| 19358 unittest.test("method--get", () { | 19597 unittest.test("method--get", () { |
| 19359 | 19598 |
| 19360 var mock = new HttpServerMock(); | 19599 var mock = new HttpServerMock(); |
| 19361 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19600 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19362 var arg_project = "foo"; | 19601 var arg_project = "foo"; |
| 19363 var arg_network = "foo"; | 19602 var arg_network = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19397 checkNetwork(response); | 19636 checkNetwork(response); |
| 19398 }))); | 19637 }))); |
| 19399 }); | 19638 }); |
| 19400 | 19639 |
| 19401 unittest.test("method--insert", () { | 19640 unittest.test("method--insert", () { |
| 19402 | 19641 |
| 19403 var mock = new HttpServerMock(); | 19642 var mock = new HttpServerMock(); |
| 19404 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19643 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19405 var arg_request = buildNetwork(); | 19644 var arg_request = buildNetwork(); |
| 19406 var arg_project = "foo"; | 19645 var arg_project = "foo"; |
| 19646 var arg_requestId = "foo"; |
| 19407 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19647 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19408 var obj = new api.Network.fromJson(json); | 19648 var obj = new api.Network.fromJson(json); |
| 19409 checkNetwork(obj); | 19649 checkNetwork(obj); |
| 19410 | 19650 |
| 19411 var path = (req.url).path; | 19651 var path = (req.url).path; |
| 19412 var pathOffset = 0; | 19652 var pathOffset = 0; |
| 19413 var index; | 19653 var index; |
| 19414 var subPart; | 19654 var subPart; |
| 19415 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19416 pathOffset += 1; | 19656 pathOffset += 1; |
| 19417 | 19657 |
| 19418 var query = (req.url).query; | 19658 var query = (req.url).query; |
| 19419 var queryOffset = 0; | 19659 var queryOffset = 0; |
| 19420 var queryMap = {}; | 19660 var queryMap = {}; |
| 19421 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19661 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19422 parseBool(n) { | 19662 parseBool(n) { |
| 19423 if (n == "true") return true; | 19663 if (n == "true") return true; |
| 19424 if (n == "false") return false; | 19664 if (n == "false") return false; |
| 19425 if (n == null) return null; | 19665 if (n == null) return null; |
| 19426 throw new core.ArgumentError("Invalid boolean: $n"); | 19666 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19427 } | 19667 } |
| 19428 if (query.length > 0) { | 19668 if (query.length > 0) { |
| 19429 for (var part in query.split("&")) { | 19669 for (var part in query.split("&")) { |
| 19430 var keyvalue = part.split("="); | 19670 var keyvalue = part.split("="); |
| 19431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19671 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19432 } | 19672 } |
| 19433 } | 19673 } |
| 19674 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19434 | 19675 |
| 19435 | 19676 |
| 19436 var h = { | 19677 var h = { |
| 19437 "content-type" : "application/json; charset=utf-8", | 19678 "content-type" : "application/json; charset=utf-8", |
| 19438 }; | 19679 }; |
| 19439 var resp = convert.JSON.encode(buildOperation()); | 19680 var resp = convert.JSON.encode(buildOperation()); |
| 19440 return new async.Future.value(stringResponse(200, h, resp)); | 19681 return new async.Future.value(stringResponse(200, h, resp)); |
| 19441 }), true); | 19682 }), true); |
| 19442 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 19683 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 19443 checkOperation(response); | 19684 checkOperation(response); |
| 19444 }))); | 19685 }))); |
| 19445 }); | 19686 }); |
| 19446 | 19687 |
| 19447 unittest.test("method--list", () { | 19688 unittest.test("method--list", () { |
| 19448 | 19689 |
| 19449 var mock = new HttpServerMock(); | 19690 var mock = new HttpServerMock(); |
| 19450 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19691 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19451 var arg_project = "foo"; | 19692 var arg_project = "foo"; |
| 19452 var arg_filter = "foo"; | 19693 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19494 }))); | 19735 }))); |
| 19495 }); | 19736 }); |
| 19496 | 19737 |
| 19497 unittest.test("method--removePeering", () { | 19738 unittest.test("method--removePeering", () { |
| 19498 | 19739 |
| 19499 var mock = new HttpServerMock(); | 19740 var mock = new HttpServerMock(); |
| 19500 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19741 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19501 var arg_request = buildNetworksRemovePeeringRequest(); | 19742 var arg_request = buildNetworksRemovePeeringRequest(); |
| 19502 var arg_project = "foo"; | 19743 var arg_project = "foo"; |
| 19503 var arg_network = "foo"; | 19744 var arg_network = "foo"; |
| 19745 var arg_requestId = "foo"; |
| 19504 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19746 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19505 var obj = new api.NetworksRemovePeeringRequest.fromJson(json); | 19747 var obj = new api.NetworksRemovePeeringRequest.fromJson(json); |
| 19506 checkNetworksRemovePeeringRequest(obj); | 19748 checkNetworksRemovePeeringRequest(obj); |
| 19507 | 19749 |
| 19508 var path = (req.url).path; | 19750 var path = (req.url).path; |
| 19509 var pathOffset = 0; | 19751 var pathOffset = 0; |
| 19510 var index; | 19752 var index; |
| 19511 var subPart; | 19753 var subPart; |
| 19512 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19754 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19513 pathOffset += 1; | 19755 pathOffset += 1; |
| 19514 | 19756 |
| 19515 var query = (req.url).query; | 19757 var query = (req.url).query; |
| 19516 var queryOffset = 0; | 19758 var queryOffset = 0; |
| 19517 var queryMap = {}; | 19759 var queryMap = {}; |
| 19518 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19760 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19519 parseBool(n) { | 19761 parseBool(n) { |
| 19520 if (n == "true") return true; | 19762 if (n == "true") return true; |
| 19521 if (n == "false") return false; | 19763 if (n == "false") return false; |
| 19522 if (n == null) return null; | 19764 if (n == null) return null; |
| 19523 throw new core.ArgumentError("Invalid boolean: $n"); | 19765 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19524 } | 19766 } |
| 19525 if (query.length > 0) { | 19767 if (query.length > 0) { |
| 19526 for (var part in query.split("&")) { | 19768 for (var part in query.split("&")) { |
| 19527 var keyvalue = part.split("="); | 19769 var keyvalue = part.split("="); |
| 19528 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19770 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19529 } | 19771 } |
| 19530 } | 19772 } |
| 19773 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19531 | 19774 |
| 19532 | 19775 |
| 19533 var h = { | 19776 var h = { |
| 19534 "content-type" : "application/json; charset=utf-8", | 19777 "content-type" : "application/json; charset=utf-8", |
| 19535 }; | 19778 }; |
| 19536 var resp = convert.JSON.encode(buildOperation()); | 19779 var resp = convert.JSON.encode(buildOperation()); |
| 19537 return new async.Future.value(stringResponse(200, h, resp)); | 19780 return new async.Future.value(stringResponse(200, h, resp)); |
| 19538 }), true); | 19781 }), true); |
| 19539 res.removePeering(arg_request, arg_project, arg_network).then(unittest.exp
ectAsync1(((api.Operation response) { | 19782 res.removePeering(arg_request, arg_project, arg_network, requestId: arg_re
questId).then(unittest.expectAsync1(((api.Operation response) { |
| 19540 checkOperation(response); | 19783 checkOperation(response); |
| 19541 }))); | 19784 }))); |
| 19542 }); | 19785 }); |
| 19543 | 19786 |
| 19544 unittest.test("method--switchToCustomMode", () { | 19787 unittest.test("method--switchToCustomMode", () { |
| 19545 | 19788 |
| 19546 var mock = new HttpServerMock(); | 19789 var mock = new HttpServerMock(); |
| 19547 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 19790 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 19548 var arg_project = "foo"; | 19791 var arg_project = "foo"; |
| 19549 var arg_network = "foo"; | 19792 var arg_network = "foo"; |
| 19793 var arg_requestId = "foo"; |
| 19550 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19794 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19551 var path = (req.url).path; | 19795 var path = (req.url).path; |
| 19552 var pathOffset = 0; | 19796 var pathOffset = 0; |
| 19553 var index; | 19797 var index; |
| 19554 var subPart; | 19798 var subPart; |
| 19555 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19556 pathOffset += 1; | 19800 pathOffset += 1; |
| 19557 | 19801 |
| 19558 var query = (req.url).query; | 19802 var query = (req.url).query; |
| 19559 var queryOffset = 0; | 19803 var queryOffset = 0; |
| 19560 var queryMap = {}; | 19804 var queryMap = {}; |
| 19561 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19805 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19562 parseBool(n) { | 19806 parseBool(n) { |
| 19563 if (n == "true") return true; | 19807 if (n == "true") return true; |
| 19564 if (n == "false") return false; | 19808 if (n == "false") return false; |
| 19565 if (n == null) return null; | 19809 if (n == null) return null; |
| 19566 throw new core.ArgumentError("Invalid boolean: $n"); | 19810 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19567 } | 19811 } |
| 19568 if (query.length > 0) { | 19812 if (query.length > 0) { |
| 19569 for (var part in query.split("&")) { | 19813 for (var part in query.split("&")) { |
| 19570 var keyvalue = part.split("="); | 19814 var keyvalue = part.split("="); |
| 19571 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19815 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19572 } | 19816 } |
| 19573 } | 19817 } |
| 19818 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19574 | 19819 |
| 19575 | 19820 |
| 19576 var h = { | 19821 var h = { |
| 19577 "content-type" : "application/json; charset=utf-8", | 19822 "content-type" : "application/json; charset=utf-8", |
| 19578 }; | 19823 }; |
| 19579 var resp = convert.JSON.encode(buildOperation()); | 19824 var resp = convert.JSON.encode(buildOperation()); |
| 19580 return new async.Future.value(stringResponse(200, h, resp)); | 19825 return new async.Future.value(stringResponse(200, h, resp)); |
| 19581 }), true); | 19826 }), true); |
| 19582 res.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync
1(((api.Operation response) { | 19827 res.switchToCustomMode(arg_project, arg_network, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 19583 checkOperation(response); | 19828 checkOperation(response); |
| 19584 }))); | 19829 }))); |
| 19585 }); | 19830 }); |
| 19586 | 19831 |
| 19587 }); | 19832 }); |
| 19588 | 19833 |
| 19589 | 19834 |
| 19590 unittest.group("resource-ProjectsResourceApi", () { | 19835 unittest.group("resource-ProjectsResourceApi", () { |
| 19591 unittest.test("method--disableXpnHost", () { | 19836 unittest.test("method--disableXpnHost", () { |
| 19592 | 19837 |
| 19593 var mock = new HttpServerMock(); | 19838 var mock = new HttpServerMock(); |
| 19594 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 19839 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 19595 var arg_project = "foo"; | 19840 var arg_project = "foo"; |
| 19841 var arg_requestId = "foo"; |
| 19596 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19842 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19597 var path = (req.url).path; | 19843 var path = (req.url).path; |
| 19598 var pathOffset = 0; | 19844 var pathOffset = 0; |
| 19599 var index; | 19845 var index; |
| 19600 var subPart; | 19846 var subPart; |
| 19601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19847 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19602 pathOffset += 1; | 19848 pathOffset += 1; |
| 19603 | 19849 |
| 19604 var query = (req.url).query; | 19850 var query = (req.url).query; |
| 19605 var queryOffset = 0; | 19851 var queryOffset = 0; |
| 19606 var queryMap = {}; | 19852 var queryMap = {}; |
| 19607 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19853 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19608 parseBool(n) { | 19854 parseBool(n) { |
| 19609 if (n == "true") return true; | 19855 if (n == "true") return true; |
| 19610 if (n == "false") return false; | 19856 if (n == "false") return false; |
| 19611 if (n == null) return null; | 19857 if (n == null) return null; |
| 19612 throw new core.ArgumentError("Invalid boolean: $n"); | 19858 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19613 } | 19859 } |
| 19614 if (query.length > 0) { | 19860 if (query.length > 0) { |
| 19615 for (var part in query.split("&")) { | 19861 for (var part in query.split("&")) { |
| 19616 var keyvalue = part.split("="); | 19862 var keyvalue = part.split("="); |
| 19617 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19863 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19618 } | 19864 } |
| 19619 } | 19865 } |
| 19866 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19620 | 19867 |
| 19621 | 19868 |
| 19622 var h = { | 19869 var h = { |
| 19623 "content-type" : "application/json; charset=utf-8", | 19870 "content-type" : "application/json; charset=utf-8", |
| 19624 }; | 19871 }; |
| 19625 var resp = convert.JSON.encode(buildOperation()); | 19872 var resp = convert.JSON.encode(buildOperation()); |
| 19626 return new async.Future.value(stringResponse(200, h, resp)); | 19873 return new async.Future.value(stringResponse(200, h, resp)); |
| 19627 }), true); | 19874 }), true); |
| 19628 res.disableXpnHost(arg_project).then(unittest.expectAsync1(((api.Operation
response) { | 19875 res.disableXpnHost(arg_project, requestId: arg_requestId).then(unittest.ex
pectAsync1(((api.Operation response) { |
| 19629 checkOperation(response); | 19876 checkOperation(response); |
| 19630 }))); | 19877 }))); |
| 19631 }); | 19878 }); |
| 19632 | 19879 |
| 19633 unittest.test("method--disableXpnResource", () { | 19880 unittest.test("method--disableXpnResource", () { |
| 19634 | 19881 |
| 19635 var mock = new HttpServerMock(); | 19882 var mock = new HttpServerMock(); |
| 19636 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 19883 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 19637 var arg_request = buildProjectsDisableXpnResourceRequest(); | 19884 var arg_request = buildProjectsDisableXpnResourceRequest(); |
| 19638 var arg_project = "foo"; | 19885 var arg_project = "foo"; |
| 19886 var arg_requestId = "foo"; |
| 19639 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19887 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19640 var obj = new api.ProjectsDisableXpnResourceRequest.fromJson(json); | 19888 var obj = new api.ProjectsDisableXpnResourceRequest.fromJson(json); |
| 19641 checkProjectsDisableXpnResourceRequest(obj); | 19889 checkProjectsDisableXpnResourceRequest(obj); |
| 19642 | 19890 |
| 19643 var path = (req.url).path; | 19891 var path = (req.url).path; |
| 19644 var pathOffset = 0; | 19892 var pathOffset = 0; |
| 19645 var index; | 19893 var index; |
| 19646 var subPart; | 19894 var subPart; |
| 19647 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19895 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19648 pathOffset += 1; | 19896 pathOffset += 1; |
| 19649 | 19897 |
| 19650 var query = (req.url).query; | 19898 var query = (req.url).query; |
| 19651 var queryOffset = 0; | 19899 var queryOffset = 0; |
| 19652 var queryMap = {}; | 19900 var queryMap = {}; |
| 19653 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19901 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19654 parseBool(n) { | 19902 parseBool(n) { |
| 19655 if (n == "true") return true; | 19903 if (n == "true") return true; |
| 19656 if (n == "false") return false; | 19904 if (n == "false") return false; |
| 19657 if (n == null) return null; | 19905 if (n == null) return null; |
| 19658 throw new core.ArgumentError("Invalid boolean: $n"); | 19906 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19659 } | 19907 } |
| 19660 if (query.length > 0) { | 19908 if (query.length > 0) { |
| 19661 for (var part in query.split("&")) { | 19909 for (var part in query.split("&")) { |
| 19662 var keyvalue = part.split("="); | 19910 var keyvalue = part.split("="); |
| 19663 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19911 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19664 } | 19912 } |
| 19665 } | 19913 } |
| 19914 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19666 | 19915 |
| 19667 | 19916 |
| 19668 var h = { | 19917 var h = { |
| 19669 "content-type" : "application/json; charset=utf-8", | 19918 "content-type" : "application/json; charset=utf-8", |
| 19670 }; | 19919 }; |
| 19671 var resp = convert.JSON.encode(buildOperation()); | 19920 var resp = convert.JSON.encode(buildOperation()); |
| 19672 return new async.Future.value(stringResponse(200, h, resp)); | 19921 return new async.Future.value(stringResponse(200, h, resp)); |
| 19673 }), true); | 19922 }), true); |
| 19674 res.disableXpnResource(arg_request, arg_project).then(unittest.expectAsync
1(((api.Operation response) { | 19923 res.disableXpnResource(arg_request, arg_project, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 19675 checkOperation(response); | 19924 checkOperation(response); |
| 19676 }))); | 19925 }))); |
| 19677 }); | 19926 }); |
| 19678 | 19927 |
| 19679 unittest.test("method--enableXpnHost", () { | 19928 unittest.test("method--enableXpnHost", () { |
| 19680 | 19929 |
| 19681 var mock = new HttpServerMock(); | 19930 var mock = new HttpServerMock(); |
| 19682 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 19931 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 19683 var arg_project = "foo"; | 19932 var arg_project = "foo"; |
| 19933 var arg_requestId = "foo"; |
| 19684 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19934 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19685 var path = (req.url).path; | 19935 var path = (req.url).path; |
| 19686 var pathOffset = 0; | 19936 var pathOffset = 0; |
| 19687 var index; | 19937 var index; |
| 19688 var subPart; | 19938 var subPart; |
| 19689 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19690 pathOffset += 1; | 19940 pathOffset += 1; |
| 19691 | 19941 |
| 19692 var query = (req.url).query; | 19942 var query = (req.url).query; |
| 19693 var queryOffset = 0; | 19943 var queryOffset = 0; |
| 19694 var queryMap = {}; | 19944 var queryMap = {}; |
| 19695 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19945 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19696 parseBool(n) { | 19946 parseBool(n) { |
| 19697 if (n == "true") return true; | 19947 if (n == "true") return true; |
| 19698 if (n == "false") return false; | 19948 if (n == "false") return false; |
| 19699 if (n == null) return null; | 19949 if (n == null) return null; |
| 19700 throw new core.ArgumentError("Invalid boolean: $n"); | 19950 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19701 } | 19951 } |
| 19702 if (query.length > 0) { | 19952 if (query.length > 0) { |
| 19703 for (var part in query.split("&")) { | 19953 for (var part in query.split("&")) { |
| 19704 var keyvalue = part.split("="); | 19954 var keyvalue = part.split("="); |
| 19705 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 19955 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19706 } | 19956 } |
| 19707 } | 19957 } |
| 19958 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19708 | 19959 |
| 19709 | 19960 |
| 19710 var h = { | 19961 var h = { |
| 19711 "content-type" : "application/json; charset=utf-8", | 19962 "content-type" : "application/json; charset=utf-8", |
| 19712 }; | 19963 }; |
| 19713 var resp = convert.JSON.encode(buildOperation()); | 19964 var resp = convert.JSON.encode(buildOperation()); |
| 19714 return new async.Future.value(stringResponse(200, h, resp)); | 19965 return new async.Future.value(stringResponse(200, h, resp)); |
| 19715 }), true); | 19966 }), true); |
| 19716 res.enableXpnHost(arg_project).then(unittest.expectAsync1(((api.Operation
response) { | 19967 res.enableXpnHost(arg_project, requestId: arg_requestId).then(unittest.exp
ectAsync1(((api.Operation response) { |
| 19717 checkOperation(response); | 19968 checkOperation(response); |
| 19718 }))); | 19969 }))); |
| 19719 }); | 19970 }); |
| 19720 | 19971 |
| 19721 unittest.test("method--enableXpnResource", () { | 19972 unittest.test("method--enableXpnResource", () { |
| 19722 | 19973 |
| 19723 var mock = new HttpServerMock(); | 19974 var mock = new HttpServerMock(); |
| 19724 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 19975 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 19725 var arg_request = buildProjectsEnableXpnResourceRequest(); | 19976 var arg_request = buildProjectsEnableXpnResourceRequest(); |
| 19726 var arg_project = "foo"; | 19977 var arg_project = "foo"; |
| 19978 var arg_requestId = "foo"; |
| 19727 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 19979 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19728 var obj = new api.ProjectsEnableXpnResourceRequest.fromJson(json); | 19980 var obj = new api.ProjectsEnableXpnResourceRequest.fromJson(json); |
| 19729 checkProjectsEnableXpnResourceRequest(obj); | 19981 checkProjectsEnableXpnResourceRequest(obj); |
| 19730 | 19982 |
| 19731 var path = (req.url).path; | 19983 var path = (req.url).path; |
| 19732 var pathOffset = 0; | 19984 var pathOffset = 0; |
| 19733 var index; | 19985 var index; |
| 19734 var subPart; | 19986 var subPart; |
| 19735 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 19987 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19736 pathOffset += 1; | 19988 pathOffset += 1; |
| 19737 | 19989 |
| 19738 var query = (req.url).query; | 19990 var query = (req.url).query; |
| 19739 var queryOffset = 0; | 19991 var queryOffset = 0; |
| 19740 var queryMap = {}; | 19992 var queryMap = {}; |
| 19741 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 19993 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19742 parseBool(n) { | 19994 parseBool(n) { |
| 19743 if (n == "true") return true; | 19995 if (n == "true") return true; |
| 19744 if (n == "false") return false; | 19996 if (n == "false") return false; |
| 19745 if (n == null) return null; | 19997 if (n == null) return null; |
| 19746 throw new core.ArgumentError("Invalid boolean: $n"); | 19998 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19747 } | 19999 } |
| 19748 if (query.length > 0) { | 20000 if (query.length > 0) { |
| 19749 for (var part in query.split("&")) { | 20001 for (var part in query.split("&")) { |
| 19750 var keyvalue = part.split("="); | 20002 var keyvalue = part.split("="); |
| 19751 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20003 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19752 } | 20004 } |
| 19753 } | 20005 } |
| 20006 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19754 | 20007 |
| 19755 | 20008 |
| 19756 var h = { | 20009 var h = { |
| 19757 "content-type" : "application/json; charset=utf-8", | 20010 "content-type" : "application/json; charset=utf-8", |
| 19758 }; | 20011 }; |
| 19759 var resp = convert.JSON.encode(buildOperation()); | 20012 var resp = convert.JSON.encode(buildOperation()); |
| 19760 return new async.Future.value(stringResponse(200, h, resp)); | 20013 return new async.Future.value(stringResponse(200, h, resp)); |
| 19761 }), true); | 20014 }), true); |
| 19762 res.enableXpnResource(arg_request, arg_project).then(unittest.expectAsync1
(((api.Operation response) { | 20015 res.enableXpnResource(arg_request, arg_project, requestId: arg_requestId).
then(unittest.expectAsync1(((api.Operation response) { |
| 19763 checkOperation(response); | 20016 checkOperation(response); |
| 19764 }))); | 20017 }))); |
| 19765 }); | 20018 }); |
| 19766 | 20019 |
| 19767 unittest.test("method--get", () { | 20020 unittest.test("method--get", () { |
| 19768 | 20021 |
| 19769 var mock = new HttpServerMock(); | 20022 var mock = new HttpServerMock(); |
| 19770 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 20023 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 19771 var arg_project = "foo"; | 20024 var arg_project = "foo"; |
| 19772 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20025 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19951 checkXpnHostList(response); | 20204 checkXpnHostList(response); |
| 19952 }))); | 20205 }))); |
| 19953 }); | 20206 }); |
| 19954 | 20207 |
| 19955 unittest.test("method--moveDisk", () { | 20208 unittest.test("method--moveDisk", () { |
| 19956 | 20209 |
| 19957 var mock = new HttpServerMock(); | 20210 var mock = new HttpServerMock(); |
| 19958 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 20211 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 19959 var arg_request = buildDiskMoveRequest(); | 20212 var arg_request = buildDiskMoveRequest(); |
| 19960 var arg_project = "foo"; | 20213 var arg_project = "foo"; |
| 20214 var arg_requestId = "foo"; |
| 19961 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20215 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 19962 var obj = new api.DiskMoveRequest.fromJson(json); | 20216 var obj = new api.DiskMoveRequest.fromJson(json); |
| 19963 checkDiskMoveRequest(obj); | 20217 checkDiskMoveRequest(obj); |
| 19964 | 20218 |
| 19965 var path = (req.url).path; | 20219 var path = (req.url).path; |
| 19966 var pathOffset = 0; | 20220 var pathOffset = 0; |
| 19967 var index; | 20221 var index; |
| 19968 var subPart; | 20222 var subPart; |
| 19969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 19970 pathOffset += 1; | 20224 pathOffset += 1; |
| 19971 | 20225 |
| 19972 var query = (req.url).query; | 20226 var query = (req.url).query; |
| 19973 var queryOffset = 0; | 20227 var queryOffset = 0; |
| 19974 var queryMap = {}; | 20228 var queryMap = {}; |
| 19975 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20229 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 19976 parseBool(n) { | 20230 parseBool(n) { |
| 19977 if (n == "true") return true; | 20231 if (n == "true") return true; |
| 19978 if (n == "false") return false; | 20232 if (n == "false") return false; |
| 19979 if (n == null) return null; | 20233 if (n == null) return null; |
| 19980 throw new core.ArgumentError("Invalid boolean: $n"); | 20234 throw new core.ArgumentError("Invalid boolean: $n"); |
| 19981 } | 20235 } |
| 19982 if (query.length > 0) { | 20236 if (query.length > 0) { |
| 19983 for (var part in query.split("&")) { | 20237 for (var part in query.split("&")) { |
| 19984 var keyvalue = part.split("="); | 20238 var keyvalue = part.split("="); |
| 19985 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20239 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 19986 } | 20240 } |
| 19987 } | 20241 } |
| 20242 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 19988 | 20243 |
| 19989 | 20244 |
| 19990 var h = { | 20245 var h = { |
| 19991 "content-type" : "application/json; charset=utf-8", | 20246 "content-type" : "application/json; charset=utf-8", |
| 19992 }; | 20247 }; |
| 19993 var resp = convert.JSON.encode(buildOperation()); | 20248 var resp = convert.JSON.encode(buildOperation()); |
| 19994 return new async.Future.value(stringResponse(200, h, resp)); | 20249 return new async.Future.value(stringResponse(200, h, resp)); |
| 19995 }), true); | 20250 }), true); |
| 19996 res.moveDisk(arg_request, arg_project).then(unittest.expectAsync1(((api.Op
eration response) { | 20251 res.moveDisk(arg_request, arg_project, requestId: arg_requestId).then(unit
test.expectAsync1(((api.Operation response) { |
| 19997 checkOperation(response); | 20252 checkOperation(response); |
| 19998 }))); | 20253 }))); |
| 19999 }); | 20254 }); |
| 20000 | 20255 |
| 20001 unittest.test("method--moveInstance", () { | 20256 unittest.test("method--moveInstance", () { |
| 20002 | 20257 |
| 20003 var mock = new HttpServerMock(); | 20258 var mock = new HttpServerMock(); |
| 20004 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 20259 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 20005 var arg_request = buildInstanceMoveRequest(); | 20260 var arg_request = buildInstanceMoveRequest(); |
| 20006 var arg_project = "foo"; | 20261 var arg_project = "foo"; |
| 20262 var arg_requestId = "foo"; |
| 20007 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20263 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20008 var obj = new api.InstanceMoveRequest.fromJson(json); | 20264 var obj = new api.InstanceMoveRequest.fromJson(json); |
| 20009 checkInstanceMoveRequest(obj); | 20265 checkInstanceMoveRequest(obj); |
| 20010 | 20266 |
| 20011 var path = (req.url).path; | 20267 var path = (req.url).path; |
| 20012 var pathOffset = 0; | 20268 var pathOffset = 0; |
| 20013 var index; | 20269 var index; |
| 20014 var subPart; | 20270 var subPart; |
| 20015 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20271 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20016 pathOffset += 1; | 20272 pathOffset += 1; |
| 20017 | 20273 |
| 20018 var query = (req.url).query; | 20274 var query = (req.url).query; |
| 20019 var queryOffset = 0; | 20275 var queryOffset = 0; |
| 20020 var queryMap = {}; | 20276 var queryMap = {}; |
| 20021 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20277 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20022 parseBool(n) { | 20278 parseBool(n) { |
| 20023 if (n == "true") return true; | 20279 if (n == "true") return true; |
| 20024 if (n == "false") return false; | 20280 if (n == "false") return false; |
| 20025 if (n == null) return null; | 20281 if (n == null) return null; |
| 20026 throw new core.ArgumentError("Invalid boolean: $n"); | 20282 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20027 } | 20283 } |
| 20028 if (query.length > 0) { | 20284 if (query.length > 0) { |
| 20029 for (var part in query.split("&")) { | 20285 for (var part in query.split("&")) { |
| 20030 var keyvalue = part.split("="); | 20286 var keyvalue = part.split("="); |
| 20031 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20287 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20032 } | 20288 } |
| 20033 } | 20289 } |
| 20290 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20034 | 20291 |
| 20035 | 20292 |
| 20036 var h = { | 20293 var h = { |
| 20037 "content-type" : "application/json; charset=utf-8", | 20294 "content-type" : "application/json; charset=utf-8", |
| 20038 }; | 20295 }; |
| 20039 var resp = convert.JSON.encode(buildOperation()); | 20296 var resp = convert.JSON.encode(buildOperation()); |
| 20040 return new async.Future.value(stringResponse(200, h, resp)); | 20297 return new async.Future.value(stringResponse(200, h, resp)); |
| 20041 }), true); | 20298 }), true); |
| 20042 res.moveInstance(arg_request, arg_project).then(unittest.expectAsync1(((ap
i.Operation response) { | 20299 res.moveInstance(arg_request, arg_project, requestId: arg_requestId).then(
unittest.expectAsync1(((api.Operation response) { |
| 20043 checkOperation(response); | 20300 checkOperation(response); |
| 20044 }))); | 20301 }))); |
| 20045 }); | 20302 }); |
| 20046 | 20303 |
| 20047 unittest.test("method--setCommonInstanceMetadata", () { | 20304 unittest.test("method--setCommonInstanceMetadata", () { |
| 20048 | 20305 |
| 20049 var mock = new HttpServerMock(); | 20306 var mock = new HttpServerMock(); |
| 20050 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 20307 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 20051 var arg_request = buildMetadata(); | 20308 var arg_request = buildMetadata(); |
| 20052 var arg_project = "foo"; | 20309 var arg_project = "foo"; |
| 20310 var arg_requestId = "foo"; |
| 20053 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20054 var obj = new api.Metadata.fromJson(json); | 20312 var obj = new api.Metadata.fromJson(json); |
| 20055 checkMetadata(obj); | 20313 checkMetadata(obj); |
| 20056 | 20314 |
| 20057 var path = (req.url).path; | 20315 var path = (req.url).path; |
| 20058 var pathOffset = 0; | 20316 var pathOffset = 0; |
| 20059 var index; | 20317 var index; |
| 20060 var subPart; | 20318 var subPart; |
| 20061 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20062 pathOffset += 1; | 20320 pathOffset += 1; |
| 20063 | 20321 |
| 20064 var query = (req.url).query; | 20322 var query = (req.url).query; |
| 20065 var queryOffset = 0; | 20323 var queryOffset = 0; |
| 20066 var queryMap = {}; | 20324 var queryMap = {}; |
| 20067 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20325 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20068 parseBool(n) { | 20326 parseBool(n) { |
| 20069 if (n == "true") return true; | 20327 if (n == "true") return true; |
| 20070 if (n == "false") return false; | 20328 if (n == "false") return false; |
| 20071 if (n == null) return null; | 20329 if (n == null) return null; |
| 20072 throw new core.ArgumentError("Invalid boolean: $n"); | 20330 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20073 } | 20331 } |
| 20074 if (query.length > 0) { | 20332 if (query.length > 0) { |
| 20075 for (var part in query.split("&")) { | 20333 for (var part in query.split("&")) { |
| 20076 var keyvalue = part.split("="); | 20334 var keyvalue = part.split("="); |
| 20077 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20078 } | 20336 } |
| 20079 } | 20337 } |
| 20338 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20080 | 20339 |
| 20081 | 20340 |
| 20082 var h = { | 20341 var h = { |
| 20083 "content-type" : "application/json; charset=utf-8", | 20342 "content-type" : "application/json; charset=utf-8", |
| 20084 }; | 20343 }; |
| 20085 var resp = convert.JSON.encode(buildOperation()); | 20344 var resp = convert.JSON.encode(buildOperation()); |
| 20086 return new async.Future.value(stringResponse(200, h, resp)); | 20345 return new async.Future.value(stringResponse(200, h, resp)); |
| 20087 }), true); | 20346 }), true); |
| 20088 res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expe
ctAsync1(((api.Operation response) { | 20347 res.setCommonInstanceMetadata(arg_request, arg_project, requestId: arg_req
uestId).then(unittest.expectAsync1(((api.Operation response) { |
| 20089 checkOperation(response); | 20348 checkOperation(response); |
| 20090 }))); | 20349 }))); |
| 20091 }); | 20350 }); |
| 20092 | 20351 |
| 20093 unittest.test("method--setUsageExportBucket", () { | 20352 unittest.test("method--setUsageExportBucket", () { |
| 20094 | 20353 |
| 20095 var mock = new HttpServerMock(); | 20354 var mock = new HttpServerMock(); |
| 20096 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 20355 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 20097 var arg_request = buildUsageExportLocation(); | 20356 var arg_request = buildUsageExportLocation(); |
| 20098 var arg_project = "foo"; | 20357 var arg_project = "foo"; |
| 20358 var arg_requestId = "foo"; |
| 20099 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20359 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20100 var obj = new api.UsageExportLocation.fromJson(json); | 20360 var obj = new api.UsageExportLocation.fromJson(json); |
| 20101 checkUsageExportLocation(obj); | 20361 checkUsageExportLocation(obj); |
| 20102 | 20362 |
| 20103 var path = (req.url).path; | 20363 var path = (req.url).path; |
| 20104 var pathOffset = 0; | 20364 var pathOffset = 0; |
| 20105 var index; | 20365 var index; |
| 20106 var subPart; | 20366 var subPart; |
| 20107 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20367 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20108 pathOffset += 1; | 20368 pathOffset += 1; |
| 20109 | 20369 |
| 20110 var query = (req.url).query; | 20370 var query = (req.url).query; |
| 20111 var queryOffset = 0; | 20371 var queryOffset = 0; |
| 20112 var queryMap = {}; | 20372 var queryMap = {}; |
| 20113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20373 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20114 parseBool(n) { | 20374 parseBool(n) { |
| 20115 if (n == "true") return true; | 20375 if (n == "true") return true; |
| 20116 if (n == "false") return false; | 20376 if (n == "false") return false; |
| 20117 if (n == null) return null; | 20377 if (n == null) return null; |
| 20118 throw new core.ArgumentError("Invalid boolean: $n"); | 20378 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20119 } | 20379 } |
| 20120 if (query.length > 0) { | 20380 if (query.length > 0) { |
| 20121 for (var part in query.split("&")) { | 20381 for (var part in query.split("&")) { |
| 20122 var keyvalue = part.split("="); | 20382 var keyvalue = part.split("="); |
| 20123 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20383 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20124 } | 20384 } |
| 20125 } | 20385 } |
| 20386 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20126 | 20387 |
| 20127 | 20388 |
| 20128 var h = { | 20389 var h = { |
| 20129 "content-type" : "application/json; charset=utf-8", | 20390 "content-type" : "application/json; charset=utf-8", |
| 20130 }; | 20391 }; |
| 20131 var resp = convert.JSON.encode(buildOperation()); | 20392 var resp = convert.JSON.encode(buildOperation()); |
| 20132 return new async.Future.value(stringResponse(200, h, resp)); | 20393 return new async.Future.value(stringResponse(200, h, resp)); |
| 20133 }), true); | 20394 }), true); |
| 20134 res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsy
nc1(((api.Operation response) { | 20395 res.setUsageExportBucket(arg_request, arg_project, requestId: arg_requestI
d).then(unittest.expectAsync1(((api.Operation response) { |
| 20135 checkOperation(response); | 20396 checkOperation(response); |
| 20136 }))); | 20397 }))); |
| 20137 }); | 20398 }); |
| 20138 | 20399 |
| 20139 }); | 20400 }); |
| 20140 | 20401 |
| 20141 | 20402 |
| 20142 unittest.group("resource-RegionAutoscalersResourceApi", () { | 20403 unittest.group("resource-RegionAutoscalersResourceApi", () { |
| 20143 unittest.test("method--delete", () { | 20404 unittest.test("method--delete", () { |
| 20144 | 20405 |
| 20145 var mock = new HttpServerMock(); | 20406 var mock = new HttpServerMock(); |
| 20146 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; | 20407 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 20147 var arg_project = "foo"; | 20408 var arg_project = "foo"; |
| 20148 var arg_region = "foo"; | 20409 var arg_region = "foo"; |
| 20149 var arg_autoscaler = "foo"; | 20410 var arg_autoscaler = "foo"; |
| 20411 var arg_requestId = "foo"; |
| 20150 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20412 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20151 var path = (req.url).path; | 20413 var path = (req.url).path; |
| 20152 var pathOffset = 0; | 20414 var pathOffset = 0; |
| 20153 var index; | 20415 var index; |
| 20154 var subPart; | 20416 var subPart; |
| 20155 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20156 pathOffset += 1; | 20418 pathOffset += 1; |
| 20157 | 20419 |
| 20158 var query = (req.url).query; | 20420 var query = (req.url).query; |
| 20159 var queryOffset = 0; | 20421 var queryOffset = 0; |
| 20160 var queryMap = {}; | 20422 var queryMap = {}; |
| 20161 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20423 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20162 parseBool(n) { | 20424 parseBool(n) { |
| 20163 if (n == "true") return true; | 20425 if (n == "true") return true; |
| 20164 if (n == "false") return false; | 20426 if (n == "false") return false; |
| 20165 if (n == null) return null; | 20427 if (n == null) return null; |
| 20166 throw new core.ArgumentError("Invalid boolean: $n"); | 20428 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20167 } | 20429 } |
| 20168 if (query.length > 0) { | 20430 if (query.length > 0) { |
| 20169 for (var part in query.split("&")) { | 20431 for (var part in query.split("&")) { |
| 20170 var keyvalue = part.split("="); | 20432 var keyvalue = part.split("="); |
| 20171 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20433 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20172 } | 20434 } |
| 20173 } | 20435 } |
| 20436 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20174 | 20437 |
| 20175 | 20438 |
| 20176 var h = { | 20439 var h = { |
| 20177 "content-type" : "application/json; charset=utf-8", | 20440 "content-type" : "application/json; charset=utf-8", |
| 20178 }; | 20441 }; |
| 20179 var resp = convert.JSON.encode(buildOperation()); | 20442 var resp = convert.JSON.encode(buildOperation()); |
| 20180 return new async.Future.value(stringResponse(200, h, resp)); | 20443 return new async.Future.value(stringResponse(200, h, resp)); |
| 20181 }), true); | 20444 }), true); |
| 20182 res.delete(arg_project, arg_region, arg_autoscaler).then(unittest.expectAs
ync1(((api.Operation response) { | 20445 res.delete(arg_project, arg_region, arg_autoscaler, requestId: arg_request
Id).then(unittest.expectAsync1(((api.Operation response) { |
| 20183 checkOperation(response); | 20446 checkOperation(response); |
| 20184 }))); | 20447 }))); |
| 20185 }); | 20448 }); |
| 20186 | 20449 |
| 20187 unittest.test("method--get", () { | 20450 unittest.test("method--get", () { |
| 20188 | 20451 |
| 20189 var mock = new HttpServerMock(); | 20452 var mock = new HttpServerMock(); |
| 20190 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; | 20453 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 20191 var arg_project = "foo"; | 20454 var arg_project = "foo"; |
| 20192 var arg_region = "foo"; | 20455 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20228 }))); | 20491 }))); |
| 20229 }); | 20492 }); |
| 20230 | 20493 |
| 20231 unittest.test("method--insert", () { | 20494 unittest.test("method--insert", () { |
| 20232 | 20495 |
| 20233 var mock = new HttpServerMock(); | 20496 var mock = new HttpServerMock(); |
| 20234 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; | 20497 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 20235 var arg_request = buildAutoscaler(); | 20498 var arg_request = buildAutoscaler(); |
| 20236 var arg_project = "foo"; | 20499 var arg_project = "foo"; |
| 20237 var arg_region = "foo"; | 20500 var arg_region = "foo"; |
| 20501 var arg_requestId = "foo"; |
| 20238 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20502 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20239 var obj = new api.Autoscaler.fromJson(json); | 20503 var obj = new api.Autoscaler.fromJson(json); |
| 20240 checkAutoscaler(obj); | 20504 checkAutoscaler(obj); |
| 20241 | 20505 |
| 20242 var path = (req.url).path; | 20506 var path = (req.url).path; |
| 20243 var pathOffset = 0; | 20507 var pathOffset = 0; |
| 20244 var index; | 20508 var index; |
| 20245 var subPart; | 20509 var subPart; |
| 20246 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20247 pathOffset += 1; | 20511 pathOffset += 1; |
| 20248 | 20512 |
| 20249 var query = (req.url).query; | 20513 var query = (req.url).query; |
| 20250 var queryOffset = 0; | 20514 var queryOffset = 0; |
| 20251 var queryMap = {}; | 20515 var queryMap = {}; |
| 20252 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20516 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20253 parseBool(n) { | 20517 parseBool(n) { |
| 20254 if (n == "true") return true; | 20518 if (n == "true") return true; |
| 20255 if (n == "false") return false; | 20519 if (n == "false") return false; |
| 20256 if (n == null) return null; | 20520 if (n == null) return null; |
| 20257 throw new core.ArgumentError("Invalid boolean: $n"); | 20521 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20258 } | 20522 } |
| 20259 if (query.length > 0) { | 20523 if (query.length > 0) { |
| 20260 for (var part in query.split("&")) { | 20524 for (var part in query.split("&")) { |
| 20261 var keyvalue = part.split("="); | 20525 var keyvalue = part.split("="); |
| 20262 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20526 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20263 } | 20527 } |
| 20264 } | 20528 } |
| 20529 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20265 | 20530 |
| 20266 | 20531 |
| 20267 var h = { | 20532 var h = { |
| 20268 "content-type" : "application/json; charset=utf-8", | 20533 "content-type" : "application/json; charset=utf-8", |
| 20269 }; | 20534 }; |
| 20270 var resp = convert.JSON.encode(buildOperation()); | 20535 var resp = convert.JSON.encode(buildOperation()); |
| 20271 return new async.Future.value(stringResponse(200, h, resp)); | 20536 return new async.Future.value(stringResponse(200, h, resp)); |
| 20272 }), true); | 20537 }), true); |
| 20273 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 20538 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 20274 checkOperation(response); | 20539 checkOperation(response); |
| 20275 }))); | 20540 }))); |
| 20276 }); | 20541 }); |
| 20277 | 20542 |
| 20278 unittest.test("method--list", () { | 20543 unittest.test("method--list", () { |
| 20279 | 20544 |
| 20280 var mock = new HttpServerMock(); | 20545 var mock = new HttpServerMock(); |
| 20281 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; | 20546 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 20282 var arg_project = "foo"; | 20547 var arg_project = "foo"; |
| 20283 var arg_region = "foo"; | 20548 var arg_region = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20327 }); | 20592 }); |
| 20328 | 20593 |
| 20329 unittest.test("method--patch", () { | 20594 unittest.test("method--patch", () { |
| 20330 | 20595 |
| 20331 var mock = new HttpServerMock(); | 20596 var mock = new HttpServerMock(); |
| 20332 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; | 20597 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 20333 var arg_request = buildAutoscaler(); | 20598 var arg_request = buildAutoscaler(); |
| 20334 var arg_project = "foo"; | 20599 var arg_project = "foo"; |
| 20335 var arg_region = "foo"; | 20600 var arg_region = "foo"; |
| 20336 var arg_autoscaler = "foo"; | 20601 var arg_autoscaler = "foo"; |
| 20602 var arg_requestId = "foo"; |
| 20337 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20603 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20338 var obj = new api.Autoscaler.fromJson(json); | 20604 var obj = new api.Autoscaler.fromJson(json); |
| 20339 checkAutoscaler(obj); | 20605 checkAutoscaler(obj); |
| 20340 | 20606 |
| 20341 var path = (req.url).path; | 20607 var path = (req.url).path; |
| 20342 var pathOffset = 0; | 20608 var pathOffset = 0; |
| 20343 var index; | 20609 var index; |
| 20344 var subPart; | 20610 var subPart; |
| 20345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20611 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20346 pathOffset += 1; | 20612 pathOffset += 1; |
| 20347 | 20613 |
| 20348 var query = (req.url).query; | 20614 var query = (req.url).query; |
| 20349 var queryOffset = 0; | 20615 var queryOffset = 0; |
| 20350 var queryMap = {}; | 20616 var queryMap = {}; |
| 20351 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20617 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20352 parseBool(n) { | 20618 parseBool(n) { |
| 20353 if (n == "true") return true; | 20619 if (n == "true") return true; |
| 20354 if (n == "false") return false; | 20620 if (n == "false") return false; |
| 20355 if (n == null) return null; | 20621 if (n == null) return null; |
| 20356 throw new core.ArgumentError("Invalid boolean: $n"); | 20622 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20357 } | 20623 } |
| 20358 if (query.length > 0) { | 20624 if (query.length > 0) { |
| 20359 for (var part in query.split("&")) { | 20625 for (var part in query.split("&")) { |
| 20360 var keyvalue = part.split("="); | 20626 var keyvalue = part.split("="); |
| 20361 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20627 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20362 } | 20628 } |
| 20363 } | 20629 } |
| 20364 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); | 20630 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
| 20631 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20365 | 20632 |
| 20366 | 20633 |
| 20367 var h = { | 20634 var h = { |
| 20368 "content-type" : "application/json; charset=utf-8", | 20635 "content-type" : "application/json; charset=utf-8", |
| 20369 }; | 20636 }; |
| 20370 var resp = convert.JSON.encode(buildOperation()); | 20637 var resp = convert.JSON.encode(buildOperation()); |
| 20371 return new async.Future.value(stringResponse(200, h, resp)); | 20638 return new async.Future.value(stringResponse(200, h, resp)); |
| 20372 }), true); | 20639 }), true); |
| 20373 res.patch(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler
).then(unittest.expectAsync1(((api.Operation response) { | 20640 res.patch(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler
, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response)
{ |
| 20374 checkOperation(response); | 20641 checkOperation(response); |
| 20375 }))); | 20642 }))); |
| 20376 }); | 20643 }); |
| 20377 | 20644 |
| 20378 unittest.test("method--update", () { | 20645 unittest.test("method--update", () { |
| 20379 | 20646 |
| 20380 var mock = new HttpServerMock(); | 20647 var mock = new HttpServerMock(); |
| 20381 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; | 20648 api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAuto
scalers; |
| 20382 var arg_request = buildAutoscaler(); | 20649 var arg_request = buildAutoscaler(); |
| 20383 var arg_project = "foo"; | 20650 var arg_project = "foo"; |
| 20384 var arg_region = "foo"; | 20651 var arg_region = "foo"; |
| 20385 var arg_autoscaler = "foo"; | 20652 var arg_autoscaler = "foo"; |
| 20653 var arg_requestId = "foo"; |
| 20386 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20654 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20387 var obj = new api.Autoscaler.fromJson(json); | 20655 var obj = new api.Autoscaler.fromJson(json); |
| 20388 checkAutoscaler(obj); | 20656 checkAutoscaler(obj); |
| 20389 | 20657 |
| 20390 var path = (req.url).path; | 20658 var path = (req.url).path; |
| 20391 var pathOffset = 0; | 20659 var pathOffset = 0; |
| 20392 var index; | 20660 var index; |
| 20393 var subPart; | 20661 var subPart; |
| 20394 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20662 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20395 pathOffset += 1; | 20663 pathOffset += 1; |
| 20396 | 20664 |
| 20397 var query = (req.url).query; | 20665 var query = (req.url).query; |
| 20398 var queryOffset = 0; | 20666 var queryOffset = 0; |
| 20399 var queryMap = {}; | 20667 var queryMap = {}; |
| 20400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20668 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20401 parseBool(n) { | 20669 parseBool(n) { |
| 20402 if (n == "true") return true; | 20670 if (n == "true") return true; |
| 20403 if (n == "false") return false; | 20671 if (n == "false") return false; |
| 20404 if (n == null) return null; | 20672 if (n == null) return null; |
| 20405 throw new core.ArgumentError("Invalid boolean: $n"); | 20673 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20406 } | 20674 } |
| 20407 if (query.length > 0) { | 20675 if (query.length > 0) { |
| 20408 for (var part in query.split("&")) { | 20676 for (var part in query.split("&")) { |
| 20409 var keyvalue = part.split("="); | 20677 var keyvalue = part.split("="); |
| 20410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20678 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20411 } | 20679 } |
| 20412 } | 20680 } |
| 20413 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); | 20681 unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autosc
aler)); |
| 20682 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20414 | 20683 |
| 20415 | 20684 |
| 20416 var h = { | 20685 var h = { |
| 20417 "content-type" : "application/json; charset=utf-8", | 20686 "content-type" : "application/json; charset=utf-8", |
| 20418 }; | 20687 }; |
| 20419 var resp = convert.JSON.encode(buildOperation()); | 20688 var resp = convert.JSON.encode(buildOperation()); |
| 20420 return new async.Future.value(stringResponse(200, h, resp)); | 20689 return new async.Future.value(stringResponse(200, h, resp)); |
| 20421 }), true); | 20690 }), true); |
| 20422 res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscale
r).then(unittest.expectAsync1(((api.Operation response) { | 20691 res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscale
r, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response
) { |
| 20423 checkOperation(response); | 20692 checkOperation(response); |
| 20424 }))); | 20693 }))); |
| 20425 }); | 20694 }); |
| 20426 | 20695 |
| 20427 }); | 20696 }); |
| 20428 | 20697 |
| 20429 | 20698 |
| 20430 unittest.group("resource-RegionBackendServicesResourceApi", () { | 20699 unittest.group("resource-RegionBackendServicesResourceApi", () { |
| 20431 unittest.test("method--delete", () { | 20700 unittest.test("method--delete", () { |
| 20432 | 20701 |
| 20433 var mock = new HttpServerMock(); | 20702 var mock = new HttpServerMock(); |
| 20434 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; | 20703 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 20435 var arg_project = "foo"; | 20704 var arg_project = "foo"; |
| 20436 var arg_region = "foo"; | 20705 var arg_region = "foo"; |
| 20437 var arg_backendService = "foo"; | 20706 var arg_backendService = "foo"; |
| 20707 var arg_requestId = "foo"; |
| 20438 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20708 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20439 var path = (req.url).path; | 20709 var path = (req.url).path; |
| 20440 var pathOffset = 0; | 20710 var pathOffset = 0; |
| 20441 var index; | 20711 var index; |
| 20442 var subPart; | 20712 var subPart; |
| 20443 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20713 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20444 pathOffset += 1; | 20714 pathOffset += 1; |
| 20445 | 20715 |
| 20446 var query = (req.url).query; | 20716 var query = (req.url).query; |
| 20447 var queryOffset = 0; | 20717 var queryOffset = 0; |
| 20448 var queryMap = {}; | 20718 var queryMap = {}; |
| 20449 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20719 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20450 parseBool(n) { | 20720 parseBool(n) { |
| 20451 if (n == "true") return true; | 20721 if (n == "true") return true; |
| 20452 if (n == "false") return false; | 20722 if (n == "false") return false; |
| 20453 if (n == null) return null; | 20723 if (n == null) return null; |
| 20454 throw new core.ArgumentError("Invalid boolean: $n"); | 20724 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20455 } | 20725 } |
| 20456 if (query.length > 0) { | 20726 if (query.length > 0) { |
| 20457 for (var part in query.split("&")) { | 20727 for (var part in query.split("&")) { |
| 20458 var keyvalue = part.split("="); | 20728 var keyvalue = part.split("="); |
| 20459 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20729 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20460 } | 20730 } |
| 20461 } | 20731 } |
| 20732 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20462 | 20733 |
| 20463 | 20734 |
| 20464 var h = { | 20735 var h = { |
| 20465 "content-type" : "application/json; charset=utf-8", | 20736 "content-type" : "application/json; charset=utf-8", |
| 20466 }; | 20737 }; |
| 20467 var resp = convert.JSON.encode(buildOperation()); | 20738 var resp = convert.JSON.encode(buildOperation()); |
| 20468 return new async.Future.value(stringResponse(200, h, resp)); | 20739 return new async.Future.value(stringResponse(200, h, resp)); |
| 20469 }), true); | 20740 }), true); |
| 20470 res.delete(arg_project, arg_region, arg_backendService).then(unittest.expe
ctAsync1(((api.Operation response) { | 20741 res.delete(arg_project, arg_region, arg_backendService, requestId: arg_req
uestId).then(unittest.expectAsync1(((api.Operation response) { |
| 20471 checkOperation(response); | 20742 checkOperation(response); |
| 20472 }))); | 20743 }))); |
| 20473 }); | 20744 }); |
| 20474 | 20745 |
| 20475 unittest.test("method--get", () { | 20746 unittest.test("method--get", () { |
| 20476 | 20747 |
| 20477 var mock = new HttpServerMock(); | 20748 var mock = new HttpServerMock(); |
| 20478 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; | 20749 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 20479 var arg_project = "foo"; | 20750 var arg_project = "foo"; |
| 20480 var arg_region = "foo"; | 20751 var arg_region = "foo"; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20564 }))); | 20835 }))); |
| 20565 }); | 20836 }); |
| 20566 | 20837 |
| 20567 unittest.test("method--insert", () { | 20838 unittest.test("method--insert", () { |
| 20568 | 20839 |
| 20569 var mock = new HttpServerMock(); | 20840 var mock = new HttpServerMock(); |
| 20570 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; | 20841 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 20571 var arg_request = buildBackendService(); | 20842 var arg_request = buildBackendService(); |
| 20572 var arg_project = "foo"; | 20843 var arg_project = "foo"; |
| 20573 var arg_region = "foo"; | 20844 var arg_region = "foo"; |
| 20845 var arg_requestId = "foo"; |
| 20574 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20846 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20575 var obj = new api.BackendService.fromJson(json); | 20847 var obj = new api.BackendService.fromJson(json); |
| 20576 checkBackendService(obj); | 20848 checkBackendService(obj); |
| 20577 | 20849 |
| 20578 var path = (req.url).path; | 20850 var path = (req.url).path; |
| 20579 var pathOffset = 0; | 20851 var pathOffset = 0; |
| 20580 var index; | 20852 var index; |
| 20581 var subPart; | 20853 var subPart; |
| 20582 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20854 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20583 pathOffset += 1; | 20855 pathOffset += 1; |
| 20584 | 20856 |
| 20585 var query = (req.url).query; | 20857 var query = (req.url).query; |
| 20586 var queryOffset = 0; | 20858 var queryOffset = 0; |
| 20587 var queryMap = {}; | 20859 var queryMap = {}; |
| 20588 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20860 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20589 parseBool(n) { | 20861 parseBool(n) { |
| 20590 if (n == "true") return true; | 20862 if (n == "true") return true; |
| 20591 if (n == "false") return false; | 20863 if (n == "false") return false; |
| 20592 if (n == null) return null; | 20864 if (n == null) return null; |
| 20593 throw new core.ArgumentError("Invalid boolean: $n"); | 20865 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20594 } | 20866 } |
| 20595 if (query.length > 0) { | 20867 if (query.length > 0) { |
| 20596 for (var part in query.split("&")) { | 20868 for (var part in query.split("&")) { |
| 20597 var keyvalue = part.split("="); | 20869 var keyvalue = part.split("="); |
| 20598 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20870 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20599 } | 20871 } |
| 20600 } | 20872 } |
| 20873 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20601 | 20874 |
| 20602 | 20875 |
| 20603 var h = { | 20876 var h = { |
| 20604 "content-type" : "application/json; charset=utf-8", | 20877 "content-type" : "application/json; charset=utf-8", |
| 20605 }; | 20878 }; |
| 20606 var resp = convert.JSON.encode(buildOperation()); | 20879 var resp = convert.JSON.encode(buildOperation()); |
| 20607 return new async.Future.value(stringResponse(200, h, resp)); | 20880 return new async.Future.value(stringResponse(200, h, resp)); |
| 20608 }), true); | 20881 }), true); |
| 20609 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 20882 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 20610 checkOperation(response); | 20883 checkOperation(response); |
| 20611 }))); | 20884 }))); |
| 20612 }); | 20885 }); |
| 20613 | 20886 |
| 20614 unittest.test("method--list", () { | 20887 unittest.test("method--list", () { |
| 20615 | 20888 |
| 20616 var mock = new HttpServerMock(); | 20889 var mock = new HttpServerMock(); |
| 20617 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; | 20890 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 20618 var arg_project = "foo"; | 20891 var arg_project = "foo"; |
| 20619 var arg_region = "foo"; | 20892 var arg_region = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20663 }); | 20936 }); |
| 20664 | 20937 |
| 20665 unittest.test("method--patch", () { | 20938 unittest.test("method--patch", () { |
| 20666 | 20939 |
| 20667 var mock = new HttpServerMock(); | 20940 var mock = new HttpServerMock(); |
| 20668 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; | 20941 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 20669 var arg_request = buildBackendService(); | 20942 var arg_request = buildBackendService(); |
| 20670 var arg_project = "foo"; | 20943 var arg_project = "foo"; |
| 20671 var arg_region = "foo"; | 20944 var arg_region = "foo"; |
| 20672 var arg_backendService = "foo"; | 20945 var arg_backendService = "foo"; |
| 20946 var arg_requestId = "foo"; |
| 20673 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20947 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20674 var obj = new api.BackendService.fromJson(json); | 20948 var obj = new api.BackendService.fromJson(json); |
| 20675 checkBackendService(obj); | 20949 checkBackendService(obj); |
| 20676 | 20950 |
| 20677 var path = (req.url).path; | 20951 var path = (req.url).path; |
| 20678 var pathOffset = 0; | 20952 var pathOffset = 0; |
| 20679 var index; | 20953 var index; |
| 20680 var subPart; | 20954 var subPart; |
| 20681 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 20955 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20682 pathOffset += 1; | 20956 pathOffset += 1; |
| 20683 | 20957 |
| 20684 var query = (req.url).query; | 20958 var query = (req.url).query; |
| 20685 var queryOffset = 0; | 20959 var queryOffset = 0; |
| 20686 var queryMap = {}; | 20960 var queryMap = {}; |
| 20687 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 20961 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20688 parseBool(n) { | 20962 parseBool(n) { |
| 20689 if (n == "true") return true; | 20963 if (n == "true") return true; |
| 20690 if (n == "false") return false; | 20964 if (n == "false") return false; |
| 20691 if (n == null) return null; | 20965 if (n == null) return null; |
| 20692 throw new core.ArgumentError("Invalid boolean: $n"); | 20966 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20693 } | 20967 } |
| 20694 if (query.length > 0) { | 20968 if (query.length > 0) { |
| 20695 for (var part in query.split("&")) { | 20969 for (var part in query.split("&")) { |
| 20696 var keyvalue = part.split("="); | 20970 var keyvalue = part.split("="); |
| 20697 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 20971 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20698 } | 20972 } |
| 20699 } | 20973 } |
| 20974 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20700 | 20975 |
| 20701 | 20976 |
| 20702 var h = { | 20977 var h = { |
| 20703 "content-type" : "application/json; charset=utf-8", | 20978 "content-type" : "application/json; charset=utf-8", |
| 20704 }; | 20979 }; |
| 20705 var resp = convert.JSON.encode(buildOperation()); | 20980 var resp = convert.JSON.encode(buildOperation()); |
| 20706 return new async.Future.value(stringResponse(200, h, resp)); | 20981 return new async.Future.value(stringResponse(200, h, resp)); |
| 20707 }), true); | 20982 }), true); |
| 20708 res.patch(arg_request, arg_project, arg_region, arg_backendService).then(u
nittest.expectAsync1(((api.Operation response) { | 20983 res.patch(arg_request, arg_project, arg_region, arg_backendService, reques
tId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 20709 checkOperation(response); | 20984 checkOperation(response); |
| 20710 }))); | 20985 }))); |
| 20711 }); | 20986 }); |
| 20712 | 20987 |
| 20713 unittest.test("method--update", () { | 20988 unittest.test("method--update", () { |
| 20714 | 20989 |
| 20715 var mock = new HttpServerMock(); | 20990 var mock = new HttpServerMock(); |
| 20716 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; | 20991 api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).region
BackendServices; |
| 20717 var arg_request = buildBackendService(); | 20992 var arg_request = buildBackendService(); |
| 20718 var arg_project = "foo"; | 20993 var arg_project = "foo"; |
| 20719 var arg_region = "foo"; | 20994 var arg_region = "foo"; |
| 20720 var arg_backendService = "foo"; | 20995 var arg_backendService = "foo"; |
| 20996 var arg_requestId = "foo"; |
| 20721 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 20997 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20722 var obj = new api.BackendService.fromJson(json); | 20998 var obj = new api.BackendService.fromJson(json); |
| 20723 checkBackendService(obj); | 20999 checkBackendService(obj); |
| 20724 | 21000 |
| 20725 var path = (req.url).path; | 21001 var path = (req.url).path; |
| 20726 var pathOffset = 0; | 21002 var pathOffset = 0; |
| 20727 var index; | 21003 var index; |
| 20728 var subPart; | 21004 var subPart; |
| 20729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20730 pathOffset += 1; | 21006 pathOffset += 1; |
| 20731 | 21007 |
| 20732 var query = (req.url).query; | 21008 var query = (req.url).query; |
| 20733 var queryOffset = 0; | 21009 var queryOffset = 0; |
| 20734 var queryMap = {}; | 21010 var queryMap = {}; |
| 20735 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21011 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20736 parseBool(n) { | 21012 parseBool(n) { |
| 20737 if (n == "true") return true; | 21013 if (n == "true") return true; |
| 20738 if (n == "false") return false; | 21014 if (n == "false") return false; |
| 20739 if (n == null) return null; | 21015 if (n == null) return null; |
| 20740 throw new core.ArgumentError("Invalid boolean: $n"); | 21016 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20741 } | 21017 } |
| 20742 if (query.length > 0) { | 21018 if (query.length > 0) { |
| 20743 for (var part in query.split("&")) { | 21019 for (var part in query.split("&")) { |
| 20744 var keyvalue = part.split("="); | 21020 var keyvalue = part.split("="); |
| 20745 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21021 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20746 } | 21022 } |
| 20747 } | 21023 } |
| 21024 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20748 | 21025 |
| 20749 | 21026 |
| 20750 var h = { | 21027 var h = { |
| 20751 "content-type" : "application/json; charset=utf-8", | 21028 "content-type" : "application/json; charset=utf-8", |
| 20752 }; | 21029 }; |
| 20753 var resp = convert.JSON.encode(buildOperation()); | 21030 var resp = convert.JSON.encode(buildOperation()); |
| 20754 return new async.Future.value(stringResponse(200, h, resp)); | 21031 return new async.Future.value(stringResponse(200, h, resp)); |
| 20755 }), true); | 21032 }), true); |
| 20756 res.update(arg_request, arg_project, arg_region, arg_backendService).then(
unittest.expectAsync1(((api.Operation response) { | 21033 res.update(arg_request, arg_project, arg_region, arg_backendService, reque
stId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 20757 checkOperation(response); | 21034 checkOperation(response); |
| 20758 }))); | 21035 }))); |
| 20759 }); | 21036 }); |
| 20760 | 21037 |
| 20761 }); | 21038 }); |
| 20762 | 21039 |
| 20763 | 21040 |
| 20764 unittest.group("resource-RegionCommitmentsResourceApi", () { | 21041 unittest.group("resource-RegionCommitmentsResourceApi", () { |
| 20765 unittest.test("method--aggregatedList", () { | 21042 unittest.test("method--aggregatedList", () { |
| 20766 | 21043 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20856 }))); | 21133 }))); |
| 20857 }); | 21134 }); |
| 20858 | 21135 |
| 20859 unittest.test("method--insert", () { | 21136 unittest.test("method--insert", () { |
| 20860 | 21137 |
| 20861 var mock = new HttpServerMock(); | 21138 var mock = new HttpServerMock(); |
| 20862 api.RegionCommitmentsResourceApi res = new api.ComputeApi(mock).regionComm
itments; | 21139 api.RegionCommitmentsResourceApi res = new api.ComputeApi(mock).regionComm
itments; |
| 20863 var arg_request = buildCommitment(); | 21140 var arg_request = buildCommitment(); |
| 20864 var arg_project = "foo"; | 21141 var arg_project = "foo"; |
| 20865 var arg_region = "foo"; | 21142 var arg_region = "foo"; |
| 21143 var arg_requestId = "foo"; |
| 20866 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21144 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20867 var obj = new api.Commitment.fromJson(json); | 21145 var obj = new api.Commitment.fromJson(json); |
| 20868 checkCommitment(obj); | 21146 checkCommitment(obj); |
| 20869 | 21147 |
| 20870 var path = (req.url).path; | 21148 var path = (req.url).path; |
| 20871 var pathOffset = 0; | 21149 var pathOffset = 0; |
| 20872 var index; | 21150 var index; |
| 20873 var subPart; | 21151 var subPart; |
| 20874 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21152 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20875 pathOffset += 1; | 21153 pathOffset += 1; |
| 20876 | 21154 |
| 20877 var query = (req.url).query; | 21155 var query = (req.url).query; |
| 20878 var queryOffset = 0; | 21156 var queryOffset = 0; |
| 20879 var queryMap = {}; | 21157 var queryMap = {}; |
| 20880 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21158 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20881 parseBool(n) { | 21159 parseBool(n) { |
| 20882 if (n == "true") return true; | 21160 if (n == "true") return true; |
| 20883 if (n == "false") return false; | 21161 if (n == "false") return false; |
| 20884 if (n == null) return null; | 21162 if (n == null) return null; |
| 20885 throw new core.ArgumentError("Invalid boolean: $n"); | 21163 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20886 } | 21164 } |
| 20887 if (query.length > 0) { | 21165 if (query.length > 0) { |
| 20888 for (var part in query.split("&")) { | 21166 for (var part in query.split("&")) { |
| 20889 var keyvalue = part.split("="); | 21167 var keyvalue = part.split("="); |
| 20890 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21168 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20891 } | 21169 } |
| 20892 } | 21170 } |
| 21171 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20893 | 21172 |
| 20894 | 21173 |
| 20895 var h = { | 21174 var h = { |
| 20896 "content-type" : "application/json; charset=utf-8", | 21175 "content-type" : "application/json; charset=utf-8", |
| 20897 }; | 21176 }; |
| 20898 var resp = convert.JSON.encode(buildOperation()); | 21177 var resp = convert.JSON.encode(buildOperation()); |
| 20899 return new async.Future.value(stringResponse(200, h, resp)); | 21178 return new async.Future.value(stringResponse(200, h, resp)); |
| 20900 }), true); | 21179 }), true); |
| 20901 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 21180 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 20902 checkOperation(response); | 21181 checkOperation(response); |
| 20903 }))); | 21182 }))); |
| 20904 }); | 21183 }); |
| 20905 | 21184 |
| 20906 unittest.test("method--list", () { | 21185 unittest.test("method--list", () { |
| 20907 | 21186 |
| 20908 var mock = new HttpServerMock(); | 21187 var mock = new HttpServerMock(); |
| 20909 api.RegionCommitmentsResourceApi res = new api.ComputeApi(mock).regionComm
itments; | 21188 api.RegionCommitmentsResourceApi res = new api.ComputeApi(mock).regionComm
itments; |
| 20910 var arg_project = "foo"; | 21189 var arg_project = "foo"; |
| 20911 var arg_region = "foo"; | 21190 var arg_region = "foo"; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20959 | 21238 |
| 20960 unittest.group("resource-RegionInstanceGroupManagersResourceApi", () { | 21239 unittest.group("resource-RegionInstanceGroupManagersResourceApi", () { |
| 20961 unittest.test("method--abandonInstances", () { | 21240 unittest.test("method--abandonInstances", () { |
| 20962 | 21241 |
| 20963 var mock = new HttpServerMock(); | 21242 var mock = new HttpServerMock(); |
| 20964 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21243 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 20965 var arg_request = buildRegionInstanceGroupManagersAbandonInstancesRequest(
); | 21244 var arg_request = buildRegionInstanceGroupManagersAbandonInstancesRequest(
); |
| 20966 var arg_project = "foo"; | 21245 var arg_project = "foo"; |
| 20967 var arg_region = "foo"; | 21246 var arg_region = "foo"; |
| 20968 var arg_instanceGroupManager = "foo"; | 21247 var arg_instanceGroupManager = "foo"; |
| 21248 var arg_requestId = "foo"; |
| 20969 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21249 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 20970 var obj = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fro
mJson(json); | 21250 var obj = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fro
mJson(json); |
| 20971 checkRegionInstanceGroupManagersAbandonInstancesRequest(obj); | 21251 checkRegionInstanceGroupManagersAbandonInstancesRequest(obj); |
| 20972 | 21252 |
| 20973 var path = (req.url).path; | 21253 var path = (req.url).path; |
| 20974 var pathOffset = 0; | 21254 var pathOffset = 0; |
| 20975 var index; | 21255 var index; |
| 20976 var subPart; | 21256 var subPart; |
| 20977 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21257 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 20978 pathOffset += 1; | 21258 pathOffset += 1; |
| 20979 | 21259 |
| 20980 var query = (req.url).query; | 21260 var query = (req.url).query; |
| 20981 var queryOffset = 0; | 21261 var queryOffset = 0; |
| 20982 var queryMap = {}; | 21262 var queryMap = {}; |
| 20983 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21263 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 20984 parseBool(n) { | 21264 parseBool(n) { |
| 20985 if (n == "true") return true; | 21265 if (n == "true") return true; |
| 20986 if (n == "false") return false; | 21266 if (n == "false") return false; |
| 20987 if (n == null) return null; | 21267 if (n == null) return null; |
| 20988 throw new core.ArgumentError("Invalid boolean: $n"); | 21268 throw new core.ArgumentError("Invalid boolean: $n"); |
| 20989 } | 21269 } |
| 20990 if (query.length > 0) { | 21270 if (query.length > 0) { |
| 20991 for (var part in query.split("&")) { | 21271 for (var part in query.split("&")) { |
| 20992 var keyvalue = part.split("="); | 21272 var keyvalue = part.split("="); |
| 20993 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21273 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 20994 } | 21274 } |
| 20995 } | 21275 } |
| 21276 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 20996 | 21277 |
| 20997 | 21278 |
| 20998 var h = { | 21279 var h = { |
| 20999 "content-type" : "application/json; charset=utf-8", | 21280 "content-type" : "application/json; charset=utf-8", |
| 21000 }; | 21281 }; |
| 21001 var resp = convert.JSON.encode(buildOperation()); | 21282 var resp = convert.JSON.encode(buildOperation()); |
| 21002 return new async.Future.value(stringResponse(200, h, resp)); | 21283 return new async.Future.value(stringResponse(200, h, resp)); |
| 21003 }), true); | 21284 }), true); |
| 21004 res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGro
upManager).then(unittest.expectAsync1(((api.Operation response) { | 21285 res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGro
upManager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation
response) { |
| 21005 checkOperation(response); | 21286 checkOperation(response); |
| 21006 }))); | 21287 }))); |
| 21007 }); | 21288 }); |
| 21008 | 21289 |
| 21009 unittest.test("method--delete", () { | 21290 unittest.test("method--delete", () { |
| 21010 | 21291 |
| 21011 var mock = new HttpServerMock(); | 21292 var mock = new HttpServerMock(); |
| 21012 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21293 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21013 var arg_project = "foo"; | 21294 var arg_project = "foo"; |
| 21014 var arg_region = "foo"; | 21295 var arg_region = "foo"; |
| 21015 var arg_instanceGroupManager = "foo"; | 21296 var arg_instanceGroupManager = "foo"; |
| 21297 var arg_requestId = "foo"; |
| 21016 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21298 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21017 var path = (req.url).path; | 21299 var path = (req.url).path; |
| 21018 var pathOffset = 0; | 21300 var pathOffset = 0; |
| 21019 var index; | 21301 var index; |
| 21020 var subPart; | 21302 var subPart; |
| 21021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21303 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21022 pathOffset += 1; | 21304 pathOffset += 1; |
| 21023 | 21305 |
| 21024 var query = (req.url).query; | 21306 var query = (req.url).query; |
| 21025 var queryOffset = 0; | 21307 var queryOffset = 0; |
| 21026 var queryMap = {}; | 21308 var queryMap = {}; |
| 21027 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21309 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21028 parseBool(n) { | 21310 parseBool(n) { |
| 21029 if (n == "true") return true; | 21311 if (n == "true") return true; |
| 21030 if (n == "false") return false; | 21312 if (n == "false") return false; |
| 21031 if (n == null) return null; | 21313 if (n == null) return null; |
| 21032 throw new core.ArgumentError("Invalid boolean: $n"); | 21314 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21033 } | 21315 } |
| 21034 if (query.length > 0) { | 21316 if (query.length > 0) { |
| 21035 for (var part in query.split("&")) { | 21317 for (var part in query.split("&")) { |
| 21036 var keyvalue = part.split("="); | 21318 var keyvalue = part.split("="); |
| 21037 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21319 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21038 } | 21320 } |
| 21039 } | 21321 } |
| 21322 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21040 | 21323 |
| 21041 | 21324 |
| 21042 var h = { | 21325 var h = { |
| 21043 "content-type" : "application/json; charset=utf-8", | 21326 "content-type" : "application/json; charset=utf-8", |
| 21044 }; | 21327 }; |
| 21045 var resp = convert.JSON.encode(buildOperation()); | 21328 var resp = convert.JSON.encode(buildOperation()); |
| 21046 return new async.Future.value(stringResponse(200, h, resp)); | 21329 return new async.Future.value(stringResponse(200, h, resp)); |
| 21047 }), true); | 21330 }), true); |
| 21048 res.delete(arg_project, arg_region, arg_instanceGroupManager).then(unittes
t.expectAsync1(((api.Operation response) { | 21331 res.delete(arg_project, arg_region, arg_instanceGroupManager, requestId: a
rg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 21049 checkOperation(response); | 21332 checkOperation(response); |
| 21050 }))); | 21333 }))); |
| 21051 }); | 21334 }); |
| 21052 | 21335 |
| 21053 unittest.test("method--deleteInstances", () { | 21336 unittest.test("method--deleteInstances", () { |
| 21054 | 21337 |
| 21055 var mock = new HttpServerMock(); | 21338 var mock = new HttpServerMock(); |
| 21056 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21339 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21057 var arg_request = buildRegionInstanceGroupManagersDeleteInstancesRequest()
; | 21340 var arg_request = buildRegionInstanceGroupManagersDeleteInstancesRequest()
; |
| 21058 var arg_project = "foo"; | 21341 var arg_project = "foo"; |
| 21059 var arg_region = "foo"; | 21342 var arg_region = "foo"; |
| 21060 var arg_instanceGroupManager = "foo"; | 21343 var arg_instanceGroupManager = "foo"; |
| 21344 var arg_requestId = "foo"; |
| 21061 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21345 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21062 var obj = new api.RegionInstanceGroupManagersDeleteInstancesRequest.from
Json(json); | 21346 var obj = new api.RegionInstanceGroupManagersDeleteInstancesRequest.from
Json(json); |
| 21063 checkRegionInstanceGroupManagersDeleteInstancesRequest(obj); | 21347 checkRegionInstanceGroupManagersDeleteInstancesRequest(obj); |
| 21064 | 21348 |
| 21065 var path = (req.url).path; | 21349 var path = (req.url).path; |
| 21066 var pathOffset = 0; | 21350 var pathOffset = 0; |
| 21067 var index; | 21351 var index; |
| 21068 var subPart; | 21352 var subPart; |
| 21069 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21353 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21070 pathOffset += 1; | 21354 pathOffset += 1; |
| 21071 | 21355 |
| 21072 var query = (req.url).query; | 21356 var query = (req.url).query; |
| 21073 var queryOffset = 0; | 21357 var queryOffset = 0; |
| 21074 var queryMap = {}; | 21358 var queryMap = {}; |
| 21075 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21359 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21076 parseBool(n) { | 21360 parseBool(n) { |
| 21077 if (n == "true") return true; | 21361 if (n == "true") return true; |
| 21078 if (n == "false") return false; | 21362 if (n == "false") return false; |
| 21079 if (n == null) return null; | 21363 if (n == null) return null; |
| 21080 throw new core.ArgumentError("Invalid boolean: $n"); | 21364 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21081 } | 21365 } |
| 21082 if (query.length > 0) { | 21366 if (query.length > 0) { |
| 21083 for (var part in query.split("&")) { | 21367 for (var part in query.split("&")) { |
| 21084 var keyvalue = part.split("="); | 21368 var keyvalue = part.split("="); |
| 21085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21369 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21086 } | 21370 } |
| 21087 } | 21371 } |
| 21372 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21088 | 21373 |
| 21089 | 21374 |
| 21090 var h = { | 21375 var h = { |
| 21091 "content-type" : "application/json; charset=utf-8", | 21376 "content-type" : "application/json; charset=utf-8", |
| 21092 }; | 21377 }; |
| 21093 var resp = convert.JSON.encode(buildOperation()); | 21378 var resp = convert.JSON.encode(buildOperation()); |
| 21094 return new async.Future.value(stringResponse(200, h, resp)); | 21379 return new async.Future.value(stringResponse(200, h, resp)); |
| 21095 }), true); | 21380 }), true); |
| 21096 res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGrou
pManager).then(unittest.expectAsync1(((api.Operation response) { | 21381 res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGrou
pManager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation r
esponse) { |
| 21097 checkOperation(response); | 21382 checkOperation(response); |
| 21098 }))); | 21383 }))); |
| 21099 }); | 21384 }); |
| 21100 | 21385 |
| 21101 unittest.test("method--get", () { | 21386 unittest.test("method--get", () { |
| 21102 | 21387 |
| 21103 var mock = new HttpServerMock(); | 21388 var mock = new HttpServerMock(); |
| 21104 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21389 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21105 var arg_project = "foo"; | 21390 var arg_project = "foo"; |
| 21106 var arg_region = "foo"; | 21391 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21142 }))); | 21427 }))); |
| 21143 }); | 21428 }); |
| 21144 | 21429 |
| 21145 unittest.test("method--insert", () { | 21430 unittest.test("method--insert", () { |
| 21146 | 21431 |
| 21147 var mock = new HttpServerMock(); | 21432 var mock = new HttpServerMock(); |
| 21148 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21433 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21149 var arg_request = buildInstanceGroupManager(); | 21434 var arg_request = buildInstanceGroupManager(); |
| 21150 var arg_project = "foo"; | 21435 var arg_project = "foo"; |
| 21151 var arg_region = "foo"; | 21436 var arg_region = "foo"; |
| 21437 var arg_requestId = "foo"; |
| 21152 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21438 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21153 var obj = new api.InstanceGroupManager.fromJson(json); | 21439 var obj = new api.InstanceGroupManager.fromJson(json); |
| 21154 checkInstanceGroupManager(obj); | 21440 checkInstanceGroupManager(obj); |
| 21155 | 21441 |
| 21156 var path = (req.url).path; | 21442 var path = (req.url).path; |
| 21157 var pathOffset = 0; | 21443 var pathOffset = 0; |
| 21158 var index; | 21444 var index; |
| 21159 var subPart; | 21445 var subPart; |
| 21160 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21446 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21161 pathOffset += 1; | 21447 pathOffset += 1; |
| 21162 | 21448 |
| 21163 var query = (req.url).query; | 21449 var query = (req.url).query; |
| 21164 var queryOffset = 0; | 21450 var queryOffset = 0; |
| 21165 var queryMap = {}; | 21451 var queryMap = {}; |
| 21166 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21452 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21167 parseBool(n) { | 21453 parseBool(n) { |
| 21168 if (n == "true") return true; | 21454 if (n == "true") return true; |
| 21169 if (n == "false") return false; | 21455 if (n == "false") return false; |
| 21170 if (n == null) return null; | 21456 if (n == null) return null; |
| 21171 throw new core.ArgumentError("Invalid boolean: $n"); | 21457 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21172 } | 21458 } |
| 21173 if (query.length > 0) { | 21459 if (query.length > 0) { |
| 21174 for (var part in query.split("&")) { | 21460 for (var part in query.split("&")) { |
| 21175 var keyvalue = part.split("="); | 21461 var keyvalue = part.split("="); |
| 21176 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21462 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21177 } | 21463 } |
| 21178 } | 21464 } |
| 21465 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21179 | 21466 |
| 21180 | 21467 |
| 21181 var h = { | 21468 var h = { |
| 21182 "content-type" : "application/json; charset=utf-8", | 21469 "content-type" : "application/json; charset=utf-8", |
| 21183 }; | 21470 }; |
| 21184 var resp = convert.JSON.encode(buildOperation()); | 21471 var resp = convert.JSON.encode(buildOperation()); |
| 21185 return new async.Future.value(stringResponse(200, h, resp)); | 21472 return new async.Future.value(stringResponse(200, h, resp)); |
| 21186 }), true); | 21473 }), true); |
| 21187 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 21474 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 21188 checkOperation(response); | 21475 checkOperation(response); |
| 21189 }))); | 21476 }))); |
| 21190 }); | 21477 }); |
| 21191 | 21478 |
| 21192 unittest.test("method--list", () { | 21479 unittest.test("method--list", () { |
| 21193 | 21480 |
| 21194 var mock = new HttpServerMock(); | 21481 var mock = new HttpServerMock(); |
| 21195 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21482 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21196 var arg_project = "foo"; | 21483 var arg_project = "foo"; |
| 21197 var arg_region = "foo"; | 21484 var arg_region = "foo"; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21293 }); | 21580 }); |
| 21294 | 21581 |
| 21295 unittest.test("method--recreateInstances", () { | 21582 unittest.test("method--recreateInstances", () { |
| 21296 | 21583 |
| 21297 var mock = new HttpServerMock(); | 21584 var mock = new HttpServerMock(); |
| 21298 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21585 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21299 var arg_request = buildRegionInstanceGroupManagersRecreateRequest(); | 21586 var arg_request = buildRegionInstanceGroupManagersRecreateRequest(); |
| 21300 var arg_project = "foo"; | 21587 var arg_project = "foo"; |
| 21301 var arg_region = "foo"; | 21588 var arg_region = "foo"; |
| 21302 var arg_instanceGroupManager = "foo"; | 21589 var arg_instanceGroupManager = "foo"; |
| 21590 var arg_requestId = "foo"; |
| 21303 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21591 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21304 var obj = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(js
on); | 21592 var obj = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(js
on); |
| 21305 checkRegionInstanceGroupManagersRecreateRequest(obj); | 21593 checkRegionInstanceGroupManagersRecreateRequest(obj); |
| 21306 | 21594 |
| 21307 var path = (req.url).path; | 21595 var path = (req.url).path; |
| 21308 var pathOffset = 0; | 21596 var pathOffset = 0; |
| 21309 var index; | 21597 var index; |
| 21310 var subPart; | 21598 var subPart; |
| 21311 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21312 pathOffset += 1; | 21600 pathOffset += 1; |
| 21313 | 21601 |
| 21314 var query = (req.url).query; | 21602 var query = (req.url).query; |
| 21315 var queryOffset = 0; | 21603 var queryOffset = 0; |
| 21316 var queryMap = {}; | 21604 var queryMap = {}; |
| 21317 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21605 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21318 parseBool(n) { | 21606 parseBool(n) { |
| 21319 if (n == "true") return true; | 21607 if (n == "true") return true; |
| 21320 if (n == "false") return false; | 21608 if (n == "false") return false; |
| 21321 if (n == null) return null; | 21609 if (n == null) return null; |
| 21322 throw new core.ArgumentError("Invalid boolean: $n"); | 21610 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21323 } | 21611 } |
| 21324 if (query.length > 0) { | 21612 if (query.length > 0) { |
| 21325 for (var part in query.split("&")) { | 21613 for (var part in query.split("&")) { |
| 21326 var keyvalue = part.split("="); | 21614 var keyvalue = part.split("="); |
| 21327 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21615 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21328 } | 21616 } |
| 21329 } | 21617 } |
| 21618 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21330 | 21619 |
| 21331 | 21620 |
| 21332 var h = { | 21621 var h = { |
| 21333 "content-type" : "application/json; charset=utf-8", | 21622 "content-type" : "application/json; charset=utf-8", |
| 21334 }; | 21623 }; |
| 21335 var resp = convert.JSON.encode(buildOperation()); | 21624 var resp = convert.JSON.encode(buildOperation()); |
| 21336 return new async.Future.value(stringResponse(200, h, resp)); | 21625 return new async.Future.value(stringResponse(200, h, resp)); |
| 21337 }), true); | 21626 }), true); |
| 21338 res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGr
oupManager).then(unittest.expectAsync1(((api.Operation response) { | 21627 res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGr
oupManager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation
response) { |
| 21339 checkOperation(response); | 21628 checkOperation(response); |
| 21340 }))); | 21629 }))); |
| 21341 }); | 21630 }); |
| 21342 | 21631 |
| 21343 unittest.test("method--resize", () { | 21632 unittest.test("method--resize", () { |
| 21344 | 21633 |
| 21345 var mock = new HttpServerMock(); | 21634 var mock = new HttpServerMock(); |
| 21346 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21635 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21347 var arg_project = "foo"; | 21636 var arg_project = "foo"; |
| 21348 var arg_region = "foo"; | 21637 var arg_region = "foo"; |
| 21349 var arg_instanceGroupManager = "foo"; | 21638 var arg_instanceGroupManager = "foo"; |
| 21350 var arg_size = 42; | 21639 var arg_size = 42; |
| 21640 var arg_requestId = "foo"; |
| 21351 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21641 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21352 var path = (req.url).path; | 21642 var path = (req.url).path; |
| 21353 var pathOffset = 0; | 21643 var pathOffset = 0; |
| 21354 var index; | 21644 var index; |
| 21355 var subPart; | 21645 var subPart; |
| 21356 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21646 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21357 pathOffset += 1; | 21647 pathOffset += 1; |
| 21358 | 21648 |
| 21359 var query = (req.url).query; | 21649 var query = (req.url).query; |
| 21360 var queryOffset = 0; | 21650 var queryOffset = 0; |
| 21361 var queryMap = {}; | 21651 var queryMap = {}; |
| 21362 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21652 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21363 parseBool(n) { | 21653 parseBool(n) { |
| 21364 if (n == "true") return true; | 21654 if (n == "true") return true; |
| 21365 if (n == "false") return false; | 21655 if (n == "false") return false; |
| 21366 if (n == null) return null; | 21656 if (n == null) return null; |
| 21367 throw new core.ArgumentError("Invalid boolean: $n"); | 21657 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21368 } | 21658 } |
| 21369 if (query.length > 0) { | 21659 if (query.length > 0) { |
| 21370 for (var part in query.split("&")) { | 21660 for (var part in query.split("&")) { |
| 21371 var keyvalue = part.split("="); | 21661 var keyvalue = part.split("="); |
| 21372 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21662 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21373 } | 21663 } |
| 21374 } | 21664 } |
| 21375 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); | 21665 unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(
arg_size)); |
| 21666 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21376 | 21667 |
| 21377 | 21668 |
| 21378 var h = { | 21669 var h = { |
| 21379 "content-type" : "application/json; charset=utf-8", | 21670 "content-type" : "application/json; charset=utf-8", |
| 21380 }; | 21671 }; |
| 21381 var resp = convert.JSON.encode(buildOperation()); | 21672 var resp = convert.JSON.encode(buildOperation()); |
| 21382 return new async.Future.value(stringResponse(200, h, resp)); | 21673 return new async.Future.value(stringResponse(200, h, resp)); |
| 21383 }), true); | 21674 }), true); |
| 21384 res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size).th
en(unittest.expectAsync1(((api.Operation response) { | 21675 res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size, re
questId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 21385 checkOperation(response); | 21676 checkOperation(response); |
| 21386 }))); | 21677 }))); |
| 21387 }); | 21678 }); |
| 21388 | 21679 |
| 21389 unittest.test("method--setInstanceTemplate", () { | 21680 unittest.test("method--setInstanceTemplate", () { |
| 21390 | 21681 |
| 21391 var mock = new HttpServerMock(); | 21682 var mock = new HttpServerMock(); |
| 21392 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21683 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21393 var arg_request = buildRegionInstanceGroupManagersSetTemplateRequest(); | 21684 var arg_request = buildRegionInstanceGroupManagersSetTemplateRequest(); |
| 21394 var arg_project = "foo"; | 21685 var arg_project = "foo"; |
| 21395 var arg_region = "foo"; | 21686 var arg_region = "foo"; |
| 21396 var arg_instanceGroupManager = "foo"; | 21687 var arg_instanceGroupManager = "foo"; |
| 21688 var arg_requestId = "foo"; |
| 21397 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21689 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21398 var obj = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson
(json); | 21690 var obj = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson
(json); |
| 21399 checkRegionInstanceGroupManagersSetTemplateRequest(obj); | 21691 checkRegionInstanceGroupManagersSetTemplateRequest(obj); |
| 21400 | 21692 |
| 21401 var path = (req.url).path; | 21693 var path = (req.url).path; |
| 21402 var pathOffset = 0; | 21694 var pathOffset = 0; |
| 21403 var index; | 21695 var index; |
| 21404 var subPart; | 21696 var subPart; |
| 21405 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21406 pathOffset += 1; | 21698 pathOffset += 1; |
| 21407 | 21699 |
| 21408 var query = (req.url).query; | 21700 var query = (req.url).query; |
| 21409 var queryOffset = 0; | 21701 var queryOffset = 0; |
| 21410 var queryMap = {}; | 21702 var queryMap = {}; |
| 21411 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21703 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21412 parseBool(n) { | 21704 parseBool(n) { |
| 21413 if (n == "true") return true; | 21705 if (n == "true") return true; |
| 21414 if (n == "false") return false; | 21706 if (n == "false") return false; |
| 21415 if (n == null) return null; | 21707 if (n == null) return null; |
| 21416 throw new core.ArgumentError("Invalid boolean: $n"); | 21708 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21417 } | 21709 } |
| 21418 if (query.length > 0) { | 21710 if (query.length > 0) { |
| 21419 for (var part in query.split("&")) { | 21711 for (var part in query.split("&")) { |
| 21420 var keyvalue = part.split("="); | 21712 var keyvalue = part.split("="); |
| 21421 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21713 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21422 } | 21714 } |
| 21423 } | 21715 } |
| 21716 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21424 | 21717 |
| 21425 | 21718 |
| 21426 var h = { | 21719 var h = { |
| 21427 "content-type" : "application/json; charset=utf-8", | 21720 "content-type" : "application/json; charset=utf-8", |
| 21428 }; | 21721 }; |
| 21429 var resp = convert.JSON.encode(buildOperation()); | 21722 var resp = convert.JSON.encode(buildOperation()); |
| 21430 return new async.Future.value(stringResponse(200, h, resp)); | 21723 return new async.Future.value(stringResponse(200, h, resp)); |
| 21431 }), true); | 21724 }), true); |
| 21432 res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instance
GroupManager).then(unittest.expectAsync1(((api.Operation response) { | 21725 res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instance
GroupManager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operati
on response) { |
| 21433 checkOperation(response); | 21726 checkOperation(response); |
| 21434 }))); | 21727 }))); |
| 21435 }); | 21728 }); |
| 21436 | 21729 |
| 21437 unittest.test("method--setTargetPools", () { | 21730 unittest.test("method--setTargetPools", () { |
| 21438 | 21731 |
| 21439 var mock = new HttpServerMock(); | 21732 var mock = new HttpServerMock(); |
| 21440 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; | 21733 api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).
regionInstanceGroupManagers; |
| 21441 var arg_request = buildRegionInstanceGroupManagersSetTargetPoolsRequest(); | 21734 var arg_request = buildRegionInstanceGroupManagersSetTargetPoolsRequest(); |
| 21442 var arg_project = "foo"; | 21735 var arg_project = "foo"; |
| 21443 var arg_region = "foo"; | 21736 var arg_region = "foo"; |
| 21444 var arg_instanceGroupManager = "foo"; | 21737 var arg_instanceGroupManager = "foo"; |
| 21738 var arg_requestId = "foo"; |
| 21445 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21739 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21446 var obj = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJ
son(json); | 21740 var obj = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJ
son(json); |
| 21447 checkRegionInstanceGroupManagersSetTargetPoolsRequest(obj); | 21741 checkRegionInstanceGroupManagersSetTargetPoolsRequest(obj); |
| 21448 | 21742 |
| 21449 var path = (req.url).path; | 21743 var path = (req.url).path; |
| 21450 var pathOffset = 0; | 21744 var pathOffset = 0; |
| 21451 var index; | 21745 var index; |
| 21452 var subPart; | 21746 var subPart; |
| 21453 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21454 pathOffset += 1; | 21748 pathOffset += 1; |
| 21455 | 21749 |
| 21456 var query = (req.url).query; | 21750 var query = (req.url).query; |
| 21457 var queryOffset = 0; | 21751 var queryOffset = 0; |
| 21458 var queryMap = {}; | 21752 var queryMap = {}; |
| 21459 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21753 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21460 parseBool(n) { | 21754 parseBool(n) { |
| 21461 if (n == "true") return true; | 21755 if (n == "true") return true; |
| 21462 if (n == "false") return false; | 21756 if (n == "false") return false; |
| 21463 if (n == null) return null; | 21757 if (n == null) return null; |
| 21464 throw new core.ArgumentError("Invalid boolean: $n"); | 21758 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21465 } | 21759 } |
| 21466 if (query.length > 0) { | 21760 if (query.length > 0) { |
| 21467 for (var part in query.split("&")) { | 21761 for (var part in query.split("&")) { |
| 21468 var keyvalue = part.split("="); | 21762 var keyvalue = part.split("="); |
| 21469 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21763 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21470 } | 21764 } |
| 21471 } | 21765 } |
| 21766 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21472 | 21767 |
| 21473 | 21768 |
| 21474 var h = { | 21769 var h = { |
| 21475 "content-type" : "application/json; charset=utf-8", | 21770 "content-type" : "application/json; charset=utf-8", |
| 21476 }; | 21771 }; |
| 21477 var resp = convert.JSON.encode(buildOperation()); | 21772 var resp = convert.JSON.encode(buildOperation()); |
| 21478 return new async.Future.value(stringResponse(200, h, resp)); | 21773 return new async.Future.value(stringResponse(200, h, resp)); |
| 21479 }), true); | 21774 }), true); |
| 21480 res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroup
Manager).then(unittest.expectAsync1(((api.Operation response) { | 21775 res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroup
Manager, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation re
sponse) { |
| 21481 checkOperation(response); | 21776 checkOperation(response); |
| 21482 }))); | 21777 }))); |
| 21483 }); | 21778 }); |
| 21484 | 21779 |
| 21485 }); | 21780 }); |
| 21486 | 21781 |
| 21487 | 21782 |
| 21488 unittest.group("resource-RegionInstanceGroupsResourceApi", () { | 21783 unittest.group("resource-RegionInstanceGroupsResourceApi", () { |
| 21489 unittest.test("method--get", () { | 21784 unittest.test("method--get", () { |
| 21490 | 21785 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21638 }); | 21933 }); |
| 21639 | 21934 |
| 21640 unittest.test("method--setNamedPorts", () { | 21935 unittest.test("method--setNamedPorts", () { |
| 21641 | 21936 |
| 21642 var mock = new HttpServerMock(); | 21937 var mock = new HttpServerMock(); |
| 21643 api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionI
nstanceGroups; | 21938 api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionI
nstanceGroups; |
| 21644 var arg_request = buildRegionInstanceGroupsSetNamedPortsRequest(); | 21939 var arg_request = buildRegionInstanceGroupsSetNamedPortsRequest(); |
| 21645 var arg_project = "foo"; | 21940 var arg_project = "foo"; |
| 21646 var arg_region = "foo"; | 21941 var arg_region = "foo"; |
| 21647 var arg_instanceGroup = "foo"; | 21942 var arg_instanceGroup = "foo"; |
| 21943 var arg_requestId = "foo"; |
| 21648 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 21944 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21649 var obj = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(json
); | 21945 var obj = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(json
); |
| 21650 checkRegionInstanceGroupsSetNamedPortsRequest(obj); | 21946 checkRegionInstanceGroupsSetNamedPortsRequest(obj); |
| 21651 | 21947 |
| 21652 var path = (req.url).path; | 21948 var path = (req.url).path; |
| 21653 var pathOffset = 0; | 21949 var pathOffset = 0; |
| 21654 var index; | 21950 var index; |
| 21655 var subPart; | 21951 var subPart; |
| 21656 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 21952 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21657 pathOffset += 1; | 21953 pathOffset += 1; |
| 21658 | 21954 |
| 21659 var query = (req.url).query; | 21955 var query = (req.url).query; |
| 21660 var queryOffset = 0; | 21956 var queryOffset = 0; |
| 21661 var queryMap = {}; | 21957 var queryMap = {}; |
| 21662 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 21958 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21663 parseBool(n) { | 21959 parseBool(n) { |
| 21664 if (n == "true") return true; | 21960 if (n == "true") return true; |
| 21665 if (n == "false") return false; | 21961 if (n == "false") return false; |
| 21666 if (n == null) return null; | 21962 if (n == null) return null; |
| 21667 throw new core.ArgumentError("Invalid boolean: $n"); | 21963 throw new core.ArgumentError("Invalid boolean: $n"); |
| 21668 } | 21964 } |
| 21669 if (query.length > 0) { | 21965 if (query.length > 0) { |
| 21670 for (var part in query.split("&")) { | 21966 for (var part in query.split("&")) { |
| 21671 var keyvalue = part.split("="); | 21967 var keyvalue = part.split("="); |
| 21672 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 21968 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 21673 } | 21969 } |
| 21674 } | 21970 } |
| 21971 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 21675 | 21972 |
| 21676 | 21973 |
| 21677 var h = { | 21974 var h = { |
| 21678 "content-type" : "application/json; charset=utf-8", | 21975 "content-type" : "application/json; charset=utf-8", |
| 21679 }; | 21976 }; |
| 21680 var resp = convert.JSON.encode(buildOperation()); | 21977 var resp = convert.JSON.encode(buildOperation()); |
| 21681 return new async.Future.value(stringResponse(200, h, resp)); | 21978 return new async.Future.value(stringResponse(200, h, resp)); |
| 21682 }), true); | 21979 }), true); |
| 21683 res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup)
.then(unittest.expectAsync1(((api.Operation response) { | 21980 res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup,
requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response)
{ |
| 21684 checkOperation(response); | 21981 checkOperation(response); |
| 21685 }))); | 21982 }))); |
| 21686 }); | 21983 }); |
| 21687 | 21984 |
| 21688 }); | 21985 }); |
| 21689 | 21986 |
| 21690 | 21987 |
| 21691 unittest.group("resource-RegionOperationsResourceApi", () { | 21988 unittest.group("resource-RegionOperationsResourceApi", () { |
| 21692 unittest.test("method--delete", () { | 21989 unittest.test("method--delete", () { |
| 21693 | 21990 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21977 }))); | 22274 }))); |
| 21978 }); | 22275 }); |
| 21979 | 22276 |
| 21980 unittest.test("method--delete", () { | 22277 unittest.test("method--delete", () { |
| 21981 | 22278 |
| 21982 var mock = new HttpServerMock(); | 22279 var mock = new HttpServerMock(); |
| 21983 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22280 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 21984 var arg_project = "foo"; | 22281 var arg_project = "foo"; |
| 21985 var arg_region = "foo"; | 22282 var arg_region = "foo"; |
| 21986 var arg_router = "foo"; | 22283 var arg_router = "foo"; |
| 22284 var arg_requestId = "foo"; |
| 21987 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22285 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 21988 var path = (req.url).path; | 22286 var path = (req.url).path; |
| 21989 var pathOffset = 0; | 22287 var pathOffset = 0; |
| 21990 var index; | 22288 var index; |
| 21991 var subPart; | 22289 var subPart; |
| 21992 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22290 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 21993 pathOffset += 1; | 22291 pathOffset += 1; |
| 21994 | 22292 |
| 21995 var query = (req.url).query; | 22293 var query = (req.url).query; |
| 21996 var queryOffset = 0; | 22294 var queryOffset = 0; |
| 21997 var queryMap = {}; | 22295 var queryMap = {}; |
| 21998 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22296 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 21999 parseBool(n) { | 22297 parseBool(n) { |
| 22000 if (n == "true") return true; | 22298 if (n == "true") return true; |
| 22001 if (n == "false") return false; | 22299 if (n == "false") return false; |
| 22002 if (n == null) return null; | 22300 if (n == null) return null; |
| 22003 throw new core.ArgumentError("Invalid boolean: $n"); | 22301 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22004 } | 22302 } |
| 22005 if (query.length > 0) { | 22303 if (query.length > 0) { |
| 22006 for (var part in query.split("&")) { | 22304 for (var part in query.split("&")) { |
| 22007 var keyvalue = part.split("="); | 22305 var keyvalue = part.split("="); |
| 22008 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22306 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22009 } | 22307 } |
| 22010 } | 22308 } |
| 22309 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22011 | 22310 |
| 22012 | 22311 |
| 22013 var h = { | 22312 var h = { |
| 22014 "content-type" : "application/json; charset=utf-8", | 22313 "content-type" : "application/json; charset=utf-8", |
| 22015 }; | 22314 }; |
| 22016 var resp = convert.JSON.encode(buildOperation()); | 22315 var resp = convert.JSON.encode(buildOperation()); |
| 22017 return new async.Future.value(stringResponse(200, h, resp)); | 22316 return new async.Future.value(stringResponse(200, h, resp)); |
| 22018 }), true); | 22317 }), true); |
| 22019 res.delete(arg_project, arg_region, arg_router).then(unittest.expectAsync1
(((api.Operation response) { | 22318 res.delete(arg_project, arg_region, arg_router, requestId: arg_requestId).
then(unittest.expectAsync1(((api.Operation response) { |
| 22020 checkOperation(response); | 22319 checkOperation(response); |
| 22021 }))); | 22320 }))); |
| 22022 }); | 22321 }); |
| 22023 | 22322 |
| 22024 unittest.test("method--get", () { | 22323 unittest.test("method--get", () { |
| 22025 | 22324 |
| 22026 var mock = new HttpServerMock(); | 22325 var mock = new HttpServerMock(); |
| 22027 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22326 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 22028 var arg_project = "foo"; | 22327 var arg_project = "foo"; |
| 22029 var arg_region = "foo"; | 22328 var arg_region = "foo"; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22109 }))); | 22408 }))); |
| 22110 }); | 22409 }); |
| 22111 | 22410 |
| 22112 unittest.test("method--insert", () { | 22411 unittest.test("method--insert", () { |
| 22113 | 22412 |
| 22114 var mock = new HttpServerMock(); | 22413 var mock = new HttpServerMock(); |
| 22115 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22414 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 22116 var arg_request = buildRouter(); | 22415 var arg_request = buildRouter(); |
| 22117 var arg_project = "foo"; | 22416 var arg_project = "foo"; |
| 22118 var arg_region = "foo"; | 22417 var arg_region = "foo"; |
| 22418 var arg_requestId = "foo"; |
| 22119 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22419 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22120 var obj = new api.Router.fromJson(json); | 22420 var obj = new api.Router.fromJson(json); |
| 22121 checkRouter(obj); | 22421 checkRouter(obj); |
| 22122 | 22422 |
| 22123 var path = (req.url).path; | 22423 var path = (req.url).path; |
| 22124 var pathOffset = 0; | 22424 var pathOffset = 0; |
| 22125 var index; | 22425 var index; |
| 22126 var subPart; | 22426 var subPart; |
| 22127 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22427 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22128 pathOffset += 1; | 22428 pathOffset += 1; |
| 22129 | 22429 |
| 22130 var query = (req.url).query; | 22430 var query = (req.url).query; |
| 22131 var queryOffset = 0; | 22431 var queryOffset = 0; |
| 22132 var queryMap = {}; | 22432 var queryMap = {}; |
| 22133 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22433 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22134 parseBool(n) { | 22434 parseBool(n) { |
| 22135 if (n == "true") return true; | 22435 if (n == "true") return true; |
| 22136 if (n == "false") return false; | 22436 if (n == "false") return false; |
| 22137 if (n == null) return null; | 22437 if (n == null) return null; |
| 22138 throw new core.ArgumentError("Invalid boolean: $n"); | 22438 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22139 } | 22439 } |
| 22140 if (query.length > 0) { | 22440 if (query.length > 0) { |
| 22141 for (var part in query.split("&")) { | 22441 for (var part in query.split("&")) { |
| 22142 var keyvalue = part.split("="); | 22442 var keyvalue = part.split("="); |
| 22143 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22443 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22144 } | 22444 } |
| 22145 } | 22445 } |
| 22446 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22146 | 22447 |
| 22147 | 22448 |
| 22148 var h = { | 22449 var h = { |
| 22149 "content-type" : "application/json; charset=utf-8", | 22450 "content-type" : "application/json; charset=utf-8", |
| 22150 }; | 22451 }; |
| 22151 var resp = convert.JSON.encode(buildOperation()); | 22452 var resp = convert.JSON.encode(buildOperation()); |
| 22152 return new async.Future.value(stringResponse(200, h, resp)); | 22453 return new async.Future.value(stringResponse(200, h, resp)); |
| 22153 }), true); | 22454 }), true); |
| 22154 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 22455 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 22155 checkOperation(response); | 22456 checkOperation(response); |
| 22156 }))); | 22457 }))); |
| 22157 }); | 22458 }); |
| 22158 | 22459 |
| 22159 unittest.test("method--list", () { | 22460 unittest.test("method--list", () { |
| 22160 | 22461 |
| 22161 var mock = new HttpServerMock(); | 22462 var mock = new HttpServerMock(); |
| 22162 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22463 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 22163 var arg_project = "foo"; | 22464 var arg_project = "foo"; |
| 22164 var arg_region = "foo"; | 22465 var arg_region = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22208 }); | 22509 }); |
| 22209 | 22510 |
| 22210 unittest.test("method--patch", () { | 22511 unittest.test("method--patch", () { |
| 22211 | 22512 |
| 22212 var mock = new HttpServerMock(); | 22513 var mock = new HttpServerMock(); |
| 22213 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22514 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 22214 var arg_request = buildRouter(); | 22515 var arg_request = buildRouter(); |
| 22215 var arg_project = "foo"; | 22516 var arg_project = "foo"; |
| 22216 var arg_region = "foo"; | 22517 var arg_region = "foo"; |
| 22217 var arg_router = "foo"; | 22518 var arg_router = "foo"; |
| 22519 var arg_requestId = "foo"; |
| 22218 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22520 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22219 var obj = new api.Router.fromJson(json); | 22521 var obj = new api.Router.fromJson(json); |
| 22220 checkRouter(obj); | 22522 checkRouter(obj); |
| 22221 | 22523 |
| 22222 var path = (req.url).path; | 22524 var path = (req.url).path; |
| 22223 var pathOffset = 0; | 22525 var pathOffset = 0; |
| 22224 var index; | 22526 var index; |
| 22225 var subPart; | 22527 var subPart; |
| 22226 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22528 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22227 pathOffset += 1; | 22529 pathOffset += 1; |
| 22228 | 22530 |
| 22229 var query = (req.url).query; | 22531 var query = (req.url).query; |
| 22230 var queryOffset = 0; | 22532 var queryOffset = 0; |
| 22231 var queryMap = {}; | 22533 var queryMap = {}; |
| 22232 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22534 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22233 parseBool(n) { | 22535 parseBool(n) { |
| 22234 if (n == "true") return true; | 22536 if (n == "true") return true; |
| 22235 if (n == "false") return false; | 22537 if (n == "false") return false; |
| 22236 if (n == null) return null; | 22538 if (n == null) return null; |
| 22237 throw new core.ArgumentError("Invalid boolean: $n"); | 22539 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22238 } | 22540 } |
| 22239 if (query.length > 0) { | 22541 if (query.length > 0) { |
| 22240 for (var part in query.split("&")) { | 22542 for (var part in query.split("&")) { |
| 22241 var keyvalue = part.split("="); | 22543 var keyvalue = part.split("="); |
| 22242 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22243 } | 22545 } |
| 22244 } | 22546 } |
| 22547 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22245 | 22548 |
| 22246 | 22549 |
| 22247 var h = { | 22550 var h = { |
| 22248 "content-type" : "application/json; charset=utf-8", | 22551 "content-type" : "application/json; charset=utf-8", |
| 22249 }; | 22552 }; |
| 22250 var resp = convert.JSON.encode(buildOperation()); | 22553 var resp = convert.JSON.encode(buildOperation()); |
| 22251 return new async.Future.value(stringResponse(200, h, resp)); | 22554 return new async.Future.value(stringResponse(200, h, resp)); |
| 22252 }), true); | 22555 }), true); |
| 22253 res.patch(arg_request, arg_project, arg_region, arg_router).then(unittest.
expectAsync1(((api.Operation response) { | 22556 res.patch(arg_request, arg_project, arg_region, arg_router, requestId: arg
_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 22254 checkOperation(response); | 22557 checkOperation(response); |
| 22255 }))); | 22558 }))); |
| 22256 }); | 22559 }); |
| 22257 | 22560 |
| 22258 unittest.test("method--preview", () { | 22561 unittest.test("method--preview", () { |
| 22259 | 22562 |
| 22260 var mock = new HttpServerMock(); | 22563 var mock = new HttpServerMock(); |
| 22261 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22564 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 22262 var arg_request = buildRouter(); | 22565 var arg_request = buildRouter(); |
| 22263 var arg_project = "foo"; | 22566 var arg_project = "foo"; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22304 }); | 22607 }); |
| 22305 | 22608 |
| 22306 unittest.test("method--update", () { | 22609 unittest.test("method--update", () { |
| 22307 | 22610 |
| 22308 var mock = new HttpServerMock(); | 22611 var mock = new HttpServerMock(); |
| 22309 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; | 22612 api.RoutersResourceApi res = new api.ComputeApi(mock).routers; |
| 22310 var arg_request = buildRouter(); | 22613 var arg_request = buildRouter(); |
| 22311 var arg_project = "foo"; | 22614 var arg_project = "foo"; |
| 22312 var arg_region = "foo"; | 22615 var arg_region = "foo"; |
| 22313 var arg_router = "foo"; | 22616 var arg_router = "foo"; |
| 22617 var arg_requestId = "foo"; |
| 22314 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22618 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22315 var obj = new api.Router.fromJson(json); | 22619 var obj = new api.Router.fromJson(json); |
| 22316 checkRouter(obj); | 22620 checkRouter(obj); |
| 22317 | 22621 |
| 22318 var path = (req.url).path; | 22622 var path = (req.url).path; |
| 22319 var pathOffset = 0; | 22623 var pathOffset = 0; |
| 22320 var index; | 22624 var index; |
| 22321 var subPart; | 22625 var subPart; |
| 22322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22323 pathOffset += 1; | 22627 pathOffset += 1; |
| 22324 | 22628 |
| 22325 var query = (req.url).query; | 22629 var query = (req.url).query; |
| 22326 var queryOffset = 0; | 22630 var queryOffset = 0; |
| 22327 var queryMap = {}; | 22631 var queryMap = {}; |
| 22328 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22632 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22329 parseBool(n) { | 22633 parseBool(n) { |
| 22330 if (n == "true") return true; | 22634 if (n == "true") return true; |
| 22331 if (n == "false") return false; | 22635 if (n == "false") return false; |
| 22332 if (n == null) return null; | 22636 if (n == null) return null; |
| 22333 throw new core.ArgumentError("Invalid boolean: $n"); | 22637 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22334 } | 22638 } |
| 22335 if (query.length > 0) { | 22639 if (query.length > 0) { |
| 22336 for (var part in query.split("&")) { | 22640 for (var part in query.split("&")) { |
| 22337 var keyvalue = part.split("="); | 22641 var keyvalue = part.split("="); |
| 22338 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22642 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22339 } | 22643 } |
| 22340 } | 22644 } |
| 22645 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22341 | 22646 |
| 22342 | 22647 |
| 22343 var h = { | 22648 var h = { |
| 22344 "content-type" : "application/json; charset=utf-8", | 22649 "content-type" : "application/json; charset=utf-8", |
| 22345 }; | 22650 }; |
| 22346 var resp = convert.JSON.encode(buildOperation()); | 22651 var resp = convert.JSON.encode(buildOperation()); |
| 22347 return new async.Future.value(stringResponse(200, h, resp)); | 22652 return new async.Future.value(stringResponse(200, h, resp)); |
| 22348 }), true); | 22653 }), true); |
| 22349 res.update(arg_request, arg_project, arg_region, arg_router).then(unittest
.expectAsync1(((api.Operation response) { | 22654 res.update(arg_request, arg_project, arg_region, arg_router, requestId: ar
g_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 22350 checkOperation(response); | 22655 checkOperation(response); |
| 22351 }))); | 22656 }))); |
| 22352 }); | 22657 }); |
| 22353 | 22658 |
| 22354 }); | 22659 }); |
| 22355 | 22660 |
| 22356 | 22661 |
| 22357 unittest.group("resource-RoutesResourceApi", () { | 22662 unittest.group("resource-RoutesResourceApi", () { |
| 22358 unittest.test("method--delete", () { | 22663 unittest.test("method--delete", () { |
| 22359 | 22664 |
| 22360 var mock = new HttpServerMock(); | 22665 var mock = new HttpServerMock(); |
| 22361 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 22666 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 22362 var arg_project = "foo"; | 22667 var arg_project = "foo"; |
| 22363 var arg_route = "foo"; | 22668 var arg_route = "foo"; |
| 22669 var arg_requestId = "foo"; |
| 22364 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22670 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22365 var path = (req.url).path; | 22671 var path = (req.url).path; |
| 22366 var pathOffset = 0; | 22672 var pathOffset = 0; |
| 22367 var index; | 22673 var index; |
| 22368 var subPart; | 22674 var subPart; |
| 22369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22675 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22370 pathOffset += 1; | 22676 pathOffset += 1; |
| 22371 | 22677 |
| 22372 var query = (req.url).query; | 22678 var query = (req.url).query; |
| 22373 var queryOffset = 0; | 22679 var queryOffset = 0; |
| 22374 var queryMap = {}; | 22680 var queryMap = {}; |
| 22375 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22681 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22376 parseBool(n) { | 22682 parseBool(n) { |
| 22377 if (n == "true") return true; | 22683 if (n == "true") return true; |
| 22378 if (n == "false") return false; | 22684 if (n == "false") return false; |
| 22379 if (n == null) return null; | 22685 if (n == null) return null; |
| 22380 throw new core.ArgumentError("Invalid boolean: $n"); | 22686 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22381 } | 22687 } |
| 22382 if (query.length > 0) { | 22688 if (query.length > 0) { |
| 22383 for (var part in query.split("&")) { | 22689 for (var part in query.split("&")) { |
| 22384 var keyvalue = part.split("="); | 22690 var keyvalue = part.split("="); |
| 22385 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22691 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22386 } | 22692 } |
| 22387 } | 22693 } |
| 22694 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22388 | 22695 |
| 22389 | 22696 |
| 22390 var h = { | 22697 var h = { |
| 22391 "content-type" : "application/json; charset=utf-8", | 22698 "content-type" : "application/json; charset=utf-8", |
| 22392 }; | 22699 }; |
| 22393 var resp = convert.JSON.encode(buildOperation()); | 22700 var resp = convert.JSON.encode(buildOperation()); |
| 22394 return new async.Future.value(stringResponse(200, h, resp)); | 22701 return new async.Future.value(stringResponse(200, h, resp)); |
| 22395 }), true); | 22702 }), true); |
| 22396 res.delete(arg_project, arg_route).then(unittest.expectAsync1(((api.Operat
ion response) { | 22703 res.delete(arg_project, arg_route, requestId: arg_requestId).then(unittest
.expectAsync1(((api.Operation response) { |
| 22397 checkOperation(response); | 22704 checkOperation(response); |
| 22398 }))); | 22705 }))); |
| 22399 }); | 22706 }); |
| 22400 | 22707 |
| 22401 unittest.test("method--get", () { | 22708 unittest.test("method--get", () { |
| 22402 | 22709 |
| 22403 var mock = new HttpServerMock(); | 22710 var mock = new HttpServerMock(); |
| 22404 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 22711 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 22405 var arg_project = "foo"; | 22712 var arg_project = "foo"; |
| 22406 var arg_route = "foo"; | 22713 var arg_route = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22440 checkRoute(response); | 22747 checkRoute(response); |
| 22441 }))); | 22748 }))); |
| 22442 }); | 22749 }); |
| 22443 | 22750 |
| 22444 unittest.test("method--insert", () { | 22751 unittest.test("method--insert", () { |
| 22445 | 22752 |
| 22446 var mock = new HttpServerMock(); | 22753 var mock = new HttpServerMock(); |
| 22447 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 22754 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 22448 var arg_request = buildRoute(); | 22755 var arg_request = buildRoute(); |
| 22449 var arg_project = "foo"; | 22756 var arg_project = "foo"; |
| 22757 var arg_requestId = "foo"; |
| 22450 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22758 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22451 var obj = new api.Route.fromJson(json); | 22759 var obj = new api.Route.fromJson(json); |
| 22452 checkRoute(obj); | 22760 checkRoute(obj); |
| 22453 | 22761 |
| 22454 var path = (req.url).path; | 22762 var path = (req.url).path; |
| 22455 var pathOffset = 0; | 22763 var pathOffset = 0; |
| 22456 var index; | 22764 var index; |
| 22457 var subPart; | 22765 var subPart; |
| 22458 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22459 pathOffset += 1; | 22767 pathOffset += 1; |
| 22460 | 22768 |
| 22461 var query = (req.url).query; | 22769 var query = (req.url).query; |
| 22462 var queryOffset = 0; | 22770 var queryOffset = 0; |
| 22463 var queryMap = {}; | 22771 var queryMap = {}; |
| 22464 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22772 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22465 parseBool(n) { | 22773 parseBool(n) { |
| 22466 if (n == "true") return true; | 22774 if (n == "true") return true; |
| 22467 if (n == "false") return false; | 22775 if (n == "false") return false; |
| 22468 if (n == null) return null; | 22776 if (n == null) return null; |
| 22469 throw new core.ArgumentError("Invalid boolean: $n"); | 22777 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22470 } | 22778 } |
| 22471 if (query.length > 0) { | 22779 if (query.length > 0) { |
| 22472 for (var part in query.split("&")) { | 22780 for (var part in query.split("&")) { |
| 22473 var keyvalue = part.split("="); | 22781 var keyvalue = part.split("="); |
| 22474 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22782 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22475 } | 22783 } |
| 22476 } | 22784 } |
| 22785 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22477 | 22786 |
| 22478 | 22787 |
| 22479 var h = { | 22788 var h = { |
| 22480 "content-type" : "application/json; charset=utf-8", | 22789 "content-type" : "application/json; charset=utf-8", |
| 22481 }; | 22790 }; |
| 22482 var resp = convert.JSON.encode(buildOperation()); | 22791 var resp = convert.JSON.encode(buildOperation()); |
| 22483 return new async.Future.value(stringResponse(200, h, resp)); | 22792 return new async.Future.value(stringResponse(200, h, resp)); |
| 22484 }), true); | 22793 }), true); |
| 22485 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 22794 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 22486 checkOperation(response); | 22795 checkOperation(response); |
| 22487 }))); | 22796 }))); |
| 22488 }); | 22797 }); |
| 22489 | 22798 |
| 22490 unittest.test("method--list", () { | 22799 unittest.test("method--list", () { |
| 22491 | 22800 |
| 22492 var mock = new HttpServerMock(); | 22801 var mock = new HttpServerMock(); |
| 22493 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 22802 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 22494 var arg_project = "foo"; | 22803 var arg_project = "foo"; |
| 22495 var arg_filter = "foo"; | 22804 var arg_filter = "foo"; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22540 }); | 22849 }); |
| 22541 | 22850 |
| 22542 | 22851 |
| 22543 unittest.group("resource-SnapshotsResourceApi", () { | 22852 unittest.group("resource-SnapshotsResourceApi", () { |
| 22544 unittest.test("method--delete", () { | 22853 unittest.test("method--delete", () { |
| 22545 | 22854 |
| 22546 var mock = new HttpServerMock(); | 22855 var mock = new HttpServerMock(); |
| 22547 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; | 22856 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; |
| 22548 var arg_project = "foo"; | 22857 var arg_project = "foo"; |
| 22549 var arg_snapshot = "foo"; | 22858 var arg_snapshot = "foo"; |
| 22859 var arg_requestId = "foo"; |
| 22550 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 22860 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22551 var path = (req.url).path; | 22861 var path = (req.url).path; |
| 22552 var pathOffset = 0; | 22862 var pathOffset = 0; |
| 22553 var index; | 22863 var index; |
| 22554 var subPart; | 22864 var subPart; |
| 22555 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 22865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22556 pathOffset += 1; | 22866 pathOffset += 1; |
| 22557 | 22867 |
| 22558 var query = (req.url).query; | 22868 var query = (req.url).query; |
| 22559 var queryOffset = 0; | 22869 var queryOffset = 0; |
| 22560 var queryMap = {}; | 22870 var queryMap = {}; |
| 22561 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 22871 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22562 parseBool(n) { | 22872 parseBool(n) { |
| 22563 if (n == "true") return true; | 22873 if (n == "true") return true; |
| 22564 if (n == "false") return false; | 22874 if (n == "false") return false; |
| 22565 if (n == null) return null; | 22875 if (n == null) return null; |
| 22566 throw new core.ArgumentError("Invalid boolean: $n"); | 22876 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22567 } | 22877 } |
| 22568 if (query.length > 0) { | 22878 if (query.length > 0) { |
| 22569 for (var part in query.split("&")) { | 22879 for (var part in query.split("&")) { |
| 22570 var keyvalue = part.split("="); | 22880 var keyvalue = part.split("="); |
| 22571 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 22881 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22572 } | 22882 } |
| 22573 } | 22883 } |
| 22884 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22574 | 22885 |
| 22575 | 22886 |
| 22576 var h = { | 22887 var h = { |
| 22577 "content-type" : "application/json; charset=utf-8", | 22888 "content-type" : "application/json; charset=utf-8", |
| 22578 }; | 22889 }; |
| 22579 var resp = convert.JSON.encode(buildOperation()); | 22890 var resp = convert.JSON.encode(buildOperation()); |
| 22580 return new async.Future.value(stringResponse(200, h, resp)); | 22891 return new async.Future.value(stringResponse(200, h, resp)); |
| 22581 }), true); | 22892 }), true); |
| 22582 res.delete(arg_project, arg_snapshot).then(unittest.expectAsync1(((api.Ope
ration response) { | 22893 res.delete(arg_project, arg_snapshot, requestId: arg_requestId).then(unitt
est.expectAsync1(((api.Operation response) { |
| 22583 checkOperation(response); | 22894 checkOperation(response); |
| 22584 }))); | 22895 }))); |
| 22585 }); | 22896 }); |
| 22586 | 22897 |
| 22587 unittest.test("method--get", () { | 22898 unittest.test("method--get", () { |
| 22588 | 22899 |
| 22589 var mock = new HttpServerMock(); | 22900 var mock = new HttpServerMock(); |
| 22590 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; | 22901 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; |
| 22591 var arg_project = "foo"; | 22902 var arg_project = "foo"; |
| 22592 var arg_snapshot = "foo"; | 22903 var arg_snapshot = "foo"; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22727 }); | 23038 }); |
| 22728 | 23039 |
| 22729 | 23040 |
| 22730 unittest.group("resource-SslCertificatesResourceApi", () { | 23041 unittest.group("resource-SslCertificatesResourceApi", () { |
| 22731 unittest.test("method--delete", () { | 23042 unittest.test("method--delete", () { |
| 22732 | 23043 |
| 22733 var mock = new HttpServerMock(); | 23044 var mock = new HttpServerMock(); |
| 22734 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; | 23045 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; |
| 22735 var arg_project = "foo"; | 23046 var arg_project = "foo"; |
| 22736 var arg_sslCertificate = "foo"; | 23047 var arg_sslCertificate = "foo"; |
| 23048 var arg_requestId = "foo"; |
| 22737 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23049 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22738 var path = (req.url).path; | 23050 var path = (req.url).path; |
| 22739 var pathOffset = 0; | 23051 var pathOffset = 0; |
| 22740 var index; | 23052 var index; |
| 22741 var subPart; | 23053 var subPart; |
| 22742 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23054 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22743 pathOffset += 1; | 23055 pathOffset += 1; |
| 22744 | 23056 |
| 22745 var query = (req.url).query; | 23057 var query = (req.url).query; |
| 22746 var queryOffset = 0; | 23058 var queryOffset = 0; |
| 22747 var queryMap = {}; | 23059 var queryMap = {}; |
| 22748 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23060 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22749 parseBool(n) { | 23061 parseBool(n) { |
| 22750 if (n == "true") return true; | 23062 if (n == "true") return true; |
| 22751 if (n == "false") return false; | 23063 if (n == "false") return false; |
| 22752 if (n == null) return null; | 23064 if (n == null) return null; |
| 22753 throw new core.ArgumentError("Invalid boolean: $n"); | 23065 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22754 } | 23066 } |
| 22755 if (query.length > 0) { | 23067 if (query.length > 0) { |
| 22756 for (var part in query.split("&")) { | 23068 for (var part in query.split("&")) { |
| 22757 var keyvalue = part.split("="); | 23069 var keyvalue = part.split("="); |
| 22758 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23070 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22759 } | 23071 } |
| 22760 } | 23072 } |
| 23073 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22761 | 23074 |
| 22762 | 23075 |
| 22763 var h = { | 23076 var h = { |
| 22764 "content-type" : "application/json; charset=utf-8", | 23077 "content-type" : "application/json; charset=utf-8", |
| 22765 }; | 23078 }; |
| 22766 var resp = convert.JSON.encode(buildOperation()); | 23079 var resp = convert.JSON.encode(buildOperation()); |
| 22767 return new async.Future.value(stringResponse(200, h, resp)); | 23080 return new async.Future.value(stringResponse(200, h, resp)); |
| 22768 }), true); | 23081 }), true); |
| 22769 res.delete(arg_project, arg_sslCertificate).then(unittest.expectAsync1(((a
pi.Operation response) { | 23082 res.delete(arg_project, arg_sslCertificate, requestId: arg_requestId).then
(unittest.expectAsync1(((api.Operation response) { |
| 22770 checkOperation(response); | 23083 checkOperation(response); |
| 22771 }))); | 23084 }))); |
| 22772 }); | 23085 }); |
| 22773 | 23086 |
| 22774 unittest.test("method--get", () { | 23087 unittest.test("method--get", () { |
| 22775 | 23088 |
| 22776 var mock = new HttpServerMock(); | 23089 var mock = new HttpServerMock(); |
| 22777 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; | 23090 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; |
| 22778 var arg_project = "foo"; | 23091 var arg_project = "foo"; |
| 22779 var arg_sslCertificate = "foo"; | 23092 var arg_sslCertificate = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22813 checkSslCertificate(response); | 23126 checkSslCertificate(response); |
| 22814 }))); | 23127 }))); |
| 22815 }); | 23128 }); |
| 22816 | 23129 |
| 22817 unittest.test("method--insert", () { | 23130 unittest.test("method--insert", () { |
| 22818 | 23131 |
| 22819 var mock = new HttpServerMock(); | 23132 var mock = new HttpServerMock(); |
| 22820 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; | 23133 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; |
| 22821 var arg_request = buildSslCertificate(); | 23134 var arg_request = buildSslCertificate(); |
| 22822 var arg_project = "foo"; | 23135 var arg_project = "foo"; |
| 23136 var arg_requestId = "foo"; |
| 22823 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23137 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22824 var obj = new api.SslCertificate.fromJson(json); | 23138 var obj = new api.SslCertificate.fromJson(json); |
| 22825 checkSslCertificate(obj); | 23139 checkSslCertificate(obj); |
| 22826 | 23140 |
| 22827 var path = (req.url).path; | 23141 var path = (req.url).path; |
| 22828 var pathOffset = 0; | 23142 var pathOffset = 0; |
| 22829 var index; | 23143 var index; |
| 22830 var subPart; | 23144 var subPart; |
| 22831 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23145 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22832 pathOffset += 1; | 23146 pathOffset += 1; |
| 22833 | 23147 |
| 22834 var query = (req.url).query; | 23148 var query = (req.url).query; |
| 22835 var queryOffset = 0; | 23149 var queryOffset = 0; |
| 22836 var queryMap = {}; | 23150 var queryMap = {}; |
| 22837 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23151 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22838 parseBool(n) { | 23152 parseBool(n) { |
| 22839 if (n == "true") return true; | 23153 if (n == "true") return true; |
| 22840 if (n == "false") return false; | 23154 if (n == "false") return false; |
| 22841 if (n == null) return null; | 23155 if (n == null) return null; |
| 22842 throw new core.ArgumentError("Invalid boolean: $n"); | 23156 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22843 } | 23157 } |
| 22844 if (query.length > 0) { | 23158 if (query.length > 0) { |
| 22845 for (var part in query.split("&")) { | 23159 for (var part in query.split("&")) { |
| 22846 var keyvalue = part.split("="); | 23160 var keyvalue = part.split("="); |
| 22847 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23161 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22848 } | 23162 } |
| 22849 } | 23163 } |
| 23164 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22850 | 23165 |
| 22851 | 23166 |
| 22852 var h = { | 23167 var h = { |
| 22853 "content-type" : "application/json; charset=utf-8", | 23168 "content-type" : "application/json; charset=utf-8", |
| 22854 }; | 23169 }; |
| 22855 var resp = convert.JSON.encode(buildOperation()); | 23170 var resp = convert.JSON.encode(buildOperation()); |
| 22856 return new async.Future.value(stringResponse(200, h, resp)); | 23171 return new async.Future.value(stringResponse(200, h, resp)); |
| 22857 }), true); | 23172 }), true); |
| 22858 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 23173 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 22859 checkOperation(response); | 23174 checkOperation(response); |
| 22860 }))); | 23175 }))); |
| 22861 }); | 23176 }); |
| 22862 | 23177 |
| 22863 unittest.test("method--list", () { | 23178 unittest.test("method--list", () { |
| 22864 | 23179 |
| 22865 var mock = new HttpServerMock(); | 23180 var mock = new HttpServerMock(); |
| 22866 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; | 23181 api.SslCertificatesResourceApi res = new api.ComputeApi(mock).sslCertifica
tes; |
| 22867 var arg_project = "foo"; | 23182 var arg_project = "foo"; |
| 22868 var arg_filter = "foo"; | 23183 var arg_filter = "foo"; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22964 }))); | 23279 }))); |
| 22965 }); | 23280 }); |
| 22966 | 23281 |
| 22967 unittest.test("method--delete", () { | 23282 unittest.test("method--delete", () { |
| 22968 | 23283 |
| 22969 var mock = new HttpServerMock(); | 23284 var mock = new HttpServerMock(); |
| 22970 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; | 23285 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; |
| 22971 var arg_project = "foo"; | 23286 var arg_project = "foo"; |
| 22972 var arg_region = "foo"; | 23287 var arg_region = "foo"; |
| 22973 var arg_subnetwork = "foo"; | 23288 var arg_subnetwork = "foo"; |
| 23289 var arg_requestId = "foo"; |
| 22974 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23290 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 22975 var path = (req.url).path; | 23291 var path = (req.url).path; |
| 22976 var pathOffset = 0; | 23292 var pathOffset = 0; |
| 22977 var index; | 23293 var index; |
| 22978 var subPart; | 23294 var subPart; |
| 22979 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23295 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 22980 pathOffset += 1; | 23296 pathOffset += 1; |
| 22981 | 23297 |
| 22982 var query = (req.url).query; | 23298 var query = (req.url).query; |
| 22983 var queryOffset = 0; | 23299 var queryOffset = 0; |
| 22984 var queryMap = {}; | 23300 var queryMap = {}; |
| 22985 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23301 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 22986 parseBool(n) { | 23302 parseBool(n) { |
| 22987 if (n == "true") return true; | 23303 if (n == "true") return true; |
| 22988 if (n == "false") return false; | 23304 if (n == "false") return false; |
| 22989 if (n == null) return null; | 23305 if (n == null) return null; |
| 22990 throw new core.ArgumentError("Invalid boolean: $n"); | 23306 throw new core.ArgumentError("Invalid boolean: $n"); |
| 22991 } | 23307 } |
| 22992 if (query.length > 0) { | 23308 if (query.length > 0) { |
| 22993 for (var part in query.split("&")) { | 23309 for (var part in query.split("&")) { |
| 22994 var keyvalue = part.split("="); | 23310 var keyvalue = part.split("="); |
| 22995 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23311 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 22996 } | 23312 } |
| 22997 } | 23313 } |
| 23314 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 22998 | 23315 |
| 22999 | 23316 |
| 23000 var h = { | 23317 var h = { |
| 23001 "content-type" : "application/json; charset=utf-8", | 23318 "content-type" : "application/json; charset=utf-8", |
| 23002 }; | 23319 }; |
| 23003 var resp = convert.JSON.encode(buildOperation()); | 23320 var resp = convert.JSON.encode(buildOperation()); |
| 23004 return new async.Future.value(stringResponse(200, h, resp)); | 23321 return new async.Future.value(stringResponse(200, h, resp)); |
| 23005 }), true); | 23322 }), true); |
| 23006 res.delete(arg_project, arg_region, arg_subnetwork).then(unittest.expectAs
ync1(((api.Operation response) { | 23323 res.delete(arg_project, arg_region, arg_subnetwork, requestId: arg_request
Id).then(unittest.expectAsync1(((api.Operation response) { |
| 23007 checkOperation(response); | 23324 checkOperation(response); |
| 23008 }))); | 23325 }))); |
| 23009 }); | 23326 }); |
| 23010 | 23327 |
| 23011 unittest.test("method--expandIpCidrRange", () { | 23328 unittest.test("method--expandIpCidrRange", () { |
| 23012 | 23329 |
| 23013 var mock = new HttpServerMock(); | 23330 var mock = new HttpServerMock(); |
| 23014 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; | 23331 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; |
| 23015 var arg_request = buildSubnetworksExpandIpCidrRangeRequest(); | 23332 var arg_request = buildSubnetworksExpandIpCidrRangeRequest(); |
| 23016 var arg_project = "foo"; | 23333 var arg_project = "foo"; |
| 23017 var arg_region = "foo"; | 23334 var arg_region = "foo"; |
| 23018 var arg_subnetwork = "foo"; | 23335 var arg_subnetwork = "foo"; |
| 23336 var arg_requestId = "foo"; |
| 23019 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23337 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23020 var obj = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(json); | 23338 var obj = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(json); |
| 23021 checkSubnetworksExpandIpCidrRangeRequest(obj); | 23339 checkSubnetworksExpandIpCidrRangeRequest(obj); |
| 23022 | 23340 |
| 23023 var path = (req.url).path; | 23341 var path = (req.url).path; |
| 23024 var pathOffset = 0; | 23342 var pathOffset = 0; |
| 23025 var index; | 23343 var index; |
| 23026 var subPart; | 23344 var subPart; |
| 23027 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23345 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23028 pathOffset += 1; | 23346 pathOffset += 1; |
| 23029 | 23347 |
| 23030 var query = (req.url).query; | 23348 var query = (req.url).query; |
| 23031 var queryOffset = 0; | 23349 var queryOffset = 0; |
| 23032 var queryMap = {}; | 23350 var queryMap = {}; |
| 23033 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23351 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23034 parseBool(n) { | 23352 parseBool(n) { |
| 23035 if (n == "true") return true; | 23353 if (n == "true") return true; |
| 23036 if (n == "false") return false; | 23354 if (n == "false") return false; |
| 23037 if (n == null) return null; | 23355 if (n == null) return null; |
| 23038 throw new core.ArgumentError("Invalid boolean: $n"); | 23356 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23039 } | 23357 } |
| 23040 if (query.length > 0) { | 23358 if (query.length > 0) { |
| 23041 for (var part in query.split("&")) { | 23359 for (var part in query.split("&")) { |
| 23042 var keyvalue = part.split("="); | 23360 var keyvalue = part.split("="); |
| 23043 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23361 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23044 } | 23362 } |
| 23045 } | 23363 } |
| 23364 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23046 | 23365 |
| 23047 | 23366 |
| 23048 var h = { | 23367 var h = { |
| 23049 "content-type" : "application/json; charset=utf-8", | 23368 "content-type" : "application/json; charset=utf-8", |
| 23050 }; | 23369 }; |
| 23051 var resp = convert.JSON.encode(buildOperation()); | 23370 var resp = convert.JSON.encode(buildOperation()); |
| 23052 return new async.Future.value(stringResponse(200, h, resp)); | 23371 return new async.Future.value(stringResponse(200, h, resp)); |
| 23053 }), true); | 23372 }), true); |
| 23054 res.expandIpCidrRange(arg_request, arg_project, arg_region, arg_subnetwork
).then(unittest.expectAsync1(((api.Operation response) { | 23373 res.expandIpCidrRange(arg_request, arg_project, arg_region, arg_subnetwork
, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response)
{ |
| 23055 checkOperation(response); | 23374 checkOperation(response); |
| 23056 }))); | 23375 }))); |
| 23057 }); | 23376 }); |
| 23058 | 23377 |
| 23059 unittest.test("method--get", () { | 23378 unittest.test("method--get", () { |
| 23060 | 23379 |
| 23061 var mock = new HttpServerMock(); | 23380 var mock = new HttpServerMock(); |
| 23062 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; | 23381 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; |
| 23063 var arg_project = "foo"; | 23382 var arg_project = "foo"; |
| 23064 var arg_region = "foo"; | 23383 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23100 }))); | 23419 }))); |
| 23101 }); | 23420 }); |
| 23102 | 23421 |
| 23103 unittest.test("method--insert", () { | 23422 unittest.test("method--insert", () { |
| 23104 | 23423 |
| 23105 var mock = new HttpServerMock(); | 23424 var mock = new HttpServerMock(); |
| 23106 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; | 23425 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; |
| 23107 var arg_request = buildSubnetwork(); | 23426 var arg_request = buildSubnetwork(); |
| 23108 var arg_project = "foo"; | 23427 var arg_project = "foo"; |
| 23109 var arg_region = "foo"; | 23428 var arg_region = "foo"; |
| 23429 var arg_requestId = "foo"; |
| 23110 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23430 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23111 var obj = new api.Subnetwork.fromJson(json); | 23431 var obj = new api.Subnetwork.fromJson(json); |
| 23112 checkSubnetwork(obj); | 23432 checkSubnetwork(obj); |
| 23113 | 23433 |
| 23114 var path = (req.url).path; | 23434 var path = (req.url).path; |
| 23115 var pathOffset = 0; | 23435 var pathOffset = 0; |
| 23116 var index; | 23436 var index; |
| 23117 var subPart; | 23437 var subPart; |
| 23118 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23438 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23119 pathOffset += 1; | 23439 pathOffset += 1; |
| 23120 | 23440 |
| 23121 var query = (req.url).query; | 23441 var query = (req.url).query; |
| 23122 var queryOffset = 0; | 23442 var queryOffset = 0; |
| 23123 var queryMap = {}; | 23443 var queryMap = {}; |
| 23124 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23444 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23125 parseBool(n) { | 23445 parseBool(n) { |
| 23126 if (n == "true") return true; | 23446 if (n == "true") return true; |
| 23127 if (n == "false") return false; | 23447 if (n == "false") return false; |
| 23128 if (n == null) return null; | 23448 if (n == null) return null; |
| 23129 throw new core.ArgumentError("Invalid boolean: $n"); | 23449 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23130 } | 23450 } |
| 23131 if (query.length > 0) { | 23451 if (query.length > 0) { |
| 23132 for (var part in query.split("&")) { | 23452 for (var part in query.split("&")) { |
| 23133 var keyvalue = part.split("="); | 23453 var keyvalue = part.split("="); |
| 23134 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23454 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23135 } | 23455 } |
| 23136 } | 23456 } |
| 23457 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23137 | 23458 |
| 23138 | 23459 |
| 23139 var h = { | 23460 var h = { |
| 23140 "content-type" : "application/json; charset=utf-8", | 23461 "content-type" : "application/json; charset=utf-8", |
| 23141 }; | 23462 }; |
| 23142 var resp = convert.JSON.encode(buildOperation()); | 23463 var resp = convert.JSON.encode(buildOperation()); |
| 23143 return new async.Future.value(stringResponse(200, h, resp)); | 23464 return new async.Future.value(stringResponse(200, h, resp)); |
| 23144 }), true); | 23465 }), true); |
| 23145 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 23466 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 23146 checkOperation(response); | 23467 checkOperation(response); |
| 23147 }))); | 23468 }))); |
| 23148 }); | 23469 }); |
| 23149 | 23470 |
| 23150 unittest.test("method--list", () { | 23471 unittest.test("method--list", () { |
| 23151 | 23472 |
| 23152 var mock = new HttpServerMock(); | 23473 var mock = new HttpServerMock(); |
| 23153 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; | 23474 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; |
| 23154 var arg_project = "foo"; | 23475 var arg_project = "foo"; |
| 23155 var arg_region = "foo"; | 23476 var arg_region = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23199 }); | 23520 }); |
| 23200 | 23521 |
| 23201 unittest.test("method--setPrivateIpGoogleAccess", () { | 23522 unittest.test("method--setPrivateIpGoogleAccess", () { |
| 23202 | 23523 |
| 23203 var mock = new HttpServerMock(); | 23524 var mock = new HttpServerMock(); |
| 23204 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; | 23525 api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; |
| 23205 var arg_request = buildSubnetworksSetPrivateIpGoogleAccessRequest(); | 23526 var arg_request = buildSubnetworksSetPrivateIpGoogleAccessRequest(); |
| 23206 var arg_project = "foo"; | 23527 var arg_project = "foo"; |
| 23207 var arg_region = "foo"; | 23528 var arg_region = "foo"; |
| 23208 var arg_subnetwork = "foo"; | 23529 var arg_subnetwork = "foo"; |
| 23530 var arg_requestId = "foo"; |
| 23209 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23531 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23210 var obj = new api.SubnetworksSetPrivateIpGoogleAccessRequest.fromJson(js
on); | 23532 var obj = new api.SubnetworksSetPrivateIpGoogleAccessRequest.fromJson(js
on); |
| 23211 checkSubnetworksSetPrivateIpGoogleAccessRequest(obj); | 23533 checkSubnetworksSetPrivateIpGoogleAccessRequest(obj); |
| 23212 | 23534 |
| 23213 var path = (req.url).path; | 23535 var path = (req.url).path; |
| 23214 var pathOffset = 0; | 23536 var pathOffset = 0; |
| 23215 var index; | 23537 var index; |
| 23216 var subPart; | 23538 var subPart; |
| 23217 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23218 pathOffset += 1; | 23540 pathOffset += 1; |
| 23219 | 23541 |
| 23220 var query = (req.url).query; | 23542 var query = (req.url).query; |
| 23221 var queryOffset = 0; | 23543 var queryOffset = 0; |
| 23222 var queryMap = {}; | 23544 var queryMap = {}; |
| 23223 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23545 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23224 parseBool(n) { | 23546 parseBool(n) { |
| 23225 if (n == "true") return true; | 23547 if (n == "true") return true; |
| 23226 if (n == "false") return false; | 23548 if (n == "false") return false; |
| 23227 if (n == null) return null; | 23549 if (n == null) return null; |
| 23228 throw new core.ArgumentError("Invalid boolean: $n"); | 23550 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23229 } | 23551 } |
| 23230 if (query.length > 0) { | 23552 if (query.length > 0) { |
| 23231 for (var part in query.split("&")) { | 23553 for (var part in query.split("&")) { |
| 23232 var keyvalue = part.split("="); | 23554 var keyvalue = part.split("="); |
| 23233 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23555 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23234 } | 23556 } |
| 23235 } | 23557 } |
| 23558 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23236 | 23559 |
| 23237 | 23560 |
| 23238 var h = { | 23561 var h = { |
| 23239 "content-type" : "application/json; charset=utf-8", | 23562 "content-type" : "application/json; charset=utf-8", |
| 23240 }; | 23563 }; |
| 23241 var resp = convert.JSON.encode(buildOperation()); | 23564 var resp = convert.JSON.encode(buildOperation()); |
| 23242 return new async.Future.value(stringResponse(200, h, resp)); | 23565 return new async.Future.value(stringResponse(200, h, resp)); |
| 23243 }), true); | 23566 }), true); |
| 23244 res.setPrivateIpGoogleAccess(arg_request, arg_project, arg_region, arg_sub
network).then(unittest.expectAsync1(((api.Operation response) { | 23567 res.setPrivateIpGoogleAccess(arg_request, arg_project, arg_region, arg_sub
network, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation re
sponse) { |
| 23245 checkOperation(response); | 23568 checkOperation(response); |
| 23246 }))); | 23569 }))); |
| 23247 }); | 23570 }); |
| 23248 | 23571 |
| 23249 }); | 23572 }); |
| 23250 | 23573 |
| 23251 | 23574 |
| 23252 unittest.group("resource-TargetHttpProxiesResourceApi", () { | 23575 unittest.group("resource-TargetHttpProxiesResourceApi", () { |
| 23253 unittest.test("method--delete", () { | 23576 unittest.test("method--delete", () { |
| 23254 | 23577 |
| 23255 var mock = new HttpServerMock(); | 23578 var mock = new HttpServerMock(); |
| 23256 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 23579 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 23257 var arg_project = "foo"; | 23580 var arg_project = "foo"; |
| 23258 var arg_targetHttpProxy = "foo"; | 23581 var arg_targetHttpProxy = "foo"; |
| 23582 var arg_requestId = "foo"; |
| 23259 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23583 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23260 var path = (req.url).path; | 23584 var path = (req.url).path; |
| 23261 var pathOffset = 0; | 23585 var pathOffset = 0; |
| 23262 var index; | 23586 var index; |
| 23263 var subPart; | 23587 var subPart; |
| 23264 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23588 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23265 pathOffset += 1; | 23589 pathOffset += 1; |
| 23266 | 23590 |
| 23267 var query = (req.url).query; | 23591 var query = (req.url).query; |
| 23268 var queryOffset = 0; | 23592 var queryOffset = 0; |
| 23269 var queryMap = {}; | 23593 var queryMap = {}; |
| 23270 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23594 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23271 parseBool(n) { | 23595 parseBool(n) { |
| 23272 if (n == "true") return true; | 23596 if (n == "true") return true; |
| 23273 if (n == "false") return false; | 23597 if (n == "false") return false; |
| 23274 if (n == null) return null; | 23598 if (n == null) return null; |
| 23275 throw new core.ArgumentError("Invalid boolean: $n"); | 23599 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23276 } | 23600 } |
| 23277 if (query.length > 0) { | 23601 if (query.length > 0) { |
| 23278 for (var part in query.split("&")) { | 23602 for (var part in query.split("&")) { |
| 23279 var keyvalue = part.split("="); | 23603 var keyvalue = part.split("="); |
| 23280 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23604 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23281 } | 23605 } |
| 23282 } | 23606 } |
| 23607 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23283 | 23608 |
| 23284 | 23609 |
| 23285 var h = { | 23610 var h = { |
| 23286 "content-type" : "application/json; charset=utf-8", | 23611 "content-type" : "application/json; charset=utf-8", |
| 23287 }; | 23612 }; |
| 23288 var resp = convert.JSON.encode(buildOperation()); | 23613 var resp = convert.JSON.encode(buildOperation()); |
| 23289 return new async.Future.value(stringResponse(200, h, resp)); | 23614 return new async.Future.value(stringResponse(200, h, resp)); |
| 23290 }), true); | 23615 }), true); |
| 23291 res.delete(arg_project, arg_targetHttpProxy).then(unittest.expectAsync1(((
api.Operation response) { | 23616 res.delete(arg_project, arg_targetHttpProxy, requestId: arg_requestId).the
n(unittest.expectAsync1(((api.Operation response) { |
| 23292 checkOperation(response); | 23617 checkOperation(response); |
| 23293 }))); | 23618 }))); |
| 23294 }); | 23619 }); |
| 23295 | 23620 |
| 23296 unittest.test("method--get", () { | 23621 unittest.test("method--get", () { |
| 23297 | 23622 |
| 23298 var mock = new HttpServerMock(); | 23623 var mock = new HttpServerMock(); |
| 23299 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 23624 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 23300 var arg_project = "foo"; | 23625 var arg_project = "foo"; |
| 23301 var arg_targetHttpProxy = "foo"; | 23626 var arg_targetHttpProxy = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23335 checkTargetHttpProxy(response); | 23660 checkTargetHttpProxy(response); |
| 23336 }))); | 23661 }))); |
| 23337 }); | 23662 }); |
| 23338 | 23663 |
| 23339 unittest.test("method--insert", () { | 23664 unittest.test("method--insert", () { |
| 23340 | 23665 |
| 23341 var mock = new HttpServerMock(); | 23666 var mock = new HttpServerMock(); |
| 23342 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 23667 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 23343 var arg_request = buildTargetHttpProxy(); | 23668 var arg_request = buildTargetHttpProxy(); |
| 23344 var arg_project = "foo"; | 23669 var arg_project = "foo"; |
| 23670 var arg_requestId = "foo"; |
| 23345 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23671 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23346 var obj = new api.TargetHttpProxy.fromJson(json); | 23672 var obj = new api.TargetHttpProxy.fromJson(json); |
| 23347 checkTargetHttpProxy(obj); | 23673 checkTargetHttpProxy(obj); |
| 23348 | 23674 |
| 23349 var path = (req.url).path; | 23675 var path = (req.url).path; |
| 23350 var pathOffset = 0; | 23676 var pathOffset = 0; |
| 23351 var index; | 23677 var index; |
| 23352 var subPart; | 23678 var subPart; |
| 23353 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23679 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23354 pathOffset += 1; | 23680 pathOffset += 1; |
| 23355 | 23681 |
| 23356 var query = (req.url).query; | 23682 var query = (req.url).query; |
| 23357 var queryOffset = 0; | 23683 var queryOffset = 0; |
| 23358 var queryMap = {}; | 23684 var queryMap = {}; |
| 23359 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23685 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23360 parseBool(n) { | 23686 parseBool(n) { |
| 23361 if (n == "true") return true; | 23687 if (n == "true") return true; |
| 23362 if (n == "false") return false; | 23688 if (n == "false") return false; |
| 23363 if (n == null) return null; | 23689 if (n == null) return null; |
| 23364 throw new core.ArgumentError("Invalid boolean: $n"); | 23690 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23365 } | 23691 } |
| 23366 if (query.length > 0) { | 23692 if (query.length > 0) { |
| 23367 for (var part in query.split("&")) { | 23693 for (var part in query.split("&")) { |
| 23368 var keyvalue = part.split("="); | 23694 var keyvalue = part.split("="); |
| 23369 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23695 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23370 } | 23696 } |
| 23371 } | 23697 } |
| 23698 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23372 | 23699 |
| 23373 | 23700 |
| 23374 var h = { | 23701 var h = { |
| 23375 "content-type" : "application/json; charset=utf-8", | 23702 "content-type" : "application/json; charset=utf-8", |
| 23376 }; | 23703 }; |
| 23377 var resp = convert.JSON.encode(buildOperation()); | 23704 var resp = convert.JSON.encode(buildOperation()); |
| 23378 return new async.Future.value(stringResponse(200, h, resp)); | 23705 return new async.Future.value(stringResponse(200, h, resp)); |
| 23379 }), true); | 23706 }), true); |
| 23380 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 23707 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 23381 checkOperation(response); | 23708 checkOperation(response); |
| 23382 }))); | 23709 }))); |
| 23383 }); | 23710 }); |
| 23384 | 23711 |
| 23385 unittest.test("method--list", () { | 23712 unittest.test("method--list", () { |
| 23386 | 23713 |
| 23387 var mock = new HttpServerMock(); | 23714 var mock = new HttpServerMock(); |
| 23388 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 23715 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 23389 var arg_project = "foo"; | 23716 var arg_project = "foo"; |
| 23390 var arg_filter = "foo"; | 23717 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23432 }))); | 23759 }))); |
| 23433 }); | 23760 }); |
| 23434 | 23761 |
| 23435 unittest.test("method--setUrlMap", () { | 23762 unittest.test("method--setUrlMap", () { |
| 23436 | 23763 |
| 23437 var mock = new HttpServerMock(); | 23764 var mock = new HttpServerMock(); |
| 23438 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 23765 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 23439 var arg_request = buildUrlMapReference(); | 23766 var arg_request = buildUrlMapReference(); |
| 23440 var arg_project = "foo"; | 23767 var arg_project = "foo"; |
| 23441 var arg_targetHttpProxy = "foo"; | 23768 var arg_targetHttpProxy = "foo"; |
| 23769 var arg_requestId = "foo"; |
| 23442 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23770 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23443 var obj = new api.UrlMapReference.fromJson(json); | 23771 var obj = new api.UrlMapReference.fromJson(json); |
| 23444 checkUrlMapReference(obj); | 23772 checkUrlMapReference(obj); |
| 23445 | 23773 |
| 23446 var path = (req.url).path; | 23774 var path = (req.url).path; |
| 23447 var pathOffset = 0; | 23775 var pathOffset = 0; |
| 23448 var index; | 23776 var index; |
| 23449 var subPart; | 23777 var subPart; |
| 23450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23778 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23451 pathOffset += 1; | 23779 pathOffset += 1; |
| 23452 | 23780 |
| 23453 var query = (req.url).query; | 23781 var query = (req.url).query; |
| 23454 var queryOffset = 0; | 23782 var queryOffset = 0; |
| 23455 var queryMap = {}; | 23783 var queryMap = {}; |
| 23456 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23784 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23457 parseBool(n) { | 23785 parseBool(n) { |
| 23458 if (n == "true") return true; | 23786 if (n == "true") return true; |
| 23459 if (n == "false") return false; | 23787 if (n == "false") return false; |
| 23460 if (n == null) return null; | 23788 if (n == null) return null; |
| 23461 throw new core.ArgumentError("Invalid boolean: $n"); | 23789 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23462 } | 23790 } |
| 23463 if (query.length > 0) { | 23791 if (query.length > 0) { |
| 23464 for (var part in query.split("&")) { | 23792 for (var part in query.split("&")) { |
| 23465 var keyvalue = part.split("="); | 23793 var keyvalue = part.split("="); |
| 23466 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23794 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23467 } | 23795 } |
| 23468 } | 23796 } |
| 23797 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23469 | 23798 |
| 23470 | 23799 |
| 23471 var h = { | 23800 var h = { |
| 23472 "content-type" : "application/json; charset=utf-8", | 23801 "content-type" : "application/json; charset=utf-8", |
| 23473 }; | 23802 }; |
| 23474 var resp = convert.JSON.encode(buildOperation()); | 23803 var resp = convert.JSON.encode(buildOperation()); |
| 23475 return new async.Future.value(stringResponse(200, h, resp)); | 23804 return new async.Future.value(stringResponse(200, h, resp)); |
| 23476 }), true); | 23805 }), true); |
| 23477 res.setUrlMap(arg_request, arg_project, arg_targetHttpProxy).then(unittest
.expectAsync1(((api.Operation response) { | 23806 res.setUrlMap(arg_request, arg_project, arg_targetHttpProxy, requestId: ar
g_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 23478 checkOperation(response); | 23807 checkOperation(response); |
| 23479 }))); | 23808 }))); |
| 23480 }); | 23809 }); |
| 23481 | 23810 |
| 23482 }); | 23811 }); |
| 23483 | 23812 |
| 23484 | 23813 |
| 23485 unittest.group("resource-TargetHttpsProxiesResourceApi", () { | 23814 unittest.group("resource-TargetHttpsProxiesResourceApi", () { |
| 23486 unittest.test("method--delete", () { | 23815 unittest.test("method--delete", () { |
| 23487 | 23816 |
| 23488 var mock = new HttpServerMock(); | 23817 var mock = new HttpServerMock(); |
| 23489 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; | 23818 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; |
| 23490 var arg_project = "foo"; | 23819 var arg_project = "foo"; |
| 23491 var arg_targetHttpsProxy = "foo"; | 23820 var arg_targetHttpsProxy = "foo"; |
| 23821 var arg_requestId = "foo"; |
| 23492 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23822 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23493 var path = (req.url).path; | 23823 var path = (req.url).path; |
| 23494 var pathOffset = 0; | 23824 var pathOffset = 0; |
| 23495 var index; | 23825 var index; |
| 23496 var subPart; | 23826 var subPart; |
| 23497 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23498 pathOffset += 1; | 23828 pathOffset += 1; |
| 23499 | 23829 |
| 23500 var query = (req.url).query; | 23830 var query = (req.url).query; |
| 23501 var queryOffset = 0; | 23831 var queryOffset = 0; |
| 23502 var queryMap = {}; | 23832 var queryMap = {}; |
| 23503 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23833 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23504 parseBool(n) { | 23834 parseBool(n) { |
| 23505 if (n == "true") return true; | 23835 if (n == "true") return true; |
| 23506 if (n == "false") return false; | 23836 if (n == "false") return false; |
| 23507 if (n == null) return null; | 23837 if (n == null) return null; |
| 23508 throw new core.ArgumentError("Invalid boolean: $n"); | 23838 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23509 } | 23839 } |
| 23510 if (query.length > 0) { | 23840 if (query.length > 0) { |
| 23511 for (var part in query.split("&")) { | 23841 for (var part in query.split("&")) { |
| 23512 var keyvalue = part.split("="); | 23842 var keyvalue = part.split("="); |
| 23513 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23843 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23514 } | 23844 } |
| 23515 } | 23845 } |
| 23846 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23516 | 23847 |
| 23517 | 23848 |
| 23518 var h = { | 23849 var h = { |
| 23519 "content-type" : "application/json; charset=utf-8", | 23850 "content-type" : "application/json; charset=utf-8", |
| 23520 }; | 23851 }; |
| 23521 var resp = convert.JSON.encode(buildOperation()); | 23852 var resp = convert.JSON.encode(buildOperation()); |
| 23522 return new async.Future.value(stringResponse(200, h, resp)); | 23853 return new async.Future.value(stringResponse(200, h, resp)); |
| 23523 }), true); | 23854 }), true); |
| 23524 res.delete(arg_project, arg_targetHttpsProxy).then(unittest.expectAsync1((
(api.Operation response) { | 23855 res.delete(arg_project, arg_targetHttpsProxy, requestId: arg_requestId).th
en(unittest.expectAsync1(((api.Operation response) { |
| 23525 checkOperation(response); | 23856 checkOperation(response); |
| 23526 }))); | 23857 }))); |
| 23527 }); | 23858 }); |
| 23528 | 23859 |
| 23529 unittest.test("method--get", () { | 23860 unittest.test("method--get", () { |
| 23530 | 23861 |
| 23531 var mock = new HttpServerMock(); | 23862 var mock = new HttpServerMock(); |
| 23532 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; | 23863 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; |
| 23533 var arg_project = "foo"; | 23864 var arg_project = "foo"; |
| 23534 var arg_targetHttpsProxy = "foo"; | 23865 var arg_targetHttpsProxy = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23568 checkTargetHttpsProxy(response); | 23899 checkTargetHttpsProxy(response); |
| 23569 }))); | 23900 }))); |
| 23570 }); | 23901 }); |
| 23571 | 23902 |
| 23572 unittest.test("method--insert", () { | 23903 unittest.test("method--insert", () { |
| 23573 | 23904 |
| 23574 var mock = new HttpServerMock(); | 23905 var mock = new HttpServerMock(); |
| 23575 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; | 23906 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; |
| 23576 var arg_request = buildTargetHttpsProxy(); | 23907 var arg_request = buildTargetHttpsProxy(); |
| 23577 var arg_project = "foo"; | 23908 var arg_project = "foo"; |
| 23909 var arg_requestId = "foo"; |
| 23578 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 23910 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23579 var obj = new api.TargetHttpsProxy.fromJson(json); | 23911 var obj = new api.TargetHttpsProxy.fromJson(json); |
| 23580 checkTargetHttpsProxy(obj); | 23912 checkTargetHttpsProxy(obj); |
| 23581 | 23913 |
| 23582 var path = (req.url).path; | 23914 var path = (req.url).path; |
| 23583 var pathOffset = 0; | 23915 var pathOffset = 0; |
| 23584 var index; | 23916 var index; |
| 23585 var subPart; | 23917 var subPart; |
| 23586 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 23918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23587 pathOffset += 1; | 23919 pathOffset += 1; |
| 23588 | 23920 |
| 23589 var query = (req.url).query; | 23921 var query = (req.url).query; |
| 23590 var queryOffset = 0; | 23922 var queryOffset = 0; |
| 23591 var queryMap = {}; | 23923 var queryMap = {}; |
| 23592 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 23924 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23593 parseBool(n) { | 23925 parseBool(n) { |
| 23594 if (n == "true") return true; | 23926 if (n == "true") return true; |
| 23595 if (n == "false") return false; | 23927 if (n == "false") return false; |
| 23596 if (n == null) return null; | 23928 if (n == null) return null; |
| 23597 throw new core.ArgumentError("Invalid boolean: $n"); | 23929 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23598 } | 23930 } |
| 23599 if (query.length > 0) { | 23931 if (query.length > 0) { |
| 23600 for (var part in query.split("&")) { | 23932 for (var part in query.split("&")) { |
| 23601 var keyvalue = part.split("="); | 23933 var keyvalue = part.split("="); |
| 23602 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 23934 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23603 } | 23935 } |
| 23604 } | 23936 } |
| 23937 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23605 | 23938 |
| 23606 | 23939 |
| 23607 var h = { | 23940 var h = { |
| 23608 "content-type" : "application/json; charset=utf-8", | 23941 "content-type" : "application/json; charset=utf-8", |
| 23609 }; | 23942 }; |
| 23610 var resp = convert.JSON.encode(buildOperation()); | 23943 var resp = convert.JSON.encode(buildOperation()); |
| 23611 return new async.Future.value(stringResponse(200, h, resp)); | 23944 return new async.Future.value(stringResponse(200, h, resp)); |
| 23612 }), true); | 23945 }), true); |
| 23613 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 23946 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 23614 checkOperation(response); | 23947 checkOperation(response); |
| 23615 }))); | 23948 }))); |
| 23616 }); | 23949 }); |
| 23617 | 23950 |
| 23618 unittest.test("method--list", () { | 23951 unittest.test("method--list", () { |
| 23619 | 23952 |
| 23620 var mock = new HttpServerMock(); | 23953 var mock = new HttpServerMock(); |
| 23621 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; | 23954 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; |
| 23622 var arg_project = "foo"; | 23955 var arg_project = "foo"; |
| 23623 var arg_filter = "foo"; | 23956 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23665 }))); | 23998 }))); |
| 23666 }); | 23999 }); |
| 23667 | 24000 |
| 23668 unittest.test("method--setSslCertificates", () { | 24001 unittest.test("method--setSslCertificates", () { |
| 23669 | 24002 |
| 23670 var mock = new HttpServerMock(); | 24003 var mock = new HttpServerMock(); |
| 23671 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; | 24004 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; |
| 23672 var arg_request = buildTargetHttpsProxiesSetSslCertificatesRequest(); | 24005 var arg_request = buildTargetHttpsProxiesSetSslCertificatesRequest(); |
| 23673 var arg_project = "foo"; | 24006 var arg_project = "foo"; |
| 23674 var arg_targetHttpsProxy = "foo"; | 24007 var arg_targetHttpsProxy = "foo"; |
| 24008 var arg_requestId = "foo"; |
| 23675 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24009 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23676 var obj = new api.TargetHttpsProxiesSetSslCertificatesRequest.fromJson(j
son); | 24010 var obj = new api.TargetHttpsProxiesSetSslCertificatesRequest.fromJson(j
son); |
| 23677 checkTargetHttpsProxiesSetSslCertificatesRequest(obj); | 24011 checkTargetHttpsProxiesSetSslCertificatesRequest(obj); |
| 23678 | 24012 |
| 23679 var path = (req.url).path; | 24013 var path = (req.url).path; |
| 23680 var pathOffset = 0; | 24014 var pathOffset = 0; |
| 23681 var index; | 24015 var index; |
| 23682 var subPart; | 24016 var subPart; |
| 23683 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23684 pathOffset += 1; | 24018 pathOffset += 1; |
| 23685 | 24019 |
| 23686 var query = (req.url).query; | 24020 var query = (req.url).query; |
| 23687 var queryOffset = 0; | 24021 var queryOffset = 0; |
| 23688 var queryMap = {}; | 24022 var queryMap = {}; |
| 23689 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24023 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23690 parseBool(n) { | 24024 parseBool(n) { |
| 23691 if (n == "true") return true; | 24025 if (n == "true") return true; |
| 23692 if (n == "false") return false; | 24026 if (n == "false") return false; |
| 23693 if (n == null) return null; | 24027 if (n == null) return null; |
| 23694 throw new core.ArgumentError("Invalid boolean: $n"); | 24028 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23695 } | 24029 } |
| 23696 if (query.length > 0) { | 24030 if (query.length > 0) { |
| 23697 for (var part in query.split("&")) { | 24031 for (var part in query.split("&")) { |
| 23698 var keyvalue = part.split("="); | 24032 var keyvalue = part.split("="); |
| 23699 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24033 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23700 } | 24034 } |
| 23701 } | 24035 } |
| 24036 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23702 | 24037 |
| 23703 | 24038 |
| 23704 var h = { | 24039 var h = { |
| 23705 "content-type" : "application/json; charset=utf-8", | 24040 "content-type" : "application/json; charset=utf-8", |
| 23706 }; | 24041 }; |
| 23707 var resp = convert.JSON.encode(buildOperation()); | 24042 var resp = convert.JSON.encode(buildOperation()); |
| 23708 return new async.Future.value(stringResponse(200, h, resp)); | 24043 return new async.Future.value(stringResponse(200, h, resp)); |
| 23709 }), true); | 24044 }), true); |
| 23710 res.setSslCertificates(arg_request, arg_project, arg_targetHttpsProxy).the
n(unittest.expectAsync1(((api.Operation response) { | 24045 res.setSslCertificates(arg_request, arg_project, arg_targetHttpsProxy, req
uestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 23711 checkOperation(response); | 24046 checkOperation(response); |
| 23712 }))); | 24047 }))); |
| 23713 }); | 24048 }); |
| 23714 | 24049 |
| 23715 unittest.test("method--setUrlMap", () { | 24050 unittest.test("method--setUrlMap", () { |
| 23716 | 24051 |
| 23717 var mock = new HttpServerMock(); | 24052 var mock = new HttpServerMock(); |
| 23718 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; | 24053 api.TargetHttpsProxiesResourceApi res = new api.ComputeApi(mock).targetHtt
psProxies; |
| 23719 var arg_request = buildUrlMapReference(); | 24054 var arg_request = buildUrlMapReference(); |
| 23720 var arg_project = "foo"; | 24055 var arg_project = "foo"; |
| 23721 var arg_targetHttpsProxy = "foo"; | 24056 var arg_targetHttpsProxy = "foo"; |
| 24057 var arg_requestId = "foo"; |
| 23722 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24058 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23723 var obj = new api.UrlMapReference.fromJson(json); | 24059 var obj = new api.UrlMapReference.fromJson(json); |
| 23724 checkUrlMapReference(obj); | 24060 checkUrlMapReference(obj); |
| 23725 | 24061 |
| 23726 var path = (req.url).path; | 24062 var path = (req.url).path; |
| 23727 var pathOffset = 0; | 24063 var pathOffset = 0; |
| 23728 var index; | 24064 var index; |
| 23729 var subPart; | 24065 var subPart; |
| 23730 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23731 pathOffset += 1; | 24067 pathOffset += 1; |
| 23732 | 24068 |
| 23733 var query = (req.url).query; | 24069 var query = (req.url).query; |
| 23734 var queryOffset = 0; | 24070 var queryOffset = 0; |
| 23735 var queryMap = {}; | 24071 var queryMap = {}; |
| 23736 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24072 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23737 parseBool(n) { | 24073 parseBool(n) { |
| 23738 if (n == "true") return true; | 24074 if (n == "true") return true; |
| 23739 if (n == "false") return false; | 24075 if (n == "false") return false; |
| 23740 if (n == null) return null; | 24076 if (n == null) return null; |
| 23741 throw new core.ArgumentError("Invalid boolean: $n"); | 24077 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23742 } | 24078 } |
| 23743 if (query.length > 0) { | 24079 if (query.length > 0) { |
| 23744 for (var part in query.split("&")) { | 24080 for (var part in query.split("&")) { |
| 23745 var keyvalue = part.split("="); | 24081 var keyvalue = part.split("="); |
| 23746 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24082 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23747 } | 24083 } |
| 23748 } | 24084 } |
| 24085 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23749 | 24086 |
| 23750 | 24087 |
| 23751 var h = { | 24088 var h = { |
| 23752 "content-type" : "application/json; charset=utf-8", | 24089 "content-type" : "application/json; charset=utf-8", |
| 23753 }; | 24090 }; |
| 23754 var resp = convert.JSON.encode(buildOperation()); | 24091 var resp = convert.JSON.encode(buildOperation()); |
| 23755 return new async.Future.value(stringResponse(200, h, resp)); | 24092 return new async.Future.value(stringResponse(200, h, resp)); |
| 23756 }), true); | 24093 }), true); |
| 23757 res.setUrlMap(arg_request, arg_project, arg_targetHttpsProxy).then(unittes
t.expectAsync1(((api.Operation response) { | 24094 res.setUrlMap(arg_request, arg_project, arg_targetHttpsProxy, requestId: a
rg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 23758 checkOperation(response); | 24095 checkOperation(response); |
| 23759 }))); | 24096 }))); |
| 23760 }); | 24097 }); |
| 23761 | 24098 |
| 23762 }); | 24099 }); |
| 23763 | 24100 |
| 23764 | 24101 |
| 23765 unittest.group("resource-TargetInstancesResourceApi", () { | 24102 unittest.group("resource-TargetInstancesResourceApi", () { |
| 23766 unittest.test("method--aggregatedList", () { | 24103 unittest.test("method--aggregatedList", () { |
| 23767 | 24104 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23813 }))); | 24150 }))); |
| 23814 }); | 24151 }); |
| 23815 | 24152 |
| 23816 unittest.test("method--delete", () { | 24153 unittest.test("method--delete", () { |
| 23817 | 24154 |
| 23818 var mock = new HttpServerMock(); | 24155 var mock = new HttpServerMock(); |
| 23819 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 24156 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 23820 var arg_project = "foo"; | 24157 var arg_project = "foo"; |
| 23821 var arg_zone = "foo"; | 24158 var arg_zone = "foo"; |
| 23822 var arg_targetInstance = "foo"; | 24159 var arg_targetInstance = "foo"; |
| 24160 var arg_requestId = "foo"; |
| 23823 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24161 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23824 var path = (req.url).path; | 24162 var path = (req.url).path; |
| 23825 var pathOffset = 0; | 24163 var pathOffset = 0; |
| 23826 var index; | 24164 var index; |
| 23827 var subPart; | 24165 var subPart; |
| 23828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24166 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23829 pathOffset += 1; | 24167 pathOffset += 1; |
| 23830 | 24168 |
| 23831 var query = (req.url).query; | 24169 var query = (req.url).query; |
| 23832 var queryOffset = 0; | 24170 var queryOffset = 0; |
| 23833 var queryMap = {}; | 24171 var queryMap = {}; |
| 23834 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24172 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23835 parseBool(n) { | 24173 parseBool(n) { |
| 23836 if (n == "true") return true; | 24174 if (n == "true") return true; |
| 23837 if (n == "false") return false; | 24175 if (n == "false") return false; |
| 23838 if (n == null) return null; | 24176 if (n == null) return null; |
| 23839 throw new core.ArgumentError("Invalid boolean: $n"); | 24177 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23840 } | 24178 } |
| 23841 if (query.length > 0) { | 24179 if (query.length > 0) { |
| 23842 for (var part in query.split("&")) { | 24180 for (var part in query.split("&")) { |
| 23843 var keyvalue = part.split("="); | 24181 var keyvalue = part.split("="); |
| 23844 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24182 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23845 } | 24183 } |
| 23846 } | 24184 } |
| 24185 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23847 | 24186 |
| 23848 | 24187 |
| 23849 var h = { | 24188 var h = { |
| 23850 "content-type" : "application/json; charset=utf-8", | 24189 "content-type" : "application/json; charset=utf-8", |
| 23851 }; | 24190 }; |
| 23852 var resp = convert.JSON.encode(buildOperation()); | 24191 var resp = convert.JSON.encode(buildOperation()); |
| 23853 return new async.Future.value(stringResponse(200, h, resp)); | 24192 return new async.Future.value(stringResponse(200, h, resp)); |
| 23854 }), true); | 24193 }), true); |
| 23855 res.delete(arg_project, arg_zone, arg_targetInstance).then(unittest.expect
Async1(((api.Operation response) { | 24194 res.delete(arg_project, arg_zone, arg_targetInstance, requestId: arg_reque
stId).then(unittest.expectAsync1(((api.Operation response) { |
| 23856 checkOperation(response); | 24195 checkOperation(response); |
| 23857 }))); | 24196 }))); |
| 23858 }); | 24197 }); |
| 23859 | 24198 |
| 23860 unittest.test("method--get", () { | 24199 unittest.test("method--get", () { |
| 23861 | 24200 |
| 23862 var mock = new HttpServerMock(); | 24201 var mock = new HttpServerMock(); |
| 23863 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 24202 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 23864 var arg_project = "foo"; | 24203 var arg_project = "foo"; |
| 23865 var arg_zone = "foo"; | 24204 var arg_zone = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23901 }))); | 24240 }))); |
| 23902 }); | 24241 }); |
| 23903 | 24242 |
| 23904 unittest.test("method--insert", () { | 24243 unittest.test("method--insert", () { |
| 23905 | 24244 |
| 23906 var mock = new HttpServerMock(); | 24245 var mock = new HttpServerMock(); |
| 23907 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 24246 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 23908 var arg_request = buildTargetInstance(); | 24247 var arg_request = buildTargetInstance(); |
| 23909 var arg_project = "foo"; | 24248 var arg_project = "foo"; |
| 23910 var arg_zone = "foo"; | 24249 var arg_zone = "foo"; |
| 24250 var arg_requestId = "foo"; |
| 23911 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24251 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 23912 var obj = new api.TargetInstance.fromJson(json); | 24252 var obj = new api.TargetInstance.fromJson(json); |
| 23913 checkTargetInstance(obj); | 24253 checkTargetInstance(obj); |
| 23914 | 24254 |
| 23915 var path = (req.url).path; | 24255 var path = (req.url).path; |
| 23916 var pathOffset = 0; | 24256 var pathOffset = 0; |
| 23917 var index; | 24257 var index; |
| 23918 var subPart; | 24258 var subPart; |
| 23919 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24259 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 23920 pathOffset += 1; | 24260 pathOffset += 1; |
| 23921 | 24261 |
| 23922 var query = (req.url).query; | 24262 var query = (req.url).query; |
| 23923 var queryOffset = 0; | 24263 var queryOffset = 0; |
| 23924 var queryMap = {}; | 24264 var queryMap = {}; |
| 23925 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24265 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 23926 parseBool(n) { | 24266 parseBool(n) { |
| 23927 if (n == "true") return true; | 24267 if (n == "true") return true; |
| 23928 if (n == "false") return false; | 24268 if (n == "false") return false; |
| 23929 if (n == null) return null; | 24269 if (n == null) return null; |
| 23930 throw new core.ArgumentError("Invalid boolean: $n"); | 24270 throw new core.ArgumentError("Invalid boolean: $n"); |
| 23931 } | 24271 } |
| 23932 if (query.length > 0) { | 24272 if (query.length > 0) { |
| 23933 for (var part in query.split("&")) { | 24273 for (var part in query.split("&")) { |
| 23934 var keyvalue = part.split("="); | 24274 var keyvalue = part.split("="); |
| 23935 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24275 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 23936 } | 24276 } |
| 23937 } | 24277 } |
| 24278 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 23938 | 24279 |
| 23939 | 24280 |
| 23940 var h = { | 24281 var h = { |
| 23941 "content-type" : "application/json; charset=utf-8", | 24282 "content-type" : "application/json; charset=utf-8", |
| 23942 }; | 24283 }; |
| 23943 var resp = convert.JSON.encode(buildOperation()); | 24284 var resp = convert.JSON.encode(buildOperation()); |
| 23944 return new async.Future.value(stringResponse(200, h, resp)); | 24285 return new async.Future.value(stringResponse(200, h, resp)); |
| 23945 }), true); | 24286 }), true); |
| 23946 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync1(
((api.Operation response) { | 24287 res.insert(arg_request, arg_project, arg_zone, requestId: arg_requestId).t
hen(unittest.expectAsync1(((api.Operation response) { |
| 23947 checkOperation(response); | 24288 checkOperation(response); |
| 23948 }))); | 24289 }))); |
| 23949 }); | 24290 }); |
| 23950 | 24291 |
| 23951 unittest.test("method--list", () { | 24292 unittest.test("method--list", () { |
| 23952 | 24293 |
| 23953 var mock = new HttpServerMock(); | 24294 var mock = new HttpServerMock(); |
| 23954 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 24295 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 23955 var arg_project = "foo"; | 24296 var arg_project = "foo"; |
| 23956 var arg_zone = "foo"; | 24297 var arg_zone = "foo"; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24004 | 24345 |
| 24005 unittest.group("resource-TargetPoolsResourceApi", () { | 24346 unittest.group("resource-TargetPoolsResourceApi", () { |
| 24006 unittest.test("method--addHealthCheck", () { | 24347 unittest.test("method--addHealthCheck", () { |
| 24007 | 24348 |
| 24008 var mock = new HttpServerMock(); | 24349 var mock = new HttpServerMock(); |
| 24009 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24350 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24010 var arg_request = buildTargetPoolsAddHealthCheckRequest(); | 24351 var arg_request = buildTargetPoolsAddHealthCheckRequest(); |
| 24011 var arg_project = "foo"; | 24352 var arg_project = "foo"; |
| 24012 var arg_region = "foo"; | 24353 var arg_region = "foo"; |
| 24013 var arg_targetPool = "foo"; | 24354 var arg_targetPool = "foo"; |
| 24355 var arg_requestId = "foo"; |
| 24014 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24356 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24015 var obj = new api.TargetPoolsAddHealthCheckRequest.fromJson(json); | 24357 var obj = new api.TargetPoolsAddHealthCheckRequest.fromJson(json); |
| 24016 checkTargetPoolsAddHealthCheckRequest(obj); | 24358 checkTargetPoolsAddHealthCheckRequest(obj); |
| 24017 | 24359 |
| 24018 var path = (req.url).path; | 24360 var path = (req.url).path; |
| 24019 var pathOffset = 0; | 24361 var pathOffset = 0; |
| 24020 var index; | 24362 var index; |
| 24021 var subPart; | 24363 var subPart; |
| 24022 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24364 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24023 pathOffset += 1; | 24365 pathOffset += 1; |
| 24024 | 24366 |
| 24025 var query = (req.url).query; | 24367 var query = (req.url).query; |
| 24026 var queryOffset = 0; | 24368 var queryOffset = 0; |
| 24027 var queryMap = {}; | 24369 var queryMap = {}; |
| 24028 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24370 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24029 parseBool(n) { | 24371 parseBool(n) { |
| 24030 if (n == "true") return true; | 24372 if (n == "true") return true; |
| 24031 if (n == "false") return false; | 24373 if (n == "false") return false; |
| 24032 if (n == null) return null; | 24374 if (n == null) return null; |
| 24033 throw new core.ArgumentError("Invalid boolean: $n"); | 24375 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24034 } | 24376 } |
| 24035 if (query.length > 0) { | 24377 if (query.length > 0) { |
| 24036 for (var part in query.split("&")) { | 24378 for (var part in query.split("&")) { |
| 24037 var keyvalue = part.split("="); | 24379 var keyvalue = part.split("="); |
| 24038 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24380 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24039 } | 24381 } |
| 24040 } | 24382 } |
| 24383 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24041 | 24384 |
| 24042 | 24385 |
| 24043 var h = { | 24386 var h = { |
| 24044 "content-type" : "application/json; charset=utf-8", | 24387 "content-type" : "application/json; charset=utf-8", |
| 24045 }; | 24388 }; |
| 24046 var resp = convert.JSON.encode(buildOperation()); | 24389 var resp = convert.JSON.encode(buildOperation()); |
| 24047 return new async.Future.value(stringResponse(200, h, resp)); | 24390 return new async.Future.value(stringResponse(200, h, resp)); |
| 24048 }), true); | 24391 }), true); |
| 24049 res.addHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).t
hen(unittest.expectAsync1(((api.Operation response) { | 24392 res.addHealthCheck(arg_request, arg_project, arg_region, arg_targetPool, r
equestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 24050 checkOperation(response); | 24393 checkOperation(response); |
| 24051 }))); | 24394 }))); |
| 24052 }); | 24395 }); |
| 24053 | 24396 |
| 24054 unittest.test("method--addInstance", () { | 24397 unittest.test("method--addInstance", () { |
| 24055 | 24398 |
| 24056 var mock = new HttpServerMock(); | 24399 var mock = new HttpServerMock(); |
| 24057 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24400 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24058 var arg_request = buildTargetPoolsAddInstanceRequest(); | 24401 var arg_request = buildTargetPoolsAddInstanceRequest(); |
| 24059 var arg_project = "foo"; | 24402 var arg_project = "foo"; |
| 24060 var arg_region = "foo"; | 24403 var arg_region = "foo"; |
| 24061 var arg_targetPool = "foo"; | 24404 var arg_targetPool = "foo"; |
| 24405 var arg_requestId = "foo"; |
| 24062 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24406 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24063 var obj = new api.TargetPoolsAddInstanceRequest.fromJson(json); | 24407 var obj = new api.TargetPoolsAddInstanceRequest.fromJson(json); |
| 24064 checkTargetPoolsAddInstanceRequest(obj); | 24408 checkTargetPoolsAddInstanceRequest(obj); |
| 24065 | 24409 |
| 24066 var path = (req.url).path; | 24410 var path = (req.url).path; |
| 24067 var pathOffset = 0; | 24411 var pathOffset = 0; |
| 24068 var index; | 24412 var index; |
| 24069 var subPart; | 24413 var subPart; |
| 24070 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24414 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24071 pathOffset += 1; | 24415 pathOffset += 1; |
| 24072 | 24416 |
| 24073 var query = (req.url).query; | 24417 var query = (req.url).query; |
| 24074 var queryOffset = 0; | 24418 var queryOffset = 0; |
| 24075 var queryMap = {}; | 24419 var queryMap = {}; |
| 24076 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24420 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24077 parseBool(n) { | 24421 parseBool(n) { |
| 24078 if (n == "true") return true; | 24422 if (n == "true") return true; |
| 24079 if (n == "false") return false; | 24423 if (n == "false") return false; |
| 24080 if (n == null) return null; | 24424 if (n == null) return null; |
| 24081 throw new core.ArgumentError("Invalid boolean: $n"); | 24425 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24082 } | 24426 } |
| 24083 if (query.length > 0) { | 24427 if (query.length > 0) { |
| 24084 for (var part in query.split("&")) { | 24428 for (var part in query.split("&")) { |
| 24085 var keyvalue = part.split("="); | 24429 var keyvalue = part.split("="); |
| 24086 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24087 } | 24431 } |
| 24088 } | 24432 } |
| 24433 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24089 | 24434 |
| 24090 | 24435 |
| 24091 var h = { | 24436 var h = { |
| 24092 "content-type" : "application/json; charset=utf-8", | 24437 "content-type" : "application/json; charset=utf-8", |
| 24093 }; | 24438 }; |
| 24094 var resp = convert.JSON.encode(buildOperation()); | 24439 var resp = convert.JSON.encode(buildOperation()); |
| 24095 return new async.Future.value(stringResponse(200, h, resp)); | 24440 return new async.Future.value(stringResponse(200, h, resp)); |
| 24096 }), true); | 24441 }), true); |
| 24097 res.addInstance(arg_request, arg_project, arg_region, arg_targetPool).then
(unittest.expectAsync1(((api.Operation response) { | 24442 res.addInstance(arg_request, arg_project, arg_region, arg_targetPool, requ
estId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 24098 checkOperation(response); | 24443 checkOperation(response); |
| 24099 }))); | 24444 }))); |
| 24100 }); | 24445 }); |
| 24101 | 24446 |
| 24102 unittest.test("method--aggregatedList", () { | 24447 unittest.test("method--aggregatedList", () { |
| 24103 | 24448 |
| 24104 var mock = new HttpServerMock(); | 24449 var mock = new HttpServerMock(); |
| 24105 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24450 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24106 var arg_project = "foo"; | 24451 var arg_project = "foo"; |
| 24107 var arg_filter = "foo"; | 24452 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24149 }))); | 24494 }))); |
| 24150 }); | 24495 }); |
| 24151 | 24496 |
| 24152 unittest.test("method--delete", () { | 24497 unittest.test("method--delete", () { |
| 24153 | 24498 |
| 24154 var mock = new HttpServerMock(); | 24499 var mock = new HttpServerMock(); |
| 24155 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24500 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24156 var arg_project = "foo"; | 24501 var arg_project = "foo"; |
| 24157 var arg_region = "foo"; | 24502 var arg_region = "foo"; |
| 24158 var arg_targetPool = "foo"; | 24503 var arg_targetPool = "foo"; |
| 24504 var arg_requestId = "foo"; |
| 24159 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24505 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24160 var path = (req.url).path; | 24506 var path = (req.url).path; |
| 24161 var pathOffset = 0; | 24507 var pathOffset = 0; |
| 24162 var index; | 24508 var index; |
| 24163 var subPart; | 24509 var subPart; |
| 24164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24510 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24165 pathOffset += 1; | 24511 pathOffset += 1; |
| 24166 | 24512 |
| 24167 var query = (req.url).query; | 24513 var query = (req.url).query; |
| 24168 var queryOffset = 0; | 24514 var queryOffset = 0; |
| 24169 var queryMap = {}; | 24515 var queryMap = {}; |
| 24170 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24516 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24171 parseBool(n) { | 24517 parseBool(n) { |
| 24172 if (n == "true") return true; | 24518 if (n == "true") return true; |
| 24173 if (n == "false") return false; | 24519 if (n == "false") return false; |
| 24174 if (n == null) return null; | 24520 if (n == null) return null; |
| 24175 throw new core.ArgumentError("Invalid boolean: $n"); | 24521 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24176 } | 24522 } |
| 24177 if (query.length > 0) { | 24523 if (query.length > 0) { |
| 24178 for (var part in query.split("&")) { | 24524 for (var part in query.split("&")) { |
| 24179 var keyvalue = part.split("="); | 24525 var keyvalue = part.split("="); |
| 24180 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24526 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24181 } | 24527 } |
| 24182 } | 24528 } |
| 24529 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24183 | 24530 |
| 24184 | 24531 |
| 24185 var h = { | 24532 var h = { |
| 24186 "content-type" : "application/json; charset=utf-8", | 24533 "content-type" : "application/json; charset=utf-8", |
| 24187 }; | 24534 }; |
| 24188 var resp = convert.JSON.encode(buildOperation()); | 24535 var resp = convert.JSON.encode(buildOperation()); |
| 24189 return new async.Future.value(stringResponse(200, h, resp)); | 24536 return new async.Future.value(stringResponse(200, h, resp)); |
| 24190 }), true); | 24537 }), true); |
| 24191 res.delete(arg_project, arg_region, arg_targetPool).then(unittest.expectAs
ync1(((api.Operation response) { | 24538 res.delete(arg_project, arg_region, arg_targetPool, requestId: arg_request
Id).then(unittest.expectAsync1(((api.Operation response) { |
| 24192 checkOperation(response); | 24539 checkOperation(response); |
| 24193 }))); | 24540 }))); |
| 24194 }); | 24541 }); |
| 24195 | 24542 |
| 24196 unittest.test("method--get", () { | 24543 unittest.test("method--get", () { |
| 24197 | 24544 |
| 24198 var mock = new HttpServerMock(); | 24545 var mock = new HttpServerMock(); |
| 24199 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24546 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24200 var arg_project = "foo"; | 24547 var arg_project = "foo"; |
| 24201 var arg_region = "foo"; | 24548 var arg_region = "foo"; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24285 }))); | 24632 }))); |
| 24286 }); | 24633 }); |
| 24287 | 24634 |
| 24288 unittest.test("method--insert", () { | 24635 unittest.test("method--insert", () { |
| 24289 | 24636 |
| 24290 var mock = new HttpServerMock(); | 24637 var mock = new HttpServerMock(); |
| 24291 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24638 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24292 var arg_request = buildTargetPool(); | 24639 var arg_request = buildTargetPool(); |
| 24293 var arg_project = "foo"; | 24640 var arg_project = "foo"; |
| 24294 var arg_region = "foo"; | 24641 var arg_region = "foo"; |
| 24642 var arg_requestId = "foo"; |
| 24295 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24643 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24296 var obj = new api.TargetPool.fromJson(json); | 24644 var obj = new api.TargetPool.fromJson(json); |
| 24297 checkTargetPool(obj); | 24645 checkTargetPool(obj); |
| 24298 | 24646 |
| 24299 var path = (req.url).path; | 24647 var path = (req.url).path; |
| 24300 var pathOffset = 0; | 24648 var pathOffset = 0; |
| 24301 var index; | 24649 var index; |
| 24302 var subPart; | 24650 var subPart; |
| 24303 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24651 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24304 pathOffset += 1; | 24652 pathOffset += 1; |
| 24305 | 24653 |
| 24306 var query = (req.url).query; | 24654 var query = (req.url).query; |
| 24307 var queryOffset = 0; | 24655 var queryOffset = 0; |
| 24308 var queryMap = {}; | 24656 var queryMap = {}; |
| 24309 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24657 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24310 parseBool(n) { | 24658 parseBool(n) { |
| 24311 if (n == "true") return true; | 24659 if (n == "true") return true; |
| 24312 if (n == "false") return false; | 24660 if (n == "false") return false; |
| 24313 if (n == null) return null; | 24661 if (n == null) return null; |
| 24314 throw new core.ArgumentError("Invalid boolean: $n"); | 24662 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24315 } | 24663 } |
| 24316 if (query.length > 0) { | 24664 if (query.length > 0) { |
| 24317 for (var part in query.split("&")) { | 24665 for (var part in query.split("&")) { |
| 24318 var keyvalue = part.split("="); | 24666 var keyvalue = part.split("="); |
| 24319 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24667 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24320 } | 24668 } |
| 24321 } | 24669 } |
| 24670 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24322 | 24671 |
| 24323 | 24672 |
| 24324 var h = { | 24673 var h = { |
| 24325 "content-type" : "application/json; charset=utf-8", | 24674 "content-type" : "application/json; charset=utf-8", |
| 24326 }; | 24675 }; |
| 24327 var resp = convert.JSON.encode(buildOperation()); | 24676 var resp = convert.JSON.encode(buildOperation()); |
| 24328 return new async.Future.value(stringResponse(200, h, resp)); | 24677 return new async.Future.value(stringResponse(200, h, resp)); |
| 24329 }), true); | 24678 }), true); |
| 24330 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 24679 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 24331 checkOperation(response); | 24680 checkOperation(response); |
| 24332 }))); | 24681 }))); |
| 24333 }); | 24682 }); |
| 24334 | 24683 |
| 24335 unittest.test("method--list", () { | 24684 unittest.test("method--list", () { |
| 24336 | 24685 |
| 24337 var mock = new HttpServerMock(); | 24686 var mock = new HttpServerMock(); |
| 24338 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24687 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24339 var arg_project = "foo"; | 24688 var arg_project = "foo"; |
| 24340 var arg_region = "foo"; | 24689 var arg_region = "foo"; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24384 }); | 24733 }); |
| 24385 | 24734 |
| 24386 unittest.test("method--removeHealthCheck", () { | 24735 unittest.test("method--removeHealthCheck", () { |
| 24387 | 24736 |
| 24388 var mock = new HttpServerMock(); | 24737 var mock = new HttpServerMock(); |
| 24389 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24738 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24390 var arg_request = buildTargetPoolsRemoveHealthCheckRequest(); | 24739 var arg_request = buildTargetPoolsRemoveHealthCheckRequest(); |
| 24391 var arg_project = "foo"; | 24740 var arg_project = "foo"; |
| 24392 var arg_region = "foo"; | 24741 var arg_region = "foo"; |
| 24393 var arg_targetPool = "foo"; | 24742 var arg_targetPool = "foo"; |
| 24743 var arg_requestId = "foo"; |
| 24394 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24744 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24395 var obj = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(json); | 24745 var obj = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(json); |
| 24396 checkTargetPoolsRemoveHealthCheckRequest(obj); | 24746 checkTargetPoolsRemoveHealthCheckRequest(obj); |
| 24397 | 24747 |
| 24398 var path = (req.url).path; | 24748 var path = (req.url).path; |
| 24399 var pathOffset = 0; | 24749 var pathOffset = 0; |
| 24400 var index; | 24750 var index; |
| 24401 var subPart; | 24751 var subPart; |
| 24402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24752 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24403 pathOffset += 1; | 24753 pathOffset += 1; |
| 24404 | 24754 |
| 24405 var query = (req.url).query; | 24755 var query = (req.url).query; |
| 24406 var queryOffset = 0; | 24756 var queryOffset = 0; |
| 24407 var queryMap = {}; | 24757 var queryMap = {}; |
| 24408 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24758 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24409 parseBool(n) { | 24759 parseBool(n) { |
| 24410 if (n == "true") return true; | 24760 if (n == "true") return true; |
| 24411 if (n == "false") return false; | 24761 if (n == "false") return false; |
| 24412 if (n == null) return null; | 24762 if (n == null) return null; |
| 24413 throw new core.ArgumentError("Invalid boolean: $n"); | 24763 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24414 } | 24764 } |
| 24415 if (query.length > 0) { | 24765 if (query.length > 0) { |
| 24416 for (var part in query.split("&")) { | 24766 for (var part in query.split("&")) { |
| 24417 var keyvalue = part.split("="); | 24767 var keyvalue = part.split("="); |
| 24418 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24419 } | 24769 } |
| 24420 } | 24770 } |
| 24771 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24421 | 24772 |
| 24422 | 24773 |
| 24423 var h = { | 24774 var h = { |
| 24424 "content-type" : "application/json; charset=utf-8", | 24775 "content-type" : "application/json; charset=utf-8", |
| 24425 }; | 24776 }; |
| 24426 var resp = convert.JSON.encode(buildOperation()); | 24777 var resp = convert.JSON.encode(buildOperation()); |
| 24427 return new async.Future.value(stringResponse(200, h, resp)); | 24778 return new async.Future.value(stringResponse(200, h, resp)); |
| 24428 }), true); | 24779 }), true); |
| 24429 res.removeHealthCheck(arg_request, arg_project, arg_region, arg_targetPool
).then(unittest.expectAsync1(((api.Operation response) { | 24780 res.removeHealthCheck(arg_request, arg_project, arg_region, arg_targetPool
, requestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response)
{ |
| 24430 checkOperation(response); | 24781 checkOperation(response); |
| 24431 }))); | 24782 }))); |
| 24432 }); | 24783 }); |
| 24433 | 24784 |
| 24434 unittest.test("method--removeInstance", () { | 24785 unittest.test("method--removeInstance", () { |
| 24435 | 24786 |
| 24436 var mock = new HttpServerMock(); | 24787 var mock = new HttpServerMock(); |
| 24437 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24788 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24438 var arg_request = buildTargetPoolsRemoveInstanceRequest(); | 24789 var arg_request = buildTargetPoolsRemoveInstanceRequest(); |
| 24439 var arg_project = "foo"; | 24790 var arg_project = "foo"; |
| 24440 var arg_region = "foo"; | 24791 var arg_region = "foo"; |
| 24441 var arg_targetPool = "foo"; | 24792 var arg_targetPool = "foo"; |
| 24793 var arg_requestId = "foo"; |
| 24442 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24794 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24443 var obj = new api.TargetPoolsRemoveInstanceRequest.fromJson(json); | 24795 var obj = new api.TargetPoolsRemoveInstanceRequest.fromJson(json); |
| 24444 checkTargetPoolsRemoveInstanceRequest(obj); | 24796 checkTargetPoolsRemoveInstanceRequest(obj); |
| 24445 | 24797 |
| 24446 var path = (req.url).path; | 24798 var path = (req.url).path; |
| 24447 var pathOffset = 0; | 24799 var pathOffset = 0; |
| 24448 var index; | 24800 var index; |
| 24449 var subPart; | 24801 var subPart; |
| 24450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24802 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24451 pathOffset += 1; | 24803 pathOffset += 1; |
| 24452 | 24804 |
| 24453 var query = (req.url).query; | 24805 var query = (req.url).query; |
| 24454 var queryOffset = 0; | 24806 var queryOffset = 0; |
| 24455 var queryMap = {}; | 24807 var queryMap = {}; |
| 24456 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24808 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24457 parseBool(n) { | 24809 parseBool(n) { |
| 24458 if (n == "true") return true; | 24810 if (n == "true") return true; |
| 24459 if (n == "false") return false; | 24811 if (n == "false") return false; |
| 24460 if (n == null) return null; | 24812 if (n == null) return null; |
| 24461 throw new core.ArgumentError("Invalid boolean: $n"); | 24813 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24462 } | 24814 } |
| 24463 if (query.length > 0) { | 24815 if (query.length > 0) { |
| 24464 for (var part in query.split("&")) { | 24816 for (var part in query.split("&")) { |
| 24465 var keyvalue = part.split("="); | 24817 var keyvalue = part.split("="); |
| 24466 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24818 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24467 } | 24819 } |
| 24468 } | 24820 } |
| 24821 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24469 | 24822 |
| 24470 | 24823 |
| 24471 var h = { | 24824 var h = { |
| 24472 "content-type" : "application/json; charset=utf-8", | 24825 "content-type" : "application/json; charset=utf-8", |
| 24473 }; | 24826 }; |
| 24474 var resp = convert.JSON.encode(buildOperation()); | 24827 var resp = convert.JSON.encode(buildOperation()); |
| 24475 return new async.Future.value(stringResponse(200, h, resp)); | 24828 return new async.Future.value(stringResponse(200, h, resp)); |
| 24476 }), true); | 24829 }), true); |
| 24477 res.removeInstance(arg_request, arg_project, arg_region, arg_targetPool).t
hen(unittest.expectAsync1(((api.Operation response) { | 24830 res.removeInstance(arg_request, arg_project, arg_region, arg_targetPool, r
equestId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 24478 checkOperation(response); | 24831 checkOperation(response); |
| 24479 }))); | 24832 }))); |
| 24480 }); | 24833 }); |
| 24481 | 24834 |
| 24482 unittest.test("method--setBackup", () { | 24835 unittest.test("method--setBackup", () { |
| 24483 | 24836 |
| 24484 var mock = new HttpServerMock(); | 24837 var mock = new HttpServerMock(); |
| 24485 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 24838 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 24486 var arg_request = buildTargetReference(); | 24839 var arg_request = buildTargetReference(); |
| 24487 var arg_project = "foo"; | 24840 var arg_project = "foo"; |
| 24488 var arg_region = "foo"; | 24841 var arg_region = "foo"; |
| 24489 var arg_targetPool = "foo"; | 24842 var arg_targetPool = "foo"; |
| 24490 var arg_failoverRatio = 42.0; | 24843 var arg_failoverRatio = 42.0; |
| 24844 var arg_requestId = "foo"; |
| 24491 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24845 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24492 var obj = new api.TargetReference.fromJson(json); | 24846 var obj = new api.TargetReference.fromJson(json); |
| 24493 checkTargetReference(obj); | 24847 checkTargetReference(obj); |
| 24494 | 24848 |
| 24495 var path = (req.url).path; | 24849 var path = (req.url).path; |
| 24496 var pathOffset = 0; | 24850 var pathOffset = 0; |
| 24497 var index; | 24851 var index; |
| 24498 var subPart; | 24852 var subPart; |
| 24499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24853 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24500 pathOffset += 1; | 24854 pathOffset += 1; |
| 24501 | 24855 |
| 24502 var query = (req.url).query; | 24856 var query = (req.url).query; |
| 24503 var queryOffset = 0; | 24857 var queryOffset = 0; |
| 24504 var queryMap = {}; | 24858 var queryMap = {}; |
| 24505 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24859 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24506 parseBool(n) { | 24860 parseBool(n) { |
| 24507 if (n == "true") return true; | 24861 if (n == "true") return true; |
| 24508 if (n == "false") return false; | 24862 if (n == "false") return false; |
| 24509 if (n == null) return null; | 24863 if (n == null) return null; |
| 24510 throw new core.ArgumentError("Invalid boolean: $n"); | 24864 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24511 } | 24865 } |
| 24512 if (query.length > 0) { | 24866 if (query.length > 0) { |
| 24513 for (var part in query.split("&")) { | 24867 for (var part in query.split("&")) { |
| 24514 var keyvalue = part.split("="); | 24868 var keyvalue = part.split("="); |
| 24515 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24869 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24516 } | 24870 } |
| 24517 } | 24871 } |
| 24518 unittest.expect(core.num.parse(queryMap["failoverRatio"].first), unittes
t.equals(arg_failoverRatio)); | 24872 unittest.expect(core.num.parse(queryMap["failoverRatio"].first), unittes
t.equals(arg_failoverRatio)); |
| 24873 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24519 | 24874 |
| 24520 | 24875 |
| 24521 var h = { | 24876 var h = { |
| 24522 "content-type" : "application/json; charset=utf-8", | 24877 "content-type" : "application/json; charset=utf-8", |
| 24523 }; | 24878 }; |
| 24524 var resp = convert.JSON.encode(buildOperation()); | 24879 var resp = convert.JSON.encode(buildOperation()); |
| 24525 return new async.Future.value(stringResponse(200, h, resp)); | 24880 return new async.Future.value(stringResponse(200, h, resp)); |
| 24526 }), true); | 24881 }), true); |
| 24527 res.setBackup(arg_request, arg_project, arg_region, arg_targetPool, failov
erRatio: arg_failoverRatio).then(unittest.expectAsync1(((api.Operation response)
{ | 24882 res.setBackup(arg_request, arg_project, arg_region, arg_targetPool, failov
erRatio: arg_failoverRatio, requestId: arg_requestId).then(unittest.expectAsync1
(((api.Operation response) { |
| 24528 checkOperation(response); | 24883 checkOperation(response); |
| 24529 }))); | 24884 }))); |
| 24530 }); | 24885 }); |
| 24531 | 24886 |
| 24532 }); | 24887 }); |
| 24533 | 24888 |
| 24534 | 24889 |
| 24535 unittest.group("resource-TargetSslProxiesResourceApi", () { | 24890 unittest.group("resource-TargetSslProxiesResourceApi", () { |
| 24536 unittest.test("method--delete", () { | 24891 unittest.test("method--delete", () { |
| 24537 | 24892 |
| 24538 var mock = new HttpServerMock(); | 24893 var mock = new HttpServerMock(); |
| 24539 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 24894 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24540 var arg_project = "foo"; | 24895 var arg_project = "foo"; |
| 24541 var arg_targetSslProxy = "foo"; | 24896 var arg_targetSslProxy = "foo"; |
| 24897 var arg_requestId = "foo"; |
| 24542 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24898 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24543 var path = (req.url).path; | 24899 var path = (req.url).path; |
| 24544 var pathOffset = 0; | 24900 var pathOffset = 0; |
| 24545 var index; | 24901 var index; |
| 24546 var subPart; | 24902 var subPart; |
| 24547 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24903 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24548 pathOffset += 1; | 24904 pathOffset += 1; |
| 24549 | 24905 |
| 24550 var query = (req.url).query; | 24906 var query = (req.url).query; |
| 24551 var queryOffset = 0; | 24907 var queryOffset = 0; |
| 24552 var queryMap = {}; | 24908 var queryMap = {}; |
| 24553 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 24909 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24554 parseBool(n) { | 24910 parseBool(n) { |
| 24555 if (n == "true") return true; | 24911 if (n == "true") return true; |
| 24556 if (n == "false") return false; | 24912 if (n == "false") return false; |
| 24557 if (n == null) return null; | 24913 if (n == null) return null; |
| 24558 throw new core.ArgumentError("Invalid boolean: $n"); | 24914 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24559 } | 24915 } |
| 24560 if (query.length > 0) { | 24916 if (query.length > 0) { |
| 24561 for (var part in query.split("&")) { | 24917 for (var part in query.split("&")) { |
| 24562 var keyvalue = part.split("="); | 24918 var keyvalue = part.split("="); |
| 24563 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 24919 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24564 } | 24920 } |
| 24565 } | 24921 } |
| 24922 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24566 | 24923 |
| 24567 | 24924 |
| 24568 var h = { | 24925 var h = { |
| 24569 "content-type" : "application/json; charset=utf-8", | 24926 "content-type" : "application/json; charset=utf-8", |
| 24570 }; | 24927 }; |
| 24571 var resp = convert.JSON.encode(buildOperation()); | 24928 var resp = convert.JSON.encode(buildOperation()); |
| 24572 return new async.Future.value(stringResponse(200, h, resp)); | 24929 return new async.Future.value(stringResponse(200, h, resp)); |
| 24573 }), true); | 24930 }), true); |
| 24574 res.delete(arg_project, arg_targetSslProxy).then(unittest.expectAsync1(((a
pi.Operation response) { | 24931 res.delete(arg_project, arg_targetSslProxy, requestId: arg_requestId).then
(unittest.expectAsync1(((api.Operation response) { |
| 24575 checkOperation(response); | 24932 checkOperation(response); |
| 24576 }))); | 24933 }))); |
| 24577 }); | 24934 }); |
| 24578 | 24935 |
| 24579 unittest.test("method--get", () { | 24936 unittest.test("method--get", () { |
| 24580 | 24937 |
| 24581 var mock = new HttpServerMock(); | 24938 var mock = new HttpServerMock(); |
| 24582 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 24939 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24583 var arg_project = "foo"; | 24940 var arg_project = "foo"; |
| 24584 var arg_targetSslProxy = "foo"; | 24941 var arg_targetSslProxy = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24618 checkTargetSslProxy(response); | 24975 checkTargetSslProxy(response); |
| 24619 }))); | 24976 }))); |
| 24620 }); | 24977 }); |
| 24621 | 24978 |
| 24622 unittest.test("method--insert", () { | 24979 unittest.test("method--insert", () { |
| 24623 | 24980 |
| 24624 var mock = new HttpServerMock(); | 24981 var mock = new HttpServerMock(); |
| 24625 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 24982 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24626 var arg_request = buildTargetSslProxy(); | 24983 var arg_request = buildTargetSslProxy(); |
| 24627 var arg_project = "foo"; | 24984 var arg_project = "foo"; |
| 24985 var arg_requestId = "foo"; |
| 24628 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 24986 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24629 var obj = new api.TargetSslProxy.fromJson(json); | 24987 var obj = new api.TargetSslProxy.fromJson(json); |
| 24630 checkTargetSslProxy(obj); | 24988 checkTargetSslProxy(obj); |
| 24631 | 24989 |
| 24632 var path = (req.url).path; | 24990 var path = (req.url).path; |
| 24633 var pathOffset = 0; | 24991 var pathOffset = 0; |
| 24634 var index; | 24992 var index; |
| 24635 var subPart; | 24993 var subPart; |
| 24636 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 24994 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24637 pathOffset += 1; | 24995 pathOffset += 1; |
| 24638 | 24996 |
| 24639 var query = (req.url).query; | 24997 var query = (req.url).query; |
| 24640 var queryOffset = 0; | 24998 var queryOffset = 0; |
| 24641 var queryMap = {}; | 24999 var queryMap = {}; |
| 24642 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25000 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24643 parseBool(n) { | 25001 parseBool(n) { |
| 24644 if (n == "true") return true; | 25002 if (n == "true") return true; |
| 24645 if (n == "false") return false; | 25003 if (n == "false") return false; |
| 24646 if (n == null) return null; | 25004 if (n == null) return null; |
| 24647 throw new core.ArgumentError("Invalid boolean: $n"); | 25005 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24648 } | 25006 } |
| 24649 if (query.length > 0) { | 25007 if (query.length > 0) { |
| 24650 for (var part in query.split("&")) { | 25008 for (var part in query.split("&")) { |
| 24651 var keyvalue = part.split("="); | 25009 var keyvalue = part.split("="); |
| 24652 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25010 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24653 } | 25011 } |
| 24654 } | 25012 } |
| 25013 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24655 | 25014 |
| 24656 | 25015 |
| 24657 var h = { | 25016 var h = { |
| 24658 "content-type" : "application/json; charset=utf-8", | 25017 "content-type" : "application/json; charset=utf-8", |
| 24659 }; | 25018 }; |
| 24660 var resp = convert.JSON.encode(buildOperation()); | 25019 var resp = convert.JSON.encode(buildOperation()); |
| 24661 return new async.Future.value(stringResponse(200, h, resp)); | 25020 return new async.Future.value(stringResponse(200, h, resp)); |
| 24662 }), true); | 25021 }), true); |
| 24663 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 25022 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 24664 checkOperation(response); | 25023 checkOperation(response); |
| 24665 }))); | 25024 }))); |
| 24666 }); | 25025 }); |
| 24667 | 25026 |
| 24668 unittest.test("method--list", () { | 25027 unittest.test("method--list", () { |
| 24669 | 25028 |
| 24670 var mock = new HttpServerMock(); | 25029 var mock = new HttpServerMock(); |
| 24671 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 25030 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24672 var arg_project = "foo"; | 25031 var arg_project = "foo"; |
| 24673 var arg_filter = "foo"; | 25032 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24715 }))); | 25074 }))); |
| 24716 }); | 25075 }); |
| 24717 | 25076 |
| 24718 unittest.test("method--setBackendService", () { | 25077 unittest.test("method--setBackendService", () { |
| 24719 | 25078 |
| 24720 var mock = new HttpServerMock(); | 25079 var mock = new HttpServerMock(); |
| 24721 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 25080 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24722 var arg_request = buildTargetSslProxiesSetBackendServiceRequest(); | 25081 var arg_request = buildTargetSslProxiesSetBackendServiceRequest(); |
| 24723 var arg_project = "foo"; | 25082 var arg_project = "foo"; |
| 24724 var arg_targetSslProxy = "foo"; | 25083 var arg_targetSslProxy = "foo"; |
| 25084 var arg_requestId = "foo"; |
| 24725 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25085 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24726 var obj = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(json
); | 25086 var obj = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(json
); |
| 24727 checkTargetSslProxiesSetBackendServiceRequest(obj); | 25087 checkTargetSslProxiesSetBackendServiceRequest(obj); |
| 24728 | 25088 |
| 24729 var path = (req.url).path; | 25089 var path = (req.url).path; |
| 24730 var pathOffset = 0; | 25090 var pathOffset = 0; |
| 24731 var index; | 25091 var index; |
| 24732 var subPart; | 25092 var subPart; |
| 24733 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25093 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24734 pathOffset += 1; | 25094 pathOffset += 1; |
| 24735 | 25095 |
| 24736 var query = (req.url).query; | 25096 var query = (req.url).query; |
| 24737 var queryOffset = 0; | 25097 var queryOffset = 0; |
| 24738 var queryMap = {}; | 25098 var queryMap = {}; |
| 24739 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25099 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24740 parseBool(n) { | 25100 parseBool(n) { |
| 24741 if (n == "true") return true; | 25101 if (n == "true") return true; |
| 24742 if (n == "false") return false; | 25102 if (n == "false") return false; |
| 24743 if (n == null) return null; | 25103 if (n == null) return null; |
| 24744 throw new core.ArgumentError("Invalid boolean: $n"); | 25104 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24745 } | 25105 } |
| 24746 if (query.length > 0) { | 25106 if (query.length > 0) { |
| 24747 for (var part in query.split("&")) { | 25107 for (var part in query.split("&")) { |
| 24748 var keyvalue = part.split("="); | 25108 var keyvalue = part.split("="); |
| 24749 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25109 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24750 } | 25110 } |
| 24751 } | 25111 } |
| 25112 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24752 | 25113 |
| 24753 | 25114 |
| 24754 var h = { | 25115 var h = { |
| 24755 "content-type" : "application/json; charset=utf-8", | 25116 "content-type" : "application/json; charset=utf-8", |
| 24756 }; | 25117 }; |
| 24757 var resp = convert.JSON.encode(buildOperation()); | 25118 var resp = convert.JSON.encode(buildOperation()); |
| 24758 return new async.Future.value(stringResponse(200, h, resp)); | 25119 return new async.Future.value(stringResponse(200, h, resp)); |
| 24759 }), true); | 25120 }), true); |
| 24760 res.setBackendService(arg_request, arg_project, arg_targetSslProxy).then(u
nittest.expectAsync1(((api.Operation response) { | 25121 res.setBackendService(arg_request, arg_project, arg_targetSslProxy, reques
tId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 24761 checkOperation(response); | 25122 checkOperation(response); |
| 24762 }))); | 25123 }))); |
| 24763 }); | 25124 }); |
| 24764 | 25125 |
| 24765 unittest.test("method--setProxyHeader", () { | 25126 unittest.test("method--setProxyHeader", () { |
| 24766 | 25127 |
| 24767 var mock = new HttpServerMock(); | 25128 var mock = new HttpServerMock(); |
| 24768 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 25129 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24769 var arg_request = buildTargetSslProxiesSetProxyHeaderRequest(); | 25130 var arg_request = buildTargetSslProxiesSetProxyHeaderRequest(); |
| 24770 var arg_project = "foo"; | 25131 var arg_project = "foo"; |
| 24771 var arg_targetSslProxy = "foo"; | 25132 var arg_targetSslProxy = "foo"; |
| 25133 var arg_requestId = "foo"; |
| 24772 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25134 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24773 var obj = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(json); | 25135 var obj = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(json); |
| 24774 checkTargetSslProxiesSetProxyHeaderRequest(obj); | 25136 checkTargetSslProxiesSetProxyHeaderRequest(obj); |
| 24775 | 25137 |
| 24776 var path = (req.url).path; | 25138 var path = (req.url).path; |
| 24777 var pathOffset = 0; | 25139 var pathOffset = 0; |
| 24778 var index; | 25140 var index; |
| 24779 var subPart; | 25141 var subPart; |
| 24780 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25142 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24781 pathOffset += 1; | 25143 pathOffset += 1; |
| 24782 | 25144 |
| 24783 var query = (req.url).query; | 25145 var query = (req.url).query; |
| 24784 var queryOffset = 0; | 25146 var queryOffset = 0; |
| 24785 var queryMap = {}; | 25147 var queryMap = {}; |
| 24786 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25148 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24787 parseBool(n) { | 25149 parseBool(n) { |
| 24788 if (n == "true") return true; | 25150 if (n == "true") return true; |
| 24789 if (n == "false") return false; | 25151 if (n == "false") return false; |
| 24790 if (n == null) return null; | 25152 if (n == null) return null; |
| 24791 throw new core.ArgumentError("Invalid boolean: $n"); | 25153 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24792 } | 25154 } |
| 24793 if (query.length > 0) { | 25155 if (query.length > 0) { |
| 24794 for (var part in query.split("&")) { | 25156 for (var part in query.split("&")) { |
| 24795 var keyvalue = part.split("="); | 25157 var keyvalue = part.split("="); |
| 24796 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25158 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24797 } | 25159 } |
| 24798 } | 25160 } |
| 25161 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24799 | 25162 |
| 24800 | 25163 |
| 24801 var h = { | 25164 var h = { |
| 24802 "content-type" : "application/json; charset=utf-8", | 25165 "content-type" : "application/json; charset=utf-8", |
| 24803 }; | 25166 }; |
| 24804 var resp = convert.JSON.encode(buildOperation()); | 25167 var resp = convert.JSON.encode(buildOperation()); |
| 24805 return new async.Future.value(stringResponse(200, h, resp)); | 25168 return new async.Future.value(stringResponse(200, h, resp)); |
| 24806 }), true); | 25169 }), true); |
| 24807 res.setProxyHeader(arg_request, arg_project, arg_targetSslProxy).then(unit
test.expectAsync1(((api.Operation response) { | 25170 res.setProxyHeader(arg_request, arg_project, arg_targetSslProxy, requestId
: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 24808 checkOperation(response); | 25171 checkOperation(response); |
| 24809 }))); | 25172 }))); |
| 24810 }); | 25173 }); |
| 24811 | 25174 |
| 24812 unittest.test("method--setSslCertificates", () { | 25175 unittest.test("method--setSslCertificates", () { |
| 24813 | 25176 |
| 24814 var mock = new HttpServerMock(); | 25177 var mock = new HttpServerMock(); |
| 24815 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; | 25178 api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslPr
oxies; |
| 24816 var arg_request = buildTargetSslProxiesSetSslCertificatesRequest(); | 25179 var arg_request = buildTargetSslProxiesSetSslCertificatesRequest(); |
| 24817 var arg_project = "foo"; | 25180 var arg_project = "foo"; |
| 24818 var arg_targetSslProxy = "foo"; | 25181 var arg_targetSslProxy = "foo"; |
| 25182 var arg_requestId = "foo"; |
| 24819 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25183 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24820 var obj = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(jso
n); | 25184 var obj = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(jso
n); |
| 24821 checkTargetSslProxiesSetSslCertificatesRequest(obj); | 25185 checkTargetSslProxiesSetSslCertificatesRequest(obj); |
| 24822 | 25186 |
| 24823 var path = (req.url).path; | 25187 var path = (req.url).path; |
| 24824 var pathOffset = 0; | 25188 var pathOffset = 0; |
| 24825 var index; | 25189 var index; |
| 24826 var subPart; | 25190 var subPart; |
| 24827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25191 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24828 pathOffset += 1; | 25192 pathOffset += 1; |
| 24829 | 25193 |
| 24830 var query = (req.url).query; | 25194 var query = (req.url).query; |
| 24831 var queryOffset = 0; | 25195 var queryOffset = 0; |
| 24832 var queryMap = {}; | 25196 var queryMap = {}; |
| 24833 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25197 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24834 parseBool(n) { | 25198 parseBool(n) { |
| 24835 if (n == "true") return true; | 25199 if (n == "true") return true; |
| 24836 if (n == "false") return false; | 25200 if (n == "false") return false; |
| 24837 if (n == null) return null; | 25201 if (n == null) return null; |
| 24838 throw new core.ArgumentError("Invalid boolean: $n"); | 25202 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24839 } | 25203 } |
| 24840 if (query.length > 0) { | 25204 if (query.length > 0) { |
| 24841 for (var part in query.split("&")) { | 25205 for (var part in query.split("&")) { |
| 24842 var keyvalue = part.split("="); | 25206 var keyvalue = part.split("="); |
| 24843 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25207 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24844 } | 25208 } |
| 24845 } | 25209 } |
| 25210 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24846 | 25211 |
| 24847 | 25212 |
| 24848 var h = { | 25213 var h = { |
| 24849 "content-type" : "application/json; charset=utf-8", | 25214 "content-type" : "application/json; charset=utf-8", |
| 24850 }; | 25215 }; |
| 24851 var resp = convert.JSON.encode(buildOperation()); | 25216 var resp = convert.JSON.encode(buildOperation()); |
| 24852 return new async.Future.value(stringResponse(200, h, resp)); | 25217 return new async.Future.value(stringResponse(200, h, resp)); |
| 24853 }), true); | 25218 }), true); |
| 24854 res.setSslCertificates(arg_request, arg_project, arg_targetSslProxy).then(
unittest.expectAsync1(((api.Operation response) { | 25219 res.setSslCertificates(arg_request, arg_project, arg_targetSslProxy, reque
stId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 24855 checkOperation(response); | 25220 checkOperation(response); |
| 24856 }))); | 25221 }))); |
| 24857 }); | 25222 }); |
| 24858 | 25223 |
| 24859 }); | 25224 }); |
| 24860 | 25225 |
| 24861 | 25226 |
| 24862 unittest.group("resource-TargetTcpProxiesResourceApi", () { | 25227 unittest.group("resource-TargetTcpProxiesResourceApi", () { |
| 24863 unittest.test("method--delete", () { | 25228 unittest.test("method--delete", () { |
| 24864 | 25229 |
| 24865 var mock = new HttpServerMock(); | 25230 var mock = new HttpServerMock(); |
| 24866 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; | 25231 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; |
| 24867 var arg_project = "foo"; | 25232 var arg_project = "foo"; |
| 24868 var arg_targetTcpProxy = "foo"; | 25233 var arg_targetTcpProxy = "foo"; |
| 25234 var arg_requestId = "foo"; |
| 24869 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25235 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24870 var path = (req.url).path; | 25236 var path = (req.url).path; |
| 24871 var pathOffset = 0; | 25237 var pathOffset = 0; |
| 24872 var index; | 25238 var index; |
| 24873 var subPart; | 25239 var subPart; |
| 24874 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24875 pathOffset += 1; | 25241 pathOffset += 1; |
| 24876 | 25242 |
| 24877 var query = (req.url).query; | 25243 var query = (req.url).query; |
| 24878 var queryOffset = 0; | 25244 var queryOffset = 0; |
| 24879 var queryMap = {}; | 25245 var queryMap = {}; |
| 24880 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25246 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24881 parseBool(n) { | 25247 parseBool(n) { |
| 24882 if (n == "true") return true; | 25248 if (n == "true") return true; |
| 24883 if (n == "false") return false; | 25249 if (n == "false") return false; |
| 24884 if (n == null) return null; | 25250 if (n == null) return null; |
| 24885 throw new core.ArgumentError("Invalid boolean: $n"); | 25251 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24886 } | 25252 } |
| 24887 if (query.length > 0) { | 25253 if (query.length > 0) { |
| 24888 for (var part in query.split("&")) { | 25254 for (var part in query.split("&")) { |
| 24889 var keyvalue = part.split("="); | 25255 var keyvalue = part.split("="); |
| 24890 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25256 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24891 } | 25257 } |
| 24892 } | 25258 } |
| 25259 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24893 | 25260 |
| 24894 | 25261 |
| 24895 var h = { | 25262 var h = { |
| 24896 "content-type" : "application/json; charset=utf-8", | 25263 "content-type" : "application/json; charset=utf-8", |
| 24897 }; | 25264 }; |
| 24898 var resp = convert.JSON.encode(buildOperation()); | 25265 var resp = convert.JSON.encode(buildOperation()); |
| 24899 return new async.Future.value(stringResponse(200, h, resp)); | 25266 return new async.Future.value(stringResponse(200, h, resp)); |
| 24900 }), true); | 25267 }), true); |
| 24901 res.delete(arg_project, arg_targetTcpProxy).then(unittest.expectAsync1(((a
pi.Operation response) { | 25268 res.delete(arg_project, arg_targetTcpProxy, requestId: arg_requestId).then
(unittest.expectAsync1(((api.Operation response) { |
| 24902 checkOperation(response); | 25269 checkOperation(response); |
| 24903 }))); | 25270 }))); |
| 24904 }); | 25271 }); |
| 24905 | 25272 |
| 24906 unittest.test("method--get", () { | 25273 unittest.test("method--get", () { |
| 24907 | 25274 |
| 24908 var mock = new HttpServerMock(); | 25275 var mock = new HttpServerMock(); |
| 24909 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; | 25276 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; |
| 24910 var arg_project = "foo"; | 25277 var arg_project = "foo"; |
| 24911 var arg_targetTcpProxy = "foo"; | 25278 var arg_targetTcpProxy = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24945 checkTargetTcpProxy(response); | 25312 checkTargetTcpProxy(response); |
| 24946 }))); | 25313 }))); |
| 24947 }); | 25314 }); |
| 24948 | 25315 |
| 24949 unittest.test("method--insert", () { | 25316 unittest.test("method--insert", () { |
| 24950 | 25317 |
| 24951 var mock = new HttpServerMock(); | 25318 var mock = new HttpServerMock(); |
| 24952 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; | 25319 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; |
| 24953 var arg_request = buildTargetTcpProxy(); | 25320 var arg_request = buildTargetTcpProxy(); |
| 24954 var arg_project = "foo"; | 25321 var arg_project = "foo"; |
| 25322 var arg_requestId = "foo"; |
| 24955 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25323 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 24956 var obj = new api.TargetTcpProxy.fromJson(json); | 25324 var obj = new api.TargetTcpProxy.fromJson(json); |
| 24957 checkTargetTcpProxy(obj); | 25325 checkTargetTcpProxy(obj); |
| 24958 | 25326 |
| 24959 var path = (req.url).path; | 25327 var path = (req.url).path; |
| 24960 var pathOffset = 0; | 25328 var pathOffset = 0; |
| 24961 var index; | 25329 var index; |
| 24962 var subPart; | 25330 var subPart; |
| 24963 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25331 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 24964 pathOffset += 1; | 25332 pathOffset += 1; |
| 24965 | 25333 |
| 24966 var query = (req.url).query; | 25334 var query = (req.url).query; |
| 24967 var queryOffset = 0; | 25335 var queryOffset = 0; |
| 24968 var queryMap = {}; | 25336 var queryMap = {}; |
| 24969 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25337 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 24970 parseBool(n) { | 25338 parseBool(n) { |
| 24971 if (n == "true") return true; | 25339 if (n == "true") return true; |
| 24972 if (n == "false") return false; | 25340 if (n == "false") return false; |
| 24973 if (n == null) return null; | 25341 if (n == null) return null; |
| 24974 throw new core.ArgumentError("Invalid boolean: $n"); | 25342 throw new core.ArgumentError("Invalid boolean: $n"); |
| 24975 } | 25343 } |
| 24976 if (query.length > 0) { | 25344 if (query.length > 0) { |
| 24977 for (var part in query.split("&")) { | 25345 for (var part in query.split("&")) { |
| 24978 var keyvalue = part.split("="); | 25346 var keyvalue = part.split("="); |
| 24979 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25347 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 24980 } | 25348 } |
| 24981 } | 25349 } |
| 25350 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 24982 | 25351 |
| 24983 | 25352 |
| 24984 var h = { | 25353 var h = { |
| 24985 "content-type" : "application/json; charset=utf-8", | 25354 "content-type" : "application/json; charset=utf-8", |
| 24986 }; | 25355 }; |
| 24987 var resp = convert.JSON.encode(buildOperation()); | 25356 var resp = convert.JSON.encode(buildOperation()); |
| 24988 return new async.Future.value(stringResponse(200, h, resp)); | 25357 return new async.Future.value(stringResponse(200, h, resp)); |
| 24989 }), true); | 25358 }), true); |
| 24990 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 25359 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 24991 checkOperation(response); | 25360 checkOperation(response); |
| 24992 }))); | 25361 }))); |
| 24993 }); | 25362 }); |
| 24994 | 25363 |
| 24995 unittest.test("method--list", () { | 25364 unittest.test("method--list", () { |
| 24996 | 25365 |
| 24997 var mock = new HttpServerMock(); | 25366 var mock = new HttpServerMock(); |
| 24998 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; | 25367 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; |
| 24999 var arg_project = "foo"; | 25368 var arg_project = "foo"; |
| 25000 var arg_filter = "foo"; | 25369 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25042 }))); | 25411 }))); |
| 25043 }); | 25412 }); |
| 25044 | 25413 |
| 25045 unittest.test("method--setBackendService", () { | 25414 unittest.test("method--setBackendService", () { |
| 25046 | 25415 |
| 25047 var mock = new HttpServerMock(); | 25416 var mock = new HttpServerMock(); |
| 25048 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; | 25417 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; |
| 25049 var arg_request = buildTargetTcpProxiesSetBackendServiceRequest(); | 25418 var arg_request = buildTargetTcpProxiesSetBackendServiceRequest(); |
| 25050 var arg_project = "foo"; | 25419 var arg_project = "foo"; |
| 25051 var arg_targetTcpProxy = "foo"; | 25420 var arg_targetTcpProxy = "foo"; |
| 25421 var arg_requestId = "foo"; |
| 25052 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25422 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25053 var obj = new api.TargetTcpProxiesSetBackendServiceRequest.fromJson(json
); | 25423 var obj = new api.TargetTcpProxiesSetBackendServiceRequest.fromJson(json
); |
| 25054 checkTargetTcpProxiesSetBackendServiceRequest(obj); | 25424 checkTargetTcpProxiesSetBackendServiceRequest(obj); |
| 25055 | 25425 |
| 25056 var path = (req.url).path; | 25426 var path = (req.url).path; |
| 25057 var pathOffset = 0; | 25427 var pathOffset = 0; |
| 25058 var index; | 25428 var index; |
| 25059 var subPart; | 25429 var subPart; |
| 25060 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25430 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25061 pathOffset += 1; | 25431 pathOffset += 1; |
| 25062 | 25432 |
| 25063 var query = (req.url).query; | 25433 var query = (req.url).query; |
| 25064 var queryOffset = 0; | 25434 var queryOffset = 0; |
| 25065 var queryMap = {}; | 25435 var queryMap = {}; |
| 25066 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25436 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25067 parseBool(n) { | 25437 parseBool(n) { |
| 25068 if (n == "true") return true; | 25438 if (n == "true") return true; |
| 25069 if (n == "false") return false; | 25439 if (n == "false") return false; |
| 25070 if (n == null) return null; | 25440 if (n == null) return null; |
| 25071 throw new core.ArgumentError("Invalid boolean: $n"); | 25441 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25072 } | 25442 } |
| 25073 if (query.length > 0) { | 25443 if (query.length > 0) { |
| 25074 for (var part in query.split("&")) { | 25444 for (var part in query.split("&")) { |
| 25075 var keyvalue = part.split("="); | 25445 var keyvalue = part.split("="); |
| 25076 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25446 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25077 } | 25447 } |
| 25078 } | 25448 } |
| 25449 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25079 | 25450 |
| 25080 | 25451 |
| 25081 var h = { | 25452 var h = { |
| 25082 "content-type" : "application/json; charset=utf-8", | 25453 "content-type" : "application/json; charset=utf-8", |
| 25083 }; | 25454 }; |
| 25084 var resp = convert.JSON.encode(buildOperation()); | 25455 var resp = convert.JSON.encode(buildOperation()); |
| 25085 return new async.Future.value(stringResponse(200, h, resp)); | 25456 return new async.Future.value(stringResponse(200, h, resp)); |
| 25086 }), true); | 25457 }), true); |
| 25087 res.setBackendService(arg_request, arg_project, arg_targetTcpProxy).then(u
nittest.expectAsync1(((api.Operation response) { | 25458 res.setBackendService(arg_request, arg_project, arg_targetTcpProxy, reques
tId: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 25088 checkOperation(response); | 25459 checkOperation(response); |
| 25089 }))); | 25460 }))); |
| 25090 }); | 25461 }); |
| 25091 | 25462 |
| 25092 unittest.test("method--setProxyHeader", () { | 25463 unittest.test("method--setProxyHeader", () { |
| 25093 | 25464 |
| 25094 var mock = new HttpServerMock(); | 25465 var mock = new HttpServerMock(); |
| 25095 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; | 25466 api.TargetTcpProxiesResourceApi res = new api.ComputeApi(mock).targetTcpPr
oxies; |
| 25096 var arg_request = buildTargetTcpProxiesSetProxyHeaderRequest(); | 25467 var arg_request = buildTargetTcpProxiesSetProxyHeaderRequest(); |
| 25097 var arg_project = "foo"; | 25468 var arg_project = "foo"; |
| 25098 var arg_targetTcpProxy = "foo"; | 25469 var arg_targetTcpProxy = "foo"; |
| 25470 var arg_requestId = "foo"; |
| 25099 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25471 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25100 var obj = new api.TargetTcpProxiesSetProxyHeaderRequest.fromJson(json); | 25472 var obj = new api.TargetTcpProxiesSetProxyHeaderRequest.fromJson(json); |
| 25101 checkTargetTcpProxiesSetProxyHeaderRequest(obj); | 25473 checkTargetTcpProxiesSetProxyHeaderRequest(obj); |
| 25102 | 25474 |
| 25103 var path = (req.url).path; | 25475 var path = (req.url).path; |
| 25104 var pathOffset = 0; | 25476 var pathOffset = 0; |
| 25105 var index; | 25477 var index; |
| 25106 var subPart; | 25478 var subPart; |
| 25107 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25479 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25108 pathOffset += 1; | 25480 pathOffset += 1; |
| 25109 | 25481 |
| 25110 var query = (req.url).query; | 25482 var query = (req.url).query; |
| 25111 var queryOffset = 0; | 25483 var queryOffset = 0; |
| 25112 var queryMap = {}; | 25484 var queryMap = {}; |
| 25113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25485 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25114 parseBool(n) { | 25486 parseBool(n) { |
| 25115 if (n == "true") return true; | 25487 if (n == "true") return true; |
| 25116 if (n == "false") return false; | 25488 if (n == "false") return false; |
| 25117 if (n == null) return null; | 25489 if (n == null) return null; |
| 25118 throw new core.ArgumentError("Invalid boolean: $n"); | 25490 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25119 } | 25491 } |
| 25120 if (query.length > 0) { | 25492 if (query.length > 0) { |
| 25121 for (var part in query.split("&")) { | 25493 for (var part in query.split("&")) { |
| 25122 var keyvalue = part.split("="); | 25494 var keyvalue = part.split("="); |
| 25123 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25495 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25124 } | 25496 } |
| 25125 } | 25497 } |
| 25498 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25126 | 25499 |
| 25127 | 25500 |
| 25128 var h = { | 25501 var h = { |
| 25129 "content-type" : "application/json; charset=utf-8", | 25502 "content-type" : "application/json; charset=utf-8", |
| 25130 }; | 25503 }; |
| 25131 var resp = convert.JSON.encode(buildOperation()); | 25504 var resp = convert.JSON.encode(buildOperation()); |
| 25132 return new async.Future.value(stringResponse(200, h, resp)); | 25505 return new async.Future.value(stringResponse(200, h, resp)); |
| 25133 }), true); | 25506 }), true); |
| 25134 res.setProxyHeader(arg_request, arg_project, arg_targetTcpProxy).then(unit
test.expectAsync1(((api.Operation response) { | 25507 res.setProxyHeader(arg_request, arg_project, arg_targetTcpProxy, requestId
: arg_requestId).then(unittest.expectAsync1(((api.Operation response) { |
| 25135 checkOperation(response); | 25508 checkOperation(response); |
| 25136 }))); | 25509 }))); |
| 25137 }); | 25510 }); |
| 25138 | 25511 |
| 25139 }); | 25512 }); |
| 25140 | 25513 |
| 25141 | 25514 |
| 25142 unittest.group("resource-TargetVpnGatewaysResourceApi", () { | 25515 unittest.group("resource-TargetVpnGatewaysResourceApi", () { |
| 25143 unittest.test("method--aggregatedList", () { | 25516 unittest.test("method--aggregatedList", () { |
| 25144 | 25517 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25190 }))); | 25563 }))); |
| 25191 }); | 25564 }); |
| 25192 | 25565 |
| 25193 unittest.test("method--delete", () { | 25566 unittest.test("method--delete", () { |
| 25194 | 25567 |
| 25195 var mock = new HttpServerMock(); | 25568 var mock = new HttpServerMock(); |
| 25196 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; | 25569 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 25197 var arg_project = "foo"; | 25570 var arg_project = "foo"; |
| 25198 var arg_region = "foo"; | 25571 var arg_region = "foo"; |
| 25199 var arg_targetVpnGateway = "foo"; | 25572 var arg_targetVpnGateway = "foo"; |
| 25573 var arg_requestId = "foo"; |
| 25200 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25574 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25201 var path = (req.url).path; | 25575 var path = (req.url).path; |
| 25202 var pathOffset = 0; | 25576 var pathOffset = 0; |
| 25203 var index; | 25577 var index; |
| 25204 var subPart; | 25578 var subPart; |
| 25205 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25579 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25206 pathOffset += 1; | 25580 pathOffset += 1; |
| 25207 | 25581 |
| 25208 var query = (req.url).query; | 25582 var query = (req.url).query; |
| 25209 var queryOffset = 0; | 25583 var queryOffset = 0; |
| 25210 var queryMap = {}; | 25584 var queryMap = {}; |
| 25211 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25585 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25212 parseBool(n) { | 25586 parseBool(n) { |
| 25213 if (n == "true") return true; | 25587 if (n == "true") return true; |
| 25214 if (n == "false") return false; | 25588 if (n == "false") return false; |
| 25215 if (n == null) return null; | 25589 if (n == null) return null; |
| 25216 throw new core.ArgumentError("Invalid boolean: $n"); | 25590 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25217 } | 25591 } |
| 25218 if (query.length > 0) { | 25592 if (query.length > 0) { |
| 25219 for (var part in query.split("&")) { | 25593 for (var part in query.split("&")) { |
| 25220 var keyvalue = part.split("="); | 25594 var keyvalue = part.split("="); |
| 25221 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25595 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25222 } | 25596 } |
| 25223 } | 25597 } |
| 25598 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25224 | 25599 |
| 25225 | 25600 |
| 25226 var h = { | 25601 var h = { |
| 25227 "content-type" : "application/json; charset=utf-8", | 25602 "content-type" : "application/json; charset=utf-8", |
| 25228 }; | 25603 }; |
| 25229 var resp = convert.JSON.encode(buildOperation()); | 25604 var resp = convert.JSON.encode(buildOperation()); |
| 25230 return new async.Future.value(stringResponse(200, h, resp)); | 25605 return new async.Future.value(stringResponse(200, h, resp)); |
| 25231 }), true); | 25606 }), true); |
| 25232 res.delete(arg_project, arg_region, arg_targetVpnGateway).then(unittest.ex
pectAsync1(((api.Operation response) { | 25607 res.delete(arg_project, arg_region, arg_targetVpnGateway, requestId: arg_r
equestId).then(unittest.expectAsync1(((api.Operation response) { |
| 25233 checkOperation(response); | 25608 checkOperation(response); |
| 25234 }))); | 25609 }))); |
| 25235 }); | 25610 }); |
| 25236 | 25611 |
| 25237 unittest.test("method--get", () { | 25612 unittest.test("method--get", () { |
| 25238 | 25613 |
| 25239 var mock = new HttpServerMock(); | 25614 var mock = new HttpServerMock(); |
| 25240 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; | 25615 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 25241 var arg_project = "foo"; | 25616 var arg_project = "foo"; |
| 25242 var arg_region = "foo"; | 25617 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25278 }))); | 25653 }))); |
| 25279 }); | 25654 }); |
| 25280 | 25655 |
| 25281 unittest.test("method--insert", () { | 25656 unittest.test("method--insert", () { |
| 25282 | 25657 |
| 25283 var mock = new HttpServerMock(); | 25658 var mock = new HttpServerMock(); |
| 25284 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; | 25659 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 25285 var arg_request = buildTargetVpnGateway(); | 25660 var arg_request = buildTargetVpnGateway(); |
| 25286 var arg_project = "foo"; | 25661 var arg_project = "foo"; |
| 25287 var arg_region = "foo"; | 25662 var arg_region = "foo"; |
| 25663 var arg_requestId = "foo"; |
| 25288 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25664 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25289 var obj = new api.TargetVpnGateway.fromJson(json); | 25665 var obj = new api.TargetVpnGateway.fromJson(json); |
| 25290 checkTargetVpnGateway(obj); | 25666 checkTargetVpnGateway(obj); |
| 25291 | 25667 |
| 25292 var path = (req.url).path; | 25668 var path = (req.url).path; |
| 25293 var pathOffset = 0; | 25669 var pathOffset = 0; |
| 25294 var index; | 25670 var index; |
| 25295 var subPart; | 25671 var subPart; |
| 25296 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25672 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25297 pathOffset += 1; | 25673 pathOffset += 1; |
| 25298 | 25674 |
| 25299 var query = (req.url).query; | 25675 var query = (req.url).query; |
| 25300 var queryOffset = 0; | 25676 var queryOffset = 0; |
| 25301 var queryMap = {}; | 25677 var queryMap = {}; |
| 25302 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25678 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25303 parseBool(n) { | 25679 parseBool(n) { |
| 25304 if (n == "true") return true; | 25680 if (n == "true") return true; |
| 25305 if (n == "false") return false; | 25681 if (n == "false") return false; |
| 25306 if (n == null) return null; | 25682 if (n == null) return null; |
| 25307 throw new core.ArgumentError("Invalid boolean: $n"); | 25683 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25308 } | 25684 } |
| 25309 if (query.length > 0) { | 25685 if (query.length > 0) { |
| 25310 for (var part in query.split("&")) { | 25686 for (var part in query.split("&")) { |
| 25311 var keyvalue = part.split("="); | 25687 var keyvalue = part.split("="); |
| 25312 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25688 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25313 } | 25689 } |
| 25314 } | 25690 } |
| 25691 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25315 | 25692 |
| 25316 | 25693 |
| 25317 var h = { | 25694 var h = { |
| 25318 "content-type" : "application/json; charset=utf-8", | 25695 "content-type" : "application/json; charset=utf-8", |
| 25319 }; | 25696 }; |
| 25320 var resp = convert.JSON.encode(buildOperation()); | 25697 var resp = convert.JSON.encode(buildOperation()); |
| 25321 return new async.Future.value(stringResponse(200, h, resp)); | 25698 return new async.Future.value(stringResponse(200, h, resp)); |
| 25322 }), true); | 25699 }), true); |
| 25323 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 25700 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 25324 checkOperation(response); | 25701 checkOperation(response); |
| 25325 }))); | 25702 }))); |
| 25326 }); | 25703 }); |
| 25327 | 25704 |
| 25328 unittest.test("method--list", () { | 25705 unittest.test("method--list", () { |
| 25329 | 25706 |
| 25330 var mock = new HttpServerMock(); | 25707 var mock = new HttpServerMock(); |
| 25331 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; | 25708 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 25332 var arg_project = "foo"; | 25709 var arg_project = "foo"; |
| 25333 var arg_region = "foo"; | 25710 var arg_region = "foo"; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25379 }); | 25756 }); |
| 25380 | 25757 |
| 25381 | 25758 |
| 25382 unittest.group("resource-UrlMapsResourceApi", () { | 25759 unittest.group("resource-UrlMapsResourceApi", () { |
| 25383 unittest.test("method--delete", () { | 25760 unittest.test("method--delete", () { |
| 25384 | 25761 |
| 25385 var mock = new HttpServerMock(); | 25762 var mock = new HttpServerMock(); |
| 25386 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 25763 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25387 var arg_project = "foo"; | 25764 var arg_project = "foo"; |
| 25388 var arg_urlMap = "foo"; | 25765 var arg_urlMap = "foo"; |
| 25766 var arg_requestId = "foo"; |
| 25389 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25767 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25390 var path = (req.url).path; | 25768 var path = (req.url).path; |
| 25391 var pathOffset = 0; | 25769 var pathOffset = 0; |
| 25392 var index; | 25770 var index; |
| 25393 var subPart; | 25771 var subPart; |
| 25394 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25395 pathOffset += 1; | 25773 pathOffset += 1; |
| 25396 | 25774 |
| 25397 var query = (req.url).query; | 25775 var query = (req.url).query; |
| 25398 var queryOffset = 0; | 25776 var queryOffset = 0; |
| 25399 var queryMap = {}; | 25777 var queryMap = {}; |
| 25400 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25778 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25401 parseBool(n) { | 25779 parseBool(n) { |
| 25402 if (n == "true") return true; | 25780 if (n == "true") return true; |
| 25403 if (n == "false") return false; | 25781 if (n == "false") return false; |
| 25404 if (n == null) return null; | 25782 if (n == null) return null; |
| 25405 throw new core.ArgumentError("Invalid boolean: $n"); | 25783 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25406 } | 25784 } |
| 25407 if (query.length > 0) { | 25785 if (query.length > 0) { |
| 25408 for (var part in query.split("&")) { | 25786 for (var part in query.split("&")) { |
| 25409 var keyvalue = part.split("="); | 25787 var keyvalue = part.split("="); |
| 25410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25788 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25411 } | 25789 } |
| 25412 } | 25790 } |
| 25791 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25413 | 25792 |
| 25414 | 25793 |
| 25415 var h = { | 25794 var h = { |
| 25416 "content-type" : "application/json; charset=utf-8", | 25795 "content-type" : "application/json; charset=utf-8", |
| 25417 }; | 25796 }; |
| 25418 var resp = convert.JSON.encode(buildOperation()); | 25797 var resp = convert.JSON.encode(buildOperation()); |
| 25419 return new async.Future.value(stringResponse(200, h, resp)); | 25798 return new async.Future.value(stringResponse(200, h, resp)); |
| 25420 }), true); | 25799 }), true); |
| 25421 res.delete(arg_project, arg_urlMap).then(unittest.expectAsync1(((api.Opera
tion response) { | 25800 res.delete(arg_project, arg_urlMap, requestId: arg_requestId).then(unittes
t.expectAsync1(((api.Operation response) { |
| 25422 checkOperation(response); | 25801 checkOperation(response); |
| 25423 }))); | 25802 }))); |
| 25424 }); | 25803 }); |
| 25425 | 25804 |
| 25426 unittest.test("method--get", () { | 25805 unittest.test("method--get", () { |
| 25427 | 25806 |
| 25428 var mock = new HttpServerMock(); | 25807 var mock = new HttpServerMock(); |
| 25429 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 25808 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25430 var arg_project = "foo"; | 25809 var arg_project = "foo"; |
| 25431 var arg_urlMap = "foo"; | 25810 var arg_urlMap = "foo"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25465 checkUrlMap(response); | 25844 checkUrlMap(response); |
| 25466 }))); | 25845 }))); |
| 25467 }); | 25846 }); |
| 25468 | 25847 |
| 25469 unittest.test("method--insert", () { | 25848 unittest.test("method--insert", () { |
| 25470 | 25849 |
| 25471 var mock = new HttpServerMock(); | 25850 var mock = new HttpServerMock(); |
| 25472 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 25851 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25473 var arg_request = buildUrlMap(); | 25852 var arg_request = buildUrlMap(); |
| 25474 var arg_project = "foo"; | 25853 var arg_project = "foo"; |
| 25854 var arg_requestId = "foo"; |
| 25475 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25855 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25476 var obj = new api.UrlMap.fromJson(json); | 25856 var obj = new api.UrlMap.fromJson(json); |
| 25477 checkUrlMap(obj); | 25857 checkUrlMap(obj); |
| 25478 | 25858 |
| 25479 var path = (req.url).path; | 25859 var path = (req.url).path; |
| 25480 var pathOffset = 0; | 25860 var pathOffset = 0; |
| 25481 var index; | 25861 var index; |
| 25482 var subPart; | 25862 var subPart; |
| 25483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25863 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25484 pathOffset += 1; | 25864 pathOffset += 1; |
| 25485 | 25865 |
| 25486 var query = (req.url).query; | 25866 var query = (req.url).query; |
| 25487 var queryOffset = 0; | 25867 var queryOffset = 0; |
| 25488 var queryMap = {}; | 25868 var queryMap = {}; |
| 25489 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25869 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25490 parseBool(n) { | 25870 parseBool(n) { |
| 25491 if (n == "true") return true; | 25871 if (n == "true") return true; |
| 25492 if (n == "false") return false; | 25872 if (n == "false") return false; |
| 25493 if (n == null) return null; | 25873 if (n == null) return null; |
| 25494 throw new core.ArgumentError("Invalid boolean: $n"); | 25874 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25495 } | 25875 } |
| 25496 if (query.length > 0) { | 25876 if (query.length > 0) { |
| 25497 for (var part in query.split("&")) { | 25877 for (var part in query.split("&")) { |
| 25498 var keyvalue = part.split("="); | 25878 var keyvalue = part.split("="); |
| 25499 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25879 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25500 } | 25880 } |
| 25501 } | 25881 } |
| 25882 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25502 | 25883 |
| 25503 | 25884 |
| 25504 var h = { | 25885 var h = { |
| 25505 "content-type" : "application/json; charset=utf-8", | 25886 "content-type" : "application/json; charset=utf-8", |
| 25506 }; | 25887 }; |
| 25507 var resp = convert.JSON.encode(buildOperation()); | 25888 var resp = convert.JSON.encode(buildOperation()); |
| 25508 return new async.Future.value(stringResponse(200, h, resp)); | 25889 return new async.Future.value(stringResponse(200, h, resp)); |
| 25509 }), true); | 25890 }), true); |
| 25510 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { | 25891 res.insert(arg_request, arg_project, requestId: arg_requestId).then(unitte
st.expectAsync1(((api.Operation response) { |
| 25511 checkOperation(response); | 25892 checkOperation(response); |
| 25512 }))); | 25893 }))); |
| 25513 }); | 25894 }); |
| 25514 | 25895 |
| 25515 unittest.test("method--invalidateCache", () { | 25896 unittest.test("method--invalidateCache", () { |
| 25516 | 25897 |
| 25517 var mock = new HttpServerMock(); | 25898 var mock = new HttpServerMock(); |
| 25518 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 25899 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25519 var arg_request = buildCacheInvalidationRule(); | 25900 var arg_request = buildCacheInvalidationRule(); |
| 25520 var arg_project = "foo"; | 25901 var arg_project = "foo"; |
| 25521 var arg_urlMap = "foo"; | 25902 var arg_urlMap = "foo"; |
| 25903 var arg_requestId = "foo"; |
| 25522 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 25904 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25523 var obj = new api.CacheInvalidationRule.fromJson(json); | 25905 var obj = new api.CacheInvalidationRule.fromJson(json); |
| 25524 checkCacheInvalidationRule(obj); | 25906 checkCacheInvalidationRule(obj); |
| 25525 | 25907 |
| 25526 var path = (req.url).path; | 25908 var path = (req.url).path; |
| 25527 var pathOffset = 0; | 25909 var pathOffset = 0; |
| 25528 var index; | 25910 var index; |
| 25529 var subPart; | 25911 var subPart; |
| 25530 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 25912 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25531 pathOffset += 1; | 25913 pathOffset += 1; |
| 25532 | 25914 |
| 25533 var query = (req.url).query; | 25915 var query = (req.url).query; |
| 25534 var queryOffset = 0; | 25916 var queryOffset = 0; |
| 25535 var queryMap = {}; | 25917 var queryMap = {}; |
| 25536 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 25918 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25537 parseBool(n) { | 25919 parseBool(n) { |
| 25538 if (n == "true") return true; | 25920 if (n == "true") return true; |
| 25539 if (n == "false") return false; | 25921 if (n == "false") return false; |
| 25540 if (n == null) return null; | 25922 if (n == null) return null; |
| 25541 throw new core.ArgumentError("Invalid boolean: $n"); | 25923 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25542 } | 25924 } |
| 25543 if (query.length > 0) { | 25925 if (query.length > 0) { |
| 25544 for (var part in query.split("&")) { | 25926 for (var part in query.split("&")) { |
| 25545 var keyvalue = part.split("="); | 25927 var keyvalue = part.split("="); |
| 25546 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 25928 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25547 } | 25929 } |
| 25548 } | 25930 } |
| 25931 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25549 | 25932 |
| 25550 | 25933 |
| 25551 var h = { | 25934 var h = { |
| 25552 "content-type" : "application/json; charset=utf-8", | 25935 "content-type" : "application/json; charset=utf-8", |
| 25553 }; | 25936 }; |
| 25554 var resp = convert.JSON.encode(buildOperation()); | 25937 var resp = convert.JSON.encode(buildOperation()); |
| 25555 return new async.Future.value(stringResponse(200, h, resp)); | 25938 return new async.Future.value(stringResponse(200, h, resp)); |
| 25556 }), true); | 25939 }), true); |
| 25557 res.invalidateCache(arg_request, arg_project, arg_urlMap).then(unittest.ex
pectAsync1(((api.Operation response) { | 25940 res.invalidateCache(arg_request, arg_project, arg_urlMap, requestId: arg_r
equestId).then(unittest.expectAsync1(((api.Operation response) { |
| 25558 checkOperation(response); | 25941 checkOperation(response); |
| 25559 }))); | 25942 }))); |
| 25560 }); | 25943 }); |
| 25561 | 25944 |
| 25562 unittest.test("method--list", () { | 25945 unittest.test("method--list", () { |
| 25563 | 25946 |
| 25564 var mock = new HttpServerMock(); | 25947 var mock = new HttpServerMock(); |
| 25565 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 25948 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25566 var arg_project = "foo"; | 25949 var arg_project = "foo"; |
| 25567 var arg_filter = "foo"; | 25950 var arg_filter = "foo"; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25609 }))); | 25992 }))); |
| 25610 }); | 25993 }); |
| 25611 | 25994 |
| 25612 unittest.test("method--patch", () { | 25995 unittest.test("method--patch", () { |
| 25613 | 25996 |
| 25614 var mock = new HttpServerMock(); | 25997 var mock = new HttpServerMock(); |
| 25615 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 25998 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25616 var arg_request = buildUrlMap(); | 25999 var arg_request = buildUrlMap(); |
| 25617 var arg_project = "foo"; | 26000 var arg_project = "foo"; |
| 25618 var arg_urlMap = "foo"; | 26001 var arg_urlMap = "foo"; |
| 26002 var arg_requestId = "foo"; |
| 25619 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 26003 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25620 var obj = new api.UrlMap.fromJson(json); | 26004 var obj = new api.UrlMap.fromJson(json); |
| 25621 checkUrlMap(obj); | 26005 checkUrlMap(obj); |
| 25622 | 26006 |
| 25623 var path = (req.url).path; | 26007 var path = (req.url).path; |
| 25624 var pathOffset = 0; | 26008 var pathOffset = 0; |
| 25625 var index; | 26009 var index; |
| 25626 var subPart; | 26010 var subPart; |
| 25627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 26011 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25628 pathOffset += 1; | 26012 pathOffset += 1; |
| 25629 | 26013 |
| 25630 var query = (req.url).query; | 26014 var query = (req.url).query; |
| 25631 var queryOffset = 0; | 26015 var queryOffset = 0; |
| 25632 var queryMap = {}; | 26016 var queryMap = {}; |
| 25633 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 26017 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25634 parseBool(n) { | 26018 parseBool(n) { |
| 25635 if (n == "true") return true; | 26019 if (n == "true") return true; |
| 25636 if (n == "false") return false; | 26020 if (n == "false") return false; |
| 25637 if (n == null) return null; | 26021 if (n == null) return null; |
| 25638 throw new core.ArgumentError("Invalid boolean: $n"); | 26022 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25639 } | 26023 } |
| 25640 if (query.length > 0) { | 26024 if (query.length > 0) { |
| 25641 for (var part in query.split("&")) { | 26025 for (var part in query.split("&")) { |
| 25642 var keyvalue = part.split("="); | 26026 var keyvalue = part.split("="); |
| 25643 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 26027 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25644 } | 26028 } |
| 25645 } | 26029 } |
| 26030 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25646 | 26031 |
| 25647 | 26032 |
| 25648 var h = { | 26033 var h = { |
| 25649 "content-type" : "application/json; charset=utf-8", | 26034 "content-type" : "application/json; charset=utf-8", |
| 25650 }; | 26035 }; |
| 25651 var resp = convert.JSON.encode(buildOperation()); | 26036 var resp = convert.JSON.encode(buildOperation()); |
| 25652 return new async.Future.value(stringResponse(200, h, resp)); | 26037 return new async.Future.value(stringResponse(200, h, resp)); |
| 25653 }), true); | 26038 }), true); |
| 25654 res.patch(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync1
(((api.Operation response) { | 26039 res.patch(arg_request, arg_project, arg_urlMap, requestId: arg_requestId).
then(unittest.expectAsync1(((api.Operation response) { |
| 25655 checkOperation(response); | 26040 checkOperation(response); |
| 25656 }))); | 26041 }))); |
| 25657 }); | 26042 }); |
| 25658 | 26043 |
| 25659 unittest.test("method--update", () { | 26044 unittest.test("method--update", () { |
| 25660 | 26045 |
| 25661 var mock = new HttpServerMock(); | 26046 var mock = new HttpServerMock(); |
| 25662 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 26047 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25663 var arg_request = buildUrlMap(); | 26048 var arg_request = buildUrlMap(); |
| 25664 var arg_project = "foo"; | 26049 var arg_project = "foo"; |
| 25665 var arg_urlMap = "foo"; | 26050 var arg_urlMap = "foo"; |
| 26051 var arg_requestId = "foo"; |
| 25666 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 26052 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25667 var obj = new api.UrlMap.fromJson(json); | 26053 var obj = new api.UrlMap.fromJson(json); |
| 25668 checkUrlMap(obj); | 26054 checkUrlMap(obj); |
| 25669 | 26055 |
| 25670 var path = (req.url).path; | 26056 var path = (req.url).path; |
| 25671 var pathOffset = 0; | 26057 var pathOffset = 0; |
| 25672 var index; | 26058 var index; |
| 25673 var subPart; | 26059 var subPart; |
| 25674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 26060 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25675 pathOffset += 1; | 26061 pathOffset += 1; |
| 25676 | 26062 |
| 25677 var query = (req.url).query; | 26063 var query = (req.url).query; |
| 25678 var queryOffset = 0; | 26064 var queryOffset = 0; |
| 25679 var queryMap = {}; | 26065 var queryMap = {}; |
| 25680 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 26066 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25681 parseBool(n) { | 26067 parseBool(n) { |
| 25682 if (n == "true") return true; | 26068 if (n == "true") return true; |
| 25683 if (n == "false") return false; | 26069 if (n == "false") return false; |
| 25684 if (n == null) return null; | 26070 if (n == null) return null; |
| 25685 throw new core.ArgumentError("Invalid boolean: $n"); | 26071 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25686 } | 26072 } |
| 25687 if (query.length > 0) { | 26073 if (query.length > 0) { |
| 25688 for (var part in query.split("&")) { | 26074 for (var part in query.split("&")) { |
| 25689 var keyvalue = part.split("="); | 26075 var keyvalue = part.split("="); |
| 25690 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 26076 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25691 } | 26077 } |
| 25692 } | 26078 } |
| 26079 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25693 | 26080 |
| 25694 | 26081 |
| 25695 var h = { | 26082 var h = { |
| 25696 "content-type" : "application/json; charset=utf-8", | 26083 "content-type" : "application/json; charset=utf-8", |
| 25697 }; | 26084 }; |
| 25698 var resp = convert.JSON.encode(buildOperation()); | 26085 var resp = convert.JSON.encode(buildOperation()); |
| 25699 return new async.Future.value(stringResponse(200, h, resp)); | 26086 return new async.Future.value(stringResponse(200, h, resp)); |
| 25700 }), true); | 26087 }), true); |
| 25701 res.update(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync
1(((api.Operation response) { | 26088 res.update(arg_request, arg_project, arg_urlMap, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 25702 checkOperation(response); | 26089 checkOperation(response); |
| 25703 }))); | 26090 }))); |
| 25704 }); | 26091 }); |
| 25705 | 26092 |
| 25706 unittest.test("method--validate", () { | 26093 unittest.test("method--validate", () { |
| 25707 | 26094 |
| 25708 var mock = new HttpServerMock(); | 26095 var mock = new HttpServerMock(); |
| 25709 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 26096 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 25710 var arg_request = buildUrlMapsValidateRequest(); | 26097 var arg_request = buildUrlMapsValidateRequest(); |
| 25711 var arg_project = "foo"; | 26098 var arg_project = "foo"; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25804 }))); | 26191 }))); |
| 25805 }); | 26192 }); |
| 25806 | 26193 |
| 25807 unittest.test("method--delete", () { | 26194 unittest.test("method--delete", () { |
| 25808 | 26195 |
| 25809 var mock = new HttpServerMock(); | 26196 var mock = new HttpServerMock(); |
| 25810 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; | 26197 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 25811 var arg_project = "foo"; | 26198 var arg_project = "foo"; |
| 25812 var arg_region = "foo"; | 26199 var arg_region = "foo"; |
| 25813 var arg_vpnTunnel = "foo"; | 26200 var arg_vpnTunnel = "foo"; |
| 26201 var arg_requestId = "foo"; |
| 25814 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 26202 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25815 var path = (req.url).path; | 26203 var path = (req.url).path; |
| 25816 var pathOffset = 0; | 26204 var pathOffset = 0; |
| 25817 var index; | 26205 var index; |
| 25818 var subPart; | 26206 var subPart; |
| 25819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 26207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25820 pathOffset += 1; | 26208 pathOffset += 1; |
| 25821 | 26209 |
| 25822 var query = (req.url).query; | 26210 var query = (req.url).query; |
| 25823 var queryOffset = 0; | 26211 var queryOffset = 0; |
| 25824 var queryMap = {}; | 26212 var queryMap = {}; |
| 25825 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 26213 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25826 parseBool(n) { | 26214 parseBool(n) { |
| 25827 if (n == "true") return true; | 26215 if (n == "true") return true; |
| 25828 if (n == "false") return false; | 26216 if (n == "false") return false; |
| 25829 if (n == null) return null; | 26217 if (n == null) return null; |
| 25830 throw new core.ArgumentError("Invalid boolean: $n"); | 26218 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25831 } | 26219 } |
| 25832 if (query.length > 0) { | 26220 if (query.length > 0) { |
| 25833 for (var part in query.split("&")) { | 26221 for (var part in query.split("&")) { |
| 25834 var keyvalue = part.split("="); | 26222 var keyvalue = part.split("="); |
| 25835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 26223 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25836 } | 26224 } |
| 25837 } | 26225 } |
| 26226 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25838 | 26227 |
| 25839 | 26228 |
| 25840 var h = { | 26229 var h = { |
| 25841 "content-type" : "application/json; charset=utf-8", | 26230 "content-type" : "application/json; charset=utf-8", |
| 25842 }; | 26231 }; |
| 25843 var resp = convert.JSON.encode(buildOperation()); | 26232 var resp = convert.JSON.encode(buildOperation()); |
| 25844 return new async.Future.value(stringResponse(200, h, resp)); | 26233 return new async.Future.value(stringResponse(200, h, resp)); |
| 25845 }), true); | 26234 }), true); |
| 25846 res.delete(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsy
nc1(((api.Operation response) { | 26235 res.delete(arg_project, arg_region, arg_vpnTunnel, requestId: arg_requestI
d).then(unittest.expectAsync1(((api.Operation response) { |
| 25847 checkOperation(response); | 26236 checkOperation(response); |
| 25848 }))); | 26237 }))); |
| 25849 }); | 26238 }); |
| 25850 | 26239 |
| 25851 unittest.test("method--get", () { | 26240 unittest.test("method--get", () { |
| 25852 | 26241 |
| 25853 var mock = new HttpServerMock(); | 26242 var mock = new HttpServerMock(); |
| 25854 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; | 26243 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 25855 var arg_project = "foo"; | 26244 var arg_project = "foo"; |
| 25856 var arg_region = "foo"; | 26245 var arg_region = "foo"; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25892 }))); | 26281 }))); |
| 25893 }); | 26282 }); |
| 25894 | 26283 |
| 25895 unittest.test("method--insert", () { | 26284 unittest.test("method--insert", () { |
| 25896 | 26285 |
| 25897 var mock = new HttpServerMock(); | 26286 var mock = new HttpServerMock(); |
| 25898 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; | 26287 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 25899 var arg_request = buildVpnTunnel(); | 26288 var arg_request = buildVpnTunnel(); |
| 25900 var arg_project = "foo"; | 26289 var arg_project = "foo"; |
| 25901 var arg_region = "foo"; | 26290 var arg_region = "foo"; |
| 26291 var arg_requestId = "foo"; |
| 25902 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 26292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 25903 var obj = new api.VpnTunnel.fromJson(json); | 26293 var obj = new api.VpnTunnel.fromJson(json); |
| 25904 checkVpnTunnel(obj); | 26294 checkVpnTunnel(obj); |
| 25905 | 26295 |
| 25906 var path = (req.url).path; | 26296 var path = (req.url).path; |
| 25907 var pathOffset = 0; | 26297 var pathOffset = 0; |
| 25908 var index; | 26298 var index; |
| 25909 var subPart; | 26299 var subPart; |
| 25910 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 26300 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 25911 pathOffset += 1; | 26301 pathOffset += 1; |
| 25912 | 26302 |
| 25913 var query = (req.url).query; | 26303 var query = (req.url).query; |
| 25914 var queryOffset = 0; | 26304 var queryOffset = 0; |
| 25915 var queryMap = {}; | 26305 var queryMap = {}; |
| 25916 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 26306 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 25917 parseBool(n) { | 26307 parseBool(n) { |
| 25918 if (n == "true") return true; | 26308 if (n == "true") return true; |
| 25919 if (n == "false") return false; | 26309 if (n == "false") return false; |
| 25920 if (n == null) return null; | 26310 if (n == null) return null; |
| 25921 throw new core.ArgumentError("Invalid boolean: $n"); | 26311 throw new core.ArgumentError("Invalid boolean: $n"); |
| 25922 } | 26312 } |
| 25923 if (query.length > 0) { | 26313 if (query.length > 0) { |
| 25924 for (var part in query.split("&")) { | 26314 for (var part in query.split("&")) { |
| 25925 var keyvalue = part.split("="); | 26315 var keyvalue = part.split("="); |
| 25926 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 26316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 25927 } | 26317 } |
| 25928 } | 26318 } |
| 26319 unittest.expect(queryMap["requestId"].first, unittest.equals(arg_request
Id)); |
| 25929 | 26320 |
| 25930 | 26321 |
| 25931 var h = { | 26322 var h = { |
| 25932 "content-type" : "application/json; charset=utf-8", | 26323 "content-type" : "application/json; charset=utf-8", |
| 25933 }; | 26324 }; |
| 25934 var resp = convert.JSON.encode(buildOperation()); | 26325 var resp = convert.JSON.encode(buildOperation()); |
| 25935 return new async.Future.value(stringResponse(200, h, resp)); | 26326 return new async.Future.value(stringResponse(200, h, resp)); |
| 25936 }), true); | 26327 }), true); |
| 25937 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
1(((api.Operation response) { | 26328 res.insert(arg_request, arg_project, arg_region, requestId: arg_requestId)
.then(unittest.expectAsync1(((api.Operation response) { |
| 25938 checkOperation(response); | 26329 checkOperation(response); |
| 25939 }))); | 26330 }))); |
| 25940 }); | 26331 }); |
| 25941 | 26332 |
| 25942 unittest.test("method--list", () { | 26333 unittest.test("method--list", () { |
| 25943 | 26334 |
| 25944 var mock = new HttpServerMock(); | 26335 var mock = new HttpServerMock(); |
| 25945 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; | 26336 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 25946 var arg_project = "foo"; | 26337 var arg_project = "foo"; |
| 25947 var arg_region = "foo"; | 26338 var arg_region = "foo"; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26226 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Zon
eList response) { | 26617 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Zon
eList response) { |
| 26227 checkZoneList(response); | 26618 checkZoneList(response); |
| 26228 }))); | 26619 }))); |
| 26229 }); | 26620 }); |
| 26230 | 26621 |
| 26231 }); | 26622 }); |
| 26232 | 26623 |
| 26233 | 26624 |
| 26234 } | 26625 } |
| 26235 | 26626 |
| OLD | NEW |