huaweicloudsdkcodeartsbuild 3.1.149__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 (59) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +50 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1120 -105
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1120 -105
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +50 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  55. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
  56. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +59 -9
  57. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
  58. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
  59. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ListProjectJobsResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'jobs': 'list[Job]',
22
+ 'total': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'jobs': 'jobs',
27
+ 'total': 'total'
28
+ }
29
+
30
+ def __init__(self, jobs=None, total=None):
31
+ r"""ListProjectJobsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param jobs: 任务列表
36
+ :type jobs: list[:class:`huaweicloudsdkcodeartsbuild.v3.Job`]
37
+ :param total: 任务总数
38
+ :type total: int
39
+ """
40
+
41
+ super(ListProjectJobsResponse, self).__init__()
42
+
43
+ self._jobs = None
44
+ self._total = None
45
+ self.discriminator = None
46
+
47
+ if jobs is not None:
48
+ self.jobs = jobs
49
+ if total is not None:
50
+ self.total = total
51
+
52
+ @property
53
+ def jobs(self):
54
+ r"""Gets the jobs of this ListProjectJobsResponse.
55
+
56
+ 任务列表
57
+
58
+ :return: The jobs of this ListProjectJobsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Job`]
60
+ """
61
+ return self._jobs
62
+
63
+ @jobs.setter
64
+ def jobs(self, jobs):
65
+ r"""Sets the jobs of this ListProjectJobsResponse.
66
+
67
+ 任务列表
68
+
69
+ :param jobs: The jobs of this ListProjectJobsResponse.
70
+ :type jobs: list[:class:`huaweicloudsdkcodeartsbuild.v3.Job`]
71
+ """
72
+ self._jobs = jobs
73
+
74
+ @property
75
+ def total(self):
76
+ r"""Gets the total of this ListProjectJobsResponse.
77
+
78
+ 任务总数
79
+
80
+ :return: The total of this ListProjectJobsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total
84
+
85
+ @total.setter
86
+ def total(self, total):
87
+ r"""Sets the total of this ListProjectJobsResponse.
88
+
89
+ 任务总数
90
+
91
+ :param total: The total of this ListProjectJobsResponse.
92
+ :type total: int
93
+ """
94
+ self._total = total
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListProjectJobsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListRecyclingJobRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'page_size': 'int',
21
+ 'page_no': 'int',
22
+ 'search': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'page_size': 'page_size',
27
+ 'page_no': 'page_no',
28
+ 'search': 'search'
29
+ }
30
+
31
+ def __init__(self, page_size=None, page_no=None, search=None):
32
+ r"""ListRecyclingJobRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param page_size: 每页显示的条目数量,page_size小于等于100
37
+ :type page_size: int
38
+ :param page_no: 分页页码, 表示从此页开始查询, page_no大于等于1
39
+ :type page_no: int
40
+ :param search: 搜索的任务名称
41
+ :type search: str
42
+ """
43
+
44
+
45
+
46
+ self._page_size = None
47
+ self._page_no = None
48
+ self._search = None
49
+ self.discriminator = None
50
+
51
+ if page_size is not None:
52
+ self.page_size = page_size
53
+ if page_no is not None:
54
+ self.page_no = page_no
55
+ if search is not None:
56
+ self.search = search
57
+
58
+ @property
59
+ def page_size(self):
60
+ r"""Gets the page_size of this ListRecyclingJobRequest.
61
+
62
+ 每页显示的条目数量,page_size小于等于100
63
+
64
+ :return: The page_size of this ListRecyclingJobRequest.
65
+ :rtype: int
66
+ """
67
+ return self._page_size
68
+
69
+ @page_size.setter
70
+ def page_size(self, page_size):
71
+ r"""Sets the page_size of this ListRecyclingJobRequest.
72
+
73
+ 每页显示的条目数量,page_size小于等于100
74
+
75
+ :param page_size: The page_size of this ListRecyclingJobRequest.
76
+ :type page_size: int
77
+ """
78
+ self._page_size = page_size
79
+
80
+ @property
81
+ def page_no(self):
82
+ r"""Gets the page_no of this ListRecyclingJobRequest.
83
+
84
+ 分页页码, 表示从此页开始查询, page_no大于等于1
85
+
86
+ :return: The page_no of this ListRecyclingJobRequest.
87
+ :rtype: int
88
+ """
89
+ return self._page_no
90
+
91
+ @page_no.setter
92
+ def page_no(self, page_no):
93
+ r"""Sets the page_no of this ListRecyclingJobRequest.
94
+
95
+ 分页页码, 表示从此页开始查询, page_no大于等于1
96
+
97
+ :param page_no: The page_no of this ListRecyclingJobRequest.
98
+ :type page_no: int
99
+ """
100
+ self._page_no = page_no
101
+
102
+ @property
103
+ def search(self):
104
+ r"""Gets the search of this ListRecyclingJobRequest.
105
+
106
+ 搜索的任务名称
107
+
108
+ :return: The search of this ListRecyclingJobRequest.
109
+ :rtype: str
110
+ """
111
+ return self._search
112
+
113
+ @search.setter
114
+ def search(self, search):
115
+ r"""Sets the search of this ListRecyclingJobRequest.
116
+
117
+ 搜索的任务名称
118
+
119
+ :param search: The search of this ListRecyclingJobRequest.
120
+ :type search: str
121
+ """
122
+ self._search = search
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ListRecyclingJobRequest):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -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