| OLD | NEW |
| 1 library googleapis_beta.replicapoolupdater.v1beta1.test; | 1 library googleapis_beta.replicapoolupdater.v1beta1.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 checkInstanceUpdateErrorErrors(api.InstanceUpdateErrorErrors o) { | 67 checkInstanceUpdateErrorErrors(api.InstanceUpdateErrorErrors o) { |
| 68 buildCounterInstanceUpdateErrorErrors++; | 68 buildCounterInstanceUpdateErrorErrors++; |
| 69 if (buildCounterInstanceUpdateErrorErrors < 3) { | 69 if (buildCounterInstanceUpdateErrorErrors < 3) { |
| 70 unittest.expect(o.code, unittest.equals('foo')); | 70 unittest.expect(o.code, unittest.equals('foo')); |
| 71 unittest.expect(o.location, unittest.equals('foo')); | 71 unittest.expect(o.location, unittest.equals('foo')); |
| 72 unittest.expect(o.message, unittest.equals('foo')); | 72 unittest.expect(o.message, unittest.equals('foo')); |
| 73 } | 73 } |
| 74 buildCounterInstanceUpdateErrorErrors--; | 74 buildCounterInstanceUpdateErrorErrors--; |
| 75 } | 75 } |
| 76 | 76 |
| 77 buildUnnamed2550() { | 77 buildUnnamed2518() { |
| 78 var o = new core.List<api.InstanceUpdateErrorErrors>(); | 78 var o = new core.List<api.InstanceUpdateErrorErrors>(); |
| 79 o.add(buildInstanceUpdateErrorErrors()); | 79 o.add(buildInstanceUpdateErrorErrors()); |
| 80 o.add(buildInstanceUpdateErrorErrors()); | 80 o.add(buildInstanceUpdateErrorErrors()); |
| 81 return o; | 81 return o; |
| 82 } | 82 } |
| 83 | 83 |
| 84 checkUnnamed2550(core.List<api.InstanceUpdateErrorErrors> o) { | 84 checkUnnamed2518(core.List<api.InstanceUpdateErrorErrors> o) { |
| 85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 86 checkInstanceUpdateErrorErrors(o[0]); | 86 checkInstanceUpdateErrorErrors(o[0]); |
| 87 checkInstanceUpdateErrorErrors(o[1]); | 87 checkInstanceUpdateErrorErrors(o[1]); |
| 88 } | 88 } |
| 89 | 89 |
| 90 core.int buildCounterInstanceUpdateError = 0; | 90 core.int buildCounterInstanceUpdateError = 0; |
| 91 buildInstanceUpdateError() { | 91 buildInstanceUpdateError() { |
| 92 var o = new api.InstanceUpdateError(); | 92 var o = new api.InstanceUpdateError(); |
| 93 buildCounterInstanceUpdateError++; | 93 buildCounterInstanceUpdateError++; |
| 94 if (buildCounterInstanceUpdateError < 3) { | 94 if (buildCounterInstanceUpdateError < 3) { |
| 95 o.errors = buildUnnamed2550(); | 95 o.errors = buildUnnamed2518(); |
| 96 } | 96 } |
| 97 buildCounterInstanceUpdateError--; | 97 buildCounterInstanceUpdateError--; |
| 98 return o; | 98 return o; |
| 99 } | 99 } |
| 100 | 100 |
| 101 checkInstanceUpdateError(api.InstanceUpdateError o) { | 101 checkInstanceUpdateError(api.InstanceUpdateError o) { |
| 102 buildCounterInstanceUpdateError++; | 102 buildCounterInstanceUpdateError++; |
| 103 if (buildCounterInstanceUpdateError < 3) { | 103 if (buildCounterInstanceUpdateError < 3) { |
| 104 checkUnnamed2550(o.errors); | 104 checkUnnamed2518(o.errors); |
| 105 } | 105 } |
| 106 buildCounterInstanceUpdateError--; | 106 buildCounterInstanceUpdateError--; |
| 107 } | 107 } |
| 108 | 108 |
| 109 core.int buildCounterInstanceUpdate = 0; | 109 core.int buildCounterInstanceUpdate = 0; |
| 110 buildInstanceUpdate() { | 110 buildInstanceUpdate() { |
| 111 var o = new api.InstanceUpdate(); | 111 var o = new api.InstanceUpdate(); |
| 112 buildCounterInstanceUpdate++; | 112 buildCounterInstanceUpdate++; |
| 113 if (buildCounterInstanceUpdate < 3) { | 113 if (buildCounterInstanceUpdate < 3) { |
| 114 o.error = buildInstanceUpdateError(); | 114 o.error = buildInstanceUpdateError(); |
| 115 o.instance = "foo"; | 115 o.instance = "foo"; |
| 116 o.status = "foo"; | 116 o.status = "foo"; |
| 117 } | 117 } |
| 118 buildCounterInstanceUpdate--; | 118 buildCounterInstanceUpdate--; |
| 119 return o; | 119 return o; |
| 120 } | 120 } |
| 121 | 121 |
| 122 checkInstanceUpdate(api.InstanceUpdate o) { | 122 checkInstanceUpdate(api.InstanceUpdate o) { |
| 123 buildCounterInstanceUpdate++; | 123 buildCounterInstanceUpdate++; |
| 124 if (buildCounterInstanceUpdate < 3) { | 124 if (buildCounterInstanceUpdate < 3) { |
| 125 checkInstanceUpdateError(o.error); | 125 checkInstanceUpdateError(o.error); |
| 126 unittest.expect(o.instance, unittest.equals('foo')); | 126 unittest.expect(o.instance, unittest.equals('foo')); |
| 127 unittest.expect(o.status, unittest.equals('foo')); | 127 unittest.expect(o.status, unittest.equals('foo')); |
| 128 } | 128 } |
| 129 buildCounterInstanceUpdate--; | 129 buildCounterInstanceUpdate--; |
| 130 } | 130 } |
| 131 | 131 |
| 132 buildUnnamed2551() { | 132 buildUnnamed2519() { |
| 133 var o = new core.List<api.InstanceUpdate>(); | 133 var o = new core.List<api.InstanceUpdate>(); |
| 134 o.add(buildInstanceUpdate()); | 134 o.add(buildInstanceUpdate()); |
| 135 o.add(buildInstanceUpdate()); | 135 o.add(buildInstanceUpdate()); |
| 136 return o; | 136 return o; |
| 137 } | 137 } |
| 138 | 138 |
| 139 checkUnnamed2551(core.List<api.InstanceUpdate> o) { | 139 checkUnnamed2519(core.List<api.InstanceUpdate> o) { |
| 140 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
| 141 checkInstanceUpdate(o[0]); | 141 checkInstanceUpdate(o[0]); |
| 142 checkInstanceUpdate(o[1]); | 142 checkInstanceUpdate(o[1]); |
| 143 } | 143 } |
| 144 | 144 |
| 145 core.int buildCounterInstanceUpdateList = 0; | 145 core.int buildCounterInstanceUpdateList = 0; |
| 146 buildInstanceUpdateList() { | 146 buildInstanceUpdateList() { |
| 147 var o = new api.InstanceUpdateList(); | 147 var o = new api.InstanceUpdateList(); |
| 148 buildCounterInstanceUpdateList++; | 148 buildCounterInstanceUpdateList++; |
| 149 if (buildCounterInstanceUpdateList < 3) { | 149 if (buildCounterInstanceUpdateList < 3) { |
| 150 o.items = buildUnnamed2551(); | 150 o.items = buildUnnamed2519(); |
| 151 o.kind = "foo"; | 151 o.kind = "foo"; |
| 152 o.nextPageToken = "foo"; | 152 o.nextPageToken = "foo"; |
| 153 o.selfLink = "foo"; | 153 o.selfLink = "foo"; |
| 154 } | 154 } |
| 155 buildCounterInstanceUpdateList--; | 155 buildCounterInstanceUpdateList--; |
| 156 return o; | 156 return o; |
| 157 } | 157 } |
| 158 | 158 |
| 159 checkInstanceUpdateList(api.InstanceUpdateList o) { | 159 checkInstanceUpdateList(api.InstanceUpdateList o) { |
| 160 buildCounterInstanceUpdateList++; | 160 buildCounterInstanceUpdateList++; |
| 161 if (buildCounterInstanceUpdateList < 3) { | 161 if (buildCounterInstanceUpdateList < 3) { |
| 162 checkUnnamed2551(o.items); | 162 checkUnnamed2519(o.items); |
| 163 unittest.expect(o.kind, unittest.equals('foo')); | 163 unittest.expect(o.kind, unittest.equals('foo')); |
| 164 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 164 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 165 unittest.expect(o.selfLink, unittest.equals('foo')); | 165 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 166 } | 166 } |
| 167 buildCounterInstanceUpdateList--; | 167 buildCounterInstanceUpdateList--; |
| 168 } | 168 } |
| 169 | 169 |
| 170 core.int buildCounterOperationErrorErrors = 0; | 170 core.int buildCounterOperationErrorErrors = 0; |
| 171 buildOperationErrorErrors() { | 171 buildOperationErrorErrors() { |
| 172 var o = new api.OperationErrorErrors(); | 172 var o = new api.OperationErrorErrors(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 183 checkOperationErrorErrors(api.OperationErrorErrors o) { | 183 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 184 buildCounterOperationErrorErrors++; | 184 buildCounterOperationErrorErrors++; |
| 185 if (buildCounterOperationErrorErrors < 3) { | 185 if (buildCounterOperationErrorErrors < 3) { |
| 186 unittest.expect(o.code, unittest.equals('foo')); | 186 unittest.expect(o.code, unittest.equals('foo')); |
| 187 unittest.expect(o.location, unittest.equals('foo')); | 187 unittest.expect(o.location, unittest.equals('foo')); |
| 188 unittest.expect(o.message, unittest.equals('foo')); | 188 unittest.expect(o.message, unittest.equals('foo')); |
| 189 } | 189 } |
| 190 buildCounterOperationErrorErrors--; | 190 buildCounterOperationErrorErrors--; |
| 191 } | 191 } |
| 192 | 192 |
| 193 buildUnnamed2552() { | 193 buildUnnamed2520() { |
| 194 var o = new core.List<api.OperationErrorErrors>(); | 194 var o = new core.List<api.OperationErrorErrors>(); |
| 195 o.add(buildOperationErrorErrors()); | 195 o.add(buildOperationErrorErrors()); |
| 196 o.add(buildOperationErrorErrors()); | 196 o.add(buildOperationErrorErrors()); |
| 197 return o; | 197 return o; |
| 198 } | 198 } |
| 199 | 199 |
| 200 checkUnnamed2552(core.List<api.OperationErrorErrors> o) { | 200 checkUnnamed2520(core.List<api.OperationErrorErrors> o) { |
| 201 unittest.expect(o, unittest.hasLength(2)); | 201 unittest.expect(o, unittest.hasLength(2)); |
| 202 checkOperationErrorErrors(o[0]); | 202 checkOperationErrorErrors(o[0]); |
| 203 checkOperationErrorErrors(o[1]); | 203 checkOperationErrorErrors(o[1]); |
| 204 } | 204 } |
| 205 | 205 |
| 206 core.int buildCounterOperationError = 0; | 206 core.int buildCounterOperationError = 0; |
| 207 buildOperationError() { | 207 buildOperationError() { |
| 208 var o = new api.OperationError(); | 208 var o = new api.OperationError(); |
| 209 buildCounterOperationError++; | 209 buildCounterOperationError++; |
| 210 if (buildCounterOperationError < 3) { | 210 if (buildCounterOperationError < 3) { |
| 211 o.errors = buildUnnamed2552(); | 211 o.errors = buildUnnamed2520(); |
| 212 } | 212 } |
| 213 buildCounterOperationError--; | 213 buildCounterOperationError--; |
| 214 return o; | 214 return o; |
| 215 } | 215 } |
| 216 | 216 |
| 217 checkOperationError(api.OperationError o) { | 217 checkOperationError(api.OperationError o) { |
| 218 buildCounterOperationError++; | 218 buildCounterOperationError++; |
| 219 if (buildCounterOperationError < 3) { | 219 if (buildCounterOperationError < 3) { |
| 220 checkUnnamed2552(o.errors); | 220 checkUnnamed2520(o.errors); |
| 221 } | 221 } |
| 222 buildCounterOperationError--; | 222 buildCounterOperationError--; |
| 223 } | 223 } |
| 224 | 224 |
| 225 core.int buildCounterOperationWarningsData = 0; | 225 core.int buildCounterOperationWarningsData = 0; |
| 226 buildOperationWarningsData() { | 226 buildOperationWarningsData() { |
| 227 var o = new api.OperationWarningsData(); | 227 var o = new api.OperationWarningsData(); |
| 228 buildCounterOperationWarningsData++; | 228 buildCounterOperationWarningsData++; |
| 229 if (buildCounterOperationWarningsData < 3) { | 229 if (buildCounterOperationWarningsData < 3) { |
| 230 o.key = "foo"; | 230 o.key = "foo"; |
| 231 o.value = "foo"; | 231 o.value = "foo"; |
| 232 } | 232 } |
| 233 buildCounterOperationWarningsData--; | 233 buildCounterOperationWarningsData--; |
| 234 return o; | 234 return o; |
| 235 } | 235 } |
| 236 | 236 |
| 237 checkOperationWarningsData(api.OperationWarningsData o) { | 237 checkOperationWarningsData(api.OperationWarningsData o) { |
| 238 buildCounterOperationWarningsData++; | 238 buildCounterOperationWarningsData++; |
| 239 if (buildCounterOperationWarningsData < 3) { | 239 if (buildCounterOperationWarningsData < 3) { |
| 240 unittest.expect(o.key, unittest.equals('foo')); | 240 unittest.expect(o.key, unittest.equals('foo')); |
| 241 unittest.expect(o.value, unittest.equals('foo')); | 241 unittest.expect(o.value, unittest.equals('foo')); |
| 242 } | 242 } |
| 243 buildCounterOperationWarningsData--; | 243 buildCounterOperationWarningsData--; |
| 244 } | 244 } |
| 245 | 245 |
| 246 buildUnnamed2553() { | 246 buildUnnamed2521() { |
| 247 var o = new core.List<api.OperationWarningsData>(); | 247 var o = new core.List<api.OperationWarningsData>(); |
| 248 o.add(buildOperationWarningsData()); | 248 o.add(buildOperationWarningsData()); |
| 249 o.add(buildOperationWarningsData()); | 249 o.add(buildOperationWarningsData()); |
| 250 return o; | 250 return o; |
| 251 } | 251 } |
| 252 | 252 |
| 253 checkUnnamed2553(core.List<api.OperationWarningsData> o) { | 253 checkUnnamed2521(core.List<api.OperationWarningsData> o) { |
| 254 unittest.expect(o, unittest.hasLength(2)); | 254 unittest.expect(o, unittest.hasLength(2)); |
| 255 checkOperationWarningsData(o[0]); | 255 checkOperationWarningsData(o[0]); |
| 256 checkOperationWarningsData(o[1]); | 256 checkOperationWarningsData(o[1]); |
| 257 } | 257 } |
| 258 | 258 |
| 259 core.int buildCounterOperationWarnings = 0; | 259 core.int buildCounterOperationWarnings = 0; |
| 260 buildOperationWarnings() { | 260 buildOperationWarnings() { |
| 261 var o = new api.OperationWarnings(); | 261 var o = new api.OperationWarnings(); |
| 262 buildCounterOperationWarnings++; | 262 buildCounterOperationWarnings++; |
| 263 if (buildCounterOperationWarnings < 3) { | 263 if (buildCounterOperationWarnings < 3) { |
| 264 o.code = "foo"; | 264 o.code = "foo"; |
| 265 o.data = buildUnnamed2553(); | 265 o.data = buildUnnamed2521(); |
| 266 o.message = "foo"; | 266 o.message = "foo"; |
| 267 } | 267 } |
| 268 buildCounterOperationWarnings--; | 268 buildCounterOperationWarnings--; |
| 269 return o; | 269 return o; |
| 270 } | 270 } |
| 271 | 271 |
| 272 checkOperationWarnings(api.OperationWarnings o) { | 272 checkOperationWarnings(api.OperationWarnings o) { |
| 273 buildCounterOperationWarnings++; | 273 buildCounterOperationWarnings++; |
| 274 if (buildCounterOperationWarnings < 3) { | 274 if (buildCounterOperationWarnings < 3) { |
| 275 unittest.expect(o.code, unittest.equals('foo')); | 275 unittest.expect(o.code, unittest.equals('foo')); |
| 276 checkUnnamed2553(o.data); | 276 checkUnnamed2521(o.data); |
| 277 unittest.expect(o.message, unittest.equals('foo')); | 277 unittest.expect(o.message, unittest.equals('foo')); |
| 278 } | 278 } |
| 279 buildCounterOperationWarnings--; | 279 buildCounterOperationWarnings--; |
| 280 } | 280 } |
| 281 | 281 |
| 282 buildUnnamed2554() { | 282 buildUnnamed2522() { |
| 283 var o = new core.List<api.OperationWarnings>(); | 283 var o = new core.List<api.OperationWarnings>(); |
| 284 o.add(buildOperationWarnings()); | 284 o.add(buildOperationWarnings()); |
| 285 o.add(buildOperationWarnings()); | 285 o.add(buildOperationWarnings()); |
| 286 return o; | 286 return o; |
| 287 } | 287 } |
| 288 | 288 |
| 289 checkUnnamed2554(core.List<api.OperationWarnings> o) { | 289 checkUnnamed2522(core.List<api.OperationWarnings> o) { |
| 290 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
| 291 checkOperationWarnings(o[0]); | 291 checkOperationWarnings(o[0]); |
| 292 checkOperationWarnings(o[1]); | 292 checkOperationWarnings(o[1]); |
| 293 } | 293 } |
| 294 | 294 |
| 295 core.int buildCounterOperation = 0; | 295 core.int buildCounterOperation = 0; |
| 296 buildOperation() { | 296 buildOperation() { |
| 297 var o = new api.Operation(); | 297 var o = new api.Operation(); |
| 298 buildCounterOperation++; | 298 buildCounterOperation++; |
| 299 if (buildCounterOperation < 3) { | 299 if (buildCounterOperation < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 310 o.operationType = "foo"; | 310 o.operationType = "foo"; |
| 311 o.progress = 42; | 311 o.progress = 42; |
| 312 o.region = "foo"; | 312 o.region = "foo"; |
| 313 o.selfLink = "foo"; | 313 o.selfLink = "foo"; |
| 314 o.startTime = "foo"; | 314 o.startTime = "foo"; |
| 315 o.status = "foo"; | 315 o.status = "foo"; |
| 316 o.statusMessage = "foo"; | 316 o.statusMessage = "foo"; |
| 317 o.targetId = "foo"; | 317 o.targetId = "foo"; |
| 318 o.targetLink = "foo"; | 318 o.targetLink = "foo"; |
| 319 o.user = "foo"; | 319 o.user = "foo"; |
| 320 o.warnings = buildUnnamed2554(); | 320 o.warnings = buildUnnamed2522(); |
| 321 o.zone = "foo"; | 321 o.zone = "foo"; |
| 322 } | 322 } |
| 323 buildCounterOperation--; | 323 buildCounterOperation--; |
| 324 return o; | 324 return o; |
| 325 } | 325 } |
| 326 | 326 |
| 327 checkOperation(api.Operation o) { | 327 checkOperation(api.Operation o) { |
| 328 buildCounterOperation++; | 328 buildCounterOperation++; |
| 329 if (buildCounterOperation < 3) { | 329 if (buildCounterOperation < 3) { |
| 330 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 330 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| 331 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 331 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 332 unittest.expect(o.endTime, unittest.equals('foo')); | 332 unittest.expect(o.endTime, unittest.equals('foo')); |
| 333 checkOperationError(o.error); | 333 checkOperationError(o.error); |
| 334 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 334 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 335 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 335 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 336 unittest.expect(o.id, unittest.equals('foo')); | 336 unittest.expect(o.id, unittest.equals('foo')); |
| 337 unittest.expect(o.insertTime, unittest.equals('foo')); | 337 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 338 unittest.expect(o.kind, unittest.equals('foo')); | 338 unittest.expect(o.kind, 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.region, unittest.equals('foo')); | 342 unittest.expect(o.region, unittest.equals('foo')); |
| 343 unittest.expect(o.selfLink, unittest.equals('foo')); | 343 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 344 unittest.expect(o.startTime, unittest.equals('foo')); | 344 unittest.expect(o.startTime, unittest.equals('foo')); |
| 345 unittest.expect(o.status, unittest.equals('foo')); | 345 unittest.expect(o.status, unittest.equals('foo')); |
| 346 unittest.expect(o.statusMessage, unittest.equals('foo')); | 346 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 347 unittest.expect(o.targetId, unittest.equals('foo')); | 347 unittest.expect(o.targetId, unittest.equals('foo')); |
| 348 unittest.expect(o.targetLink, unittest.equals('foo')); | 348 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 349 unittest.expect(o.user, unittest.equals('foo')); | 349 unittest.expect(o.user, unittest.equals('foo')); |
| 350 checkUnnamed2554(o.warnings); | 350 checkUnnamed2522(o.warnings); |
| 351 unittest.expect(o.zone, unittest.equals('foo')); | 351 unittest.expect(o.zone, unittest.equals('foo')); |
| 352 } | 352 } |
| 353 buildCounterOperation--; | 353 buildCounterOperation--; |
| 354 } | 354 } |
| 355 | 355 |
| 356 core.int buildCounterRollingUpdateErrorErrors = 0; | 356 core.int buildCounterRollingUpdateErrorErrors = 0; |
| 357 buildRollingUpdateErrorErrors() { | 357 buildRollingUpdateErrorErrors() { |
| 358 var o = new api.RollingUpdateErrorErrors(); | 358 var o = new api.RollingUpdateErrorErrors(); |
| 359 buildCounterRollingUpdateErrorErrors++; | 359 buildCounterRollingUpdateErrorErrors++; |
| 360 if (buildCounterRollingUpdateErrorErrors < 3) { | 360 if (buildCounterRollingUpdateErrorErrors < 3) { |
| 361 o.code = "foo"; | 361 o.code = "foo"; |
| 362 o.location = "foo"; | 362 o.location = "foo"; |
| 363 o.message = "foo"; | 363 o.message = "foo"; |
| 364 } | 364 } |
| 365 buildCounterRollingUpdateErrorErrors--; | 365 buildCounterRollingUpdateErrorErrors--; |
| 366 return o; | 366 return o; |
| 367 } | 367 } |
| 368 | 368 |
| 369 checkRollingUpdateErrorErrors(api.RollingUpdateErrorErrors o) { | 369 checkRollingUpdateErrorErrors(api.RollingUpdateErrorErrors o) { |
| 370 buildCounterRollingUpdateErrorErrors++; | 370 buildCounterRollingUpdateErrorErrors++; |
| 371 if (buildCounterRollingUpdateErrorErrors < 3) { | 371 if (buildCounterRollingUpdateErrorErrors < 3) { |
| 372 unittest.expect(o.code, unittest.equals('foo')); | 372 unittest.expect(o.code, unittest.equals('foo')); |
| 373 unittest.expect(o.location, unittest.equals('foo')); | 373 unittest.expect(o.location, unittest.equals('foo')); |
| 374 unittest.expect(o.message, unittest.equals('foo')); | 374 unittest.expect(o.message, unittest.equals('foo')); |
| 375 } | 375 } |
| 376 buildCounterRollingUpdateErrorErrors--; | 376 buildCounterRollingUpdateErrorErrors--; |
| 377 } | 377 } |
| 378 | 378 |
| 379 buildUnnamed2555() { | 379 buildUnnamed2523() { |
| 380 var o = new core.List<api.RollingUpdateErrorErrors>(); | 380 var o = new core.List<api.RollingUpdateErrorErrors>(); |
| 381 o.add(buildRollingUpdateErrorErrors()); | 381 o.add(buildRollingUpdateErrorErrors()); |
| 382 o.add(buildRollingUpdateErrorErrors()); | 382 o.add(buildRollingUpdateErrorErrors()); |
| 383 return o; | 383 return o; |
| 384 } | 384 } |
| 385 | 385 |
| 386 checkUnnamed2555(core.List<api.RollingUpdateErrorErrors> o) { | 386 checkUnnamed2523(core.List<api.RollingUpdateErrorErrors> o) { |
| 387 unittest.expect(o, unittest.hasLength(2)); | 387 unittest.expect(o, unittest.hasLength(2)); |
| 388 checkRollingUpdateErrorErrors(o[0]); | 388 checkRollingUpdateErrorErrors(o[0]); |
| 389 checkRollingUpdateErrorErrors(o[1]); | 389 checkRollingUpdateErrorErrors(o[1]); |
| 390 } | 390 } |
| 391 | 391 |
| 392 core.int buildCounterRollingUpdateError = 0; | 392 core.int buildCounterRollingUpdateError = 0; |
| 393 buildRollingUpdateError() { | 393 buildRollingUpdateError() { |
| 394 var o = new api.RollingUpdateError(); | 394 var o = new api.RollingUpdateError(); |
| 395 buildCounterRollingUpdateError++; | 395 buildCounterRollingUpdateError++; |
| 396 if (buildCounterRollingUpdateError < 3) { | 396 if (buildCounterRollingUpdateError < 3) { |
| 397 o.errors = buildUnnamed2555(); | 397 o.errors = buildUnnamed2523(); |
| 398 } | 398 } |
| 399 buildCounterRollingUpdateError--; | 399 buildCounterRollingUpdateError--; |
| 400 return o; | 400 return o; |
| 401 } | 401 } |
| 402 | 402 |
| 403 checkRollingUpdateError(api.RollingUpdateError o) { | 403 checkRollingUpdateError(api.RollingUpdateError o) { |
| 404 buildCounterRollingUpdateError++; | 404 buildCounterRollingUpdateError++; |
| 405 if (buildCounterRollingUpdateError < 3) { | 405 if (buildCounterRollingUpdateError < 3) { |
| 406 checkUnnamed2555(o.errors); | 406 checkUnnamed2523(o.errors); |
| 407 } | 407 } |
| 408 buildCounterRollingUpdateError--; | 408 buildCounterRollingUpdateError--; |
| 409 } | 409 } |
| 410 | 410 |
| 411 core.int buildCounterRollingUpdatePolicy = 0; | 411 core.int buildCounterRollingUpdatePolicy = 0; |
| 412 buildRollingUpdatePolicy() { | 412 buildRollingUpdatePolicy() { |
| 413 var o = new api.RollingUpdatePolicy(); | 413 var o = new api.RollingUpdatePolicy(); |
| 414 buildCounterRollingUpdatePolicy++; | 414 buildCounterRollingUpdatePolicy++; |
| 415 if (buildCounterRollingUpdatePolicy < 3) { | 415 if (buildCounterRollingUpdatePolicy < 3) { |
| 416 o.autoPauseAfterInstances = 42; | 416 o.autoPauseAfterInstances = 42; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 checkRollingUpdatePolicy(o.policy); | 477 checkRollingUpdatePolicy(o.policy); |
| 478 unittest.expect(o.progress, unittest.equals(42)); | 478 unittest.expect(o.progress, unittest.equals(42)); |
| 479 unittest.expect(o.selfLink, unittest.equals('foo')); | 479 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 480 unittest.expect(o.status, unittest.equals('foo')); | 480 unittest.expect(o.status, unittest.equals('foo')); |
| 481 unittest.expect(o.statusMessage, unittest.equals('foo')); | 481 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 482 unittest.expect(o.user, unittest.equals('foo')); | 482 unittest.expect(o.user, unittest.equals('foo')); |
| 483 } | 483 } |
| 484 buildCounterRollingUpdate--; | 484 buildCounterRollingUpdate--; |
| 485 } | 485 } |
| 486 | 486 |
| 487 buildUnnamed2556() { | 487 buildUnnamed2524() { |
| 488 var o = new core.List<api.RollingUpdate>(); | 488 var o = new core.List<api.RollingUpdate>(); |
| 489 o.add(buildRollingUpdate()); | 489 o.add(buildRollingUpdate()); |
| 490 o.add(buildRollingUpdate()); | 490 o.add(buildRollingUpdate()); |
| 491 return o; | 491 return o; |
| 492 } | 492 } |
| 493 | 493 |
| 494 checkUnnamed2556(core.List<api.RollingUpdate> o) { | 494 checkUnnamed2524(core.List<api.RollingUpdate> o) { |
| 495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
| 496 checkRollingUpdate(o[0]); | 496 checkRollingUpdate(o[0]); |
| 497 checkRollingUpdate(o[1]); | 497 checkRollingUpdate(o[1]); |
| 498 } | 498 } |
| 499 | 499 |
| 500 core.int buildCounterRollingUpdateList = 0; | 500 core.int buildCounterRollingUpdateList = 0; |
| 501 buildRollingUpdateList() { | 501 buildRollingUpdateList() { |
| 502 var o = new api.RollingUpdateList(); | 502 var o = new api.RollingUpdateList(); |
| 503 buildCounterRollingUpdateList++; | 503 buildCounterRollingUpdateList++; |
| 504 if (buildCounterRollingUpdateList < 3) { | 504 if (buildCounterRollingUpdateList < 3) { |
| 505 o.items = buildUnnamed2556(); | 505 o.items = buildUnnamed2524(); |
| 506 o.kind = "foo"; | 506 o.kind = "foo"; |
| 507 o.nextPageToken = "foo"; | 507 o.nextPageToken = "foo"; |
| 508 o.selfLink = "foo"; | 508 o.selfLink = "foo"; |
| 509 } | 509 } |
| 510 buildCounterRollingUpdateList--; | 510 buildCounterRollingUpdateList--; |
| 511 return o; | 511 return o; |
| 512 } | 512 } |
| 513 | 513 |
| 514 checkRollingUpdateList(api.RollingUpdateList o) { | 514 checkRollingUpdateList(api.RollingUpdateList o) { |
| 515 buildCounterRollingUpdateList++; | 515 buildCounterRollingUpdateList++; |
| 516 if (buildCounterRollingUpdateList < 3) { | 516 if (buildCounterRollingUpdateList < 3) { |
| 517 checkUnnamed2556(o.items); | 517 checkUnnamed2524(o.items); |
| 518 unittest.expect(o.kind, unittest.equals('foo')); | 518 unittest.expect(o.kind, unittest.equals('foo')); |
| 519 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 519 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 520 unittest.expect(o.selfLink, unittest.equals('foo')); | 520 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 521 } | 521 } |
| 522 buildCounterRollingUpdateList--; | 522 buildCounterRollingUpdateList--; |
| 523 } | 523 } |
| 524 | 524 |
| 525 | 525 |
| 526 main() { | 526 main() { |
| 527 unittest.group("obj-schema-InstanceUpdateErrorErrors", () { | 527 unittest.group("obj-schema-InstanceUpdateErrorErrors", () { |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { | 1063 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { |
| 1064 checkOperation(response); | 1064 checkOperation(response); |
| 1065 }))); | 1065 }))); |
| 1066 }); | 1066 }); |
| 1067 | 1067 |
| 1068 }); | 1068 }); |
| 1069 | 1069 |
| 1070 | 1070 |
| 1071 } | 1071 } |
| 1072 | 1072 |
| OLD | NEW |