huaweicloudsdkdcs 3.1.109__py2.py3-none-any.whl → 3.1.111__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.

@@ -24,6 +24,10 @@ from huaweicloudsdkdcs.v2.model.batch_delete_body import BatchDeleteBody
24
24
  from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest
25
25
  from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse
26
26
  from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult
27
+ from huaweicloudsdkdcs.v2.model.batch_restart_migration_task_result import BatchRestartMigrationTaskResult
28
+ from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_body import BatchRestartOnlineMigrationTasksBody
29
+ from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_request import BatchRestartOnlineMigrationTasksRequest
30
+ from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_response import BatchRestartOnlineMigrationTasksResponse
27
31
  from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_request import BatchShowNodesInformationRequest
28
32
  from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_response import BatchShowNodesInformationResponse
29
33
  from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody
@@ -166,6 +166,71 @@ class DcsAsyncClient(Client):
166
166
 
167
167
  return http_info
168
168
 
169
+ def batch_restart_online_migration_tasks_async(self, request):
170
+ """批量重启在线迁移任务
171
+
172
+ 批量重启在线迁移任务,接口响应成功,返回重启在线迁移任务下发结果。
173
+
174
+ Please refer to HUAWEI cloud API Explorer for details.
175
+
176
+
177
+ :param request: Request instance for BatchRestartOnlineMigrationTasks
178
+ :type request: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksRequest`
179
+ :rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksResponse`
180
+ """
181
+ http_info = self._batch_restart_online_migration_tasks_http_info(request)
182
+ return self._call_api(**http_info)
183
+
184
+ def batch_restart_online_migration_tasks_async_invoker(self, request):
185
+ http_info = self._batch_restart_online_migration_tasks_http_info(request)
186
+ return AsyncInvoker(self, http_info)
187
+
188
+ def _batch_restart_online_migration_tasks_http_info(self, request):
189
+ http_info = {
190
+ "method": "POST",
191
+ "resource_path": "/v2/{project_id}/migration-tasks/batch-restart",
192
+ "request_type": request.__class__.__name__,
193
+ "response_type": "BatchRestartOnlineMigrationTasksResponse"
194
+ }
195
+
196
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
197
+
198
+ cname = None
199
+
200
+ collection_formats = {}
201
+
202
+ path_params = {}
203
+
204
+ query_params = []
205
+
206
+ header_params = {}
207
+
208
+ form_params = {}
209
+
210
+ body = None
211
+ if 'body' in local_var_params:
212
+ body = local_var_params['body']
213
+ if isinstance(request, SdkStreamRequest):
214
+ body = request.get_file_stream()
215
+
216
+ response_headers = []
217
+
218
+ header_params['Content-Type'] = http_utils.select_header_content_type(
219
+ ['application/json;charset=UTF-8'])
220
+
221
+ auth_settings = []
222
+
223
+ http_info["cname"] = cname
224
+ http_info["collection_formats"] = collection_formats
225
+ http_info["path_params"] = path_params
226
+ http_info["query_params"] = query_params
227
+ http_info["header_params"] = header_params
228
+ http_info["post_params"] = form_params
229
+ http_info["body"] = body
230
+ http_info["response_headers"] = response_headers
231
+
232
+ return http_info
233
+
169
234
  def batch_show_nodes_information_async(self, request):
