tencentcloud-sdk-python 3.0.1123__py2.py3-none-any.whl → 3.0.1125__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 might be problematic. Click here for more details.

@@ -2195,7 +2195,6 @@ class CvmClient(AbstractClient):
2195
2195
 
2196
2196
  * 如果指定了`ImageId`参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。
2197
2197
  * 系统盘将会被格式化,并重置;请确保系统盘中无重要文件。
2198
- * 系统切换时,该实例系统盘`ID`将发生变化,系统盘关联快照将无法回滚、恢复数据。
2199
2198
  * 密码不指定将会通过站内信下发随机密码。
2200
2199
  * 目前只支持[系统盘类型](https://cloud.tencent.com/document/api/213/9452#SystemDisk)是`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`、`CLOUD_BSSD`类型的实例使用该接口实现操作系统切换。
2201
2200
  * 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.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) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
@@ -1009,6 +1009,17 @@ class AutoSignConfig(AbstractModel):
1009
1009
  <ul><li>**0**: (默认) 使用个人自动签账号许可进行开通,个人自动签账号许可有效期1年,注: `不可解绑释放更换他人`</li>
1010
1010
  <li>**1**: 不绑定自动签账号许可开通,后续使用合同份额进行合同发起</li></ul>
1011
1011
  :type LicenseType: int
1012
+ :param _JumpUrl: 开通成功后前端页面跳转的url,此字段的用法场景请联系客户经理确认。
1013
+
1014
+ 注:`仅支持H5开通场景`, `跳转链接仅支持 https:// , qianapp:// 开头`
1015
+
1016
+ 跳转场景:
1017
+ <ul><li>**贵方H5 -> 腾讯电子签H5 -> 贵方H5** : JumpUrl格式: https://YOUR_CUSTOM_URL/xxxx,只需满足 https:// 开头的正确且合规的网址即可。</li>
1018
+ <li>**贵方原生App -> 腾讯电子签H5 -> 贵方原生App** : JumpUrl格式: qianapp://YOUR_CUSTOM_URL,只需满足 qianapp:// 开头的URL即可。`APP实现方,需要拦截Webview地址跳转,发现url是qianapp:// 开头时跳转到原生页面。`APP拦截地址跳转可参考:<a href='https://stackoverflow.com/questions/41693263/android-webview-err-unknown-url-scheme'>Android</a>,<a href='https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-ios/'>IOS</a> </li></ul>
1019
+
1020
+ 成功结果返回:
1021
+ 若贵方需要在跳转回时通过链接query参数提示开通成功,JumpUrl中的query应携带如下参数:`appendResult=qian`。这样腾讯电子签H5会在跳转回的url后面会添加query参数提示贵方签署成功,比如 qianapp://YOUR_CUSTOM_URL?action=sign&result=success&from=tencent_ess
1022
+ :type JumpUrl: str
1012
1023
  """
1013
1024
  self._UserInfo = None
1014
1025
  self._CertInfoCallback = None
@@ -1017,6 +1028,7 @@ class AutoSignConfig(AbstractModel):
1017
1028
  self._CallbackUrl = None
1018
1029
  self._VerifyChannels = None
1019
1030
  self._LicenseType = None
1031
+ self._JumpUrl = None
1020
1032
 
1021
1033
  @property
1022
1034
  def UserInfo(self):
@@ -1078,6 +1090,14 @@ class AutoSignConfig(AbstractModel):
1078
1090
  def LicenseType(self, LicenseType):
1079
1091
  self._LicenseType = LicenseType
1080
1092
 
1093
+ @property
1094
+ def JumpUrl(self):
1095
+ return self._JumpUrl
1096
+
1097
+ @JumpUrl.setter
1098
+ def JumpUrl(self, JumpUrl):
1099
+ self._JumpUrl = JumpUrl
1100
+
1081
1101
 
1082
1102
  def _deserialize(self, params):
1083
1103
  if params.get("UserInfo") is not None:
@@ -1089,6 +1109,7 @@ class AutoSignConfig(AbstractModel):
1089
1109
  self._CallbackUrl = params.get("CallbackUrl")
1090
1110
  self._VerifyChannels = params.get("VerifyChannels")
1091
1111
  self._LicenseType = params.get("LicenseType")
1112
+ self._JumpUrl = params.get("JumpUrl")
1092
1113
  memeber_set = set(params.keys())
1093
1114
  for name, value in vars(self).items():
1094
1115
  property_name = name[1:]
@@ -9058,6 +9079,8 @@ class CreateUserAutoSignEnableUrlRequest(AbstractModel):
9058
9079
  :param _Agent: 代理企业和员工的信息。
9059
9080
  在集团企业代理子企业操作的场景中,需设置此参数。在此情境下,ProxyOrganizationId(子企业的组织ID)为必填项。
9060
9081
  :type Agent: :class:`tencentcloud.ess.v20201111.models.Agent`
9082
+ :param _UserData: 调用方自定义的个性化字段(可自定义此字段的值),并以base64方式编码,支持的最大数据大小为 20480长度。 在个人自动签的开通、关闭等回调信息场景中,该字段的信息将原封不动地透传给贵方。
9083
+ :type UserData: str
9061
9084
  """
