tencentcloud-sdk-nodejs-intl-en 3.0.508 → 3.0.511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/package.json +1 -1
  2. package/tencentcloud/as/v20180419/as_client.js +129 -9
  3. package/tencentcloud/as/v20180419/models.js +1684 -269
  4. package/tencentcloud/billing/v20180709/models.js +67 -0
  5. package/tencentcloud/cdb/v20170320/cdb_client.js +83 -17
  6. package/tencentcloud/cdb/v20170320/models.js +619 -86
  7. package/tencentcloud/cdn/v20180606/models.js +6 -5
  8. package/tencentcloud/ckafka/v20190819/ckafka_client.js +14 -1
  9. package/tencentcloud/ckafka/v20190819/models.js +121 -20
  10. package/tencentcloud/cls/v20201016/models.js +9 -1
  11. package/tencentcloud/common/sdk_version.js +1 -1
  12. package/tencentcloud/live/v20180801/live_client.js +37 -72
  13. package/tencentcloud/live/v20180801/models.js +777 -652
  14. package/tencentcloud/monitor/v20180724/models.js +58 -0
  15. package/tencentcloud/monitor/v20180724/monitor_client.js +1 -0
  16. package/tencentcloud/ocr/v20181119/models.js +201 -43
  17. package/tencentcloud/ocr/v20181119/ocr_client.js +16 -1
  18. package/tencentcloud/redis/v20180412/models.js +65 -0
  19. package/tencentcloud/redis/v20180412/redis_client.js +13 -0
  20. package/tencentcloud/tke/v20180525/models.js +451 -58
  21. package/tencentcloud/tke/v20180525/tke_client.js +548 -483
  22. package/tencentcloud/trtc/v20190722/models.js +170 -13
  23. package/tencentcloud/trtc/v20190722/trtc_client.js +30 -26
  24. package/tencentcloud/tts/v20190823/models.js +79 -0
  25. package/tencentcloud/tts/v20190823/tts_client.js +1 -0
  26. package/tencentcloud/vod/v20180717/models.js +200 -55
  27. package/tencentcloud/vod/v20180717/vod_client.js +46 -22
  28. package/tencentcloud/vpc/v20170312/models.js +812 -279
  29. package/tencentcloud/vpc/v20170312/vpc_client.js +71 -17
@@ -16,6 +16,34 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
+ /**
20
+ * DisableAutoScalingGroup response structure.
21
+ * @class
22
+ */
23
+ class DisableAutoScalingGroupResponse extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
29
+ * @type {string || null}
30
+ */
31
+ this.RequestId = null;
32
+
33
+ }
34
+
35
+ /**
36
+ * @private
37
+ */
38
+ deserialize(params) {
39
+ if (!params) {
40
+ return;
41
+ }
42
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
43
+
44
+ }
45
+ }
46
+
19
47
  /**
20
48
  * ModifyLaunchConfigurationAttributes request structure.
21
49
  * @class
@@ -230,6 +258,34 @@ This field requires passing in the `InstanceName` field. Other fields that are n
230
258
  }
231
259
  }
232
260
 
261
+ /**
262
+ * DisableAutoScalingGroup request structure.
263
+ * @class
264
+ */
265
+ class DisableAutoScalingGroupRequest extends AbstractModel {
266
+ constructor(){
267
+ super();
268
+
269
+ /**
270
+ * Scaling group ID
271
+ * @type {string || null}
272
+ */
273
+ this.AutoScalingGroupId = null;
274
+
275
+ }
276
+
277
+ /**
278
+ * @private
279
+ */
280
+ deserialize(params) {
281
+ if (!params) {
282
+ return;
283
+ }
284
+ this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
285
+
286
+ }
287
+ }
288
+
233
289
  /**
234
290
  * ModifyAutoScalingGroup request structure.
235
291
  * @class
@@ -437,6 +493,41 @@ This parameter is valid only when `InstanceAllocationPolicy` is set to `SPOT_MIX
437
493
  }
438
494
  }
439
495
 
496
+ /**
497
+ * ScaleOutInstances request structure.
498
+ * @class
499
+ */
500
+ class ScaleOutInstancesRequest extends AbstractModel {
501
+ constructor(){
502
+ super();
503
+
504
+ /**
505
+ * Scaling group ID
506
+ * @type {string || null}
507
+ */
508
+ this.AutoScalingGroupId = null;
509
+
510
+ /**
511
+ * Number of instances to be added
512
+ * @type {number || null}
513
+ */
514
+ this.ScaleOutNumber = null;
515
+
516
+ }
517
+
518
+ /**
519
+ * @private
520
+ */
521
+ deserialize(params) {
522
+ if (!params) {
523
+ return;
524
+ }
525
+ this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
526
+ this.ScaleOutNumber = 'ScaleOutNumber' in params ? params.ScaleOutNumber : null;
527
+
528
+ }
529
+ }
530
+
440
531
  /**
441
532
  * AS event notification
442
533
  * @class
@@ -650,191 +741,609 @@ The maximum number of `Filters` in each request is 10. The upper limit for `Filt
650
741
  }
651
742
 
652
743
  /**
653
- * DescribeAccountLimits response structure.
744
+ * Information set of eligible launch configurations.
654
745
  * @class
655
746
  */
