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.

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.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/METADATA +2 -2
  53. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/RECORD +56 -21
  54. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/WHEEL +1 -1
  55. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/LICENSE +0 -0
  56. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -18,15 +18,29 @@ class SourceInstanceBody:
18
18
 
19
19
  openapi_types = {
20
20
  'addrs': 'str',
21
- 'password': 'str'
21
+ 'password': 'str',
22
+ 'task_status': 'str',
23
+ 'id': 'str',
24
+ 'ip': 'str',
25
+ 'port': 'str',
26
+ 'name': 'str',
27
+ 'proxy_multi_db': 'bool',
28
+ 'db': 'str'
22
29
  }
23
30
 
24
31
  attribute_map = {
25
32
  'addrs': 'addrs',
26
- 'password': 'password'
33
+ 'password': 'password',
34
+ 'task_status': 'task_status',
35
+ 'id': 'id',
36
+ 'ip': 'ip',
37
+ 'port': 'port',
38
+ 'name': 'name',
39
+ 'proxy_multi_db': 'proxy_multi_db',
40
+ 'db': 'db'
27
41
  }
28
42
 
29
- def __init__(self, addrs=None, password=None):
43
+ def __init__(self, addrs=None, password=None, task_status=None, id=None, ip=None, port=None, name=None, proxy_multi_db=None, db=None):
30
44
  """SourceInstanceBody
31
45
 
32
46
  The model defined in huaweicloud sdk
@@ -35,17 +49,52 @@ class SourceInstanceBody:
35
49
  :type addrs: str
36
50
  :param password: Redis密码,如果设置了密码,则必须填写。
37
51
  :type password: str
52
+ :param task_status: 任务状态。
53
+ :type task_status: str
54
+ :param id: Redis实例ID。
55
+ :type id: str
56
+ :param ip: Redis IP地址。
57
+ :type ip: str
58
+ :param port: Redis端口。
59
+ :type port: str
60
+ :param name: Redis名称。
61
+ :type name: str
62
+ :param proxy_multi_db: proxy实例是否开启了多DB。
63
+ :type proxy_multi_db: bool
64
+ :param db: Redis数据库。
65
+ :type db: str
38
66
  """
39
67
 
40
68
 
41
69
 
42
70
  self._addrs = None
43
71
  self._password = None
72
+ self._task_status = None
73
+ self._id = None
74
+ self._ip = None
75
+ self._port = None
76
+ self._name = None
77
+ self._proxy_multi_db = None
78
+ self._db = None
44
79
  self.discriminator = None
45
80
 
46
81
  self.addrs = addrs
47
82
  if password is not None:
48
83
  self.password = password
84
+ if task_status is not None:
85
+ self.task_status = task_status
86
+ if id is not None:
87
+ self.id = id
88
+ if ip is not None:
89
+ self.ip = ip
90
+ if port is not None:
91
+ self.port = port
92
+ if name is not None:
93
+ self.name = name
94
+ if proxy_multi_db is not None:
95
+ self.proxy_multi_db = proxy_multi_db
96
+ if db is not None:
97
+ self.db = db
49
98
 
50
99
  @property
51
100
  def addrs(self):
