tencentcloud-sdk-python-intl-en 3.0.1113__py2.py3-none-any.whl → 3.0.1115__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1113'
16
+ __version__ = '3.0.1115'
@@ -34,10 +34,24 @@ Note: This field may return `null`, indicating that no valid values can be obtai
34
34
  :param _Externals: Extended data
35
35
  Note: This field may return `null`, indicating that no valid values can be obtained.
36
36
  :type Externals: :class:`tencentcloud.cvm.v20170312.models.Externals`
37
+ :param _ActionTimerId: Timer ID.
38
+ :type ActionTimerId: str
39
+ :param _Status: Timer status. Valid values:
40
+
41
+ UNDO: Not triggered.
42
+ DOING: Triggering.
43
+ DONE: Triggered already.
44
+
45
+ :type Status: str
46
+ :param _InstanceId: Instance ID corresponding to a timer.
47
+ :type InstanceId: str
37
48
  """
38
49
  self._TimerAction = None
39
50
  self._ActionTime = None
40
51
  self._Externals = None
52
+ self._ActionTimerId = None
53
+ self._Status = None
54
+ self._InstanceId = None
41
55
 
42
56
  @property
43
57
  def TimerAction(self):
@@ -75,6 +89,44 @@ Note: This field may return `null`, indicating that no valid values can be obtai
75
89
  def Externals(self, Externals):
76
90
  self._Externals = Externals
77
91
 
92
+ @property
93
+ def ActionTimerId(self):
94
+ """Timer ID.
95
+ :rtype: str
96
+ """
97
+ return self._ActionTimerId
98
+
99
+ @ActionTimerId.setter
100
+ def ActionTimerId(self, ActionTimerId):
101
+ self._ActionTimerId = ActionTimerId
102
+
103
+ @property
104
+ def Status(self):
105
+ """Timer status. Valid values:
106
+
107
+ UNDO: Not triggered.
108
+ DOING: Triggering.
109
+ DONE: Triggered already.
110
+
111
+ :rtype: str
112
+ """
113
+ return self._Status
114
+
115
+ @Status.setter
116
+ def Status(self, Status):
117
+ self._Status = Status
118
+
119
+ @property
120
+ def InstanceId(self):
121
+ """Instance ID corresponding to a timer.
122
+ :rtype: str
123
+ """
124
+ return self._InstanceId
125
+
126
+ @InstanceId.setter
127
+ def InstanceId(self, InstanceId):
128
+ self._InstanceId = InstanceId
129
+
78
130
 
79
131
  def _deserialize(self, params):
80
132
  self._TimerAction = params.get("TimerAction")
@@ -82,6 +134,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
82
134
  if params.get("Externals") is not None:
83
135
  self._Externals = Externals()
84
136
  self._Externals._deserialize(params.get("Externals"))
137
+ self._ActionTimerId = params.get("ActionTimerId")
138
+ self._Status = params.get("Status")
139
+ self._InstanceId = params.get("InstanceId")
85
140
  memeber_set = set(params.keys())
86
141
  for name, value in vars(self).items():
87
142
  property_name = name[1:]
@@ -2468,15 +2523,16 @@ class DataDisk(AbstractModel):
2468
2523
  r"""
2469
2524
  :param _DiskSize: Data disk size (in GB). The minimum adjustment increment is 10 GB. The value range varies by data disk type. For more information on limits, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). The default value is 0, indicating that no data disk is purchased. For more information, see the product documentation.
2470
2525
  :type DiskSize: int
