huaweicloudsdkdcs 3.1.127__py2.py3-none-any.whl → 3.1.128__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 huaweicloudsdkdcs might be problematic. Click here for more details.

Files changed (40) hide show
  1. huaweicloudsdkdcs/v2/__init__.py +31 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +688 -28
  3. huaweicloudsdkdcs/v2/dcs_client.py +688 -28
  4. huaweicloudsdkdcs/v2/model/__init__.py +31 -0
  5. huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +258 -0
  6. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
  7. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
  8. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
  9. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
  10. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  11. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
  12. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
  13. huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
  14. huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
  15. huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
  16. huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
  17. huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
  18. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  19. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +259 -0
  20. huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
  21. huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
  22. huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
  23. huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
  24. huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
  25. huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
  26. huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
  27. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
  28. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +258 -0
  29. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +259 -0
  30. huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
  31. huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
  32. huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
  33. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
  34. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
  35. huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
  36. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/RECORD +40 -9
  38. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/top_level.txt +0 -0
@@ -15,6 +15,7 @@ from huaweicloudsdkdcs.v2.model.backup_instance_body import BackupInstanceBody
15
15
  from huaweicloudsdkdcs.v2.model.backup_plan import BackupPlan
16
16
  from huaweicloudsdkdcs.v2.model.backup_policy import BackupPolicy
17
17
  from huaweicloudsdkdcs.v2.model.backup_record_response import BackupRecordResponse
18
+ from huaweicloudsdkdcs.v2.model.bandwidth_auto_scaling_policy import BandwidthAutoScalingPolicy
18
19
  from huaweicloudsdkdcs.v2.model.bandwidth_info import BandwidthInfo
19
20
  from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_request import BatchCreateOrDeleteTagsRequest
20
21
  from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_response import BatchCreateOrDeleteTagsResponse
@@ -39,6 +40,10 @@ from huaweicloudsdkdcs.v2.model.change_master_standby_async_request import Chang
39
40
  from huaweicloudsdkdcs.v2.model.change_master_standby_async_response import ChangeMasterStandbyAsyncResponse
40
41
  from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest
41
42
  from huaweicloudsdkdcs.v2.model.change_master_standby_response import ChangeMasterStandbyResponse
43
+ from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_body import ChangeNodesStartStopStatusBody
44
+ from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_request import ChangeNodesStartStopStatusRequest
45
+ from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_resp import ChangeNodesStartStopStatusResp
46
+ from huaweicloudsdkdcs.v2.model.change_nodes_start_stop_status_response import ChangeNodesStartStopStatusResponse
42
47
  from huaweicloudsdkdcs.v2.model.client_info import ClientInfo
43
48
  from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject
44
49
  from huaweicloudsdkdcs.v2.model.command_time_taken import CommandTimeTaken
@@ -98,11 +103,16 @@ from huaweicloudsdkdcs.v2.model.delete_diagnosis_task_request import DeleteDiagn
98
103
  from huaweicloudsdkdcs.v2.model.delete_diagnosis_task_response import DeleteDiagnosisTaskResponse
99
104
  from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_request import DeleteHotkeyScanTaskRequest
100
105
  from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_response import DeleteHotkeyScanTaskResponse
106
+ from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_request import DeleteInstanceBandwidthAutoScalingPolicyRequest
107
+ from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_resp import DeleteInstanceBandwidthAutoScalingPolicyResp
108
+ from huaweicloudsdkdcs.v2.model.delete_instance_bandwidth_auto_scaling_policy_response import DeleteInstanceBandwidthAutoScalingPolicyResponse
101
109
  from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_request import DeleteIpFromDomainNameRequest
102
110
  from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_response import DeleteIpFromDomainNameResponse
103
111
  from huaweicloudsdkdcs.v2.model.delete_migrate_task_request import DeleteMigrateTaskRequest
104
112
  from huaweicloudsdkdcs.v2.model.delete_migration_task_request import DeleteMigrationTaskRequest
105
113
  from huaweicloudsdkdcs.v2.model.delete_migration_task_response import DeleteMigrationTaskResponse
114
+ from huaweicloudsdkdcs.v2.model.delete_public_ip_request import DeletePublicIpRequest
115
+ from huaweicloudsdkdcs.v2.model.delete_public_ip_response import DeletePublicIpResponse
106
116
  from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest
107
117
  from huaweicloudsdkdcs.v2.model.delete_single_instance_response import DeleteSingleInstanceResponse
