tencentcloud-sdk-tcb 1.0.240 → 1.0.241
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180608/client.rb +24 -0
- data/lib/v20180608/models.rb +134 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee302290090623780005d7c8ac569c7acbc9b9a0
|
4
|
+
data.tar.gz: 8738293dc6c87489f1a5a51a34e023c0ac864c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50227be80c8f6d82998f81f6cf9f0a7d67a8c411bb5dbe3a7ae5c95fb62283f468b3a22a783600c341cc8328cd9547d1a76d1133096f0294a1c95c9bd777f1ab
|
7
|
+
data.tar.gz: 5034af5836ad79336d6b448c4f73a90b8cb9716bdbca7776117bb1c791fecd5a5216b7d724eb778fa9e8996902df7840fa11d7420e2c9116a76014989df8ebeb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.241
|
data/lib/v20180608/client.rb
CHANGED
@@ -1784,6 +1784,30 @@ module TencentCloud
|
|
1784
1784
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1785
1785
|
end
|
1786
1786
|
|
1787
|
+
# 搜索CLS日志,TCB角色秘钥访问
|
1788
|
+
|
1789
|
+
# @param request: Request instance for SearchClsLog.
|
1790
|
+
# @type request: :class:`Tencentcloud::tcb::V20180608::SearchClsLogRequest`
|
1791
|
+
# @rtype: :class:`Tencentcloud::tcb::V20180608::SearchClsLogResponse`
|
1792
|
+
def SearchClsLog(request)
|
1793
|
+
body = send_request('SearchClsLog', request.serialize)
|
1794
|
+
response = JSON.parse(body)
|
1795
|
+
if response['Response'].key?('Error') == false
|
1796
|
+
model = SearchClsLogResponse.new
|
1797
|
+
model.deserialize(response['Response'])
|
1798
|
+
model
|
1799
|
+
else
|
1800
|
+
code = response['Response']['Error']['Code']
|
1801
|
+
message = response['Response']['Error']['Message']
|
1802
|
+
reqid = response['Response']['RequestId']
|
1803
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1804
|
+
end
|
1805
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1806
|
+
raise e
|
1807
|
+
rescue StandardError => e
|
1808
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1809
|
+
end
|
1810
|
+
|
1787
1811
|
# 本接口(TurnOffStandaloneGateway)用于关闭小租户网关。
|
1788
1812
|
|
1789
1813
|
# @param request: Request instance for TurnOffStandaloneGateway.
|
data/lib/v20180608/models.rb
CHANGED
@@ -5837,6 +5837,73 @@ module TencentCloud
|
|
5837
5837
|
end
|
5838
5838
|
end
|
5839
5839
|
|
5840
|
+
# CLS日志单条信息
|
5841
|
+
class LogObject < TencentCloud::Common::AbstractModel
|
5842
|
+
# @param TopicId: 日志属于的 topic ID
|
5843
|
+
# @type TopicId: String
|
5844
|
+
# @param TopicName: 日志主题的名字
|
5845
|
+
# @type TopicName: String
|
5846
|
+
# @param Timestamp: 日志时间
|
5847
|
+
# @type Timestamp: String
|
5848
|
+
# @param Content: 日志内容
|
5849
|
+
# @type Content: String
|
5850
|
+
# @param FileName: 采集路径
|
5851
|
+
# @type FileName: String
|
5852
|
+
# @param Source: 日志来源设备
|
5853
|
+
# @type Source: String
|
5854
|
+
|
5855
|
+
attr_accessor :TopicId, :TopicName, :Timestamp, :Content, :FileName, :Source
|
5856
|
+
|
5857
|
+
def initialize(topicid=nil, topicname=nil, timestamp=nil, content=nil, filename=nil, source=nil)
|
5858
|
+
@TopicId = topicid
|
5859
|
+
@TopicName = topicname
|
5860
|
+
@Timestamp = timestamp
|
5861
|
+
@Content = content
|
5862
|
+
@FileName = filename
|
5863
|
+
@Source = source
|
5864
|
+
end
|
5865
|
+
|
5866
|
+
def deserialize(params)
|
5867
|
+
@TopicId = params['TopicId']
|
5868
|
+
@TopicName = params['TopicName']
|
5869
|
+
@Timestamp = params['Timestamp']
|
5870
|
+
@Content = params['Content']
|
5871
|
+
@FileName = params['FileName']
|
5872
|
+
@Source = params['Source']
|
5873
|
+
end
|
5874
|
+
end
|
5875
|
+
|
5876
|
+
# CLS日志结果
|
5877
|
+
class LogResObject < TencentCloud::Common::AbstractModel
|
5878
|
+
# @param Context: 获取更多检索结果的游标
|
5879
|
+
# @type Context: String
|
5880
|
+
# @param ListOver: 搜索结果是否已经全部返回
|
5881
|
+
# @type ListOver: Boolean
|
5882
|
+
# @param Results: 日志内容信息
|
5883
|
+
# @type Results: Array
|
5884
|
+
|
5885
|
+
attr_accessor :Context, :ListOver, :Results
|
5886
|
+
|
5887
|
+
def initialize(context=nil, listover=nil, results=nil)
|
5888
|
+
@Context = context
|
5889
|
+
@ListOver = listover
|
5890
|
+
@Results = results
|
5891
|
+
end
|
5892
|
+
|
5893
|
+
def deserialize(params)
|
5894
|
+
@Context = params['Context']
|
5895
|
+
@ListOver = params['ListOver']
|
5896
|
+
unless params['Results'].nil?
|
5897
|
+
@Results = []
|
5898
|
+
params['Results'].each do |i|
|
5899
|
+
logobject_tmp = LogObject.new
|
5900
|
+
logobject_tmp.deserialize(i)
|
5901
|
+
@Results << logobject_tmp
|
5902
|
+
end
|
5903
|
+
end
|
5904
|
+
end
|
5905
|
+
end
|
5906
|
+
|
5840
5907
|
# 云日志服务相关信息
|
5841
5908
|
class LogServiceInfo < TencentCloud::Common::AbstractModel
|
5842
5909
|
# @param LogsetName: log名
|
@@ -6728,6 +6795,73 @@ module TencentCloud
|
|
6728
6795
|
end
|
6729
6796
|
end
|
6730
6797
|
|
6798
|
+
# SearchClsLog请求参数结构体
|
6799
|
+
class SearchClsLogRequest < TencentCloud::Common::AbstractModel
|
6800
|
+
# @param EnvId: 环境唯一ID
|
6801
|
+
# @type EnvId: String
|
6802
|
+
# @param StartTime: 查询起始时间条件
|
6803
|
+
# @type StartTime: String
|
6804
|
+
# @param EndTime: 查询结束时间条件
|
6805
|
+
# @type EndTime: String
|
6806
|
+
# @param QueryString: 查询语句,详情参考 https://cloud.tencent.com/document/product/614/47044
|
6807
|
+
# @type QueryString: String
|
6808
|
+
# @param Limit: 单次要返回的日志条数,单次返回的最大条数为100
|
6809
|
+
# @type Limit: Integer
|
6810
|
+
# @param Context: 加载更多使用,透传上次返回的 context 值,获取后续的日志内容,通过游标最多可获取10000条,请尽可能缩小时间范围
|
6811
|
+
# @type Context: String
|
6812
|
+
# @param Sort: 按时间排序 asc(升序)或者 desc(降序),默认为 desc
|
6813
|
+
# @type Sort: String
|
6814
|
+
# @param UseLucene: 是否使用Lucene语法,默认为false
|
6815
|
+
# @type UseLucene: Boolean
|
6816
|
+
|
6817
|
+
attr_accessor :EnvId, :StartTime, :EndTime, :QueryString, :Limit, :Context, :Sort, :UseLucene
|
6818
|
+
|
6819
|
+
def initialize(envid=nil, starttime=nil, endtime=nil, querystring=nil, limit=nil, context=nil, sort=nil, uselucene=nil)
|
6820
|
+
@EnvId = envid
|
6821
|
+
@StartTime = starttime
|
6822
|
+
@EndTime = endtime
|
6823
|
+
@QueryString = querystring
|
6824
|
+
@Limit = limit
|
6825
|
+
@Context = context
|
6826
|
+
@Sort = sort
|
6827
|
+
@UseLucene = uselucene
|
6828
|
+
end
|
6829
|
+
|
6830
|
+
def deserialize(params)
|
6831
|
+
@EnvId = params['EnvId']
|
6832
|
+
@StartTime = params['StartTime']
|
6833
|
+
@EndTime = params['EndTime']
|
6834
|
+
@QueryString = params['QueryString']
|
6835
|
+
@Limit = params['Limit']
|
6836
|
+
@Context = params['Context']
|
6837
|
+
@Sort = params['Sort']
|
6838
|
+
@UseLucene = params['UseLucene']
|
6839
|
+
end
|
6840
|
+
end
|
6841
|
+
|
6842
|
+
# SearchClsLog返回参数结构体
|
6843
|
+
class SearchClsLogResponse < TencentCloud::Common::AbstractModel
|
6844
|
+
# @param LogResults: 日志内容结果
|
6845
|
+
# @type LogResults: :class:`Tencentcloud::Tcb.v20180608.models.LogResObject`
|
6846
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6847
|
+
# @type RequestId: String
|
6848
|
+
|
6849
|
+
attr_accessor :LogResults, :RequestId
|
6850
|
+
|
6851
|
+
def initialize(logresults=nil, requestid=nil)
|
6852
|
+
@LogResults = logresults
|
6853
|
+
@RequestId = requestid
|
6854
|
+
end
|
6855
|
+
|
6856
|
+
def deserialize(params)
|
6857
|
+
unless params['LogResults'].nil?
|
6858
|
+
@LogResults = LogResObject.new
|
6859
|
+
@LogResults.deserialize(params['LogResults'])
|
6860
|
+
end
|
6861
|
+
@RequestId = params['RequestId']
|
6862
|
+
end
|
6863
|
+
end
|
6864
|
+
|
6731
6865
|
# 短信免费量
|
6732
6866
|
class SmsFreeQuota < TencentCloud::Common::AbstractModel
|
6733
6867
|
# @param FreeQuota: 免费量总条数
|
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: 1.0.
|
4
|
+
version: 1.0.241
|
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-01-
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|