656
- class DescribeAccountLimitsResponse extends AbstractModel {
747
+ class LaunchConfiguration extends AbstractModel {
657
748
  constructor(){
658
749
  super();
659
750
 
660
751
  /**
661
- * Maximum number of launch configurations allowed for creation by the user account
752
+ * Project ID of the instance.
662
753
  * @type {number || null}
663
754
  */
664
- this.MaxNumberOfLaunchConfigurations = null;
755
+ this.ProjectId = null;
665
756
 
666
757
  /**
667
- * Current number of launch configurations under the user account
668
- * @type {number || null}
758
+ * Launch configuration ID
759
+ * @type {string || null}
669
760
  */
670
- this.NumberOfLaunchConfigurations = null;
761
+ this.LaunchConfigurationId = null;
671
762
 
672
763
  /**
673
- * Maximum number of auto scaling groups allowed for creation by the user account
674
- * @type {number || null}
764
+ * Launch configuration name.
765
+ * @type {string || null}
675
766
  */
676
- this.MaxNumberOfAutoScalingGroups = null;
767
+ this.LaunchConfigurationName = null;
677
768
 
678
769
  /**
679
- * Current number of auto scaling groups under the user account
680
- * @type {number || null}
770
+ * Instance model.
771
+ * @type {string || null}
681
772
  */
682
- this.NumberOfAutoScalingGroups = null;
773
+ this.InstanceType = null;
683
774
 
684
775
  /**
685
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
686
- * @type {string || null}
776
+ * Information of the instance's system disk configuration.
777
+ * @type {SystemDisk || null}
687
778
  */
688
- this.RequestId = null;
779
+ this.SystemDisk = null;
689
780
 
690
- }
781
+ /**
782
+ * Information of the instance's data disk configuration.
783
+ * @type {Array.<DataDisk> || null}
784
+ */
785
+ this.DataDisks = null;
691
786
 
692
- /**
693
- * @private
694
- */
695
- deserialize(params) {
696
- if (!params) {
697
- return;
698
- }
699
- this.MaxNumberOfLaunchConfigurations = 'MaxNumberOfLaunchConfigurations' in params ? params.MaxNumberOfLaunchConfigurations : null;
700
- this.NumberOfLaunchConfigurations = 'NumberOfLaunchConfigurations' in params ? params.NumberOfLaunchConfigurations : null;
701
- this.MaxNumberOfAutoScalingGroups = 'MaxNumberOfAutoScalingGroups' in params ? params.MaxNumberOfAutoScalingGroups : null;
702
- this.NumberOfAutoScalingGroups = 'NumberOfAutoScalingGroups' in params ? params.NumberOfAutoScalingGroups : null;
703
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
787
+ /**
788
+ * Instance login settings.
789
+ * @type {LimitedLoginSettings || null}
790
+ */
791
+ this.LoginSettings = null;
704
792
 
705
- }
706
- }
793
+ /**
794
+ * Information of the public network bandwidth configuration.
795
+ * @type {InternetAccessible || null}
796
+ */
797
+ this.InternetAccessible = null;
707
798
 
708
- /**
709
- * Suggestions for scaling group configurations.
710
- * @class
711
- */
712
- class Advice extends AbstractModel {
713
- constructor(){
714
- super();
799
+ /**
800
+ * Security group of the instance.
801
+ * @type {Array.<string> || null}
802
+ */
803
+ this.SecurityGroupIds = null;
715
804
 
716
805
  /**
717
- * Problem Description
718
- * @type {string || null}
806
+ * Auto scaling group associated with the launch configuration.
807
+ * @type {Array.<AutoScalingGroupAbstract> || null}
719
808
  */
720
- this.Problem = null;
809
+ this.AutoScalingGroupAbstractSet = null;
721
810
 
722
811
  /**
723
- * Problem Details
812
+ * Custom data.
813
+ Note: This field may return null, indicating that no valid values can be obtained.
724
814
  * @type {string || null}
725
815
  */
726
- this.Detail = null;
816
+ this.UserData = null;
727
817
 
728
818
  /**
729
- * Recommended resolutions
819
+ * Creation time of the launch configuration.
730
820
  * @type {string || null}
731
821
  */
732
- this.Solution = null;
733
-
734
- }
735
-
736
- /**
737
- * @private
738
- */
739
- deserialize(params) {
740
- if (!params) {
741
- return;
742
- }
743
- this.Problem = 'Problem' in params ? params.Problem : null;
744
- this.Detail = 'Detail' in params ? params.Detail : null;
745
- this.Solution = 'Solution' in params ? params.Solution : null;
746
-
747
- }
748
- }
822
+ this.CreatedTime = null;
749
823
 
750
- /**
751
- * CreateLifecycleHook response structure.
752
- * @class
753
- */
754
- class CreateLifecycleHookResponse extends AbstractModel {
755
- constructor(){
756
- super();
824
+ /**
825
+ * Conditions of enhancement services for the instance and their settings.
826
+ * @type {EnhancedService || null}
827
+ */
828
+ this.EnhancedService = null;
757
829
 
758
830
  /**
759
- * Lifecycle hook ID
831
+ * Image ID.
760
832
  * @type {string || null}
761
833
  */
762
- this.LifecycleHookId = null;
834
+ this.ImageId = null;
763
835
 
764
836
  /**
765
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
837
+ * Current status of the launch configuration. Value range: <br><li>NORMAL: normal <br><li>IMAGE_ABNORMAL: Exception with the image of the launch configuration <br><li>CBS_SNAP_ABNORMAL: Exception with the data disk snapshot of the launch configuration <br><li>SECURITY_GROUP_ABNORMAL: Exception with the security group of the launch configuration<br>
766
838
  * @type {string || null}
767
839
  */
768
- this.RequestId = null;
769
-
770
- }
771
-
772
- /**
773
- * @private
774
- */
775
- deserialize(params) {
776
- if (!params) {
777
- return;
778
- }
779
- this.LifecycleHookId = 'LifecycleHookId' in params ? params.LifecycleHookId : null;
780
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
781
-
782
- }
783
- }
784
-
785
- /**
786
- * ClearLaunchConfigurationAttributes response structure.
787
- * @class
788
- */
789
- class ClearLaunchConfigurationAttributesResponse extends AbstractModel {
790
- constructor(){
791
- super();
840
+ this.LaunchConfigurationStatus = null;
792
841
 
793
842
  /**
794
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
843
+ * Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
844
+ <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly
845
+ <br><li>SPOTPAID: spot instance
795
846
  * @type {string || null}
796
847
  */
797
- this.RequestId = null;
798
-
799
- }
848
+ this.InstanceChargeType = null;
800
849
 
801
- /**
802
- * @private
803
- */
804
- deserialize(params) {
805
- if (!params) {
806
- return;
807
- }
808
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
850
+ /**
851
+ * Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances.
852
+ Note: This field may return null, indicating that no valid values can be obtained.
853
+ * @type {InstanceMarketOptionsRequest || null}
854
+ */
855
+ this.InstanceMarketOptions = null;
809
856
 
810
- }
811
- }
857
+ /**
858
+ * List of instance models.
859
+ * @type {Array.<string> || null}
860
+ */
861
+ this.InstanceTypes = null;
812
862
 
813
- /**
814
- * DescribeAutoScalingGroups response structure.
815
- * @class
816
- */
817
- class DescribeAutoScalingGroupsResponse extends AbstractModel {
818
- constructor(){
819
- super();
863
+ /**
864
+ * List of instance tags, which will be added to instances created by the scale-out activity. Up to 10 tags allowed.
865
+ * @type {Array.<InstanceTag> || null}
866
+ */
867
+ this.InstanceTags = null;
820
868
 
821
869
  /**
822
- * List of auto scaling group details.
823
- * @type {Array.<AutoScalingGroup> || null}
870
+ * Tag list.
871
+ Note: This field may return null, indicating that no valid values can be obtained.
872
+ * @type {Array.<Tag> || null}
824
873
  */
825
- this.AutoScalingGroupSet = null;
874
+ this.Tags = null;
826
875
 
827
876
  /**
828
- * Number of eligible auto scaling groups.
877
+ * Version
829
878
  * @type {number || null}
830
879
  */
831
- this.TotalCount = null;
880
+ this.VersionNumber = null;
832
881
 
833
882
  /**
834
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
883
+ * Update time
835
884
  * @type {string || null}
836
885
  */
837
- this.RequestId = null;
886
+ this.UpdatedTime = null;
887
+
888
+ /**
889
+ * CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API.
890
+ * @type {string || null}
891
+ */
892
+ this.CamRoleName = null;
893
+
894
+ /**
895
+ * Value of InstanceTypesCheckPolicy upon the last operation.
896
+ * @type {string || null}
897
+ */
898
+ this.LastOperationInstanceTypesCheckPolicy = null;
899
+
900
+ /**
901
+ * CVM hostname settings.
902
+ * @type {HostNameSettings || null}
903
+ */
904
+ this.HostNameSettings = null;
905
+
906
+ /**
907
+ * Settings of CVM instance names
908
+ * @type {InstanceNameSettings || null}
909
+ */
910
+ this.InstanceNameSettings = null;
911
+
912
+ /**
913
+ * Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
914
+ * @type {InstanceChargePrepaid || null}
915
+ */
916
+ this.InstanceChargePrepaid = null;
917
+
918
+ /**
919
+ * Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
920
+ <br><li>ORIGINAL: uses the configured cloud disk type
921
+ <br><li>AUTOMATIC: automatically chooses an available cloud disk type in the current availability zone
922
+ * @type {string || null}
923
+ */
924
+ this.DiskTypePolicy = null;
925
+
926
+ /**
927
+ *
928
+ * @type {string || null}
929
+ */
930
+ this.HpcClusterId = null;
931
+
932
+ }
933
+
934
+ /**
935
+ * @private
936
+ */
937
+ deserialize(params) {
938
+ if (!params) {
939
+ return;
940
+ }
941
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
942
+ this.LaunchConfigurationId = 'LaunchConfigurationId' in params ? params.LaunchConfigurationId : null;
943
+ this.LaunchConfigurationName = 'LaunchConfigurationName' in params ? params.LaunchConfigurationName : null;
944
+ this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
945
+
946
+ if (params.SystemDisk) {
947
+ let obj = new SystemDisk();
948
+ obj.deserialize(params.SystemDisk)
949
+ this.SystemDisk = obj;
950
+ }
951
+
952
+ if (params.DataDisks) {
953
+ this.DataDisks = new Array();
954
+ for (let z in params.DataDisks) {
955
+ let obj = new DataDisk();
956
+ obj.deserialize(params.DataDisks[z]);
957
+ this.DataDisks.push(obj);
958
+ }
959
+ }
960
+
961
+ if (params.LoginSettings) {
962
+ let obj = new LimitedLoginSettings();
963
+ obj.deserialize(params.LoginSettings)
964
+ this.LoginSettings = obj;
965
+ }
966
+
967
+ if (params.InternetAccessible) {
968
+ let obj = new InternetAccessible();
969
+ obj.deserialize(params.InternetAccessible)
970
+ this.InternetAccessible = obj;
971
+ }
972
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
973
+
974
+ if (params.AutoScalingGroupAbstractSet) {
975
+ this.AutoScalingGroupAbstractSet = new Array();
976
+ for (let z in params.AutoScalingGroupAbstractSet) {
977
+ let obj = new AutoScalingGroupAbstract();
978
+ obj.deserialize(params.AutoScalingGroupAbstractSet[z]);
979
+ this.AutoScalingGroupAbstractSet.push(obj);
980
+ }
981
+ }
982
+ this.UserData = 'UserData' in params ? params.UserData : null;
983
+ this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null;
984
+
985
+ if (params.EnhancedService) {
986
+ let obj = new EnhancedService();
987
+ obj.deserialize(params.EnhancedService)
988
+ this.EnhancedService = obj;
989
+ }
990
+ this.ImageId = 'ImageId' in params ? params.ImageId : null;
991
+ this.LaunchConfigurationStatus = 'LaunchConfigurationStatus' in params ? params.LaunchConfigurationStatus : null;
992
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
993
+
994
+ if (params.InstanceMarketOptions) {
995
+ let obj = new InstanceMarketOptionsRequest();
996
+ obj.deserialize(params.InstanceMarketOptions)
997
+ this.InstanceMarketOptions = obj;
998
+ }
999
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
1000
+
1001
+ if (params.InstanceTags) {
1002
+ this.InstanceTags = new Array();
1003
+ for (let z in params.InstanceTags) {
1004
+ let obj = new InstanceTag();
1005
+ obj.deserialize(params.InstanceTags[z]);
1006
+ this.InstanceTags.push(obj);
1007
+ }
1008
+ }
1009
+
1010
+ if (params.Tags) {
1011
+ this.Tags = new Array();
1012
+ for (let z in params.Tags) {
1013
+ let obj = new Tag();
1014
+ obj.deserialize(params.Tags[z]);
1015
+ this.Tags.push(obj);
1016
+ }
1017
+ }
1018
+ this.VersionNumber = 'VersionNumber' in params ? params.VersionNumber : null;
1019
+ this.UpdatedTime = 'UpdatedTime' in params ? params.UpdatedTime : null;
1020
+ this.CamRoleName = 'CamRoleName' in params ? params.CamRoleName : null;
1021
+ this.LastOperationInstanceTypesCheckPolicy = 'LastOperationInstanceTypesCheckPolicy' in params ? params.LastOperationInstanceTypesCheckPolicy : null;
1022
+
1023
+ if (params.HostNameSettings) {
1024
+ let obj = new HostNameSettings();
1025
+ obj.deserialize(params.HostNameSettings)
1026
+ this.HostNameSettings = obj;
1027
+ }
1028
+
1029
+ if (params.InstanceNameSettings) {
1030
+ let obj = new InstanceNameSettings();
1031
+ obj.deserialize(params.InstanceNameSettings)
1032
+ this.InstanceNameSettings = obj;
1033
+ }
1034
+
1035
+ if (params.InstanceChargePrepaid) {
1036
+ let obj = new InstanceChargePrepaid();
1037
+ obj.deserialize(params.InstanceChargePrepaid)
1038
+ this.InstanceChargePrepaid = obj;
1039
+ }
1040
+ this.DiskTypePolicy = 'DiskTypePolicy' in params ? params.DiskTypePolicy : null;
1041
+ this.HpcClusterId = 'HpcClusterId' in params ? params.HpcClusterId : null;
1042
+
1043
+ }
1044
+ }
1045
+
1046
+ /**
1047
+ * DescribeAccountLimits response structure.
1048
+ * @class
1049
+ */
1050
+ class DescribeAccountLimitsResponse extends AbstractModel {
1051
+ constructor(){
1052
+ super();
1053
+
1054
+ /**
1055
+ * Maximum number of launch configurations allowed for creation by the user account
1056
+ * @type {number || null}
1057
+ */
1058
+ this.MaxNumberOfLaunchConfigurations = null;
1059
+
1060
+ /**
1061
+ * Current number of launch configurations under the user account
1062
+ * @type {number || null}
1063
+ */
1064
+ this.NumberOfLaunchConfigurations = null;
1065
+
1066
+ /**
1067
+ * Maximum number of auto scaling groups allowed for creation by the user account
1068
+ * @type {number || null}
1069
+ */
1070
+ this.MaxNumberOfAutoScalingGroups = null;
1071
+
1072
+ /**
1073
+ * Current number of auto scaling groups under the user account
1074
+ * @type {number || null}
1075
+ */
1076
+ this.NumberOfAutoScalingGroups = null;
1077
+
1078
+ /**
1079
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1080
+ * @type {string || null}
1081
+ */
1082
+ this.RequestId = null;
1083
+
1084
+ }
1085
+
1086
+ /**
1087
+ * @private
1088
+ */
1089
+ deserialize(params) {
1090
+ if (!params) {
1091
+ return;
1092
+ }
1093
+ this.MaxNumberOfLaunchConfigurations = 'MaxNumberOfLaunchConfigurations' in params ? params.MaxNumberOfLaunchConfigurations : null;
1094
+ this.NumberOfLaunchConfigurations = 'NumberOfLaunchConfigurations' in params ? params.NumberOfLaunchConfigurations : null;
1095
+ this.MaxNumberOfAutoScalingGroups = 'MaxNumberOfAutoScalingGroups' in params ? params.MaxNumberOfAutoScalingGroups : null;
1096
+ this.NumberOfAutoScalingGroups = 'NumberOfAutoScalingGroups' in params ? params.NumberOfAutoScalingGroups : null;
1097
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1098
+
1099
+ }
1100
+ }
1101
+
1102
+ /**
1103
+ * CreateLaunchConfiguration response structure.
1104
+ * @class
1105
+ */
1106
+ class CreateLaunchConfigurationResponse extends AbstractModel {
1107
+ constructor(){
1108
+ super();
1109
+
1110
+ /**
1111
+ * This parameter is returned when a launch configuration is created through this API, indicating the launch configuration ID.
1112
+ * @type {string || null}
1113
+ */
1114
+ this.LaunchConfigurationId = null;
1115
+
1116
+ /**
1117
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1118
+ * @type {string || null}
1119
+ */
1120
+ this.RequestId = null;
1121
+
1122
+ }
1123
+
1124
+ /**
1125
+ * @private
1126
+ */
1127
+ deserialize(params) {
1128
+ if (!params) {
1129
+ return;
1130
+ }
1131
+ this.LaunchConfigurationId = 'LaunchConfigurationId' in params ? params.LaunchConfigurationId : null;
1132
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1133
+
1134
+ }
1135
+ }
1136
+
1137
+ /**
1138
+ * Suggestions for scaling group configurations.
1139
+ * @class
1140
+ */
1141
+ class Advice extends AbstractModel {
1142
+ constructor(){
1143
+ super();
1144
+
1145
+ /**
1146
+ * Problem Description
1147
+ * @type {string || null}
1148
+ */
1149
+ this.Problem = null;
1150
+
1151
+ /**
1152
+ * Problem Details
1153
+ * @type {string || null}
1154
+ */
1155
+ this.Detail = null;
1156
+
1157
+ /**
1158
+ * Recommended resolutions
1159
+ * @type {string || null}
1160
+ */
1161
+ this.Solution = null;
1162
+
1163
+ }
1164
+
1165
+ /**
1166
+ * @private
1167
+ */
1168
+ deserialize(params) {
1169
+ if (!params) {
1170
+ return;
1171
+ }
1172
+ this.Problem = 'Problem' in params ? params.Problem : null;
1173
+ this.Detail = 'Detail' in params ? params.Detail : null;
1174
+ this.Solution = 'Solution' in params ? params.Solution : null;
1175
+
1176
+ }
1177
+ }
1178
+
1179
+ /**
1180
+ * CreateLifecycleHook response structure.
1181
+ * @class
1182
+ */
1183
+ class CreateLifecycleHookResponse extends AbstractModel {
1184
+ constructor(){
1185
+ super();
1186
+
1187
+ /**
1188
+ * Lifecycle hook ID
1189
+ * @type {string || null}
1190
+ */
1191
+ this.LifecycleHookId = null;
1192
+
1193
+ /**
1194
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1195
+ * @type {string || null}
1196
+ */
1197
+ this.RequestId = null;
1198
+
1199
+ }
1200
+
1201
+ /**
1202
+ * @private
1203
+ */
1204
+ deserialize(params) {
1205
+ if (!params) {
1206
+ return;
1207
+ }
1208
+ this.LifecycleHookId = 'LifecycleHookId' in params ? params.LifecycleHookId : null;
1209
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1210
+
1211
+ }
1212
+ }
1213
+
1214
+ /**
1215
+ * ClearLaunchConfigurationAttributes response structure.
1216
+ * @class
1217
+ */
1218
+ class ClearLaunchConfigurationAttributesResponse extends AbstractModel {
1219
+ constructor(){
1220
+ super();
1221
+
1222
+ /**
1223
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1224
+ * @type {string || null}
1225
+ */
1226
+ this.RequestId = null;
1227
+
1228
+ }
1229
+
1230
+ /**
1231
+ * @private
1232
+ */
1233
+ deserialize(params) {
1234
+ if (!params) {
1235
+ return;
1236
+ }
1237
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1238
+
1239
+ }
1240
+ }
1241
+
1242
+ /**
1243
+ * DescribeAutoScalingGroups response structure.
1244
+ * @class
1245
+ */
1246
+ class DescribeAutoScalingGroupsResponse extends AbstractModel {
1247
+ constructor(){
1248
+ super();
1249
+
1250
+ /**
1251
+ * List of auto scaling group details.
1252
+ * @type {Array.<AutoScalingGroup> || null}
1253
+ */
1254
+ this.AutoScalingGroupSet = null;
1255
+
1256
+ /**
1257
+ * Number of eligible auto scaling groups.
1258
+ * @type {number || null}
1259
+ */
1260
+ this.TotalCount = null;
1261
+
1262
+ /**
1263
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1264
+ * @type {string || null}
1265
+ */
1266
+ this.RequestId = null;
1267
+
1268
+ }
1269
+
1270
+ /**
1271
+ * @private
1272
+ */
1273
+ deserialize(params) {
1274
+ if (!params) {
1275
+ return;
1276
+ }
1277
+
1278
+ if (params.AutoScalingGroupSet) {
1279
+ this.AutoScalingGroupSet = new Array();
1280
+ for (let z in params.AutoScalingGroupSet) {
1281
+ let obj = new AutoScalingGroup();
1282
+ obj.deserialize(params.AutoScalingGroupSet[z]);
1283
+ this.AutoScalingGroupSet.push(obj);
1284
+ }
1285
+ }
1286
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1287
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1288
+
1289
+ }
1290
+ }
1291
+
1292
+ /**
1293
+ * CreateScheduledAction request structure.
1294
+ * @class
1295
+ */
1296
+ class CreateScheduledActionRequest extends AbstractModel {
1297
+ constructor(){
1298
+ super();
1299
+
1300
+ /**
1301
+ * Auto scaling group ID
1302
+ * @type {string || null}
1303
+ */
1304
+ this.AutoScalingGroupId = null;
1305
+
1306
+ /**
1307
+ * Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
1308
+ * @type {string || null}
1309
+ */
1310
+ this.ScheduledActionName = null;
1311
+
1312
+ /**
1313
+ * The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
1314
+ * @type {number || null}
1315
+ */
1316
+ this.MaxSize = null;
1317
+
1318
+ /**
1319
+ * The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
1320
+ * @type {number || null}
1321
+ */
1322
+ this.MinSize = null;
1323
+
1324
+ /**
1325
+ * The desired number of instances set for the auto scaling group when the scheduled task is triggered.
1326
+ * @type {number || null}
1327
+ */
1328
+ this.DesiredCapacity = null;
1329
+
1330
+ /**
1331
+ * Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
1332
+ * @type {string || null}
1333
+ */
1334
+ this.StartTime = null;
1335
+
1336
+ /**
1337
+ * End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br><br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
1338
+ * @type {string || null}
1339
+ */
1340
+ this.EndTime = null;
1341
+
1342
+ /**
1343
+ * Repeating mode of the scheduled task, which is in standard cron format. <br><br>This parameter and `EndTime` need to be specified at the same time.
1344
+ * @type {string || null}
1345
+ */
1346
+ this.Recurrence = null;
838
1347
 
839
1348
  }
840
1349
 
@@ -845,17 +1354,14 @@ class DescribeAutoScalingGroupsResponse extends AbstractModel {
845
1354
  if (!params) {
846
1355
  return;
847
1356
  }
848
-
849
- if (params.AutoScalingGroupSet) {
850
- this.AutoScalingGroupSet = new Array();
851
- for (let z in params.AutoScalingGroupSet) {
852
- let obj = new AutoScalingGroup();
853
- obj.deserialize(params.AutoScalingGroupSet[z]);
854
- this.AutoScalingGroupSet.push(obj);
855
- }
856
- }
857
- this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
858
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1357
+ this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
1358
+ this.ScheduledActionName = 'ScheduledActionName' in params ? params.ScheduledActionName : null;
1359
+ this.MaxSize = 'MaxSize' in params ? params.MaxSize : null;
1360
+ this.MinSize = 'MinSize' in params ? params.MinSize : null;
1361
+ this.DesiredCapacity = 'DesiredCapacity' in params ? params.DesiredCapacity : null;
1362
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
1363
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
1364
+ this.Recurrence = 'Recurrence' in params ? params.Recurrence : null;
859
1365
 
860
1366
  }
861
1367
  }
@@ -1450,60 +1956,30 @@ class CreateNotificationConfigurationResponse extends AbstractModel {
1450
1956
  }
1451
1957
 
1452
1958
  /**
1453
- * CreateScheduledAction request structure.
1959
+ * DescribeLaunchConfigurations response structure.
1454
1960
  * @class
1455
1961
  */
1456
- class CreateScheduledActionRequest extends AbstractModel {
1962
+ class DescribeLaunchConfigurationsResponse extends AbstractModel {
1457
1963
  constructor(){
1458
1964
  super();
1459
1965
 
1460
1966
  /**
1461
- * Auto scaling group ID
1462
- * @type {string || null}
1463
- */
1464
- this.AutoScalingGroupId = null;
1465
-
1466
- /**
1467
- * Scheduled task name, which can only contain letters, numbers, underscores, hyphens ("-"), and decimal points with a maximum length of 60 bytes and must be unique in an auto scaling group.
1468
- * @type {string || null}
1469
- */
1470
- this.ScheduledActionName = null;
1471
-
1472
- /**
1473
- * The maximum number of instances set for the auto scaling group when the scheduled task is triggered.
1474
- * @type {number || null}
1475
- */
1476
- this.MaxSize = null;
1477
-
1478
- /**
1479
- * The minimum number of instances set for the auto scaling group when the scheduled task is triggered.
1480
- * @type {number || null}
1481
- */
1482
- this.MinSize = null;
1483
-
1484
- /**
1485
- * The desired number of instances set for the auto scaling group when the scheduled task is triggered.
1967
+ * Number of eligible launch configurations.
1486
1968
  * @type {number || null}
1487
1969
  */
1488
- this.DesiredCapacity = null;
1489
-
1490
- /**
1491
- * Initial triggered time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard.
1492
- * @type {string || null}
1493
- */
1494
- this.StartTime = null;
1970
+ this.TotalCount = null;
1495
1971
 
1496
1972
  /**
1497
- * End time of the scheduled task. The value is in `Beijing time` (UTC+8) in the format of `YYYY-MM-DDThh:mm:ss+08:00` according to the `ISO8601` standard. <br><br>This parameter and `Recurrence` need to be specified at the same time. After the end time, the scheduled task will no longer take effect.
1498
- * @type {string || null}
1973
+ * List of launch configuration details.
1974
+ * @type {Array.<LaunchConfiguration> || null}
1499
1975
  */
1500
- this.EndTime = null;
1976
+ this.LaunchConfigurationSet = null;
1501
1977
 
1502
1978
  /**
1503
- * Repeating mode of the scheduled task, which is in standard cron format. <br><br>This parameter and `EndTime` need to be specified at the same time.
1979
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1504
1980
  * @type {string || null}
1505
1981
  */
1506
- this.Recurrence = null;
1982
+ this.RequestId = null;
1507
1983
 
1508
1984
  }
1509
1985
 
@@ -1514,14 +1990,17 @@ class CreateScheduledActionRequest extends AbstractModel {
1514
1990
  if (!params) {
1515
1991
  return;
1516
1992
  }
1517
- this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
1518
- this.ScheduledActionName = 'ScheduledActionName' in params ? params.ScheduledActionName : null;
1519
- this.MaxSize = 'MaxSize' in params ? params.MaxSize : null;
1520
- this.MinSize = 'MinSize' in params ? params.MinSize : null;
1521
- this.DesiredCapacity = 'DesiredCapacity' in params ? params.DesiredCapacity : null;
1522
- this.StartTime = 'StartTime' in params ? params.StartTime : null;
1523
- this.EndTime = 'EndTime' in params ? params.EndTime : null;
1524
- this.Recurrence = 'Recurrence' in params ? params.Recurrence : null;
1993
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
1994
+
1995
+ if (params.LaunchConfigurationSet) {
1996
+ this.LaunchConfigurationSet = new Array();
1997
+ for (let z in params.LaunchConfigurationSet) {
1998
+ let obj = new LaunchConfiguration();
1999
+ obj.deserialize(params.LaunchConfigurationSet[z]);
2000
+ this.LaunchConfigurationSet.push(obj);
2001
+ }
2002
+ }
2003
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1525
2004
 
1526
2005
  }
1527
2006
  }
@@ -1873,86 +2352,288 @@ class SetInstancesProtectionRequest extends AbstractModel {
1873
2352
  super();
1874
2353
 
1875
2354
  /**
1876
- * Auto scaling group ID.
1877
- * @type {string || null}
2355
+ * Auto scaling group ID.
2356
+ * @type {string || null}
2357
+ */
2358
+ this.AutoScalingGroupId = null;
2359
+
2360
+ /**
2361
+ * Instance ID.
2362
+ * @type {Array.<string> || null}
2363
+ */
2364
+ this.InstanceIds = null;
2365
+
2366
+ /**
2367
+ * Whether to enable scale-in protection for this instance
2368
+ * @type {boolean || null}
2369
+ */
2370
+ this.ProtectedFromScaleIn = null;
2371
+
2372
+ }
2373
+
2374
+ /**
2375
+ * @private
2376
+ */
2377
+ deserialize(params) {
2378
+ if (!params) {
2379
+ return;
2380
+ }
2381
+ this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
2382
+ this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
2383
+ this.ProtectedFromScaleIn = 'ProtectedFromScaleIn' in params ? params.ProtectedFromScaleIn : null;
2384
+
2385
+ }
2386
+ }
2387
+
2388
+ /**
2389
+ * DeleteNotificationConfiguration response structure.
2390
+ * @class
2391
+ */
2392
+ class DeleteNotificationConfigurationResponse extends AbstractModel {
2393
+ constructor(){
2394
+ super();
2395
+
2396
+ /**
2397
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2398
+ * @type {string || null}
2399
+ */
2400
+ this.RequestId = null;
2401
+
2402
+ }
2403
+
2404
+ /**
2405
+ * @private
2406
+ */
2407
+ deserialize(params) {
2408
+ if (!params) {
2409
+ return;
2410
+ }
2411
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2412
+
2413
+ }
2414
+ }
2415
+
2416
+ /**
2417
+ * DetachInstances response structure.
2418
+ * @class
2419
+ */
2420
+ class DetachInstancesResponse extends AbstractModel {
2421
+ constructor(){
2422
+ super();
2423
+
2424
+ /**
2425
+ * Scaling activity ID
2426
+ * @type {string || null}
2427
+ */
2428
+ this.ActivityId = null;
2429
+
2430
+ /**
2431
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2432
+ * @type {string || null}
2433
+ */
2434
+ this.RequestId = null;
2435
+
2436
+ }
2437
+
2438
+ /**
2439
+ * @private
2440
+ */
2441
+ deserialize(params) {
2442
+ if (!params) {
2443
+ return;
2444
+ }
2445
+ this.ActivityId = 'ActivityId' in params ? params.ActivityId : null;
2446
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2447
+
2448
+ }
2449
+ }
2450
+
2451
+ /**
2452
+ * ModifyLaunchConfigurationAttributes response structure.
2453
+ * @class
2454
+ */
2455
+ class ModifyLaunchConfigurationAttributesResponse extends AbstractModel {
2456
+ constructor(){
2457
+ super();
2458
+
2459
+ /**
2460
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2461
+ * @type {string || null}
2462
+ */
2463
+ this.RequestId = null;
2464
+
2465
+ }
2466
+
2467
+ /**
2468
+ * @private
2469
+ */
2470
+ deserialize(params) {
2471
+ if (!params) {
2472
+ return;
2473
+ }
2474
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2475
+
2476
+ }
2477
+ }
2478
+
2479
+ /**
2480
+ * CreateLaunchConfiguration request structure.
2481
+ * @class
2482
+ */
2483
+ class CreateLaunchConfigurationRequest extends AbstractModel {
2484
+ constructor(){
2485
+ super();
2486
+
2487
+ /**
2488
+ * Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed..
2489
+ * @type {string || null}
2490
+ */
2491
+ this.LaunchConfigurationName = null;
2492
+
2493
+ /**
2494
+ * [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>
2495
+ * @type {string || null}
2496
+ */
2497
+ this.ImageId = null;
2498
+
2499
+ /**
2500
+ * Project ID of the launch configuration. The default project is used if it’s left blank.
2501
+ Note that this project ID is not the same as the project ID of the scaling group.
2502
+ * @type {number || null}
2503
+ */
2504
+ this.ProjectId = null;
2505
+
2506
+ /**
2507
+ * Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1).
2508
+ `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered.
2509
+ * @type {string || null}
2510
+ */
2511
+ this.InstanceType = null;
2512
+
2513
+ /**
2514
+ * System disk configuration of the instance. If this parameter is not specified, the default value will be used.
2515
+ * @type {SystemDisk || null}
2516
+ */
2517
+ this.SystemDisk = null;
2518
+
2519
+ /**
2520
+ * Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported.
2521
+ * @type {Array.<DataDisk> || null}
2522
+ */
2523
+ this.DataDisks = null;
2524
+
2525
+ /**
2526
+ * Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.
2527
+ * @type {InternetAccessible || null}
2528
+ */
2529
+ this.InternetAccessible = null;
2530
+
2531
+ /**
2532
+ * Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.
2533
+ * @type {LoginSettings || null}
1878
2534
  */
1879
- this.AutoScalingGroupId = null;
2535
+ this.LoginSettings = null;
1880
2536
 
1881
2537
  /**
1882
- * Instance ID.
2538
+ * The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default.
1883
2539
  * @type {Array.<string> || null}
1884
2540
  */
1885
- this.InstanceIds = null;
2541
+ this.SecurityGroupIds = null;
1886
2542
 
1887
2543
  /**
1888
- * Whether to enable scale-in protection for this instance
1889
- * @type {boolean || null}
2544
+ * Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
2545
+ * @type {EnhancedService || null}
1890
2546
  */
1891
- this.ProtectedFromScaleIn = null;
2547
+ this.EnhancedService = null;
1892
2548
 
1893
- }
2549
+ /**
2550
+ * Base64-encoded custom data of up to 16 KB.
2551
+ * @type {string || null}
2552
+ */
2553
+ this.UserData = null;
1894
2554
 
1895
- /**
1896
- * @private
1897
- */
1898
- deserialize(params) {
1899
- if (!params) {
1900
- return;
1901
- }
1902
- this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
1903
- this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
1904
- this.ProtectedFromScaleIn = 'ProtectedFromScaleIn' in params ? params.ProtectedFromScaleIn : null;
2555
+ /**
2556
+ * Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
2557
+ <br><li>POSTPAID_BY_HOUR: pay-as-you-go hourly
2558
+ <br><li>SPOTPAID: spot instance
2559
+ * @type {string || null}
2560
+ */
2561
+ this.InstanceChargeType = null;
1905
2562
 
1906
- }
1907
- }
2563
+ /**
2564
+ * Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances.
2565
+ * @type {InstanceMarketOptionsRequest || null}
2566
+ */
2567
+ this.InstanceMarketOptions = null;
1908
2568
 
1909
- /**
1910
- * DeleteNotificationConfiguration response structure.
1911
- * @class
1912
- */
1913
- class DeleteNotificationConfigurationResponse extends AbstractModel {
1914
- constructor(){
1915
- super();
2569
+ /**
2570
+ * List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported.
2571
+ `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered.
2572
+ * @type {Array.<string> || null}
2573
+ */
2574
+ this.InstanceTypes = null;
1916
2575
 
1917
2576
  /**
1918
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2577
+ * CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API.
1919
2578
  * @type {string || null}
1920
2579
  */
1921
- this.RequestId = null;
2580
+ this.CamRoleName = null;
1922
2581
 
1923
- }
2582
+ /**
2583
+ * Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
2584
+ <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
2585
+ <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported.
1924
2586
 
1925
- /**
1926
- * @private
1927
- */
1928
- deserialize(params) {
1929
- if (!params) {
1930
- return;
1931
- }
1932
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2587
+ Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk.
2588
+ If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy.
2589
+ * @type {string || null}
2590
+ */
2591
+ this.InstanceTypesCheckPolicy = null;
1933
2592
 
1934
- }
1935
- }
2593
+ /**
2594
+ * List of tags. This parameter is used to bind up to 10 tags to newly added instances.
2595
+ * @type {Array.<InstanceTag> || null}
2596
+ */
2597
+ this.InstanceTags = null;
1936
2598
 
1937
- /**
1938
- * DetachInstances response structure.
1939
- * @class
1940
- */
1941
- class DetachInstancesResponse extends AbstractModel {
1942
- constructor(){
1943
- super();
2599
+ /**
2600
+ * List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags.
2601
+ * @type {Array.<Tag> || null}
2602
+ */
2603
+ this.Tags = null;
1944
2604
 
1945
2605
  /**
1946
- * Scaling activity ID
2606
+ * CVM hostname settings.
2607
+ * @type {HostNameSettings || null}
2608
+ */
2609
+ this.HostNameSettings = null;
2610
+
2611
+ /**
2612
+ * Settings of CVM instance names
2613
+ If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format.
2614
+ * @type {InstanceNameSettings || null}
2615
+ */
2616
+ this.InstanceNameSettings = null;
2617
+
2618
+ /**
2619
+ * Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
2620
+ * @type {InstanceChargePrepaid || null}
2621
+ */
2622
+ this.InstanceChargePrepaid = null;
2623
+
2624
+ /**
2625
+ * Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
2626
+ <br><li>ORIGINAL: uses the configured cloud disk type
2627
+ <br><li>AUTOMATIC: automatically chooses an available cloud disk type
1947
2628
  * @type {string || null}
1948
2629
  */
1949
- this.ActivityId = null;
2630
+ this.DiskTypePolicy = null;
1950
2631
 
1951
2632
  /**
1952
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2633
+ *
1953
2634
  * @type {string || null}
1954
2635
  */
1955
- this.RequestId = null;
2636
+ this.HpcClusterId = null;
1956
2637
 
1957
2638
  }
1958
2639
 
@@ -1963,36 +2644,93 @@ class DetachInstancesResponse extends AbstractModel {
1963
2644
  if (!params) {
1964
2645
  return;
1965
2646
  }
1966
- this.ActivityId = 'ActivityId' in params ? params.ActivityId : null;
1967
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2647
+ this.LaunchConfigurationName = 'LaunchConfigurationName' in params ? params.LaunchConfigurationName : null;
2648
+ this.ImageId = 'ImageId' in params ? params.ImageId : null;
2649
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
2650
+ this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
1968
2651
 
1969
- }
1970
- }
2652
+ if (params.SystemDisk) {
2653
+ let obj = new SystemDisk();
2654
+ obj.deserialize(params.SystemDisk)
2655
+ this.SystemDisk = obj;
2656
+ }
1971
2657
 
1972
- /**
1973
- * ModifyLaunchConfigurationAttributes response structure.
1974
- * @class
1975
- */
1976
- class ModifyLaunchConfigurationAttributesResponse extends AbstractModel {
1977
- constructor(){
1978
- super();
2658
+ if (params.DataDisks) {
2659
+ this.DataDisks = new Array();
2660
+ for (let z in params.DataDisks) {
2661
+ let obj = new DataDisk();
2662
+ obj.deserialize(params.DataDisks[z]);
2663
+ this.DataDisks.push(obj);
2664
+ }
2665
+ }
1979
2666
 
1980
- /**
1981
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1982
- * @type {string || null}
1983
- */
1984
- this.RequestId = null;
2667
+ if (params.InternetAccessible) {
2668
+ let obj = new InternetAccessible();
2669
+ obj.deserialize(params.InternetAccessible)
2670
+ this.InternetAccessible = obj;
2671
+ }
1985
2672
 
1986
- }
2673
+ if (params.LoginSettings) {
2674
+ let obj = new LoginSettings();
2675
+ obj.deserialize(params.LoginSettings)
2676
+ this.LoginSettings = obj;
2677
+ }
2678
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
1987
2679
 
1988
- /**
1989
- * @private
1990
- */
1991
- deserialize(params) {
1992
- if (!params) {
1993
- return;
2680
+ if (params.EnhancedService) {
2681
+ let obj = new EnhancedService();
2682
+ obj.deserialize(params.EnhancedService)
2683
+ this.EnhancedService = obj;
1994
2684
  }
1995
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2685
+ this.UserData = 'UserData' in params ? params.UserData : null;
2686
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
2687
+
2688
+ if (params.InstanceMarketOptions) {
2689
+ let obj = new InstanceMarketOptionsRequest();
2690
+ obj.deserialize(params.InstanceMarketOptions)
2691
+ this.InstanceMarketOptions = obj;
2692
+ }
2693
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
2694
+ this.CamRoleName = 'CamRoleName' in params ? params.CamRoleName : null;
2695
+ this.InstanceTypesCheckPolicy = 'InstanceTypesCheckPolicy' in params ? params.InstanceTypesCheckPolicy : null;
2696
+
2697
+ if (params.InstanceTags) {
2698
+ this.InstanceTags = new Array();
2699
+ for (let z in params.InstanceTags) {
2700
+ let obj = new InstanceTag();
2701
+ obj.deserialize(params.InstanceTags[z]);
2702
+ this.InstanceTags.push(obj);
2703
+ }
2704
+ }
2705
+
2706
+ if (params.Tags) {
2707
+ this.Tags = new Array();
2708
+ for (let z in params.Tags) {
2709
+ let obj = new Tag();
2710
+ obj.deserialize(params.Tags[z]);
2711
+ this.Tags.push(obj);
2712
+ }
2713
+ }
2714
+
2715
+ if (params.HostNameSettings) {
2716
+ let obj = new HostNameSettings();
2717
+ obj.deserialize(params.HostNameSettings)
2718
+ this.HostNameSettings = obj;
2719
+ }
2720
+
2721
+ if (params.InstanceNameSettings) {
2722
+ let obj = new InstanceNameSettings();
2723
+ obj.deserialize(params.InstanceNameSettings)
2724
+ this.InstanceNameSettings = obj;
2725
+ }
2726
+
2727
+ if (params.InstanceChargePrepaid) {
2728
+ let obj = new InstanceChargePrepaid();
2729
+ obj.deserialize(params.InstanceChargePrepaid)
2730
+ this.InstanceChargePrepaid = obj;
2731
+ }
2732
+ this.DiskTypePolicy = 'DiskTypePolicy' in params ? params.DiskTypePolicy : null;
2733
+ this.HpcClusterId = 'HpcClusterId' in params ? params.HpcClusterId : null;
1996
2734
 
1997
2735
  }
1998
2736
  }
@@ -2910,7 +3648,71 @@ class DeleteLaunchConfigurationRequest extends AbstractModel {
2910
3648
  * ID of the launch configuration to be deleted.
2911
3649
  * @type {string || null}
2912
3650
  */
2913
- this.LaunchConfigurationId = null;
3651
+ this.LaunchConfigurationId = null;
3652
+
3653
+ }
3654
+
3655
+ /**
3656
+ * @private
3657
+ */
3658
+ deserialize(params) {
3659
+ if (!params) {
3660
+ return;
3661
+ }
3662
+ this.LaunchConfigurationId = 'LaunchConfigurationId' in params ? params.LaunchConfigurationId : null;
3663
+
3664
+ }
3665
+ }
3666
+
3667
+ /**
3668
+ * Result of the command execution
3669
+ * @class
3670
+ */
3671
+ class InvocationResult extends AbstractModel {
3672
+ constructor(){
3673
+ super();
3674
+
3675
+ /**
3676
+ * Instance ID.
3677
+ Note: This field may return null, indicating that no valid values can be obtained.
3678
+ * @type {string || null}
3679
+ */
3680
+ this.InstanceId = null;
3681
+
3682
+ /**
3683
+ * Execution activity ID.
3684
+ Note: This field may return null, indicating that no valid values can be obtained.
3685
+ * @type {string || null}
3686
+ */
3687
+ this.InvocationId = null;
3688
+
3689
+ /**
3690
+ * Execution task ID.
3691
+ Note: This field may return null, indicating that no valid values can be obtained.
3692
+ * @type {string || null}
3693
+ */
3694
+ this.InvocationTaskId = null;
3695
+
3696
+ /**
3697
+ * Command ID.
3698
+ Note: This field may return null, indicating that no valid values can be obtained.
3699
+ * @type {string || null}
3700
+ */
3701
+ this.CommandId = null;
3702
+
3703
+ /**
3704
+ * Execution Status
3705
+ Note: This field may return null, indicating that no valid values can be obtained.
3706
+ * @type {string || null}
3707
+ */
3708
+ this.TaskStatus = null;
3709
+
3710
+ /**
3711
+ * Execution exception information
3712
+ Note: This field may return null, indicating that no valid values can be obtained.
3713
+ * @type {string || null}
3714
+ */
3715
+ this.ErrorMessage = null;
2914
3716
 
2915
3717
  }
2916
3718
 
@@ -2921,7 +3723,12 @@ class DeleteLaunchConfigurationRequest extends AbstractModel {
2921
3723
  if (!params) {
2922
3724
  return;
2923
3725
  }
2924
- this.LaunchConfigurationId = 'LaunchConfigurationId' in params ? params.LaunchConfigurationId : null;
3726
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
3727
+ this.InvocationId = 'InvocationId' in params ? params.InvocationId : null;
3728
+ this.InvocationTaskId = 'InvocationTaskId' in params ? params.InvocationTaskId : null;
3729
+ this.CommandId = 'CommandId' in params ? params.CommandId : null;
3730
+ this.TaskStatus = 'TaskStatus' in params ? params.TaskStatus : null;
3731
+ this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null;
2925
3732
 
2926
3733
  }
2927
3734
  }
@@ -3071,6 +3878,41 @@ class UpgradeLifecycleHookResponse extends AbstractModel {
3071
3878
  }
3072
3879
  }
