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