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,221 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class DeployVo:
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
+ 'node_id': 'str',
19
+ 'node_name': 'str',
20
+ 'node_partner_alias': 'str',
21
+ 'node_type': 'str',
22
+ 'stages': 'list[StageVo]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'node_id': 'node_id',
27
+ 'node_name': 'node_name',
28
+ 'node_partner_alias': 'node_partner_alias',
29
+ 'node_type': 'node_type',
30
+ 'stages': 'stages'
31
+ }
32
+
33
+ def __init__(self, node_id=None, node_name=None, node_partner_alias=None, node_type=None, stages=None):
34
+ r"""DeployVo
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param node_id: 节点Id
39
+ :type node_id: str
40
+ :param node_name: 节点名称
41
+ :type node_name: str
42
+ :param node_partner_alias: 参与方别名
43
+ :type node_partner_alias: str
44
+ :param node_type: 节点类型,AGENT.计算节点,AGG.聚合节点,AGG_MANAGER.聚合器管理节点,SERVER.控制节点
45
+ :type node_type: str
46
+ :param stages: 执行阶段
47
+ :type stages: list[:class:`huaweicloudsdktics.v1.StageVo`]
48
+ """
49
+
50
+
51
+
52
+ self._node_id = None
53
+ self._node_name = None
54
+ self._node_partner_alias = None
55
+ self._node_type = None
56
+ self._stages = None
57
+ self.discriminator = None
58
+
59
+ self.node_id = node_id
60
+ self.node_name = node_name
61
+ self.node_partner_alias = node_partner_alias
62
+ if node_type is not None:
63
+ self.node_type = node_type
64
+ if stages is not None:
65
+ self.stages = stages
66
+
67
+ @property
68
+ def node_id(self):
69
+ r"""Gets the node_id of this DeployVo.
70
+
71
+ 节点Id
72
+
73
+ :return: The node_id of this DeployVo.
74
+ :rtype: str
75
+ """
76
+ return self._node_id
77
+
78
+ @node_id.setter
79
+ def node_id(self, node_id):
80
+ r"""Sets the node_id of this DeployVo.
81
+
82
+ 节点Id
83
+
84
+ :param node_id: The node_id of this DeployVo.
85
+ :type node_id: str
86
+ """
87
+ self._node_id = node_id
88
+
89
+ @property
90
+ def node_name(self):
91
+ r"""Gets the node_name of this DeployVo.
92
+
93
+ 节点名称
94
+
95
+ :return: The node_name of this DeployVo.
96
+ :rtype: str
97
+ """
98
+ return self._node_name
99
+
100
+ @node_name.setter
101
+ def node_name(self, node_name):
102
+ r"""Sets the node_name of this DeployVo.
103
+
104
+ 节点名称
105
+
106
+ :param node_name: The node_name of this DeployVo.
107
+ :type node_name: str
108
+ """
109
+ self._node_name = node_name
110
+
111
+ @property
112
+ def node_partner_alias(self):
113
+ r"""Gets the node_partner_alias of this DeployVo.
114
+
115
+ 参与方别名
116
+
117
+ :return: The node_partner_alias of this DeployVo.
118
+ :rtype: str
119
+ """
120
+ return self._node_partner_alias
121
+
122
+ @node_partner_alias.setter
123
+ def node_partner_alias(self, node_partner_alias):
124
+ r"""Sets the node_partner_alias of this DeployVo.
125
+
126
+ 参与方别名
127
+
128
+ :param node_partner_alias: The node_partner_alias of this DeployVo.
129
+ :type node_partner_alias: str
130
+ """
131
+ self._node_partner_alias = node_partner_alias
132
+
133
+ @property
134
+ def node_type(self):
135
+ r"""Gets the node_type of this DeployVo.
136
+
137
+ 节点类型,AGENT.计算节点,AGG.聚合节点,AGG_MANAGER.聚合器管理节点,SERVER.控制节点
138
+
139
+ :return: The node_type of this DeployVo.
140
+ :rtype: str
141
+ """
142
+ return self._node_type
143
+
144
+ @node_type.setter
145
+ def node_type(self, node_type):
146
+ r"""Sets the node_type of this DeployVo.
147
+
148
+ 节点类型,AGENT.计算节点,AGG.聚合节点,AGG_MANAGER.聚合器管理节点,SERVER.控制节点
149
+
150
+ :param node_type: The node_type of this DeployVo.
151
+ :type node_type: str
152
+ """
153
+ self._node_type = node_type
154
+
155
+ @property
156
+ def stages(self):
157
+ r"""Gets the stages of this DeployVo.
158
+
159
+ 执行阶段
160
+
161
+ :return: The stages of this DeployVo.
162
+ :rtype: list[:class:`huaweicloudsdktics.v1.StageVo`]
163
+ """
164
+ return self._stages
165
+
166
+ @stages.setter
167
+ def stages(self, stages):
168
+ r"""Sets the stages of this DeployVo.
169
+
170
+ 执行阶段
171
+
172
+ :param stages: The stages of this DeployVo.
173
+ :type stages: list[:class:`huaweicloudsdktics.v1.StageVo`]
174
+ """
175
+ self._stages = stages
176
+
177
+ def to_dict(self):
178
+ result = {}
179
+
180
+ for attr, _ in self.openapi_types.items():
181
+ value = getattr(self, attr)
182
+ if isinstance(value, list):
183
+ result[attr] = list(map(
184
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
185
+ value
186
+ ))
187
+ elif hasattr(value, "to_dict"):
188
+ result[attr] = value.to_dict()
189
+ elif isinstance(value, dict):
190
+ result[attr] = dict(map(
191
+ lambda item: (item[0], item[1].to_dict())
192
+ if hasattr(item[1], "to_dict") else item,
193
+ value.items()
194
+ ))
195
+ else:
196
+ if attr in self.sensitive_list:
197
+ result[attr] = "****"
198
+ else:
199
+ result[attr] = value
200
+
201
+ return result
202
+
203
+ def to_str(self):
204
+ """Returns the string representation of the model"""
205
+ import simplejson as json
206
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
207
+
208
+ def __repr__(self):
209
+ """For `print`"""
210
+ return self.to_str()
211
+
212
+ def __eq__(self, other):
213
+ """Returns true if both objects are equal"""
214
+ if not isinstance(other, DeployVo):
215
+ return False
216
+
217
+ return self.__dict__ == other.__dict__
218
+
219
+ def __ne__(self, other):
220
+ """Returns true if both objects are not equal"""
221
+ return not self == other
@@ -0,0 +1,450 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class FlJobListVo:
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
+ 'algorithm_type': 'str',
19
+ 'approval_status': 'str',
20
+ 'create_time': 'datetime',
21
+ 'creator_name': 'str',
22
+ 'description': 'str',
23
+ 'ext': 'str',
24
+ 'hfl_platform_type': 'str',
25
+ 'hfl_type': 'str',
26
+ 'is_single_predict': 'bool',
27
+ 'job_id': 'str',
28
+ 'job_name': 'str',
29
+ 'job_type': 'str',
30
+ 'learning_task_type': 'str'
31
+ }
32
+
33
+ attribute_map = {
34
+ 'algorithm_type': 'algorithm_type',
35
+ 'approval_status': 'approval_status',
36
+ 'create_time': 'create_time',
37
+ 'creator_name': 'creator_name',
38
+ 'description': 'description',
39
+ 'ext': 'ext',
40
+ 'hfl_platform_type': 'hfl_platform_type',
41
+ 'hfl_type': 'hfl_type',
42
+ 'is_single_predict': 'is_single_predict',
43
+ 'job_id': 'job_id',
44
+ 'job_name': 'job_name',
45
+ 'job_type': 'job_type',
46
+ 'learning_task_type': 'learning_task_type'
47
+ }
48
+
49
+ def __init__(self, algorithm_type=None, approval_status=None, create_time=None, creator_name=None, description=None, ext=None, hfl_platform_type=None, hfl_type=None, is_single_predict=None, job_id=None, job_name=None, job_type=None, learning_task_type=None):
50
+ r"""FlJobListVo
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param algorithm_type: 纵向联邦算法类型枚举,XG_BOOST.XGBoost,LIGHT_BGM.LightGBM,LOGISTIC_REGRESSION.逻辑回归,NEURAL_NETWORK.神经网络,FIBINET.FIBINET
55
+ :type algorithm_type: str
56
+ :param approval_status: fl作业审批状态,APPROVED.审批通过,APPROVING.审批中,NEW.新建,REJECTED.驳回,REVOKED.撤销
57
+ :type approval_status: str
58
+ :param create_time: 创建时间
59
+ :type create_time: datetime
60
+ :param creator_name: 创建人名称
61
+ :type creator_name: str
62
+ :param description: 作业描述
63
+ :type description: str
64
+ :param ext: 参数等额外信息
65
+ :type ext: str
66
+ :param hfl_platform_type: 联邦学习运行平台枚举值,LOCAL.本地
67
+ :type hfl_platform_type: str
68
+ :param hfl_type: fl作业类型枚举,TRAIN.训练,EVALUATE.评估
69
+ :type hfl_type: str
70
+ :param is_single_predict: 单方还是双方预测
71
+ :type is_single_predict: bool
72
+ :param job_id: 作业id
73
+ :type job_id: str
74
+ :param job_name: 作业名称
75
+ :type job_name: str
76
+ :param job_type: 作业类型,SQL.联合SQL分析,HFL.横向联邦学习,VFL.纵向联邦学习,PREDICT.预测,DATA_EXCHANGE.数据交换
77
+ :type job_type: str
78
+ :param learning_task_type: 纵向联邦任务类型,CLASSIFICATION.分类,REGRESSION.拟合
79
+ :type learning_task_type: str
80
+ """
81
+
82
+
83
+
84
+ self._algorithm_type = None
85
+ self._approval_status = None
86
+ self._create_time = None
87
+ self._creator_name = None
88
+ self._description = None
89
+ self._ext = None
90
+ self._hfl_platform_type = None
91
+ self._hfl_type = None
92
+ self._is_single_predict = None
93
+ self._job_id = None
94
+ self._job_name = None
95
+ self._job_type = None
96
+ self._learning_task_type = None
97
+ self.discriminator = None
98
+
99
+ if algorithm_type is not None:
100
+ self.algorithm_type = algorithm_type
101
+ if approval_status is not None:
102
+ self.approval_status = approval_status
103
+ self.create_time = create_time
104
+ self.creator_name = creator_name
105
+ if description is not None:
106
+ self.description = description
107
+ if ext is not None:
108
+ self.ext = ext
109
+ self.hfl_platform_type = hfl_platform_type
110
+ self.hfl_type = hfl_type
111
+ if is_single_predict is not None:
112
+ self.is_single_predict = is_single_predict
113
+ self.job_id = job_id
114
+ self.job_name = job_name
115
+ if job_type is not None:
116
+ self.job_type = job_type
117
+ if learning_task_type is not None:
118
+ self.learning_task_type = learning_task_type
119
+
120
+ @property
121
+ def algorithm_type(self):
122
+ r"""Gets the algorithm_type of this FlJobListVo.
123
+
124
+ 纵向联邦算法类型枚举,XG_BOOST.XGBoost,LIGHT_BGM.LightGBM,LOGISTIC_REGRESSION.逻辑回归,NEURAL_NETWORK.神经网络,FIBINET.FIBINET
125
+
126
+ :return: The algorithm_type of this FlJobListVo.
127
+ :rtype: str
128
+ """
129
+ return self._algorithm_type
130
+
131
+ @algorithm_type.setter
132
+ def algorithm_type(self, algorithm_type):
133
+ r"""Sets the algorithm_type of this FlJobListVo.
134
+
135
+ 纵向联邦算法类型枚举,XG_BOOST.XGBoost,LIGHT_BGM.LightGBM,LOGISTIC_REGRESSION.逻辑回归,NEURAL_NETWORK.神经网络,FIBINET.FIBINET
136
+
137
+ :param algorithm_type: The algorithm_type of this FlJobListVo.
138
+ :type algorithm_type: str
139
+ """
140
+ self._algorithm_type = algorithm_type
141
+
142
+ @property
143
+ def approval_status(self):
144
+ r"""Gets the approval_status of this FlJobListVo.
145
+
146
+ fl作业审批状态,APPROVED.审批通过,APPROVING.审批中,NEW.新建,REJECTED.驳回,REVOKED.撤销
147
+
148
+ :return: The approval_status of this FlJobListVo.
149
+ :rtype: str
150
+ """
151
+ return self._approval_status
152
+
153
+ @approval_status.setter
154
+ def approval_status(self, approval_status):
155
+ r"""Sets the approval_status of this FlJobListVo.
156
+
157
+ fl作业审批状态,APPROVED.审批通过,APPROVING.审批中,NEW.新建,REJECTED.驳回,REVOKED.撤销
158
+
159
+ :param approval_status: The approval_status of this FlJobListVo.
160
+ :type approval_status: str
161
+ """
162
+ self._approval_status = approval_status
163
+
164
+ @property
165
+ def create_time(self):
166
+ r"""Gets the create_time of this FlJobListVo.
167
+
168
+ 创建时间
169
+
170
+ :return: The create_time of this FlJobListVo.
171
+ :rtype: datetime
172
+ """
173
+ return self._create_time
174
+
175
+ @create_time.setter
176
+ def create_time(self, create_time):
177
+ r"""Sets the create_time of this FlJobListVo.
178
+
179
+ 创建时间
180
+
181
+ :param create_time: The create_time of this FlJobListVo.
182
+ :type create_time: datetime
183
+ """
184
+ self._create_time = create_time
185
+
186
+ @property
187
+ def creator_name(self):
188
+ r"""Gets the creator_name of this FlJobListVo.
189
+
190
+ 创建人名称
191
+
192
+ :return: The creator_name of this FlJobListVo.
193
+ :rtype: str
194
+ """
195
+ return self._creator_name
196
+
197
+ @creator_name.setter
198
+ def creator_name(self, creator_name):
199
+ r"""Sets the creator_name of this FlJobListVo.
200
+
201
+ 创建人名称
202
+
203
+ :param creator_name: The creator_name of this FlJobListVo.
204
+ :type creator_name: str
205
+ """
206
+ self._creator_name = creator_name
207
+
208
+ @property
209
+ def description(self):
210
+ r"""Gets the description of this FlJobListVo.
211
+
212
+ 作业描述
213
+
214
+ :return: The description of this FlJobListVo.
215
+ :rtype: str
216
+ """
217
+ return self._description
218
+
219
+ @description.setter
220
+ def description(self, description):
221
+ r"""Sets the description of this FlJobListVo.
222
+
223
+ 作业描述
224
+
225
+ :param description: The description of this FlJobListVo.
226
+ :type description: str
227
+ """
228
+ self._description = description
229
+
230
+ @property
231
+ def ext(self):
232
+ r"""Gets the ext of this FlJobListVo.
233
+
234
+ 参数等额外信息
235
+
236
+ :return: The ext of this FlJobListVo.
237
+ :rtype: str
238
+ """
239
+ return self._ext
240
+
241
+ @ext.setter
242
+ def ext(self, ext):
243
+ r"""Sets the ext of this FlJobListVo.
244
+
245
+ 参数等额外信息
246
+
247
+ :param ext: The ext of this FlJobListVo.
248
+ :type ext: str
249
+ """
250
+ self._ext = ext
251
+
252
+ @property
253
+ def hfl_platform_type(self):
254
+ r"""Gets the hfl_platform_type of this FlJobListVo.
255
+
256
+ 联邦学习运行平台枚举值,LOCAL.本地
257
+
258
+ :return: The hfl_platform_type of this FlJobListVo.
259
+ :rtype: str
260
+ """
261
+ return self._hfl_platform_type
262
+
263
+ @hfl_platform_type.setter
264
+ def hfl_platform_type(self, hfl_platform_type):
265
+ r"""Sets the hfl_platform_type of this FlJobListVo.
266
+
267
+ 联邦学习运行平台枚举值,LOCAL.本地
268
+
269
+ :param hfl_platform_type: The hfl_platform_type of this FlJobListVo.
270
+ :type hfl_platform_type: str
271
+ """
272
+ self._hfl_platform_type = hfl_platform_type
273
+
274
+ @property
275
+ def hfl_type(self):
276
+ r"""Gets the hfl_type of this FlJobListVo.
277
+
278
+ fl作业类型枚举,TRAIN.训练,EVALUATE.评估
279
+
280
+ :return: The hfl_type of this FlJobListVo.
281
+ :rtype: str
282
+ """
283
+ return self._hfl_type
284
+
285
+ @hfl_type.setter
286
+ def hfl_type(self, hfl_type):
287
+ r"""Sets the hfl_type of this FlJobListVo.
288
+
289
+ fl作业类型枚举,TRAIN.训练,EVALUATE.评估
290
+
291
+ :param hfl_type: The hfl_type of this FlJobListVo.
292
+ :type hfl_type: str
293
+ """
294
+ self._hfl_type = hfl_type
295
+
296
+ @property
297
+ def is_single_predict(self):
298
+ r"""Gets the is_single_predict of this FlJobListVo.
299
+
300
+ 单方还是双方预测
301
+
302
+ :return: The is_single_predict of this FlJobListVo.
303
+ :rtype: bool
304
+ """
305
+ return self._is_single_predict
306
+
307
+ @is_single_predict.setter
308
+ def is_single_predict(self, is_single_predict):
309
+ r"""Sets the is_single_predict of this FlJobListVo.
310
+
311
+ 单方还是双方预测
312
+
313
+ :param is_single_predict: The is_single_predict of this FlJobListVo.
314
+ :type is_single_predict: bool
315
+ """
316
+ self._is_single_predict = is_single_predict
317
+
318
+ @property
319
+ def job_id(self):
320
+ r"""Gets the job_id of this FlJobListVo.
321
+
322
+ 作业id
323
+
324
+ :return: The job_id of this FlJobListVo.
325
+ :rtype: str
326
+ """
327
+ return self._job_id
328
+
329
+ @job_id.setter
330
+ def job_id(self, job_id):
331
+ r"""Sets the job_id of this FlJobListVo.
332
+
333
+ 作业id
334
+
335
+ :param job_id: The job_id of this FlJobListVo.
336
+ :type job_id: str
337
+ """
338
+ self._job_id = job_id
339
+
340
+ @property
341
+ def job_name(self):
342
+ r"""Gets the job_name of this FlJobListVo.
343
+
344
+ 作业名称
345
+
346
+ :return: The job_name of this FlJobListVo.
347
+ :rtype: str
348
+ """
349
+ return self._job_name
350
+
351
+ @job_name.setter
352
+ def job_name(self, job_name):
353
+ r"""Sets the job_name of this FlJobListVo.
354
+
355
+ 作业名称
356
+
357
+ :param job_name: The job_name of this FlJobListVo.
358
+ :type job_name: str
359
+ """
360
+ self._job_name = job_name
361
+
362
+ @property
363
+ def job_type(self):
364
+ r"""Gets the job_type of this FlJobListVo.
365
+
366
+ 作业类型,SQL.联合SQL分析,HFL.横向联邦学习,VFL.纵向联邦学习,PREDICT.预测,DATA_EXCHANGE.数据交换
367
+
368
+ :return: The job_type of this FlJobListVo.
369
+ :rtype: str
370
+ """
371
+ return self._job_type
372
+
373
+ @job_type.setter
374
+ def job_type(self, job_type):
375
+ r"""Sets the job_type of this FlJobListVo.
376
+
377
+ 作业类型,SQL.联合SQL分析,HFL.横向联邦学习,VFL.纵向联邦学习,PREDICT.预测,DATA_EXCHANGE.数据交换
378
+
379
+ :param job_type: The job_type of this FlJobListVo.
380
+ :type job_type: str
381
+ """
382
+ self._job_type = job_type
383
+
384
+ @property
385
+ def learning_task_type(self):
386
+ r"""Gets the learning_task_type of this FlJobListVo.
387
+
388
+ 纵向联邦任务类型,CLASSIFICATION.分类,REGRESSION.拟合
389
+
390
+ :return: The learning_task_type of this FlJobListVo.
391
+ :rtype: str
392
+ """
393
+ return self._learning_task_type
394
+
395
+ @learning_task_type.setter
396
+ def learning_task_type(self, learning_task_type):
397
+ r"""Sets the learning_task_type of this FlJobListVo.
398
+
399
+ 纵向联邦任务类型,CLASSIFICATION.分类,REGRESSION.拟合
400
+
401
+ :param learning_task_type: The learning_task_type of this FlJobListVo.
402
+ :type learning_task_type: str
403
+ """
404
+ self._learning_task_type = learning_task_type
405
+
406
+ def to_dict(self):
407
+ result = {}
408
+
409
+ for attr, _ in self.openapi_types.items():
410
+ value = getattr(self, attr)
411
+ if isinstance(value, list):
412
+ result[attr] = list(map(
413
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
414
+ value
415
+ ))
416
+ elif hasattr(value, "to_dict"):
417
+ result[attr] = value.to_dict()
418
+ elif isinstance(value, dict):
419
+ result[attr] = dict(map(
420
+ lambda item: (item[0], item[1].to_dict())
421
+ if hasattr(item[1], "to_dict") else item,
422
+ value.items()
423
+ ))
424
+ else:
425
+ if attr in self.sensitive_list:
426
+ result[attr] = "****"
427
+ else:
428
+ result[attr] = value
429
+
430
+ return result
431
+
432
+ def to_str(self):
433
+ """Returns the string representation of the model"""
434
+ import simplejson as json
435
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
436
+
437
+ def __repr__(self):
438
+ """For `print`"""
439
+ return self.to_str()
440
+
441
+ def __eq__(self, other):
442
+ """Returns true if both objects are equal"""
443
+ if not isinstance(other, FlJobListVo):
444
+ return False
445
+
446
+ return self.__dict__ == other.__dict__
447
+
448
+ def __ne__(self, other):
449
+ """Returns true if both objects are not equal"""
450
+ return not self == other