huaweicloudsdkoms 3.1.160__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.
- huaweicloudsdkoms/__init__.py +0 -0
- huaweicloudsdkoms/v2/__init__.py +117 -0
- huaweicloudsdkoms/v2/model/__init__.py +114 -0
- huaweicloudsdkoms/v2/model/bandwidth_policy_dto.py +170 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_req.py +201 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_request.py +111 -0
- huaweicloudsdkoms/v2/model/batch_update_tasks_response.py +85 -0
- huaweicloudsdkoms/v2/model/check_prefix_req.py +343 -0
- huaweicloudsdkoms/v2/model/check_prefix_request.py +111 -0
- huaweicloudsdkoms/v2/model/check_prefix_response.py +116 -0
- huaweicloudsdkoms/v2/model/checked_key.py +173 -0
- huaweicloudsdkoms/v2/model/create_sync_events_request.py +139 -0
- huaweicloudsdkoms/v2/model/create_sync_events_response.py +85 -0
- huaweicloudsdkoms/v2/model/create_sync_task_req.py +567 -0
- huaweicloudsdkoms/v2/model/create_sync_task_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_sync_task_response.py +116 -0
- huaweicloudsdkoms/v2/model/create_task_group_req.py +531 -0
- huaweicloudsdkoms/v2/model/create_task_group_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_task_group_response.py +116 -0
- huaweicloudsdkoms/v2/model/create_task_req.py +561 -0
- huaweicloudsdkoms/v2/model/create_task_request.py +111 -0
- huaweicloudsdkoms/v2/model/create_task_response.py +145 -0
- huaweicloudsdkoms/v2/model/delete_sync_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/delete_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/delete_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/delete_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/dst_node_req.py +256 -0
- huaweicloudsdkoms/v2/model/dst_node_resp.py +173 -0
- huaweicloudsdkoms/v2/model/error_reason_resp.py +144 -0
- huaweicloudsdkoms/v2/model/failed_object_record_dto.py +173 -0
- huaweicloudsdkoms/v2/model/link.py +144 -0
- huaweicloudsdkoms/v2/model/list_api_versions_request.py +84 -0
- huaweicloudsdkoms/v2/model/list_api_versions_response.py +116 -0
- huaweicloudsdkoms/v2/model/list_buckets_req.py +230 -0
- huaweicloudsdkoms/v2/model/list_file.py +171 -0
- huaweicloudsdkoms/v2/model/list_sync_task_statistic_request.py +198 -0
- huaweicloudsdkoms/v2/model/list_sync_task_statistic_response.py +174 -0
- huaweicloudsdkoms/v2/model/list_sync_tasks_request.py +173 -0
- huaweicloudsdkoms/v2/model/list_sync_tasks_response.py +145 -0
- huaweicloudsdkoms/v2/model/list_task_group_request.py +173 -0
- huaweicloudsdkoms/v2/model/list_task_group_response.py +145 -0
- huaweicloudsdkoms/v2/model/list_tasks_request.py +202 -0
- huaweicloudsdkoms/v2/model/list_tasks_response.py +145 -0
- huaweicloudsdkoms/v2/model/prefix_key_info.py +114 -0
- huaweicloudsdkoms/v2/model/region_info.py +173 -0
- huaweicloudsdkoms/v2/model/retry_task_group_req.py +289 -0
- huaweicloudsdkoms/v2/model/retry_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/retry_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/show_api_info_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_api_info_response.py +203 -0
- huaweicloudsdkoms/v2/model/show_bucket_list_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_list_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_bucket_objects_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_objects_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_bucket_record.py +144 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_req.py +258 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_bucket_region_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_bucket_req.py +370 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_req.py +304 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_request.py +111 -0
- huaweicloudsdkoms/v2/model/show_cdn_info_response.py +174 -0
- huaweicloudsdkoms/v2/model/show_cloud_type_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_cloud_type_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_region_info_request.py +84 -0
- huaweicloudsdkoms/v2/model/show_region_info_resp.py +144 -0
- huaweicloudsdkoms/v2/model/show_region_info_response.py +112 -0
- huaweicloudsdkoms/v2/model/show_sync_task_request.py +142 -0
- huaweicloudsdkoms/v2/model/show_sync_task_response.py +725 -0
- huaweicloudsdkoms/v2/model/show_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_task_group_response.py +1165 -0
- huaweicloudsdkoms/v2/model/show_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/show_task_response.py +1194 -0
- huaweicloudsdkoms/v2/model/smn_config.py +200 -0
- huaweicloudsdkoms/v2/model/smn_info.py +173 -0
- huaweicloudsdkoms/v2/model/source_cdn_req.py +199 -0
- huaweicloudsdkoms/v2/model/source_cdn_resp.py +171 -0
- huaweicloudsdkoms/v2/model/src_node_req.py +372 -0
- huaweicloudsdkoms/v2/model/src_node_resp.py +256 -0
- huaweicloudsdkoms/v2/model/start_sync_task_req.py +227 -0
- huaweicloudsdkoms/v2/model/start_sync_task_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/start_task_group_req.py +258 -0
- huaweicloudsdkoms/v2/model/start_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/start_task_req.py +345 -0
- huaweicloudsdkoms/v2/model/start_task_request.py +139 -0
- huaweicloudsdkoms/v2/model/start_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/statistic_data.py +144 -0
- huaweicloudsdkoms/v2/model/statistic_type_data.py +144 -0
- huaweicloudsdkoms/v2/model/stop_sync_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_sync_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/stop_task_group_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/stop_task_request.py +114 -0
- huaweicloudsdkoms/v2/model/stop_task_response.py +85 -0
- huaweicloudsdkoms/v2/model/sync_object_req.py +114 -0
- huaweicloudsdkoms/v2/model/sync_task_info.py +604 -0
- huaweicloudsdkoms/v2/model/task_group_dst_node.py +256 -0
- huaweicloudsdkoms/v2/model/task_group_dst_node_resp.py +173 -0
- huaweicloudsdkoms/v2/model/task_group_resp.py +1164 -0
- huaweicloudsdkoms/v2/model/task_group_src_node.py +343 -0
- huaweicloudsdkoms/v2/model/task_group_src_node_resp.py +256 -0
- huaweicloudsdkoms/v2/model/task_resp.py +1193 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_req.py +114 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_request.py +139 -0
- huaweicloudsdkoms/v2/model/update_bandwidth_policy_response.py +85 -0
- huaweicloudsdkoms/v2/model/update_task_group_request.py +139 -0
- huaweicloudsdkoms/v2/model/update_task_group_response.py +85 -0
- huaweicloudsdkoms/v2/model/version.py +202 -0
- huaweicloudsdkoms/v2/oms_async_client.py +2263 -0
- huaweicloudsdkoms/v2/oms_client.py +2260 -0
- huaweicloudsdkoms/v2/region/__init__.py +0 -0
- huaweicloudsdkoms/v2/region/oms_region.py +91 -0
- huaweicloudsdkoms-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoms-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoms-3.1.160.dist-info/RECORD +121 -0
- huaweicloudsdkoms-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoms-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,258 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StartTaskGroupReq:
|
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
|
+
'src_ak': 'str',
|
21
|
+
'src_sk': 'str',
|
22
|
+
'json_auth_file': 'str',
|
23
|
+
'dst_ak': 'str',
|
24
|
+
'dst_sk': 'str',
|
25
|
+
'source_cdn_authentication_key': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'src_ak': 'src_ak',
|
30
|
+
'src_sk': 'src_sk',
|
31
|
+
'json_auth_file': 'json_auth_file',
|
32
|
+
'dst_ak': 'dst_ak',
|
33
|
+
'dst_sk': 'dst_sk',
|
34
|
+
'source_cdn_authentication_key': 'source_cdn_authentication_key'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, src_ak=None, src_sk=None, json_auth_file=None, dst_ak=None, dst_sk=None, source_cdn_authentication_key=None):
|
38
|
+
r"""StartTaskGroupReq
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param src_ak: 源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
43
|
+
:type src_ak: str
|
44
|
+
:param src_sk: 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
45
|
+
:type src_sk: str
|
46
|
+
:param json_auth_file: 用于谷歌云Cloud Storage鉴权
|
47
|
+
:type json_auth_file: str
|
48
|
+
:param dst_ak: 目的端节点AK(最大长度100个字符)。
|
49
|
+
:type dst_ak: str
|
50
|
+
:param dst_sk: 目的端节点SK(最大长度100个字符)。
|
51
|
+
:type dst_sk: str
|
52
|
+
:param source_cdn_authentication_key: CDN鉴权秘钥。
|
53
|
+
:type source_cdn_authentication_key: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._src_ak = None
|
59
|
+
self._src_sk = None
|
60
|
+
self._json_auth_file = None
|
61
|
+
self._dst_ak = None
|
62
|
+
self._dst_sk = None
|
63
|
+
self._source_cdn_authentication_key = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if src_ak is not None:
|
67
|
+
self.src_ak = src_ak
|
68
|
+
if src_sk is not None:
|
69
|
+
self.src_sk = src_sk
|
70
|
+
if json_auth_file is not None:
|
71
|
+
self.json_auth_file = json_auth_file
|
72
|
+
self.dst_ak = dst_ak
|
73
|
+
self.dst_sk = dst_sk
|
74
|
+
if source_cdn_authentication_key is not None:
|
75
|
+
self.source_cdn_authentication_key = source_cdn_authentication_key
|
76
|
+
|
77
|
+
@property
|
78
|
+
def src_ak(self):
|
79
|
+
r"""Gets the src_ak of this StartTaskGroupReq.
|
80
|
+
|
81
|
+
源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
82
|
+
|
83
|
+
:return: The src_ak of this StartTaskGroupReq.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._src_ak
|
87
|
+
|
88
|
+
@src_ak.setter
|
89
|
+
def src_ak(self, src_ak):
|
90
|
+
r"""Sets the src_ak of this StartTaskGroupReq.
|
91
|
+
|
92
|
+
源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
93
|
+
|
94
|
+
:param src_ak: The src_ak of this StartTaskGroupReq.
|
95
|
+
:type src_ak: str
|
96
|
+
"""
|
97
|
+
self._src_ak = src_ak
|
98
|
+
|
99
|
+
@property
|
100
|
+
def src_sk(self):
|
101
|
+
r"""Gets the src_sk of this StartTaskGroupReq.
|
102
|
+
|
103
|
+
源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
104
|
+
|
105
|
+
:return: The src_sk of this StartTaskGroupReq.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._src_sk
|
109
|
+
|
110
|
+
@src_sk.setter
|
111
|
+
def src_sk(self, src_sk):
|
112
|
+
r"""Sets the src_sk of this StartTaskGroupReq.
|
113
|
+
|
114
|
+
源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
|
115
|
+
|
116
|
+
:param src_sk: The src_sk of this StartTaskGroupReq.
|
117
|
+
:type src_sk: str
|
118
|
+
"""
|
119
|
+
self._src_sk = src_sk
|
120
|
+
|
121
|
+
@property
|
122
|
+
def json_auth_file(self):
|
123
|
+
r"""Gets the json_auth_file of this StartTaskGroupReq.
|
124
|
+
|
125
|
+
用于谷歌云Cloud Storage鉴权
|
126
|
+
|
127
|
+
:return: The json_auth_file of this StartTaskGroupReq.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._json_auth_file
|
131
|
+
|
132
|
+
@json_auth_file.setter
|
133
|
+
def json_auth_file(self, json_auth_file):
|
134
|
+
r"""Sets the json_auth_file of this StartTaskGroupReq.
|
135
|
+
|
136
|
+
用于谷歌云Cloud Storage鉴权
|
137
|
+
|
138
|
+
:param json_auth_file: The json_auth_file of this StartTaskGroupReq.
|
139
|
+
:type json_auth_file: str
|
140
|
+
"""
|
141
|
+
self._json_auth_file = json_auth_file
|
142
|
+
|
143
|
+
@property
|
144
|
+
def dst_ak(self):
|
145
|
+
r"""Gets the dst_ak of this StartTaskGroupReq.
|
146
|
+
|
147
|
+
目的端节点AK(最大长度100个字符)。
|
148
|
+
|
149
|
+
:return: The dst_ak of this StartTaskGroupReq.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._dst_ak
|
153
|
+
|
154
|
+
@dst_ak.setter
|
155
|
+
def dst_ak(self, dst_ak):
|
156
|
+
r"""Sets the dst_ak of this StartTaskGroupReq.
|
157
|
+
|
158
|
+
目的端节点AK(最大长度100个字符)。
|
159
|
+
|
160
|
+
:param dst_ak: The dst_ak of this StartTaskGroupReq.
|
161
|
+
:type dst_ak: str
|
162
|
+
"""
|
163
|
+
self._dst_ak = dst_ak
|
164
|
+
|
165
|
+
@property
|
166
|
+
def dst_sk(self):
|
167
|
+
r"""Gets the dst_sk of this StartTaskGroupReq.
|
168
|
+
|
169
|
+
目的端节点SK(最大长度100个字符)。
|
170
|
+
|
171
|
+
:return: The dst_sk of this StartTaskGroupReq.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._dst_sk
|
175
|
+
|
176
|
+
@dst_sk.setter
|
177
|
+
def dst_sk(self, dst_sk):
|
178
|
+
r"""Sets the dst_sk of this StartTaskGroupReq.
|
179
|
+
|
180
|
+
目的端节点SK(最大长度100个字符)。
|
181
|
+
|
182
|
+
:param dst_sk: The dst_sk of this StartTaskGroupReq.
|
183
|
+
:type dst_sk: str
|
184
|
+
"""
|
185
|
+
self._dst_sk = dst_sk
|
186
|
+
|
187
|
+
@property
|
188
|
+
def source_cdn_authentication_key(self):
|
189
|
+
r"""Gets the source_cdn_authentication_key of this StartTaskGroupReq.
|
190
|
+
|
191
|
+
CDN鉴权秘钥。
|
192
|
+
|
193
|
+
:return: The source_cdn_authentication_key of this StartTaskGroupReq.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._source_cdn_authentication_key
|
197
|
+
|
198
|
+
@source_cdn_authentication_key.setter
|
199
|
+
def source_cdn_authentication_key(self, source_cdn_authentication_key):
|
200
|
+
r"""Sets the source_cdn_authentication_key of this StartTaskGroupReq.
|
201
|
+
|
202
|
+
CDN鉴权秘钥。
|
203
|
+
|
204
|
+
:param source_cdn_authentication_key: The source_cdn_authentication_key of this StartTaskGroupReq.
|
205
|
+
:type source_cdn_authentication_key: str
|
206
|
+
"""
|
207
|
+
self._source_cdn_authentication_key = source_cdn_authentication_key
|
208
|
+
|
209
|
+
def to_dict(self):
|
210
|
+
"""Returns the model properties as a dict"""
|
211
|
+
result = {}
|
212
|
+
|
213
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
214
|
+
value = getattr(self, attr)
|
215
|
+
if isinstance(value, list):
|
216
|
+
result[attr] = list(map(
|
217
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
218
|
+
value
|
219
|
+
))
|
220
|
+
elif hasattr(value, "to_dict"):
|
221
|
+
result[attr] = value.to_dict()
|
222
|
+
elif isinstance(value, dict):
|
223
|
+
result[attr] = dict(map(
|
224
|
+
lambda item: (item[0], item[1].to_dict())
|
225
|
+
if hasattr(item[1], "to_dict") else item,
|
226
|
+
value.items()
|
227
|
+
))
|
228
|
+
else:
|
229
|
+
if attr in self.sensitive_list:
|
230
|
+
result[attr] = "****"
|
231
|
+
else:
|
232
|
+
result[attr] = value
|
233
|
+
|
234
|
+
return result
|
235
|
+
|
236
|
+
def to_str(self):
|
237
|
+
"""Returns the string representation of the model"""
|
238
|
+
import simplejson as json
|
239
|
+
if six.PY2:
|
240
|
+
import sys
|
241
|
+
reload(sys)
|
242
|
+
sys.setdefaultencoding("utf-8")
|
243
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
244
|
+
|
245
|
+
def __repr__(self):
|
246
|
+
"""For `print`"""
|
247
|
+
return self.to_str()
|
248
|
+
|
249
|
+
def __eq__(self, other):
|
250
|
+
"""Returns true if both objects are equal"""
|
251
|
+
if not isinstance(other, StartTaskGroupReq):
|
252
|
+
return False
|
253
|
+
|
254
|
+
return self.__dict__ == other.__dict__
|
255
|
+
|
256
|
+
def __ne__(self, other):
|
257
|
+
"""Returns true if both objects are not equal"""
|
258
|
+
return not self == other
|
@@ -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 StartTaskGroupRequest:
|
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
|
+
'group_id': 'str',
|
21
|
+
'body': 'StartTaskGroupReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'group_id': 'group_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, group_id=None, body=None):
|
30
|
+
r"""StartTaskGroupRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param group_id: 任务组id
|
35
|
+
:type group_id: str
|
36
|
+
:param body: Body of the StartTaskGroupRequest
|
37
|
+
:type body: :class:`huaweicloudsdkoms.v2.StartTaskGroupReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._group_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.group_id = group_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def group_id(self):
|
52
|
+
r"""Gets the group_id of this StartTaskGroupRequest.
|
53
|
+
|
54
|
+
任务组id
|
55
|
+
|
56
|
+
:return: The group_id of this StartTaskGroupRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._group_id
|
60
|
+
|
61
|
+
@group_id.setter
|
62
|
+
def group_id(self, group_id):
|
63
|
+
r"""Sets the group_id of this StartTaskGroupRequest.
|
64
|
+
|
65
|
+
任务组id
|
66
|
+
|
67
|
+
:param group_id: The group_id of this StartTaskGroupRequest.
|
68
|
+
:type group_id: str
|
69
|
+
"""
|
70
|
+
self._group_id = group_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this StartTaskGroupRequest.
|
75
|
+
|
76
|
+
:return: The body of this StartTaskGroupRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkoms.v2.StartTaskGroupReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
r"""Sets the body of this StartTaskGroupRequest.
|
84
|
+
|
85
|
+
:param body: The body of this StartTaskGroupRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkoms.v2.StartTaskGroupReq`
|
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, StartTaskGroupRequest):
|
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,85 @@
|
|
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 StartTaskGroupResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""StartTaskGroupResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(StartTaskGroupResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, StartTaskGroupResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|