108
118
  from huaweicloudsdkdcs.v2.model.details_body import DetailsBody
@@ -132,6 +142,7 @@ from huaweicloudsdkdcs.v2.model.features import Features
132
142
  from huaweicloudsdkdcs.v2.model.files import Files
133
143
  from huaweicloudsdkdcs.v2.model.flavor_az_object import FlavorAzObject
134
144
  from huaweicloudsdkdcs.v2.model.flavors_items import FlavorsItems
145
+ from huaweicloudsdkdcs.v2.model.group_bandwidth_info import GroupBandwidthInfo
135
146
  from huaweicloudsdkdcs.v2.model.hang_up_clients_request import HangUpClientsRequest
136
147
  from huaweicloudsdkdcs.v2.model.hang_up_clients_request_body import HangUpClientsRequestBody
137
148
  from huaweicloudsdkdcs.v2.model.hang_up_clients_response import HangUpClientsResponse
@@ -261,6 +272,8 @@ from huaweicloudsdkdcs.v2.model.set_online_migration_task_request import SetOnli
261
272
  from huaweicloudsdkdcs.v2.model.set_online_migration_task_response import SetOnlineMigrationTaskResponse
262
273
  from huaweicloudsdkdcs.v2.model.show_background_task_progress_request import ShowBackgroundTaskProgressRequest
263
274
  from huaweicloudsdkdcs.v2.model.show_background_task_progress_response import ShowBackgroundTaskProgressResponse
275
+ from huaweicloudsdkdcs.v2.model.show_bandwidths_request import ShowBandwidthsRequest
276
+ from huaweicloudsdkdcs.v2.model.show_bandwidths_response import ShowBandwidthsResponse
264
277
  from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest
265
278
  from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse
266
279
  from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest
@@ -279,10 +292,14 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_request import ShowH
279
292
  from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_response import ShowHotkeyAutoscanConfigResponse
280
293
  from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotkeyTaskDetailsRequest
281
294
  from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse
295
+ from huaweicloudsdkdcs.v2.model.show_instance_bandwidth_auto_scaling_policy_request import ShowInstanceBandwidthAutoScalingPolicyRequest
296
+ from huaweicloudsdkdcs.v2.model.show_instance_bandwidth_auto_scaling_policy_response import ShowInstanceBandwidthAutoScalingPolicyResponse
282
297
  from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest
283
298
  from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse
284
299
  from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest
285
300
  from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse
301
+ from huaweicloudsdkdcs.v2.model.show_instance_version_request import ShowInstanceVersionRequest
302
+ from huaweicloudsdkdcs.v2.model.show_instance_version_response import ShowInstanceVersionResponse
286
303
  from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest
287
304
  from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse
288
305
  from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest
@@ -324,6 +341,10 @@ from huaweicloudsdkdcs.v2.model.update_acl_account_remark_response import Update
324
341
  from huaweicloudsdkdcs.v2.model.update_acl_account_request import UpdateAclAccountRequest
325
342
  from huaweicloudsdkdcs.v2.model.update_acl_account_response import UpdateAclAccountResponse
326
343
  from huaweicloudsdkdcs.v2.model.update_auto_scan_config_request_body import UpdateAutoScanConfigRequestBody
344
+ from huaweicloudsdkdcs.v2.model.update_bandwidth_info_request import UpdateBandwidthInfoRequest
345
+ from huaweicloudsdkdcs.v2.model.update_bandwidth_request import UpdateBandwidthRequest
346
+ from huaweicloudsdkdcs.v2.model.update_bandwidth_resp import UpdateBandwidthResp
347
+ from huaweicloudsdkdcs.v2.model.update_bandwidth_response import UpdateBandwidthResponse
327
348
  from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_request import UpdateBigkeyAutoscanConfigRequest
328
349
  from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_response import UpdateBigkeyAutoscanConfigResponse
329
350
  from huaweicloudsdkdcs.v2.model.update_client_ip_transparent_transmission_request import UpdateClientIpTransparentTransmissionRequest
@@ -336,8 +357,12 @@ from huaweicloudsdkdcs.v2.model.update_configurations_response import UpdateConf
336
357
  from huaweicloudsdkdcs.v2.model.update_custom_template_body import UpdateCustomTemplateBody
337
358
  from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_request import UpdateExpireAutoScanConfigRequest
338
359
  from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_response import UpdateExpireAutoScanConfigResponse
360
+ from huaweicloudsdkdcs.v2.model.update_group_bandwidth_info_request import UpdateGroupBandwidthInfoRequest
339
361
  from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_request import UpdateHotkeyAutoScanConfigRequest