170
235
  """批量查询实例节点信息
171
236
 
@@ -166,6 +166,71 @@ class DcsClient(Client):
166
166
 
167
167
  return http_info
168
168
 
169
+ def batch_restart_online_migration_tasks(self, request):
170
+ """批量重启在线迁移任务
171
+
172
+ 批量重启在线迁移任务,接口响应成功,返回重启在线迁移任务下发结果。
173
+
174
+ Please refer to HUAWEI cloud API Explorer for details.
175
+
176
+ :param request: Request instance for BatchRestartOnlineMigrationTasks
177
+ :type request: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksRequest`
178
+ :rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksResponse`
179
+ """
180
+ http_info = self._batch_restart_online_migration_tasks_http_info(request)
181
+ return self._call_api(**http_info)
182
+
183
+ def batch_restart_online_migration_tasks_invoker(self, request):
184
+ http_info = self._batch_restart_online_migration_tasks_http_info(request)
185
+ return SyncInvoker(self, http_info)
186
+
187
+ @classmethod
188
+ def _batch_restart_online_migration_tasks_http_info(cls, request):
189
+ http_info = {
190
+ "method": "POST",
191
+ "resource_path": "/v2/{project_id}/migration-tasks/batch-restart",
192
+ "request_type": request.__class__.__name__,
193
+ "response_type": "BatchRestartOnlineMigrationTasksResponse"
194
+ }
195
+
196
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
197
+
198
+ cname = None
199
+
200
+ collection_formats = {}
201
+
202
+ path_params = {}
203
+
204
+ query_params = []
205
+
206
+ header_params = {}
207
+
208
+ form_params = {}
209
+
210
+ body = None
211
+ if 'body' in local_var_params:
212
+ body = local_var_params['body']
213
+ if isinstance(request, SdkStreamRequest):
214
+ body = request.get_file_stream()
215
+
216
+ response_headers = []
217
+
218
+ header_params['Content-Type'] = http_utils.select_header_content_type(
219
+ ['application/json;charset=UTF-8'])
220
+
221
+ auth_settings = []
222
+
223
+ http_info["cname"] = cname
224
+ http_info["collection_formats"] = collection_formats
225
+ http_info["path_params"] = path_params
226
+ http_info["query_params"] = query_params
227
+ http_info["header_params"] = header_params
228
+ http_info["post_params"] = form_params
229
+ http_info["body"] = body
230
+ http_info["response_headers"] = response_headers
231
+
232
+ return http_info
233
+
169
234
  def batch_show_nodes_information(self, request):
170
235
  """批量查询实例节点信息
171
236
 
@@ -22,6 +22,10 @@ from huaweicloudsdkdcs.v2.model.batch_delete_body import BatchDeleteBody
22
22
  from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest
23
23
  from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse
24
24
  from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult
25
+ from huaweicloudsdkdcs.v2.model.batch_restart_migration_task_result import BatchRestartMigrationTaskResult
26
+ from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_body import BatchRestartOnlineMigrationTasksBody
27
+ from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_request import BatchRestartOnlineMigrationTasksRequest
28
+ from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_response import BatchRestartOnlineMigrationTasksResponse
25
29
  from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_request import BatchShowNodesInformationRequest
26
30
  from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_response import BatchShowNodesInformationResponse