@@ -91,6 +140,160 @@ class SourceInstanceBody:
91
140
  """
92
141
  self._password = password
93
142
 
143
+ @property
144
+ def task_status(self):
145
+ """Gets the task_status of this SourceInstanceBody.
146
+
147
+ 任务状态。
148
+
149
+ :return: The task_status of this SourceInstanceBody.
150
+ :rtype: str
151
+ """
152
+ return self._task_status
153
+
154
+ @task_status.setter
155
+ def task_status(self, task_status):
156
+ """Sets the task_status of this SourceInstanceBody.
157
+
158
+ 任务状态。
159
+
160
+ :param task_status: The task_status of this SourceInstanceBody.
161
+ :type task_status: str
162
+ """
163
+ self._task_status = task_status
164
+
165
+ @property
166
+ def id(self):
167
+ """Gets the id of this SourceInstanceBody.
168
+
169
+ Redis实例ID。
170
+
171
+ :return: The id of this SourceInstanceBody.
172
+ :rtype: str
173
+ """
174
+ return self._id
175
+
176
+ @id.setter
177
+ def id(self, id):
178
+ """Sets the id of this SourceInstanceBody.
179
+
180
+ Redis实例ID。
181
+
182
+ :param id: The id of this SourceInstanceBody.
183
+ :type id: str
184
+ """
185
+ self._id = id
186
+
187
+ @property
188
+ def ip(self):
189
+ """Gets the ip of this SourceInstanceBody.
190
+
191
+ Redis IP地址。
192
+
193
+ :return: The ip of this SourceInstanceBody.
194
+ :rtype: str
195
+ """
196
+ return self._ip
197
+
198
+ @ip.setter
199
+ def ip(self, ip):
200
+ """Sets the ip of this SourceInstanceBody.
201
+
202
+ Redis IP地址。
203
+
204
+ :param ip: The ip of this SourceInstanceBody.
205
+ :type ip: str
206
+ """
207
+ self._ip = ip
208
+
209
+ @property
210
+ def port(self):
211
+ """Gets the port of this SourceInstanceBody.
212
+
213
+ Redis端口。
214
+
215
+ :return: The port of this SourceInstanceBody.
216
+ :rtype: str
217
+ """
218
+ return self._port
219
+
220
+ @port.setter
221
+ def port(self, port):
222
+ """Sets the port of this SourceInstanceBody.
223
+
224
+ Redis端口。
225
+
226
+ :param port: The port of this SourceInstanceBody.
227
+ :type port: str
228
+ """
229
+ self._port = port
230
+
231
+ @property
232
+ def name(self):
233
+ """Gets the name of this SourceInstanceBody.
234
+
235
+ Redis名称。
236
+
237
+ :return: The name of this SourceInstanceBody.
238
+ :rtype: str
239
+ """
240
+ return self._name
241
+
242
+ @name.setter
243
+ def name(self, name):
244
+ """Sets the name of this SourceInstanceBody.
245
+
246
+ Redis名称。
247
+
248
+ :param name: The name of this SourceInstanceBody.
249
+ :type name: str
250
+ """
251
+ self._name = name
252
+
253
+ @property
254
+ def proxy_multi_db(self):
255
+ """Gets the proxy_multi_db of this SourceInstanceBody.
256
+
257
+ proxy实例是否开启了多DB。
258
+
259
+ :return: The proxy_multi_db of this SourceInstanceBody.
260
+ :rtype: bool
261
+ """
262
+ return self._proxy_multi_db
263
+
264
+ @proxy_multi_db.setter
265
+ def proxy_multi_db(self, proxy_multi_db):
266
+ """Sets the proxy_multi_db of this SourceInstanceBody.
267
+
268
+ proxy实例是否开启了多DB。
269
+
270
+ :param proxy_multi_db: The proxy_multi_db of this SourceInstanceBody.
271
+ :type proxy_multi_db: bool
272
+ """
273
+ self._proxy_multi_db = proxy_multi_db
274
+
275
+ @property
276
+ def db(self):
277
+ """Gets the db of this SourceInstanceBody.
278
+
279
+ Redis数据库。
280
+
281
+ :return: The db of this SourceInstanceBody.
282
+ :rtype: str
283
+ """
284
+ return self._db
285
+
286
+ @db.setter
287
+ def db(self, db):
288
+ """Sets the db of this SourceInstanceBody.
289
+
290
+ Redis数据库。
291
+
292
+ :param db: The db of this SourceInstanceBody.
293
+ :type db: str
294
+ """
295
+ self._db = db
296
+
94
297
  def to_dict(self):
95
298
  """Returns the model properties as a dict"""
96
299
  result = {}
@@ -30,7 +30,16 @@ class StopMigrationTaskResponse(SdkResponse):
30
30
  'source_instance': 'SourceInstanceBody',
31
31
  'target_instance': 'TargetInstanceBody',
32
32
  'created_at': 'str',
33
- 'updated_at': 'str'
33
+ 'updated_at': 'str',
34
+ 'released_at': 'str',
35
+ 'version': 'str',
36
+ 'resume_mode': 'str',
37
+ 'supported_features': 'list[str]',
38
+ 'tenant_vpc_id': 'str',
39
+ 'tenant_subnet_id': 'str',
40
+ 'tenant_security_group_id': 'str',
41
+ 'bandwidth_limit_mb': 'str',
42
+ 'task_status': 'str'
34
43
  }
35
44
 
36
45
  attribute_map = {
@@ -46,10 +55,19 @@ class StopMigrationTaskResponse(SdkResponse):
46
55
  'source_instance': 'source_instance',
47
56
  'target_instance': 'target_instance',
48
57
  'created_at': 'created_at',
49
- 'updated_at': 'updated_at'
58
+ 'updated_at': 'updated_at',
59
+ 'released_at': 'released_at',
60
+ 'version': 'version',
61
+ 'resume_mode': 'resume_mode',
62
+ 'supported_features': 'supported_features',
63
+ 'tenant_vpc_id': 'tenant_vpc_id',
64
+ 'tenant_subnet_id': 'tenant_subnet_id',
65
+ 'tenant_security_group_id': 'tenant_security_group_id',
66
+ 'bandwidth_limit_mb': 'bandwidth_limit_mb',
67
+ 'task_status': 'task_status'
50
68
  }
51
69
 
52
- def __init__(self, task_id=None, task_name=None, description=None, status=None, migration_type=None, migration_method=None, ecs_tenant_private_ip=None, backup_files=None, network_type=None, source_instance=None, target_instance=None, created_at=None, updated_at=None):
70
+ def __init__(self, task_id=None, task_name=None, description=None, status=None, migration_type=None, migration_method=None, ecs_tenant_private_ip=None, backup_files=None, network_type=None, source_instance=None, target_instance=None, created_at=None, updated_at=None, released_at=None, version=None, resume_mode=None, supported_features=None, tenant_vpc_id=None, tenant_subnet_id=None, tenant_security_group_id=None, bandwidth_limit_mb=None, task_status=None):
53
71
  """StopMigrationTaskResponse
