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,199 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadRealTimeLogRequest:
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
+ 'offset': 'int',
23
+ 'length': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'job_id': 'job_id',
28
+ 'build_no': 'build_no',
29
+ 'offset': 'offset',
30
+ 'length': 'length'
31
+ }
32
+
33
+ def __init__(self, job_id=None, build_no=None, offset=None, length=None):
34
+ r"""DownloadRealTimeLogRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
39
+ :type job_id: str
40
+ :param build_no: 构建任务的构建编号,从1开始,每次构建递增1
41
+ :type build_no: int
42
+ :param offset: 偏移量,传入前一次请求返回的offset
43
+ :type offset: int
44
+ :param length: 可控制返回内容长度,默认值为1000000
45
+ :type length: int
46
+ """
47
+
48
+
49
+
50
+ self._job_id = None
51
+ self._build_no = None
52
+ self._offset = None
53
+ self._length = None
54
+ self.discriminator = None
55
+
56
+ self.job_id = job_id
57
+ self.build_no = build_no
58
+ self.offset = offset
59
+ if length is not None:
60
+ self.length = length
61
+
62
+ @property
63
+ def job_id(self):
64
+ r"""Gets the job_id of this DownloadRealTimeLogRequest.
65
+
66
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
67
+
68
+ :return: The job_id of this DownloadRealTimeLogRequest.
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 DownloadRealTimeLogRequest.
76
+
77
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
78
+
79
+ :param job_id: The job_id of this DownloadRealTimeLogRequest.
80
+ :type job_id: str
81
+ """
82
+ self._job_id = job_id
83
+
84
+ @property
85
+ def build_no(self):
86
+ r"""Gets the build_no of this DownloadRealTimeLogRequest.
87
+
88
+ 构建任务的构建编号,从1开始,每次构建递增1
89
+
90
+ :return: The build_no of this DownloadRealTimeLogRequest.
91
+ :rtype: int
92
+ """
93
+ return self._build_no
94
+
95
+ @build_no.setter
96
+ def build_no(self, build_no):
97
+ r"""Sets the build_no of this DownloadRealTimeLogRequest.
98
+
99
+ 构建任务的构建编号,从1开始,每次构建递增1
100
+
101
+ :param build_no: The build_no of this DownloadRealTimeLogRequest.
102
+ :type build_no: int
103
+ """
104
+ self._build_no = build_no
105
+
106
+ @property
107
+ def offset(self):
108
+ r"""Gets the offset of this DownloadRealTimeLogRequest.
109
+
110
+ 偏移量,传入前一次请求返回的offset
111
+
112
+ :return: The offset of this DownloadRealTimeLogRequest.
113
+ :rtype: int
114
+ """
115
+ return self._offset
116
+
117
+ @offset.setter
118
+ def offset(self, offset):
119
+ r"""Sets the offset of this DownloadRealTimeLogRequest.
120
+
121
+ 偏移量,传入前一次请求返回的offset
122
+
123
+ :param offset: The offset of this DownloadRealTimeLogRequest.
124
+ :type offset: int
125
+ """
126
+ self._offset = offset
127
+
128
+ @property
129
+ def length(self):
130
+ r"""Gets the length of this DownloadRealTimeLogRequest.
131
+
132
+ 可控制返回内容长度,默认值为1000000
133
+
134
+ :return: The length of this DownloadRealTimeLogRequest.
135
+ :rtype: int
136
+ """
137
+ return self._length
138
+
139
+ @length.setter
140
+ def length(self, length):
141
+ r"""Sets the length of this DownloadRealTimeLogRequest.
142
+
143
+ 可控制返回内容长度,默认值为1000000
144
+
145
+ :param length: The length of this DownloadRealTimeLogRequest.
146
+ :type length: int
147
+ """
148
+ self._length = length
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, DownloadRealTimeLogRequest):
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,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 DownloadRealTimeLogResponse(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': 'RealTimeLogResponseBodyResult',
22
+ 'error': 'str',
23
+ 'status': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'result': 'result',
28
+ 'error': 'error',
29
+ 'status': 'status'
30
+ }
31
+
32
+ def __init__(self, result=None, error=None, status=None):
33
+ r"""DownloadRealTimeLogResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param result:
38
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.RealTimeLogResponseBodyResult`
39
+ :param error: 返回错误信息
40
+ :type error: str
41
+ :param status: 返回状态信息
42
+ :type status: str
43
+ """
44
+
45
+ super(DownloadRealTimeLogResponse, self).__init__()
46
+
47
+ self._result = None
48
+ self._error = None
49
+ self._status = None
50
+ self.discriminator = None
51
+
52
+ if result is not None:
53
+ self.result = result
54
+ if error is not None:
55
+ self.error = error
56
+ if status is not None:
57
+ self.status = status
58
+
59
+ @property
60
+ def result(self):
61
+ r"""Gets the result of this DownloadRealTimeLogResponse.
62
+
63
+ :return: The result of this DownloadRealTimeLogResponse.
64
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RealTimeLogResponseBodyResult`
65
+ """
66
+ return self._result
67
+
68
+ @result.setter
69
+ def result(self, result):
70
+ r"""Sets the result of this DownloadRealTimeLogResponse.
71
+
72
+ :param result: The result of this DownloadRealTimeLogResponse.
73
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.RealTimeLogResponseBodyResult`
74
+ """
75
+ self._result = result
76
+
77
+ @property
78
+ def error(self):
79
+ r"""Gets the error of this DownloadRealTimeLogResponse.
80
+
81
+ 返回错误信息
82
+
83
+ :return: The error of this DownloadRealTimeLogResponse.
84
+ :rtype: str
85
+ """
86
+ return self._error
87
+
88
+ @error.setter
89
+ def error(self, error):
90
+ r"""Sets the error of this DownloadRealTimeLogResponse.
91
+
92
+ 返回错误信息
93
+
94
+ :param error: The error of this DownloadRealTimeLogResponse.
95
+ :type error: str
96
+ """
97
+ self._error = error
98
+
99
+ @property
100
+ def status(self):
101
+ r"""Gets the status of this DownloadRealTimeLogResponse.
102
+
103
+ 返回状态信息
104
+
105
+ :return: The status of this DownloadRealTimeLogResponse.
106
+ :rtype: str
107
+ """
108
+ return self._status
109
+
110
+ @status.setter
111
+ def status(self, status):
112
+ r"""Sets the status of this DownloadRealTimeLogResponse.
113
+
114
+ 返回状态信息
115
+
116
+ :param status: The status of this DownloadRealTimeLogResponse.
117
+ :type status: str
118
+ """
119
+ self._status = status
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, DownloadRealTimeLogResponse):
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
@@ -5,7 +5,7 @@ import six
5
5
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
6
 