9062
9085
  self._Operator = None
9063
9086
  self._SceneKey = None
@@ -9067,6 +9090,7 @@ class CreateUserAutoSignEnableUrlRequest(AbstractModel):
9067
9090
  self._NotifyAddress = None
9068
9091
  self._ExpiredTime = None
9069
9092
  self._Agent = None
9093
+ self._UserData = None
9070
9094
 
9071
9095
  @property
9072
9096
  def Operator(self):
@@ -9132,6 +9156,14 @@ class CreateUserAutoSignEnableUrlRequest(AbstractModel):
9132
9156
  def Agent(self, Agent):
9133
9157
  self._Agent = Agent
9134
9158
 
9159
+ @property
9160
+ def UserData(self):
9161
+ return self._UserData
9162
+
9163
+ @UserData.setter
9164
+ def UserData(self, UserData):
9165
+ self._UserData = UserData
9166
+
9135
9167
 
9136
9168
  def _deserialize(self, params):
9137
9169
  if params.get("Operator") is not None:
@@ -9148,6 +9180,7 @@ class CreateUserAutoSignEnableUrlRequest(AbstractModel):
9148
9180
  if params.get("Agent") is not None:
9149
9181
  self._Agent = Agent()
9150
9182
  self._Agent._deserialize(params.get("Agent"))
9183
+ self._UserData = params.get("UserData")
9151
9184
  memeber_set = set(params.keys())
9152
9185
  for name, value in vars(self).items():
9153
9186
  property_name = name[1:]
@@ -614,6 +614,17 @@ class AutoSignConfig(AbstractModel):
614
614
  <ul><li>**0**: (默认) 使用个人自动签账号许可进行开通,个人自动签账号许可有效期1年,注: `不可解绑释放更换他人`</li>
615
615
  <li>**1**: 不绑定自动签账号许可开通,后续使用合同份额进行合同发起</li></ul>
616
616
  :type LicenseType: int
