huaweicloudsdktics 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.

Potentially problematic release.


This version of huaweicloudsdktics might be problematic. Click here for more details.

Files changed (78) hide show
  1. huaweicloudsdktics/__init__.py +0 -0
  2. huaweicloudsdktics/v1/__init__.py +74 -0
  3. huaweicloudsdktics/v1/model/__init__.py +71 -0
  4. huaweicloudsdktics/v1/model/agent_list_vo.py +521 -0
  5. huaweicloudsdktics/v1/model/deploy_vo.py +228 -0
  6. huaweicloudsdktics/v1/model/fl_job_list_vo.py +457 -0
  7. huaweicloudsdktics/v1/model/job_report_base_info_vo.py +256 -0
  8. huaweicloudsdktics/v1/model/job_report_env_vo.py +231 -0
  9. huaweicloudsdktics/v1/model/job_report_output_vo.py +173 -0
  10. huaweicloudsdktics/v1/model/job_report_partner_vo.py +231 -0
  11. huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +260 -0
  12. huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +318 -0
  13. huaweicloudsdktics/v1/model/league_update_vo.py +173 -0
  14. huaweicloudsdktics/v1/model/list_agents_request.py +200 -0
  15. huaweicloudsdktics/v1/model/list_agents_response.py +145 -0
  16. huaweicloudsdktics/v1/model/list_audit_info_request.py +170 -0
  17. huaweicloudsdktics/v1/model/list_audit_info_response.py +145 -0
  18. huaweicloudsdktics/v1/model/list_fl_job_request.py +170 -0
  19. huaweicloudsdktics/v1/model/list_fl_job_response.py +145 -0
  20. huaweicloudsdktics/v1/model/list_instance_history_request.py +199 -0
  21. huaweicloudsdktics/v1/model/list_instance_history_response.py +145 -0
  22. huaweicloudsdktics/v1/model/list_league_datasets_request.py +228 -0
  23. huaweicloudsdktics/v1/model/list_league_datasets_response.py +145 -0
  24. huaweicloudsdktics/v1/model/list_leagues_request.py +170 -0
  25. huaweicloudsdktics/v1/model/list_leagues_response.py +145 -0
  26. huaweicloudsdktics/v1/model/list_nodes_request.py +170 -0
  27. huaweicloudsdktics/v1/model/list_nodes_response.py +145 -0
  28. huaweicloudsdktics/v1/model/list_notices_request.py +142 -0
  29. huaweicloudsdktics/v1/model/list_notices_response.py +145 -0
  30. huaweicloudsdktics/v1/model/list_partners_request.py +170 -0
  31. huaweicloudsdktics/v1/model/list_partners_response.py +145 -0
  32. huaweicloudsdktics/v1/model/list_sql_job_request.py +170 -0
  33. huaweicloudsdktics/v1/model/list_sql_job_response.py +145 -0
  34. huaweicloudsdktics/v1/model/partner_data_vo.py +289 -0
  35. huaweicloudsdktics/v1/model/processor_vo.py +374 -0
  36. huaweicloudsdktics/v1/model/round_deploy_vo.py +144 -0
  37. huaweicloudsdktics/v1/model/show_agent_detail_request.py +114 -0
  38. huaweicloudsdktics/v1/model/show_agent_detail_response.py +212 -0
  39. huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +172 -0
  40. huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +112 -0
  41. huaweicloudsdktics/v1/model/show_instance_report_request.py +142 -0
  42. huaweicloudsdktics/v1/model/show_instance_report_response.py +220 -0
  43. huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +170 -0
  44. huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +112 -0
  45. huaweicloudsdktics/v1/model/show_job_statistics_request.py +172 -0
  46. huaweicloudsdktics/v1/model/show_job_statistics_response.py +232 -0
  47. huaweicloudsdktics/v1/model/show_league_request.py +114 -0
  48. huaweicloudsdktics/v1/model/show_league_response.py +725 -0
  49. huaweicloudsdktics/v1/model/show_overview_request.py +84 -0
  50. huaweicloudsdktics/v1/model/show_overview_response.py +203 -0
  51. huaweicloudsdktics/v1/model/show_partner_statistics_request.py +172 -0
  52. huaweicloudsdktics/v1/model/show_partner_statistics_response.py +112 -0
  53. huaweicloudsdktics/v1/model/stage_vo.py +201 -0
  54. huaweicloudsdktics/v1/model/tics_agent_deploy.py +724 -0
  55. huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +289 -0
  56. huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +463 -0
  57. huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +202 -0
  58. huaweicloudsdktics/v1/model/tics_agent_node_info.py +492 -0
  59. huaweicloudsdktics/v1/model/tics_approve_log_vo.py +484 -0
  60. huaweicloudsdktics/v1/model/tics_dataset_column.py +405 -0
  61. huaweicloudsdktics/v1/model/tics_job_instance_vo.py +401 -0
  62. huaweicloudsdktics/v1/model/tics_league_audit_log.py +376 -0
  63. huaweicloudsdktics/v1/model/tics_league_list_vo.py +543 -0
  64. huaweicloudsdktics/v1/model/tics_league_notice_vo.py +430 -0
  65. huaweicloudsdktics/v1/model/tics_league_partner_vo.py +202 -0
  66. huaweicloudsdktics/v1/model/tics_sql_job_vo.py +483 -0
  67. huaweicloudsdktics/v1/model/tics_trust_info_vo.py +347 -0
  68. huaweicloudsdktics/v1/model/update_league_request.py +139 -0
  69. huaweicloudsdktics/v1/model/update_league_response.py +112 -0
  70. huaweicloudsdktics/v1/region/__init__.py +0 -0
  71. huaweicloudsdktics/v1/region/tics_region.py +34 -0
  72. huaweicloudsdktics/v1/tics_async_client.py +1382 -0
  73. huaweicloudsdktics/v1/tics_client.py +1379 -0
  74. huaweicloudsdktics-3.1.160.dist-info/LICENSE +13 -0
  75. huaweicloudsdktics-3.1.160.dist-info/METADATA +26 -0
  76. huaweicloudsdktics-3.1.160.dist-info/RECORD +78 -0
  77. huaweicloudsdktics-3.1.160.dist-info/WHEEL +5 -0
  78. huaweicloudsdktics-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,347 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TicsTrustInfoVo:
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
+ 'create_time': 'datetime',
21
+ 'ha_mode': 'str',
22
+ 'ne_deploy_type': 'str',
23
+ 'ne_node_type': 'str',
24
+ 'ne_status': 'str',
25
+ 'node_id': 'str',
26
+ 'node_name': 'str',
27
+ 'partner_alias': 'str',
28
+ 'update_time': 'datetime'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'create_time': 'create_time',
33
+ 'ha_mode': 'ha_mode',
34
+ 'ne_deploy_type': 'ne_deploy_type',
35
+ 'ne_node_type': 'ne_node_type',
36
+ 'ne_status': 'ne_status',
37
+ 'node_id': 'node_id',
38
+ 'node_name': 'node_name',
39
+ 'partner_alias': 'partner_alias',
40
+ 'update_time': 'update_time'
41
+ }
42
+
43
+ def __init__(self, create_time=None, ha_mode=None, ne_deploy_type=None, ne_node_type=None, ne_status=None, node_id=None, node_name=None, partner_alias=None, update_time=None):
44
+ r"""TicsTrustInfoVo
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param create_time: 创建时间
49
+ :type create_time: datetime
50
+ :param ha_mode: 主备模式,ACTIVE.主,STANDBY.备
51
+ :type ha_mode: str
52
+ :param ne_deploy_type: 网元部署类型,CCE.容器集群部署,IEF.边缘部署
53
+ :type ne_deploy_type: str
54
+ :param ne_node_type: 节点类型,AGENT.计算节点,AGG.聚合节点,AGG_MANAGER.聚合器管理节点,SERVER.控制节点
55
+ :type ne_node_type: str
56
+ :param ne_status: 网元状态,INIT.初始化,UNKNOWN.未知,OFFLINE.离线,ONLINE.在线,FAULT.故障,TRUSTING.互信中,TRUST.已互信
57
+ :type ne_status: str
58
+ :param node_id: 节点id
59
+ :type node_id: str
60
+ :param node_name: 节点名称
61
+ :type node_name: str
62
+ :param partner_alias: 合作方别名
63
+ :type partner_alias: str
64
+ :param update_time: 更新时间
65
+ :type update_time: datetime
66
+ """
67
+
68
+
69
+
70
+ self._create_time = None
71
+ self._ha_mode = None
72
+ self._ne_deploy_type = None
73
+ self._ne_node_type = None
74
+ self._ne_status = None
75
+ self._node_id = None
76
+ self._node_name = None
77
+ self._partner_alias = None
78
+ self._update_time = None
79
+ self.discriminator = None
80
+
81
+ if create_time is not None:
82
+ self.create_time = create_time
83
+ if ha_mode is not None:
84
+ self.ha_mode = ha_mode
85
+ if ne_deploy_type is not None:
86
+ self.ne_deploy_type = ne_deploy_type
87
+ if ne_node_type is not None:
88
+ self.ne_node_type = ne_node_type
89
+ if ne_status is not None:
90
+ self.ne_status = ne_status
91
+ if node_id is not None:
92
+ self.node_id = node_id
93
+ if node_name is not None:
94
+ self.node_name = node_name
95
+ if partner_alias is not None:
96
+ self.partner_alias = partner_alias
97
+ if update_time is not None:
98
+ self.update_time = update_time
99
+
100
+ @property
101
+ def create_time(self):
102
+ r"""Gets the create_time of this TicsTrustInfoVo.
103
+
104
+ 创建时间
105
+
106
+ :return: The create_time of this TicsTrustInfoVo.
107
+ :rtype: datetime
108
+ """
109
+ return self._create_time
110
+
111
+ @create_time.setter
112
+ def create_time(self, create_time):
113
+ r"""Sets the create_time of this TicsTrustInfoVo.
114
+
115
+ 创建时间
116
+
117
+ :param create_time: The create_time of this TicsTrustInfoVo.
118
+ :type create_time: datetime
119
+ """
120
+ self._create_time = create_time
121
+
122
+ @property
123
+ def ha_mode(self):
124
+ r"""Gets the ha_mode of this TicsTrustInfoVo.
125
+
126
+ 主备模式,ACTIVE.主,STANDBY.备
127
+
128
+ :return: The ha_mode of this TicsTrustInfoVo.
129
+ :rtype: str
130
+ """
131
+ return self._ha_mode
132
+
133
+ @ha_mode.setter
134
+ def ha_mode(self, ha_mode):
135
+ r"""Sets the ha_mode of this TicsTrustInfoVo.
136
+
137
+ 主备模式,ACTIVE.主,STANDBY.备
138
+
139
+ :param ha_mode: The ha_mode of this TicsTrustInfoVo.
140
+ :type ha_mode: str
141
+ """
142
+ self._ha_mode = ha_mode
143
+
144
+ @property
145
+ def ne_deploy_type(self):
146
+ r"""Gets the ne_deploy_type of this TicsTrustInfoVo.
147
+
148
+ 网元部署类型,CCE.容器集群部署,IEF.边缘部署
149
+
150
+ :return: The ne_deploy_type of this TicsTrustInfoVo.
151
+ :rtype: str
152
+ """
153
+ return self._ne_deploy_type
154
+
155
+ @ne_deploy_type.setter
156
+ def ne_deploy_type(self, ne_deploy_type):
157
+ r"""Sets the ne_deploy_type of this TicsTrustInfoVo.
158
+
159
+ 网元部署类型,CCE.容器集群部署,IEF.边缘部署
160
+
161
+ :param ne_deploy_type: The ne_deploy_type of this TicsTrustInfoVo.
162
+ :type ne_deploy_type: str
163
+ """
164
+ self._ne_deploy_type = ne_deploy_type
165
+
166
+ @property
167
+ def ne_node_type(self):
168
+ r"""Gets the ne_node_type of this TicsTrustInfoVo.
169
+
170
+ 节点类型,AGENT.计算节点,AGG.聚合节点,AGG_MANAGER.聚合器管理节点,SERVER.控制节点
171
+
172
+ :return: The ne_node_type of this TicsTrustInfoVo.
173
+ :rtype: str
174
+ """
175
+ return self._ne_node_type
176
+
177
+ @ne_node_type.setter
178
+ def ne_node_type(self, ne_node_type):
179
+ r"""Sets the ne_node_type of this TicsTrustInfoVo.
180
+
181
+ 节点类型,AGENT.计算节点,AGG.聚合节点,AGG_MANAGER.聚合器管理节点,SERVER.控制节点
182
+
183
+ :param ne_node_type: The ne_node_type of this TicsTrustInfoVo.
184
+ :type ne_node_type: str
185
+ """
186
+ self._ne_node_type = ne_node_type
187
+
188
+ @property
189
+ def ne_status(self):
190
+ r"""Gets the ne_status of this TicsTrustInfoVo.
191
+
192
+ 网元状态,INIT.初始化,UNKNOWN.未知,OFFLINE.离线,ONLINE.在线,FAULT.故障,TRUSTING.互信中,TRUST.已互信
193
+
194
+ :return: The ne_status of this TicsTrustInfoVo.
195
+ :rtype: str
196
+ """
197
+ return self._ne_status
198
+
199
+ @ne_status.setter
200
+ def ne_status(self, ne_status):
201
+ r"""Sets the ne_status of this TicsTrustInfoVo.
202
+
203
+ 网元状态,INIT.初始化,UNKNOWN.未知,OFFLINE.离线,ONLINE.在线,FAULT.故障,TRUSTING.互信中,TRUST.已互信
204
+
205
+ :param ne_status: The ne_status of this TicsTrustInfoVo.
206
+ :type ne_status: str
207
+ """
208
+ self._ne_status = ne_status
209
+
210
+ @property
211
+ def node_id(self):
212
+ r"""Gets the node_id of this TicsTrustInfoVo.
213
+
214
+ 节点id
215
+
216
+ :return: The node_id of this TicsTrustInfoVo.
217
+ :rtype: str
218
+ """
219
+ return self._node_id
220
+
221
+ @node_id.setter
222
+ def node_id(self, node_id):
223
+ r"""Sets the node_id of this TicsTrustInfoVo.
224
+
225
+ 节点id
226
+
227
+ :param node_id: The node_id of this TicsTrustInfoVo.
228
+ :type node_id: str
229
+ """
230
+ self._node_id = node_id
231
+
232
+ @property
233
+ def node_name(self):
234
+ r"""Gets the node_name of this TicsTrustInfoVo.
235
+
236
+ 节点名称
237
+
238
+ :return: The node_name of this TicsTrustInfoVo.
239
+ :rtype: str
240
+ """
241
+ return self._node_name
242
+
243
+ @node_name.setter
244
+ def node_name(self, node_name):
245
+ r"""Sets the node_name of this TicsTrustInfoVo.
246
+
247
+ 节点名称
248
+
249
+ :param node_name: The node_name of this TicsTrustInfoVo.
250
+ :type node_name: str
251
+ """
252
+ self._node_name = node_name
253
+
254
+ @property
255
+ def partner_alias(self):
256
+ r"""Gets the partner_alias of this TicsTrustInfoVo.
257
+
258
+ 合作方别名
259
+
260
+ :return: The partner_alias of this TicsTrustInfoVo.
261
+ :rtype: str
262
+ """
263
+ return self._partner_alias
264
+
265
+ @partner_alias.setter
266
+ def partner_alias(self, partner_alias):
267
+ r"""Sets the partner_alias of this TicsTrustInfoVo.
268
+
269
+ 合作方别名
270
+
271
+ :param partner_alias: The partner_alias of this TicsTrustInfoVo.
272
+ :type partner_alias: str
273
+ """
274
+ self._partner_alias = partner_alias
275
+
276
+ @property
277
+ def update_time(self):
278
+ r"""Gets the update_time of this TicsTrustInfoVo.
279
+
280
+ 更新时间
281
+
282
+ :return: The update_time of this TicsTrustInfoVo.
283
+ :rtype: datetime
284
+ """
285
+ return self._update_time
286
+
287
+ @update_time.setter
288
+ def update_time(self, update_time):
289
+ r"""Sets the update_time of this TicsTrustInfoVo.
290
+
291
+ 更新时间
292
+
293
+ :param update_time: The update_time of this TicsTrustInfoVo.
294
+ :type update_time: datetime
295
+ """
296
+ self._update_time = update_time
297
+
298
+ def to_dict(self):
299
+ """Returns the model properties as a dict"""
300
+ result = {}
301
+
302
+ for attr, _ in six.iteritems(self.openapi_types):
303
+ value = getattr(self, attr)
304
+ if isinstance(value, list):
305
+ result[attr] = list(map(
306
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
+ value
308
+ ))
309
+ elif hasattr(value, "to_dict"):
310
+ result[attr] = value.to_dict()
311
+ elif isinstance(value, dict):
312
+ result[attr] = dict(map(
313
+ lambda item: (item[0], item[1].to_dict())
314
+ if hasattr(item[1], "to_dict") else item,
315
+ value.items()
316
+ ))
317
+ else:
318
+ if attr in self.sensitive_list:
319
+ result[attr] = "****"
320
+ else:
321
+ result[attr] = value
322
+
323
+ return result
324
+
325
+ def to_str(self):
326
+ """Returns the string representation of the model"""
327
+ import simplejson as json
328
+ if six.PY2:
329
+ import sys
330
+ reload(sys)
331
+ sys.setdefaultencoding("utf-8")
332
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
+
334
+ def __repr__(self):
335
+ """For `print`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, TicsTrustInfoVo):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ 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 UpdateLeagueRequest:
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
+ 'league_id': 'str',
21
+ 'body': 'LeagueUpdateVo'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'league_id': 'league_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, league_id=None, body=None):
30
+ r"""UpdateLeagueRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param league_id: 联盟id,最大32位,字母和数字组成
35
+ :type league_id: str
36
+ :param body: Body of the UpdateLeagueRequest
37
+ :type body: :class:`huaweicloudsdktics.v1.LeagueUpdateVo`
38
+ """
39
+
40
+
41
+
42
+ self._league_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.league_id = league_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def league_id(self):
52
+ r"""Gets the league_id of this UpdateLeagueRequest.
53
+
54
+ 联盟id,最大32位,字母和数字组成
55
+
56
+ :return: The league_id of this UpdateLeagueRequest.
57
+ :rtype: str
58
+ """
59
+ return self._league_id
60
+
61
+ @league_id.setter
62
+ def league_id(self, league_id):
63
+ r"""Sets the league_id of this UpdateLeagueRequest.
64
+
65
+ 联盟id,最大32位,字母和数字组成
66
+
67
+ :param league_id: The league_id of this UpdateLeagueRequest.
68
+ :type league_id: str
69
+ """
70
+ self._league_id = league_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateLeagueRequest.
75
+
76
+ :return: The body of this UpdateLeagueRequest.
77
+ :rtype: :class:`huaweicloudsdktics.v1.LeagueUpdateVo`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateLeagueRequest.
84
+
85
+ :param body: The body of this UpdateLeagueRequest.
86
+ :type body: :class:`huaweicloudsdktics.v1.LeagueUpdateVo`
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, UpdateLeagueRequest):
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,112 @@
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 UpdateLeagueResponse(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
+ 'body': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ r"""UpdateLeagueResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: str
35
+ """
36
+
37
+ super(UpdateLeagueResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ r"""Gets the body of this UpdateLeagueResponse.
48
+
49
+ :return: The body of this UpdateLeagueResponse.
50
+ :rtype: str
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ r"""Sets the body of this UpdateLeagueResponse.
57
+
58
+ :param body: The body of this UpdateLeagueResponse.
59
+ :type body: str
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, UpdateLeagueResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
File without changes
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.region.region import Region
4
+ from huaweicloudsdkcore.region.provider import RegionProviderChain
5
+
6
+ class TicsRegion:
7
+ _PROVIDER = RegionProviderChain.get_default_region_provider_chain("TICS")
8
+
9
+ CN_NORTH_4 = Region("cn-north-4",
10
+ "https://tics.cn-north-4.myhuaweicloud.com")
11
+ CN_NORTH_2 = Region("cn-north-2",
12
+ "https://tics.cn-north-2.myhuaweicloud.com")
13
+
14
+ static_fields = {
15
+ "cn-north-4": CN_NORTH_4,
16
+ "cn-north-2": CN_NORTH_2,
17
+ }
18
+
19
+ @classmethod
20
+ def value_of(cls, region_id, static_fields=None):
21
+ if not region_id:
22
+ raise KeyError("Unexpected empty parameter: region_id")
23
+
24
+ fields = static_fields or cls.static_fields
25
+
26
+ region = cls._PROVIDER.get_region(region_id)
27
+ if region:
28
+ return region
29
+
30
+ if region_id in fields:
31
+ return fields.get(region_id)
32
+
33
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'Tics': [%s]" % (
34
+ region_id, ", ".join(sorted(fields.keys()))))