tencentcloud-sdk-python-intl-en 3.0.1266__py2.py3-none-any.whl → 3.0.1267__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 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.1266'
16
+ __version__ = '3.0.1267'
@@ -1200,6 +1200,31 @@ class CvmClient(AbstractClient):
1200
1200
  raise TencentCloudSDKException(type(e).__name__, str(e))
1201
1201
 
1202
1202
 
1203
+ def InquiryPriceRenewInstances(self, request):
1204
+ """This API is used to inquire about the price for renewing a monthly subscription instance.
1205
+
1206
+ This API is used to query the renewal price of monthly subscription instances.
1207
+
1208
+ :param request: Request instance for InquiryPriceRenewInstances.
1209
+ :type request: :class:`tencentcloud.cvm.v20170312.models.InquiryPriceRenewInstancesRequest`
1210
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.InquiryPriceRenewInstancesResponse`
1211
+
1212
+ """
1213
+ try:
1214
+ params = request._serialize()
1215
+ headers = request.headers
1216
+ body = self.call("InquiryPriceRenewInstances", params, headers=headers)
1217
+ response = json.loads(body)
1218
+ model = models.InquiryPriceRenewInstancesResponse()
1219
+ model._deserialize(response["Response"])
1220
+ return model
1221
+ except Exception as e:
1222
+ if isinstance(e, TencentCloudSDKException):
1223
+ raise
1224
+ else:
1225
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1226
+
1227
+
1203
1228
  def InquiryPriceResetInstance(self, request):
