tencentcloud-sdk-python-cynosdb 3.0.1459__py2.py3-none-any.whl → 3.1.8__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.
@@ -41,6 +41,14 @@ class Ability(AbstractModel):
41
41
  :type NoSupportTransparentDataEncryptionReason: str
42
42
  :param _IsSupportManualLogic: 是否支持手动发起逻辑备份
43
43
  :type IsSupportManualLogic: str
44
+ :param _IsSupportGlobalEncryption: 是否支持开启全局加密
45
+ :type IsSupportGlobalEncryption: str
46
+ :param _NoSupportGlobalEncryptionReason: 不支持全局加密的原因
47
+ :type NoSupportGlobalEncryptionReason: str
48
+ :param _NoSupportTransparentDataEncryptionReasonCode: 不支持透明加密原因状态码
49
+ :type NoSupportTransparentDataEncryptionReasonCode: str
50
+ :param _NoSupportGlobalEncryptionReasonCode: 不支持全局加密原因状态码
51
+ :type NoSupportGlobalEncryptionReasonCode: str
44
52
  """
45
53
  self._IsSupportSlaveZone = None
46
54
  self._NonsupportSlaveZoneReason = None
@@ -50,6 +58,10 @@ class Ability(AbstractModel):
50
58
  self._IsSupportTransparentDataEncryption = None
51
59
  self._NoSupportTransparentDataEncryptionReason = None
52
60
  self._IsSupportManualLogic = None
61
+ self._IsSupportGlobalEncryption = None
62
+ self._NoSupportGlobalEncryptionReason = None
63
+ self._NoSupportTransparentDataEncryptionReasonCode = None
64
+ self._NoSupportGlobalEncryptionReasonCode = None
53
65
 
54
66
  @property
55
67
  def IsSupportSlaveZone(self):
@@ -139,6 +151,50 @@ class Ability(AbstractModel):
139
151
  def IsSupportManualLogic(self, IsSupportManualLogic):
140
152
  self._IsSupportManualLogic = IsSupportManualLogic
141
153
 
154
+ @property
155
+ def IsSupportGlobalEncryption(self):
156
+ r"""是否支持开启全局加密
157
+ :rtype: str
158
+ """
159
+ return self._IsSupportGlobalEncryption
160
+
161
+ @IsSupportGlobalEncryption.setter
162
+ def IsSupportGlobalEncryption(self, IsSupportGlobalEncryption):
163
+ self._IsSupportGlobalEncryption = IsSupportGlobalEncryption
164
+
165
+ @property
166
+ def NoSupportGlobalEncryptionReason(self):
167
+ r"""不支持全局加密的原因
168
+ :rtype: str
169
+ """
170
+ return self._NoSupportGlobalEncryptionReason
171
+
172
+ @NoSupportGlobalEncryptionReason.setter
173
+ def NoSupportGlobalEncryptionReason(self, NoSupportGlobalEncryptionReason):
174
+ self._NoSupportGlobalEncryptionReason = NoSupportGlobalEncryptionReason
175
+
176
+ @property
177
+ def NoSupportTransparentDataEncryptionReasonCode(self):
178
+ r"""不支持透明加密原因状态码
179
+ :rtype: str
180
+ """
181
+ return self._NoSupportTransparentDataEncryptionReasonCode
182
+
183
+ @NoSupportTransparentDataEncryptionReasonCode.setter
184
+ def NoSupportTransparentDataEncryptionReasonCode(self, NoSupportTransparentDataEncryptionReasonCode):
185
+ self._NoSupportTransparentDataEncryptionReasonCode = NoSupportTransparentDataEncryptionReasonCode
186
+
187
+ @property
188
+ def NoSupportGlobalEncryptionReasonCode(self):
189
+ r"""不支持全局加密原因状态码
190
+ :rtype: str
191
+ """
192
+ return self._NoSupportGlobalEncryptionReasonCode
193
+
194
+ @NoSupportGlobalEncryptionReasonCode.setter
195
+ def NoSupportGlobalEncryptionReasonCode(self, NoSupportGlobalEncryptionReasonCode):
196
+ self._NoSupportGlobalEncryptionReasonCode = NoSupportGlobalEncryptionReasonCode
197
+
142
198
 
143
199
  def _deserialize(self, params):
144
200
  self._IsSupportSlaveZone = params.get("IsSupportSlaveZone")
@@ -149,6 +205,10 @@ class Ability(AbstractModel):
149
205
  self._IsSupportTransparentDataEncryption = params.get("IsSupportTransparentDataEncryption")
150
206
  self._NoSupportTransparentDataEncryptionReason = params.get("NoSupportTransparentDataEncryptionReason")
151
207
  self._IsSupportManualLogic = params.get("IsSupportManualLogic")
208
+ self._IsSupportGlobalEncryption = params.get("IsSupportGlobalEncryption")
209
+ self._NoSupportGlobalEncryptionReason = params.get("NoSupportGlobalEncryptionReason")
210
+ self._NoSupportTransparentDataEncryptionReasonCode = params.get("NoSupportTransparentDataEncryptionReasonCode")
211
+ self._NoSupportGlobalEncryptionReasonCode = params.get("NoSupportGlobalEncryptionReasonCode")
152
212
  memeber_set = set(params.keys())
153
213
  for name, value in vars(self).items():
154
214
  property_name = name[1:]
@@ -6138,7 +6198,9 @@ class CreateClustersRequest(AbstractModel):
6138
6198
  :type AdminPassword: str
6139
6199
  :param _Port: 端口,默认3306,取值范围[0, 65535)
6140
6200
  :type Port: int
6141
- :param _PayMode: 计费模式,按量计费:0,包年包月:1。默认按量计费。
6201
+ :param _PayMode: 计费模式,支持值为01,默认值为0。
6202
+ 取值为0,表示按量计费。
6203
+ 取值为1,表示包年包月。
6142
6204
  :type PayMode: int
6143
6205
  :param _Count: 购买集群数,可选值范围[1,50],默认为1
6144
6206
  :type Count: int
@@ -6414,6 +6476,752 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6414
6476
  def Port(self, Port):
6415
6477
  self._Port = Port
6416
6478
 
6479
+ @property
6480
+ def PayMode(self):
6481
+ r"""计费模式,支持值为0和1,默认值为0。
6482
+ 取值为0,表示按量计费。
6483
+ 取值为1,表示包年包月。
6484
+ :rtype: int
6485
+ """
6486
+ return self._PayMode
6487
+
6488
+ @PayMode.setter
6489
+ def PayMode(self, PayMode):
6490
+ self._PayMode = PayMode
6491
+
6492
+ @property
6493
+ def Count(self):
6494
+ r"""购买集群数,可选值范围[1,50],默认为1
6495
+ :rtype: int
6496
+ """
6497
+ return self._Count
6498
+
6499
+ @Count.setter
6500
+ def Count(self, Count):
6501
+ self._Count = Count
6502
+
6503
+ @property
6504
+ def RollbackStrategy(self):
6505
+ r"""回档类型:
6506
+ noneRollback:不回档;
6507
+ snapRollback,快照回档;
6508
+ timeRollback,时间点回档
6509
+ :rtype: str
6510
+ """
6511
+ return self._RollbackStrategy
6512
+
6513
+ @RollbackStrategy.setter
6514
+ def RollbackStrategy(self, RollbackStrategy):
6515
+ self._RollbackStrategy = RollbackStrategy
6516
+
6517
+ @property
6518
+ def RollbackId(self):
6519
+ r"""快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
6520
+ :rtype: int
6521
+ """
6522
+ return self._RollbackId
6523
+
6524
+ @RollbackId.setter
6525
+ def RollbackId(self, RollbackId):
6526
+ self._RollbackId = RollbackId
6527
+
6528
+ @property
6529
+ def OriginalClusterId(self):
6530
+ r"""回档时,传入源集群ID,用于查找源poolId
6531
+ :rtype: str
6532
+ """
6533
+ return self._OriginalClusterId
6534
+
6535
+ @OriginalClusterId.setter
6536
+ def OriginalClusterId(self, OriginalClusterId):
6537
+ self._OriginalClusterId = OriginalClusterId
6538
+
6539
+ @property
6540
+ def ExpectTime(self):
6541
+ r"""时间点回档,指定时间;快照回档,快照时间
6542
+ :rtype: str
6543
+ """
6544
+ return self._ExpectTime
6545
+
6546
+ @ExpectTime.setter
6547
+ def ExpectTime(self, ExpectTime):
6548
+ self._ExpectTime = ExpectTime
6549
+
6550
+ @property
6551
+ def ExpectTimeThresh(self):
6552
+ r"""该参数无实际意义,已废弃。
6553
+ 时间点回档,指定时间允许范围
6554
+ :rtype: int
6555
+ """
6556
+ return self._ExpectTimeThresh
6557
+
6558
+ @ExpectTimeThresh.setter
6559
+ def ExpectTimeThresh(self, ExpectTimeThresh):
6560
+ self._ExpectTimeThresh = ExpectTimeThresh
6561
+
6562
+ @property
6563
+ def StorageLimit(self):
6564
+ r"""普通实例存储上限,单位GB
6565
+ 当DbType为MYSQL,且存储计费模式为预付费时,该参数需不大于cpu与memory对应存储规格上限
6566
+ :rtype: int
6567
+ """
6568
+ return self._StorageLimit
6569
+
6570
+ @StorageLimit.setter
6571
+ def StorageLimit(self, StorageLimit):
6572
+ self._StorageLimit = StorageLimit
6573
+
6574
+ @property
6575
+ def TimeSpan(self):
6576
+ r"""包年包月购买时长
6577
+ :rtype: int
6578
+ """
6579
+ return self._TimeSpan
6580
+
6581
+ @TimeSpan.setter
6582
+ def TimeSpan(self, TimeSpan):
6583
+ self._TimeSpan = TimeSpan
6584
+
6585
+ @property
6586
+ def TimeUnit(self):
6587
+ r"""包年包月购买时长单位,['s','d','m','y']
6588
+ :rtype: str
6589
+ """
6590
+ return self._TimeUnit
6591
+
6592
+ @TimeUnit.setter
6593
+ def TimeUnit(self, TimeUnit):
6594
+ self._TimeUnit = TimeUnit
6595
+
6596
+ @property
6597
+ def AutoRenewFlag(self):
6598
+ r"""包年包月购买是否自动续费,默认为0。
6599
+ 0标识默认续费方式,1表示自动续费,2表示不自动续费。
6600
+ :rtype: int
6601
+ """
6602
+ return self._AutoRenewFlag
6603
+
6604
+ @AutoRenewFlag.setter
6605
+ def AutoRenewFlag(self, AutoRenewFlag):
6606
+ self._AutoRenewFlag = AutoRenewFlag
6607
+
6608
+ @property
6609
+ def AutoVoucher(self):
6610
+ r"""是否自动选择代金券 1是 0否 默认为0
6611
+ :rtype: int
6612
+ """
6613
+ return self._AutoVoucher
6614
+
6615
+ @AutoVoucher.setter
6616
+ def AutoVoucher(self, AutoVoucher):
6617
+ self._AutoVoucher = AutoVoucher
6618
+
6619
+ @property
6620
+ def HaCount(self):
6621
+ r"""实例数量(该参数已不再使用,只做存量兼容处理)
6622
+ :rtype: int
6623
+ """
6624
+ return self._HaCount
6625
+
6626
+ @HaCount.setter
6627
+ def HaCount(self, HaCount):
6628
+ self._HaCount = HaCount
6629
+
6630
+ @property
6631
+ def OrderSource(self):
6632
+ r"""订单来源
6633
+ :rtype: str
6634
+ """
6635
+ return self._OrderSource
6636
+
6637
+ @OrderSource.setter
6638
+ def OrderSource(self, OrderSource):
6639
+ self._OrderSource = OrderSource
6640
+
6641
+ @property
6642
+ def ResourceTags(self):
6643
+ r"""集群创建需要绑定的tag数组信息
6644
+ :rtype: list of Tag
6645
+ """
6646
+ return self._ResourceTags
6647
+
6648
+ @ResourceTags.setter
6649
+ def ResourceTags(self, ResourceTags):
6650
+ self._ResourceTags = ResourceTags
6651
+
6652
+ @property
6653
+ def DbMode(self):
6654
+ r"""Db类型
6655
+ 当DbType为MYSQL时可选(默认NORMAL):
6656
+ <li>NORMAL</li>
6657
+ <li>SERVERLESS</li>
6658
+ :rtype: str
6659
+ """
6660
+ return self._DbMode
6661
+
6662
+ @DbMode.setter
6663
+ def DbMode(self, DbMode):
6664
+ self._DbMode = DbMode
6665
+
6666
+ @property
6667
+ def MinCpu(self):
6668
+ r"""当DbMode为SERVERLESS时必填
6669
+ cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6670
+ :rtype: float
6671
+ """
6672
+ return self._MinCpu
6673
+
6674
+ @MinCpu.setter
6675
+ def MinCpu(self, MinCpu):
6676
+ self._MinCpu = MinCpu
6677
+
6678
+ @property
6679
+ def MaxCpu(self):
6680
+ r"""当DbMode为SERVERLESS时必填:
6681
+ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6682
+ :rtype: float
6683
+ """
6684
+ return self._MaxCpu
6685
+
6686
+ @MaxCpu.setter
6687
+ def MaxCpu(self, MaxCpu):
6688
+ self._MaxCpu = MaxCpu
6689
+
6690
+ @property
6691
+ def AutoPause(self):
6692
+ r"""当DbMode为SERVERLESS时,指定集群是否自动暂停,可选范围
6693
+ <li>yes</li>
6694
+ <li>no</li>
6695
+ 默认值:yes
6696
+ :rtype: str
6697
+ """
6698
+ return self._AutoPause
6699
+
6700
+ @AutoPause.setter
6701
+ def AutoPause(self, AutoPause):
6702
+ self._AutoPause = AutoPause
6703
+
6704
+ @property
6705
+ def AutoPauseDelay(self):
6706
+ r"""当DbMode为SERVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
6707
+ 默认值:600
6708
+ :rtype: int
6709
+ """
6710
+ return self._AutoPauseDelay
6711
+
6712
+ @AutoPauseDelay.setter
6713
+ def AutoPauseDelay(self, AutoPauseDelay):
6714
+ self._AutoPauseDelay = AutoPauseDelay
6715
+
6716
+ @property
6717
+ def StoragePayMode(self):
6718
+ r"""集群存储计费模式,按量计费:0,包年包月:1。默认按量计费
6719
+ 当DbType为MYSQL时,在集群计算计费模式为后付费(包括DbMode为SERVERLESS)时,存储计费模式仅可为按量计费
6720
+ 回档与克隆均不支持包年包月存储
6721
+ :rtype: int
6722
+ """
6723
+ return self._StoragePayMode
6724
+
6725
+ @StoragePayMode.setter
6726
+ def StoragePayMode(self, StoragePayMode):
6727
+ self._StoragePayMode = StoragePayMode
6728
+
6729
+ @property
6730
+ def SecurityGroupIds(self):
6731
+ r"""安全组id数组
6732
+ :rtype: list of str
6733
+ """
6734
+ return self._SecurityGroupIds
6735
+
6736
+ @SecurityGroupIds.setter
6737
+ def SecurityGroupIds(self, SecurityGroupIds):
6738
+ self._SecurityGroupIds = SecurityGroupIds
6739
+
6740
+ @property
6741
+ def AlarmPolicyIds(self):
6742
+ r"""告警策略Id数组
6743
+ :rtype: list of str
6744
+ """
6745
+ return self._AlarmPolicyIds
6746
+
6747
+ @AlarmPolicyIds.setter
6748
+ def AlarmPolicyIds(self, AlarmPolicyIds):
6749
+ self._AlarmPolicyIds = AlarmPolicyIds
6750
+
6751
+ @property
6752
+ def ClusterParams(self):
6753
+ r"""参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
6754
+ :rtype: list of ParamItem
6755
+ """
6756
+ return self._ClusterParams
6757
+
6758
+ @ClusterParams.setter
6759
+ def ClusterParams(self, ClusterParams):
6760
+ self._ClusterParams = ClusterParams
6761
+
6762
+ @property
6763
+ def DealMode(self):
6764
+ r"""交易模式,0-下单且支付,1-下单
6765
+ :rtype: int
6766
+ """
6767
+ return self._DealMode
6768
+
6769
+ @DealMode.setter
6770
+ def DealMode(self, DealMode):
6771
+ self._DealMode = DealMode
6772
+
6773
+ @property
6774
+ def ParamTemplateId(self):
6775
+ r"""参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
6776
+ :rtype: int
6777
+ """
6778
+ return self._ParamTemplateId
6779
+
6780
+ @ParamTemplateId.setter
6781
+ def ParamTemplateId(self, ParamTemplateId):
6782
+ self._ParamTemplateId = ParamTemplateId
6783
+
6784
+ @property
6785
+ def SlaveZone(self):
6786
+ r"""多可用区地址
6787
+ :rtype: str
6788
+ """
6789
+ return self._SlaveZone
6790
+
6791
+ @SlaveZone.setter
6792
+ def SlaveZone(self, SlaveZone):
6793
+ self._SlaveZone = SlaveZone
6794
+
6795
+ @property
6796
+ def InstanceInitInfos(self):
6797
+ r"""实例初始化配置信息,主要用于购买集群时选不同规格实例
6798
+ :rtype: list of InstanceInitInfo
6799
+ """
6800
+ return self._InstanceInitInfos
6801
+
6802
+ @InstanceInitInfos.setter
6803
+ def InstanceInitInfos(self, InstanceInitInfos):
6804
+ self._InstanceInitInfos = InstanceInitInfos
6805
+
6806
+ @property
6807
+ def GdnId(self):
6808
+ r"""全球数据库唯一标识
6809
+ :rtype: str
6810
+ """
6811
+ return self._GdnId
6812
+
6813
+ @GdnId.setter
6814
+ def GdnId(self, GdnId):
6815
+ self._GdnId = GdnId
6816
+
6817
+ @property
6818
+ def ProxyConfig(self):
6819
+ r"""数据库代理配置
6820
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.ProxyConfig`
6821
+ """
6822
+ return self._ProxyConfig
6823
+
6824
+ @ProxyConfig.setter
6825
+ def ProxyConfig(self, ProxyConfig):
6826
+ self._ProxyConfig = ProxyConfig
6827
+
6828
+ @property
6829
+ def AutoArchive(self):
6830
+ r"""是否自动归档
6831
+ :rtype: str
6832
+ """
6833
+ return self._AutoArchive
6834
+
6835
+ @AutoArchive.setter
6836
+ def AutoArchive(self, AutoArchive):
6837
+ self._AutoArchive = AutoArchive
6838
+
6839
+ @property
6840
+ def AutoArchiveDelayHours(self):
6841
+ r"""暂停后的归档处理时间
6842
+ :rtype: int
6843
+ """
6844
+ return self._AutoArchiveDelayHours
6845
+
6846
+ @AutoArchiveDelayHours.setter
6847
+ def AutoArchiveDelayHours(self, AutoArchiveDelayHours):
6848
+ self._AutoArchiveDelayHours = AutoArchiveDelayHours
6849
+
6850
+
6851
+ def _deserialize(self, params):
6852
+ self._Zone = params.get("Zone")
6853
+ self._VpcId = params.get("VpcId")
6854
+ self._SubnetId = params.get("SubnetId")
6855
+ self._DbType = params.get("DbType")
6856
+ self._DbVersion = params.get("DbVersion")
6857
+ self._ProjectId = params.get("ProjectId")
6858
+ self._Cpu = params.get("Cpu")
6859
+ self._Memory = params.get("Memory")
6860
+ self._InstanceCount = params.get("InstanceCount")
6861
+ self._Storage = params.get("Storage")
6862
+ self._ClusterName = params.get("ClusterName")
6863
+ self._AdminPassword = params.get("AdminPassword")
6864
+ self._Port = params.get("Port")
6865
+ self._PayMode = params.get("PayMode")
6866
+ self._Count = params.get("Count")
6867
+ self._RollbackStrategy = params.get("RollbackStrategy")
6868
+ self._RollbackId = params.get("RollbackId")
6869
+ self._OriginalClusterId = params.get("OriginalClusterId")
6870
+ self._ExpectTime = params.get("ExpectTime")
6871
+ self._ExpectTimeThresh = params.get("ExpectTimeThresh")
6872
+ self._StorageLimit = params.get("StorageLimit")
6873
+ self._TimeSpan = params.get("TimeSpan")
6874
+ self._TimeUnit = params.get("TimeUnit")
6875
+ self._AutoRenewFlag = params.get("AutoRenewFlag")
6876
+ self._AutoVoucher = params.get("AutoVoucher")
6877
+ self._HaCount = params.get("HaCount")
6878
+ self._OrderSource = params.get("OrderSource")
6879
+ if params.get("ResourceTags") is not None:
6880
+ self._ResourceTags = []
6881
+ for item in params.get("ResourceTags"):
6882
+ obj = Tag()
6883
+ obj._deserialize(item)
6884
+ self._ResourceTags.append(obj)
6885
+ self._DbMode = params.get("DbMode")
6886
+ self._MinCpu = params.get("MinCpu")
6887
+ self._MaxCpu = params.get("MaxCpu")
6888
+ self._AutoPause = params.get("AutoPause")
6889
+ self._AutoPauseDelay = params.get("AutoPauseDelay")
6890
+ self._StoragePayMode = params.get("StoragePayMode")
6891
+ self._SecurityGroupIds = params.get("SecurityGroupIds")
6892
+ self._AlarmPolicyIds = params.get("AlarmPolicyIds")
6893
+ if params.get("ClusterParams") is not None:
6894
+ self._ClusterParams = []
6895
+ for item in params.get("ClusterParams"):
6896
+ obj = ParamItem()
6897
+ obj._deserialize(item)
6898
+ self._ClusterParams.append(obj)
6899
+ self._DealMode = params.get("DealMode")
6900
+ self._ParamTemplateId = params.get("ParamTemplateId")
6901
+ self._SlaveZone = params.get("SlaveZone")
6902
+ if params.get("InstanceInitInfos") is not None:
6903
+ self._InstanceInitInfos = []
6904
+ for item in params.get("InstanceInitInfos"):
6905
+ obj = InstanceInitInfo()
6906
+ obj._deserialize(item)
6907
+ self._InstanceInitInfos.append(obj)
6908
+ self._GdnId = params.get("GdnId")
6909
+ if params.get("ProxyConfig") is not None:
6910
+ self._ProxyConfig = ProxyConfig()
6911
+ self._ProxyConfig._deserialize(params.get("ProxyConfig"))
6912
+ self._AutoArchive = params.get("AutoArchive")
6913
+ self._AutoArchiveDelayHours = params.get("AutoArchiveDelayHours")
6914
+ memeber_set = set(params.keys())
6915
+ for name, value in vars(self).items():
6916
+ property_name = name[1:]
6917
+ if property_name in memeber_set:
6918
+ memeber_set.remove(property_name)
6919
+ if len(memeber_set) > 0:
6920
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6921
+
6922
+
6923
+
6924
+ class CreateClustersResponse(AbstractModel):
6925
+ r"""CreateClusters返回参数结构体
6926
+
6927
+ """
6928
+
6929
+ def __init__(self):
6930
+ r"""
6931
+ :param _TranId: 冻结流水ID
6932
+ :type TranId: str
6933
+ :param _DealNames: 订单号
6934
+ :type DealNames: list of str
6935
+ :param _ResourceIds: 资源ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取资源ID)
6936
+ :type ResourceIds: list of str
6937
+ :param _ClusterIds: 集群ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取集群ID)
6938
+ :type ClusterIds: list of str
6939
+ :param _BigDealIds: 大订单号
6940
+ 注意:此字段可能返回 null,表示取不到有效值。
6941
+ :type BigDealIds: list of str
6942
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6943
+ :type RequestId: str
6944
+ """
6945
+ self._TranId = None
6946
+ self._DealNames = None
6947
+ self._ResourceIds = None
6948
+ self._ClusterIds = None
6949
+ self._BigDealIds = None
6950
+ self._RequestId = None
6951
+
6952
+ @property
6953
+ def TranId(self):
6954
+ r"""冻结流水ID
6955
+ :rtype: str
6956
+ """
6957
+ return self._TranId
6958
+
6959
+ @TranId.setter
6960
+ def TranId(self, TranId):
6961
+ self._TranId = TranId
6962
+
6963
+ @property
6964
+ def DealNames(self):
6965
+ r"""订单号
6966
+ :rtype: list of str
6967
+ """
6968
+ return self._DealNames
6969
+
6970
+ @DealNames.setter
6971
+ def DealNames(self, DealNames):
6972
+ self._DealNames = DealNames
6973
+
6974
+ @property
6975
+ def ResourceIds(self):
6976
+ r"""资源ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取资源ID)
6977
+ :rtype: list of str
6978
+ """
6979
+ return self._ResourceIds
6980
+
6981
+ @ResourceIds.setter
6982
+ def ResourceIds(self, ResourceIds):
6983
+ self._ResourceIds = ResourceIds
6984
+
6985
+ @property
6986
+ def ClusterIds(self):
6987
+ r"""集群ID列表(该字段已不再维护,请使用dealNames字段查询接口DescribeResourcesByDealName获取集群ID)
6988
+ :rtype: list of str
6989
+ """
6990
+ return self._ClusterIds
6991
+
6992
+ @ClusterIds.setter
6993
+ def ClusterIds(self, ClusterIds):
6994
+ self._ClusterIds = ClusterIds
6995
+
6996
+ @property
6997
+ def BigDealIds(self):
6998
+ r"""大订单号
6999
+ 注意:此字段可能返回 null,表示取不到有效值。
7000
+ :rtype: list of str
7001
+ """
7002
+ return self._BigDealIds
7003
+
7004
+ @BigDealIds.setter
7005
+ def BigDealIds(self, BigDealIds):
7006
+ self._BigDealIds = BigDealIds
7007
+
7008
+ @property
7009
+ def RequestId(self):
7010
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7011
+ :rtype: str
7012
+ """
7013
+ return self._RequestId
7014
+
7015
+ @RequestId.setter
7016
+ def RequestId(self, RequestId):
7017
+ self._RequestId = RequestId
7018
+
7019
+
7020
+ def _deserialize(self, params):
7021
+ self._TranId = params.get("TranId")
7022
+ self._DealNames = params.get("DealNames")
7023
+ self._ResourceIds = params.get("ResourceIds")
7024
+ self._ClusterIds = params.get("ClusterIds")
7025
+ self._BigDealIds = params.get("BigDealIds")
7026
+ self._RequestId = params.get("RequestId")
7027
+
7028
+
7029
+ class CreateIntegrateClusterRequest(AbstractModel):
7030
+ r"""CreateIntegrateCluster请求参数结构体
7031
+
7032
+ """
7033
+
7034
+ def __init__(self):
7035
+ r"""
7036
+ :param _Zone: 可用区
7037
+ :type Zone: str
7038
+ :param _VpcId: 所属VPC网络ID
7039
+ :type VpcId: str
7040
+ :param _SubnetId: 所属子网ID
7041
+ :type SubnetId: str
7042
+ :param _DbVersion: 数据库版本,取值范围:
7043
+ <li> MYSQL可选值:5.7,8.0 </li>
7044
+ :type DbVersion: str
7045
+ :param _ProjectId: 所属项目ID
7046
+ :type ProjectId: int
7047
+ :param _ClusterName: 集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
7048
+ :type ClusterName: str
7049
+ :param _AdminPassword: 账号密码(8-64个字符,包含大小写英文字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种)
7050
+ :type AdminPassword: str
7051
+ :param _Port: 端口,默认3306,取值范围[0, 65535)
7052
+ :type Port: int
7053
+ :param _PayMode: 计费模式,按量计费:0,包年包月:1。默认按量计费。
7054
+ :type PayMode: int
7055
+ :param _Count: 购买集群数,可选值范围[1,3],默认为1
7056
+ :type Count: int
7057
+ :param _StorageLimit: 普通实例存储上限,单位GB
7058
+ 当DbType为MYSQL,且存储计费模式为预付费时,该参数需不大于cpu与memory对应存储规格上限
7059
+ :type StorageLimit: int
7060
+ :param _TimeSpan: 包年包月购买时长
7061
+ :type TimeSpan: int
7062
+ :param _TimeUnit: 包年包月购买时长单位,['s','d','m','y']
7063
+ :type TimeUnit: str
7064
+ :param _AutoRenewFlag: 包年包月购买是否自动续费,默认为0。
7065
+ 0标识默认续费方式,1表示自动续费,2表示不自动续费。
7066
+ :type AutoRenewFlag: int
7067
+ :param _AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
7068
+ :type AutoVoucher: int
7069
+ :param _ResourceTags: 集群创建需要绑定的tag数组信息
7070
+ :type ResourceTags: list of Tag
7071
+ :param _StoragePayMode: 集群存储计费模式,按量计费:0,包年包月:1。默认按量计费
7072
+ 当DbType为MYSQL时,在集群计算计费模式为后付费(包括DbMode为SERVERLESS)时,存储计费模式仅可为按量计费
7073
+ 回档与克隆均不支持包年包月存储
7074
+ :type StoragePayMode: int
7075
+ :param _SecurityGroupIds: 安全组id数组
7076
+ :type SecurityGroupIds: list of str
7077
+ :param _AlarmPolicyIds: 告警策略Id数组
7078
+ :type AlarmPolicyIds: list of str
7079
+ :param _ClusterParams: 参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感
7080
+ :type ClusterParams: list of ParamItem
7081
+ :param _DealMode: 交易模式,0-下单且支付,1-下单
7082
+ :type DealMode: int
7083
+ :param _ParamTemplateId: 参数模板ID,可以通过查询参数模板信息DescribeParamTemplates获得参数模板ID
7084
+ :type ParamTemplateId: int
7085
+ :param _SlaveZone: 多可用区地址
7086
+ :type SlaveZone: str
7087
+ :param _InstanceInitInfos: 实例初始化配置信息,主要用于购买集群时选不同规格实例
7088
+ :type InstanceInitInfos: list of IntegrateInstanceInfo
7089
+ :param _GdnId: 全球数据库唯一标识
7090
+ :type GdnId: str
7091
+ :param _ProxyConfig: 数据库代理配置
7092
+ :type ProxyConfig: :class:`tencentcloud.cynosdb.v20190107.models.ProxyConfigInfo`
7093
+ :param _AutoArchive: 是否自动归档
7094
+ :type AutoArchive: str
7095
+ :param _AutoArchiveDelayHours: 暂停后的归档处理时间
7096
+ :type AutoArchiveDelayHours: int
7097
+ :param _EncryptMethod: 加密方法(由加密算法和密钥对版本组成)
7098
+ :type EncryptMethod: str
7099
+ :param _IntegrateCreateClusterConfig: 集成集群配置信息
7100
+ :type IntegrateCreateClusterConfig: :class:`tencentcloud.cynosdb.v20190107.models.IntegrateCreateClusterConfig`
7101
+ :param _StorageVersion: 存储架构类型。 枚举值:1.0/2.0 默认值:1.0
7102
+ :type StorageVersion: str
7103
+ """
7104
+ self._Zone = None
7105
+ self._VpcId = None
7106
+ self._SubnetId = None
7107
+ self._DbVersion = None
7108
+ self._ProjectId = None
7109
+ self._ClusterName = None
7110
+ self._AdminPassword = None
7111
+ self._Port = None
7112
+ self._PayMode = None
7113
+ self._Count = None
7114
+ self._StorageLimit = None
7115
+ self._TimeSpan = None
7116
+ self._TimeUnit = None
7117
+ self._AutoRenewFlag = None
7118
+ self._AutoVoucher = None
7119
+ self._ResourceTags = None
7120
+ self._StoragePayMode = None
7121
+ self._SecurityGroupIds = None
7122
+ self._AlarmPolicyIds = None
7123
+ self._ClusterParams = None
7124
+ self._DealMode = None
7125
+ self._ParamTemplateId = None
7126
+ self._SlaveZone = None
7127
+ self._InstanceInitInfos = None
7128
+ self._GdnId = None
7129
+ self._ProxyConfig = None
7130
+ self._AutoArchive = None
7131
+ self._AutoArchiveDelayHours = None
7132
+ self._EncryptMethod = None
7133
+ self._IntegrateCreateClusterConfig = None
7134
+ self._StorageVersion = None
7135
+
7136
+ @property
7137
+ def Zone(self):
7138
+ r"""可用区
7139
+ :rtype: str
7140
+ """
7141
+ return self._Zone
7142
+
7143
+ @Zone.setter
7144
+ def Zone(self, Zone):
7145
+ self._Zone = Zone
7146
+
7147
+ @property
7148
+ def VpcId(self):
7149
+ r"""所属VPC网络ID
7150
+ :rtype: str
7151
+ """
7152
+ return self._VpcId
7153
+
7154
+ @VpcId.setter
7155
+ def VpcId(self, VpcId):
7156
+ self._VpcId = VpcId
7157
+
7158
+ @property
7159
+ def SubnetId(self):
7160
+ r"""所属子网ID
7161
+ :rtype: str
7162
+ """
7163
+ return self._SubnetId
7164
+
7165
+ @SubnetId.setter
7166
+ def SubnetId(self, SubnetId):
7167
+ self._SubnetId = SubnetId
7168
+
7169
+ @property
7170
+ def DbVersion(self):
7171
+ r"""数据库版本,取值范围:
7172
+ <li> MYSQL可选值:5.7,8.0 </li>
7173
+ :rtype: str
7174
+ """
7175
+ return self._DbVersion
7176
+
7177
+ @DbVersion.setter
7178
+ def DbVersion(self, DbVersion):
7179
+ self._DbVersion = DbVersion
7180
+
7181
+ @property
7182
+ def ProjectId(self):
7183
+ r"""所属项目ID
7184
+ :rtype: int
7185
+ """
7186
+ return self._ProjectId
7187
+
7188
+ @ProjectId.setter
7189
+ def ProjectId(self, ProjectId):
7190
+ self._ProjectId = ProjectId
7191
+
7192
+ @property
7193
+ def ClusterName(self):
7194
+ r"""集群名称,长度小于64个字符,每个字符取值范围:大/小写字母,数字,特殊符号('-','_','.')
7195
+ :rtype: str
7196
+ """
7197
+ return self._ClusterName
7198
+
7199
+ @ClusterName.setter
7200
+ def ClusterName(self, ClusterName):
7201
+ self._ClusterName = ClusterName
7202
+
7203
+ @property
7204
+ def AdminPassword(self):
7205
+ r"""账号密码(8-64个字符,包含大小写英文字母、数字和符号~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/中的任意三种)
7206
+ :rtype: str
7207
+ """
7208
+ return self._AdminPassword
7209
+
7210
+ @AdminPassword.setter
7211
+ def AdminPassword(self, AdminPassword):
7212
+ self._AdminPassword = AdminPassword
7213
+
7214
+ @property
7215
+ def Port(self):
7216
+ r"""端口,默认3306,取值范围[0, 65535)
7217
+ :rtype: int
7218
+ """
7219
+ return self._Port
7220
+
7221
+ @Port.setter
7222
+ def Port(self, Port):
7223
+ self._Port = Port
7224
+
6417
7225
  @property
6418
7226
  def PayMode(self):
6419
7227
  r"""计费模式,按量计费:0,包年包月:1。默认按量计费。
@@ -6427,7 +7235,7 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6427
7235
 
6428
7236
  @property
6429
7237
  def Count(self):
6430
- r"""购买集群数,可选值范围[1,50],默认为1
7238
+ r"""购买集群数,可选值范围[1,3],默认为1
6431
7239
  :rtype: int
6432
7240
  """
6433
7241
  return self._Count
@@ -6436,65 +7244,6 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6436
7244
  def Count(self, Count):
6437
7245
  self._Count = Count
6438
7246
 
6439
- @property
6440
- def RollbackStrategy(self):
6441
- r"""回档类型:
6442
- noneRollback:不回档;
6443
- snapRollback,快照回档;
6444
- timeRollback,时间点回档
6445
- :rtype: str
6446
- """
6447
- return self._RollbackStrategy
6448
-
6449
- @RollbackStrategy.setter
6450
- def RollbackStrategy(self, RollbackStrategy):
6451
- self._RollbackStrategy = RollbackStrategy
6452
-
6453
- @property
6454
- def RollbackId(self):
6455
- r"""快照回档,表示snapshotId;时间点回档,表示queryId,为0,表示需要判断时间点是否有效
6456
- :rtype: int
6457
- """
6458
- return self._RollbackId
6459
-
6460
- @RollbackId.setter
6461
- def RollbackId(self, RollbackId):
6462
- self._RollbackId = RollbackId
6463
-
6464
- @property
6465
- def OriginalClusterId(self):
6466
- r"""回档时,传入源集群ID,用于查找源poolId
6467
- :rtype: str
6468
- """
6469
- return self._OriginalClusterId
6470
-
6471
- @OriginalClusterId.setter
6472
- def OriginalClusterId(self, OriginalClusterId):
6473
- self._OriginalClusterId = OriginalClusterId
6474
-
6475
- @property
6476
- def ExpectTime(self):
6477
- r"""时间点回档,指定时间;快照回档,快照时间
6478
- :rtype: str
6479
- """
6480
- return self._ExpectTime
6481
-
6482
- @ExpectTime.setter
6483
- def ExpectTime(self, ExpectTime):
6484
- self._ExpectTime = ExpectTime
6485
-
6486
- @property
6487
- def ExpectTimeThresh(self):
6488
- r"""该参数无实际意义,已废弃。
6489
- 时间点回档,指定时间允许范围
6490
- :rtype: int
6491
- """
6492
- return self._ExpectTimeThresh
6493
-
6494
- @ExpectTimeThresh.setter
6495
- def ExpectTimeThresh(self, ExpectTimeThresh):
6496
- self._ExpectTimeThresh = ExpectTimeThresh
6497
-
6498
7247
  @property
6499
7248
  def StorageLimit(self):
6500
7249
  r"""普通实例存储上限,单位GB
@@ -6552,28 +7301,6 @@ timeRollback,时间点回档
6552
7301
  def AutoVoucher(self, AutoVoucher):
6553
7302
  self._AutoVoucher = AutoVoucher
6554
7303
 
6555
- @property
6556
- def HaCount(self):
6557
- r"""实例数量(该参数已不再使用,只做存量兼容处理)
6558
- :rtype: int
6559
- """
6560
- return self._HaCount
6561
-
6562
- @HaCount.setter
6563
- def HaCount(self, HaCount):
6564
- self._HaCount = HaCount
6565
-
6566
- @property
6567
- def OrderSource(self):
6568
- r"""订单来源
6569
- :rtype: str
6570
- """
6571
- return self._OrderSource
6572
-
6573
- @OrderSource.setter
6574
- def OrderSource(self, OrderSource):
6575
- self._OrderSource = OrderSource
6576
-
6577
7304
  @property
6578
7305
  def ResourceTags(self):
6579
7306
  r"""集群创建需要绑定的tag数组信息
@@ -6585,70 +7312,6 @@ timeRollback,时间点回档
6585
7312
  def ResourceTags(self, ResourceTags):
6586
7313
  self._ResourceTags = ResourceTags
6587
7314
 
6588
- @property
6589
- def DbMode(self):
6590
- r"""Db类型
6591
- 当DbType为MYSQL时可选(默认NORMAL):
6592
- <li>NORMAL</li>
6593
- <li>SERVERLESS</li>
6594
- :rtype: str
6595
- """
6596
- return self._DbMode
6597
-
6598
- @DbMode.setter
6599
- def DbMode(self, DbMode):
6600
- self._DbMode = DbMode
6601
-
6602
- @property
6603
- def MinCpu(self):
6604
- r"""当DbMode为SERVERLESS时必填
6605
- cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6606
- :rtype: float
6607
- """
6608
- return self._MinCpu
6609
-
6610
- @MinCpu.setter
6611
- def MinCpu(self, MinCpu):
6612
- self._MinCpu = MinCpu
6613
-
6614
- @property
6615
- def MaxCpu(self):
6616
- r"""当DbMode为SERVERLESS时必填:
6617
- cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6618
- :rtype: float
6619
- """
6620
- return self._MaxCpu
6621
-
6622
- @MaxCpu.setter
6623
- def MaxCpu(self, MaxCpu):
6624
- self._MaxCpu = MaxCpu
6625
-
6626
- @property
6627
- def AutoPause(self):
6628
- r"""当DbMode为SERVERLESS时,指定集群是否自动暂停,可选范围
6629
- <li>yes</li>
6630
- <li>no</li>
6631
- 默认值:yes
6632
- :rtype: str
6633
- """
6634
- return self._AutoPause
6635
-
6636
- @AutoPause.setter
6637
- def AutoPause(self, AutoPause):
6638
- self._AutoPause = AutoPause
6639
-
6640
- @property
6641
- def AutoPauseDelay(self):
6642
- r"""当DbMode为SERVERLESS时,指定集群自动暂停的延迟,单位秒,可选范围[600,691200]
6643
- 默认值:600
6644
- :rtype: int
6645
- """
6646
- return self._AutoPauseDelay
6647
-
6648
- @AutoPauseDelay.setter
6649
- def AutoPauseDelay(self, AutoPauseDelay):
6650
- self._AutoPauseDelay = AutoPauseDelay
6651
-
6652
7315
  @property
6653
7316
  def StoragePayMode(self):
6654
7317
  r"""集群存储计费模式,按量计费:0,包年包月:1。默认按量计费
@@ -6731,7 +7394,7 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6731
7394
  @property
6732
7395
  def InstanceInitInfos(self):
6733
7396
  r"""实例初始化配置信息,主要用于购买集群时选不同规格实例
6734
- :rtype: list of InstanceInitInfo
7397
+ :rtype: list of IntegrateInstanceInfo
6735
7398
  """
6736
7399
  return self._InstanceInitInfos
6737
7400
 
@@ -6753,7 +7416,7 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6753
7416
  @property
6754
7417
  def ProxyConfig(self):
6755
7418
  r"""数据库代理配置
6756
- :rtype: :class:`tencentcloud.cynosdb.v20190107.models.ProxyConfig`
7419
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.ProxyConfigInfo`
6757
7420
  """
6758
7421
  return self._ProxyConfig
6759
7422
 
@@ -6783,46 +7446,62 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6783
7446
  def AutoArchiveDelayHours(self, AutoArchiveDelayHours):
6784
7447
  self._AutoArchiveDelayHours = AutoArchiveDelayHours
6785
7448
 
7449
+ @property
7450
+ def EncryptMethod(self):
7451
+ r"""加密方法(由加密算法和密钥对版本组成)
7452
+ :rtype: str
7453
+ """
7454
+ return self._EncryptMethod
7455
+
7456
+ @EncryptMethod.setter
7457
+ def EncryptMethod(self, EncryptMethod):
7458
+ self._EncryptMethod = EncryptMethod
7459
+
7460
+ @property
7461
+ def IntegrateCreateClusterConfig(self):
7462
+ r"""集成集群配置信息
7463
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.IntegrateCreateClusterConfig`
7464
+ """
7465
+ return self._IntegrateCreateClusterConfig
7466
+
7467
+ @IntegrateCreateClusterConfig.setter
7468
+ def IntegrateCreateClusterConfig(self, IntegrateCreateClusterConfig):
7469
+ self._IntegrateCreateClusterConfig = IntegrateCreateClusterConfig
7470
+
7471
+ @property
7472
+ def StorageVersion(self):
7473
+ r"""存储架构类型。 枚举值:1.0/2.0 默认值:1.0
7474
+ :rtype: str
7475
+ """
7476
+ return self._StorageVersion
7477
+
7478
+ @StorageVersion.setter
7479
+ def StorageVersion(self, StorageVersion):
7480
+ self._StorageVersion = StorageVersion
7481
+
6786
7482
 
6787
7483
  def _deserialize(self, params):
6788
7484
  self._Zone = params.get("Zone")
6789
7485
  self._VpcId = params.get("VpcId")
6790
7486
  self._SubnetId = params.get("SubnetId")
6791
- self._DbType = params.get("DbType")
6792
7487
  self._DbVersion = params.get("DbVersion")
6793
7488
  self._ProjectId = params.get("ProjectId")
6794
- self._Cpu = params.get("Cpu")
6795
- self._Memory = params.get("Memory")
6796
- self._InstanceCount = params.get("InstanceCount")
6797
- self._Storage = params.get("Storage")
6798
7489
  self._ClusterName = params.get("ClusterName")
6799
7490
  self._AdminPassword = params.get("AdminPassword")
6800
7491
  self._Port = params.get("Port")
6801
7492
  self._PayMode = params.get("PayMode")
6802
7493
  self._Count = params.get("Count")
6803
- self._RollbackStrategy = params.get("RollbackStrategy")
6804
- self._RollbackId = params.get("RollbackId")
6805
- self._OriginalClusterId = params.get("OriginalClusterId")
6806
- self._ExpectTime = params.get("ExpectTime")
6807
- self._ExpectTimeThresh = params.get("ExpectTimeThresh")
6808
7494
  self._StorageLimit = params.get("StorageLimit")
6809
7495
  self._TimeSpan = params.get("TimeSpan")
6810
7496
  self._TimeUnit = params.get("TimeUnit")
6811
7497
  self._AutoRenewFlag = params.get("AutoRenewFlag")
6812
7498
  self._AutoVoucher = params.get("AutoVoucher")
6813
- self._HaCount = params.get("HaCount")
6814
- self._OrderSource = params.get("OrderSource")
6815
7499
  if params.get("ResourceTags") is not None:
6816
7500
  self._ResourceTags = []
6817
7501
  for item in params.get("ResourceTags"):
6818
7502
  obj = Tag()
6819
7503
  obj._deserialize(item)
6820
7504
  self._ResourceTags.append(obj)
6821
- self._DbMode = params.get("DbMode")
6822
- self._MinCpu = params.get("MinCpu")
6823
- self._MaxCpu = params.get("MaxCpu")
6824
- self._AutoPause = params.get("AutoPause")
6825
- self._AutoPauseDelay = params.get("AutoPauseDelay")
6826
7505
  self._StoragePayMode = params.get("StoragePayMode")
6827
7506
  self._SecurityGroupIds = params.get("SecurityGroupIds")
6828
7507
  self._AlarmPolicyIds = params.get("AlarmPolicyIds")
@@ -6838,15 +7517,20 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6838
7517
  if params.get("InstanceInitInfos") is not None:
6839
7518
  self._InstanceInitInfos = []
6840
7519
  for item in params.get("InstanceInitInfos"):
6841
- obj = InstanceInitInfo()
7520
+ obj = IntegrateInstanceInfo()
6842
7521
  obj._deserialize(item)
6843
7522
  self._InstanceInitInfos.append(obj)
6844
7523
  self._GdnId = params.get("GdnId")
6845
7524
  if params.get("ProxyConfig") is not None:
6846
- self._ProxyConfig = ProxyConfig()
7525
+ self._ProxyConfig = ProxyConfigInfo()
6847
7526
  self._ProxyConfig._deserialize(params.get("ProxyConfig"))
6848
7527
  self._AutoArchive = params.get("AutoArchive")
6849
7528
  self._AutoArchiveDelayHours = params.get("AutoArchiveDelayHours")
7529
+ self._EncryptMethod = params.get("EncryptMethod")
7530
+ if params.get("IntegrateCreateClusterConfig") is not None:
7531
+ self._IntegrateCreateClusterConfig = IntegrateCreateClusterConfig()
7532
+ self._IntegrateCreateClusterConfig._deserialize(params.get("IntegrateCreateClusterConfig"))
7533
+ self._StorageVersion = params.get("StorageVersion")
6850
7534
  memeber_set = set(params.keys())
6851
7535
  for name, value in vars(self).items():
6852
7536
  property_name = name[1:]
@@ -6857,8 +7541,8 @@ cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
6857
7541
 
6858
7542
 
6859
7543
 
6860
- class CreateClustersResponse(AbstractModel):
6861
- r"""CreateClusters返回参数结构体
7544
+ class CreateIntegrateClusterResponse(AbstractModel):
7545
+ r"""CreateIntegrateCluster返回参数结构体
6862
7546
 
6863
7547
  """
6864
7548
 
@@ -7799,7 +8483,7 @@ class CreateResourcePackageRequest(AbstractModel):
7799
8483
  :param _PackageVersion: 资源包版本
7800
8484
  base-基础版本,common-通用版本,enterprise-企业版本
7801
8485
  :type PackageVersion: str
7802
- :param _PackageSpec: 资源包大小,计算资源单位:万个;存储资源:GB
8486
+ :param _PackageSpec: 资源包大小,计算资源单位:个;存储资源:GB
7803
8487
  :type PackageSpec: float
7804
8488
  :param _ExpireDay: 资源包有效期,单位:天
7805
8489
  :type ExpireDay: int
@@ -7864,7 +8548,7 @@ base-基础版本,common-通用版本,enterprise-企业版本
7864
8548
 
7865
8549
  @property
7866
8550
  def PackageSpec(self):
7867
- r"""资源包大小,计算资源单位:万个;存储资源:GB
8551
+ r"""资源包大小,计算资源单位:个;存储资源:GB
7868
8552
  :rtype: float
7869
8553
  """
7870
8554
  return self._PackageSpec
@@ -10742,6 +11426,15 @@ class CynosdbInstanceDetail(AbstractModel):
10742
11426
  :param _Zone: 可用区
10743
11427
  :type Zone: str
10744
11428
  :param _Status: 实例状态
11429
+ creating:创建中
11430
+ running:运行中
11431
+ isolating:隔离中
11432
+ isolated:已隔离
11433
+ activating:解隔离中
11434
+ offlining:下线中
11435
+ offlined:已下线
11436
+ deleting:删除中
11437
+ deleted:已删除
10745
11438
  :type Status: str
10746
11439
  :param _StatusDesc: 实例状态中文描述
10747
11440
  :type StatusDesc: str
@@ -10934,6 +11627,15 @@ pause
10934
11627
  @property
10935
11628
  def Status(self):
10936
11629
  r"""实例状态
11630
+ creating:创建中
11631
+ running:运行中
11632
+ isolating:隔离中
11633
+ isolated:已隔离
11634
+ activating:解隔离中
11635
+ offlining:下线中
11636
+ offlined:已下线
11637
+ deleting:删除中
11638
+ deleted:已删除
10937
11639
  :rtype: str
10938
11640
  """
10939
11641
  return self._Status
@@ -17093,11 +17795,17 @@ class DescribeClusterTransparentEncryptInfoResponse(AbstractModel):
17093
17795
  :param _KeyRegion: 加密秘钥地域
17094
17796
 
17095
17797
  :type KeyRegion: str
17798
+ :param _KeyType: 秘钥类型
17799
+ :type KeyType: str
17800
+ :param _IsOpenGlobalEncryption: 是否已经开启全局加密
17801
+ :type IsOpenGlobalEncryption: bool
17096
17802
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17097
17803
  :type RequestId: str
17098
17804
  """
17099
17805
  self._KeyId = None
17100
17806
  self._KeyRegion = None
17807
+ self._KeyType = None
17808
+ self._IsOpenGlobalEncryption = None
17101
17809
  self._RequestId = None
17102
17810
 
17103
17811
  @property
@@ -17123,6 +17831,28 @@ class DescribeClusterTransparentEncryptInfoResponse(AbstractModel):
17123
17831
  def KeyRegion(self, KeyRegion):
17124
17832
  self._KeyRegion = KeyRegion
17125
17833
 
17834
+ @property
17835
+ def KeyType(self):
17836
+ r"""秘钥类型
17837
+ :rtype: str
17838
+ """
17839
+ return self._KeyType
17840
+
17841
+ @KeyType.setter
17842
+ def KeyType(self, KeyType):
17843
+ self._KeyType = KeyType
17844
+
17845
+ @property
17846
+ def IsOpenGlobalEncryption(self):
17847
+ r"""是否已经开启全局加密
17848
+ :rtype: bool
17849
+ """
17850
+ return self._IsOpenGlobalEncryption
17851
+
17852
+ @IsOpenGlobalEncryption.setter
17853
+ def IsOpenGlobalEncryption(self, IsOpenGlobalEncryption):
17854
+ self._IsOpenGlobalEncryption = IsOpenGlobalEncryption
17855
+
17126
17856
  @property
17127
17857
  def RequestId(self):
17128
17858
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -17138,6 +17868,8 @@ class DescribeClusterTransparentEncryptInfoResponse(AbstractModel):
17138
17868
  def _deserialize(self, params):
17139
17869
  self._KeyId = params.get("KeyId")
17140
17870
  self._KeyRegion = params.get("KeyRegion")
17871
+ self._KeyType = params.get("KeyType")
17872
+ self._IsOpenGlobalEncryption = params.get("IsOpenGlobalEncryption")
17141
17873
  self._RequestId = params.get("RequestId")
17142
17874
 
17143
17875
 
@@ -17337,7 +18069,7 @@ class DescribeDBSecurityGroupsRequest(AbstractModel):
17337
18069
  r"""
17338
18070
  :param _InstanceId: 实例ID(InstanceId与InstanceGroupId必须任选一个传入)
17339
18071
  :type InstanceId: str
17340
- :param _InstanceGroupId: 实例组ID(InstanceId与InstanceGroupId必须任选一个传入)
18072
+ :param _InstanceGroupId: 实例组 ID,可通过 [DescribeClusterInstanceGroups](https://cloud.tencent.com/document/product/1003/103934) 接口查询。
17341
18073
  :type InstanceGroupId: str
17342
18074
  """
17343
18075
  self._InstanceId = None
@@ -17360,7 +18092,7 @@ class DescribeDBSecurityGroupsRequest(AbstractModel):
17360
18092
 
17361
18093
  @property
17362
18094
  def InstanceGroupId(self):
17363
- r"""实例组ID(InstanceId与InstanceGroupId必须任选一个传入)
18095
+ r"""实例组 ID,可通过 [DescribeClusterInstanceGroups](https://cloud.tencent.com/document/product/1003/103934) 接口查询。
17364
18096
  :rtype: str
17365
18097
  """
17366
18098
  return self._InstanceGroupId
@@ -18777,6 +19509,130 @@ class DescribeInstancesWithinSameClusterResponse(AbstractModel):
18777
19509
  self._RequestId = params.get("RequestId")
18778
19510
 
18779
19511
 
19512
+ class DescribeIntegrateTaskRequest(AbstractModel):
19513
+ r"""DescribeIntegrateTask请求参数结构体
19514
+
19515
+ """
19516
+
19517
+ def __init__(self):
19518
+ r"""
19519
+ :param _BigDealId: 大订单id,大订单id和子订单id必须二选一
19520
+ :type BigDealId: str
19521
+ :param _DealNames: 订单列表
19522
+ :type DealNames: list of str
19523
+ """
19524
+ self._BigDealId = None
19525
+ self._DealNames = None
19526
+
19527
+ @property
19528
+ def BigDealId(self):
19529
+ r"""大订单id,大订单id和子订单id必须二选一
19530
+ :rtype: str
19531
+ """
19532
+ return self._BigDealId
19533
+
19534
+ @BigDealId.setter
19535
+ def BigDealId(self, BigDealId):
19536
+ self._BigDealId = BigDealId
19537
+
19538
+ @property
19539
+ def DealNames(self):
19540
+ r"""订单列表
19541
+ :rtype: list of str
19542
+ """
19543
+ return self._DealNames
19544
+
19545
+ @DealNames.setter
19546
+ def DealNames(self, DealNames):
19547
+ self._DealNames = DealNames
19548
+
19549
+
19550
+ def _deserialize(self, params):
19551
+ self._BigDealId = params.get("BigDealId")
19552
+ self._DealNames = params.get("DealNames")
19553
+ memeber_set = set(params.keys())
19554
+ for name, value in vars(self).items():
19555
+ property_name = name[1:]
19556
+ if property_name in memeber_set:
19557
+ memeber_set.remove(property_name)
19558
+ if len(memeber_set) > 0:
19559
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19560
+
19561
+
19562
+
19563
+ class DescribeIntegrateTaskResponse(AbstractModel):
19564
+ r"""DescribeIntegrateTask返回参数结构体
19565
+
19566
+ """
19567
+
19568
+ def __init__(self):
19569
+ r"""
19570
+ :param _CurrentStep: 当前步骤
19571
+ :type CurrentStep: str
19572
+ :param _CurrentProgress: 当前进度
19573
+ :type CurrentProgress: str
19574
+ :param _TaskStatus: 任务状态
19575
+ :type TaskStatus: str
19576
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19577
+ :type RequestId: str
19578
+ """
19579
+ self._CurrentStep = None
19580
+ self._CurrentProgress = None
19581
+ self._TaskStatus = None
19582
+ self._RequestId = None
19583
+
19584
+ @property
19585
+ def CurrentStep(self):
19586
+ r"""当前步骤
19587
+ :rtype: str
19588
+ """
19589
+ return self._CurrentStep
19590
+
19591
+ @CurrentStep.setter
19592
+ def CurrentStep(self, CurrentStep):
19593
+ self._CurrentStep = CurrentStep
19594
+
19595
+ @property
19596
+ def CurrentProgress(self):
19597
+ r"""当前进度
19598
+ :rtype: str
19599
+ """
19600
+ return self._CurrentProgress
19601
+
19602
+ @CurrentProgress.setter
19603
+ def CurrentProgress(self, CurrentProgress):
19604
+ self._CurrentProgress = CurrentProgress
19605
+
19606
+ @property
19607
+ def TaskStatus(self):
19608
+ r"""任务状态
19609
+ :rtype: str
19610
+ """
19611
+ return self._TaskStatus
19612
+
19613
+ @TaskStatus.setter
19614
+ def TaskStatus(self, TaskStatus):
19615
+ self._TaskStatus = TaskStatus
19616
+
19617
+ @property
19618
+ def RequestId(self):
19619
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19620
+ :rtype: str
19621
+ """
19622
+ return self._RequestId
19623
+
19624
+ @RequestId.setter
19625
+ def RequestId(self, RequestId):
19626
+ self._RequestId = RequestId
19627
+
19628
+
19629
+ def _deserialize(self, params):
19630
+ self._CurrentStep = params.get("CurrentStep")
19631
+ self._CurrentProgress = params.get("CurrentProgress")
19632
+ self._TaskStatus = params.get("TaskStatus")
19633
+ self._RequestId = params.get("RequestId")
19634
+
19635
+
18780
19636
  class DescribeIsolatedInstancesRequest(AbstractModel):
18781
19637
  r"""DescribeIsolatedInstances请求参数结构体
18782
19638
 
@@ -22722,7 +23578,7 @@ class GdnTaskInfo(AbstractModel):
22722
23578
  :type StandbyClusterRegion: str
22723
23579
  :param _StandbyClusterId: 从集群ID
22724
23580
  :type StandbyClusterId: str
22725
- :param _StandbyClusterName: 从集群别名
23581
+ :param _StandbyClusterName: 从集群名称
22726
23582
  :type StandbyClusterName: str
22727
23583
  """
22728
23584
  self._GdnId = None
@@ -22801,7 +23657,7 @@ class GdnTaskInfo(AbstractModel):
22801
23657
 
22802
23658
  @property
22803
23659
  def StandbyClusterName(self):
22804
- r"""从集群别名
23660
+ r"""从集群名称
22805
23661
  :rtype: str
22806
23662
  """
22807
23663
  return self._StandbyClusterName
@@ -22829,6 +23685,239 @@ class GdnTaskInfo(AbstractModel):
22829
23685
 
22830
23686
 
22831
23687
 
23688
+ class GoodsPrice(AbstractModel):
23689
+ r"""商品价格
23690
+
23691
+ """
23692
+
23693
+ def __init__(self):
23694
+ r"""
23695
+ :param _InstancePrice: 实例价格
23696
+ 注意:此字段可能返回 null,表示取不到有效值。
23697
+ :type InstancePrice: :class:`tencentcloud.cynosdb.v20190107.models.TradePrice`
23698
+ :param _StoragePrice: 存储价格
23699
+ 注意:此字段可能返回 null,表示取不到有效值。
23700
+ :type StoragePrice: :class:`tencentcloud.cynosdb.v20190107.models.TradePrice`
23701
+ :param _GoodsSpec: 商品规格
23702
+ 注意:此字段可能返回 null,表示取不到有效值。
23703
+ :type GoodsSpec: :class:`tencentcloud.cynosdb.v20190107.models.GoodsSpec`
23704
+ """
23705
+ self._InstancePrice = None
23706
+ self._StoragePrice = None
23707
+ self._GoodsSpec = None
23708
+
23709
+ @property
23710
+ def InstancePrice(self):
23711
+ r"""实例价格
23712
+ 注意:此字段可能返回 null,表示取不到有效值。
23713
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.TradePrice`
23714
+ """
23715
+ return self._InstancePrice
23716
+
23717
+ @InstancePrice.setter
23718
+ def InstancePrice(self, InstancePrice):
23719
+ self._InstancePrice = InstancePrice
23720
+
23721
+ @property
23722
+ def StoragePrice(self):
23723
+ r"""存储价格
23724
+ 注意:此字段可能返回 null,表示取不到有效值。
23725
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.TradePrice`
23726
+ """
23727
+ return self._StoragePrice
23728
+
23729
+ @StoragePrice.setter
23730
+ def StoragePrice(self, StoragePrice):
23731
+ self._StoragePrice = StoragePrice
23732
+
23733
+ @property
23734
+ def GoodsSpec(self):
23735
+ r"""商品规格
23736
+ 注意:此字段可能返回 null,表示取不到有效值。
23737
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.GoodsSpec`
23738
+ """
23739
+ return self._GoodsSpec
23740
+
23741
+ @GoodsSpec.setter
23742
+ def GoodsSpec(self, GoodsSpec):
23743
+ self._GoodsSpec = GoodsSpec
23744
+
23745
+
23746
+ def _deserialize(self, params):
23747
+ if params.get("InstancePrice") is not None:
23748
+ self._InstancePrice = TradePrice()
23749
+ self._InstancePrice._deserialize(params.get("InstancePrice"))
23750
+ if params.get("StoragePrice") is not None:
23751
+ self._StoragePrice = TradePrice()
23752
+ self._StoragePrice._deserialize(params.get("StoragePrice"))
23753
+ if params.get("GoodsSpec") is not None:
23754
+ self._GoodsSpec = GoodsSpec()
23755
+ self._GoodsSpec._deserialize(params.get("GoodsSpec"))
23756
+ memeber_set = set(params.keys())
23757
+ for name, value in vars(self).items():
23758
+ property_name = name[1:]
23759
+ if property_name in memeber_set:
23760
+ memeber_set.remove(property_name)
23761
+ if len(memeber_set) > 0:
23762
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
23763
+
23764
+
23765
+
23766
+ class GoodsSpec(AbstractModel):
23767
+ r"""商品规格
23768
+
23769
+ """
23770
+
23771
+ def __init__(self):
23772
+ r"""
23773
+ :param _GoodsNum: 商品数量
23774
+ 注意:此字段可能返回 null,表示取不到有效值。
23775
+ :type GoodsNum: int
23776
+ :param _Cpu: CPU核数,PREPAID与POSTPAID实例类型必传
23777
+ 注意:此字段可能返回 null,表示取不到有效值。
23778
+ :type Cpu: int
23779
+ :param _Memory: 内存大小,单位G,PREPAID与POSTPAID实例类型必传
23780
+ 注意:此字段可能返回 null,表示取不到有效值。
23781
+ :type Memory: int
23782
+ :param _Ccu: Ccu大小,serverless类型必传
23783
+ 注意:此字段可能返回 null,表示取不到有效值。
23784
+ :type Ccu: float
23785
+ :param _StorageLimit: 存储大小,PREPAID存储类型必传
23786
+ 注意:此字段可能返回 null,表示取不到有效值。
23787
+ :type StorageLimit: int
23788
+ :param _TimeSpan: 购买时长
23789
+ 注意:此字段可能返回 null,表示取不到有效值。
23790
+ :type TimeSpan: int
23791
+ :param _TimeUnit: 时长单位
23792
+ 注意:此字段可能返回 null,表示取不到有效值。
23793
+ :type TimeUnit: str
23794
+ :param _DeviceType: 机器类型
23795
+ :type DeviceType: str
23796
+ """
23797
+ self._GoodsNum = None
23798
+ self._Cpu = None
23799
+ self._Memory = None
23800
+ self._Ccu = None
23801
+ self._StorageLimit = None
23802
+ self._TimeSpan = None
23803
+ self._TimeUnit = None
23804
+ self._DeviceType = None
23805
+
23806
+ @property
23807
+ def GoodsNum(self):
23808
+ r"""商品数量
23809
+ 注意:此字段可能返回 null,表示取不到有效值。
23810
+ :rtype: int
23811
+ """
23812
+ return self._GoodsNum
23813
+
23814
+ @GoodsNum.setter
23815
+ def GoodsNum(self, GoodsNum):
23816
+ self._GoodsNum = GoodsNum
23817
+
23818
+ @property
23819
+ def Cpu(self):
23820
+ r"""CPU核数,PREPAID与POSTPAID实例类型必传
23821
+ 注意:此字段可能返回 null,表示取不到有效值。
23822
+ :rtype: int
23823
+ """
23824
+ return self._Cpu
23825
+
23826
+ @Cpu.setter
23827
+ def Cpu(self, Cpu):
23828
+ self._Cpu = Cpu
23829
+
23830
+ @property
23831
+ def Memory(self):
23832
+ r"""内存大小,单位G,PREPAID与POSTPAID实例类型必传
23833
+ 注意:此字段可能返回 null,表示取不到有效值。
23834
+ :rtype: int
23835
+ """
23836
+ return self._Memory
23837
+
23838
+ @Memory.setter
23839
+ def Memory(self, Memory):
23840
+ self._Memory = Memory
23841
+
23842
+ @property
23843
+ def Ccu(self):
23844
+ r"""Ccu大小,serverless类型必传
23845
+ 注意:此字段可能返回 null,表示取不到有效值。
23846
+ :rtype: float
23847
+ """
23848
+ return self._Ccu
23849
+
23850
+ @Ccu.setter
23851
+ def Ccu(self, Ccu):
23852
+ self._Ccu = Ccu
23853
+
23854
+ @property
23855
+ def StorageLimit(self):
23856
+ r"""存储大小,PREPAID存储类型必传
23857
+ 注意:此字段可能返回 null,表示取不到有效值。
23858
+ :rtype: int
23859
+ """
23860
+ return self._StorageLimit
23861
+
23862
+ @StorageLimit.setter
23863
+ def StorageLimit(self, StorageLimit):
23864
+ self._StorageLimit = StorageLimit
23865
+
23866
+ @property
23867
+ def TimeSpan(self):
23868
+ r"""购买时长
23869
+ 注意:此字段可能返回 null,表示取不到有效值。
23870
+ :rtype: int
23871
+ """
23872
+ return self._TimeSpan
23873
+
23874
+ @TimeSpan.setter
23875
+ def TimeSpan(self, TimeSpan):
23876
+ self._TimeSpan = TimeSpan
23877
+
23878
+ @property
23879
+ def TimeUnit(self):
23880
+ r"""时长单位
23881
+ 注意:此字段可能返回 null,表示取不到有效值。
23882
+ :rtype: str
23883
+ """
23884
+ return self._TimeUnit
23885
+
23886
+ @TimeUnit.setter
23887
+ def TimeUnit(self, TimeUnit):
23888
+ self._TimeUnit = TimeUnit
23889
+
23890
+ @property
23891
+ def DeviceType(self):
23892
+ r"""机器类型
23893
+ :rtype: str
23894
+ """
23895
+ return self._DeviceType
23896
+
23897
+ @DeviceType.setter
23898
+ def DeviceType(self, DeviceType):
23899
+ self._DeviceType = DeviceType
23900
+
23901
+
23902
+ def _deserialize(self, params):
23903
+ self._GoodsNum = params.get("GoodsNum")
23904
+ self._Cpu = params.get("Cpu")
23905
+ self._Memory = params.get("Memory")
23906
+ self._Ccu = params.get("Ccu")
23907
+ self._StorageLimit = params.get("StorageLimit")
23908
+ self._TimeSpan = params.get("TimeSpan")
23909
+ self._TimeUnit = params.get("TimeUnit")
23910
+ self._DeviceType = params.get("DeviceType")
23911
+ memeber_set = set(params.keys())
23912
+ for name, value in vars(self).items():
23913
+ property_name = name[1:]
23914
+ if property_name in memeber_set:
23915
+ memeber_set.remove(property_name)
23916
+ if len(memeber_set) > 0:
23917
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
23918
+
23919
+
23920
+
22832
23921
  class GrantAccountPrivilegesRequest(AbstractModel):
22833
23922
  r"""GrantAccountPrivileges请求参数结构体
