tencentcloud-sdk-cynosdb 3.0.1069 → 3.0.1071

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09610e631ef7aa4a52dd66229112ad733825bdd0
4
- data.tar.gz: 1e3c901fcb165719196d2d7635bf19e0c6f6721a
3
+ metadata.gz: 4501a5eb9695da75ed44b6fcb5e8dc7f9d3aad28
4
+ data.tar.gz: 0f58befff642c5c73686ba7463c5c1ad1136ba66
5
5
  SHA512:
6
- metadata.gz: 2dfda914bace968fb0254939383da6bae6112e0622585c6e2587c876c42602d5d304daf8a4a75ff7dfcbedb4f2b0aa579fa82948bf6decf01892ec8e9bb0565d
7
- data.tar.gz: b0480511ae471779b53368d3eeee910011cdde3f1aa0f94579b3e4f15151e52b4b5618a791e7df2221ca1091023e4dc17a2e391733d89fb0fd0d54119ec301c5
6
+ metadata.gz: a3c5290000b48d81c7022337c9e8a7557151dc314907f23a309df69ef4310d83bda51314c41101b881becfa506383b28602280a2d974db82f03833abece92b11
7
+ data.tar.gz: 2dbd5ff535f00c1960fb656279f06107a92f3011460c050f81efafdf45850f48f93b34286f428729ef9d530210c414cff3583554a686813dd757672814648347
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1069
1
+ 3.0.1071
@@ -965,6 +965,30 @@ module TencentCloud
965
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
966
966
  end
967
967
 
