tencentcloud-sdk-cls 3.0.615 → 3.0.616
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201016/client.rb +24 -0
- data/lib/v20201016/models.rb +107 -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: 4a66d870b41a97d5257cc0e8c1706db179c8b4cd
|
4
|
+
data.tar.gz: cd6933e57a7ebccd05b5d4aef428a47042c293a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e04e098c804d09db3d4e5da716657581972202004499f75aef82f7979bc4be3128ede251c8050b5b719e36879752563f8ee6d6727a7dd245be6030e77cd31f0
|
7
|
+
data.tar.gz: bc167afea7e3a472f157a9d59ea8dd7eb9fbbf129dd7ef74d35070f3735d3285bd1df937e5231a2f07bc0d78eaaf28026849ba59b211b400a82963ee4f9928de
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.616
|
data/lib/v20201016/client.rb
CHANGED
@@ -413,6 +413,30 @@ module TencentCloud
|
|
413
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
414
|
end
|
415
415
|
|
416
|
+
# 本接口用于创建ScheduledSql任务
|
417
|
+
|
418
|
+
# @param request: Request instance for CreateScheduledSql.
|
419
|
+
# @type request: :class:`Tencentcloud::cls::V20201016::CreateScheduledSqlRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::cls::V20201016::CreateScheduledSqlResponse`
|
421
|
+
def CreateScheduledSql(request)
|
422
|
+
body = send_request('CreateScheduledSql', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = CreateScheduledSqlResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
416
440
|
# 新建投递到COS的任务,【!!!注意】使用此接口,需要检查是否配置了投递COS的角色和权限。如果没有配置,请参考文档投递权限查看和配置https://cloud.tencent.com/document/product/614/71623。
|
417
441
|
|
418
442
|
# @param request: Request instance for CreateShipper.
|
data/lib/v20201016/models.rb
CHANGED
@@ -2061,6 +2061,93 @@ module TencentCloud
|
|
2061
2061
|
end
|
2062
2062
|
end
|
2063
2063
|
|
2064
|
+
# CreateScheduledSql请求参数结构体
|
2065
|
+
class CreateScheduledSqlRequest < TencentCloud::Common::AbstractModel
|
2066
|
+
# @param SrcTopicId: 源日志主题
|
2067
|
+
# @type SrcTopicId: String
|
2068
|
+
# @param Name: 任务名称
|
2069
|
+
# @type Name: String
|
2070
|
+
# @param EnableFlag: 任务启动状态. 1正常开启, 2关闭
|
2071
|
+
# @type EnableFlag: Integer
|
2072
|
+
# @param DstResource: 加工任务目的topic_id以及别名
|
2073
|
+
# @type DstResource: :class:`Tencentcloud::Cls.v20201016.models.ScheduledSqlResouceInfo`
|
2074
|
+
# @param ScheduledSqlContent: ScheduledSQL语句
|
2075
|
+
# @type ScheduledSqlContent: String
|
2076
|
+
# @param ProcessStartTime: 调度开始时间,Unix时间戳,单位ms
|
2077
|
+
# @type ProcessStartTime: Integer
|
2078
|
+
# @param ProcessType: 调度类型,1:持续运行 2:指定调度结束时间
|
2079
|
+
# @type ProcessType: Integer
|
2080
|
+
# @param ProcessPeriod: 调度周期(分钟)
|
2081
|
+
# @type ProcessPeriod: Integer
|
2082
|
+
# @param ProcessTimeWindow: 调度时间窗口
|
2083
|
+
# @type ProcessTimeWindow: String
|
2084
|
+
# @param ProcessDelay: 执行延迟(秒)
|
2085
|
+
# @type ProcessDelay: Integer
|
2086
|
+
# @param SrcTopicRegion: 源topicId的地域信息
|
2087
|
+
# @type SrcTopicRegion: String
|
2088
|
+
# @param ProcessEndTime: 调度结束时间,当ProcessType=2时为必传字段, Unix时间戳,单位ms
|
2089
|
+
# @type ProcessEndTime: Integer
|
2090
|
+
# @param SyntaxRule: 语法规则。 默认值为0。0:Lucene语法,1:CQL语法
|
2091
|
+
# @type SyntaxRule: Integer
|
2092
|
+
|
2093
|
+
attr_accessor :SrcTopicId, :Name, :EnableFlag, :DstResource, :ScheduledSqlContent, :ProcessStartTime, :ProcessType, :ProcessPeriod, :ProcessTimeWindow, :ProcessDelay, :SrcTopicRegion, :ProcessEndTime, :SyntaxRule
|
2094
|
+
|
2095
|
+
def initialize(srctopicid=nil, name=nil, enableflag=nil, dstresource=nil, scheduledsqlcontent=nil, processstarttime=nil, processtype=nil, processperiod=nil, processtimewindow=nil, processdelay=nil, srctopicregion=nil, processendtime=nil, syntaxrule=nil)
|
2096
|
+
@SrcTopicId = srctopicid
|
2097
|
+
@Name = name
|
2098
|
+
@EnableFlag = enableflag
|
2099
|
+
@DstResource = dstresource
|
2100
|
+
@ScheduledSqlContent = scheduledsqlcontent
|
2101
|
+
@ProcessStartTime = processstarttime
|
2102
|
+
@ProcessType = processtype
|
2103
|
+
@ProcessPeriod = processperiod
|
2104
|
+
@ProcessTimeWindow = processtimewindow
|
2105
|
+
@ProcessDelay = processdelay
|
2106
|
+
@SrcTopicRegion = srctopicregion
|
2107
|
+
@ProcessEndTime = processendtime
|
2108
|
+
@SyntaxRule = syntaxrule
|
2109
|
+
end
|
2110
|
+
|
2111
|
+
def deserialize(params)
|
2112
|
+
@SrcTopicId = params['SrcTopicId']
|
2113
|
+
@Name = params['Name']
|
2114
|
+
@EnableFlag = params['EnableFlag']
|
2115
|
+
unless params['DstResource'].nil?
|
2116
|
+
@DstResource = ScheduledSqlResouceInfo.new
|
2117
|
+
@DstResource.deserialize(params['DstResource'])
|
2118
|
+
end
|
2119
|
+
@ScheduledSqlContent = params['ScheduledSqlContent']
|
2120
|
+
@ProcessStartTime = params['ProcessStartTime']
|
2121
|
+
@ProcessType = params['ProcessType']
|
2122
|
+
@ProcessPeriod = params['ProcessPeriod']
|
2123
|
+
@ProcessTimeWindow = params['ProcessTimeWindow']
|
2124
|
+
@ProcessDelay = params['ProcessDelay']
|
2125
|
+
@SrcTopicRegion = params['SrcTopicRegion']
|
2126
|
+
@ProcessEndTime = params['ProcessEndTime']
|
2127
|
+
@SyntaxRule = params['SyntaxRule']
|
2128
|
+
end
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
# CreateScheduledSql返回参数结构体
|
2132
|
+
class CreateScheduledSqlResponse < TencentCloud::Common::AbstractModel
|
2133
|
+
# @param TaskId: 任务id
|
2134
|
+
# @type TaskId: String
|
2135
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2136
|
+
# @type RequestId: String
|
2137
|
+
|
2138
|
+
attr_accessor :TaskId, :RequestId
|
2139
|
+
|
2140
|
+
def initialize(taskid=nil, requestid=nil)
|
2141
|
+
@TaskId = taskid
|
2142
|
+
@RequestId = requestid
|
2143
|
+
end
|
2144
|
+
|
2145
|
+
def deserialize(params)
|
2146
|
+
@TaskId = params['TaskId']
|
2147
|
+
@RequestId = params['RequestId']
|
2148
|
+
end
|
2149
|
+
end
|
2150
|
+
|
2064
2151
|
# CreateShipper请求参数结构体
|
2065
2152
|
class CreateShipperRequest < TencentCloud::Common::AbstractModel
|
2066
2153
|
# @param TopicId: 创建的投递规则所属的日志主题ID
|
@@ -6923,6 +7010,26 @@ module TencentCloud
|
|
6923
7010
|
end
|
6924
7011
|
end
|
6925
7012
|
|
7013
|
+
# ScheduledSql的资源信息
|
7014
|
+
class ScheduledSqlResouceInfo < TencentCloud::Common::AbstractModel
|
7015
|
+
# @param TopicId: 目标主题id
|
7016
|
+
# @type TopicId: String
|
7017
|
+
# @param Region: topic的地域信息
|
7018
|
+
# @type Region: String
|
7019
|
+
|
7020
|
+
attr_accessor :TopicId, :Region
|
7021
|
+
|
7022
|
+
def initialize(topicid=nil, region=nil)
|
7023
|
+
@TopicId = topicid
|
7024
|
+
@Region = region
|
7025
|
+
end
|
7026
|
+
|
7027
|
+
def deserialize(params)
|
7028
|
+
@TopicId = params['TopicId']
|
7029
|
+
@Region = params['Region']
|
7030
|
+
end
|
7031
|
+
end
|
7032
|
+
|
6926
7033
|
# SearchLog请求参数结构体
|
6927
7034
|
class SearchLogRequest < TencentCloud::Common::AbstractModel
|
6928
7035
|
# @param From: 要检索分析的日志的起始时间,Unix时间戳(毫秒)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.616
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|