22834
23923
 
@@ -23432,6 +24521,140 @@ class InquirePriceModifyResponse(AbstractModel):
23432
24521
  self._RequestId = params.get("RequestId")
23433
24522
 
23434
24523
 
24524
+ class InquirePriceMultiSpecRequest(AbstractModel):
24525
+ r"""InquirePriceMultiSpec请求参数结构体
24526
+
24527
+ """
24528
+
24529
+ def __init__(self):
24530
+ r"""
24531
+ :param _Zone: 可用区,每个地域提供最佳实践
24532
+ :type Zone: str
24533
+ :param _InstancePayMode: 实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
24534
+ :type InstancePayMode: str
24535
+ :param _StoragePayMode: 存储购买类型,可选值为:PREPAID, POSTPAID
24536
+ :type StoragePayMode: str
24537
+ :param _GoodsSpecs: 商品规格
24538
+ :type GoodsSpecs: list of GoodsSpec
24539
+ """
24540
+ self._Zone = None
24541
+ self._InstancePayMode = None
24542
+ self._StoragePayMode = None
24543
+ self._GoodsSpecs = None
24544
+
24545
+ @property
24546
+ def Zone(self):
24547
+ r"""可用区,每个地域提供最佳实践
24548
+ :rtype: str
24549
+ """
24550
+ return self._Zone
24551
+
24552
+ @Zone.setter
24553
+ def Zone(self, Zone):
24554
+ self._Zone = Zone
24555
+
24556
+ @property
24557
+ def InstancePayMode(self):
24558
+ r"""实例购买类型,可选值为:PREPAID, POSTPAID, SERVERLESS
24559
+ :rtype: str
24560
+ """
24561
+ return self._InstancePayMode
24562
+
24563
+ @InstancePayMode.setter
24564
+ def InstancePayMode(self, InstancePayMode):
24565
+ self._InstancePayMode = InstancePayMode
24566
+
24567
+ @property
24568
+ def StoragePayMode(self):
24569
+ r"""存储购买类型,可选值为:PREPAID, POSTPAID
24570
+ :rtype: str
24571
+ """
24572
+ return self._StoragePayMode
24573
+
24574
+ @StoragePayMode.setter
24575
+ def StoragePayMode(self, StoragePayMode):
24576
+ self._StoragePayMode = StoragePayMode
24577
+
24578
+ @property
24579
+ def GoodsSpecs(self):
24580
+ r"""商品规格
24581
+ :rtype: list of GoodsSpec
24582
+ """
24583
+ return self._GoodsSpecs
24584
+
24585
+ @GoodsSpecs.setter
24586
+ def GoodsSpecs(self, GoodsSpecs):
24587
+ self._GoodsSpecs = GoodsSpecs
24588
+
24589
+
24590
+ def _deserialize(self, params):
24591
+ self._Zone = params.get("Zone")
24592
+ self._InstancePayMode = params.get("InstancePayMode")
24593
+ self._StoragePayMode = params.get("StoragePayMode")
24594
+ if params.get("GoodsSpecs") is not None:
24595
+ self._GoodsSpecs = []
24596
+ for item in params.get("GoodsSpecs"):
24597
+ obj = GoodsSpec()
24598
+ obj._deserialize(item)
24599
+ self._GoodsSpecs.append(obj)
24600
+ memeber_set = set(params.keys())
24601
+ for name, value in vars(self).items():
24602
+ property_name = name[1:]
24603
+ if property_name in memeber_set:
24604
+ memeber_set.remove(property_name)
24605
+ if len(memeber_set) > 0:
24606
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
24607
+
24608
+
24609
+
24610
+ class InquirePriceMultiSpecResponse(AbstractModel):
24611
+ r"""InquirePriceMultiSpec返回参数结构体
24612
+
24613
+ """
24614
+
24615
+ def __init__(self):
24616
+ r"""
24617
+ :param _GoodsPrice: 商品价格
24618
+ :type GoodsPrice: list of GoodsPrice
24619
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24620
+ :type RequestId: str
24621
+ """
24622
+ self._GoodsPrice = None
24623
+ self._RequestId = None
24624
+
24625
+ @property
24626
+ def GoodsPrice(self):
24627
+ r"""商品价格
24628
+ :rtype: list of GoodsPrice
24629
+ """
24630
+ return self._GoodsPrice
24631
+
24632
+ @GoodsPrice.setter
24633
+ def GoodsPrice(self, GoodsPrice):
24634
+ self._GoodsPrice = GoodsPrice
24635
+
24636
+ @property
24637
+ def RequestId(self):
24638
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24639
+ :rtype: str
24640
+ """
24641
+ return self._RequestId
24642
+
24643
+ @RequestId.setter
24644
+ def RequestId(self, RequestId):
24645
+ self._RequestId = RequestId
24646
+
24647
+
24648
+ def _deserialize(self, params):
24649
+ if params.get("GoodsPrice") is not None:
24650
+ self._GoodsPrice = []
24651
+ for item in params.get("GoodsPrice"):
24652
+ obj = GoodsPrice()
24653
+ obj._deserialize(item)
24654
+ self._GoodsPrice.append(obj)
24655
+ self._RequestId = params.get("RequestId")
24656
+
24657
+
23435
24658
  class InquirePriceRenewRequest(AbstractModel):
23436
24659
  r"""InquirePriceRenew请求参数结构体