617
+ :param _JumpUrl: 开通成功后前端页面跳转的url,此字段的用法场景请联系客户经理确认。
618
+
619
+ 注:`仅支持H5开通场景`, `跳转链接仅支持 https:// , qianapp:// 开头`
620
+
621
+ 跳转场景:
622
+ <ul><li>**贵方H5 -> 腾讯电子签H5 -> 贵方H5** : JumpUrl格式: https://YOUR_CUSTOM_URL/xxxx,只需满足 https:// 开头的正确且合规的网址即可。</li>
623
+ <li>**贵方原生App -> 腾讯电子签H5 -> 贵方原生App** : JumpUrl格式: qianapp://YOUR_CUSTOM_URL,只需满足 qianapp:// 开头的URL即可。`APP实现方,需要拦截Webview地址跳转,发现url是qianapp:// 开头时跳转到原生页面。`APP拦截地址跳转可参考:<a href='https://stackoverflow.com/questions/41693263/android-webview-err-unknown-url-scheme'>Android</a>,<a href='https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-ios/'>IOS</a> </li></ul>
624
+
625
+ 成功结果返回:
626
+ 若贵方需要在跳转回时通过链接query参数提示开通成功,JumpUrl中的query应携带如下参数:`appendResult=qian`。这样腾讯电子签H5会在跳转回的url后面会添加query参数提示贵方签署成功,比如 qianapp://YOUR_CUSTOM_URL?action=sign&result=success&from=tencent_ess
627
+ :type JumpUrl: str
617
628
  """
618
629
  self._UserInfo = None
619
630
  self._CertInfoCallback = None
@@ -622,6 +633,7 @@ class AutoSignConfig(AbstractModel):
622
633
  self._CallbackUrl = None
623
634
  self._VerifyChannels = None
624
635
  self._LicenseType = None
636
+ self._JumpUrl = None
625
637
 
626
638
  @property
627
639
  def UserInfo(self):
@@ -679,6 +691,14 @@ class AutoSignConfig(AbstractModel):
679
691
  def LicenseType(self, LicenseType):
680
692
  self._LicenseType = LicenseType
681
693
 
694
+ @property
695
+ def JumpUrl(self):
696
+ return self._JumpUrl
697
+
698
+ @JumpUrl.setter
699
+ def JumpUrl(self, JumpUrl):
700
+ self._JumpUrl = JumpUrl
701
+
682
702
 
683
703
  def _deserialize(self, params):
684
704
  if params.get("UserInfo") is not None:
@@ -690,6 +710,7 @@ class AutoSignConfig(AbstractModel):
690
710
  self._CallbackUrl = params.get("CallbackUrl")
691
711
  self._VerifyChannels = params.get("VerifyChannels")
692
712
  self._LicenseType = params.get("LicenseType")
713
+ self._JumpUrl = params.get("JumpUrl")
693
714
  memeber_set = set(params.keys())
694
715
  for name, value in vars(self).items():
695
716
  property_name = name[1:]
@@ -5479,6 +5500,8 @@ class ChannelCreateUserAutoSignEnableUrlRequest(AbstractModel):
5479
5500
  :type NotifyAddress: str
5480
5501
  :param _ExpiredTime: 链接的过期时间,格式为Unix时间戳,不能早于当前时间,且最大为当前时间往后30天。`如果不传,默认过期时间为当前时间往后7天。`
5481
5502
  :type ExpiredTime: int
5503
+ :param _UserData: 调用方自定义的个性化字段(可自定义此字段的值),并以base64方式编码,支持的最大数据大小为 20480长度。 在个人自动签的开通、关闭等回调信息场景中,该字段的信息将原封不动地透传给贵方。
5504
+ :type UserData: str
5482
5505
  """
5483
5506
  self._Agent = None
5484
5507
  self._SceneKey = None
@@ -5488,6 +5511,7 @@ class ChannelCreateUserAutoSignEnableUrlRequest(AbstractModel):
5488
5511
  self._NotifyType = None
5489
5512
  self._NotifyAddress = None
5490
5513
  self._ExpiredTime = None
5514
+ self._UserData = None
5491
5515
 
5492
5516
  @property
5493
5517
  def Agent(self):
@@ -5553,6 +5577,14 @@ class ChannelCreateUserAutoSignEnableUrlRequest(AbstractModel):
5553
5577
  def ExpiredTime(self, ExpiredTime):
5554
5578
  self._ExpiredTime = ExpiredTime
5555
5579
 
5580
+ @property
5581
+ def UserData(self):
5582
+ return self._UserData
5583
+
5584
+ @UserData.setter
5585
+ def UserData(self, UserData):
5586
+ self._UserData = UserData
5587
+
5556
5588
 
5557
5589
  def _deserialize(self, params):
5558
5590
  if params.get("Agent") is not None:
@@ -5569,6 +5601,7 @@ class ChannelCreateUserAutoSignEnableUrlRequest(AbstractModel):
5569
5601
  self._NotifyType = params.get("NotifyType")
5570
5602
  self._NotifyAddress = params.get("NotifyAddress")
5571
5603
  self._ExpiredTime = params.get("ExpiredTime")
5604
+ self._UserData = params.get("UserData")
5572
5605
  memeber_set = set(params.keys())
5573
5606
  for name, value in vars(self).items():
5574
5607
  property_name = name[1:]
@@ -1883,6 +1883,7 @@ video 纯视频
1883
1883
  :param _IsGradingRequiredPostClass: 开启课后评分。 0:不开启(默认) 1:开启
1884
1884
  :type IsGradingRequiredPostClass: int
1885
1885
  :param _RoomType: 房间类型: 0 小班课(默认值); 1 大班课; 2 1V1 (预留参数,暂未开放)
