tencentcloud-sdk-python 3.0.1392__py2.py3-none-any.whl → 3.0.1394__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/cdb/v20170320/models.py +4 -0
- tencentcloud/cdc/v20201214/models.py +20 -0
- tencentcloud/cfs/v20190719/cfs_client.py +2 -6
- tencentcloud/cfs/v20190719/models.py +12 -14
- tencentcloud/clb/v20180317/clb_client.py +23 -0
- tencentcloud/clb/v20180317/models.py +186 -0
- 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 +45 -0
- tencentcloud/es/v20250101/es_client.py +0 -23
- tencentcloud/es/v20250101/models.py +1 -352
- tencentcloud/ess/v20201111/models.py +20 -10
- tencentcloud/essbasic/v20210526/models.py +4 -4
- tencentcloud/gs/v20191118/gs_client.py +122 -7
- tencentcloud/gs/v20191118/models.py +748 -6
- 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/lowcode/v20210108/models.py +90 -0
- tencentcloud/monitor/v20180724/models.py +364 -2
- tencentcloud/monitor/v20180724/monitor_client.py +69 -0
- tencentcloud/mrs/v20200910/models.py +8 -0
- tencentcloud/mrs/v20200910/mrs_client.py +2 -0
- tencentcloud/oceanus/v20190422/models.py +17 -0
- tencentcloud/oceanus/v20190422/oceanus_client.py +1 -1
- tencentcloud/postgres/v20170312/models.py +0 -405
- tencentcloud/postgres/v20170312/postgres_client.py +0 -25
- tencentcloud/privatedns/v20201028/models.py +297 -0
- tencentcloud/privatedns/v20201028/privatedns_client.py +23 -0
- tencentcloud/pts/v20210728/models.py +30 -0
- tencentcloud/redis/v20180412/models.py +8 -8
- tencentcloud/tcss/v20201101/models.py +240 -0
- tencentcloud/tms/v20201229/models.py +4 -4
- tencentcloud/vm/v20210922/models.py +4 -16
- tencentcloud/vpc/v20170312/models.py +12 -6
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1394.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1394.dist-info}/RECORD +47 -47
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1394.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1394.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1392.dist-info → tencentcloud_sdk_python-3.0.1394.dist-info}/top_level.txt +0 -0
@@ -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
|
|