huaweicloudsdkcodeartsbuild 3.1.148__py2.py3-none-any.whl → 3.1.150__py2.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 (88) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +77 -2
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1619 -123
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1619 -123
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +77 -2
  5. huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
  17. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
  18. huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
  45. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  83. huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
  84. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
  85. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +88 -13
  86. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
  87. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
  88. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,373 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListProjectJobsRequest:
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
+ 'project_id': 'str',
21
+ 'page_index': 'int',
22
+ 'page_size': 'int',
23
+ 'search': 'str',
24
+ 'sort_field': 'str',
25
+ 'sort_order': 'str',
26
+ 'creator_id': 'str',
27
+ 'build_status': 'str',
28
+ 'by_group': 'bool',
29
+ 'group_path_id': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'project_id': 'project_id',
34
+ 'page_index': 'page_index',
35
+ 'page_size': 'page_size',
36
+ 'search': 'search',
37
+ 'sort_field': 'sort_field',
38
+ 'sort_order': 'sort_order',
39
+ 'creator_id': 'creator_id',
40
+ 'build_status': 'build_status',
41
+ 'by_group': 'by_group',
42
+ 'group_path_id': 'group_path_id'
43
+ }
44
+
45
+ def __init__(self, project_id=None, page_index=None, page_size=None, search=None, sort_field=None, sort_order=None, creator_id=None, build_status=None, by_group=None, group_path_id=None):
46
+ r"""ListProjectJobsRequest
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param project_id: CodeArts项目ID,32位数字、小写字母组合。
51
+ :type project_id: str
52
+ :param page_index: **参数解释**: 分页页码, 表示从此页开始查询。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,大于等于0。
53
+ :type page_index: int
54
+ :param page_size: **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
55
+ :type page_size: int
56
+ :param search: 查询条件
57
+ :type search: str
58
+ :param sort_field: 排序的字段
59
+ :type sort_field: str
60
+ :param sort_order: 排序顺序
61
+ :type sort_order: str
62
+ :param creator_id: 创建人ID
63
+ :type creator_id: str
64
+ :param build_status: 构建状态过滤条件
65
+ :type build_status: str
66
+ :param by_group: 是否分组
67
+ :type by_group: bool
68
+ :param group_path_id: 分组ID
69
+ :type group_path_id: str
70
+ """
71
+
72
+
73
+
74
+ self._project_id = None
75
+ self._page_index = None
76
+ self._page_size = None
77
+ self._search = None
78
+ self._sort_field = None
79
+ self._sort_order = None
80
+ self._creator_id = None
81
+ self._build_status = None
82
+ self._by_group = None
83
+ self._group_path_id = None
84
+ self.discriminator = None
85
+
86
+ self.project_id = project_id
87
+ self.page_index = page_index
88
+ self.page_size = page_size
89
+ if search is not None:
90
+ self.search = search
91
+ if sort_field is not None:
92
+ self.sort_field = sort_field
93
+ if sort_order is not None:
94
+ self.sort_order = sort_order
95
+ if creator_id is not None:
96
+ self.creator_id = creator_id
97
+ if build_status is not None:
98
+ self.build_status = build_status
99
+ if by_group is not None:
100
+ self.by_group = by_group
101
+ if group_path_id is not None:
102
+ self.group_path_id = group_path_id
103
+
104
+ @property
105
+ def project_id(self):
106
+ r"""Gets the project_id of this ListProjectJobsRequest.
107
+
108
+ CodeArts项目ID,32位数字、小写字母组合。
109
+
110
+ :return: The project_id of this ListProjectJobsRequest.
111
+ :rtype: str
112
+ """
113
+ return self._project_id
114
+
115
+ @project_id.setter
116
+ def project_id(self, project_id):
117
+ r"""Sets the project_id of this ListProjectJobsRequest.
118
+
119
+ CodeArts项目ID,32位数字、小写字母组合。
120
+
121
+ :param project_id: The project_id of this ListProjectJobsRequest.
122
+ :type project_id: str
123
+ """
124
+ self._project_id = project_id
125
+
126
+ @property
127
+ def page_index(self):
128
+ r"""Gets the page_index of this ListProjectJobsRequest.
129
+
130
+ **参数解释**: 分页页码, 表示从此页开始查询。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,大于等于0。
131
+
132
+ :return: The page_index of this ListProjectJobsRequest.
133
+ :rtype: int
134
+ """
135
+ return self._page_index
136
+
137
+ @page_index.setter
138
+ def page_index(self, page_index):
139
+ r"""Sets the page_index of this ListProjectJobsRequest.
140
+
141
+ **参数解释**: 分页页码, 表示从此页开始查询。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,大于等于0。
142
+
143
+ :param page_index: The page_index of this ListProjectJobsRequest.
144
+ :type page_index: int
145
+ """
146
+ self._page_index = page_index
147
+
148
+ @property
149
+ def page_size(self):
150
+ r"""Gets the page_size of this ListProjectJobsRequest.
151
+
152
+ **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
153
+
154
+ :return: The page_size of this ListProjectJobsRequest.
155
+ :rtype: int
156
+ """
157
+ return self._page_size
158
+
159
+ @page_size.setter
160
+ def page_size(self, page_size):
161
+ r"""Sets the page_size of this ListProjectJobsRequest.
162
+
163
+ **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
164
+
165
+ :param page_size: The page_size of this ListProjectJobsRequest.
166
+ :type page_size: int
167
+ """
168
+ self._page_size = page_size
169
+
170
+ @property
171
+ def search(self):
172
+ r"""Gets the search of this ListProjectJobsRequest.
173
+
174
+ 查询条件
175
+
176
+ :return: The search of this ListProjectJobsRequest.
177
+ :rtype: str
178
+ """
179
+ return self._search
180
+
181
+ @search.setter
182
+ def search(self, search):
183
+ r"""Sets the search of this ListProjectJobsRequest.
184
+
185
+ 查询条件
186
+
187
+ :param search: The search of this ListProjectJobsRequest.
188
+ :type search: str
189
+ """
190
+ self._search = search
191
+
192
+ @property
193
+ def sort_field(self):
194
+ r"""Gets the sort_field of this ListProjectJobsRequest.
195
+
196
+ 排序的字段
197
+
198
+ :return: The sort_field of this ListProjectJobsRequest.
199
+ :rtype: str
200
+ """
201
+ return self._sort_field
202
+
203
+ @sort_field.setter
204
+ def sort_field(self, sort_field):
205
+ r"""Sets the sort_field of this ListProjectJobsRequest.
206
+
207
+ 排序的字段
208
+
209
+ :param sort_field: The sort_field of this ListProjectJobsRequest.
210
+ :type sort_field: str
211
+ """
212
+ self._sort_field = sort_field
213
+
214
+ @property
215
+ def sort_order(self):
216
+ r"""Gets the sort_order of this ListProjectJobsRequest.
217
+
218
+ 排序顺序
219
+
220
+ :return: The sort_order of this ListProjectJobsRequest.
221
+ :rtype: str
222
+ """
223
+ return self._sort_order
224
+
225
+ @sort_order.setter
226
+ def sort_order(self, sort_order):
227
+ r"""Sets the sort_order of this ListProjectJobsRequest.
228
+
229
+ 排序顺序
230
+
231
+ :param sort_order: The sort_order of this ListProjectJobsRequest.
232
+ :type sort_order: str
233
+ """
234
+ self._sort_order = sort_order
235
+
236
+ @property
237
+ def creator_id(self):
238
+ r"""Gets the creator_id of this ListProjectJobsRequest.
239
+
240
+ 创建人ID
241
+
242
+ :return: The creator_id of this ListProjectJobsRequest.
243
+ :rtype: str
244
+ """
245
+ return self._creator_id
246
+
247
+ @creator_id.setter
248
+ def creator_id(self, creator_id):
249
+ r"""Sets the creator_id of this ListProjectJobsRequest.
250
+
251
+ 创建人ID
252
+
253
+ :param creator_id: The creator_id of this ListProjectJobsRequest.
254
+ :type creator_id: str
255
+ """
256
+ self._creator_id = creator_id
257
+
258
+ @property
259
+ def build_status(self):
260
+ r"""Gets the build_status of this ListProjectJobsRequest.
261
+
262
+ 构建状态过滤条件
263
+
264
+ :return: The build_status of this ListProjectJobsRequest.
265
+ :rtype: str
266
+ """
267
+ return self._build_status
268
+
269
+ @build_status.setter
270
+ def build_status(self, build_status):
271
+ r"""Sets the build_status of this ListProjectJobsRequest.
272
+
273
+ 构建状态过滤条件
274
+
275
+ :param build_status: The build_status of this ListProjectJobsRequest.
276
+ :type build_status: str
277
+ """
278
+ self._build_status = build_status
279
+
280
+ @property
281
+ def by_group(self):
282
+ r"""Gets the by_group of this ListProjectJobsRequest.
283
+
284
+ 是否分组
285
+
286
+ :return: The by_group of this ListProjectJobsRequest.
287
+ :rtype: bool
288
+ """
289
+ return self._by_group
290
+
291
+ @by_group.setter
292
+ def by_group(self, by_group):
293
+ r"""Sets the by_group of this ListProjectJobsRequest.
294
+
295
+ 是否分组
296
+
297
+ :param by_group: The by_group of this ListProjectJobsRequest.
298
+ :type by_group: bool
299
+ """
300
+ self._by_group = by_group
301
+
302
+ @property
303
+ def group_path_id(self):
304
+ r"""Gets the group_path_id of this ListProjectJobsRequest.
305
+
306
+ 分组ID
307
+
308
+ :return: The group_path_id of this ListProjectJobsRequest.
309
+ :rtype: str
310
+ """
311
+ return self._group_path_id
312
+
313
+ @group_path_id.setter
314
+ def group_path_id(self, group_path_id):
315
+ r"""Sets the group_path_id of this ListProjectJobsRequest.
316
+
317
+ 分组ID
318
+
319
+ :param group_path_id: The group_path_id of this ListProjectJobsRequest.
320
+ :type group_path_id: str
321
+ """
322
+ self._group_path_id = group_path_id
323
+
324
+ def to_dict(self):
325
+ """Returns the model properties as a dict"""
326
+ result = {}
327
+
328
+ for attr, _ in six.iteritems(self.openapi_types):
329
+ value = getattr(self, attr)
330
+ if isinstance(value, list):
331
+ result[attr] = list(map(
332
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
333
+ value
334
+ ))
335
+ elif hasattr(value, "to_dict"):
336
+ result[attr] = value.to_dict()
337
+ elif isinstance(value, dict):
338
+ result[attr] = dict(map(
339
+ lambda item: (item[0], item[1].to_dict())
340
+ if hasattr(item[1], "to_dict") else item,
341
+ value.items()
342
+ ))
343
+ else:
344
+ if attr in self.sensitive_list:
345
+ result[attr] = "****"
346
+ else:
347
+ result[attr] = value
348
+
349
+ return result
350
+
351
+ def to_str(self):
352
+ """Returns the string representation of the model"""
353
+ import simplejson as json
354
+ if six.PY2:
355
+ import sys
356
+ reload(sys)
357
+ sys.setdefaultencoding("utf-8")
358
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
359
+
360
+ def __repr__(self):
361
+ """For `print`"""
362
+ return self.to_str()
363
+
364
+ def __eq__(self, other):
365
+ """Returns true if both objects are equal"""
366
+ if not isinstance(other, ListProjectJobsRequest):
367
+ return False
368
+
369
+ return self.__dict__ == other.__dict__
370
+
371
+ def __ne__(self, other):
372
+ """Returns true if both objects are not equal"""
373
+ return not self == other
@@ -0,0 +1,145 @@
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 ListProjectJobsResponse(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
+ 'jobs': 'list[Job]',
22
+ 'total': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'jobs': 'jobs',
27
+ 'total': 'total'
28
+ }
29
+
30
+ def __init__(self, jobs=None, total=None):
31
+ r"""ListProjectJobsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param jobs: 任务列表
36
+ :type jobs: list[:class:`huaweicloudsdkcodeartsbuild.v3.Job`]
37
+ :param total: 任务总数
38
+ :type total: int
39
+ """
40
+
41
+ super(ListProjectJobsResponse, self).__init__()
42
+
43
+ self._jobs = None
44
+ self._total = None
45
+ self.discriminator = None
46
+
47
+ if jobs is not None:
48
+ self.jobs = jobs
49
+ if total is not None:
50
+ self.total = total
51
+
52
+ @property
53
+ def jobs(self):
54
+ r"""Gets the jobs of this ListProjectJobsResponse.
55
+
56
+ 任务列表
57
+
58
+ :return: The jobs of this ListProjectJobsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Job`]
60
+ """
61
+ return self._jobs
62
+
63
+ @jobs.setter
64
+ def jobs(self, jobs):
65
+ r"""Sets the jobs of this ListProjectJobsResponse.
66
+
67
+ 任务列表
68
+
69
+ :param jobs: The jobs of this ListProjectJobsResponse.
70
+ :type jobs: list[:class:`huaweicloudsdkcodeartsbuild.v3.Job`]
71
+ """
72
+ self._jobs = jobs
73
+
74
+ @property
75
+ def total(self):
76
+ r"""Gets the total of this ListProjectJobsResponse.
77
+
78
+ 任务总数
79
+
80
+ :return: The total of this ListProjectJobsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total
84
+
85
+ @total.setter
86
+ def total(self, total):
87
+ r"""Sets the total of this ListProjectJobsResponse.
88
+
89
+ 任务总数
90
+
91
+ :param total: The total of this ListProjectJobsResponse.
92
+ :type total: int
93
+ """
94
+ self._total = total
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListProjectJobsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListRecyclingJobRequest:
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
+ 'page_size': 'int',
21
+ 'page_no': 'int',
22
+ 'search': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'page_size': 'page_size',
27
+ 'page_no': 'page_no',
28
+ 'search': 'search'
29
+ }
30
+
31
+ def __init__(self, page_size=None, page_no=None, search=None):
32
+ r"""ListRecyclingJobRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param page_size: 每页显示的条目数量,page_size小于等于100
37
+ :type page_size: int
38
+ :param page_no: 分页页码, 表示从此页开始查询, page_no大于等于1
39
+ :type page_no: int
40
+ :param search: 搜索的任务名称
41
+ :type search: str
42
+ """
43
+
44
+
45
+
46
+ self._page_size = None
47
+ self._page_no = None
48
+ self._search = None
49
+ self.discriminator = None
50
+
51
+ if page_size is not None:
52
+ self.page_size = page_size
53
+ if page_no is not None:
54
+ self.page_no = page_no
55
+ if search is not None:
56
+ self.search = search
57
+
58
+ @property
59
+ def page_size(self):
60
+ r"""Gets the page_size of this ListRecyclingJobRequest.
61
+
62
+ 每页显示的条目数量,page_size小于等于100
63
+
64
+ :return: The page_size of this ListRecyclingJobRequest.
65
+ :rtype: int
66
+ """
67
+ return self._page_size
68
+
69
+ @page_size.setter
70
+ def page_size(self, page_size):
71
+ r"""Sets the page_size of this ListRecyclingJobRequest.
72
+
73
+ 每页显示的条目数量,page_size小于等于100
74
+
75
+ :param page_size: The page_size of this ListRecyclingJobRequest.
76
+ :type page_size: int
77
+ """
78
+ self._page_size = page_size
79
+
80
+ @property
81
+ def page_no(self):
82
+ r"""Gets the page_no of this ListRecyclingJobRequest.
83
+
84
+ 分页页码, 表示从此页开始查询, page_no大于等于1
85
+
86
+ :return: The page_no of this ListRecyclingJobRequest.
87
+ :rtype: int
88
+ """
89
+ return self._page_no
90
+
91
+ @page_no.setter
92
+ def page_no(self, page_no):
93
+ r"""Sets the page_no of this ListRecyclingJobRequest.
94
+
95
+ 分页页码, 表示从此页开始查询, page_no大于等于1
96
+
97
+ :param page_no: The page_no of this ListRecyclingJobRequest.
98
+ :type page_no: int
99
+ """
100
+ self._page_no = page_no
101
+
102
+ @property
103
+ def search(self):
104
+ r"""Gets the search of this ListRecyclingJobRequest.
105
+
106
+ 搜索的任务名称
107
+
108
+ :return: The search of this ListRecyclingJobRequest.
109
+ :rtype: str
110
+ """
111
+ return self._search
112
+
113
+ @search.setter
114
+ def search(self, search):
115
+ r"""Sets the search of this ListRecyclingJobRequest.
116
+
117
+ 搜索的任务名称
118
+
119
+ :param search: The search of this ListRecyclingJobRequest.
120
+ :type search: str
121
+ """
122
+ self._search = search
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ListRecyclingJobRequest):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other