2471
- :param _DiskType: Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview] (https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value range: <br /><li>LOCAL_BASIC: Local Disk <br /><li>LOCAL_SSD: Local SSD Disk <br /><li>LOCAL_NVME: Local NVME Disk, which is strongly related with InstanceType and can not be specified <br /><li>LOCAL_PRO: Local HDD Disk, which is strongly related with InstanceType and can not be specified <br /><li>CLOUD_BASIC: HDD Cloud Disk <br /><li>CLOUD_PREMIUM: Premium Cloud Disk <br /><li>CLOUD_SSD: Cloud SSD <br /><li>CLOUD_HSSD: Enhanced SSD <br /><li>CLOUD_TSSD: ulTra SSD <br /><li>CLOUD_BSSD: Balanced SSD <br /><br />Default value: LOCAL_BASIC. <br /><br />This parameter is invalid for the `ResizeInstanceDisk` API.</li></li></li> </li> </li></li></li></li></li></li>
2526
+ :param _DiskType: Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview](https://cloud.tencent.com/document/product/213/4952). Valid values: <br /><li>LOCAL_BASIC: Local Disk <br /><li>LOCAL_SSD: Local SSD <br /><li>LOCAL_NVME: Local NVMe Disk, which is strongly related with InstanceType and can not be specified <br /><li>LOCAL_PRO: Local HDD, which is strongly related with InstanceType and can not be specified <br /><li>CLOUD_BASIC: Basic Cloud Disk <br /><li>CLOUD_PREMIUM: Premium Disk <br /><li>CLOUD_SSD: Cloud SSD <br /><li>CLOUD_HSSD: Enhanced SSD <br /><li>CLOUD_TSSD: Tremendous SSD <br /><li>CLOUD_BSSD: Balanced SSD <br /><br />Default value: LOCAL_BASIC. <br /><br />This parameter is invalid for the `ResizeInstanceDisk` API.</li></li></li> </li> </li></li></li></li></li></li>
2472
2527
  :type DiskType: str
2473
- :param _DiskId: Data disk ID. Note that its not available for `LOCAL_BASIC` and `LOCAL_SSD` disks.
2528
+ :param _DiskId: Data disk ID. Note that it's not available for `LOCAL_BASIC` and `LOCAL_SSD` disks.
2474
2529
  It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`.
2475
2530
  :type DiskId: str
2476
- :param _DeleteWithInstance: Whether the data disk is destroyed with the Cloud Virtual Machine (CVM). Value range:
2477
- <li>true: Destroy the data disk when the CVM is destroyed. Only the pay-as-you-go cloud disk billed by hour is supported.</li>
2531
+ :param _DeleteWithInstance: Whether the data disk is terminated with the Cloud Virtual Machine (CVM). Valid values:
2532
+
2533
+ <li>true: Terminate the data disk when the CVM is terminated. Only the pay-as-you-go cloud disk billed by hour is supported.</li>
2478
2534
  <li>
2479
- false: Retain the data disk when the CVM is destroyed.<br />
2535
+ false: Retain the data disk when the CVM is terminated.<br />
2480
2536
  Default value: true.<br />
2481
2537
  This parameter is currently only used for the `RunInstances` API.
2482
2538
  </li>
@@ -2494,7 +2550,7 @@ Note: This field may return null, indicating that no valid value is found.
2494
2550
  </li>
2495
2551
  Note: This field may return null, indicating that no valid value is found.
2496
2552
  :type Encrypt: bool
2497
- :param _KmsKeyId: ID of the custom CMK in the format of UUID or kms-abcd1234”. This parameter is used to encrypt cloud disks.
2553
+ :param _KmsKeyId: ID of the custom CMK in the format of UUID or "kms-abcd1234". This parameter is used to encrypt cloud disks.
2498
2554
 
2499
2555
  Currently, this parameter is only used in the `RunInstances` API.
2500
2556
  Note: this field may return null, indicating that no valid values can be obtained.
@@ -2540,7 +2596,7 @@ This parameter is in invite-only testing and is not yet open for use.
2540
2596
 
2541
2597
  @property
2542
2598
  def DiskType(self):
2543
- """Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview] (https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value range: <br /><li>LOCAL_BASIC: Local Disk <br /><li>LOCAL_SSD: Local SSD Disk <br /><li>LOCAL_NVME: Local NVME Disk, which is strongly related with InstanceType and can not be specified <br /><li>LOCAL_PRO: Local HDD Disk, which is strongly related with InstanceType and can not be specified <br /><li>CLOUD_BASIC: HDD Cloud Disk <br /><li>CLOUD_PREMIUM: Premium Cloud Disk <br /><li>CLOUD_SSD: Cloud SSD <br /><li>CLOUD_HSSD: Enhanced SSD <br /><li>CLOUD_TSSD: ulTra SSD <br /><li>CLOUD_BSSD: Balanced SSD <br /><br />Default value: LOCAL_BASIC. <br /><br />This parameter is invalid for the `ResizeInstanceDisk` API.</li></li></li> </li> </li></li></li></li></li></li>
2599
+ """Data disk type. For the detailed restrictions on the data disk type, refer to [Storage Overview](https://cloud.tencent.com/document/product/213/4952). Valid values: <br /><li>LOCAL_BASIC: Local Disk <br /><li>LOCAL_SSD: Local SSD <br /><li>LOCAL_NVME: Local NVMe Disk, which is strongly related with InstanceType and can not be specified <br /><li>LOCAL_PRO: Local HDD, which is strongly related with InstanceType and can not be specified <br /><li>CLOUD_BASIC: Basic Cloud Disk <br /><li>CLOUD_PREMIUM: Premium Disk <br /><li>CLOUD_SSD: Cloud SSD <br /><li>CLOUD_HSSD: Enhanced SSD <br /><li>CLOUD_TSSD: Tremendous SSD <br /><li>CLOUD_BSSD: Balanced SSD <br /><br />Default value: LOCAL_BASIC. <br /><br />This parameter is invalid for the `ResizeInstanceDisk` API.</li></li></li> </li> </li></li></li></li></li></li>
2544
2600
  :rtype: str
2545
2601
  """
2546
2602
  return self._DiskType
@@ -2551,7 +2607,7 @@ This parameter is in invite-only testing and is not yet open for use.
2551
2607
 
2552
2608
  @property
2553
2609
  def DiskId(self):
2554
- """Data disk ID. Note that its not available for `LOCAL_BASIC` and `LOCAL_SSD` disks.
2610
+ """Data disk ID. Note that it's not available for `LOCAL_BASIC` and `LOCAL_SSD` disks.
2555
2611
  It is only used as a response parameter for APIs such as `DescribeInstances`, and cannot be used as a request parameter for APIs such as `RunInstances`.
2556
2612
  :rtype: str
2557
2613
  """
@@ -2563,10 +2619,11 @@ It is only used as a response parameter for APIs such as `DescribeInstances`, an
2563
2619
 
2564
2620
  @property
2565
2621
  def DeleteWithInstance(self):
2566
- """Whether the data disk is destroyed with the Cloud Virtual Machine (CVM). Value range:
2567
- <li>true: Destroy the data disk when the CVM is destroyed. Only the pay-as-you-go cloud disk billed by hour is supported.</li>
2622
+ """Whether the data disk is terminated with the Cloud Virtual Machine (CVM). Valid values:
2623
+
2624
+ <li>true: Terminate the data disk when the CVM is terminated. Only the pay-as-you-go cloud disk billed by hour is supported.</li>
2568
2625
  <li>
2569
- false: Retain the data disk when the CVM is destroyed.<br />
2626
+ false: Retain the data disk when the CVM is terminated.<br />
2570
2627
  Default value: true.<br />
2571
2628
  This parameter is currently only used for the `RunInstances` API.
2572
2629
  </li>
@@ -2611,7 +2668,7 @@ Note: This field may return null, indicating that no valid value is found.
2611
2668
 
2612
2669
  @property
2613
2670
  def KmsKeyId(self):
2614
- """ID of the custom CMK in the format of UUID or kms-abcd1234”. This parameter is used to encrypt cloud disks.
2671
+ """ID of the custom CMK in the format of UUID or "kms-abcd1234". This parameter is used to encrypt cloud disks.
2615
2672
 
2616
2673
  Currently, this parameter is only used in the `RunInstances` API.
2617
2674
  Note: this field may return null, indicating that no valid values can be obtained.
@@ -16394,15 +16451,15 @@ class SystemDisk(AbstractModel):
16394
16451
 
16395
16452
  def __init__(self):
16396
16453
  r"""
16397
- :param _DiskType: System disk type. For the restrictions on the system disk type, refer to [Storage Overview] (https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value range:<br>
16454
+ :param _DiskType: System disk type. For the restrictions on the system disk type, refer to [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value values:<br>
16398
16455
  <li>LOCAL_BASIC: Local Disk</li>
16399
- <li>LOCAL_SSD: Local SSD Disk</li>
16400
- <li>CLOUD_BASIC: HDD Cloud Disk</li>
16456
+ <li>LOCAL_SSD: Local SSD</li>
16457
+ <li>CLOUD_BASIC: Basic Cloud Disk</li>
16401
16458
  <li>CLOUD_SSD: Cloud SSD</li>
16402
- <li>CLOUD_PREMIUM: Premium Cloud Disk</li>
16459
+ <li>CLOUD_PREMIUM: Premium Disk</li>
16403
16460
  <li>CLOUD_BSSD: Balanced SSD</li>
16404
16461
  <li>CLOUD_HSSD: Enhanced SSD</li>
16405
- <li>CLOUD_TSSD: ulTra SSD</li><br>
16462
+ <li>CLOUD_TSSD: Tremendous SSD</li><br>
16406
16463
  Default value: Current disk types with inventory available.
16407
16464
  :type DiskType: str
16408
16465
  :param _DiskId: System disk ID. System disks whose type is `LOCAL_BASIC` or `LOCAL_SSD` do not have an ID and do not support this parameter.
@@ -16426,15 +16483,15 @@ Note: This field may return null, indicating that no valid value is found.
16426
16483
 
16427
16484
  @property
16428
16485
  def DiskType(self):
16429
- """System disk type. For the restrictions on the system disk type, refer to [Storage Overview] (https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value range:<br>
16486
+ """System disk type. For the restrictions on the system disk type, refer to [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952?from_cn_redirect=1). Value values:<br>
16430
16487
  <li>LOCAL_BASIC: Local Disk</li>
16431
- <li>LOCAL_SSD: Local SSD Disk</li>
16432
- <li>CLOUD_BASIC: HDD Cloud Disk</li>
16488
+ <li>LOCAL_SSD: Local SSD</li>
16489
+ <li>CLOUD_BASIC: Basic Cloud Disk</li>
16433
16490
  <li>CLOUD_SSD: Cloud SSD</li>
16434
- <li>CLOUD_PREMIUM: Premium Cloud Disk</li>
16491
+ <li>CLOUD_PREMIUM: Premium Disk</li>
16435
16492
  <li>CLOUD_BSSD: Balanced SSD</li>
16436
16493
  <li>CLOUD_HSSD: Enhanced SSD</li>
16437
- <li>CLOUD_TSSD: ulTra SSD</li><br>
16494
+ <li>CLOUD_TSSD: Tremendous SSD</li><br>
16438
16495
  Default value: Current disk types with inventory available.
16439
16496
  :rtype: str
16440
16497
  """
@@ -257,6 +257,29 @@ class DcdbClient(AbstractClient):
257
257
  raise TencentCloudSDKException(type(e).__name__, str(e))
258
258
 
259
259
 
260
+ def CreateOnlineDDLJob(self, request):
261
+ """This API is used to create an online DDL job.
262
+
263
+ :param request: Request instance for CreateOnlineDDLJob.
264
+ :type request: :class:`tencentcloud.dcdb.v20180411.models.CreateOnlineDDLJobRequest`
265
+ :rtype: :class:`tencentcloud.dcdb.v20180411.models.CreateOnlineDDLJobResponse`
266
+
267
+ """
268
+ try:
269
+ params = request._serialize()
270
+ headers = request.headers
271
+ body = self.call("CreateOnlineDDLJob", params, headers=headers)
272
+ response = json.loads(body)
273
+ model = models.CreateOnlineDDLJobResponse()
274
+ model._deserialize(response["Response"])
275
+ return model
276
+ except Exception as e:
277
+ if isinstance(e, TencentCloudSDKException):
278
+ raise
279
+ else:
280
+ raise TencentCloudSDKException(type(e).__name__, str(e))
281
+
282
+
260
283
  def DeleteAccount(self, request):
261
284
  """This API is used to delete a TencentDB account, which is uniquely identified by username and host.
262
285
 
@@ -125,6 +125,9 @@ INTERNALERROR_COSSIGNURL = 'InternalError.CosSignUrl'
125
125
  # Failed to create a process
126
126
  INTERNALERROR_CREATEFLOWERROR = 'InternalError.CreateFlowError'
127
127
 
128
+ # Failed to create a task workflow.
129
+ INTERNALERROR_CREATEFLOWFAILED = 'InternalError.CreateFlowFailed'
130
+
128
131
  # No database data has changed.
129
132
  INTERNALERROR_DBROWSAFFECTEDERROR = 'InternalError.DBRowsAffectedError'
130
133
 
@@ -2698,6 +2698,235 @@ class CreateHourDCDBInstanceResponse(AbstractModel):
2698
2698
  self._RequestId = params.get("RequestId")
2699
2699
 
2700
2700
 
2701
+ class CreateOnlineDDLJobRequest(AbstractModel):
2702
+ """CreateOnlineDDLJob request structure.
2703
+
2704
+ """
2705
+
2706
+ def __init__(self):
2707
+ r"""
2708
+ :param _InstanceId: Instance ID
2709
+ :type InstanceId: str
2710
+ :param _Alter: Specifies the DDL statement to be executed. Common online DDL refer to this API documentation example section.
2711
+ :type Alter: str
2712
+ :param _DbName: Specifies the database to be modified.
2713
+ :type DbName: str
2714
+ :param _Table: Specifies the table to be modified.
2715
+ :type Table: str
2716
+ :param _User: Specifies the account to execute DDL. Ensure the account has ALTER, CREATE, INSERT, UPDATE, DROP, DELETE, INDEX, CREATE TEMPORARY TABLES, LOCK TABLES, TRIGGER, REPLICATION CLIENT, REPLICATION SLAVE permissions. If not specified, the system account will be used by default.
2717
+ :type User: str
2718
+ :param _Password: Specifies the password for the account.
2719
+ :type Password: str
2720
+ :param _CriticalLoad: Indicates that DDL will terminate if the number of running threads exceeds this value. Default is 58 if not specified.
2721
+ :type CriticalLoad: int
2722
+ :param _CheckAutoInc: Specifies whether to check auto-increment fields. If set to 1, modification of auto-increment fields is not allowed; if set to 0 or left empty, no check is performed.
2723
+ :type CheckAutoInc: int
2724
+ :param _MaxDelay: Allowed primary-secondary delay time (in seconds). If set to 0 or left empty, do not check delay.
2725
+ :type MaxDelay: int
2726
+ :param _UsePt: Indicates whether to use pt-osc tool for DDL.
2727
+ :type UsePt: int
2728
+ :param _StartTime: Start Execution Time
2729
+ :type StartTime: str
2730
+ """
2731
+ self._InstanceId = None
2732
+ self._Alter = None
2733
+ self._DbName = None
2734
+ self._Table = None
2735
+ self._User = None
2736
+ self._Password = None
2737
+ self._CriticalLoad = None
2738
+ self._CheckAutoInc = None
2739
+ self._MaxDelay = None
2740
+ self._UsePt = None
2741
+ self._StartTime = None
2742
+
2743
+ @property
2744
+ def InstanceId(self):
2745
+ """Instance ID
2746
+ :rtype: str
2747
+ """
2748
+ return self._InstanceId
2749
+
2750
+ @InstanceId.setter
2751
+ def InstanceId(self, InstanceId):
2752
+ self._InstanceId = InstanceId
2753
+
2754
+ @property
2755
+ def Alter(self):
2756
+ """Specifies the DDL statement to be executed. Common online DDL refer to this API documentation example section.
2757
+ :rtype: str
2758
+ """
2759
+ return self._Alter
2760
+
2761
+ @Alter.setter
2762
+ def Alter(self, Alter):
2763
+ self._Alter = Alter
2764
+
2765
+ @property
2766
+ def DbName(self):
2767
+ """Specifies the database to be modified.
2768
+ :rtype: str
2769
+ """
2770
+ return self._DbName
2771
+
2772
+ @DbName.setter
2773
+ def DbName(self, DbName):
2774
+ self._DbName = DbName
2775
+
2776
+ @property
2777
+ def Table(self):
2778
+ """Specifies the table to be modified.
2779
+ :rtype: str
2780
+ """
2781
+ return self._Table
2782
+
2783
+ @Table.setter
2784
+ def Table(self, Table):
2785
+ self._Table = Table
2786
+
2787
+ @property
2788
+ def User(self):
2789
+ """Specifies the account to execute DDL. Ensure the account has ALTER, CREATE, INSERT, UPDATE, DROP, DELETE, INDEX, CREATE TEMPORARY TABLES, LOCK TABLES, TRIGGER, REPLICATION CLIENT, REPLICATION SLAVE permissions. If not specified, the system account will be used by default.
2790
+ :rtype: str
2791
+ """
2792
+ return self._User
2793
+
2794
+ @User.setter
2795
+ def User(self, User):
2796
+ self._User = User
2797
+
2798
+ @property
2799
+ def Password(self):
2800
+ """Specifies the password for the account.
2801
+ :rtype: str
2802
+ """
2803
+ return self._Password
2804
+
2805
+ @Password.setter
2806
+ def Password(self, Password):
2807
+ self._Password = Password
2808
+
2809
+ @property
2810
+ def CriticalLoad(self):
2811
+ """Indicates that DDL will terminate if the number of running threads exceeds this value. Default is 58 if not specified.
2812
+ :rtype: int
2813
+ """
2814
+ return self._CriticalLoad
2815
+
2816
+ @CriticalLoad.setter
2817
+ def CriticalLoad(self, CriticalLoad):
2818
+ self._CriticalLoad = CriticalLoad
2819
+
2820
+ @property
2821
+ def CheckAutoInc(self):
2822
+ """Specifies whether to check auto-increment fields. If set to 1, modification of auto-increment fields is not allowed; if set to 0 or left empty, no check is performed.
2823
+ :rtype: int
2824
+ """
2825
+ return self._CheckAutoInc
2826
+
2827
+ @CheckAutoInc.setter
2828
+ def CheckAutoInc(self, CheckAutoInc):
2829
+ self._CheckAutoInc = CheckAutoInc
2830
+
2831
+ @property
2832
+ def MaxDelay(self):
2833
+ """Allowed primary-secondary delay time (in seconds). If set to 0 or left empty, do not check delay.
2834
+ :rtype: int
2835
+ """
2836
+ return self._MaxDelay
2837
+
2838
+ @MaxDelay.setter
2839
+ def MaxDelay(self, MaxDelay):
2840
+ self._MaxDelay = MaxDelay
2841
+
2842
+ @property
2843
+ def UsePt(self):
2844
+ """Indicates whether to use pt-osc tool for DDL.
2845
+ :rtype: int
2846
+ """
2847
+ return self._UsePt
2848
+
2849
+ @UsePt.setter
2850
+ def UsePt(self, UsePt):
2851
+ self._UsePt = UsePt
2852
+
2853
+ @property
2854
+ def StartTime(self):
2855
+ """Start Execution Time
2856
+ :rtype: str
2857
+ """
2858
+ return self._StartTime
2859
+
2860
+ @StartTime.setter
2861
+ def StartTime(self, StartTime):
2862
+ self._StartTime = StartTime
2863
+
2864
+
2865
+ def _deserialize(self, params):
2866
+ self._InstanceId = params.get("InstanceId")
2867
+ self._Alter = params.get("Alter")
2868
+ self._DbName = params.get("DbName")
2869
+ self._Table = params.get("Table")
2870
+ self._User = params.get("User")
2871
+ self._Password = params.get("Password")
2872
+ self._CriticalLoad = params.get("CriticalLoad")
2873
+ self._CheckAutoInc = params.get("CheckAutoInc")
2874
+ self._MaxDelay = params.get("MaxDelay")
2875
+ self._UsePt = params.get("UsePt")
2876
+ self._StartTime = params.get("StartTime")
2877
+ memeber_set = set(params.keys())
2878
+ for name, value in vars(self).items():
2879
+ property_name = name[1:]
2880
+ if property_name in memeber_set:
2881
+ memeber_set.remove(property_name)
2882
+ if len(memeber_set) > 0:
2883
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2884
+
2885
+
2886
+
2887
+ class CreateOnlineDDLJobResponse(AbstractModel):
2888
+ """CreateOnlineDDLJob response structure.
2889
+
2890
+ """
2891
+
2892
+ def __init__(self):
2893
+ r"""
2894
+ :param _FlowId: Online DDL task ID
2895
+ :type FlowId: int
2896
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2897
+ :type RequestId: str
2898
+ """
2899
+ self._FlowId = None
2900
+ self._RequestId = None
2901
+
2902
+ @property
2903
+ def FlowId(self):
2904
+ """Online DDL task ID
2905
+ :rtype: int
2906
+ """
2907
+ return self._FlowId
2908
+
2909
+ @FlowId.setter
2910
+ def FlowId(self, FlowId):
2911
+ self._FlowId = FlowId
2912
+
2913
+ @property
2914
+ def RequestId(self):
2915
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2916
+ :rtype: str
2917
+ """
2918
+ return self._RequestId
2919
+
2920
+ @RequestId.setter
2921
+ def RequestId(self, RequestId):
2922
+ self._RequestId = RequestId
2923
+
2924
+
2925
+ def _deserialize(self, params):
2926
+ self._FlowId = params.get("FlowId")
2927
+ self._RequestId = params.get("RequestId")
2928
+
2929
+
2701
2930
  class DBAccount(AbstractModel):
2702
2931
  """TencentDB account information
2703
2932
 
@@ -12726,6 +12726,245 @@ class SmartStructuralOCRV2Response(AbstractModel):
12726
12726
  self._RequestId = params.get("RequestId")
12727
12727
 
12728
12728
 
12729
+ class SmartStructuralProRequest(AbstractModel):
12730
+ """SmartStructuralPro request structure.
12731
+
12732
+ """
12733
+
12734
+ def __init__(self):
12735
+ r"""
12736
+ :param _ImageUrl: The URL of the image.
12737
+ Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
12738
+ Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
12739
+ We recommend that you store the image in Tencent Cloud for higher download speed and stability.
12740
+ The download speed and stability of non-Tencent Cloud URLs may be low.
12741
+ :type ImageUrl: str
12742
+ :param _ImageBase64: The Base64-encoded value of the image.
12743
+ Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
12744
+ Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
12745
+ Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
12746
+ :type ImageBase64: str
12747
+ :param _PdfPageNumber: The number of the PDF page that needs to be recognized. Only one single PDF page can be recognized. This parameter is valid if the uploaded file is a PDF `. Default value: `1`.
12748
+ :type PdfPageNumber: int
12749
+ :param _ItemNames: The names of the fields you want to return for the structured information recognition.
12750
+ For example, if you want to return only the recognition result of the "Name" and "Gender" fields, set this parameter as follows:
12751
+ ItemNames=["Name","Gender"]
12752
+ :type ItemNames: list of str
12753
+ :param _ReturnFullText: Whether to enable recognition of all fields.
12754
+ :type ReturnFullText: bool
12755
+ :param _ConfigId: Configuration ID support: General
12756
+ -- General scenarios; InvoiceEng
12757
+ -- Ocean bill of lading, international invoice template;
12758
+ -- Ocean shipment order template; WayBillEng
12759
+ -- CustomsDeclaration
12760
+ -- WeightNote
12761
+ -- MedicalMeter
12762
+ :type ConfigId: str
12763
+ :param _EnableCoord: Enable recognition of coordinate values in full-text fields
12764
+ :type EnableCoord: bool
12765
+ """
12766
+ self._ImageUrl = None
12767
+ self._ImageBase64 = None
12768
+ self._PdfPageNumber = None
12769
+ self._ItemNames = None
12770
+ self._ReturnFullText = None
12771
+ self._ConfigId = None
12772
+ self._EnableCoord = None
12773
+
12774
+ @property
12775
+ def ImageUrl(self):
12776
+ """The URL of the image.
12777
+ Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
12778
+ Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
12779
+ We recommend that you store the image in Tencent Cloud for higher download speed and stability.
12780
+ The download speed and stability of non-Tencent Cloud URLs may be low.
12781
+ :rtype: str
12782
+ """
12783
+ return self._ImageUrl
12784
+
12785
+ @ImageUrl.setter
12786
+ def ImageUrl(self, ImageUrl):
12787
+ self._ImageUrl = ImageUrl
12788
+
12789
+ @property
12790
+ def ImageBase64(self):
12791
+ """The Base64-encoded value of the image.
12792
+ Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
12793
+ Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
12794
+ Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
12795
+ :rtype: str
12796
+ """
12797
+ return self._ImageBase64
12798
+
12799
+ @ImageBase64.setter
12800
+ def ImageBase64(self, ImageBase64):
12801
+ self._ImageBase64 = ImageBase64
12802
+
12803
+ @property
12804
+ def PdfPageNumber(self):
12805
+ """The number of the PDF page that needs to be recognized. Only one single PDF page can be recognized. This parameter is valid if the uploaded file is a PDF `. Default value: `1`.
12806
+ :rtype: int
12807
+ """
12808
+ return self._PdfPageNumber
12809
+
12810
+ @PdfPageNumber.setter
12811
+ def PdfPageNumber(self, PdfPageNumber):
12812
+ self._PdfPageNumber = PdfPageNumber
12813
+
12814
+ @property
12815
+ def ItemNames(self):
12816
+ """The names of the fields you want to return for the structured information recognition.
12817
+ For example, if you want to return only the recognition result of the "Name" and "Gender" fields, set this parameter as follows:
12818
+ ItemNames=["Name","Gender"]
12819
+ :rtype: list of str
12820
+ """
12821
+ return self._ItemNames
12822
+
12823
+ @ItemNames.setter
12824
+ def ItemNames(self, ItemNames):
12825
+ self._ItemNames = ItemNames
12826
+
12827
+ @property
12828
+ def ReturnFullText(self):
12829
+ """Whether to enable recognition of all fields.
12830
+ :rtype: bool
12831
+ """
12832
+ return self._ReturnFullText
12833
+
12834
+ @ReturnFullText.setter
12835
+ def ReturnFullText(self, ReturnFullText):
12836
+ self._ReturnFullText = ReturnFullText
12837
+
12838
+ @property
12839
+ def ConfigId(self):
12840
+ """Configuration ID support: General
12841
+ -- General scenarios; InvoiceEng
12842
+ -- Ocean bill of lading, international invoice template;
12843
+ -- Ocean shipment order template; WayBillEng
12844
+ -- CustomsDeclaration
12845
+ -- WeightNote
12846
+ -- MedicalMeter
12847
+ :rtype: str
12848
+ """
12849
+ return self._ConfigId
12850
+
12851
+ @ConfigId.setter
12852
+ def ConfigId(self, ConfigId):
12853
+ self._ConfigId = ConfigId
12854
+
12855
+ @property
12856
+ def EnableCoord(self):
12857
+ """Enable recognition of coordinate values in full-text fields
12858
+ :rtype: bool
12859
+ """
12860
+ return self._EnableCoord
12861
+
12862
+ @EnableCoord.setter
12863
+ def EnableCoord(self, EnableCoord):
12864
+ self._EnableCoord = EnableCoord
12865
+
12866
+
12867
+ def _deserialize(self, params):
12868
+ self._ImageUrl = params.get("ImageUrl")
12869
+ self._ImageBase64 = params.get("ImageBase64")
12870
+ self._PdfPageNumber = params.get("PdfPageNumber")
12871
+ self._ItemNames = params.get("ItemNames")
12872
+ self._ReturnFullText = params.get("ReturnFullText")
12873
+ self._ConfigId = params.get("ConfigId")
12874
+ self._EnableCoord = params.get("EnableCoord")
12875
+ memeber_set = set(params.keys())
12876
+ for name, value in vars(self).items():
12877
+ property_name = name[1:]
12878
+ if property_name in memeber_set:
12879
+ memeber_set.remove(property_name)
12880
+ if len(memeber_set) > 0:
12881
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12882
+
12883
+
12884
+
12885
+ class SmartStructuralProResponse(AbstractModel):
12886
+ """SmartStructuralPro response structure.
12887
+
12888
+ """
12889
+
12890
+ def __init__(self):
12891
+ r"""
12892
+ :param _Angle: The rotation angle (degrees) of the text on the image. 0: The text is horizontal. Positive value: The text is rotated clockwise. Negative value: The text is rotated counterclockwise.
12893
+ :type Angle: float
12894
+ :param _StructuralList: The structural information (key-value).
12895
+ :type StructuralList: list of GroupInfo
12896
+ :param _WordList: The recognized text information.
12897
+ :type WordList: list of WordItem
12898
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
12899
+ :type RequestId: str
12900
+ """
12901
+ self._Angle = None
12902
+ self._StructuralList = None
12903
+ self._WordList = None
12904
+ self._RequestId = None
12905
+
12906
+ @property
12907
+ def Angle(self):
12908
+ """The rotation angle (degrees) of the text on the image. 0: The text is horizontal. Positive value: The text is rotated clockwise. Negative value: The text is rotated counterclockwise.
12909
+ :rtype: float
12910
+ """
12911
+ return self._Angle
12912
+
12913
+ @Angle.setter
12914
+ def Angle(self, Angle):
12915
+ self._Angle = Angle
12916
+
12917
+ @property
12918
+ def StructuralList(self):
12919
+ """The structural information (key-value).
12920
+ :rtype: list of GroupInfo
12921
+ """
12922
+ return self._StructuralList
12923
+
12924
+ @StructuralList.setter
12925
+ def StructuralList(self, StructuralList):
12926
+ self._StructuralList = StructuralList
12927
+
12928
+ @property
12929
+ def WordList(self):
12930
+ """The recognized text information.
12931
+ :rtype: list of WordItem
12932
+ """
12933
+ return self._WordList
12934
+
12935
+ @WordList.setter
12936
+ def WordList(self, WordList):
12937
+ self._WordList = WordList
12938
+
12939
+ @property
12940
+ def RequestId(self):
12941
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
12942
+ :rtype: str
12943
+ """
12944
+ return self._RequestId
12945
+
12946
+ @RequestId.setter
12947
+ def RequestId(self, RequestId):
12948
+ self._RequestId = RequestId
12949
+
12950
+
12951
+ def _deserialize(self, params):
12952
+ self._Angle = params.get("Angle")
12953
+ if params.get("StructuralList") is not None:
12954
+ self._StructuralList = []
12955
+ for item in params.get("StructuralList"):
12956
+ obj = GroupInfo()
12957
+ obj._deserialize(item)
12958
+ self._StructuralList.append(obj)
12959
+ if params.get("WordList") is not None:
12960
+ self._WordList = []
12961
+ for item in params.get("WordList"):
12962
+ obj = WordItem()
12963
+ obj._deserialize(item)
12964
+ self._WordList.append(obj)
12965
+ self._RequestId = params.get("RequestId")
12966
+
12967
+
12729
12968
  class TableCellInfo(AbstractModel):
12730
12969
  """Cell data
12731
12970
 
@@ -864,6 +864,31 @@ class OcrClient(AbstractClient):
864
864
  raise TencentCloudSDKException(type(e).__name__, str(e))
865
865
 
866
866
 
867
+ def SmartStructuralPro(self, request):
868
+ """This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information. It is flexible and efficient to use, without any configuration required. This API is suitable for recognizing structured information.
869
+
870
+ A maximum of 10 requests can be initiated per second for this API.
871
+
872
+ :param request: Request instance for SmartStructuralPro.
873
+ :type request: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProRequest`
874
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProResponse`
875
+
876
+ """
877
+ try:
878
+ params = request._serialize()
879
+ headers = request.headers
880
+ body = self.call("SmartStructuralPro", params, headers=headers)
881
+ response = json.loads(body)
882
+ model = models.SmartStructuralProResponse()
883
+ model._deserialize(response["Response"])
884
+ return model
885
+ except Exception as e:
886
+ if isinstance(e, TencentCloudSDKException):
887
+ raise
888
+ else:
889
+ raise TencentCloudSDKException(type(e).__name__, str(e))
890
+
891
+
867
892
  def TableOCR(self, request):
868
893
  """This API is used to detect and recognize Chinese and English forms in images. It can return the text content of each cell and save the recognition result as Excel.
869
894
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-intl-en
3
- Version: 3.0.1113
3
+ Version: 3.0.1115
4
4
  Summary: Tencent Cloud SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python-intl-en
6
6
  Author: Tencent Cloud
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=lczdNjiR8CYjFjCf8Y52p7NTpbV_l2ZGYOLgZ6B3uak,630
1
+ tencentcloud/__init__.py,sha256=5g9BfqXOTC__sCFixsAIycIG6tJ-CnDqKNvSejZjZ58,630
2
2
  tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/advisor/v20200721/advisor_client.py,sha256=b5pLP_oF5HZHo4xbn-hI4dkpnirhcHB2rNDWvGf4q1Y,2919
@@ -176,7 +176,7 @@ tencentcloud/cvm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
176
176
  tencentcloud/cvm/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
177
177
  tencentcloud/cvm/v20170312/cvm_client.py,sha256=I6g0W63L_O3AkgADmtruN_O0uyuP-BRV3_oMF-lxTxI,91118
178
178
  tencentcloud/cvm/v20170312/errorcodes.py,sha256=YOQ62O6pbrK1Mv-0KpagJZmrYD2zxreMJI4_MGajKpI,52320
179
- tencentcloud/cvm/v20170312/models.py,sha256=YPjGcuQ48k_a4xrj_xSI6b7IAZ8-GerAAmvLa3NHqI4,713165
179
+ tencentcloud/cvm/v20170312/models.py,sha256=os0q1yVkN31puXAa_pDo4vgmDM3SnlBHu9UTC5551bo,714441
180
180
  tencentcloud/cwp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
181
181
  tencentcloud/cwp/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
182
182
  tencentcloud/cwp/v20180228/cwp_client.py,sha256=XlAOIbfCE2PH5kdpATOrUkuE7eZd74lqbvhm2UDECi0,444132
@@ -213,9 +213,9 @@ tencentcloud/dc/v20180410/errorcodes.py,sha256=238NHom7_29xa7eiN8SO3wV-XknqVvsNR
213
213
  tencentcloud/dc/v20180410/models.py,sha256=X1Sb9ZETFPgHcRNd4IqSodg3mf4yoo9sMdi9oqTnmiM,144067
214
214
  tencentcloud/dcdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
215
215
  tencentcloud/dcdb/v20180411/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
216
- tencentcloud/dcdb/v20180411/dcdb_client.py,sha256=Z8x9jE-E-FxeUoUL8T1ehAOuZOrk6dk2wiIn_Vlht-w,60396
217
- tencentcloud/dcdb/v20180411/errorcodes.py,sha256=Taa1dOygl25X2hIU5fEjAhBEmk_iRWukJx-OrVVm2W4,14587
218
- tencentcloud/dcdb/v20180411/models.py,sha256=59uQzKc2NpjQWTHw3szE7_1_lUaxHQ6DRMauv8_njfs,453660
216
+ tencentcloud/dcdb/v20180411/dcdb_client.py,sha256=il0XYm-gxc529-hTkj3go0-SW1tFi0rt-Sk3TCLeWL0,61300
217
+ tencentcloud/dcdb/v20180411/errorcodes.py,sha256=sy5IxLJfrzce2pmPMoeNp0whbhjKuP2zM1ulJEgkGiY,14690
218
+ tencentcloud/dcdb/v20180411/models.py,sha256=ZTHzucYo2mdmWM4ojB7EX_TauUlgmPtsg4fKZkVazZc,461094
219
219
  tencentcloud/dlc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
220
220
  tencentcloud/dlc/v20210125/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
221
221
  tencentcloud/dlc/v20210125/dlc_client.py,sha256=WciK7LBhYBtJBrglVyNsFsWtNaL7xAVKQwcKlpr9rX4,96612
@@ -398,8 +398,8 @@ tencentcloud/msp/v20180319/msp_client.py,sha256=XkSbJuPDAeY7elyJ5ByR2wNL0HiFO6Xa
398
398
  tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
399
399
  tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
400
400
  tencentcloud/ocr/v20181119/errorcodes.py,sha256=4bl4FoPZOHDUIks9THo8XOHYqWBU_oFslKTHUZe011w,3852
401
- tencentcloud/ocr/v20181119/models.py,sha256=F6pL5PF8hwK9BbFBfWK7uEG1gQXonn4tpriOtN-Y32M,516176
402
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=6md0GYyWPbbna3K1H7YHJ7djXy71m2NovSh9HIMBvhs,43894
401
+ tencentcloud/ocr/v20181119/models.py,sha256=DBK6qEt0jEs1nNwGZizSzOhIwaZKxixCNW2tS2_nCRM,525317
402
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=1abm7UU8ME_lhHcUb3YQ7wQfbZtuAdr7NbtQTXfoHi4,45079
403
403
  tencentcloud/omics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
404
404
  tencentcloud/omics/v20221128/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
405
405
  tencentcloud/omics/v20221128/errorcodes.py,sha256=VEkh5arAi4YIbf5y4krDS23zC6KcL6WnOxhpPLsiCGc,4862
@@ -614,7 +614,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
614
614
  tencentcloud/yunjing/v20180228/errorcodes.py,sha256=VEqwMbMBe7F2oAW6ZDu3vAivBr60lbo7FWduFqRTEVg,3195
615
615
  tencentcloud/yunjing/v20180228/models.py,sha256=0rnsJ4JkA5aCTV1cVwCuKnzooe6IhQ0NS3ij6tJ22uw,330670
616
616
  tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=GA7Fo5GmpEJ2kufV2upw-ZpMZxznsPZ3NKDKDDAI4Ao,67384
617
- tencentcloud_sdk_python_intl_en-3.0.1113.dist-info/METADATA,sha256=9KTddfBpfBe1nHM7MYPaIyN1mlQgbqiP6dJCoo12KEg,1628
618
- tencentcloud_sdk_python_intl_en-3.0.1113.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
619
- tencentcloud_sdk_python_intl_en-3.0.1113.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
620
- tencentcloud_sdk_python_intl_en-3.0.1113.dist-info/RECORD,,
617
+ tencentcloud_sdk_python_intl_en-3.0.1115.dist-info/METADATA,sha256=OQwNOHQXL666pWAg-W5sopY293WduPIWs8sKQdAU6JI,1628
618
+ tencentcloud_sdk_python_intl_en-3.0.1115.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
619
+ tencentcloud_sdk_python_intl_en-3.0.1115.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
620
+ tencentcloud_sdk_python_intl_en-3.0.1115.dist-info/RECORD,,