1886
+ 注:大班课的布局(layout)只有三分屏
1886
1887
  :type RoomType: int
1887
1888
  :param _EndDelayTime: 拖堂时间:单位分钟,0为不限制(默认值), -1为不能拖堂,大于0为拖堂的时间,最大值120分钟
1888
1889
  :type EndDelayTime: int
@@ -4567,6 +4568,7 @@ video 纯视频
4567
4568
  :param _IsGradingRequiredPostClass: 该房间是否开启了课后评分功能。0:未开启 1:开启
4568
4569
  :type IsGradingRequiredPostClass: int
4569
4570
  :param _RoomType: 房间类型: 0 小班课(默认值); 1 大班课; 2 1V1 (后续扩展)
4571
+ 注:大班课的布局(layout)只有三分屏
4570
4572
  :type RoomType: int
4571
4573
  :param _VideoDuration: 录制时长
4572
4574
  :type VideoDuration: int
@@ -7986,6 +7988,7 @@ video 纯视频
7986
7988
  :param _IsGradingRequiredPostClass: 开启课后评分。 0:不开启(默认) 1:开启
7987
7989
  :type IsGradingRequiredPostClass: int
7988
7990
  :param _RoomType: 房间类型: 0 小班课(默认值); 1 大班课; 2 1V1 (预留参数、暂未开放)
7991
+ 注:大班课的布局(layout)只有三分屏
7989
7992
  :type RoomType: int
7990
7993
  :param _RecordLayout: 录制模板。仅可修改还未开始的房间。录制模板枚举值参考:https://cloud.tencent.com/document/product/1639/89744
7991
7994
  :type RecordLayout: int
@@ -8779,6 +8782,7 @@ class RoomInfo(AbstractModel):
8779
8782
  :param _IsGradingRequiredPostClass: 开启课后评分。 0:不开启(默认) 1:开启
8780
8783
  :type IsGradingRequiredPostClass: int
8781
8784
  :param _RoomType: 房间类型: 0 小班课(默认值); 1 大班课; 2 1V1 (后续扩展)
8785
+ 注:大班课的布局(layout)只有三分屏
8782
8786
  :type RoomType: int
8783
8787
  :param _EndDelayTime: 拖堂时间:单位分钟,0为不限制(默认值), -1为不能拖堂,大于0为拖堂的时间,最大值120分钟
8784
8788
  :type EndDelayTime: int
@@ -9150,6 +9154,7 @@ class RoomItem(AbstractModel):
9150
9154
  注意:此字段可能返回 null,表示取不到有效值。
9151
9155
  :type IsGradingRequiredPostClass: int
9152
9156
  :param _RoomType: 房间类型。0:小班课(默认值);1:大班课;2:1V1(后续扩展)
9157
+ 注:大班课的布局(layout)只有三分屏
9153
9158
  注意:此字段可能返回 null,表示取不到有效值。
9154
9159
  :type RoomType: int
9155
9160
  :param _EndDelayTime: 拖堂时间:单位分钟,0为不限制(默认值), -1为不能拖堂,大于0为拖堂的时间,最大值120分钟
@@ -95,6 +95,9 @@ FAILEDOPERATION_MODIFYINSTANCESBUNDLEFAILED = 'FailedOperation.ModifyInstancesBu
95
95
  # 变更资源属性失败,请稍后重新操作。
96
96
  FAILEDOPERATION_MODIFYRESOURCESATTRIBUTEFAILED = 'FailedOperation.ModifyResourcesAttributeFailed'
97
97
 
98
+ # 修改资源自动续费失败
99
+ FAILEDOPERATION_MODIFYRESOURCESRENEWFLAGFAILED = 'FailedOperation.ModifyResourcesRenewFlagFailed'
100
+
98
101
  # 续费资源失败。
99
102
  FAILEDOPERATION_RENEWRESOURCESFAILED = 'FailedOperation.RenewResourcesFailed'
100
103
 
@@ -12571,7 +12571,13 @@ class ModifyInstancesRenewFlagRequest(AbstractModel):
12571
12571
  r"""
12572
12572
  :param _InstanceIds: 实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。
12573
12573
  :type InstanceIds: list of str
12574
- :param _RenewFlag: 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费<br><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
12574
+ :param _RenewFlag: 自动续费标识。取值范围:
12575
+
12576
+ - NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
12577
+ - NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
12578
+ - DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
12579
+
12580
+ 若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
12575
12581
  :type RenewFlag: str
12576
12582
  """