27
31
  from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchRestartMigrationTaskResult:
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
+ 'result': 'str',
21
+ 'task_id': 'str',
22
+ 'error_msg': 'str',
23
+ 'error_code': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'result': 'result',
28
+ 'task_id': 'task_id',
29
+ 'error_msg': 'error_msg',
30
+ 'error_code': 'error_code'
31
+ }
32
+
33
+ def __init__(self, result=None, task_id=None, error_msg=None, error_code=None):
34
+ """BatchRestartMigrationTaskResult
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param result: 下发重启迁移任务操作结果。
39
+ :type result: str
40
+ :param task_id: 数据迁移任务ID。
41
+ :type task_id: str
42
+ :param error_msg: 错误信息
43
+ :type error_msg: str
44
+ :param error_code: 错误码
45
+ :type error_code: str
46
+ """
47
+
48
+
49
+
50
+ self._result = None
51
+ self._task_id = None
52
+ self._error_msg = None
53
+ self._error_code = None
54
+ self.discriminator = None
55
+
56
+ if result is not None:
57
+ self.result = result
58
+ if task_id is not None:
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
64
+
65
+ @property
66
+ def result(self):
67
+ """Gets the result of this BatchRestartMigrationTaskResult.
68
+
69
+ 下发重启迁移任务操作结果。
70
+
71
+ :return: The result of this BatchRestartMigrationTaskResult.
72
+ :rtype: str
73
+ """
74
+ return self._result
75
+
76
+ @result.setter
77
+ def result(self, result):
78
+ """Sets the result of this BatchRestartMigrationTaskResult.
79
+
80
+ 下发重启迁移任务操作结果。
81
+
82
+ :param result: The result of this BatchRestartMigrationTaskResult.
83
+ :type result: str
84
+ """
85
+ self._result = result
86
+
87
+ @property
88
+ def task_id(self):
89
+ """Gets the task_id of this BatchRestartMigrationTaskResult.
90
+
91
+ 数据迁移任务ID。
92
+
93
+ :return: The task_id of this BatchRestartMigrationTaskResult.
94
+ :rtype: str
95
+ """
96
+ return self._task_id
97
+
98
+ @task_id.setter
99
+ def task_id(self, task_id):
100
+ """Sets the task_id of this BatchRestartMigrationTaskResult.
101
+
102
+ 数据迁移任务ID。
103
+
104
+ :param task_id: The task_id of this BatchRestartMigrationTaskResult.
105
+ :type task_id: str
106
+ """
107
+ self._task_id = task_id
108
+
109
+ @property
110
+ def error_msg(self):
111
+ """Gets the error_msg of this BatchRestartMigrationTaskResult.
112
+
113
+ 错误信息
114
+
115
+ :return: The error_msg of this BatchRestartMigrationTaskResult.
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 BatchRestartMigrationTaskResult.
123
+
124
+ 错误信息
125
+
126
+ :param error_msg: The error_msg of this BatchRestartMigrationTaskResult.
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 BatchRestartMigrationTaskResult.
134
+
135
+ 错误码
136
+
137
+ :return: The error_code of this BatchRestartMigrationTaskResult.
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 BatchRestartMigrationTaskResult.
145
+
146
+ 错误码
147
+
148
+ :param error_code: The error_code of this BatchRestartMigrationTaskResult.
149
+ :type error_code: str
150
+ """
151
+ self._error_code = error_code
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, BatchRestartMigrationTaskResult):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -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 BatchRestartOnlineMigrationTasksBody:
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
+ 'migration_tasks': 'list[str]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'migration_tasks': 'migration_tasks'
25
+ }
26
+
27
+ def __init__(self, migration_tasks=None):
28
+ """BatchRestartOnlineMigrationTasksBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param migration_tasks: 数据迁移任务列表。
33
+ :type migration_tasks: list[str]
34
+ """
35
+
36
+
37
+
38
+ self._migration_tasks = None
39
+ self.discriminator = None
40
+
41
+ self.migration_tasks = migration_tasks
42
+
43
+ @property
44
+ def migration_tasks(self):
45
+ """Gets the migration_tasks of this BatchRestartOnlineMigrationTasksBody.
46
+
47
+ 数据迁移任务列表。
48
+
49
+ :return: The migration_tasks of this BatchRestartOnlineMigrationTasksBody.
50
+ :rtype: list[str]
51
+ """
52
+ return self._migration_tasks
53
+
54
+ @migration_tasks.setter
55
+ def migration_tasks(self, migration_tasks):
56
+ """Sets the migration_tasks of this BatchRestartOnlineMigrationTasksBody.
57
+
58
+ 数据迁移任务列表。
59
+
60
+ :param migration_tasks: The migration_tasks of this BatchRestartOnlineMigrationTasksBody.
61
+ :type migration_tasks: list[str]
62
+ """
63
+ self._migration_tasks = migration_tasks
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, BatchRestartOnlineMigrationTasksBody):
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
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchRestartOnlineMigrationTasksRequest:
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
+ 'body': 'BatchRestartOnlineMigrationTasksBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """BatchRestartOnlineMigrationTasksRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the BatchRestartOnlineMigrationTasksRequest
33
+ :type body: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksBody`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this BatchRestartOnlineMigrationTasksRequest.
47
+
48
+ :return: The body of this BatchRestartOnlineMigrationTasksRequest.
49
+ :rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this BatchRestartOnlineMigrationTasksRequest.
56
+
57
+ :param body: The body of this BatchRestartOnlineMigrationTasksRequest.
58
+ :type body: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksBody`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, BatchRestartOnlineMigrationTasksRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class BatchRestartOnlineMigrationTasksResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'migration_tasks': 'list[BatchRestartMigrationTaskResult]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'migration_tasks': 'migration_tasks'
26
+ }
27
+
28
+ def __init__(self, migration_tasks=None):
29
+ """BatchRestartOnlineMigrationTasksResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param migration_tasks: 数据迁移任务列表。
34
+ :type migration_tasks: list[:class:`huaweicloudsdkdcs.v2.BatchRestartMigrationTaskResult`]
35
+ """
36
+
37
+ super(BatchRestartOnlineMigrationTasksResponse, self).__init__()
38
+
39
+ self._migration_tasks = None
40
+ self.discriminator = None
41
+
42
+ if migration_tasks is not None:
43
+ self.migration_tasks = migration_tasks
44
+
45
+ @property
46
+ def migration_tasks(self):
47
+ """Gets the migration_tasks of this BatchRestartOnlineMigrationTasksResponse.
48
+
49
+ 数据迁移任务列表。
50
+
51
+ :return: The migration_tasks of this BatchRestartOnlineMigrationTasksResponse.
52
+ :rtype: list[:class:`huaweicloudsdkdcs.v2.BatchRestartMigrationTaskResult`]
53
+ """
54
+ return self._migration_tasks
55
+
56
+ @migration_tasks.setter
57
+ def migration_tasks(self, migration_tasks):
58
+ """Sets the migration_tasks of this BatchRestartOnlineMigrationTasksResponse.
59
+
60
+ 数据迁移任务列表。
61
+
62
+ :param migration_tasks: The migration_tasks of this BatchRestartOnlineMigrationTasksResponse.
63
+ :type migration_tasks: list[:class:`huaweicloudsdkdcs.v2.BatchRestartMigrationTaskResult`]
64
+ """
65
+ self._migration_tasks = migration_tasks
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, BatchRestartOnlineMigrationTasksResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -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 = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkdcs
3
- Version: 3.1.109
3
+ Version: 3.1.111
4
4
  Summary: DCS
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore>=3.1.109
25
+ Requires-Dist: huaweicloudsdkcore>=3.1.111
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkdcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkdcs/v2/__init__.py,sha256=fLlb3WyG-SlmggE7k6vx91cEhDvF3i4qEUVHQNNrzTE,32595
3
- huaweicloudsdkdcs/v2/dcs_async_client.py,sha256=t8whyDPgtuYwiqoJOHYiog6WoZ6qw04ItYgTX9ZccnY,271954
4
- huaweicloudsdkdcs/v2/dcs_client.py,sha256=KPMHEzZXt5Rsr4Y-9GzkJRz3GITw6EQAQsMFITviKag,272083
5
- huaweicloudsdkdcs/v2/model/__init__.py,sha256=-NWzyYXB9sAlQooN9rQ9NFxHwj3PujDiBd6uMgEWXVU,32509
2
+ huaweicloudsdkdcs/v2/__init__.py,sha256=Lqxd6f-gVedia43B284thaHEFqow3nFfIu3SxapRIeE,33070
3
+ huaweicloudsdkdcs/v2/dcs_async_client.py,sha256=m_Rl-RBR0KFYMxsFXZsa0UdGxVkPT3_dLhczvjRrEbc,274265
4
+ huaweicloudsdkdcs/v2/dcs_client.py,sha256=psSRd0Hqa3ONdF15ypuIQIcVlOa6eXI0AIBr4R158Ys,274396
5
+ huaweicloudsdkdcs/v2/model/__init__.py,sha256=isiMsBwkoCzSQxCk7aSkMrQ3iTUu-u2SiS9nn76d7xU,32984
6
6
  huaweicloudsdkdcs/v2/model/acl_account_modify_password_body.py,sha256=p6mihEwiG7Z2bmDBNsZzvvUDYrZCrD72jTtTzjb1lp4,4910
