huaweicloudsdkdcs 3.1.86__py2.py3-none-any.whl → 3.1.132__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.
- huaweicloudsdkdcs/v2/__init__.py +35 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +753 -28
- huaweicloudsdkdcs/v2/dcs_client.py +753 -28
- huaweicloudsdkdcs/v2/model/__init__.py +35 -0
- huaweicloudsdkdcs/v2/model/backup_files_body.py +2 -1
- huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +257 -0
- huaweicloudsdkdcs/v2/model/bandwidth_info.py +61 -3
- huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py +202 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py +114 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py +111 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py +116 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
- huaweicloudsdkdcs/v2/model/client_info.py +4 -4
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
- huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
- huaweicloudsdkdcs/v2/model/details_body.py +549 -27
- huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
- huaweicloudsdkdcs/v2/model/migration_task_list.py +366 -18
- huaweicloudsdkdcs/v2/model/resize_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
- huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +258 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
- huaweicloudsdkdcs/v2/model/show_migration_task_response.py +264 -3
- huaweicloudsdkdcs/v2/model/source_instance_body.py +206 -3
- huaweicloudsdkdcs/v2/model/stop_migration_task_response.py +264 -3
- huaweicloudsdkdcs/v2/model/stop_migration_task_result.py +61 -3
- huaweicloudsdkdcs/v2/model/target_instance_body.py +177 -3
- huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
- huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +257 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +258 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
- huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
- huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
- huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
- huaweicloudsdkdcs/v2/region/dcs_region.py +6 -0
- {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/RECORD +56 -21
- {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.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
|
|
@@ -22,6 +23,10 @@ from huaweicloudsdkdcs.v2.model.batch_delete_body import BatchDeleteBody
|
|
|
22
23
|
from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest
|
|
23
24
|
from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse
|
|
24
25
|
from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult
|
|
26
|
+
from huaweicloudsdkdcs.v2.model.batch_restart_migration_task_result import BatchRestartMigrationTaskResult
|
|
27
|
+
from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_body import BatchRestartOnlineMigrationTasksBody
|
|
28
|
+
from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_request import BatchRestartOnlineMigrationTasksRequest
|
|
29
|
+
from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_response import BatchRestartOnlineMigrationTasksResponse
|
|
25
30
|
from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_request import BatchShowNodesInformationRequest
|
|
26
31
|
from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_response import BatchShowNodesInformationResponse
|
|
27
32
|
from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody
|
|
@@ -35,6 +40,10 @@ from huaweicloudsdkdcs.v2.model.change_master_standby_async_request import Chang
|
|
|
35
40
|
from huaweicloudsdkdcs.v2.model.change_master_standby_async_response import ChangeMasterStandbyAsyncResponse
|
|
36
41
|
from huaweicloudsdkdcs.v2.model.change_master_standby_request import ChangeMasterStandbyRequest
|
|
37
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
|
|
38
47
|
from huaweicloudsdkdcs.v2.model.client_info import ClientInfo
|
|
39
48
|
from huaweicloudsdkdcs.v2.model.cluster_redis_node_monitored_object import ClusterRedisNodeMonitoredObject
|
|
40
49
|
from huaweicloudsdkdcs.v2.model.command_time_taken import CommandTimeTaken
|
|
@@ -94,11 +103,16 @@ from huaweicloudsdkdcs.v2.model.delete_diagnosis_task_request import DeleteDiagn
|
|
|
94
103
|
from huaweicloudsdkdcs.v2.model.delete_diagnosis_task_response import DeleteDiagnosisTaskResponse
|
|
95
104
|
from huaweicloudsdkdcs.v2.model.delete_hotkey_scan_task_request import DeleteHotkeyScanTaskRequest
|
|
96
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
|
|
97
109
|
from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_request import DeleteIpFromDomainNameRequest
|
|
98
110
|
from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_response import DeleteIpFromDomainNameResponse
|
|
99
111
|
from huaweicloudsdkdcs.v2.model.delete_migrate_task_request import DeleteMigrateTaskRequest
|
|
100
112
|
from huaweicloudsdkdcs.v2.model.delete_migration_task_request import DeleteMigrationTaskRequest
|
|
101
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
|
|
102
116
|
from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest
|
|
103
117
|
from huaweicloudsdkdcs.v2.model.delete_single_instance_response import DeleteSingleInstanceResponse
|
|
104
118
|
from huaweicloudsdkdcs.v2.model.details_body import DetailsBody
|
|
@@ -128,6 +142,7 @@ from huaweicloudsdkdcs.v2.model.features import Features
|
|
|
128
142
|
from huaweicloudsdkdcs.v2.model.files import Files
|
|
129
143
|
from huaweicloudsdkdcs.v2.model.flavor_az_object import FlavorAzObject
|
|
130
144
|
from huaweicloudsdkdcs.v2.model.flavors_items import FlavorsItems
|
|
145
|
+
from huaweicloudsdkdcs.v2.model.group_bandwidth_info import GroupBandwidthInfo
|
|
131
146
|
from huaweicloudsdkdcs.v2.model.hang_up_clients_request import HangUpClientsRequest
|
|
132
147
|
from huaweicloudsdkdcs.v2.model.hang_up_clients_request_body import HangUpClientsRequestBody
|
|
133
148
|
from huaweicloudsdkdcs.v2.model.hang_up_clients_response import HangUpClientsResponse
|
|
@@ -257,6 +272,8 @@ from huaweicloudsdkdcs.v2.model.set_online_migration_task_request import SetOnli
|
|
|
257
272
|
from huaweicloudsdkdcs.v2.model.set_online_migration_task_response import SetOnlineMigrationTaskResponse
|
|
258
273
|
from huaweicloudsdkdcs.v2.model.show_background_task_progress_request import ShowBackgroundTaskProgressRequest
|
|
259
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
|
|
260
277
|
from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_request import ShowBigkeyAutoscanConfigRequest
|
|
261
278
|
from huaweicloudsdkdcs.v2.model.show_bigkey_autoscan_config_response import ShowBigkeyAutoscanConfigResponse
|
|
262
279
|
from huaweicloudsdkdcs.v2.model.show_bigkey_scan_task_details_request import ShowBigkeyScanTaskDetailsRequest
|
|
@@ -275,10 +292,14 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_request import ShowH
|
|
|
275
292
|
from huaweicloudsdkdcs.v2.model.show_hotkey_autoscan_config_response import ShowHotkeyAutoscanConfigResponse
|
|
276
293
|
from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotkeyTaskDetailsRequest
|
|
277
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
|
|
278
297
|
from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest
|
|
279
298
|
from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse
|
|
280
299
|
from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest
|
|
281
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
|
|
282
303
|
from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest
|
|
283
304
|
from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse
|
|
284
305
|
from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest
|
|
@@ -320,6 +341,10 @@ from huaweicloudsdkdcs.v2.model.update_acl_account_remark_response import Update
|
|
|
320
341
|
from huaweicloudsdkdcs.v2.model.update_acl_account_request import UpdateAclAccountRequest
|
|
321
342
|
from huaweicloudsdkdcs.v2.model.update_acl_account_response import UpdateAclAccountResponse
|
|
322
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
|
|
323
348
|
from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_request import UpdateBigkeyAutoscanConfigRequest
|
|
324
349
|
from huaweicloudsdkdcs.v2.model.update_bigkey_autoscan_config_response import UpdateBigkeyAutoscanConfigResponse
|
|
325
350
|
from huaweicloudsdkdcs.v2.model.update_client_ip_transparent_transmission_request import UpdateClientIpTransparentTransmissionRequest
|
|
@@ -332,8 +357,12 @@ from huaweicloudsdkdcs.v2.model.update_configurations_response import UpdateConf
|
|
|
332
357
|
from huaweicloudsdkdcs.v2.model.update_custom_template_body import UpdateCustomTemplateBody
|
|
333
358
|
from huaweicloudsdkdcs.v2.model.update_expire_auto_scan_config_request import UpdateExpireAutoScanConfigRequest
|
|
334
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
|
|
335
361
|
from huaweicloudsdkdcs.v2.model.update_hotkey_auto_scan_config_request import UpdateHotkeyAutoScanConfigRequest
|
|
336
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
|
|
337
366
|
from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_request import UpdateInstanceBandwidthRequest
|
|
338
367
|
from huaweicloudsdkdcs.v2.model.update_instance_bandwidth_response import UpdateInstanceBandwidthResponse
|
|
339
368
|
from huaweicloudsdkdcs.v2.model.update_instance_config_request import UpdateInstanceConfigRequest
|
|
@@ -346,11 +375,17 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigra
|
|
|
346
375
|
from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse
|
|
347
376
|
from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest
|
|
348
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
|
|
349
381
|
from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody
|
|
350
382
|
from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest
|
|
351
383
|
from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse
|
|
352
384
|
from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest
|
|
353
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
|
|
354
389
|
from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest
|
|
355
390
|
from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse
|
|
356
391
|
from huaweicloudsdkdcs.v2.model.whitelist import Whitelist
|
|
@@ -55,7 +55,8 @@ class BackupFilesBody:
|
|
|
55
55
|
|
|
56
56
|
if file_source is not None:
|
|
57
57
|
self.file_source = file_source
|
|
58
|
-
|
|
58
|
+
if bucket_name is not None:
|
|
59
|
+
self.bucket_name = bucket_name
|
|
59
60
|
self.files = files
|
|
60
61
|
if backup_id is not None:
|
|
61
62
|
self.backup_id = backup_id
|
|
@@ -0,0 +1,257 @@
|
|
|
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
|
+
self.scale_out_cooldown = scale_out_cooldown
|
|
69
|
+
if scale_in_enabled is not None:
|
|
70
|
+
self.scale_in_enabled = scale_in_enabled
|
|
71
|
+
if bandwidth_usage_lower_threshold is not None:
|
|
72
|
+
self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
|
|
73
|
+
if scale_in_cooldown is not None:
|
|
74
|
+
self.scale_in_cooldown = scale_in_cooldown
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def window_size(self):
|
|
78
|
+
"""Gets the window_size of this BandwidthAutoScalingPolicy.
|
|
79
|
+
|
|
80
|
+
带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
|
|
81
|
+
|
|
82
|
+
:return: The window_size of this BandwidthAutoScalingPolicy.
|
|
83
|
+
:rtype: int
|
|
84
|
+
"""
|
|
85
|
+
return self._window_size
|
|
86
|
+
|
|
87
|
+
@window_size.setter
|
|
88
|
+
def window_size(self, window_size):
|
|
89
|
+
"""Sets the window_size of this BandwidthAutoScalingPolicy.
|
|
90
|
+
|
|
91
|
+
带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
|
|
92
|
+
|
|
93
|
+
:param window_size: The window_size of this BandwidthAutoScalingPolicy.
|
|
94
|
+
:type window_size: int
|
|
95
|
+
"""
|
|
96
|
+
self._window_size = window_size
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def bandwidth_usage_upper_threshold(self):
|
|
100
|
+
"""Gets the bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
|
|
101
|
+
|
|
102
|
+
触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
|
|
103
|
+
|
|
104
|
+
:return: The bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
|
|
105
|
+
:rtype: int
|
|
106
|
+
"""
|
|
107
|
+
return self._bandwidth_usage_upper_threshold
|
|
108
|
+
|
|
109
|
+
@bandwidth_usage_upper_threshold.setter
|
|
110
|
+
def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold):
|
|
111
|
+
"""Sets the bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
|
|
112
|
+
|
|
113
|
+
触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
|
|
114
|
+
|
|
115
|
+
:param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this BandwidthAutoScalingPolicy.
|
|
116
|
+
:type bandwidth_usage_upper_threshold: int
|
|
117
|
+
"""
|
|
118
|
+
self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def scale_out_cooldown(self):
|
|
122
|
+
"""Gets the scale_out_cooldown of this BandwidthAutoScalingPolicy.
|
|
123
|
+
|
|
124
|
+
带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
|
|
125
|
+
|
|
126
|
+
:return: The scale_out_cooldown of this BandwidthAutoScalingPolicy.
|
|
127
|
+
:rtype: int
|
|
128
|
+
"""
|
|
129
|
+
return self._scale_out_cooldown
|
|
130
|
+
|
|
131
|
+
@scale_out_cooldown.setter
|
|
132
|
+
def scale_out_cooldown(self, scale_out_cooldown):
|
|
133
|
+
"""Sets the scale_out_cooldown of this BandwidthAutoScalingPolicy.
|
|
134
|
+
|
|
135
|
+
带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
|
|
136
|
+
|
|
137
|
+
:param scale_out_cooldown: The scale_out_cooldown of this BandwidthAutoScalingPolicy.
|
|
138
|
+
:type scale_out_cooldown: int
|
|
139
|
+
"""
|
|
140
|
+
self._scale_out_cooldown = scale_out_cooldown
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def scale_in_enabled(self):
|
|
144
|
+
"""Gets the scale_in_enabled of this BandwidthAutoScalingPolicy.
|
|
145
|
+
|
|
146
|
+
是否启用带宽自动回缩。默认值:false。该参数暂未启用。
|
|
147
|
+
|
|
148
|
+
:return: The scale_in_enabled of this BandwidthAutoScalingPolicy.
|
|
149
|
+
:rtype: bool
|
|
150
|
+
"""
|
|
151
|
+
return self._scale_in_enabled
|
|
152
|
+
|
|
153
|
+
@scale_in_enabled.setter
|
|
154
|
+
def scale_in_enabled(self, scale_in_enabled):
|
|
155
|
+
"""Sets the scale_in_enabled of this BandwidthAutoScalingPolicy.
|
|
156
|
+
|
|
157
|
+
是否启用带宽自动回缩。默认值:false。该参数暂未启用。
|
|
158
|
+
|
|
159
|
+
:param scale_in_enabled: The scale_in_enabled of this BandwidthAutoScalingPolicy.
|
|
160
|
+
:type scale_in_enabled: bool
|
|
161
|
+
"""
|
|
162
|
+
self._scale_in_enabled = scale_in_enabled
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
def bandwidth_usage_lower_threshold(self):
|
|
166
|
+
"""Gets the bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
|
|
167
|
+
|
|
168
|
+
触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
|
|
169
|
+
|
|
170
|
+
:return: The bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
|
|
171
|
+
:rtype: int
|
|
172
|
+
"""
|
|
173
|
+
return self._bandwidth_usage_lower_threshold
|
|
174
|
+
|
|
175
|
+
@bandwidth_usage_lower_threshold.setter
|
|
176
|
+
def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold):
|
|
177
|
+
"""Sets the bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
|
|
178
|
+
|
|
179
|
+
触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
|
|
180
|
+
|
|
181
|
+
:param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this BandwidthAutoScalingPolicy.
|
|
182
|
+
:type bandwidth_usage_lower_threshold: int
|
|
183
|
+
"""
|
|
184
|
+
self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
def scale_in_cooldown(self):
|
|
188
|
+
"""Gets the scale_in_cooldown of this BandwidthAutoScalingPolicy.
|
|
189
|
+
|
|
190
|
+
带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
|
|
191
|
+
|
|
192
|
+
:return: The scale_in_cooldown of this BandwidthAutoScalingPolicy.
|
|
193
|
+
:rtype: int
|
|
194
|
+
"""
|
|
195
|
+
return self._scale_in_cooldown
|
|
196
|
+
|
|
197
|
+
@scale_in_cooldown.setter
|
|
198
|
+
def scale_in_cooldown(self, scale_in_cooldown):
|
|
199
|
+
"""Sets the scale_in_cooldown of this BandwidthAutoScalingPolicy.
|
|
200
|
+
|
|
201
|
+
带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
|
|
202
|
+
|
|
203
|
+
:param scale_in_cooldown: The scale_in_cooldown of this BandwidthAutoScalingPolicy.
|
|
204
|
+
:type scale_in_cooldown: int
|
|
205
|
+
"""
|
|
206
|
+
self._scale_in_cooldown = scale_in_cooldown
|
|
207
|
+
|
|
208
|
+
def to_dict(self):
|
|
209
|
+
"""Returns the model properties as a dict"""
|
|
210
|
+
result = {}
|
|
211
|
+
|
|
212
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
213
|
+
value = getattr(self, attr)
|
|
214
|
+
if isinstance(value, list):
|
|
215
|
+
result[attr] = list(map(
|
|
216
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
217
|
+
value
|
|
218
|
+
))
|
|
219
|
+
elif hasattr(value, "to_dict"):
|
|
220
|
+
result[attr] = value.to_dict()
|
|
221
|
+
elif isinstance(value, dict):
|
|
222
|
+
result[attr] = dict(map(
|
|
223
|
+
lambda item: (item[0], item[1].to_dict())
|
|
224
|
+
if hasattr(item[1], "to_dict") else item,
|
|
225
|
+
value.items()
|
|
226
|
+
))
|
|
227
|
+
else:
|
|
228
|
+
if attr in self.sensitive_list:
|
|
229
|
+
result[attr] = "****"
|
|
230
|
+
else:
|
|
231
|
+
result[attr] = value
|
|
232
|
+
|
|
233
|
+
return result
|
|
234
|
+
|
|
235
|
+
def to_str(self):
|
|
236
|
+
"""Returns the string representation of the model"""
|
|
237
|
+
import simplejson as json
|
|
238
|
+
if six.PY2:
|
|
239
|
+
import sys
|
|
240
|
+
reload(sys)
|
|
241
|
+
sys.setdefaultencoding("utf-8")
|
|
242
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
243
|
+
|
|
244
|
+
def __repr__(self):
|
|
245
|
+
"""For `print`"""
|
|
246
|
+
return self.to_str()
|
|
247
|
+
|
|
248
|
+
def __eq__(self, other):
|
|
249
|
+
"""Returns true if both objects are equal"""
|
|
250
|
+
if not isinstance(other, BandwidthAutoScalingPolicy):
|
|
251
|
+
return False
|
|
252
|
+
|
|
253
|
+
return self.__dict__ == other.__dict__
|
|
254
|
+
|
|
255
|
+
def __ne__(self, other):
|
|
256
|
+
"""Returns true if both objects are not equal"""
|
|
257
|
+
return not self == other
|
|
@@ -26,7 +26,9 @@ class BandwidthInfo:
|
|
|
26
26
|
'expand_effect_time': 'int',
|
|
27
27
|
'expand_interval_time': 'int',
|
|
28
28
|
'max_expand_count': 'int',
|
|
29
|
-
'task_running': 'bool'
|
|
29
|
+
'task_running': 'bool',
|
|
30
|
+
'assured_bandwidth': 'int',
|
|
31
|
+
'max_bandwidth_for_node': 'int'
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
attribute_map = {
|
|
@@ -39,10 +41,12 @@ class BandwidthInfo:
|
|
|
39
41
|
'expand_effect_time': 'expand_effect_time',
|
|
40
42
|
'expand_interval_time': 'expand_interval_time',
|
|
41
43
|
'max_expand_count': 'max_expand_count',
|
|
42
|
-
'task_running': 'task_running'
|
|
44
|
+
'task_running': 'task_running',
|
|
45
|
+
'assured_bandwidth': 'assured_bandwidth',
|
|
46
|
+
'max_bandwidth_for_node': 'max_bandwidth_for_node'
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
def __init__(self, begin_time=None, end_time=None, current_time=None, bandwidth=None, next_expand_time=None, expand_count=None, expand_effect_time=None, expand_interval_time=None, max_expand_count=None, task_running=None):
|
|
49
|
+
def __init__(self, begin_time=None, end_time=None, current_time=None, bandwidth=None, next_expand_time=None, expand_count=None, expand_effect_time=None, expand_interval_time=None, max_expand_count=None, task_running=None, assured_bandwidth=None, max_bandwidth_for_node=None):
|
|
46
50
|
"""BandwidthInfo
|
|
47
51
|
|
|
48
52
|
The model defined in huaweicloud sdk
|
|
@@ -67,6 +71,10 @@ class BandwidthInfo:
|
|
|
67
71
|
:type max_expand_count: int
|
|
68
72
|
:param task_running: 任务是否运行
|
|
69
73
|
:type task_running: bool
|
|
74
|
+
:param assured_bandwidth: **参数解释**: 实例基准带宽。 **取值范围**: 不涉及。
|
|
75
|
+
:type assured_bandwidth: int
|
|
76
|
+
:param max_bandwidth_for_node: **参数解释**: 节点最大带宽。 **取值范围**: 不涉及。
|
|
77
|
+
:type max_bandwidth_for_node: int
|
|
70
78
|
"""
|
|
71
79
|
|
|
72
80
|
|
|
@@ -81,6 +89,8 @@ class BandwidthInfo:
|
|
|
81
89
|
self._expand_interval_time = None
|
|
82
90
|
self._max_expand_count = None
|
|
83
91
|
self._task_running = None
|
|
92
|
+
self._assured_bandwidth = None
|
|
93
|
+
self._max_bandwidth_for_node = None
|
|
84
94
|
self.discriminator = None
|
|
85
95
|
|
|
86
96
|
if begin_time is not None:
|
|
@@ -103,6 +113,10 @@ class BandwidthInfo:
|
|
|
103
113
|
self.max_expand_count = max_expand_count
|
|
104
114
|
if task_running is not None:
|
|
105
115
|
self.task_running = task_running
|
|
116
|
+
if assured_bandwidth is not None:
|
|
117
|
+
self.assured_bandwidth = assured_bandwidth
|
|
118
|
+
if max_bandwidth_for_node is not None:
|
|
119
|
+
self.max_bandwidth_for_node = max_bandwidth_for_node
|
|
106
120
|
|
|
107
121
|
@property
|
|
108
122
|
def begin_time(self):
|
|
@@ -324,6 +338,50 @@ class BandwidthInfo:
|
|
|
324
338
|
"""
|
|
325
339
|
self._task_running = task_running
|
|
326
340
|
|
|
341
|
+
@property
|
|
342
|
+
def assured_bandwidth(self):
|
|
343
|
+
"""Gets the assured_bandwidth of this BandwidthInfo.
|
|
344
|
+
|
|
345
|
+
**参数解释**: 实例基准带宽。 **取值范围**: 不涉及。
|
|
346
|
+
|
|
347
|
+
:return: The assured_bandwidth of this BandwidthInfo.
|
|
348
|
+
:rtype: int
|
|
349
|
+
"""
|
|
350
|
+
return self._assured_bandwidth
|
|
351
|
+
|
|
352
|
+
@assured_bandwidth.setter
|
|
353
|
+
def assured_bandwidth(self, assured_bandwidth):
|
|
354
|
+
"""Sets the assured_bandwidth of this BandwidthInfo.
|
|
355
|
+
|
|
356
|
+
**参数解释**: 实例基准带宽。 **取值范围**: 不涉及。
|
|
357
|
+
|
|
358
|
+
:param assured_bandwidth: The assured_bandwidth of this BandwidthInfo.
|
|
359
|
+
:type assured_bandwidth: int
|
|
360
|
+
"""
|
|
361
|
+
self._assured_bandwidth = assured_bandwidth
|
|
362
|
+
|
|
363
|
+
@property
|
|
364
|
+
def max_bandwidth_for_node(self):
|
|
365
|
+
"""Gets the max_bandwidth_for_node of this BandwidthInfo.
|
|
366
|
+
|
|
367
|
+
**参数解释**: 节点最大带宽。 **取值范围**: 不涉及。
|
|
368
|
+
|
|
369
|
+
:return: The max_bandwidth_for_node of this BandwidthInfo.
|
|
370
|
+
:rtype: int
|
|
371
|
+
"""
|
|
372
|
+
return self._max_bandwidth_for_node
|
|
373
|
+
|
|
374
|
+
@max_bandwidth_for_node.setter
|
|
375
|
+
def max_bandwidth_for_node(self, max_bandwidth_for_node):
|
|
376
|
+
"""Sets the max_bandwidth_for_node of this BandwidthInfo.
|
|
377
|
+
|
|
378
|
+
**参数解释**: 节点最大带宽。 **取值范围**: 不涉及。
|
|
379
|
+
|
|
380
|
+
:param max_bandwidth_for_node: The max_bandwidth_for_node of this BandwidthInfo.
|
|
381
|
+
:type max_bandwidth_for_node: int
|
|
382
|
+
"""
|
|
383
|
+
self._max_bandwidth_for_node = max_bandwidth_for_node
|
|
384
|
+
|
|
327
385
|
def to_dict(self):
|
|
328
386
|
"""Returns the model properties as a dict"""
|
|
329
387
|
result = {}
|