23437
24660
 
@@ -24436,6 +25659,57 @@ class InstanceInitInfo(AbstractModel):
24436
25659
 
24437
25660
 
24438
25661
 
25662
+ class InstanceNameWeight(AbstractModel):
25663
+ r"""实例权重
25664
+
25665
+ """
25666
+
25667
+ def __init__(self):
25668
+ r"""
25669
+ :param _InstanceName: 实例名称,创建集群中InstanceInitInfo.InstanceName所指定名称
25670
+ :type InstanceName: str
25671
+ :param _Weight: 权重
25672
+ :type Weight: int
25673
+ """
25674
+ self._InstanceName = None
25675
+ self._Weight = None
25676
+
25677
+ @property
25678
+ def InstanceName(self):
25679
+ r"""实例名称,创建集群中InstanceInitInfo.InstanceName所指定名称
25680
+ :rtype: str
25681
+ """
25682
+ return self._InstanceName
25683
+
25684
+ @InstanceName.setter
25685
+ def InstanceName(self, InstanceName):
25686
+ self._InstanceName = InstanceName
25687
+
25688
+ @property
25689
+ def Weight(self):
25690
+ r"""权重
25691
+ :rtype: int
25692
+ """
25693
+ return self._Weight
25694
+
25695
+ @Weight.setter
25696
+ def Weight(self, Weight):
25697
+ self._Weight = Weight
25698
+
25699
+
25700
+ def _deserialize(self, params):
25701
+ self._InstanceName = params.get("InstanceName")
25702
+ self._Weight = params.get("Weight")
25703
+ memeber_set = set(params.keys())
25704
+ for name, value in vars(self).items():
25705
+ property_name = name[1:]
25706
+ if property_name in memeber_set:
25707
+ memeber_set.remove(property_name)
25708
+ if len(memeber_set) > 0:
25709
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
25710
+
25711
+
25712
+
24439
25713
  class InstanceNetInfo(AbstractModel):