54
72
 
55
73
  The model defined in huaweicloud sdk
@@ -80,6 +98,24 @@ class StopMigrationTaskResponse(SdkResponse):
80
98
  :type created_at: str
81
99
  :param updated_at: 迁移任务完成时间。
82
100
  :type updated_at: str
101
+ :param released_at: 迁移机释放时间。
102
+ :type released_at: str
103
+ :param version: 版本。
104
+ :type version: str
105
+ :param resume_mode: 操作模式,分为auto和manual。
106
+ :type resume_mode: str
107
+ :param supported_features: 支持的特性。
108
+ :type supported_features: list[str]
109
+ :param tenant_vpc_id: 租户VPC ID。
110
+ :type tenant_vpc_id: str
111
+ :param tenant_subnet_id: 租户子网ID。
112
+ :type tenant_subnet_id: str
113
+ :param tenant_security_group_id: 租户安全组ID。
114
+ :type tenant_security_group_id: str
115
+ :param bandwidth_limit_mb: 带宽限制速度。
116
+ :type bandwidth_limit_mb: str
117
+ :param task_status: 任务状态。
118
+ :type task_status: str
83
119
  """
84
120
 
85
121
  super(StopMigrationTaskResponse, self).__init__()
@@ -97,6 +133,15 @@ class StopMigrationTaskResponse(SdkResponse):
97
133
  self._target_instance = None
98
134
  self._created_at = None
99
135
  self._updated_at = None
136
+ self._released_at = None
137
+ self._version = None
138
+ self._resume_mode = None
139
+ self._supported_features = None
140
+ self._tenant_vpc_id = None
141
+ self._tenant_subnet_id = None
142
+ self._tenant_security_group_id = None
143
+ self._bandwidth_limit_mb = None
144
+ self._task_status = None
100
145
  self.discriminator = None
101
146
 
102
147
  if task_id is not None:
@@ -125,6 +170,24 @@ class StopMigrationTaskResponse(SdkResponse):
125
170
  self.created_at = created_at
126
171
  if updated_at is not None:
127
172
  self.updated_at = updated_at
173
+ if released_at is not None:
174
+ self.released_at = released_at
175
+ if version is not None:
176
+ self.version = version
177
+ if resume_mode is not None:
178
+ self.resume_mode = resume_mode
179
+ if supported_features is not None:
180
+ self.supported_features = supported_features
181
+ if tenant_vpc_id is not None:
182
+ self.tenant_vpc_id = tenant_vpc_id
183
+ if tenant_subnet_id is not None:
184
+ self.tenant_subnet_id = tenant_subnet_id
185
+ if tenant_security_group_id is not None:
186
+ self.tenant_security_group_id = tenant_security_group_id
187
+ if bandwidth_limit_mb is not None:
188
+ self.bandwidth_limit_mb = bandwidth_limit_mb
189
+ if task_status is not None:
190
+ self.task_status = task_status
128
191
 
129
192
  @property
130
193
  def task_id(self):
@@ -400,6 +463,204 @@ class StopMigrationTaskResponse(SdkResponse):
400
463
  """