3073
3880
 
3881
+ /**
3882
+ * Instance tag. This parameter is used to bind tags to newly added instances.
3883
+ * @class
3884
+ */
3885
+ class InstanceTag extends AbstractModel {
3886
+ constructor(){
3887
+ super();
3888
+
3889
+ /**
3890
+ * Tag key
3891
+ * @type {string || null}
3892
+ */
3893
+ this.Key = null;
3894
+
3895
+ /**
3896
+ * Tag value
3897
+ * @type {string || null}
3898
+ */
3899
+ this.Value = null;
3900
+
3901
+ }
3902
+
3903
+ /**
3904
+ * @private
3905
+ */
3906
+ deserialize(params) {
3907
+ if (!params) {
3908
+ return;
3909
+ }
3910
+ this.Key = 'Key' in params ? params.Key : null;
3911
+ this.Value = 'Value' in params ? params.Value : null;
3912
+
3913
+ }
3914
+ }
3915
+
3074
3916
  /**
3075
3917
  * ModifyLifecycleHook response structure.
3076
3918
  * @class
@@ -3409,6 +4251,239 @@ class DeleteScheduledActionResponse extends AbstractModel {
3409
4251
  }
3410
4252
  }
3411
4253
 
4254
+ /**
4255
+ * UpgradeLaunchConfiguration request structure.
4256
+ * @class
4257
+ */
4258
+ class UpgradeLaunchConfigurationRequest extends AbstractModel {
4259
+ constructor(){
4260
+ super();
4261
+
4262
+ /**
4263
+ * Launch configuration ID.
4264
+ * @type {string || null}
4265
+ */
4266
+ this.LaunchConfigurationId = null;
4267
+
4268
+ /**
4269
+ * [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: <br/><li>Public images </li><li>Custom images </li><li>Shared images </li><br/>You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).</li><li>You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.</li>
4270
+ * @type {string || null}
4271
+ */
4272
+ this.ImageId = null;
4273
+
4274
+ /**
4275
+ * List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported.
4276
+ * @type {Array.<string> || null}
4277
+ */
4278
+ this.InstanceTypes = null;
4279
+
4280
+ /**
4281
+ * Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed..
4282
+ * @type {string || null}
4283
+ */
4284
+ this.LaunchConfigurationName = null;
4285
+
4286
+ /**
4287
+ * Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported.
4288
+ * @type {Array.<DataDisk> || null}
4289
+ */
4290
+ this.DataDisks = null;
4291
+
4292
+ /**
4293
+ * Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default.
4294
+ * @type {EnhancedService || null}
4295
+ */
4296
+ this.EnhancedService = null;
4297
+
4298
+ /**
4299
+ * Instance billing type. CVM instances are POSTPAID_BY_HOUR by default.
4300
+ <br><li>POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
4301
+ <br><li>SPOTPAID: Bidding
4302
+ * @type {string || null}
4303
+ */
4304
+ this.InstanceChargeType = null;
4305
+
4306
+ /**
4307
+ * Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances.
4308
+ * @type {InstanceMarketOptionsRequest || null}
4309
+ */
4310
+ this.InstanceMarketOptions = null;
4311
+
4312
+ /**
4313
+ * Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
4314
+ <br><li> ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
4315
+ <br><li> ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported.
4316
+
4317
+ Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk.
4318
+ If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy.
4319
+ * @type {string || null}
4320
+ */
4321
+ this.InstanceTypesCheckPolicy = null;
4322
+
4323
+ /**
4324
+ * Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default.
4325
+ * @type {InternetAccessible || null}
4326
+ */
4327
+ this.InternetAccessible = null;
4328
+
4329
+ /**
4330
+ * Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center.
4331
+ * @type {LoginSettings || null}
4332
+ */
4333
+ this.LoginSettings = null;
4334
+
4335
+ /**
4336
+ * Project ID of the instance. Leave it blank as the default.
4337
+ * @type {number || null}
4338
+ */
4339
+ this.ProjectId = null;
4340
+
4341
+ /**
4342
+ * The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default.
4343
+ * @type {Array.<string> || null}
4344
+ */
4345
+ this.SecurityGroupIds = null;
4346
+
4347
+ /**
4348
+ * System disk configuration of the instance. If this parameter is not specified, the default value will be used.
4349
+ * @type {SystemDisk || null}
4350
+ */
4351
+ this.SystemDisk = null;
4352
+
4353
+ /**
4354
+ * Base64-encoded custom data of up to 16 KB.
4355
+ * @type {string || null}
4356
+ */
4357
+ this.UserData = null;
4358
+
4359
+ /**
4360
+ * List of tags. This parameter is used to bind up to 10 tags to newly added instances.
4361
+ * @type {Array.<InstanceTag> || null}
4362
+ */
4363
+ this.InstanceTags = null;
4364
+
4365
+ /**
4366
+ * CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API.
4367
+ * @type {string || null}
4368
+ */
4369
+ this.CamRoleName = null;
4370
+
4371
+ /**
4372
+ * CVM hostname settings.
4373
+ * @type {HostNameSettings || null}
4374
+ */
4375
+ this.HostNameSettings = null;
4376
+
4377
+ /**
4378
+ * Settings of CVM instance names
4379
+ * @type {InstanceNameSettings || null}
4380
+ */
4381
+ this.InstanceNameSettings = null;
4382
+
4383
+ /**
4384
+ * Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
4385
+ * @type {InstanceChargePrepaid || null}
4386
+ */
4387
+ this.InstanceChargePrepaid = null;
4388
+
4389
+ /**
4390
+ * Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
4391
+ <br><li>ORIGINAL: uses the configured cloud disk type
4392
+ <br><li>AUTOMATIC: automatically chooses an available cloud disk type
4393
+ * @type {string || null}
4394
+ */
4395
+ this.DiskTypePolicy = null;
4396
+
4397
+ }
4398
+
4399
+ /**
4400
+ * @private
4401
+ */
4402
+ deserialize(params) {
4403
+ if (!params) {
4404
+ return;
4405
+ }
4406
+ this.LaunchConfigurationId = 'LaunchConfigurationId' in params ? params.LaunchConfigurationId : null;
4407
+ this.ImageId = 'ImageId' in params ? params.ImageId : null;
4408
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
4409
+ this.LaunchConfigurationName = 'LaunchConfigurationName' in params ? params.LaunchConfigurationName : null;
4410
+
4411
+ if (params.DataDisks) {
4412
+ this.DataDisks = new Array();
4413
+ for (let z in params.DataDisks) {
4414
+ let obj = new DataDisk();
4415
+ obj.deserialize(params.DataDisks[z]);
4416
+ this.DataDisks.push(obj);
4417
+ }
4418
+ }
4419
+
4420
+ if (params.EnhancedService) {
4421
+ let obj = new EnhancedService();
4422
+ obj.deserialize(params.EnhancedService)
4423
+ this.EnhancedService = obj;
4424
+ }
4425
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
4426
+
4427
+ if (params.InstanceMarketOptions) {
4428
+ let obj = new InstanceMarketOptionsRequest();
4429
+ obj.deserialize(params.InstanceMarketOptions)
4430
+ this.InstanceMarketOptions = obj;
4431
+ }
4432
+ this.InstanceTypesCheckPolicy = 'InstanceTypesCheckPolicy' in params ? params.InstanceTypesCheckPolicy : null;
4433
+
4434
+ if (params.InternetAccessible) {
4435
+ let obj = new InternetAccessible();
4436
+ obj.deserialize(params.InternetAccessible)
4437
+ this.InternetAccessible = obj;
4438
+ }
4439
+
4440
+ if (params.LoginSettings) {
4441
+ let obj = new LoginSettings();
4442
+ obj.deserialize(params.LoginSettings)
4443
+ this.LoginSettings = obj;
4444
+ }
4445
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
4446
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
4447
+
4448
+ if (params.SystemDisk) {
4449
+ let obj = new SystemDisk();
4450
+ obj.deserialize(params.SystemDisk)
4451
+ this.SystemDisk = obj;
4452
+ }
4453
+ this.UserData = 'UserData' in params ? params.UserData : null;
4454
+
4455
+ if (params.InstanceTags) {
4456
+ this.InstanceTags = new Array();
4457
+ for (let z in params.InstanceTags) {
4458
+ let obj = new InstanceTag();
4459
+ obj.deserialize(params.InstanceTags[z]);
4460
+ this.InstanceTags.push(obj);
4461
+ }
4462
+ }
4463
+ this.CamRoleName = 'CamRoleName' in params ? params.CamRoleName : null;
4464
+
4465
+ if (params.HostNameSettings) {
4466
+ let obj = new HostNameSettings();
4467
+ obj.deserialize(params.HostNameSettings)
4468
+ this.HostNameSettings = obj;
4469
+ }
4470
+
4471
+ if (params.InstanceNameSettings) {
4472
+ let obj = new InstanceNameSettings();
4473
+ obj.deserialize(params.InstanceNameSettings)
4474
+ this.InstanceNameSettings = obj;
4475
+ }
4476
+
4477
+ if (params.InstanceChargePrepaid) {
4478
+ let obj = new InstanceChargePrepaid();
4479
+ obj.deserialize(params.InstanceChargePrepaid)
4480
+ this.InstanceChargePrepaid = obj;
4481
+ }
4482
+ this.DiskTypePolicy = 'DiskTypePolicy' in params ? params.DiskTypePolicy : null;
4483
+
4484
+ }
4485
+ }
4486
+
3412
4487
  /**
3413
4488
  * DescribeAutoScalingActivities response structure.
3414
4489
  * @class
@@ -3580,18 +4655,60 @@ Note: This field may return `null`, indicating that no valid value can be obtain
3580
4655
  }
3581
4656
 
3582
4657
  /**
3583
- * DeleteScalingPolicy request structure.
4658
+ * DeleteScalingPolicy request structure.
4659
+ * @class
4660
+ */
4661
+ class DeleteScalingPolicyRequest extends AbstractModel {
4662
+ constructor(){
4663
+ super();
4664
+
4665
+ /**
4666
+ * ID of the alarm policy to be deleted.
4667
+ * @type {string || null}
4668
+ */
4669
+ this.AutoScalingPolicyId = null;
4670
+
4671
+ }
4672
+
4673
+ /**
4674
+ * @private
4675
+ */
4676
+ deserialize(params) {
4677
+ if (!params) {
4678
+ return;
4679
+ }
4680
+ this.AutoScalingPolicyId = 'AutoScalingPolicyId' in params ? params.AutoScalingPolicyId : null;
4681
+
4682
+ }
4683
+ }
4684
+
4685
+ /**
4686
+ * Describes login settings of an instance.
3584
4687
  * @class
3585
4688
  */
