tencentcloud-sdk-tcb 3.0.1189 → 3.0.1210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b74da7e3a56841818e708e3905862f3a83caa7bc
4
- data.tar.gz: ec4bfb30c632fba460de7d323e6ff0772b9512af
3
+ metadata.gz: 4ec00f829438d042565abe8de8b35419d895c215
4
+ data.tar.gz: 4f6acfb5b35232e78e7e48ddc3418a5daa1938d4
5
5
  SHA512:
6
- metadata.gz: c750bb42b255137c8175ea7a90ca9011370ecac660104ce4b36ad4f8ea4cf0a49a590f94ba820fb0f61ef52dacc8bc15f8f9ffb8e16d83955f915dd8974e9ccb
7
- data.tar.gz: 3ad1f8a673e17dfeb875775f0a014048a2136eccf47ca63a53cced12a9c069900ce5e3d14f90b61c5de1de7857b65ee7dbbf5ceb373a5cb6419dfb6726602f38
6
+ metadata.gz: 98769afde7bc0b869950a1985c2fbb706a8b473b7a09095daf64fbcac5826205a084e707446ee1ba386bbfda05b162f5f166cf28ecabcb6a88b03e7789e9a745
7
+ data.tar.gz: c3adfdd530e76abd674311d9f7c40b076408535b91a4bcc6e34d2d40e289a99778c78fc5456ba3978b0bed069902fff599585ecf383d5b5f360727ab33561c54
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1189
1
+ 3.0.1210
@@ -1569,16 +1569,16 @@ module TencentCloud
1569
1569
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1570
1570
  end
1571
1571
 
1572
- # 搜索CLS日志,TCB角色密钥访问
1572
+ # 执行SQL语句
1573
1573
 
1574
- # @param request: Request instance for SearchClsLog.
1575
- # @type request: :class:`Tencentcloud::tcb::V20180608::SearchClsLogRequest`
1576
- # @rtype: :class:`Tencentcloud::tcb::V20180608::SearchClsLogResponse`
1577
- def SearchClsLog(request)
1578
- body = send_request('SearchClsLog', request.serialize)
1574
+ # @param request: Request instance for RunSql.
1575
+ # @type request: :class:`Tencentcloud::tcb::V20180608::RunSqlRequest`
1576
+ # @rtype: :class:`Tencentcloud::tcb::V20180608::RunSqlResponse`
1577
+ def RunSql(request)
1578
+ body = send_request('RunSql', request.serialize)
1579
1579
  response = JSON.parse(body)
1580
1580
  if response['Response'].key?('Error') == false
1581
- model = SearchClsLogResponse.new
1581
+ model = RunSqlResponse.new
1582
1582
  model.deserialize(response['Response'])
1583
1583
  model
1584
1584
  else
@@ -2074,6 +2074,30 @@ module TencentCloud
2074
2074
  end
2075
2075
  end
2076
2076
 
2077
+ # 数据库连接器实例信息
2078
+ class DbInstance < TencentCloud::Common::AbstractModel
2079
+ # @param EnvId: 云开发环境ID
2080
+ # @type EnvId: String
2081
+ # @param InstanceId: MySQL 连接器实例 ID;`"default"` 或为空表示使用 TCB 环境的默认连接器
2082
+ # @type InstanceId: String
2083
+ # @param Schema: 数据库名;为空时使用连接器配置的默认数据库名
2084
+ # @type Schema: String
2085
+
2086
+ attr_accessor :EnvId, :InstanceId, :Schema
2087
+
2088
+ def initialize(envid=nil, instanceid=nil, schema=nil)
2089
+ @EnvId = envid
2090
+ @InstanceId = instanceid
2091
+ @Schema = schema
2092
+ end
2093
+
2094
+ def deserialize(params)
2095
+ @EnvId = params['EnvId']
2096
+ @InstanceId = params['InstanceId']
2097
+ @Schema = params['Schema']
2098
+ end
2099
+ end
2100
+
2077
2101
  # DeleteCloudBaseProjectLatestVersion请求参数结构体
2078
2102
  class DeleteCloudBaseProjectLatestVersionRequest < TencentCloud::Common::AbstractModel
2079
2103
  # @param EnvId: 环境id
@@ -5851,77 +5875,6 @@ module TencentCloud
5851
5875
  end
5852
5876
  end
5853
5877
 