401
464
  self._updated_at = updated_at
402
465
 
466
+ @property
467
+ def released_at(self):
468
+ """Gets the released_at of this StopMigrationTaskResponse.
469
+
470
+ 迁移机释放时间。
471
+
472
+ :return: The released_at of this StopMigrationTaskResponse.
473
+ :rtype: str
474
+ """
475
+ return self._released_at
476
+
477
+ @released_at.setter
478
+ def released_at(self, released_at):
479
+ """Sets the released_at of this StopMigrationTaskResponse.
480
+
481
+ 迁移机释放时间。
482
+
483
+ :param released_at: The released_at of this StopMigrationTaskResponse.
484
+ :type released_at: str
485
+ """
486
+ self._released_at = released_at
487
+
488
+ @property
489
+ def version(self):
490
+ """Gets the version of this StopMigrationTaskResponse.
491
+
492
+ 版本。
493
+
494
+ :return: The version of this StopMigrationTaskResponse.
495
+ :rtype: str
496
+ """
497
+ return self._version
498
+
499
+ @version.setter
500
+ def version(self, version):
501
+ """Sets the version of this StopMigrationTaskResponse.
502
+
503
+ 版本。
504
+
505
+ :param version: The version of this StopMigrationTaskResponse.
506
+ :type version: str
507
+ """
508
+ self._version = version
509
+
510
+ @property
511
+ def resume_mode(self):
512
+ """Gets the resume_mode of this StopMigrationTaskResponse.
513
+
514
+ 操作模式,分为auto和manual。
515
+
516
+ :return: The resume_mode of this StopMigrationTaskResponse.
517
+ :rtype: str
518
+ """
519
+ return self._resume_mode
520
+
521
+ @resume_mode.setter
522
+ def resume_mode(self, resume_mode):
523
+ """Sets the resume_mode of this StopMigrationTaskResponse.
524
+
525
+ 操作模式,分为auto和manual。
526
+
527
+ :param resume_mode: The resume_mode of this StopMigrationTaskResponse.
528
+ :type resume_mode: str
529
+ """
530
+ self._resume_mode = resume_mode
531
+
532
+ @property
533
+ def supported_features(self):
534
+ """Gets the supported_features of this StopMigrationTaskResponse.
535
+
536
+ 支持的特性。
537
+
538
+ :return: The supported_features of this StopMigrationTaskResponse.
539
+ :rtype: list[str]
540
+ """
541
+ return self._supported_features
542
+
543
+ @supported_features.setter
544
+ def supported_features(self, supported_features):
545
+ """Sets the supported_features of this StopMigrationTaskResponse.
546
+
547
+ 支持的特性。
548
+
549
+ :param supported_features: The supported_features of this StopMigrationTaskResponse.
550
+ :type supported_features: list[str]
551
+ """
552
+ self._supported_features = supported_features
553
+
554
+ @property
555
+ def tenant_vpc_id(self):
556
+ """Gets the tenant_vpc_id of this StopMigrationTaskResponse.
557
+
558
+ 租户VPC ID。
559
+
560
+ :return: The tenant_vpc_id of this StopMigrationTaskResponse.
561
+ :rtype: str
562
+ """
563
+ return self._tenant_vpc_id
564
+
565
+ @tenant_vpc_id.setter
566
+ def tenant_vpc_id(self, tenant_vpc_id):
567
+ """Sets the tenant_vpc_id of this StopMigrationTaskResponse.
568
+
569
+ 租户VPC ID。
570
+
571
+ :param tenant_vpc_id: The tenant_vpc_id of this StopMigrationTaskResponse.
572
+ :type tenant_vpc_id: str
573
+ """
574
+ self._tenant_vpc_id = tenant_vpc_id
575
+
576
+ @property
577
+ def tenant_subnet_id(self):
578
+ """Gets the tenant_subnet_id of this StopMigrationTaskResponse.
579
+
580
+ 租户子网ID。
581
+
582
+ :return: The tenant_subnet_id of this StopMigrationTaskResponse.
583
+ :rtype: str
584
+ """
585
+ return self._tenant_subnet_id
586
+
587
+ @tenant_subnet_id.setter
588
+ def tenant_subnet_id(self, tenant_subnet_id):
589
+ """Sets the tenant_subnet_id of this StopMigrationTaskResponse.
590
+
591
+ 租户子网ID。
592
+
593
+ :param tenant_subnet_id: The tenant_subnet_id of this StopMigrationTaskResponse.
594
+ :type tenant_subnet_id: str
595
+ """
596
+ self._tenant_subnet_id = tenant_subnet_id
597
+
598
+ @property
599
+ def tenant_security_group_id(self):
600
+ """Gets the tenant_security_group_id of this StopMigrationTaskResponse.
601
+
602
+ 租户安全组ID。
603
+
604
+ :return: The tenant_security_group_id of this StopMigrationTaskResponse.
605
+ :rtype: str
606
+ """
607
+ return self._tenant_security_group_id
608
+
609
+ @tenant_security_group_id.setter
610
+ def tenant_security_group_id(self, tenant_security_group_id):
611
+ """Sets the tenant_security_group_id of this StopMigrationTaskResponse.
612
+
613
+ 租户安全组ID。
614
+
615
+ :param tenant_security_group_id: The tenant_security_group_id of this StopMigrationTaskResponse.
616
+ :type tenant_security_group_id: str
617
+ """
618
+ self._tenant_security_group_id = tenant_security_group_id
619
+
620
+ @property
621
+ def bandwidth_limit_mb(self):
622
+ """Gets the bandwidth_limit_mb of this StopMigrationTaskResponse.
623
+
624
+ 带宽限制速度。
625
+
626
+ :return: The bandwidth_limit_mb of this StopMigrationTaskResponse.
627
+ :rtype: str
628
+ """
629
+ return self._bandwidth_limit_mb
630
+
631
+ @bandwidth_limit_mb.setter
632
+ def bandwidth_limit_mb(self, bandwidth_limit_mb):
633
+ """Sets the bandwidth_limit_mb of this StopMigrationTaskResponse.
634
+
635
+ 带宽限制速度。
636
+
637
+ :param bandwidth_limit_mb: The bandwidth_limit_mb of this StopMigrationTaskResponse.
638
+ :type bandwidth_limit_mb: str
639
+ """
640
+ self._bandwidth_limit_mb = bandwidth_limit_mb
641
+
642
+ @property
643
+ def task_status(self):
644
+ """Gets the task_status of this StopMigrationTaskResponse.
645
+
646
+ 任务状态。
647
+
648
+ :return: The task_status of this StopMigrationTaskResponse.
649
+ :rtype: str
650
+ """
651
+ return self._task_status
652
+
653
+ @task_status.setter
654
+ def task_status(self, task_status):
655
+ """Sets the task_status of this StopMigrationTaskResponse.
656
+
657
+ 任务状态。
658
+
659
+ :param task_status: The task_status of this StopMigrationTaskResponse.
660
+ :type task_status: str
661
+ """
662
+ self._task_status = task_status
663
+
403
664
  def to_dict(self):
