tencentcloud-sdk-cynosdb 3.0.464 → 3.0.465

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: fbed8b42769d7998f268187bdb802e8855b05e26
4
- data.tar.gz: de0da632f6b5d0ae178bd23e220469073dd5e6d2
3
+ metadata.gz: a6943aa09f89288a37e1f82cd1ea0298f1664f6b
4
+ data.tar.gz: 744a62acf2fdd7f77c18edb6d6259140316ab34e
5
5
  SHA512:
6
- metadata.gz: 7b575dbf442630186fd846ee1a9d1285c9ede6ab5a63f80873f3c6851ed2f464a46561a3bbf20885834424bc1d6d39d381e22c7ed4b7a2911b57f87f3c3bc863
7
- data.tar.gz: ecd67f33a0e7a7eb74fd486217005fd1493df00c9fdf5023e3516b6977b98bfad0cf1bc968edcc703f90b950f3f69eee893e03b0eeca57d63704b09fef706227
6
+ metadata.gz: aa0b100c6c991d469c3bacf6e42d9808f22984ad9081f25c1263641a5a4052be0489b12d938a89ba195ff3f1abca6b415134237c897d1d4ca4cee67fbf6a0c2a
7
+ data.tar.gz: c2ccff4be9e84c71c2637ea75d44ef426be3acd9b7e7a8ef565ef2f45839c6c363786db0bc9c1a1b730a12bd6911ef16ff96622b7b81e4bb57a6e25c84a6ecb6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.464
1
+ 3.0.465
@@ -1397,6 +1397,30 @@ module TencentCloud
1397
1397
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1398
1398
  end
1399
1399
 
1400
+ # 本接口(ResetAccountPassword)用于重置实例的数据库账号密码。
1401
+
1402
+ # @param request: Request instance for ResetAccountPassword.
1403
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ResetAccountPasswordRequest`
1404
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ResetAccountPasswordResponse`
1405
+ def ResetAccountPassword(request)
1406
+ body = send_request('ResetAccountPassword', request.serialize)
1407
+ response = JSON.parse(body)
1408
+ if response['Response'].key?('Error') == false
1409
+ model = ResetAccountPasswordResponse.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
+
1400
1424
  # 恢复serverless集群
1401
1425
 
1402
1426
  # @param request: Request instance for ResumeServerless.
@@ -1469,6 +1493,54 @@ module TencentCloud
1469
1493
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
1494
  end
1471
1495
 
