tencentcloud-sdk-python-intl-en 3.0.1090__py2.py3-none-any.whl → 3.0.1092__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +2 -2
- tencentcloud/autoscaling/v20180419/models.py +350 -209
- tencentcloud/dts/v20211206/dts_client.py +575 -0
- tencentcloud/dts/v20211206/errorcodes.py +9 -0
- tencentcloud/dts/v20211206/models.py +8552 -3594
- tencentcloud/intlpartnersmgt/v20220928/models.py +2 -0
- tencentcloud/redis/v20180412/errorcodes.py +3 -0
- tencentcloud/redis/v20180412/models.py +3150 -701
- tencentcloud/redis/v20180412/redis_client.py +273 -43
- tencentcloud/teo/v20220901/models.py +8 -4
- {tencentcloud_sdk_python_intl_en-3.0.1090.dist-info → tencentcloud_sdk_python_intl_en-3.0.1092.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1090.dist-info → tencentcloud_sdk_python_intl_en-3.0.1092.dist-info}/RECORD +15 -15
- {tencentcloud_sdk_python_intl_en-3.0.1090.dist-info → tencentcloud_sdk_python_intl_en-3.0.1092.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1090.dist-info → tencentcloud_sdk_python_intl_en-3.0.1092.dist-info}/top_level.txt +0 -0
|
@@ -29,19 +29,25 @@ class Activity(AbstractModel):
|
|
|
29
29
|
:type AutoScalingGroupId: str
|
|
30
30
|
:param _ActivityId: Scaling activity ID.
|
|
31
31
|
:type ActivityId: str
|
|
32
|
-
:param _ActivityType:
|
|
33
|
-
<li
|
|
34
|
-
<li
|
|
35
|
-
<li
|
|
36
|
-
<li
|
|
32
|
+
:param _ActivityType: Scaling activity type. Valid values:
|
|
33
|
+
<li>SCALE_OUT: Scale out an instance.</li>
|
|
34
|
+
<li>SCALE_IN: Scale in an instance.</li>
|
|
35
|
+
<li>ATTACH_INSTANCES: Add an instance.</li>
|
|
36
|
+
<li>REMOVE_INSTANCES: Terminate an instance.</li>
|
|
37
|
+
<li>DETACH_INSTANCES: Remove an instance.</li>
|
|
38
|
+
<li>TERMINATE_INSTANCES_UNEXPECTEDLY: Terminate an instance in the CVM console.</li>
|
|
39
|
+
<li>REPLACE_UNHEALTHY_INSTANCE: Replace an unhealthy instance.</li>
|
|
40
|
+
<li>START_INSTANCES: Start an instance.</li>
|
|
41
|
+
<li>STOP_INSTANCES: Stop an instance.</li>
|
|
42
|
+
<li>INVOKE_COMMAND: Execute a command.</li>
|
|
37
43
|
:type ActivityType: str
|
|
38
|
-
:param _StatusCode: Scaling activity status.
|
|
39
|
-
<li>INIT: initializing
|
|
40
|
-
<li>RUNNING: running
|
|
41
|
-
<li>SUCCESSFUL:
|
|
42
|
-
<li>PARTIALLY_SUCCESSFUL: partially
|
|
43
|
-
<li>FAILED: failed
|
|
44
|
-
<li>CANCELLED: canceled
|
|
44
|
+
:param _StatusCode: Scaling activity status. Valid values:
|
|
45
|
+
<li>INIT: initializing.</li>
|
|
46
|
+
<li>RUNNING: running.</li>
|
|
47
|
+
<li>SUCCESSFUL: successful.</li>
|
|
48
|
+
<li>PARTIALLY_SUCCESSFUL: partially successful.</li>
|
|
49
|
+
<li>FAILED: failed.</li>
|
|
50
|
+
<li>CANCELLED: canceled.</li>
|
|
45
51
|
:type StatusCode: str
|
|
46
52
|
:param _StatusMessage: Description of the scaling activity status.
|
|
47
53
|
:type StatusMessage: str
|
|
@@ -109,11 +115,17 @@ class Activity(AbstractModel):
|
|
|
109
115
|
|
|
110
116
|
@property
|
|
111
117
|
def ActivityType(self):
|
|
112
|
-
"""
|
|
113
|
-
<li
|
|
114
|
-
<li
|
|
115
|
-
<li
|
|
116
|
-
<li
|
|
118
|
+
"""Scaling activity type. Valid values:
|
|
119
|
+
<li>SCALE_OUT: Scale out an instance.</li>
|
|
120
|
+
<li>SCALE_IN: Scale in an instance.</li>
|
|
121
|
+
<li>ATTACH_INSTANCES: Add an instance.</li>
|
|
122
|
+
<li>REMOVE_INSTANCES: Terminate an instance.</li>
|
|
123
|
+
<li>DETACH_INSTANCES: Remove an instance.</li>
|
|
124
|
+
<li>TERMINATE_INSTANCES_UNEXPECTEDLY: Terminate an instance in the CVM console.</li>
|
|
125
|
+
<li>REPLACE_UNHEALTHY_INSTANCE: Replace an unhealthy instance.</li>
|
|
126
|
+
<li>START_INSTANCES: Start an instance.</li>
|
|
127
|
+
<li>STOP_INSTANCES: Stop an instance.</li>
|
|
128
|
+
<li>INVOKE_COMMAND: Execute a command.</li>
|
|
117
129
|
:rtype: str
|
|
118
130
|
"""
|
|
119
131
|
return self._ActivityType
|
|
@@ -124,13 +136,13 @@ class Activity(AbstractModel):
|
|
|
124
136
|
|
|
125
137
|
@property
|
|
126
138
|
def StatusCode(self):
|
|
127
|
-
"""Scaling activity status.
|
|
128
|
-
<li>INIT: initializing
|
|
129
|
-
<li>RUNNING: running
|
|
130
|
-
<li>SUCCESSFUL:
|
|
131
|
-
<li>PARTIALLY_SUCCESSFUL: partially
|
|
132
|
-
<li>FAILED: failed
|
|
133
|
-
<li>CANCELLED: canceled
|
|
139
|
+
"""Scaling activity status. Valid values:
|
|
140
|
+
<li>INIT: initializing.</li>
|
|
141
|
+
<li>RUNNING: running.</li>
|
|
142
|
+
<li>SUCCESSFUL: successful.</li>
|
|
143
|
+
<li>PARTIALLY_SUCCESSFUL: partially successful.</li>
|
|
144
|
+
<li>FAILED: failed.</li>
|
|
145
|
+
<li>CANCELLED: canceled.</li>
|
|
134
146
|
:rtype: str
|
|
135
147
|
"""
|
|
136
148
|
return self._StatusCode
|
|
@@ -337,11 +349,7 @@ class ActivtyRelatedInstance(AbstractModel):
|
|
|
337
349
|
r"""
|
|
338
350
|
:param _InstanceId: Instance ID.
|
|
339
351
|
:type InstanceId: str
|
|
340
|
-
:param _InstanceStatus: Status of the instance in the scaling activity.
|
|
341
|
-
<li>INIT: initializing
|
|
342
|
-
<li>RUNNING: running
|
|
343
|
-
<li>SUCCESSFUL: succeeded
|
|
344
|
-
<li>FAILED: failed
|
|
352
|
+
:param _InstanceStatus: Status of the instance in the scaling activity. Valid values: <br><li>INIT: initializing;</li> <li>RUNNING: instance in operation;</li> <li>SUCCESSFUL: activity successful;</li> <li>FAILED: activity failed.
|
|
345
353
|
:type InstanceStatus: str
|
|
346
354
|
"""
|
|
347
355
|
self._InstanceId = None
|
|
@@ -360,11 +368,7 @@ class ActivtyRelatedInstance(AbstractModel):
|
|
|
360
368
|
|
|
361
369
|
@property
|
|
362
370
|
def InstanceStatus(self):
|
|
363
|
-
"""Status of the instance in the scaling activity.
|
|
364
|
-
<li>INIT: initializing
|
|
365
|
-
<li>RUNNING: running
|
|
366
|
-
<li>SUCCESSFUL: succeeded
|
|
367
|
-
<li>FAILED: failed
|
|
371
|
+
"""Status of the instance in the scaling activity. Valid values: <br><li>INIT: initializing;</li> <li>RUNNING: instance in operation;</li> <li>SUCCESSFUL: activity successful;</li> <li>FAILED: activity failed.
|
|
368
372
|
:rtype: str
|
|
369
373
|
"""
|
|
370
374
|
return self._InstanceStatus
|
|
@@ -400,9 +404,9 @@ class Advice(AbstractModel):
|
|
|
400
404
|
:type Detail: str
|
|
401
405
|
:param _Solution: Recommended resolutions
|
|
402
406
|
:type Solution: str
|
|
403
|
-
:param _Level:
|
|
404
|
-
<li>WARNING
|
|
405
|
-
<li>CRITICAL
|
|
407
|
+
:param _Level: Scaling suggestion warning level. Valid values:
|
|
408
|
+
<li>WARNING: warning.</li>
|
|
409
|
+
<li>CRITICAL: critical.</li>
|
|
406
410
|
:type Level: str
|
|
407
411
|
"""
|
|
408
412
|
self._Problem = None
|
|
@@ -445,9 +449,9 @@ class Advice(AbstractModel):
|
|
|
445
449
|
|
|
446
450
|
@property
|
|
447
451
|
def Level(self):
|
|
448
|
-
"""
|
|
449
|
-
<li>WARNING
|
|
450
|
-
<li>CRITICAL
|
|
452
|
+
"""Scaling suggestion warning level. Valid values:
|
|
453
|
+
<li>WARNING: warning.</li>
|
|
454
|
+
<li>CRITICAL: critical.</li>
|
|
451
455
|
:rtype: str
|
|
452
456
|
"""
|
|
453
457
|
return self._Level
|
|
@@ -689,10 +693,10 @@ class AutoScalingAdvice(AbstractModel):
|
|
|
689
693
|
r"""
|
|
690
694
|
:param _AutoScalingGroupId: Scaling group ID
|
|
691
695
|
:type AutoScalingGroupId: str
|
|
692
|
-
:param _Level: Scaling group warning level. Valid values
|
|
693
|
-
<li>NORMAL:
|
|
694
|
-
<li>WARNING:
|
|
695
|
-
<li>CRITICAL:
|
|
696
|
+
:param _Level: Scaling group warning level. Valid values:
|
|
697
|
+
<li>NORMAL: normal.</li>
|
|
698
|
+
<li>WARNING: warning.</li>
|
|
699
|
+
<li>CRITICAL: critical.</li>
|
|
696
700
|
:type Level: str
|
|
697
701
|
:param _Advices: A collection of suggestions for scaling group configurations.
|
|
698
702
|
:type Advices: list of Advice
|
|
@@ -714,10 +718,10 @@ class AutoScalingAdvice(AbstractModel):
|
|
|
714
718
|
|
|
715
719
|
@property
|
|
716
720
|
def Level(self):
|
|
717
|
-
"""Scaling group warning level. Valid values
|
|
718
|
-
<li>NORMAL:
|
|
719
|
-
<li>WARNING:
|
|
720
|
-
<li>CRITICAL:
|
|
721
|
+
"""Scaling group warning level. Valid values:
|
|
722
|
+
<li>NORMAL: normal.</li>
|
|
723
|
+
<li>WARNING: warning.</li>
|
|
724
|
+
<li>CRITICAL: critical.</li>
|
|
721
725
|
:rtype: str
|
|
722
726
|
"""
|
|
723
727
|
return self._Level
|
|
@@ -768,17 +772,17 @@ class AutoScalingGroup(AbstractModel):
|
|
|
768
772
|
:type AutoScalingGroupId: str
|
|
769
773
|
:param _AutoScalingGroupName: Auto scaling group name
|
|
770
774
|
:type AutoScalingGroupName: str
|
|
771
|
-
:param _AutoScalingGroupStatus: Current scaling group
|
|
772
|
-
<li>NORMAL:
|
|
773
|
-
<li>CVM_ABNORMAL:
|
|
774
|
-
<li>LB_ABNORMAL:
|
|
775
|
-
<li>LB_LISTENER_ABNORMAL:
|
|
776
|
-
<li>LB_LOCATION_ABNORMAL:
|
|
777
|
-
<li>VPC_ABNORMAL: VPC
|
|
778
|
-
<li>SUBNET_ABNORMAL: VPC subnet
|
|
779
|
-
<li>INSUFFICIENT_BALANCE:
|
|
780
|
-
<li>LB_BACKEND_REGION_NOT_MATCH: The
|
|
781
|
-
<li>LB_BACKEND_VPC_NOT_MATCH: The
|
|
775
|
+
:param _AutoScalingGroupStatus: Current status of the scaling group. Valid values:
|
|
776
|
+
<li>NORMAL: The scaling group is normal.</li>
|
|
777
|
+
<li>CVM_ABNORMAL: The launch configuration is abnormal.</li>
|
|
778
|
+
<li>LB_ABNORMAL: The CLB is abnormal.</li>
|
|
779
|
+
<li>LB_LISTENER_ABNORMAL: The CLB listener is abnormal.</li>
|
|
780
|
+
<li>LB_LOCATION_ABNORMAL: The forwarding configuration of the CLB listener is abnormal.</li>
|
|
781
|
+
<li>VPC_ABNORMAL: The VPC is abnormal.</li>
|
|
782
|
+
<li>SUBNET_ABNORMAL: The VPC subnet is abnormal.</li>
|
|
783
|
+
<li>INSUFFICIENT_BALANCE: The balance is insufficient.</li>
|
|
784
|
+
<li>LB_BACKEND_REGION_NOT_MATCH: The region of the CLB instance backend does not match that of the AS service.</li>
|
|
785
|
+
<li>LB_BACKEND_VPC_NOT_MATCH: The VPC of the CLB instance does not match that of the scaling group.</li>
|
|
782
786
|
:type AutoScalingGroupStatus: str
|
|
783
787
|
:param _CreatedTime: Creation time in UTC format
|
|
784
788
|
:type CreatedTime: str
|
|
@@ -824,24 +828,26 @@ class AutoScalingGroup(AbstractModel):
|
|
|
824
828
|
:type ServiceSettings: :class:`tencentcloud.autoscaling.v20180419.models.ServiceSettings`
|
|
825
829
|
:param _Ipv6AddressCount: The number of IPv6 addresses that an instance has.
|
|
826
830
|
:type Ipv6AddressCount: int
|
|
827
|
-
:param _MultiZoneSubnetPolicy:
|
|
828
|
-
<
|
|
829
|
-
<
|
|
831
|
+
:param _MultiZoneSubnetPolicy: Multi-AZ/subnet policy.
|
|
832
|
+
<li>PRIORITY: The instances are attempted to be created taking the order of the AZ/subnet list as the priority. If the highest-priority AZ/subnet can create instances successfully, instances can always be created in that AZ/subnet.</li>
|
|
833
|
+
<li>EQUALITY: Select the AZ/subnet with the least number of instances for scale-out. In this way, each AZ/subnet has an opportunity for scale-out. Instances produced from multiple scale-out operations will be distributed to multiple AZs/subnets.</li>
|
|
830
834
|
:type MultiZoneSubnetPolicy: str
|
|
831
|
-
:param _HealthCheckType:
|
|
835
|
+
:param _HealthCheckType: Scaling group instance health check type, whose valid values include:
|
|
836
|
+
<li>CVM: Determine whether an instance is unhealthy based on its network status. An unhealthy network status is indicated by an event where instances become unreachable via PING. Detailed criteria of judgment can be found in [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1).</li>
|
|
837
|
+
<li>CLB: Determine whether an instance is unhealthy based on the health check status of CLB. For principles behind CLB health checks, see [Health Check](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).</li>
|
|
832
838
|
:type HealthCheckType: str
|
|
833
839
|
:param _LoadBalancerHealthCheckGracePeriod: Grace period of the CLB health check
|
|
834
840
|
:type LoadBalancerHealthCheckGracePeriod: int
|
|
835
|
-
:param _InstanceAllocationPolicy:
|
|
836
|
-
<
|
|
837
|
-
<
|
|
841
|
+
:param _InstanceAllocationPolicy: Instance assignment policy, whose valid values include LAUNCH_CONFIGURATION and SPOT_MIXED.
|
|
842
|
+
<li>LAUNCH_CONFIGURATION: Represent the traditional mode of assigning instances according to the launch configuration.</li>
|
|
843
|
+
<li>SPOT_MIXED: Represent the spot mixed mode. Currently, this mode is supported only when the launch configuration is set to the pay-as-you-go billing mode. In the mixed mode, the scaling group will scale out pay-as-you-go models or spot models based on the predefined settings. When the mixed mode is used, the billing type of the associated launch configuration cannot be modified.</li>
|
|
838
844
|
:type InstanceAllocationPolicy: str
|
|
839
845
|
:param _SpotMixedAllocationPolicy: Specifies how to assign pay-as-you-go instances and spot instances.
|
|
840
846
|
A valid value will be returned only when `InstanceAllocationPolicy` is set to `SPOT_MIXED`.
|
|
841
847
|
:type SpotMixedAllocationPolicy: :class:`tencentcloud.autoscaling.v20180419.models.SpotMixedAllocationPolicy`
|
|
842
|
-
:param _CapacityRebalance:
|
|
843
|
-
<
|
|
844
|
-
<
|
|
848
|
+
:param _CapacityRebalance: Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
|
|
849
|
+
<li>TRUE: Enable this feature. When spot instances in the scaling group are about to be automatically recycled by the spot instance service, AS proactively initiates the termination process of the spot instances. If there is a configured scale-in hook, it will be triggered before termination. After the termination process starts, AS asynchronously initiates the scale-out to reach the expected number of instances.</li>
|
|
850
|
+
<li>FALSE: Disable this feature. AS waits for the spot instance to be terminated before scaling out to reach the number of instances expected by the scaling group.</li>
|
|
845
851
|
:type CapacityRebalance: bool
|
|
846
852
|
:param _InstanceNameIndexSettings: Instance name sequencing settings.
|
|
847
853
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -904,17 +910,17 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
904
910
|
|
|
905
911
|
@property
|
|
906
912
|
def AutoScalingGroupStatus(self):
|
|
907
|
-
"""Current scaling group
|
|
908
|
-
<li>NORMAL:
|
|
909
|
-
<li>CVM_ABNORMAL:
|
|
910
|
-
<li>LB_ABNORMAL:
|
|
911
|
-
<li>LB_LISTENER_ABNORMAL:
|
|
912
|
-
<li>LB_LOCATION_ABNORMAL:
|
|
913
|
-
<li>VPC_ABNORMAL: VPC
|
|
914
|
-
<li>SUBNET_ABNORMAL: VPC subnet
|
|
915
|
-
<li>INSUFFICIENT_BALANCE:
|
|
916
|
-
<li>LB_BACKEND_REGION_NOT_MATCH: The
|
|
917
|
-
<li>LB_BACKEND_VPC_NOT_MATCH: The
|
|
913
|
+
"""Current status of the scaling group. Valid values:
|
|
914
|
+
<li>NORMAL: The scaling group is normal.</li>
|
|
915
|
+
<li>CVM_ABNORMAL: The launch configuration is abnormal.</li>
|
|
916
|
+
<li>LB_ABNORMAL: The CLB is abnormal.</li>
|
|
917
|
+
<li>LB_LISTENER_ABNORMAL: The CLB listener is abnormal.</li>
|
|
918
|
+
<li>LB_LOCATION_ABNORMAL: The forwarding configuration of the CLB listener is abnormal.</li>
|
|
919
|
+
<li>VPC_ABNORMAL: The VPC is abnormal.</li>
|
|
920
|
+
<li>SUBNET_ABNORMAL: The VPC subnet is abnormal.</li>
|
|
921
|
+
<li>INSUFFICIENT_BALANCE: The balance is insufficient.</li>
|
|
922
|
+
<li>LB_BACKEND_REGION_NOT_MATCH: The region of the CLB instance backend does not match that of the AS service.</li>
|
|
923
|
+
<li>LB_BACKEND_VPC_NOT_MATCH: The VPC of the CLB instance does not match that of the scaling group.</li>
|
|
918
924
|
:rtype: str
|
|
919
925
|
"""
|
|
920
926
|
return self._AutoScalingGroupStatus
|
|
@@ -1167,9 +1173,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1167
1173
|
|
|
1168
1174
|
@property
|
|
1169
1175
|
def MultiZoneSubnetPolicy(self):
|
|
1170
|
-
"""
|
|
1171
|
-
<
|
|
1172
|
-
<
|
|
1176
|
+
"""Multi-AZ/subnet policy.
|
|
1177
|
+
<li>PRIORITY: The instances are attempted to be created taking the order of the AZ/subnet list as the priority. If the highest-priority AZ/subnet can create instances successfully, instances can always be created in that AZ/subnet.</li>
|
|
1178
|
+
<li>EQUALITY: Select the AZ/subnet with the least number of instances for scale-out. In this way, each AZ/subnet has an opportunity for scale-out. Instances produced from multiple scale-out operations will be distributed to multiple AZs/subnets.</li>
|
|
1173
1179
|
:rtype: str
|
|
1174
1180
|
"""
|
|
1175
1181
|
return self._MultiZoneSubnetPolicy
|
|
@@ -1180,7 +1186,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1180
1186
|
|
|
1181
1187
|
@property
|
|
1182
1188
|
def HealthCheckType(self):
|
|
1183
|
-
"""
|
|
1189
|
+
"""Scaling group instance health check type, whose valid values include:
|
|
1190
|
+
<li>CVM: Determine whether an instance is unhealthy based on its network status. An unhealthy network status is indicated by an event where instances become unreachable via PING. Detailed criteria of judgment can be found in [Instance Health Check](https://intl.cloud.tencent.com/document/product/377/8553?from_cn_redirect=1).</li>
|
|
1191
|
+
<li>CLB: Determine whether an instance is unhealthy based on the health check status of CLB. For principles behind CLB health checks, see [Health Check](https://intl.cloud.tencent.com/document/product/214/6097?from_cn_redirect=1).</li>
|
|
1184
1192
|
:rtype: str
|
|
1185
1193
|
"""
|
|
1186
1194
|
return self._HealthCheckType
|
|
@@ -1202,9 +1210,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1202
1210
|
|
|
1203
1211
|
@property
|
|
1204
1212
|
def InstanceAllocationPolicy(self):
|
|
1205
|
-
"""
|
|
1206
|
-
<
|
|
1207
|
-
<
|
|
1213
|
+
"""Instance assignment policy, whose valid values include LAUNCH_CONFIGURATION and SPOT_MIXED.
|
|
1214
|
+
<li>LAUNCH_CONFIGURATION: Represent the traditional mode of assigning instances according to the launch configuration.</li>
|
|
1215
|
+
<li>SPOT_MIXED: Represent the spot mixed mode. Currently, this mode is supported only when the launch configuration is set to the pay-as-you-go billing mode. In the mixed mode, the scaling group will scale out pay-as-you-go models or spot models based on the predefined settings. When the mixed mode is used, the billing type of the associated launch configuration cannot be modified.</li>
|
|
1208
1216
|
:rtype: str
|
|
1209
1217
|
"""
|
|
1210
1218
|
return self._InstanceAllocationPolicy
|
|
@@ -1227,9 +1235,9 @@ A valid value will be returned only when `InstanceAllocationPolicy` is set to `S
|
|
|
1227
1235
|
|
|
1228
1236
|
@property
|
|
1229
1237
|
def CapacityRebalance(self):
|
|
1230
|
-
"""
|
|
1231
|
-
<
|
|
1232
|
-
<
|
|
1238
|
+
"""Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
|
|
1239
|
+
<li>TRUE: Enable this feature. When spot instances in the scaling group are about to be automatically recycled by the spot instance service, AS proactively initiates the termination process of the spot instances. If there is a configured scale-in hook, it will be triggered before termination. After the termination process starts, AS asynchronously initiates the scale-out to reach the expected number of instances.</li>
|
|
1240
|
+
<li>FALSE: Disable this feature. AS waits for the spot instance to be terminated before scaling out to reach the number of instances expected by the scaling group.</li>
|
|
1233
1241
|
:rtype: bool
|
|
1234
1242
|
"""
|
|
1235
1243
|
return self._CapacityRebalance
|
|
@@ -2007,23 +2015,23 @@ class CreateAutoScalingGroupRequest(AbstractModel):
|
|
|
2007
2015
|
:type ForwardLoadBalancers: list of ForwardLoadBalancer
|
|
2008
2016
|
:param _SubnetIds: List of subnet IDs. A subnet must be specified in the VPC scenario. If multiple subnets are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created.
|
|
2009
2017
|
:type SubnetIds: list of str
|
|
2010
|
-
:param _TerminationPolicies: Termination policy
|
|
2011
|
-
<
|
|
2012
|
-
<
|
|
2018
|
+
:param _TerminationPolicies: Termination policy, whose maximum length is currently 1. Valid values: OLDEST_INSTANCE and NEWEST_INSTANCE. Default value: OLDEST_INSTANCE.
|
|
2019
|
+
<li>OLDEST_INSTANCE: Terminate the oldest instance in the scaling group first.</li>
|
|
2020
|
+
<li>NEWEST_INSTANCE: Terminate the newest instance in the scaling group first.</li>
|
|
2013
2021
|
:type TerminationPolicies: list of str
|
|
2014
2022
|
:param _Zones: List of availability zones. An availability zone must be specified in the basic network scenario. If multiple availability zones are entered, their priority will be determined by the order in which they are entered, and they will be tried one by one until instances can be successfully created.
|
|
2015
2023
|
:type Zones: list of str
|
|
2016
|
-
:param _RetryPolicy: Retry policy. Valid values:
|
|
2017
|
-
<
|
|
2018
|
-
<
|
|
2019
|
-
<
|
|
2024
|
+
:param _RetryPolicy: Retry policy. Valid values: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. A partially successful scaling activity is considered a failed activity.
|
|
2025
|
+
<li>IMMEDIATE_RETRY: Immediately retry or quickly retry in a short period. There will be no retry anymore after a certain number of consecutive failures (5).</li>
|
|
2026
|
+
<li>INCREMENTAL_INTERVALS: Retry at an incremental interval. As the number of continuous failures increase, the retry interval gradually increases. The interval for the first 10 retries is the same as the immediate retry mode, and that for the subsequent retries gradually increases to 10 minutes, 30 minutes, 60 minutes, or 1 day.</li>
|
|
2027
|
+
<li>NO_RETRY: There will be no retry until another user call or alarm information is received.</li>
|
|
2020
2028
|
:type RetryPolicy: str
|
|
2021
|
-
:param _ZonesCheckPolicy:
|
|
2022
|
-
<
|
|
2023
|
-
<
|
|
2029
|
+
:param _ZonesCheckPolicy: AZ verification policy. Valid values: ALL and ANY. Default value: ANY.
|
|
2030
|
+
<li>ALL: Verification passes if all AZs or subnets are available; otherwise, a verification error will be reported.<li>
|
|
2031
|
+
<li>ANY: Verification passes if any AZ or subnet is available; otherwise, a verification error will be reported.</li>
|
|
2024
2032
|
|
|
2025
|
-
Common reasons
|
|
2026
|
-
If
|
|
2033
|
+
Common reasons for unavailable AZs or subnets include the CVM InstanceType in the AZ being sold out, the CBS cloud disk in the AZ being sold out, insufficient quota in the AZ, and insufficient IP addresses in the subnet.
|
|
2034
|
+
If there is no AZ or subnet in Zones/SubnetIds, a verification error will be reported regardless of the values of ZonesCheckPolicy.
|
|
2027
2035
|
:type ZonesCheckPolicy: str
|
|
2028
2036
|
:param _Tags: List of tag descriptions. In this parameter, you can specify the tags to be bound with a scaling group as well as corresponding resource instances. Each scaling group can have up to 30 tags.
|
|
2029
2037
|
:type Tags: list of Tag
|
|
@@ -2031,31 +2039,34 @@ If an availability zone or subnet in Zones/SubnetIds does not exist, a verificat
|
|
|
2031
2039
|
:type ServiceSettings: :class:`tencentcloud.autoscaling.v20180419.models.ServiceSettings`
|
|
2032
2040
|
:param _Ipv6AddressCount: The number of IPv6 addresses that an instance has. Valid values: 0 and 1. Default value: 0.
|
|
2033
2041
|
:type Ipv6AddressCount: int
|
|
2034
|
-
:param _MultiZoneSubnetPolicy: Multi-
|
|
2035
|
-
<
|
|
2036
|
-
<
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
<
|
|
2040
|
-
<
|
|
2041
|
-
<
|
|
2042
|
+
:param _MultiZoneSubnetPolicy: Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
|
|
2043
|
+
<li>PRIORITY: The instances are attempted to be created taking the order of the AZ/subnet list as the priority. If instances can be successfully created in the highest-priority AZ/subnet, they will always be created in that AZ/subnet.</li>
|
|
2044
|
+
<li>EQUALITY: The instances added through scale-out will be distributed across multiple AZs/subnets to ensure a relatively balanced number of instances in each AZ/subnet after scaling out.</li>
|
|
2045
|
+
|
|
2046
|
+
Points to consider regarding this policy:
|
|
2047
|
+
<li>When the scaling group is based on a classic network, this policy applies to the multi-AZ; when the scaling group is based on a VPC network, this policy applies to the multi-subnet, in this case, the AZs are no longer considered. For example, if there are four subnets labeled A, B, C, and D, where A, B, and C are in AZ 1 and D is in AZ 2, the subnets A, B, C, and D are considered for sorting without regard to AZs 1 and 2.</li>
|
|
2048
|
+
<li>This policy applies to the multi-AZ/multi-subnet and not to the InstanceTypes parameter of the launch configuration, which is selected according to the priority policy.</li>
|
|
2049
|
+
<li>When instances are created according to the PRIORITY policy, ensure the policy for multiple models first, followed by the policy for the multi-AZ/subnet. For example, with models A and B and subnets 1, 2, and 3, attempts will be made in the order of A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 will be attempted (instead of B1).</li>
|
|
2042
2050
|
:type MultiZoneSubnetPolicy: str
|
|
2043
|
-
:param _HealthCheckType: Health check type
|
|
2051
|
+
:param _HealthCheckType: Health check type for scaling group instances. Valid values:
|
|
2052
|
+
<li>CVM: Determine whether an instance is unhealthy based on its network status. An unhealthy network status is indicated by an event where instances become unreachable via PING. For detailed criteria of judgment, see [Instance Health Check](https://www.tencentcloud.com/document/product/377/8553?lang=en&pg=).</li>
|
|
2053
|
+
<li>CLB: Determine whether an instance is unhealthy based on the health check status of CLB. For principles behind CLB health checks, see [Health Check Overview](https://www.tencentcloud.com/document/product/214/6097?from_search=1&lang=en&pg=).</li>
|
|
2054
|
+
If CLB is selected, the scaling group will check both the instance's network status and the CLB's health check status. If the instance's network status is unhealthy, the instance will be marked as UNHEALTHY. If the CLB's health check status is abnormal, the instance will be marked as CLB_UNHEALTHY. If both of them are abnormal, the instance will be marked as UNHEALTHY|CLB_UNHEALTHY. Default value: CLB.
|
|
2044
2055
|
:type HealthCheckType: str
|
|
2045
2056
|
:param _LoadBalancerHealthCheckGracePeriod: Grace period of the CLB health check during which the `IN_SERVICE` instances added will not be marked as `CLB_UNHEALTHY`.<br>Valid range: 0-7200, in seconds. Default value: `0`.
|
|
2046
2057
|
:type LoadBalancerHealthCheckGracePeriod: int
|
|
2047
|
-
:param _InstanceAllocationPolicy:
|
|
2048
|
-
<
|
|
2049
|
-
<
|
|
2058
|
+
:param _InstanceAllocationPolicy: Instance assignment policy. Valid values: LAUNCH_CONFIGURATION and SPOT_MIXED. Default value: LAUNCH_CONFIGURATION.
|
|
2059
|
+
<li>LAUNCH_CONFIGURATION: Represent the traditional mode of assigning instances according to the launch configuration.</li>
|
|
2060
|
+
<li>SPOT_MIXED: Represent the spot mixed mode. Currently, this mode is supported only when the launch configuration is set to the pay-as-you-go billing mode. In the mixed mode, the scaling group will scale out pay-as-you-go models or spot models based on the predefined settings. When the mixed mode is used, the billing type of the associated launch configuration cannot be modified.</li>
|
|
2050
2061
|
:type InstanceAllocationPolicy: str
|
|
2051
2062
|
:param _SpotMixedAllocationPolicy: Specifies how to assign pay-as-you-go instances and spot instances.
|
|
2052
2063
|
This parameter is valid only when `InstanceAllocationPolicy ` is set to `SPOT_MIXED`.
|
|
2053
2064
|
:type SpotMixedAllocationPolicy: :class:`tencentcloud.autoscaling.v20180419.models.SpotMixedAllocationPolicy`
|
|
2054
|
-
:param _CapacityRebalance:
|
|
2055
|
-
<
|
|
2056
|
-
<
|
|
2065
|
+
:param _CapacityRebalance: Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
|
|
2066
|
+
<li>TRUE: Enable this feature. When spot instances in the scaling group are about to be automatically recycled by the spot instance service, AS proactively initiates the termination process of the spot instances. If there is a configured scale-in hook, it will be triggered before termination. After the termination process starts, AS asynchronously initiates the scale-out to reach the expected number of instances.</li>
|
|
2067
|
+
<li>FALSE: Disable this feature. AS waits for the spot instance to be terminated before scaling out to reach the number of instances expected by the scaling group.</li>
|
|
2057
2068
|
|
|
2058
|
-
Default value:
|
|
2069
|
+
Default value: FALSE.
|
|
2059
2070
|
:type CapacityRebalance: bool
|
|
2060
2071
|
:param _InstanceNameIndexSettings: Instance name sequencing settings. If this parameter is not specified, the default is not enabled. When enabled, an incremental numeric sequence will be appended to the names of instances automatically created within the scaling group.
|
|
2061
2072
|
:type InstanceNameIndexSettings: :class:`tencentcloud.autoscaling.v20180419.models.InstanceNameIndexSettings`
|
|
@@ -2209,9 +2220,9 @@ Default value: `False`.
|
|
|
2209
2220
|
|
|
2210
2221
|
@property
|
|
2211
2222
|
def TerminationPolicies(self):
|
|
2212
|
-
"""Termination policy
|
|
2213
|
-
<
|
|
2214
|
-
<
|
|
2223
|
+
"""Termination policy, whose maximum length is currently 1. Valid values: OLDEST_INSTANCE and NEWEST_INSTANCE. Default value: OLDEST_INSTANCE.
|
|
2224
|
+
<li>OLDEST_INSTANCE: Terminate the oldest instance in the scaling group first.</li>
|
|
2225
|
+
<li>NEWEST_INSTANCE: Terminate the newest instance in the scaling group first.</li>
|
|
2215
2226
|
:rtype: list of str
|
|
2216
2227
|
"""
|
|
2217
2228
|
return self._TerminationPolicies
|
|
@@ -2233,10 +2244,10 @@ Default value: `False`.
|
|
|
2233
2244
|
|
|
2234
2245
|
@property
|
|
2235
2246
|
def RetryPolicy(self):
|
|
2236
|
-
"""Retry policy. Valid values:
|
|
2237
|
-
<
|
|
2238
|
-
<
|
|
2239
|
-
<
|
|
2247
|
+
"""Retry policy. Valid values: IMMEDIATE_RETRY, INCREMENTAL_INTERVALS, and NO_RETRY. Default value: IMMEDIATE_RETRY. A partially successful scaling activity is considered a failed activity.
|
|
2248
|
+
<li>IMMEDIATE_RETRY: Immediately retry or quickly retry in a short period. There will be no retry anymore after a certain number of consecutive failures (5).</li>
|
|
2249
|
+
<li>INCREMENTAL_INTERVALS: Retry at an incremental interval. As the number of continuous failures increase, the retry interval gradually increases. The interval for the first 10 retries is the same as the immediate retry mode, and that for the subsequent retries gradually increases to 10 minutes, 30 minutes, 60 minutes, or 1 day.</li>
|
|
2250
|
+
<li>NO_RETRY: There will be no retry until another user call or alarm information is received.</li>
|
|
2240
2251
|
:rtype: str
|
|
2241
2252
|
"""
|
|
2242
2253
|
return self._RetryPolicy
|
|
@@ -2247,12 +2258,12 @@ Default value: `False`.
|
|
|
2247
2258
|
|
|
2248
2259
|
@property
|
|
2249
2260
|
def ZonesCheckPolicy(self):
|
|
2250
|
-
"""
|
|
2251
|
-
<
|
|
2252
|
-
<
|
|
2261
|
+
"""AZ verification policy. Valid values: ALL and ANY. Default value: ANY.
|
|
2262
|
+
<li>ALL: Verification passes if all AZs or subnets are available; otherwise, a verification error will be reported.<li>
|
|
2263
|
+
<li>ANY: Verification passes if any AZ or subnet is available; otherwise, a verification error will be reported.</li>
|
|
2253
2264
|
|
|
2254
|
-
Common reasons
|
|
2255
|
-
If
|
|
2265
|
+
Common reasons for unavailable AZs or subnets include the CVM InstanceType in the AZ being sold out, the CBS cloud disk in the AZ being sold out, insufficient quota in the AZ, and insufficient IP addresses in the subnet.
|
|
2266
|
+
If there is no AZ or subnet in Zones/SubnetIds, a verification error will be reported regardless of the values of ZonesCheckPolicy.
|
|
2256
2267
|
:rtype: str
|
|
2257
2268
|
"""
|
|
2258
2269
|
return self._ZonesCheckPolicy
|
|
@@ -2296,14 +2307,14 @@ If an availability zone or subnet in Zones/SubnetIds does not exist, a verificat
|
|
|
2296
2307
|
|
|
2297
2308
|
@property
|
|
2298
2309
|
def MultiZoneSubnetPolicy(self):
|
|
2299
|
-
"""Multi-
|
|
2300
|
-
<
|
|
2301
|
-
<
|
|
2310
|
+
"""Multi-AZ/multi-subnet policy, whose valid values include PRIORITY and EQUALITY, with the default value being PRIORITY.
|
|
2311
|
+
<li>PRIORITY: The instances are attempted to be created taking the order of the AZ/subnet list as the priority. If instances can be successfully created in the highest-priority AZ/subnet, they will always be created in that AZ/subnet.</li>
|
|
2312
|
+
<li>EQUALITY: The instances added through scale-out will be distributed across multiple AZs/subnets to ensure a relatively balanced number of instances in each AZ/subnet after scaling out.</li>
|
|
2302
2313
|
|
|
2303
|
-
|
|
2304
|
-
<
|
|
2305
|
-
<
|
|
2306
|
-
<
|
|
2314
|
+
Points to consider regarding this policy:
|
|
2315
|
+
<li>When the scaling group is based on a classic network, this policy applies to the multi-AZ; when the scaling group is based on a VPC network, this policy applies to the multi-subnet, in this case, the AZs are no longer considered. For example, if there are four subnets labeled A, B, C, and D, where A, B, and C are in AZ 1 and D is in AZ 2, the subnets A, B, C, and D are considered for sorting without regard to AZs 1 and 2.</li>
|
|
2316
|
+
<li>This policy applies to the multi-AZ/multi-subnet and not to the InstanceTypes parameter of the launch configuration, which is selected according to the priority policy.</li>
|
|
2317
|
+
<li>When instances are created according to the PRIORITY policy, ensure the policy for multiple models first, followed by the policy for the multi-AZ/subnet. For example, with models A and B and subnets 1, 2, and 3, attempts will be made in the order of A1, A2, A3, B1, B2, and B3. If A1 is sold out, A2 will be attempted (instead of B1).</li>
|
|
2307
2318
|
:rtype: str
|
|
2308
2319
|
"""
|
|
2309
2320
|
return self._MultiZoneSubnetPolicy
|
|
@@ -2314,7 +2325,10 @@ Notes:
|
|
|
2314
2325
|
|
|
2315
2326
|
@property
|
|
2316
2327
|
def HealthCheckType(self):
|
|
2317
|
-
"""Health check type
|
|
2328
|
+
"""Health check type for scaling group instances. Valid values:
|
|
2329
|
+
<li>CVM: Determine whether an instance is unhealthy based on its network status. An unhealthy network status is indicated by an event where instances become unreachable via PING. For detailed criteria of judgment, see [Instance Health Check](https://www.tencentcloud.com/document/product/377/8553?lang=en&pg=).</li>
|
|
2330
|
+
<li>CLB: Determine whether an instance is unhealthy based on the health check status of CLB. For principles behind CLB health checks, see [Health Check Overview](https://www.tencentcloud.com/document/product/214/6097?from_search=1&lang=en&pg=).</li>
|
|
2331
|
+
If CLB is selected, the scaling group will check both the instance's network status and the CLB's health check status. If the instance's network status is unhealthy, the instance will be marked as UNHEALTHY. If the CLB's health check status is abnormal, the instance will be marked as CLB_UNHEALTHY. If both of them are abnormal, the instance will be marked as UNHEALTHY|CLB_UNHEALTHY. Default value: CLB.
|
|
2318
2332
|
:rtype: str
|
|
2319
2333
|
"""
|
|
2320
2334
|
return self._HealthCheckType
|
|
@@ -2336,9 +2350,9 @@ Notes:
|
|
|
2336
2350
|
|
|
2337
2351
|
@property
|
|
2338
2352
|
def InstanceAllocationPolicy(self):
|
|
2339
|
-
"""
|
|
2340
|
-
<
|
|
2341
|
-
<
|
|
2353
|
+
"""Instance assignment policy. Valid values: LAUNCH_CONFIGURATION and SPOT_MIXED. Default value: LAUNCH_CONFIGURATION.
|
|
2354
|
+
<li>LAUNCH_CONFIGURATION: Represent the traditional mode of assigning instances according to the launch configuration.</li>
|
|
2355
|
+
<li>SPOT_MIXED: Represent the spot mixed mode. Currently, this mode is supported only when the launch configuration is set to the pay-as-you-go billing mode. In the mixed mode, the scaling group will scale out pay-as-you-go models or spot models based on the predefined settings. When the mixed mode is used, the billing type of the associated launch configuration cannot be modified.</li>
|
|
2342
2356
|
:rtype: str
|
|
2343
2357
|
"""
|
|
2344
2358
|
return self._InstanceAllocationPolicy
|
|
@@ -2361,11 +2375,11 @@ This parameter is valid only when `InstanceAllocationPolicy ` is set to `SPOT_MI
|
|
|
2361
2375
|
|
|
2362
2376
|
@property
|
|
2363
2377
|
def CapacityRebalance(self):
|
|
2364
|
-
"""
|
|
2365
|
-
<
|
|
2366
|
-
<
|
|
2378
|
+
"""Capacity rebalancing feature, which is applicable only to spot instances within the scaling group. Valid values:
|
|
2379
|
+
<li>TRUE: Enable this feature. When spot instances in the scaling group are about to be automatically recycled by the spot instance service, AS proactively initiates the termination process of the spot instances. If there is a configured scale-in hook, it will be triggered before termination. After the termination process starts, AS asynchronously initiates the scale-out to reach the expected number of instances.</li>
|
|
2380
|
+
<li>FALSE: Disable this feature. AS waits for the spot instance to be terminated before scaling out to reach the number of instances expected by the scaling group.</li>
|
|
2367
2381
|
|
|
2368
|
-
Default value:
|
|
2382
|
+
Default value: FALSE.
|
|
2369
2383
|
:rtype: bool
|
|
2370
2384
|
"""
|
|
2371
2385
|
return self._CapacityRebalance
|
|
@@ -2554,6 +2568,8 @@ Note: This field is default to empty
|
|
|
2554
2568
|
:type DisasterRecoverGroupIds: list of str
|
|
2555
2569
|
:param _ImageFamily: Image family name. Either image ID or image family name should be filled in, and only one of which can be filled.
|
|
2556
2570
|
:type ImageFamily: str
|
|
2571
|
+
:param _DedicatedClusterId: CDC ID.
|
|
2572
|
+
:type DedicatedClusterId: str
|
|
2557
2573
|
"""
|
|
2558
2574
|
self._LaunchConfigurationName = None
|
|
2559
2575
|
self._ImageId = None
|
|
@@ -2581,6 +2597,7 @@ Note: This field is default to empty
|
|
|
2581
2597
|
self._IPv6InternetAccessible = None
|
|
2582
2598
|
self._DisasterRecoverGroupIds = None
|
|
2583
2599
|
self._ImageFamily = None
|
|
2600
|
+
self._DedicatedClusterId = None
|
|
2584
2601
|
|
|
2585
2602
|
@property
|
|
2586
2603
|
def LaunchConfigurationName(self):
|
|
@@ -2882,6 +2899,17 @@ Note: This field is default to empty
|
|
|
2882
2899
|
def ImageFamily(self, ImageFamily):
|
|
2883
2900
|
self._ImageFamily = ImageFamily
|
|
2884
2901
|
|
|
2902
|
+
@property
|
|
2903
|
+
def DedicatedClusterId(self):
|
|
2904
|
+
"""CDC ID.
|
|
2905
|
+
:rtype: str
|
|
2906
|
+
"""
|
|
2907
|
+
return self._DedicatedClusterId
|
|
2908
|
+
|
|
2909
|
+
@DedicatedClusterId.setter
|
|
2910
|
+
def DedicatedClusterId(self, DedicatedClusterId):
|
|
2911
|
+
self._DedicatedClusterId = DedicatedClusterId
|
|
2912
|
+
|
|
2885
2913
|
|
|
2886
2914
|
def _deserialize(self, params):
|
|
2887
2915
|
self._LaunchConfigurationName = params.get("LaunchConfigurationName")
|
|
@@ -2943,6 +2971,7 @@ Note: This field is default to empty
|
|
|
2943
2971
|
self._IPv6InternetAccessible._deserialize(params.get("IPv6InternetAccessible"))
|
|
2944
2972
|
self._DisasterRecoverGroupIds = params.get("DisasterRecoverGroupIds")
|
|
2945
2973
|
self._ImageFamily = params.get("ImageFamily")
|
|
2974
|
+
self._DedicatedClusterId = params.get("DedicatedClusterId")
|
|
2946
2975
|
memeber_set = set(params.keys())
|
|
2947
2976
|
for name, value in vars(self).items():
|
|
2948
2977
|
property_name = name[1:]
|
|
@@ -3394,19 +3423,34 @@ class CreateScalingPolicyRequest(AbstractModel):
|
|
|
3394
3423
|
:type ScalingPolicyType: str
|
|
3395
3424
|
:param _AdjustmentType: The method to adjust the desired capacity after the alarm is triggered. It’s only available when `ScalingPolicyType` is `Simple`. Valid values: <br><li>`CHANGE_IN_CAPACITY`: Increase or decrease the desired capacity </li><li>`EXACT_CAPACITY`: Adjust to the specified desired capacity </li> <li>`PERCENT_CHANGE_IN_CAPACITY`: Adjust the desired capacity by percentage </li>
|
|
3396
3425
|
:type AdjustmentType: str
|
|
3397
|
-
:param _AdjustmentValue:
|
|
3426
|
+
:param _AdjustmentValue: Adjustment value for the expected number of instances after an alarm is triggered, which is applicable only to simple policies.
|
|
3427
|
+
<li>When AdjustmentType is set to CHANGE_IN_CAPACITY, a positive value of AdjustmentValue indicates an increase in the number of instances after the alarm is triggered, while a negative value indicates a decrease in the number of instances after the alarm is triggered.</li>
|
|
3428
|
+
<li>When AdjustmentType is set to EXACT_CAPACITY, the value of AdjustmentValue indicates the new desired number of instances after the alarm is triggered. It should be greater than or equal to 0.</li>
|
|
3429
|
+
<li>When AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, a positive value of AdjustmentValue indicates an increase in the number of instances by a percentage after the alarm is triggered, while a negative value indicates a decrease in the number of instances by a percentage after the alarm is triggered. Unit: %.</li>
|
|
3398
3430
|
:type AdjustmentValue: int
|
|
3399
3431
|
:param _Cooldown: Cooldown period (in seconds). This parameter is only applicable to a simple policy. Default value: 300.
|
|
3400
3432
|
:type Cooldown: int
|
|
3401
3433
|
:param _MetricAlarm: Alarm monitoring metric. It’s only available when `ScalingPolicyType` is `Simple`.
|
|
3402
3434
|
:type MetricAlarm: :class:`tencentcloud.autoscaling.v20180419.models.MetricAlarm`
|
|
3403
|
-
:param _PredefinedMetricType:
|
|
3435
|
+
:param _PredefinedMetricType: Predefined monitoring item, which is applicable only to target tracking policies. Valid values:
|
|
3436
|
+
<li>ASG_AVG_CPU_UTILIZATION: average CPU utilization.</li>
|
|
3437
|
+
<li>ASG_AVG_LAN_TRAFFIC_OUT: average outbound private network bandwidth.</li>
|
|
3438
|
+
<li>ASG_AVG_LAN_TRAFFIC_IN: average inbound private network bandwidth.</li>
|
|
3439
|
+
<li>ASG_AVG_WAN_TRAFFIC_OUT: average outbound public network bandwidth.</li>
|
|
3440
|
+
<li>ASG_AVG_WAN_TRAFFIC_IN: average inbound public network bandwidth.</li>
|
|
3404
3441
|
:type PredefinedMetricType: str
|
|
3405
|
-
:param _TargetValue: Target value
|
|
3442
|
+
:param _TargetValue: Target value, which is applicable only to target tracking policies.
|
|
3443
|
+
<li>ASG_AVG_CPU_UTILIZATION: value range: [1, 100); unit: %.</li>
|
|
3444
|
+
<li>ASG_AVG_LAN_TRAFFIC_OUT: value range: > 0; unit: Mbps.</li>
|
|
3445
|
+
<li>ASG_AVG_LAN_TRAFFIC_IN: value range: > 0; unit: Mbps.</li>
|
|
3446
|
+
<li>ASG_AVG_WAN_TRAFFIC_OUT: value range: > 0; unit: Mbps.</li>
|
|
3447
|
+
<li>ASG_AVG_WAN_TRAFFIC_IN: value range: > 0; unit: Mbps.</li>
|
|
3406
3448
|
:type TargetValue: int
|
|
3407
3449
|
:param _EstimatedInstanceWarmup: Instance warm-up period (in seconds). It’s only available when `ScalingPolicyType` is `TARGET_TRACKING`. Value range: 0-3600. Default value: 300.
|
|
3408
3450
|
:type EstimatedInstanceWarmup: int
|
|
3409
|
-
:param _DisableScaleIn: Whether to disable scale-in
|
|
3451
|
+
:param _DisableScaleIn: Whether to disable scale-in, which is applicable only to target tracking policies. Default value: false. Valid values:
|
|
3452
|
+
<li>true: Target tracking policies trigger only scale-out.</li>
|
|
3453
|
+
<li>false: Target tracking policies trigger both scale-out and scale-in.</li>
|
|
3410
3454
|
:type DisableScaleIn: bool
|
|
3411
3455
|
:param _NotificationUserGroupIds: This parameter is diused. Please use [CreateNotificationConfiguration](https://intl.cloud.tencent.com/document/api/377/33185?from_cn_redirect=1) instead.
|
|
3412
3456
|
Notification group ID, which is the set of user group IDs.
|
|
@@ -3471,7 +3515,10 @@ Notification group ID, which is the set of user group IDs.
|
|
|
3471
3515
|
|
|
3472
3516
|
@property
|
|
3473
3517
|
def AdjustmentValue(self):
|
|
3474
|
-
"""
|
|
3518
|
+
"""Adjustment value for the expected number of instances after an alarm is triggered, which is applicable only to simple policies.
|
|
3519
|
+
<li>When AdjustmentType is set to CHANGE_IN_CAPACITY, a positive value of AdjustmentValue indicates an increase in the number of instances after the alarm is triggered, while a negative value indicates a decrease in the number of instances after the alarm is triggered.</li>
|
|
3520
|
+
<li>When AdjustmentType is set to EXACT_CAPACITY, the value of AdjustmentValue indicates the new desired number of instances after the alarm is triggered. It should be greater than or equal to 0.</li>
|
|
3521
|
+
<li>When AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, a positive value of AdjustmentValue indicates an increase in the number of instances by a percentage after the alarm is triggered, while a negative value indicates a decrease in the number of instances by a percentage after the alarm is triggered. Unit: %.</li>
|
|
3475
3522
|
:rtype: int
|
|
3476
3523
|
"""
|
|
3477
3524
|
return self._AdjustmentValue
|
|
@@ -3504,7 +3551,12 @@ Notification group ID, which is the set of user group IDs.
|
|
|
3504
3551
|
|
|
3505
3552
|
@property
|
|
3506
3553
|
def PredefinedMetricType(self):
|
|
3507
|
-
"""
|
|
3554
|
+
"""Predefined monitoring item, which is applicable only to target tracking policies. Valid values:
|
|
3555
|
+
<li>ASG_AVG_CPU_UTILIZATION: average CPU utilization.</li>
|
|
3556
|
+
<li>ASG_AVG_LAN_TRAFFIC_OUT: average outbound private network bandwidth.</li>
|
|
3557
|
+
<li>ASG_AVG_LAN_TRAFFIC_IN: average inbound private network bandwidth.</li>
|
|
3558
|
+
<li>ASG_AVG_WAN_TRAFFIC_OUT: average outbound public network bandwidth.</li>
|
|
3559
|
+
<li>ASG_AVG_WAN_TRAFFIC_IN: average inbound public network bandwidth.</li>
|
|
3508
3560
|
:rtype: str
|
|
3509
3561
|
"""
|
|
3510
3562
|
return self._PredefinedMetricType
|
|
@@ -3515,7 +3567,12 @@ Notification group ID, which is the set of user group IDs.
|
|
|
3515
3567
|
|
|
3516
3568
|
@property
|
|
3517
3569
|
def TargetValue(self):
|
|
3518
|
-
"""Target value
|
|
3570
|
+
"""Target value, which is applicable only to target tracking policies.
|
|
3571
|
+
<li>ASG_AVG_CPU_UTILIZATION: value range: [1, 100); unit: %.</li>
|
|
3572
|
+
<li>ASG_AVG_LAN_TRAFFIC_OUT: value range: > 0; unit: Mbps.</li>
|
|
3573
|
+
<li>ASG_AVG_LAN_TRAFFIC_IN: value range: > 0; unit: Mbps.</li>
|
|
3574
|
+
<li>ASG_AVG_WAN_TRAFFIC_OUT: value range: > 0; unit: Mbps.</li>
|
|
3575
|
+
<li>ASG_AVG_WAN_TRAFFIC_IN: value range: > 0; unit: Mbps.</li>
|
|
3519
3576
|
:rtype: int
|
|
3520
3577
|
"""
|
|
3521
3578
|
return self._TargetValue
|
|
@@ -3537,7 +3594,9 @@ Notification group ID, which is the set of user group IDs.
|
|
|
3537
3594
|
|
|
3538
3595
|
@property
|
|
3539
3596
|
def DisableScaleIn(self):
|
|
3540
|
-
"""Whether to disable scale-in
|
|
3597
|
+
"""Whether to disable scale-in, which is applicable only to target tracking policies. Default value: false. Valid values:
|
|
3598
|
+
<li>true: Target tracking policies trigger only scale-out.</li>
|
|
3599
|
+
<li>false: Target tracking policies trigger both scale-out and scale-in.</li>
|
|
3541
3600
|
:rtype: bool
|
|
3542
3601
|
"""
|
|
3543
3602
|
return self._DisableScaleIn
|
|
@@ -5622,12 +5681,13 @@ class DescribeRefreshActivitiesRequest(AbstractModel):
|
|
|
5622
5681
|
r"""
|
|
5623
5682
|
:param _RefreshActivityIds: List of refresh activity IDs. IDs are formatted like: 'asr-5l2ejpfo'. The upper limit per request is 100. Parameters do not support specifying both RefreshActivityIds and Filters simultaneously.
|
|
5624
5683
|
:type RefreshActivityIds: list of str
|
|
5625
|
-
:param _Filters:
|
|
5626
|
-
|
|
5627
|
-
<li>
|
|
5628
|
-
<li> refresh-activity-
|
|
5629
|
-
<li> refresh-activity-
|
|
5630
|
-
<li>
|
|
5684
|
+
:param _Filters: Filter criteria
|
|
5685
|
+
|
|
5686
|
+
<li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li>
|
|
5687
|
+
<li> refresh-activity-status-code - String - Required: No - (Filter)Filter based on refresh activity status. (INIT: Initialization | RUNNING:Running | SUCCESSFUL: Successful Activity | FAILED_PAUSE: Failed & Paused | AUTO_PAUSE: Auto Paused | MANUAL_PAUSE: Manually Paused | CANCELLED: Activity Cancelled | FAILED: Activity Failed)</li>
|
|
5688
|
+
<li> refresh-activity-type - String - Required: No - (Filter) Filter by refresh activity types. (NORMAL: Regular Refresh Activity | ROLLBACK: Rollback Refresh Activity)</li>
|
|
5689
|
+
<li> refresh-activity-id - String - Required: No - (Filter) Filter by refresh activity ID.</li>
|
|
5690
|
+
<li>The upper limit of Filters per request is 10, and that of Filter.Values is 5. The RefreshActivityIds and Filters parameters cannot be specified at the same time.</li>
|
|
5631
5691
|
:type Filters: list of Filter
|
|
5632
5692
|
:param _Limit: Number of returned pieces. Default value: 20. Maximum value: 100. For further information on Limit, please refer to relevant sections in API [Overview] (https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
|
|
5633
5693
|
:type Limit: int
|
|
@@ -5652,12 +5712,13 @@ class DescribeRefreshActivitiesRequest(AbstractModel):
|
|
|
5652
5712
|
|
|
5653
5713
|
@property
|
|
5654
5714
|
def Filters(self):
|
|
5655
|
-
"""
|
|
5656
|
-
|
|
5657
|
-
<li>
|
|
5658
|
-
<li> refresh-activity-
|
|
5659
|
-
<li> refresh-activity-
|
|
5660
|
-
<li>
|
|
5715
|
+
"""Filter criteria
|
|
5716
|
+
|
|
5717
|
+
<li> auto-scaling-group-id - String - Required: No - (Filter) Filter by auto scaling group ID.</li>
|
|
5718
|
+
<li> refresh-activity-status-code - String - Required: No - (Filter)Filter based on refresh activity status. (INIT: Initialization | RUNNING:Running | SUCCESSFUL: Successful Activity | FAILED_PAUSE: Failed & Paused | AUTO_PAUSE: Auto Paused | MANUAL_PAUSE: Manually Paused | CANCELLED: Activity Cancelled | FAILED: Activity Failed)</li>
|
|
5719
|
+
<li> refresh-activity-type - String - Required: No - (Filter) Filter by refresh activity types. (NORMAL: Regular Refresh Activity | ROLLBACK: Rollback Refresh Activity)</li>
|
|
5720
|
+
<li> refresh-activity-id - String - Required: No - (Filter) Filter by refresh activity ID.</li>
|
|
5721
|
+
<li>The upper limit of Filters per request is 10, and that of Filter.Values is 5. The RefreshActivityIds and Filters parameters cannot be specified at the same time.</li>
|
|
5661
5722
|
:rtype: list of Filter
|
|
5662
5723
|
"""
|
|
5663
5724
|
return self._Filters
|
|
@@ -7828,13 +7889,13 @@ class InternetAccessible(AbstractModel):
|
|
|
7828
7889
|
|
|
7829
7890
|
def __init__(self):
|
|
7830
7891
|
r"""
|
|
7831
|
-
:param _InternetChargeType: Network billing
|
|
7892
|
+
:param _InternetChargeType: Network billing type. Valid values: <li>BANDWIDTH_PREPAID: prepaid by bandwidth;</li> <li>TRAFFIC_POSTPAID_BY_HOUR: postpaid by traffic per hour;</li> <li>BANDWIDTH_POSTPAID_BY_HOUR: postpaid by bandwidth per hour;</li> <li>BANDWIDTH_PACKAGE: bandwidth package users.</li> Default value: TRAFFIC_POSTPAID_BY_HOUR.
|
|
7832
7893
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7833
7894
|
:type InternetChargeType: str
|
|
7834
7895
|
:param _InternetMaxBandwidthOut: The maximum outbound bandwidth in Mbps of the public network. The default value is 0 Mbps. The upper limit of bandwidth varies by model. For more information, see [Purchase Network Bandwidth](https://intl.cloud.tencent.com/document/product/213/509?from_cn_redirect=1).
|
|
7835
7896
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7836
7897
|
:type InternetMaxBandwidthOut: int
|
|
7837
|
-
:param _PublicIpAssigned: Whether to assign a public IP.
|
|
7898
|
+
:param _PublicIpAssigned: Whether to assign a public IP address. Valid values: <li>TRUE: Allocate a public IP address.</li> <li>FALSE: Do not allocate a public IP address.</li> When the public network bandwidth is greater than 0 Mbps, you can choose whether to enable this feature based on your needs. By default, this feature is enabled. When the public network bandwidth is 0, public IP address assignment is not allowed.
|
|
7838
7899
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7839
7900
|
:type PublicIpAssigned: bool
|
|
7840
7901
|
:param _BandwidthPackageId: Bandwidth package ID. You can obtain the ID from the `BandwidthPackageId` field in the response of the [DescribeBandwidthPackages](https://intl.cloud.tencent.com/document/api/215/19209?from_cn_redirect=1) API.
|
|
@@ -7848,7 +7909,7 @@ Note: this field may return null, indicating that no valid value was found.
|
|
|
7848
7909
|
|
|
7849
7910
|
@property
|
|
7850
7911
|
def InternetChargeType(self):
|
|
7851
|
-
"""Network billing
|
|
7912
|
+
"""Network billing type. Valid values: <li>BANDWIDTH_PREPAID: prepaid by bandwidth;</li> <li>TRAFFIC_POSTPAID_BY_HOUR: postpaid by traffic per hour;</li> <li>BANDWIDTH_POSTPAID_BY_HOUR: postpaid by bandwidth per hour;</li> <li>BANDWIDTH_PACKAGE: bandwidth package users.</li> Default value: TRAFFIC_POSTPAID_BY_HOUR.
|
|
7852
7913
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7853
7914
|
:rtype: str
|
|
7854
7915
|
"""
|
|
@@ -7872,7 +7933,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
7872
7933
|
|
|
7873
7934
|
@property
|
|
7874
7935
|
def PublicIpAssigned(self):
|
|
7875
|
-
"""Whether to assign a public IP.
|
|
7936
|
+
"""Whether to assign a public IP address. Valid values: <li>TRUE: Allocate a public IP address.</li> <li>FALSE: Do not allocate a public IP address.</li> When the public network bandwidth is greater than 0 Mbps, you can choose whether to enable this feature based on your needs. By default, this feature is enabled. When the public network bandwidth is 0, public IP address assignment is not allowed.
|
|
7876
7937
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
7877
7938
|
:rtype: bool
|
|
7878
7939
|
"""
|
|
@@ -8109,6 +8170,8 @@ Note: This field is default to empty
|
|
|
8109
8170
|
:param _ImageFamily: Image family name.
|
|
8110
8171
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
8111
8172
|
:type ImageFamily: str
|
|
8173
|
+
:param _DedicatedClusterId: CDC ID.
|
|
8174
|
+
:type DedicatedClusterId: str
|
|
8112
8175
|
"""
|
|
8113
8176
|
self._ProjectId = None
|
|
8114
8177
|
self._LaunchConfigurationId = None
|
|
@@ -8142,6 +8205,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
8142
8205
|
self._IPv6InternetAccessible = None
|
|
8143
8206
|
self._DisasterRecoverGroupIds = None
|
|
8144
8207
|
self._ImageFamily = None
|
|
8208
|
+
self._DedicatedClusterId = None
|
|
8145
8209
|
|
|
8146
8210
|
@property
|
|
8147
8211
|
def ProjectId(self):
|
|
@@ -8500,6 +8564,17 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
8500
8564
|
def ImageFamily(self, ImageFamily):
|
|
8501
8565
|
self._ImageFamily = ImageFamily
|
|
8502
8566
|
|
|
8567
|
+
@property
|
|
8568
|
+
def DedicatedClusterId(self):
|
|
8569
|
+
"""CDC ID.
|
|
8570
|
+
:rtype: str
|
|
8571
|
+
"""
|
|
8572
|
+
return self._DedicatedClusterId
|
|
8573
|
+
|
|
8574
|
+
@DedicatedClusterId.setter
|
|
8575
|
+
def DedicatedClusterId(self, DedicatedClusterId):
|
|
8576
|
+
self._DedicatedClusterId = DedicatedClusterId
|
|
8577
|
+
|
|
8503
8578
|
|
|
8504
8579
|
def _deserialize(self, params):
|
|
8505
8580
|
self._ProjectId = params.get("ProjectId")
|
|
@@ -8572,6 +8647,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
8572
8647
|
self._IPv6InternetAccessible._deserialize(params.get("IPv6InternetAccessible"))
|
|
8573
8648
|
self._DisasterRecoverGroupIds = params.get("DisasterRecoverGroupIds")
|
|
8574
8649
|
self._ImageFamily = params.get("ImageFamily")
|
|
8650
|
+
self._DedicatedClusterId = params.get("DedicatedClusterId")
|
|
8575
8651
|
memeber_set = set(params.keys())
|
|
8576
8652
|
for name, value in vars(self).items():
|
|
8577
8653
|
property_name = name[1:]
|
|
@@ -9032,11 +9108,16 @@ class LoginSettings(AbstractModel):
|
|
|
9032
9108
|
|
|
9033
9109
|
def __init__(self):
|
|
9034
9110
|
r"""
|
|
9035
|
-
:param _Password: Instance login password.
|
|
9111
|
+
:param _Password: Instance login password. The password complexity requirements vary according to the operating system type. The details are as follows:
|
|
9112
|
+
<li>The login password for Linux instances should contain 8 to 16 characters, including at least two types of the following characters: letters, digits, and special characters (such as ()`~!@#$%^&*-+=|{}[]:;',.?/).</li>
|
|
9113
|
+
<li>The login password for Windows instances should contain 12 to 16 characters, including at least three types of the following characters: lowercase letters, uppercase letters, digits, and special characters (such as ()`~!@#$%^&*-+={}[]:;',.?/).</li>
|
|
9114
|
+
If this parameter is not specified, the system will generate a random password and notify the user via the message center.
|
|
9036
9115
|
:type Password: str
|
|
9037
9116
|
:param _KeyIds: 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.
|
|
9038
9117
|
:type KeyIds: list of str
|
|
9039
|
-
:param _KeepImageLogin:
|
|
9118
|
+
:param _KeepImageLogin: Retain the original settings of the image. This parameter cannot be specified simultaneously with Password or KeyIds.N. It can only be set to TRUE when you create an instance by using a custom image, shared image, or externally imported image. Valid values:
|
|
9119
|
+
<li>TRUE: Retain the login settings of the image.</li>
|
|
9120
|
+
<li>FALSE: Do not retain the login settings of the image.</li> Default value: FALSE.
|
|
9040
9121
|
:type KeepImageLogin: bool
|
|
9041
9122
|
"""
|
|
9042
9123
|
self._Password = None
|
|
@@ -9045,7 +9126,10 @@ class LoginSettings(AbstractModel):
|
|
|
9045
9126
|
|
|
9046
9127
|
@property
|
|
9047
9128
|
def Password(self):
|
|
9048
|
-
"""Instance login password.
|
|
9129
|
+
"""Instance login password. The password complexity requirements vary according to the operating system type. The details are as follows:
|
|
9130
|
+
<li>The login password for Linux instances should contain 8 to 16 characters, including at least two types of the following characters: letters, digits, and special characters (such as ()`~!@#$%^&*-+=|{}[]:;',.?/).</li>
|
|
9131
|
+
<li>The login password for Windows instances should contain 12 to 16 characters, including at least three types of the following characters: lowercase letters, uppercase letters, digits, and special characters (such as ()`~!@#$%^&*-+={}[]:;',.?/).</li>
|
|
9132
|
+
If this parameter is not specified, the system will generate a random password and notify the user via the message center.
|
|
9049
9133
|
:rtype: str
|
|
9050
9134
|
"""
|
|
9051
9135
|
return self._Password
|
|
@@ -9067,7 +9151,9 @@ class LoginSettings(AbstractModel):
|
|
|
9067
9151
|
|
|
9068
9152
|
@property
|
|
9069
9153
|
def KeepImageLogin(self):
|
|
9070
|
-
"""
|
|
9154
|
+
"""Retain the original settings of the image. This parameter cannot be specified simultaneously with Password or KeyIds.N. It can only be set to TRUE when you create an instance by using a custom image, shared image, or externally imported image. Valid values:
|
|
9155
|
+
<li>TRUE: Retain the login settings of the image.</li>
|
|
9156
|
+
<li>FALSE: Do not retain the login settings of the image.</li> Default value: FALSE.
|
|
9071
9157
|
:rtype: bool
|
|
9072
9158
|
"""
|
|
9073
9159
|
return self._KeepImageLogin
|
|
@@ -9854,6 +9940,8 @@ This parameter will overwrite the original instance tag list. To add new tags, y
|
|
|
9854
9940
|
:type InstanceTags: list of InstanceTag
|
|
9855
9941
|
:param _ImageFamily: Image family name.
|
|
9856
9942
|
:type ImageFamily: str
|
|
9943
|
+
:param _DedicatedClusterId: Cloud Dedicated Cluster (CDC) ID.
|
|
9944
|
+
:type DedicatedClusterId: str
|
|
9857
9945
|
"""
|
|
9858
9946
|
self._LaunchConfigurationId = None
|
|
9859
9947
|
self._ImageId = None
|
|
@@ -9879,6 +9967,7 @@ This parameter will overwrite the original instance tag list. To add new tags, y
|
|
|
9879
9967
|
self._LoginSettings = None
|
|
9880
9968
|
self._InstanceTags = None
|
|
9881
9969
|
self._ImageFamily = None
|
|
9970
|
+
self._DedicatedClusterId = None
|
|
9882
9971
|
|
|
9883
9972
|
@property
|
|
9884
9973
|
def LaunchConfigurationId(self):
|
|
@@ -10169,6 +10258,17 @@ This parameter will overwrite the original instance tag list. To add new tags, y
|
|
|
10169
10258
|
def ImageFamily(self, ImageFamily):
|
|
10170
10259
|
self._ImageFamily = ImageFamily
|
|
10171
10260
|
|
|
10261
|
+
@property
|
|
10262
|
+
def DedicatedClusterId(self):
|
|
10263
|
+
"""Cloud Dedicated Cluster (CDC) ID.
|
|
10264
|
+
:rtype: str
|
|
10265
|
+
"""
|
|
10266
|
+
return self._DedicatedClusterId
|
|
10267
|
+
|
|
10268
|
+
@DedicatedClusterId.setter
|
|
10269
|
+
def DedicatedClusterId(self, DedicatedClusterId):
|
|
10270
|
+
self._DedicatedClusterId = DedicatedClusterId
|
|
10271
|
+
|
|
10172
10272
|
|
|
10173
10273
|
def _deserialize(self, params):
|
|
10174
10274
|
self._LaunchConfigurationId = params.get("LaunchConfigurationId")
|
|
@@ -10223,6 +10323,7 @@ This parameter will overwrite the original instance tag list. To add new tags, y
|
|
|
10223
10323
|
obj._deserialize(item)
|
|
10224
10324
|
self._InstanceTags.append(obj)
|
|
10225
10325
|
self._ImageFamily = params.get("ImageFamily")
|
|
10326
|
+
self._DedicatedClusterId = params.get("DedicatedClusterId")
|
|
10226
10327
|
memeber_set = set(params.keys())
|
|
10227
10328
|
for name, value in vars(self).items():
|
|
10228
10329
|
property_name = name[1:]
|
|
@@ -10272,13 +10373,13 @@ class ModifyLifecycleHookRequest(AbstractModel):
|
|
|
10272
10373
|
:type LifecycleHookId: str
|
|
10273
10374
|
:param _LifecycleHookName: Lifecycle hook name.
|
|
10274
10375
|
:type LifecycleHookName: str
|
|
10275
|
-
:param _LifecycleTransition:
|
|
10276
|
-
<li>
|
|
10277
|
-
<li>
|
|
10376
|
+
:param _LifecycleTransition: Scenario for entering the lifecycle hook. Valid values:
|
|
10377
|
+
<li>INSTANCE_LAUNCHING: after the instance is launched.</li>
|
|
10378
|
+
<li>INSTANCE_TERMINATING: before the instance is terminated.</li>
|
|
10278
10379
|
:type LifecycleTransition: str
|
|
10279
|
-
:param _DefaultResult:
|
|
10280
|
-
<li>
|
|
10281
|
-
<li>
|
|
10380
|
+
:param _DefaultResult: Action to be taken by the scaling group in case of lifecycle hook timeout. Valid values:
|
|
10381
|
+
<li>CONTINUE: Continue the scaling activity after timeout.</li>
|
|
10382
|
+
<li>ABANDON: Terminate the scaling activity after timeout.</li>
|
|
10282
10383
|
:type DefaultResult: str
|
|
10283
10384
|
:param _HeartbeatTimeout: The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30 - 7,200 seconds.
|
|
10284
10385
|
:type HeartbeatTimeout: int
|
|
@@ -10325,9 +10426,9 @@ class ModifyLifecycleHookRequest(AbstractModel):
|
|
|
10325
10426
|
|
|
10326
10427
|
@property
|
|
10327
10428
|
def LifecycleTransition(self):
|
|
10328
|
-
"""
|
|
10329
|
-
<li>
|
|
10330
|
-
<li>
|
|
10429
|
+
"""Scenario for entering the lifecycle hook. Valid values:
|
|
10430
|
+
<li>INSTANCE_LAUNCHING: after the instance is launched.</li>
|
|
10431
|
+
<li>INSTANCE_TERMINATING: before the instance is terminated.</li>
|
|
10331
10432
|
:rtype: str
|
|
10332
10433
|
"""
|
|
10333
10434
|
return self._LifecycleTransition
|
|
@@ -10338,9 +10439,9 @@ class ModifyLifecycleHookRequest(AbstractModel):
|
|
|
10338
10439
|
|
|
10339
10440
|
@property
|
|
10340
10441
|
def DefaultResult(self):
|
|
10341
|
-
"""
|
|
10342
|
-
<li>
|
|
10343
|
-
<li>
|
|
10442
|
+
"""Action to be taken by the scaling group in case of lifecycle hook timeout. Valid values:
|
|
10443
|
+
<li>CONTINUE: Continue the scaling activity after timeout.</li>
|
|
10444
|
+
<li>ABANDON: Terminate the scaling activity after timeout.</li>
|
|
10344
10445
|
:rtype: str
|
|
10345
10446
|
"""
|
|
10346
10447
|
return self._DefaultResult
|
|
@@ -10569,9 +10670,9 @@ class ModifyLoadBalancersRequest(AbstractModel):
|
|
|
10569
10670
|
:type LoadBalancerIds: list of str
|
|
10570
10671
|
:param _ForwardLoadBalancers: List of application CLBs. Up to 100 CLBs are allowed. `LoadBalancerIds` and `ForwardLoadBalancers` cannot be specified at the same time.
|
|
10571
10672
|
:type ForwardLoadBalancers: list of ForwardLoadBalancer
|
|
10572
|
-
:param _LoadBalancersCheckPolicy: CLB verification policy. Valid values:
|
|
10573
|
-
<
|
|
10574
|
-
<
|
|
10673
|
+
:param _LoadBalancersCheckPolicy: CLB verification policy. Valid values: ALL and DIFF. Default value: ALL.
|
|
10674
|
+
<li>ALL: The CLB passes the verification only when all CLB parameters are valid. Otherwise, a verification error occurs.</li>
|
|
10675
|
+
<li>DIFF: The CLB passes the verification only when the CLB parameters with changes are valid. Otherwise, a verification error occurs.</li>
|
|
10575
10676
|
:type LoadBalancersCheckPolicy: str
|
|
10576
10677
|
"""
|
|
10577
10678
|
self._AutoScalingGroupId = None
|
|
@@ -10614,9 +10715,9 @@ class ModifyLoadBalancersRequest(AbstractModel):
|
|
|
10614
10715
|
|
|
10615
10716
|
@property
|
|
10616
10717
|
def LoadBalancersCheckPolicy(self):
|
|
10617
|
-
"""CLB verification policy. Valid values:
|
|
10618
|
-
<
|
|
10619
|
-
<
|
|
10718
|
+
"""CLB verification policy. Valid values: ALL and DIFF. Default value: ALL.
|
|
10719
|
+
<li>ALL: The CLB passes the verification only when all CLB parameters are valid. Otherwise, a verification error occurs.</li>
|
|
10720
|
+
<li>DIFF: The CLB passes the verification only when the CLB parameters with changes are valid. Otherwise, a verification error occurs.</li>
|
|
10620
10721
|
:rtype: str
|
|
10621
10722
|
"""
|
|
10622
10723
|
return self._LoadBalancersCheckPolicy
|
|
@@ -11306,9 +11407,19 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11306
11407
|
:type RefreshMode: str
|
|
11307
11408
|
:param _RefreshSettings: Instance update setting parameters.
|
|
11308
11409
|
:type RefreshSettings: :class:`tencentcloud.autoscaling.v20180419.models.RefreshSettings`
|
|
11309
|
-
:param _ActivityType: Refresh activity type. Valid values:
|
|
11410
|
+
:param _ActivityType: Refresh activity type. Valid values:
|
|
11411
|
+
<li>NORMAL: normal refresh activity.</li>
|
|
11412
|
+
<li>ROLLBACK: rollback refresh activity.</li>
|
|
11310
11413
|
:type ActivityType: str
|
|
11311
|
-
:param _Status: Refresh activity status. Valid values:
|
|
11414
|
+
:param _Status: Refresh activity status. Valid values:
|
|
11415
|
+
<li>INIT: initializing.</li>
|
|
11416
|
+
<li>RUNNING: running.</li>
|
|
11417
|
+
<li>SUCCESSFUL: successful.</li>
|
|
11418
|
+
<li>FAILED_PAUSE: paused due to the failure of a refresh batch.</li>
|
|
11419
|
+
<li>AUTO_PAUSE: automatically paused due to the pause policy.</li>
|
|
11420
|
+
<li>MANUAL_PAUSE: manually paused.</li>
|
|
11421
|
+
<li>CANCELLED: canceled.</li>
|
|
11422
|
+
<li>FAILED: failed.</li>
|
|
11312
11423
|
:type Status: str
|
|
11313
11424
|
:param _CurrentRefreshBatchNum: Current refresh batch number. For example, a value of 2 indicates that the current activity is refreshing the second batch of instances.
|
|
11314
11425
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -11405,7 +11516,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11405
11516
|
|
|
11406
11517
|
@property
|
|
11407
11518
|
def ActivityType(self):
|
|
11408
|
-
"""Refresh activity type. Valid values:
|
|
11519
|
+
"""Refresh activity type. Valid values:
|
|
11520
|
+
<li>NORMAL: normal refresh activity.</li>
|
|
11521
|
+
<li>ROLLBACK: rollback refresh activity.</li>
|
|
11409
11522
|
:rtype: str
|
|
11410
11523
|
"""
|
|
11411
11524
|
return self._ActivityType
|
|
@@ -11416,7 +11529,15 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11416
11529
|
|
|
11417
11530
|
@property
|
|
11418
11531
|
def Status(self):
|
|
11419
|
-
"""Refresh activity status. Valid values:
|
|
11532
|
+
"""Refresh activity status. Valid values:
|
|
11533
|
+
<li>INIT: initializing.</li>
|
|
11534
|
+
<li>RUNNING: running.</li>
|
|
11535
|
+
<li>SUCCESSFUL: successful.</li>
|
|
11536
|
+
<li>FAILED_PAUSE: paused due to the failure of a refresh batch.</li>
|
|
11537
|
+
<li>AUTO_PAUSE: automatically paused due to the pause policy.</li>
|
|
11538
|
+
<li>MANUAL_PAUSE: manually paused.</li>
|
|
11539
|
+
<li>CANCELLED: canceled.</li>
|
|
11540
|
+
<li>FAILED: failed.</li>
|
|
11420
11541
|
:rtype: str
|
|
11421
11542
|
"""
|
|
11422
11543
|
return self._Status
|
|
@@ -11513,7 +11634,7 @@ class RefreshBatch(AbstractModel):
|
|
|
11513
11634
|
r"""
|
|
11514
11635
|
:param _RefreshBatchNum: Refresh batch number. For example, a value of 2 indicates that the current batch of instances will be refreshed in the second batch.
|
|
11515
11636
|
:type RefreshBatchNum: int
|
|
11516
|
-
:param _RefreshBatchStatus: Refresh batch status. Valid values: <
|
|
11637
|
+
:param _RefreshBatchStatus: Refresh batch status. Valid values: <li>WAITING: pending refresh;</li> <li>INIT: initializing;</li> <li>RUNNING: refreshing;</li> <li>FAILED: refresh failed;</li> <li>PARTIALLY_SUCCESSFUL: partially successful in the batch;</li> <li>CANCELLED: cancelled;</li> <li>SUCCESSFUL: refresh successful.</li>
|
|
11517
11638
|
:type RefreshBatchStatus: str
|
|
11518
11639
|
:param _RefreshBatchRelatedInstanceSet: List of instances linked to a refresh batch.
|
|
11519
11640
|
:type RefreshBatchRelatedInstanceSet: list of RefreshBatchRelatedInstance
|
|
@@ -11543,7 +11664,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
11543
11664
|
|
|
11544
11665
|
@property
|
|
11545
11666
|
def RefreshBatchStatus(self):
|
|
11546
|
-
"""Refresh batch status. Valid values: <
|
|
11667
|
+
"""Refresh batch status. Valid values: <li>WAITING: pending refresh;</li> <li>INIT: initializing;</li> <li>RUNNING: refreshing;</li> <li>FAILED: refresh failed;</li> <li>PARTIALLY_SUCCESSFUL: partially successful in the batch;</li> <li>CANCELLED: cancelled;</li> <li>SUCCESSFUL: refresh successful.</li>
|
|
11547
11668
|
:rtype: str
|
|
11548
11669
|
"""
|
|
11549
11670
|
return self._RefreshBatchStatus
|
|
@@ -11705,7 +11826,7 @@ class RefreshSettings(AbstractModel):
|
|
|
11705
11826
|
r"""
|
|
11706
11827
|
:param _RollingUpdateSettings: Rolling update settings parameters. RefreshMode is the rolling update. This parameter must be filled in.Note: This field may return null, indicating that no valid value can be obtained.
|
|
11707
11828
|
:type RollingUpdateSettings: :class:`tencentcloud.autoscaling.v20180419.models.RollingUpdateSettings`
|
|
11708
|
-
:param _CheckInstanceTargetHealth:
|
|
11829
|
+
:param _CheckInstanceTargetHealth: Whether to enable the backend service health check for the instance. Default value: FALSE. This parameter is valid only for the scaling group bound to an application-based CLB. After this feature is enabled, if the instance fails the check after refresh, the port weight of the CLB will be always 0, and it will be marked as a refresh failure. Valid values: <li>TRUE: enable;</li> <li>FALSE: disable.</li>
|
|
11709
11830
|
:type CheckInstanceTargetHealth: bool
|
|
11710
11831
|
"""
|
|
11711
11832
|
self._RollingUpdateSettings = None
|
|
@@ -11724,7 +11845,7 @@ class RefreshSettings(AbstractModel):
|
|
|
11724
11845
|
|
|
11725
11846
|
@property
|
|
11726
11847
|
def CheckInstanceTargetHealth(self):
|
|
11727
|
-
"""
|
|
11848
|
+
"""Whether to enable the backend service health check for the instance. Default value: FALSE. This parameter is valid only for the scaling group bound to an application-based CLB. After this feature is enabled, if the instance fails the check after refresh, the port weight of the CLB will be always 0, and it will be marked as a refresh failure. Valid values: <li>TRUE: enable;</li> <li>FALSE: disable.</li>
|
|
11728
11849
|
:rtype: bool
|
|
11729
11850
|
"""
|
|
11730
11851
|
return self._CheckInstanceTargetHealth
|
|
@@ -12239,7 +12360,10 @@ class RunMonitorServiceEnabled(AbstractModel):
|
|
|
12239
12360
|
|
|
12240
12361
|
def __init__(self):
|
|
12241
12362
|
r"""
|
|
12242
|
-
:param _Enabled: Whether to enable the [Cloud
|
|
12363
|
+
:param _Enabled: Whether to enable the [Tencent Cloud Observability Platform](https://www.tencentcloud.com/document/product/248?lang=en&pg=) service. Valid values:
|
|
12364
|
+
<li>TRUE: enable.</li>
|
|
12365
|
+
<li>FALSE: disable.</li>
|
|
12366
|
+
Default value: TRUE.
|
|
12243
12367
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12244
12368
|
:type Enabled: bool
|
|
12245
12369
|
"""
|
|
@@ -12247,7 +12371,10 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
12247
12371
|
|
|
12248
12372
|
@property
|
|
12249
12373
|
def Enabled(self):
|
|
12250
|
-
"""Whether to enable the [Cloud
|
|
12374
|
+
"""Whether to enable the [Tencent Cloud Observability Platform](https://www.tencentcloud.com/document/product/248?lang=en&pg=) service. Valid values:
|
|
12375
|
+
<li>TRUE: enable.</li>
|
|
12376
|
+
<li>FALSE: disable.</li>
|
|
12377
|
+
Default value: TRUE.
|
|
12251
12378
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12252
12379
|
:rtype: bool
|
|
12253
12380
|
"""
|
|
@@ -12277,7 +12404,10 @@ class RunSecurityServiceEnabled(AbstractModel):
|
|
|
12277
12404
|
|
|
12278
12405
|
def __init__(self):
|
|
12279
12406
|
r"""
|
|
12280
|
-
:param _Enabled: Whether to enable the [Cloud
|
|
12407
|
+
:param _Enabled: Whether to enable the [Cloud Workload Protection Platform](https://www.tencentcloud.com/document/product/296?lang=en&pg=) service. Valid values:
|
|
12408
|
+
<li>TRUE: enable.</li>
|
|
12409
|
+
<li>FALSE: disable.</li>
|
|
12410
|
+
Default value: TRUE.
|
|
12281
12411
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12282
12412
|
:type Enabled: bool
|
|
12283
12413
|
"""
|
|
@@ -12285,7 +12415,10 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
12285
12415
|
|
|
12286
12416
|
@property
|
|
12287
12417
|
def Enabled(self):
|
|
12288
|
-
"""Whether to enable the [Cloud
|
|
12418
|
+
"""Whether to enable the [Cloud Workload Protection Platform](https://www.tencentcloud.com/document/product/296?lang=en&pg=) service. Valid values:
|
|
12419
|
+
<li>TRUE: enable.</li>
|
|
12420
|
+
<li>FALSE: disable.</li>
|
|
12421
|
+
Default value: TRUE.
|
|
12289
12422
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
12290
12423
|
:rtype: bool
|
|
12291
12424
|
"""
|
|
@@ -12775,7 +12908,9 @@ class ScheduledAction(AbstractModel):
|
|
|
12775
12908
|
:type MinSize: int
|
|
12776
12909
|
:param _CreatedTime: Creation time of the scheduled task. The value is in `UTC time` in the format of `YYYY-MM-DDThh:mm:ssZ` according to the `ISO8601` standard.
|
|
12777
12910
|
:type CreatedTime: str
|
|
12778
|
-
:param _ScheduledType:
|
|
12911
|
+
:param _ScheduledType: Scheduled task execution type. Valid values:
|
|
12912
|
+
<li>CRONTAB: repeated execution.</li>
|
|
12913
|
+
<li>ONCE: single execution.</li>
|
|
12779
12914
|
:type ScheduledType: str
|
|
12780
12915
|
"""
|
|
12781
12916
|
self._ScheduledActionId = None
|
|
@@ -12902,7 +13037,9 @@ class ScheduledAction(AbstractModel):
|
|
|
12902
13037
|
|
|
12903
13038
|
@property
|
|
12904
13039
|
def ScheduledType(self):
|
|
12905
|
-
"""
|
|
13040
|
+
"""Scheduled task execution type. Valid values:
|
|
13041
|
+
<li>CRONTAB: repeated execution.</li>
|
|
13042
|
+
<li>ONCE: single execution.</li>
|
|
12906
13043
|
:rtype: str
|
|
12907
13044
|
"""
|
|
12908
13045
|
return self._ScheduledType
|
|
@@ -13384,7 +13521,9 @@ class StartInstanceRefreshRequest(AbstractModel):
|
|
|
13384
13521
|
:type AutoScalingGroupId: str
|
|
13385
13522
|
:param _RefreshSettings: Refresh settings.
|
|
13386
13523
|
:type RefreshSettings: :class:`tencentcloud.autoscaling.v20180419.models.RefreshSettings`
|
|
13387
|
-
:param _RefreshMode: Refresh mode
|
|
13524
|
+
:param _RefreshMode: Refresh mode. Valid values:
|
|
13525
|
+
<li>ROLLING_UPDATE_RESET: Reinstall the system for rolling updates.</li>
|
|
13526
|
+
<li>ROLLING_UPDATE_REPLACE: Create an instance and replace the old instance with it for rolling updates. This mode does not support the rollback API currently.</li>
|
|
13388
13527
|
:type RefreshMode: str
|
|
13389
13528
|
"""
|
|
13390
13529
|
self._AutoScalingGroupId = None
|
|
@@ -13415,7 +13554,9 @@ class StartInstanceRefreshRequest(AbstractModel):
|
|
|
13415
13554
|
|
|
13416
13555
|
@property
|
|
13417
13556
|
def RefreshMode(self):
|
|
13418
|
-
"""Refresh mode
|
|
13557
|
+
"""Refresh mode. Valid values:
|
|
13558
|
+
<li>ROLLING_UPDATE_RESET: Reinstall the system for rolling updates.</li>
|
|
13559
|
+
<li>ROLLING_UPDATE_REPLACE: Create an instance and replace the old instance with it for rolling updates. This mode does not support the rollback API currently.</li>
|
|
13419
13560
|
:rtype: str
|
|
13420
13561
|
"""
|
|
13421
13562
|
return self._RefreshMode
|
|
@@ -13744,7 +13885,7 @@ class Tag(AbstractModel):
|
|
|
13744
13885
|
:type Key: str
|
|
13745
13886
|
:param _Value: Tag value
|
|
13746
13887
|
:type Value: str
|
|
13747
|
-
:param _ResourceType:
|
|
13888
|
+
:param _ResourceType: Resource type bound with tags. Valid values: auto-scaling-group and launch-configuration.
|
|
13748
13889
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
13749
13890
|
:type ResourceType: str
|
|
13750
13891
|
"""
|
|
@@ -13776,7 +13917,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
13776
13917
|
|
|
13777
13918
|
@property
|
|
13778
13919
|
def ResourceType(self):
|
|
13779
|
-
"""
|
|
13920
|
+
"""Resource type bound with tags. Valid values: auto-scaling-group and launch-configuration.
|
|
13780
13921
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
13781
13922
|
:rtype: str
|
|
13782
13923
|
"""
|