340
362
  from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_response import UpdateHotkeyAutoScanConfigResponse
363
+ from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_request import UpdateInstanceBandwidthAutoScalingPolicyRequest
364
+ from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_request_body import UpdateInstanceBandwidthAutoScalingPolicyRequestBody
365
+ from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_auto_scaling_policy_response import UpdateInstanceBandwidthAutoScalingPolicyResponse
341
366
  from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_request import UpdateInstanceBandwidthRequest
342
367
  from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_response import UpdateInstanceBandwidthResponse
343
368
  from huaweicloudsdkdcs.v2.model.update_instance_config_request import UpdateInstanceConfigRequest
@@ -350,11 +375,17 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigra
350
375
  from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse
351
376
  from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest
352
377
  from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse
378
+ from huaweicloudsdkdcs.v2.model.update_public_ip_request import UpdatePublicIpRequest
379
+ from huaweicloudsdkdcs.v2.model.update_public_ip_request_body import UpdatePublicIpRequestBody
380
+ from huaweicloudsdkdcs.v2.model.update_public_ip_response import UpdatePublicIpResponse
353
381
  from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody
354
382
  from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest
355
383
  from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse
356
384
  from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest
357
385
  from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse
386
+ from huaweicloudsdkdcs.v2.model.upgrade_instance_minor_version_request import UpgradeInstanceMinorVersionRequest
387
+ from huaweicloudsdkdcs.v2.model.upgrade_instance_minor_version_response import UpgradeInstanceMinorVersionResponse
388
+ from huaweicloudsdkdcs.v2.model.upgrade_minor_version_request_body import UpgradeMinorVersionRequestBody
358
389
  from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest
359
390
  from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse
360
391
  from huaweicloudsdkdcs.v2.model.whitelist import Whitelist