7
7
  huaweicloudsdkdcs/v2/model/acl_account_reset_password_body.py,sha256=IZraI7aX_yNLjJTPwrpFafYf3r2IhEshftZQJ1RaQwY,4899
8
8
  huaweicloudsdkdcs/v2/model/acl_account_resp.py,sha256=0cp9aqjHifvcJyl31XSHX5L6z2Ot5_CXu2BxJmg7abM,9611
@@ -22,6 +22,10 @@ huaweicloudsdkdcs/v2/model/batch_delete_body.py,sha256=A-WCSHEpWn5US9ZECJOgTuDep
22
22
  huaweicloudsdkdcs/v2/model/batch_delete_instances_request.py,sha256=a4ZnDb93VkLu8ncLIgYtgpqPf50B3MKuJ5OL-yYThEQ,4746
23
23
  huaweicloudsdkdcs/v2/model/batch_delete_instances_response.py,sha256=_H_6W4MkQo1BQ-bOQreAj6tewtRP5JAINC6Sk7rGHuE,3471
24
24
  huaweicloudsdkdcs/v2/model/batch_ops_result.py,sha256=wJcM0btflhxWk384HGEllWLlqFSs1EDj168GdjVt_lU,3840
25
+ huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py,sha256=OOqof6iBNBX3Pg7N5iT-WqQkr1PnwHC09AFzdPOgYc8,5684
26
+ huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py,sha256=iZ5VDfOb5qex7mGfnppx_zIO42aVIn7DenBS1nJBSWo,3379
27
+ huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py,sha256=4quGGzQ2_g3GsmTplzVbAay3d8MW0zCWrC_sZqDgN1o,3339
28
+ huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py,sha256=rGzRhmSUqFIR90Gmxk0Fn65uTYMN0llTxtOXxDARxoU,3786
25
29
  huaweicloudsdkdcs/v2/model/batch_show_nodes_information_request.py,sha256=aKnFukMuFHGlPwSGP-byUrezvtPAoORi-wif0rXCT2A,4269