3586
- class DeleteScalingPolicyRequest extends AbstractModel {
4689
+ class LoginSettings extends AbstractModel {
3587
4690
  constructor(){
3588
4691
  super();
3589
4692
 
3590
4693
  /**
3591
- * ID of the alarm policy to be deleted.
4694
+ * Login password of the instance. The password requirements vary among different operating systems: <br><li>For Linux instances, the password must be 8-16 characters long and contain at least one character from two of the following categories: [a-z, A-Z], [0-9] and [( ) ` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]. <br><li>For Windows instances, the password must be 12-16 characters long and contain at least one character from three of the following categories: [a-z], [A-Z], [0-9] and [( ) ` ~ ! @ # $ % ^ & * - + = { } [ ] : ; ' , . ? /]. <br><br>If this parameter is not specified, a random password will be generated and sent to you via the Message Center.
4695
+ Note: This field may return null, indicating that no valid values can be obtained.
3592
4696
  * @type {string || null}
3593
4697
  */
3594
- this.AutoScalingPolicyId = null;
4698
+ this.Password = null;
4699
+
4700
+ /**
4701
+ * List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair. You can call `DescribeKeyPairs` to obtain `KeyId`. Key and password cannot be specified at the same time. Windows instances do not support keys. Currently, you can only specify one key when purchasing an instance.
4702
+ * @type {Array.<string> || null}
4703
+ */
4704
+ this.KeyIds = null;
4705
+
4706
+ /**
4707
+ * Whether to keep the original settings of an image. You cannot specify this parameter and `Password` or `KeyIds.N` at the same time. You can specify this parameter as `TRUE` only when you create an instance using a custom image, a shared image, or an imported image. Valid values: <br><li>TRUE: keep the login settings of the image <br><li>FALSE: do not keep the login settings of the image <br><br>Default value: FALSE.
4708
+ Note: This field may return null, indicating that no valid values can be obtained.
4709
+ * @type {boolean || null}
4710
+ */
4711
+ this.KeepImageLogin = null;
3595
4712
 
3596
4713
  }
3597
4714
 
@@ -3602,7 +4719,9 @@ class DeleteScalingPolicyRequest extends AbstractModel {
3602
4719
  if (!params) {
3603
4720
  return;
3604
4721
  }
3605
- this.AutoScalingPolicyId = 'AutoScalingPolicyId' in params ? params.AutoScalingPolicyId : null;
4722
+ this.Password = 'Password' in params ? params.Password : null;
4723
+ this.KeyIds = 'KeyIds' in params ? params.KeyIds : null;
4724
+ this.KeepImageLogin = 'KeepImageLogin' in params ? params.KeepImageLogin : null;
3606
4725
 
3607
4726
  }
3608
4727
  }
@@ -4496,6 +5615,41 @@ class CompleteLifecycleActionResponse extends AbstractModel {
4496
5615
  }
4497
5616
  }