@@ -0,0 +1,258 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BandwidthAutoScalingPolicy:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'window_size': 'int',
21
+ 'bandwidth_usage_upper_threshold': 'int',
22
+ 'scale_out_cooldown': 'int',
23
+ 'scale_in_enabled': 'bool',
24
+ 'bandwidth_usage_lower_threshold': 'int',
25
+ 'scale_in_cooldown': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'window_size': 'window_size',
30
+ 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold',
31
+ 'scale_out_cooldown': 'scale_out_cooldown',
32
+ 'scale_in_enabled': 'scale_in_enabled',
33
+ 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold',
34
+ 'scale_in_cooldown': 'scale_in_cooldown'
35
+ }
36
+
37
+ def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None):
38
+ """BandwidthAutoScalingPolicy
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
43
+ :type window_size: int
44
+ :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
45
+ :type bandwidth_usage_upper_threshold: int
46
+ :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
47
+ :type scale_out_cooldown: int
48
+ :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
49
+ :type scale_in_enabled: bool
50
+ :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
51
+ :type bandwidth_usage_lower_threshold: int
52
+ :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
53
+ :type scale_in_cooldown: int
54
+ """
55
+
56
+
57
+
58
+ self._window_size = None
59
+ self._bandwidth_usage_upper_threshold = None
60
+ self._scale_out_cooldown = None
61
+ self._scale_in_enabled = None
62
+ self._bandwidth_usage_lower_threshold = None
63
+ self._scale_in_cooldown = None
64
+ self.discriminator = None
65
+
66
+ self.window_size = window_size
67
+ self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
68
+ if scale_out_cooldown is not None:
69
+ self.scale_out_cooldown = scale_out_cooldown
70
+ if scale_in_enabled is not None:
71
+ self.scale_in_enabled = scale_in_enabled
72
+ if bandwidth_usage_lower_threshold is not None:
73
+ self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
74
+ if scale_in_cooldown is not None:
75
+ self.scale_in_cooldown = scale_in_cooldown
76
+
77
+ @property
78
+ def window_size(self):
79
+ """Gets the window_size of this BandwidthAutoScalingPolicy.
80
+
81
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
82
+
83
+ :return: The window_size of this BandwidthAutoScalingPolicy.
84
+ :rtype: int
85
+ """
86
+ return self._window_size
87
+
88
+ @window_size.setter
89
+ def window_size(self, window_size):
90
+ """Sets the window_size of this BandwidthAutoScalingPolicy.
91
+
92
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
93
+
94
+ :param window_size: The window_size of this BandwidthAutoScalingPolicy.
95
+ :type window_size: int
96
+ """
97
+ self._window_size = window_size
98
+
99
+ @property
100
+ def bandwidth_usage_upper_threshold(self):
101
+ """Gets the bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
102
+
103
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
104
+
105
+ :return: The bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
106
+ :rtype: int
107
+ """
108
+ return self._bandwidth_usage_upper_threshold
109
+
110
+ @bandwidth_usage_upper_threshold.setter
111
+ def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold):
112
+ """Sets the bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
113
+
114
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
115
+
116
+ :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
117
+ :type bandwidth_usage_upper_threshold: int
118
+ """
119
+ self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
120
+
121
+ @property
122
+ def scale_out_cooldown(self):
123
+ """Gets the scale_out_cooldown of this BandwidthAutoScalingPolicy.
124
+
125
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
126
+
127
+ :return: The scale_out_cooldown of this BandwidthAutoScalingPolicy.
128
+ :rtype: int
129
+ """
130
+ return self._scale_out_cooldown
131
+
132
+ @scale_out_cooldown.setter
133
+ def scale_out_cooldown(self, scale_out_cooldown):
134
+ """Sets the scale_out_cooldown of this BandwidthAutoScalingPolicy.
135
+
136
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
137
+
138
+ :param scale_out_cooldown: The scale_out_cooldown of this BandwidthAutoScalingPolicy.
139
+ :type scale_out_cooldown: int
140
+ """
141
+ self._scale_out_cooldown = scale_out_cooldown
142
+
143
+ @property
144
+ def scale_in_enabled(self):
145
+ """Gets the scale_in_enabled of this BandwidthAutoScalingPolicy.
146
+
147
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
148
+
149
+ :return: The scale_in_enabled of this BandwidthAutoScalingPolicy.
150
+ :rtype: bool
151
+ """
152
+ return self._scale_in_enabled
153
+
154
+ @scale_in_enabled.setter
155
+ def scale_in_enabled(self, scale_in_enabled):
156
+ """Sets the scale_in_enabled of this BandwidthAutoScalingPolicy.
157
+
158
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
159
+
160
+ :param scale_in_enabled: The scale_in_enabled of this BandwidthAutoScalingPolicy.
161
+ :type scale_in_enabled: bool
162
+ """
163
+ self._scale_in_enabled = scale_in_enabled
164
+
165
+ @property
166
+ def bandwidth_usage_lower_threshold(self):
167
+ """Gets the bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
168
+
169
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
170
+
171
+ :return: The bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
172
+ :rtype: int
173
+ """
174
+ return self._bandwidth_usage_lower_threshold
175
+
176
+ @bandwidth_usage_lower_threshold.setter
177
+ def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold):
178
+ """Sets the bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
179
+
180
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
181
+
182
+ :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
183
+ :type bandwidth_usage_lower_threshold: int
184
+ """
185
+ self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
186
+
187
+ @property
188
+ def scale_in_cooldown(self):
189
+ """Gets the scale_in_cooldown of this BandwidthAutoScalingPolicy.
190
+
191
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
192
+
193
+ :return: The scale_in_cooldown of this BandwidthAutoScalingPolicy.
194
+ :rtype: int
195
+ """
196
+ return self._scale_in_cooldown
197
+
198
+ @scale_in_cooldown.setter
199
+ def scale_in_cooldown(self, scale_in_cooldown):
200
+ """Sets the scale_in_cooldown of this BandwidthAutoScalingPolicy.
201
+
202
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
203
+
204
+ :param scale_in_cooldown: The scale_in_cooldown of this BandwidthAutoScalingPolicy.
205
+ :type scale_in_cooldown: int
206
+ """
207
+ self._scale_in_cooldown = scale_in_cooldown
208
+
209
+ def to_dict(self):
210
+ """Returns the model properties as a dict"""
211
+ result = {}
212
+
213
+ for attr, _ in six.iteritems(self.openapi_types):
214
+ value = getattr(self, attr)
215
+ if isinstance(value, list):
216
+ result[attr] = list(map(
217
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
+ value
219
+ ))
220
+ elif hasattr(value, "to_dict"):
221
+ result[attr] = value.to_dict()
222
+ elif isinstance(value, dict):
223
+ result[attr] = dict(map(
224
+ lambda item: (item[0], item[1].to_dict())
225
+ if hasattr(item[1], "to_dict") else item,
226
+ value.items()
227
+ ))
228
+ else:
229
+ if attr in self.sensitive_list:
230
+ result[attr] = "****"
231
+ else:
232
+ result[attr] = value
233
+
234
+ return result
235
+
236
+ def to_str(self):
237
+ """Returns the string representation of the model"""
238
+ import simplejson as json
239
+ if six.PY2:
240
+ import sys
241
+ reload(sys)
242
+ sys.setdefaultencoding("utf-8")
243
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
244
+
245
+ def __repr__(self):
246
+ """For `print`"""
247
+ return self.to_str()
248
+
249
+ def __eq__(self, other):
250
+ """Returns true if both objects are equal"""
251
+ if not isinstance(other, BandwidthAutoScalingPolicy):
252
+ return False
253
+
254
+ return self.__dict__ == other.__dict__
255
+
256
+ def __ne__(self, other):
257
+ """Returns true if both objects are not equal"""
258
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ChangeNodesStartStopStatusBody:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'node_ids': 'list[str]',
21
+ 'action': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'node_ids': 'node_ids',
26
+ 'action': 'action'
27
+ }
28
+
29
+ def __init__(self, node_ids=None, action=None):
30
+ """ChangeNodesStartStopStatusBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param node_ids: 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。
35
+ :type node_ids: list[str]
36
+ :param action: 对实例节点的操作: start:开启节点 stop:关闭节点
37
+ :type action: str
38
+ """
39
+
40
+
41
+
42
+ self._node_ids = None
43
+ self._action = None
44
+ self.discriminator = None
45
+
46
+ if node_ids is not None:
47
+ self.node_ids = node_ids
48
+ if action is not None:
49
+ self.action = action
50
+
51
+ @property
52
+ def node_ids(self):
53
+ """Gets the node_ids of this ChangeNodesStartStopStatusBody.
54
+
55
+ 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。
56
+
57
+ :return: The node_ids of this ChangeNodesStartStopStatusBody.
58
+ :rtype: list[str]
59
+ """
60
+ return self._node_ids
61
+
62
+ @node_ids.setter
63
+ def node_ids(self, node_ids):
64
+ """Sets the node_ids of this ChangeNodesStartStopStatusBody.
65
+
66
+ 实例需要启停的节点ID列表。未配置该参数时,默认启停实例全部节点。
67
+
68
+ :param node_ids: The node_ids of this ChangeNodesStartStopStatusBody.
69
+ :type node_ids: list[str]
70
+ """
71
+ self._node_ids = node_ids
72
+
73
+ @property
74
+ def action(self):
75
+ """Gets the action of this ChangeNodesStartStopStatusBody.
76
+
77
+ 对实例节点的操作: start:开启节点 stop:关闭节点
78
+
79
+ :return: The action of this ChangeNodesStartStopStatusBody.
80
+ :rtype: str
81
+ """
82
+ return self._action
83
+
84
+ @action.setter
85
+ def action(self, action):
86
+ """Sets the action of this ChangeNodesStartStopStatusBody.
87
+
88
+ 对实例节点的操作: start:开启节点 stop:关闭节点
89
+
90
+ :param action: The action of this ChangeNodesStartStopStatusBody.
91
+ :type action: str
92
+ """
93
+ self._action = action
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ChangeNodesStartStopStatusBody):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ChangeNodesStartStopStatusRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'instance_id': 'str',
21
+ 'body': 'ChangeNodesStartStopStatusBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, body=None):
30
+ """ChangeNodesStartStopStatusRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: 实例ID。
35
+ :type instance_id: str
36
+ :param body: Body of the ChangeNodesStartStopStatusRequest
37
+ :type body: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusBody`
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def instance_id(self):
52
+ """Gets the instance_id of this ChangeNodesStartStopStatusRequest.
53
+
54
+ 实例ID。
55
+
56
+ :return: The instance_id of this ChangeNodesStartStopStatusRequest.
57
+ :rtype: str
58
+ """
59
+ return self._instance_id
60
+
61
+ @instance_id.setter
62
+ def instance_id(self, instance_id):
63
+ """Sets the instance_id of this ChangeNodesStartStopStatusRequest.
64
+
65
+ 实例ID。
66
+
67
+ :param instance_id: The instance_id of this ChangeNodesStartStopStatusRequest.
68
+ :type instance_id: str
69
+ """
70
+ self._instance_id = instance_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this ChangeNodesStartStopStatusRequest.
75
+
76
+ :return: The body of this ChangeNodesStartStopStatusRequest.
77
+ :rtype: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this ChangeNodesStartStopStatusRequest.
84
+
85
+ :param body: The body of this ChangeNodesStartStopStatusRequest.
86
+ :type body: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, ChangeNodesStartStopStatusRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other