huaweicloudsdkcodeartsbuild 3.1.150__py2.py3-none-any.whl → 3.1.151__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 (42) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +33 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +802 -60
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +802 -60
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +33 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
  38. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
  39. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +42 -9
  40. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
  41. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
  42. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/top_level.txt +0 -0
@@ -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 ListKeystoreResult:
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
+ 'keystore_name': 'str',
21
+ 'id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'keystore_name': 'keystore_name',
26
+ 'id': 'id'
27
+ }
28
+
29
+ def __init__(self, keystore_name=None, id=None):
30
+ r"""ListKeystoreResult
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param keystore_name: 文件名
35
+ :type keystore_name: str
36
+ :param id: 文件ID
37
+ :type id: str
38
+ """
39
+
40
+
41
+
42
+ self._keystore_name = None
43
+ self._id = None
44
+ self.discriminator = None
45
+
46
+ if keystore_name is not None:
47
+ self.keystore_name = keystore_name
48
+ if id is not None:
49
+ self.id = id
50
+
51
+ @property
52
+ def keystore_name(self):
53
+ r"""Gets the keystore_name of this ListKeystoreResult.
54
+
55
+ 文件名
56
+
57
+ :return: The keystore_name of this ListKeystoreResult.
58
+ :rtype: str
59
+ """
60
+ return self._keystore_name
61
+
62
+ @keystore_name.setter
63
+ def keystore_name(self, keystore_name):
64
+ r"""Sets the keystore_name of this ListKeystoreResult.
65
+
66
+ 文件名
67
+
68
+ :param keystore_name: The keystore_name of this ListKeystoreResult.
69
+ :type keystore_name: str
70
+ """
71
+ self._keystore_name = keystore_name
72
+
73
+ @property
74
+ def id(self):
75
+ r"""Gets the id of this ListKeystoreResult.
76
+
77
+ 文件ID
78
+
79
+ :return: The id of this ListKeystoreResult.
80
+ :rtype: str
81
+ """
82
+ return self._id
83
+
84
+ @id.setter
85
+ def id(self, id):
86
+ r"""Sets the id of this ListKeystoreResult.
87
+
88
+ 文件ID
89
+
90
+ :param id: The id of this ListKeystoreResult.
91
+ :type id: str
92
+ """
93
+ self._id = id
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, ListKeystoreResult):
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,317 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListRecordsRequest:
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_project_id': 'str',
21
+ 'page': 'int',
22
+ 'limit': 'int',
23
+ 'triggers': 'list[str]',
24
+ 'branches': 'list[str]',
25
+ 'tags': 'list[str]',
26
+ 'from_date': 'str',
27
+ 'to_date': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'build_project_id': 'build_project_id',
32
+ 'page': 'page',
33
+ 'limit': 'limit',
34
+ 'triggers': 'triggers',
35
+ 'branches': 'branches',
36
+ 'tags': 'tags',
37
+ 'from_date': 'from_date',
38
+ 'to_date': 'to_date'
39
+ }
40
+
41
+ def __init__(self, build_project_id=None, page=None, limit=None, triggers=None, branches=None, tags=None, from_date=None, to_date=None):
42
+ r"""ListRecordsRequest
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param build_project_id: 构建工程项目ID,36位数字、小写字母组合。
47
+ :type build_project_id: str
48
+ :param page: 分页页码,表示从此页开始查询,大于等于0
49
+ :type page: int
50
+ :param limit: 每页显示的条目数量,小于等于100
51
+ :type limit: int
52
+ :param triggers: 需要搜索的触发类型列表
53
+ :type triggers: list[str]
54
+ :param branches: 需要搜索的分支列表
55
+ :type branches: list[str]
56
+ :param tags: 需要搜索的标签列表
57
+ :type tags: list[str]
58
+ :param from_date: 查询起止时间,格式:yyyy-MM-dd HH:mm:ss
59
+ :type from_date: str
60
+ :param to_date: 查询结束时间,格式:yyyy-MM-dd HH:mm:ss
61
+ :type to_date: str
62
+ """
63
+
64
+
65
+
66
+ self._build_project_id = None
67
+ self._page = None
68
+ self._limit = None
69
+ self._triggers = None
70
+ self._branches = None
71
+ self._tags = None
72
+ self._from_date = None
73
+ self._to_date = None
74
+ self.discriminator = None
75
+
76
+ self.build_project_id = build_project_id
77
+ if page is not None:
78
+ self.page = page
79
+ if limit is not None:
80
+ self.limit = limit
81
+ if triggers is not None:
82
+ self.triggers = triggers
83
+ if branches is not None:
84
+ self.branches = branches
85
+ if tags is not None:
86
+ self.tags = tags
87
+ if from_date is not None:
88
+ self.from_date = from_date
89
+ if to_date is not None:
90
+ self.to_date = to_date
91
+
92
+ @property
93
+ def build_project_id(self):
94
+ r"""Gets the build_project_id of this ListRecordsRequest.
95
+
96
+ 构建工程项目ID,36位数字、小写字母组合。
97
+
98
+ :return: The build_project_id of this ListRecordsRequest.
99
+ :rtype: str
100
+ """
101
+ return self._build_project_id
102
+
103
+ @build_project_id.setter
104
+ def build_project_id(self, build_project_id):
105
+ r"""Sets the build_project_id of this ListRecordsRequest.
106
+
107
+ 构建工程项目ID,36位数字、小写字母组合。
108
+
109
+ :param build_project_id: The build_project_id of this ListRecordsRequest.
110
+ :type build_project_id: str
111
+ """
112
+ self._build_project_id = build_project_id
113
+
114
+ @property
115
+ def page(self):
116
+ r"""Gets the page of this ListRecordsRequest.
117
+
118
+ 分页页码,表示从此页开始查询,大于等于0
119
+
120
+ :return: The page of this ListRecordsRequest.
121
+ :rtype: int
122
+ """
123
+ return self._page
124
+
125
+ @page.setter
126
+ def page(self, page):
127
+ r"""Sets the page of this ListRecordsRequest.
128
+
129
+ 分页页码,表示从此页开始查询,大于等于0
130
+
131
+ :param page: The page of this ListRecordsRequest.
132
+ :type page: int
133
+ """
134
+ self._page = page
135
+
136
+ @property
137
+ def limit(self):
138
+ r"""Gets the limit of this ListRecordsRequest.
139
+
140
+ 每页显示的条目数量,小于等于100
141
+
142
+ :return: The limit of this ListRecordsRequest.
143
+ :rtype: int
144
+ """
145
+ return self._limit
146
+
147
+ @limit.setter
148
+ def limit(self, limit):
149
+ r"""Sets the limit of this ListRecordsRequest.
150
+
151
+ 每页显示的条目数量,小于等于100
152
+
153
+ :param limit: The limit of this ListRecordsRequest.
154
+ :type limit: int
155
+ """
156
+ self._limit = limit
157
+
158
+ @property
159
+ def triggers(self):
160
+ r"""Gets the triggers of this ListRecordsRequest.
161
+
162
+ 需要搜索的触发类型列表
163
+
164
+ :return: The triggers of this ListRecordsRequest.
165
+ :rtype: list[str]
166
+ """
167
+ return self._triggers
168
+
169
+ @triggers.setter
170
+ def triggers(self, triggers):
171
+ r"""Sets the triggers of this ListRecordsRequest.
172
+
173
+ 需要搜索的触发类型列表
174
+
175
+ :param triggers: The triggers of this ListRecordsRequest.
176
+ :type triggers: list[str]
177
+ """
178
+ self._triggers = triggers
179
+
180
+ @property
181
+ def branches(self):
182
+ r"""Gets the branches of this ListRecordsRequest.
183
+
184
+ 需要搜索的分支列表
185
+
186
+ :return: The branches of this ListRecordsRequest.
187
+ :rtype: list[str]
188
+ """
189
+ return self._branches
190
+
191
+ @branches.setter
192
+ def branches(self, branches):
193
+ r"""Sets the branches of this ListRecordsRequest.
194
+
195
+ 需要搜索的分支列表
196
+
197
+ :param branches: The branches of this ListRecordsRequest.
198
+ :type branches: list[str]
199
+ """
200
+ self._branches = branches
201
+
202
+ @property
203
+ def tags(self):
204
+ r"""Gets the tags of this ListRecordsRequest.
205
+
206
+ 需要搜索的标签列表
207
+
208
+ :return: The tags of this ListRecordsRequest.
209
+ :rtype: list[str]
210
+ """
211
+ return self._tags
212
+
213
+ @tags.setter
214
+ def tags(self, tags):
215
+ r"""Sets the tags of this ListRecordsRequest.
216
+
217
+ 需要搜索的标签列表
218
+
219
+ :param tags: The tags of this ListRecordsRequest.
220
+ :type tags: list[str]
221
+ """
222
+ self._tags = tags
223
+
224
+ @property
225
+ def from_date(self):
226
+ r"""Gets the from_date of this ListRecordsRequest.
227
+
228
+ 查询起止时间,格式:yyyy-MM-dd HH:mm:ss
229
+
230
+ :return: The from_date of this ListRecordsRequest.
231
+ :rtype: str
232
+ """
233
+ return self._from_date
234
+
235
+ @from_date.setter
236
+ def from_date(self, from_date):
237
+ r"""Sets the from_date of this ListRecordsRequest.
238
+
239
+ 查询起止时间,格式:yyyy-MM-dd HH:mm:ss
240
+
241
+ :param from_date: The from_date of this ListRecordsRequest.
242
+ :type from_date: str
243
+ """
244
+ self._from_date = from_date
245
+
246
+ @property
247
+ def to_date(self):
248
+ r"""Gets the to_date of this ListRecordsRequest.
249
+
250
+ 查询结束时间,格式:yyyy-MM-dd HH:mm:ss
251
+
252
+ :return: The to_date of this ListRecordsRequest.
253
+ :rtype: str
254
+ """
255
+ return self._to_date
256
+
257
+ @to_date.setter
258
+ def to_date(self, to_date):
259
+ r"""Sets the to_date of this ListRecordsRequest.
260
+
261
+ 查询结束时间,格式:yyyy-MM-dd HH:mm:ss
262
+
263
+ :param to_date: The to_date of this ListRecordsRequest.
264
+ :type to_date: str
265
+ """
266
+ self._to_date = to_date
267
+
268
+ def to_dict(self):
269
+ """Returns the model properties as a dict"""
270
+ result = {}
271
+
272
+ for attr, _ in six.iteritems(self.openapi_types):
273
+ value = getattr(self, attr)
274
+ if isinstance(value, list):
275
+ result[attr] = list(map(
276
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
277
+ value
278
+ ))
279
+ elif hasattr(value, "to_dict"):
280
+ result[attr] = value.to_dict()
281
+ elif isinstance(value, dict):
282
+ result[attr] = dict(map(
283
+ lambda item: (item[0], item[1].to_dict())
284
+ if hasattr(item[1], "to_dict") else item,
285
+ value.items()
286
+ ))
287
+ else:
288
+ if attr in self.sensitive_list:
289
+ result[attr] = "****"
290
+ else:
291
+ result[attr] = value
292
+
293
+ return result
294
+
295
+ def to_str(self):
296
+ """Returns the string representation of the model"""
297
+ import simplejson as json
298
+ if six.PY2:
299
+ import sys
300
+ reload(sys)
301
+ sys.setdefaultencoding("utf-8")
302
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
303
+
304
+ def __repr__(self):
305
+ """For `print`"""
306
+ return self.to_str()
307
+
308
+ def __eq__(self, other):
309
+ """Returns true if both objects are equal"""
310
+ if not isinstance(other, ListRecordsRequest):
311
+ return False
312
+
313
+ return self.__dict__ == other.__dict__
314
+
315
+ def __ne__(self, other):
316
+ """Returns true if both objects are not equal"""
317
+ 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 ListRecordsResponse(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': 'ListRecordsResult',
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"""ListRecordsResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param result:
38
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResult`
39
+ :param error: 返回错误信息
40
+ :type error: str
41
+ :param status: 返回状态信息
42
+ :type status: str
43
+ """
44
+
45
+ super(ListRecordsResponse, 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 ListRecordsResponse.
62
+
63
+ :return: The result of this ListRecordsResponse.
64
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResult`
65
+ """
66
+ return self._result
67
+
68
+ @result.setter
69
+ def result(self, result):
70
+ r"""Sets the result of this ListRecordsResponse.
71
+
72
+ :param result: The result of this ListRecordsResponse.
73
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResult`
74
+ """
75
+ self._result = result
76
+
77
+ @property
78
+ def error(self):
79
+ r"""Gets the error of this ListRecordsResponse.
80
+
81
+ 返回错误信息
82
+
83
+ :return: The error of this ListRecordsResponse.
84
+ :rtype: str
85
+ """
86
+ return self._error
87
+
88
+ @error.setter
89
+ def error(self, error):
90
+ r"""Sets the error of this ListRecordsResponse.
91
+
92
+ 返回错误信息
93
+
94
+ :param error: The error of this ListRecordsResponse.
95
+ :type error: str
96
+ """
97
+ self._error = error
98
+
99
+ @property
100
+ def status(self):
101
+ r"""Gets the status of this ListRecordsResponse.
102
+
103
+ 返回状态信息
104
+
105
+ :return: The status of this ListRecordsResponse.
106
+ :rtype: str
107
+ """
108
+ return self._status
109
+
110
+ @status.setter
111
+ def status(self, status):
112
+ r"""Sets the status of this ListRecordsResponse.
113
+
114
+ 返回状态信息
115
+
116
+ :param status: The status of this ListRecordsResponse.
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, ListRecordsResponse):
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