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,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 ShowJobInstanceDagResponse(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': 'list[DeployVo]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ r"""ShowJobInstanceDagResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: list[:class:`huaweicloudsdktics.v1.DeployVo`]
35
+ """
36
+
37
+ super(ShowJobInstanceDagResponse, 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 ShowJobInstanceDagResponse.
48
+
49
+ :return: The body of this ShowJobInstanceDagResponse.
50
+ :rtype: list[:class:`huaweicloudsdktics.v1.DeployVo`]
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ r"""Sets the body of this ShowJobInstanceDagResponse.
57
+
58
+ :param body: The body of this ShowJobInstanceDagResponse.
59
+ :type body: list[:class:`huaweicloudsdktics.v1.DeployVo`]
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, ShowJobInstanceDagResponse):
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
@@ -0,0 +1,172 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobStatisticsRequest:
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
+ 'start_date': 'str',
22
+ 'end_date': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'league_id': 'league_id',
27
+ 'start_date': 'start_date',
28
+ 'end_date': 'end_date'
29
+ }
30
+
31
+ def __init__(self, league_id=None, start_date=None, end_date=None):
32
+ r"""ShowJobStatisticsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param league_id: 联盟id,最大32位,字母和数字组成
37
+ :type league_id: str
38
+ :param start_date: 开始日期
39
+ :type start_date: str
40
+ :param end_date: 结束日期
41
+ :type end_date: str
42
+ """
43
+
44
+
45
+
46
+ self._league_id = None
47
+ self._start_date = None
48
+ self._end_date = None
49
+ self.discriminator = None
50
+
51
+ self.league_id = league_id
52
+ if start_date is not None:
53
+ self.start_date = start_date
54
+ if end_date is not None:
55
+ self.end_date = end_date
56
+
57
+ @property
58
+ def league_id(self):
59
+ r"""Gets the league_id of this ShowJobStatisticsRequest.
60
+
61
+ 联盟id,最大32位,字母和数字组成
62
+
63
+ :return: The league_id of this ShowJobStatisticsRequest.
64
+ :rtype: str
65
+ """
66
+ return self._league_id
67
+
68
+ @league_id.setter
69
+ def league_id(self, league_id):
70
+ r"""Sets the league_id of this ShowJobStatisticsRequest.
71
+
72
+ 联盟id,最大32位,字母和数字组成
73
+
74
+ :param league_id: The league_id of this ShowJobStatisticsRequest.
75
+ :type league_id: str
76
+ """
77
+ self._league_id = league_id
78
+
79
+ @property
80
+ def start_date(self):
81
+ r"""Gets the start_date of this ShowJobStatisticsRequest.
82
+
83
+ 开始日期
84
+
85
+ :return: The start_date of this ShowJobStatisticsRequest.
86
+ :rtype: str
87
+ """
88
+ return self._start_date
89
+
90
+ @start_date.setter
91
+ def start_date(self, start_date):
92
+ r"""Sets the start_date of this ShowJobStatisticsRequest.
93
+
94
+ 开始日期
95
+
96
+ :param start_date: The start_date of this ShowJobStatisticsRequest.
97
+ :type start_date: str
98
+ """
99
+ self._start_date = start_date
100
+
101
+ @property
102
+ def end_date(self):
103
+ r"""Gets the end_date of this ShowJobStatisticsRequest.
104
+
105
+ 结束日期
106
+
107
+ :return: The end_date of this ShowJobStatisticsRequest.
108
+ :rtype: str
109
+ """
110
+ return self._end_date
111
+
112
+ @end_date.setter
113
+ def end_date(self, end_date):
114
+ r"""Sets the end_date of this ShowJobStatisticsRequest.
115
+
116
+ 结束日期
117
+
118
+ :param end_date: The end_date of this ShowJobStatisticsRequest.
119
+ :type end_date: str
120
+ """
121
+ self._end_date = end_date
122
+
123
+ def to_dict(self):
124
+ """Returns the model properties as a dict"""
125
+ result = {}
126
+
127
+ for attr, _ in six.iteritems(self.openapi_types):
128
+ value = getattr(self, attr)
129
+ if isinstance(value, list):
130
+ result[attr] = list(map(
131
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
+ value
133
+ ))
134
+ elif hasattr(value, "to_dict"):
135
+ result[attr] = value.to_dict()
136
+ elif isinstance(value, dict):
137
+ result[attr] = dict(map(
138
+ lambda item: (item[0], item[1].to_dict())
139
+ if hasattr(item[1], "to_dict") else item,
140
+ value.items()
141
+ ))
142
+ else:
143
+ if attr in self.sensitive_list:
144
+ result[attr] = "****"
145
+ else:
146
+ result[attr] = value
147
+
148
+ return result
149
+
150
+ def to_str(self):
151
+ """Returns the string representation of the model"""
152
+ import simplejson as json
153
+ if six.PY2:
154
+ import sys
155
+ reload(sys)
156
+ sys.setdefaultencoding("utf-8")
157
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
+
159
+ def __repr__(self):
160
+ """For `print`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, ShowJobStatisticsRequest):
166
+ return False
167
+
168
+ return self.__dict__ == other.__dict__
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ return not self == other
@@ -0,0 +1,232 @@
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 ShowJobStatisticsResponse(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
+ 'job_cnt': 'int',
22
+ 'job_ins_cnt': 'int',
23
+ 'job_ins_fail_cnt': 'int',
24
+ 'job_ins_intercept_cnt': 'int',
25
+ 'job_ins_success_cnt': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'job_cnt': 'job_cnt',
30
+ 'job_ins_cnt': 'job_ins_cnt',
31
+ 'job_ins_fail_cnt': 'job_ins_fail_cnt',
32
+ 'job_ins_intercept_cnt': 'job_ins_intercept_cnt',
33
+ 'job_ins_success_cnt': 'job_ins_success_cnt'
34
+ }
35
+
36
+ def __init__(self, job_cnt=None, job_ins_cnt=None, job_ins_fail_cnt=None, job_ins_intercept_cnt=None, job_ins_success_cnt=None):
37
+ r"""ShowJobStatisticsResponse
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param job_cnt: 作业数量统计
42
+ :type job_cnt: int
43
+ :param job_ins_cnt: 作业实例次数
44
+ :type job_ins_cnt: int
45
+ :param job_ins_fail_cnt: 作业实例失败次数
46
+ :type job_ins_fail_cnt: int
47
+ :param job_ins_intercept_cnt: 作业实例拦截次数
48
+ :type job_ins_intercept_cnt: int
49
+ :param job_ins_success_cnt: 作业实例成功次数
50
+ :type job_ins_success_cnt: int
51
+ """
52
+
53
+ super(ShowJobStatisticsResponse, self).__init__()
54
+
55
+ self._job_cnt = None
56
+ self._job_ins_cnt = None
57
+ self._job_ins_fail_cnt = None
58
+ self._job_ins_intercept_cnt = None
59
+ self._job_ins_success_cnt = None
60
+ self.discriminator = None
61
+
62
+ if job_cnt is not None:
63
+ self.job_cnt = job_cnt
64
+ if job_ins_cnt is not None:
65
+ self.job_ins_cnt = job_ins_cnt
66
+ if job_ins_fail_cnt is not None:
67
+ self.job_ins_fail_cnt = job_ins_fail_cnt
68
+ if job_ins_intercept_cnt is not None:
69
+ self.job_ins_intercept_cnt = job_ins_intercept_cnt
70
+ if job_ins_success_cnt is not None:
71
+ self.job_ins_success_cnt = job_ins_success_cnt
72
+
73
+ @property
74
+ def job_cnt(self):
75
+ r"""Gets the job_cnt of this ShowJobStatisticsResponse.
76
+
77
+ 作业数量统计
78
+
79
+ :return: The job_cnt of this ShowJobStatisticsResponse.
80
+ :rtype: int
81
+ """
82
+ return self._job_cnt
83
+
84
+ @job_cnt.setter
85
+ def job_cnt(self, job_cnt):
86
+ r"""Sets the job_cnt of this ShowJobStatisticsResponse.
87
+
88
+ 作业数量统计
89
+
90
+ :param job_cnt: The job_cnt of this ShowJobStatisticsResponse.
91
+ :type job_cnt: int
92
+ """
93
+ self._job_cnt = job_cnt
94
+
95
+ @property
96
+ def job_ins_cnt(self):
97
+ r"""Gets the job_ins_cnt of this ShowJobStatisticsResponse.
98
+
99
+ 作业实例次数
100
+
101
+ :return: The job_ins_cnt of this ShowJobStatisticsResponse.
102
+ :rtype: int
103
+ """
104
+ return self._job_ins_cnt
105
+
106
+ @job_ins_cnt.setter
107
+ def job_ins_cnt(self, job_ins_cnt):
108
+ r"""Sets the job_ins_cnt of this ShowJobStatisticsResponse.
109
+
110
+ 作业实例次数
111
+
112
+ :param job_ins_cnt: The job_ins_cnt of this ShowJobStatisticsResponse.
113
+ :type job_ins_cnt: int
114
+ """
115
+ self._job_ins_cnt = job_ins_cnt
116
+
117
+ @property
118
+ def job_ins_fail_cnt(self):
119
+ r"""Gets the job_ins_fail_cnt of this ShowJobStatisticsResponse.
120
+
121
+ 作业实例失败次数
122
+
123
+ :return: The job_ins_fail_cnt of this ShowJobStatisticsResponse.
124
+ :rtype: int
125
+ """
126
+ return self._job_ins_fail_cnt
127
+
128
+ @job_ins_fail_cnt.setter
129
+ def job_ins_fail_cnt(self, job_ins_fail_cnt):
130
+ r"""Sets the job_ins_fail_cnt of this ShowJobStatisticsResponse.
131
+
132
+ 作业实例失败次数
133
+
134
+ :param job_ins_fail_cnt: The job_ins_fail_cnt of this ShowJobStatisticsResponse.
135
+ :type job_ins_fail_cnt: int
136
+ """
137
+ self._job_ins_fail_cnt = job_ins_fail_cnt
138
+
139
+ @property
140
+ def job_ins_intercept_cnt(self):
141
+ r"""Gets the job_ins_intercept_cnt of this ShowJobStatisticsResponse.
142
+
143
+ 作业实例拦截次数
144
+
145
+ :return: The job_ins_intercept_cnt of this ShowJobStatisticsResponse.
146
+ :rtype: int
147
+ """
148
+ return self._job_ins_intercept_cnt
149
+
150
+ @job_ins_intercept_cnt.setter
151
+ def job_ins_intercept_cnt(self, job_ins_intercept_cnt):
152
+ r"""Sets the job_ins_intercept_cnt of this ShowJobStatisticsResponse.
153
+
154
+ 作业实例拦截次数
155
+
156
+ :param job_ins_intercept_cnt: The job_ins_intercept_cnt of this ShowJobStatisticsResponse.
157
+ :type job_ins_intercept_cnt: int
158
+ """
159
+ self._job_ins_intercept_cnt = job_ins_intercept_cnt
160
+
161
+ @property
162
+ def job_ins_success_cnt(self):
163
+ r"""Gets the job_ins_success_cnt of this ShowJobStatisticsResponse.
164
+
165
+ 作业实例成功次数
166
+
167
+ :return: The job_ins_success_cnt of this ShowJobStatisticsResponse.
168
+ :rtype: int
169
+ """
170
+ return self._job_ins_success_cnt
171
+
172
+ @job_ins_success_cnt.setter
173
+ def job_ins_success_cnt(self, job_ins_success_cnt):
174
+ r"""Sets the job_ins_success_cnt of this ShowJobStatisticsResponse.
175
+
176
+ 作业实例成功次数
177
+
178
+ :param job_ins_success_cnt: The job_ins_success_cnt of this ShowJobStatisticsResponse.
179
+ :type job_ins_success_cnt: int
180
+ """
181
+ self._job_ins_success_cnt = job_ins_success_cnt
182
+
183
+ def to_dict(self):
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.openapi_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ if attr in self.sensitive_list:
204
+ result[attr] = "****"
205
+ else:
206
+ result[attr] = value
207
+
208
+ return result
209
+
210
+ def to_str(self):
211
+ """Returns the string representation of the model"""
212
+ import simplejson as json
213
+ if six.PY2:
214
+ import sys
215
+ reload(sys)
216
+ sys.setdefaultencoding("utf-8")
217
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
218
+
219
+ def __repr__(self):
220
+ """For `print`"""
221
+ return self.to_str()
222
+
223
+ def __eq__(self, other):
224
+ """Returns true if both objects are equal"""
225
+ if not isinstance(other, ShowJobStatisticsResponse):
226
+ return False
227
+
228
+ return self.__dict__ == other.__dict__
229
+
230
+ def __ne__(self, other):
231
+ """Returns true if both objects are not equal"""
232
+ 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 ShowLeagueRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'league_id': 'league_id'
25
+ }
26
+
27
+ def __init__(self, league_id=None):
28
+ r"""ShowLeagueRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param league_id: 联盟id,最大32位,字母和数字组成
33
+ :type league_id: str
34
+ """
35
+
36
+
37
+
38
+ self._league_id = None
39
+ self.discriminator = None
40
+
41
+ self.league_id = league_id
42
+
43
+ @property
44
+ def league_id(self):
45
+ r"""Gets the league_id of this ShowLeagueRequest.
46
+
47
+ 联盟id,最大32位,字母和数字组成
48
+
49
+ :return: The league_id of this ShowLeagueRequest.
50
+ :rtype: str
51
+ """
52
+ return self._league_id
53
+
54
+ @league_id.setter
55
+ def league_id(self, league_id):
56
+ r"""Sets the league_id of this ShowLeagueRequest.
57
+
58
+ 联盟id,最大32位,字母和数字组成
59
+
60
+ :param league_id: The league_id of this ShowLeagueRequest.
61
+ :type league_id: str
62
+ """
63
+ self._league_id = league_id
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, ShowLeagueRequest):
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