26
30
  huaweicloudsdkdcs/v2/model/batch_show_nodes_information_response.py,sha256=MjGfJ_H6AEjDL1sBGqnMmstIrm2Fi3UQCoRUqSwQQP0,4307
27
31
  huaweicloudsdkdcs/v2/model/batch_stop_migration_tasks_body.py,sha256=15MVaIn9ir7r2wNk6Mb6sPMAfrjSmkJfTEJoGDHlj0k,3316
@@ -306,7 +310,7 @@ huaweicloudsdkdcs/v2/model/status_statistic.py,sha256=wW15-W4XbIY9STeAMDGN-CJG04
306
310
  huaweicloudsdkdcs/v2/model/step_detail.py,sha256=CrxhwBTmbtjfEHl5IYBfIJCcxQSp-yLVVXSEczmUpKw,8097
307
311
  huaweicloudsdkdcs/v2/model/stop_migration_task_request.py,sha256=tADzD5xKV7ioBrcRIaVeiSX7WgtY6zqMhKGV1aKXwrk,3038
308
312
  huaweicloudsdkdcs/v2/model/stop_migration_task_response.py,sha256=PsK6rtPAnkZld9WCTRFhczHrcqz9YtQFE4348Wa-H2A,23808
309
- huaweicloudsdkdcs/v2/model/stop_migration_task_result.py,sha256=EGxqcjLoxS4_QPnRK1ia7y8vF8DIP9rhooV6-kax1z0,3922
313
+ huaweicloudsdkdcs/v2/model/stop_migration_task_result.py,sha256=DrdcU6EGpdr1ipE5mwpVTPDpXCFrxqU2yzQsuw6_gpY,5532
310
314
  huaweicloudsdkdcs/v2/model/stop_migration_task_sync_request.py,sha256=1IwLp2Baz4Zar0NC1e6tpLFgJAJrYnjCwLp_njcVUgg,3066
311
315
  huaweicloudsdkdcs/v2/model/stop_migration_task_sync_response.py,sha256=dCt22ma-gT9BSEI0TvQ9eZAQ7b9bWokBdaBmFJFLxAM,2467
312
316
  huaweicloudsdkdcs/v2/model/sub_step_detail.py,sha256=UNkY2u7G4A5sqdL0XX3m8JUJQU2Ml9jNoppTUP1gGsg,8109
@@ -356,8 +360,8 @@ huaweicloudsdkdcs/v2/model/validate_deletable_replica_response.py,sha256=kadAH-P
356
360
  huaweicloudsdkdcs/v2/model/whitelist.py,sha256=o3qGT2_1ARJ2RG6mEKaqXJHAT4eY9nTa6X_yLMzXdqQ,4334
357
361
  huaweicloudsdkdcs/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
358
362
  huaweicloudsdkdcs/v2/region/dcs_region.py,sha256=lMZHDmJnefb0rYZTe0qKQe6VbnyXI6ISNY_rauSWpeE,4726
359
- huaweicloudsdkdcs-3.1.109.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
360
- huaweicloudsdkdcs-3.1.109.dist-info/METADATA,sha256=zrQwX7pFObmSZDi1iyHRNRLF8NcIlYywmUp5T-97GMQ,1135
361
- huaweicloudsdkdcs-3.1.109.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
362
- huaweicloudsdkdcs-3.1.109.dist-info/top_level.txt,sha256=_O-5__fP_OBumTm1dj6NCIbz4-U1qSrYHpdKCWm6Tu8,18
363
- huaweicloudsdkdcs-3.1.109.dist-info/RECORD,,
363
+ huaweicloudsdkdcs-3.1.111.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
364
+ huaweicloudsdkdcs-3.1.111.dist-info/METADATA,sha256=kgtjcPX0tRKvoTSQIMtjbOdj0SwM6LGVSrmpOKeP3hQ,1135
365
+ huaweicloudsdkdcs-3.1.111.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
366
+ huaweicloudsdkdcs-3.1.111.dist-info/top_level.txt,sha256=_O-5__fP_OBumTm1dj6NCIbz4-U1qSrYHpdKCWm6Tu8,18
367
+ huaweicloudsdkdcs-3.1.111.dist-info/RECORD,,