tencentcloud-sdk-python 3.0.1283__py2.py3-none-any.whl → 3.0.1285__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/apm/v20210622/models.py +31 -59
- tencentcloud/billing/v20180709/models.py +8 -0
- tencentcloud/ccc/v20200210/models.py +15 -0
- tencentcloud/cdb/v20170320/cdb_client.py +23 -0
- tencentcloud/cdb/v20170320/models.py +79 -0
- tencentcloud/cfg/v20210820/models.py +30 -0
- tencentcloud/cloudapp/v20220530/models.py +15 -0
- tencentcloud/cloudaudit/v20190319/models.py +14 -0
- tencentcloud/cvm/v20170312/models.py +6 -6
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/models.py +186 -0
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +2 -2
- tencentcloud/ess/v20201111/ess_client.py +23 -0
- tencentcloud/ess/v20201111/models.py +108 -0
- tencentcloud/essbasic/v20210526/models.py +25 -2
- tencentcloud/gwlb/v20240906/models.py +48 -24
- tencentcloud/hunyuan/v20230901/models.py +2 -2
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +29 -2
- tencentcloud/iotexplorer/v20190423/models.py +220 -0
- tencentcloud/lcic/v20220817/models.py +6 -4
- tencentcloud/live/v20180801/models.py +8 -8
- tencentcloud/mongodb/v20180408/errorcodes.py +15 -0
- tencentcloud/mongodb/v20180408/models.py +27 -12
- tencentcloud/mongodb/v20180408/mongodb_client.py +0 -1
- tencentcloud/mongodb/v20190725/models.py +81 -58
- tencentcloud/mongodb/v20190725/mongodb_client.py +2 -2
- tencentcloud/sms/v20210111/models.py +2 -2
- tencentcloud/vpc/v20170312/models.py +30 -0
- tencentcloud/vrs/v20200824/models.py +117 -6
- tencentcloud/vrs/v20200824/vrs_client.py +25 -2
- tencentcloud/wedata/v20210820/models.py +813 -2
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/RECORD +38 -38
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1283.dist-info → tencentcloud_sdk_python-3.0.1285.dist-info}/top_level.txt +0 -0
@@ -86,7 +86,7 @@ class AssignProjectRequest(AbstractModel):
|
|
86
86
|
|
87
87
|
def __init__(self):
|
88
88
|
r"""
|
89
|
-
:param _InstanceIds: 实例ID列表,格式如:cmgo-
|
89
|
+
:param _InstanceIds: 实例ID列表,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同
|
90
90
|
:type InstanceIds: list of str
|
91
91
|
:param _ProjectId: 项目ID,用户已创建项目的唯一ID,非自定义
|
92
92
|
:type ProjectId: int
|
@@ -96,7 +96,7 @@ class AssignProjectRequest(AbstractModel):
|
|
96
96
|
|
97
97
|
@property
|
98
98
|
def InstanceIds(self):
|
99
|
-
"""实例ID列表,格式如:cmgo-
|
99
|
+
"""实例ID列表,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同
|
100
100
|
:rtype: list of str
|
101
101
|
"""
|
102
102
|
return self._InstanceIds
|
@@ -2427,45 +2427,49 @@ class CurrentOp(AbstractModel):
|
|
2427
2427
|
|
2428
2428
|
def __init__(self):
|
2429
2429
|
r"""
|
2430
|
-
:param _OpId:
|
2430
|
+
:param _OpId: 操作序号。
|
2431
2431
|
注意:此字段可能返回 null,表示取不到有效值。
|
2432
2432
|
:type OpId: int
|
2433
|
-
:param _Ns: 操作所在的命名空间,形式如db.collection
|
2433
|
+
:param _Ns: 操作所在的命名空间,形式如db.collection。
|
2434
2434
|
注意:此字段可能返回 null,表示取不到有效值。
|
2435
2435
|
:type Ns: str
|
2436
|
-
:param _Query:
|
2436
|
+
:param _Query: 操作执行语句。
|
2437
2437
|
注意:此字段可能返回 null,表示取不到有效值。
|
2438
2438
|
:type Query: str
|
2439
|
-
:param _Op: 操作类型,可能的取值:aggregate、count、delete、distinct、find、findAndModify、getMore、insert、mapReduce、update和command
|
2439
|
+
:param _Op: 操作类型,可能的取值:aggregate、count、delete、distinct、find、findAndModify、getMore、insert、mapReduce、update和command。
|
2440
2440
|
注意:此字段可能返回 null,表示取不到有效值。
|
2441
2441
|
:type Op: str
|
2442
|
-
:param _ReplicaSetName:
|
2442
|
+
:param _ReplicaSetName: 操作所在的分片名称。
|
2443
2443
|
:type ReplicaSetName: str
|
2444
|
-
:param
|
2445
|
-
|
2446
|
-
:
|
2447
|
-
:param _Operation: 操作详细信息
|
2444
|
+
:param _NodeName: 操作所在的节点名称。
|
2445
|
+
:type NodeName: str
|
2446
|
+
:param _Operation: 操作详细信息。
|
2448
2447
|
注意:此字段可能返回 null,表示取不到有效值。
|
2449
2448
|
:type Operation: str
|
2450
|
-
:param
|
2451
|
-
|
2452
|
-
:
|
2449
|
+
:param _State: 筛选条件,节点状态,可能的取值为:Primary、Secondary。
|
2450
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2451
|
+
:type State: str
|
2452
|
+
:param _MicrosecsRunning: 操作已执行时间(ms)。
|
2453
2453
|
注意:此字段可能返回 null,表示取不到有效值。
|
2454
2454
|
:type MicrosecsRunning: int
|
2455
|
+
:param _ExecNode: 当前操作所在节点信息。
|
2456
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2457
|
+
:type ExecNode: str
|
2455
2458
|
"""
|
2456
2459
|
self._OpId = None
|
2457
2460
|
self._Ns = None
|
2458
2461
|
self._Query = None
|
2459
2462
|
self._Op = None
|
2460
2463
|
self._ReplicaSetName = None
|
2461
|
-
self._State = None
|
2462
|
-
self._Operation = None
|
2463
2464
|
self._NodeName = None
|
2465
|
+
self._Operation = None
|
2466
|
+
self._State = None
|
2464
2467
|
self._MicrosecsRunning = None
|
2468
|
+
self._ExecNode = None
|
2465
2469
|
|
2466
2470
|
@property
|
2467
2471
|
def OpId(self):
|
2468
|
-
"""
|
2472
|
+
"""操作序号。
|
2469
2473
|
注意:此字段可能返回 null,表示取不到有效值。
|
2470
2474
|
:rtype: int
|
2471
2475
|
"""
|
@@ -2477,7 +2481,7 @@ class CurrentOp(AbstractModel):
|
|
2477
2481
|
|
2478
2482
|
@property
|
2479
2483
|
def Ns(self):
|
2480
|
-
"""操作所在的命名空间,形式如db.collection
|
2484
|
+
"""操作所在的命名空间,形式如db.collection。
|
2481
2485
|
注意:此字段可能返回 null,表示取不到有效值。
|
2482
2486
|
:rtype: str
|
2483
2487
|
"""
|
@@ -2489,7 +2493,7 @@ class CurrentOp(AbstractModel):
|
|
2489
2493
|
|
2490
2494
|
@property
|
2491
2495
|
def Query(self):
|
2492
|
-
"""
|
2496
|
+
"""操作执行语句。
|
2493
2497
|
注意:此字段可能返回 null,表示取不到有效值。
|
2494
2498
|
:rtype: str
|
2495
2499
|
"""
|
@@ -2501,7 +2505,7 @@ class CurrentOp(AbstractModel):
|
|
2501
2505
|
|
2502
2506
|
@property
|
2503
2507
|
def Op(self):
|
2504
|
-
"""操作类型,可能的取值:aggregate、count、delete、distinct、find、findAndModify、getMore、insert、mapReduce、update和command
|
2508
|
+
"""操作类型,可能的取值:aggregate、count、delete、distinct、find、findAndModify、getMore、insert、mapReduce、update和command。
|
2505
2509
|
注意:此字段可能返回 null,表示取不到有效值。
|
2506
2510
|
:rtype: str
|
2507
2511
|
"""
|
@@ -2513,7 +2517,7 @@ class CurrentOp(AbstractModel):
|
|
2513
2517
|
|
2514
2518
|
@property
|
2515
2519
|
def ReplicaSetName(self):
|
2516
|
-
"""
|
2520
|
+
"""操作所在的分片名称。
|
2517
2521
|
:rtype: str
|
2518
2522
|
"""
|
2519
2523
|
return self._ReplicaSetName
|
@@ -2523,20 +2527,19 @@ class CurrentOp(AbstractModel):
|
|
2523
2527
|
self._ReplicaSetName = ReplicaSetName
|
2524
2528
|
|
2525
2529
|
@property
|
2526
|
-
def
|
2527
|
-
"""
|
2528
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2530
|
+
def NodeName(self):
|
2531
|
+
"""操作所在的节点名称。
|
2529
2532
|
:rtype: str
|
2530
2533
|
"""
|
2531
|
-
return self.
|
2534
|
+
return self._NodeName
|
2532
2535
|
|
2533
|
-
@
|
2534
|
-
def
|
2535
|
-
self.
|
2536
|
+
@NodeName.setter
|
2537
|
+
def NodeName(self, NodeName):
|
2538
|
+
self._NodeName = NodeName
|
2536
2539
|
|
2537
2540
|
@property
|
2538
2541
|
def Operation(self):
|
2539
|
-
"""
|
2542
|
+
"""操作详细信息。
|
2540
2543
|
注意:此字段可能返回 null,表示取不到有效值。
|
2541
2544
|
:rtype: str
|
2542
2545
|
"""
|
@@ -2547,19 +2550,20 @@ class CurrentOp(AbstractModel):
|
|
2547
2550
|
self._Operation = Operation
|
2548
2551
|
|
2549
2552
|
@property
|
2550
|
-
def
|
2551
|
-
"""
|
2553
|
+
def State(self):
|
2554
|
+
"""筛选条件,节点状态,可能的取值为:Primary、Secondary。
|
2555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2552
2556
|
:rtype: str
|
2553
2557
|
"""
|
2554
|
-
return self.
|
2558
|
+
return self._State
|
2555
2559
|
|
2556
|
-
@
|
2557
|
-
def
|
2558
|
-
self.
|
2560
|
+
@State.setter
|
2561
|
+
def State(self, State):
|
2562
|
+
self._State = State
|
2559
2563
|
|
2560
2564
|
@property
|
2561
2565
|
def MicrosecsRunning(self):
|
2562
|
-
"""操作已执行时间(ms
|
2566
|
+
"""操作已执行时间(ms)。
|
2563
2567
|
注意:此字段可能返回 null,表示取不到有效值。
|
2564
2568
|
:rtype: int
|
2565
2569
|
"""
|
@@ -2569,6 +2573,18 @@ class CurrentOp(AbstractModel):
|
|
2569
2573
|
def MicrosecsRunning(self, MicrosecsRunning):
|
2570
2574
|
self._MicrosecsRunning = MicrosecsRunning
|
2571
2575
|
|
2576
|
+
@property
|
2577
|
+
def ExecNode(self):
|
2578
|
+
"""当前操作所在节点信息。
|
2579
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2580
|
+
:rtype: str
|
2581
|
+
"""
|
2582
|
+
return self._ExecNode
|
2583
|
+
|
2584
|
+
@ExecNode.setter
|
2585
|
+
def ExecNode(self, ExecNode):
|
2586
|
+
self._ExecNode = ExecNode
|
2587
|
+
|
2572
2588
|
|
2573
2589
|
def _deserialize(self, params):
|
2574
2590
|
self._OpId = params.get("OpId")
|
@@ -2576,10 +2592,11 @@ class CurrentOp(AbstractModel):
|
|
2576
2592
|
self._Query = params.get("Query")
|
2577
2593
|
self._Op = params.get("Op")
|
2578
2594
|
self._ReplicaSetName = params.get("ReplicaSetName")
|
2579
|
-
self._State = params.get("State")
|
2580
|
-
self._Operation = params.get("Operation")
|
2581
2595
|
self._NodeName = params.get("NodeName")
|
2596
|
+
self._Operation = params.get("Operation")
|
2597
|
+
self._State = params.get("State")
|
2582
2598
|
self._MicrosecsRunning = params.get("MicrosecsRunning")
|
2599
|
+
self._ExecNode = params.get("ExecNode")
|
2583
2600
|
memeber_set = set(params.keys())
|
2584
2601
|
for name, value in vars(self).items():
|
2585
2602
|
property_name = name[1:]
|
@@ -3453,18 +3470,21 @@ class DescribeCurrentOpRequest(AbstractModel):
|
|
3453
3470
|
|
3454
3471
|
def __init__(self):
|
3455
3472
|
r"""
|
3456
|
-
:param _InstanceId:
|
3473
|
+
:param _InstanceId: 指定要查询的实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
3457
3474
|
:type InstanceId: str
|
3458
|
-
:param _Ns:
|
3475
|
+
:param _Ns: 操作所属的命名空间 namespace,格式为 db.collection。
|
3459
3476
|
:type Ns: str
|
3460
|
-
:param _MillisecondRunning:
|
3477
|
+
:param _MillisecondRunning: 设置查询筛选条件为操作任务已经执行的时间。
|
3478
|
+
- 默认值为0,取值范围为[0, 3600000],单位:毫秒。
|
3479
|
+
- 结果将返回超过设置时间的操作。
|
3461
3480
|
:type MillisecondRunning: int
|
3462
|
-
:param _Op:
|
3481
|
+
:param _Op: 设置查询筛选条件为操作任务类型。取值包括:none、update、insert,query、command、getmore、remove 和 killcursors。
|
3463
3482
|
:type Op: str
|
3464
|
-
:param _ReplicaSetName:
|
3483
|
+
:param _ReplicaSetName: 筛选条件,分片名称。
|
3465
3484
|
:type ReplicaSetName: str
|
3466
|
-
:param _State:
|
3467
|
-
|
3485
|
+
:param _State: 设置查询筛选条件为节点角色。
|
3486
|
+
- primary:主节点。
|
3487
|
+
- secondary:从节点。
|
3468
3488
|
:type State: str
|
3469
3489
|
:param _Limit: 单次请求返回的数量,默认值为100,取值范围为[0,100]
|
3470
3490
|
:type Limit: int
|
@@ -3488,7 +3508,7 @@ secondary
|
|
3488
3508
|
|
3489
3509
|
@property
|
3490
3510
|
def InstanceId(self):
|
3491
|
-
"""
|
3511
|
+
"""指定要查询的实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
3492
3512
|
:rtype: str
|
3493
3513
|
"""
|
3494
3514
|
return self._InstanceId
|
@@ -3499,7 +3519,7 @@ secondary
|
|
3499
3519
|
|
3500
3520
|
@property
|
3501
3521
|
def Ns(self):
|
3502
|
-
"""
|
3522
|
+
"""操作所属的命名空间 namespace,格式为 db.collection。
|
3503
3523
|
:rtype: str
|
3504
3524
|
"""
|
3505
3525
|
return self._Ns
|
@@ -3510,7 +3530,9 @@ secondary
|
|
3510
3530
|
|
3511
3531
|
@property
|
3512
3532
|
def MillisecondRunning(self):
|
3513
|
-
"""
|
3533
|
+
"""设置查询筛选条件为操作任务已经执行的时间。
|
3534
|
+
- 默认值为0,取值范围为[0, 3600000],单位:毫秒。
|
3535
|
+
- 结果将返回超过设置时间的操作。
|
3514
3536
|
:rtype: int
|
3515
3537
|
"""
|
3516
3538
|
return self._MillisecondRunning
|
@@ -3521,7 +3543,7 @@ secondary
|
|
3521
3543
|
|
3522
3544
|
@property
|
3523
3545
|
def Op(self):
|
3524
|
-
"""
|
3546
|
+
"""设置查询筛选条件为操作任务类型。取值包括:none、update、insert,query、command、getmore、remove 和 killcursors。
|
3525
3547
|
:rtype: str
|
3526
3548
|
"""
|
3527
3549
|
return self._Op
|
@@ -3532,7 +3554,7 @@ secondary
|
|
3532
3554
|
|
3533
3555
|
@property
|
3534
3556
|
def ReplicaSetName(self):
|
3535
|
-
"""
|
3557
|
+
"""筛选条件,分片名称。
|
3536
3558
|
:rtype: str
|
3537
3559
|
"""
|
3538
3560
|
return self._ReplicaSetName
|
@@ -3543,8 +3565,9 @@ secondary
|
|
3543
3565
|
|
3544
3566
|
@property
|
3545
3567
|
def State(self):
|
3546
|
-
"""
|
3547
|
-
|
3568
|
+
"""设置查询筛选条件为节点角色。
|
3569
|
+
- primary:主节点。
|
3570
|
+
- secondary:从节点。
|
3548
3571
|
:rtype: str
|
3549
3572
|
"""
|
3550
3573
|
return self._State
|
@@ -3626,9 +3649,9 @@ class DescribeCurrentOpResponse(AbstractModel):
|
|
3626
3649
|
|
3627
3650
|
def __init__(self):
|
3628
3651
|
r"""
|
3629
|
-
:param _TotalCount:
|
3652
|
+
:param _TotalCount: 符合查询条件的操作总数。
|
3630
3653
|
:type TotalCount: int
|
3631
|
-
:param _CurrentOps:
|
3654
|
+
:param _CurrentOps: 当前操作列表。
|
3632
3655
|
:type CurrentOps: list of CurrentOp
|
3633
3656
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3634
3657
|
:type RequestId: str
|
@@ -3639,7 +3662,7 @@ class DescribeCurrentOpResponse(AbstractModel):
|
|
3639
3662
|
|
3640
3663
|
@property
|
3641
3664
|
def TotalCount(self):
|
3642
|
-
"""
|
3665
|
+
"""符合查询条件的操作总数。
|
3643
3666
|
:rtype: int
|
3644
3667
|
"""
|
3645
3668
|
return self._TotalCount
|
@@ -3650,7 +3673,7 @@ class DescribeCurrentOpResponse(AbstractModel):
|
|
3650
3673
|
|
3651
3674
|
@property
|
3652
3675
|
def CurrentOps(self):
|
3653
|
-
"""
|
3676
|
+
"""当前操作列表。
|
3654
3677
|
:rtype: list of CurrentOp
|
3655
3678
|
"""
|
3656
3679
|
return self._CurrentOps
|
@@ -6739,7 +6762,7 @@ class InquirePriceRenewDBInstancesRequest(AbstractModel):
|
|
6739
6762
|
|
6740
6763
|
def __init__(self):
|
6741
6764
|
r"""
|
6742
|
-
:param _InstanceIds: 实例ID,格式如:cmgo-
|
6765
|
+
:param _InstanceIds: 实例ID,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同,接口单次最多只支持5个实例进行操作。
|
6743
6766
|
:type InstanceIds: list of str
|
6744
6767
|
:param _InstanceChargePrepaid: 预付费模式(即包年包月)相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
|
6745
6768
|
:type InstanceChargePrepaid: :class:`tencentcloud.mongodb.v20190725.models.InstanceChargePrepaid`
|
@@ -6749,7 +6772,7 @@ class InquirePriceRenewDBInstancesRequest(AbstractModel):
|
|
6749
6772
|
|
6750
6773
|
@property
|
6751
6774
|
def InstanceIds(self):
|
6752
|
-
"""实例ID,格式如:cmgo-
|
6775
|
+
"""实例ID,格式如:cmgo-p8vn****。与云数据库控制台页面中显示的实例ID相同,接口单次最多只支持5个实例进行操作。
|
6753
6776
|
:rtype: list of str
|
6754
6777
|
"""
|
6755
6778
|
return self._InstanceIds
|
@@ -235,7 +235,7 @@ class MongodbClient(AbstractClient):
|
|
235
235
|
|
236
236
|
|
237
237
|
def DescribeAsyncRequestInfo(self, request):
|
238
|
-
"""
|
238
|
+
"""本接口(DescribeAsyncRequestInfo)用于查询异步任务状态接口。
|
239
239
|
|
240
240
|
:param request: Request instance for DescribeAsyncRequestInfo.
|
241
241
|
:type request: :class:`tencentcloud.mongodb.v20190725.models.DescribeAsyncRequestInfoRequest`
|
@@ -327,7 +327,7 @@ class MongodbClient(AbstractClient):
|
|
327
327
|
|
328
328
|
|
329
329
|
def DescribeCurrentOp(self, request):
|
330
|
-
"""
|
330
|
+
"""本接口(DescribeCurrentOp)用于查询云数据库实例的当前正在执行的操作。
|
331
331
|
|
332
332
|
:param request: Request instance for DescribeCurrentOp.
|
333
333
|
:type request: :class:`tencentcloud.mongodb.v20190725.models.DescribeCurrentOpRequest`
|
@@ -2109,7 +2109,7 @@ class PhoneNumberInfo(AbstractModel):
|
|
2109
2109
|
:type PhoneNumber: str
|
2110
2110
|
:param _IsoCode: 国家码或地区码,例如 CN、US 等,对于未识别出国家码或者地区码,默认返回 DEF。
|
2111
2111
|
:type IsoCode: str
|
2112
|
-
:param _IsoName: 国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051
|
2112
|
+
:param _IsoName: 国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)
|
2113
2113
|
:type IsoName: str
|
2114
2114
|
"""
|
2115
2115
|
self._Code = None
|
@@ -2188,7 +2188,7 @@ class PhoneNumberInfo(AbstractModel):
|
|
2188
2188
|
|
2189
2189
|
@property
|
2190
2190
|
def IsoName(self):
|
2191
|
-
"""国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051
|
2191
|
+
"""国家码或地区名,例如 China,可参考 [国际/港澳台短信价格总览](https://cloud.tencent.com/document/product/382/18051)
|
2192
2192
|
:rtype: str
|
2193
2193
|
"""
|
2194
2194
|
return self._IsoName
|
@@ -15728,6 +15728,8 @@ class CreateVpnGatewayRequest(AbstractModel):
|
|
15728
15728
|
:type CdcId: str
|
15729
15729
|
:param _MaxConnection: SSL VPN连接数设置,可选规格:5, 10, 20, 50, 100, 200, 500, 1000;单位:个。仅 SSL / SSL_CCN 类型需要选这个参数。
|
15730
15730
|
:type MaxConnection: int
|
15731
|
+
:param _BgpAsn: BGP ASN。
|
15732
|
+
:type BgpAsn: int
|
15731
15733
|
"""
|
15732
15734
|
self._VpcId = None
|
15733
15735
|
self._VpnGatewayName = None
|
@@ -15739,6 +15741,7 @@ class CreateVpnGatewayRequest(AbstractModel):
|
|
15739
15741
|
self._Tags = None
|
15740
15742
|
self._CdcId = None
|
15741
15743
|
self._MaxConnection = None
|
15744
|
+
self._BgpAsn = None
|
15742
15745
|
|
15743
15746
|
@property
|
15744
15747
|
def VpcId(self):
|
@@ -15850,6 +15853,17 @@ class CreateVpnGatewayRequest(AbstractModel):
|
|
15850
15853
|
def MaxConnection(self, MaxConnection):
|
15851
15854
|
self._MaxConnection = MaxConnection
|
15852
15855
|
|
15856
|
+
@property
|
15857
|
+
def BgpAsn(self):
|
15858
|
+
"""BGP ASN。
|
15859
|
+
:rtype: int
|
15860
|
+
"""
|
15861
|
+
return self._BgpAsn
|
15862
|
+
|
15863
|
+
@BgpAsn.setter
|
15864
|
+
def BgpAsn(self, BgpAsn):
|
15865
|
+
self._BgpAsn = BgpAsn
|
15866
|
+
|
15853
15867
|
|
15854
15868
|
def _deserialize(self, params):
|
15855
15869
|
self._VpcId = params.get("VpcId")
|
@@ -15869,6 +15883,7 @@ class CreateVpnGatewayRequest(AbstractModel):
|
|
15869
15883
|
self._Tags.append(obj)
|
15870
15884
|
self._CdcId = params.get("CdcId")
|
15871
15885
|
self._MaxConnection = params.get("MaxConnection")
|
15886
|
+
self._BgpAsn = params.get("BgpAsn")
|
15872
15887
|
memeber_set = set(params.keys())
|
15873
15888
|
for name, value in vars(self).items():
|
15874
15889
|
property_name = name[1:]
|
@@ -64854,6 +64869,8 @@ class VpnGateway(AbstractModel):
|
|
64854
64869
|
:type CdcId: str
|
64855
64870
|
:param _MaxConnection: SSL-VPN 客户端连接数。
|
64856
64871
|
:type MaxConnection: int
|
64872
|
+
:param _BgpAsn: Bgp ASN
|
64873
|
+
:type BgpAsn: int
|
64857
64874
|
"""
|
64858
64875
|
self._VpnGatewayId = None
|
64859
64876
|
self._VpcId = None
|
@@ -64875,6 +64892,7 @@ class VpnGateway(AbstractModel):
|
|
64875
64892
|
self._NetworkInstanceId = None
|
64876
64893
|
self._CdcId = None
|
64877
64894
|
self._MaxConnection = None
|
64895
|
+
self._BgpAsn = None
|
64878
64896
|
|
64879
64897
|
@property
|
64880
64898
|
def VpnGatewayId(self):
|
@@ -65096,6 +65114,17 @@ class VpnGateway(AbstractModel):
|
|
65096
65114
|
def MaxConnection(self, MaxConnection):
|
65097
65115
|
self._MaxConnection = MaxConnection
|
65098
65116
|
|
65117
|
+
@property
|
65118
|
+
def BgpAsn(self):
|
65119
|
+
"""Bgp ASN
|
65120
|
+
:rtype: int
|
65121
|
+
"""
|
65122
|
+
return self._BgpAsn
|
65123
|
+
|
65124
|
+
@BgpAsn.setter
|
65125
|
+
def BgpAsn(self, BgpAsn):
|
65126
|
+
self._BgpAsn = BgpAsn
|
65127
|
+
|
65099
65128
|
|
65100
65129
|
def _deserialize(self, params):
|
65101
65130
|
self._VpnGatewayId = params.get("VpnGatewayId")
|
@@ -65123,6 +65152,7 @@ class VpnGateway(AbstractModel):
|
|
65123
65152
|
self._NetworkInstanceId = params.get("NetworkInstanceId")
|
65124
65153
|
self._CdcId = params.get("CdcId")
|
65125
65154
|
self._MaxConnection = params.get("MaxConnection")
|
65155
|
+
self._BgpAsn = params.get("BgpAsn")
|
65126
65156
|
memeber_set = set(params.keys())
|
65127
65157
|
for name, value in vars(self).items():
|
65128
65158
|
property_name = name[1:]
|
@@ -134,7 +134,7 @@ class CreateVRSTaskRequest(AbstractModel):
|
|
134
134
|
:type SampleRate: int
|
135
135
|
:param _Codec: 音频格式,音频类型(wav,mp3,aac,m4a)
|
136
136
|
:type Codec: str
|
137
|
-
:param _CallbackUrl: 回调 URL,用户自行搭建的用于接收结果的服务URL
|
137
|
+
:param _CallbackUrl: 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。(注意:回调方式目前仅支持轻量版声音复刻)
|
138
138
|
回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
|
139
139
|
:type CallbackUrl: str
|
140
140
|
:param _ModelType: 模型类型 1:在线 2:离线 默认为1
|
@@ -245,7 +245,7 @@ class CreateVRSTaskRequest(AbstractModel):
|
|
245
245
|
|
246
246
|
@property
|
247
247
|
def CallbackUrl(self):
|
248
|
-
"""回调 URL,用户自行搭建的用于接收结果的服务URL
|
248
|
+
"""回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。(注意:回调方式目前仅支持轻量版声音复刻)
|
249
249
|
回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
|
250
250
|
:rtype: str
|
251
251
|
"""
|
@@ -1203,6 +1203,117 @@ class GetTrainingTextResponse(AbstractModel):
|
|
1203
1203
|
self._RequestId = params.get("RequestId")
|
1204
1204
|
|
1205
1205
|
|
1206
|
+
class GetVRSVoiceTypeInfoRequest(AbstractModel):
|
1207
|
+
"""GetVRSVoiceTypeInfo请求参数结构体
|
1208
|
+
|
1209
|
+
"""
|
1210
|
+
|
1211
|
+
def __init__(self):
|
1212
|
+
r"""
|
1213
|
+
:param _VoiceType: 音色id。
|
1214
|
+
:type VoiceType: int
|
1215
|
+
:param _TaskType: 0 - 除快速声音复刻外其他复刻类型(默认); 5 - 快速声音复刻。 默认为0。
|
1216
|
+
:type TaskType: int
|
1217
|
+
:param _FastVoiceType: 快速复刻音色id。
|
1218
|
+
:type FastVoiceType: str
|
1219
|
+
"""
|
1220
|
+
self._VoiceType = None
|
1221
|
+
self._TaskType = None
|
1222
|
+
self._FastVoiceType = None
|
1223
|
+
|
1224
|
+
@property
|
1225
|
+
def VoiceType(self):
|
1226
|
+
"""音色id。
|
1227
|
+
:rtype: int
|
1228
|
+
"""
|
1229
|
+
return self._VoiceType
|
1230
|
+
|
1231
|
+
@VoiceType.setter
|
1232
|
+
def VoiceType(self, VoiceType):
|
1233
|
+
self._VoiceType = VoiceType
|
1234
|
+
|
1235
|
+
@property
|
1236
|
+
def TaskType(self):
|
1237
|
+
"""0 - 除快速声音复刻外其他复刻类型(默认); 5 - 快速声音复刻。 默认为0。
|
1238
|
+
:rtype: int
|
1239
|
+
"""
|
1240
|
+
return self._TaskType
|
1241
|
+
|
1242
|
+
@TaskType.setter
|
1243
|
+
def TaskType(self, TaskType):
|
1244
|
+
self._TaskType = TaskType
|
1245
|
+
|
1246
|
+
@property
|
1247
|
+
def FastVoiceType(self):
|
1248
|
+
"""快速复刻音色id。
|
1249
|
+
:rtype: str
|
1250
|
+
"""
|
1251
|
+
return self._FastVoiceType
|
1252
|
+
|
1253
|
+
@FastVoiceType.setter
|
1254
|
+
def FastVoiceType(self, FastVoiceType):
|
1255
|
+
self._FastVoiceType = FastVoiceType
|
1256
|
+
|
1257
|
+
|
1258
|
+
def _deserialize(self, params):
|
1259
|
+
self._VoiceType = params.get("VoiceType")
|
1260
|
+
self._TaskType = params.get("TaskType")
|
1261
|
+
self._FastVoiceType = params.get("FastVoiceType")
|
1262
|
+
memeber_set = set(params.keys())
|
1263
|
+
for name, value in vars(self).items():
|
1264
|
+
property_name = name[1:]
|
1265
|
+
if property_name in memeber_set:
|
1266
|
+
memeber_set.remove(property_name)
|
1267
|
+
if len(memeber_set) > 0:
|
1268
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
class GetVRSVoiceTypeInfoResponse(AbstractModel):
|
1273
|
+
"""GetVRSVoiceTypeInfo返回参数结构体
|
1274
|
+
|
1275
|
+
"""
|
1276
|
+
|
1277
|
+
def __init__(self):
|
1278
|
+
r"""
|
1279
|
+
:param _Data: 音色信息
|
1280
|
+
:type Data: :class:`tencentcloud.vrs.v20200824.models.VoiceTypeInfo`
|
1281
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1282
|
+
:type RequestId: str
|
1283
|
+
"""
|
1284
|
+
self._Data = None
|
1285
|
+
self._RequestId = None
|
1286
|
+
|
1287
|
+
@property
|
1288
|
+
def Data(self):
|
1289
|
+
"""音色信息
|
1290
|
+
:rtype: :class:`tencentcloud.vrs.v20200824.models.VoiceTypeInfo`
|
1291
|
+
"""
|
1292
|
+
return self._Data
|
1293
|
+
|
1294
|
+
@Data.setter
|
1295
|
+
def Data(self, Data):
|
1296
|
+
self._Data = Data
|
1297
|
+
|
1298
|
+
@property
|
1299
|
+
def RequestId(self):
|
1300
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1301
|
+
:rtype: str
|
1302
|
+
"""
|
1303
|
+
return self._RequestId
|
1304
|
+
|
1305
|
+
@RequestId.setter
|
1306
|
+
def RequestId(self, RequestId):
|
1307
|
+
self._RequestId = RequestId
|
1308
|
+
|
1309
|
+
|
1310
|
+
def _deserialize(self, params):
|
1311
|
+
if params.get("Data") is not None:
|
1312
|
+
self._Data = VoiceTypeInfo()
|
1313
|
+
self._Data._deserialize(params.get("Data"))
|
1314
|
+
self._RequestId = params.get("RequestId")
|
1315
|
+
|
1316
|
+
|
1206
1317
|
class GetVRSVoiceTypesRequest(AbstractModel):
|
1207
1318
|
"""GetVRSVoiceTypes请求参数结构体
|
1208
1319
|
|
@@ -1602,10 +1713,10 @@ class Words(AbstractModel):
|
|
1602
1713
|
|
1603
1714
|
def __init__(self):
|
1604
1715
|
r"""
|
1605
|
-
:param _PronAccuracy: 准确度 (
|
1716
|
+
:param _PronAccuracy: 准确度 (小于75则认为不合格)
|
1606
1717
|
注意:此字段可能返回 null,表示取不到有效值。
|
1607
1718
|
:type PronAccuracy: float
|
1608
|
-
:param _PronFluency: 流畅度 (
|
1719
|
+
:param _PronFluency: 流畅度 (小于0.95则认为不合格)
|
1609
1720
|
注意:此字段可能返回 null,表示取不到有效值。
|
1610
1721
|
:type PronFluency: float
|
1611
1722
|
:param _Tag: tag:
|
@@ -1628,7 +1739,7 @@ class Words(AbstractModel):
|
|
1628
1739
|
|
1629
1740
|
@property
|
1630
1741
|
def PronAccuracy(self):
|
1631
|
-
"""准确度 (
|
1742
|
+
"""准确度 (小于75则认为不合格)
|
1632
1743
|
注意:此字段可能返回 null,表示取不到有效值。
|
1633
1744
|
:rtype: float
|
1634
1745
|
"""
|
@@ -1640,7 +1751,7 @@ class Words(AbstractModel):
|
|
1640
1751
|
|
1641
1752
|
@property
|
1642
1753
|
def PronFluency(self):
|
1643
|
-
"""流畅度 (
|
1754
|
+
"""流畅度 (小于0.95则认为不合格)
|
1644
1755
|
注意:此字段可能返回 null,表示取不到有效值。
|
1645
1756
|
:rtype: float
|
1646
1757
|
"""
|
@@ -75,8 +75,8 @@ class VrsClient(AbstractClient):
|
|
75
75
|
|
76
76
|
|
77
77
|
def DescribeVRSTaskStatus(self, request):
|
78
|
-
"""
|
79
|
-
• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见
|
78
|
+
"""在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。(注意:回调方式目前仅支持轻量版声音复刻)
|
79
|
+
• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 [“声音复刻任务创建接口”](https://cloud.tencent.com/document/product/1283/90064) CallbackUrl参数说明 。
|
80
80
|
• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。
|
81
81
|
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
82
82
|
• 签名方法参考 公共参数 中签名方法v3。
|
@@ -176,6 +176,29 @@ class VrsClient(AbstractClient):
|
|
176
176
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
177
177
|
|
178
178
|
|
179
|
+
def GetVRSVoiceTypeInfo(self, request):
|
180
|
+
"""该接口用于查询复刻音色详细信息。
|
181
|
+
|
182
|
+
:param request: Request instance for GetVRSVoiceTypeInfo.
|
183
|
+
:type request: :class:`tencentcloud.vrs.v20200824.models.GetVRSVoiceTypeInfoRequest`
|
184
|
+
:rtype: :class:`tencentcloud.vrs.v20200824.models.GetVRSVoiceTypeInfoResponse`
|
185
|
+
|
186
|
+
"""
|
187
|
+
try:
|
188
|
+
params = request._serialize()
|
189
|
+
headers = request.headers
|
190
|
+
body = self.call("GetVRSVoiceTypeInfo", params, headers=headers)
|
191
|
+
response = json.loads(body)
|
192
|
+
model = models.GetVRSVoiceTypeInfoResponse()
|
193
|
+
model._deserialize(response["Response"])
|
194
|
+
return model
|
195
|
+
except Exception as e:
|
196
|
+
if isinstance(e, TencentCloudSDKException):
|
197
|
+
raise
|
198
|
+
else:
|
199
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
200
|
+
|
201
|
+
|
179
202
|
def GetVRSVoiceTypes(self, request):
|
180
203
|
"""查询复刻音色
|
181
204
|
|