5854
- # CLS日志单条信息
5855
- class LogObject < TencentCloud::Common::AbstractModel
5856
- # @param TopicId: 日志属于的 topic ID
5857
- # @type TopicId: String
5858
- # @param TopicName: 日志主题的名字
5859
- # @type TopicName: String
5860
- # @param Timestamp: 日志时间
5861
- # @type Timestamp: String
5862
- # @param Content: 日志内容
5863
- # @type Content: String
5864
- # @param FileName: 采集路径
5865
- # @type FileName: String
5866
- # @param Source: 日志来源设备
5867
- # @type Source: String
5868
-
5869
- attr_accessor :TopicId, :TopicName, :Timestamp, :Content, :FileName, :Source
5870
-
5871
- def initialize(topicid=nil, topicname=nil, timestamp=nil, content=nil, filename=nil, source=nil)
5872
- @TopicId = topicid
5873
- @TopicName = topicname
5874
- @Timestamp = timestamp
5875
- @Content = content
5876
- @FileName = filename
5877
- @Source = source
5878
- end
5879
-
5880
- def deserialize(params)
5881
- @TopicId = params['TopicId']
5882
- @TopicName = params['TopicName']
5883
- @Timestamp = params['Timestamp']
5884
- @Content = params['Content']
5885
- @FileName = params['FileName']
5886
- @Source = params['Source']
5887
- end
5888
- end
5889
-
5890
- # CLS日志结果
5891
- class LogResObject < TencentCloud::Common::AbstractModel
5892
- # @param Context: 获取更多检索结果的游标
5893
- # @type Context: String
5894
- # @param ListOver: 搜索结果是否已经全部返回
5895
- # @type ListOver: Boolean
5896
- # @param Results: 日志内容信息
5897
- # @type Results: Array
5898
- # @param AnalysisRecords: 日志聚合结果
5899
- # @type AnalysisRecords: Array
5900
-
5901
- attr_accessor :Context, :ListOver, :Results, :AnalysisRecords
5902
-
5903
- def initialize(context=nil, listover=nil, results=nil, analysisrecords=nil)
5904
- @Context = context
5905
- @ListOver = listover
5906
- @Results = results
5907
- @AnalysisRecords = analysisrecords
5908
- end
5909
-
5910
- def deserialize(params)
5911
- @Context = params['Context']
5912
- @ListOver = params['ListOver']
5913
- unless params['Results'].nil?
5914
- @Results = []
5915
- params['Results'].each do |i|
5916
- logobject_tmp = LogObject.new
5917
- logobject_tmp.deserialize(i)
5918
- @Results << logobject_tmp
5919
- end
5920
- end
5921
- @AnalysisRecords = params['AnalysisRecords']
5922
- end
5923
- end
5924
-
5925
5878
  # 云日志服务相关信息
5926
5879
  class LogServiceInfo < TencentCloud::Common::AbstractModel
5927
5880
  # @param LogsetName: log名
@@ -6545,69 +6498,61 @@ module TencentCloud
6545
6498
  end
6546
6499
  end
6547
6500
 
6548
- # SearchClsLog请求参数结构体
6549
- class SearchClsLogRequest < TencentCloud::Common::AbstractModel
6550
- # @param EnvId: 环境唯一ID
6501
+ # RunSql请求参数结构体
6502
+ class RunSqlRequest < TencentCloud::Common::AbstractModel
6503
+ # @param Sql: 要执行的SQL语句
6504
+ # @type Sql: String
6505
+ # @param EnvId: 云开发环境ID
6551
6506
  # @type EnvId: String
6552
- # @param StartTime: 查询起始时间条件
6553
- # @type StartTime: String
6554
- # @param EndTime: 查询结束时间条件
6555
- # @type EndTime: String
6556
- # @param QueryString: 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044
6557
- # @type QueryString: String
6558
- # @param Limit: 单次要返回的日志条数,单次返回的最大条数为100
6559
- # @type Limit: Integer
6560
- # @param Context: 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
6561
- # @type Context: String
6562
- # @param Sort: 按时间排序 asc(升序)或者 desc(降序),默认为 desc
6563
- # @type Sort: String
6564
- # @param UseLucene: 是否使用Lucene语法,默认为false
6565
- # @type UseLucene: Boolean
6507
+ # @param DbInstance: 数据库连接器实例信息
6508
+ # @type DbInstance: :class:`Tencentcloud::Tcb.v20180608.models.DbInstance`
6509
+ # @param ReadOnly: 是否只读;当 `true` 时仅允许以 `SELECT/WITH/SHOW/DESCRIBE/DESC/EXPLAIN` 开头的 SQL
6510
+ # @type ReadOnly: Boolean
6566
6511
 