404
665
  """Returns the model properties as a dict"""
405
666
  result = {}
@@ -18,15 +18,19 @@ class StopMigrationTaskResult:
18
18
 
19
19
  openapi_types = {
20
20
  'result': 'str',
21
- 'task_id': 'str'
21
+ 'task_id': 'str',
22
+ 'error_msg': 'str',
23
+ 'error_code': 'str'
22
24
  }
23
25
 
24
26
  attribute_map = {
25
27
  'result': 'result',
26
- 'task_id': 'task_id'
28
+ 'task_id': 'task_id',
29
+ 'error_msg': 'error_msg',
30
+ 'error_code': 'error_code'
27
31
  }
28
32
 
29
- def __init__(self, result=None, task_id=None):
33
+ def __init__(self, result=None, task_id=None, error_msg=None, error_code=None):
30
34
  """StopMigrationTaskResult
31
35
 
32
36
  The model defined in huaweicloud sdk
@@ -35,18 +39,28 @@ class StopMigrationTaskResult:
35
39
  :type result: str
36
40
  :param task_id: 数据迁移任务ID。
37
41
  :type task_id: str
42
+ :param error_msg: 错误信息
43
+ :type error_msg: str
44
+ :param error_code: 错误码
45
+ :type error_code: str
38
46
  """
