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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +77 -2
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1619 -123
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1619 -123
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +77 -2
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
- huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +88 -13
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,228 @@
|
|
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 ListRecyclingJobResponse(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
|
+
'success': 'bool',
|
22
|
+
'message': 'str',
|
23
|
+
'err_code': 'str',
|
24
|
+
'result': 'RecyclingJobsResult',
|
25
|
+
'status': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'success': 'success',
|
30
|
+
'message': 'message',
|
31
|
+
'err_code': 'err_code',
|
32
|
+
'result': 'result',
|
33
|
+
'status': 'status'
|
34
|
+
}
|
35
|
+
|
36
|
+
def __init__(self, success=None, message=None, err_code=None, result=None, status=None):
|
37
|
+
r"""ListRecyclingJobResponse
|
38
|
+
|
39
|
+
The model defined in huaweicloud sdk
|
40
|
+
|
41
|
+
:param success: 状态
|
42
|
+
:type success: bool
|
43
|
+
:param message: 消息
|
44
|
+
:type message: str
|
45
|
+
:param err_code: 错误码
|
46
|
+
:type err_code: str
|
47
|
+
:param result:
|
48
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.RecyclingJobsResult`
|
49
|
+
:param status: 状态
|
50
|
+
:type status: str
|
51
|
+
"""
|
52
|
+
|
53
|
+
super(ListRecyclingJobResponse, self).__init__()
|
54
|
+
|
55
|
+
self._success = None
|
56
|
+
self._message = None
|
57
|
+
self._err_code = None
|
58
|
+
self._result = None
|
59
|
+
self._status = None
|
60
|
+
self.discriminator = None
|
61
|
+
|
62
|
+
if success is not None:
|
63
|
+
self.success = success
|
64
|
+
if message is not None:
|
65
|
+
self.message = message
|
66
|
+
if err_code is not None:
|
67
|
+
self.err_code = err_code
|
68
|
+
if result is not None:
|
69
|
+
self.result = result
|
70
|
+
if status is not None:
|
71
|
+
self.status = status
|
72
|
+
|
73
|
+
@property
|
74
|
+
def success(self):
|
75
|
+
r"""Gets the success of this ListRecyclingJobResponse.
|
76
|
+
|
77
|
+
状态
|
78
|
+
|
79
|
+
:return: The success of this ListRecyclingJobResponse.
|
80
|
+
:rtype: bool
|
81
|
+
"""
|
82
|
+
return self._success
|
83
|
+
|
84
|
+
@success.setter
|
85
|
+
def success(self, success):
|
86
|
+
r"""Sets the success of this ListRecyclingJobResponse.
|
87
|
+
|
88
|
+
状态
|
89
|
+
|
90
|
+
:param success: The success of this ListRecyclingJobResponse.
|
91
|
+
:type success: bool
|
92
|
+
"""
|
93
|
+
self._success = success
|
94
|
+
|
95
|
+
@property
|
96
|
+
def message(self):
|
97
|
+
r"""Gets the message of this ListRecyclingJobResponse.
|
98
|
+
|
99
|
+
消息
|
100
|
+
|
101
|
+
:return: The message of this ListRecyclingJobResponse.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._message
|
105
|
+
|
106
|
+
@message.setter
|
107
|
+
def message(self, message):
|
108
|
+
r"""Sets the message of this ListRecyclingJobResponse.
|
109
|
+
|
110
|
+
消息
|
111
|
+
|
112
|
+
:param message: The message of this ListRecyclingJobResponse.
|
113
|
+
:type message: str
|
114
|
+
"""
|
115
|
+
self._message = message
|
116
|
+
|
117
|
+
@property
|
118
|
+
def err_code(self):
|
119
|
+
r"""Gets the err_code of this ListRecyclingJobResponse.
|
120
|
+
|
121
|
+
错误码
|
122
|
+
|
123
|
+
:return: The err_code of this ListRecyclingJobResponse.
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._err_code
|
127
|
+
|
128
|
+
@err_code.setter
|
129
|
+
def err_code(self, err_code):
|
130
|
+
r"""Sets the err_code of this ListRecyclingJobResponse.
|
131
|
+
|
132
|
+
错误码
|
133
|
+
|
134
|
+
:param err_code: The err_code of this ListRecyclingJobResponse.
|
135
|
+
:type err_code: str
|
136
|
+
"""
|
137
|
+
self._err_code = err_code
|
138
|
+
|
139
|
+
@property
|
140
|
+
def result(self):
|
141
|
+
r"""Gets the result of this ListRecyclingJobResponse.
|
142
|
+
|
143
|
+
:return: The result of this ListRecyclingJobResponse.
|
144
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RecyclingJobsResult`
|
145
|
+
"""
|
146
|
+
return self._result
|
147
|
+
|
148
|
+
@result.setter
|
149
|
+
def result(self, result):
|
150
|
+
r"""Sets the result of this ListRecyclingJobResponse.
|
151
|
+
|
152
|
+
:param result: The result of this ListRecyclingJobResponse.
|
153
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.RecyclingJobsResult`
|
154
|
+
"""
|
155
|
+
self._result = result
|
156
|
+
|
157
|
+
@property
|
158
|
+
def status(self):
|
159
|
+
r"""Gets the status of this ListRecyclingJobResponse.
|
160
|
+
|
161
|
+
状态
|
162
|
+
|
163
|
+
:return: The status of this ListRecyclingJobResponse.
|
164
|
+
:rtype: str
|
165
|
+
"""
|
166
|
+
return self._status
|
167
|
+
|
168
|
+
@status.setter
|
169
|
+
def status(self, status):
|
170
|
+
r"""Sets the status of this ListRecyclingJobResponse.
|
171
|
+
|
172
|
+
状态
|
173
|
+
|
174
|
+
:param status: The status of this ListRecyclingJobResponse.
|
175
|
+
:type status: str
|
176
|
+
"""
|
177
|
+
self._status = status
|
178
|
+
|
179
|
+
def to_dict(self):
|
180
|
+
"""Returns the model properties as a dict"""
|
181
|
+
result = {}
|
182
|
+
|
183
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
184
|
+
value = getattr(self, attr)
|
185
|
+
if isinstance(value, list):
|
186
|
+
result[attr] = list(map(
|
187
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
188
|
+
value
|
189
|
+
))
|
190
|
+
elif hasattr(value, "to_dict"):
|
191
|
+
result[attr] = value.to_dict()
|
192
|
+
elif isinstance(value, dict):
|
193
|
+
result[attr] = dict(map(
|
194
|
+
lambda item: (item[0], item[1].to_dict())
|
195
|
+
if hasattr(item[1], "to_dict") else item,
|
196
|
+
value.items()
|
197
|
+
))
|
198
|
+
else:
|
199
|
+
if attr in self.sensitive_list:
|
200
|
+
result[attr] = "****"
|
201
|
+
else:
|
202
|
+
result[attr] = value
|
203
|
+
|
204
|
+
return result
|
205
|
+
|
206
|
+
def to_str(self):
|
207
|
+
"""Returns the string representation of the model"""
|
208
|
+
import simplejson as json
|
209
|
+
if six.PY2:
|
210
|
+
import sys
|
211
|
+
reload(sys)
|
212
|
+
sys.setdefaultencoding("utf-8")
|
213
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
214
|
+
|
215
|
+
def __repr__(self):
|
216
|
+
"""For `print`"""
|
217
|
+
return self.to_str()
|
218
|
+
|
219
|
+
def __eq__(self, other):
|
220
|
+
"""Returns true if both objects are equal"""
|
221
|
+
if not isinstance(other, ListRecyclingJobResponse):
|
222
|
+
return False
|
223
|
+
|
224
|
+
return self.__dict__ == other.__dict__
|
225
|
+
|
226
|
+
def __ne__(self, other):
|
227
|
+
"""Returns true if both objects are not equal"""
|
228
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class Parameter:
|
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
|
+
'name': 'str',
|
21
|
+
'params': 'list[CreateBuildJobParameterParam]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'name': 'name',
|
26
|
+
'params': 'params'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, name=None, params=None):
|
30
|
+
r"""Parameter
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param name: 参数定义名,默认为hudson.model.StringParameterDefinition
|
35
|
+
:type name: str
|
36
|
+
:param params: 构建执行参数子参数
|
37
|
+
:type params: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameterParam`]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._name = None
|
43
|
+
self._params = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if name is not None:
|
47
|
+
self.name = name
|
48
|
+
if params is not None:
|
49
|
+
self.params = params
|
50
|
+
|
51
|
+
@property
|
52
|
+
def name(self):
|
53
|
+
r"""Gets the name of this Parameter.
|
54
|
+
|
55
|
+
参数定义名,默认为hudson.model.StringParameterDefinition
|
56
|
+
|
57
|
+
:return: The name of this Parameter.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._name
|
61
|
+
|
62
|
+
@name.setter
|
63
|
+
def name(self, name):
|
64
|
+
r"""Sets the name of this Parameter.
|
65
|
+
|
66
|
+
参数定义名,默认为hudson.model.StringParameterDefinition
|
67
|
+
|
68
|
+
:param name: The name of this Parameter.
|
69
|
+
:type name: str
|
70
|
+
"""
|
71
|
+
self._name = name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def params(self):
|
75
|
+
r"""Gets the params of this Parameter.
|
76
|
+
|
77
|
+
构建执行参数子参数
|
78
|
+
|
79
|
+
:return: The params of this Parameter.
|
80
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameterParam`]
|
81
|
+
"""
|
82
|
+
return self._params
|
83
|
+
|
84
|
+
@params.setter
|
85
|
+
def params(self, params):
|
86
|
+
r"""Sets the params of this Parameter.
|
87
|
+
|
88
|
+
构建执行参数子参数
|
89
|
+
|
90
|
+
:param params: The params of this Parameter.
|
91
|
+
:type params: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameterParam`]
|
92
|
+
"""
|
93
|
+
self._params = params
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, Parameter):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,289 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class Params:
|
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
|
+
'name': 'str',
|
21
|
+
'title': 'str',
|
22
|
+
'type': 'str',
|
23
|
+
'required': 'bool',
|
24
|
+
'constraints': 'list[Constraints]',
|
25
|
+
'deletion': 'bool',
|
26
|
+
'defaults': 'bool'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'name',
|
31
|
+
'title': 'title',
|
32
|
+
'type': 'type',
|
33
|
+
'required': 'required',
|
34
|
+
'constraints': 'constraints',
|
35
|
+
'deletion': 'deletion',
|
36
|
+
'defaults': 'defaults'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, name=None, title=None, type=None, required=None, constraints=None, deletion=None, defaults=None):
|
40
|
+
r"""Params
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param name: 参数名
|
45
|
+
:type name: str
|
46
|
+
:param title: 名称
|
47
|
+
:type title: str
|
48
|
+
:param type: 类型
|
49
|
+
:type type: str
|
50
|
+
:param required: 必填
|
51
|
+
:type required: bool
|
52
|
+
:param constraints: 简要构建信息列表
|
53
|
+
:type constraints: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
|
54
|
+
:param deletion: 删除
|
55
|
+
:type deletion: bool
|
56
|
+
:param defaults: 默认
|
57
|
+
:type defaults: bool
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._name = None
|
63
|
+
self._title = None
|
64
|
+
self._type = None
|
65
|
+
self._required = None
|
66
|
+
self._constraints = None
|
67
|
+
self._deletion = None
|
68
|
+
self._defaults = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if name is not None:
|
72
|
+
self.name = name
|
73
|
+
if title is not None:
|
74
|
+
self.title = title
|
75
|
+
if type is not None:
|
76
|
+
self.type = type
|
77
|
+
if required is not None:
|
78
|
+
self.required = required
|
79
|
+
if constraints is not None:
|
80
|
+
self.constraints = constraints
|
81
|
+
if deletion is not None:
|
82
|
+
self.deletion = deletion
|
83
|
+
if defaults is not None:
|
84
|
+
self.defaults = defaults
|
85
|
+
|
86
|
+
@property
|
87
|
+
def name(self):
|
88
|
+
r"""Gets the name of this Params.
|
89
|
+
|
90
|
+
参数名
|
91
|
+
|
92
|
+
:return: The name of this Params.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._name
|
96
|
+
|
97
|
+
@name.setter
|
98
|
+
def name(self, name):
|
99
|
+
r"""Sets the name of this Params.
|
100
|
+
|
101
|
+
参数名
|
102
|
+
|
103
|
+
:param name: The name of this Params.
|
104
|
+
:type name: str
|
105
|
+
"""
|
106
|
+
self._name = name
|
107
|
+
|
108
|
+
@property
|
109
|
+
def title(self):
|
110
|
+
r"""Gets the title of this Params.
|
111
|
+
|
112
|
+
名称
|
113
|
+
|
114
|
+
:return: The title of this Params.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._title
|
118
|
+
|
119
|
+
@title.setter
|
120
|
+
def title(self, title):
|
121
|
+
r"""Sets the title of this Params.
|
122
|
+
|
123
|
+
名称
|
124
|
+
|
125
|
+
:param title: The title of this Params.
|
126
|
+
:type title: str
|
127
|
+
"""
|
128
|
+
self._title = title
|
129
|
+
|
130
|
+
@property
|
131
|
+
def type(self):
|
132
|
+
r"""Gets the type of this Params.
|
133
|
+
|
134
|
+
类型
|
135
|
+
|
136
|
+
:return: The type of this Params.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._type
|
140
|
+
|
141
|
+
@type.setter
|
142
|
+
def type(self, type):
|
143
|
+
r"""Sets the type of this Params.
|
144
|
+
|
145
|
+
类型
|
146
|
+
|
147
|
+
:param type: The type of this Params.
|
148
|
+
:type type: str
|
149
|
+
"""
|
150
|
+
self._type = type
|
151
|
+
|
152
|
+
@property
|
153
|
+
def required(self):
|
154
|
+
r"""Gets the required of this Params.
|
155
|
+
|
156
|
+
必填
|
157
|
+
|
158
|
+
:return: The required of this Params.
|
159
|
+
:rtype: bool
|
160
|
+
"""
|
161
|
+
return self._required
|
162
|
+
|
163
|
+
@required.setter
|
164
|
+
def required(self, required):
|
165
|
+
r"""Sets the required of this Params.
|
166
|
+
|
167
|
+
必填
|
168
|
+
|
169
|
+
:param required: The required of this Params.
|
170
|
+
:type required: bool
|
171
|
+
"""
|
172
|
+
self._required = required
|
173
|
+
|
174
|
+
@property
|
175
|
+
def constraints(self):
|
176
|
+
r"""Gets the constraints of this Params.
|
177
|
+
|
178
|
+
简要构建信息列表
|
179
|
+
|
180
|
+
:return: The constraints of this Params.
|
181
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
|
182
|
+
"""
|
183
|
+
return self._constraints
|
184
|
+
|
185
|
+
@constraints.setter
|
186
|
+
def constraints(self, constraints):
|
187
|
+
r"""Sets the constraints of this Params.
|
188
|
+
|
189
|
+
简要构建信息列表
|
190
|
+
|
191
|
+
:param constraints: The constraints of this Params.
|
192
|
+
:type constraints: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
|
193
|
+
"""
|
194
|
+
self._constraints = constraints
|
195
|
+
|
196
|
+
@property
|
197
|
+
def deletion(self):
|
198
|
+
r"""Gets the deletion of this Params.
|
199
|
+
|
200
|
+
删除
|
201
|
+
|
202
|
+
:return: The deletion of this Params.
|
203
|
+
:rtype: bool
|
204
|
+
"""
|
205
|
+
return self._deletion
|
206
|
+
|
207
|
+
@deletion.setter
|
208
|
+
def deletion(self, deletion):
|
209
|
+
r"""Sets the deletion of this Params.
|
210
|
+
|
211
|
+
删除
|
212
|
+
|
213
|
+
:param deletion: The deletion of this Params.
|
214
|
+
:type deletion: bool
|
215
|
+
"""
|
216
|
+
self._deletion = deletion
|
217
|
+
|
218
|
+
@property
|
219
|
+
def defaults(self):
|
220
|
+
r"""Gets the defaults of this Params.
|
221
|
+
|
222
|
+
默认
|
223
|
+
|
224
|
+
:return: The defaults of this Params.
|
225
|
+
:rtype: bool
|
226
|
+
"""
|
227
|
+
return self._defaults
|
228
|
+
|
229
|
+
@defaults.setter
|
230
|
+
def defaults(self, defaults):
|
231
|
+
r"""Sets the defaults of this Params.
|
232
|
+
|
233
|
+
默认
|
234
|
+
|
235
|
+
:param defaults: The defaults of this Params.
|
236
|
+
:type defaults: bool
|
237
|
+
"""
|
238
|
+
self._defaults = defaults
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, Params):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
return not self == other
|