4498
5617
 
5618
+ /**
5619
+ * ScaleOutInstances response structure.
5620
+ * @class
5621
+ */
5622
+ class ScaleOutInstancesResponse extends AbstractModel {
5623
+ constructor(){
5624
+ super();
5625
+
5626
+ /**
5627
+ * Scaling activity ID
5628
+ * @type {string || null}
5629
+ */
5630
+ this.ActivityId = null;
5631
+
5632
+ /**
5633
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
5634
+ * @type {string || null}
5635
+ */
5636
+ this.RequestId = null;
5637
+
5638
+ }
5639
+
5640
+ /**
5641
+ * @private
5642
+ */
5643
+ deserialize(params) {
5644
+ if (!params) {
5645
+ return;
5646
+ }
5647
+ this.ActivityId = 'ActivityId' in params ? params.ActivityId : null;
5648
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
5649
+
5650
+ }
5651
+ }
5652
+
4499
5653
  /**
4500
5654
  * > Describes key-value pair filters used for conditional queries, such as filtering results by ID, name and state.
4501
5655
  > * If there are multiple `Filter` parameters, the relationship among them will be logical `AND`.
@@ -4737,6 +5891,34 @@ class ModifyNotificationConfigurationResponse extends AbstractModel {
4737
5891
  }
4738
5892
  }
4739
5893
 
5894
+ /**
5895
+ * This describes the configuration and information related to instance login. For security reasons, sensitive information is not described.
5896
+ * @class
5897
+ */
5898
+ class LimitedLoginSettings extends AbstractModel {
5899
+ constructor(){
5900
+ super();
5901
+
5902
+ /**
5903
+ * List of key IDs.
5904
+ * @type {Array.<string> || null}
5905
+ */
5906
+ this.KeyIds = null;
5907
+
5908
+ }
5909
+
5910
+ /**
5911
+ * @private
5912
+ */
5913
+ deserialize(params) {
5914
+ if (!params) {
5915
+ return;
5916
+ }
5917
+ this.KeyIds = 'KeyIds' in params ? params.KeyIds : null;
5918
+
5919
+ }
5920
+ }
5921
+
4740
5922
  /**
4741
5923
  * DescribeLifecycleHooks response structure.
4742
5924
  * @class
@@ -4832,7 +6014,8 @@ class CreateScalingPolicyRequest extends AbstractModel {
4832
6014
  this.Cooldown = null;
4833
6015
 
4834
6016
  /**
4835
- * Notification group ID, which is the set of user group IDs. You can query the user group IDs through the [ListGroups](https://intl.cloud.tencent.com/document/product/598/34589?from_cn_redirect=1) API.
6017
+ * This parameter is diused. Please use [CreateNotificationConfiguration](https://intl.cloud.tencent.com/document/api/377/33185?from_cn_redirect=1) instead.
6018
+ Notification group ID, which is the set of user group IDs.
4836
6019
  * @type {Array.<string> || null}
4837
6020
  */
