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,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RoundDeployVo:
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
+ 'deploys': 'list[DeployVo]',
21
+ 'round_id': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'deploys': 'deploys',
26
+ 'round_id': 'round_id'
27
+ }
28
+
29
+ def __init__(self, deploys=None, round_id=None):
30
+ r"""RoundDeployVo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param deploys: deploy
35
+ :type deploys: list[:class:`huaweicloudsdktics.v1.DeployVo`]
36
+ :param round_id: 轮数
37
+ :type round_id: int
38
+ """
39
+
40
+
41
+
42
+ self._deploys = None
43
+ self._round_id = None
44
+ self.discriminator = None
45
+
46
+ if deploys is not None:
47
+ self.deploys = deploys
48
+ if round_id is not None:
49
+ self.round_id = round_id
50
+
51
+ @property
52
+ def deploys(self):
53
+ r"""Gets the deploys of this RoundDeployVo.
54
+
55
+ deploy
56
+
57
+ :return: The deploys of this RoundDeployVo.
58
+ :rtype: list[:class:`huaweicloudsdktics.v1.DeployVo`]
59
+ """
60
+ return self._deploys
61
+
62
+ @deploys.setter
63
+ def deploys(self, deploys):
64
+ r"""Sets the deploys of this RoundDeployVo.
65
+
66
+ deploy
67
+
68
+ :param deploys: The deploys of this RoundDeployVo.
69
+ :type deploys: list[:class:`huaweicloudsdktics.v1.DeployVo`]
70
+ """
71
+ self._deploys = deploys
72
+
73
+ @property
74
+ def round_id(self):
75
+ r"""Gets the round_id of this RoundDeployVo.
76
+
77
+ 轮数
78
+
79
+ :return: The round_id of this RoundDeployVo.
80
+ :rtype: int
81
+ """
82
+ return self._round_id
83
+
84
+ @round_id.setter
85
+ def round_id(self, round_id):
86
+ r"""Sets the round_id of this RoundDeployVo.
87
+
88
+ 轮数
89
+
90
+ :param round_id: The round_id of this RoundDeployVo.
91
+ :type round_id: int
92
+ """
93
+ self._round_id = round_id
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, RoundDeployVo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ 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 ShowAgentDetailRequest:
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
+ 'agent_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'agent_id': 'agent_id'
25
+ }
26
+
27
+ def __init__(self, agent_id=None):
28
+ r"""ShowAgentDetailRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param agent_id: 可信节点ID
33
+ :type agent_id: str
34
+ """
35
+
36
+
37
+
38
+ self._agent_id = None
39
+ self.discriminator = None
40
+
41
+ self.agent_id = agent_id
42
+
43
+ @property
44
+ def agent_id(self):
45
+ r"""Gets the agent_id of this ShowAgentDetailRequest.
46
+
47
+ 可信节点ID
48
+
49
+ :return: The agent_id of this ShowAgentDetailRequest.
50
+ :rtype: str
51
+ """
52
+ return self._agent_id
53
+
54
+ @agent_id.setter
55
+ def agent_id(self, agent_id):
56
+ r"""Sets the agent_id of this ShowAgentDetailRequest.
57
+
58
+ 可信节点ID
59
+
60
+ :param agent_id: The agent_id of this ShowAgentDetailRequest.
61
+ :type agent_id: str
62
+ """
63
+ self._agent_id = agent_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, ShowAgentDetailRequest):
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,212 @@
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 ShowAgentDetailResponse(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
+ 'agent_deploy': 'TicsAgentDeploy',
22
+ 'agent_deploy_bcs': 'TicsAgentDeployBcs',
23
+ 'agent_deploy_detail': 'TicsAgentDeployDetail',
24
+ 'agent_deploy_nat': 'TicsAgentNatCommonInfo',
25
+ 'agent_deploy_node': 'TicsAgentNodeInfo'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'agent_deploy': 'agent_deploy',
30
+ 'agent_deploy_bcs': 'agent_deploy_bcs',
31
+ 'agent_deploy_detail': 'agent_deploy_detail',
32
+ 'agent_deploy_nat': 'agent_deploy_nat',
33
+ 'agent_deploy_node': 'agent_deploy_node'
34
+ }
35
+
36
+ def __init__(self, agent_deploy=None, agent_deploy_bcs=None, agent_deploy_detail=None, agent_deploy_nat=None, agent_deploy_node=None):
37
+ r"""ShowAgentDetailResponse
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param agent_deploy:
42
+ :type agent_deploy: :class:`huaweicloudsdktics.v1.TicsAgentDeploy`
43
+ :param agent_deploy_bcs:
44
+ :type agent_deploy_bcs: :class:`huaweicloudsdktics.v1.TicsAgentDeployBcs`
45
+ :param agent_deploy_detail:
46
+ :type agent_deploy_detail: :class:`huaweicloudsdktics.v1.TicsAgentDeployDetail`
47
+ :param agent_deploy_nat:
48
+ :type agent_deploy_nat: :class:`huaweicloudsdktics.v1.TicsAgentNatCommonInfo`
49
+ :param agent_deploy_node:
50
+ :type agent_deploy_node: :class:`huaweicloudsdktics.v1.TicsAgentNodeInfo`
51
+ """
52
+
53
+ super(ShowAgentDetailResponse, self).__init__()
54
+
55
+ self._agent_deploy = None
56
+ self._agent_deploy_bcs = None
57
+ self._agent_deploy_detail = None
58
+ self._agent_deploy_nat = None
59
+ self._agent_deploy_node = None
60
+ self.discriminator = None
61
+
62
+ if agent_deploy is not None:
63
+ self.agent_deploy = agent_deploy
64
+ if agent_deploy_bcs is not None:
65
+ self.agent_deploy_bcs = agent_deploy_bcs
66
+ if agent_deploy_detail is not None:
67
+ self.agent_deploy_detail = agent_deploy_detail
68
+ if agent_deploy_nat is not None:
69
+ self.agent_deploy_nat = agent_deploy_nat
70
+ if agent_deploy_node is not None:
71
+ self.agent_deploy_node = agent_deploy_node
72
+
73
+ @property
74
+ def agent_deploy(self):
75
+ r"""Gets the agent_deploy of this ShowAgentDetailResponse.
76
+
77
+ :return: The agent_deploy of this ShowAgentDetailResponse.
78
+ :rtype: :class:`huaweicloudsdktics.v1.TicsAgentDeploy`
79
+ """
80
+ return self._agent_deploy
81
+
82
+ @agent_deploy.setter
83
+ def agent_deploy(self, agent_deploy):
84
+ r"""Sets the agent_deploy of this ShowAgentDetailResponse.
85
+
86
+ :param agent_deploy: The agent_deploy of this ShowAgentDetailResponse.
87
+ :type agent_deploy: :class:`huaweicloudsdktics.v1.TicsAgentDeploy`
88
+ """
89
+ self._agent_deploy = agent_deploy
90
+
91
+ @property
92
+ def agent_deploy_bcs(self):
93
+ r"""Gets the agent_deploy_bcs of this ShowAgentDetailResponse.
94
+
95
+ :return: The agent_deploy_bcs of this ShowAgentDetailResponse.
96
+ :rtype: :class:`huaweicloudsdktics.v1.TicsAgentDeployBcs`
97
+ """
98
+ return self._agent_deploy_bcs
99
+
100
+ @agent_deploy_bcs.setter
101
+ def agent_deploy_bcs(self, agent_deploy_bcs):
102
+ r"""Sets the agent_deploy_bcs of this ShowAgentDetailResponse.
103
+
104
+ :param agent_deploy_bcs: The agent_deploy_bcs of this ShowAgentDetailResponse.
105
+ :type agent_deploy_bcs: :class:`huaweicloudsdktics.v1.TicsAgentDeployBcs`
106
+ """
107
+ self._agent_deploy_bcs = agent_deploy_bcs
108
+
109
+ @property
110
+ def agent_deploy_detail(self):
111
+ r"""Gets the agent_deploy_detail of this ShowAgentDetailResponse.
112
+
113
+ :return: The agent_deploy_detail of this ShowAgentDetailResponse.
114
+ :rtype: :class:`huaweicloudsdktics.v1.TicsAgentDeployDetail`
115
+ """
116
+ return self._agent_deploy_detail
117
+
118
+ @agent_deploy_detail.setter
119
+ def agent_deploy_detail(self, agent_deploy_detail):
120
+ r"""Sets the agent_deploy_detail of this ShowAgentDetailResponse.
121
+
122
+ :param agent_deploy_detail: The agent_deploy_detail of this ShowAgentDetailResponse.
123
+ :type agent_deploy_detail: :class:`huaweicloudsdktics.v1.TicsAgentDeployDetail`
124
+ """
125
+ self._agent_deploy_detail = agent_deploy_detail
126
+
127
+ @property
128
+ def agent_deploy_nat(self):
129
+ r"""Gets the agent_deploy_nat of this ShowAgentDetailResponse.
130
+
131
+ :return: The agent_deploy_nat of this ShowAgentDetailResponse.
132
+ :rtype: :class:`huaweicloudsdktics.v1.TicsAgentNatCommonInfo`
133
+ """
134
+ return self._agent_deploy_nat
135
+
136
+ @agent_deploy_nat.setter
137
+ def agent_deploy_nat(self, agent_deploy_nat):
138
+ r"""Sets the agent_deploy_nat of this ShowAgentDetailResponse.
139
+
140
+ :param agent_deploy_nat: The agent_deploy_nat of this ShowAgentDetailResponse.
141
+ :type agent_deploy_nat: :class:`huaweicloudsdktics.v1.TicsAgentNatCommonInfo`
142
+ """
143
+ self._agent_deploy_nat = agent_deploy_nat
144
+
145
+ @property
146
+ def agent_deploy_node(self):
147
+ r"""Gets the agent_deploy_node of this ShowAgentDetailResponse.
148
+
149
+ :return: The agent_deploy_node of this ShowAgentDetailResponse.
150
+ :rtype: :class:`huaweicloudsdktics.v1.TicsAgentNodeInfo`
151
+ """
152
+ return self._agent_deploy_node
153
+
154
+ @agent_deploy_node.setter
155
+ def agent_deploy_node(self, agent_deploy_node):
156
+ r"""Sets the agent_deploy_node of this ShowAgentDetailResponse.
157
+
158
+ :param agent_deploy_node: The agent_deploy_node of this ShowAgentDetailResponse.
159
+ :type agent_deploy_node: :class:`huaweicloudsdktics.v1.TicsAgentNodeInfo`
160
+ """
161
+ self._agent_deploy_node = agent_deploy_node
162
+
163
+ def to_dict(self):
164
+ """Returns the model properties as a dict"""
165
+ result = {}
166
+
167
+ for attr, _ in six.iteritems(self.openapi_types):
168
+ value = getattr(self, attr)
169
+ if isinstance(value, list):
170
+ result[attr] = list(map(
171
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
172
+ value
173
+ ))
174
+ elif hasattr(value, "to_dict"):
175
+ result[attr] = value.to_dict()
176
+ elif isinstance(value, dict):
177
+ result[attr] = dict(map(
178
+ lambda item: (item[0], item[1].to_dict())
179
+ if hasattr(item[1], "to_dict") else item,
180
+ value.items()
181
+ ))
182
+ else:
183
+ if attr in self.sensitive_list:
184
+ result[attr] = "****"
185
+ else:
186
+ result[attr] = value
187
+
188
+ return result
189
+
190
+ def to_str(self):
191
+ """Returns the string representation of the model"""
192
+ import simplejson as json
193
+ if six.PY2:
194
+ import sys
195
+ reload(sys)
196
+ sys.setdefaultencoding("utf-8")
197
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
198
+
199
+ def __repr__(self):
200
+ """For `print`"""
201
+ return self.to_str()
202
+
203
+ def __eq__(self, other):
204
+ """Returns true if both objects are equal"""
205
+ if not isinstance(other, ShowAgentDetailResponse):
206
+ return False
207
+
208
+ return self.__dict__ == other.__dict__
209
+
210
+ def __ne__(self, other):
211
+ """Returns true if both objects are not equal"""
212
+ 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 ShowDatasetStatisticsRequest:
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"""ShowDatasetStatisticsRequest
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 ShowDatasetStatisticsRequest.
60
+
61
+ 联盟id,最大32位,字母和数字组成
62
+
63
+ :return: The league_id of this ShowDatasetStatisticsRequest.
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 ShowDatasetStatisticsRequest.
71
+
72
+ 联盟id,最大32位,字母和数字组成
73
+
74
+ :param league_id: The league_id of this ShowDatasetStatisticsRequest.
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 ShowDatasetStatisticsRequest.
82
+
83
+ 开始日期
84
+
85
+ :return: The start_date of this ShowDatasetStatisticsRequest.
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 ShowDatasetStatisticsRequest.
93
+
94
+ 开始日期
95
+
96
+ :param start_date: The start_date of this ShowDatasetStatisticsRequest.
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 ShowDatasetStatisticsRequest.
104
+
105
+ 结束日期
106
+
107
+ :return: The end_date of this ShowDatasetStatisticsRequest.
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 ShowDatasetStatisticsRequest.
115
+
116
+ 结束日期
117
+
118
+ :param end_date: The end_date of this ShowDatasetStatisticsRequest.
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, ShowDatasetStatisticsRequest):
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