tencentcloud-sdk-cynosdb 3.0.806 → 3.0.808

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: b58e1c16be683bf014683efc6dd428928e101e63
4
- data.tar.gz: c97867b0ecaf9eb2ba409e95f21d913ef492e7c9
3
+ metadata.gz: 2ffc91974058eabeaaffe61053c1382d781428b3
4
+ data.tar.gz: 3aa01c73bffe2dacba332edb411e249d819e5236
5
5
  SHA512:
6
- metadata.gz: fdac56f2511b2140f88b2c0a44cc76d44c0ef31cca937b83dee30b833a9c13baa3a576496f2712dd61e507dc6af9728fec2e861ae6c7f9000acbb906f224533c
7
- data.tar.gz: 8fc6bd775da2c3089f7c785d00eda9c1b21e91632393cb1dc4d39155620b54c9986b35c35121f496adbcf4ee1944ff04651ddc08b05ee5860789f214b8405de3
6
+ metadata.gz: 1e4cdc40cb032b8ddf760ba91e82f62158bfab52dfe80b01d95838154702f4d5ef3295c90266e80232b6314a4e77225278e84982c06a6ab6d2875faed0e7e259
7
+ data.tar.gz: 7cd50e06a9b19c8c181d620f08566dc6a86ce25187e03f3cd98cfc51f30168ce5264690afd30a837b73093b75fcdc1902244370cee37373b603f6a7cd9641c4f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.806
1
+ 3.0.808
@@ -2405,6 +2405,30 @@ module TencentCloud
2405
2405
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2406
2406
  end
2407
2407
 
2408
+ # 修改实例小版本升级限制时间
2409
+
2410
+ # @param request: Request instance for ModifyInstanceUpgradeLimitDays.
2411
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyInstanceUpgradeLimitDaysRequest`
2412
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyInstanceUpgradeLimitDaysResponse`
2413
+ def ModifyInstanceUpgradeLimitDays(request)
2414
+ body = send_request('ModifyInstanceUpgradeLimitDays', request.serialize)
2415
+ response = JSON.parse(body)
2416
+ if response['Response'].key?('Error') == false
2417
+ model = ModifyInstanceUpgradeLimitDaysResponse.new
2418
+ model.deserialize(response['Response'])
2419
+ model
2420
+ else
2421
+ code = response['Response']['Error']['Code']
2422
+ message = response['Response']['Error']['Message']
2423
+ reqid = response['Response']['RequestId']
2424
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2425
+ end
2426
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2427
+ raise e
2428
+ rescue StandardError => e
2429
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2430
+ end
2431
+
2408
2432
  # 修改维护时间配置
2409
2433
 
2410
2434
  # @param request: Request instance for ModifyMaintainPeriodConfig.
@@ -154,17 +154,21 @@ module TencentCloud
154
154
  # @type ClusterId: String
155
155
  # @param SlaveZone: 从可用区
156
156
  # @type SlaveZone: String
157
+ # @param BinlogSyncWay: binlog同步方式。默认值:async。可选值:sync、semisync、async
158
+ # @type BinlogSyncWay: String
157
159
 
158
- attr_accessor :ClusterId, :SlaveZone
160
+ attr_accessor :ClusterId, :SlaveZone, :BinlogSyncWay
159
161
 
160
- def initialize(clusterid=nil, slavezone=nil)
162
+ def initialize(clusterid=nil, slavezone=nil, binlogsyncway=nil)
161
163
  @ClusterId = clusterid
162
164
  @SlaveZone = slavezone
165
+ @BinlogSyncWay = binlogsyncway
163
166
  end
164
167
 
165
168
  def deserialize(params)
166
169
  @ClusterId = params['ClusterId']
167
170
  @SlaveZone = params['SlaveZone']
171
+ @BinlogSyncWay = params['BinlogSyncWay']
168
172
  end
169
173
  end
170
174
 
@@ -1477,14 +1481,22 @@ module TencentCloud
1477
1481
  # @param NewSlaveZone: 新从可用区
1478
1482
  # 注意:此字段可能返回 null,表示取不到有效值。
1479
1483
  # @type NewSlaveZone: Array
1484
+ # @param NewSlaveZoneAttr: 新从可用区属性
1485
+ # 注意:此字段可能返回 null,表示取不到有效值。
1486
+ # @type NewSlaveZoneAttr: Array
1487
+ # @param OldSlaveZoneAttr: 旧可用区属性
1488
+ # 注意:此字段可能返回 null,表示取不到有效值。
1489
+ # @type OldSlaveZoneAttr: Array
1480
1490
 