12577
12583
  self._InstanceIds = None
@@ -23455,6 +23455,15 @@ cold:低频存储。
23455
23455
  :param _ClassId: 点播应用分类
23456
23456
  注意:此字段可能返回 null,表示取不到有效值。
23457
23457
  :type ClassId: int
23458
+ :param _CosBucketName: 存储至 cos 的 bucket 桶名称。
23459
+ 注意:此字段可能返回 null,表示取不到有效值。
23460
+ :type CosBucketName: str
23461
+ :param _CosBucketRegion: 存储至 cos 的 bucket 区域。
23462
+ 注意:此字段可能返回 null,表示取不到有效值。
23463
+ :type CosBucketRegion: str
23464
+ :param _CosBucketPath: 存储至 cos 的 bucket 路径。
23465
+ 注意:此字段可能返回 null,表示取不到有效值。
23466
+ :type CosBucketPath: str
23458
23467
  """
23459
23468
  self._RecordInterval = None
23460
23469
  self._StorageTime = None
@@ -23464,6 +23473,9 @@ cold:低频存储。
23464
23473
  self._Procedure = None
23465
23474
  self._StorageMode = None
23466
23475
  self._ClassId = None
23476
+ self._CosBucketName = None
23477
+ self._CosBucketRegion = None
23478
+ self._CosBucketPath = None
23467
23479
 
23468
23480
  @property
23469
23481
  def RecordInterval(self):
@@ -23529,6 +23541,30 @@ cold:低频存储。
23529
23541
  def ClassId(self, ClassId):
23530
23542
  self._ClassId = ClassId
23531
23543
 
23544
+ @property
23545
+ def CosBucketName(self):
23546
+ return self._CosBucketName
23547
+
23548
+ @CosBucketName.setter
23549
+ def CosBucketName(self, CosBucketName):
23550
+ self._CosBucketName = CosBucketName
23551
+
23552
+ @property
23553
+ def CosBucketRegion(self):
23554
+ return self._CosBucketRegion
23555
+
23556
+ @CosBucketRegion.setter
23557
+ def CosBucketRegion(self, CosBucketRegion):
23558
+ self._CosBucketRegion = CosBucketRegion
23559
+
23560
+ @property
23561
+ def CosBucketPath(self):
23562
+ return self._CosBucketPath
23563
+
23564
+ @CosBucketPath.setter
23565
+ def CosBucketPath(self, CosBucketPath):
23566
+ self._CosBucketPath = CosBucketPath
23567
+
23532
23568
 
23533
23569
  def _deserialize(self, params):
23534
23570
  self._RecordInterval = params.get("RecordInterval")
@@ -23539,6 +23575,9 @@ cold:低频存储。
23539
23575
  self._Procedure = params.get("Procedure")
23540
23576
  self._StorageMode = params.get("StorageMode")
23541
23577
  self._ClassId = params.get("ClassId")
23578
+ self._CosBucketName = params.get("CosBucketName")
23579
+ self._CosBucketRegion = params.get("CosBucketRegion")
23580
+ self._CosBucketPath = params.get("CosBucketPath")
23542
23581
  memeber_set = set(params.keys())
23543
23582
  for name, value in vars(self).items():
23544
23583
  property_name = name[1:]
@@ -20,6 +20,9 @@ AUTHFAILURE = 'AuthFailure'
20
20
  # 操作失败。
21
21
  FAILEDOPERATION = 'FailedOperation'
22
22
 
23
+ # 按key回档未开启
24
+ FAILEDOPERATION_FLASHBACKBYKEYNOTOPEN = 'FailedOperation.FlashbackByKeyNotOpen'
25
+
23
26
  # 内核响应超时。
24
27
  FAILEDOPERATION_KERNELRESPONSETIMEOUT = 'FailedOperation.KernelResponseTimeout'
25
28
 
@@ -47,6 +50,9 @@ INVALIDPARAMETER_CURRENTINSTANCENOTSUPPORTMODIFYPARAMS = 'InvalidParameter.Curre
47
50
  # 无效Vip信息。
48
51
  INVALIDPARAMETER_INVALIDVIP = 'InvalidParameter.InvalidVip'
49
52
 
53
+ # 接口参数为空。
54
+ INVALIDPARAMETER_PARAMETERSNIL = 'InvalidParameter.ParametersNil'
55
+
50
56
  # 当前子账号无权执行该操作。
51
57
  INVALIDPARAMETER_PERMISSIONDENIED = 'InvalidParameter.PermissionDenied'
52
58
 
@@ -188,5 +194,8 @@ RESOURCENOTFOUND = 'ResourceNotFound'
188
194
  # 操作不支持。
189
195
  UNSUPPORTEDOPERATION = 'UnsupportedOperation'
190
196
 
197
+ # 内核版本不支持。
198
+ UNSUPPORTEDOPERATION_KERNELVERSIONNOTSUPPORT = 'UnsupportedOperation.KernelVersionNotSupport'
199
+
191
200
  # 当前版本不支持该操作。
192
201
  UNSUPPORTEDOPERATION_VERSIONNOTSUPPORT = 'UnsupportedOperation.VersionNotSupport'
@@ -4010,6 +4010,287 @@ class DescribeSpecInfoResponse(AbstractModel):
4010
4010
  self._RequestId = params.get("RequestId")
4011
4011
 
4012
4012
 
4013
+ class FBKeyValue(AbstractModel):
4014
+ """按key回档,用于筛选数据的键值对
4015
+
4016
+ """
4017
+
4018
+ def __init__(self):
4019
+ r"""
4020
+ :param _Key: 用于按key回档过滤的key
4021
+ :type Key: str
4022
+ :param _Value: 用于按key回档过滤的value
4023
+ :type Value: str
4024
+ """
4025
+ self._Key = None
4026
+ self._Value = None
4027
+
4028
+ @property
4029
+ def Key(self):
4030
+ return self._Key
4031
+
4032
+ @Key.setter
4033
+ def Key(self, Key):
4034
+ self._Key = Key
4035
+
4036
+ @property
4037
+ def Value(self):
4038
+ return self._Value
4039
+
4040
+ @Value.setter
4041
+ def Value(self, Value):
4042
+ self._Value = Value
4043
+
4044
+
4045
+ def _deserialize(self, params):
4046
+ self._Key = params.get("Key")
4047
+ self._Value = params.get("Value")
4048
+ memeber_set = set(params.keys())
4049
+ for name, value in vars(self).items():
4050
+ property_name = name[1:]
4051
+ if property_name in memeber_set:
4052
+ memeber_set.remove(property_name)
4053
+ if len(memeber_set) > 0:
4054
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4055
+
4056
+
4057
+
4058
+ class FlashBackDBInstanceRequest(AbstractModel):
4059
+ """FlashBackDBInstance请求参数结构体
4060
+
4061
+ """
4062
+
4063
+ def __init__(self):
4064
+ r"""
4065
+ :param _InstanceId: 开启按 Key 回档的实例 ID。
4066
+ :type InstanceId: str
4067
+ :param _TargetFlashbackTime: 源数据想恢复到的时间。
4068
+ :type TargetFlashbackTime: str
4069
+ :param _TargetDatabases: 源数据所在的库表信息。
4070
+ :type TargetDatabases: list of FlashbackDatabase
4071
+ :param _TargetInstanceId: 数据最终写入的实例 ID。
4072
+ :type TargetInstanceId: str
4073
+ """
4074
+ self._InstanceId = None
4075
+ self._TargetFlashbackTime = None
4076
+ self._TargetDatabases = None
4077
+ self._TargetInstanceId = None
4078
+
4079
+ @property
4080
+ def InstanceId(self):
4081
+ return self._InstanceId
4082
+
4083
+ @InstanceId.setter
4084
+ def InstanceId(self, InstanceId):
4085
+ self._InstanceId = InstanceId
4086
+
4087
+ @property
4088
+ def TargetFlashbackTime(self):
4089
+ return self._TargetFlashbackTime
4090
+
4091
+ @TargetFlashbackTime.setter
4092
+ def TargetFlashbackTime(self, TargetFlashbackTime):
4093
+ self._TargetFlashbackTime = TargetFlashbackTime
4094
+
4095
+ @property
4096
+ def TargetDatabases(self):
4097
+ return self._TargetDatabases
4098
+
4099
+ @TargetDatabases.setter
4100
+ def TargetDatabases(self, TargetDatabases):
4101
+ self._TargetDatabases = TargetDatabases
4102
+
4103
+ @property
4104
+ def TargetInstanceId(self):
4105
+ return self._TargetInstanceId
4106
+
4107
+ @TargetInstanceId.setter
4108
+ def TargetInstanceId(self, TargetInstanceId):
4109
+ self._TargetInstanceId = TargetInstanceId
4110
+
4111
+
4112
+ def _deserialize(self, params):
4113
+ self._InstanceId = params.get("InstanceId")
4114
+ self._TargetFlashbackTime = params.get("TargetFlashbackTime")
4115
+ if params.get("TargetDatabases") is not None:
4116
+ self._TargetDatabases = []
4117
+ for item in params.get("TargetDatabases"):
4118
+ obj = FlashbackDatabase()
4119
+ obj._deserialize(item)
4120
+ self._TargetDatabases.append(obj)
4121
+ self._TargetInstanceId = params.get("TargetInstanceId")
4122
+ memeber_set = set(params.keys())
4123
+ for name, value in vars(self).items():
4124
+ property_name = name[1:]
4125
+ if property_name in memeber_set:
4126
+ memeber_set.remove(property_name)
4127
+ if len(memeber_set) > 0:
4128
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4129
+
4130
+
4131
+
4132
+ class FlashBackDBInstanceResponse(AbstractModel):
4133
+ """FlashBackDBInstance返回参数结构体
4134
+
4135
+ """
4136
+
4137
+ def __init__(self):
4138
+ r"""
4139
+ :param _FlowId: 回档数据异步任务 ID。
4140
+ 注意:此字段可能返回 null,表示取不到有效值。
4141
+ :type FlowId: int
4142
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4143
+ :type RequestId: str
4144
+ """
4145
+ self._FlowId = None
4146
+ self._RequestId = None
4147
+
4148
+ @property
4149
+ def FlowId(self):
4150
+ return self._FlowId
4151
+
4152
+ @FlowId.setter
4153
+ def FlowId(self, FlowId):
4154
+ self._FlowId = FlowId
4155
+
4156
+ @property
4157
+ def RequestId(self):
4158
+ return self._RequestId
4159
+
4160
+ @RequestId.setter
4161
+ def RequestId(self, RequestId):
4162
+ self._RequestId = RequestId
4163
+
4164
+
4165
+ def _deserialize(self, params):
4166
+ self._FlowId = params.get("FlowId")
4167
+ self._RequestId = params.get("RequestId")
4168
+
4169
+
4170
+ class FlashbackCollection(AbstractModel):
4171
+ """按key回档,源数据所在的表
4172
+
4173
+ """
4174
+
4175
+ def __init__(self):
4176
+ r"""
4177
+ :param _CollectionName: 按key回档指定的集合名
4178
+ :type CollectionName: str
4179
+ :param _TargetResultCollectionName: 按key回档到的目标集合名
4180
+ :type TargetResultCollectionName: str
4181
+ :param _FilterKey: 上传到cos的文件的value所对应的key值
4182
+ :type FilterKey: str
4183
+ :param _KeyValues: 用于按key回档过滤的键值对
4184
+ :type KeyValues: list of FBKeyValue
4185
+ """
4186
+ self._CollectionName = None
4187
+ self._TargetResultCollectionName = None
4188
+ self._FilterKey = None
4189
+ self._KeyValues = None
4190
+
4191
+ @property
4192
+ def CollectionName(self):
4193
+ return self._CollectionName
4194
+
4195
+ @CollectionName.setter
4196
+ def CollectionName(self, CollectionName):
4197
+ self._CollectionName = CollectionName
4198
+
4199
+ @property
4200
+ def TargetResultCollectionName(self):
4201
+ return self._TargetResultCollectionName
4202
+
4203
+ @TargetResultCollectionName.setter
4204
+ def TargetResultCollectionName(self, TargetResultCollectionName):
4205
+ self._TargetResultCollectionName = TargetResultCollectionName
4206
+
4207
+ @property
4208
+ def FilterKey(self):
4209
+ return self._FilterKey
4210
+
4211
+ @FilterKey.setter
4212
+ def FilterKey(self, FilterKey):
4213
+ self._FilterKey = FilterKey
4214
+
4215
+ @property
4216
+ def KeyValues(self):
4217
+ return self._KeyValues
4218
+
4219
+ @KeyValues.setter
4220
+ def KeyValues(self, KeyValues):
4221
+ self._KeyValues = KeyValues
4222
+
4223
+
4224
+ def _deserialize(self, params):
4225
+ self._CollectionName = params.get("CollectionName")
4226
+ self._TargetResultCollectionName = params.get("TargetResultCollectionName")
4227
+ self._FilterKey = params.get("FilterKey")
4228
+ if params.get("KeyValues") is not None:
4229
+ self._KeyValues = []
4230
+ for item in params.get("KeyValues"):
4231
+ obj = FBKeyValue()
4232
+ obj._deserialize(item)
4233
+ self._KeyValues.append(obj)
4234
+ memeber_set = set(params.keys())
4235
+ for name, value in vars(self).items():
4236
+ property_name = name[1:]
4237
+ if property_name in memeber_set:
4238
+ memeber_set.remove(property_name)
4239
+ if len(memeber_set) > 0:
4240
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4241
+
4242
+
4243
+
4244
+ class FlashbackDatabase(AbstractModel):
4245
+ """按key回档,源数据所在的库表
4246
+
4247
+ """
4248
+
4249
+ def __init__(self):
4250
+ r"""
4251
+ :param _DBName: 按key回档源数据所在库
4252
+ :type DBName: str
4253
+ :param _Collections: 按key回档的集群数组
4254
+ :type Collections: list of FlashbackCollection
4255
+ """
4256
+ self._DBName = None
4257
+ self._Collections = None
4258
+
4259
+ @property
4260
+ def DBName(self):
4261
+ return self._DBName
4262
+
4263
+ @DBName.setter
4264
+ def DBName(self, DBName):
4265
+ self._DBName = DBName
4266
+
4267
+ @property
4268
+ def Collections(self):
4269
+ return self._Collections
4270
+
4271
+ @Collections.setter
4272
+ def Collections(self, Collections):
4273
+ self._Collections = Collections
4274
+
4275
+
4276
+ def _deserialize(self, params):
4277
+ self._DBName = params.get("DBName")
4278
+ if params.get("Collections") is not None:
4279
+ self._Collections = []
4280
+ for item in params.get("Collections"):
4281
+ obj = FlashbackCollection()
4282
+ obj._deserialize(item)
4283
+ self._Collections.append(obj)
4284
+ memeber_set = set(params.keys())
4285
+ for name, value in vars(self).items():
4286
+ property_name = name[1:]
4287
+ if property_name in memeber_set:
4288
+ memeber_set.remove(property_name)
4289
+ if len(memeber_set) > 0:
4290
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4291
+
4292
+
4293
+
4013
4294
  class FlushInstanceRouterConfigRequest(AbstractModel):
4014
4295
  """FlushInstanceRouterConfig请求参数结构体
