tencentcloud-sdk-python-tcb 3.1.120__tar.gz → 3.1.123__tar.gz

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 (17) hide show
  1. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/tcb/v20180608/models.py +214 -4
  5. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/tcb/v20180608/tcb_client.py +23 -0
  6. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/tcb/v20180608/tcb_client_async.py +18 -0
  7. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tcb-3.1.123/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_tcb-3.1.120/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/tcb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.123}/tencentcloud_sdk_python_tcb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.120
3
+ Version: 3.1.123
4
4
  Summary: Tencent Cloud Tcb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.120
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.123
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-tcb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.120,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.123,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tcb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.120'
17
+ __version__ = '3.1.123'
@@ -8316,6 +8316,90 @@ class DescribeEnvLimitResponse(AbstractModel):
8316
8316
  self._RequestId = params.get("RequestId")
8317
8317
 
8318
8318
 
8319
+ class DescribeEnvPlansRequest(AbstractModel):
8320
+ r"""DescribeEnvPlans请求参数结构体
8321
+
8322
+ """
8323
+
8324
+ def __init__(self):
8325
+ r"""
8326
+ :param _PackageId: <p>套餐英文标识,不指定则返回所有可售卖套餐</p><p>枚举值:</p><ul><li>baas_integration: 集成版</li><li>baas_personal: 个人版</li><li>baas_pf_standard: 标准版</li><li>baas_pf_enterprise: 企业版</li><li>baas_pf_enterprise_senior: 企业高级版</li></ul>
8327
+ :type PackageId: str
8328
+ """
8329
+ self._PackageId = None
8330
+
8331
+ @property
8332
+ def PackageId(self):
8333
+ r"""<p>套餐英文标识,不指定则返回所有可售卖套餐</p><p>枚举值:</p><ul><li>baas_integration: 集成版</li><li>baas_personal: 个人版</li><li>baas_pf_standard: 标准版</li><li>baas_pf_enterprise: 企业版</li><li>baas_pf_enterprise_senior: 企业高级版</li></ul>
8334
+ :rtype: str
8335
+ """
8336
+ return self._PackageId
8337
+
8338
+ @PackageId.setter
8339
+ def PackageId(self, PackageId):
8340
+ self._PackageId = PackageId
8341
+
8342
+
8343
+ def _deserialize(self, params):
8344
+ self._PackageId = params.get("PackageId")
8345
+ memeber_set = set(params.keys())
8346
+ for name, value in vars(self).items():
8347
+ property_name = name[1:]
8348
+ if property_name in memeber_set:
8349
+ memeber_set.remove(property_name)
8350
+ if len(memeber_set) > 0:
8351
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8352
+
8353
+
8354
+
8355
+ class DescribeEnvPlansResponse(AbstractModel):
8356
+ r"""DescribeEnvPlans返回参数结构体
8357
+
8358
+ """
8359
+
8360
+ def __init__(self):
8361
+ r"""
8362
+ :param _PlanList: <p>云开发新套餐详情</p>
8363
+ :type PlanList: list of PlanInfo
8364
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8365
+ :type RequestId: str
8366
+ """
8367
+ self._PlanList = None
8368
+ self._RequestId = None
8369
+
8370
+ @property
8371
+ def PlanList(self):
8372
+ r"""<p>云开发新套餐详情</p>
8373
+ :rtype: list of PlanInfo
8374
+ """
8375
+ return self._PlanList
8376
+
8377
+ @PlanList.setter
8378
+ def PlanList(self, PlanList):
8379
+ self._PlanList = PlanList
8380
+
8381
+ @property
8382
+ def RequestId(self):
8383
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8384
+ :rtype: str
8385
+ """
8386
+ return self._RequestId
8387
+
8388
+ @RequestId.setter
8389
+ def RequestId(self, RequestId):
8390
+ self._RequestId = RequestId
8391
+
8392
+
8393
+ def _deserialize(self, params):
8394
+ if params.get("PlanList") is not None:
8395
+ self._PlanList = []
8396
+ for item in params.get("PlanList"):
8397
+ obj = PlanInfo()
8398
+ obj._deserialize(item)
8399
+ self._PlanList.append(obj)
8400
+ self._RequestId = params.get("RequestId")
8401
+
8402
+
8319
8403
  class DescribeEnvsRequest(AbstractModel):
8320
8404
  r"""DescribeEnvs请求参数结构体
8321
8405
 
@@ -17113,17 +17197,20 @@ class ModifyEnvRequest(AbstractModel):
17113
17197
 
17114
17198
  def __init__(self):