1481
- attr_accessor :OldMasterZone, :OldSlaveZone, :NewMasterZone, :NewSlaveZone
1491
+ attr_accessor :OldMasterZone, :OldSlaveZone, :NewMasterZone, :NewSlaveZone, :NewSlaveZoneAttr, :OldSlaveZoneAttr
1482
1492
 
1483
- def initialize(oldmasterzone=nil, oldslavezone=nil, newmasterzone=nil, newslavezone=nil)
1493
+ def initialize(oldmasterzone=nil, oldslavezone=nil, newmasterzone=nil, newslavezone=nil, newslavezoneattr=nil, oldslavezoneattr=nil)
1484
1494
  @OldMasterZone = oldmasterzone
1485
1495
  @OldSlaveZone = oldslavezone
1486
1496
  @NewMasterZone = newmasterzone
1487
1497
  @NewSlaveZone = newslavezone
1498
+ @NewSlaveZoneAttr = newslavezoneattr
1499
+ @OldSlaveZoneAttr = oldslavezoneattr
1488
1500
  end
1489
1501
 
1490
1502
  def deserialize(params)
@@ -1492,6 +1504,22 @@ module TencentCloud
1492
1504
  @OldSlaveZone = params['OldSlaveZone']
1493
1505
  @NewMasterZone = params['NewMasterZone']
1494
1506
  @NewSlaveZone = params['NewSlaveZone']
1507
+ unless params['NewSlaveZoneAttr'].nil?
1508
+ @NewSlaveZoneAttr = []
1509
+ params['NewSlaveZoneAttr'].each do |i|
1510
+ slavezoneattritem_tmp = SlaveZoneAttrItem.new
1511
+ slavezoneattritem_tmp.deserialize(i)
1512
+ @NewSlaveZoneAttr << slavezoneattritem_tmp
1513
+ end
1514
+ end
1515
+ unless params['OldSlaveZoneAttr'].nil?
1516
+ @OldSlaveZoneAttr = []
1517
+ params['OldSlaveZoneAttr'].each do |i|
1518
+ slavezoneattritem_tmp = SlaveZoneAttrItem.new
1519
+ slavezoneattritem_tmp.deserialize(i)
1520
+ @OldSlaveZoneAttr << slavezoneattritem_tmp
1521
+ end
1522
+ end
1495
1523
  end
1496
1524
  end
1497
1525
 
@@ -2857,10 +2885,13 @@ module TencentCloud
2857
2885
  # @param NetworkType: 节点网络类型
2858
2886
  # 注意:此字段可能返回 null,表示取不到有效值。
2859
2887
  # @type NetworkType: String
2888
+ # @param SlaveZoneAttr: 备可用区属性
2889
+ # 注意:此字段可能返回 null,表示取不到有效值。
2890
+ # @type SlaveZoneAttr: Array
2860
2891
 
2861
- attr_accessor :ClusterId, :ClusterName, :Region, :Zone, :PhysicalZone, :Status, :StatusDesc, :ServerlessStatus, :StorageId, :Storage, :MaxStorageSize, :MinStorageSize, :StoragePayMode, :VpcName, :VpcId, :SubnetName, :SubnetId, :Charset, :CreateTime, :DbType, :DbMode, :DbVersion, :StorageLimit, :UsedStorage, :Vip, :Vport, :RoAddr, :Ability, :CynosVersion, :BusinessType, :HasSlaveZone, :IsFreeze, :Tasks, :MasterZone, :SlaveZones, :InstanceSet, :PayMode, :PeriodEndTime, :ProjectID, :ResourceTags, :ProxyStatus, :LogBin, :IsSkipTrade, :PitrType, :IsOpenPasswordComplexity, :NetworkStatus, :ResourcePackages, :RenewFlag, :NetworkType
2892
+ attr_accessor :ClusterId, :ClusterName, :Region, :Zone, :PhysicalZone, :Status, :StatusDesc, :ServerlessStatus, :StorageId, :Storage, :MaxStorageSize, :MinStorageSize, :StoragePayMode, :VpcName, :VpcId, :SubnetName, :SubnetId, :Charset, :CreateTime, :DbType, :DbMode, :DbVersion, :StorageLimit, :UsedStorage, :Vip, :Vport, :RoAddr, :Ability, :CynosVersion, :BusinessType, :HasSlaveZone, :IsFreeze, :Tasks, :MasterZone, :SlaveZones, :InstanceSet, :PayMode, :PeriodEndTime, :ProjectID, :ResourceTags, :ProxyStatus, :LogBin, :IsSkipTrade, :PitrType, :IsOpenPasswordComplexity, :NetworkStatus, :ResourcePackages, :RenewFlag, :NetworkType, :SlaveZoneAttr
2862
2893
 
2863
- def initialize(clusterid=nil, clustername=nil, region=nil, zone=nil, physicalzone=nil, status=nil, statusdesc=nil, serverlessstatus=nil, storageid=nil, storage=nil, maxstoragesize=nil, minstoragesize=nil, storagepaymode=nil, vpcname=nil, vpcid=nil, subnetname=nil, subnetid=nil, charset=nil, createtime=nil, dbtype=nil, dbmode=nil, dbversion=nil, storagelimit=nil, usedstorage=nil, vip=nil, vport=nil, roaddr=nil, ability=nil, cynosversion=nil, businesstype=nil, hasslavezone=nil, isfreeze=nil, tasks=nil, masterzone=nil, slavezones=nil, instanceset=nil, paymode=nil, periodendtime=nil, projectid=nil, resourcetags=nil, proxystatus=nil, logbin=nil, isskiptrade=nil, pitrtype=nil, isopenpasswordcomplexity=nil, networkstatus=nil, resourcepackages=nil, renewflag=nil, networktype=nil)
2894
+ def initialize(clusterid=nil, clustername=nil, region=nil, zone=nil, physicalzone=nil, status=nil, statusdesc=nil, serverlessstatus=nil, storageid=nil, storage=nil, maxstoragesize=nil, minstoragesize=nil, storagepaymode=nil, vpcname=nil, vpcid=nil, subnetname=nil, subnetid=nil, charset=nil, createtime=nil, dbtype=nil, dbmode=nil, dbversion=nil, storagelimit=nil, usedstorage=nil, vip=nil, vport=nil, roaddr=nil, ability=nil, cynosversion=nil, businesstype=nil, hasslavezone=nil, isfreeze=nil, tasks=nil, masterzone=nil, slavezones=nil, instanceset=nil, paymode=nil, periodendtime=nil, projectid=nil, resourcetags=nil, proxystatus=nil, logbin=nil, isskiptrade=nil, pitrtype=nil, isopenpasswordcomplexity=nil, networkstatus=nil, resourcepackages=nil, renewflag=nil, networktype=nil, slavezoneattr=nil)
2864
2895
  @ClusterId = clusterid
2865
2896
  @ClusterName = clustername
2866
2897
  @Region = region
@@ -2910,6 +2941,7 @@ module TencentCloud
2910
2941
  @ResourcePackages = resourcepackages
2911
2942
  @RenewFlag = renewflag
2912
2943
  @NetworkType = networktype
2944
+ @SlaveZoneAttr = slavezoneattr
2913
2945
  end
2914
2946
 
2915
2947
  def deserialize(params)
@@ -3000,6 +3032,14 @@ module TencentCloud
3000
3032
  end
3001
3033
  @RenewFlag = params['RenewFlag']
3002
3034
  @NetworkType = params['NetworkType']
3035
+ unless params['SlaveZoneAttr'].nil?
3036
+ @SlaveZoneAttr = []
3037
+ params['SlaveZoneAttr'].each do |i|
3038
+ slavezoneattritem_tmp = SlaveZoneAttrItem.new
3039
+ slavezoneattritem_tmp.deserialize(i)
3040
+ @SlaveZoneAttr << slavezoneattritem_tmp
3041
+ end
3042
+ end
3003
3043
  end
3004
3044
  end
3005
3045
 
@@ -8701,19 +8741,23 @@ module TencentCloud
8701
8741
  # @type OldSlaveZone: String
8702
8742
  # @param NewSlaveZone: 新从可用区
8703
8743
  # @type NewSlaveZone: String
8744
+ # @param BinlogSyncWay: binlog同步方式。默认值:async。可选值:sync、semisync、async
8745
+ # @type BinlogSyncWay: String
8704
8746
 
8705
- attr_accessor :ClusterId, :OldSlaveZone, :NewSlaveZone
8747
+ attr_accessor :ClusterId, :OldSlaveZone, :NewSlaveZone, :BinlogSyncWay
8706
8748
 