4838
6021
  this.NotificationUserGroupIds = null;
@@ -4862,6 +6045,41 @@ class CreateScalingPolicyRequest extends AbstractModel {
4862
6045
  }
4863
6046
  }
4864
6047
 
6048
+ /**
6049
+ * ScaleInInstances response structure.
6050
+ * @class
6051
+ */
6052
+ class ScaleInInstancesResponse extends AbstractModel {
6053
+ constructor(){
6054
+ super();
6055
+
6056
+ /**
6057
+ * Scaling activity ID
6058
+ * @type {string || null}
6059
+ */
6060
+ this.ActivityId = null;
6061
+
6062
+ /**
6063
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6064
+ * @type {string || null}
6065
+ */
6066
+ this.RequestId = null;
6067
+
6068
+ }
6069
+
6070
+ /**
6071
+ * @private
6072
+ */
6073
+ deserialize(params) {
6074
+ if (!params) {
6075
+ return;
6076
+ }
6077
+ this.ActivityId = 'ActivityId' in params ? params.ActivityId : null;
6078
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
6079
+
6080
+ }
6081
+ }
6082
+
4865
6083
  /**
4866
6084
  * DescribeAutoScalingAdvices request structure.
4867
6085
  * @class
@@ -4918,6 +6136,71 @@ class DeleteNotificationConfigurationRequest extends AbstractModel {
4918
6136
  }
4919
6137
  }
4920
6138
 
6139
+ /**
6140
+ * DescribeLaunchConfigurations request structure.
6141
+ * @class
6142
+ */
6143
+ class DescribeLaunchConfigurationsRequest extends AbstractModel {
6144
+ constructor(){
6145
+ super();
6146
+
6147
+ /**
6148
+ * Queries by one or more launch configuration IDs in the format of `asc-ouy1ax38`. The maximum quantity per request is 100. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time.
6149
+ * @type {Array.<string> || null}
6150
+ */
6151
+ this.LaunchConfigurationIds = null;
6152
+
6153
+ /**
6154
+ * Filters
6155
+ <li> `launch-configuration-id` - String - Required: No - Filter by launch configuration ID.</li>
6156
+ <li> `launch-configuration-name` - String - Required: No - Filter by launch configuration name.</li>
6157
+ <li> `launch-configuration-name` - String - Required: No - Fuzzy search by launch configuration name.</li>
6158
+ <li> `tag-key` - String - Required: No - Filter by the tag key.</li>
6159
+ <li> `tag-value` - String - Required: No - Filter by the tag value.</li>
6160
+ <li>tag:tag-key - String - Optional - Filter by tag key pair. Use a specific tag key to replace `tag-key`. See Example 3 for the detailed usage.</li>
6161
+ </li>
6162
+ The maximum number of `Filters` per request is 10. The upper limit for `Filter.Values` is 5. This parameter does not support specifying both `LaunchConfigurationIds` and `Filters` at the same time.
6163
+ * @type {Array.<Filter> || null}
6164
+ */
6165
+ this.Filters = null;
6166
+
6167
+ /**
6168
+ * The number of returned results. Default value: `20`. Maximum value: `100`. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
6169
+ * @type {number || null}
6170
+ */
6171
+ this.Limit = null;
6172
+
6173
+ /**
6174
+ * The offset. Default value: `0`. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
6175
+ * @type {number || null}
6176
+ */
6177
+ this.Offset = null;
6178
+
6179
+ }
6180
+
6181
+ /**
6182
+ * @private
6183
+ */
6184
+ deserialize(params) {
6185
+ if (!params) {
6186
+ return;
6187
+ }
6188
+ this.LaunchConfigurationIds = 'LaunchConfigurationIds' in params ? params.LaunchConfigurationIds : null;
6189
+
6190
+ if (params.Filters) {
6191
+ this.Filters = new Array();
6192
+ for (let z in params.Filters) {
6193
+ let obj = new Filter();
6194
+ obj.deserialize(params.Filters[z]);
6195
+ this.Filters.push(obj);
6196
+ }
6197
+ }
6198
+ this.Limit = 'Limit' in params ? params.Limit : null;
6199
+ this.Offset = 'Offset' in params ? params.Offset : null;
6200
+
6201
+ }
6202
+ }
6203
+
4921
6204
  /**
4922
6205
  * Notification target
4923
6206
  * @class
@@ -5091,6 +6374,41 @@ class LifecycleActionResultInfo extends AbstractModel {
5091
6374
  }
5092
6375
  }
5093
6376
 
6377
+ /**
6378
+ * Brief information of a scaling group.
6379
+ * @class
6380
+ */
6381
+ class AutoScalingGroupAbstract extends AbstractModel {
6382
+ constructor(){
6383
+ super();
6384
+
6385
+ /**
6386
+ * Scaling group ID
6387
+ * @type {string || null}
6388
+ */
6389
+ this.AutoScalingGroupId = null;
6390
+
6391
+ /**
6392
+ * Auto scaling group name.
6393
+ * @type {string || null}
6394
+ */
6395
+ this.AutoScalingGroupName = null;
6396
+
6397
+ }
6398
+
6399
+ /**
6400
+ * @private
6401
+ */
6402
+ deserialize(params) {
6403
+ if (!params) {
6404
+ return;
6405
+ }
6406
+ this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
6407
+ this.AutoScalingGroupName = 'AutoScalingGroupName' in params ? params.AutoScalingGroupName : null;
6408
+
6409
+ }
6410
+ }
6411
+
5094
6412
  /**
5095
6413
  * EnableAutoScalingGroup request structure.
5096
6414
  * @class
@@ -5242,6 +6560,41 @@ The maximum number of `Filters` per request is 10. The upper limit for `Filter.V
5242
6560
  }
5243
6561
  }
5244
6562
 
6563
+ /**
6564
+ * ScaleInInstances request structure.
6565
+ * @class
6566
+ */
6567
+ class ScaleInInstancesRequest extends AbstractModel {
6568
+ constructor(){
6569
+ super();
6570
+
6571
+ /**
6572
+ * Scaling group ID
6573
+ * @type {string || null}
6574
+ */
6575
+ this.AutoScalingGroupId = null;
6576
+
6577
+ /**
6578
+ * Number of instances to be reduced
6579
+ * @type {number || null}
6580
+ */
6581
+ this.ScaleInNumber = null;
6582
+
6583
+ }
6584
+
6585
+ /**
6586
+ * @private
6587
+ */
6588
+ deserialize(params) {
6589
+ if (!params) {
6590
+ return;
6591
+ }
6592
+ this.AutoScalingGroupId = 'AutoScalingGroupId' in params ? params.AutoScalingGroupId : null;
6593
+ this.ScaleInNumber = 'ScaleInNumber' in params ? params.ScaleInNumber : null;
6594
+
6595
+ }
6596
+ }
6597
+
5245
6598
  /**
5246
6599
  * Lifecycle hook
5247
6600
  * @class
@@ -5801,9 +7154,10 @@ class Activity extends AbstractModel {
5801
7154
 
5802
7155
  /**
5803
7156
  * Type of the scaling activity. Valid values:<br>
5804
- <li>SCALE_OUT: scales out. <li>SCALE_IN: scales in. <li>ATTACH_INSTANCES: adds an instance. <li>REMOVE_INSTANCES: terminates an instance. <li>DETACH_INSTANCES: removes an instance. <li>TERMINATE_INSTANCES_UNEXPECTEDLY: terminates an instance in the CVM console. <li>REPLACE_UNHEALTHY_INSTANCE: replaces an unhealthy instance.
5805
- <li>START_INSTANCES: starts an instance.
5806
- <li>STOP_INSTANCES: stops an instance.
7157
+ <li>`SCALE_OUT`: Scale out. <li>`SCALE_IN`: Scale in. <li>`ATTACH_INSTANCES`: Add instances. <li>`REMOVE_INSTANCES`: Terminate instances. <li>`DETACH_INSTANCES`: Remove instances. <li>`TERMINATE_INSTANCES_UNEXPECTEDLY`: Terminate instances in the CVM console. <li>`REPLACE_UNHEALTHY_INSTANCE`: Replace an unhealthy instance.
7158
+ <li>`START_INSTANCES`: Starts up instances.
7159
+ <li>`STOP_INSTANCES`: Shut down instances.
7160
+ <li>`INVOKE_COMMAND`: Execute commands
5807
7161
  * @type {string || null}
5808
7162
  */