17115
17199
  r"""
17116
- :param _EnvId: 环境ID
17200
+ :param _EnvId: <p>环境ID</p>
17117
17201
  :type EnvId: str
17118
- :param _Alias: 环境备注名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符
17202
+ :param _Alias: <p>环境备注名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符</p>
17119
17203
  :type Alias: str
17204
+ :param _CustomQps: <p>按量计费QPS上限,大于套餐配额时生效。-1表示关闭QPS按量计费。</p>
17205
+ :type CustomQps: int
17120
17206
  """
17121
17207
  self._EnvId = None
17122
17208
  self._Alias = None
17209
+ self._CustomQps = None
17123
17210
 
17124
17211
  @property
17125
17212
  def EnvId(self):
17126
- r"""环境ID
17213
+ r"""<p>环境ID</p>
17127
17214
  :rtype: str
17128
17215
  """
17129
17216
  return self._EnvId
@@ -17134,7 +17221,7 @@ class ModifyEnvRequest(AbstractModel):
17134
17221
 
17135
17222
  @property
17136
17223
  def Alias(self):
17137
- r"""环境备注名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符
17224
+ r"""<p>环境备注名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符</p>
17138
17225
  :rtype: str
17139
17226
  """
17140
17227
  return self._Alias
@@ -17143,10 +17230,22 @@ class ModifyEnvRequest(AbstractModel):
17143
17230
  def Alias(self, Alias):
17144
17231
  self._Alias = Alias
17145
17232
 
17233
+ @property
17234
+ def CustomQps(self):
17235
+ r"""<p>按量计费QPS上限,大于套餐配额时生效。-1表示关闭QPS按量计费。</p>
17236
+ :rtype: int
17237
+ """
17238
+ return self._CustomQps
17239
+
17240
+ @CustomQps.setter
17241
+ def CustomQps(self, CustomQps):
17242
+ self._CustomQps = CustomQps
17243
+
17146
17244
 
17147
17245
  def _deserialize(self, params):
17148
17246
  self._EnvId = params.get("EnvId")
17149
17247
  self._Alias = params.get("Alias")
17248
+ self._CustomQps = params.get("CustomQps")
17150
17249
  memeber_set = set(params.keys())
17151
17250
  for name, value in vars(self).items():
17152
17251
  property_name = name[1:]
@@ -19164,6 +19263,117 @@ class PermissionInfo(AbstractModel):
19164
19263
 
19165
19264
 
19166
19265
 
19266
+ class PlanInfo(AbstractModel):
19267
+ r"""套餐信息
19268
+
19269
+ """
19270
+
19271
+ def __init__(self):
19272
+ r"""
19273
+ :param _PackageId: <p>套餐标识</p>
19274
+ :type PackageId: str
19275
+ :param _PackageTitle: <p>套餐中文名称</p>
19276
+ :type PackageTitle: str
19277
+ :param _PackageDescription: <p>套餐描述</p>
19278
+ :type PackageDescription: str
19279
+ :param _UnitPrice: <p>单位原价</p>
19280
+ :type UnitPrice: str
19281
+ :param _PackageType: <p>套餐类型</p>
19282
+ :type PackageType: str
19283
+ :param _ResourceLimit: <p>json格式化用户资源限制</p>
19284
+ :type ResourceLimit: str
19285
+ """
19286
+ self._PackageId = None
19287
+ self._PackageTitle = None
19288
+ self._PackageDescription = None
19289
+ self._UnitPrice = None
19290
+ self._PackageType = None
19291
+ self._ResourceLimit = None
19292
+
19293
+ @property
19294
+ def PackageId(self):
19295
+ r"""<p>套餐标识</p>
19296
+ :rtype: str
19297
+ """
19298
+ return self._PackageId
19299
+
19300
+ @PackageId.setter
19301
+ def PackageId(self, PackageId):
19302
+ self._PackageId = PackageId
19303
+
19304
+ @property
19305
+ def PackageTitle(self):
19306
+ r"""<p>套餐中文名称</p>
19307
+ :rtype: str
19308
+ """
19309
+ return self._PackageTitle
19310
+
19311
+ @PackageTitle.setter
19312
+ def PackageTitle(self, PackageTitle):
19313
+ self._PackageTitle = PackageTitle
19314
+
19315
+ @property
19316
+ def PackageDescription(self):
19317
+ r"""<p>套餐描述</p>
19318
+ :rtype: str
19319
+ """
19320
+ return self._PackageDescription
19321
+
19322
+ @PackageDescription.setter
19323
+ def PackageDescription(self, PackageDescription):
19324
+ self._PackageDescription = PackageDescription
19325
+
19326
+ @property
19327
+ def UnitPrice(self):
19328
+ r"""<p>单位原价</p>
19329
+ :rtype: str
19330
+ """
19331
+ return self._UnitPrice
19332
+
19333
+ @UnitPrice.setter
19334
+ def UnitPrice(self, UnitPrice):
19335
+ self._UnitPrice = UnitPrice
19336
+
19337
+ @property
19338
+ def PackageType(self):
19339
+ r"""<p>套餐类型</p>
19340
+ :rtype: str
19341
+ """
19342
+ return self._PackageType
19343
+
19344
+ @PackageType.setter
19345
+ def PackageType(self, PackageType):
19346
+ self._PackageType = PackageType
19347
+
19348
+ @property
19349
+ def ResourceLimit(self):
19350
+ r"""<p>json格式化用户资源限制</p>
19351
+ :rtype: str
19352
+ """
19353
+ return self._ResourceLimit
19354
+
19355
+ @ResourceLimit.setter
19356
+ def ResourceLimit(self, ResourceLimit):
19357
+ self._ResourceLimit = ResourceLimit
19358
+
19359
+
19360
+ def _deserialize(self, params):
19361
+ self._PackageId = params.get("PackageId")
19362
+ self._PackageTitle = params.get("PackageTitle")
19363
+ self._PackageDescription = params.get("PackageDescription")
19364
+ self._UnitPrice = params.get("UnitPrice")
19365
+ self._PackageType = params.get("PackageType")
19366
+ self._ResourceLimit = params.get("ResourceLimit")
19367
+ memeber_set = set(params.keys())
19368
+ for name, value in vars(self).items():
19369
+ property_name = name[1:]
19370
+ if property_name in memeber_set:
19371
+ memeber_set.remove(property_name)
19372
+ if len(memeber_set) > 0:
19373
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19374
+
19375
+
19376
+
19167
19377
  class PostgreSQLInfo(AbstractModel):