6567
- attr_accessor :EnvId, :StartTime, :EndTime, :QueryString, :Limit, :Context, :Sort, :UseLucene
6512
+ attr_accessor :Sql, :EnvId, :DbInstance, :ReadOnly
6568
6513
 
6569
- def initialize(envid=nil, starttime=nil, endtime=nil, querystring=nil, limit=nil, context=nil, sort=nil, uselucene=nil)
6514
+ def initialize(sql=nil, envid=nil, dbinstance=nil, readonly=nil)
6515
+ @Sql = sql
6570
6516
  @EnvId = envid
6571
- @StartTime = starttime
6572
- @EndTime = endtime
6573
- @QueryString = querystring
6574
- @Limit = limit
6575
- @Context = context
6576
- @Sort = sort
6577
- @UseLucene = uselucene
6517
+ @DbInstance = dbinstance
6518
+ @ReadOnly = readonly
6578
6519
  end
6579
6520
 
6580
6521
  def deserialize(params)
6522
+ @Sql = params['Sql']
6581
6523
  @EnvId = params['EnvId']
6582
- @StartTime = params['StartTime']
6583
- @EndTime = params['EndTime']
6584
- @QueryString = params['QueryString']
6585
- @Limit = params['Limit']
6586
- @Context = params['Context']
6587
- @Sort = params['Sort']
6588
- @UseLucene = params['UseLucene']
6524
+ unless params['DbInstance'].nil?
6525
+ @DbInstance = DbInstance.new
6526
+ @DbInstance.deserialize(params['DbInstance'])
6527
+ end
6528
+ @ReadOnly = params['ReadOnly']
6589
6529
  end
6590
6530
  end
6591
6531
 
6592
- # SearchClsLog返回参数结构体
6593
- class SearchClsLogResponse < TencentCloud::Common::AbstractModel
6594
- # @param LogResults: 日志内容结果
6595
- # @type LogResults: :class:`Tencentcloud::Tcb.v20180608.models.LogResObject`
6532
+ # RunSql返回参数结构体
6533
+ class RunSqlResponse < TencentCloud::Common::AbstractModel
6534
+ # @param Items: 查询结果行,每个元素为 JSON 字符串
6535
+ # @type Items: Array
6536
+ # @param Infos: 列元数据信息,每个元素为 JSON 字符串,字段包含 `name/databaseType/nullable/length/precision/scale`
6537
+ # @type Infos: Array
6538
+ # @param RowsAffected: 受影响的行数(INSERT/UPDATE/DELETE 等语句)
6539
+ # @type RowsAffected: Integer
6596
6540
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6597
6541
  # @type RequestId: String
6598
6542
 
6599
- attr_accessor :LogResults, :RequestId
6543
+ attr_accessor :Items, :Infos, :RowsAffected, :RequestId
6600
6544
 
6601
- def initialize(logresults=nil, requestid=nil)
6602
- @LogResults = logresults
6545
+ def initialize(items=nil, infos=nil, rowsaffected=nil, requestid=nil)
6546
+ @Items = items
6547
+ @Infos = infos
6548
+ @RowsAffected = rowsaffected
6603
6549
  @RequestId = requestid
6604
6550
  end
6605
6551
 
6606
6552
  def deserialize(params)
6607
- unless params['LogResults'].nil?
6608
- @LogResults = LogResObject.new
6609
- @LogResults.deserialize(params['LogResults'])
6610
- end
6553
+ @Items = params['Items']
6554
+ @Infos = params['Infos']
6555
+ @RowsAffected = params['RowsAffected']
6611
6556
  @RequestId = params['RequestId']
6612
6557
  end
6613
6558
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tcb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1189
4
+ version: 3.0.1210
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-24 00:00:00.000000000 Z
11
+ date: 2026-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - lib/tencentcloud-sdk-tcb.rb
36
37
  - lib/v20180608/client.rb
37
38
  - lib/v20180608/models.rb
38
- - lib/tencentcloud-sdk-tcb.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: