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,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowImageTemplateListResponseBodyResultImageTemplates:
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
+ 'image_id': 'str',
21
+ 'organization': 'str',
22
+ 'image_name': 'str',
23
+ 'image_label': 'str',
24
+ 'base_image': 'str',
25
+ 'title': 'str',
26
+ 'description': 'str',
27
+ 'create_time': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'image_id': 'image_id',
32
+ 'organization': 'organization',
33
+ 'image_name': 'image_name',
34
+ 'image_label': 'image_label',
35
+ 'base_image': 'base_image',
36
+ 'title': 'title',
37
+ 'description': 'description',
38
+ 'create_time': 'create_time'
39
+ }
40
+
41
+ def __init__(self, image_id=None, organization=None, image_name=None, image_label=None, base_image=None, title=None, description=None, create_time=None):
42
+ r"""ShowImageTemplateListResponseBodyResultImageTemplates
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param image_id: 镜像模版ID
47
+ :type image_id: str
48
+ :param organization: swr镜像组织
49
+ :type organization: str
50
+ :param image_name: 镜像名
51
+ :type image_name: str
52
+ :param image_label: 镜像label
53
+ :type image_label: str
54
+ :param base_image: 操作系统
55
+ :type base_image: str
56
+ :param title: 镜像标题
57
+ :type title: str
58
+ :param description: 镜像描述
59
+ :type description: str
60
+ :param create_time: 镜像创建日期
61
+ :type create_time: str
62
+ """
63
+
64
+
65
+
66
+ self._image_id = None
67
+ self._organization = None
68
+ self._image_name = None
69
+ self._image_label = None
70
+ self._base_image = None
71
+ self._title = None
72
+ self._description = None
73
+ self._create_time = None
74
+ self.discriminator = None
75
+
76
+ if image_id is not None:
77
+ self.image_id = image_id
78
+ if organization is not None:
79
+ self.organization = organization
80
+ if image_name is not None:
81
+ self.image_name = image_name
82
+ if image_label is not None:
83
+ self.image_label = image_label
84
+ if base_image is not None:
85
+ self.base_image = base_image
86
+ if title is not None:
87
+ self.title = title
88
+ if description is not None:
89
+ self.description = description
90
+ if create_time is not None:
91
+ self.create_time = create_time
92
+
93
+ @property
94
+ def image_id(self):
95
+ r"""Gets the image_id of this ShowImageTemplateListResponseBodyResultImageTemplates.
96
+
97
+ 镜像模版ID
98
+
99
+ :return: The image_id of this ShowImageTemplateListResponseBodyResultImageTemplates.
100
+ :rtype: str
101
+ """
102
+ return self._image_id
103
+
104
+ @image_id.setter
105
+ def image_id(self, image_id):
106
+ r"""Sets the image_id of this ShowImageTemplateListResponseBodyResultImageTemplates.
107
+
108
+ 镜像模版ID
109
+
110
+ :param image_id: The image_id of this ShowImageTemplateListResponseBodyResultImageTemplates.
111
+ :type image_id: str
112
+ """
113
+ self._image_id = image_id
114
+
115
+ @property
116
+ def organization(self):
117
+ r"""Gets the organization of this ShowImageTemplateListResponseBodyResultImageTemplates.
118
+
119
+ swr镜像组织
120
+
121
+ :return: The organization of this ShowImageTemplateListResponseBodyResultImageTemplates.
122
+ :rtype: str
123
+ """
124
+ return self._organization
125
+
126
+ @organization.setter
127
+ def organization(self, organization):
128
+ r"""Sets the organization of this ShowImageTemplateListResponseBodyResultImageTemplates.
129
+
130
+ swr镜像组织
131
+
132
+ :param organization: The organization of this ShowImageTemplateListResponseBodyResultImageTemplates.
133
+ :type organization: str
134
+ """
135
+ self._organization = organization
136
+
137
+ @property
138
+ def image_name(self):
139
+ r"""Gets the image_name of this ShowImageTemplateListResponseBodyResultImageTemplates.
140
+
141
+ 镜像名
142
+
143
+ :return: The image_name of this ShowImageTemplateListResponseBodyResultImageTemplates.
144
+ :rtype: str
145
+ """
146
+ return self._image_name
147
+
148
+ @image_name.setter
149
+ def image_name(self, image_name):
150
+ r"""Sets the image_name of this ShowImageTemplateListResponseBodyResultImageTemplates.
151
+
152
+ 镜像名
153
+
154
+ :param image_name: The image_name of this ShowImageTemplateListResponseBodyResultImageTemplates.
155
+ :type image_name: str
156
+ """
157
+ self._image_name = image_name
158
+
159
+ @property
160
+ def image_label(self):
161
+ r"""Gets the image_label of this ShowImageTemplateListResponseBodyResultImageTemplates.
162
+
163
+ 镜像label
164
+
165
+ :return: The image_label of this ShowImageTemplateListResponseBodyResultImageTemplates.
166
+ :rtype: str
167
+ """
168
+ return self._image_label
169
+
170
+ @image_label.setter
171
+ def image_label(self, image_label):
172
+ r"""Sets the image_label of this ShowImageTemplateListResponseBodyResultImageTemplates.
173
+
174
+ 镜像label
175
+
176
+ :param image_label: The image_label of this ShowImageTemplateListResponseBodyResultImageTemplates.
177
+ :type image_label: str
178
+ """
179
+ self._image_label = image_label
180
+
181
+ @property
182
+ def base_image(self):
183
+ r"""Gets the base_image of this ShowImageTemplateListResponseBodyResultImageTemplates.
184
+
185
+ 操作系统
186
+
187
+ :return: The base_image of this ShowImageTemplateListResponseBodyResultImageTemplates.
188
+ :rtype: str
189
+ """
190
+ return self._base_image
191
+
192
+ @base_image.setter
193
+ def base_image(self, base_image):
194
+ r"""Sets the base_image of this ShowImageTemplateListResponseBodyResultImageTemplates.
195
+
196
+ 操作系统
197
+
198
+ :param base_image: The base_image of this ShowImageTemplateListResponseBodyResultImageTemplates.
199
+ :type base_image: str
200
+ """
201
+ self._base_image = base_image
202
+
203
+ @property
204
+ def title(self):
205
+ r"""Gets the title of this ShowImageTemplateListResponseBodyResultImageTemplates.
206
+
207
+ 镜像标题
208
+
209
+ :return: The title of this ShowImageTemplateListResponseBodyResultImageTemplates.
210
+ :rtype: str
211
+ """
212
+ return self._title
213
+
214
+ @title.setter
215
+ def title(self, title):
216
+ r"""Sets the title of this ShowImageTemplateListResponseBodyResultImageTemplates.
217
+
218
+ 镜像标题
219
+
220
+ :param title: The title of this ShowImageTemplateListResponseBodyResultImageTemplates.
221
+ :type title: str
222
+ """
223
+ self._title = title
224
+
225
+ @property
226
+ def description(self):
227
+ r"""Gets the description of this ShowImageTemplateListResponseBodyResultImageTemplates.
228
+
229
+ 镜像描述
230
+
231
+ :return: The description of this ShowImageTemplateListResponseBodyResultImageTemplates.
232
+ :rtype: str
233
+ """
234
+ return self._description
235
+
236
+ @description.setter
237
+ def description(self, description):
238
+ r"""Sets the description of this ShowImageTemplateListResponseBodyResultImageTemplates.
239
+
240
+ 镜像描述
241
+
242
+ :param description: The description of this ShowImageTemplateListResponseBodyResultImageTemplates.
243
+ :type description: str
244
+ """
245
+ self._description = description
246
+
247
+ @property
248
+ def create_time(self):
249
+ r"""Gets the create_time of this ShowImageTemplateListResponseBodyResultImageTemplates.
250
+
251
+ 镜像创建日期
252
+
253
+ :return: The create_time of this ShowImageTemplateListResponseBodyResultImageTemplates.
254
+ :rtype: str
255
+ """
256
+ return self._create_time
257
+
258
+ @create_time.setter
259
+ def create_time(self, create_time):
260
+ r"""Sets the create_time of this ShowImageTemplateListResponseBodyResultImageTemplates.
261
+
262
+ 镜像创建日期
263
+
264
+ :param create_time: The create_time of this ShowImageTemplateListResponseBodyResultImageTemplates.
265
+ :type create_time: str
266
+ """
267
+ self._create_time = create_time
268
+
269
+ def to_dict(self):
270
+ """Returns the model properties as a dict"""
271
+ result = {}
272
+
273
+ for attr, _ in six.iteritems(self.openapi_types):
274
+ value = getattr(self, attr)
275
+ if isinstance(value, list):
276
+ result[attr] = list(map(
277
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
+ value
279
+ ))
280
+ elif hasattr(value, "to_dict"):
281
+ result[attr] = value.to_dict()
282
+ elif isinstance(value, dict):
283
+ result[attr] = dict(map(
284
+ lambda item: (item[0], item[1].to_dict())
285
+ if hasattr(item[1], "to_dict") else item,
286
+ value.items()
287
+ ))
288
+ else:
289
+ if attr in self.sensitive_list:
290
+ result[attr] = "****"
291
+ else:
292
+ result[attr] = value
293
+
294
+ return result
295
+
296
+ def to_str(self):
297
+ """Returns the string representation of the model"""
298
+ import simplejson as json
299
+ if six.PY2:
300
+ import sys
301
+ reload(sys)
302
+ sys.setdefaultencoding("utf-8")
303
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
+
305
+ def __repr__(self):
306
+ """For `print`"""
307
+ return self.to_str()
308
+
309
+ def __eq__(self, other):
310
+ """Returns true if both objects are equal"""
311
+ if not isinstance(other, ShowImageTemplateListResponseBodyResultImageTemplates):
312
+ return False
313
+
314
+ return self.__dict__ == other.__dict__
315
+
316
+ def __ne__(self, other):
317
+ """Returns true if both objects are not equal"""
318
+ return not self == other
@@ -0,0 +1,199 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobBuildSuccessRatioRequest:
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
+ 'job_id': 'str',
21
+ 'repository_name': 'str',
22
+ 'branch': 'str',
23
+ 'interval': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'job_id': 'job_id',
28
+ 'repository_name': 'repository_name',
29
+ 'branch': 'branch',
30
+ 'interval': 'interval'
31
+ }
32
+
33
+ def __init__(self, job_id=None, repository_name=None, branch=None, interval=None):
34
+ r"""ShowJobBuildSuccessRatioRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
39
+ :type job_id: str
40
+ :param repository_name: 代码仓名称。
41
+ :type repository_name: str
42
+ :param branch: 代码仓分支名。
43
+ :type branch: str
44
+ :param interval: 查询时间,查最近几天的。
45
+ :type interval: int
46
+ """
47
+
48
+
49
+
50
+ self._job_id = None
51
+ self._repository_name = None
52
+ self._branch = None
53
+ self._interval = None
54
+ self.discriminator = None
55
+
56
+ self.job_id = job_id
57
+ self.repository_name = repository_name
58
+ if branch is not None:
59
+ self.branch = branch
60
+ self.interval = interval
61
+
62
+ @property
63
+ def job_id(self):
64
+ r"""Gets the job_id of this ShowJobBuildSuccessRatioRequest.
65
+
66
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
67
+
68
+ :return: The job_id of this ShowJobBuildSuccessRatioRequest.
69
+ :rtype: str
70
+ """
71
+ return self._job_id
72
+
73
+ @job_id.setter
74
+ def job_id(self, job_id):
75
+ r"""Sets the job_id of this ShowJobBuildSuccessRatioRequest.
76
+
77
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
78
+
79
+ :param job_id: The job_id of this ShowJobBuildSuccessRatioRequest.
80
+ :type job_id: str
81
+ """
82
+ self._job_id = job_id
83
+
84
+ @property
85
+ def repository_name(self):
86
+ r"""Gets the repository_name of this ShowJobBuildSuccessRatioRequest.
87
+
88
+ 代码仓名称。
89
+
90
+ :return: The repository_name of this ShowJobBuildSuccessRatioRequest.
91
+ :rtype: str
92
+ """
93
+ return self._repository_name
94
+
95
+ @repository_name.setter
96
+ def repository_name(self, repository_name):
97
+ r"""Sets the repository_name of this ShowJobBuildSuccessRatioRequest.
98
+
99
+ 代码仓名称。
100
+
101
+ :param repository_name: The repository_name of this ShowJobBuildSuccessRatioRequest.
102
+ :type repository_name: str
103
+ """
104
+ self._repository_name = repository_name
105
+
106
+ @property
107
+ def branch(self):
108
+ r"""Gets the branch of this ShowJobBuildSuccessRatioRequest.
109
+
110
+ 代码仓分支名。
111
+
112
+ :return: The branch of this ShowJobBuildSuccessRatioRequest.
113
+ :rtype: str
114
+ """
115
+ return self._branch
116
+
117
+ @branch.setter
118
+ def branch(self, branch):
119
+ r"""Sets the branch of this ShowJobBuildSuccessRatioRequest.
120
+
121
+ 代码仓分支名。
122
+
123
+ :param branch: The branch of this ShowJobBuildSuccessRatioRequest.
124
+ :type branch: str
125
+ """
126
+ self._branch = branch
127
+
128
+ @property
129
+ def interval(self):
130
+ r"""Gets the interval of this ShowJobBuildSuccessRatioRequest.
131
+
132
+ 查询时间,查最近几天的。
133
+
134
+ :return: The interval of this ShowJobBuildSuccessRatioRequest.
135
+ :rtype: int
136
+ """
137
+ return self._interval
138
+
139
+ @interval.setter
140
+ def interval(self, interval):
141
+ r"""Sets the interval of this ShowJobBuildSuccessRatioRequest.
142
+
143
+ 查询时间,查最近几天的。
144
+
145
+ :param interval: The interval of this ShowJobBuildSuccessRatioRequest.
146
+ :type interval: int
147
+ """
148
+ self._interval = interval
149
+
150
+ def to_dict(self):
151
+ """Returns the model properties as a dict"""
152
+ result = {}
153
+
154
+ for attr, _ in six.iteritems(self.openapi_types):
155
+ value = getattr(self, attr)
156
+ if isinstance(value, list):
157
+ result[attr] = list(map(
158
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
+ value
160
+ ))
161
+ elif hasattr(value, "to_dict"):
162
+ result[attr] = value.to_dict()
163
+ elif isinstance(value, dict):
164
+ result[attr] = dict(map(
165
+ lambda item: (item[0], item[1].to_dict())
166
+ if hasattr(item[1], "to_dict") else item,
167
+ value.items()
168
+ ))
169
+ else:
170
+ if attr in self.sensitive_list:
171
+ result[attr] = "****"
172
+ else:
173
+ result[attr] = value
174
+
175
+ return result
176
+
177
+ def to_str(self):
178
+ """Returns the string representation of the model"""
179
+ import simplejson as json
180
+ if six.PY2:
181
+ import sys
182
+ reload(sys)
183
+ sys.setdefaultencoding("utf-8")
184
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
185
+
186
+ def __repr__(self):
187
+ """For `print`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, ShowJobBuildSuccessRatioRequest):
193
+ return False
194
+
195
+ return self.__dict__ == other.__dict__
196
+
197
+ def __ne__(self, other):
198
+ """Returns true if both objects are not equal"""
199
+ return not self == other
@@ -0,0 +1,141 @@
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 ShowJobBuildSuccessRatioResponse(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
+ 'result': 'ShowJobBuildSuccessRatioResult',
22
+ 'status': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'status': 'status'
28
+ }
29
+
30
+ def __init__(self, result=None, status=None):
31
+ r"""ShowJobBuildSuccessRatioResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result:
36
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResult`
37
+ :param status: 返回状态信息
38
+ :type status: str
39
+ """
40
+
41
+ super(ShowJobBuildSuccessRatioResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._status = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if status is not None:
50
+ self.status = status
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this ShowJobBuildSuccessRatioResponse.
55
+
56
+ :return: The result of this ShowJobBuildSuccessRatioResponse.
57
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResult`
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this ShowJobBuildSuccessRatioResponse.
64
+
65
+ :param result: The result of this ShowJobBuildSuccessRatioResponse.
66
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResult`
67
+ """
68
+ self._result = result
69
+
70
+ @property
71
+ def status(self):
72
+ r"""Gets the status of this ShowJobBuildSuccessRatioResponse.
73
+
74
+ 返回状态信息
75
+
76
+ :return: The status of this ShowJobBuildSuccessRatioResponse.
77
+ :rtype: str
78
+ """
79
+ return self._status
80
+
81
+ @status.setter
82
+ def status(self, status):
83
+ r"""Sets the status of this ShowJobBuildSuccessRatioResponse.
84
+
85
+ 返回状态信息
86
+
87
+ :param status: The status of this ShowJobBuildSuccessRatioResponse.
88
+ :type status: str
89
+ """
90
+ self._status = status
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, ShowJobBuildSuccessRatioResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other