tencentcloud-sdk-python-makers 3.1.207__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.
@@ -0,0 +1,17 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 1999-2018 Tencent Ltd.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ __version__ = '3.1.207'
File without changes
File without changes
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 操作失败。
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
20
+ # Git 授权已过期。
21
+ FAILEDOPERATION_GITAUTHEXPIRED = 'FailedOperation.GitAuthExpired'
22
+
23
+ # 参数错误。
24
+ INVALIDPARAMETER = 'InvalidParameter'
25
+
26
+ # 参数取值不合法,或请求的资源不属于当前账号。
27
+ INVALIDPARAMETER_SECURITY = 'InvalidParameter.Security'
28
+
29
+ # 超过配额限制。
30
+ LIMITEXCEEDED = 'LimitExceeded'
31
+
32
+ # 当前套餐不支持该操作,或已达到套餐配额上限。
33
+ LIMITEXCEEDED_QUOTA = 'LimitExceeded.Quota'
34
+
35
+ # 资源不存在。
36
+ RESOURCENOTFOUND = 'ResourceNotFound'
37
+
38
+ # 资源不可用。
39
+ RESOURCEUNAVAILABLE = 'ResourceUnavailable'
@@ -0,0 +1,394 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.makers.v20261113 import models
21
+
22
+
23
+ class MakersClient(AbstractClient):
24
+ _apiVersion = '2026-11-13'
25
+ _endpoint = 'makers.tencentcloudapi.com'
26
+ _service = 'makers'
27
+
28
+
29
+ def CreateDeployment(self, request):
30
+ r"""创建部署。上传制品时 ViaMeta 和 Provider 传 Upload,TempBucketPath 传已上传对象的路径。
31
+
32
+ :param request: Request instance for CreateDeployment.
33
+ :type request: :class:`tencentcloud.makers.v20261113.models.CreateDeploymentRequest`
34
+ :rtype: :class:`tencentcloud.makers.v20261113.models.CreateDeploymentResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateDeployment", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateDeploymentResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
52
+ def CreateProject(self, request):
53
+ r"""创建项目。上传制品时 Provider 传 Upload,Channel 传 Custom。
54
+
55
+ :param request: Request instance for CreateProject.
56
+ :type request: :class:`tencentcloud.makers.v20261113.models.CreateProjectRequest`
57
+ :rtype: :class:`tencentcloud.makers.v20261113.models.CreateProjectResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("CreateProject", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.CreateProjectResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def CreateZoneCustomDomain(self, request):
76
+ r"""把一个自定义域名绑到项目的指定环境。
77
+
78
+ :param request: Request instance for CreateZoneCustomDomain.
79
+ :type request: :class:`tencentcloud.makers.v20261113.models.CreateZoneCustomDomainRequest`
80
+ :rtype: :class:`tencentcloud.makers.v20261113.models.CreateZoneCustomDomainResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("CreateZoneCustomDomain", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.CreateZoneCustomDomainResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
98
+ def DeleteProject(self, request):
99
+ r"""删除项目。进行中的构建会阻止删除。
100
+
101
+ :param request: Request instance for DeleteProject.
102
+ :type request: :class:`tencentcloud.makers.v20261113.models.DeleteProjectRequest`
103
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DeleteProjectResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("DeleteProject", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.DeleteProjectResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
121
+ def DeleteProjectCustomDomains(self, request):
122
+ r"""按域名解绑项目的自定义域名。
123
+
124
+ :param request: Request instance for DeleteProjectCustomDomains.
125
+ :type request: :class:`tencentcloud.makers.v20261113.models.DeleteProjectCustomDomainsRequest`
126
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DeleteProjectCustomDomainsResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("DeleteProjectCustomDomains", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.DeleteProjectCustomDomainsResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
144
+ def DeleteProjectEnvs(self, request):
145
+ r"""按 EnvVars 删除环境变量。按 Id 或 Key 匹配。Value 必填但不参与匹配,可传任意值。
146
+
147
+ :param request: Request instance for DeleteProjectEnvs.
148
+ :type request: :class:`tencentcloud.makers.v20261113.models.DeleteProjectEnvsRequest`
149
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DeleteProjectEnvsResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("DeleteProjectEnvs", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.DeleteProjectEnvsResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
165
+
166
+
167
+ def DescribeCosTempToken(self, request):
168
+ r"""获取上传制品用的 COS 桶、地域、目标路径和临时密钥。
169
+
170
+ :param request: Request instance for DescribeCosTempToken.
171
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeCosTempTokenRequest`
172
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeCosTempTokenResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("DescribeCosTempToken", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.DescribeCosTempTokenResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
190
+ def DescribeDeploymentLog(self, request):
191
+ r"""返回构建日志的访问地址。
192
+
193
+ :param request: Request instance for DescribeDeploymentLog.
194
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeDeploymentLogRequest`
195
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeDeploymentLogResponse`
196
+
197
+ """
198
+ try:
199
+ params = request._serialize()
200
+ headers = request.headers
201
+ body = self.call("DescribeDeploymentLog", params, headers=headers)
202
+ response = json.loads(body)
203
+ model = models.DescribeDeploymentLogResponse()
204
+ model._deserialize(response["Response"])
205
+ return model
206
+ except Exception as e:
207
+ if isinstance(e, TencentCloudSDKException):
208
+ raise
209
+ else:
210
+ raise TencentCloudSDKException(type(e).__name__, str(e))
211
+
212
+
213
+ def DescribeDeployments(self, request):
214
+ r"""查询项目的部署记录。
215
+
216
+ :param request: Request instance for DescribeDeployments.
217
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeDeploymentsRequest`
218
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeDeploymentsResponse`
219
+
220
+ """
221
+ try:
222
+ params = request._serialize()
223
+ headers = request.headers
224
+ body = self.call("DescribeDeployments", params, headers=headers)
225
+ response = json.loads(body)
226
+ model = models.DescribeDeploymentsResponse()
227
+ model._deserialize(response["Response"])
228
+ return model
229
+ except Exception as e:
230
+ if isinstance(e, TencentCloudSDKException):
231
+ raise
232
+ else:
233
+ raise TencentCloudSDKException(type(e).__name__, str(e))
234
+
235
+
236
+ def DescribeEnvironments(self, request):
237
+ r"""查询项目下的环境,含内置 Production、Preview 和自定义环境。
238
+
239
+ :param request: Request instance for DescribeEnvironments.
240
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeEnvironmentsRequest`
241
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeEnvironmentsResponse`
242
+
243
+ """
244
+ try:
245
+ params = request._serialize()
246
+ headers = request.headers
247
+ body = self.call("DescribeEnvironments", params, headers=headers)
248
+ response = json.loads(body)
249
+ model = models.DescribeEnvironmentsResponse()
250
+ model._deserialize(response["Response"])
251
+ return model
252
+ except Exception as e:
253
+ if isinstance(e, TencentCloudSDKException):
254
+ raise
255
+ else:
256
+ raise TencentCloudSDKException(type(e).__name__, str(e))
257
+
258
+
259
+ def DescribeProjectEnvs(self, request):
260
+ r"""查询项目环境变量。不传 Env 时返回全部作用域。
261
+
262
+ :param request: Request instance for DescribeProjectEnvs.
263
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeProjectEnvsRequest`
264
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeProjectEnvsResponse`
265
+
266
+ """
267
+ try:
268
+ params = request._serialize()
269
+ headers = request.headers
270
+ body = self.call("DescribeProjectEnvs", params, headers=headers)
271
+ response = json.loads(body)
272
+ model = models.DescribeProjectEnvsResponse()
273
+ model._deserialize(response["Response"])
274
+ return model
275
+ except Exception as e:
276
+ if isinstance(e, TencentCloudSDKException):
277
+ raise
278
+ else:
279
+ raise TencentCloudSDKException(type(e).__name__, str(e))
280
+
281
+
282
+ def DescribeProjects(self, request):
283
+ r"""分页查询站点下的项目。Offset 是页码偏移,后端按 Offset * Limit 跳过。
284
+
285
+ :param request: Request instance for DescribeProjects.
286
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeProjectsRequest`
287
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeProjectsResponse`
288
+
289
+ """
290
+ try:
291
+ params = request._serialize()
292
+ headers = request.headers
293
+ body = self.call("DescribeProjects", params, headers=headers)
294
+ response = json.loads(body)
295
+ model = models.DescribeProjectsResponse()
296
+ model._deserialize(response["Response"])
297
+ return model
298
+ except Exception as e:
299
+ if isinstance(e, TencentCloudSDKException):
300
+ raise
301
+ else:
302
+ raise TencentCloudSDKException(type(e).__name__, str(e))
303
+
304
+
305
+ def DescribeZoneCustomDomains(self, request):
306
+ r"""查询项目在站点下的自定义域名和预设域名。
307
+
308
+ :param request: Request instance for DescribeZoneCustomDomains.
309
+ :type request: :class:`tencentcloud.makers.v20261113.models.DescribeZoneCustomDomainsRequest`
310
+ :rtype: :class:`tencentcloud.makers.v20261113.models.DescribeZoneCustomDomainsResponse`
311
+
312
+ """
313
+ try:
314
+ params = request._serialize()
315
+ headers = request.headers
316
+ body = self.call("DescribeZoneCustomDomains", params, headers=headers)
317
+ response = json.loads(body)
318
+ model = models.DescribeZoneCustomDomainsResponse()
319
+ model._deserialize(response["Response"])
320
+ return model
321
+ except Exception as e:
322
+ if isinstance(e, TencentCloudSDKException):
323
+ raise
324
+ else:
325
+ raise TencentCloudSDKException(type(e).__name__, str(e))
326
+
327
+
328
+ def ModifyProject(self, request):
329
+ r"""修改项目名称和构建配置。未传的字段保持原值。
330
+
331
+ :param request: Request instance for ModifyProject.
332
+ :type request: :class:`tencentcloud.makers.v20261113.models.ModifyProjectRequest`
333
+ :rtype: :class:`tencentcloud.makers.v20261113.models.ModifyProjectResponse`
334
+
335
+ """
336
+ try:
337
+ params = request._serialize()
338
+ headers = request.headers
339
+ body = self.call("ModifyProject", params, headers=headers)
340
+ response = json.loads(body)
341
+ model = models.ModifyProjectResponse()
342
+ model._deserialize(response["Response"])
343
+ return model
344
+ except Exception as e:
345
+ if isinstance(e, TencentCloudSDKException):
346
+ raise
347
+ else:
348
+ raise TencentCloudSDKException(type(e).__name__, str(e))
349
+
350
+
351
+ def ModifyProjectEnvs(self, request):
352
+ r"""按传入的 EnvVars 写入环境变量。
353
+
354
+ :param request: Request instance for ModifyProjectEnvs.
355
+ :type request: :class:`tencentcloud.makers.v20261113.models.ModifyProjectEnvsRequest`
356
+ :rtype: :class:`tencentcloud.makers.v20261113.models.ModifyProjectEnvsResponse`
357
+
358
+ """
359
+ try:
360
+ params = request._serialize()
361
+ headers = request.headers
362
+ body = self.call("ModifyProjectEnvs", params, headers=headers)
363
+ response = json.loads(body)
364
+ model = models.ModifyProjectEnvsResponse()
365
+ model._deserialize(response["Response"])
366
+ return model
367
+ except Exception as e:
368
+ if isinstance(e, TencentCloudSDKException):
369
+ raise
370
+ else:
371
+ raise TencentCloudSDKException(type(e).__name__, str(e))
372
+
373
+
374
+ def ModifyZoneCustomDomainEnv(self, request):
375
+ r"""把已绑定的自定义域名切到另一个环境。
376
+
377
+ :param request: Request instance for ModifyZoneCustomDomainEnv.
378
+ :type request: :class:`tencentcloud.makers.v20261113.models.ModifyZoneCustomDomainEnvRequest`
379
+ :rtype: :class:`tencentcloud.makers.v20261113.models.ModifyZoneCustomDomainEnvResponse`
380
+
381
+ """
382
+ try:
383
+ params = request._serialize()
384
+ headers = request.headers
385
+ body = self.call("ModifyZoneCustomDomainEnv", params, headers=headers)
386
+ response = json.loads(body)
387
+ model = models.ModifyZoneCustomDomainEnvResponse()
388
+ model._deserialize(response["Response"])
389
+ return model
390
+ except Exception as e:
391
+ if isinstance(e, TencentCloudSDKException):
392
+ raise
393
+ else:
394
+ raise TencentCloudSDKException(type(e).__name__, str(e))