tencentcloud-sdk-python-intl-en 3.0.1280__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 CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1280'
16
+ __version__ = '3.0.1281'
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))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1280
3
+ Version: 3.0.1281
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=YwqZrJIeRM2uWKgrAiMrJuS_bWgGDSffBSpDcRVyREo,630
1
+ tencentcloud/__init__.py,sha256=AYOT8LQGXHCEo8VDIs-6_fBze2btEcJLTyw5svXyd9w,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=PI6LX0PouoGb8e_ydQ9rATqY795jQh7JPK2COE_oH-Q,2899
@@ -469,6 +469,11 @@ tencentcloud/pts/v20210728/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
469
469
  tencentcloud/pts/v20210728/errorcodes.py,sha256=39x7PEVbIOUWHxLXDdZOY7jAUdfGs2DRxZBHy7Vcr00,2253
470
470
  tencentcloud/pts/v20210728/models.py,sha256=3053CQ6soN4lyt7IEJeflxqhRvwkx1hwnyNKCZTw3fM,409123
471
471
  tencentcloud/pts/v20210728/pts_client.py,sha256=hzy4uKlbt13m9XX5fY1xAHVa69saLPwvNXAoxd1LJaI,44068
472
+ tencentcloud/quota/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
473
+ tencentcloud/quota/v20241204/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
474
+ tencentcloud/quota/v20241204/errorcodes.py,sha256=ZasztYeoNpeGLP8OL1LDPRuXvtL0EpL5wV4cSrCOaG8,1187
475
+ tencentcloud/quota/v20241204/models.py,sha256=KJobEMRpgk0FA769sy1Tr8niEgQd1kqXqYrJ9zW7mGw,5034
476
+ tencentcloud/quota/v20241204/quota_client.py,sha256=zMONi78Kc3aCJK6OA1_uZ-89tiUzzTf5uSZq-QHHBGE,1818
472
477
  tencentcloud/rce/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
473
478
  tencentcloud/rce/v20201103/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
474
479
  tencentcloud/rce/v20201103/errorcodes.py,sha256=-rA5z1iTPCtgbH3isZetBCczbhBPAutWOZR59F6PoSU,4264
@@ -693,7 +698,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
693
698
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=g2ac3Fxgbof23WWhGj9VxvuLJZNshnB0Mg7jWUzTh24,3168
694
699
  tencentcloud/yunjing/v20180228/models.py,sha256=nivJxxJYNvW-I_WWuoZj5RJaexdeSctX04e7osSjSUo,331388
695
700
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=XYRY2x9Bs-06YaFx6swLlxuqhNRuykLZuIte6bc8T2E,67433
696
- tencentcloud_sdk_python_intl_en-3.0.1280.dist-info/METADATA,sha256=3N9arbZrb5eQxb-_v4oBjCTQqoMCf0tCMqUT1x9iaK0,1628
697
- tencentcloud_sdk_python_intl_en-3.0.1280.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
698
- tencentcloud_sdk_python_intl_en-3.0.1280.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
699
- tencentcloud_sdk_python_intl_en-3.0.1280.dist-info/RECORD,,
701
+ tencentcloud_sdk_python_intl_en-3.0.1281.dist-info/METADATA,sha256=J7yL9D9oauAlg5Z7RBSZ6hVbMgr-2QEsPBXHDwGT0RU,1628
702
+ tencentcloud_sdk_python_intl_en-3.0.1281.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
703
+ tencentcloud_sdk_python_intl_en-3.0.1281.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
704
+ tencentcloud_sdk_python_intl_en-3.0.1281.dist-info/RECORD,,