4015
4296
 
@@ -509,6 +509,30 @@ class MongodbClient(AbstractClient):
509
509
  raise TencentCloudSDKException(type(e).__name__, str(e))
510
510
 
511
511
 
512
+ def FlashBackDBInstance(self, request):
513
+ """该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。
514
+ **说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**
515
+
516
+ :param request: Request instance for FlashBackDBInstance.
517
+ :type request: :class:`tencentcloud.mongodb.v20190725.models.FlashBackDBInstanceRequest`
518
+ :rtype: :class:`tencentcloud.mongodb.v20190725.models.FlashBackDBInstanceResponse`
519
+
520
+ """
521
+ try:
522
+ params = request._serialize()
523
+ headers = request.headers
524
+ body = self.call("FlashBackDBInstance", params, headers=headers)
525
+ response = json.loads(body)
526
+ model = models.FlashBackDBInstanceResponse()
527
+ model._deserialize(response["Response"])
528
+ return model
529
+ except Exception as e:
530
+ if isinstance(e, TencentCloudSDKException):
531
+ raise
532
+ else:
533
+ raise TencentCloudSDKException(type(e).__name__, str(e))
534
+
535
+
512
536
  def FlushInstanceRouterConfig(self, request):
513
537
  """在所有mongos上执行FlushRouterConfig命令
514
538