huaweicloudsdkcodeartsbuild 3.1.148__py2.py3-none-any.whl → 3.1.149__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 (38) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +27 -2
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +481 -0
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +481 -0
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +27 -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_stage_record.py +608 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
  11. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
  12. huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
  20. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
  33. huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
  34. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/METADATA +2 -2
  35. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/RECORD +38 -13
  36. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/LICENSE +0 -0
  37. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/WHEEL +0 -0
  38. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowReportSummaryBodyResult:
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
+ 'summary': 'ShowReportSummary',
21
+ 'sub_summarys': 'list[ShowReportSummary]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'summary': 'summary',
26
+ 'sub_summarys': 'sub_summarys'
27
+ }
28
+
29
+ def __init__(self, summary=None, sub_summarys=None):
30
+ r"""ShowReportSummaryBodyResult
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param summary:
35
+ :type summary: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummary`
36
+ :param sub_summarys: 单元测试报告列表
37
+ :type sub_summarys: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummary`]
38
+ """
39
+
40
+
41
+
42
+ self._summary = None
43
+ self._sub_summarys = None
44
+ self.discriminator = None
45
+
46
+ if summary is not None:
47
+ self.summary = summary
48
+ if sub_summarys is not None:
49
+ self.sub_summarys = sub_summarys
50
+
51
+ @property
52
+ def summary(self):
53
+ r"""Gets the summary of this ShowReportSummaryBodyResult.
54
+
55
+ :return: The summary of this ShowReportSummaryBodyResult.
56
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummary`
57
+ """
58
+ return self._summary
59
+
60
+ @summary.setter
61
+ def summary(self, summary):
62
+ r"""Sets the summary of this ShowReportSummaryBodyResult.
63
+
64
+ :param summary: The summary of this ShowReportSummaryBodyResult.
65
+ :type summary: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummary`
66
+ """
67
+ self._summary = summary
68
+
69
+ @property
70
+ def sub_summarys(self):
71
+ r"""Gets the sub_summarys of this ShowReportSummaryBodyResult.
72
+
73
+ 单元测试报告列表
74
+
75
+ :return: The sub_summarys of this ShowReportSummaryBodyResult.
76
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummary`]
77
+ """
78
+ return self._sub_summarys
79
+
80
+ @sub_summarys.setter
81
+ def sub_summarys(self, sub_summarys):
82
+ r"""Sets the sub_summarys of this ShowReportSummaryBodyResult.
83
+
84
+ 单元测试报告列表
85
+
86
+ :param sub_summarys: The sub_summarys of this ShowReportSummaryBodyResult.
87
+ :type sub_summarys: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummary`]
88
+ """
89
+ self._sub_summarys = sub_summarys
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, ShowReportSummaryBodyResult):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowReportSummaryRequest:
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
+ 'build_no': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id',
26
+ 'build_no': 'build_no'
27
+ }
28
+
29
+ def __init__(self, job_id=None, build_no=None):
30
+ r"""ShowReportSummaryRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
35
+ :type job_id: str
36
+ :param build_no: 构建任务的构建编号,从1开始,每次构建递增1
37
+ :type build_no: int
38
+ """
39
+
40
+
41
+
42
+ self._job_id = None
43
+ self._build_no = None
44
+ self.discriminator = None
45
+
46
+ self.job_id = job_id
47
+ self.build_no = build_no
48
+
49
+ @property
50
+ def job_id(self):
51
+ r"""Gets the job_id of this ShowReportSummaryRequest.
52
+
53
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
54
+
55
+ :return: The job_id of this ShowReportSummaryRequest.
56
+ :rtype: str
57
+ """
58
+ return self._job_id
59
+
60
+ @job_id.setter
61
+ def job_id(self, job_id):
62
+ r"""Sets the job_id of this ShowReportSummaryRequest.
63
+
64
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
65
+
66
+ :param job_id: The job_id of this ShowReportSummaryRequest.
67
+ :type job_id: str
68
+ """
69
+ self._job_id = job_id
70
+
71
+ @property
72
+ def build_no(self):
73
+ r"""Gets the build_no of this ShowReportSummaryRequest.
74
+
75
+ 构建任务的构建编号,从1开始,每次构建递增1
76
+
77
+ :return: The build_no of this ShowReportSummaryRequest.
78
+ :rtype: int
79
+ """
80
+ return self._build_no
81
+
82
+ @build_no.setter
83
+ def build_no(self, build_no):
84
+ r"""Sets the build_no of this ShowReportSummaryRequest.
85
+
86
+ 构建任务的构建编号,从1开始,每次构建递增1
87
+
88
+ :param build_no: The build_no of this ShowReportSummaryRequest.
89
+ :type build_no: int
90
+ """
91
+ self._build_no = build_no
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ShowReportSummaryRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,170 @@
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 ShowReportSummaryResponse(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
+ 'status': 'str',
22
+ 'error': 'object',
23
+ 'result': 'ShowReportSummaryBodyResult'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'status': 'status',
28
+ 'error': 'error',
29
+ 'result': 'result'
30
+ }
31
+
32
+ def __init__(self, status=None, error=None, result=None):
33
+ r"""ShowReportSummaryResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param status: 状态
38
+ :type status: str
39
+ :param error: 错误
40
+ :type error: object
41
+ :param result:
42
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryBodyResult`
43
+ """
44
+
45
+ super(ShowReportSummaryResponse, self).__init__()
46
+
47
+ self._status = None
48
+ self._error = None
49
+ self._result = None
50
+ self.discriminator = None
51
+
52
+ if status is not None:
53
+ self.status = status
54
+ if error is not None:
55
+ self.error = error
56
+ if result is not None:
57
+ self.result = result
58
+
59
+ @property
60
+ def status(self):
61
+ r"""Gets the status of this ShowReportSummaryResponse.
62
+
63
+ 状态
64
+
65
+ :return: The status of this ShowReportSummaryResponse.
66
+ :rtype: str
67
+ """
68
+ return self._status
69
+
70
+ @status.setter
71
+ def status(self, status):
72
+ r"""Sets the status of this ShowReportSummaryResponse.
73
+
74
+ 状态
75
+
76
+ :param status: The status of this ShowReportSummaryResponse.
77
+ :type status: str
78
+ """
79
+ self._status = status
80
+
81
+ @property
82
+ def error(self):
83
+ r"""Gets the error of this ShowReportSummaryResponse.
84
+
85
+ 错误
86
+
87
+ :return: The error of this ShowReportSummaryResponse.
88
+ :rtype: object
89
+ """
90
+ return self._error
91
+
92
+ @error.setter
93
+ def error(self, error):
94
+ r"""Sets the error of this ShowReportSummaryResponse.
95
+
96
+ 错误
97
+
98
+ :param error: The error of this ShowReportSummaryResponse.
99
+ :type error: object
100
+ """
101
+ self._error = error
102
+
103
+ @property
104
+ def result(self):
105
+ r"""Gets the result of this ShowReportSummaryResponse.
106
+
107
+ :return: The result of this ShowReportSummaryResponse.
108
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryBodyResult`
109
+ """
110
+ return self._result
111
+
112
+ @result.setter
113
+ def result(self, result):
114
+ r"""Sets the result of this ShowReportSummaryResponse.
115
+
116
+ :param result: The result of this ShowReportSummaryResponse.
117
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryBodyResult`
118
+ """
119
+ self._result = result
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, ShowReportSummaryResponse):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ 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 ShowRunningStatusRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'job_id': 'job_id'
25
+ }
26
+
27
+ def __init__(self, job_id=None):
28
+ r"""ShowRunningStatusRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
33
+ :type job_id: str
34
+ """
35
+
36
+
37
+
38
+ self._job_id = None
39
+ self.discriminator = None
40
+
41
+ self.job_id = job_id
42
+
43
+ @property
44
+ def job_id(self):
45
+ r"""Gets the job_id of this ShowRunningStatusRequest.
46
+
47
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
48
+
49
+ :return: The job_id of this ShowRunningStatusRequest.
50
+ :rtype: str
51
+ """
52
+ return self._job_id
53
+
54
+ @job_id.setter
55
+ def job_id(self, job_id):
56
+ r"""Sets the job_id of this ShowRunningStatusRequest.
57
+
58
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
59
+
60
+ :param job_id: The job_id of this ShowRunningStatusRequest.
61
+ :type job_id: str
62
+ """
63
+ self._job_id = job_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, ShowRunningStatusRequest):
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