| 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 buildUnnamed3016() { | 93 buildUnnamed3362() { |
| 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 checkUnnamed3016(core.List<core.String> o) { | 100 checkUnnamed3362(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 = buildUnnamed3016(); | 111 o.errors = buildUnnamed3362(); |
| 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 checkUnnamed3016(o.errors); | 121 checkUnnamed3362(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 buildUnnamed3017() { | 127 buildUnnamed3363() { |
| 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 checkUnnamed3017(core.List<api.Deployment> o) { | 134 checkUnnamed3363(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 = buildUnnamed3017(); | 145 o.deployments = buildUnnamed3363(); |
| 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 checkUnnamed3017(o.deployments); | 155 checkUnnamed3363(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 buildUnnamed3018() { | 182 buildUnnamed3364() { |
| 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 checkUnnamed3018(core.List<api.ImportFile> o) { | 189 checkUnnamed3364(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 = buildUnnamed3018(); | 203 o.imports = buildUnnamed3364(); |
| 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 checkUnnamed3018(o.imports); | 219 checkUnnamed3364(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 buildUnnamed3019() { | 228 buildUnnamed3365() { |
| 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 checkUnnamed3019(core.List<api.Manifest> o) { | 235 checkUnnamed3365(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 = buildUnnamed3019(); | 246 o.manifests = buildUnnamed3365(); |
| 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 checkUnnamed3019(o.manifests); | 256 checkUnnamed3365(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 buildUnnamed3020() { | 285 buildUnnamed3366() { |
| 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 checkUnnamed3020(core.List<api.OperationErrorErrors> o) { | 292 checkUnnamed3366(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 = buildUnnamed3020(); | 303 o.errors = buildUnnamed3366(); |
| 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 checkUnnamed3020(o.errors); | 312 checkUnnamed3366(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 buildUnnamed3021() { | 338 buildUnnamed3367() { |
| 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 checkUnnamed3021(core.List<api.OperationWarningsData> o) { | 345 checkUnnamed3367(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 = buildUnnamed3021(); | 357 o.data = buildUnnamed3367(); |
| 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 checkUnnamed3021(o.data); | 368 checkUnnamed3367(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 buildUnnamed3022() { | 374 buildUnnamed3368() { |
| 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 checkUnnamed3022(core.List<api.OperationWarnings> o) { | 381 checkUnnamed3368(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 11 matching lines...) Expand all Loading... |
| 403 o.operationType = "foo"; | 403 o.operationType = "foo"; |
| 404 o.progress = 42; | 404 o.progress = 42; |
| 405 o.region = "foo"; | 405 o.region = "foo"; |
| 406 o.selfLink = "foo"; | 406 o.selfLink = "foo"; |
| 407 o.startTime = "foo"; | 407 o.startTime = "foo"; |
| 408 o.status = "foo"; | 408 o.status = "foo"; |
| 409 o.statusMessage = "foo"; | 409 o.statusMessage = "foo"; |
| 410 o.targetId = "foo"; | 410 o.targetId = "foo"; |
| 411 o.targetLink = "foo"; | 411 o.targetLink = "foo"; |
| 412 o.user = "foo"; | 412 o.user = "foo"; |
| 413 o.warnings = buildUnnamed3022(); | 413 o.warnings = buildUnnamed3368(); |
| 414 o.zone = "foo"; | 414 o.zone = "foo"; |
| 415 } | 415 } |
| 416 buildCounterOperation--; | 416 buildCounterOperation--; |
| 417 return o; | 417 return o; |
| 418 } | 418 } |
| 419 | 419 |
| 420 checkOperation(api.Operation o) { | 420 checkOperation(api.Operation o) { |
| 421 buildCounterOperation++; | 421 buildCounterOperation++; |
| 422 if (buildCounterOperation < 3) { | 422 if (buildCounterOperation < 3) { |
| 423 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 423 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 434 unittest.expect(o.operationType, unittest.equals('foo')); | 434 unittest.expect(o.operationType, unittest.equals('foo')); |
| 435 unittest.expect(o.progress, unittest.equals(42)); | 435 unittest.expect(o.progress, unittest.equals(42)); |
| 436 unittest.expect(o.region, unittest.equals('foo')); | 436 unittest.expect(o.region, unittest.equals('foo')); |
| 437 unittest.expect(o.selfLink, unittest.equals('foo')); | 437 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 438 unittest.expect(o.startTime, unittest.equals('foo')); | 438 unittest.expect(o.startTime, unittest.equals('foo')); |
| 439 unittest.expect(o.status, unittest.equals('foo')); | 439 unittest.expect(o.status, unittest.equals('foo')); |
| 440 unittest.expect(o.statusMessage, unittest.equals('foo')); | 440 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 441 unittest.expect(o.targetId, unittest.equals('foo')); | 441 unittest.expect(o.targetId, unittest.equals('foo')); |
| 442 unittest.expect(o.targetLink, unittest.equals('foo')); | 442 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 443 unittest.expect(o.user, unittest.equals('foo')); | 443 unittest.expect(o.user, unittest.equals('foo')); |
| 444 checkUnnamed3022(o.warnings); | 444 checkUnnamed3368(o.warnings); |
| 445 unittest.expect(o.zone, unittest.equals('foo')); | 445 unittest.expect(o.zone, unittest.equals('foo')); |
| 446 } | 446 } |
| 447 buildCounterOperation--; | 447 buildCounterOperation--; |
| 448 } | 448 } |
| 449 | 449 |
| 450 buildUnnamed3023() { | 450 buildUnnamed3369() { |
| 451 var o = new core.List<api.Operation>(); | 451 var o = new core.List<api.Operation>(); |
| 452 o.add(buildOperation()); | 452 o.add(buildOperation()); |
| 453 o.add(buildOperation()); | 453 o.add(buildOperation()); |
| 454 return o; | 454 return o; |
| 455 } | 455 } |
| 456 | 456 |
| 457 checkUnnamed3023(core.List<api.Operation> o) { | 457 checkUnnamed3369(core.List<api.Operation> o) { |
| 458 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
| 459 checkOperation(o[0]); | 459 checkOperation(o[0]); |
| 460 checkOperation(o[1]); | 460 checkOperation(o[1]); |
| 461 } | 461 } |
| 462 | 462 |
| 463 core.int buildCounterOperationsListResponse = 0; | 463 core.int buildCounterOperationsListResponse = 0; |
| 464 buildOperationsListResponse() { | 464 buildOperationsListResponse() { |
| 465 var o = new api.OperationsListResponse(); | 465 var o = new api.OperationsListResponse(); |
| 466 buildCounterOperationsListResponse++; | 466 buildCounterOperationsListResponse++; |
| 467 if (buildCounterOperationsListResponse < 3) { | 467 if (buildCounterOperationsListResponse < 3) { |
| 468 o.nextPageToken = "foo"; | 468 o.nextPageToken = "foo"; |
| 469 o.operations = buildUnnamed3023(); | 469 o.operations = buildUnnamed3369(); |
| 470 } | 470 } |
| 471 buildCounterOperationsListResponse--; | 471 buildCounterOperationsListResponse--; |
| 472 return o; | 472 return o; |
| 473 } | 473 } |
| 474 | 474 |
| 475 checkOperationsListResponse(api.OperationsListResponse o) { | 475 checkOperationsListResponse(api.OperationsListResponse o) { |
| 476 buildCounterOperationsListResponse++; | 476 buildCounterOperationsListResponse++; |
| 477 if (buildCounterOperationsListResponse < 3) { | 477 if (buildCounterOperationsListResponse < 3) { |
| 478 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 478 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 479 checkUnnamed3023(o.operations); | 479 checkUnnamed3369(o.operations); |
| 480 } | 480 } |
| 481 buildCounterOperationsListResponse--; | 481 buildCounterOperationsListResponse--; |
| 482 } | 482 } |
| 483 | 483 |
| 484 core.int buildCounterResource = 0; | 484 core.int buildCounterResource = 0; |
| 485 buildResource() { | 485 buildResource() { |
| 486 var o = new api.Resource(); | 486 var o = new api.Resource(); |
| 487 buildCounterResource++; | 487 buildCounterResource++; |
| 488 if (buildCounterResource < 3) { | 488 if (buildCounterResource < 3) { |
| 489 o.finalProperties = "foo"; | 489 o.finalProperties = "foo"; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 511 unittest.expect(o.name, unittest.equals('foo')); | 511 unittest.expect(o.name, unittest.equals('foo')); |
| 512 unittest.expect(o.properties, unittest.equals('foo')); | 512 unittest.expect(o.properties, unittest.equals('foo')); |
| 513 unittest.expect(o.type, unittest.equals('foo')); | 513 unittest.expect(o.type, unittest.equals('foo')); |
| 514 checkResourceUpdate(o.update); | 514 checkResourceUpdate(o.update); |
| 515 unittest.expect(o.updateTime, unittest.equals('foo')); | 515 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 516 unittest.expect(o.url, unittest.equals('foo')); | 516 unittest.expect(o.url, unittest.equals('foo')); |
| 517 } | 517 } |
| 518 buildCounterResource--; | 518 buildCounterResource--; |
| 519 } | 519 } |
| 520 | 520 |
| 521 buildUnnamed3024() { | 521 buildUnnamed3370() { |
| 522 var o = new core.List<core.String>(); | 522 var o = new core.List<core.String>(); |
| 523 o.add("foo"); | 523 o.add("foo"); |
| 524 o.add("foo"); | 524 o.add("foo"); |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkUnnamed3024(core.List<core.String> o) { | 528 checkUnnamed3370(core.List<core.String> o) { |
| 529 unittest.expect(o, unittest.hasLength(2)); | 529 unittest.expect(o, unittest.hasLength(2)); |
| 530 unittest.expect(o[0], unittest.equals('foo')); | 530 unittest.expect(o[0], unittest.equals('foo')); |
| 531 unittest.expect(o[1], unittest.equals('foo')); | 531 unittest.expect(o[1], unittest.equals('foo')); |
| 532 } | 532 } |
| 533 | 533 |
| 534 core.int buildCounterResourceUpdate = 0; | 534 core.int buildCounterResourceUpdate = 0; |
| 535 buildResourceUpdate() { | 535 buildResourceUpdate() { |
| 536 var o = new api.ResourceUpdate(); | 536 var o = new api.ResourceUpdate(); |
| 537 buildCounterResourceUpdate++; | 537 buildCounterResourceUpdate++; |
| 538 if (buildCounterResourceUpdate < 3) { | 538 if (buildCounterResourceUpdate < 3) { |
| 539 o.errors = buildUnnamed3024(); | 539 o.errors = buildUnnamed3370(); |
| 540 o.finalProperties = "foo"; | 540 o.finalProperties = "foo"; |
| 541 o.intent = "foo"; | 541 o.intent = "foo"; |
| 542 o.manifest = "foo"; | 542 o.manifest = "foo"; |
| 543 o.properties = "foo"; | 543 o.properties = "foo"; |
| 544 o.state = "foo"; | 544 o.state = "foo"; |
| 545 } | 545 } |
| 546 buildCounterResourceUpdate--; | 546 buildCounterResourceUpdate--; |
| 547 return o; | 547 return o; |
| 548 } | 548 } |
| 549 | 549 |
| 550 checkResourceUpdate(api.ResourceUpdate o) { | 550 checkResourceUpdate(api.ResourceUpdate o) { |
| 551 buildCounterResourceUpdate++; | 551 buildCounterResourceUpdate++; |
| 552 if (buildCounterResourceUpdate < 3) { | 552 if (buildCounterResourceUpdate < 3) { |
| 553 checkUnnamed3024(o.errors); | 553 checkUnnamed3370(o.errors); |
| 554 unittest.expect(o.finalProperties, unittest.equals('foo')); | 554 unittest.expect(o.finalProperties, unittest.equals('foo')); |
| 555 unittest.expect(o.intent, unittest.equals('foo')); | 555 unittest.expect(o.intent, unittest.equals('foo')); |
| 556 unittest.expect(o.manifest, unittest.equals('foo')); | 556 unittest.expect(o.manifest, unittest.equals('foo')); |
| 557 unittest.expect(o.properties, unittest.equals('foo')); | 557 unittest.expect(o.properties, unittest.equals('foo')); |
| 558 unittest.expect(o.state, unittest.equals('foo')); | 558 unittest.expect(o.state, unittest.equals('foo')); |
| 559 } | 559 } |
| 560 buildCounterResourceUpdate--; | 560 buildCounterResourceUpdate--; |
| 561 } | 561 } |
| 562 | 562 |
| 563 buildUnnamed3025() { | 563 buildUnnamed3371() { |
| 564 var o = new core.List<api.Resource>(); | 564 var o = new core.List<api.Resource>(); |
| 565 o.add(buildResource()); | 565 o.add(buildResource()); |
| 566 o.add(buildResource()); | 566 o.add(buildResource()); |
| 567 return o; | 567 return o; |
| 568 } | 568 } |
| 569 | 569 |
| 570 checkUnnamed3025(core.List<api.Resource> o) { | 570 checkUnnamed3371(core.List<api.Resource> o) { |
| 571 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
| 572 checkResource(o[0]); | 572 checkResource(o[0]); |
| 573 checkResource(o[1]); | 573 checkResource(o[1]); |
| 574 } | 574 } |
| 575 | 575 |
| 576 core.int buildCounterResourcesListResponse = 0; | 576 core.int buildCounterResourcesListResponse = 0; |
| 577 buildResourcesListResponse() { | 577 buildResourcesListResponse() { |
| 578 var o = new api.ResourcesListResponse(); | 578 var o = new api.ResourcesListResponse(); |
| 579 buildCounterResourcesListResponse++; | 579 buildCounterResourcesListResponse++; |
| 580 if (buildCounterResourcesListResponse < 3) { | 580 if (buildCounterResourcesListResponse < 3) { |
| 581 o.nextPageToken = "foo"; | 581 o.nextPageToken = "foo"; |
| 582 o.resources = buildUnnamed3025(); | 582 o.resources = buildUnnamed3371(); |
| 583 } | 583 } |
| 584 buildCounterResourcesListResponse--; | 584 buildCounterResourcesListResponse--; |
| 585 return o; | 585 return o; |
| 586 } | 586 } |
| 587 | 587 |
| 588 checkResourcesListResponse(api.ResourcesListResponse o) { | 588 checkResourcesListResponse(api.ResourcesListResponse o) { |
| 589 buildCounterResourcesListResponse++; | 589 buildCounterResourcesListResponse++; |
| 590 if (buildCounterResourcesListResponse < 3) { | 590 if (buildCounterResourcesListResponse < 3) { |
| 591 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 591 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 592 checkUnnamed3025(o.resources); | 592 checkUnnamed3371(o.resources); |
| 593 } | 593 } |
| 594 buildCounterResourcesListResponse--; | 594 buildCounterResourcesListResponse--; |
| 595 } | 595 } |
| 596 | 596 |
| 597 buildUnnamed3026() { | 597 buildUnnamed3372() { |
| 598 var o = new core.List<api.ImportFile>(); | 598 var o = new core.List<api.ImportFile>(); |
| 599 o.add(buildImportFile()); | 599 o.add(buildImportFile()); |
| 600 o.add(buildImportFile()); | 600 o.add(buildImportFile()); |
| 601 return o; | 601 return o; |
| 602 } | 602 } |
| 603 | 603 |
| 604 checkUnnamed3026(core.List<api.ImportFile> o) { | 604 checkUnnamed3372(core.List<api.ImportFile> o) { |
| 605 unittest.expect(o, unittest.hasLength(2)); | 605 unittest.expect(o, unittest.hasLength(2)); |
| 606 checkImportFile(o[0]); | 606 checkImportFile(o[0]); |
| 607 checkImportFile(o[1]); | 607 checkImportFile(o[1]); |
| 608 } | 608 } |
| 609 | 609 |
| 610 core.int buildCounterTargetConfiguration = 0; | 610 core.int buildCounterTargetConfiguration = 0; |
| 611 buildTargetConfiguration() { | 611 buildTargetConfiguration() { |
| 612 var o = new api.TargetConfiguration(); | 612 var o = new api.TargetConfiguration(); |
| 613 buildCounterTargetConfiguration++; | 613 buildCounterTargetConfiguration++; |
| 614 if (buildCounterTargetConfiguration < 3) { | 614 if (buildCounterTargetConfiguration < 3) { |
| 615 o.config = "foo"; | 615 o.config = "foo"; |
| 616 o.imports = buildUnnamed3026(); | 616 o.imports = buildUnnamed3372(); |
| 617 } | 617 } |
| 618 buildCounterTargetConfiguration--; | 618 buildCounterTargetConfiguration--; |
| 619 return o; | 619 return o; |
| 620 } | 620 } |
| 621 | 621 |
| 622 checkTargetConfiguration(api.TargetConfiguration o) { | 622 checkTargetConfiguration(api.TargetConfiguration o) { |
| 623 buildCounterTargetConfiguration++; | 623 buildCounterTargetConfiguration++; |
| 624 if (buildCounterTargetConfiguration < 3) { | 624 if (buildCounterTargetConfiguration < 3) { |
| 625 unittest.expect(o.config, unittest.equals('foo')); | 625 unittest.expect(o.config, unittest.equals('foo')); |
| 626 checkUnnamed3026(o.imports); | 626 checkUnnamed3372(o.imports); |
| 627 } | 627 } |
| 628 buildCounterTargetConfiguration--; | 628 buildCounterTargetConfiguration--; |
| 629 } | 629 } |
| 630 | 630 |
| 631 core.int buildCounterType = 0; | 631 core.int buildCounterType = 0; |
| 632 buildType() { | 632 buildType() { |
| 633 var o = new api.Type(); | 633 var o = new api.Type(); |
| 634 buildCounterType++; | 634 buildCounterType++; |
| 635 if (buildCounterType < 3) { | 635 if (buildCounterType < 3) { |
| 636 o.id = "foo"; | 636 o.id = "foo"; |
| 637 o.insertTime = "foo"; | 637 o.insertTime = "foo"; |
| 638 o.name = "foo"; | 638 o.name = "foo"; |
| 639 o.selfLink = "foo"; | 639 o.selfLink = "foo"; |
| 640 } | 640 } |
| 641 buildCounterType--; | 641 buildCounterType--; |
| 642 return o; | 642 return o; |
| 643 } | 643 } |
| 644 | 644 |
| 645 checkType(api.Type o) { | 645 checkType(api.Type o) { |
| 646 buildCounterType++; | 646 buildCounterType++; |
| 647 if (buildCounterType < 3) { | 647 if (buildCounterType < 3) { |
| 648 unittest.expect(o.id, unittest.equals('foo')); | 648 unittest.expect(o.id, unittest.equals('foo')); |
| 649 unittest.expect(o.insertTime, unittest.equals('foo')); | 649 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 650 unittest.expect(o.name, unittest.equals('foo')); | 650 unittest.expect(o.name, unittest.equals('foo')); |
| 651 unittest.expect(o.selfLink, unittest.equals('foo')); | 651 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 652 } | 652 } |
| 653 buildCounterType--; | 653 buildCounterType--; |
| 654 } | 654 } |
| 655 | 655 |
| 656 buildUnnamed3027() { | 656 buildUnnamed3373() { |
| 657 var o = new core.List<api.Type>(); | 657 var o = new core.List<api.Type>(); |
| 658 o.add(buildType()); | 658 o.add(buildType()); |
| 659 o.add(buildType()); | 659 o.add(buildType()); |
| 660 return o; | 660 return o; |
| 661 } | 661 } |
| 662 | 662 |
| 663 checkUnnamed3027(core.List<api.Type> o) { | 663 checkUnnamed3373(core.List<api.Type> o) { |
| 664 unittest.expect(o, unittest.hasLength(2)); | 664 unittest.expect(o, unittest.hasLength(2)); |
| 665 checkType(o[0]); | 665 checkType(o[0]); |
| 666 checkType(o[1]); | 666 checkType(o[1]); |
| 667 } | 667 } |
| 668 | 668 |
| 669 core.int buildCounterTypesListResponse = 0; | 669 core.int buildCounterTypesListResponse = 0; |
| 670 buildTypesListResponse() { | 670 buildTypesListResponse() { |
| 671 var o = new api.TypesListResponse(); | 671 var o = new api.TypesListResponse(); |
| 672 buildCounterTypesListResponse++; | 672 buildCounterTypesListResponse++; |
| 673 if (buildCounterTypesListResponse < 3) { | 673 if (buildCounterTypesListResponse < 3) { |
| 674 o.nextPageToken = "foo"; | 674 o.nextPageToken = "foo"; |
| 675 o.types = buildUnnamed3027(); | 675 o.types = buildUnnamed3373(); |
| 676 } | 676 } |
| 677 buildCounterTypesListResponse--; | 677 buildCounterTypesListResponse--; |
| 678 return o; | 678 return o; |
| 679 } | 679 } |
| 680 | 680 |
| 681 checkTypesListResponse(api.TypesListResponse o) { | 681 checkTypesListResponse(api.TypesListResponse o) { |
| 682 buildCounterTypesListResponse++; | 682 buildCounterTypesListResponse++; |
| 683 if (buildCounterTypesListResponse < 3) { | 683 if (buildCounterTypesListResponse < 3) { |
| 684 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 684 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 685 checkUnnamed3027(o.types); | 685 checkUnnamed3373(o.types); |
| 686 } | 686 } |
| 687 buildCounterTypesListResponse--; | 687 buildCounterTypesListResponse--; |
| 688 } | 688 } |
| 689 | 689 |
| 690 | 690 |
| 691 main() { | 691 main() { |
| 692 unittest.group("obj-schema-Deployment", () { | 692 unittest.group("obj-schema-Deployment", () { |
| 693 unittest.test("to-json--from-json", () { | 693 unittest.test("to-json--from-json", () { |
| 694 var o = buildDeployment(); | 694 var o = buildDeployment(); |
| 695 var od = new api.Deployment.fromJson(o.toJson()); | 695 var od = new api.Deployment.fromJson(o.toJson()); |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1477 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response
) { | 1477 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response
) { |
| 1478 checkTypesListResponse(response); | 1478 checkTypesListResponse(response); |
| 1479 }))); | 1479 }))); |
| 1480 }); | 1480 }); |
| 1481 | 1481 |
| 1482 }); | 1482 }); |
| 1483 | 1483 |
| 1484 | 1484 |
| 1485 } | 1485 } |
| 1486 | 1486 |
| OLD | NEW |