24440
25714
  r"""实例网络信息
24441
25715
 
@@ -24884,6 +26158,188 @@ class InstanceSpec(AbstractModel):
24884
26158
 
24885
26159
 
24886
26160
 
26161
+ class IntegrateCreateClusterConfig(AbstractModel):
26162
+ r"""集成集群配置
26163
+
26164
+ """
26165
+
26166
+ def __init__(self):
26167
+ r"""
26168
+ :param _BinlogSaveDays: binlog保留天数[7,1830]
26169
+ :type BinlogSaveDays: int
26170
+ :param _BackupSaveDays: 备份保留天数[7,1830]
26171
+ :type BackupSaveDays: int
26172
+ :param _SemiSyncTimeout: 半同步超时时间[1000,4294967295]
26173
+ :type SemiSyncTimeout: int
26174
+ :param _ProxyEndPointConfigs: proxy连接地址配置信息
26175
+ :type ProxyEndPointConfigs: list of ProxyEndPointConfigInfo
26176
+ """
26177
+ self._BinlogSaveDays = None
26178
+ self._BackupSaveDays = None
26179
+ self._SemiSyncTimeout = None
26180
+ self._ProxyEndPointConfigs = None
26181
+
26182
+ @property
26183
+ def BinlogSaveDays(self):
26184
+ r"""binlog保留天数[7,1830]
26185
+ :rtype: int
26186
+ """
26187
+ return self._BinlogSaveDays
26188
+
26189
+ @BinlogSaveDays.setter
26190
+ def BinlogSaveDays(self, BinlogSaveDays):
26191
+ self._BinlogSaveDays = BinlogSaveDays
26192
+
26193
+ @property
26194
+ def BackupSaveDays(self):
26195
+ r"""备份保留天数[7,1830]
26196
+ :rtype: int
26197
+ """
26198
+ return self._BackupSaveDays
26199
+
26200
+ @BackupSaveDays.setter
26201
+ def BackupSaveDays(self, BackupSaveDays):
26202
+ self._BackupSaveDays = BackupSaveDays
26203
+
26204
+ @property
26205
+ def SemiSyncTimeout(self):
26206
+ r"""半同步超时时间[1000,4294967295]
26207
+ :rtype: int
26208
+ """
26209
+ return self._SemiSyncTimeout
26210
+
26211
+ @SemiSyncTimeout.setter
26212
+ def SemiSyncTimeout(self, SemiSyncTimeout):
26213
+ self._SemiSyncTimeout = SemiSyncTimeout
26214
+
26215
+ @property
26216
+ def ProxyEndPointConfigs(self):
26217
+ r"""proxy连接地址配置信息
26218
+ :rtype: list of ProxyEndPointConfigInfo
26219
+ """
26220
+ return self._ProxyEndPointConfigs
26221
+
26222
+ @ProxyEndPointConfigs.setter
26223
+ def ProxyEndPointConfigs(self, ProxyEndPointConfigs):
26224
+ self._ProxyEndPointConfigs = ProxyEndPointConfigs
26225
+
26226
+
26227
+ def _deserialize(self, params):
26228
+ self._BinlogSaveDays = params.get("BinlogSaveDays")
26229
+ self._BackupSaveDays = params.get("BackupSaveDays")
26230
+ self._SemiSyncTimeout = params.get("SemiSyncTimeout")
26231
+ if params.get("ProxyEndPointConfigs") is not None:
26232
+ self._ProxyEndPointConfigs = []
26233
+ for item in params.get("ProxyEndPointConfigs"):
26234
+ obj = ProxyEndPointConfigInfo()
26235
+ obj._deserialize(item)
26236
+ self._ProxyEndPointConfigs.append(obj)
26237
+ memeber_set = set(params.keys())
26238
+ for name, value in vars(self).items():
26239
+ property_name = name[1:]
26240
+ if property_name in memeber_set:
26241
+ memeber_set.remove(property_name)
26242
+ if len(memeber_set) > 0:
26243
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26244
+
26245
+
26246
+
26247
+ class IntegrateInstanceInfo(AbstractModel):
26248
+ r"""实例初始化配置信息
26249
+
26250
+ """
26251
+
26252
+ def __init__(self):
26253
+ r"""
26254
+ :param _Cpu: 实例cpu
26255
+ :type Cpu: int
26256
+ :param _Memory: 实例内存
26257
+ :type Memory: int
26258
+ :param _InstanceType: 实例类型 rw/ro
26259
+ :type InstanceType: str
26260
+ :param _InstanceCount: 实例个数,范围[1,15]
26261
+ :type InstanceCount: int
26262
+ :param _DeviceType: 实例机器类型 common-公通用型,exclusive-独享型
26263
+ :type DeviceType: str
26264
+ """
26265
+ self._Cpu = None
26266
+ self._Memory = None
26267
+ self._InstanceType = None
26268
+ self._InstanceCount = None
26269
+ self._DeviceType = None
26270
+
26271
+ @property
26272
+ def Cpu(self):
26273
+ r"""实例cpu
26274
+ :rtype: int
26275
+ """
26276
+ return self._Cpu
26277
+
26278
+ @Cpu.setter
26279
+ def Cpu(self, Cpu):
26280
+ self._Cpu = Cpu
26281
+
26282
+ @property
26283
+ def Memory(self):
26284
+ r"""实例内存
26285
+ :rtype: int
26286
+ """
26287
+ return self._Memory
26288
+
26289
+ @Memory.setter
26290
+ def Memory(self, Memory):
26291
+ self._Memory = Memory
26292
+
26293
+ @property
26294
+ def InstanceType(self):
26295
+ r"""实例类型 rw/ro
26296
+ :rtype: str
26297
+ """
26298
+ return self._InstanceType
26299
+
26300
+ @InstanceType.setter
26301
+ def InstanceType(self, InstanceType):
26302
+ self._InstanceType = InstanceType
26303
+
26304
+ @property
26305
+ def InstanceCount(self):
26306
+ r"""实例个数,范围[1,15]
26307
+ :rtype: int
26308
+ """
26309
+ return self._InstanceCount
26310
+
26311
+ @InstanceCount.setter
26312
+ def InstanceCount(self, InstanceCount):
26313
+ self._InstanceCount = InstanceCount
26314
+
26315
+ @property
26316
+ def DeviceType(self):
26317
+ r"""实例机器类型 common-公通用型,exclusive-独享型
26318
+ :rtype: str
26319
+ """
26320
+ return self._DeviceType
26321
+
26322
+ @DeviceType.setter
26323
+ def DeviceType(self, DeviceType):
26324
+ self._DeviceType = DeviceType
26325
+
26326
+
26327
+ def _deserialize(self, params):
26328
+ self._Cpu = params.get("Cpu")
26329
+ self._Memory = params.get("Memory")
26330
+ self._InstanceType = params.get("InstanceType")
26331
+ self._InstanceCount = params.get("InstanceCount")
26332
+ self._DeviceType = params.get("DeviceType")
26333
+ memeber_set = set(params.keys())
26334
+ for name, value in vars(self).items():
26335
+ property_name = name[1:]
26336
+ if property_name in memeber_set:
26337
+ memeber_set.remove(property_name)
26338
+ if len(memeber_set) > 0:
26339
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26340
+
26341
+
26342
+
24887
26343
  class IsolateClusterRequest(AbstractModel):
24888
26344
  r"""IsolateCluster请求参数结构体