39
47
 
40
48
 
41
49
 
42
50
  self._result = None
43
51
  self._task_id = None
52
+ self._error_msg = None
53
+ self._error_code = None
44
54
  self.discriminator = None
45
55
 
46
56
  if result is not None:
47
57
  self.result = result
48
58
  if task_id is not None:
49
59
  self.task_id = task_id
60
+ if error_msg is not None:
61
+ self.error_msg = error_msg
62
+ if error_code is not None:
63
+ self.error_code = error_code
50
64
 
51
65
  @property
52
66
  def result(self):
@@ -92,6 +106,50 @@ class StopMigrationTaskResult:
92
106
  """
93
107
  self._task_id = task_id
94
108
 
109
+ @property
110
+ def error_msg(self):
111
+ """Gets the error_msg of this StopMigrationTaskResult.
112
+
113
+ 错误信息
114
+
115
+ :return: The error_msg of this StopMigrationTaskResult.
116
+ :rtype: str
117
+ """
118
+ return self._error_msg
119
+
120
+ @error_msg.setter
121
+ def error_msg(self, error_msg):
122
+ """Sets the error_msg of this StopMigrationTaskResult.
123
+
124
+ 错误信息
125
+
126
+ :param error_msg: The error_msg of this StopMigrationTaskResult.
127
+ :type error_msg: str
128
+ """
129
+ self._error_msg = error_msg
130
+
131
+ @property
132
+ def error_code(self):
133
+ """Gets the error_code of this StopMigrationTaskResult.
134
+
135
+ 错误码
136
+
137
+ :return: The error_code of this StopMigrationTaskResult.
138
+ :rtype: str
139
+ """
140
+ return self._error_code
141
+
142
+ @error_code.setter
143
+ def error_code(self, error_code):
144
+ """Sets the error_code of this StopMigrationTaskResult.
145
+
146
+ 错误码
147
+
148
+ :param error_code: The error_code of this StopMigrationTaskResult.
149
+ :type error_code: str
150
+ """
151
+ self._error_code = error_code
152
+
95
153
  def to_dict(self):
96
154
  """Returns the model properties as a dict"""
97
155
  result = {}