huaweicloudsdkdcs 3.1.148__py2.py3-none-any.whl → 3.1.149__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 +29 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +604 -0
- huaweicloudsdkdcs/v2/dcs_client.py +604 -0
- huaweicloudsdkdcs/v2/model/__init__.py +29 -0
- huaweicloudsdkdcs/v2/model/band_width.py +144 -0
- huaweicloudsdkdcs/v2/model/create_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request.py +139 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request_body.py +143 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_response.py +116 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_response.py +116 -0
- huaweicloudsdkdcs/v2/model/dims_info.py +144 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_request.py +142 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_response.py +85 -0
- huaweicloudsdkdcs/v2/model/key_space.py +202 -0
- huaweicloudsdkdcs/v2/model/key_type_byte.py +144 -0
- huaweicloudsdkdcs/v2/model/key_type_num.py +144 -0
- huaweicloudsdkdcs/v2/model/largest_key.py +202 -0
- huaweicloudsdkdcs/v2/model/largest_key_prefix.py +202 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_request.py +201 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_response.py +174 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request.py +139 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request_body.py +144 -0
- huaweicloudsdkdcs/v2/model/migrate_az_response.py +85 -0
- huaweicloudsdkdcs/v2/model/offline_key_analysis_record.py +231 -0
- huaweicloudsdkdcs/v2/model/rename_command_resp.py +119 -3
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_response.py +85 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_response.py +290 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_response.py +580 -0
- huaweicloudsdkdcs/v2/model/topology_info.py +538 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_response.py +116 -0
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/RECORD +40 -11
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.149.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.band_width import BandWidth
|
|
18
19
|
from huaweicloudsdkdcs.v2.model.bandwidth_auto_scaling_policy import BandwidthAutoScalingPolicy
|
|
19
20
|
from huaweicloudsdkdcs.v2.model.bandwidth_info import BandwidthInfo
|
|
20
21
|
from huaweicloudsdkdcs.v2.model.batch_create_or_delete_tags_request import BatchCreateOrDeleteTagsRequest
|
|
@@ -74,6 +75,9 @@ from huaweicloudsdkdcs.v2.model.create_instance_response import CreateInstanceRe
|
|
|
74
75
|
from huaweicloudsdkdcs.v2.model.create_migration_task_body import CreateMigrationTaskBody
|
|
75
76
|
from huaweicloudsdkdcs.v2.model.create_migration_task_request import CreateMigrationTaskRequest
|
|
76
77
|
from huaweicloudsdkdcs.v2.model.create_migration_task_response import CreateMigrationTaskResponse
|
|
78
|
+
from huaweicloudsdkdcs.v2.model.create_offline_key_analysis_request import CreateOfflineKeyAnalysisRequest
|
|
79
|
+
from huaweicloudsdkdcs.v2.model.create_offline_key_analysis_request_body import CreateOfflineKeyAnalysisRequestBody
|
|
80
|
+
from huaweicloudsdkdcs.v2.model.create_offline_key_analysis_response import CreateOfflineKeyAnalysisResponse
|
|
77
81
|
from huaweicloudsdkdcs.v2.model.create_online_migration_task_body import CreateOnlineMigrationTaskBody
|
|
78
82
|
from huaweicloudsdkdcs.v2.model.create_online_migration_task_request import CreateOnlineMigrationTaskRequest
|
|
79
83
|
from huaweicloudsdkdcs.v2.model.create_online_migration_task_response import CreateOnlineMigrationTaskResponse
|
|
@@ -111,6 +115,8 @@ from huaweicloudsdkdcs.v2.model.delete_ip_from_domain_name_response import Delet
|
|
|
111
115
|
from huaweicloudsdkdcs.v2.model.delete_migrate_task_request import DeleteMigrateTaskRequest
|
|
112
116
|
from huaweicloudsdkdcs.v2.model.delete_migration_task_request import DeleteMigrationTaskRequest
|
|
113
117
|
from huaweicloudsdkdcs.v2.model.delete_migration_task_response import DeleteMigrationTaskResponse
|
|
118
|
+
from huaweicloudsdkdcs.v2.model.delete_offline_key_analysis_task_request import DeleteOfflineKeyAnalysisTaskRequest
|
|
119
|
+
from huaweicloudsdkdcs.v2.model.delete_offline_key_analysis_task_response import DeleteOfflineKeyAnalysisTaskResponse
|
|
114
120
|
from huaweicloudsdkdcs.v2.model.delete_public_ip_request import DeletePublicIpRequest
|
|
115
121
|
from huaweicloudsdkdcs.v2.model.delete_public_ip_response import DeletePublicIpResponse
|
|
116
122
|
from huaweicloudsdkdcs.v2.model.delete_single_instance_request import DeleteSingleInstanceRequest
|
|
@@ -121,9 +127,12 @@ from huaweicloudsdkdcs.v2.model.diagnosis_item import DiagnosisItem
|
|
|
121
127
|
from huaweicloudsdkdcs.v2.model.diagnosis_node_report import DiagnosisNodeReport
|
|
122
128
|
from huaweicloudsdkdcs.v2.model.diagnosis_report_info import DiagnosisReportInfo
|
|
123
129
|
from huaweicloudsdkdcs.v2.model.dim_child import DimChild
|
|
130
|
+
from huaweicloudsdkdcs.v2.model.dims_info import DimsInfo
|
|
124
131
|
from huaweicloudsdkdcs.v2.model.domain_name_entity import DomainNameEntity
|
|
125
132
|
from huaweicloudsdkdcs.v2.model.domain_name_info import DomainNameInfo
|
|
126
133
|
from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq
|
|
134
|
+
from huaweicloudsdkdcs.v2.model.download_hot_key_request import DownloadHotKeyRequest
|
|
135
|
+
from huaweicloudsdkdcs.v2.model.download_hot_key_response import DownloadHotKeyResponse
|
|
127
136
|
from huaweicloudsdkdcs.v2.model.download_ssl_cert_request import DownloadSslCertRequest
|
|
128
137
|
from huaweicloudsdkdcs.v2.model.download_ssl_cert_response import DownloadSslCertResponse
|
|
129
138
|
from huaweicloudsdkdcs.v2.model.exchange_instance_ip_request import ExchangeInstanceIpRequest
|
|
@@ -163,6 +172,11 @@ from huaweicloudsdkdcs.v2.model.instances import Instances
|
|
|
163
172
|
from huaweicloudsdkdcs.v2.model.instances_monitored_object import InstancesMonitoredObject
|
|
164
173
|
from huaweicloudsdkdcs.v2.model.ip_exchange_request import IpExchangeRequest
|
|
165
174
|
from huaweicloudsdkdcs.v2.model.item import Item
|
|
175
|
+
from huaweicloudsdkdcs.v2.model.key_space import KeySpace
|
|
176
|
+
from huaweicloudsdkdcs.v2.model.key_type_byte import KeyTypeByte
|
|
177
|
+
from huaweicloudsdkdcs.v2.model.key_type_num import KeyTypeNum
|
|
178
|
+
from huaweicloudsdkdcs.v2.model.largest_key import LargestKey
|
|
179
|
+
from huaweicloudsdkdcs.v2.model.largest_key_prefix import LargestKeyPrefix
|
|
166
180
|
from huaweicloudsdkdcs.v2.model.links_item import LinksItem
|
|
167
181
|
from huaweicloudsdkdcs.v2.model.list_acl_accounts_request import ListAclAccountsRequest
|
|
168
182
|
from huaweicloudsdkdcs.v2.model.list_acl_accounts_response import ListAclAccountsResponse
|
|
@@ -211,6 +225,8 @@ from huaweicloudsdkdcs.v2.model.list_monitored_objects_request import ListMonito
|
|
|
211
225
|
from huaweicloudsdkdcs.v2.model.list_monitored_objects_response import ListMonitoredObjectsResponse
|
|
212
226
|
from huaweicloudsdkdcs.v2.model.list_number_of_instances_in_different_status_request import ListNumberOfInstancesInDifferentStatusRequest
|
|
213
227
|
from huaweicloudsdkdcs.v2.model.list_number_of_instances_in_different_status_response import ListNumberOfInstancesInDifferentStatusResponse
|
|
228
|
+
from huaweicloudsdkdcs.v2.model.list_offline_key_analysis_task_request import ListOfflineKeyAnalysisTaskRequest
|
|
229
|
+
from huaweicloudsdkdcs.v2.model.list_offline_key_analysis_task_response import ListOfflineKeyAnalysisTaskResponse
|
|
214
230
|
from huaweicloudsdkdcs.v2.model.list_redislog_request import ListRedislogRequest
|
|
215
231
|
from huaweicloudsdkdcs.v2.model.list_redislog_response import ListRedislogResponse
|
|
216
232
|
from huaweicloudsdkdcs.v2.model.list_restore_records_request import ListRestoreRecordsRequest
|
|
@@ -228,6 +244,9 @@ from huaweicloudsdkdcs.v2.model.logoff_web_cli_request import LogoffWebCliReques
|
|
|
228
244
|
from huaweicloudsdkdcs.v2.model.logoff_web_cli_response import LogoffWebCliResponse
|
|
229
245
|
from huaweicloudsdkdcs.v2.model.logout_web_cli_body import LogoutWebCliBody
|
|
230
246
|
from huaweicloudsdkdcs.v2.model.maintain_windows_entity import MaintainWindowsEntity
|
|
247
|
+
from huaweicloudsdkdcs.v2.model.migrate_az_request_body import MigrateAZRequestBody
|
|
248
|
+
from huaweicloudsdkdcs.v2.model.migrate_az_request import MigrateAzRequest
|
|
249
|
+
from huaweicloudsdkdcs.v2.model.migrate_az_response import MigrateAzResponse
|
|
231
250
|
from huaweicloudsdkdcs.v2.model.migration_log import MigrationLog
|
|
232
251
|
from huaweicloudsdkdcs.v2.model.migration_task_list import MigrationTaskList
|
|
233
252
|
from huaweicloudsdkdcs.v2.model.migration_update_request_entity import MigrationUpdateRequestEntity
|
|
@@ -236,6 +255,7 @@ from huaweicloudsdkdcs.v2.model.modify_instance_password_body import ModifyInsta
|
|
|
236
255
|
from huaweicloudsdkdcs.v2.model.modify_ip_whitelist_body import ModifyIpWhitelistBody
|
|
237
256
|
from huaweicloudsdkdcs.v2.model.modify_redis_config_body import ModifyRedisConfigBody
|
|
238
257
|
from huaweicloudsdkdcs.v2.model.nodes_info_resp import NodesInfoResp
|
|
258
|
+
from huaweicloudsdkdcs.v2.model.offline_key_analysis_record import OfflineKeyAnalysisRecord
|
|
239
259
|
from huaweicloudsdkdcs.v2.model.operations import Operations
|
|
240
260
|
from huaweicloudsdkdcs.v2.model.priority_body import PriorityBody
|
|
241
261
|
from huaweicloudsdkdcs.v2.model.proxy2_node_monitored_object import Proxy2NodeMonitoredObject
|
|
@@ -261,6 +281,8 @@ from huaweicloudsdkdcs.v2.model.restart_or_flush_instances_response import Resta
|
|
|
261
281
|
from huaweicloudsdkdcs.v2.model.restore_instance_body import RestoreInstanceBody
|
|
262
282
|
from huaweicloudsdkdcs.v2.model.restore_instance_request import RestoreInstanceRequest
|
|
263
283
|
from huaweicloudsdkdcs.v2.model.restore_instance_response import RestoreInstanceResponse
|
|
284
|
+
from huaweicloudsdkdcs.v2.model.rollback_exchange_instance_ip_request import RollbackExchangeInstanceIpRequest
|
|
285
|
+
from huaweicloudsdkdcs.v2.model.rollback_exchange_instance_ip_response import RollbackExchangeInstanceIpResponse
|
|
264
286
|
from huaweicloudsdkdcs.v2.model.runlog_item import RunlogItem
|
|
265
287
|
from huaweicloudsdkdcs.v2.model.scan_clients_request import ScanClientsRequest
|
|
266
288
|
from huaweicloudsdkdcs.v2.model.scan_clients_request_body import ScanClientsRequestBody
|
|
@@ -298,6 +320,8 @@ from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest
|
|
|
298
320
|
from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse
|
|
299
321
|
from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest
|
|
300
322
|
from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse
|
|
323
|
+
from huaweicloudsdkdcs.v2.model.show_instance_topology_request import ShowInstanceTopologyRequest
|
|
324
|
+
from huaweicloudsdkdcs.v2.model.show_instance_topology_response import ShowInstanceTopologyResponse
|
|
301
325
|
from huaweicloudsdkdcs.v2.model.show_instance_version_request import ShowInstanceVersionRequest
|
|
302
326
|
from huaweicloudsdkdcs.v2.model.show_instance_version_response import ShowInstanceVersionResponse
|
|
303
327
|
from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest
|
|
@@ -310,6 +334,8 @@ from huaweicloudsdkdcs.v2.model.show_migration_task_stats_request import ShowMig
|
|
|
310
334
|
from huaweicloudsdkdcs.v2.model.show_migration_task_stats_response import ShowMigrationTaskStatsResponse
|
|
311
335
|
from huaweicloudsdkdcs.v2.model.show_nodes_information_request import ShowNodesInformationRequest
|
|
312
336
|
from huaweicloudsdkdcs.v2.model.show_nodes_information_response import ShowNodesInformationResponse
|
|
337
|
+
from huaweicloudsdkdcs.v2.model.show_offline_key_analysis_task_request import ShowOfflineKeyAnalysisTaskRequest
|
|
338
|
+
from huaweicloudsdkdcs.v2.model.show_offline_key_analysis_task_response import ShowOfflineKeyAnalysisTaskResponse
|
|
313
339
|
from huaweicloudsdkdcs.v2.model.show_quota_of_tenant_request import ShowQuotaOfTenantRequest
|
|
314
340
|
from huaweicloudsdkdcs.v2.model.show_quota_of_tenant_response import ShowQuotaOfTenantResponse
|
|
315
341
|
from huaweicloudsdkdcs.v2.model.show_replication_states_request import ShowReplicationStatesRequest
|
|
@@ -333,6 +359,7 @@ from huaweicloudsdkdcs.v2.model.stop_migration_task_sync_response import StopMig
|
|
|
333
359
|
from huaweicloudsdkdcs.v2.model.sub_step_detail import SubStepDetail
|
|
334
360
|
from huaweicloudsdkdcs.v2.model.tag import Tag
|
|
335
361
|
from huaweicloudsdkdcs.v2.model.target_instance_body import TargetInstanceBody
|
|
362
|
+
from huaweicloudsdkdcs.v2.model.topology_info import TopologyInfo
|
|
336
363
|
from huaweicloudsdkdcs.v2.model.update_acl_account_pass_word_request import UpdateAclAccountPassWordRequest
|
|
337
364
|
from huaweicloudsdkdcs.v2.model.update_acl_account_pass_word_response import UpdateAclAccountPassWordResponse
|
|
338
365
|
from huaweicloudsdkdcs.v2.model.update_acl_account_remark_request import UpdateAclAccountRemarkRequest
|
|
@@ -369,6 +396,8 @@ from huaweicloudsdkdcs.v2.model.update_instance_config_request import UpdateInst
|
|
|
369
396
|
from huaweicloudsdkdcs.v2.model.update_instance_config_response import UpdateInstanceConfigResponse
|
|
370
397
|
from huaweicloudsdkdcs.v2.model.update_instance_request import UpdateInstanceRequest
|
|
371
398
|
from huaweicloudsdkdcs.v2.model.update_instance_response import UpdateInstanceResponse
|
|
399
|
+
from huaweicloudsdkdcs.v2.model.update_ip_whitelist_async_request import UpdateIpWhitelistAsyncRequest
|
|
400
|
+
from huaweicloudsdkdcs.v2.model.update_ip_whitelist_async_response import UpdateIpWhitelistAsyncResponse
|
|
372
401
|
from huaweicloudsdkdcs.v2.model.update_ip_whitelist_request import UpdateIpWhitelistRequest
|
|
373
402
|
from huaweicloudsdkdcs.v2.model.update_ip_whitelist_response import UpdateIpWhitelistResponse
|
|
374
403
|
from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigrationTaskRequest
|
|
@@ -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 BandWidth:
|
|
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
|
+
'input': 'str',
|
|
21
|
+
'output': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'input': 'input',
|
|
26
|
+
'output': 'output'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, input=None, output=None):
|
|
30
|
+
r"""BandWidth
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param input: 上行带宽,单位kbit/s
|
|
35
|
+
:type input: str
|
|
36
|
+
:param output: 下行带宽,单位kbit/s
|
|
37
|
+
:type output: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._input = None
|
|
43
|
+
self._output = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if input is not None:
|
|
47
|
+
self.input = input
|
|
48
|
+
if output is not None:
|
|
49
|
+
self.output = output
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def input(self):
|
|
53
|
+
r"""Gets the input of this BandWidth.
|
|
54
|
+
|
|
55
|
+
上行带宽,单位kbit/s
|
|
56
|
+
|
|
57
|
+
:return: The input of this BandWidth.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
60
|
+
return self._input
|
|
61
|
+
|
|
62
|
+
@input.setter
|
|
63
|
+
def input(self, input):
|
|
64
|
+
r"""Sets the input of this BandWidth.
|
|
65
|
+
|
|
66
|
+
上行带宽,单位kbit/s
|
|
67
|
+
|
|
68
|
+
:param input: The input of this BandWidth.
|
|
69
|
+
:type input: str
|
|
70
|
+
"""
|
|
71
|
+
self._input = input
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def output(self):
|
|
75
|
+
r"""Gets the output of this BandWidth.
|
|
76
|
+
|
|
77
|
+
下行带宽,单位kbit/s
|
|
78
|
+
|
|
79
|
+
:return: The output of this BandWidth.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._output
|
|
83
|
+
|
|
84
|
+
@output.setter
|
|
85
|
+
def output(self, output):
|
|
86
|
+
r"""Sets the output of this BandWidth.
|
|
87
|
+
|
|
88
|
+
下行带宽,单位kbit/s
|
|
89
|
+
|
|
90
|
+
:param output: The output of this BandWidth.
|
|
91
|
+
:type output: str
|
|
92
|
+
"""
|
|
93
|
+
self._output = output
|
|
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, BandWidth):
|
|
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
|
|
@@ -87,7 +87,7 @@ class CreateInstanceBody:
|
|
|
87
87
|
:type name: str
|
|
88
88
|
:param engine: 缓存引擎:Redis和Memcached。
|
|
89
89
|
:type engine: str
|
|
90
|
-
:param engine_version: 缓存版本。
|
|
90
|
+
:param engine_version: 缓存版本。 当缓存引擎为Redis时,取值为4.0及以上。
|
|
91
91
|
:type engine_version: str
|
|
92
92
|
:param capacity: 缓存容量(G Byte) - Redis3.0:单机和主备类型实例取值:2、4、8、16、32、64。Proxy集群实例规格支持64、128、256、512和1024。 - Redis4.0和Redis5.0:单机和主备类型实例取值:0.125、0.25、0.5、1、2、4、8、16、32、64。Cluster集群实例规格支持24、32、48、64、96、128、192、256、384、512、768、1024。 - Memcached:单机和主备类型实例取值:2、4、8、16、32、64。
|
|
93
93
|
:type capacity: float
|
|
@@ -271,7 +271,7 @@ class CreateInstanceBody:
|
|
|
271
271
|
def engine_version(self):
|
|
272
272
|
r"""Gets the engine_version of this CreateInstanceBody.
|
|
273
273
|
|
|
274
|
-
缓存版本。
|
|
274
|
+
缓存版本。 当缓存引擎为Redis时,取值为4.0及以上。
|
|
275
275
|
|
|
276
276
|
:return: The engine_version of this CreateInstanceBody.
|
|
277
277
|
:rtype: str
|
|
@@ -282,7 +282,7 @@ class CreateInstanceBody:
|
|
|
282
282
|
def engine_version(self, engine_version):
|
|
283
283
|
r"""Sets the engine_version of this CreateInstanceBody.
|
|
284
284
|
|
|
285
|
-
缓存版本。
|
|
285
|
+
缓存版本。 当缓存引擎为Redis时,取值为4.0及以上。
|
|
286
286
|
|
|
287
287
|
:param engine_version: The engine_version of this CreateInstanceBody.
|
|
288
288
|
:type engine_version: str
|
|
@@ -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 CreateOfflineKeyAnalysisRequest:
|
|
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': 'CreateOfflineKeyAnalysisRequestBody'
|
|
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
|
+
r"""CreateOfflineKeyAnalysisRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param instance_id: **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
35
|
+
:type instance_id: str
|
|
36
|
+
:param body: Body of the CreateOfflineKeyAnalysisRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkdcs.v2.CreateOfflineKeyAnalysisRequestBody`
|
|
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
|
+
r"""Gets the instance_id of this CreateOfflineKeyAnalysisRequest.
|
|
53
|
+
|
|
54
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
55
|
+
|
|
56
|
+
:return: The instance_id of this CreateOfflineKeyAnalysisRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._instance_id
|
|
60
|
+
|
|
61
|
+
@instance_id.setter
|
|
62
|
+
def instance_id(self, instance_id):
|
|
63
|
+
r"""Sets the instance_id of this CreateOfflineKeyAnalysisRequest.
|
|
64
|
+
|
|
65
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
66
|
+
|
|
67
|
+
:param instance_id: The instance_id of this CreateOfflineKeyAnalysisRequest.
|
|
68
|
+
:type instance_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._instance_id = instance_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def body(self):
|
|
74
|
+
r"""Gets the body of this CreateOfflineKeyAnalysisRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this CreateOfflineKeyAnalysisRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.CreateOfflineKeyAnalysisRequestBody`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
r"""Sets the body of this CreateOfflineKeyAnalysisRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this CreateOfflineKeyAnalysisRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkdcs.v2.CreateOfflineKeyAnalysisRequestBody`
|
|
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, CreateOfflineKeyAnalysisRequest):
|
|
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
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateOfflineKeyAnalysisRequestBody:
|
|
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_id': 'str',
|
|
21
|
+
'backup_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'node_id': 'node_id',
|
|
26
|
+
'backup_id': 'backup_id'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, node_id=None, backup_id=None):
|
|
30
|
+
r"""CreateOfflineKeyAnalysisRequestBody
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param node_id: **参数解释**: 实例节点ID,可通过DCS控制台进入实例的节点管理界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
35
|
+
:type node_id: str
|
|
36
|
+
:param backup_id: **参数解释**: 实例备份ID,可通过DCS控制台进入实例的备份与恢复界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
37
|
+
:type backup_id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._node_id = None
|
|
43
|
+
self._backup_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.node_id = node_id
|
|
47
|
+
if backup_id is not None:
|
|
48
|
+
self.backup_id = backup_id
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def node_id(self):
|
|
52
|
+
r"""Gets the node_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
53
|
+
|
|
54
|
+
**参数解释**: 实例节点ID,可通过DCS控制台进入实例的节点管理界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
55
|
+
|
|
56
|
+
:return: The node_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._node_id
|
|
60
|
+
|
|
61
|
+
@node_id.setter
|
|
62
|
+
def node_id(self, node_id):
|
|
63
|
+
r"""Sets the node_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
64
|
+
|
|
65
|
+
**参数解释**: 实例节点ID,可通过DCS控制台进入实例的节点管理界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
66
|
+
|
|
67
|
+
:param node_id: The node_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
68
|
+
:type node_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._node_id = node_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def backup_id(self):
|
|
74
|
+
r"""Gets the backup_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
75
|
+
|
|
76
|
+
**参数解释**: 实例备份ID,可通过DCS控制台进入实例的备份与恢复界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
77
|
+
|
|
78
|
+
:return: The backup_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._backup_id
|
|
82
|
+
|
|
83
|
+
@backup_id.setter
|
|
84
|
+
def backup_id(self, backup_id):
|
|
85
|
+
r"""Sets the backup_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
86
|
+
|
|
87
|
+
**参数解释**: 实例备份ID,可通过DCS控制台进入实例的备份与恢复界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
88
|
+
|
|
89
|
+
:param backup_id: The backup_id of this CreateOfflineKeyAnalysisRequestBody.
|
|
90
|
+
:type backup_id: str
|
|
91
|
+
"""
|
|
92
|
+
self._backup_id = backup_id
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, CreateOfflineKeyAnalysisRequestBody):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|