8707
- def initialize(clusterid=nil, oldslavezone=nil, newslavezone=nil)
8749
+ def initialize(clusterid=nil, oldslavezone=nil, newslavezone=nil, binlogsyncway=nil)
8708
8750
  @ClusterId = clusterid
8709
8751
  @OldSlaveZone = oldslavezone
8710
8752
  @NewSlaveZone = newslavezone
8753
+ @BinlogSyncWay = binlogsyncway
8711
8754
  end
8712
8755
 
8713
8756
  def deserialize(params)
8714
8757
  @ClusterId = params['ClusterId']
8715
8758
  @OldSlaveZone = params['OldSlaveZone']
8716
8759
  @NewSlaveZone = params['NewSlaveZone']
8760
+ @BinlogSyncWay = params['BinlogSyncWay']
8717
8761
  end
8718
8762
  end
8719
8763
 
@@ -9002,6 +9046,46 @@ module TencentCloud
9002
9046
  end
9003
9047
  end
9004
9048
 
9049
+ # ModifyInstanceUpgradeLimitDays请求参数结构体
9050
+ class ModifyInstanceUpgradeLimitDaysRequest < TencentCloud::Common::AbstractModel
9051
+ # @param ClusterId: 集群ID
9052
+ # @type ClusterId: String
9053
+ # @param InstanceId: 实例ID
9054
+ # @type InstanceId: String
9055
+ # @param UpgradeLimitDays: 升级限制时间
9056
+ # @type UpgradeLimitDays: Integer
9057
+
9058
+ attr_accessor :ClusterId, :InstanceId, :UpgradeLimitDays
9059
+
9060
+ def initialize(clusterid=nil, instanceid=nil, upgradelimitdays=nil)
9061
+ @ClusterId = clusterid
9062
+ @InstanceId = instanceid
9063
+ @UpgradeLimitDays = upgradelimitdays
9064
+ end
9065
+
9066
+ def deserialize(params)
9067
+ @ClusterId = params['ClusterId']
9068
+ @InstanceId = params['InstanceId']
9069
+ @UpgradeLimitDays = params['UpgradeLimitDays']
9070
+ end
9071
+ end
9072
+
9073
+ # ModifyInstanceUpgradeLimitDays返回参数结构体
9074
+ class ModifyInstanceUpgradeLimitDaysResponse < TencentCloud::Common::AbstractModel
9075
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9076
+ # @type RequestId: String
9077
+
9078
+ attr_accessor :RequestId
9079
+
9080
+ def initialize(requestid=nil)
9081
+ @RequestId = requestid
9082
+ end
9083
+
9084
+ def deserialize(params)
9085
+ @RequestId = params['RequestId']
9086
+ end
9087
+ end
9088
+
9005
9089
  # ModifyMaintainPeriodConfig请求参数结构体
9006
9090
  class ModifyMaintainPeriodConfigRequest < TencentCloud::Common::AbstractModel
9007
9091
  # @param InstanceId: 实例ID
@@ -12002,6 +12086,28 @@ module TencentCloud
12002
12086
  end
12003
12087
  end
12004
12088
 
12089
+ # 可用区属性项
12090
+ class SlaveZoneAttrItem < TencentCloud::Common::AbstractModel
12091
+ # @param Zone: 可用区
12092
+ # 注意:此字段可能返回 null,表示取不到有效值。
12093
+ # @type Zone: String
12094
+ # @param BinlogSyncWay: binlog同步方式
12095
+ # 注意:此字段可能返回 null,表示取不到有效值。
12096
+ # @type BinlogSyncWay: String
12097
+
12098
+ attr_accessor :Zone, :BinlogSyncWay
12099
+
12100
+ def initialize(zone=nil, binlogsyncway=nil)
12101
+ @Zone = zone
12102
+ @BinlogSyncWay = binlogsyncway
12103
+ end
12104
+
12105
+ def deserialize(params)
12106
+ @Zone = params['Zone']
12107
+ @BinlogSyncWay = params['BinlogSyncWay']
12108
+ end
12109
+ end
12110
+
12005
12111
  # 备可用区库存信息
12006
12112
  class SlaveZoneStockInfo < TencentCloud::Common::AbstractModel
12007
12113
  # @param SlaveZone: 备可用区
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.806
4
+ version: 3.0.808
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-18 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common