tencentcloud-sdk-python-intl-en 3.0.1279__py2.py3-none-any.whl → 3.0.1281__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apigateway/v20180808/errorcodes.py +0 -15
- tencentcloud/autoscaling/v20180419/errorcodes.py +0 -1
- tencentcloud/batch/v20170312/errorcodes.py +0 -1
- tencentcloud/cbs/v20170312/errorcodes.py +0 -2
- tencentcloud/cdb/v20170320/errorcodes.py +0 -1
- tencentcloud/cdn/v20180606/errorcodes.py +0 -2
- tencentcloud/cdz/__init__.py +0 -0
- tencentcloud/cdz/v20221123/__init__.py +0 -0
- tencentcloud/cdz/v20221123/cdz_client.py +49 -0
- tencentcloud/cdz/v20221123/errorcodes.py +18 -0
- tencentcloud/cdz/v20221123/models.py +412 -0
- tencentcloud/cfs/v20190719/errorcodes.py +0 -10
- tencentcloud/cloudaudit/v20190319/errorcodes.py +0 -4
- tencentcloud/csip/v20221121/errorcodes.py +0 -4
- tencentcloud/cvm/v20170312/errorcodes.py +0 -32
- tencentcloud/cynosdb/v20190107/errorcodes.py +0 -4
- tencentcloud/dbbrain/v20191016/errorcodes.py +0 -1
- tencentcloud/dbbrain/v20210527/errorcodes.py +0 -1
- tencentcloud/dnspod/v20210323/errorcodes.py +0 -4
- tencentcloud/dts/v20180330/errorcodes.py +0 -4
- tencentcloud/dts/v20211206/errorcodes.py +0 -1
- tencentcloud/eb/v20210416/errorcodes.py +0 -1
- tencentcloud/ecm/v20190719/errorcodes.py +0 -3
- tencentcloud/eiam/v20210420/errorcodes.py +0 -33
- tencentcloud/emr/v20190103/errorcodes.py +0 -1
- tencentcloud/es/v20180416/errorcodes.py +0 -16
- tencentcloud/faceid/v20180301/errorcodes.py +0 -1
- tencentcloud/faceid/v20180301/faceid_client.py +2 -2
- tencentcloud/faceid/v20180301/models.py +2 -4
- tencentcloud/iai/v20200303/errorcodes.py +0 -5
- tencentcloud/ims/v20201229/errorcodes.py +0 -3
- tencentcloud/intlpartnersmgt/v20220928/errorcodes.py +0 -2
- tencentcloud/lcic/v20220817/errorcodes.py +0 -1
- tencentcloud/lighthouse/v20200324/errorcodes.py +0 -8
- tencentcloud/live/v20180801/errorcodes.py +0 -7
- tencentcloud/lke/v20231130/errorcodes.py +0 -1
- tencentcloud/mdl/v20200326/errorcodes.py +0 -1
- tencentcloud/mdp/v20200527/errorcodes.py +0 -1
- tencentcloud/mps/v20190612/errorcodes.py +0 -2
- tencentcloud/mps/v20190612/models.py +2176 -371
- tencentcloud/mps/v20190612/mps_client.py +30 -23
- tencentcloud/ocr/v20181119/errorcodes.py +0 -2
- tencentcloud/organization/v20181225/errorcodes.py +0 -1
- tencentcloud/organization/v20210331/errorcodes.py +0 -1
- tencentcloud/privatedns/v20201028/errorcodes.py +0 -3
- tencentcloud/quota/__init__.py +0 -0
- tencentcloud/quota/v20241204/__init__.py +0 -0
- tencentcloud/quota/v20241204/errorcodes.py +33 -0
- tencentcloud/quota/v20241204/models.py +172 -0
- tencentcloud/quota/v20241204/quota_client.py +49 -0
- tencentcloud/scf/v20180416/errorcodes.py +0 -5
- tencentcloud/sms/v20190711/errorcodes.py +0 -1
- tencentcloud/sms/v20210111/errorcodes.py +0 -2
- tencentcloud/tag/v20180813/errorcodes.py +0 -1
- tencentcloud/tat/v20201028/errorcodes.py +0 -4
- tencentcloud/tcr/v20190924/errorcodes.py +0 -1
- tencentcloud/tdmq/v20200217/errorcodes.py +0 -1
- tencentcloud/tem/v20210701/errorcodes.py +0 -4
- tencentcloud/teo/v20220106/errorcodes.py +0 -2
- tencentcloud/teo/v20220901/errorcodes.py +0 -6
- tencentcloud/teo/v20220901/teo_client.py +3 -3
- tencentcloud/tiw/v20190919/errorcodes.py +0 -2
- tencentcloud/tke/v20180525/errorcodes.py +0 -1
- tencentcloud/tms/v20201229/errorcodes.py +0 -1
- tencentcloud/tmt/v20180321/errorcodes.py +0 -7
- tencentcloud/trtc/v20190722/errorcodes.py +0 -2
- tencentcloud/tts/v20190823/errorcodes.py +0 -1
- tencentcloud/vm/v20201229/errorcodes.py +0 -1
- tencentcloud/vm/v20210922/errorcodes.py +0 -1
- tencentcloud/vod/v20180717/errorcodes.py +0 -6
- tencentcloud/vpc/v20170312/errorcodes.py +0 -37
- {tencentcloud_sdk_python_intl_en-3.0.1279.dist-info → tencentcloud_sdk_python_intl_en-3.0.1281.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1279.dist-info → tencentcloud_sdk_python_intl_en-3.0.1281.dist-info}/RECORD +76 -66
- {tencentcloud_sdk_python_intl_en-3.0.1279.dist-info → tencentcloud_sdk_python_intl_en-3.0.1281.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1279.dist-info → tencentcloud_sdk_python_intl_en-3.0.1281.dist-info}/top_level.txt +0 -0
|
@@ -304,18 +304,23 @@ class MpsClient(AbstractClient):
|
|
|
304
304
|
|
|
305
305
|
|
|
306
306
|
def CreateSchedule(self, request):
|
|
307
|
-
r"""This API is used to
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
307
|
+
r"""This API is used to set processing rules for uploaded media files under the specified Bucket directory in COS, including:.
|
|
308
|
+
This API is used to transcode videos with watermarks.
|
|
309
|
+
This API is used to generate animated images.
|
|
310
|
+
This API is used to take screenshots at specified time points.
|
|
311
|
+
This API is used to take sampled screenshots from videos.
|
|
312
|
+
This API is used to take sprite screenshots of videos.
|
|
313
|
+
This API is used to transcode to adaptive bitrate streaming.
|
|
314
|
+
This API is used to perform intelligent content moderation, including porn detection and sensitive information detection.
|
|
315
|
+
This API is used to perform intelligent content analysis (tag, category, cover, frame tagging).
|
|
316
|
+
This API is used to perform intelligent content identification (human face, full text, text keyword, full speech, speech keyword).
|
|
317
|
+
10. Media quality inspection (live stream format diagnosis, audio and video content detection (jitter, blur, low light, overexposure, black and white edges, black and white screens, screen glitch, noise, mosaic, QR code, and more), and no-reference scoring).
|
|
318
|
+
|
|
319
|
+
11. Smart subtitle (full speech, speech hotword, and speech translation).
|
|
320
|
+
|
|
321
|
+
This API is used to perform intelligent erasure (watermark removal, subtitle removal, privacy protection).
|
|
317
322
|
|
|
318
|
-
|
|
323
|
+
This API is used to create an orchestration, which is in disable status by default and requires manual enablement.
|
|
319
324
|
|
|
320
325
|
:param request: Request instance for CreateSchedule.
|
|
321
326
|
:type request: :class:`tencentcloud.mps.v20190612.models.CreateScheduleRequest`
|
|
@@ -2151,18 +2156,20 @@ class MpsClient(AbstractClient):
|
|
|
2151
2156
|
|
|
2152
2157
|
|
|
2153
2158
|
def ProcessMedia(self, request):
|
|
2154
|
-
r"""This API is used to initiate a processing task for video
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
11. Smart subtitle (such as
|
|
2159
|
+
r"""This API is used to initiate a processing task for URL video links or media files in COS. Features include:.
|
|
2160
|
+
This API is used to perform video transcoding, including standard transcoding, TSC transcoding, and audio/video enhancement.
|
|
2161
|
+
This API is used to generate animated images.
|
|
2162
|
+
This API is used to take screenshots at specified time points.
|
|
2163
|
+
This API is used to take sampled screenshots from videos.
|
|
2164
|
+
This API is used to take sprite screenshots of videos.
|
|
2165
|
+
This API is used to transcode to adaptive bitrate streaming.
|
|
2166
|
+
This API is used to perform intelligent content moderation, such as pornography detection and sensitive information detection.
|
|
2167
|
+
This API is used to perform intelligent content analysis such as tag, category, cover, frame tag, video splitting, highlight, opening and ending clips, and game tracking.
|
|
2168
|
+
This API is used to perform intelligent content recognition such as human face, full text, text keyword, full speech, speech keyword, speech translation, and object recognition.
|
|
2169
|
+
This API is used to perform media quality inspection, such as media format diagnosis, audio and video content detection (jitter, blur, low light, overexposure, screen glitch, noise, mosaic, QR code, and other issues), and no-reference scoring.
|
|
2170
|
+
11. Smart subtitle (such as ASR, hotword, and speech translation).
|
|
2171
|
+
|
|
2172
|
+
This API is used to perform intelligent erasure (watermark removal, subtitle removal, privacy protection).
|
|
2166
2173
|
|
|
2167
2174
|
:param request: Request instance for ProcessMedia.
|
|
2168
2175
|
:type request: :class:`tencentcloud.mps.v20190612.models.ProcessMediaRequest`
|
|
@@ -27,7 +27,6 @@ FAILEDOPERATION_EMPTYIMAGEERROR = 'FailedOperation.EmptyImageError'
|
|
|
27
27
|
FAILEDOPERATION_ENGINERECOGNIZETIMEOUT = 'FailedOperation.EngineRecognizeTimeout'
|
|
28
28
|
|
|
29
29
|
# The field value does not meet expectations.
|
|
30
|
-
|
|
31
30
|
FAILEDOPERATION_FIELDEXCEPTION = 'FailedOperation.FieldException'
|
|
32
31
|
|
|
33
32
|
# The ID card information (ID number, name, etc.) is invalid.
|
|
@@ -58,7 +57,6 @@ FAILEDOPERATION_IMAGENOTEXT = 'FailedOperation.ImageNoText'
|
|
|
58
57
|
FAILEDOPERATION_IMAGESIZETOOLARGE = 'FailedOperation.ImageSizeTooLarge'
|
|
59
58
|
|
|
60
59
|
# The information in the visual zone does not match that in the machine-readable zone.
|
|
61
|
-
|
|
62
60
|
FAILEDOPERATION_INCONSISTENCYBETWEENMRZANDVRZ = 'FailedOperation.InconsistencyBetweenMRZAndVRZ'
|
|
63
61
|
|
|
64
62
|
# The input language is not supported.
|
|
@@ -48,7 +48,6 @@ FAILEDOPERATION_DATAERROR = 'FailedOperation.DataError'
|
|
|
48
48
|
FAILEDOPERATION_DELETELASTBINDVPCRECORDFAILED = 'FailedOperation.DeleteLastBindVpcRecordFailed'
|
|
49
49
|
|
|
50
50
|
# Record deletion failed.
|
|
51
|
-
|
|
52
51
|
FAILEDOPERATION_DELETERECORDFAILED = 'FailedOperation.DeleteRecordFailed'
|
|
53
52
|
|
|
54
53
|
# Failed to delete the endpoint.
|
|
@@ -73,7 +72,6 @@ FAILEDOPERATION_MODIFYRECORDFAILED = 'FailedOperation.ModifyRecordFailed'
|
|
|
73
72
|
FAILEDOPERATION_MODIFYZONEFAILED = 'FailedOperation.ModifyZoneFailed'
|
|
74
73
|
|
|
75
74
|
# Record update failed.
|
|
76
|
-
|
|
77
75
|
FAILEDOPERATION_UPDATERECORDFAILED = 'FailedOperation.UpdateRecordFailed'
|
|
78
76
|
|
|
79
77
|
# Internal error.
|
|
@@ -128,7 +126,6 @@ INVALIDPARAMETER_ILLEGALVPCINFO = 'InvalidParameter.IllegalVpcInfo'
|
|
|
128
126
|
INVALIDPARAMETER_INVALIDMX = 'InvalidParameter.InvalidMX'
|
|
129
127
|
|
|
130
128
|
# This record type does not support MX priority settings.
|
|
131
|
-
|
|
132
129
|
INVALIDPARAMETER_MXNOTSUPPORTED = 'InvalidParameter.MXNotSupported'
|
|
133
130
|
|
|
134
131
|
# The number of round-robin DNS AAAA records exceeds 50.
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
# Alarm rule does not exist.
|
|
18
|
+
RESOURCENOTFOUND_ALARMNOTEXIST = 'ResourceNotFound.AlarmNotExist'
|
|
19
|
+
|
|
20
|
+
# Member not in organization.
|
|
21
|
+
RESOURCENOTFOUND_MEMBERNOTEXIST = 'ResourceNotFound.MemberNotExist'
|
|
22
|
+
|
|
23
|
+
# Product is not exist.
|
|
24
|
+
RESOURCENOTFOUND_PRODUCTNOTEXIST = 'ResourceNotFound.ProductNotExist'
|
|
25
|
+
|
|
26
|
+
# UserQuota is not exist.
|
|
27
|
+
RESOURCENOTFOUND_USERQUOTANOTEXIST = 'ResourceNotFound.UserQuotaNotExist'
|
|
28
|
+
|
|
29
|
+
# Unauthorized operation.
|
|
30
|
+
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
31
|
+
|
|
32
|
+
# Alarm name is exist.
|
|
33
|
+
UNSUPPORTEDOPERATION_ALARMISEXIST = 'UnsupportedOperation.AlarmIsExist'
|
|
@@ -0,0 +1,172 @@
|
|
|
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 warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class CreateAlarmRequest(AbstractModel):
|
|
22
|
+
r"""CreateAlarm request structure.
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Name: Alarm rule name. specifies the name of the Alarm rule.
|
|
29
|
+
:type Name: str
|
|
30
|
+
:param _ProductId: Product ID.
|
|
31
|
+
:type ProductId: int
|
|
32
|
+
:param _QuotaId: Quota ID.
|
|
33
|
+
:type QuotaId: int
|
|
34
|
+
:param _Metrics: Alert metrics 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
|
|
35
|
+
:type Metrics: int
|
|
36
|
+
:param _Threshold: Specifies the Alarm threshold. value range: 0-100.
|
|
37
|
+
:type Threshold: int
|
|
38
|
+
:param _Frequency: Alarm frequency.
|
|
39
|
+
:type Frequency: int
|
|
40
|
+
:param _MemberUin: Member UIN
|
|
41
|
+
:type MemberUin: int
|
|
42
|
+
"""
|
|
43
|
+
self._Name = None
|
|
44
|
+
self._ProductId = None
|
|
45
|
+
self._QuotaId = None
|
|
46
|
+
self._Metrics = None
|
|
47
|
+
self._Threshold = None
|
|
48
|
+
self._Frequency = None
|
|
49
|
+
self._MemberUin = None
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def Name(self):
|
|
53
|
+
r"""Alarm rule name. specifies the name of the Alarm rule.
|
|
54
|
+
:rtype: str
|
|
55
|
+
"""
|
|
56
|
+
return self._Name
|
|
57
|
+
|
|
58
|
+
@Name.setter
|
|
59
|
+
def Name(self, Name):
|
|
60
|
+
self._Name = Name
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def ProductId(self):
|
|
64
|
+
r"""Product ID.
|
|
65
|
+
:rtype: int
|
|
66
|
+
"""
|
|
67
|
+
return self._ProductId
|
|
68
|
+
|
|
69
|
+
@ProductId.setter
|
|
70
|
+
def ProductId(self, ProductId):
|
|
71
|
+
self._ProductId = ProductId
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def QuotaId(self):
|
|
75
|
+
r"""Quota ID.
|
|
76
|
+
:rtype: int
|
|
77
|
+
"""
|
|
78
|
+
return self._QuotaId
|
|
79
|
+
|
|
80
|
+
@QuotaId.setter
|
|
81
|
+
def QuotaId(self, QuotaId):
|
|
82
|
+
self._QuotaId = QuotaId
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def Metrics(self):
|
|
86
|
+
r"""Alert metrics 1: quota usage 2: quota usage rate 3: remaining quota 4: remaining quota rate.
|
|
87
|
+
:rtype: int
|
|
88
|
+
"""
|
|
89
|
+
return self._Metrics
|
|
90
|
+
|
|
91
|
+
@Metrics.setter
|
|
92
|
+
def Metrics(self, Metrics):
|
|
93
|
+
self._Metrics = Metrics
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def Threshold(self):
|
|
97
|
+
r"""Specifies the Alarm threshold. value range: 0-100.
|
|
98
|
+
:rtype: int
|
|
99
|
+
"""
|
|
100
|
+
return self._Threshold
|
|
101
|
+
|
|
102
|
+
@Threshold.setter
|
|
103
|
+
def Threshold(self, Threshold):
|
|
104
|
+
self._Threshold = Threshold
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def Frequency(self):
|
|
108
|
+
r"""Alarm frequency.
|
|
109
|
+
:rtype: int
|
|
110
|
+
"""
|
|
111
|
+
return self._Frequency
|
|
112
|
+
|
|
113
|
+
@Frequency.setter
|
|
114
|
+
def Frequency(self, Frequency):
|
|
115
|
+
self._Frequency = Frequency
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def MemberUin(self):
|
|
119
|
+
r""" Member UIN
|
|
120
|
+
:rtype: int
|
|
121
|
+
"""
|
|
122
|
+
return self._MemberUin
|
|
123
|
+
|
|
124
|
+
@MemberUin.setter
|
|
125
|
+
def MemberUin(self, MemberUin):
|
|
126
|
+
self._MemberUin = MemberUin
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
def _deserialize(self, params):
|
|
130
|
+
self._Name = params.get("Name")
|
|
131
|
+
self._ProductId = params.get("ProductId")
|
|
132
|
+
self._QuotaId = params.get("QuotaId")
|
|
133
|
+
self._Metrics = params.get("Metrics")
|
|
134
|
+
self._Threshold = params.get("Threshold")
|
|
135
|
+
self._Frequency = params.get("Frequency")
|
|
136
|
+
self._MemberUin = params.get("MemberUin")
|
|
137
|
+
memeber_set = set(params.keys())
|
|
138
|
+
for name, value in vars(self).items():
|
|
139
|
+
property_name = name[1:]
|
|
140
|
+
if property_name in memeber_set:
|
|
141
|
+
memeber_set.remove(property_name)
|
|
142
|
+
if len(memeber_set) > 0:
|
|
143
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class CreateAlarmResponse(AbstractModel):
|
|
148
|
+
r"""CreateAlarm response structure.
|
|
149
|
+
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
def __init__(self):
|
|
153
|
+
r"""
|
|
154
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
155
|
+
:type RequestId: str
|
|
156
|
+
"""
|
|
157
|
+
self._RequestId = None
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def RequestId(self):
|
|
161
|
+
r"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
162
|
+
:rtype: str
|
|
163
|
+
"""
|
|
164
|
+
return self._RequestId
|
|
165
|
+
|
|
166
|
+
@RequestId.setter
|
|
167
|
+
def RequestId(self, RequestId):
|
|
168
|
+
self._RequestId = RequestId
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def _deserialize(self, params):
|
|
172
|
+
self._RequestId = params.get("RequestId")
|
|
@@ -0,0 +1,49 @@
|
|
|
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.quota.v20241204 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class QuotaClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2024-12-04'
|
|
25
|
+
_endpoint = 'quota.intl.tencentcloudapi.com'
|
|
26
|
+
_service = 'quota'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def CreateAlarm(self, request):
|
|
30
|
+
r"""Add alarm rules
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for CreateAlarm.
|
|
33
|
+
:type request: :class:`tencentcloud.quota.v20241204.models.CreateAlarmRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.quota.v20241204.models.CreateAlarmResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("CreateAlarm", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.CreateAlarmResponse()
|
|
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))
|
|
@@ -117,7 +117,6 @@ FAILEDOPERATION_PUBLISHLAYERVERSION = 'FailedOperation.PublishLayerVersion'
|
|
|
117
117
|
FAILEDOPERATION_PUBLISHVERSION = 'FailedOperation.PublishVersion'
|
|
118
118
|
|
|
119
119
|
# Query failed.
|
|
120
|
-
|
|
121
120
|
FAILEDOPERATION_QUERYERROR = 'FailedOperation.QueryError'
|
|
122
121
|
|
|
123
122
|
# The value of ReservedExceedTotal exceeds the limit.
|
|
@@ -481,7 +480,6 @@ LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = 'LimitExceeded.FunctionTo
|
|
|
481
480
|
LIMITEXCEEDED_LAYERVERSIONS = 'LimitExceeded.LayerVersions'
|
|
482
481
|
|
|
483
482
|
# The number of layers exceeds the maximum limit.
|
|
484
|
-
|
|
485
483
|
LIMITEXCEEDED_LAYERS = 'LimitExceeded.Layers'
|
|
486
484
|
|
|
487
485
|
# Reached the upper limit of dynamic scaling.
|
|
@@ -530,7 +528,6 @@ MISSINGPARAMETER = 'MissingParameter'
|
|
|
530
528
|
OPERATIONDENIED_ACCOUNTISOLATE = 'OperationDenied.AccountIsolate'
|
|
531
529
|
|
|
532
530
|
# Account does not exist.
|
|
533
|
-
|
|
534
531
|
OPERATIONDENIED_ACCOUNTNOTEXISTS = 'OperationDenied.AccountNotExists'
|
|
535
532
|
|
|
536
533
|
# The resource is in use.
|
|
@@ -678,7 +675,6 @@ UNSUPPORTEDOPERATION_ALIASBIND = 'UnsupportedOperation.AliasBind'
|
|
|
678
675
|
UNSUPPORTEDOPERATION_CDN = 'UnsupportedOperation.Cdn'
|
|
679
676
|
|
|
680
677
|
# The function cannot be copied.
|
|
681
|
-
|
|
682
678
|
UNSUPPORTEDOPERATION_COPYFUNCTION = 'UnsupportedOperation.CopyFunction'
|
|
683
679
|
|
|
684
680
|
# Cos operation is not supported.
|
|
@@ -691,7 +687,6 @@ UNSUPPORTEDOPERATION_EIPFIXED = 'UnsupportedOperation.EipFixed'
|
|
|
691
687
|
UNSUPPORTEDOPERATION_NOTSUPPORTREGION = 'UnsupportedOperation.NotSupportRegion'
|
|
692
688
|
|
|
693
689
|
# Cannot release the version in the current state.
|
|
694
|
-
|
|
695
690
|
UNSUPPORTEDOPERATION_PUBLISHVERSION = 'UnsupportedOperation.PublishVersion'
|
|
696
691
|
|
|
697
692
|
# This region is not supported.
|
|
@@ -69,7 +69,6 @@ INTERNALERROR_REQUESTTIMEEXCEPTION = 'InternalError.RequestTimeException'
|
|
|
69
69
|
INTERNALERROR_RESTAPIINTERFACENOTEXIST = 'InternalError.RestApiInterfaceNotExist'
|
|
70
70
|
|
|
71
71
|
# Service access has timed out,Please verify whether there are any network fluctuations or contact [Tencent Cloud SMS Assistant](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance.
|
|
72
|
-
|
|
73
72
|
INTERNALERROR_SENDANDRECVFAIL = 'InternalError.SendAndRecvFail'
|
|
74
73
|
|
|
75
74
|
# The request packet in the backend packet does not have a `Sig` field or the `Sig` field is empty.
|
|
@@ -108,7 +108,6 @@ INTERNALERROR_REQUESTTIMEEXCEPTION = 'InternalError.RequestTimeException'
|
|
|
108
108
|
INTERNALERROR_RESTAPIINTERFACENOTEXIST = 'InternalError.RestApiInterfaceNotExist'
|
|
109
109
|
|
|
110
110
|
# Service access has timed out,Please verify whether there are any network fluctuations or contact [Tencent Cloud SMS Assistant](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) for assistance.
|
|
111
|
-
|
|
112
111
|
INTERNALERROR_SENDANDRECVFAIL = 'InternalError.SendAndRecvFail'
|
|
113
112
|
|
|
114
113
|
# The request body in the backend body does not have a `Sig` field or the `Sig` field is empty.
|
|
@@ -268,7 +267,6 @@ UNAUTHORIZEDOPERATION_SERVICESUSPENDDUETOARREARS = 'UnauthorizedOperation.Servic
|
|
|
268
267
|
UNAUTHORIZEDOPERATION_SMSSDKAPPIDVERIFYFAIL = 'UnauthorizedOperation.SmsSdkAppIdVerifyFail'
|
|
269
268
|
|
|
270
269
|
# Operation not supported.
|
|
271
|
-
|
|
272
270
|
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
273
271
|
|
|
274
272
|
# The request is not supported.
|
|
@@ -24,7 +24,6 @@ AUTHFAILURE_UNAUTHORIZEDOPERATION = 'AuthFailure.UnauthorizedOperation'
|
|
|
24
24
|
FAILEDOPERATION = 'FailedOperation'
|
|
25
25
|
|
|
26
26
|
# Enforcement restrictions in the tag policy.
|
|
27
|
-
|
|
28
27
|
FAILEDOPERATION_POLICYENFORCEDINVALID = 'FailedOperation.PolicyEnforcedInvalid'
|
|
29
28
|
|
|
30
29
|
# Exceeding the project count limit.
|
|
@@ -165,7 +165,6 @@ RESOURCENOTFOUND_INVOCATIONNOTFOUND = 'ResourceNotFound.InvocationNotFound'
|
|
|
165
165
|
RESOURCENOTFOUND_ROLENOTFOUND = 'ResourceNotFound.RoleNotFound'
|
|
166
166
|
|
|
167
167
|
# Resource unavailable.
|
|
168
|
-
|
|
169
168
|
RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
|
170
169
|
|
|
171
170
|
# TAT Agent is not installed.
|
|
@@ -187,11 +186,9 @@ RESOURCEUNAVAILABLE_INSTANCESTATENOTRUNNING = 'ResourceUnavailable.InstanceState
|
|
|
187
186
|
RESOURCEUNAVAILABLE_LIGHTHOUSEUNSUPPORTEDREGION = 'ResourceUnavailable.LighthouseUnsupportedRegion'
|
|
188
187
|
|
|
189
188
|
# User quota exhausted.
|
|
190
|
-
|
|
191
189
|
RESOURCEUNAVAILABLE_USERHASNOQUOTACODE = 'ResourceUnavailable.UserHasNoQuotaCode'
|
|
192
190
|
|
|
193
191
|
# Role assumption unauthorized.
|
|
194
|
-
|
|
195
192
|
UNAUTHORIZEDOPERATION_ASSUMEROLEUNAUTHORIZED = 'UnauthorizedOperation.AssumeRoleUnauthorized'
|
|
196
193
|
|
|
197
194
|
# CAM authentication failed.
|
|
@@ -210,5 +207,4 @@ UNAUTHORIZEDOPERATION_MFANOTFOUND = 'UnauthorizedOperation.MFANotFound'
|
|
|
210
207
|
UNKNOWNPARAMETER = 'UnknownParameter'
|
|
211
208
|
|
|
212
209
|
# Operation not supported.
|
|
213
|
-
|
|
214
210
|
UNSUPPORTEDOPERATION = 'UnsupportedOperation'
|
|
@@ -150,7 +150,6 @@ RESOURCENOTFOUND_TCRRESOURCENOTFOUND = 'ResourceNotFound.TcrResourceNotFound'
|
|
|
150
150
|
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
151
151
|
|
|
152
152
|
# Unauthorized Operation
|
|
153
|
-
|
|
154
153
|
UNAUTHORIZEDOPERATION_ERRORTCRUNAUTHORIZED = 'UnauthorizedOperation.ErrorTcrUnauthorized'
|
|
155
154
|
|
|
156
155
|
# Unknown parameter error. Please check and try again.
|
|
@@ -183,7 +183,6 @@ INVALIDPARAMETER_TOKENNOTFOUND = 'InvalidParameter.TokenNotFound'
|
|
|
183
183
|
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
184
184
|
|
|
185
185
|
# At least one parameter must be provided.
|
|
186
|
-
|
|
187
186
|
INVALIDPARAMETERVALUE_ATLEASTONE = 'InvalidParameterValue.AtLeastOne'
|
|
188
187
|
|
|
189
188
|
# The cluster name already exists.
|
|
@@ -168,7 +168,6 @@ INVALIDPARAMETERVALUE_ATLEASTONESCALERRULESHOULDBEAPPLIED = 'InvalidParameterVal
|
|
|
168
168
|
INVALIDPARAMETERVALUE_AUTOSCALERLARGERTHANONE = 'InvalidParameterValue.AutoScalerLargerThanOne'
|
|
169
169
|
|
|
170
170
|
# The elastic rule name is invalid. Length must be less than 20 characters.
|
|
171
|
-
|
|
172
171
|
INVALIDPARAMETERVALUE_AUTOSCALERNAMEINVALID = 'InvalidParameterValue.AutoScalerNameInvalid'
|
|
173
172
|
|
|
174
173
|
# The access mode of other applications cannot be overwritten.
|
|
@@ -184,7 +183,6 @@ INVALIDPARAMETERVALUE_CONFIGDATAALREADYEXIST = 'InvalidParameterValue.ConfigData
|
|
|
184
183
|
INVALIDPARAMETERVALUE_CONFIGDATAINVALID = 'InvalidParameterValue.ConfigDataInvalid'
|
|
185
184
|
|
|
186
185
|
# createRegion parameter error.
|
|
187
|
-
|
|
188
186
|
INVALIDPARAMETERVALUE_CREATENAMESPACEUNSUPPORTREGIONERROR = 'InvalidParameterValue.CreateNamespaceUnsupportRegionError'
|
|
189
187
|
|
|
190
188
|
# The specified desired capacity of the scheduled action is incorrect.
|
|
@@ -272,7 +270,6 @@ INVALIDPARAMETERVALUE_PORTISRESERVED = 'InvalidParameterValue.PortIsReserved'
|
|
|
272
270
|
INVALIDPARAMETERVALUE_POSTSTARTNOTVALID = 'InvalidParameterValue.PostStartNotValid'
|
|
273
271
|
|
|
274
272
|
# Invalid pre stop.
|
|
275
|
-
|
|
276
273
|
INVALIDPARAMETERVALUE_PRESTOPNOTVALID = 'InvalidParameterValue.PreStopNotValid'
|
|
277
274
|
|
|
278
275
|
# Public image parameter error
|
|
@@ -354,7 +351,6 @@ MISSINGPARAMETER_NAMESPACEIDNULL = 'MissingParameter.NamespaceIdNull'
|
|
|
354
351
|
MISSINGPARAMETER_PKGNAMENULL = 'MissingParameter.PkgNameNull'
|
|
355
352
|
|
|
356
353
|
# The image repository server cannot be empty.
|
|
357
|
-
|
|
358
354
|
MISSINGPARAMETER_REPOSERVERNULL = 'MissingParameter.RepoServerNull'
|
|
359
355
|
|
|
360
356
|
# The scaling rule ID is missing.
|
|
@@ -75,7 +75,6 @@ INVALIDPARAMETER_INVALIDDYNAMICROUTINEBILLING = 'InvalidParameter.InvalidDynamic
|
|
|
75
75
|
INVALIDPARAMETER_INVALIDFILTERNAME = 'InvalidParameter.InvalidFilterName'
|
|
76
76
|
|
|
77
77
|
# Invalid enforced HTTPS redirect.
|
|
78
|
-
|
|
79
78
|
INVALIDPARAMETER_INVALIDFORCEREDIRECTTYPE = 'InvalidParameter.InvalidForceRedirectType'
|
|
80
79
|
|
|
81
80
|
# Invalid origin server.
|
|
@@ -142,7 +141,6 @@ INVALIDPARAMETERVALUE_INVALIDPROXYNAME = 'InvalidParameterValue.InvalidProxyName
|
|
|
142
141
|
INVALIDPARAMETERVALUE_INVALIDPROXYORIGIN = 'InvalidParameterValue.InvalidProxyOrigin'
|
|
143
142
|
|
|
144
143
|
# SRV record name incorrect.
|
|
145
|
-
|
|
146
144
|
INVALIDPARAMETERVALUE_INVALIDSRVNAME = 'InvalidParameterValue.InvalidSRVName'
|
|
147
145
|
|
|
148
146
|
# This record already exists.
|
|
@@ -318,7 +318,6 @@ INVALIDPARAMETER_ERRNILCONDITION = 'InvalidParameter.ErrNilCondition'
|
|
|
318
318
|
INVALIDPARAMETER_FUNCTIONNAMECONFLICT = 'InvalidParameter.FunctionNameConflict'
|
|
319
319
|
|
|
320
320
|
# GroupBy parameter exceeds the quantity limit.
|
|
321
|
-
|
|
322
321
|
INVALIDPARAMETER_GROUPBYLIMITEXCEEDED = 'InvalidParameter.GroupByLimitExceeded'
|
|
323
322
|
|
|
324
323
|
# To enable gRPC support, HTTP/2 support must be enabled as well.
|
|
@@ -436,7 +435,6 @@ INVALIDPARAMETER_INVALIDERRORPAGEREDIRECTURL = 'InvalidParameter.InvalidErrorPag
|
|
|
436
435
|
INVALIDPARAMETER_INVALIDFILTERNAME = 'InvalidParameter.InvalidFilterName'
|
|
437
436
|
|
|
438
437
|
# Invalid enforced HTTPS redirect.
|
|
439
|
-
|
|
440
438
|
INVALIDPARAMETER_INVALIDFORCEREDIRECTTYPE = 'InvalidParameter.InvalidForceRedirectType'
|
|
441
439
|
|
|
442
440
|
# Invalid parameter "https".
|
|
@@ -794,11 +792,9 @@ INVALIDPARAMETERVALUE_ALIASDOMAINNOTSUPPORTEDGEMTLS = 'InvalidParameterValue.Ali
|
|
|
794
792
|
INVALIDPARAMETERVALUE_ALIASDOMAINNOTSUPPORTUPSTREAMMTLS = 'InvalidParameterValue.AliasDomainNotSupportUpstreamMTLS'
|
|
795
793
|
|
|
796
794
|
# The client certificate in the edge mTLS configuration must be a CA certificate.
|
|
797
|
-
|
|
798
795
|
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTMUSTCA = 'InvalidParameterValue.CertificateVerifyClientMustCa'
|
|
799
796
|
|
|
800
797
|
# Edge mTLS configuration requires at least one certificate.
|
|
801
|
-
|
|
802
798
|
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYCLIENTNEEDCERT = 'InvalidParameterValue.CertificateVerifyClientNeedCert'
|
|
803
799
|
|
|
804
800
|
# Currently, only RSA or ECC algorithm certificates are supported for the origin-pull mutual authentication, and the SCA SM2 algorithm certificates are not supported.
|
|
@@ -811,7 +807,6 @@ INVALIDPARAMETERVALUE_CERTIFICATEVERIFYUPSTREAMCLIENTMUSTSVR = 'InvalidParameter
|
|
|
811
807
|
INVALIDPARAMETERVALUE_CERTIFICATEVERIFYUPSTREAMCLIENTNEEDCERT = 'InvalidParameterValue.CertificateVerifyUpstreamClientNeedCert'
|
|
812
808
|
|
|
813
809
|
# The client CA certificate in edge mTLS configuration allows a maximum of 20 certificates.
|
|
814
|
-
|
|
815
810
|
INVALIDPARAMETERVALUE_CLIENTCERTINFOQUOTALIMIT = 'InvalidParameterValue.ClientCertInfoQuotaLimit'
|
|
816
811
|
|
|
817
812
|
# It conflicts with existing records.
|
|
@@ -1319,7 +1314,6 @@ RESOURCEUNAVAILABLE_SHAREDCNAMEALREADYEXISTS = 'ResourceUnavailable.SharedCNAMEA
|
|
|
1319
1314
|
RESOURCEUNAVAILABLE_ZONENOTFOUND = 'ResourceUnavailable.ZoneNotFound'
|
|
1320
1315
|
|
|
1321
1316
|
# Resources are selling fast and currently sold out. Restocking is in progress, so new domains cannot be added at the moment. Please wait patiently.
|
|
1322
|
-
|
|
1323
1317
|
RESOURCESSOLDOUT_L7LACKOFRESOURCES = 'ResourcesSoldOut.L7LackOfResources'
|
|
1324
1318
|
|
|
1325
1319
|
# Unauthorized operation.
|
|
@@ -168,7 +168,7 @@ class TeoClient(AbstractClient):
|
|
|
168
168
|
|
|
169
169
|
def CreateAliasDomain(self, request):
|
|
170
170
|
r"""This API is used to create an alias domain name.
|
|
171
|
-
The feature is only supported by the enterprise plan and is currently in closed beta testing. If you need to use it, please [contact us](https://
|
|
171
|
+
The feature is only supported by the enterprise plan and is currently in closed beta testing. If you need to use it, please [contact us](https://www.tencentcloud.com/contact-us).
|
|
172
172
|
|
|
173
173
|
:param request: Request instance for CreateAliasDomain.
|
|
174
174
|
:type request: :class:`tencentcloud.teo.v20220901.models.CreateAliasDomainRequest`
|
|
@@ -492,7 +492,7 @@ class TeoClient(AbstractClient):
|
|
|
492
492
|
|
|
493
493
|
|
|
494
494
|
def CreateLoadBalancer(self, request):
|
|
495
|
-
r"""This API is used to create a LoadBalancer. For details, see [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The load balancing feature is in beta test. If you need to use it, [contact us](https://
|
|
495
|
+
r"""This API is used to create a LoadBalancer. For details, see [Quickly Create Load Balancers](https://intl.cloud.tencent.com/document/product/1552/104223?from_cn_redirect=1). The load balancing feature is in beta test. If you need to use it, [contact us](https://www.tencentcloud.com/contact-us).
|
|
496
496
|
|
|
497
497
|
:param request: Request instance for CreateLoadBalancer.
|
|
498
498
|
:type request: :class:`tencentcloud.teo.v20220901.models.CreateLoadBalancerRequest`
|
|
@@ -3409,7 +3409,7 @@ class TeoClient(AbstractClient):
|
|
|
3409
3409
|
|
|
3410
3410
|
def ModifyAliasDomainStatus(self, request):
|
|
3411
3411
|
r"""This API is used to modify the status of an alias domain name.
|
|
3412
|
-
The feature is only supported in the enterprise plan and is currently in closed beta testing. If you need to use it, [Contact Us](https://
|
|
3412
|
+
The feature is only supported in the enterprise plan and is currently in closed beta testing. If you need to use it, [Contact Us](https://www.tencentcloud.com/contact-us).
|
|
3413
3413
|
|
|
3414
3414
|
:param request: Request instance for ModifyAliasDomainStatus.
|
|
3415
3415
|
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyAliasDomainStatusRequest`
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
# CAM signature/authentication error.
|
|
18
|
-
|
|
19
18
|
AUTHFAILURE = 'AuthFailure'
|
|
20
19
|
|
|
21
20
|
# Operation failed.
|
|
@@ -82,7 +81,6 @@ INVALIDPARAMETER_INVALIDEXTRA = 'InvalidParameter.InvalidExtra'
|
|
|
82
81
|
INVALIDPARAMETER_INVALIDTASKTYPE = 'InvalidParameter.InvalidTaskType'
|
|
83
82
|
|
|
84
83
|
# The transcoding preprocessing parameter format is incorrect.
|
|
85
|
-
|
|
86
84
|
INVALIDPARAMETER_PREPROCESSPARAMETER = 'InvalidParameter.PreprocessParameter'
|
|
87
85
|
|
|
88
86
|
# The format of the real-time recording parameter is invalid.
|
|
@@ -141,7 +141,6 @@ FAILEDOPERATION_KUBERNETESCREATEOPERATIONERROR = 'FailedOperation.KubernetesCrea
|
|
|
141
141
|
FAILEDOPERATION_KUBERNETESDELETEOPERATIONERROR = 'FailedOperation.KubernetesDeleteOperationError'
|
|
142
142
|
|
|
143
143
|
# Failed to get Kubernetes resources.
|
|
144
|
-
|
|
145
144
|
FAILEDOPERATION_KUBERNETESGETOPERATIONERROR = 'FailedOperation.KubernetesGetOperationError'
|
|
146
145
|
|
|
147
146
|
# Unknown Kubernetes error.
|