5809
7163
  this.ActivityType = null;
@@ -5880,6 +7234,12 @@ class Activity extends AbstractModel {
5880
7234
  */
5881
7235
  this.DetailedStatusMessageSet = null;
5882
7236
 
7237
+ /**
7238
+ * Result of the command execution
7239
+ * @type {Array.<InvocationResult> || null}
7240
+ */
7241
+ this.InvocationResultSet = null;
7242
+
5883
7243
  }
5884
7244
 
5885
7245
  /**
@@ -5928,6 +7288,15 @@ class Activity extends AbstractModel {
5928
7288
  }
5929
7289
  }
5930
7290
 
7291
+ if (params.InvocationResultSet) {
7292
+ this.InvocationResultSet = new Array();
7293
+ for (let z in params.InvocationResultSet) {
7294
+ let obj = new InvocationResult();
7295
+ obj.deserialize(params.InvocationResultSet[z]);
7296
+ this.InvocationResultSet.push(obj);
7297
+ }
7298
+ }
7299
+
5931
7300
  }
5932
7301
  }
5933
7302
 
@@ -6278,6 +7647,34 @@ class EnableAutoScalingGroupResponse extends AbstractModel {
6278
7647
  }
6279
7648
  }
6280
7649
 
7650
+ /**
7651
+ * UpgradeLaunchConfiguration response structure.
7652
+ * @class
7653
+ */
7654
+ class UpgradeLaunchConfigurationResponse extends AbstractModel {
7655
+ constructor(){
7656
+ super();
7657
+
7658
+ /**
7659
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
7660
+ * @type {string || null}
7661
+ */
7662
+ this.RequestId = null;
7663
+
7664
+ }
7665
+
7666
+ /**
7667
+ * @private
7668
+ */
7669
+ deserialize(params) {
7670
+ if (!params) {
7671
+ return;
7672
+ }
7673
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
7674
+
7675
+ }
7676
+ }
7677
+
6281
7678
  /**
6282
7679
  * This API is used to describe the billing mode of an instance.
6283
7680
  * @class
@@ -6384,16 +7781,22 @@ class ExecuteScalingPolicyRequest extends AbstractModel {
6384
7781
  }
6385
7782
 
6386
7783
  module.exports = {
7784
+ DisableAutoScalingGroupResponse: DisableAutoScalingGroupResponse,
6387
7785
  ModifyLaunchConfigurationAttributesRequest: ModifyLaunchConfigurationAttributesRequest,
7786
+ DisableAutoScalingGroupRequest: DisableAutoScalingGroupRequest,
6388
7787
  ModifyAutoScalingGroupRequest: ModifyAutoScalingGroupRequest,
7788
+ ScaleOutInstancesRequest: ScaleOutInstancesRequest,
6389
7789
  AutoScalingNotification: AutoScalingNotification,
6390
7790
  ModifyScheduledActionRequest: ModifyScheduledActionRequest,
6391
7791
  DescribeAutoScalingGroupsRequest: DescribeAutoScalingGroupsRequest,
7792
+ LaunchConfiguration: LaunchConfiguration,
6392
7793
  DescribeAccountLimitsResponse: DescribeAccountLimitsResponse,
7794
+ CreateLaunchConfigurationResponse: CreateLaunchConfigurationResponse,
6393
7795
  Advice: Advice,
6394
7796
  CreateLifecycleHookResponse: CreateLifecycleHookResponse,
6395
7797
  ClearLaunchConfigurationAttributesResponse: ClearLaunchConfigurationAttributesResponse,
6396
7798
  DescribeAutoScalingGroupsResponse: DescribeAutoScalingGroupsResponse,
7799
+ CreateScheduledActionRequest: CreateScheduledActionRequest,
6397
7800
  SystemDisk: SystemDisk,
6398
7801
  SpotMarketOptions: SpotMarketOptions,
6399
7802
  StopAutoScalingInstancesResponse: StopAutoScalingInstancesResponse,
@@ -6409,7 +7812,7 @@ module.exports = {
6409
7812
  CompleteLifecycleActionRequest: CompleteLifecycleActionRequest,
6410
7813
  CreateScalingPolicyResponse: CreateScalingPolicyResponse,
6411
7814
  CreateNotificationConfigurationResponse: CreateNotificationConfigurationResponse,
6412
- CreateScheduledActionRequest: CreateScheduledActionRequest,
7815
+ DescribeLaunchConfigurationsResponse: DescribeLaunchConfigurationsResponse,
6413
7816
  RemoveInstancesRequest: RemoveInstancesRequest,
6414
7817
  DeleteScalingPolicyResponse: DeleteScalingPolicyResponse,
6415
7818
  Tag: Tag,
@@ -6422,6 +7825,7 @@ module.exports = {
6422
7825
  DeleteNotificationConfigurationResponse: DeleteNotificationConfigurationResponse,
6423
7826
  DetachInstancesResponse: DetachInstancesResponse,
6424
7827
  ModifyLaunchConfigurationAttributesResponse: ModifyLaunchConfigurationAttributesResponse,
7828
+ CreateLaunchConfigurationRequest: CreateLaunchConfigurationRequest,
6425
7829
  AutoScalingGroup: AutoScalingGroup,
6426
7830
  AttachInstancesResponse: AttachInstancesResponse,
6427
7831
  DescribeAutoScalingGroupLastActivitiesResponse: DescribeAutoScalingGroupLastActivitiesResponse,
@@ -6438,17 +7842,21 @@ module.exports = {
6438
7842
  ModifyLoadBalancerTargetAttributesResponse: ModifyLoadBalancerTargetAttributesResponse,
6439
7843
  ModifyAutoScalingGroupResponse: ModifyAutoScalingGroupResponse,
6440
7844
  DeleteLaunchConfigurationRequest: DeleteLaunchConfigurationRequest,
7845
+ InvocationResult: InvocationResult,
6441
7846
  ModifyScalingPolicyRequest: ModifyScalingPolicyRequest,
6442
7847
  InstanceMarketOptionsRequest: InstanceMarketOptionsRequest,
6443
7848
  UpgradeLifecycleHookResponse: UpgradeLifecycleHookResponse,
7849
+ InstanceTag: InstanceTag,
6444
7850
  ModifyLifecycleHookResponse: ModifyLifecycleHookResponse,
6445
7851
  DescribeAutoScalingAdvicesResponse: DescribeAutoScalingAdvicesResponse,
6446
7852
  CreateAutoScalingGroupRequest: CreateAutoScalingGroupRequest,
6447
7853
  DeleteScheduledActionResponse: DeleteScheduledActionResponse,
7854
+ UpgradeLaunchConfigurationRequest: UpgradeLaunchConfigurationRequest,
6448
7855
  DescribeAutoScalingActivitiesResponse: DescribeAutoScalingActivitiesResponse,
6449
7856
  DescribeNotificationConfigurationsResponse: DescribeNotificationConfigurationsResponse,
6450
7857
  DataDisk: DataDisk,
6451
7858
  DeleteScalingPolicyRequest: DeleteScalingPolicyRequest,
7859
+ LoginSettings: LoginSettings,
6452
7860
  CreateAutoScalingGroupFromInstanceResponse: CreateAutoScalingGroupFromInstanceResponse,
6453
7861
  DetachInstancesRequest: DetachInstancesRequest,
6454
7862
  Instance: Instance,
@@ -6465,23 +7873,29 @@ module.exports = {
6465
7873
  ScheduledAction: ScheduledAction,
6466
7874
  ModifyLifecycleHookRequest: ModifyLifecycleHookRequest,
6467
7875
  CompleteLifecycleActionResponse: CompleteLifecycleActionResponse,
7876
+ ScaleOutInstancesResponse: ScaleOutInstancesResponse,
6468
7877
  Filter: Filter,
6469
7878
  DescribeLifecycleHooksRequest: DescribeLifecycleHooksRequest,
6470
7879
  ServiceSettings: ServiceSettings,
6471
7880
  CreateAutoScalingGroupResponse: CreateAutoScalingGroupResponse,
6472
7881
  TargetAttribute: TargetAttribute,
6473
7882
  ModifyNotificationConfigurationResponse: ModifyNotificationConfigurationResponse,
7883
+ LimitedLoginSettings: LimitedLoginSettings,
6474
7884
  DescribeLifecycleHooksResponse: DescribeLifecycleHooksResponse,
6475
7885
  CreateScalingPolicyRequest: CreateScalingPolicyRequest,
7886
+ ScaleInInstancesResponse: ScaleInInstancesResponse,
6476
7887
  DescribeAutoScalingAdvicesRequest: DescribeAutoScalingAdvicesRequest,
6477
7888
  DeleteNotificationConfigurationRequest: DeleteNotificationConfigurationRequest,
7889
+ DescribeLaunchConfigurationsRequest: DescribeLaunchConfigurationsRequest,
6478
7890
  NotificationTarget: NotificationTarget,
6479
7891
  ModifyLoadBalancerTargetAttributesRequest: ModifyLoadBalancerTargetAttributesRequest,
6480
7892
  DeleteAutoScalingGroupResponse: DeleteAutoScalingGroupResponse,
6481
7893
  LifecycleActionResultInfo: LifecycleActionResultInfo,
7894
+ AutoScalingGroupAbstract: AutoScalingGroupAbstract,
6482
7895
  EnableAutoScalingGroupRequest: EnableAutoScalingGroupRequest,
6483
7896
  MetricAlarm: MetricAlarm,
6484
7897
  DescribeNotificationConfigurationsRequest: DescribeNotificationConfigurationsRequest,
7898
+ ScaleInInstancesRequest: ScaleInInstancesRequest,
6485
7899
  LifecycleHook: LifecycleHook,
6486
7900
  ForwardLoadBalancer: ForwardLoadBalancer,
6487
7901
  ClearLaunchConfigurationAttributesRequest: ClearLaunchConfigurationAttributesRequest,
@@ -6501,6 +7915,7 @@ module.exports = {
6501
7915
  CreateAutoScalingGroupFromInstanceRequest: CreateAutoScalingGroupFromInstanceRequest,
6502
7916
  InternetAccessible: InternetAccessible,
6503
7917
  EnableAutoScalingGroupResponse: EnableAutoScalingGroupResponse,
7918
+ UpgradeLaunchConfigurationResponse: UpgradeLaunchConfigurationResponse,
6504
7919
  InstanceChargePrepaid: InstanceChargePrepaid,
6505
7920
  DeleteLifecycleHookResponse: DeleteLifecycleHookResponse,
6506
7921
  ExecuteScalingPolicyRequest: ExecuteScalingPolicyRequest,