1496
+ # 本接口(SearchClusterDatabases)搜索集群database列表
1497
+
1498
+ # @param request: Request instance for SearchClusterDatabases.
1499
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::SearchClusterDatabasesRequest`
1500
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::SearchClusterDatabasesResponse`
1501
+ def SearchClusterDatabases(request)
1502
+ body = send_request('SearchClusterDatabases', request.serialize)
1503
+ response = JSON.parse(body)
1504
+ if response['Response'].key?('Error') == false
1505
+ model = SearchClusterDatabasesResponse.new
1506
+ model.deserialize(response['Response'])
1507
+ model
1508
+ else
1509
+ code = response['Response']['Error']['Code']
1510
+ message = response['Response']['Error']['Message']
1511
+ reqid = response['Response']['RequestId']
1512
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1513
+ end
1514
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1515
+ raise e
1516
+ rescue StandardError => e
1517
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
+ end
1519
+
1520
+ # 本接口(SearchClusterTables)搜索集群数据表列表
1521
+
1522
+ # @param request: Request instance for SearchClusterTables.
1523
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::SearchClusterTablesRequest`
1524
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::SearchClusterTablesResponse`
1525
+ def SearchClusterTables(request)
1526
+ body = send_request('SearchClusterTables', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = SearchClusterTablesResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1472
1544
  # SetRenewFlag设置实例的自动续费功能
1473
1545
 
1474
1546
  # @param request: Request instance for SetRenewFlag.
@@ -1517,6 +1589,30 @@ module TencentCloud
1517
1589
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
1590
  end
1519
1591
 
1592
+ # 本接口(SwitchProxyVpc)更换数据库代理vpc
1593
+
1594
+ # @param request: Request instance for SwitchProxyVpc.
1595
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::SwitchProxyVpcRequest`
1596
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::SwitchProxyVpcResponse`
1597
+ def SwitchProxyVpc(request)
1598
+ body = send_request('SwitchProxyVpc', request.serialize)
1599
+ response = JSON.parse(body)
1600
+ if response['Response'].key?('Error') == false
1601
+ model = SwitchProxyVpcResponse.new
1602
+ model.deserialize(response['Response'])
1603
+ model
1604
+ else
1605
+ code = response['Response']['Error']['Code']
1606
+ message = response['Response']['Error']['Message']
1607
+ reqid = response['Response']['RequestId']
1608
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1609
+ end
1610
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1611
+ raise e
1612
+ rescue StandardError => e
1613
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1614
+ end
1615
+
1520
1616
  # 升级实例
1521
1617
 
1522
1618
  # @param request: Request instance for UpgradeInstance.
@@ -4847,6 +4847,50 @@ module TencentCloud
4847
4847
  end
4848
4848
  end
4849
4849
 
4850
+ # ResetAccountPassword请求参数结构体
4851
+ class ResetAccountPasswordRequest < TencentCloud::Common::AbstractModel
4852
+ # @param AccountName: 数据库账号名
4853
+ # @type AccountName: String
4854
+ # @param AccountPassword: 数据库账号新密码
4855
+ # @type AccountPassword: String
4856
+ # @param ClusterId: 集群ID
4857
+ # @type ClusterId: String
4858
+ # @param Host: 主机,不填默认为"%"
4859
+ # @type Host: String
4860
+
4861
+ attr_accessor :AccountName, :AccountPassword, :ClusterId, :Host
4862
+
4863
+ def initialize(accountname=nil, accountpassword=nil, clusterid=nil, host=nil)
4864
+ @AccountName = accountname
4865
+ @AccountPassword = accountpassword
4866
+ @ClusterId = clusterid
4867
+ @Host = host
4868
+ end
4869
+
4870
+ def deserialize(params)
4871
+ @AccountName = params['AccountName']
4872
+ @AccountPassword = params['AccountPassword']
4873
+ @ClusterId = params['ClusterId']
4874
+ @Host = params['Host']
4875
+ end
4876
+ end
4877
+
4878
+ # ResetAccountPassword返回参数结构体
4879
+ class ResetAccountPasswordResponse < TencentCloud::Common::AbstractModel
4880
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4881
+ # @type RequestId: String
4882
+
4883
+ attr_accessor :RequestId
4884
+
4885
+ def initialize(requestid=nil)
4886
+ @RequestId = requestid
4887
+ end
4888
+
4889
+ def deserialize(params)
4890
+ @RequestId = params['RequestId']
4891
+ end
4892
+ end
4893
+
4850
4894
  # ResumeServerless请求参数结构体
4851
4895
  class ResumeServerlessRequest < TencentCloud::Common::AbstractModel
4852
4896
  # @param ClusterId: 集群ID
@@ -5098,6 +5142,112 @@ module TencentCloud
5098
5142
  end
5099
5143
  end
5100
5144
 
5145
+ # SearchClusterDatabases请求参数结构体
5146
+ class SearchClusterDatabasesRequest < TencentCloud::Common::AbstractModel
5147
+ # @param ClusterId: 集群id
5148
+ # @type ClusterId: String
5149
+ # @param Database: 数据库名
5150
+ # @type Database: String
5151
+ # @param MatchType: 是否精确搜索。
5152
+ # 0: 模糊搜索 1:精确搜索
5153
+ # 默认为0
5154
+ # @type MatchType: Integer
5155
+
5156
+ attr_accessor :ClusterId, :Database, :MatchType
5157
+
5158
+ def initialize(clusterid=nil, database=nil, matchtype=nil)
5159
+ @ClusterId = clusterid
5160
+ @Database = database
5161
+ @MatchType = matchtype
5162
+ end
5163
+
5164
+ def deserialize(params)
5165
+ @ClusterId = params['ClusterId']
5166
+ @Database = params['Database']
5167
+ @MatchType = params['MatchType']
5168
+ end
5169
+ end
5170
+
5171
+ # SearchClusterDatabases返回参数结构体
5172
+ class SearchClusterDatabasesResponse < TencentCloud::Common::AbstractModel
5173
+ # @param Databases: 数据库列表
5174
+ # 注意:此字段可能返回 null,表示取不到有效值。
5175
+ # @type Databases: Array
5176
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5177
+ # @type RequestId: String
5178
+
5179
+ attr_accessor :Databases, :RequestId
5180
+
5181
+ def initialize(databases=nil, requestid=nil)
5182
+ @Databases = databases
5183
+ @RequestId = requestid
5184
+ end
5185
+
5186
+ def deserialize(params)
5187
+ @Databases = params['Databases']
5188
+ @RequestId = params['RequestId']
5189
+ end
5190
+ end
5191
+
5192
+ # SearchClusterTables请求参数结构体
5193
+ class SearchClusterTablesRequest < TencentCloud::Common::AbstractModel
5194
+ # @param ClusterId: 集群id
5195
+ # @type ClusterId: String
5196
+ # @param Database: 数据库名
5197
+ # @type Database: String
5198
+ # @param Table: 数据表名
5199
+ # @type Table: String
5200
+ # @param TableType: 数据表类型:
5201
+ # view:只返回 view,
5202
+ # base_table: 只返回基本表,
5203
+ # all:返回 view 和表
5204
+ # @type TableType: String
5205
+
5206
+ attr_accessor :ClusterId, :Database, :Table, :TableType
5207
+
5208
+ def initialize(clusterid=nil, database=nil, table=nil, tabletype=nil)
5209
+ @ClusterId = clusterid
5210
+ @Database = database
5211
+ @Table = table
5212
+ @TableType = tabletype
5213
+ end
5214
+
5215
+ def deserialize(params)
5216
+ @ClusterId = params['ClusterId']
5217
+ @Database = params['Database']
5218
+ @Table = params['Table']
5219
+ @TableType = params['TableType']
5220
+ end
5221
+ end
5222
+
5223
+ # SearchClusterTables返回参数结构体
5224
+ class SearchClusterTablesResponse < TencentCloud::Common::AbstractModel
5225
+ # @param Tables: 数据表列表
5226
+ # 注意:此字段可能返回 null,表示取不到有效值。
5227
+ # @type Tables: Array
5228
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5229
+ # @type RequestId: String
5230
+
5231
+ attr_accessor :Tables, :RequestId
5232
+
5233
+ def initialize(tables=nil, requestid=nil)
5234
+ @Tables = tables
5235
+ @RequestId = requestid
5236
+ end
5237
+
5238
+ def deserialize(params)
5239
+ unless params['Tables'].nil?
5240
+ @Tables = []
5241
+ params['Tables'].each do |i|
5242
+ databasetables_tmp = DatabaseTables.new
5243
+ databasetables_tmp.deserialize(i)
5244
+ @Tables << databasetables_tmp
5245
+ end
5246
+ end
5247
+ @RequestId = params['RequestId']
5248
+ end
5249
+ end
5250
+
5101
5251
  # 安全组详情
5102
5252
  class SecurityGroup < TencentCloud::Common::AbstractModel
5103
5253
  # @param ProjectId: 项目ID
@@ -5296,6 +5446,58 @@ module TencentCloud
5296
5446
  end
5297
5447
  end
5298
5448
 
5449
+ # SwitchProxyVpc请求参数结构体
5450
+ class SwitchProxyVpcRequest < TencentCloud::Common::AbstractModel
5451
+ # @param ClusterId: 集群ID
5452
+ # @type ClusterId: String
5453
+ # @param UniqVpcId: 字符串vpc id
5454
+ # @type UniqVpcId: String
5455
+ # @param UniqSubnetId: 字符串子网id
5456
+ # @type UniqSubnetId: String
5457
+ # @param OldIpReserveHours: 旧地址回收时间
5458
+ # @type OldIpReserveHours: Integer
5459
+ # @param ProxyGroupId: 数据库代理组Id
5460
+ # @type ProxyGroupId: String
5461
+
5462
+ attr_accessor :ClusterId, :UniqVpcId, :UniqSubnetId, :OldIpReserveHours, :ProxyGroupId
5463
+
5464
+ def initialize(clusterid=nil, uniqvpcid=nil, uniqsubnetid=nil, oldipreservehours=nil, proxygroupid=nil)
5465
+ @ClusterId = clusterid
5466
+ @UniqVpcId = uniqvpcid
5467
+ @UniqSubnetId = uniqsubnetid
5468
+ @OldIpReserveHours = oldipreservehours
5469
+ @ProxyGroupId = proxygroupid
5470
+ end
5471
+
5472
+ def deserialize(params)
5473
+ @ClusterId = params['ClusterId']
5474
+ @UniqVpcId = params['UniqVpcId']
5475
+ @UniqSubnetId = params['UniqSubnetId']
5476
+ @OldIpReserveHours = params['OldIpReserveHours']
5477
+ @ProxyGroupId = params['ProxyGroupId']
5478
+ end
5479
+ end
5480
+
5481
+ # SwitchProxyVpc返回参数结构体
5482
+ class SwitchProxyVpcResponse < TencentCloud::Common::AbstractModel
5483
+ # @param FlowId: 异步任务id。
5484
+ # @type FlowId: Integer
5485
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5486
+ # @type RequestId: String
5487
+
5488
+ attr_accessor :FlowId, :RequestId
5489
+
5490
+ def initialize(flowid=nil, requestid=nil)
5491
+ @FlowId = flowid
5492
+ @RequestId = requestid
5493
+ end
5494
+
5495
+ def deserialize(params)
5496
+ @FlowId = params['FlowId']
5497
+ @RequestId = params['RequestId']
5498
+ end
5499
+ end
5500
+
5299
5501
  # mysql表权限
5300
5502
  class TablePrivileges < TencentCloud::Common::AbstractModel
5301
5503
  # @param Db: 数据库名
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.464
4
+ version: 3.0.465
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-12-02 00:00:00.000000000 Z
11
+ date: 2022-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common