tencentcloud-sdk-cynosdb 3.0.405 → 3.0.406

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de5d50a88bab5573f2da31d01c03ca57abd47d81
4
- data.tar.gz: 3659c929f4d5e966df5421d366e014b614367369
3
+ metadata.gz: 44852f0ef96dc8ae3765b77ee4dace776fe907b4
4
+ data.tar.gz: 390fb64ec4bcdedf1e558e40b40d40c4f715acb0
5
5
  SHA512:
6
- metadata.gz: 778428fab4e110e73c0314aaf9e699ae797d83c1b49f7be91a914ab82ac1dc82f82c689fd64eb03cf09e53e5a4fca7320ab5dfd778e300477c4c1a21b631462d
7
- data.tar.gz: d482cd998814058d5cff539eba746d8a9c0d5525d985422b4c822e4106503cc6e02da752fac729d8e62c9357a3b0b4e60d87a971c88c8b428cbd0d2a52cfd5fb
6
+ metadata.gz: 060114e362851929d0deef32626add7896f4090c02bb8d473c9166f1a93b95419e3bfa81e18879e5e532269147635a652cc1f4a8831a19924b350a5cca2cc145
7
+ data.tar.gz: ed76c59557f63a0dab57f372da11c36f7a4ab9b99437654b5a27c8204f6af32e649475a63a45452025ec1d1cba7c133686e1054725ca129b8ca3f5c52f4130e9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.405
1
+ 3.0.406
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 为集群创建手动备份
153
+
154
+ # @param request: Request instance for CreateBackup.
155
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateBackupRequest`
156
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateBackupResponse`
157
+ def CreateBackup(request)
158
+ body = send_request('CreateBackup', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreateBackupResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
152
176
  # 创建集群
153
177
 
154
178
  # @param request: Request instance for CreateClusters.
@@ -1061,6 +1085,30 @@ module TencentCloud
1061
1085
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
1086
  end
1063
1087
 
1088
+ # 升级预付费存储
1089
+
1090
+ # @param request: Request instance for ModifyClusterStorage.
1091
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterStorageRequest`
1092
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterStorageResponse`
1093
+ def ModifyClusterStorage(request)
1094
+ body = send_request('ModifyClusterStorage', request.serialize)
1095
+ response = JSON.parse(body)
1096
+ if response['Response'].key?('Error') == false
1097
+ model = ModifyClusterStorageResponse.new
1098
+ model.deserialize(response['Response'])
1099
+ model
1100
+ else
1101
+ code = response['Response']['Error']['Code']
1102
+ message = response['Response']['Error']['Message']
1103
+ reqid = response['Response']['RequestId']
1104
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1105
+ end
1106
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1107
+ raise e
1108
+ rescue StandardError => e
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
+ end
1111
+
1064
1112
  # 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
1065
1113
 
1066
1114
  # @param request: Request instance for ModifyDBInstanceSecurityGroups.
@@ -537,6 +537,65 @@ module TencentCloud
537
537
  end
538
538
  end
539
539
 
540
+ # CreateBackup请求参数结构体
541
+ class CreateBackupRequest < TencentCloud::Common::AbstractModel
542
+ # @param ClusterId: 集群ID
543
+ # @type ClusterId: String
544
+ # @param BackupType: 备份类型, 可选值:logic,逻辑备份;snapshot,物理备份
545
+ # @type BackupType: String
546
+ # @param BackupDatabases: 备份的库, 只在 BackupType 为 logic 时有效
547
+ # @type BackupDatabases: Array
548
+ # @param BackupTables: 备份的表, 只在 BackupType 为 logic 时有效
549
+ # @type BackupTables: Array
550
+ # @param BackupName: 备注名
551
+ # @type BackupName: String
552
+
553
+ attr_accessor :ClusterId, :BackupType, :BackupDatabases, :BackupTables, :BackupName
554
+
555
+ def initialize(clusterid=nil, backuptype=nil, backupdatabases=nil, backuptables=nil, backupname=nil)
556
+ @ClusterId = clusterid
557
+ @BackupType = backuptype
558
+ @BackupDatabases = backupdatabases
559
+ @BackupTables = backuptables
560
+ @BackupName = backupname
561
+ end
562
+
563
+ def deserialize(params)
564
+ @ClusterId = params['ClusterId']
565
+ @BackupType = params['BackupType']
566
+ @BackupDatabases = params['BackupDatabases']
567
+ unless params['BackupTables'].nil?
568
+ @BackupTables = []
569
+ params['BackupTables'].each do |i|
570
+ databasetables_tmp = DatabaseTables.new
571
+ databasetables_tmp.deserialize(i)
572
+ @BackupTables << databasetables_tmp
573
+ end
574
+ end
575
+ @BackupName = params['BackupName']
576
+ end
577
+ end
578
+
579
+ # CreateBackup返回参数结构体
580
+ class CreateBackupResponse < TencentCloud::Common::AbstractModel
581
+ # @param FlowId: 异步任务流ID
582
+ # @type FlowId: Integer
583
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
584
+ # @type RequestId: String
585
+
586
+ attr_accessor :FlowId, :RequestId
587
+
588
+ def initialize(flowid=nil, requestid=nil)
589
+ @FlowId = flowid
590
+ @RequestId = requestid
591
+ end
592
+
593
+ def deserialize(params)
594
+ @FlowId = params['FlowId']
595
+ @RequestId = params['RequestId']
596
+ end
597
+ end
598
+
540
599
  # CreateClusters请求参数结构体
541
600
  class CreateClustersRequest < TencentCloud::Common::AbstractModel
542
601
  # @param Zone: 可用区
@@ -1530,6 +1589,28 @@ module TencentCloud
1530
1589
  end
1531
1590
  end
1532
1591
 
1592
+ # 数据库表信息
1593
+ class DatabaseTables < TencentCloud::Common::AbstractModel
1594
+ # @param Database: 数据库名
1595
+ # 注意:此字段可能返回 null,表示取不到有效值。
1596
+ # @type Database: String
1597
+ # @param Tables: 表名称列表
1598
+ # 注意:此字段可能返回 null,表示取不到有效值。
1599
+ # @type Tables: Array
1600
+
1601
+ attr_accessor :Database, :Tables
1602
+
1603
+ def initialize(database=nil, tables=nil)
1604
+ @Database = database
1605
+ @Tables = tables
1606
+ end
1607
+
1608
+ def deserialize(params)
1609
+ @Database = params['Database']
1610
+ @Tables = params['Tables']
1611
+ end
1612
+ end
1613
+
1533
1614
  # 数据库表
1534
1615
  class DbTable < TencentCloud::Common::AbstractModel
1535
1616
  # @param Db: 数据库名称
@@ -3580,6 +3661,65 @@ module TencentCloud
3580
3661
  end
3581
3662
  end
3582
3663
 
3664
+ # ModifyClusterStorage请求参数结构体
3665
+ class ModifyClusterStorageRequest < TencentCloud::Common::AbstractModel
3666
+ # @param ClusterId: 集群ID
3667
+ # @type ClusterId: String
3668
+ # @param NewStorageLimit: 集群新存储大小(单位G)
3669
+ # @type NewStorageLimit: Integer
3670
+ # @param OldStorageLimit: 集群原存储大小(单位G)
3671
+ # @type OldStorageLimit: Integer
3672
+ # @param DealMode: 交易模式 0-下单并支付 1-下单
3673
+ # @type DealMode: Integer
3674
+
3675
+ attr_accessor :ClusterId, :NewStorageLimit, :OldStorageLimit, :DealMode
3676
+
3677
+ def initialize(clusterid=nil, newstoragelimit=nil, oldstoragelimit=nil, dealmode=nil)
3678
+ @ClusterId = clusterid
3679
+ @NewStorageLimit = newstoragelimit
3680
+ @OldStorageLimit = oldstoragelimit
3681
+ @DealMode = dealmode
3682
+ end
3683
+
3684
+ def deserialize(params)
3685
+ @ClusterId = params['ClusterId']
3686
+ @NewStorageLimit = params['NewStorageLimit']
3687
+ @OldStorageLimit = params['OldStorageLimit']
3688
+ @DealMode = params['DealMode']
3689
+ end
3690
+ end
3691
+
3692
+ # ModifyClusterStorage返回参数结构体
3693
+ class ModifyClusterStorageResponse < TencentCloud::Common::AbstractModel
3694
+ # @param TranId: 冻结流水ID
3695
+ # 注意:此字段可能返回 null,表示取不到有效值。
3696
+ # @type TranId: String
3697
+ # @param BigDealIds: 大订单号
3698
+ # 注意:此字段可能返回 null,表示取不到有效值。
3699
+ # @type BigDealIds: Array
3700
+ # @param DealNames: 订单号
3701
+ # 注意:此字段可能返回 null,表示取不到有效值。
3702
+ # @type DealNames: Array
3703
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3704
+ # @type RequestId: String
3705
+
3706
+ attr_accessor :TranId, :BigDealIds, :DealNames, :RequestId
3707
+
3708
+ def initialize(tranid=nil, bigdealids=nil, dealnames=nil, requestid=nil)
3709
+ @TranId = tranid
3710
+ @BigDealIds = bigdealids
3711
+ @DealNames = dealnames
3712
+ @RequestId = requestid
3713
+ end
3714
+
3715
+ def deserialize(params)
3716
+ @TranId = params['TranId']
3717
+ @BigDealIds = params['BigDealIds']
3718
+ @DealNames = params['DealNames']
3719
+ @RequestId = params['RequestId']
3720
+ end
3721
+ end
3722
+
3583
3723
  # ModifyDBInstanceSecurityGroups请求参数结构体
3584
3724
  class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
3585
3725
  # @param InstanceId: 实例组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.405
4
+ version: 3.0.406
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common