huaweicloudsdkcodeartsbuild 3.1.154__py2.py3-none-any.whl → 3.1.156__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 (23) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +13 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +280 -0
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +280 -0
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +13 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request.py +111 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +282 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response.py +174 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_items.py +260 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_parameters.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_params_items.py +144 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +206 -1
  12. huaweicloudsdkcodeartsbuild/v3/model/show_job_pipeline_info_request.py +172 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/show_job_pipeline_info_response.py +170 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/stop_the_job_request.py +143 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/stop_the_job_response.py +116 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_request.py +111 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_request_body.py +283 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_response.py +174 -0
  19. {huaweicloudsdkcodeartsbuild-3.1.154.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/METADATA +2 -2
  20. {huaweicloudsdkcodeartsbuild-3.1.154.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/RECORD +23 -10
  21. {huaweicloudsdkcodeartsbuild-3.1.154.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/LICENSE +0 -0
  22. {huaweicloudsdkcodeartsbuild-3.1.154.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/WHEEL +0 -0
  23. {huaweicloudsdkcodeartsbuild-3.1.154.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class JobPipelineInfoItems:
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
+ 'scms': 'list[CreateBuildJobScm]',
21
+ 'parameters': 'list[JobPipelineInfoParameters]',
22
+ 'job_name': 'str',
23
+ 'job_name_massage': 'str',
24
+ 'job_name_regex': 'str',
25
+ 'source_code': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'scms': 'scms',
30
+ 'parameters': 'parameters',
31
+ 'job_name': 'job_name',
32
+ 'job_name_massage': 'job_name_massage',
33
+ 'job_name_regex': 'job_name_regex',
34
+ 'source_code': 'source_code'
35
+ }
36
+
37
+ def __init__(self, scms=None, parameters=None, job_name=None, job_name_massage=None, job_name_regex=None, source_code=None):
38
+ r"""JobPipelineInfoItems
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param scms: 构建执行SCM
43
+ :type scms: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
44
+ :param parameters: 参数
45
+ :type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoParameters`]
46
+ :param job_name: 任务名称
47
+ :type job_name: str
48
+ :param job_name_massage: 任务名称信息
49
+ :type job_name_massage: str
50
+ :param job_name_regex: 任务名称正则
51
+ :type job_name_regex: str
52
+ :param source_code: 任务名称正则
53
+ :type source_code: str
54
+ """
55
+
56
+
57
+
58
+ self._scms = None
59
+ self._parameters = None
60
+ self._job_name = None
61
+ self._job_name_massage = None
62
+ self._job_name_regex = None
63
+ self._source_code = None
64
+ self.discriminator = None
65
+
66
+ if scms is not None:
67
+ self.scms = scms
68
+ if parameters is not None:
69
+ self.parameters = parameters
70
+ if job_name is not None:
71
+ self.job_name = job_name
72
+ if job_name_massage is not None:
73
+ self.job_name_massage = job_name_massage
74
+ if job_name_regex is not None:
75
+ self.job_name_regex = job_name_regex
76
+ if source_code is not None:
77
+ self.source_code = source_code
78
+
79
+ @property
80
+ def scms(self):
81
+ r"""Gets the scms of this JobPipelineInfoItems.
82
+
83
+ 构建执行SCM
84
+
85
+ :return: The scms of this JobPipelineInfoItems.
86
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
87
+ """
88
+ return self._scms
89
+
90
+ @scms.setter
91
+ def scms(self, scms):
92
+ r"""Sets the scms of this JobPipelineInfoItems.
93
+
94
+ 构建执行SCM
95
+
96
+ :param scms: The scms of this JobPipelineInfoItems.
97
+ :type scms: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
98
+ """
99
+ self._scms = scms
100
+
101
+ @property
102
+ def parameters(self):
103
+ r"""Gets the parameters of this JobPipelineInfoItems.
104
+
105
+ 参数
106
+
107
+ :return: The parameters of this JobPipelineInfoItems.
108
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoParameters`]
109
+ """
110
+ return self._parameters
111
+
112
+ @parameters.setter
113
+ def parameters(self, parameters):
114
+ r"""Sets the parameters of this JobPipelineInfoItems.
115
+
116
+ 参数
117
+
118
+ :param parameters: The parameters of this JobPipelineInfoItems.
119
+ :type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoParameters`]
120
+ """
121
+ self._parameters = parameters
122
+
123
+ @property
124
+ def job_name(self):
125
+ r"""Gets the job_name of this JobPipelineInfoItems.
126
+
127
+ 任务名称
128
+
129
+ :return: The job_name of this JobPipelineInfoItems.
130
+ :rtype: str
131
+ """
132
+ return self._job_name
133
+
134
+ @job_name.setter
135
+ def job_name(self, job_name):
136
+ r"""Sets the job_name of this JobPipelineInfoItems.
137
+
138
+ 任务名称
139
+
140
+ :param job_name: The job_name of this JobPipelineInfoItems.
141
+ :type job_name: str
142
+ """
143
+ self._job_name = job_name
144
+
145
+ @property
146
+ def job_name_massage(self):
147
+ r"""Gets the job_name_massage of this JobPipelineInfoItems.
148
+
149
+ 任务名称信息
150
+
151
+ :return: The job_name_massage of this JobPipelineInfoItems.
152
+ :rtype: str
153
+ """
154
+ return self._job_name_massage
155
+
156
+ @job_name_massage.setter
157
+ def job_name_massage(self, job_name_massage):
158
+ r"""Sets the job_name_massage of this JobPipelineInfoItems.
159
+
160
+ 任务名称信息
161
+
162
+ :param job_name_massage: The job_name_massage of this JobPipelineInfoItems.
163
+ :type job_name_massage: str
164
+ """
165
+ self._job_name_massage = job_name_massage
166
+
167
+ @property
168
+ def job_name_regex(self):
169
+ r"""Gets the job_name_regex of this JobPipelineInfoItems.
170
+
171
+ 任务名称正则
172
+
173
+ :return: The job_name_regex of this JobPipelineInfoItems.
174
+ :rtype: str
175
+ """
176
+ return self._job_name_regex
177
+
178
+ @job_name_regex.setter
179
+ def job_name_regex(self, job_name_regex):
180
+ r"""Sets the job_name_regex of this JobPipelineInfoItems.
181
+
182
+ 任务名称正则
183
+
184
+ :param job_name_regex: The job_name_regex of this JobPipelineInfoItems.
185
+ :type job_name_regex: str
186
+ """
187
+ self._job_name_regex = job_name_regex
188
+
189
+ @property
190
+ def source_code(self):
191
+ r"""Gets the source_code of this JobPipelineInfoItems.
192
+
193
+ 任务名称正则
194
+
195
+ :return: The source_code of this JobPipelineInfoItems.
196
+ :rtype: str
197
+ """
198
+ return self._source_code
199
+
200
+ @source_code.setter
201
+ def source_code(self, source_code):
202
+ r"""Sets the source_code of this JobPipelineInfoItems.
203
+
204
+ 任务名称正则
205
+
206
+ :param source_code: The source_code of this JobPipelineInfoItems.
207
+ :type source_code: str
208
+ """
209
+ self._source_code = source_code
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, JobPipelineInfoItems):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class JobPipelineInfoParameters:
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
+ 'region': 'str',
21
+ 'language': 'str',
22
+ 'name': 'str',
23
+ 'params': 'list[JobPipelineInfoParamsItems]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'region': 'region',
28
+ 'language': 'language',
29
+ 'name': 'name',
30
+ 'params': 'params'
31
+ }
32
+
33
+ def __init__(self, region=None, language=None, name=None, params=None):
34
+ r"""JobPipelineInfoParameters
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param region: 地域
39
+ :type region: str
40
+ :param language: 语言
41
+ :type language: str
42
+ :param name: 名称
43
+ :type name: str
44
+ :param params: 参数值
45
+ :type params: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoParamsItems`]
46
+ """
47
+
48
+
49
+
50
+ self._region = None
51
+ self._language = None
52
+ self._name = None
53
+ self._params = None
54
+ self.discriminator = None
55
+
56
+ if region is not None:
57
+ self.region = region
58
+ if language is not None:
59
+ self.language = language
60
+ if name is not None:
61
+ self.name = name
62
+ if params is not None:
63
+ self.params = params
64
+
65
+ @property
66
+ def region(self):
67
+ r"""Gets the region of this JobPipelineInfoParameters.
68
+
69
+ 地域
70
+
71
+ :return: The region of this JobPipelineInfoParameters.
72
+ :rtype: str
73
+ """
74
+ return self._region
75
+
76
+ @region.setter
77
+ def region(self, region):
78
+ r"""Sets the region of this JobPipelineInfoParameters.
79
+
80
+ 地域
81
+
82
+ :param region: The region of this JobPipelineInfoParameters.
83
+ :type region: str
84
+ """
85
+ self._region = region
86
+
87
+ @property
88
+ def language(self):
89
+ r"""Gets the language of this JobPipelineInfoParameters.
90
+
91
+ 语言
92
+
93
+ :return: The language of this JobPipelineInfoParameters.
94
+ :rtype: str
95
+ """
96
+ return self._language
97
+
98
+ @language.setter
99
+ def language(self, language):
100
+ r"""Sets the language of this JobPipelineInfoParameters.
101
+
102
+ 语言
103
+
104
+ :param language: The language of this JobPipelineInfoParameters.
105
+ :type language: str
106
+ """
107
+ self._language = language
108
+
109
+ @property
110
+ def name(self):
111
+ r"""Gets the name of this JobPipelineInfoParameters.
112
+
113
+ 名称
114
+
115
+ :return: The name of this JobPipelineInfoParameters.
116
+ :rtype: str
117
+ """
118
+ return self._name
119
+
120
+ @name.setter
121
+ def name(self, name):
122
+ r"""Sets the name of this JobPipelineInfoParameters.
123
+
124
+ 名称
125
+
126
+ :param name: The name of this JobPipelineInfoParameters.
127
+ :type name: str
128
+ """
129
+ self._name = name
130
+
131
+ @property
132
+ def params(self):
133
+ r"""Gets the params of this JobPipelineInfoParameters.
134
+
135
+ 参数值
136
+
137
+ :return: The params of this JobPipelineInfoParameters.
138
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoParamsItems`]
139
+ """
140
+ return self._params
141
+
142
+ @params.setter
143
+ def params(self, params):
144
+ r"""Sets the params of this JobPipelineInfoParameters.
145
+
146
+ 参数值
147
+
148
+ :param params: The params of this JobPipelineInfoParameters.
149
+ :type params: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoParamsItems`]
150
+ """
151
+ self._params = params
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, JobPipelineInfoParameters):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ 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 JobPipelineInfoParamsItems:
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
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'name': 'name',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, name=None, value=None):
30
+ r"""JobPipelineInfoParamsItems
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param name: 参数名称
35
+ :type name: str
36
+ :param value: 参数值
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._name = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ if name is not None:
47
+ self.name = name
48
+ if value is not None:
49
+ self.value = value
50
+
51
+ @property
52
+ def name(self):
53
+ r"""Gets the name of this JobPipelineInfoParamsItems.
54
+
55
+ 参数名称
56
+
57
+ :return: The name of this JobPipelineInfoParamsItems.
58
+ :rtype: str
59
+ """
60
+ return self._name
61
+
62
+ @name.setter
63
+ def name(self, name):
64
+ r"""Sets the name of this JobPipelineInfoParamsItems.
65
+
66
+ 参数名称
67
+
68
+ :param name: The name of this JobPipelineInfoParamsItems.
69
+ :type name: str
70
+ """
71
+ self._name = name
72
+
73
+ @property
74
+ def value(self):
75
+ r"""Gets the value of this JobPipelineInfoParamsItems.
76
+
77
+ 参数值
78
+
79
+ :return: The value of this JobPipelineInfoParamsItems.
80
+ :rtype: str
81
+ """
82
+ return self._value
83
+
84
+ @value.setter
85
+ def value(self, value):
86
+ r"""Sets the value of this JobPipelineInfoParamsItems.
87
+
88
+ 参数值
89
+
90
+ :param value: The value of this JobPipelineInfoParamsItems.
91
+ :type value: str
92
+ """
93
+ self._value = value
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, JobPipelineInfoParamsItems):
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