OLD | NEW |
1 library googleapis_beta.autoscaler.v1beta2; | 1 library googleapis_beta.autoscaler.v1beta2; |
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 13 matching lines...) Expand all Loading... |
24 /** View your Google Compute Engine resources */ | 24 /** View your Google Compute Engine resources */ |
25 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; | 25 static const ComputeReadonlyScope = "https://www.googleapis.com/auth/compute.r
eadonly"; |
26 | 26 |
27 | 27 |
28 final common_internal.ApiRequester _requester; | 28 final common_internal.ApiRequester _requester; |
29 | 29 |
30 AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requeste
r); | 30 AutoscalersResourceApi get autoscalers => new AutoscalersResourceApi(_requeste
r); |
31 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); | 31 ZoneOperationsResourceApi get zoneOperations => new ZoneOperationsResourceApi(
_requester); |
32 | 32 |
33 AutoscalerApi(http.Client client) : | 33 AutoscalerApi(http.Client client) : |
34 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/autoscaler/v1beta2/"); | 34 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "autoscaler/v1beta2/"); |
35 } | 35 } |
36 | 36 |
37 | 37 |
38 /** Not documented yet. */ | 38 /** Not documented yet. */ |
39 class AutoscalersResourceApi { | 39 class AutoscalersResourceApi { |
40 final common_internal.ApiRequester _requester; | 40 final common_internal.ApiRequester _requester; |
41 | 41 |
42 AutoscalersResourceApi(common_internal.ApiRequester client) : | 42 AutoscalersResourceApi(common_internal.ApiRequester client) : |
43 _requester = client; | 43 _requester = client; |
44 | 44 |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 /** | 561 /** |
562 * An optional textual description of the resource provided by the client. | 562 * An optional textual description of the resource provided by the client. |
563 */ | 563 */ |
564 core.String description; | 564 core.String description; |
565 | 565 |
566 /** | 566 /** |
567 * [Output Only] Unique identifier for the resource; defined by the server. | 567 * [Output Only] Unique identifier for the resource; defined by the server. |
568 */ | 568 */ |
569 core.String id; | 569 core.String id; |
570 | 570 |
| 571 /** Type of resource. */ |
| 572 core.String kind; |
| 573 |
571 /** Name of the Autoscaler resource. Must be unique per project and zone. */ | 574 /** Name of the Autoscaler resource. Must be unique per project and zone. */ |
572 core.String name; | 575 core.String name; |
573 | 576 |
574 /** [Output Only] A self-link to the Autoscaler configuration resource. */ | 577 /** [Output Only] A self-link to the Autoscaler configuration resource. */ |
575 core.String selfLink; | 578 core.String selfLink; |
576 | 579 |
577 /** | 580 /** |
578 * URL to the entity which will be autoscaled. Currently the only supported | 581 * URL to the entity which will be autoscaled. Currently the only supported |
579 * value is ReplicaPool?s URL. Note: it is illegal to specify multiple | 582 * value is ReplicaPool?s URL. Note: it is illegal to specify multiple |
580 * Autoscalers for the same target. | 583 * Autoscalers for the same target. |
581 */ | 584 */ |
582 core.String target; | 585 core.String target; |
583 | 586 |
584 | 587 |
585 Autoscaler(); | 588 Autoscaler(); |
586 | 589 |
587 Autoscaler.fromJson(core.Map _json) { | 590 Autoscaler.fromJson(core.Map _json) { |
588 if (_json.containsKey("autoscalingPolicy")) { | 591 if (_json.containsKey("autoscalingPolicy")) { |
589 autoscalingPolicy = new AutoscalingPolicy.fromJson(_json["autoscalingPolic
y"]); | 592 autoscalingPolicy = new AutoscalingPolicy.fromJson(_json["autoscalingPolic
y"]); |
590 } | 593 } |
591 if (_json.containsKey("creationTimestamp")) { | 594 if (_json.containsKey("creationTimestamp")) { |
592 creationTimestamp = _json["creationTimestamp"]; | 595 creationTimestamp = _json["creationTimestamp"]; |
593 } | 596 } |
594 if (_json.containsKey("description")) { | 597 if (_json.containsKey("description")) { |
595 description = _json["description"]; | 598 description = _json["description"]; |
596 } | 599 } |
597 if (_json.containsKey("id")) { | 600 if (_json.containsKey("id")) { |
598 id = _json["id"]; | 601 id = _json["id"]; |
599 } | 602 } |
| 603 if (_json.containsKey("kind")) { |
| 604 kind = _json["kind"]; |
| 605 } |
600 if (_json.containsKey("name")) { | 606 if (_json.containsKey("name")) { |
601 name = _json["name"]; | 607 name = _json["name"]; |
602 } | 608 } |
603 if (_json.containsKey("selfLink")) { | 609 if (_json.containsKey("selfLink")) { |
604 selfLink = _json["selfLink"]; | 610 selfLink = _json["selfLink"]; |
605 } | 611 } |
606 if (_json.containsKey("target")) { | 612 if (_json.containsKey("target")) { |
607 target = _json["target"]; | 613 target = _json["target"]; |
608 } | 614 } |
609 } | 615 } |
610 | 616 |
611 core.Map toJson() { | 617 core.Map toJson() { |
612 var _json = new core.Map(); | 618 var _json = new core.Map(); |
613 if (autoscalingPolicy != null) { | 619 if (autoscalingPolicy != null) { |
614 _json["autoscalingPolicy"] = (autoscalingPolicy).toJson(); | 620 _json["autoscalingPolicy"] = (autoscalingPolicy).toJson(); |
615 } | 621 } |
616 if (creationTimestamp != null) { | 622 if (creationTimestamp != null) { |
617 _json["creationTimestamp"] = creationTimestamp; | 623 _json["creationTimestamp"] = creationTimestamp; |
618 } | 624 } |
619 if (description != null) { | 625 if (description != null) { |
620 _json["description"] = description; | 626 _json["description"] = description; |
621 } | 627 } |
622 if (id != null) { | 628 if (id != null) { |
623 _json["id"] = id; | 629 _json["id"] = id; |
624 } | 630 } |
| 631 if (kind != null) { |
| 632 _json["kind"] = kind; |
| 633 } |
625 if (name != null) { | 634 if (name != null) { |
626 _json["name"] = name; | 635 _json["name"] = name; |
627 } | 636 } |
628 if (selfLink != null) { | 637 if (selfLink != null) { |
629 _json["selfLink"] = selfLink; | 638 _json["selfLink"] = selfLink; |
630 } | 639 } |
631 if (target != null) { | 640 if (target != null) { |
632 _json["target"] = target; | 641 _json["target"] = target; |
633 } | 642 } |
634 return _json; | 643 return _json; |
635 } | 644 } |
636 } | 645 } |
637 | 646 |
638 | 647 |
639 /** Not documented yet. */ | 648 /** Not documented yet. */ |
640 class AutoscalerListResponse { | 649 class AutoscalerListResponse { |
641 /** Autoscaler resources. */ | 650 /** Autoscaler resources. */ |
642 core.List<Autoscaler> items; | 651 core.List<Autoscaler> items; |
643 | 652 |
| 653 /** Type of resource. */ |
| 654 core.String kind; |
| 655 |
644 /** [Output only] A token used to continue a truncated list request. */ | 656 /** [Output only] A token used to continue a truncated list request. */ |
645 core.String nextPageToken; | 657 core.String nextPageToken; |
646 | 658 |
647 | 659 |
648 AutoscalerListResponse(); | 660 AutoscalerListResponse(); |
649 | 661 |
650 AutoscalerListResponse.fromJson(core.Map _json) { | 662 AutoscalerListResponse.fromJson(core.Map _json) { |
651 if (_json.containsKey("items")) { | 663 if (_json.containsKey("items")) { |
652 items = _json["items"].map((value) => new Autoscaler.fromJson(value)).toLi
st(); | 664 items = _json["items"].map((value) => new Autoscaler.fromJson(value)).toLi
st(); |
653 } | 665 } |
| 666 if (_json.containsKey("kind")) { |
| 667 kind = _json["kind"]; |
| 668 } |
654 if (_json.containsKey("nextPageToken")) { | 669 if (_json.containsKey("nextPageToken")) { |
655 nextPageToken = _json["nextPageToken"]; | 670 nextPageToken = _json["nextPageToken"]; |
656 } | 671 } |
657 } | 672 } |
658 | 673 |
659 core.Map toJson() { | 674 core.Map toJson() { |
660 var _json = new core.Map(); | 675 var _json = new core.Map(); |
661 if (items != null) { | 676 if (items != null) { |
662 _json["items"] = items.map((value) => (value).toJson()).toList(); | 677 _json["items"] = items.map((value) => (value).toJson()).toList(); |
663 } | 678 } |
| 679 if (kind != null) { |
| 680 _json["kind"] = kind; |
| 681 } |
664 if (nextPageToken != null) { | 682 if (nextPageToken != null) { |
665 _json["nextPageToken"] = nextPageToken; | 683 _json["nextPageToken"] = nextPageToken; |
666 } | 684 } |
667 return _json; | 685 return _json; |
668 } | 686 } |
669 } | 687 } |
670 | 688 |
671 | 689 |
672 /** Cloud Autoscaler policy. */ | 690 /** Cloud Autoscaler policy. */ |
673 class AutoscalingPolicy { | 691 class AutoscalingPolicy { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 * compute.googleapis.com/instance/network/received_bytes_count. | 804 * compute.googleapis.com/instance/network/received_bytes_count. |
787 */ | 805 */ |
788 core.String metric; | 806 core.String metric; |
789 | 807 |
790 /** | 808 /** |
791 * Target value of the metric which Autoscaler should maintain. Must be a | 809 * Target value of the metric which Autoscaler should maintain. Must be a |
792 * positive value. | 810 * positive value. |
793 */ | 811 */ |
794 core.double utilizationTarget; | 812 core.double utilizationTarget; |
795 | 813 |
| 814 /** Defines type in which utilization_target is expressed. */ |
| 815 core.String utilizationTargetType; |
| 816 |
796 | 817 |
797 AutoscalingPolicyCustomMetricUtilization(); | 818 AutoscalingPolicyCustomMetricUtilization(); |
798 | 819 |
799 AutoscalingPolicyCustomMetricUtilization.fromJson(core.Map _json) { | 820 AutoscalingPolicyCustomMetricUtilization.fromJson(core.Map _json) { |
800 if (_json.containsKey("metric")) { | 821 if (_json.containsKey("metric")) { |
801 metric = _json["metric"]; | 822 metric = _json["metric"]; |
802 } | 823 } |
803 if (_json.containsKey("utilizationTarget")) { | 824 if (_json.containsKey("utilizationTarget")) { |
804 utilizationTarget = _json["utilizationTarget"]; | 825 utilizationTarget = _json["utilizationTarget"]; |
805 } | 826 } |
| 827 if (_json.containsKey("utilizationTargetType")) { |
| 828 utilizationTargetType = _json["utilizationTargetType"]; |
| 829 } |
806 } | 830 } |
807 | 831 |
808 core.Map toJson() { | 832 core.Map toJson() { |
809 var _json = new core.Map(); | 833 var _json = new core.Map(); |
810 if (metric != null) { | 834 if (metric != null) { |
811 _json["metric"] = metric; | 835 _json["metric"] = metric; |
812 } | 836 } |
813 if (utilizationTarget != null) { | 837 if (utilizationTarget != null) { |
814 _json["utilizationTarget"] = utilizationTarget; | 838 _json["utilizationTarget"] = utilizationTarget; |
815 } | 839 } |
| 840 if (utilizationTargetType != null) { |
| 841 _json["utilizationTargetType"] = utilizationTargetType; |
| 842 } |
816 return _json; | 843 return _json; |
817 } | 844 } |
818 } | 845 } |
819 | 846 |
820 | 847 |
821 /** Load balancing utilization policy. */ | 848 /** Load balancing utilization policy. */ |
822 class AutoscalingPolicyLoadBalancingUtilization { | 849 class AutoscalingPolicyLoadBalancingUtilization { |
823 /** | 850 /** |
824 * Fraction of backend capacity utilization (set in HTTP load balancing | 851 * Fraction of backend capacity utilization (set in HTTP load balancing |
825 * configuration) that Autoscaler should maintain. Must be a positive float | 852 * configuration) that Autoscaler should maintain. Must be a positive float |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 _json["nextPageToken"] = nextPageToken; | 1283 _json["nextPageToken"] = nextPageToken; |
1257 } | 1284 } |
1258 if (selfLink != null) { | 1285 if (selfLink != null) { |
1259 _json["selfLink"] = selfLink; | 1286 _json["selfLink"] = selfLink; |
1260 } | 1287 } |
1261 return _json; | 1288 return _json; |
1262 } | 1289 } |
1263 } | 1290 } |
1264 | 1291 |
1265 | 1292 |
OLD | NEW |