24889
26345
 
@@ -27065,6 +28521,100 @@ class ModifyClusterDatabaseResponse(AbstractModel):
27065
28521
  self._RequestId = params.get("RequestId")
27066
28522
 
27067
28523
 
28524
+ class ModifyClusterGlobalEncryptionRequest(AbstractModel):
28525
+ r"""ModifyClusterGlobalEncryption请求参数结构体
28526
+
28527
+ """
28528
+
28529
+ def __init__(self):
28530
+ r"""
28531
+ :param _ClusterId: 集群id
28532
+ :type ClusterId: str
28533
+ :param _IsOpenGlobalEncryption: 开启或关闭全局加密
28534
+ :type IsOpenGlobalEncryption: bool
28535
+ """
28536
+ self._ClusterId = None
28537
+ self._IsOpenGlobalEncryption = None
28538
+
28539
+ @property
28540
+ def ClusterId(self):
28541
+ r"""集群id
28542
+ :rtype: str
28543
+ """
28544
+ return self._ClusterId
28545
+
28546
+ @ClusterId.setter
28547
+ def ClusterId(self, ClusterId):
28548
+ self._ClusterId = ClusterId
28549
+
28550
+ @property
28551
+ def IsOpenGlobalEncryption(self):
28552
+ r"""开启或关闭全局加密
28553
+ :rtype: bool
28554
+ """
28555
+ return self._IsOpenGlobalEncryption
28556
+
28557
+ @IsOpenGlobalEncryption.setter
28558
+ def IsOpenGlobalEncryption(self, IsOpenGlobalEncryption):
28559
+ self._IsOpenGlobalEncryption = IsOpenGlobalEncryption
28560
+
28561
+
28562
+ def _deserialize(self, params):
28563
+ self._ClusterId = params.get("ClusterId")
28564
+ self._IsOpenGlobalEncryption = params.get("IsOpenGlobalEncryption")
28565
+ memeber_set = set(params.keys())
28566
+ for name, value in vars(self).items():
28567
+ property_name = name[1:]
28568
+ if property_name in memeber_set:
28569
+ memeber_set.remove(property_name)
28570
+ if len(memeber_set) > 0:
28571
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
28572
+
28573
+
28574
+
28575
+ class ModifyClusterGlobalEncryptionResponse(AbstractModel):
28576
+ r"""ModifyClusterGlobalEncryption返回参数结构体
28577
+
28578
+ """
28579
+
28580
+ def __init__(self):
28581
+ r"""
28582
+ :param _TaskId: 异步任务id
28583
+ :type TaskId: int
28584
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28585
+ :type RequestId: str
28586
+ """
28587
+ self._TaskId = None
28588
+ self._RequestId = None
28589
+
28590
+ @property
28591
+ def TaskId(self):
28592
+ r"""异步任务id
28593
+ :rtype: int
28594
+ """
28595
+ return self._TaskId
28596
+
28597
+ @TaskId.setter
28598
+ def TaskId(self, TaskId):
28599
+ self._TaskId = TaskId
28600
+
28601
+ @property
28602
+ def RequestId(self):
28603
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28604
+ :rtype: str
28605
+ """
28606
+ return self._RequestId
28607
+
28608
+ @RequestId.setter
28609
+ def RequestId(self, RequestId):
28610
+ self._RequestId = RequestId
28611
+
28612
+
28613
+ def _deserialize(self, params):
28614
+ self._TaskId = params.get("TaskId")
28615
+ self._RequestId = params.get("RequestId")
28616
+
28617
+
27068
28618
  class ModifyClusterNameRequest(AbstractModel):
27069
28619
  r"""ModifyClusterName请求参数结构体