7
7
 
8
- class FlowGraphResult:
8
+ class FlowGraph2Result:
9
9
 
10
10
  """
11
11
  Attributes:
@@ -17,7 +17,7 @@ class FlowGraphResult:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'edges': 'list[FlowGraphResultEdges]',
20
+ 'edges': 'list[FlowGraph2ResultEdges]',
21
21
  'vertices': 'list[Vertices]'
22
22
  }
23
23
 
@@ -27,12 +27,12 @@ class FlowGraphResult:
27
27
  }
28
28
 
29
29
  def __init__(self, edges=None, vertices=None):
30
- r"""FlowGraphResult
30
+ r"""FlowGraph2Result
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
34
  :param edges: edges
35
- :type edges: list[:class:`huaweicloudsdkcodeartsbuild.v3.FlowGraphResultEdges`]
35
+ :type edges: list[:class:`huaweicloudsdkcodeartsbuild.v3.FlowGraph2ResultEdges`]
36
36
  :param vertices: record信息
37
37
  :type vertices: list[:class:`huaweicloudsdkcodeartsbuild.v3.Vertices`]
38
38
  """
@@ -50,44 +50,44 @@ class FlowGraphResult:
50
50
 
51
51
  @property
52
52
  def edges(self):
53
- r"""Gets the edges of this FlowGraphResult.
53
+ r"""Gets the edges of this FlowGraph2Result.
54
54
 
55
55
  edges
56
56
 
57
- :return: The edges of this FlowGraphResult.
58
- :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.FlowGraphResultEdges`]
57
+ :return: The edges of this FlowGraph2Result.
58
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.FlowGraph2ResultEdges`]
59
59
  """
60
60
  return self._edges
61
61
 
62
62
  @edges.setter
63
63
  def edges(self, edges):
64
- r"""Sets the edges of this FlowGraphResult.
64
+ r"""Sets the edges of this FlowGraph2Result.
65
65
 
66
66
  edges
67
67
 
68
- :param edges: The edges of this FlowGraphResult.
69
- :type edges: list[:class:`huaweicloudsdkcodeartsbuild.v3.FlowGraphResultEdges`]
68
+ :param edges: The edges of this FlowGraph2Result.
69
+ :type edges: list[:class:`huaweicloudsdkcodeartsbuild.v3.FlowGraph2ResultEdges`]
70
70
  """
71
71
  self._edges = edges
72
72
 
73
73
  @property
74
74
  def vertices(self):
75
- r"""Gets the vertices of this FlowGraphResult.
75
+ r"""Gets the vertices of this FlowGraph2Result.
76
76
 
77
77
  record信息
78
78
 