1204
1229
  """This API is used to inquire about the price for reinstalling an instance.
1205
1230
 
@@ -1708,6 +1733,33 @@ class CvmClient(AbstractClient):
1708
1733
  raise TencentCloudSDKException(type(e).__name__, str(e))
1709
1734
 
1710
1735
 
1736
+ def RenewInstances(self, request):
1737
+ """This API is used to renew annual and monthly subscription instances.
1738
+
1739
+ This API is used to operate on monthly subscription instances only.
1740
+ This API is used to ensure your account balance is sufficient for renewal. You can check the balance via the DescribeAccountBalance API (https://www.tencentcloud.comom/document/product/555/20253?from_cn_redirect=1).
1741
+ * You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
1742
+
1743
+ :param request: Request instance for RenewInstances.
1744
+ :type request: :class:`tencentcloud.cvm.v20170312.models.RenewInstancesRequest`
1745
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.RenewInstancesResponse`
1746
+
1747
+ """
1748
+ try:
1749
+ params = request._serialize()
1750
+ headers = request.headers
1751
+ body = self.call("RenewInstances", params, headers=headers)
1752
+ response = json.loads(body)
1753
+ model = models.RenewInstancesResponse()
1754
+ model._deserialize(response["Response"])
1755
+ return model
1756
+ except Exception as e:
1757
+ if isinstance(e, TencentCloudSDKException):
1758
+ raise
1759
+ else:
1760
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1761
+
1762
+
1711
1763
  def ResetInstance(self, request):
1712
1764
  """This API (ResetInstance) is used to reinstall the operating system on a specified instance.
1713
1765
 
@@ -410,6 +410,9 @@ INVALIDPARAMETERVALUE_INCORRECTFORMAT = 'InvalidParameterValue.IncorrectFormat'
410
410
  # Invalid instance ID. Please enter a valid ID, such as ins-xxxxxxxx (“x” represents a lower-case letter or a number).
411
411
  INVALIDPARAMETERVALUE_INSTANCEIDMALFORMED = 'InvalidParameterValue.InstanceIdMalformed'
412
412
 
413
+ # Operation not supported for instances with different billing modes.
414
+ INVALIDPARAMETERVALUE_INSTANCENOTSUPPORTEDMIXPRICINGMODEL = 'InvalidParameterValue.InstanceNotSupportedMixPricingModel'
415
+
413
416
  # The specified instance type does not exist.
414
417
  INVALIDPARAMETERVALUE_INSTANCETYPENOTFOUND = 'InvalidParameterValue.InstanceTypeNotFound'
415
418
 
@@ -815,6 +818,9 @@ RESOURCENOTFOUND_NODEFAULTCBS = 'ResourceNotFound.NoDefaultCbs'
815
818
  # No default CBS resources are available.
816
819
  RESOURCENOTFOUND_NODEFAULTCBSWITHREASON = 'ResourceNotFound.NoDefaultCbsWithReason'
817
820
 
821
+ # Resources are unavailable.
822
+ RESOURCEUNAVAILABLE = 'ResourceUnavailable'
823
+
818
824
  # This instance type is unavailable in the availability zone.
819
825
  RESOURCEUNAVAILABLE_INSTANCETYPE = 'ResourceUnavailable.InstanceType'
820
826
 
@@ -899,6 +905,9 @@ UNSUPPORTEDOPERATION_INSTANCECHARGETYPE = 'UnsupportedOperation.InstanceChargeTy
899
905
  # A mixed payment mode is not supported.
900
906
  UNSUPPORTEDOPERATION_INSTANCEMIXEDPRICINGMODEL = 'UnsupportedOperation.InstanceMixedPricingModel'
901
907
 
908
+ # Central AZ and edge zone instances cannot be mixed in batch operation.
909
+ UNSUPPORTEDOPERATION_INSTANCEMIXEDZONETYPE = 'UnsupportedOperation.InstanceMixedZoneType'
910
+
902
911
  # The specified instance does not support operating system switching.
903
912
  UNSUPPORTEDOPERATION_INSTANCEOSCONVERTOSNOTSUPPORT = 'UnsupportedOperation.InstanceOsConvertOsNotSupport'
904
913
 
@@ -992,6 +1001,9 @@ UNSUPPORTEDOPERATION_INVALIDDATADISK = 'UnsupportedOperation.InvalidDataDisk'
992
1001
  # The specified disk is not supported.
993
1002
  UNSUPPORTEDOPERATION_INVALIDDISK = 'UnsupportedOperation.InvalidDisk'
994
1003
 
1004
+ # Cloud block storage does not support backup points.
1005
+ UNSUPPORTEDOPERATION_INVALIDDISKBACKUPQUOTA = 'UnsupportedOperation.InvalidDiskBackupQuota'
1006
+
995
1007
  #
996
1008
  UNSUPPORTEDOPERATION_INVALIDDISKFASTROLLBACK = 'UnsupportedOperation.InvalidDiskFastRollback'
997
1009
 
@@ -9091,6 +9091,134 @@ class InquirePricePurchaseReservedInstancesOfferingResponse(AbstractModel):
9091
9091
  self._RequestId = params.get("RequestId")
9092
9092
 
9093
9093
 
9094
+ class InquiryPriceRenewInstancesRequest(AbstractModel):
9095
+ """InquiryPriceRenewInstances request structure.
9096
+
9097
+ """
9098
+
9099
+ def __init__(self):
9100
+ r"""
9101
+ :param _InstanceIds: One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
9102
+ :type InstanceIds: list of str
9103
+ :param _InstanceChargePrepaid: Prepaid mode, that is, monthly subscription-related parameter settings. You can specify attributes of a monthly subscription instance, such as purchase duration and whether to set auto-renewal, through this parameter.
9104
+ :type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
9105
+ :param _DryRun: Trial run, for testing purposes, does not execute specific logic. valid values: <li>`true`: skip execution logic</li> <li>`false`: execute logic</li> default value: `false`.
9106
+ :type DryRun: bool
9107
+ :param _RenewPortableDataDisk: Whether to renew the elastic data disk. valid values:<br><li>true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneously</li><li>false: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk</li><br>default value: true.
9108
+ :type RenewPortableDataDisk: bool
9109
+ """
9110
+ self._InstanceIds = None
9111
+ self._InstanceChargePrepaid = None
9112
+ self._DryRun = None
9113
+ self._RenewPortableDataDisk = None
9114
+
9115
+ @property
9116
+ def InstanceIds(self):
9117
+ """One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
9118
+ :rtype: list of str
9119
+ """
9120
+ return self._InstanceIds
9121
+
9122
+ @InstanceIds.setter
9123
+ def InstanceIds(self, InstanceIds):
9124
+ self._InstanceIds = InstanceIds
9125
+
9126
+ @property
9127
+ def InstanceChargePrepaid(self):
9128
+ """Prepaid mode, that is, monthly subscription-related parameter settings. You can specify attributes of a monthly subscription instance, such as purchase duration and whether to set auto-renewal, through this parameter.
9129
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
9130
+ """
9131
+ return self._InstanceChargePrepaid
9132
+
9133
+ @InstanceChargePrepaid.setter
9134
+ def InstanceChargePrepaid(self, InstanceChargePrepaid):
9135
+ self._InstanceChargePrepaid = InstanceChargePrepaid
9136
+
9137
+ @property
9138
+ def DryRun(self):
9139
+ """Trial run, for testing purposes, does not execute specific logic. valid values: <li>`true`: skip execution logic</li> <li>`false`: execute logic</li> default value: `false`.
9140
+ :rtype: bool
9141
+ """
9142
+ return self._DryRun
9143
+
9144
+ @DryRun.setter
9145
+ def DryRun(self, DryRun):
9146
+ self._DryRun = DryRun
9147
+
9148
+ @property
9149
+ def RenewPortableDataDisk(self):
9150
+ """Whether to renew the elastic data disk. valid values:<br><li>true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneously</li><li>false: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk</li><br>default value: true.
9151
+ :rtype: bool
9152
+ """
9153
+ return self._RenewPortableDataDisk
9154
+
9155
+ @RenewPortableDataDisk.setter
9156
+ def RenewPortableDataDisk(self, RenewPortableDataDisk):
9157
+ self._RenewPortableDataDisk = RenewPortableDataDisk
9158
+
9159
+
9160
+ def _deserialize(self, params):
9161
+ self._InstanceIds = params.get("InstanceIds")
9162
+ if params.get("InstanceChargePrepaid") is not None:
9163
+ self._InstanceChargePrepaid = InstanceChargePrepaid()
9164
+ self._InstanceChargePrepaid._deserialize(params.get("InstanceChargePrepaid"))
9165
+ self._DryRun = params.get("DryRun")
9166
+ self._RenewPortableDataDisk = params.get("RenewPortableDataDisk")
9167
+ memeber_set = set(params.keys())
9168
+ for name, value in vars(self).items():
9169
+ property_name = name[1:]
9170
+ if property_name in memeber_set:
9171
+ memeber_set.remove(property_name)
9172
+ if len(memeber_set) > 0:
9173
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9174
+
9175
+
9176
+
9177
+ class InquiryPriceRenewInstancesResponse(AbstractModel):
9178
+ """InquiryPriceRenewInstances response structure.
9179
+
9180
+ """
9181
+
9182
+ def __init__(self):
9183
+ r"""
9184
+ :param _Price: This parameter indicates the price for the corresponding configuration instance.
9185
+ :type Price: :class:`tencentcloud.cvm.v20170312.models.Price`
9186
+ :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.
9187
+ :type RequestId: str
9188
+ """
9189
+ self._Price = None
9190
+ self._RequestId = None
9191
+
9192
+ @property
9193
+ def Price(self):
9194
+ """This parameter indicates the price for the corresponding configuration instance.
9195
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.Price`
9196
+ """
9197
+ return self._Price
9198
+
9199
+ @Price.setter
9200
+ def Price(self, Price):
9201
+ self._Price = Price
9202
+
9203
+ @property
9204
+ def RequestId(self):
9205
+ """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.
9206
+ :rtype: str
9207
+ """
9208
+ return self._RequestId
9209
+
9210
+ @RequestId.setter
9211
+ def RequestId(self, RequestId):
9212
+ self._RequestId = RequestId
9213
+
9214
+
9215
+ def _deserialize(self, params):
9216
+ if params.get("Price") is not None:
9217
+ self._Price = Price()
9218
+ self._Price._deserialize(params.get("Price"))
9219
+ self._RequestId = params.get("RequestId")
9220
+
9221
+
9094
9222
  class InquiryPriceResetInstanceRequest(AbstractModel):
9095
9223
  """InquiryPriceResetInstance request structure.
9096
9224
 
@@ -14999,6 +15127,104 @@ class RemoveChcDeployVpcResponse(AbstractModel):
14999
15127
  self._RequestId = params.get("RequestId")
15000
15128
 
15001
15129
 
15130
+ class RenewInstancesRequest(AbstractModel):
15131
+ """RenewInstances request structure.
15132
+
15133
+ """
15134
+
15135
+ def __init__(self):
15136
+ r"""
15137
+ :param _InstanceIds: One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
15138
+ :type InstanceIds: list of str
15139
+ :param _InstanceChargePrepaid: Prepaid mode, that is, parameter settings related to monthly/annual subscription. specifies attributes of a monthly subscription instance, such as renewal duration and whether to enable auto-renewal, by specifying this parameter. <dx-alert infotype="explain" title="">.
15140
+ Annual and monthly subscription instances. this parameter is a required parameter.</dx-alert>.
15141
+ :type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
15142
+ :param _RenewPortableDataDisk: Whether to renew the elastic data disk. valid values:<br><li>true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneously</li><li>false: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk</li><br>default value: true.
15143
+ :type RenewPortableDataDisk: bool
15144
+ """
15145
+ self._InstanceIds = None
15146
+ self._InstanceChargePrepaid = None
15147
+ self._RenewPortableDataDisk = None
15148
+
15149
+ @property
15150
+ def InstanceIds(self):
15151
+ """One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.comom/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.
15152
+ :rtype: list of str
15153
+ """
15154
+ return self._InstanceIds
15155
+
15156
+ @InstanceIds.setter
15157
+ def InstanceIds(self, InstanceIds):
15158
+ self._InstanceIds = InstanceIds
15159
+
15160
+ @property
15161
+ def InstanceChargePrepaid(self):
15162
+ """Prepaid mode, that is, parameter settings related to monthly/annual subscription. specifies attributes of a monthly subscription instance, such as renewal duration and whether to enable auto-renewal, by specifying this parameter. <dx-alert infotype="explain" title="">.
15163
+ Annual and monthly subscription instances. this parameter is a required parameter.</dx-alert>.
15164
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
15165
+ """
15166
+ return self._InstanceChargePrepaid
15167
+
15168
+ @InstanceChargePrepaid.setter
15169
+ def InstanceChargePrepaid(self, InstanceChargePrepaid):
15170
+ self._InstanceChargePrepaid = InstanceChargePrepaid
15171
+
15172
+ @property
15173
+ def RenewPortableDataDisk(self):
15174
+ """Whether to renew the elastic data disk. valid values:<br><li>true: indicates renewing the annual and monthly subscription instance and its mounted elastic data disk simultaneously</li><li>false: indicates renewing the annual and monthly subscription instance while no longer renewing its mounted elastic data disk</li><br>default value: true.
15175
+ :rtype: bool
15176
+ """
15177
+ return self._RenewPortableDataDisk
15178
+
15179
+ @RenewPortableDataDisk.setter
15180
+ def RenewPortableDataDisk(self, RenewPortableDataDisk):
15181
+ self._RenewPortableDataDisk = RenewPortableDataDisk
15182
+
15183
+
15184
+ def _deserialize(self, params):
15185
+ self._InstanceIds = params.get("InstanceIds")
15186
+ if params.get("InstanceChargePrepaid") is not None:
15187
+ self._InstanceChargePrepaid = InstanceChargePrepaid()
15188
+ self._InstanceChargePrepaid._deserialize(params.get("InstanceChargePrepaid"))
15189
+ self._RenewPortableDataDisk = params.get("RenewPortableDataDisk")
15190
+ memeber_set = set(params.keys())
15191
+ for name, value in vars(self).items():
15192
+ property_name = name[1:]
15193
+ if property_name in memeber_set:
15194
+ memeber_set.remove(property_name)
15195
+ if len(memeber_set) > 0:
15196
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15197
+
15198
+
15199
+
15200
+ class RenewInstancesResponse(AbstractModel):
15201
+ """RenewInstances response structure.
15202
+
15203
+ """
15204
+
15205
+ def __init__(self):
15206
+ r"""
15207
+ :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.
15208
+ :type RequestId: str
15209
+ """
15210
+ self._RequestId = None
15211
+
15212
+ @property
15213
+ def RequestId(self):
15214
+ """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.
15215
+ :rtype: str
15216
+ """
15217
+ return self._RequestId
15218
+
15219
+ @RequestId.setter
15220
+ def RequestId(self, RequestId):
15221
+ self._RequestId = RequestId
15222
+
15223
+
15224
+ def _deserialize(self, params):
15225
+ self._RequestId = params.get("RequestId")
15226
+
15227
+
15002
15228
  class ReservedInstanceConfigInfoItem(AbstractModel):
15003
15229
  """Static configurations of the reserved instance.
15004
15230
 
@@ -522,28 +522,20 @@ Default value: 1
522
522
  4: Motion- and reflection-based liveness detection
523
523
  Default value: 4
524
524
  :type SecurityLevel: int
525
- :param _IdCardType: The identity document type. Valid values:
526
- 1. HK (default): Identity card of Hong Kong (China)
527
- 2. ML: Malaysian identity card
528
- 3. IndonesiaIDCard: Indonesian identity card
529
- 4. PhilippinesVoteID: Philippine voters ID card
530
- 5. PhilippinesDrivingLicense: Philippine driver's license
531
- 6. PhilippinesTinID: Philippine TIN ID card
532
- 7. PhilippinesSSSID: Philippine SSS ID card
533
- 8. PhilippinesUMID: Philippine UMID card
534
- 9. MLIDPassport: Passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions
535
- 10..MacaoIDCard: Macao ID Card
536
- 11.ThailandIDCard: Thailand ID Card
537
- 12.MainlandIDCard: Mainland ID Card
538
- 13.SingaporeIDCard: Singapore ID Card
539
- 14.JapanIDCard: Japan ID Card
540
- 15.MLDrivingLicense: Malaysian Driving License
541
- 16.IndonesiaDrivingLicense: Indonesia Driving License
542
- 17.ThailandDrivingLicense: Thailand Driving License
543
- 18.SingaporeDrivingLicense: Singapore Driving License
544
- 19.JapanDrivingLicense: Japan Driving License
545
- 20.TaiWanIDCard:Taiwan ID Card
546
- 21.HMTPermit: exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan
525
+ :param _IdCardType: Card Types Supported for Authentication: Currently supported types are as follows:
526
+ 1.HK (Default): Hong Kong (China) Identity Card
527
+ 2.ML: Malaysia Identity Card
528
+ 3.IndonesiaIDCard: Indonesia Identity Card
529
+ 4.PhilippinesVoteID: Philippines Voter ID
530
+ 5.PhilippinesDrivingLicense: Philippines Driving License
531
+ 6.PhilippinesTinID: Philippines Tin ID
532
+ 7.PhilippinesSSSID: Philippines SSS ID
533
+ 8.PhilippinesUMID: Philippines UMID
534
+ 9.MLIDPassport: Passports of Hong Kong, Macao, Taiwan Regions (China) and Foreign Countries
535
+ 10.ThailandIDCard: Thailand Identity Card
536
+ 11.MainlandIDCard: Mainland China Identity Card
537
+ 12.SingaporeIDCard: Singapore Identity Card
538
+ 13.HMTPermit: Exit-Entry Permit for Travel to and from Hong Kong, Macao and Taiwan (China)
547
539
  :type IdCardType: str
548
540
  :param _CompareImage: The Base64-encoded value of the photo to compare, which is required only when `CheckMode` is set to `2`.
549
541
  :type CompareImage: str
@@ -556,6 +548,8 @@ This feature applies only to Hong Kong (China) identity cards, Malaysian identit
556
548
  :type DisableCheckOcrWarnings: bool
557
549
  :param _Extra: A passthrough field, which is returned together with the verification result and can contain up to 1,024 bits.
558
550
  :type Extra: str
551
+ :param _SdkVersion: ENHANCED: Enhanced Version, BASIC: Basic Version (Default)
552
+ :type SdkVersion: str
559
553
  :param _ActionList: This interface is used to control th action sequences.
560
554
  Action types are as follows:
561
555
  "blink"
@@ -576,6 +570,7 @@ The default value is blink. The different action types passed in this parameter
576
570
  self._DisableChangeOcrResult = None
577
571
  self._DisableCheckOcrWarnings = None
578
572
  self._Extra = None
573
+ self._SdkVersion = None
579
574
  self._ActionList = None
580
575
 
581
576
  @property
@@ -611,28 +606,20 @@ Default value: 4
611
606
 
612
607
  @property
613
608
  def IdCardType(self):
614
- """The identity document type. Valid values:
615
- 1. HK (default): Identity card of Hong Kong (China)
616
- 2. ML: Malaysian identity card
617
- 3. IndonesiaIDCard: Indonesian identity card
618
- 4. PhilippinesVoteID: Philippine voters ID card
619
- 5. PhilippinesDrivingLicense: Philippine driver's license
620
- 6. PhilippinesTinID: Philippine TIN ID card
621
- 7. PhilippinesSSSID: Philippine SSS ID card
622
- 8. PhilippinesUMID: Philippine UMID card
623
- 9. MLIDPassport: Passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions
624
- 10..MacaoIDCard: Macao ID Card
625
- 11.ThailandIDCard: Thailand ID Card
626
- 12.MainlandIDCard: Mainland ID Card
627
- 13.SingaporeIDCard: Singapore ID Card
628
- 14.JapanIDCard: Japan ID Card
629
- 15.MLDrivingLicense: Malaysian Driving License
630
- 16.IndonesiaDrivingLicense: Indonesia Driving License
631
- 17.ThailandDrivingLicense: Thailand Driving License
632
- 18.SingaporeDrivingLicense: Singapore Driving License
633
- 19.JapanDrivingLicense: Japan Driving License
634
- 20.TaiWanIDCard:Taiwan ID Card
635
- 21.HMTPermit: exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan
609
+ """Card Types Supported for Authentication: Currently supported types are as follows:
610
+ 1.HK (Default): Hong Kong (China) Identity Card
611
+ 2.ML: Malaysia Identity Card
612
+ 3.IndonesiaIDCard: Indonesia Identity Card
613
+ 4.PhilippinesVoteID: Philippines Voter ID
614
+ 5.PhilippinesDrivingLicense: Philippines Driving License
615
+ 6.PhilippinesTinID: Philippines Tin ID
616
+ 7.PhilippinesSSSID: Philippines SSS ID
617
+ 8.PhilippinesUMID: Philippines UMID
618
+ 9.MLIDPassport: Passports of Hong Kong, Macao, Taiwan Regions (China) and Foreign Countries
619
+ 10.ThailandIDCard: Thailand Identity Card
620
+ 11.MainlandIDCard: Mainland China Identity Card
621
+ 12.SingaporeIDCard: Singapore Identity Card
622
+ 13.HMTPermit: Exit-Entry Permit for Travel to and from Hong Kong, Macao and Taiwan (China)
636
623
  :rtype: str
637
624
  """
638
625
  return self._IdCardType
@@ -701,6 +688,17 @@ This feature applies only to Hong Kong (China) identity cards, Malaysian identit
701
688
  def Extra(self, Extra):
702
689
  self._Extra = Extra
703
690
 
691
+ @property
692
+ def SdkVersion(self):
693
+ """ENHANCED: Enhanced Version, BASIC: Basic Version (Default)
694
+ :rtype: str
695
+ """
696
+ return self._SdkVersion
697
+
698
+ @SdkVersion.setter
699
+ def SdkVersion(self, SdkVersion):
700
+ self._SdkVersion = SdkVersion
701
+
704
702
  @property
705
703
  def ActionList(self):
706
704
  """This interface is used to control th action sequences.
@@ -731,6 +729,7 @@ The default value is blink. The different action types passed in this parameter
731
729
  self._DisableChangeOcrResult = params.get("DisableChangeOcrResult")
732
730
  self._DisableCheckOcrWarnings = params.get("DisableCheckOcrWarnings")
733
731
  self._Extra = params.get("Extra")
732
+ self._SdkVersion = params.get("SdkVersion")
734
733
  self._ActionList = params.get("ActionList")
735
734
  memeber_set = set(params.keys())
736
735
  for name, value in vars(self).items():
@@ -4079,6 +4078,14 @@ Note: This field may return `null`, indicating that no valid values can be obtai
4079
4078
  :param _Extra: The pass-through parameter.
4080
4079
  Note: This field may return null, indicating that no valid values can be obtained.
4081
4080
  :type Extra: str
4081
+ :param _DeviceInfoLevel: Describe the risk level of the device where the current request is located, with a total of 4 levels. The details are as follows:
4082
+ 1 - Secure
4083
+ 2 - Low Risk
4084
+ 3 - Medium Risk
4085
+ 4 - High Risk
4086
+ Empty - Risk level not obtained.
4087
+ Only returned for the ENHANCED version, with the default value being empty.
4088
+ :type DeviceInfoLevel: str
4082
4089
  :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.
4083
4090
  :type RequestId: str
4084
4091
  """
@@ -4089,6 +4096,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
4089
4096
  self._ActionVideo = None
4090
4097
  self._Similarity = None
4091
4098
  self._Extra = None
4099
+ self._DeviceInfoLevel = None
4092
4100
  self._RequestId = None
4093
4101
 
4094
4102
  @property
@@ -4180,6 +4188,23 @@ Note: This field may return null, indicating that no valid values can be obtaine
4180
4188
  def Extra(self, Extra):
4181
4189
  self._Extra = Extra
4182
4190
 
4191
+ @property
4192
+ def DeviceInfoLevel(self):
4193
+ """Describe the risk level of the device where the current request is located, with a total of 4 levels. The details are as follows:
4194
+ 1 - Secure
4195
+ 2 - Low Risk
4196
+ 3 - Medium Risk
4197
+ 4 - High Risk
4198
+ Empty - Risk level not obtained.
4199
+ Only returned for the ENHANCED version, with the default value being empty.
4200
+ :rtype: str
4201
+ """
4202
+ return self._DeviceInfoLevel
4203
+
4204
+ @DeviceInfoLevel.setter
4205
+ def DeviceInfoLevel(self, DeviceInfoLevel):
4206
+ self._DeviceInfoLevel = DeviceInfoLevel
4207
+
4183
4208
  @property
4184
4209
  def RequestId(self):
4185
4210
  """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.
@@ -4200,6 +4225,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
4200
4225
  self._ActionVideo = params.get("ActionVideo")
4201
4226
  self._Similarity = params.get("Similarity")
4202
4227
  self._Extra = params.get("Extra")
4228
+ self._DeviceInfoLevel = params.get("DeviceInfoLevel")
4203
4229
  self._RequestId = params.get("RequestId")
4204
4230
 
4205
4231
 
@@ -4212,7 +4238,7 @@ class GetFaceIdTokenIntlRequest(AbstractModel):
4212
4238
  r"""
4213
4239
  :param _CheckMode: The detection mode. Valid values:
4214
4240
  `liveness`: Liveness detection only.
4215
- `compare`: Selfie verification.
4241
+ `compare`: Selfie Verification(liveness detection and face comparison).
4216
4242
  Default value: `liveness`.
4217
4243
  :type CheckMode: str
4218
4244
  :param _SecureLevel: The verification security level. Valid values:
@@ -4237,18 +4263,21 @@ Single action example: "blink"
4237
4263
  Multiple action example: "blink,mouth"
4238
4264
  The default value is blink. The different action types passed in this parameter take effect only when the SecurityLevel is 2 or 4; otherwise, the interface reports an error.
4239
4265
  :type ActionList: str
4266
+ :param _SdkVersion: ENHANCED: Enhanced Version, BASIC: Basic Version (Default)
4267
+ :type SdkVersion: str
4240
4268
  """
4241
4269
  self._CheckMode = None
4242
4270
  self._SecureLevel = None
4243
4271
  self._Image = None
4244
4272
  self._Extra = None
4245
4273
  self._ActionList = None
4274
+ self._SdkVersion = None
4246
4275
 
4247
4276
  @property
4248
4277
  def CheckMode(self):
4249
4278
  """The detection mode. Valid values:
4250
4279
  `liveness`: Liveness detection only.
4251
- `compare`: Selfie verification.
4280
+ `compare`: Selfie Verification(liveness detection and face comparison).
4252
4281
  Default value: `liveness`.
4253
4282
  :rtype: str
4254
4283
  """
@@ -4316,6 +4345,17 @@ The default value is blink. The different action types passed in this parameter
4316
4345
  def ActionList(self, ActionList):
4317
4346
  self._ActionList = ActionList
4318
4347
 
4348
+ @property
4349
+ def SdkVersion(self):
4350
+ """ENHANCED: Enhanced Version, BASIC: Basic Version (Default)
4351
+ :rtype: str
4352
+ """
4353
+ return self._SdkVersion
4354
+
4355
+ @SdkVersion.setter
4356
+ def SdkVersion(self, SdkVersion):
4357
+ self._SdkVersion = SdkVersion
4358
+
4319
4359
 
4320
4360
  def _deserialize(self, params):
4321
4361
  self._CheckMode = params.get("CheckMode")
@@ -4323,6 +4363,7 @@ The default value is blink. The different action types passed in this parameter
4323
4363
  self._Image = params.get("Image")
4324
4364
  self._Extra = params.get("Extra")
4325
4365
  self._ActionList = params.get("ActionList")
4366
+ self._SdkVersion = params.get("SdkVersion")
4326
4367
  memeber_set = set(params.keys())
4327
4368
  for name, value in vars(self).items():
4328
4369
  property_name = name[1:]
@@ -4559,6 +4600,14 @@ class GetSdkVerificationResultResponse(AbstractModel):
4559
4600
  :type CompareResults: list of CompareResult
4560
4601
  :param _Extra: Data passed through in the process of getting the token.
4561
4602
  :type Extra: str
4603
+ :param _DeviceInfoLevel: Describe the risk level of the device where the current request is located, with a total of 4 levels. The details are as follows:
4604
+ 1 - Secure
4605
+ 2 - Low Risk
4606
+ 3 - Medium Risk
4607
+ 4 - High Risk
4608
+ Empty - Risk level not obtained.
4609
+ Only returned for the ENHANCED version, with the default value being empty.
4610
+ :type DeviceInfoLevel: str
4562
4611
  :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.
4563
4612
  :type RequestId: str
4564
4613
  """
@@ -4568,6 +4617,7 @@ class GetSdkVerificationResultResponse(AbstractModel):
4568
4617
  self._CardVerifyResults = None
4569
4618
  self._CompareResults = None
4570
4619
  self._Extra = None
4620
+ self._DeviceInfoLevel = None
4571
4621
  self._RequestId = None
4572
4622
 
4573
4623
  @property
@@ -4636,6 +4686,23 @@ class GetSdkVerificationResultResponse(AbstractModel):
4636
4686
  def Extra(self, Extra):
4637
4687
  self._Extra = Extra
4638
4688
 
4689
+ @property
4690
+ def DeviceInfoLevel(self):
4691
+ """Describe the risk level of the device where the current request is located, with a total of 4 levels. The details are as follows:
4692
+ 1 - Secure
4693
+ 2 - Low Risk
4694
+ 3 - Medium Risk
4695
+ 4 - High Risk
4696
+ Empty - Risk level not obtained.
4697
+ Only returned for the ENHANCED version, with the default value being empty.
4698
+ :rtype: str
4699
+ """
4700
+ return self._DeviceInfoLevel
4701
+
4702
+ @DeviceInfoLevel.setter
4703
+ def DeviceInfoLevel(self, DeviceInfoLevel):
4704
+ self._DeviceInfoLevel = DeviceInfoLevel
4705
+
4639
4706
  @property
4640
4707
  def RequestId(self):
4641
4708
  """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.
@@ -4665,6 +4732,7 @@ class GetSdkVerificationResultResponse(AbstractModel):
4665
4732
  obj._deserialize(item)
4666
4733
  self._CompareResults.append(obj)
4667
4734
  self._Extra = params.get("Extra")
4735
+ self._DeviceInfoLevel = params.get("DeviceInfoLevel")
4668
4736
  self._RequestId = params.get("RequestId")
4669
4737
 
4670
4738
 
@@ -381,7 +381,7 @@ class OcrClient(AbstractClient):
381
381
 
382
382
 
383
383
  def RecognizeBrazilCommonOCR(self, request):
384
- """This API is used to identify Brazil RNE documents.
384
+ """This API is used to identify Brazil common documents.
385
385
 
386
386
  This API is used to set the default request rate limit to 5 requests/second.
387
387