27070
28620
 
@@ -28987,7 +30537,7 @@ class ModifyProxyRwSplitRequest(AbstractModel):
28987
30537
  :param _WeightMode: 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
28988
30538
  :type WeightMode: str
28989
30539
  :param _InstanceWeights: 实例只读权重。
28990
- 该参数必填。
30540
+
28991
30541
  :type InstanceWeights: list of ProxyInstanceWeight
28992
30542
  :param _FailOver: 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:"yes" , "no"
28993
30543
  :type FailOver: str
@@ -29014,6 +30564,10 @@ SessionConnectionPool
29014
30564
  :param _ConnectionPoolTimeOut: 连接池时间。
29015
30565
  可选范围:0~300(秒)
29016
30566
  :type ConnectionPoolTimeOut: int
30567
+ :param _ApNodeAsRoNode: 是否将libra节点当作普通RO节点
30568
+ :type ApNodeAsRoNode: bool
30569
+ :param _ApQueryToOtherNode: libra节点故障,是否转发给其他节点
30570
+ :type ApQueryToOtherNode: bool
29017
30571
  """
29018
30572
  self._ClusterId = None
29019
30573
  self._ProxyGroupId = None
@@ -29030,6 +30584,8 @@ SessionConnectionPool
29030
30584
  self._OpenConnectionPool = None
29031
30585
  self._ConnectionPoolType = None
29032
30586
  self._ConnectionPoolTimeOut = None
30587
+ self._ApNodeAsRoNode = None
30588
+ self._ApQueryToOtherNode = None
29033
30589
 
29034
30590
  @property
29035
30591
  def ClusterId(self):
@@ -29090,7 +30646,7 @@ SessionConnectionPool
29090
30646
  @property
29091
30647
  def InstanceWeights(self):
29092
30648
  r"""实例只读权重。
