| OLD | NEW |
| 1 library googleapis_beta.replicapoolupdater.v1beta1; | 1 library googleapis_beta.replicapoolupdater.v1beta1; |
| 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:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 "GET", | 274 "GET", |
| 275 body: _body, | 275 body: _body, |
| 276 queryParams: _queryParams, | 276 queryParams: _queryParams, |
| 277 uploadOptions: _uploadOptions, | 277 uploadOptions: _uploadOptions, |
| 278 uploadMedia: _uploadMedia, | 278 uploadMedia: _uploadMedia, |
| 279 downloadOptions: _downloadOptions); | 279 downloadOptions: _downloadOptions); |
| 280 return _response.then((data) => new UpdateList.fromJson(data)); | 280 return _response.then((data) => new UpdateList.fromJson(data)); |
| 281 } | 281 } |
| 282 | 282 |
| 283 /** | 283 /** |
| 284 * Called on the particular Update endpoint. Pauses the update in state from { | 284 * Called on the particular Update endpoint. Pauses the update in state |
| 285 * ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state PAUSED. | 285 * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED. |
| 286 * | 286 * |
| 287 * Request parameters: | 287 * Request parameters: |
| 288 * | 288 * |
| 289 * [project] - Project ID for this request. | 289 * [project] - Project ID for this request. |
| 290 * | 290 * |
| 291 * [zone] - Zone for the instance group manager. | 291 * [zone] - Zone for the instance group manager. |
| 292 * | 292 * |
| 293 * [instanceGroupManager] - Name of the instance group manager for this | 293 * [instanceGroupManager] - Name of the instance group manager for this |
| 294 * request. | 294 * request. |
| 295 * | 295 * |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 body: _body, | 331 body: _body, |
| 332 queryParams: _queryParams, | 332 queryParams: _queryParams, |
| 333 uploadOptions: _uploadOptions, | 333 uploadOptions: _uploadOptions, |
| 334 uploadMedia: _uploadMedia, | 334 uploadMedia: _uploadMedia, |
| 335 downloadOptions: _downloadOptions); | 335 downloadOptions: _downloadOptions); |
| 336 return _response.then((data) => null); | 336 return _response.then((data) => null); |
| 337 } | 337 } |
| 338 | 338 |
| 339 /** | 339 /** |
| 340 * Called on the particular Update endpoint. Rolls back the update in state | 340 * Called on the particular Update endpoint. Rolls back the update in state |
| 341 * from { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state | 341 * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or |
| 342 * ROLLED_BACK. | 342 * ROLLING_BACK. |
| 343 * | 343 * |
| 344 * Request parameters: | 344 * Request parameters: |
| 345 * | 345 * |
| 346 * [project] - Project ID for this request. | 346 * [project] - Project ID for this request. |
| 347 * | 347 * |
| 348 * [zone] - Zone for the instance group manager. | 348 * [zone] - Zone for the instance group manager. |
| 349 * | 349 * |
| 350 * [instanceGroupManager] - Name of the instance group manager for this | 350 * [instanceGroupManager] - Name of the instance group manager for this |
| 351 * request. | 351 * request. |
| 352 * | 352 * |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 body: _body, | 388 body: _body, |
| 389 queryParams: _queryParams, | 389 queryParams: _queryParams, |
| 390 uploadOptions: _uploadOptions, | 390 uploadOptions: _uploadOptions, |
| 391 uploadMedia: _uploadMedia, | 391 uploadMedia: _uploadMedia, |
| 392 downloadOptions: _downloadOptions); | 392 downloadOptions: _downloadOptions); |
| 393 return _response.then((data) => null); | 393 return _response.then((data) => null); |
| 394 } | 394 } |
| 395 | 395 |
| 396 /** | 396 /** |
| 397 * Called on the particular Update endpoint. Rolls forward the update in state | 397 * Called on the particular Update endpoint. Rolls forward the update in state |
| 398 * from { ROLLING_FORWARD, ROLLING_BACK, PAUSED }. No-op if invoked in state | 398 * ROLLING_BACK or PAUSED. No-op if invoked in state ROLLED_OUT or |
| 399 * ROLLED_OUT. | 399 * ROLLING_FORWARD. |
| 400 * | 400 * |
| 401 * Request parameters: | 401 * Request parameters: |
| 402 * | 402 * |
| 403 * [project] - Project ID for this request. | 403 * [project] - Project ID for this request. |
| 404 * | 404 * |
| 405 * [zone] - Zone for the instance group manager. | 405 * [zone] - Zone for the instance group manager. |
| 406 * | 406 * |
| 407 * [instanceGroupManager] - Name of the instance group manager for this | 407 * [instanceGroupManager] - Name of the instance group manager for this |
| 408 * request. | 408 * request. |
| 409 * | 409 * |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 return _json; | 476 return _json; |
| 477 } | 477 } |
| 478 } | 478 } |
| 479 | 479 |
| 480 | 480 |
| 481 /** Update of a single instance. */ | 481 /** Update of a single instance. */ |
| 482 class InstanceUpdate { | 482 class InstanceUpdate { |
| 483 /** Name of an instance. */ | 483 /** Name of an instance. */ |
| 484 core.String instanceName; | 484 core.String instanceName; |
| 485 | 485 |
| 486 /** State of an instance update. */ | 486 /** |
| 487 * State of an instance update. Possible values are: |
| 488 * - "PENDING/code>": The instance update is pending execution. |
| 489 * - "ROLLING_FORWARD": The instance update is going forward. |
| 490 * - "ROLLING_BACK": The instance update being rolled back. |
| 491 * - "PAUSED": The instance update is temporarily paused (inactive). |
| 492 * - "ROLLED_OUT": The instance update is finished, the instance is running |
| 493 * the new template. |
| 494 * - "ROLLED_BACK": The instance update is finished, the instance has been |
| 495 * reverted to the previous template. |
| 496 * - "CANCELLED": The instance update is paused and no longer can be resumed, |
| 497 * undefined in which template the instance is running. |
| 498 */ |
| 487 core.String state; | 499 core.String state; |
| 488 | 500 |
| 489 | 501 |
| 490 InstanceUpdate(); | 502 InstanceUpdate(); |
| 491 | 503 |
| 492 InstanceUpdate.fromJson(core.Map _json) { | 504 InstanceUpdate.fromJson(core.Map _json) { |
| 493 if (_json.containsKey("instanceName")) { | 505 if (_json.containsKey("instanceName")) { |
| 494 instanceName = _json["instanceName"]; | 506 instanceName = _json["instanceName"]; |
| 495 } | 507 } |
| 496 if (_json.containsKey("state")) { | 508 if (_json.containsKey("state")) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 509 return _json; | 521 return _json; |
| 510 } | 522 } |
| 511 } | 523 } |
| 512 | 524 |
| 513 | 525 |
| 514 /** | 526 /** |
| 515 * Resource describing a single update (rollout) of an instance group to the | 527 * Resource describing a single update (rollout) of an instance group to the |
| 516 * given template. | 528 * given template. |
| 517 */ | 529 */ |
| 518 class Update { | 530 class Update { |
| 519 /** [Output Only] Human-readable description of an update progress. */ | 531 /** [Output only] The time the update was created, in RFC3339 text format. */ |
| 532 core.String creationTimestamp; |
| 533 |
| 534 /** [Output only] Human-readable description of an update progress. */ |
| 520 core.String details; | 535 core.String details; |
| 521 | 536 |
| 522 /** | 537 /** |
| 523 * [Output Only] Unique (in the context of a group) handle assigned to this | 538 * [Output only] Unique (in the context of a group) handle assigned to this |
| 524 * update. | 539 * update. |
| 525 */ | 540 */ |
| 526 core.String handle; | 541 core.String handle; |
| 527 | 542 |
| 528 /** Url of an instance template to be applied. */ | 543 /** Url of an instance template to be applied. */ |
| 529 core.String instanceTemplate; | 544 core.String instanceTemplate; |
| 530 | 545 |
| 531 /** [Output Only] Collection of instance updates. */ | 546 /** [Output only] Collection of instance updates. */ |
| 532 core.List<InstanceUpdate> instanceUpdates; | 547 core.List<InstanceUpdate> instanceUpdates; |
| 533 | 548 |
| 534 /** [Output only] The resource type. Always replicapoolupdater#update. */ | 549 /** [Output only] The resource type. Always replicapoolupdater#update. */ |
| 535 core.String kind; | 550 core.String kind; |
| 536 | 551 |
| 537 /** Parameters of an update process. */ | 552 /** Parameters of an update process. */ |
| 538 UpdatePolicy policy; | 553 UpdatePolicy policy; |
| 539 | 554 |
| 540 /** [Output only] The fully qualified URL for this resource. */ | 555 /** [Output only] The fully qualified URL for this resource. */ |
| 541 core.String selfLink; | 556 core.String selfLink; |
| 542 | 557 |
| 543 /** [Output Only] Current state of an update. */ | 558 /** |
| 559 * [Output only] Current state of an update. Possible values are: |
| 560 * - "ROLLING_FORWARD": The update is going forward. |
| 561 * - "ROLLING_BACK": The update is being rolled back. |
| 562 * - "PAUSED": The update is temporarily paused (inactive). |
| 563 * - "ROLLED_OUT": The update is finished, all instances have been updated |
| 564 * successfully. |
| 565 * - "ROLLED_BACK": The update is finished, all instances have been reverted |
| 566 * to the previous template. |
| 567 * - "CANCELLED": The update is paused and no longer can be resumed, undefined |
| 568 * how many instances are running in which template. |
| 569 */ |
| 544 core.String state; | 570 core.String state; |
| 545 | 571 |
| 546 /** | 572 /** |
| 547 * [Output Only] Requested state of an update. This is the state that the | 573 * [Output only] Requested state of an update. This is the state that the |
| 548 * updater is moving towards. Acceptable values are: | 574 * updater is moving towards. Acceptable values are: |
| 549 * - "ROLLED_OUT": The user has requested the update to go forward. | 575 * - "ROLLED_OUT": The user has requested the update to go forward. |
| 550 * - "ROLLED_BACK": The user has requested the update to be rolled back. | 576 * - "ROLLED_BACK": The user has requested the update to be rolled back. |
| 551 * - "PAUSED": The user has requested the update to be paused. | 577 * - "PAUSED": The user has requested the update to be paused. |
| 552 * | 578 * |
| 553 * - "CANCELLED": The user has requested the update to be cancelled. The | 579 * - "CANCELLED": The user has requested the update to be cancelled. The |
| 554 * updater service is in the process of canceling the update. | 580 * updater service is in the process of canceling the update. |
| 555 */ | 581 */ |
| 556 core.String targetState; | 582 core.String targetState; |
| 557 | 583 |
| 584 /** |
| 585 * [Output only] User who requested the update, for example: user@example.com. |
| 586 */ |
| 587 core.String user; |
| 588 |
| 558 | 589 |
| 559 Update(); | 590 Update(); |
| 560 | 591 |
| 561 Update.fromJson(core.Map _json) { | 592 Update.fromJson(core.Map _json) { |
| 593 if (_json.containsKey("creationTimestamp")) { |
| 594 creationTimestamp = _json["creationTimestamp"]; |
| 595 } |
| 562 if (_json.containsKey("details")) { | 596 if (_json.containsKey("details")) { |
| 563 details = _json["details"]; | 597 details = _json["details"]; |
| 564 } | 598 } |
| 565 if (_json.containsKey("handle")) { | 599 if (_json.containsKey("handle")) { |
| 566 handle = _json["handle"]; | 600 handle = _json["handle"]; |
| 567 } | 601 } |
| 568 if (_json.containsKey("instanceTemplate")) { | 602 if (_json.containsKey("instanceTemplate")) { |
| 569 instanceTemplate = _json["instanceTemplate"]; | 603 instanceTemplate = _json["instanceTemplate"]; |
| 570 } | 604 } |
| 571 if (_json.containsKey("instanceUpdates")) { | 605 if (_json.containsKey("instanceUpdates")) { |
| 572 instanceUpdates = _json["instanceUpdates"].map((value) => new InstanceUpda
te.fromJson(value)).toList(); | 606 instanceUpdates = _json["instanceUpdates"].map((value) => new InstanceUpda
te.fromJson(value)).toList(); |
| 573 } | 607 } |
| 574 if (_json.containsKey("kind")) { | 608 if (_json.containsKey("kind")) { |
| 575 kind = _json["kind"]; | 609 kind = _json["kind"]; |
| 576 } | 610 } |
| 577 if (_json.containsKey("policy")) { | 611 if (_json.containsKey("policy")) { |
| 578 policy = new UpdatePolicy.fromJson(_json["policy"]); | 612 policy = new UpdatePolicy.fromJson(_json["policy"]); |
| 579 } | 613 } |
| 580 if (_json.containsKey("selfLink")) { | 614 if (_json.containsKey("selfLink")) { |
| 581 selfLink = _json["selfLink"]; | 615 selfLink = _json["selfLink"]; |
| 582 } | 616 } |
| 583 if (_json.containsKey("state")) { | 617 if (_json.containsKey("state")) { |
| 584 state = _json["state"]; | 618 state = _json["state"]; |
| 585 } | 619 } |
| 586 if (_json.containsKey("targetState")) { | 620 if (_json.containsKey("targetState")) { |
| 587 targetState = _json["targetState"]; | 621 targetState = _json["targetState"]; |
| 588 } | 622 } |
| 623 if (_json.containsKey("user")) { |
| 624 user = _json["user"]; |
| 625 } |
| 589 } | 626 } |
| 590 | 627 |
| 591 core.Map toJson() { | 628 core.Map toJson() { |
| 592 var _json = new core.Map(); | 629 var _json = new core.Map(); |
| 630 if (creationTimestamp != null) { |
| 631 _json["creationTimestamp"] = creationTimestamp; |
| 632 } |
| 593 if (details != null) { | 633 if (details != null) { |
| 594 _json["details"] = details; | 634 _json["details"] = details; |
| 595 } | 635 } |
| 596 if (handle != null) { | 636 if (handle != null) { |
| 597 _json["handle"] = handle; | 637 _json["handle"] = handle; |
| 598 } | 638 } |
| 599 if (instanceTemplate != null) { | 639 if (instanceTemplate != null) { |
| 600 _json["instanceTemplate"] = instanceTemplate; | 640 _json["instanceTemplate"] = instanceTemplate; |
| 601 } | 641 } |
| 602 if (instanceUpdates != null) { | 642 if (instanceUpdates != null) { |
| 603 _json["instanceUpdates"] = instanceUpdates.map((value) => (value).toJson()
).toList(); | 643 _json["instanceUpdates"] = instanceUpdates.map((value) => (value).toJson()
).toList(); |
| 604 } | 644 } |
| 605 if (kind != null) { | 645 if (kind != null) { |
| 606 _json["kind"] = kind; | 646 _json["kind"] = kind; |
| 607 } | 647 } |
| 608 if (policy != null) { | 648 if (policy != null) { |
| 609 _json["policy"] = (policy).toJson(); | 649 _json["policy"] = (policy).toJson(); |
| 610 } | 650 } |
| 611 if (selfLink != null) { | 651 if (selfLink != null) { |
| 612 _json["selfLink"] = selfLink; | 652 _json["selfLink"] = selfLink; |
| 613 } | 653 } |
| 614 if (state != null) { | 654 if (state != null) { |
| 615 _json["state"] = state; | 655 _json["state"] = state; |
| 616 } | 656 } |
| 617 if (targetState != null) { | 657 if (targetState != null) { |
| 618 _json["targetState"] = targetState; | 658 _json["targetState"] = targetState; |
| 619 } | 659 } |
| 660 if (user != null) { |
| 661 _json["user"] = user; |
| 662 } |
| 620 return _json; | 663 return _json; |
| 621 } | 664 } |
| 622 } | 665 } |
| 623 | 666 |
| 624 | 667 |
| 625 /** Response returned by List method. */ | 668 /** Response returned by List method. */ |
| 626 class UpdateList { | 669 class UpdateList { |
| 627 /** Collection of requested updates. */ | 670 /** Collection of requested updates. */ |
| 628 core.List<Update> items; | 671 core.List<Update> items; |
| 629 | 672 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 core.Map toJson() { | 768 core.Map toJson() { |
| 726 var _json = new core.Map(); | 769 var _json = new core.Map(); |
| 727 if (numInstances != null) { | 770 if (numInstances != null) { |
| 728 _json["numInstances"] = numInstances; | 771 _json["numInstances"] = numInstances; |
| 729 } | 772 } |
| 730 return _json; | 773 return _json; |
| 731 } | 774 } |
| 732 } | 775 } |
| 733 | 776 |
| 734 | 777 |
| OLD | NEW |