968
+ # 该接口用户查询当前地域用户设置的默认备份下载来源限制
969
+
970
+ # @param request: Request instance for DescribeBackupDownloadRestriction.
971
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeBackupDownloadRestrictionRequest`
972
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeBackupDownloadRestrictionResponse`
973
+ def DescribeBackupDownloadRestriction(request)
974
+ body = send_request('DescribeBackupDownloadRestriction', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = DescribeBackupDownloadRestrictionResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
968
992
  # 本接口(DescribeBackupDownloadUrl)用于查询集群备份文件下载地址。
969
993
 
970
994
  # @param request: Request instance for DescribeBackupDownloadUrl.
@@ -989,6 +1013,30 @@ module TencentCloud
989
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
1014
  end
991
1015
 
1016
+ # 该接口用户查询当前地域用户级别设置的默认备份下载来源限制
1017
+
1018
+ # @param request: Request instance for DescribeBackupDownloadUserRestriction.
1019
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeBackupDownloadUserRestrictionRequest`
1020
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeBackupDownloadUserRestrictionResponse`
1021
+ def DescribeBackupDownloadUserRestriction(request)
1022
+ body = send_request('DescribeBackupDownloadUserRestriction', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeBackupDownloadUserRestrictionResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
992
1040
  # 本接口(DescribeBackupList)用于查询集群的备份文件列表。
993
1041
 
994
1042
  # @param request: Request instance for DescribeBackupList.
@@ -1349,6 +1397,30 @@ module TencentCloud
1349
1397
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
1398
  end
1351
1399
 
1400
+ # 本接口(DescribeClusterReadOnly)用于查询集群只读开关。
1401
+
1402
+ # @param request: Request instance for DescribeClusterReadOnly.
1403
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterReadOnlyRequest`
1404
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterReadOnlyResponse`
1405
+ def DescribeClusterReadOnly(request)
1406
+ body = send_request('DescribeClusterReadOnly', request.serialize)
1407
+ response = JSON.parse(body)
1408
+ if response['Response'].key?('Error') == false
1409
+ model = DescribeClusterReadOnlyResponse.new
1410
+ model.deserialize(response['Response'])
1411
+ model
1412
+ else
1413
+ code = response['Response']['Error']['Code']
1414
+ message = response['Response']['Error']['Message']
1415
+ reqid = response['Response']['RequestId']
1416
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1417
+ end
1418
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1419
+ raise e
1420
+ rescue StandardError => e
1421
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1422
+ end
1423
+
1352
1424
  # 查询集群透明加密信息
1353
1425
 
1354
1426
  # @param request: Request instance for DescribeClusterTransparentEncryptInfo.
@@ -2525,6 +2597,54 @@ module TencentCloud
2525
2597
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2526
2598
  end
2527
2599
 
2600
+ # 该接口用于修改用户当前地域的备份文件限制下载来源,可以设置内外网均可下载、仅内网可下载,或内网指定的vpc、ip可以下载。
2601
+
2602
+ # @param request: Request instance for ModifyBackupDownloadRestriction.
2603
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyBackupDownloadRestrictionRequest`
2604
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyBackupDownloadRestrictionResponse`
2605
+ def ModifyBackupDownloadRestriction(request)
2606
+ body = send_request('ModifyBackupDownloadRestriction', request.serialize)
2607
+ response = JSON.parse(body)
2608
+ if response['Response'].key?('Error') == false
2609
+ model = ModifyBackupDownloadRestrictionResponse.new
2610
+ model.deserialize(response['Response'])
2611
+ model
2612
+ else
2613
+ code = response['Response']['Error']['Code']
2614
+ message = response['Response']['Error']['Message']
2615
+ reqid = response['Response']['RequestId']
2616
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2617
+ end
2618
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2619
+ raise e
2620
+ rescue StandardError => e
2621
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2622
+ end
2623
+
2624
+ # 该接口用于修改用户当前地域的备份文件限制下载来源,可以设置内外网均可下载、仅内网可下载,或内网指定的vpc、ip可以下载。
2625
+
2626
+ # @param request: Request instance for ModifyBackupDownloadUserRestriction.
2627
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyBackupDownloadUserRestrictionRequest`
2628
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyBackupDownloadUserRestrictionResponse`
2629
+ def ModifyBackupDownloadUserRestriction(request)
2630
+ body = send_request('ModifyBackupDownloadUserRestriction', request.serialize)
2631
+ response = JSON.parse(body)
2632
+ if response['Response'].key?('Error') == false
2633
+ model = ModifyBackupDownloadUserRestrictionResponse.new
2634
+ model.deserialize(response['Response'])
2635
+ model
2636
+ else
2637
+ code = response['Response']['Error']['Code']
2638
+ message = response['Response']['Error']['Message']
2639
+ reqid = response['Response']['RequestId']
2640
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2641
+ end
2642
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2643
+ raise e
2644
+ rescue StandardError => e
2645
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2646
+ end
2647
+
2528
2648
  # 此接口(ModifyBackupName)用于修改备份文件备注名。
2529
2649
 
2530
2650
  # @param request: Request instance for ModifyBackupName.
@@ -2693,6 +2813,30 @@ module TencentCloud
2693
2813
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2694
2814
  end
2695
2815
 
2816
+ # 本接口(ModifyClusterReadOnly)用于修改集群只读开关。
2817
+
2818
+ # @param request: Request instance for ModifyClusterReadOnly.
2819
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterReadOnlyRequest`
2820
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterReadOnlyResponse`
2821
+ def ModifyClusterReadOnly(request)
2822
+ body = send_request('ModifyClusterReadOnly', request.serialize)
2823
+ response = JSON.parse(body)
2824
+ if response['Response'].key?('Error') == false
2825
+ model = ModifyClusterReadOnlyResponse.new
2826
+ model.deserialize(response['Response'])
2827
+ model
2828
+ else
2829
+ code = response['Response']['Error']['Code']
2830
+ message = response['Response']['Error']['Message']
2831
+ reqid = response['Response']['RequestId']
2832
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2833
+ end
2834
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2835
+ raise e
2836
+ rescue StandardError => e
2837
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2838
+ end
2839
+
2696
2840
  # 本接口(ModifyClusterSlaveZone)用于变更集群的备可用区。
2697
2841
 
2698
2842
  # @param request: Request instance for ModifyClusterSlaveZone.
@@ -799,6 +799,90 @@ module TencentCloud
799
799
  end
800
800
  end
801
801
 
802
+ # 备份下载集群限制参数
803
+ class BackupLimitClusterRestriction < TencentCloud::Common::AbstractModel
804
+ # @param ClusterId: 集群id
805
+ # @type ClusterId: String
806
+ # @param BackupLimitRestriction: 下载限制配置
807
+ # @type BackupLimitRestriction: :class:`Tencentcloud::Cynosdb.v20190107.models.BackupLimitRestriction`
808
+
809
+ attr_accessor :ClusterId, :BackupLimitRestriction
810
+
811
+ def initialize(clusterid=nil, backuplimitrestriction=nil)
812
+ @ClusterId = clusterid
813
+ @BackupLimitRestriction = backuplimitrestriction
814
+ end
815
+
816
+ def deserialize(params)
817
+ @ClusterId = params['ClusterId']
818
+ unless params['BackupLimitRestriction'].nil?
819
+ @BackupLimitRestriction = BackupLimitRestriction.new
820
+ @BackupLimitRestriction.deserialize(params['BackupLimitRestriction'])
821
+ end
822
+ end
823
+ end
824
+
825
+ # 备份下载限制参数
826
+ class BackupLimitRestriction < TencentCloud::Common::AbstractModel
827
+ # @param LimitType: 限制类型
828
+ # @type LimitType: String
829
+ # @param VpcComparisonSymbol: 该参数仅支持 In, 表示 LimitVpc 指定的vpc可以下载。默认为In
830
+ # @type VpcComparisonSymbol: String
831
+ # @param IpComparisonSymbol: In: 指定的ip可以下载; NotIn: 指定的ip不可以下载
832
+ # @type IpComparisonSymbol: String
833
+ # @param LimitVpcs: 限制下载的vpc设置
834
+ # 注意:此字段可能返回 null,表示取不到有效值。
835
+ # @type LimitVpcs: Array
836
+ # @param LimitIps: 限制下载的ip设置
837
+ # 注意:此字段可能返回 null,表示取不到有效值。
838
+ # @type LimitIps: Array
839
+
840
+ attr_accessor :LimitType, :VpcComparisonSymbol, :IpComparisonSymbol, :LimitVpcs, :LimitIps
841
+
842
+ def initialize(limittype=nil, vpccomparisonsymbol=nil, ipcomparisonsymbol=nil, limitvpcs=nil, limitips=nil)
843
+ @LimitType = limittype
844
+ @VpcComparisonSymbol = vpccomparisonsymbol
845
+ @IpComparisonSymbol = ipcomparisonsymbol
846
+ @LimitVpcs = limitvpcs
847
+ @LimitIps = limitips
848
+ end
849
+
850
+ def deserialize(params)
851
+ @LimitType = params['LimitType']
852
+ @VpcComparisonSymbol = params['VpcComparisonSymbol']
853
+ @IpComparisonSymbol = params['IpComparisonSymbol']
854
+ unless params['LimitVpcs'].nil?
855
+ @LimitVpcs = []
856
+ params['LimitVpcs'].each do |i|
857
+ backuplimitvpcitem_tmp = BackupLimitVpcItem.new
858
+ backuplimitvpcitem_tmp.deserialize(i)
859
+ @LimitVpcs << backuplimitvpcitem_tmp
860
+ end
861
+ end
862
+ @LimitIps = params['LimitIps']
863
+ end
864
+ end
865
+
866
+ # 备份文件限制下载来源VPC设置项
867
+ class BackupLimitVpcItem < TencentCloud::Common::AbstractModel
868
+ # @param Region: 限制下载来源的地域。目前仅支持当前地域
869
+ # @type Region: String
870
+ # @param VpcList: 限制下载的vpc列表
871
+ # @type VpcList: Array
872
+
873
+ attr_accessor :Region, :VpcList
874
+
875
+ def initialize(region=nil, vpclist=nil)
876
+ @Region = region
877
+ @VpcList = vpclist
878
+ end
879
+
880
+ def deserialize(params)
881
+ @Region = params['Region']
882
+ @VpcList = params['VpcList']
883
+ end
884
+ end
885
+
802
886
  # 计费资源信息
803
887
  class BillingResourceInfo < TencentCloud::Common::AbstractModel
804
888
  # @param ClusterId: 集群ID
@@ -1661,6 +1745,26 @@ module TencentCloud
1661
1745
  end
1662
1746
  end
1663
1747
 
1748
+ # 集群只读开关列表
1749
+ class ClusterReadOnlyValue < TencentCloud::Common::AbstractModel
1750
+ # @param ClusterId: 集群ID
1751
+ # @type ClusterId: String
1752
+ # @param ReadOnlyValue: 只读开关值
1753
+ # @type ReadOnlyValue: String
1754
+
1755
+ attr_accessor :ClusterId, :ReadOnlyValue
1756
+
1757
+ def initialize(clusterid=nil, readonlyvalue=nil)
1758
+ @ClusterId = clusterid
1759
+ @ReadOnlyValue = readonlyvalue
1760
+ end
1761
+
1762
+ def deserialize(params)
1763
+ @ClusterId = params['ClusterId']
1764
+ @ReadOnlyValue = params['ReadOnlyValue']
1765
+ end
1766
+ end
1767
+
1664
1768
  # 集群从可用区信息
1665
1769
  class ClusterSlaveData < TencentCloud::Common::AbstractModel
1666
1770
  # @param OldMasterZone: 旧主可用区
@@ -1713,6 +1817,26 @@ module TencentCloud
1713
1817
  end
1714
1818
  end
1715
1819
 
1820
+ # 集群任务ID
1821
+ class ClusterTaskId < TencentCloud::Common::AbstractModel
1822
+ # @param ClusterId: 集群ID
1823
+ # @type ClusterId: String
1824
+ # @param TaskId: 任务ID
1825
+ # @type TaskId: String
1826
+
1827
+ attr_accessor :ClusterId, :TaskId
1828
+
1829
+ def initialize(clusterid=nil, taskid=nil)
1830
+ @ClusterId = clusterid
1831
+ @TaskId = taskid
1832
+ end
1833
+
1834
+ def deserialize(params)
1835
+ @ClusterId = params['ClusterId']
1836
+ @TaskId = params['TaskId']
1837
+ end
1838
+ end
1839
+
1716
1840
  # CopyClusterPasswordComplexity请求参数结构体
1717
1841
  class CopyClusterPasswordComplexityRequest < TencentCloud::Common::AbstractModel
1718
1842
  # @param ClusterIds: 复制集群ID数组,例如["cynosdbmysql-bzxxrmtq","cynosdbmysql-qwer"]
@@ -5018,23 +5142,74 @@ module TencentCloud
5018
5142
  end
5019
5143
  end
5020
5144
 
5145
+ # DescribeBackupDownloadRestriction请求参数结构体
5146
+ class DescribeBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel
5147
+ # @param ClusterIds: 集群ID
5148
+ # @type ClusterIds: Array
5149
+
5150
+ attr_accessor :ClusterIds
5151
+
5152
+ def initialize(clusterids=nil)
5153
+ @ClusterIds = clusterids
5154
+ end
5155
+
5156
+ def deserialize(params)
5157
+ @ClusterIds = params['ClusterIds']
5158
+ end
5159
+ end
5160
+
5161
+ # DescribeBackupDownloadRestriction返回参数结构体
5162
+ class DescribeBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel
5163
+ # @param BackupLimitClusterRestrictions: 集群备份下载限制
5164
+ # 注意:此字段可能返回 null,表示取不到有效值。
5165
+ # @type BackupLimitClusterRestrictions: Array
5166
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5167
+ # @type RequestId: String
5168
+
5169
+ attr_accessor :BackupLimitClusterRestrictions, :RequestId
5170
+
5171
+ def initialize(backuplimitclusterrestrictions=nil, requestid=nil)
5172
+ @BackupLimitClusterRestrictions = backuplimitclusterrestrictions
5173
+ @RequestId = requestid
5174
+ end
5175
+
5176
+ def deserialize(params)
5177
+ unless params['BackupLimitClusterRestrictions'].nil?
5178
+ @BackupLimitClusterRestrictions = []
5179
+ params['BackupLimitClusterRestrictions'].each do |i|
5180
+ backuplimitclusterrestriction_tmp = BackupLimitClusterRestriction.new
5181
+ backuplimitclusterrestriction_tmp.deserialize(i)
5182
+ @BackupLimitClusterRestrictions << backuplimitclusterrestriction_tmp
5183
+ end
5184
+ end
5185
+ @RequestId = params['RequestId']
5186
+ end
5187
+ end
5188
+
5021
5189
  # DescribeBackupDownloadUrl请求参数结构体
5022
5190
  class DescribeBackupDownloadUrlRequest < TencentCloud::Common::AbstractModel
5023
5191
  # @param ClusterId: 集群ID
5024
5192
  # @type ClusterId: String
5025
5193
  # @param BackupId: 备份ID
5026
5194
  # @type BackupId: Integer
5195
+ # @param DownloadRestriction: 备份下载来源限制条件
5196
+ # @type DownloadRestriction: :class:`Tencentcloud::Cynosdb.v20190107.models.BackupLimitRestriction`
5027
5197
 
5028
- attr_accessor :ClusterId, :BackupId
5198
+ attr_accessor :ClusterId, :BackupId, :DownloadRestriction
5029
5199
 
5030
- def initialize(clusterid=nil, backupid=nil)
5200
+ def initialize(clusterid=nil, backupid=nil, downloadrestriction=nil)
5031
5201
  @ClusterId = clusterid
5032
5202
  @BackupId = backupid
5203
+ @DownloadRestriction = downloadrestriction
5033
5204
  end
5034
5205
 
5035
5206
  def deserialize(params)
5036
5207
  @ClusterId = params['ClusterId']
5037
5208
  @BackupId = params['BackupId']
5209
+ unless params['DownloadRestriction'].nil?
5210
+ @DownloadRestriction = BackupLimitRestriction.new
5211
+ @DownloadRestriction.deserialize(params['DownloadRestriction'])
5212
+ end
5038
5213
  end
5039
5214
  end
5040
5215
 
@@ -5058,6 +5233,62 @@ module TencentCloud
5058
5233
  end
5059
5234
  end
5060
5235
 
5236
+ # DescribeBackupDownloadUserRestriction请求参数结构体
5237
+ class DescribeBackupDownloadUserRestrictionRequest < TencentCloud::Common::AbstractModel
5238
+ # @param Limit: 分页大小
5239
+ # @type Limit: Integer
5240
+ # @param Offset: 偏移量
5241
+ # @type Offset: Integer
5242
+ # @param OnlyUserRestriction: 是否只查询用户级别下载限制,true-是,false-否
5243
+ # @type OnlyUserRestriction: Boolean
5244
+
5245
+ attr_accessor :Limit, :Offset, :OnlyUserRestriction
5246
+
5247
+ def initialize(limit=nil, offset=nil, onlyuserrestriction=nil)
5248
+ @Limit = limit
5249
+ @Offset = offset
5250
+ @OnlyUserRestriction = onlyuserrestriction
5251
+ end
5252
+
5253
+ def deserialize(params)
5254
+ @Limit = params['Limit']
5255
+ @Offset = params['Offset']
5256
+ @OnlyUserRestriction = params['OnlyUserRestriction']
5257
+ end
5258
+ end
5259
+
5260
+ # DescribeBackupDownloadUserRestriction返回参数结构体
5261
+ class DescribeBackupDownloadUserRestrictionResponse < TencentCloud::Common::AbstractModel
5262
+ # @param BackupLimitClusterRestrictions: 集群备份下载限制信息
5263
+ # 注意:此字段可能返回 null,表示取不到有效值。
5264
+ # @type BackupLimitClusterRestrictions: Array
5265
+ # @param TotalCount: 总条数
5266
+ # @type TotalCount: Integer
5267
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5268
+ # @type RequestId: String
5269
+
5270
+ attr_accessor :BackupLimitClusterRestrictions, :TotalCount, :RequestId
5271
+
5272
+ def initialize(backuplimitclusterrestrictions=nil, totalcount=nil, requestid=nil)
5273
+ @BackupLimitClusterRestrictions = backuplimitclusterrestrictions
5274
+ @TotalCount = totalcount
5275
+ @RequestId = requestid
5276
+ end
5277
+
5278
+ def deserialize(params)
5279
+ unless params['BackupLimitClusterRestrictions'].nil?
5280
+ @BackupLimitClusterRestrictions = []
5281
+ params['BackupLimitClusterRestrictions'].each do |i|
5282
+ backuplimitclusterrestriction_tmp = BackupLimitClusterRestriction.new
5283
+ backuplimitclusterrestriction_tmp.deserialize(i)
5284
+ @BackupLimitClusterRestrictions << backuplimitclusterrestriction_tmp
5285
+ end
5286
+ end
5287
+ @TotalCount = params['TotalCount']
5288
+ @RequestId = params['RequestId']
5289
+ end
5290
+ end
5291
+
5061
5292
  # DescribeBackupList请求参数结构体
5062
5293
  class DescribeBackupListRequest < TencentCloud::Common::AbstractModel
5063
5294
  # @param ClusterId: 集群ID
@@ -5211,17 +5442,24 @@ module TencentCloud
5211
5442
  # @type ClusterId: String
5212
5443
  # @param BinlogId: Binlog文件ID
5213
5444
  # @type BinlogId: Integer
5445
+ # @param DownloadRestriction: 备份下载来源限制条件
5446
+ # @type DownloadRestriction: :class:`Tencentcloud::Cynosdb.v20190107.models.BackupLimitRestriction`
5214
5447
 
5215
- attr_accessor :ClusterId, :BinlogId
5448
+ attr_accessor :ClusterId, :BinlogId, :DownloadRestriction
5216
5449
 
5217
- def initialize(clusterid=nil, binlogid=nil)
5450
+ def initialize(clusterid=nil, binlogid=nil, downloadrestriction=nil)
5218
5451
  @ClusterId = clusterid
5219
5452
  @BinlogId = binlogid
5453
+ @DownloadRestriction = downloadrestriction
5220
5454
  end
5221
5455
 
5222
5456
  def deserialize(params)
5223
5457
  @ClusterId = params['ClusterId']
5224
5458
  @BinlogId = params['BinlogId']
5459
+ unless params['DownloadRestriction'].nil?
5460
+ @DownloadRestriction = BackupLimitRestriction.new
5461
+ @DownloadRestriction.deserialize(params['DownloadRestriction'])
5462
+ end
5225
5463
  end
5226
5464
  end
5227
5465
 
@@ -5922,6 +6160,49 @@ module TencentCloud
5922
6160
  end
5923
6161
  end
5924
6162
 
6163
+ # DescribeClusterReadOnly请求参数结构体
6164
+ class DescribeClusterReadOnlyRequest < TencentCloud::Common::AbstractModel
6165
+ # @param ClusterIds: 集群ID列表
6166
+ # @type ClusterIds: Array
6167
+
6168
+ attr_accessor :ClusterIds
6169
+
6170
+ def initialize(clusterids=nil)
6171
+ @ClusterIds = clusterids
6172
+ end
6173
+
6174
+ def deserialize(params)
6175
+ @ClusterIds = params['ClusterIds']
6176
+ end
6177
+ end
6178
+
6179
+ # DescribeClusterReadOnly返回参数结构体
6180
+ class DescribeClusterReadOnlyResponse < TencentCloud::Common::AbstractModel
6181
+ # @param ClusterReadOnlyValues: 集群只读开关列表
6182
+ # @type ClusterReadOnlyValues: Array
6183
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6184
+ # @type RequestId: String
6185
+
6186
+ attr_accessor :ClusterReadOnlyValues, :RequestId
6187
+
6188
+ def initialize(clusterreadonlyvalues=nil, requestid=nil)
6189
+ @ClusterReadOnlyValues = clusterreadonlyvalues
6190
+ @RequestId = requestid
6191
+ end
6192
+
6193
+ def deserialize(params)
6194
+ unless params['ClusterReadOnlyValues'].nil?
6195
+ @ClusterReadOnlyValues = []
6196
+ params['ClusterReadOnlyValues'].each do |i|
6197
+ clusterreadonlyvalue_tmp = ClusterReadOnlyValue.new
6198
+ clusterreadonlyvalue_tmp.deserialize(i)
6199
+ @ClusterReadOnlyValues << clusterreadonlyvalue_tmp
6200
+ end
6201
+ end
6202
+ @RequestId = params['RequestId']
6203
+ end
6204
+ end
6205
+
5925
6206
  # DescribeClusterTransparentEncryptInfo请求参数结构体
5926
6207
  class DescribeClusterTransparentEncryptInfoRequest < TencentCloud::Common::AbstractModel
5927
6208
  # @param ClusterId: 集群id
@@ -9572,6 +9853,120 @@ module TencentCloud
9572
9853
  end
9573
9854
  end
9574
9855
 
9856
+ # ModifyBackupDownloadRestriction请求参数结构体
9857
+ class ModifyBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel
9858
+ # @param ClusterIds: 集群ID
9859
+ # @type ClusterIds: Array
9860
+ # @param LimitType: 下载限制类型,NoLimit-不限制,LimitOnlyIntranet-限制内网 ,Customize-自定义
9861
+ # @type LimitType: String
9862
+ # @param VpcComparisonSymbol: 该参数仅支持 In, 表示 LimitVpc 指定的vpc可以下载。默认为In
9863
+ # @type VpcComparisonSymbol: String
9864
+ # @param IpComparisonSymbol: In: 指定的ip可以下载; NotIn: 指定的ip不可以下载
9865
+ # @type IpComparisonSymbol: String
9866
+ # @param LimitVpcs: 限制下载的vpc设置
9867
+ # @type LimitVpcs: Array
9868
+ # @param LimitIps: 限制下载的ip设置
9869
+ # @type LimitIps: Array
9870
+
9871
+ attr_accessor :ClusterIds, :LimitType, :VpcComparisonSymbol, :IpComparisonSymbol, :LimitVpcs, :LimitIps
9872
+
9873
+ def initialize(clusterids=nil, limittype=nil, vpccomparisonsymbol=nil, ipcomparisonsymbol=nil, limitvpcs=nil, limitips=nil)
9874
+ @ClusterIds = clusterids
9875
+ @LimitType = limittype
9876
+ @VpcComparisonSymbol = vpccomparisonsymbol
9877
+ @IpComparisonSymbol = ipcomparisonsymbol
9878
+ @LimitVpcs = limitvpcs
9879
+ @LimitIps = limitips
9880
+ end
9881
+
9882
+ def deserialize(params)
9883
+ @ClusterIds = params['ClusterIds']
9884
+ @LimitType = params['LimitType']
9885
+ @VpcComparisonSymbol = params['VpcComparisonSymbol']
9886
+ @IpComparisonSymbol = params['IpComparisonSymbol']
9887
+ unless params['LimitVpcs'].nil?
9888
+ @LimitVpcs = []
9889
+ params['LimitVpcs'].each do |i|
9890
+ backuplimitvpcitem_tmp = BackupLimitVpcItem.new
9891
+ backuplimitvpcitem_tmp.deserialize(i)
9892
+ @LimitVpcs << backuplimitvpcitem_tmp
9893
+ end
9894
+ end
9895
+ @LimitIps = params['LimitIps']
9896
+ end
9897
+ end
9898
+
9899
+ # ModifyBackupDownloadRestriction返回参数结构体
9900
+ class ModifyBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel
9901
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9902
+ # @type RequestId: String
9903
+
9904
+ attr_accessor :RequestId
9905
+
9906
+ def initialize(requestid=nil)
9907
+ @RequestId = requestid
9908
+ end
9909
+
9910
+ def deserialize(params)
9911
+ @RequestId = params['RequestId']
9912
+ end
9913
+ end
9914
+
9915
+ # ModifyBackupDownloadUserRestriction请求参数结构体
9916
+ class ModifyBackupDownloadUserRestrictionRequest < TencentCloud::Common::AbstractModel
9917
+ # @param LimitType: 下载限制类型,NoLimit-不限制,LimitOnlyIntranet-限制内网 ,Customize-自定义
9918
+ # @type LimitType: String
9919
+ # @param VpcComparisonSymbol: 该参数仅支持 In, 表示 LimitVpc 指定的vpc可以下载。默认为In
9920
+ # @type VpcComparisonSymbol: String
9921
+ # @param IpComparisonSymbol: In: 指定的ip可以下载; NotIn: 指定的ip不可以下载
9922
+ # @type IpComparisonSymbol: String
9923
+ # @param LimitVpcs: 限制下载的vpc设置
9924
+ # @type LimitVpcs: Array
9925
+ # @param LimitIps: 限制下载的ip设置
9926
+ # @type LimitIps: Array
9927
+
9928
+ attr_accessor :LimitType, :VpcComparisonSymbol, :IpComparisonSymbol, :LimitVpcs, :LimitIps
9929
+
9930
+ def initialize(limittype=nil, vpccomparisonsymbol=nil, ipcomparisonsymbol=nil, limitvpcs=nil, limitips=nil)
9931
+ @LimitType = limittype
9932
+ @VpcComparisonSymbol = vpccomparisonsymbol
9933
+ @IpComparisonSymbol = ipcomparisonsymbol
9934
+ @LimitVpcs = limitvpcs
9935
+ @LimitIps = limitips
9936
+ end
9937
+
9938
+ def deserialize(params)
9939
+ @LimitType = params['LimitType']
9940
+ @VpcComparisonSymbol = params['VpcComparisonSymbol']
9941
+ @IpComparisonSymbol = params['IpComparisonSymbol']
9942
+ unless params['LimitVpcs'].nil?
9943
+ @LimitVpcs = []
9944
+ params['LimitVpcs'].each do |i|
9945
+ backuplimitvpcitem_tmp = BackupLimitVpcItem.new
9946
+ backuplimitvpcitem_tmp.deserialize(i)
9947
+ @LimitVpcs << backuplimitvpcitem_tmp
9948
+ end
9949
+ end
9950
+ @LimitIps = params['LimitIps']
9951
+ end
9952
+ end
9953
+
9954
+ # ModifyBackupDownloadUserRestriction返回参数结构体
9955
+ class ModifyBackupDownloadUserRestrictionResponse < TencentCloud::Common::AbstractModel
9956
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9957
+ # @type RequestId: String
9958
+
9959
+ attr_accessor :RequestId
9960
+
9961
+ def initialize(requestid=nil)
9962
+ @RequestId = requestid
9963
+ end
9964
+
9965
+ def deserialize(params)
9966
+ @RequestId = params['RequestId']
9967
+ end
9968
+ end
9969
+
9575
9970
  # ModifyBackupName请求参数结构体
9576
9971
  class ModifyBackupNameRequest < TencentCloud::Common::AbstractModel
9577
9972
  # @param ClusterId: 集群ID
@@ -9896,6 +10291,57 @@ module TencentCloud
9896
10291
  end
9897
10292
  end
9898
10293
 
10294
+ # ModifyClusterReadOnly请求参数结构体
10295
+ class ModifyClusterReadOnlyRequest < TencentCloud::Common::AbstractModel
10296
+ # @param ClusterIds: 集群ID列表
10297
+ # @type ClusterIds: Array
10298
+ # @param ReadOnlyOperation: 集群只读开关,可选值:ON,OFF
10299
+ # @type ReadOnlyOperation: String
10300
+ # @param IsInMaintainPeriod: yes:在运维时间窗内修改,no:立即执行(默认值)
10301
+ # @type IsInMaintainPeriod: String
10302
+
10303
+ attr_accessor :ClusterIds, :ReadOnlyOperation, :IsInMaintainPeriod
10304
+
10305
+ def initialize(clusterids=nil, readonlyoperation=nil, isinmaintainperiod=nil)
10306
+ @ClusterIds = clusterids
10307
+ @ReadOnlyOperation = readonlyoperation
10308
+ @IsInMaintainPeriod = isinmaintainperiod
10309
+ end
10310
+
10311
+ def deserialize(params)
10312
+ @ClusterIds = params['ClusterIds']
10313
+ @ReadOnlyOperation = params['ReadOnlyOperation']
10314
+ @IsInMaintainPeriod = params['IsInMaintainPeriod']
10315
+ end
10316
+ end
10317
+
10318
+ # ModifyClusterReadOnly返回参数结构体
10319
+ class ModifyClusterReadOnlyResponse < TencentCloud::Common::AbstractModel
10320
+ # @param ClusterTaskIds: 集群任务ID列表
10321
+ # @type ClusterTaskIds: Array
10322
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10323
+ # @type RequestId: String
10324
+
10325
+ attr_accessor :ClusterTaskIds, :RequestId
10326
+
10327
+ def initialize(clustertaskids=nil, requestid=nil)
10328
+ @ClusterTaskIds = clustertaskids
10329
+ @RequestId = requestid
10330
+ end
10331
+
10332
+ def deserialize(params)
10333
+ unless params['ClusterTaskIds'].nil?
10334
+ @ClusterTaskIds = []
10335
+ params['ClusterTaskIds'].each do |i|
10336
+ clustertaskid_tmp = ClusterTaskId.new
10337
+ clustertaskid_tmp.deserialize(i)
10338
+ @ClusterTaskIds << clustertaskid_tmp
10339
+ end
10340
+ end
10341
+ @RequestId = params['RequestId']
10342
+ end
10343
+ end
10344
+
9899
10345
  # ModifyClusterSlaveZone请求参数结构体
9900
10346
  class ModifyClusterSlaveZoneRequest < TencentCloud::Common::AbstractModel
9901
10347
  # @param ClusterId: 集群Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1069
4
+ version: 3.0.1071
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-27 00:00:00.000000000 Z
11
+ date: 2025-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common