huaweicloudsdkdcs 3.1.85__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.

Files changed (56) hide show
  1. huaweicloudsdkdcs/v2/__init__.py +35 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +753 -28
  3. huaweicloudsdkdcs/v2/dcs_client.py +753 -28
  4. huaweicloudsdkdcs/v2/model/__init__.py +35 -0
  5. huaweicloudsdkdcs/v2/model/backup_files_body.py +2 -1
  6. huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +257 -0
  7. huaweicloudsdkdcs/v2/model/bandwidth_info.py +61 -3
  8. huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py +202 -0
  9. huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py +114 -0
  10. huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py +111 -0
  11. huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py +116 -0
  12. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
  13. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
  14. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
  15. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
  16. huaweicloudsdkdcs/v2/model/client_info.py +4 -4
  17. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  18. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
  19. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
  20. huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
  21. huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
  22. huaweicloudsdkdcs/v2/model/details_body.py +549 -27
  23. huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
  24. huaweicloudsdkdcs/v2/model/migration_task_list.py +366 -18
  25. huaweicloudsdkdcs/v2/model/resize_instance_body.py +3 -3
  26. huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
  27. huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
  28. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  29. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +258 -0
  30. huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
  31. huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
  32. huaweicloudsdkdcs/v2/model/show_migration_task_response.py +264 -3
  33. huaweicloudsdkdcs/v2/model/source_instance_body.py +206 -3
  34. huaweicloudsdkdcs/v2/model/stop_migration_task_response.py +264 -3
  35. huaweicloudsdkdcs/v2/model/stop_migration_task_result.py +61 -3
  36. huaweicloudsdkdcs/v2/model/target_instance_body.py +177 -3
  37. huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
  38. huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
  39. huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
  40. huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
  41. huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
  42. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
  43. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +257 -0
  44. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +258 -0
  45. huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
  46. huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
  47. huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
  48. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
  49. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
  50. huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
  51. huaweicloudsdkdcs/v2/region/dcs_region.py +6 -0
  52. {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/METADATA +2 -2
  53. {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/RECORD +56 -21
  54. {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/WHEEL +1 -1
  55. {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/LICENSE +0 -0
  56. {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -29,7 +29,19 @@ class MigrationTaskList:
29
29
  'target_instance_addrs': 'str',
30
30
  'target_instance_name': 'str',
31
31
  'target_instance_id': 'str',
32
- 'created_at': 'str'
32
+ 'created_at': 'str',
33
+ 'description': 'str',
34
+ 'source_instance_status': 'str',
35
+ 'target_instance_status': 'str',
36
+ 'source_instance_subnet_id': 'str',
37
+ 'target_instance_subnet_id': 'str',
38
+ 'source_instance_spec_code': 'str',
39
+ 'target_instance_spec_code': 'str',
40
+ 'error_message': 'str',
41
+ 'released_at': 'str',
42
+ 'version': 'str',
43
+ 'resume_mode': 'str',
44
+ 'supported_features': 'list[str]'
33
45
  }
34
46
 
35
47
  attribute_map = {
@@ -45,10 +57,22 @@ class MigrationTaskList:
45
57
  'target_instance_addrs': 'target_instance_addrs',
46
58
  'target_instance_name': 'target_instance_name',
47
59
  'target_instance_id': 'target_instance_id',
48
- 'created_at': 'created_at'
60
+ 'created_at': 'created_at',
61
+ 'description': 'description',
62
+ 'source_instance_status': 'source_instance_status',
63
+ 'target_instance_status': 'target_instance_status',
64
+ 'source_instance_subnet_id': 'source_instance_subnet_id',
65
+ 'target_instance_subnet_id': 'target_instance_subnet_id',
66
+ 'source_instance_spec_code': 'source_instance_spec_code',
67
+ 'target_instance_spec_code': 'target_instance_spec_code',
68
+ 'error_message': 'error_message',
69
+ 'released_at': 'released_at',
70
+ 'version': 'version',
71
+ 'resume_mode': 'resume_mode',
72
+ 'supported_features': 'supported_features'
49
73
  }
50
74
 
51
- def __init__(self, task_id=None, task_name=None, status=None, migration_type=None, migration_method=None, ecs_tenant_private_ip=None, data_source=None, source_instance_name=None, source_instance_id=None, target_instance_addrs=None, target_instance_name=None, target_instance_id=None, created_at=None):
75
+ def __init__(self, task_id=None, task_name=None, status=None, migration_type=None, migration_method=None, ecs_tenant_private_ip=None, data_source=None, source_instance_name=None, source_instance_id=None, target_instance_addrs=None, target_instance_name=None, target_instance_id=None, created_at=None, description=None, source_instance_status=None, target_instance_status=None, source_instance_subnet_id=None, target_instance_subnet_id=None, source_instance_spec_code=None, target_instance_spec_code=None, error_message=None, released_at=None, version=None, resume_mode=None, supported_features=None):
52
76
  """MigrationTaskList
53
77
 
54
78
  The model defined in huaweicloud sdk
@@ -57,15 +81,15 @@ class MigrationTaskList:
57
81
  :type task_id: str
58
82
  :param task_name: 迁移任务名称。
59
83
  :type task_name: str
60
- :param status: 迁移任务状态,这个字段的值包括:SUCCESS, FAILED, MIGRATINGTERMINATED
84
+ :param status: 迁移任务状态,这个字段的值包括:SUCCESS(成功), FAILED(失败), MIGRATING(迁移中),TERMINATED(已结束)。
61
85
  :type status: str
62
- :param migration_type: 迁移任务类型,包括备份文件导入和在线迁移两种类型。
86
+ :param migration_type: 迁移任务类型,包括备份文件导入和在线迁移两种类型。
63
87
  :type migration_type: str
64
88
  :param migration_method: 迁移方式,包括全量迁移和增量迁移两种类型。
65
89
  :type migration_method: str
66
- :param ecs_tenant_private_ip: 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单
90
+ :param ecs_tenant_private_ip: 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单。
67
91
  :type ecs_tenant_private_ip: str
68
- :param data_source: 数据源,格式为ip:port或者桶名。
92
+ :param data_source: 源redis地址,格式为ip:port或者桶名。
69
93
  :type data_source: str
70
94
  :param source_instance_name: 源实例名称,若自建redis则为空。
71
95
  :type source_instance_name: str
@@ -77,8 +101,32 @@ class MigrationTaskList:
77
101
  :type target_instance_name: str
78
102
  :param target_instance_id: 目标实例ID。
79
103
  :type target_instance_id: str
80
- :param created_at: 迁移任务创建时间
104
+ :param created_at: 迁移任务创建时间。
81
105
  :type created_at: str
106
+ :param description: 迁移任务描述。
107
+ :type description: str
108
+ :param source_instance_status: 源实例状态,若自建redis则为空。
109
+ :type source_instance_status: str
110
+ :param target_instance_status: 目标实例状态。
111
+ :type target_instance_status: str
112
+ :param source_instance_subnet_id: 源实例子网ID,若自建redis则为空。
113
+ :type source_instance_subnet_id: str
114
+ :param target_instance_subnet_id: 目标实例子网ID。
115
+ :type target_instance_subnet_id: str
116
+ :param source_instance_spec_code: 源实例规格编码,若自建redis则为空。
117
+ :type source_instance_spec_code: str
118
+ :param target_instance_spec_code: 目标实例规格编码。
119
+ :type target_instance_spec_code: str
120
+ :param error_message: 错误信息。
121
+ :type error_message: str
122
+ :param released_at: 迁移机释放时间。
123
+ :type released_at: str
124
+ :param version: 版本。
125
+ :type version: str
126
+ :param resume_mode: 操作模式,分为auto和manual。
127
+ :type resume_mode: str
128
+ :param supported_features: 支持的特性。
129
+ :type supported_features: list[str]
82
130
  """
83
131
 
84
132
 
@@ -96,6 +144,18 @@ class MigrationTaskList:
96
144
  self._target_instance_name = None
97
145
  self._target_instance_id = None
98
146
  self._created_at = None
147
+ self._description = None
148
+ self._source_instance_status = None
149
+ self._target_instance_status = None
150
+ self._source_instance_subnet_id = None
151
+ self._target_instance_subnet_id = None
152
+ self._source_instance_spec_code = None
153
+ self._target_instance_spec_code = None
154
+ self._error_message = None
155
+ self._released_at = None
156
+ self._version = None
157
+ self._resume_mode = None
158
+ self._supported_features = None
99
159
  self.discriminator = None
100
160
 
101
161
  if task_id is not None:
@@ -124,6 +184,30 @@ class MigrationTaskList:
124
184
  self.target_instance_id = target_instance_id
125
185
  if created_at is not None:
126
186
  self.created_at = created_at
187
+ if description is not None:
188
+ self.description = description
189
+ if source_instance_status is not None:
190
+ self.source_instance_status = source_instance_status
191
+ if target_instance_status is not None:
192
+ self.target_instance_status = target_instance_status
193
+ if source_instance_subnet_id is not None:
194
+ self.source_instance_subnet_id = source_instance_subnet_id
195
+ if target_instance_subnet_id is not None:
196
+ self.target_instance_subnet_id = target_instance_subnet_id
197
+ if source_instance_spec_code is not None:
198
+ self.source_instance_spec_code = source_instance_spec_code
199
+ if target_instance_spec_code is not None:
200
+ self.target_instance_spec_code = target_instance_spec_code
201
+ if error_message is not None:
202
+ self.error_message = error_message
203
+ if released_at is not None:
204
+ self.released_at = released_at
205
+ if version is not None:
206
+ self.version = version
207
+ if resume_mode is not None:
208
+ self.resume_mode = resume_mode
209
+ if supported_features is not None:
210
+ self.supported_features = supported_features
127
211
 
128
212
  @property
129
213
  def task_id(self):
@@ -173,7 +257,7 @@ class MigrationTaskList:
173
257
  def status(self):
174
258
  """Gets the status of this MigrationTaskList.
175
259
 
176
- 迁移任务状态,这个字段的值包括:SUCCESS, FAILED, MIGRATINGTERMINATED
260
+ 迁移任务状态,这个字段的值包括:SUCCESS(成功), FAILED(失败), MIGRATING(迁移中),TERMINATED(已结束)。
177
261
 
178
262
  :return: The status of this MigrationTaskList.
179
263
  :rtype: str
@@ -184,7 +268,7 @@ class MigrationTaskList:
184
268
  def status(self, status):
185
269
  """Sets the status of this MigrationTaskList.
186
270
 
187
- 迁移任务状态,这个字段的值包括:SUCCESS, FAILED, MIGRATINGTERMINATED
271
+ 迁移任务状态,这个字段的值包括:SUCCESS(成功), FAILED(失败), MIGRATING(迁移中),TERMINATED(已结束)。
188
272
 
189
273
  :param status: The status of this MigrationTaskList.
190
274
  :type status: str
@@ -195,7 +279,7 @@ class MigrationTaskList:
195
279
  def migration_type(self):
196
280
  """Gets the migration_type of this MigrationTaskList.
197
281
 
198
- 迁移任务类型,包括备份文件导入和在线迁移两种类型。
282
+ 迁移任务类型,包括备份文件导入和在线迁移两种类型。
199
283
 
200
284
  :return: The migration_type of this MigrationTaskList.
201
285
  :rtype: str
@@ -206,7 +290,7 @@ class MigrationTaskList:
206
290
  def migration_type(self, migration_type):
207
291
  """Sets the migration_type of this MigrationTaskList.
208
292
 
209
- 迁移任务类型,包括备份文件导入和在线迁移两种类型。
293
+ 迁移任务类型,包括备份文件导入和在线迁移两种类型。
210
294
 
211
295
  :param migration_type: The migration_type of this MigrationTaskList.
212
296
  :type migration_type: str
@@ -239,7 +323,7 @@ class MigrationTaskList:
239
323
  def ecs_tenant_private_ip(self):
240
324
  """Gets the ecs_tenant_private_ip of this MigrationTaskList.
241
325
 
242
- 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单
326
+ 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单。
243
327
 
244
328
  :return: The ecs_tenant_private_ip of this MigrationTaskList.
245
329
  :rtype: str
@@ -250,7 +334,7 @@ class MigrationTaskList:
250
334
  def ecs_tenant_private_ip(self, ecs_tenant_private_ip):
251
335
  """Sets the ecs_tenant_private_ip of this MigrationTaskList.
252
336
 
253
- 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单
337
+ 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单。
254
338
 
255
339
  :param ecs_tenant_private_ip: The ecs_tenant_private_ip of this MigrationTaskList.
256
340
  :type ecs_tenant_private_ip: str
@@ -261,7 +345,7 @@ class MigrationTaskList:
261
345
  def data_source(self):
262
346
  """Gets the data_source of this MigrationTaskList.
263
347
 
264
- 数据源,格式为ip:port或者桶名。
348
+ 源redis地址,格式为ip:port或者桶名。
265
349
 
266
350
  :return: The data_source of this MigrationTaskList.
267
351
  :rtype: str
@@ -272,7 +356,7 @@ class MigrationTaskList:
272
356
  def data_source(self, data_source):
273
357
  """Sets the data_source of this MigrationTaskList.
274
358
 
275
- 数据源,格式为ip:port或者桶名。
359
+ 源redis地址,格式为ip:port或者桶名。
276
360
 
277
361
  :param data_source: The data_source of this MigrationTaskList.
278
362
  :type data_source: str
@@ -393,7 +477,7 @@ class MigrationTaskList:
393
477
  def created_at(self):
394
478
  """Gets the created_at of this MigrationTaskList.
395
479
 
396
- 迁移任务创建时间
480
+ 迁移任务创建时间。
397
481
 
398
482
  :return: The created_at of this MigrationTaskList.
399
483
  :rtype: str
@@ -404,13 +488,277 @@ class MigrationTaskList:
404
488
  def created_at(self, created_at):
405
489
  """Sets the created_at of this MigrationTaskList.
406
490
 
407
- 迁移任务创建时间
491
+ 迁移任务创建时间。
408
492
 
409
493
  :param created_at: The created_at of this MigrationTaskList.
410
494
  :type created_at: str
411
495
  """
412
496
  self._created_at = created_at
413
497
 
498
+ @property
499
+ def description(self):
500
+ """Gets the description of this MigrationTaskList.
501
+
502
+ 迁移任务描述。
503
+
504
+ :return: The description of this MigrationTaskList.
505
+ :rtype: str
506
+ """
507
+ return self._description
508
+
509
+ @description.setter
510
+ def description(self, description):
511
+ """Sets the description of this MigrationTaskList.
512
+
513
+ 迁移任务描述。
514
+
515
+ :param description: The description of this MigrationTaskList.
516
+ :type description: str
517
+ """
518
+ self._description = description
519
+
520
+ @property
521
+ def source_instance_status(self):
522
+ """Gets the source_instance_status of this MigrationTaskList.
523
+
524
+ 源实例状态,若自建redis则为空。
525
+
526
+ :return: The source_instance_status of this MigrationTaskList.
527
+ :rtype: str
528
+ """
529
+ return self._source_instance_status
530
+
531
+ @source_instance_status.setter
532
+ def source_instance_status(self, source_instance_status):
533
+ """Sets the source_instance_status of this MigrationTaskList.
534
+
535
+ 源实例状态,若自建redis则为空。
536
+
537
+ :param source_instance_status: The source_instance_status of this MigrationTaskList.
538
+ :type source_instance_status: str
539
+ """
540
+ self._source_instance_status = source_instance_status
541
+
542
+ @property
543
+ def target_instance_status(self):
544
+ """Gets the target_instance_status of this MigrationTaskList.
545
+
546
+ 目标实例状态。
547
+
548
+ :return: The target_instance_status of this MigrationTaskList.
549
+ :rtype: str
550
+ """
551
+ return self._target_instance_status
552
+
553
+ @target_instance_status.setter
554
+ def target_instance_status(self, target_instance_status):
555
+ """Sets the target_instance_status of this MigrationTaskList.
556
+
557
+ 目标实例状态。
558
+
559
+ :param target_instance_status: The target_instance_status of this MigrationTaskList.
560
+ :type target_instance_status: str
561
+ """
562
+ self._target_instance_status = target_instance_status
563
+
564
+ @property
565
+ def source_instance_subnet_id(self):
566
+ """Gets the source_instance_subnet_id of this MigrationTaskList.
567
+
568
+ 源实例子网ID,若自建redis则为空。
569
+
570
+ :return: The source_instance_subnet_id of this MigrationTaskList.
571
+ :rtype: str
572
+ """
573
+ return self._source_instance_subnet_id
574
+
575
+ @source_instance_subnet_id.setter
576
+ def source_instance_subnet_id(self, source_instance_subnet_id):
577
+ """Sets the source_instance_subnet_id of this MigrationTaskList.
578
+
579
+ 源实例子网ID,若自建redis则为空。
580
+
581
+ :param source_instance_subnet_id: The source_instance_subnet_id of this MigrationTaskList.
582
+ :type source_instance_subnet_id: str
583
+ """
584
+ self._source_instance_subnet_id = source_instance_subnet_id
585
+
586
+ @property
587
+ def target_instance_subnet_id(self):
588
+ """Gets the target_instance_subnet_id of this MigrationTaskList.
589
+
590
+ 目标实例子网ID。
591
+
592
+ :return: The target_instance_subnet_id of this MigrationTaskList.
593
+ :rtype: str
594
+ """
595
+ return self._target_instance_subnet_id
596
+
597
+ @target_instance_subnet_id.setter
598
+ def target_instance_subnet_id(self, target_instance_subnet_id):
599
+ """Sets the target_instance_subnet_id of this MigrationTaskList.
600
+
601
+ 目标实例子网ID。
602
+
603
+ :param target_instance_subnet_id: The target_instance_subnet_id of this MigrationTaskList.
604
+ :type target_instance_subnet_id: str
605
+ """
606
+ self._target_instance_subnet_id = target_instance_subnet_id
607
+
608
+ @property
609
+ def source_instance_spec_code(self):
610
+ """Gets the source_instance_spec_code of this MigrationTaskList.
611
+
612
+ 源实例规格编码,若自建redis则为空。
613
+
614
+ :return: The source_instance_spec_code of this MigrationTaskList.
615
+ :rtype: str
616
+ """
617
+ return self._source_instance_spec_code
618
+
619
+ @source_instance_spec_code.setter
620
+ def source_instance_spec_code(self, source_instance_spec_code):
621
+ """Sets the source_instance_spec_code of this MigrationTaskList.
622
+
623
+ 源实例规格编码,若自建redis则为空。
624
+
625
+ :param source_instance_spec_code: The source_instance_spec_code of this MigrationTaskList.
626
+ :type source_instance_spec_code: str
627
+ """
628
+ self._source_instance_spec_code = source_instance_spec_code
629
+
630
+ @property
631
+ def target_instance_spec_code(self):
632
+ """Gets the target_instance_spec_code of this MigrationTaskList.
633
+
634
+ 目标实例规格编码。
635
+
636
+ :return: The target_instance_spec_code of this MigrationTaskList.
637
+ :rtype: str
638
+ """
639
+ return self._target_instance_spec_code
640
+
641
+ @target_instance_spec_code.setter
642
+ def target_instance_spec_code(self, target_instance_spec_code):
643
+ """Sets the target_instance_spec_code of this MigrationTaskList.
644
+
645
+ 目标实例规格编码。
646
+
647
+ :param target_instance_spec_code: The target_instance_spec_code of this MigrationTaskList.
648
+ :type target_instance_spec_code: str
649
+ """
650
+ self._target_instance_spec_code = target_instance_spec_code
651
+
652
+ @property
653
+ def error_message(self):
654
+ """Gets the error_message of this MigrationTaskList.
655
+
656
+ 错误信息。
657
+
658
+ :return: The error_message of this MigrationTaskList.
659
+ :rtype: str
660
+ """
661
+ return self._error_message
662
+
663
+ @error_message.setter
664
+ def error_message(self, error_message):
665
+ """Sets the error_message of this MigrationTaskList.
666
+
667
+ 错误信息。
668
+
669
+ :param error_message: The error_message of this MigrationTaskList.
670
+ :type error_message: str
671
+ """
672
+ self._error_message = error_message
673
+
674
+ @property
675
+ def released_at(self):
676
+ """Gets the released_at of this MigrationTaskList.
677
+
678
+ 迁移机释放时间。
679
+
680
+ :return: The released_at of this MigrationTaskList.
681
+ :rtype: str
682
+ """
683
+ return self._released_at
684
+
685
+ @released_at.setter
686
+ def released_at(self, released_at):
687
+ """Sets the released_at of this MigrationTaskList.
688
+
689
+ 迁移机释放时间。
690
+
691
+ :param released_at: The released_at of this MigrationTaskList.
692
+ :type released_at: str
693
+ """
694
+ self._released_at = released_at
695
+
696
+ @property
697
+ def version(self):
698
+ """Gets the version of this MigrationTaskList.
699
+
700
+ 版本。
701
+
702
+ :return: The version of this MigrationTaskList.
703
+ :rtype: str
704
+ """
705
+ return self._version
706
+
707
+ @version.setter
708
+ def version(self, version):
709
+ """Sets the version of this MigrationTaskList.
710
+
711
+ 版本。
712
+
713
+ :param version: The version of this MigrationTaskList.
714
+ :type version: str
715
+ """
716
+ self._version = version
717
+
718
+ @property
719
+ def resume_mode(self):
720
+ """Gets the resume_mode of this MigrationTaskList.
721
+
722
+ 操作模式,分为auto和manual。
723
+
724
+ :return: The resume_mode of this MigrationTaskList.
725
+ :rtype: str
726
+ """
727
+ return self._resume_mode
728
+
729
+ @resume_mode.setter
730
+ def resume_mode(self, resume_mode):
731
+ """Sets the resume_mode of this MigrationTaskList.
732
+
733
+ 操作模式,分为auto和manual。
734
+
735
+ :param resume_mode: The resume_mode of this MigrationTaskList.
736
+ :type resume_mode: str
737
+ """
738
+ self._resume_mode = resume_mode
739
+
740
+ @property
741
+ def supported_features(self):
742
+ """Gets the supported_features of this MigrationTaskList.
743
+
744
+ 支持的特性。
745
+
746
+ :return: The supported_features of this MigrationTaskList.
747
+ :rtype: list[str]
748
+ """
749
+ return self._supported_features
750
+
751
+ @supported_features.setter
752
+ def supported_features(self, supported_features):
753
+ """Sets the supported_features of this MigrationTaskList.
754
+
755
+ 支持的特性。
756
+
757
+ :param supported_features: The supported_features of this MigrationTaskList.
758
+ :type supported_features: list[str]
759
+ """
760
+ self._supported_features = supported_features
761
+
414
762
  def to_dict(self):
415
763
  """Returns the model properties as a dict"""
416
764
  result = {}
@@ -51,7 +51,7 @@ class ResizeInstanceBody:
51
51
  :type bss_param: :class:`huaweicloudsdkdcs.v2.BssParamEntity`
52
52
  :param reserved_ip: 需要保留的节点ip。cluster集群缩容时需要填写,不填写时系统将随机删除多余的分片
53
53
  :type reserved_ip: list[str]
54
- :param change_type: 变更类型,Redis 4.0或者5.0主备实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本
54
+ :param change_type: 变更类型,Redis 4.0或者5.0实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本 - addSharding: 添加分片 - instanceType: 实例类型变更[,目前仅支持Redis 4.0/5.0/6.0实例中的主备实例/读写分离实例变更为proxy集群实例、proxy集群实例变更为主备实例/读写分离实例](tag:hws,hws_hk,hws_eu,ctc,sbc,hk_sbc,g42,hk_g42,otc)。
55
55
  :type change_type: str
56
56
  :param available_zones: Redis 4.0或者5.0主备实例进行添加副本时必选,指定每个副本所在的可用区Code,使用前需要先确认该可用区资源是否售罄。 具体查询方法,请参考[查询可用区信息](https://support.huaweicloud.com/api-dcs/ListAvailableZones.html)
57
57
  :type available_zones: list[str]
@@ -176,7 +176,7 @@ class ResizeInstanceBody:
176
176
  def change_type(self):
177
177
  """Gets the change_type of this ResizeInstanceBody.
178
178
 
179
- 变更类型,Redis 4.0或者5.0主备实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本
179
+ 变更类型,Redis 4.0或者5.0实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本 - addSharding: 添加分片 - instanceType: 实例类型变更[,目前仅支持Redis 4.0/5.0/6.0实例中的主备实例/读写分离实例变更为proxy集群实例、proxy集群实例变更为主备实例/读写分离实例](tag:hws,hws_hk,hws_eu,ctc,sbc,hk_sbc,g42,hk_g42,otc)。
180
180
 
181
181
  :return: The change_type of this ResizeInstanceBody.
182
182
  :rtype: str
@@ -187,7 +187,7 @@ class ResizeInstanceBody:
187
187
  def change_type(self, change_type):
188
188
  """Sets the change_type of this ResizeInstanceBody.
189
189
 
190
- 变更类型,Redis 4.0或者5.0主备实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本
190
+ 变更类型,Redis 4.0或者5.0实例进行副本数变更时必选。 - createReplication: 添加副本 - deleteReplication: 删除副本 - addSharding: 添加分片 - instanceType: 实例类型变更[,目前仅支持Redis 4.0/5.0/6.0实例中的主备实例/读写分离实例变更为proxy集群实例、proxy集群实例变更为主备实例/读写分离实例](tag:hws,hws_hk,hws_eu,ctc,sbc,hk_sbc,g42,hk_g42,otc)。
191
191
 
192
192
  :param change_type: The change_type of this ResizeInstanceBody.
193
193
  :type change_type: str
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowBandwidthsRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'instance_id': 'instance_id'
25
+ }
26
+
27
+ def __init__(self, instance_id=None):
28
+ """ShowBandwidthsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param instance_id: 实例ID。
33
+ :type instance_id: str
34
+ """
35
+
36
+
37
+
38
+ self._instance_id = None
39
+ self.discriminator = None
40
+
41
+ self.instance_id = instance_id
42
+
43
+ @property
44
+ def instance_id(self):
45
+ """Gets the instance_id of this ShowBandwidthsRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this ShowBandwidthsRequest.
50
+ :rtype: str
51
+ """
52
+ return self._instance_id
53
+
54
+ @instance_id.setter
55
+ def instance_id(self, instance_id):
56
+ """Sets the instance_id of this ShowBandwidthsRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this ShowBandwidthsRequest.
61
+ :type instance_id: str
62
+ """
63
+ self._instance_id = instance_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowBandwidthsRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other