tencentcloud-sdk-cynosdb 1.0.346 → 1.0.347

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: 48341956991204ec9b1d32d14e34a29eb8cf917a
4
- data.tar.gz: f198980b33eff33ea964153ca7dd2a5da4a28503
3
+ metadata.gz: 281307192289f2c0891878413d8174ee7cfaf722
4
+ data.tar.gz: 190cc5345b686c023b4c00b709108f2624b71333
5
5
  SHA512:
6
- metadata.gz: 91ee99d4a7b205b7755cb7d365451e18fed5dd1830d5ec68ccca84fdcc572022e43578d7d34efb2fb811174f42a0fa65992b575f428e28576bc0828cfe73444e
7
- data.tar.gz: 1b97462f0e5f7d096661a11f346004525d3e3132b27d33486d7efde86313981072b8d0d5e89614d2fcb30064090b13bbb4204f6c3b5ee2ead6645603f8763e6a
6
+ metadata.gz: 7f06323c02cac4afd5181bec24c987a67d619a74cca276bc721fa3d357827217a9752d13e065972d53675b7f8f849147cddcf7f38eddeb8db9b003b89160df8e
7
+ data.tar.gz: 8a0b53885f76dcb33842ba34c83454e53794e136678bec288b9bbe2ce9386c42f70abde2c54e649e146dd5412b8a8510d3b4f667ebec3f46871b6510106fc256
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.346
1
+ 1.0.347
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 此接口(DescribeBackupDownloadUrl)用于查询集群备份文件下载地址。
225
+
226
+ # @param request: Request instance for DescribeBackupDownloadUrl.
227
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeBackupDownloadUrlRequest`
228
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeBackupDownloadUrlResponse`
229
+ def DescribeBackupDownloadUrl(request)
230
+ body = send_request('DescribeBackupDownloadUrl', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DescribeBackupDownloadUrlResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
224
248
  # 查询备份文件列表
225
249
 
226
250
  # @param request: Request instance for DescribeBackupList.
@@ -245,6 +269,78 @@ module TencentCloud
245
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
270
  end
247
271
 
272
+ # 此接口(DescribeBinlogDownloadUrl)用于查询Binlog的下载地址。
273
+
274
+ # @param request: Request instance for DescribeBinlogDownloadUrl.
275
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeBinlogDownloadUrlRequest`
276
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeBinlogDownloadUrlResponse`
277
+ def DescribeBinlogDownloadUrl(request)
278
+ body = send_request('DescribeBinlogDownloadUrl', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeBinlogDownloadUrlResponse.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
+
296
+ # 此接口(DescribeBinlogSaveDays)用于查询集群的Binlog保留天数。
297
+
298
+ # @param request: Request instance for DescribeBinlogSaveDays.
299
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeBinlogSaveDaysRequest`
300
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeBinlogSaveDaysResponse`
301
+ def DescribeBinlogSaveDays(request)
302
+ body = send_request('DescribeBinlogSaveDays', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DescribeBinlogSaveDaysResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 此接口(DescribeBinlogs)用来查询集群Binlog日志列表。
321
+
322
+ # @param request: Request instance for DescribeBinlogs.
323
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeBinlogsRequest`
324
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeBinlogsResponse`
325
+ def DescribeBinlogs(request)
326
+ body = send_request('DescribeBinlogs', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeBinlogsResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
248
344
  # 显示集群详情
249
345
 
250
346
  # @param request: Request instance for DescribeClusterDetail.
@@ -389,6 +485,30 @@ module TencentCloud
389
485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
486
  end
391
487
 
488
+ # 此接口(DescribeInstanceSlowQueries)用于查询实例慢查询日志。
489
+
490
+ # @param request: Request instance for DescribeInstanceSlowQueries.
491
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstanceSlowQueriesRequest`
492
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstanceSlowQueriesResponse`
493
+ def DescribeInstanceSlowQueries(request)
494
+ body = send_request('DescribeInstanceSlowQueries', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DescribeInstanceSlowQueriesResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
392
512
  # 本接口(DescribeInstanceSpecs)用于查询实例规格
393
513
 
394
514
  # @param request: Request instance for DescribeInstanceSpecs.
@@ -581,6 +701,30 @@ module TencentCloud
581
701
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
702
  end
583
703
 
704
+ # 此接口(ExportInstanceSlowQueries)用于导出实例慢日志。
705
+
706
+ # @param request: Request instance for ExportInstanceSlowQueries.
707
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ExportInstanceSlowQueriesRequest`
708
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ExportInstanceSlowQueriesResponse`
709
+ def ExportInstanceSlowQueries(request)
710
+ body = send_request('ExportInstanceSlowQueries', request.serialize)
711
+ response = JSON.parse(body)
712
+ if response['Response'].key?('Error') == false
713
+ model = ExportInstanceSlowQueriesResponse.new
714
+ model.deserialize(response['Response'])
715
+ model
716
+ else
717
+ code = response['Response']['Error']['Code']
718
+ message = response['Response']['Error']['Message']
719
+ reqid = response['Response']['RequestId']
720
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
721
+ end
722
+ rescue TencentCloud::Common::TencentCloudSDKException => e
723
+ raise e
724
+ rescue StandardError => e
725
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
+ end
727
+
584
728
  # 批量授权账号权限
585
729
 
586
730
  # @param request: Request instance for GrantAccountPrivileges.
@@ -701,6 +845,30 @@ module TencentCloud
701
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
846
  end
703
847
 
848
+ # 此接口(ModifyBackupName)用于修改备份文件备注名。
849
+
850
+ # @param request: Request instance for ModifyBackupName.
851
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyBackupNameRequest`
852
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyBackupNameResponse`
853
+ def ModifyBackupName(request)
854
+ body = send_request('ModifyBackupName', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = ModifyBackupNameResponse.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
+
704
872
  # 修改集群名称
705
873
 
706
874
  # @param request: Request instance for ModifyClusterName.
@@ -117,17 +117,17 @@ module TencentCloud
117
117
  # @type Cpu: Integer
118
118
  # @param Memory: 内存,单位为GB
119
119
  # @type Memory: Integer
120
- # @param ReadOnlyCount: 新增只读实例数,取值范围为(0,16]
120
+ # @param ReadOnlyCount: 新增只读实例数,取值范围为[0,4]
121
121
  # @type ReadOnlyCount: Integer
122
- # @param InstanceGrpId: 实例组ID,在已有RO组中新增实例时使用,不传则新增RO
122
+ # @param InstanceGrpId: 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
123
123
  # @type InstanceGrpId: String
124
- # @param VpcId: 所属VPC网络ID
124
+ # @param VpcId: 所属VPC网络ID,该参数已废弃
125
125
  # @type VpcId: String
126
- # @param SubnetId: 所属子网ID,如果设置了VpcId,则SubnetId必填
126
+ # @param SubnetId: 所属子网ID,如果设置了VpcId,则SubnetId必填。该参数已废弃。
127
127
  # @type SubnetId: String
128
128
  # @param Port: 新增RO组时使用的Port,取值范围为[0,65535)
129
129
  # @type Port: Integer
130
- # @param InstanceName: 实例名称,字符串长度范围为[0,64)
130
+ # @param InstanceName: 实例名称,字符串长度范围为[0,64),取值范围为大小写字母,0-9数字,'_','-','.'
131
131
  # @type InstanceName: String
132
132
  # @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
133
133
  # @type AutoVoucher: Integer
@@ -338,6 +338,38 @@ module TencentCloud
338
338
  end
339
339
  end
340
340
 
341
+ # Binlog描述
342
+ class BinlogItem < TencentCloud::Common::AbstractModel
343
+ # @param FileName: Binlog文件名称
344
+ # @type FileName: String
345
+ # @param FileSize: 文件大小,单位:字节
346
+ # @type FileSize: Integer
347
+ # @param StartTime: 事务最早时间
348
+ # @type StartTime: String
349
+ # @param FinishTime: 事务最晚时间
350
+ # @type FinishTime: String
351
+ # @param BinlogId: Binlog文件ID
352
+ # @type BinlogId: Integer
353
+
354
+ attr_accessor :FileName, :FileSize, :StartTime, :FinishTime, :BinlogId
355
+
356
+ def initialize(filename=nil, filesize=nil, starttime=nil, finishtime=nil, binlogid=nil)
357
+ @FileName = filename
358
+ @FileSize = filesize
359
+ @StartTime = starttime
360
+ @FinishTime = finishtime
361
+ @BinlogId = binlogid
362
+ end
363
+
364
+ def deserialize(params)
365
+ @FileName = params['FileName']
366
+ @FileSize = params['FileSize']
367
+ @StartTime = params['StartTime']
368
+ @FinishTime = params['FinishTime']
369
+ @BinlogId = params['BinlogId']
370
+ end
371
+ end
372
+
341
373
  # 集群实例信息
342
374
  class ClusterInstanceDetail < TencentCloud::Common::AbstractModel
343
375
  # @param InstanceId: 实例ID
@@ -1649,6 +1681,46 @@ module TencentCloud
1649
1681
  end
1650
1682
  end
1651
1683
 
1684
+ # DescribeBackupDownloadUrl请求参数结构体
1685
+ class DescribeBackupDownloadUrlRequest < TencentCloud::Common::AbstractModel
1686
+ # @param ClusterId: 集群ID
1687
+ # @type ClusterId: String
1688
+ # @param BackupId: 备份ID
1689
+ # @type BackupId: Integer
1690
+
1691
+ attr_accessor :ClusterId, :BackupId
1692
+
1693
+ def initialize(clusterid=nil, backupid=nil)
1694
+ @ClusterId = clusterid
1695
+ @BackupId = backupid
1696
+ end
1697
+
1698
+ def deserialize(params)
1699
+ @ClusterId = params['ClusterId']
1700
+ @BackupId = params['BackupId']
1701
+ end
1702
+ end
1703
+
1704
+ # DescribeBackupDownloadUrl返回参数结构体
1705
+ class DescribeBackupDownloadUrlResponse < TencentCloud::Common::AbstractModel
1706
+ # @param DownloadUrl: 备份下载地址
1707
+ # @type DownloadUrl: String
1708
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1709
+ # @type RequestId: String
1710
+
1711
+ attr_accessor :DownloadUrl, :RequestId
1712
+
1713
+ def initialize(downloadurl=nil, requestid=nil)
1714
+ @DownloadUrl = downloadurl
1715
+ @RequestId = requestid
1716
+ end
1717
+
1718
+ def deserialize(params)
1719
+ @DownloadUrl = params['DownloadUrl']
1720
+ @RequestId = params['RequestId']
1721
+ end
1722
+ end
1723
+
1652
1724
  # DescribeBackupList请求参数结构体
1653
1725
  class DescribeBackupListRequest < TencentCloud::Common::AbstractModel
1654
1726
  # @param ClusterId: 集群ID
@@ -1709,6 +1781,146 @@ module TencentCloud
1709
1781
  end
1710
1782
  end
1711
1783
 
1784
+ # DescribeBinlogDownloadUrl请求参数结构体
1785
+ class DescribeBinlogDownloadUrlRequest < TencentCloud::Common::AbstractModel
1786
+ # @param ClusterId: 集群ID
1787
+ # @type ClusterId: String
1788
+ # @param BinlogId: Binlog文件ID
1789
+ # @type BinlogId: Integer
1790
+
1791
+ attr_accessor :ClusterId, :BinlogId
1792
+
1793
+ def initialize(clusterid=nil, binlogid=nil)
1794
+ @ClusterId = clusterid
1795
+ @BinlogId = binlogid
1796
+ end
1797
+
1798
+ def deserialize(params)
1799
+ @ClusterId = params['ClusterId']
1800
+ @BinlogId = params['BinlogId']
1801
+ end
1802
+ end
1803
+
1804
+ # DescribeBinlogDownloadUrl返回参数结构体
1805
+ class DescribeBinlogDownloadUrlResponse < TencentCloud::Common::AbstractModel
1806
+ # @param DownloadUrl: 下载地址
1807
+ # @type DownloadUrl: String
1808
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1809
+ # @type RequestId: String
1810
+
1811
+ attr_accessor :DownloadUrl, :RequestId
1812
+
1813
+ def initialize(downloadurl=nil, requestid=nil)
1814
+ @DownloadUrl = downloadurl
1815
+ @RequestId = requestid
1816
+ end
1817
+
1818
+ def deserialize(params)
1819
+ @DownloadUrl = params['DownloadUrl']
1820
+ @RequestId = params['RequestId']
1821
+ end
1822
+ end
1823
+
1824
+ # DescribeBinlogSaveDays请求参数结构体
1825
+ class DescribeBinlogSaveDaysRequest < TencentCloud::Common::AbstractModel
1826
+ # @param ClusterId: 集群ID
1827
+ # @type ClusterId: String
1828
+
1829
+ attr_accessor :ClusterId
1830
+
1831
+ def initialize(clusterid=nil)
1832
+ @ClusterId = clusterid
1833
+ end
1834
+
1835
+ def deserialize(params)
1836
+ @ClusterId = params['ClusterId']
1837
+ end
1838
+ end
1839
+
1840
+ # DescribeBinlogSaveDays返回参数结构体
1841
+ class DescribeBinlogSaveDaysResponse < TencentCloud::Common::AbstractModel
1842
+ # @param BinlogSaveDays: Binlog保留天数
1843
+ # @type BinlogSaveDays: Integer
1844
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1845
+ # @type RequestId: String
1846
+
1847
+ attr_accessor :BinlogSaveDays, :RequestId
1848
+
1849
+ def initialize(binlogsavedays=nil, requestid=nil)
1850
+ @BinlogSaveDays = binlogsavedays
1851
+ @RequestId = requestid
1852
+ end
1853
+
1854
+ def deserialize(params)
1855
+ @BinlogSaveDays = params['BinlogSaveDays']
1856
+ @RequestId = params['RequestId']
1857
+ end
1858
+ end
1859
+
1860
+ # DescribeBinlogs请求参数结构体
1861
+ class DescribeBinlogsRequest < TencentCloud::Common::AbstractModel
1862
+ # @param ClusterId: 集群ID
1863
+ # @type ClusterId: String
1864
+ # @param StartTime: 开始时间
1865
+ # @type StartTime: String
1866
+ # @param EndTime: 结束时间
1867
+ # @type EndTime: String
1868
+ # @param Offset: 偏移量
1869
+ # @type Offset: Integer
1870
+ # @param Limit: 限制条数
1871
+ # @type Limit: Integer
1872
+
1873
+ attr_accessor :ClusterId, :StartTime, :EndTime, :Offset, :Limit
1874
+
1875
+ def initialize(clusterid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
1876
+ @ClusterId = clusterid
1877
+ @StartTime = starttime
1878
+ @EndTime = endtime
1879
+ @Offset = offset
1880
+ @Limit = limit
1881
+ end
1882
+
1883
+ def deserialize(params)
1884
+ @ClusterId = params['ClusterId']
1885
+ @StartTime = params['StartTime']
1886
+ @EndTime = params['EndTime']
1887
+ @Offset = params['Offset']
1888
+ @Limit = params['Limit']
1889
+ end
1890
+ end
1891
+
1892
+ # DescribeBinlogs返回参数结构体
1893
+ class DescribeBinlogsResponse < TencentCloud::Common::AbstractModel
1894
+ # @param TotalCount: 记录总条数
1895
+ # @type TotalCount: Integer
1896
+ # @param Binlogs: Binlog列表
1897
+ # 注意:此字段可能返回 null,表示取不到有效值。
1898
+ # @type Binlogs: Array
1899
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1900
+ # @type RequestId: String
1901
+
1902
+ attr_accessor :TotalCount, :Binlogs, :RequestId
1903
+
1904
+ def initialize(totalcount=nil, binlogs=nil, requestid=nil)
1905
+ @TotalCount = totalcount
1906
+ @Binlogs = binlogs
1907
+ @RequestId = requestid
1908
+ end
1909
+
1910
+ def deserialize(params)
1911
+ @TotalCount = params['TotalCount']
1912
+ unless params['Binlogs'].nil?
1913
+ @Binlogs = []
1914
+ params['Binlogs'].each do |i|
1915
+ binlogitem_tmp = BinlogItem.new
1916
+ binlogitem_tmp.deserialize(i)
1917
+ @Binlogs << binlogitem_tmp
1918
+ end
1919
+ end
1920
+ @RequestId = params['RequestId']
1921
+ end
1922
+ end
1923
+
1712
1924
  # DescribeClusterDetail请求参数结构体
1713
1925
  class DescribeClusterDetailRequest < TencentCloud::Common::AbstractModel
1714
1926
  # @param ClusterId: 集群Id
@@ -2011,6 +2223,89 @@ module TencentCloud
2011
2223
  end
2012
2224
  end
2013
2225
 
2226
+ # DescribeInstanceSlowQueries请求参数结构体
2227
+ class DescribeInstanceSlowQueriesRequest < TencentCloud::Common::AbstractModel
2228
+ # @param InstanceId: 实例ID
2229
+ # @type InstanceId: String
2230
+ # @param StartTime: 事务开始最早时间
2231
+ # @type StartTime: String
2232
+ # @param EndTime: 事务开始最晚时间
2233
+ # @type EndTime: String
2234
+ # @param Limit: 限制条数
2235
+ # @type Limit: Integer
2236
+ # @param Offset: 偏移量
2237
+ # @type Offset: Integer
2238
+ # @param Username: 用户名
2239
+ # @type Username: String
2240
+ # @param Host: 客户端host
2241
+ # @type Host: String
2242
+ # @param Database: 数据库名
2243
+ # @type Database: String
2244
+ # @param OrderBy: 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
2245
+ # @type OrderBy: String
2246
+ # @param OrderByType: 排序类型,可选值:asc,desc
2247
+ # @type OrderByType: String
2248
+
2249
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Limit, :Offset, :Username, :Host, :Database, :OrderBy, :OrderByType
2250
+
2251
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, username=nil, host=nil, database=nil, orderby=nil, orderbytype=nil)
2252
+ @InstanceId = instanceid
2253
+ @StartTime = starttime
2254
+ @EndTime = endtime
2255
+ @Limit = limit
2256
+ @Offset = offset
2257
+ @Username = username
2258
+ @Host = host
2259
+ @Database = database
2260
+ @OrderBy = orderby
2261
+ @OrderByType = orderbytype
2262
+ end
2263
+
2264
+ def deserialize(params)
2265
+ @InstanceId = params['InstanceId']
2266
+ @StartTime = params['StartTime']
2267
+ @EndTime = params['EndTime']
2268
+ @Limit = params['Limit']
2269
+ @Offset = params['Offset']
2270
+ @Username = params['Username']
2271
+ @Host = params['Host']
2272
+ @Database = params['Database']
2273
+ @OrderBy = params['OrderBy']
2274
+ @OrderByType = params['OrderByType']
2275
+ end
2276
+ end
2277
+
2278
+ # DescribeInstanceSlowQueries返回参数结构体
2279
+ class DescribeInstanceSlowQueriesResponse < TencentCloud::Common::AbstractModel
2280
+ # @param TotalCount: 总条数
2281
+ # @type TotalCount: Integer
2282
+ # @param SlowQueries: 慢查询记录
2283
+ # @type SlowQueries: Array
2284
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2285
+ # @type RequestId: String
2286
+
2287
+ attr_accessor :TotalCount, :SlowQueries, :RequestId
2288
+
2289
+ def initialize(totalcount=nil, slowqueries=nil, requestid=nil)
2290
+ @TotalCount = totalcount
2291
+ @SlowQueries = slowqueries
2292
+ @RequestId = requestid
2293
+ end
2294
+
2295
+ def deserialize(params)
2296
+ @TotalCount = params['TotalCount']
2297
+ unless params['SlowQueries'].nil?
2298
+ @SlowQueries = []
2299
+ params['SlowQueries'].each do |i|
2300
+ slowqueriesitem_tmp = SlowQueriesItem.new
2301
+ slowqueriesitem_tmp.deserialize(i)
2302
+ @SlowQueries << slowqueriesitem_tmp
2303
+ end
2304
+ end
2305
+ @RequestId = params['RequestId']
2306
+ end
2307
+ end
2308
+
2014
2309
  # DescribeInstanceSpecs请求参数结构体
2015
2310
  class DescribeInstanceSpecsRequest < TencentCloud::Common::AbstractModel
2016
2311
  # @param DbType: 数据库类型,取值范围:
@@ -2414,6 +2709,74 @@ module TencentCloud
2414
2709
  end
2415
2710
  end
2416
2711
 
2712
+ # ExportInstanceSlowQueries请求参数结构体
2713
+ class ExportInstanceSlowQueriesRequest < TencentCloud::Common::AbstractModel
2714
+ # @param InstanceId: 实例ID
2715
+ # @type InstanceId: String
2716
+ # @param StartTime: 事务开始最早时间
2717
+ # @type StartTime: String
2718
+ # @param EndTime: 事务开始最晚时间
2719
+ # @type EndTime: String
2720
+ # @param Limit: 限制条数
2721
+ # @type Limit: Integer
2722
+ # @param Offset: 偏移量
2723
+ # @type Offset: Integer
2724
+ # @param Username: 用户名
2725
+ # @type Username: String
2726
+ # @param Host: 客户端host
2727
+ # @type Host: String
2728
+ # @param Database: 数据库名
2729
+ # @type Database: String
2730
+ # @param FileType: 文件类型,可选值:csv, original
2731
+ # @type FileType: String
2732
+
2733
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Limit, :Offset, :Username, :Host, :Database, :FileType
2734
+
2735
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, username=nil, host=nil, database=nil, filetype=nil)
2736
+ @InstanceId = instanceid
2737
+ @StartTime = starttime
2738
+ @EndTime = endtime
2739
+ @Limit = limit
2740
+ @Offset = offset
2741
+ @Username = username
2742
+ @Host = host
2743
+ @Database = database
2744
+ @FileType = filetype
2745
+ end
2746
+
2747
+ def deserialize(params)
2748
+ @InstanceId = params['InstanceId']
2749
+ @StartTime = params['StartTime']
2750
+ @EndTime = params['EndTime']
2751
+ @Limit = params['Limit']
2752
+ @Offset = params['Offset']
2753
+ @Username = params['Username']
2754
+ @Host = params['Host']
2755
+ @Database = params['Database']
2756
+ @FileType = params['FileType']
2757
+ end
2758
+ end
2759
+
2760
+ # ExportInstanceSlowQueries返回参数结构体
2761
+ class ExportInstanceSlowQueriesResponse < TencentCloud::Common::AbstractModel
2762
+ # @param FileContent: 慢查询导出内容
2763
+ # @type FileContent: String
2764
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2765
+ # @type RequestId: String
2766
+
2767
+ attr_accessor :FileContent, :RequestId
2768
+
2769
+ def initialize(filecontent=nil, requestid=nil)
2770
+ @FileContent = filecontent
2771
+ @RequestId = requestid
2772
+ end
2773
+
2774
+ def deserialize(params)
2775
+ @FileContent = params['FileContent']
2776
+ @RequestId = params['RequestId']
2777
+ end
2778
+ end
2779
+
2417
2780
  # GrantAccountPrivileges请求参数结构体
2418
2781
  class GrantAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
2419
2782
  # @param ClusterId: 集群id
@@ -2520,8 +2883,7 @@ module TencentCloud
2520
2883
  class IsolateClusterRequest < TencentCloud::Common::AbstractModel
2521
2884
  # @param ClusterId: 集群ID
2522
2885
  # @type ClusterId: String
2523
- # @param DbType: 数据库类型,取值范围:
2524
- # <li> MYSQL </li>
2886
+ # @param DbType: 该参数已废用
2525
2887
  # @type DbType: String
2526
2888
 
2527
2889
  attr_accessor :ClusterId, :DbType
@@ -2569,8 +2931,7 @@ module TencentCloud
2569
2931
  # @type ClusterId: String
2570
2932
  # @param InstanceIdList: 实例ID数组
2571
2933
  # @type InstanceIdList: Array
2572
- # @param DbType: 数据库类型,取值范围:
2573
- # <li> MYSQL </li>
2934
+ # @param DbType: 该参数已废弃
2574
2935
  # @type DbType: String
2575
2936
 
2576
2937
  attr_accessor :ClusterId, :InstanceIdList, :DbType
@@ -2619,7 +2980,7 @@ module TencentCloud
2619
2980
  # @type ClusterId: String
2620
2981
  # @param Account: 账号信息
2621
2982
  # @type Account: :class:`Tencentcloud::Cynosdb.v20190107.models.InputAccount`
2622
- # @param AccountParams: 数据库表权限数组,当前仅支持参数:max_user_connections
2983
+ # @param AccountParams: 数据库表权限数组,当前仅支持参数:max_user_connections,max_user_connections不能大于10240
2623
2984
  # @type AccountParams: Array
2624
2985
 
2625
2986
  attr_accessor :ClusterId, :Account, :AccountParams
@@ -2671,11 +3032,11 @@ module TencentCloud
2671
3032
  # @type BackupTimeBeg: Integer
2672
3033
  # @param BackupTimeEnd: 表示全备结束时间,[0-24*3600], 如0:00, 1:00, 2:00 分别为 0,3600, 7200
2673
3034
  # @type BackupTimeEnd: Integer
2674
- # @param ReserveDuration: 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800
3035
+ # @param ReserveDuration: 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
2675
3036
  # @type ReserveDuration: Integer
2676
- # @param BackupFreq: 备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
3037
+ # @param BackupFreq: 该参数目前不支持修改,无需填写。备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
2677
3038
  # @type BackupFreq: Array
2678
- # @param BackupType: 备份方式,logic-逻辑备份,snapshot-快照备份
3039
+ # @param BackupType: 该参数目前不支持修改,无需填写。备份方式,logic-逻辑备份,snapshot-快照备份
2679
3040
  # @type BackupType: String
2680
3041
 
2681
3042
  attr_accessor :ClusterId, :BackupTimeBeg, :BackupTimeEnd, :ReserveDuration, :BackupFreq, :BackupType
@@ -2715,6 +3076,46 @@ module TencentCloud
2715
3076
  end
2716
3077
  end
2717
3078
 
3079
+ # ModifyBackupName请求参数结构体
3080
+ class ModifyBackupNameRequest < TencentCloud::Common::AbstractModel
3081
+ # @param ClusterId: 集群ID
3082
+ # @type ClusterId: String
3083
+ # @param BackupId: 备份文件ID
3084
+ # @type BackupId: Integer
3085
+ # @param BackupName: 备注名,长度不能超过60个字符
3086
+ # @type BackupName: String
3087
+
3088
+ attr_accessor :ClusterId, :BackupId, :BackupName
3089
+
3090
+ def initialize(clusterid=nil, backupid=nil, backupname=nil)
3091
+ @ClusterId = clusterid
3092
+ @BackupId = backupid
3093
+ @BackupName = backupname
3094
+ end
3095
+
3096
+ def deserialize(params)
3097
+ @ClusterId = params['ClusterId']
3098
+ @BackupId = params['BackupId']
3099
+ @BackupName = params['BackupName']
3100
+ end
3101
+ end
3102
+
3103
+ # ModifyBackupName返回参数结构体
3104
+ class ModifyBackupNameResponse < TencentCloud::Common::AbstractModel
3105
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3106
+ # @type RequestId: String
3107
+
3108
+ attr_accessor :RequestId
3109
+
3110
+ def initialize(requestid=nil)
3111
+ @RequestId = requestid
3112
+ end
3113
+
3114
+ def deserialize(params)
3115
+ @RequestId = params['RequestId']
3116
+ end
3117
+ end
3118
+
2718
3119
  # ModifyClusterName请求参数结构体
2719
3120
  class ModifyClusterNameRequest < TencentCloud::Common::AbstractModel
2720
3121
  # @param ClusterId: 集群ID
@@ -2886,7 +3287,7 @@ module TencentCloud
2886
3287
  # @type MaintainStartTime: Integer
2887
3288
  # @param MaintainDuration: 维护持续时间,单位为秒,如1小时为3600
2888
3289
  # @type MaintainDuration: Integer
2889
- # @param MaintainWeekDays: 每周维护日期
3290
+ # @param MaintainWeekDays: 每周维护日期,日期取值范围[Mon, Tue, Wed, Thu, Fri, Sat, Sun]
2890
3291
  # @type MaintainWeekDays: Array
2891
3292
 
2892
3293
  attr_accessor :InstanceId, :MaintainStartTime, :MaintainDuration, :MaintainWeekDays
@@ -3561,6 +3962,62 @@ module TencentCloud
3561
3962
  end
3562
3963
  end
3563
3964
 
3965
+ # 实例慢查询信息
3966
+ class SlowQueriesItem < TencentCloud::Common::AbstractModel
3967
+ # @param Timestamp: 执行时间戳
3968
+ # @type Timestamp: Integer
3969
+ # @param QueryTime: 执行时长,单位秒
3970
+ # @type QueryTime: Float
3971
+ # @param SqlText: sql语句
3972
+ # @type SqlText: String
3973
+ # @param UserHost: 客户端host
3974
+ # @type UserHost: String
3975
+ # @param UserName: 用户名
3976
+ # @type UserName: String
3977
+ # @param Database: 数据库名
3978
+ # @type Database: String
3979
+ # @param LockTime: 锁时长,单位秒
3980
+ # @type LockTime: Float
3981
+ # @param RowsExamined: 扫描行数
3982
+ # @type RowsExamined: Integer
3983
+ # @param RowsSent: 返回行数
3984
+ # @type RowsSent: Integer
3985
+ # @param SqlTemplate: sql模版
3986
+ # @type SqlTemplate: String
3987
+ # @param SqlMd5: sql语句md5
3988
+ # @type SqlMd5: String
3989
+
3990
+ attr_accessor :Timestamp, :QueryTime, :SqlText, :UserHost, :UserName, :Database, :LockTime, :RowsExamined, :RowsSent, :SqlTemplate, :SqlMd5
3991
+
3992
+ def initialize(timestamp=nil, querytime=nil, sqltext=nil, userhost=nil, username=nil, database=nil, locktime=nil, rowsexamined=nil, rowssent=nil, sqltemplate=nil, sqlmd5=nil)
3993
+ @Timestamp = timestamp
3994
+ @QueryTime = querytime
3995
+ @SqlText = sqltext
3996
+ @UserHost = userhost
3997
+ @UserName = username
3998
+ @Database = database
3999
+ @LockTime = locktime
4000
+ @RowsExamined = rowsexamined
4001
+ @RowsSent = rowssent
4002
+ @SqlTemplate = sqltemplate
4003
+ @SqlMd5 = sqlmd5
4004
+ end
4005
+
4006
+ def deserialize(params)
4007
+ @Timestamp = params['Timestamp']
4008
+ @QueryTime = params['QueryTime']
4009
+ @SqlText = params['SqlText']
4010
+ @UserHost = params['UserHost']
4011
+ @UserName = params['UserName']
4012
+ @Database = params['Database']
4013
+ @LockTime = params['LockTime']
4014
+ @RowsExamined = params['RowsExamined']
4015
+ @RowsSent = params['RowsSent']
4016
+ @SqlTemplate = params['SqlTemplate']
4017
+ @SqlMd5 = params['SqlMd5']
4018
+ end
4019
+ end
4020
+
3564
4021
  # mysql表权限
3565
4022
  class TablePrivileges < TencentCloud::Common::AbstractModel
3566
4023
  # @param Db: 数据库名
@@ -3615,12 +4072,11 @@ module TencentCloud
3615
4072
  # @type Memory: Integer
3616
4073
  # @param UpgradeType: 升级类型:upgradeImmediate,upgradeInMaintain
3617
4074
  # @type UpgradeType: String
3618
- # @param StorageLimit: 存储上限,为0表示使用标准配置
4075
+ # @param StorageLimit: 该参数已废弃
3619
4076
  # @type StorageLimit: Integer
3620
4077
  # @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
3621
4078
  # @type AutoVoucher: Integer
3622
- # @param DbType: 数据库类型,取值范围:
3623
- # <li> MYSQL </li>
4079
+ # @param DbType: 该参数已废弃
3624
4080
  # @type DbType: String
3625
4081
  # @param DealMode: 交易模式 0-下单并支付 1-下单
3626
4082
  # @type DealMode: Integer
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.346
4
+ version: 1.0.347
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-07-01 00:00:00.000000000 Z
11
+ date: 2022-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common