79
- :return: The vertices of this FlowGraphResult.
79
+ :return: The vertices of this FlowGraph2Result.
80
80
  :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Vertices`]
81
81
  """
82
82
  return self._vertices
83
83
 
84
84
  @vertices.setter
85
85
  def vertices(self, vertices):
86
- r"""Sets the vertices of this FlowGraphResult.
86
+ r"""Sets the vertices of this FlowGraph2Result.
87
87
 
88
88
  record信息
89
89
 
90
- :param vertices: The vertices of this FlowGraphResult.
90
+ :param vertices: The vertices of this FlowGraph2Result.
91
91
  :type vertices: list[:class:`huaweicloudsdkcodeartsbuild.v3.Vertices`]
92
92
  """
93
93
  self._vertices = vertices
@@ -134,7 +134,7 @@ class FlowGraphResult:
134
134
 
135
135
  def __eq__(self, other):
136
136
  """Returns true if both objects are equal"""
137
- if not isinstance(other, FlowGraphResult):
137
+ if not isinstance(other, FlowGraph2Result):
138
138
  return False
139
139
 
140
140
  return self.__dict__ == other.__dict__
@@ -5,7 +5,7 @@ import six
5
5
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
6
 
7
7
 
8
- class FlowGraphResultEdges:
8
+ class FlowGraph2ResultEdges:
9
9
 
10
10
  """
11
11
  Attributes:
@@ -27,7 +27,7 @@ class FlowGraphResultEdges:
27
27
  }
28
28
 
29
29
  def __init__(self, _from=None, to=None):
30
- r"""FlowGraphResultEdges
30
+ r"""FlowGraph2ResultEdges
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
@@ -50,44 +50,44 @@ class FlowGraphResultEdges:
50
50
 
51
51
  @property
52
52
  def _from(self):
53
- r"""Gets the _from of this FlowGraphResultEdges.
53
+ r"""Gets the _from of this FlowGraph2ResultEdges.
54
54
 
55
55
  依赖子任务ID
56
56
 
57
- :return: The _from of this FlowGraphResultEdges.
57
+ :return: The _from of this FlowGraph2ResultEdges.
58
58
  :rtype: str
59
59
  """
60
60
  return self.__from
61
61
 
62
62
  @_from.setter
63
63
  def _from(self, _from):
64
- r"""Sets the _from of this FlowGraphResultEdges.
64
+ r"""Sets the _from of this FlowGraph2ResultEdges.
65
65
 
66
66
  依赖子任务ID
67
67
 
68
- :param _from: The _from of this FlowGraphResultEdges.
68
+ :param _from: The _from of this FlowGraph2ResultEdges.
69
69
  :type _from: str
70
70
  """
71
71
  self.__from = _from
72
72
 
73
73
  @property
74
74
  def to(self):
75
- r"""Gets the to of this FlowGraphResultEdges.
75
+ r"""Gets the to of this FlowGraph2ResultEdges.
76
76
 
77
77
  被依赖的子任务ID
78
78
 
79
- :return: The to of this FlowGraphResultEdges.
79
+ :return: The to of this FlowGraph2ResultEdges.
80
80
  :rtype: str
81
81
  """
82
82
  return self._to
83
83
 
84
84
  @to.setter
85
85
  def to(self, to):
86
- r"""Sets the to of this FlowGraphResultEdges.
86
+ r"""Sets the to of this FlowGraph2ResultEdges.
87
87
 
88
88
  被依赖的子任务ID
89
89
 
90
- :param to: The to of this FlowGraphResultEdges.
90
+ :param to: The to of this FlowGraph2ResultEdges.
91
91
  :type to: str
92
92
  """
93
93
  self._to = to
@@ -134,7 +134,7 @@ class FlowGraphResultEdges:
134
134
 
135
135
  def __eq__(self, other):
136
136
  """Returns true if both objects are equal"""
137
- if not isinstance(other, FlowGraphResultEdges):
137
+ if not isinstance(other, FlowGraph2ResultEdges):
138
138
  return False
139
139
 
140
140
  return self.__dict__ == other.__dict__
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FullStagesResult:
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
+ 'build_stages': 'dict(str, BuildStageRecord)'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'build_stages': 'build_stages'
25
+ }
26
+
27
+ def __init__(self, build_stages=None):
28
+ r"""FullStagesResult
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param build_stages: 构建步骤
33
+ :type build_stages: dict(str, BuildStageRecord)
34
+ """
35
+
36
+
37
+
38
+ self._build_stages = None
39
+ self.discriminator = None
40
+
41
+ if build_stages is not None:
42
+ self.build_stages = build_stages
43
+
44
+ @property
45
+ def build_stages(self):
46
+ r"""Gets the build_stages of this FullStagesResult.
47
+
48
+ 构建步骤
49
+
50
+ :return: The build_stages of this FullStagesResult.
51
+ :rtype: dict(str, BuildStageRecord)
52
+ """
53
+ return self._build_stages
54
+
55
+ @build_stages.setter
56
+ def build_stages(self, build_stages):
57
+ r"""Sets the build_stages of this FullStagesResult.
58
+
59
+ 构建步骤
60
+
61
+ :param build_stages: The build_stages of this FullStagesResult.
62
+ :type build_stages: dict(str, BuildStageRecord)
63
+ """
64
+ self._build_stages = build_stages
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, FullStagesResult):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other