| OLD | NEW |
| 1 library googleapis_beta.deploymentmanager.v2beta1.test; | 1 library googleapis_beta.deploymentmanager.v2beta1.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 if (buildCounterDeployment < 3) { | 71 if (buildCounterDeployment < 3) { |
| 72 unittest.expect(o.description, unittest.equals('foo')); | 72 unittest.expect(o.description, unittest.equals('foo')); |
| 73 unittest.expect(o.id, unittest.equals('foo')); | 73 unittest.expect(o.id, unittest.equals('foo')); |
| 74 unittest.expect(o.manifest, unittest.equals('foo')); | 74 unittest.expect(o.manifest, unittest.equals('foo')); |
| 75 unittest.expect(o.name, unittest.equals('foo')); | 75 unittest.expect(o.name, unittest.equals('foo')); |
| 76 unittest.expect(o.targetConfig, unittest.equals('foo')); | 76 unittest.expect(o.targetConfig, unittest.equals('foo')); |
| 77 } | 77 } |
| 78 buildCounterDeployment--; | 78 buildCounterDeployment--; |
| 79 } | 79 } |
| 80 | 80 |
| 81 buildUnnamed1656() { | 81 buildUnnamed2345() { |
| 82 var o = new core.List<api.Deployment>(); | 82 var o = new core.List<api.Deployment>(); |
| 83 o.add(buildDeployment()); | 83 o.add(buildDeployment()); |
| 84 o.add(buildDeployment()); | 84 o.add(buildDeployment()); |
| 85 return o; | 85 return o; |
| 86 } | 86 } |
| 87 | 87 |
| 88 checkUnnamed1656(core.List<api.Deployment> o) { | 88 checkUnnamed2345(core.List<api.Deployment> o) { |
| 89 unittest.expect(o, unittest.hasLength(2)); | 89 unittest.expect(o, unittest.hasLength(2)); |
| 90 checkDeployment(o[0]); | 90 checkDeployment(o[0]); |
| 91 checkDeployment(o[1]); | 91 checkDeployment(o[1]); |
| 92 } | 92 } |
| 93 | 93 |
| 94 core.int buildCounterDeploymentsListResponse = 0; | 94 core.int buildCounterDeploymentsListResponse = 0; |
| 95 buildDeploymentsListResponse() { | 95 buildDeploymentsListResponse() { |
| 96 var o = new api.DeploymentsListResponse(); | 96 var o = new api.DeploymentsListResponse(); |
| 97 buildCounterDeploymentsListResponse++; | 97 buildCounterDeploymentsListResponse++; |
| 98 if (buildCounterDeploymentsListResponse < 3) { | 98 if (buildCounterDeploymentsListResponse < 3) { |
| 99 o.deployments = buildUnnamed1656(); | 99 o.deployments = buildUnnamed2345(); |
| 100 o.nextPageToken = "foo"; | 100 o.nextPageToken = "foo"; |
| 101 } | 101 } |
| 102 buildCounterDeploymentsListResponse--; | 102 buildCounterDeploymentsListResponse--; |
| 103 return o; | 103 return o; |
| 104 } | 104 } |
| 105 | 105 |
| 106 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 106 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
| 107 buildCounterDeploymentsListResponse++; | 107 buildCounterDeploymentsListResponse++; |
| 108 if (buildCounterDeploymentsListResponse < 3) { | 108 if (buildCounterDeploymentsListResponse < 3) { |
| 109 checkUnnamed1656(o.deployments); | 109 checkUnnamed2345(o.deployments); |
| 110 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 110 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 111 } | 111 } |
| 112 buildCounterDeploymentsListResponse--; | 112 buildCounterDeploymentsListResponse--; |
| 113 } | 113 } |
| 114 | 114 |
| 115 core.int buildCounterManifest = 0; | 115 core.int buildCounterManifest = 0; |
| 116 buildManifest() { | 116 buildManifest() { |
| 117 var o = new api.Manifest(); | 117 var o = new api.Manifest(); |
| 118 buildCounterManifest++; | 118 buildCounterManifest++; |
| 119 if (buildCounterManifest < 3) { | 119 if (buildCounterManifest < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 132 if (buildCounterManifest < 3) { | 132 if (buildCounterManifest < 3) { |
| 133 unittest.expect(o.config, unittest.equals('foo')); | 133 unittest.expect(o.config, unittest.equals('foo')); |
| 134 unittest.expect(o.evaluatedConfig, unittest.equals('foo')); | 134 unittest.expect(o.evaluatedConfig, unittest.equals('foo')); |
| 135 unittest.expect(o.id, unittest.equals('foo')); | 135 unittest.expect(o.id, unittest.equals('foo')); |
| 136 unittest.expect(o.name, unittest.equals('foo')); | 136 unittest.expect(o.name, unittest.equals('foo')); |
| 137 unittest.expect(o.selfLink, unittest.equals('foo')); | 137 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 138 } | 138 } |
| 139 buildCounterManifest--; | 139 buildCounterManifest--; |
| 140 } | 140 } |
| 141 | 141 |
| 142 buildUnnamed1657() { | 142 buildUnnamed2346() { |
| 143 var o = new core.List<api.Manifest>(); | 143 var o = new core.List<api.Manifest>(); |
| 144 o.add(buildManifest()); | 144 o.add(buildManifest()); |
| 145 o.add(buildManifest()); | 145 o.add(buildManifest()); |
| 146 return o; | 146 return o; |
| 147 } | 147 } |
| 148 | 148 |
| 149 checkUnnamed1657(core.List<api.Manifest> o) { | 149 checkUnnamed2346(core.List<api.Manifest> o) { |
| 150 unittest.expect(o, unittest.hasLength(2)); | 150 unittest.expect(o, unittest.hasLength(2)); |
| 151 checkManifest(o[0]); | 151 checkManifest(o[0]); |
| 152 checkManifest(o[1]); | 152 checkManifest(o[1]); |
| 153 } | 153 } |
| 154 | 154 |
| 155 core.int buildCounterManifestsListResponse = 0; | 155 core.int buildCounterManifestsListResponse = 0; |
| 156 buildManifestsListResponse() { | 156 buildManifestsListResponse() { |
| 157 var o = new api.ManifestsListResponse(); | 157 var o = new api.ManifestsListResponse(); |
| 158 buildCounterManifestsListResponse++; | 158 buildCounterManifestsListResponse++; |
| 159 if (buildCounterManifestsListResponse < 3) { | 159 if (buildCounterManifestsListResponse < 3) { |
| 160 o.manifests = buildUnnamed1657(); | 160 o.manifests = buildUnnamed2346(); |
| 161 o.nextPageToken = "foo"; | 161 o.nextPageToken = "foo"; |
| 162 } | 162 } |
| 163 buildCounterManifestsListResponse--; | 163 buildCounterManifestsListResponse--; |
| 164 return o; | 164 return o; |
| 165 } | 165 } |
| 166 | 166 |
| 167 checkManifestsListResponse(api.ManifestsListResponse o) { | 167 checkManifestsListResponse(api.ManifestsListResponse o) { |
| 168 buildCounterManifestsListResponse++; | 168 buildCounterManifestsListResponse++; |
| 169 if (buildCounterManifestsListResponse < 3) { | 169 if (buildCounterManifestsListResponse < 3) { |
| 170 checkUnnamed1657(o.manifests); | 170 checkUnnamed2346(o.manifests); |
| 171 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 171 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 172 } | 172 } |
| 173 buildCounterManifestsListResponse--; | 173 buildCounterManifestsListResponse--; |
| 174 } | 174 } |
| 175 | 175 |
| 176 core.int buildCounterOperationErrorErrors = 0; | 176 core.int buildCounterOperationErrorErrors = 0; |
| 177 buildOperationErrorErrors() { | 177 buildOperationErrorErrors() { |
| 178 var o = new api.OperationErrorErrors(); | 178 var o = new api.OperationErrorErrors(); |
| 179 buildCounterOperationErrorErrors++; | 179 buildCounterOperationErrorErrors++; |
| 180 if (buildCounterOperationErrorErrors < 3) { | 180 if (buildCounterOperationErrorErrors < 3) { |
| 181 o.code = "foo"; | 181 o.code = "foo"; |
| 182 o.location = "foo"; | 182 o.location = "foo"; |
| 183 o.message = "foo"; | 183 o.message = "foo"; |
| 184 } | 184 } |
| 185 buildCounterOperationErrorErrors--; | 185 buildCounterOperationErrorErrors--; |
| 186 return o; | 186 return o; |
| 187 } | 187 } |
| 188 | 188 |
| 189 checkOperationErrorErrors(api.OperationErrorErrors o) { | 189 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 190 buildCounterOperationErrorErrors++; | 190 buildCounterOperationErrorErrors++; |
| 191 if (buildCounterOperationErrorErrors < 3) { | 191 if (buildCounterOperationErrorErrors < 3) { |
| 192 unittest.expect(o.code, unittest.equals('foo')); | 192 unittest.expect(o.code, unittest.equals('foo')); |
| 193 unittest.expect(o.location, unittest.equals('foo')); | 193 unittest.expect(o.location, unittest.equals('foo')); |
| 194 unittest.expect(o.message, unittest.equals('foo')); | 194 unittest.expect(o.message, unittest.equals('foo')); |
| 195 } | 195 } |
| 196 buildCounterOperationErrorErrors--; | 196 buildCounterOperationErrorErrors--; |
| 197 } | 197 } |
| 198 | 198 |
| 199 buildUnnamed1658() { | 199 buildUnnamed2347() { |
| 200 var o = new core.List<api.OperationErrorErrors>(); | 200 var o = new core.List<api.OperationErrorErrors>(); |
| 201 o.add(buildOperationErrorErrors()); | 201 o.add(buildOperationErrorErrors()); |
| 202 o.add(buildOperationErrorErrors()); | 202 o.add(buildOperationErrorErrors()); |
| 203 return o; | 203 return o; |
| 204 } | 204 } |
| 205 | 205 |
| 206 checkUnnamed1658(core.List<api.OperationErrorErrors> o) { | 206 checkUnnamed2347(core.List<api.OperationErrorErrors> o) { |
| 207 unittest.expect(o, unittest.hasLength(2)); | 207 unittest.expect(o, unittest.hasLength(2)); |
| 208 checkOperationErrorErrors(o[0]); | 208 checkOperationErrorErrors(o[0]); |
| 209 checkOperationErrorErrors(o[1]); | 209 checkOperationErrorErrors(o[1]); |
| 210 } | 210 } |
| 211 | 211 |
| 212 core.int buildCounterOperationError = 0; | 212 core.int buildCounterOperationError = 0; |
| 213 buildOperationError() { | 213 buildOperationError() { |
| 214 var o = new api.OperationError(); | 214 var o = new api.OperationError(); |
| 215 buildCounterOperationError++; | 215 buildCounterOperationError++; |
| 216 if (buildCounterOperationError < 3) { | 216 if (buildCounterOperationError < 3) { |
| 217 o.errors = buildUnnamed1658(); | 217 o.errors = buildUnnamed2347(); |
| 218 } | 218 } |
| 219 buildCounterOperationError--; | 219 buildCounterOperationError--; |
| 220 return o; | 220 return o; |
| 221 } | 221 } |
| 222 | 222 |
| 223 checkOperationError(api.OperationError o) { | 223 checkOperationError(api.OperationError o) { |
| 224 buildCounterOperationError++; | 224 buildCounterOperationError++; |
| 225 if (buildCounterOperationError < 3) { | 225 if (buildCounterOperationError < 3) { |
| 226 checkUnnamed1658(o.errors); | 226 checkUnnamed2347(o.errors); |
| 227 } | 227 } |
| 228 buildCounterOperationError--; | 228 buildCounterOperationError--; |
| 229 } | 229 } |
| 230 | 230 |
| 231 core.int buildCounterOperationWarningsData = 0; | 231 core.int buildCounterOperationWarningsData = 0; |
| 232 buildOperationWarningsData() { | 232 buildOperationWarningsData() { |
| 233 var o = new api.OperationWarningsData(); | 233 var o = new api.OperationWarningsData(); |
| 234 buildCounterOperationWarningsData++; | 234 buildCounterOperationWarningsData++; |
| 235 if (buildCounterOperationWarningsData < 3) { | 235 if (buildCounterOperationWarningsData < 3) { |
| 236 o.key = "foo"; | 236 o.key = "foo"; |
| 237 o.value = "foo"; | 237 o.value = "foo"; |
| 238 } | 238 } |
| 239 buildCounterOperationWarningsData--; | 239 buildCounterOperationWarningsData--; |
| 240 return o; | 240 return o; |
| 241 } | 241 } |
| 242 | 242 |
| 243 checkOperationWarningsData(api.OperationWarningsData o) { | 243 checkOperationWarningsData(api.OperationWarningsData o) { |
| 244 buildCounterOperationWarningsData++; | 244 buildCounterOperationWarningsData++; |
| 245 if (buildCounterOperationWarningsData < 3) { | 245 if (buildCounterOperationWarningsData < 3) { |
| 246 unittest.expect(o.key, unittest.equals('foo')); | 246 unittest.expect(o.key, unittest.equals('foo')); |
| 247 unittest.expect(o.value, unittest.equals('foo')); | 247 unittest.expect(o.value, unittest.equals('foo')); |
| 248 } | 248 } |
| 249 buildCounterOperationWarningsData--; | 249 buildCounterOperationWarningsData--; |
| 250 } | 250 } |
| 251 | 251 |
| 252 buildUnnamed1659() { | 252 buildUnnamed2348() { |
| 253 var o = new core.List<api.OperationWarningsData>(); | 253 var o = new core.List<api.OperationWarningsData>(); |
| 254 o.add(buildOperationWarningsData()); | 254 o.add(buildOperationWarningsData()); |
| 255 o.add(buildOperationWarningsData()); | 255 o.add(buildOperationWarningsData()); |
| 256 return o; | 256 return o; |
| 257 } | 257 } |
| 258 | 258 |
| 259 checkUnnamed1659(core.List<api.OperationWarningsData> o) { | 259 checkUnnamed2348(core.List<api.OperationWarningsData> o) { |
| 260 unittest.expect(o, unittest.hasLength(2)); | 260 unittest.expect(o, unittest.hasLength(2)); |
| 261 checkOperationWarningsData(o[0]); | 261 checkOperationWarningsData(o[0]); |
| 262 checkOperationWarningsData(o[1]); | 262 checkOperationWarningsData(o[1]); |
| 263 } | 263 } |
| 264 | 264 |
| 265 core.int buildCounterOperationWarnings = 0; | 265 core.int buildCounterOperationWarnings = 0; |
| 266 buildOperationWarnings() { | 266 buildOperationWarnings() { |
| 267 var o = new api.OperationWarnings(); | 267 var o = new api.OperationWarnings(); |
| 268 buildCounterOperationWarnings++; | 268 buildCounterOperationWarnings++; |
| 269 if (buildCounterOperationWarnings < 3) { | 269 if (buildCounterOperationWarnings < 3) { |
| 270 o.code = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 270 o.code = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 271 o.data = buildUnnamed1659(); | 271 o.data = buildUnnamed2348(); |
| 272 o.message = "foo"; | 272 o.message = "foo"; |
| 273 } | 273 } |
| 274 buildCounterOperationWarnings--; | 274 buildCounterOperationWarnings--; |
| 275 return o; | 275 return o; |
| 276 } | 276 } |
| 277 | 277 |
| 278 checkOperationWarnings(api.OperationWarnings o) { | 278 checkOperationWarnings(api.OperationWarnings o) { |
| 279 buildCounterOperationWarnings++; | 279 buildCounterOperationWarnings++; |
| 280 if (buildCounterOperationWarnings < 3) { | 280 if (buildCounterOperationWarnings < 3) { |
| 281 var casted1 = (o.code) as core.Map; unittest.expect(casted1, unittest.hasLen
gth(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.
expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"
], unittest.equals('foo')); | 281 var casted1 = (o.code) as core.Map; unittest.expect(casted1, unittest.hasLen
gth(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.
expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"
], unittest.equals('foo')); |
| 282 checkUnnamed1659(o.data); | 282 checkUnnamed2348(o.data); |
| 283 unittest.expect(o.message, unittest.equals('foo')); | 283 unittest.expect(o.message, unittest.equals('foo')); |
| 284 } | 284 } |
| 285 buildCounterOperationWarnings--; | 285 buildCounterOperationWarnings--; |
| 286 } | 286 } |
| 287 | 287 |
| 288 buildUnnamed1660() { | 288 buildUnnamed2349() { |
| 289 var o = new core.List<api.OperationWarnings>(); | 289 var o = new core.List<api.OperationWarnings>(); |
| 290 o.add(buildOperationWarnings()); | 290 o.add(buildOperationWarnings()); |
| 291 o.add(buildOperationWarnings()); | 291 o.add(buildOperationWarnings()); |
| 292 return o; | 292 return o; |
| 293 } | 293 } |
| 294 | 294 |
| 295 checkUnnamed1660(core.List<api.OperationWarnings> o) { | 295 checkUnnamed2349(core.List<api.OperationWarnings> o) { |
| 296 unittest.expect(o, unittest.hasLength(2)); | 296 unittest.expect(o, unittest.hasLength(2)); |
| 297 checkOperationWarnings(o[0]); | 297 checkOperationWarnings(o[0]); |
| 298 checkOperationWarnings(o[1]); | 298 checkOperationWarnings(o[1]); |
| 299 } | 299 } |
| 300 | 300 |
| 301 core.int buildCounterOperation = 0; | 301 core.int buildCounterOperation = 0; |
| 302 buildOperation() { | 302 buildOperation() { |
| 303 var o = new api.Operation(); | 303 var o = new api.Operation(); |
| 304 buildCounterOperation++; | 304 buildCounterOperation++; |
| 305 if (buildCounterOperation < 3) { | 305 if (buildCounterOperation < 3) { |
| 306 o.creationTimestamp = "foo"; | 306 o.creationTimestamp = "foo"; |
| 307 o.endTime = "foo"; | 307 o.endTime = "foo"; |
| 308 o.error = buildOperationError(); | 308 o.error = buildOperationError(); |
| 309 o.httpErrorMessage = "foo"; | 309 o.httpErrorMessage = "foo"; |
| 310 o.httpErrorStatusCode = 42; | 310 o.httpErrorStatusCode = 42; |
| 311 o.id = "foo"; | 311 o.id = "foo"; |
| 312 o.insertTime = "foo"; | 312 o.insertTime = "foo"; |
| 313 o.name = "foo"; | 313 o.name = "foo"; |
| 314 o.operationType = "foo"; | 314 o.operationType = "foo"; |
| 315 o.progress = 42; | 315 o.progress = 42; |
| 316 o.selfLink = "foo"; | 316 o.selfLink = "foo"; |
| 317 o.startTime = "foo"; | 317 o.startTime = "foo"; |
| 318 o.status = "foo"; | 318 o.status = "foo"; |
| 319 o.statusMessage = "foo"; | 319 o.statusMessage = "foo"; |
| 320 o.targetId = "foo"; | 320 o.targetId = "foo"; |
| 321 o.targetLink = "foo"; | 321 o.targetLink = "foo"; |
| 322 o.user = "foo"; | 322 o.user = "foo"; |
| 323 o.warnings = buildUnnamed1660(); | 323 o.warnings = buildUnnamed2349(); |
| 324 } | 324 } |
| 325 buildCounterOperation--; | 325 buildCounterOperation--; |
| 326 return o; | 326 return o; |
| 327 } | 327 } |
| 328 | 328 |
| 329 checkOperation(api.Operation o) { | 329 checkOperation(api.Operation o) { |
| 330 buildCounterOperation++; | 330 buildCounterOperation++; |
| 331 if (buildCounterOperation < 3) { | 331 if (buildCounterOperation < 3) { |
| 332 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 332 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 333 unittest.expect(o.endTime, unittest.equals('foo')); | 333 unittest.expect(o.endTime, unittest.equals('foo')); |
| 334 checkOperationError(o.error); | 334 checkOperationError(o.error); |
| 335 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 335 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 336 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 336 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 337 unittest.expect(o.id, unittest.equals('foo')); | 337 unittest.expect(o.id, unittest.equals('foo')); |
| 338 unittest.expect(o.insertTime, unittest.equals('foo')); | 338 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 339 unittest.expect(o.name, unittest.equals('foo')); | 339 unittest.expect(o.name, unittest.equals('foo')); |
| 340 unittest.expect(o.operationType, unittest.equals('foo')); | 340 unittest.expect(o.operationType, unittest.equals('foo')); |
| 341 unittest.expect(o.progress, unittest.equals(42)); | 341 unittest.expect(o.progress, unittest.equals(42)); |
| 342 unittest.expect(o.selfLink, unittest.equals('foo')); | 342 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 343 unittest.expect(o.startTime, unittest.equals('foo')); | 343 unittest.expect(o.startTime, unittest.equals('foo')); |
| 344 unittest.expect(o.status, unittest.equals('foo')); | 344 unittest.expect(o.status, unittest.equals('foo')); |
| 345 unittest.expect(o.statusMessage, unittest.equals('foo')); | 345 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 346 unittest.expect(o.targetId, unittest.equals('foo')); | 346 unittest.expect(o.targetId, unittest.equals('foo')); |
| 347 unittest.expect(o.targetLink, unittest.equals('foo')); | 347 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 348 unittest.expect(o.user, unittest.equals('foo')); | 348 unittest.expect(o.user, unittest.equals('foo')); |
| 349 checkUnnamed1660(o.warnings); | 349 checkUnnamed2349(o.warnings); |
| 350 } | 350 } |
| 351 buildCounterOperation--; | 351 buildCounterOperation--; |
| 352 } | 352 } |
| 353 | 353 |
| 354 buildUnnamed1661() { | 354 buildUnnamed2350() { |
| 355 var o = new core.List<api.Operation>(); | 355 var o = new core.List<api.Operation>(); |
| 356 o.add(buildOperation()); | 356 o.add(buildOperation()); |
| 357 o.add(buildOperation()); | 357 o.add(buildOperation()); |
| 358 return o; | 358 return o; |
| 359 } | 359 } |
| 360 | 360 |
| 361 checkUnnamed1661(core.List<api.Operation> o) { | 361 checkUnnamed2350(core.List<api.Operation> o) { |
| 362 unittest.expect(o, unittest.hasLength(2)); | 362 unittest.expect(o, unittest.hasLength(2)); |
| 363 checkOperation(o[0]); | 363 checkOperation(o[0]); |
| 364 checkOperation(o[1]); | 364 checkOperation(o[1]); |
| 365 } | 365 } |
| 366 | 366 |
| 367 core.int buildCounterOperationsListResponse = 0; | 367 core.int buildCounterOperationsListResponse = 0; |
| 368 buildOperationsListResponse() { | 368 buildOperationsListResponse() { |
| 369 var o = new api.OperationsListResponse(); | 369 var o = new api.OperationsListResponse(); |
| 370 buildCounterOperationsListResponse++; | 370 buildCounterOperationsListResponse++; |
| 371 if (buildCounterOperationsListResponse < 3) { | 371 if (buildCounterOperationsListResponse < 3) { |
| 372 o.nextPageToken = "foo"; | 372 o.nextPageToken = "foo"; |
| 373 o.operations = buildUnnamed1661(); | 373 o.operations = buildUnnamed2350(); |
| 374 } | 374 } |
| 375 buildCounterOperationsListResponse--; | 375 buildCounterOperationsListResponse--; |
| 376 return o; | 376 return o; |
| 377 } | 377 } |
| 378 | 378 |
| 379 checkOperationsListResponse(api.OperationsListResponse o) { | 379 checkOperationsListResponse(api.OperationsListResponse o) { |
| 380 buildCounterOperationsListResponse++; | 380 buildCounterOperationsListResponse++; |
| 381 if (buildCounterOperationsListResponse < 3) { | 381 if (buildCounterOperationsListResponse < 3) { |
| 382 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 382 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 383 checkUnnamed1661(o.operations); | 383 checkUnnamed2350(o.operations); |
| 384 } | 384 } |
| 385 buildCounterOperationsListResponse--; | 385 buildCounterOperationsListResponse--; |
| 386 } | 386 } |
| 387 | 387 |
| 388 buildUnnamed1662() { | 388 buildUnnamed2351() { |
| 389 var o = new core.List<core.String>(); | 389 var o = new core.List<core.String>(); |
| 390 o.add("foo"); | 390 o.add("foo"); |
| 391 o.add("foo"); | 391 o.add("foo"); |
| 392 return o; | 392 return o; |
| 393 } | 393 } |
| 394 | 394 |
| 395 checkUnnamed1662(core.List<core.String> o) { | 395 checkUnnamed2351(core.List<core.String> o) { |
| 396 unittest.expect(o, unittest.hasLength(2)); | 396 unittest.expect(o, unittest.hasLength(2)); |
| 397 unittest.expect(o[0], unittest.equals('foo')); | 397 unittest.expect(o[0], unittest.equals('foo')); |
| 398 unittest.expect(o[1], unittest.equals('foo')); | 398 unittest.expect(o[1], unittest.equals('foo')); |
| 399 } | 399 } |
| 400 | 400 |
| 401 core.int buildCounterResource = 0; | 401 core.int buildCounterResource = 0; |
| 402 buildResource() { | 402 buildResource() { |
| 403 var o = new api.Resource(); | 403 var o = new api.Resource(); |
| 404 buildCounterResource++; | 404 buildCounterResource++; |
| 405 if (buildCounterResource < 3) { | 405 if (buildCounterResource < 3) { |
| 406 o.errors = buildUnnamed1662(); | 406 o.errors = buildUnnamed2351(); |
| 407 o.id = "foo"; | 407 o.id = "foo"; |
| 408 o.intent = "foo"; | 408 o.intent = "foo"; |
| 409 o.manifest = "foo"; | 409 o.manifest = "foo"; |
| 410 o.name = "foo"; | 410 o.name = "foo"; |
| 411 o.state = "foo"; | 411 o.state = "foo"; |
| 412 o.type = "foo"; | 412 o.type = "foo"; |
| 413 o.url = "foo"; | 413 o.url = "foo"; |
| 414 } | 414 } |
| 415 buildCounterResource--; | 415 buildCounterResource--; |
| 416 return o; | 416 return o; |
| 417 } | 417 } |
| 418 | 418 |
| 419 checkResource(api.Resource o) { | 419 checkResource(api.Resource o) { |
| 420 buildCounterResource++; | 420 buildCounterResource++; |
| 421 if (buildCounterResource < 3) { | 421 if (buildCounterResource < 3) { |
| 422 checkUnnamed1662(o.errors); | 422 checkUnnamed2351(o.errors); |
| 423 unittest.expect(o.id, unittest.equals('foo')); | 423 unittest.expect(o.id, unittest.equals('foo')); |
| 424 unittest.expect(o.intent, unittest.equals('foo')); | 424 unittest.expect(o.intent, unittest.equals('foo')); |
| 425 unittest.expect(o.manifest, unittest.equals('foo')); | 425 unittest.expect(o.manifest, unittest.equals('foo')); |
| 426 unittest.expect(o.name, unittest.equals('foo')); | 426 unittest.expect(o.name, unittest.equals('foo')); |
| 427 unittest.expect(o.state, unittest.equals('foo')); | 427 unittest.expect(o.state, unittest.equals('foo')); |
| 428 unittest.expect(o.type, unittest.equals('foo')); | 428 unittest.expect(o.type, unittest.equals('foo')); |
| 429 unittest.expect(o.url, unittest.equals('foo')); | 429 unittest.expect(o.url, unittest.equals('foo')); |
| 430 } | 430 } |
| 431 buildCounterResource--; | 431 buildCounterResource--; |
| 432 } | 432 } |
| 433 | 433 |
| 434 buildUnnamed1663() { | 434 buildUnnamed2352() { |
| 435 var o = new core.List<api.Resource>(); | 435 var o = new core.List<api.Resource>(); |
| 436 o.add(buildResource()); | 436 o.add(buildResource()); |
| 437 o.add(buildResource()); | 437 o.add(buildResource()); |
| 438 return o; | 438 return o; |
| 439 } | 439 } |
| 440 | 440 |
| 441 checkUnnamed1663(core.List<api.Resource> o) { | 441 checkUnnamed2352(core.List<api.Resource> o) { |
| 442 unittest.expect(o, unittest.hasLength(2)); | 442 unittest.expect(o, unittest.hasLength(2)); |
| 443 checkResource(o[0]); | 443 checkResource(o[0]); |
| 444 checkResource(o[1]); | 444 checkResource(o[1]); |
| 445 } | 445 } |
| 446 | 446 |
| 447 core.int buildCounterResourcesListResponse = 0; | 447 core.int buildCounterResourcesListResponse = 0; |
| 448 buildResourcesListResponse() { | 448 buildResourcesListResponse() { |
| 449 var o = new api.ResourcesListResponse(); | 449 var o = new api.ResourcesListResponse(); |
| 450 buildCounterResourcesListResponse++; | 450 buildCounterResourcesListResponse++; |
| 451 if (buildCounterResourcesListResponse < 3) { | 451 if (buildCounterResourcesListResponse < 3) { |
| 452 o.nextPageToken = "foo"; | 452 o.nextPageToken = "foo"; |
| 453 o.resources = buildUnnamed1663(); | 453 o.resources = buildUnnamed2352(); |
| 454 } | 454 } |
| 455 buildCounterResourcesListResponse--; | 455 buildCounterResourcesListResponse--; |
| 456 return o; | 456 return o; |
| 457 } | 457 } |
| 458 | 458 |
| 459 checkResourcesListResponse(api.ResourcesListResponse o) { | 459 checkResourcesListResponse(api.ResourcesListResponse o) { |
| 460 buildCounterResourcesListResponse++; | 460 buildCounterResourcesListResponse++; |
| 461 if (buildCounterResourcesListResponse < 3) { | 461 if (buildCounterResourcesListResponse < 3) { |
| 462 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 462 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 463 checkUnnamed1663(o.resources); | 463 checkUnnamed2352(o.resources); |
| 464 } | 464 } |
| 465 buildCounterResourcesListResponse--; | 465 buildCounterResourcesListResponse--; |
| 466 } | 466 } |
| 467 | 467 |
| 468 core.int buildCounterType = 0; | 468 core.int buildCounterType = 0; |
| 469 buildType() { | 469 buildType() { |
| 470 var o = new api.Type(); | 470 var o = new api.Type(); |
| 471 buildCounterType++; | 471 buildCounterType++; |
| 472 if (buildCounterType < 3) { | 472 if (buildCounterType < 3) { |
| 473 o.name = "foo"; | 473 o.name = "foo"; |
| 474 } | 474 } |
| 475 buildCounterType--; | 475 buildCounterType--; |
| 476 return o; | 476 return o; |
| 477 } | 477 } |
| 478 | 478 |
| 479 checkType(api.Type o) { | 479 checkType(api.Type o) { |
| 480 buildCounterType++; | 480 buildCounterType++; |
| 481 if (buildCounterType < 3) { | 481 if (buildCounterType < 3) { |
| 482 unittest.expect(o.name, unittest.equals('foo')); | 482 unittest.expect(o.name, unittest.equals('foo')); |
| 483 } | 483 } |
| 484 buildCounterType--; | 484 buildCounterType--; |
| 485 } | 485 } |
| 486 | 486 |
| 487 buildUnnamed1664() { | 487 buildUnnamed2353() { |
| 488 var o = new core.List<api.Type>(); | 488 var o = new core.List<api.Type>(); |
| 489 o.add(buildType()); | 489 o.add(buildType()); |
| 490 o.add(buildType()); | 490 o.add(buildType()); |
| 491 return o; | 491 return o; |
| 492 } | 492 } |
| 493 | 493 |
| 494 checkUnnamed1664(core.List<api.Type> o) { | 494 checkUnnamed2353(core.List<api.Type> o) { |
| 495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
| 496 checkType(o[0]); | 496 checkType(o[0]); |
| 497 checkType(o[1]); | 497 checkType(o[1]); |
| 498 } | 498 } |
| 499 | 499 |
| 500 core.int buildCounterTypesListResponse = 0; | 500 core.int buildCounterTypesListResponse = 0; |
| 501 buildTypesListResponse() { | 501 buildTypesListResponse() { |
| 502 var o = new api.TypesListResponse(); | 502 var o = new api.TypesListResponse(); |
| 503 buildCounterTypesListResponse++; | 503 buildCounterTypesListResponse++; |
| 504 if (buildCounterTypesListResponse < 3) { | 504 if (buildCounterTypesListResponse < 3) { |
| 505 o.types = buildUnnamed1664(); | 505 o.types = buildUnnamed2353(); |
| 506 } | 506 } |
| 507 buildCounterTypesListResponse--; | 507 buildCounterTypesListResponse--; |
| 508 return o; | 508 return o; |
| 509 } | 509 } |
| 510 | 510 |
| 511 checkTypesListResponse(api.TypesListResponse o) { | 511 checkTypesListResponse(api.TypesListResponse o) { |
| 512 buildCounterTypesListResponse++; | 512 buildCounterTypesListResponse++; |
| 513 if (buildCounterTypesListResponse < 3) { | 513 if (buildCounterTypesListResponse < 3) { |
| 514 checkUnnamed1664(o.types); | 514 checkUnnamed2353(o.types); |
| 515 } | 515 } |
| 516 buildCounterTypesListResponse--; | 516 buildCounterTypesListResponse--; |
| 517 } | 517 } |
| 518 | 518 |
| 519 | 519 |
| 520 main() { | 520 main() { |
| 521 unittest.group("obj-schema-Deployment", () { | 521 unittest.group("obj-schema-Deployment", () { |
| 522 unittest.test("to-json--from-json", () { | 522 unittest.test("to-json--from-json", () { |
| 523 var o = buildDeployment(); | 523 var o = buildDeployment(); |
| 524 var od = new api.Deployment.fromJson(o.toJson()); | 524 var od = new api.Deployment.fromJson(o.toJson()); |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.TypesListResponse response) { | 1154 res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.TypesListResponse response) { |
| 1155 checkTypesListResponse(response); | 1155 checkTypesListResponse(response); |
| 1156 }))); | 1156 }))); |
| 1157 }); | 1157 }); |
| 1158 | 1158 |
| 1159 }); | 1159 }); |
| 1160 | 1160 |
| 1161 | 1161 |
| 1162 } | 1162 } |
| 1163 | 1163 |
| OLD | NEW |