tencentcloud-sdk-python 3.0.1392__py2.py3-none-any.whl → 3.0.1393__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cfs/v20190719/cfs_client.py +2 -6
- tencentcloud/cfs/v20190719/models.py +4 -6
- tencentcloud/cme/v20191029/cme_client.py +0 -1
- tencentcloud/cme/v20191029/models.py +16 -0
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/models.py +85 -0
- tencentcloud/domain/v20180808/models.py +2 -2
- tencentcloud/emr/v20190103/errorcodes.py +9 -0
- tencentcloud/emr/v20190103/models.py +15 -0
- tencentcloud/es/v20250101/es_client.py +0 -23
- tencentcloud/es/v20250101/models.py +1 -352
- tencentcloud/ess/v20201111/models.py +18 -8
- tencentcloud/essbasic/v20210526/models.py +4 -4
- tencentcloud/gs/v20191118/gs_client.py +46 -0
- tencentcloud/gs/v20191118/models.py +269 -0
- tencentcloud/hai/v20230812/models.py +8 -14
- tencentcloud/lke/v20231130/errorcodes.py +0 -6
- tencentcloud/lke/v20231130/lke_client.py +0 -26
- tencentcloud/lke/v20231130/models.py +0 -229
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -5
- tencentcloud/monitor/v20180724/models.py +96 -2
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/mrs/v20200910/models.py +8 -0
- tencentcloud/mrs/v20200910/mrs_client.py +2 -0
- tencentcloud/postgres/v20170312/models.py +0 -405
- tencentcloud/postgres/v20170312/postgres_client.py +0 -25
- tencentcloud/pts/v20210728/models.py +30 -0
- tencentcloud/redis/v20180412/models.py +8 -8
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1393.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1393.dist-info}/RECORD +34 -34
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1393.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1393.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1393.dist-info}/top_level.txt +0 -0
@@ -14393,6 +14393,100 @@ class DescribeExporterIntegrationsResponse(AbstractModel):
|
|
14393
14393
|
self._RequestId = params.get("RequestId")
|
14394
14394
|
|
14395
14395
|
|
14396
|
+
class DescribeExternalClusterRegisterCommandRequest(AbstractModel):
|
14397
|
+
"""DescribeExternalClusterRegisterCommand请求参数结构体
|
14398
|
+
|
14399
|
+
"""
|
14400
|
+
|
14401
|
+
def __init__(self):
|
14402
|
+
r"""
|
14403
|
+
:param _InstanceId: 实例 ID
|
14404
|
+
:type InstanceId: str
|
14405
|
+
:param _ClusterId: 集群 ID
|
14406
|
+
:type ClusterId: str
|
14407
|
+
"""
|
14408
|
+
self._InstanceId = None
|
14409
|
+
self._ClusterId = None
|
14410
|
+
|
14411
|
+
@property
|
14412
|
+
def InstanceId(self):
|
14413
|
+
"""实例 ID
|
14414
|
+
:rtype: str
|
14415
|
+
"""
|
14416
|
+
return self._InstanceId
|
14417
|
+
|
14418
|
+
@InstanceId.setter
|
14419
|
+
def InstanceId(self, InstanceId):
|
14420
|
+
self._InstanceId = InstanceId
|
14421
|
+
|
14422
|
+
@property
|
14423
|
+
def ClusterId(self):
|
14424
|
+
"""集群 ID
|
14425
|
+
:rtype: str
|
14426
|
+
"""
|
14427
|
+
return self._ClusterId
|
14428
|
+
|
14429
|
+
@ClusterId.setter
|
14430
|
+
def ClusterId(self, ClusterId):
|
14431
|
+
self._ClusterId = ClusterId
|
14432
|
+
|
14433
|
+
|
14434
|
+
def _deserialize(self, params):
|
14435
|
+
self._InstanceId = params.get("InstanceId")
|
14436
|
+
self._ClusterId = params.get("ClusterId")
|
14437
|
+
memeber_set = set(params.keys())
|
14438
|
+
for name, value in vars(self).items():
|
14439
|
+
property_name = name[1:]
|
14440
|
+
if property_name in memeber_set:
|
14441
|
+
memeber_set.remove(property_name)
|
14442
|
+
if len(memeber_set) > 0:
|
14443
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
14444
|
+
|
14445
|
+
|
14446
|
+
|
14447
|
+
class DescribeExternalClusterRegisterCommandResponse(AbstractModel):
|
14448
|
+
"""DescribeExternalClusterRegisterCommand返回参数结构体
|
14449
|
+
|
14450
|
+
"""
|
14451
|
+
|
14452
|
+
def __init__(self):
|
14453
|
+
r"""
|
14454
|
+
:param _Command: 注册命令
|
14455
|
+
:type Command: str
|
14456
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
14457
|
+
:type RequestId: str
|
14458
|
+
"""
|
14459
|
+
self._Command = None
|
14460
|
+
self._RequestId = None
|
14461
|
+
|
14462
|
+
@property
|
14463
|
+
def Command(self):
|
14464
|
+
"""注册命令
|
14465
|
+
:rtype: str
|
14466
|
+
"""
|
14467
|
+
return self._Command
|
14468
|
+
|
14469
|
+
@Command.setter
|
14470
|
+
def Command(self, Command):
|
14471
|
+
self._Command = Command
|
14472
|
+
|
14473
|
+
@property
|
14474
|
+
def RequestId(self):
|
14475
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
14476
|
+
:rtype: str
|
14477
|
+
"""
|
14478
|
+
return self._RequestId
|
14479
|
+
|
14480
|
+
@RequestId.setter
|
14481
|
+
def RequestId(self, RequestId):
|
14482
|
+
self._RequestId = RequestId
|
14483
|
+
|
14484
|
+
|
14485
|
+
def _deserialize(self, params):
|
14486
|
+
self._Command = params.get("Command")
|
14487
|
+
self._RequestId = params.get("RequestId")
|
14488
|
+
|
14489
|
+
|
14396
14490
|
class DescribeGrafanaChannelsRequest(AbstractModel):
|
14397
14491
|
"""DescribeGrafanaChannels请求参数结构体
|
14398
14492
|
|
@@ -32714,7 +32808,7 @@ class PrometheusClusterAgentBasic(AbstractModel):
|
|
32714
32808
|
r"""
|
32715
32809
|
:param _Region: 地域
|
32716
32810
|
:type Region: str
|
32717
|
-
:param _ClusterType: 集群类型。可填入tke、eks、tkeedge、tdcc,分别代表标准集群、弹性集群、边缘集群、注册集群
|
32811
|
+
:param _ClusterType: 集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群
|
32718
32812
|
:type ClusterType: str
|
32719
32813
|
:param _ClusterId: 集群 ID
|
32720
32814
|
:type ClusterId: str
|
@@ -32757,7 +32851,7 @@ class PrometheusClusterAgentBasic(AbstractModel):
|
|
32757
32851
|
|
32758
32852
|
@property
|
32759
32853
|
def ClusterType(self):
|
32760
|
-
"""集群类型。可填入tke、eks、tkeedge、tdcc,分别代表标准集群、弹性集群、边缘集群、注册集群
|
32854
|
+
"""集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群
|
32761
32855
|
:rtype: str
|
32762
32856
|
"""
|
32763
32857
|
return self._ClusterType
|
@@ -1532,6 +1532,29 @@ class MonitorClient(AbstractClient):
|
|
1532
1532
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1533
1533
|
|
1534
1534
|
|
1535
|
+
def DescribeExternalClusterRegisterCommand(self, request):
|
1536
|
+
"""查看外部集群注册命令
|
1537
|
+
|
1538
|
+
:param request: Request instance for DescribeExternalClusterRegisterCommand.
|
1539
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.DescribeExternalClusterRegisterCommandRequest`
|
1540
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.DescribeExternalClusterRegisterCommandResponse`
|
1541
|
+
|
1542
|
+
"""
|
1543
|
+
try:
|
1544
|
+
params = request._serialize()
|
1545
|
+
headers = request.headers
|
1546
|
+
body = self.call("DescribeExternalClusterRegisterCommand", params, headers=headers)
|
1547
|
+
response = json.loads(body)
|
1548
|
+
model = models.DescribeExternalClusterRegisterCommandResponse()
|
1549
|
+
model._deserialize(response["Response"])
|
1550
|
+
return model
|
1551
|
+
except Exception as e:
|
1552
|
+
if isinstance(e, TencentCloudSDKException):
|
1553
|
+
raise
|
1554
|
+
else:
|
1555
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1556
|
+
|
1557
|
+
|
1535
1558
|
def DescribeGrafanaChannels(self, request):
|
1536
1559
|
"""列出 Grafana 所有告警通道
|
1537
1560
|
|
@@ -11642,6 +11642,8 @@ class ImageMaskAsyncGetResultRequest(AbstractModel):
|
|
11642
11642
|
def __init__(self):
|
11643
11643
|
r"""
|
11644
11644
|
:param _TaskID: 异步任务ID
|
11645
|
+
1.应上传图片TaskID 仅 24 小时内有效,请于提交任务获取TaskID后24小时内调用ImageMaskAsyncGetResult接口获取结果.
|
11646
|
+
2.建议在获取到TaskID 后,5-10分钟后再调用 ImageMaskAsyncGetResult 接口获取脱敏结果。
|
11645
11647
|
:type TaskID: str
|
11646
11648
|
"""
|
11647
11649
|
self._TaskID = None
|
@@ -11649,6 +11651,8 @@ class ImageMaskAsyncGetResultRequest(AbstractModel):
|
|
11649
11651
|
@property
|
11650
11652
|
def TaskID(self):
|
11651
11653
|
"""异步任务ID
|
11654
|
+
1.应上传图片TaskID 仅 24 小时内有效,请于提交任务获取TaskID后24小时内调用ImageMaskAsyncGetResult接口获取结果.
|
11655
|
+
2.建议在获取到TaskID 后,5-10分钟后再调用 ImageMaskAsyncGetResult 接口获取脱敏结果。
|
11652
11656
|
:rtype: str
|
11653
11657
|
"""
|
11654
11658
|
return self._TaskID
|
@@ -11791,6 +11795,8 @@ class ImageMaskAsyncResponse(AbstractModel):
|
|
11791
11795
|
def __init__(self):
|
11792
11796
|
r"""
|
11793
11797
|
:param _TaskID: 加密任务ID
|
11798
|
+
1.因此TaskID 仅 24 小时内有效,请于提交任务获取TaskID后24小时内调用ImageMaskAsyncGetResult接口获取结果.
|
11799
|
+
2.建议在获取到TaskID 后,5-10分钟后再调用 ImageMaskAsyncGetResult 接口获取脱敏结果。
|
11794
11800
|
:type TaskID: str
|
11795
11801
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11796
11802
|
:type RequestId: str
|
@@ -11801,6 +11807,8 @@ class ImageMaskAsyncResponse(AbstractModel):
|
|
11801
11807
|
@property
|
11802
11808
|
def TaskID(self):
|
11803
11809
|
"""加密任务ID
|
11810
|
+
1.因此TaskID 仅 24 小时内有效,请于提交任务获取TaskID后24小时内调用ImageMaskAsyncGetResult接口获取结果.
|
11811
|
+
2.建议在获取到TaskID 后,5-10分钟后再调用 ImageMaskAsyncGetResult 接口获取脱敏结果。
|
11804
11812
|
:rtype: str
|
11805
11813
|
"""
|
11806
11814
|
return self._TaskID
|
@@ -74,6 +74,7 @@ class MrsClient(AbstractClient):
|
|
74
74
|
|
75
75
|
def ImageMaskAsync(self, request):
|
76
76
|
"""图片脱敏-异步接口
|
77
|
+
短时间大批量调用(例如>100上传/10分钟),如果遇到错误码“FalledOperation.AsyncQueueFullError”,请于数分钟后再次尝试提交。
|
77
78
|
|
78
79
|
:param request: Request instance for ImageMaskAsync.
|
79
80
|
:type request: :class:`tencentcloud.mrs.v20200910.models.ImageMaskAsyncRequest`
|
@@ -97,6 +98,7 @@ class MrsClient(AbstractClient):
|
|
97
98
|
|
98
99
|
def ImageMaskAsyncGetResult(self, request):
|
99
100
|
"""图片脱敏-异步获取结果接口
|
101
|
+
请于上传请求后24小时内获取结果。
|
100
102
|
|
101
103
|
:param request: Request instance for ImageMaskAsyncGetResult.
|
102
104
|
:type request: :class:`tencentcloud.mrs.v20200910.models.ImageMaskAsyncGetResultRequest`
|
@@ -2218,411 +2218,6 @@ class CreateDBInstanceNetworkAccessResponse(AbstractModel):
|
|
2218
2218
|
self._RequestId = params.get("RequestId")
|
2219
2219
|
|
2220
2220
|
|
2221
|
-
class CreateDBInstancesRequest(AbstractModel):
|
2222
|
-
"""CreateDBInstances请求参数结构体
|
2223
|
-
|
2224
|
-
"""
|
2225
|
-
|
2226
|
-
def __init__(self):
|
2227
|
-
r"""
|
2228
|
-
:param _SpecCode: 售卖规格ID。该参数可以通过调用DescribeClasses的返回值中的SpecCode字段来获取。
|
2229
|
-
:type SpecCode: str
|
2230
|
-
:param _Storage: 实例容量大小,单位:GB。
|
2231
|
-
:type Storage: int
|
2232
|
-
:param _InstanceCount: 一次性购买的实例数量。取值1-100
|
2233
|
-
:type InstanceCount: int
|
2234
|
-
:param _Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
|
2235
|
-
:type Period: int
|
2236
|
-
:param _Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
|
2237
|
-
:type Zone: str
|
2238
|
-
:param _ProjectId: 项目ID。
|
2239
|
-
:type ProjectId: int
|
2240
|
-
:param _DBVersion: PostgreSQL社区大版本+小版本号。
|
2241
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。
|
2242
|
-
:type DBVersion: str
|
2243
|
-
:param _InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。默认值:PREPAID。
|
2244
|
-
:type InstanceChargeType: str
|
2245
|
-
:param _AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
|
2246
|
-
:type AutoVoucher: int
|
2247
|
-
:param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
|
2248
|
-
:type VoucherIds: list of str
|
2249
|
-
:param _VpcId: 私有网络ID。
|
2250
|
-
:type VpcId: str
|
2251
|
-
:param _SubnetId: 私有网络子网ID。
|
2252
|
-
:type SubnetId: str
|
2253
|
-
:param _AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费;
|
2254
|
-
:type AutoRenewFlag: int
|
2255
|
-
:param _ActivityId: 活动ID
|
2256
|
-
:type ActivityId: int
|
2257
|
-
:param _Name: 实例名(后续支持)
|
2258
|
-
:type Name: str
|
2259
|
-
:param _NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否
|
2260
|
-
:type NeedSupportIpv6: int
|
2261
|
-
:param _TagList: 实例需要绑定的Tag信息,默认为空
|
2262
|
-
:type TagList: list of Tag
|
2263
|
-
:param _SecurityGroupIds: 安全组id
|
2264
|
-
:type SecurityGroupIds: list of str
|
2265
|
-
:param _DBMajorVersion: PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。
|
2266
|
-
输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
2267
|
-
:type DBMajorVersion: str
|
2268
|
-
:param _DBKernelVersion: PostgreSQL内核版本号。
|
2269
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
2270
|
-
:type DBKernelVersion: str
|
2271
|
-
"""
|
2272
|
-
self._SpecCode = None
|
2273
|
-
self._Storage = None
|
2274
|
-
self._InstanceCount = None
|
2275
|
-
self._Period = None
|
2276
|
-
self._Zone = None
|
2277
|
-
self._ProjectId = None
|
2278
|
-
self._DBVersion = None
|
2279
|
-
self._InstanceChargeType = None
|
2280
|
-
self._AutoVoucher = None
|
2281
|
-
self._VoucherIds = None
|
2282
|
-
self._VpcId = None
|
2283
|
-
self._SubnetId = None
|
2284
|
-
self._AutoRenewFlag = None
|
2285
|
-
self._ActivityId = None
|
2286
|
-
self._Name = None
|
2287
|
-
self._NeedSupportIpv6 = None
|
2288
|
-
self._TagList = None
|
2289
|
-
self._SecurityGroupIds = None
|
2290
|
-
self._DBMajorVersion = None
|
2291
|
-
self._DBKernelVersion = None
|
2292
|
-
|
2293
|
-
@property
|
2294
|
-
def SpecCode(self):
|
2295
|
-
"""售卖规格ID。该参数可以通过调用DescribeClasses的返回值中的SpecCode字段来获取。
|
2296
|
-
:rtype: str
|
2297
|
-
"""
|
2298
|
-
return self._SpecCode
|
2299
|
-
|
2300
|
-
@SpecCode.setter
|
2301
|
-
def SpecCode(self, SpecCode):
|
2302
|
-
self._SpecCode = SpecCode
|
2303
|
-
|
2304
|
-
@property
|
2305
|
-
def Storage(self):
|
2306
|
-
"""实例容量大小,单位:GB。
|
2307
|
-
:rtype: int
|
2308
|
-
"""
|
2309
|
-
return self._Storage
|
2310
|
-
|
2311
|
-
@Storage.setter
|
2312
|
-
def Storage(self, Storage):
|
2313
|
-
self._Storage = Storage
|
2314
|
-
|
2315
|
-
@property
|
2316
|
-
def InstanceCount(self):
|
2317
|
-
"""一次性购买的实例数量。取值1-100
|
2318
|
-
:rtype: int
|
2319
|
-
"""
|
2320
|
-
return self._InstanceCount
|
2321
|
-
|
2322
|
-
@InstanceCount.setter
|
2323
|
-
def InstanceCount(self, InstanceCount):
|
2324
|
-
self._InstanceCount = InstanceCount
|
2325
|
-
|
2326
|
-
@property
|
2327
|
-
def Period(self):
|
2328
|
-
"""购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
|
2329
|
-
:rtype: int
|
2330
|
-
"""
|
2331
|
-
return self._Period
|
2332
|
-
|
2333
|
-
@Period.setter
|
2334
|
-
def Period(self, Period):
|
2335
|
-
self._Period = Period
|
2336
|
-
|
2337
|
-
@property
|
2338
|
-
def Zone(self):
|
2339
|
-
"""可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
|
2340
|
-
:rtype: str
|
2341
|
-
"""
|
2342
|
-
return self._Zone
|
2343
|
-
|
2344
|
-
@Zone.setter
|
2345
|
-
def Zone(self, Zone):
|
2346
|
-
self._Zone = Zone
|
2347
|
-
|
2348
|
-
@property
|
2349
|
-
def ProjectId(self):
|
2350
|
-
"""项目ID。
|
2351
|
-
:rtype: int
|
2352
|
-
"""
|
2353
|
-
return self._ProjectId
|
2354
|
-
|
2355
|
-
@ProjectId.setter
|
2356
|
-
def ProjectId(self, ProjectId):
|
2357
|
-
self._ProjectId = ProjectId
|
2358
|
-
|
2359
|
-
@property
|
2360
|
-
def DBVersion(self):
|
2361
|
-
"""PostgreSQL社区大版本+小版本号。
|
2362
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。
|
2363
|
-
:rtype: str
|
2364
|
-
"""
|
2365
|
-
return self._DBVersion
|
2366
|
-
|
2367
|
-
@DBVersion.setter
|
2368
|
-
def DBVersion(self, DBVersion):
|
2369
|
-
self._DBVersion = DBVersion
|
2370
|
-
|
2371
|
-
@property
|
2372
|
-
def InstanceChargeType(self):
|
2373
|
-
"""实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。默认值:PREPAID。
|
2374
|
-
:rtype: str
|
2375
|
-
"""
|
2376
|
-
return self._InstanceChargeType
|
2377
|
-
|
2378
|
-
@InstanceChargeType.setter
|
2379
|
-
def InstanceChargeType(self, InstanceChargeType):
|
2380
|
-
self._InstanceChargeType = InstanceChargeType
|
2381
|
-
|
2382
|
-
@property
|
2383
|
-
def AutoVoucher(self):
|
2384
|
-
"""是否自动使用代金券。1(是),0(否),默认不使用。
|
2385
|
-
:rtype: int
|
2386
|
-
"""
|
2387
|
-
return self._AutoVoucher
|
2388
|
-
|
2389
|
-
@AutoVoucher.setter
|
2390
|
-
def AutoVoucher(self, AutoVoucher):
|
2391
|
-
self._AutoVoucher = AutoVoucher
|
2392
|
-
|
2393
|
-
@property
|
2394
|
-
def VoucherIds(self):
|
2395
|
-
"""代金券ID列表,目前仅支持指定一张代金券。
|
2396
|
-
:rtype: list of str
|
2397
|
-
"""
|
2398
|
-
return self._VoucherIds
|
2399
|
-
|
2400
|
-
@VoucherIds.setter
|
2401
|
-
def VoucherIds(self, VoucherIds):
|
2402
|
-
self._VoucherIds = VoucherIds
|
2403
|
-
|
2404
|
-
@property
|
2405
|
-
def VpcId(self):
|
2406
|
-
"""私有网络ID。
|
2407
|
-
:rtype: str
|
2408
|
-
"""
|
2409
|
-
return self._VpcId
|
2410
|
-
|
2411
|
-
@VpcId.setter
|
2412
|
-
def VpcId(self, VpcId):
|
2413
|
-
self._VpcId = VpcId
|
2414
|
-
|
2415
|
-
@property
|
2416
|
-
def SubnetId(self):
|
2417
|
-
"""私有网络子网ID。
|
2418
|
-
:rtype: str
|
2419
|
-
"""
|
2420
|
-
return self._SubnetId
|
2421
|
-
|
2422
|
-
@SubnetId.setter
|
2423
|
-
def SubnetId(self, SubnetId):
|
2424
|
-
self._SubnetId = SubnetId
|
2425
|
-
|
2426
|
-
@property
|
2427
|
-
def AutoRenewFlag(self):
|
2428
|
-
"""续费标记:0-正常续费(默认);1-自动续费;
|
2429
|
-
:rtype: int
|
2430
|
-
"""
|
2431
|
-
return self._AutoRenewFlag
|
2432
|
-
|
2433
|
-
@AutoRenewFlag.setter
|
2434
|
-
def AutoRenewFlag(self, AutoRenewFlag):
|
2435
|
-
self._AutoRenewFlag = AutoRenewFlag
|
2436
|
-
|
2437
|
-
@property
|
2438
|
-
def ActivityId(self):
|
2439
|
-
"""活动ID
|
2440
|
-
:rtype: int
|
2441
|
-
"""
|
2442
|
-
return self._ActivityId
|
2443
|
-
|
2444
|
-
@ActivityId.setter
|
2445
|
-
def ActivityId(self, ActivityId):
|
2446
|
-
self._ActivityId = ActivityId
|
2447
|
-
|
2448
|
-
@property
|
2449
|
-
def Name(self):
|
2450
|
-
"""实例名(后续支持)
|
2451
|
-
:rtype: str
|
2452
|
-
"""
|
2453
|
-
return self._Name
|
2454
|
-
|
2455
|
-
@Name.setter
|
2456
|
-
def Name(self, Name):
|
2457
|
-
self._Name = Name
|
2458
|
-
|
2459
|
-
@property
|
2460
|
-
def NeedSupportIpv6(self):
|
2461
|
-
"""是否需要支持Ipv6,1:是,0:否
|
2462
|
-
:rtype: int
|
2463
|
-
"""
|
2464
|
-
return self._NeedSupportIpv6
|
2465
|
-
|
2466
|
-
@NeedSupportIpv6.setter
|
2467
|
-
def NeedSupportIpv6(self, NeedSupportIpv6):
|
2468
|
-
self._NeedSupportIpv6 = NeedSupportIpv6
|
2469
|
-
|
2470
|
-
@property
|
2471
|
-
def TagList(self):
|
2472
|
-
"""实例需要绑定的Tag信息,默认为空
|
2473
|
-
:rtype: list of Tag
|
2474
|
-
"""
|
2475
|
-
return self._TagList
|
2476
|
-
|
2477
|
-
@TagList.setter
|
2478
|
-
def TagList(self, TagList):
|
2479
|
-
self._TagList = TagList
|
2480
|
-
|
2481
|
-
@property
|
2482
|
-
def SecurityGroupIds(self):
|
2483
|
-
"""安全组id
|
2484
|
-
:rtype: list of str
|
2485
|
-
"""
|
2486
|
-
return self._SecurityGroupIds
|
2487
|
-
|
2488
|
-
@SecurityGroupIds.setter
|
2489
|
-
def SecurityGroupIds(self, SecurityGroupIds):
|
2490
|
-
self._SecurityGroupIds = SecurityGroupIds
|
2491
|
-
|
2492
|
-
@property
|
2493
|
-
def DBMajorVersion(self):
|
2494
|
-
"""PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。
|
2495
|
-
输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
2496
|
-
:rtype: str
|
2497
|
-
"""
|
2498
|
-
return self._DBMajorVersion
|
2499
|
-
|
2500
|
-
@DBMajorVersion.setter
|
2501
|
-
def DBMajorVersion(self, DBMajorVersion):
|
2502
|
-
self._DBMajorVersion = DBMajorVersion
|
2503
|
-
|
2504
|
-
@property
|
2505
|
-
def DBKernelVersion(self):
|
2506
|
-
"""PostgreSQL内核版本号。
|
2507
|
-
一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
2508
|
-
:rtype: str
|
2509
|
-
"""
|
2510
|
-
return self._DBKernelVersion
|
2511
|
-
|
2512
|
-
@DBKernelVersion.setter
|
2513
|
-
def DBKernelVersion(self, DBKernelVersion):
|
2514
|
-
self._DBKernelVersion = DBKernelVersion
|
2515
|
-
|
2516
|
-
|
2517
|
-
def _deserialize(self, params):
|
2518
|
-
self._SpecCode = params.get("SpecCode")
|
2519
|
-
self._Storage = params.get("Storage")
|
2520
|
-
self._InstanceCount = params.get("InstanceCount")
|
2521
|
-
self._Period = params.get("Period")
|
2522
|
-
self._Zone = params.get("Zone")
|
2523
|
-
self._ProjectId = params.get("ProjectId")
|
2524
|
-
self._DBVersion = params.get("DBVersion")
|
2525
|
-
self._InstanceChargeType = params.get("InstanceChargeType")
|
2526
|
-
self._AutoVoucher = params.get("AutoVoucher")
|
2527
|
-
self._VoucherIds = params.get("VoucherIds")
|
2528
|
-
self._VpcId = params.get("VpcId")
|
2529
|
-
self._SubnetId = params.get("SubnetId")
|
2530
|
-
self._AutoRenewFlag = params.get("AutoRenewFlag")
|
2531
|
-
self._ActivityId = params.get("ActivityId")
|
2532
|
-
self._Name = params.get("Name")
|
2533
|
-
self._NeedSupportIpv6 = params.get("NeedSupportIpv6")
|
2534
|
-
if params.get("TagList") is not None:
|
2535
|
-
self._TagList = []
|
2536
|
-
for item in params.get("TagList"):
|
2537
|
-
obj = Tag()
|
2538
|
-
obj._deserialize(item)
|
2539
|
-
self._TagList.append(obj)
|
2540
|
-
self._SecurityGroupIds = params.get("SecurityGroupIds")
|
2541
|
-
self._DBMajorVersion = params.get("DBMajorVersion")
|
2542
|
-
self._DBKernelVersion = params.get("DBKernelVersion")
|
2543
|
-
memeber_set = set(params.keys())
|
2544
|
-
for name, value in vars(self).items():
|
2545
|
-
property_name = name[1:]
|
2546
|
-
if property_name in memeber_set:
|
2547
|
-
memeber_set.remove(property_name)
|
2548
|
-
if len(memeber_set) > 0:
|
2549
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
class CreateDBInstancesResponse(AbstractModel):
|
2554
|
-
"""CreateDBInstances返回参数结构体
|
2555
|
-
|
2556
|
-
"""
|
2557
|
-
|
2558
|
-
def __init__(self):
|
2559
|
-
r"""
|
2560
|
-
:param _DealNames: 订单号列表。每个实例对应一个订单号。
|
2561
|
-
:type DealNames: list of str
|
2562
|
-
:param _BillId: 冻结流水号
|
2563
|
-
:type BillId: str
|
2564
|
-
:param _DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值
|
2565
|
-
:type DBInstanceIdSet: list of str
|
2566
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2567
|
-
:type RequestId: str
|
2568
|
-
"""
|
2569
|
-
self._DealNames = None
|
2570
|
-
self._BillId = None
|
2571
|
-
self._DBInstanceIdSet = None
|
2572
|
-
self._RequestId = None
|
2573
|
-
|
2574
|
-
@property
|
2575
|
-
def DealNames(self):
|
2576
|
-
"""订单号列表。每个实例对应一个订单号。
|
2577
|
-
:rtype: list of str
|
2578
|
-
"""
|
2579
|
-
return self._DealNames
|
2580
|
-
|
2581
|
-
@DealNames.setter
|
2582
|
-
def DealNames(self, DealNames):
|
2583
|
-
self._DealNames = DealNames
|
2584
|
-
|
2585
|
-
@property
|
2586
|
-
def BillId(self):
|
2587
|
-
"""冻结流水号
|
2588
|
-
:rtype: str
|
2589
|
-
"""
|
2590
|
-
return self._BillId
|
2591
|
-
|
2592
|
-
@BillId.setter
|
2593
|
-
def BillId(self, BillId):
|
2594
|
-
self._BillId = BillId
|
2595
|
-
|
2596
|
-
@property
|
2597
|
-
def DBInstanceIdSet(self):
|
2598
|
-
"""创建成功的实例ID集合,只在后付费情景下有返回值
|
2599
|
-
:rtype: list of str
|
2600
|
-
"""
|
2601
|
-
return self._DBInstanceIdSet
|
2602
|
-
|
2603
|
-
@DBInstanceIdSet.setter
|
2604
|
-
def DBInstanceIdSet(self, DBInstanceIdSet):
|
2605
|
-
self._DBInstanceIdSet = DBInstanceIdSet
|
2606
|
-
|
2607
|
-
@property
|
2608
|
-
def RequestId(self):
|
2609
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2610
|
-
:rtype: str
|
2611
|
-
"""
|
2612
|
-
return self._RequestId
|
2613
|
-
|
2614
|
-
@RequestId.setter
|
2615
|
-
def RequestId(self, RequestId):
|
2616
|
-
self._RequestId = RequestId
|
2617
|
-
|
2618
|
-
|
2619
|
-
def _deserialize(self, params):
|
2620
|
-
self._DealNames = params.get("DealNames")
|
2621
|
-
self._BillId = params.get("BillId")
|
2622
|
-
self._DBInstanceIdSet = params.get("DBInstanceIdSet")
|
2623
|
-
self._RequestId = params.get("RequestId")
|
2624
|
-
|
2625
|
-
|
2626
2221
|
class CreateDatabaseRequest(AbstractModel):
|
2627
2222
|
"""CreateDatabase请求参数结构体
|
2628
2223
|
|
@@ -187,31 +187,6 @@ class PostgresClient(AbstractClient):
|
|
187
187
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
188
188
|
|
189
189
|
|
190
|
-
def CreateDBInstances(self, request):
|
191
|
-
"""早期接口,不规范,已提供新接口 CreateInstances 替换
|
192
|
-
|
193
|
-
本接口(CreateDBInstances)用于创建一个或者多个PostgreSQL实例,仅发货实例不会进行初始化。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
|
194
|
-
|
195
|
-
:param request: Request instance for CreateDBInstances.
|
196
|
-
:type request: :class:`tencentcloud.postgres.v20170312.models.CreateDBInstancesRequest`
|
197
|
-
:rtype: :class:`tencentcloud.postgres.v20170312.models.CreateDBInstancesResponse`
|
198
|
-
|
199
|
-
"""
|
200
|
-
try:
|
201
|
-
params = request._serialize()
|
202
|
-
headers = request.headers
|
203
|
-
body = self.call("CreateDBInstances", params, headers=headers)
|
204
|
-
response = json.loads(body)
|
205
|
-
model = models.CreateDBInstancesResponse()
|
206
|
-
model._deserialize(response["Response"])
|
207
|
-
return model
|
208
|
-
except Exception as e:
|
209
|
-
if isinstance(e, TencentCloudSDKException):
|
210
|
-
raise
|
211
|
-
else:
|
212
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
213
|
-
|
214
|
-
|
215
190
|
def CreateDatabase(self, request):
|
216
191
|
"""此接口用于创建数据库,需指定数据库名及所有者。
|
217
192
|
|
@@ -217,9 +217,15 @@ class AdjustJobSpeedRequest(AbstractModel):
|
|
217
217
|
:type JobId: str
|
218
218
|
:param _TargetRequestsPerSecond: 目标 RPS。其取值应大于起始 RPS,并且小于最大 RPS
|
219
219
|
:type TargetRequestsPerSecond: int
|
220
|
+
:param _ProjectId: 压测项目ID
|
221
|
+
:type ProjectId: str
|
222
|
+
:param _ScenarioId: 测试场景ID
|
223
|
+
:type ScenarioId: str
|
220
224
|
"""
|
221
225
|
self._JobId = None
|
222
226
|
self._TargetRequestsPerSecond = None
|
227
|
+
self._ProjectId = None
|
228
|
+
self._ScenarioId = None
|
223
229
|
|
224
230
|
@property
|
225
231
|
def JobId(self):
|
@@ -243,10 +249,34 @@ class AdjustJobSpeedRequest(AbstractModel):
|
|
243
249
|
def TargetRequestsPerSecond(self, TargetRequestsPerSecond):
|
244
250
|
self._TargetRequestsPerSecond = TargetRequestsPerSecond
|
245
251
|
|
252
|
+
@property
|
253
|
+
def ProjectId(self):
|
254
|
+
"""压测项目ID
|
255
|
+
:rtype: str
|
256
|
+
"""
|
257
|
+
return self._ProjectId
|
258
|
+
|
259
|
+
@ProjectId.setter
|
260
|
+
def ProjectId(self, ProjectId):
|
261
|
+
self._ProjectId = ProjectId
|
262
|
+
|
263
|
+
@property
|
264
|
+
def ScenarioId(self):
|
265
|
+
"""测试场景ID
|
266
|
+
:rtype: str
|
267
|
+
"""
|
268
|
+
return self._ScenarioId
|
269
|
+
|
270
|
+
@ScenarioId.setter
|
271
|
+
def ScenarioId(self, ScenarioId):
|
272
|
+
self._ScenarioId = ScenarioId
|
273
|
+
|
246
274
|
|
247
275
|
def _deserialize(self, params):
|
248
276
|
self._JobId = params.get("JobId")
|
249
277
|
self._TargetRequestsPerSecond = params.get("TargetRequestsPerSecond")
|
278
|
+
self._ProjectId = params.get("ProjectId")
|
279
|
+
self._ScenarioId = params.get("ScenarioId")
|
250
280
|
memeber_set = set(params.keys())
|
251
281
|
for name, value in vars(self).items():
|
252
282
|
property_name = name[1:]
|