29093
- 该参数必填。
30649
+
29094
30650
  :rtype: list of ProxyInstanceWeight
29095
30651
  """
29096
30652
  return self._InstanceWeights
@@ -29205,6 +30761,28 @@ SessionConnectionPool
29205
30761
  def ConnectionPoolTimeOut(self, ConnectionPoolTimeOut):
29206
30762
  self._ConnectionPoolTimeOut = ConnectionPoolTimeOut
29207
30763
 
30764
+ @property
30765
+ def ApNodeAsRoNode(self):
30766
+ r"""是否将libra节点当作普通RO节点
30767
+ :rtype: bool
30768
+ """
30769
+ return self._ApNodeAsRoNode
30770
+
30771
+ @ApNodeAsRoNode.setter
30772
+ def ApNodeAsRoNode(self, ApNodeAsRoNode):
30773
+ self._ApNodeAsRoNode = ApNodeAsRoNode
30774
+
30775
+ @property
30776
+ def ApQueryToOtherNode(self):
30777
+ r"""libra节点故障,是否转发给其他节点
30778
+ :rtype: bool
30779
+ """
30780
+ return self._ApQueryToOtherNode
30781
+
30782
+ @ApQueryToOtherNode.setter
30783
+ def ApQueryToOtherNode(self, ApQueryToOtherNode):
30784
+ self._ApQueryToOtherNode = ApQueryToOtherNode
30785
+
29208
30786
 
29209
30787
  def _deserialize(self, params):
29210
30788
  self._ClusterId = params.get("ClusterId")
@@ -29227,6 +30805,8 @@ SessionConnectionPool
29227
30805
  self._OpenConnectionPool = params.get("OpenConnectionPool")
29228
30806
  self._ConnectionPoolType = params.get("ConnectionPoolType")
29229
30807
  self._ConnectionPoolTimeOut = params.get("ConnectionPoolTimeOut")
30808
+ self._ApNodeAsRoNode = params.get("ApNodeAsRoNode")
30809
+ self._ApQueryToOtherNode = params.get("ApQueryToOtherNode")
29230
30810
  memeber_set = set(params.keys())
29231
30811
  for name, value in vars(self).items():
29232
30812
  property_name = name[1:]
@@ -31099,11 +32679,14 @@ class OpenClusterTransparentEncryptRequest(AbstractModel):
31099
32679
  :type KeyId: str
31100
32680
  :param _KeyRegion: 秘钥地域
31101
32681
  :type KeyRegion: str
32682
+ :param _IsOpenGlobalEncryption: 是否开启全局加密
32683
+ :type IsOpenGlobalEncryption: bool
31102
32684
  """
31103
32685
  self._ClusterId = None
31104
32686
  self._KeyType = None
31105
32687
  self._KeyId = None
31106
32688
  self._KeyRegion = None
32689
+ self._IsOpenGlobalEncryption = None
31107
32690
 
31108
32691
  @property
31109
32692
  def ClusterId(self):
@@ -31149,12 +32732,24 @@ class OpenClusterTransparentEncryptRequest(AbstractModel):
31149
32732
  def KeyRegion(self, KeyRegion):
31150
32733
  self._KeyRegion = KeyRegion
31151
32734
 
32735
+ @property
32736
+ def IsOpenGlobalEncryption(self):
32737
+ r"""是否开启全局加密
32738
+ :rtype: bool
32739
+ """
32740
+ return self._IsOpenGlobalEncryption
32741
+
32742
+ @IsOpenGlobalEncryption.setter
32743
+ def IsOpenGlobalEncryption(self, IsOpenGlobalEncryption):
32744
+ self._IsOpenGlobalEncryption = IsOpenGlobalEncryption
32745
+
31152
32746
 
31153
32747
  def _deserialize(self, params):
31154
32748
  self._ClusterId = params.get("ClusterId")
31155
32749
  self._KeyType = params.get("KeyType")
31156
32750
  self._KeyId = params.get("KeyId")
31157
32751
  self._KeyRegion = params.get("KeyRegion")
32752
+ self._IsOpenGlobalEncryption = params.get("IsOpenGlobalEncryption")
31158
32753
  memeber_set = set(params.keys())
31159
32754
  for name, value in vars(self).items():
31160
32755
  property_name = name[1:]
@@ -33429,6 +35024,107 @@ class ProxyConfig(AbstractModel):
33429
35024
 
33430
35025
 
33431
35026
 
35027
+ class ProxyConfigInfo(AbstractModel):
35028
+ r"""访问代理配置
35029
+
35030
+ """
35031
+
35032
+ def __init__(self):
35033
+ r"""
35034
+ :param _ProxyCount: 数据库代理组节点个数。该参数不再建议使用,建议使用ProxyZones
35035
+ :type ProxyCount: int
35036
+ :param _Cpu: cpu核数
35037
+ :type Cpu: int
35038
+ :param _Mem: 内存
35039
+ :type Mem: int
35040
+ :param _Description: 描述说明
35041
+ :type Description: str
35042
+ :param _ProxyZones: 数据库节点信息(该参数与ProxyCount需要任选一个输入)
35043
+ :type ProxyZones: list of ProxyZone
35044
+ """
35045
+ self._ProxyCount = None
35046
+ self._Cpu = None
35047
+ self._Mem = None
35048
+ self._Description = None
35049
+ self._ProxyZones = None
35050
+
35051
+ @property
35052
+ def ProxyCount(self):
35053
+ r"""数据库代理组节点个数。该参数不再建议使用,建议使用ProxyZones
35054
+ :rtype: int
35055
+ """
35056
+ return self._ProxyCount
35057
+
35058
+ @ProxyCount.setter
35059
+ def ProxyCount(self, ProxyCount):
35060
+ self._ProxyCount = ProxyCount
35061
+
35062
+ @property
35063
+ def Cpu(self):
35064
+ r"""cpu核数
35065
+ :rtype: int
35066
+ """
35067
+ return self._Cpu
35068
+
35069
+ @Cpu.setter
35070
+ def Cpu(self, Cpu):
35071
+ self._Cpu = Cpu
35072
+
35073
+ @property
35074
+ def Mem(self):
35075
+ r"""内存
35076
+ :rtype: int
35077
+ """
35078
+ return self._Mem
35079
+
35080
+ @Mem.setter
35081
+ def Mem(self, Mem):
35082
+ self._Mem = Mem
35083
+
35084
+ @property
35085
+ def Description(self):
35086
+ r"""描述说明
35087
+ :rtype: str
35088
+ """
35089
+ return self._Description
35090
+
35091
+ @Description.setter
35092
+ def Description(self, Description):
35093
+ self._Description = Description
35094
+
35095
+ @property
35096
+ def ProxyZones(self):
35097
+ r"""数据库节点信息(该参数与ProxyCount需要任选一个输入)
35098
+ :rtype: list of ProxyZone
35099
+ """
35100
+ return self._ProxyZones
35101
+
35102
+ @ProxyZones.setter
35103
+ def ProxyZones(self, ProxyZones):
35104
+ self._ProxyZones = ProxyZones
35105
+
35106
+
35107
+ def _deserialize(self, params):
35108
+ self._ProxyCount = params.get("ProxyCount")
35109
+ self._Cpu = params.get("Cpu")
35110
+ self._Mem = params.get("Mem")
35111
+ self._Description = params.get("Description")
35112
+ if params.get("ProxyZones") is not None:
35113
+ self._ProxyZones = []
35114
+ for item in params.get("ProxyZones"):
35115
+ obj = ProxyZone()
35116
+ obj._deserialize(item)
35117
+ self._ProxyZones.append(obj)
35118
+ memeber_set = set(params.keys())
35119
+ for name, value in vars(self).items():
35120
+ property_name = name[1:]
35121
+ if property_name in memeber_set:
35122
+ memeber_set.remove(property_name)
35123
+ if len(memeber_set) > 0:
35124
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
35125
+
35126
+
35127
+
33432
35128
  class ProxyConnectionPoolInfo(AbstractModel):
