tencentcloud-sdk-python-tcb 3.1.120__tar.gz → 3.1.122__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.122}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/tcb/v20180608/models.py +195 -0
  5. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/tcb/v20180608/tcb_client.py +23 -0
  6. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/tcb/v20180608/tcb_client_async.py +18 -0
  7. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_tcb-3.1.122/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.122}/README.rst +0 -0
  11. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/tcb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.120 → tencentcloud_sdk_python_tcb-3.1.122}/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.122}/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.122
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.122
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.122,<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.122'
@@ -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
 
@@ -19164,6 +19248,117 @@ class PermissionInfo(AbstractModel):
19164
19248
 
19165
19249
 
19166
19250
 
19251
+ class PlanInfo(AbstractModel):
19252
+ r"""套餐信息
19253
+
19254
+ """
19255
+
19256
+ def __init__(self):
19257
+ r"""
19258
+ :param _PackageId: <p>套餐标识</p>
19259
+ :type PackageId: str
19260
+ :param _PackageTitle: <p>套餐中文名称</p>
19261
+ :type PackageTitle: str
19262
+ :param _PackageDescription: <p>套餐描述</p>
19263
+ :type PackageDescription: str
19264
+ :param _UnitPrice: <p>单位原价</p>
19265
+ :type UnitPrice: str
19266
+ :param _PackageType: <p>套餐类型</p>
19267
+ :type PackageType: str
19268
+ :param _ResourceLimit: <p>json格式化用户资源限制</p>
19269
+ :type ResourceLimit: str
19270
+ """
19271
+ self._PackageId = None
19272
+ self._PackageTitle = None
19273
+ self._PackageDescription = None
19274
+ self._UnitPrice = None
19275
+ self._PackageType = None
19276
+ self._ResourceLimit = None
19277
+
19278
+ @property
19279
+ def PackageId(self):
19280
+ r"""<p>套餐标识</p>
19281
+ :rtype: str
19282
+ """
19283
+ return self._PackageId
19284
+
19285
+ @PackageId.setter
19286
+ def PackageId(self, PackageId):
19287
+ self._PackageId = PackageId
19288
+
19289
+ @property
19290
+ def PackageTitle(self):
19291
+ r"""<p>套餐中文名称</p>
19292
+ :rtype: str
19293
+ """
19294
+ return self._PackageTitle
19295
+
19296
+ @PackageTitle.setter
19297
+ def PackageTitle(self, PackageTitle):
19298
+ self._PackageTitle = PackageTitle
19299
+
19300
+ @property
19301
+ def PackageDescription(self):
19302
+ r"""<p>套餐描述</p>
19303
+ :rtype: str
19304
+ """
19305
+ return self._PackageDescription
19306
+
19307
+ @PackageDescription.setter
19308
+ def PackageDescription(self, PackageDescription):
19309
+ self._PackageDescription = PackageDescription
19310
+
19311
+ @property
19312
+ def UnitPrice(self):
19313
+ r"""<p>单位原价</p>
19314
+ :rtype: str
19315
+ """
19316
+ return self._UnitPrice
19317
+
19318
+ @UnitPrice.setter
19319
+ def UnitPrice(self, UnitPrice):
19320
+ self._UnitPrice = UnitPrice
19321
+
19322
+ @property
19323
+ def PackageType(self):
19324
+ r"""<p>套餐类型</p>
19325
+ :rtype: str
19326
+ """
19327
+ return self._PackageType
19328
+
19329
+ @PackageType.setter
19330
+ def PackageType(self, PackageType):
19331
+ self._PackageType = PackageType
19332
+
19333
+ @property
19334
+ def ResourceLimit(self):
19335
+ r"""<p>json格式化用户资源限制</p>
19336
+ :rtype: str
19337
+ """
19338
+ return self._ResourceLimit
19339
+
19340
+ @ResourceLimit.setter
19341
+ def ResourceLimit(self, ResourceLimit):
19342
+ self._ResourceLimit = ResourceLimit
19343
+
19344
+
19345
+ def _deserialize(self, params):
19346
+ self._PackageId = params.get("PackageId")
19347
+ self._PackageTitle = params.get("PackageTitle")
19348
+ self._PackageDescription = params.get("PackageDescription")
19349
+ self._UnitPrice = params.get("UnitPrice")
19350
+ self._PackageType = params.get("PackageType")
19351
+ self._ResourceLimit = params.get("ResourceLimit")
19352
+ memeber_set = set(params.keys())
19353
+ for name, value in vars(self).items():
19354
+ property_name = name[1:]
19355
+ if property_name in memeber_set:
19356
+ memeber_set.remove(property_name)
19357
+ if len(memeber_set) > 0:
19358
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19359
+
19360
+
19361
+
19167
19362
  class PostgreSQLInfo(AbstractModel):
19168
19363
  r"""PostgreSQL资源信息结构体
19169
19364
 
@@ -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.122
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.122
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.122
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.120