| OLD | NEW |
| 1 library googleapis_beta.deploymentmanager.v2beta2.test; | 1 library googleapis_beta.deploymentmanager.v2beta2.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 unittest.expect(o.manifest, unittest.equals('foo')); | 83 unittest.expect(o.manifest, unittest.equals('foo')); |
| 84 unittest.expect(o.name, unittest.equals('foo')); | 84 unittest.expect(o.name, unittest.equals('foo')); |
| 85 unittest.expect(o.state, unittest.equals('foo')); | 85 unittest.expect(o.state, unittest.equals('foo')); |
| 86 checkTargetConfiguration(o.target); | 86 checkTargetConfiguration(o.target); |
| 87 checkDeploymentUpdate(o.update); | 87 checkDeploymentUpdate(o.update); |
| 88 unittest.expect(o.updateTime, unittest.equals('foo')); | 88 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 89 } | 89 } |
| 90 buildCounterDeployment--; | 90 buildCounterDeployment--; |
| 91 } | 91 } |
| 92 | 92 |
| 93 buildUnnamed2354() { | 93 buildUnnamed2590() { |
| 94 var o = new core.List<core.String>(); | 94 var o = new core.List<core.String>(); |
| 95 o.add("foo"); | 95 o.add("foo"); |
| 96 o.add("foo"); | 96 o.add("foo"); |
| 97 return o; | 97 return o; |
| 98 } | 98 } |
| 99 | 99 |
| 100 checkUnnamed2354(core.List<core.String> o) { | 100 checkUnnamed2590(core.List<core.String> o) { |
| 101 unittest.expect(o, unittest.hasLength(2)); | 101 unittest.expect(o, unittest.hasLength(2)); |
| 102 unittest.expect(o[0], unittest.equals('foo')); | 102 unittest.expect(o[0], unittest.equals('foo')); |
| 103 unittest.expect(o[1], unittest.equals('foo')); | 103 unittest.expect(o[1], unittest.equals('foo')); |
| 104 } | 104 } |
| 105 | 105 |
| 106 core.int buildCounterDeploymentUpdate = 0; | 106 core.int buildCounterDeploymentUpdate = 0; |
| 107 buildDeploymentUpdate() { | 107 buildDeploymentUpdate() { |
| 108 var o = new api.DeploymentUpdate(); | 108 var o = new api.DeploymentUpdate(); |
| 109 buildCounterDeploymentUpdate++; | 109 buildCounterDeploymentUpdate++; |
| 110 if (buildCounterDeploymentUpdate < 3) { | 110 if (buildCounterDeploymentUpdate < 3) { |
| 111 o.errors = buildUnnamed2354(); | 111 o.errors = buildUnnamed2590(); |
| 112 o.manifest = "foo"; | 112 o.manifest = "foo"; |
| 113 } | 113 } |
| 114 buildCounterDeploymentUpdate--; | 114 buildCounterDeploymentUpdate--; |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkDeploymentUpdate(api.DeploymentUpdate o) { | 118 checkDeploymentUpdate(api.DeploymentUpdate o) { |
| 119 buildCounterDeploymentUpdate++; | 119 buildCounterDeploymentUpdate++; |
| 120 if (buildCounterDeploymentUpdate < 3) { | 120 if (buildCounterDeploymentUpdate < 3) { |
| 121 checkUnnamed2354(o.errors); | 121 checkUnnamed2590(o.errors); |
| 122 unittest.expect(o.manifest, unittest.equals('foo')); | 122 unittest.expect(o.manifest, unittest.equals('foo')); |
| 123 } | 123 } |
| 124 buildCounterDeploymentUpdate--; | 124 buildCounterDeploymentUpdate--; |
| 125 } | 125 } |
| 126 | 126 |
| 127 buildUnnamed2355() { | 127 buildUnnamed2591() { |
| 128 var o = new core.List<api.Deployment>(); | 128 var o = new core.List<api.Deployment>(); |
| 129 o.add(buildDeployment()); | 129 o.add(buildDeployment()); |
| 130 o.add(buildDeployment()); | 130 o.add(buildDeployment()); |
| 131 return o; | 131 return o; |
| 132 } | 132 } |
| 133 | 133 |
| 134 checkUnnamed2355(core.List<api.Deployment> o) { | 134 checkUnnamed2591(core.List<api.Deployment> o) { |
| 135 unittest.expect(o, unittest.hasLength(2)); | 135 unittest.expect(o, unittest.hasLength(2)); |
| 136 checkDeployment(o[0]); | 136 checkDeployment(o[0]); |
| 137 checkDeployment(o[1]); | 137 checkDeployment(o[1]); |
| 138 } | 138 } |
| 139 | 139 |
| 140 core.int buildCounterDeploymentsListResponse = 0; | 140 core.int buildCounterDeploymentsListResponse = 0; |
| 141 buildDeploymentsListResponse() { | 141 buildDeploymentsListResponse() { |
| 142 var o = new api.DeploymentsListResponse(); | 142 var o = new api.DeploymentsListResponse(); |
| 143 buildCounterDeploymentsListResponse++; | 143 buildCounterDeploymentsListResponse++; |
| 144 if (buildCounterDeploymentsListResponse < 3) { | 144 if (buildCounterDeploymentsListResponse < 3) { |
| 145 o.deployments = buildUnnamed2355(); | 145 o.deployments = buildUnnamed2591(); |
| 146 o.nextPageToken = "foo"; | 146 o.nextPageToken = "foo"; |
| 147 } | 147 } |
| 148 buildCounterDeploymentsListResponse--; | 148 buildCounterDeploymentsListResponse--; |
| 149 return o; | 149 return o; |
| 150 } | 150 } |
| 151 | 151 |
| 152 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 152 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
| 153 buildCounterDeploymentsListResponse++; | 153 buildCounterDeploymentsListResponse++; |
| 154 if (buildCounterDeploymentsListResponse < 3) { | 154 if (buildCounterDeploymentsListResponse < 3) { |
| 155 checkUnnamed2355(o.deployments); | 155 checkUnnamed2591(o.deployments); |
| 156 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 156 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 157 } | 157 } |
| 158 buildCounterDeploymentsListResponse--; | 158 buildCounterDeploymentsListResponse--; |
| 159 } | 159 } |
| 160 | 160 |
| 161 core.int buildCounterImportFile = 0; | 161 core.int buildCounterImportFile = 0; |
| 162 buildImportFile() { | 162 buildImportFile() { |
| 163 var o = new api.ImportFile(); | 163 var o = new api.ImportFile(); |
| 164 buildCounterImportFile++; | 164 buildCounterImportFile++; |
| 165 if (buildCounterImportFile < 3) { | 165 if (buildCounterImportFile < 3) { |
| 166 o.content = "foo"; | 166 o.content = "foo"; |
| 167 o.name = "foo"; | 167 o.name = "foo"; |
| 168 } | 168 } |
| 169 buildCounterImportFile--; | 169 buildCounterImportFile--; |
| 170 return o; | 170 return o; |
| 171 } | 171 } |
| 172 | 172 |
| 173 checkImportFile(api.ImportFile o) { | 173 checkImportFile(api.ImportFile o) { |
| 174 buildCounterImportFile++; | 174 buildCounterImportFile++; |
| 175 if (buildCounterImportFile < 3) { | 175 if (buildCounterImportFile < 3) { |
| 176 unittest.expect(o.content, unittest.equals('foo')); | 176 unittest.expect(o.content, unittest.equals('foo')); |
| 177 unittest.expect(o.name, unittest.equals('foo')); | 177 unittest.expect(o.name, unittest.equals('foo')); |
| 178 } | 178 } |
| 179 buildCounterImportFile--; | 179 buildCounterImportFile--; |
| 180 } | 180 } |
| 181 | 181 |
| 182 buildUnnamed2356() { | 182 buildUnnamed2592() { |
| 183 var o = new core.List<api.ImportFile>(); | 183 var o = new core.List<api.ImportFile>(); |
| 184 o.add(buildImportFile()); | 184 o.add(buildImportFile()); |
| 185 o.add(buildImportFile()); | 185 o.add(buildImportFile()); |
| 186 return o; | 186 return o; |
| 187 } | 187 } |
| 188 | 188 |
| 189 checkUnnamed2356(core.List<api.ImportFile> o) { | 189 checkUnnamed2592(core.List<api.ImportFile> o) { |
| 190 unittest.expect(o, unittest.hasLength(2)); | 190 unittest.expect(o, unittest.hasLength(2)); |
| 191 checkImportFile(o[0]); | 191 checkImportFile(o[0]); |
| 192 checkImportFile(o[1]); | 192 checkImportFile(o[1]); |
| 193 } | 193 } |
| 194 | 194 |
| 195 core.int buildCounterManifest = 0; | 195 core.int buildCounterManifest = 0; |
| 196 buildManifest() { | 196 buildManifest() { |
| 197 var o = new api.Manifest(); | 197 var o = new api.Manifest(); |
| 198 buildCounterManifest++; | 198 buildCounterManifest++; |
| 199 if (buildCounterManifest < 3) { | 199 if (buildCounterManifest < 3) { |
| 200 o.config = "foo"; | 200 o.config = "foo"; |
| 201 o.evaluatedConfig = "foo"; | 201 o.evaluatedConfig = "foo"; |
| 202 o.id = "foo"; | 202 o.id = "foo"; |
| 203 o.imports = buildUnnamed2356(); | 203 o.imports = buildUnnamed2592(); |
| 204 o.insertTime = "foo"; | 204 o.insertTime = "foo"; |
| 205 o.layout = "foo"; | 205 o.layout = "foo"; |
| 206 o.name = "foo"; | 206 o.name = "foo"; |
| 207 o.selfLink = "foo"; | 207 o.selfLink = "foo"; |
| 208 } | 208 } |
| 209 buildCounterManifest--; | 209 buildCounterManifest--; |
| 210 return o; | 210 return o; |
| 211 } | 211 } |
| 212 | 212 |
| 213 checkManifest(api.Manifest o) { | 213 checkManifest(api.Manifest o) { |
| 214 buildCounterManifest++; | 214 buildCounterManifest++; |
| 215 if (buildCounterManifest < 3) { | 215 if (buildCounterManifest < 3) { |
| 216 unittest.expect(o.config, unittest.equals('foo')); | 216 unittest.expect(o.config, unittest.equals('foo')); |
| 217 unittest.expect(o.evaluatedConfig, unittest.equals('foo')); | 217 unittest.expect(o.evaluatedConfig, unittest.equals('foo')); |
| 218 unittest.expect(o.id, unittest.equals('foo')); | 218 unittest.expect(o.id, unittest.equals('foo')); |
| 219 checkUnnamed2356(o.imports); | 219 checkUnnamed2592(o.imports); |
| 220 unittest.expect(o.insertTime, unittest.equals('foo')); | 220 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 221 unittest.expect(o.layout, unittest.equals('foo')); | 221 unittest.expect(o.layout, unittest.equals('foo')); |
| 222 unittest.expect(o.name, unittest.equals('foo')); | 222 unittest.expect(o.name, unittest.equals('foo')); |
| 223 unittest.expect(o.selfLink, unittest.equals('foo')); | 223 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 224 } | 224 } |
| 225 buildCounterManifest--; | 225 buildCounterManifest--; |
| 226 } | 226 } |
| 227 | 227 |
| 228 buildUnnamed2357() { | 228 buildUnnamed2593() { |
| 229 var o = new core.List<api.Manifest>(); | 229 var o = new core.List<api.Manifest>(); |
| 230 o.add(buildManifest()); | 230 o.add(buildManifest()); |
| 231 o.add(buildManifest()); | 231 o.add(buildManifest()); |
| 232 return o; | 232 return o; |
| 233 } | 233 } |
| 234 | 234 |
| 235 checkUnnamed2357(core.List<api.Manifest> o) { | 235 checkUnnamed2593(core.List<api.Manifest> o) { |
| 236 unittest.expect(o, unittest.hasLength(2)); | 236 unittest.expect(o, unittest.hasLength(2)); |
| 237 checkManifest(o[0]); | 237 checkManifest(o[0]); |
| 238 checkManifest(o[1]); | 238 checkManifest(o[1]); |
| 239 } | 239 } |
| 240 | 240 |
| 241 core.int buildCounterManifestsListResponse = 0; | 241 core.int buildCounterManifestsListResponse = 0; |
| 242 buildManifestsListResponse() { | 242 buildManifestsListResponse() { |
| 243 var o = new api.ManifestsListResponse(); | 243 var o = new api.ManifestsListResponse(); |
| 244 buildCounterManifestsListResponse++; | 244 buildCounterManifestsListResponse++; |
| 245 if (buildCounterManifestsListResponse < 3) { | 245 if (buildCounterManifestsListResponse < 3) { |
| 246 o.manifests = buildUnnamed2357(); | 246 o.manifests = buildUnnamed2593(); |
| 247 o.nextPageToken = "foo"; | 247 o.nextPageToken = "foo"; |
| 248 } | 248 } |
| 249 buildCounterManifestsListResponse--; | 249 buildCounterManifestsListResponse--; |
| 250 return o; | 250 return o; |
| 251 } | 251 } |
| 252 | 252 |
| 253 checkManifestsListResponse(api.ManifestsListResponse o) { | 253 checkManifestsListResponse(api.ManifestsListResponse o) { |
| 254 buildCounterManifestsListResponse++; | 254 buildCounterManifestsListResponse++; |
| 255 if (buildCounterManifestsListResponse < 3) { | 255 if (buildCounterManifestsListResponse < 3) { |
| 256 checkUnnamed2357(o.manifests); | 256 checkUnnamed2593(o.manifests); |
| 257 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 257 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 258 } | 258 } |
| 259 buildCounterManifestsListResponse--; | 259 buildCounterManifestsListResponse--; |
| 260 } | 260 } |
| 261 | 261 |
| 262 core.int buildCounterOperationErrorErrors = 0; | 262 core.int buildCounterOperationErrorErrors = 0; |
| 263 buildOperationErrorErrors() { | 263 buildOperationErrorErrors() { |
| 264 var o = new api.OperationErrorErrors(); | 264 var o = new api.OperationErrorErrors(); |
| 265 buildCounterOperationErrorErrors++; | 265 buildCounterOperationErrorErrors++; |
| 266 if (buildCounterOperationErrorErrors < 3) { | 266 if (buildCounterOperationErrorErrors < 3) { |
| 267 o.code = "foo"; | 267 o.code = "foo"; |
| 268 o.location = "foo"; | 268 o.location = "foo"; |
| 269 o.message = "foo"; | 269 o.message = "foo"; |
| 270 } | 270 } |
| 271 buildCounterOperationErrorErrors--; | 271 buildCounterOperationErrorErrors--; |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkOperationErrorErrors(api.OperationErrorErrors o) { | 275 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 276 buildCounterOperationErrorErrors++; | 276 buildCounterOperationErrorErrors++; |
| 277 if (buildCounterOperationErrorErrors < 3) { | 277 if (buildCounterOperationErrorErrors < 3) { |
| 278 unittest.expect(o.code, unittest.equals('foo')); | 278 unittest.expect(o.code, unittest.equals('foo')); |
| 279 unittest.expect(o.location, unittest.equals('foo')); | 279 unittest.expect(o.location, unittest.equals('foo')); |
| 280 unittest.expect(o.message, unittest.equals('foo')); | 280 unittest.expect(o.message, unittest.equals('foo')); |
| 281 } | 281 } |
| 282 buildCounterOperationErrorErrors--; | 282 buildCounterOperationErrorErrors--; |
| 283 } | 283 } |
| 284 | 284 |
| 285 buildUnnamed2358() { | 285 buildUnnamed2594() { |
| 286 var o = new core.List<api.OperationErrorErrors>(); | 286 var o = new core.List<api.OperationErrorErrors>(); |
| 287 o.add(buildOperationErrorErrors()); | 287 o.add(buildOperationErrorErrors()); |
| 288 o.add(buildOperationErrorErrors()); | 288 o.add(buildOperationErrorErrors()); |
| 289 return o; | 289 return o; |
| 290 } | 290 } |
| 291 | 291 |
| 292 checkUnnamed2358(core.List<api.OperationErrorErrors> o) { | 292 checkUnnamed2594(core.List<api.OperationErrorErrors> o) { |
| 293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
| 294 checkOperationErrorErrors(o[0]); | 294 checkOperationErrorErrors(o[0]); |
| 295 checkOperationErrorErrors(o[1]); | 295 checkOperationErrorErrors(o[1]); |
| 296 } | 296 } |
| 297 | 297 |
| 298 core.int buildCounterOperationError = 0; | 298 core.int buildCounterOperationError = 0; |
| 299 buildOperationError() { | 299 buildOperationError() { |
| 300 var o = new api.OperationError(); | 300 var o = new api.OperationError(); |
| 301 buildCounterOperationError++; | 301 buildCounterOperationError++; |
| 302 if (buildCounterOperationError < 3) { | 302 if (buildCounterOperationError < 3) { |
| 303 o.errors = buildUnnamed2358(); | 303 o.errors = buildUnnamed2594(); |
| 304 } | 304 } |
| 305 buildCounterOperationError--; | 305 buildCounterOperationError--; |
| 306 return o; | 306 return o; |
| 307 } | 307 } |
| 308 | 308 |
| 309 checkOperationError(api.OperationError o) { | 309 checkOperationError(api.OperationError o) { |
| 310 buildCounterOperationError++; | 310 buildCounterOperationError++; |
| 311 if (buildCounterOperationError < 3) { | 311 if (buildCounterOperationError < 3) { |
| 312 checkUnnamed2358(o.errors); | 312 checkUnnamed2594(o.errors); |
| 313 } | 313 } |
| 314 buildCounterOperationError--; | 314 buildCounterOperationError--; |
| 315 } | 315 } |
| 316 | 316 |
| 317 core.int buildCounterOperationWarningsData = 0; | 317 core.int buildCounterOperationWarningsData = 0; |
| 318 buildOperationWarningsData() { | 318 buildOperationWarningsData() { |
| 319 var o = new api.OperationWarningsData(); | 319 var o = new api.OperationWarningsData(); |
| 320 buildCounterOperationWarningsData++; | 320 buildCounterOperationWarningsData++; |
| 321 if (buildCounterOperationWarningsData < 3) { | 321 if (buildCounterOperationWarningsData < 3) { |
| 322 o.key = "foo"; | 322 o.key = "foo"; |
| 323 o.value = "foo"; | 323 o.value = "foo"; |
| 324 } | 324 } |
| 325 buildCounterOperationWarningsData--; | 325 buildCounterOperationWarningsData--; |
| 326 return o; | 326 return o; |
| 327 } | 327 } |
| 328 | 328 |
| 329 checkOperationWarningsData(api.OperationWarningsData o) { | 329 checkOperationWarningsData(api.OperationWarningsData o) { |
| 330 buildCounterOperationWarningsData++; | 330 buildCounterOperationWarningsData++; |
| 331 if (buildCounterOperationWarningsData < 3) { | 331 if (buildCounterOperationWarningsData < 3) { |
| 332 unittest.expect(o.key, unittest.equals('foo')); | 332 unittest.expect(o.key, unittest.equals('foo')); |
| 333 unittest.expect(o.value, unittest.equals('foo')); | 333 unittest.expect(o.value, unittest.equals('foo')); |
| 334 } | 334 } |
| 335 buildCounterOperationWarningsData--; | 335 buildCounterOperationWarningsData--; |
| 336 } | 336 } |
| 337 | 337 |
| 338 buildUnnamed2359() { | 338 buildUnnamed2595() { |
| 339 var o = new core.List<api.OperationWarningsData>(); | 339 var o = new core.List<api.OperationWarningsData>(); |
| 340 o.add(buildOperationWarningsData()); | 340 o.add(buildOperationWarningsData()); |
| 341 o.add(buildOperationWarningsData()); | 341 o.add(buildOperationWarningsData()); |
| 342 return o; | 342 return o; |
| 343 } | 343 } |
| 344 | 344 |
| 345 checkUnnamed2359(core.List<api.OperationWarningsData> o) { | 345 checkUnnamed2595(core.List<api.OperationWarningsData> o) { |
| 346 unittest.expect(o, unittest.hasLength(2)); | 346 unittest.expect(o, unittest.hasLength(2)); |
| 347 checkOperationWarningsData(o[0]); | 347 checkOperationWarningsData(o[0]); |
| 348 checkOperationWarningsData(o[1]); | 348 checkOperationWarningsData(o[1]); |
| 349 } | 349 } |
| 350 | 350 |
| 351 core.int buildCounterOperationWarnings = 0; | 351 core.int buildCounterOperationWarnings = 0; |
| 352 buildOperationWarnings() { | 352 buildOperationWarnings() { |
| 353 var o = new api.OperationWarnings(); | 353 var o = new api.OperationWarnings(); |
| 354 buildCounterOperationWarnings++; | 354 buildCounterOperationWarnings++; |
| 355 if (buildCounterOperationWarnings < 3) { | 355 if (buildCounterOperationWarnings < 3) { |
| 356 o.code = "foo"; | 356 o.code = "foo"; |
| 357 o.data = buildUnnamed2359(); | 357 o.data = buildUnnamed2595(); |
| 358 o.message = "foo"; | 358 o.message = "foo"; |
| 359 } | 359 } |
| 360 buildCounterOperationWarnings--; | 360 buildCounterOperationWarnings--; |
| 361 return o; | 361 return o; |
| 362 } | 362 } |
| 363 | 363 |
| 364 checkOperationWarnings(api.OperationWarnings o) { | 364 checkOperationWarnings(api.OperationWarnings o) { |
| 365 buildCounterOperationWarnings++; | 365 buildCounterOperationWarnings++; |
| 366 if (buildCounterOperationWarnings < 3) { | 366 if (buildCounterOperationWarnings < 3) { |
| 367 unittest.expect(o.code, unittest.equals('foo')); | 367 unittest.expect(o.code, unittest.equals('foo')); |
| 368 checkUnnamed2359(o.data); | 368 checkUnnamed2595(o.data); |
| 369 unittest.expect(o.message, unittest.equals('foo')); | 369 unittest.expect(o.message, unittest.equals('foo')); |
| 370 } | 370 } |
| 371 buildCounterOperationWarnings--; | 371 buildCounterOperationWarnings--; |
| 372 } | 372 } |
| 373 | 373 |
| 374 buildUnnamed2360() { | 374 buildUnnamed2596() { |
| 375 var o = new core.List<api.OperationWarnings>(); | 375 var o = new core.List<api.OperationWarnings>(); |
| 376 o.add(buildOperationWarnings()); | 376 o.add(buildOperationWarnings()); |
| 377 o.add(buildOperationWarnings()); | 377 o.add(buildOperationWarnings()); |
| 378 return o; | 378 return o; |
| 379 } | 379 } |
| 380 | 380 |
| 381 checkUnnamed2360(core.List<api.OperationWarnings> o) { | 381 checkUnnamed2596(core.List<api.OperationWarnings> o) { |
| 382 unittest.expect(o, unittest.hasLength(2)); | 382 unittest.expect(o, unittest.hasLength(2)); |
| 383 checkOperationWarnings(o[0]); | 383 checkOperationWarnings(o[0]); |
| 384 checkOperationWarnings(o[1]); | 384 checkOperationWarnings(o[1]); |
| 385 } | 385 } |
| 386 | 386 |
| 387 core.int buildCounterOperation = 0; | 387 core.int buildCounterOperation = 0; |
| 388 buildOperation() { | 388 buildOperation() { |
| 389 var o = new api.Operation(); | 389 var o = new api.Operation(); |
| 390 buildCounterOperation++; | 390 buildCounterOperation++; |
| 391 if (buildCounterOperation < 3) { | 391 if (buildCounterOperation < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 402 o.operationType = "foo"; | 402 o.operationType = "foo"; |
| 403 o.progress = 42; | 403 o.progress = 42; |
| 404 o.region = "foo"; | 404 o.region = "foo"; |
| 405 o.selfLink = "foo"; | 405 o.selfLink = "foo"; |
| 406 o.startTime = "foo"; | 406 o.startTime = "foo"; |
| 407 o.status = "foo"; | 407 o.status = "foo"; |
| 408 o.statusMessage = "foo"; | 408 o.statusMessage = "foo"; |
| 409 o.targetId = "foo"; | 409 o.targetId = "foo"; |
| 410 o.targetLink = "foo"; | 410 o.targetLink = "foo"; |
| 411 o.user = "foo"; | 411 o.user = "foo"; |
| 412 o.warnings = buildUnnamed2360(); | 412 o.warnings = buildUnnamed2596(); |
| 413 o.zone = "foo"; | 413 o.zone = "foo"; |
| 414 } | 414 } |
| 415 buildCounterOperation--; | 415 buildCounterOperation--; |
| 416 return o; | 416 return o; |
| 417 } | 417 } |
| 418 | 418 |
| 419 checkOperation(api.Operation o) { | 419 checkOperation(api.Operation o) { |
| 420 buildCounterOperation++; | 420 buildCounterOperation++; |
| 421 if (buildCounterOperation < 3) { | 421 if (buildCounterOperation < 3) { |
| 422 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 422 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| 423 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 423 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 424 unittest.expect(o.endTime, unittest.equals('foo')); | 424 unittest.expect(o.endTime, unittest.equals('foo')); |
| 425 checkOperationError(o.error); | 425 checkOperationError(o.error); |
| 426 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 426 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 427 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 427 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 428 unittest.expect(o.id, unittest.equals('foo')); | 428 unittest.expect(o.id, unittest.equals('foo')); |
| 429 unittest.expect(o.insertTime, unittest.equals('foo')); | 429 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 430 unittest.expect(o.kind, unittest.equals('foo')); | 430 unittest.expect(o.kind, unittest.equals('foo')); |
| 431 unittest.expect(o.name, unittest.equals('foo')); | 431 unittest.expect(o.name, unittest.equals('foo')); |
| 432 unittest.expect(o.operationType, unittest.equals('foo')); | 432 unittest.expect(o.operationType, unittest.equals('foo')); |
| 433 unittest.expect(o.progress, unittest.equals(42)); | 433 unittest.expect(o.progress, unittest.equals(42)); |
| 434 unittest.expect(o.region, unittest.equals('foo')); | 434 unittest.expect(o.region, unittest.equals('foo')); |
| 435 unittest.expect(o.selfLink, unittest.equals('foo')); | 435 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 436 unittest.expect(o.startTime, unittest.equals('foo')); | 436 unittest.expect(o.startTime, unittest.equals('foo')); |
| 437 unittest.expect(o.status, unittest.equals('foo')); | 437 unittest.expect(o.status, unittest.equals('foo')); |
| 438 unittest.expect(o.statusMessage, unittest.equals('foo')); | 438 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 439 unittest.expect(o.targetId, unittest.equals('foo')); | 439 unittest.expect(o.targetId, unittest.equals('foo')); |
| 440 unittest.expect(o.targetLink, unittest.equals('foo')); | 440 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 441 unittest.expect(o.user, unittest.equals('foo')); | 441 unittest.expect(o.user, unittest.equals('foo')); |
| 442 checkUnnamed2360(o.warnings); | 442 checkUnnamed2596(o.warnings); |
| 443 unittest.expect(o.zone, unittest.equals('foo')); | 443 unittest.expect(o.zone, unittest.equals('foo')); |
| 444 } | 444 } |
| 445 buildCounterOperation--; | 445 buildCounterOperation--; |
| 446 } | 446 } |
| 447 | 447 |
| 448 buildUnnamed2361() { | 448 buildUnnamed2597() { |
| 449 var o = new core.List<api.Operation>(); | 449 var o = new core.List<api.Operation>(); |
| 450 o.add(buildOperation()); | 450 o.add(buildOperation()); |
| 451 o.add(buildOperation()); | 451 o.add(buildOperation()); |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkUnnamed2361(core.List<api.Operation> o) { | 455 checkUnnamed2597(core.List<api.Operation> o) { |
| 456 unittest.expect(o, unittest.hasLength(2)); | 456 unittest.expect(o, unittest.hasLength(2)); |
| 457 checkOperation(o[0]); | 457 checkOperation(o[0]); |
| 458 checkOperation(o[1]); | 458 checkOperation(o[1]); |
| 459 } | 459 } |
| 460 | 460 |
| 461 core.int buildCounterOperationsListResponse = 0; | 461 core.int buildCounterOperationsListResponse = 0; |
| 462 buildOperationsListResponse() { | 462 buildOperationsListResponse() { |
| 463 var o = new api.OperationsListResponse(); | 463 var o = new api.OperationsListResponse(); |
| 464 buildCounterOperationsListResponse++; | 464 buildCounterOperationsListResponse++; |
| 465 if (buildCounterOperationsListResponse < 3) { | 465 if (buildCounterOperationsListResponse < 3) { |
| 466 o.nextPageToken = "foo"; | 466 o.nextPageToken = "foo"; |
| 467 o.operations = buildUnnamed2361(); | 467 o.operations = buildUnnamed2597(); |
| 468 } | 468 } |
| 469 buildCounterOperationsListResponse--; | 469 buildCounterOperationsListResponse--; |
| 470 return o; | 470 return o; |
| 471 } | 471 } |
| 472 | 472 |
| 473 checkOperationsListResponse(api.OperationsListResponse o) { | 473 checkOperationsListResponse(api.OperationsListResponse o) { |
| 474 buildCounterOperationsListResponse++; | 474 buildCounterOperationsListResponse++; |
| 475 if (buildCounterOperationsListResponse < 3) { | 475 if (buildCounterOperationsListResponse < 3) { |
| 476 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 476 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 477 checkUnnamed2361(o.operations); | 477 checkUnnamed2597(o.operations); |
| 478 } | 478 } |
| 479 buildCounterOperationsListResponse--; | 479 buildCounterOperationsListResponse--; |
| 480 } | 480 } |
| 481 | 481 |
| 482 core.int buildCounterResource = 0; | 482 core.int buildCounterResource = 0; |
| 483 buildResource() { | 483 buildResource() { |
| 484 var o = new api.Resource(); | 484 var o = new api.Resource(); |
| 485 buildCounterResource++; | 485 buildCounterResource++; |
| 486 if (buildCounterResource < 3) { | 486 if (buildCounterResource < 3) { |
| 487 o.finalProperties = "foo"; | 487 o.finalProperties = "foo"; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 509 unittest.expect(o.name, unittest.equals('foo')); | 509 unittest.expect(o.name, unittest.equals('foo')); |
| 510 unittest.expect(o.properties, unittest.equals('foo')); | 510 unittest.expect(o.properties, unittest.equals('foo')); |
| 511 unittest.expect(o.type, unittest.equals('foo')); | 511 unittest.expect(o.type, unittest.equals('foo')); |
| 512 checkResourceUpdate(o.update); | 512 checkResourceUpdate(o.update); |
| 513 unittest.expect(o.updateTime, unittest.equals('foo')); | 513 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 514 unittest.expect(o.url, unittest.equals('foo')); | 514 unittest.expect(o.url, unittest.equals('foo')); |
| 515 } | 515 } |
| 516 buildCounterResource--; | 516 buildCounterResource--; |
| 517 } | 517 } |
| 518 | 518 |
| 519 buildUnnamed2362() { | 519 buildUnnamed2598() { |
| 520 var o = new core.List<core.String>(); | 520 var o = new core.List<core.String>(); |
| 521 o.add("foo"); | 521 o.add("foo"); |
| 522 o.add("foo"); | 522 o.add("foo"); |
| 523 return o; | 523 return o; |
| 524 } | 524 } |
| 525 | 525 |
| 526 checkUnnamed2362(core.List<core.String> o) { | 526 checkUnnamed2598(core.List<core.String> o) { |
| 527 unittest.expect(o, unittest.hasLength(2)); | 527 unittest.expect(o, unittest.hasLength(2)); |
| 528 unittest.expect(o[0], unittest.equals('foo')); | 528 unittest.expect(o[0], unittest.equals('foo')); |
| 529 unittest.expect(o[1], unittest.equals('foo')); | 529 unittest.expect(o[1], unittest.equals('foo')); |
| 530 } | 530 } |
| 531 | 531 |
| 532 core.int buildCounterResourceUpdate = 0; | 532 core.int buildCounterResourceUpdate = 0; |
| 533 buildResourceUpdate() { | 533 buildResourceUpdate() { |
| 534 var o = new api.ResourceUpdate(); | 534 var o = new api.ResourceUpdate(); |
| 535 buildCounterResourceUpdate++; | 535 buildCounterResourceUpdate++; |
| 536 if (buildCounterResourceUpdate < 3) { | 536 if (buildCounterResourceUpdate < 3) { |
| 537 o.errors = buildUnnamed2362(); | 537 o.errors = buildUnnamed2598(); |
| 538 o.finalProperties = "foo"; | 538 o.finalProperties = "foo"; |
| 539 o.intent = "foo"; | 539 o.intent = "foo"; |
| 540 o.manifest = "foo"; | 540 o.manifest = "foo"; |
| 541 o.properties = "foo"; | 541 o.properties = "foo"; |
| 542 o.state = "foo"; | 542 o.state = "foo"; |
| 543 } | 543 } |
| 544 buildCounterResourceUpdate--; | 544 buildCounterResourceUpdate--; |
| 545 return o; | 545 return o; |
| 546 } | 546 } |
| 547 | 547 |
| 548 checkResourceUpdate(api.ResourceUpdate o) { | 548 checkResourceUpdate(api.ResourceUpdate o) { |
| 549 buildCounterResourceUpdate++; | 549 buildCounterResourceUpdate++; |
| 550 if (buildCounterResourceUpdate < 3) { | 550 if (buildCounterResourceUpdate < 3) { |
| 551 checkUnnamed2362(o.errors); | 551 checkUnnamed2598(o.errors); |
| 552 unittest.expect(o.finalProperties, unittest.equals('foo')); | 552 unittest.expect(o.finalProperties, unittest.equals('foo')); |
| 553 unittest.expect(o.intent, unittest.equals('foo')); | 553 unittest.expect(o.intent, unittest.equals('foo')); |
| 554 unittest.expect(o.manifest, unittest.equals('foo')); | 554 unittest.expect(o.manifest, unittest.equals('foo')); |
| 555 unittest.expect(o.properties, unittest.equals('foo')); | 555 unittest.expect(o.properties, unittest.equals('foo')); |
| 556 unittest.expect(o.state, unittest.equals('foo')); | 556 unittest.expect(o.state, unittest.equals('foo')); |
| 557 } | 557 } |
| 558 buildCounterResourceUpdate--; | 558 buildCounterResourceUpdate--; |
| 559 } | 559 } |
| 560 | 560 |
| 561 buildUnnamed2363() { | 561 buildUnnamed2599() { |
| 562 var o = new core.List<api.Resource>(); | 562 var o = new core.List<api.Resource>(); |
| 563 o.add(buildResource()); | 563 o.add(buildResource()); |
| 564 o.add(buildResource()); | 564 o.add(buildResource()); |
| 565 return o; | 565 return o; |
| 566 } | 566 } |
| 567 | 567 |
| 568 checkUnnamed2363(core.List<api.Resource> o) { | 568 checkUnnamed2599(core.List<api.Resource> o) { |
| 569 unittest.expect(o, unittest.hasLength(2)); | 569 unittest.expect(o, unittest.hasLength(2)); |
| 570 checkResource(o[0]); | 570 checkResource(o[0]); |
| 571 checkResource(o[1]); | 571 checkResource(o[1]); |
| 572 } | 572 } |
| 573 | 573 |
| 574 core.int buildCounterResourcesListResponse = 0; | 574 core.int buildCounterResourcesListResponse = 0; |
| 575 buildResourcesListResponse() { | 575 buildResourcesListResponse() { |
| 576 var o = new api.ResourcesListResponse(); | 576 var o = new api.ResourcesListResponse(); |
| 577 buildCounterResourcesListResponse++; | 577 buildCounterResourcesListResponse++; |
| 578 if (buildCounterResourcesListResponse < 3) { | 578 if (buildCounterResourcesListResponse < 3) { |
| 579 o.nextPageToken = "foo"; | 579 o.nextPageToken = "foo"; |
| 580 o.resources = buildUnnamed2363(); | 580 o.resources = buildUnnamed2599(); |
| 581 } | 581 } |
| 582 buildCounterResourcesListResponse--; | 582 buildCounterResourcesListResponse--; |
| 583 return o; | 583 return o; |
| 584 } | 584 } |
| 585 | 585 |
| 586 checkResourcesListResponse(api.ResourcesListResponse o) { | 586 checkResourcesListResponse(api.ResourcesListResponse o) { |
| 587 buildCounterResourcesListResponse++; | 587 buildCounterResourcesListResponse++; |
| 588 if (buildCounterResourcesListResponse < 3) { | 588 if (buildCounterResourcesListResponse < 3) { |
| 589 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 589 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 590 checkUnnamed2363(o.resources); | 590 checkUnnamed2599(o.resources); |
| 591 } | 591 } |
| 592 buildCounterResourcesListResponse--; | 592 buildCounterResourcesListResponse--; |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed2364() { | 595 buildUnnamed2600() { |
| 596 var o = new core.List<api.ImportFile>(); | 596 var o = new core.List<api.ImportFile>(); |
| 597 o.add(buildImportFile()); | 597 o.add(buildImportFile()); |
| 598 o.add(buildImportFile()); | 598 o.add(buildImportFile()); |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkUnnamed2364(core.List<api.ImportFile> o) { | 602 checkUnnamed2600(core.List<api.ImportFile> o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 604 checkImportFile(o[0]); | 604 checkImportFile(o[0]); |
| 605 checkImportFile(o[1]); | 605 checkImportFile(o[1]); |
| 606 } | 606 } |
| 607 | 607 |
| 608 core.int buildCounterTargetConfiguration = 0; | 608 core.int buildCounterTargetConfiguration = 0; |
| 609 buildTargetConfiguration() { | 609 buildTargetConfiguration() { |
| 610 var o = new api.TargetConfiguration(); | 610 var o = new api.TargetConfiguration(); |
| 611 buildCounterTargetConfiguration++; | 611 buildCounterTargetConfiguration++; |
| 612 if (buildCounterTargetConfiguration < 3) { | 612 if (buildCounterTargetConfiguration < 3) { |
| 613 o.config = "foo"; | 613 o.config = "foo"; |
| 614 o.imports = buildUnnamed2364(); | 614 o.imports = buildUnnamed2600(); |
| 615 } | 615 } |
| 616 buildCounterTargetConfiguration--; | 616 buildCounterTargetConfiguration--; |
| 617 return o; | 617 return o; |
| 618 } | 618 } |
| 619 | 619 |
| 620 checkTargetConfiguration(api.TargetConfiguration o) { | 620 checkTargetConfiguration(api.TargetConfiguration o) { |
| 621 buildCounterTargetConfiguration++; | 621 buildCounterTargetConfiguration++; |
| 622 if (buildCounterTargetConfiguration < 3) { | 622 if (buildCounterTargetConfiguration < 3) { |
| 623 unittest.expect(o.config, unittest.equals('foo')); | 623 unittest.expect(o.config, unittest.equals('foo')); |
| 624 checkUnnamed2364(o.imports); | 624 checkUnnamed2600(o.imports); |
| 625 } | 625 } |
| 626 buildCounterTargetConfiguration--; | 626 buildCounterTargetConfiguration--; |
| 627 } | 627 } |
| 628 | 628 |
| 629 core.int buildCounterType = 0; | 629 core.int buildCounterType = 0; |
| 630 buildType() { | 630 buildType() { |
| 631 var o = new api.Type(); | 631 var o = new api.Type(); |
| 632 buildCounterType++; | 632 buildCounterType++; |
| 633 if (buildCounterType < 3) { | 633 if (buildCounterType < 3) { |
| 634 o.name = "foo"; | 634 o.name = "foo"; |
| 635 } | 635 } |
| 636 buildCounterType--; | 636 buildCounterType--; |
| 637 return o; | 637 return o; |
| 638 } | 638 } |
| 639 | 639 |
| 640 checkType(api.Type o) { | 640 checkType(api.Type o) { |
| 641 buildCounterType++; | 641 buildCounterType++; |
| 642 if (buildCounterType < 3) { | 642 if (buildCounterType < 3) { |
| 643 unittest.expect(o.name, unittest.equals('foo')); | 643 unittest.expect(o.name, unittest.equals('foo')); |
| 644 } | 644 } |
| 645 buildCounterType--; | 645 buildCounterType--; |
| 646 } | 646 } |
| 647 | 647 |
| 648 buildUnnamed2365() { | 648 buildUnnamed2601() { |
| 649 var o = new core.List<api.Type>(); | 649 var o = new core.List<api.Type>(); |
| 650 o.add(buildType()); | 650 o.add(buildType()); |
| 651 o.add(buildType()); | 651 o.add(buildType()); |
| 652 return o; | 652 return o; |
| 653 } | 653 } |
| 654 | 654 |
| 655 checkUnnamed2365(core.List<api.Type> o) { | 655 checkUnnamed2601(core.List<api.Type> o) { |
| 656 unittest.expect(o, unittest.hasLength(2)); | 656 unittest.expect(o, unittest.hasLength(2)); |
| 657 checkType(o[0]); | 657 checkType(o[0]); |
| 658 checkType(o[1]); | 658 checkType(o[1]); |
| 659 } | 659 } |
| 660 | 660 |
| 661 core.int buildCounterTypesListResponse = 0; | 661 core.int buildCounterTypesListResponse = 0; |
| 662 buildTypesListResponse() { | 662 buildTypesListResponse() { |
| 663 var o = new api.TypesListResponse(); | 663 var o = new api.TypesListResponse(); |
| 664 buildCounterTypesListResponse++; | 664 buildCounterTypesListResponse++; |
| 665 if (buildCounterTypesListResponse < 3) { | 665 if (buildCounterTypesListResponse < 3) { |
| 666 o.nextPageToken = "foo"; | 666 o.nextPageToken = "foo"; |
| 667 o.types = buildUnnamed2365(); | 667 o.types = buildUnnamed2601(); |
| 668 } | 668 } |
| 669 buildCounterTypesListResponse--; | 669 buildCounterTypesListResponse--; |
| 670 return o; | 670 return o; |
| 671 } | 671 } |
| 672 | 672 |
| 673 checkTypesListResponse(api.TypesListResponse o) { | 673 checkTypesListResponse(api.TypesListResponse o) { |
| 674 buildCounterTypesListResponse++; | 674 buildCounterTypesListResponse++; |
| 675 if (buildCounterTypesListResponse < 3) { | 675 if (buildCounterTypesListResponse < 3) { |
| 676 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 676 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 677 checkUnnamed2365(o.types); | 677 checkUnnamed2601(o.types); |
| 678 } | 678 } |
| 679 buildCounterTypesListResponse--; | 679 buildCounterTypesListResponse--; |
| 680 } | 680 } |
| 681 | 681 |
| 682 | 682 |
| 683 main() { | 683 main() { |
| 684 unittest.group("obj-schema-Deployment", () { | 684 unittest.group("obj-schema-Deployment", () { |
| 685 unittest.test("to-json--from-json", () { | 685 unittest.test("to-json--from-json", () { |
| 686 var o = buildDeployment(); | 686 var o = buildDeployment(); |
| 687 var od = new api.Deployment.fromJson(o.toJson()); | 687 var od = new api.Deployment.fromJson(o.toJson()); |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response
) { | 1469 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response
) { |
| 1470 checkTypesListResponse(response); | 1470 checkTypesListResponse(response); |
| 1471 }))); | 1471 }))); |
| 1472 }); | 1472 }); |
| 1473 | 1473 |
| 1474 }); | 1474 }); |
| 1475 | 1475 |
| 1476 | 1476 |
| 1477 } | 1477 } |
| 1478 | 1478 |
| OLD | NEW |