tencentcloud-sdk-cynosdb 1.0.258 → 1.0.259

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: 0307f68d49067fc5099e961a0d03c0ca87ee47d8
4
- data.tar.gz: 18e95ac66f0d25758c761891cb21e3678d98aedb
3
+ metadata.gz: b348ecbef5626f322716b3c9c3063af36ee694c5
4
+ data.tar.gz: ad1f4c993466405f0c765a8179bc7c25a7032549
5
5
  SHA512:
6
- metadata.gz: e7279d337609b7829d1c7931052cfa85ef768d4848663c373d2bf6aa4d88e3e93ae1072f2b41e3a2daeb437b4055273f85da494fac38478e2d04b6517fbb7b26
7
- data.tar.gz: d814e20630f6af0c7dcf377cb0b92a8be0efd0bde48313c3e7120c1f7aa6b0b3b1aef68f84003f7fe5731c5a41118ce0c1aae8d4341bc0355b5b4c432e3e021b
6
+ metadata.gz: 70233b2e5e750eb27cc83a64584d0ebe75df93b47a722d0e6f70472d5bd4d3b079a4c56ee19edc3013e270aa987f57bf88fe91e9298924a82b13dd3e92f0d1fc
7
+ data.tar.gz: a4e7b99fa4cd3efe547cb41abc2d214374c6abc76223e0fea498ccfc463de1e5609395bf1b77102e840d20167504024bb8f2adecba18b6649ede8ece492712aa
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.258
1
+ 1.0.259
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 本接口(ActivateInstance)用于恢复已隔离的实例访问。
33
+
34
+ # @param request: Request instance for ActivateInstance.
35
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ActivateInstanceRequest`
36
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ActivateInstanceResponse`
37
+ def ActivateInstance(request)
38
+ body = send_request('ActivateInstance', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ActivateInstanceResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 本接口(AddInstances)用于集群添加实例
33
57
 
34
58
  # @param request: Request instance for AddInstances.
@@ -53,6 +77,30 @@ module TencentCloud
53
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
78
  end
55
79
 
80
+ # 安全组批量绑定云资源
81
+
82
+ # @param request: Request instance for AssociateSecurityGroups.
83
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::AssociateSecurityGroupsRequest`
84
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::AssociateSecurityGroupsResponse`
85
+ def AssociateSecurityGroups(request)
86
+ body = send_request('AssociateSecurityGroups', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AssociateSecurityGroupsResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
56
104
  # 创建集群
57
105
 
58
106
  # @param request: Request instance for CreateClusters.
@@ -77,6 +125,30 @@ module TencentCloud
77
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
126
  end
79
127
 
128
+ # 账号所有权限
129
+
130
+ # @param request: Request instance for DescribeAccountAllGrantPrivileges.
131
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAccountAllGrantPrivilegesRequest`
132
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAccountAllGrantPrivilegesResponse`
133
+ def DescribeAccountAllGrantPrivileges(request)
134
+ body = send_request('DescribeAccountAllGrantPrivileges', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeAccountAllGrantPrivilegesResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
80
152
  # 本接口(DescribeAccounts)用于查询数据库管理账号。
81
153
 
82
154
  # @param request: Request instance for DescribeAccounts.
@@ -197,6 +269,30 @@ module TencentCloud
197
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
270
  end
199
271
 
272
+ # 本接口(DescribeClusterParamLogs)查询参数修改日志
273
+
274
+ # @param request: Request instance for DescribeClusterParamLogs.
275
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterParamLogsRequest`
276
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterParamLogsResponse`
277
+ def DescribeClusterParamLogs(request)
278
+ body = send_request('DescribeClusterParamLogs', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeClusterParamLogsResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
200
296
  # 查询集群列表
201
297
 
202
298
  # @param request: Request instance for DescribeClusters.
@@ -437,6 +533,54 @@ module TencentCloud
437
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
534
  end
439
535
 
536
+ # 安全组批量解绑云资源
537
+
538
+ # @param request: Request instance for DisassociateSecurityGroups.
539
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DisassociateSecurityGroupsRequest`
540
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DisassociateSecurityGroupsResponse`
541
+ def DisassociateSecurityGroups(request)
542
+ body = send_request('DisassociateSecurityGroups', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DisassociateSecurityGroupsResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 批量授权账号权限
561
+
562
+ # @param request: Request instance for GrantAccountPrivileges.
563
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::GrantAccountPrivilegesRequest`
564
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::GrantAccountPrivilegesResponse`
565
+ def GrantAccountPrivileges(request)
566
+ body = send_request('GrantAccountPrivileges', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = GrantAccountPrivilegesResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
440
584
  # 隔离集群
441
585
 
442
586
  # @param request: Request instance for IsolateCluster.
@@ -485,6 +629,30 @@ module TencentCloud
485
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
630
  end
487
631
 
632
+ # 修改账号参数
633
+
634
+ # @param request: Request instance for ModifyAccountParams.
635
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountParamsRequest`
636
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountParamsResponse`
637
+ def ModifyAccountParams(request)
638
+ body = send_request('ModifyAccountParams', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = ModifyAccountParamsResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
488
656
  # 修改指定集群的备份配置
489
657
 
490
658
  # @param request: Request instance for ModifyBackupConfig.
@@ -629,6 +797,102 @@ module TencentCloud
629
797
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
798
  end
631
799
 
800
+ # 暂停serverless集群
801
+
802
+ # @param request: Request instance for PauseServerless.
803
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::PauseServerlessRequest`
804
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::PauseServerlessResponse`
805
+ def PauseServerless(request)
806
+ body = send_request('PauseServerless', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = PauseServerlessResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
824
+ # 恢复serverless集群
825
+
826
+ # @param request: Request instance for ResumeServerless.
827
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ResumeServerlessRequest`
828
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ResumeServerlessResponse`
829
+ def ResumeServerless(request)
830
+ body = send_request('ResumeServerless', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = ResumeServerlessResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
848
+ # 批量回收账号权限
849
+
850
+ # @param request: Request instance for RevokeAccountPrivileges.
851
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::RevokeAccountPrivilegesRequest`
852
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::RevokeAccountPrivilegesResponse`
853
+ def RevokeAccountPrivileges(request)
854
+ body = send_request('RevokeAccountPrivileges', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = RevokeAccountPrivilegesResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
872
+ # 本接口(RollBackCluster)用于回档集群
873
+
874
+ # @param request: Request instance for RollBackCluster.
875
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::RollBackClusterRequest`
876
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::RollBackClusterResponse`
877
+ def RollBackCluster(request)
878
+ body = send_request('RollBackCluster', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = RollBackClusterResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
632
896
  # SetRenewFlag设置实例的自动续费功能
633
897
 
634
898
  # @param request: Request instance for SetRenewFlag.
@@ -49,6 +49,66 @@ module TencentCloud
49
49
  end
50
50
  end
51
51
 
52
+ # 账号参数
53
+ class AccountParam < TencentCloud::Common::AbstractModel
54
+ # @param ParamName: 参数名称,当前仅支持参数:max_user_connections
55
+ # @type ParamName: String
56
+ # @param ParamValue: 参数值
57
+ # @type ParamValue: String
58
+
59
+ attr_accessor :ParamName, :ParamValue
60
+
61
+ def initialize(paramname=nil, paramvalue=nil)
62
+ @ParamName = paramname
63
+ @ParamValue = paramvalue
64
+ end
65
+
66
+ def deserialize(params)
67
+ @ParamName = params['ParamName']
68
+ @ParamValue = params['ParamValue']
69
+ end
70
+ end
71
+
72
+ # ActivateInstance请求参数结构体
73
+ class ActivateInstanceRequest < TencentCloud::Common::AbstractModel
74
+ # @param ClusterId: 集群ID
75
+ # @type ClusterId: String
76
+ # @param InstanceIdList: 实例ID数组
77
+ # @type InstanceIdList: Array
78
+
79
+ attr_accessor :ClusterId, :InstanceIdList
80
+
81
+ def initialize(clusterid=nil, instanceidlist=nil)
82
+ @ClusterId = clusterid
83
+ @InstanceIdList = instanceidlist
84
+ end
85
+
86
+ def deserialize(params)
87
+ @ClusterId = params['ClusterId']
88
+ @InstanceIdList = params['InstanceIdList']
89
+ end
90
+ end
91
+
92
+ # ActivateInstance返回参数结构体
93
+ class ActivateInstanceResponse < TencentCloud::Common::AbstractModel
94
+ # @param FlowId: 任务流id
95
+ # @type FlowId: Integer
96
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
97
+ # @type RequestId: String
98
+
99
+ attr_accessor :FlowId, :RequestId
100
+
101
+ def initialize(flowid=nil, requestid=nil)
102
+ @FlowId = flowid
103
+ @RequestId = requestid
104
+ end
105
+
106
+ def deserialize(params)
107
+ @FlowId = params['FlowId']
108
+ @RequestId = params['RequestId']
109
+ end
110
+ end
111
+
52
112
  # AddInstances请求参数结构体
53
113
  class AddInstancesRequest < TencentCloud::Common::AbstractModel
54
114
  # @param ClusterId: 集群ID
@@ -170,6 +230,46 @@ module TencentCloud
170
230
  end
171
231
  end
172
232
 
233
+ # AssociateSecurityGroups请求参数结构体
234
+ class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
235
+ # @param InstanceIds: 实例组ID数组
236
+ # @type InstanceIds: Array
237
+ # @param SecurityGroupIds: 要修改的安全组ID列表,一个或者多个安全组Id组成的数组。
238
+ # @type SecurityGroupIds: Array
239
+ # @param Zone: 可用区
240
+ # @type Zone: String
241
+
242
+ attr_accessor :InstanceIds, :SecurityGroupIds, :Zone
243
+
244
+ def initialize(instanceids=nil, securitygroupids=nil, zone=nil)
245
+ @InstanceIds = instanceids
246
+ @SecurityGroupIds = securitygroupids
247
+ @Zone = zone
248
+ end
249
+
250
+ def deserialize(params)
251
+ @InstanceIds = params['InstanceIds']
252
+ @SecurityGroupIds = params['SecurityGroupIds']
253
+ @Zone = params['Zone']
254
+ end
255
+ end
256
+
257
+ # AssociateSecurityGroups返回参数结构体
258
+ class AssociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel
259
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
260
+ # @type RequestId: String
261
+
262
+ attr_accessor :RequestId
263
+
264
+ def initialize(requestid=nil)
265
+ @RequestId = requestid
266
+ end
267
+
268
+ def deserialize(params)
269
+ @RequestId = params['RequestId']
270
+ end
271
+ end
272
+
173
273
  # 备份文件信息
174
274
  class BackupFileInfo < TencentCloud::Common::AbstractModel
175
275
  # @param SnapshotId: 快照文件ID,用于回滚
@@ -282,6 +382,42 @@ module TencentCloud
282
382
  end
283
383
  end
284
384
 
385
+ # 参数修改记录
386
+ class ClusterParamModifyLog < TencentCloud::Common::AbstractModel
387
+ # @param ParamName: 参数名称
388
+ # @type ParamName: String
389
+ # @param CurrentValue: 当前值
390
+ # @type CurrentValue: String
391
+ # @param UpdateValue: 修改后的值
392
+ # @type UpdateValue: String
393
+ # @param Status: 修改状态
394
+ # @type Status: String
395
+ # @param CreateTime: 创建时间
396
+ # @type CreateTime: String
397
+ # @param UpdateTime: 更新时间
398
+ # @type UpdateTime: String
399
+
400
+ attr_accessor :ParamName, :CurrentValue, :UpdateValue, :Status, :CreateTime, :UpdateTime
401
+
402
+ def initialize(paramname=nil, currentvalue=nil, updatevalue=nil, status=nil, createtime=nil, updatetime=nil)
403
+ @ParamName = paramname
404
+ @CurrentValue = currentvalue
405
+ @UpdateValue = updatevalue
406
+ @Status = status
407
+ @CreateTime = createtime
408
+ @UpdateTime = updatetime
409
+ end
410
+
411
+ def deserialize(params)
412
+ @ParamName = params['ParamName']
413
+ @CurrentValue = params['CurrentValue']
414
+ @UpdateValue = params['UpdateValue']
415
+ @Status = params['Status']
416
+ @CreateTime = params['CreateTime']
417
+ @UpdateTime = params['UpdateTime']
418
+ end
419
+ end
420
+
285
421
  # CreateClusters请求参数结构体
286
422
  class CreateClustersRequest < TencentCloud::Common::AbstractModel
287
423
  # @param Zone: 可用区
@@ -1242,6 +1378,119 @@ module TencentCloud
1242
1378
  end
1243
1379
  end
1244
1380
 
1381
+ # 数据库权限列表
1382
+ class DatabasePrivileges < TencentCloud::Common::AbstractModel
1383
+ # @param Db: 数据库
1384
+ # @type Db: String
1385
+ # @param Privileges: 权限列表
1386
+ # @type Privileges: Array
1387
+
1388
+ attr_accessor :Db, :Privileges
1389
+
1390
+ def initialize(db=nil, privileges=nil)
1391
+ @Db = db
1392
+ @Privileges = privileges
1393
+ end
1394
+
1395
+ def deserialize(params)
1396
+ @Db = params['Db']
1397
+ @Privileges = params['Privileges']
1398
+ end
1399
+ end
1400
+
1401
+ # 数据库表
1402
+ class DbTable < TencentCloud::Common::AbstractModel
1403
+ # @param Db: 数据库名称
1404
+ # @type Db: String
1405
+ # @param TableName: 数据库表名称
1406
+ # @type TableName: String
1407
+
1408
+ attr_accessor :Db, :TableName
1409
+
1410
+ def initialize(db=nil, tablename=nil)
1411
+ @Db = db
1412
+ @TableName = tablename
1413
+ end
1414
+
1415
+ def deserialize(params)
1416
+ @Db = params['Db']
1417
+ @TableName = params['TableName']
1418
+ end
1419
+ end
1420
+
1421
+ # DescribeAccountAllGrantPrivileges请求参数结构体
1422
+ class DescribeAccountAllGrantPrivilegesRequest < TencentCloud::Common::AbstractModel
1423
+ # @param ClusterId: 集群id
1424
+ # @type ClusterId: String
1425
+ # @param Account: 账号信息
1426
+ # @type Account: :class:`Tencentcloud::Cynosdb.v20190107.models.InputAccount`
1427
+
1428
+ attr_accessor :ClusterId, :Account
1429
+
1430
+ def initialize(clusterid=nil, account=nil)
1431
+ @ClusterId = clusterid
1432
+ @Account = account
1433
+ end
1434
+
1435
+ def deserialize(params)
1436
+ @ClusterId = params['ClusterId']
1437
+ unless params['Account'].nil?
1438
+ @Account = InputAccount.new
1439
+ @Account.deserialize(params['Account'])
1440
+ end
1441
+ end
1442
+ end
1443
+
1444
+ # DescribeAccountAllGrantPrivileges返回参数结构体
1445
+ class DescribeAccountAllGrantPrivilegesResponse < TencentCloud::Common::AbstractModel
1446
+ # @param PrivilegeStatements: 权限语句
1447
+ # 注意:此字段可能返回 null,表示取不到有效值。
1448
+ # @type PrivilegeStatements: Array
1449
+ # @param GlobalPrivileges: 全局权限
1450
+ # 注意:此字段可能返回 null,表示取不到有效值。
1451
+ # @type GlobalPrivileges: Array
1452
+ # @param DatabasePrivileges: 数据库权限
1453
+ # 注意:此字段可能返回 null,表示取不到有效值。
1454
+ # @type DatabasePrivileges: Array
1455
+ # @param TablePrivileges: 数据库表权限
1456
+ # 注意:此字段可能返回 null,表示取不到有效值。
1457
+ # @type TablePrivileges: Array
1458
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1459
+ # @type RequestId: String
1460
+
1461
+ attr_accessor :PrivilegeStatements, :GlobalPrivileges, :DatabasePrivileges, :TablePrivileges, :RequestId
1462
+
1463
+ def initialize(privilegestatements=nil, globalprivileges=nil, databaseprivileges=nil, tableprivileges=nil, requestid=nil)
1464
+ @PrivilegeStatements = privilegestatements
1465
+ @GlobalPrivileges = globalprivileges
1466
+ @DatabasePrivileges = databaseprivileges
1467
+ @TablePrivileges = tableprivileges
1468
+ @RequestId = requestid
1469
+ end
1470
+
1471
+ def deserialize(params)
1472
+ @PrivilegeStatements = params['PrivilegeStatements']
1473
+ @GlobalPrivileges = params['GlobalPrivileges']
1474
+ unless params['DatabasePrivileges'].nil?
1475
+ @DatabasePrivileges = []
1476
+ params['DatabasePrivileges'].each do |i|
1477
+ databaseprivileges_tmp = DatabasePrivileges.new
1478
+ databaseprivileges_tmp.deserialize(i)
1479
+ @DatabasePrivileges << databaseprivileges_tmp
1480
+ end
1481
+ end
1482
+ unless params['TablePrivileges'].nil?
1483
+ @TablePrivileges = []
1484
+ params['TablePrivileges'].each do |i|
1485
+ tableprivileges_tmp = TablePrivileges.new
1486
+ tableprivileges_tmp.deserialize(i)
1487
+ @TablePrivileges << tableprivileges_tmp
1488
+ end
1489
+ end
1490
+ @RequestId = params['RequestId']
1491
+ end
1492
+ end
1493
+
1245
1494
  # DescribeAccounts请求参数结构体
1246
1495
  class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
1247
1496
  # @param ClusterId: 集群ID
@@ -1494,6 +1743,62 @@ module TencentCloud
1494
1743
  end
1495
1744
  end
1496
1745
 
1746
+ # DescribeClusterParamLogs请求参数结构体
1747
+ class DescribeClusterParamLogsRequest < TencentCloud::Common::AbstractModel
1748
+ # @param ClusterId: 集群ID
1749
+ # @type ClusterId: String
1750
+ # @param Limit: 返回数量,默认为 20,最大值为 100
1751
+ # @type Limit: Integer
1752
+ # @param Offset: 记录偏移量,默认值为0
1753
+ # @type Offset: Integer
1754
+
1755
+ attr_accessor :ClusterId, :Limit, :Offset
1756
+
1757
+ def initialize(clusterid=nil, limit=nil, offset=nil)
1758
+ @ClusterId = clusterid
1759
+ @Limit = limit
1760
+ @Offset = offset
1761
+ end
1762
+
1763
+ def deserialize(params)
1764
+ @ClusterId = params['ClusterId']
1765
+ @Limit = params['Limit']
1766
+ @Offset = params['Offset']
1767
+ end
1768
+ end
1769
+
1770
+ # DescribeClusterParamLogs返回参数结构体
1771
+ class DescribeClusterParamLogsResponse < TencentCloud::Common::AbstractModel
1772
+ # @param TotalCount: 记录总数
1773
+ # @type TotalCount: Integer
1774
+ # @param ClusterParamLogs: 参数修改记录
1775
+ # 注意:此字段可能返回 null,表示取不到有效值。
1776
+ # @type ClusterParamLogs: Array
1777
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1778
+ # @type RequestId: String
1779
+
1780
+ attr_accessor :TotalCount, :ClusterParamLogs, :RequestId
1781
+
1782
+ def initialize(totalcount=nil, clusterparamlogs=nil, requestid=nil)
1783
+ @TotalCount = totalcount
1784
+ @ClusterParamLogs = clusterparamlogs
1785
+ @RequestId = requestid
1786
+ end
1787
+
1788
+ def deserialize(params)
1789
+ @TotalCount = params['TotalCount']
1790
+ unless params['ClusterParamLogs'].nil?
1791
+ @ClusterParamLogs = []
1792
+ params['ClusterParamLogs'].each do |i|
1793
+ clusterparammodifylog_tmp = ClusterParamModifyLog.new
1794
+ clusterparammodifylog_tmp.deserialize(i)
1795
+ @ClusterParamLogs << clusterparammodifylog_tmp
1796
+ end
1797
+ end
1798
+ @RequestId = params['RequestId']
1799
+ end
1800
+ end
1801
+
1497
1802
  # DescribeClusters请求参数结构体
1498
1803
  class DescribeClustersRequest < TencentCloud::Common::AbstractModel
1499
1804
  # @param DbType: 引擎类型:目前支持“MYSQL”, “POSTGRESQL”
@@ -2017,6 +2322,120 @@ module TencentCloud
2017
2322
  end
2018
2323
  end
2019
2324
 
2325
+ # DisassociateSecurityGroups请求参数结构体
2326
+ class DisassociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
2327
+ # @param InstanceIds: 实例组ID数组
2328
+ # @type InstanceIds: Array
2329
+ # @param SecurityGroupIds: 要修改的安全组ID列表,一个或者多个安全组Id组成的数组。
2330
+ # @type SecurityGroupIds: Array
2331
+ # @param Zone: 可用区
2332
+ # @type Zone: String
2333
+
2334
+ attr_accessor :InstanceIds, :SecurityGroupIds, :Zone
2335
+
2336
+ def initialize(instanceids=nil, securitygroupids=nil, zone=nil)
2337
+ @InstanceIds = instanceids
2338
+ @SecurityGroupIds = securitygroupids
2339
+ @Zone = zone
2340
+ end
2341
+
2342
+ def deserialize(params)
2343
+ @InstanceIds = params['InstanceIds']
2344
+ @SecurityGroupIds = params['SecurityGroupIds']
2345
+ @Zone = params['Zone']
2346
+ end
2347
+ end
2348
+
2349
+ # DisassociateSecurityGroups返回参数结构体
2350
+ class DisassociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel
2351
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2352
+ # @type RequestId: String
2353
+
2354
+ attr_accessor :RequestId
2355
+
2356
+ def initialize(requestid=nil)
2357
+ @RequestId = requestid
2358
+ end
2359
+
2360
+ def deserialize(params)
2361
+ @RequestId = params['RequestId']
2362
+ end
2363
+ end
2364
+
2365
+ # GrantAccountPrivileges请求参数结构体
2366
+ class GrantAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
2367
+ # @param ClusterId: 集群id
2368
+ # @type ClusterId: String
2369
+ # @param Account: 账号信息
2370
+ # @type Account: :class:`Tencentcloud::Cynosdb.v20190107.models.InputAccount`
2371
+ # @param DbTablePrivileges: 数据库表权限码数组
2372
+ # @type DbTablePrivileges: Array
2373
+ # @param DbTables: 数据库表信息
2374
+ # @type DbTables: Array
2375
+
2376
+ attr_accessor :ClusterId, :Account, :DbTablePrivileges, :DbTables
2377
+
2378
+ def initialize(clusterid=nil, account=nil, dbtableprivileges=nil, dbtables=nil)
2379
+ @ClusterId = clusterid
2380
+ @Account = account
2381
+ @DbTablePrivileges = dbtableprivileges
2382
+ @DbTables = dbtables
2383
+ end
2384
+
2385
+ def deserialize(params)
2386
+ @ClusterId = params['ClusterId']
2387
+ unless params['Account'].nil?
2388
+ @Account = InputAccount.new
2389
+ @Account.deserialize(params['Account'])
2390
+ end
2391
+ @DbTablePrivileges = params['DbTablePrivileges']
2392
+ unless params['DbTables'].nil?
2393
+ @DbTables = []
2394
+ params['DbTables'].each do |i|
2395
+ dbtable_tmp = DbTable.new
2396
+ dbtable_tmp.deserialize(i)
2397
+ @DbTables << dbtable_tmp
2398
+ end
2399
+ end
2400
+ end
2401
+ end
2402
+
2403
+ # GrantAccountPrivileges返回参数结构体
2404
+ class GrantAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
2405
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2406
+ # @type RequestId: String
2407
+
2408
+ attr_accessor :RequestId
2409
+
2410
+ def initialize(requestid=nil)
2411
+ @RequestId = requestid
2412
+ end
2413
+
2414
+ def deserialize(params)
2415
+ @RequestId = params['RequestId']
2416
+ end
2417
+ end
2418
+
2419
+ # 账号,包含accountName和host
2420
+ class InputAccount < TencentCloud::Common::AbstractModel
2421
+ # @param AccountName: 账号
2422
+ # @type AccountName: String
2423
+ # @param Host: 主机,默认‘%’
2424
+ # @type Host: String
2425
+
2426
+ attr_accessor :AccountName, :Host
2427
+
2428
+ def initialize(accountname=nil, host=nil)
2429
+ @AccountName = accountname
2430
+ @Host = host
2431
+ end
2432
+
2433
+ def deserialize(params)
2434
+ @AccountName = params['AccountName']
2435
+ @Host = params['Host']
2436
+ end
2437
+ end
2438
+
2020
2439
  # 实例可售卖规格详细信息,创建实例时Cpu/Memory确定实例规格,存储可选大小为[MinStorageSize,MaxStorageSize]
2021
2440
  class InstanceSpec < TencentCloud::Common::AbstractModel
2022
2441
  # @param Cpu: 实例CPU,单位:核
@@ -2142,6 +2561,56 @@ module TencentCloud
2142
2561
  end
2143
2562
  end
2144
2563
 
2564
+ # ModifyAccountParams请求参数结构体
2565
+ class ModifyAccountParamsRequest < TencentCloud::Common::AbstractModel
2566
+ # @param ClusterId: 集群id
2567
+ # @type ClusterId: String
2568
+ # @param Account: 账号信息
2569
+ # @type Account: :class:`Tencentcloud::Cynosdb.v20190107.models.InputAccount`
2570
+ # @param AccountParams: 数据库表权限数组,当前仅支持参数:max_user_connections
2571
+ # @type AccountParams: Array
2572
+
2573
+ attr_accessor :ClusterId, :Account, :AccountParams
2574
+
2575
+ def initialize(clusterid=nil, account=nil, accountparams=nil)
2576
+ @ClusterId = clusterid
2577
+ @Account = account
2578
+ @AccountParams = accountparams
2579
+ end
2580
+
2581
+ def deserialize(params)
2582
+ @ClusterId = params['ClusterId']
2583
+ unless params['Account'].nil?
2584
+ @Account = InputAccount.new
2585
+ @Account.deserialize(params['Account'])
2586
+ end
2587
+ unless params['AccountParams'].nil?
2588
+ @AccountParams = []
2589
+ params['AccountParams'].each do |i|
2590
+ accountparam_tmp = AccountParam.new
2591
+ accountparam_tmp.deserialize(i)
2592
+ @AccountParams << accountparam_tmp
2593
+ end
2594
+ end
2595
+ end
2596
+ end
2597
+
2598
+ # ModifyAccountParams返回参数结构体
2599
+ class ModifyAccountParamsResponse < TencentCloud::Common::AbstractModel
2600
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2601
+ # @type RequestId: String
2602
+
2603
+ attr_accessor :RequestId
2604
+
2605
+ def initialize(requestid=nil)
2606
+ @RequestId = requestid
2607
+ end
2608
+
2609
+ def deserialize(params)
2610
+ @RequestId = params['RequestId']
2611
+ end
2612
+ end
2613
+
2145
2614
  # ModifyBackupConfig请求参数结构体
2146
2615
  class ModifyBackupConfigRequest < TencentCloud::Common::AbstractModel
2147
2616
  # @param ClusterId: 集群ID
@@ -2200,12 +2669,15 @@ module TencentCloud
2200
2669
  # @type ClusterId: String
2201
2670
  # @param ParamList: 修改参数列表
2202
2671
  # @type ParamList: Array
2672
+ # @param IsInMaintainPeriod: 维护期间执行-yes,立即执行-no
2673
+ # @type IsInMaintainPeriod: String
2203
2674
 
2204
- attr_accessor :ClusterId, :ParamList
2675
+ attr_accessor :ClusterId, :ParamList, :IsInMaintainPeriod
2205
2676
 
2206
- def initialize(clusterid=nil, paramlist=nil)
2677
+ def initialize(clusterid=nil, paramlist=nil, isinmaintainperiod=nil)
2207
2678
  @ClusterId = clusterid
2208
2679
  @ParamList = paramlist
2680
+ @IsInMaintainPeriod = isinmaintainperiod
2209
2681
  end
2210
2682
 
2211
2683
  def deserialize(params)
@@ -2218,6 +2690,7 @@ module TencentCloud
2218
2690
  @ParamList << paramitem_tmp
2219
2691
  end
2220
2692
  end
2693
+ @IsInMaintainPeriod = params['IsInMaintainPeriod']
2221
2694
  end
2222
2695
  end
2223
2696
 
@@ -2499,6 +2972,46 @@ module TencentCloud
2499
2972
  end
2500
2973
  end
2501
2974
 
2975
+ # PauseServerless请求参数结构体
2976
+ class PauseServerlessRequest < TencentCloud::Common::AbstractModel
2977
+ # @param ClusterId: 集群id
2978
+ # @type ClusterId: String
2979
+ # @param ForcePause: 是否强制暂停,忽略当前的用户链接 0:不强制 1:强制, 默认为1
2980
+ # @type ForcePause: Integer
2981
+
2982
+ attr_accessor :ClusterId, :ForcePause
2983
+
2984
+ def initialize(clusterid=nil, forcepause=nil)
2985
+ @ClusterId = clusterid
2986
+ @ForcePause = forcepause
2987
+ end
2988
+
2989
+ def deserialize(params)
2990
+ @ClusterId = params['ClusterId']
2991
+ @ForcePause = params['ForcePause']
2992
+ end
2993
+ end
2994
+
2995
+ # PauseServerless返回参数结构体
2996
+ class PauseServerlessResponse < TencentCloud::Common::AbstractModel
2997
+ # @param FlowId: 异步流程Id
2998
+ # @type FlowId: Integer
2999
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3000
+ # @type RequestId: String
3001
+
3002
+ attr_accessor :FlowId, :RequestId
3003
+
3004
+ def initialize(flowid=nil, requestid=nil)
3005
+ @FlowId = flowid
3006
+ @RequestId = requestid
3007
+ end
3008
+
3009
+ def deserialize(params)
3010
+ @FlowId = params['FlowId']
3011
+ @RequestId = params['RequestId']
3012
+ end
3013
+ end
3014
+
2502
3015
  # 安全组规则
2503
3016
  class PolicyRule < TencentCloud::Common::AbstractModel
2504
3017
  # @param Action: 策略,ACCEPT或者DROP
@@ -2571,6 +3084,237 @@ module TencentCloud
2571
3084
  end
2572
3085
  end
2573
3086
 
3087
+ # ResumeServerless请求参数结构体
3088
+ class ResumeServerlessRequest < TencentCloud::Common::AbstractModel
3089
+ # @param ClusterId: 集群id
3090
+ # @type ClusterId: String
3091
+
3092
+ attr_accessor :ClusterId
3093
+
3094
+ def initialize(clusterid=nil)
3095
+ @ClusterId = clusterid
3096
+ end
3097
+
3098
+ def deserialize(params)
3099
+ @ClusterId = params['ClusterId']
3100
+ end
3101
+ end
3102
+
3103
+ # ResumeServerless返回参数结构体
3104
+ class ResumeServerlessResponse < TencentCloud::Common::AbstractModel
3105
+ # @param FlowId: 异步流程Id
3106
+ # @type FlowId: Integer
3107
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3108
+ # @type RequestId: String
3109
+
3110
+ attr_accessor :FlowId, :RequestId
3111
+
3112
+ def initialize(flowid=nil, requestid=nil)
3113
+ @FlowId = flowid
3114
+ @RequestId = requestid
3115
+ end
3116
+
3117
+ def deserialize(params)
3118
+ @FlowId = params['FlowId']
3119
+ @RequestId = params['RequestId']
3120
+ end
3121
+ end
3122
+
3123
+ # RevokeAccountPrivileges请求参数结构体
3124
+ class RevokeAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
3125
+ # @param ClusterId: 集群id
3126
+ # @type ClusterId: String
3127
+ # @param Account: 账号信息
3128
+ # @type Account: :class:`Tencentcloud::Cynosdb.v20190107.models.InputAccount`
3129
+ # @param DbTablePrivileges: 数据库表权限数组
3130
+ # @type DbTablePrivileges: Array
3131
+ # @param DbTables: 数据库表信息
3132
+ # @type DbTables: Array
3133
+
3134
+ attr_accessor :ClusterId, :Account, :DbTablePrivileges, :DbTables
3135
+
3136
+ def initialize(clusterid=nil, account=nil, dbtableprivileges=nil, dbtables=nil)
3137
+ @ClusterId = clusterid
3138
+ @Account = account
3139
+ @DbTablePrivileges = dbtableprivileges
3140
+ @DbTables = dbtables
3141
+ end
3142
+
3143
+ def deserialize(params)
3144
+ @ClusterId = params['ClusterId']
3145
+ unless params['Account'].nil?
3146
+ @Account = InputAccount.new
3147
+ @Account.deserialize(params['Account'])
3148
+ end
3149
+ @DbTablePrivileges = params['DbTablePrivileges']
3150
+ unless params['DbTables'].nil?
3151
+ @DbTables = []
3152
+ params['DbTables'].each do |i|
3153
+ dbtable_tmp = DbTable.new
3154
+ dbtable_tmp.deserialize(i)
3155
+ @DbTables << dbtable_tmp
3156
+ end
3157
+ end
3158
+ end
3159
+ end
3160
+
3161
+ # RevokeAccountPrivileges返回参数结构体
3162
+ class RevokeAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
3163
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3164
+ # @type RequestId: String
3165
+
3166
+ attr_accessor :RequestId
3167
+
3168
+ def initialize(requestid=nil)
3169
+ @RequestId = requestid
3170
+ end
3171
+
3172
+ def deserialize(params)
3173
+ @RequestId = params['RequestId']
3174
+ end
3175
+ end
3176
+
3177
+ # RollBackCluster请求参数结构体
3178
+ class RollBackClusterRequest < TencentCloud::Common::AbstractModel
3179
+ # @param ClusterId: 集群ID
3180
+ # @type ClusterId: String
3181
+ # @param RollbackStrategy: 回档策略 timeRollback-按时间点回档 snapRollback-按备份文件回档
3182
+ # @type RollbackStrategy: String
3183
+ # @param RollbackId: 回档ID
3184
+ # @type RollbackId: Integer
3185
+ # @param ExpectTime: 期望回档时间
3186
+ # @type ExpectTime: String
3187
+ # @param ExpectTimeThresh: 期望阈值
3188
+ # @type ExpectTimeThresh: Integer
3189
+ # @param RollbackDatabases: 回档数据库列表
3190
+ # @type RollbackDatabases: Array
3191
+ # @param RollbackTables: 回档数据库表
3192
+ # @type RollbackTables: Array
3193
+
3194
+ attr_accessor :ClusterId, :RollbackStrategy, :RollbackId, :ExpectTime, :ExpectTimeThresh, :RollbackDatabases, :RollbackTables
3195
+
3196
+ def initialize(clusterid=nil, rollbackstrategy=nil, rollbackid=nil, expecttime=nil, expecttimethresh=nil, rollbackdatabases=nil, rollbacktables=nil)
3197
+ @ClusterId = clusterid
3198
+ @RollbackStrategy = rollbackstrategy
3199
+ @RollbackId = rollbackid
3200
+ @ExpectTime = expecttime
3201
+ @ExpectTimeThresh = expecttimethresh
3202
+ @RollbackDatabases = rollbackdatabases
3203
+ @RollbackTables = rollbacktables
3204
+ end
3205
+
3206
+ def deserialize(params)
3207
+ @ClusterId = params['ClusterId']
3208
+ @RollbackStrategy = params['RollbackStrategy']
3209
+ @RollbackId = params['RollbackId']
3210
+ @ExpectTime = params['ExpectTime']
3211
+ @ExpectTimeThresh = params['ExpectTimeThresh']
3212
+ unless params['RollbackDatabases'].nil?
3213
+ @RollbackDatabases = []
3214
+ params['RollbackDatabases'].each do |i|
3215
+ rollbackdatabase_tmp = RollbackDatabase.new
3216
+ rollbackdatabase_tmp.deserialize(i)
3217
+ @RollbackDatabases << rollbackdatabase_tmp
3218
+ end
3219
+ end
3220
+ unless params['RollbackTables'].nil?
3221
+ @RollbackTables = []
3222
+ params['RollbackTables'].each do |i|
3223
+ rollbacktable_tmp = RollbackTable.new
3224
+ rollbacktable_tmp.deserialize(i)
3225
+ @RollbackTables << rollbacktable_tmp
3226
+ end
3227
+ end
3228
+ end
3229
+ end
3230
+
3231
+ # RollBackCluster返回参数结构体
3232
+ class RollBackClusterResponse < TencentCloud::Common::AbstractModel
3233
+ # @param FlowId: 任务流ID
3234
+ # @type FlowId: Integer
3235
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3236
+ # @type RequestId: String
3237
+
3238
+ attr_accessor :FlowId, :RequestId
3239
+
3240
+ def initialize(flowid=nil, requestid=nil)
3241
+ @FlowId = flowid
3242
+ @RequestId = requestid
3243
+ end
3244
+
3245
+ def deserialize(params)
3246
+ @FlowId = params['FlowId']
3247
+ @RequestId = params['RequestId']
3248
+ end
3249
+ end
3250
+
3251
+ # 回滚数据库信息
3252
+ class RollbackDatabase < TencentCloud::Common::AbstractModel
3253
+ # @param OldDatabase: 旧数据库
3254
+ # @type OldDatabase: String
3255
+ # @param NewDatabase: 新数据库
3256
+ # @type NewDatabase: String
3257
+
3258
+ attr_accessor :OldDatabase, :NewDatabase
3259
+
3260
+ def initialize(olddatabase=nil, newdatabase=nil)
3261
+ @OldDatabase = olddatabase
3262
+ @NewDatabase = newdatabase
3263
+ end
3264
+
3265
+ def deserialize(params)
3266
+ @OldDatabase = params['OldDatabase']
3267
+ @NewDatabase = params['NewDatabase']
3268
+ end
3269
+ end
3270
+
3271
+ # 回档数据库及表
3272
+ class RollbackTable < TencentCloud::Common::AbstractModel
3273
+ # @param Database: 数据库名称
3274
+ # @type Database: String
3275
+ # @param Tables: 数据库表
3276
+ # @type Tables: Array
3277
+
3278
+ attr_accessor :Database, :Tables
3279
+
3280
+ def initialize(database=nil, tables=nil)
3281
+ @Database = database
3282
+ @Tables = tables
3283
+ end
3284
+
3285
+ def deserialize(params)
3286
+ @Database = params['Database']
3287
+ unless params['Tables'].nil?
3288
+ @Tables = []
3289
+ params['Tables'].each do |i|
3290
+ rollbacktableinfo_tmp = RollbackTableInfo.new
3291
+ rollbacktableinfo_tmp.deserialize(i)
3292
+ @Tables << rollbacktableinfo_tmp
3293
+ end
3294
+ end
3295
+ end
3296
+ end
3297
+
3298
+ # 回档表信息
3299
+ class RollbackTableInfo < TencentCloud::Common::AbstractModel
3300
+ # @param OldTable: 旧表名称
3301
+ # @type OldTable: String
3302
+ # @param NewTable: 新表名称
3303
+ # @type NewTable: String
3304
+
3305
+ attr_accessor :OldTable, :NewTable
3306
+
3307
+ def initialize(oldtable=nil, newtable=nil)
3308
+ @OldTable = oldtable
3309
+ @NewTable = newtable
3310
+ end
3311
+
3312
+ def deserialize(params)
3313
+ @OldTable = params['OldTable']
3314
+ @NewTable = params['NewTable']
3315
+ end
3316
+ end
3317
+
2574
3318
  # 安全组详情
2575
3319
  class SecurityGroup < TencentCloud::Common::AbstractModel
2576
3320
  # @param ProjectId: 项目ID
@@ -2665,6 +3409,30 @@ module TencentCloud
2665
3409
  end
2666
3410
  end
2667
3411
 
3412
+ # mysql表权限
3413
+ class TablePrivileges < TencentCloud::Common::AbstractModel
3414
+ # @param Db: 数据库名
3415
+ # @type Db: String
3416
+ # @param TableName: 表名
3417
+ # @type TableName: String
3418
+ # @param Privileges: 权限列表
3419
+ # @type Privileges: Array
3420
+
3421
+ attr_accessor :Db, :TableName, :Privileges
3422
+
3423
+ def initialize(db=nil, tablename=nil, privileges=nil)
3424
+ @Db = db
3425
+ @TableName = tablename
3426
+ @Privileges = privileges
3427
+ end
3428
+
3429
+ def deserialize(params)
3430
+ @Db = params['Db']
3431
+ @TableName = params['TableName']
3432
+ @Privileges = params['Privileges']
3433
+ end
3434
+ end
3435
+
2668
3436
  # 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
2669
3437
  class Tag < TencentCloud::Common::AbstractModel
2670
3438
  # @param TagKey: 标签键
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: 1.0.258
4
+ version: 1.0.259
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-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common