19168
19378
  r"""PostgreSQL资源信息结构体
19169
19379
 
@@ -1100,6 +1100,29 @@ class TcbClient(AbstractClient):
1100
1100
  raise TencentCloudSDKException(type(e).__name__, str(e))
1101
1101
 
1102
1102
 
1103
+ def DescribeEnvPlans(self, request):
1104
+ r"""获取可售卖的新套餐列表,含详情,如果传了PackageId,则只获取指定套餐详情
1105
+
1106
+ :param request: Request instance for DescribeEnvPlans.
1107
+ :type request: :class:`tencentcloud.tcb.v20180608.models.DescribeEnvPlansRequest`
1108
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.DescribeEnvPlansResponse`
1109
+
1110
+ """
1111
+ try:
1112
+ params = request._serialize()
1113
+ headers = request.headers
1114
+ body = self.call("DescribeEnvPlans", params, headers=headers)
1115
+ response = json.loads(body)
1116
+ model = models.DescribeEnvPlansResponse()
1117
+ model._deserialize(response["Response"])
1118
+ return model
1119
+ except Exception as e:
1120
+ if isinstance(e, TencentCloudSDKException):
1121
+ raise
1122
+ else:
1123
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1124
+
1125
+
1103
1126
  def DescribeEnvs(self, request):
1104
1127
  r"""获取环境列表,含环境下的各个资源信息。尤其是各资源的唯一标识,是请求各资源的关键参数
1105
1128
 
@@ -884,6 +884,24 @@ class TcbClient(AbstractClient):
884
884
 
885
885
  return await self.call_and_deserialize(**kwargs)
886
886
 
887
+ async def DescribeEnvPlans(
888
+ self,
889
+ request: models.DescribeEnvPlansRequest,
890
+ opts: Dict = None,
891
+ ) -> models.DescribeEnvPlansResponse:
892
+ """
893
+ 获取可售卖的新套餐列表,含详情,如果传了PackageId,则只获取指定套餐详情
894
+ """
895
+
896
+ kwargs = {}
897
+ kwargs["action"] = "DescribeEnvPlans"
898
+ kwargs["params"] = request._serialize()
899
+ kwargs["resp_cls"] = models.DescribeEnvPlansResponse
900
+ kwargs["headers"] = request.headers
901
+ kwargs["opts"] = opts or {}
902
+
903
+ return await self.call_and_deserialize(**kwargs)
904
+
887
905
  async def DescribeEnvs(
888
906
  self,
889
907
  request: models.DescribeEnvsRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.120
3
+ Version: 3.1.123
4
4
  Summary: Tencent Cloud Tcb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.120
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.123
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.123
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.120