33433
35129
  r"""数据库代理连接池信息
33434
35130
 
@@ -33495,6 +35191,137 @@ class ProxyConnectionPoolInfo(AbstractModel):
33495
35191
 
33496
35192
 
33497
35193
 
35194
+ class ProxyEndPointConfigInfo(AbstractModel):
35195
+ r"""集成集群proxy地址配置
35196
+
35197
+ """
35198
+
35199
+ def __init__(self):
35200
+ r"""
35201
+ :param _UniqueVpcId: 所属VPC网络ID
35202
+ :type UniqueVpcId: str
35203
+ :param _UniqueSubnetId: 所属子网ID
35204
+ :type UniqueSubnetId: str
35205
+ :param _SecurityGroupIds: 安全组id数组
35206
+ :type SecurityGroupIds: list of str
35207
+ :param _WeightMode: 权重模式: system-系统分配,custom-自定义
35208
+ :type WeightMode: str
35209
+ :param _AutoAddRo: 是否自动添加只读实例,yes-是,no-不自动添加
35210
+ :type AutoAddRo: str
35211
+ :param _RwType: 读写属性: READWRITE,READONLY
35212
+ :type RwType: str
35213
+ :param _InstanceNameWeights: 权重信息
35214
+ :type InstanceNameWeights: list of InstanceNameWeight
35215
+ """
35216
+ self._UniqueVpcId = None
35217
+ self._UniqueSubnetId = None
35218
+ self._SecurityGroupIds = None
35219
+ self._WeightMode = None
35220
+ self._AutoAddRo = None
35221
+ self._RwType = None
35222
+ self._InstanceNameWeights = None
35223
+
35224
+ @property
35225
+ def UniqueVpcId(self):
35226
+ r"""所属VPC网络ID
35227
+ :rtype: str
35228
+ """
35229
+ return self._UniqueVpcId
35230
+
35231
+ @UniqueVpcId.setter
35232
+ def UniqueVpcId(self, UniqueVpcId):
35233
+ self._UniqueVpcId = UniqueVpcId
35234
+
35235
+ @property
35236
+ def UniqueSubnetId(self):
35237
+ r"""所属子网ID
35238
+ :rtype: str
35239
+ """
35240
+ return self._UniqueSubnetId
35241
+
35242
+ @UniqueSubnetId.setter
35243
+ def UniqueSubnetId(self, UniqueSubnetId):
35244
+ self._UniqueSubnetId = UniqueSubnetId
35245
+
35246
+ @property
35247
+ def SecurityGroupIds(self):
35248
+ r"""安全组id数组
35249
+ :rtype: list of str
35250
+ """
35251
+ return self._SecurityGroupIds
35252
+
35253
+ @SecurityGroupIds.setter
35254
+ def SecurityGroupIds(self, SecurityGroupIds):
35255
+ self._SecurityGroupIds = SecurityGroupIds
35256
+
35257
+ @property
35258
+ def WeightMode(self):
35259
+ r"""权重模式: system-系统分配,custom-自定义
35260
+ :rtype: str
35261
+ """
35262
+ return self._WeightMode
35263
+
35264
+ @WeightMode.setter
35265
+ def WeightMode(self, WeightMode):
35266
+ self._WeightMode = WeightMode
35267
+
35268
+ @property
35269
+ def AutoAddRo(self):
35270
+ r"""是否自动添加只读实例,yes-是,no-不自动添加
35271
+ :rtype: str
35272
+ """
35273
+ return self._AutoAddRo
35274
+
35275
+ @AutoAddRo.setter
35276
+ def AutoAddRo(self, AutoAddRo):
35277
+ self._AutoAddRo = AutoAddRo
35278
+
35279
+ @property
35280
+ def RwType(self):
35281
+ r"""读写属性: READWRITE,READONLY
35282
+ :rtype: str
35283
+ """
35284
+ return self._RwType
35285
+
35286
+ @RwType.setter
35287
+ def RwType(self, RwType):
35288
+ self._RwType = RwType
35289
+
35290
+ @property
35291
+ def InstanceNameWeights(self):
35292
+ r"""权重信息
35293
+ :rtype: list of InstanceNameWeight
35294
+ """
35295
+ return self._InstanceNameWeights
35296
+
35297
+ @InstanceNameWeights.setter
35298
+ def InstanceNameWeights(self, InstanceNameWeights):
35299
+ self._InstanceNameWeights = InstanceNameWeights
35300
+
35301
+
35302
+ def _deserialize(self, params):
35303
+ self._UniqueVpcId = params.get("UniqueVpcId")
35304
+ self._UniqueSubnetId = params.get("UniqueSubnetId")
35305
+ self._SecurityGroupIds = params.get("SecurityGroupIds")
35306
+ self._WeightMode = params.get("WeightMode")
35307
+ self._AutoAddRo = params.get("AutoAddRo")
35308
+ self._RwType = params.get("RwType")
35309
+ if params.get("InstanceNameWeights") is not None:
35310
+ self._InstanceNameWeights = []
35311
+ for item in params.get("InstanceNameWeights"):
35312
+ obj = InstanceNameWeight()
35313
+ obj._deserialize(item)
35314
+ self._InstanceNameWeights.append(obj)
35315
+ memeber_set = set(params.keys())
35316
+ for name, value in vars(self).items():
35317
+ property_name = name[1:]
35318
+ if property_name in memeber_set:
35319
+ memeber_set.remove(property_name)
35320
+ if len(memeber_set) > 0:
35321
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
35322
+
35323
+
35324
+
33498
35325
  class ProxyGroup(AbstractModel):
33499
35326
  r"""proxy组
33500
35327
 
@@ -33814,6 +35641,10 @@ class ProxyGroupRwInfo(AbstractModel):
33814
35641
  :type TransSplit: bool
33815
35642
  :param _AccessMode: 连接模式,可选值:balance,nearby
33816
35643
  :type AccessMode: str
35644
+ :param _ApNodeAsRoNode: 是否将libra节点当作普通RO节点
35645
+ :type ApNodeAsRoNode: bool
35646
+ :param _ApQueryToOtherNode: libra节点故障,是否转发给其他节点
35647
+ :type ApQueryToOtherNode: bool
33817
35648
  """
33818
35649
  self._ConsistencyType = None
33819
35650
  self._ConsistencyTimeOut = None
@@ -33825,6 +35656,8 @@ class ProxyGroupRwInfo(AbstractModel):
33825
35656
  self._RwType = None
33826
35657
  self._TransSplit = None
33827
35658
  self._AccessMode = None
35659
+ self._ApNodeAsRoNode = None
35660
+ self._ApQueryToOtherNode = None
33828
35661
 
33829
35662
  @property
33830
35663
  def ConsistencyType(self):
@@ -33936,6 +35769,28 @@ class ProxyGroupRwInfo(AbstractModel):
33936
35769
  def AccessMode(self, AccessMode):
33937
35770
  self._AccessMode = AccessMode
33938
35771
 
35772
+ @property
35773
+ def ApNodeAsRoNode(self):
35774
+ r"""是否将libra节点当作普通RO节点
35775
+ :rtype: bool
35776
+ """
35777
+ return self._ApNodeAsRoNode
35778
+
35779
+ @ApNodeAsRoNode.setter
35780
+ def ApNodeAsRoNode(self, ApNodeAsRoNode):
35781
+ self._ApNodeAsRoNode = ApNodeAsRoNode
35782
+
35783
+ @property
35784
+ def ApQueryToOtherNode(self):
35785
+ r"""libra节点故障,是否转发给其他节点
35786
+ :rtype: bool
35787
+ """
35788
+ return self._ApQueryToOtherNode
35789
+
35790
+ @ApQueryToOtherNode.setter
35791
+ def ApQueryToOtherNode(self, ApQueryToOtherNode):
35792
+ self._ApQueryToOtherNode = ApQueryToOtherNode
35793
+
33939
35794
 
33940
35795
  def _deserialize(self, params):
33941
35796
  self._ConsistencyType = params.get("ConsistencyType")
@@ -33953,6 +35808,8 @@ class ProxyGroupRwInfo(AbstractModel):
33953
35808
  self._RwType = params.get("RwType")
33954
35809
  self._TransSplit = params.get("TransSplit")
33955
35810
  self._AccessMode = params.get("AccessMode")
35811
+ self._ApNodeAsRoNode = params.get("ApNodeAsRoNode")
35812
+ self._ApQueryToOtherNode = params.get("ApQueryToOtherNode")
33956
35813
  memeber_set = set(params.keys())
33957
35814
  for name, value in vars(self).items():
33958
35815
  property_name = name[1:]
@@ -34423,6 +36280,8 @@ class QueryFilter(AbstractModel):
34423
36280
 
34424
36281
  @property
34425
36282
  def Operator(self):
36283
+ warnings.warn("parameter `Operator` is deprecated", DeprecationWarning)
36284
+
34426
36285
  r"""操作符
34427
36286
  :rtype: str
34428
36287
  """
@@ -34430,6 +36289,8 @@ class QueryFilter(AbstractModel):
34430
36289
 
34431
36290
  @Operator.setter
34432
36291
  def Operator(self, Operator):
36292
+ warnings.warn("parameter `Operator` is deprecated", DeprecationWarning)
36293
+
34433
36294
  self._Operator = Operator
34434
36295
 
34435
36296
 
@@ -34456,7 +36317,7 @@ class QueryParamFilter(AbstractModel):
34456
36317
 
34457
36318
  def __init__(self):
34458
36319
  r"""
34459
- :param _Names: 搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
36320
+ :param _Names: 搜索字段,目前支持:ProxyGroupId
34460
36321
  :type Names: list of str
34461
36322
  :param _Values: 搜索字符串
34462
36323
  :type Values: list of str
@@ -34469,7 +36330,7 @@ class QueryParamFilter(AbstractModel):
34469
36330
 
34470
36331
  @property
34471
36332
  def Names(self):
34472
- r"""搜索字段,目前支持:"InstanceId", "ProjectId", "InstanceName", "Vip"
36333
+ r"""搜索字段,目前支持:ProxyGroupId
34473
36334
  :rtype: list of str
34474
36335
  """
34475
36336
  return self._Names
@@ -40115,6 +41976,12 @@ class TradePrice(AbstractModel):
40115
41976
  :type UnitPriceDiscount: int
40116
41977
  :param _ChargeUnit: 计费价格单位
40117
41978
  :type ChargeUnit: str
41979
+ :param _UnitPriceHighPrecision: 高精度下不包含优惠价格
41980
+ :type UnitPriceHighPrecision: str
41981
+ :param _UnitPriceDiscountHighPrecision: 高精度下优惠后价格
41982
+ :type UnitPriceDiscountHighPrecision: str
41983
+ :param _AmountUnit: 货币单位
41984
+ :type AmountUnit: str
40118
41985
  """
40119
41986
  self._TotalPrice = None
40120
41987
  self._Discount = None
@@ -40122,6 +41989,9 @@ class TradePrice(AbstractModel):
40122
41989
  self._UnitPrice = None
40123
41990
  self._UnitPriceDiscount = None
40124
41991
  self._ChargeUnit = None
41992
+ self._UnitPriceHighPrecision = None
41993
+ self._UnitPriceDiscountHighPrecision = None
41994
+ self._AmountUnit = None
40125
41995
 
40126
41996
  @property
40127
41997
  def TotalPrice(self):
@@ -40189,6 +42059,39 @@ class TradePrice(AbstractModel):
40189
42059
  def ChargeUnit(self, ChargeUnit):
40190
42060
  self._ChargeUnit = ChargeUnit
40191
42061
 
42062
+ @property
42063
+ def UnitPriceHighPrecision(self):
42064
+ r"""高精度下不包含优惠价格
42065
+ :rtype: str
42066
+ """
42067
+ return self._UnitPriceHighPrecision
42068
+
42069
+ @UnitPriceHighPrecision.setter
42070
+ def UnitPriceHighPrecision(self, UnitPriceHighPrecision):
42071
+ self._UnitPriceHighPrecision = UnitPriceHighPrecision
42072
+
42073
+ @property
42074
+ def UnitPriceDiscountHighPrecision(self):
42075
+ r"""高精度下优惠后价格
42076
+ :rtype: str
42077
+ """
42078
+ return self._UnitPriceDiscountHighPrecision
42079
+
42080
+ @UnitPriceDiscountHighPrecision.setter
42081
+ def UnitPriceDiscountHighPrecision(self, UnitPriceDiscountHighPrecision):
42082
+ self._UnitPriceDiscountHighPrecision = UnitPriceDiscountHighPrecision
42083
+
42084
+ @property
42085
+ def AmountUnit(self):
42086
+ r"""货币单位
42087
+ :rtype: str
42088
+ """
42089
+ return self._AmountUnit
42090
+
42091
+ @AmountUnit.setter
42092
+ def AmountUnit(self, AmountUnit):
42093
+ self._AmountUnit = AmountUnit
42094
+
40192
42095
 
40193
42096
  def _deserialize(self, params):
40194
42097
  self._TotalPrice = params.get("TotalPrice")
@@ -40197,6 +42100,9 @@ class TradePrice(AbstractModel):
40197
42100
  self._UnitPrice = params.get("UnitPrice")
40198
42101
  self._UnitPriceDiscount = params.get("UnitPriceDiscount")
40199
42102
  self._ChargeUnit = params.get("ChargeUnit")
42103
+ self._UnitPriceHighPrecision = params.get("UnitPriceHighPrecision")
42104
+ self._UnitPriceDiscountHighPrecision = params.get("UnitPriceDiscountHighPrecision")
42105
+ self._AmountUnit = params.get("AmountUnit")
40200
42106
  memeber_set = set(params.keys())
40201
42107
  for name, value in vars(self).items():
40202
42108
  property_name = name[1:]
@@ -40765,6 +42671,10 @@ class UpgradeProxyRequest(AbstractModel):
40765
42671
  :type IsInMaintainPeriod: str
40766
42672
  :param _ProxyZones: 数据库代理节点信息
40767
42673
  :type ProxyZones: list of ProxyZone
42674
+ :param _IsRollUpgrade: 是否滚动升级
42675
+ :type IsRollUpgrade: str
42676
+ :param _RollUpgradeWaitingTime: 滚动升级等待时间,单位:秒
42677
+ :type RollUpgradeWaitingTime: int
40768
42678
  """
40769
42679
  self._ClusterId = None
40770
42680
  self._Cpu = None
@@ -40774,6 +42684,8 @@ class UpgradeProxyRequest(AbstractModel):
40774
42684
  self._ReloadBalance = None
40775
42685
  self._IsInMaintainPeriod = None
40776
42686
  self._ProxyZones = None
42687
+ self._IsRollUpgrade = None
42688
+ self._RollUpgradeWaitingTime = None
40777
42689
 
40778
42690
  @property
40779
42691
  def ClusterId(self):
@@ -40863,6 +42775,28 @@ class UpgradeProxyRequest(AbstractModel):
40863
42775
  def ProxyZones(self, ProxyZones):
40864
42776
  self._ProxyZones = ProxyZones
40865
42777
 
42778
+ @property
42779
+ def IsRollUpgrade(self):
42780
+ r"""是否滚动升级
42781
+ :rtype: str
42782
+ """
42783
+ return self._IsRollUpgrade
42784
+
42785
+ @IsRollUpgrade.setter
42786
+ def IsRollUpgrade(self, IsRollUpgrade):
42787
+ self._IsRollUpgrade = IsRollUpgrade
42788
+
42789
+ @property
42790
+ def RollUpgradeWaitingTime(self):
42791
+ r"""滚动升级等待时间,单位:秒
42792
+ :rtype: int
42793
+ """
42794
+ return self._RollUpgradeWaitingTime
42795
+
42796
+ @RollUpgradeWaitingTime.setter
42797
+ def RollUpgradeWaitingTime(self, RollUpgradeWaitingTime):
42798
+ self._RollUpgradeWaitingTime = RollUpgradeWaitingTime
42799
+
40866
42800
 
40867
42801
  def _deserialize(self, params):
40868
42802
  self._ClusterId = params.get("ClusterId")
@@ -40878,6 +42812,8 @@ class UpgradeProxyRequest(AbstractModel):
40878
42812
  obj = ProxyZone()
40879
42813
  obj._deserialize(item)
40880
42814
  self._ProxyZones.append(obj)
42815
+ self._IsRollUpgrade = params.get("IsRollUpgrade")
42816
+ self._RollUpgradeWaitingTime = params.get("RollUpgradeWaitingTime")
40881
42817
  memeber_set = set(params.keys())
40882
42818
  for name, value in vars(self).items():
40883
42819
  property_name = name[1:]