tencentcloud-sdk-teo 3.0.774 → 3.0.776
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/v20220901/client.rb +121 -0
- data/lib/v20220901/models.rb +634 -13
- 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: badc832299694eac16341274c29e56709513e7e6
|
4
|
+
data.tar.gz: 979b73f9d7c22ce35a00c4f2a45c50f75a91af8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7aaca814ccbb9e82319ef3e1fbdec713637752af8e4d102ed12fd8d6601f84a788d6c6e7a42d008b60b20e65bfe237bf547a73ec42afcb9ebe999f97d8f401d
|
7
|
+
data.tar.gz: 78a699a8c9f214bfc3d8c7c1e0006d8b8e7d5119a6b543328cf9c11dd1962a99875f6db4b6dbd47e52e4c8dbc96066c555f376a6cdf0b7ac349317e257844a0a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.776
|
data/lib/v20220901/client.rb
CHANGED
@@ -224,6 +224,30 @@ module TencentCloud
|
|
224
224
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
225
225
|
end
|
226
226
|
|
227
|
+
# 针对指定实时日志投递任务(task-id),在对应的腾讯云 CLS 日志主题中创建投递日志字段对应的键值索引。如果您在腾讯云 CLS 已经创建索引,本接口将采用合并的方式追加索引。
|
228
|
+
|
229
|
+
# @param request: Request instance for CreateCLSIndex.
|
230
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateCLSIndexRequest`
|
231
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateCLSIndexResponse`
|
232
|
+
def CreateCLSIndex(request)
|
233
|
+
body = send_request('CreateCLSIndex', request.serialize)
|
234
|
+
response = JSON.parse(body)
|
235
|
+
if response['Response'].key?('Error') == false
|
236
|
+
model = CreateCLSIndexResponse.new
|
237
|
+
model.deserialize(response['Response'])
|
238
|
+
model
|
239
|
+
else
|
240
|
+
code = response['Response']['Error']['Code']
|
241
|
+
message = response['Response']['Error']['Message']
|
242
|
+
reqid = response['Response']['RequestId']
|
243
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
244
|
+
end
|
245
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
246
|
+
raise e
|
247
|
+
rescue StandardError => e
|
248
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
249
|
+
end
|
250
|
+
|
227
251
|
# 在版本管理模式下,用于创建指定配置组的新版本。版本管理功能内测中,当前仅白名单开放。
|
228
252
|
|
229
253
|
# @param request: Request instance for CreateConfigGroupVersion.
|
@@ -394,6 +418,31 @@ module TencentCloud
|
|
394
418
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
395
419
|
end
|
396
420
|
|
421
|
+
# 通过本接口创建实时日志投递任务。本接口有如下限制:
|
422
|
+
# 同一个实体(七层域名或者四层代理实例)在同种数据投递类型(LogType)和数据投递区域(Area)的组合下,只能被添加到一个实时日志投递任务中。建议先通过 [DescribeRealtimeLogDeliveryTasks](https://tcloud4api.woa.com/document/product/1657/343539?!preview&!document=1) 接口根据实体查询实时日志投递任务列表,检查实体是否已经被添加到另一实时日志投递任务中。
|
423
|
+
|
424
|
+
# @param request: Request instance for CreateRealtimeLogDeliveryTask.
|
425
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateRealtimeLogDeliveryTaskRequest`
|
426
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateRealtimeLogDeliveryTaskResponse`
|
427
|
+
def CreateRealtimeLogDeliveryTask(request)
|
428
|
+
body = send_request('CreateRealtimeLogDeliveryTask', request.serialize)
|
429
|
+
response = JSON.parse(body)
|
430
|
+
if response['Response'].key?('Error') == false
|
431
|
+
model = CreateRealtimeLogDeliveryTaskResponse.new
|
432
|
+
model.deserialize(response['Response'])
|
433
|
+
model
|
434
|
+
else
|
435
|
+
code = response['Response']['Error']['Code']
|
436
|
+
message = response['Response']['Error']['Message']
|
437
|
+
reqid = response['Response']['RequestId']
|
438
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
439
|
+
end
|
440
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
441
|
+
raise e
|
442
|
+
rescue StandardError => e
|
443
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
444
|
+
end
|
445
|
+
|
397
446
|
# 规则引擎创建规则。
|
398
447
|
|
399
448
|
# @param request: Request instance for CreateRule.
|
@@ -661,6 +710,30 @@ module TencentCloud
|
|
661
710
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
662
711
|
end
|
663
712
|
|
713
|
+
# 通过本接口删除实时日志投递任务。
|
714
|
+
|
715
|
+
# @param request: Request instance for DeleteRealtimeLogDeliveryTask.
|
716
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteRealtimeLogDeliveryTaskRequest`
|
717
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteRealtimeLogDeliveryTaskResponse`
|
718
|
+
def DeleteRealtimeLogDeliveryTask(request)
|
719
|
+
body = send_request('DeleteRealtimeLogDeliveryTask', request.serialize)
|
720
|
+
response = JSON.parse(body)
|
721
|
+
if response['Response'].key?('Error') == false
|
722
|
+
model = DeleteRealtimeLogDeliveryTaskResponse.new
|
723
|
+
model.deserialize(response['Response'])
|
724
|
+
model
|
725
|
+
else
|
726
|
+
code = response['Response']['Error']['Code']
|
727
|
+
message = response['Response']['Error']['Message']
|
728
|
+
reqid = response['Response']['RequestId']
|
729
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
730
|
+
end
|
731
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
732
|
+
raise e
|
733
|
+
rescue StandardError => e
|
734
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
735
|
+
end
|
736
|
+
|
664
737
|
# 批量删除规则引擎规则。
|
665
738
|
|
666
739
|
# @param request: Request instance for DeleteRules.
|
@@ -1357,6 +1430,30 @@ module TencentCloud
|
|
1357
1430
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1358
1431
|
end
|
1359
1432
|
|
1433
|
+
# 通过本接口查询实时日志投递任务列表。
|
1434
|
+
|
1435
|
+
# @param request: Request instance for DescribeRealtimeLogDeliveryTasks.
|
1436
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeRealtimeLogDeliveryTasksRequest`
|
1437
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeRealtimeLogDeliveryTasksResponse`
|
1438
|
+
def DescribeRealtimeLogDeliveryTasks(request)
|
1439
|
+
body = send_request('DescribeRealtimeLogDeliveryTasks', request.serialize)
|
1440
|
+
response = JSON.parse(body)
|
1441
|
+
if response['Response'].key?('Error') == false
|
1442
|
+
model = DescribeRealtimeLogDeliveryTasksResponse.new
|
1443
|
+
model.deserialize(response['Response'])
|
1444
|
+
model
|
1445
|
+
else
|
1446
|
+
code = response['Response']['Error']['Code']
|
1447
|
+
message = response['Response']['Error']['Message']
|
1448
|
+
reqid = response['Response']['RequestId']
|
1449
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1450
|
+
end
|
1451
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1452
|
+
raise e
|
1453
|
+
rescue StandardError => e
|
1454
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1455
|
+
end
|
1456
|
+
|
1360
1457
|
# 查询规则引擎规则。
|
1361
1458
|
|
1362
1459
|
# @param request: Request instance for DescribeRules.
|
@@ -2010,6 +2107,30 @@ module TencentCloud
|
|
2010
2107
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2011
2108
|
end
|
2012
2109
|
|
2110
|
+
# 通过本接口修改实时日志投递任务配置。本接口有如下限制:<li>不支持修改实时日志投递任务目的地类型(TaskType);</li><li>不支持修改数据投递类型(LogType)</li><li>不支持修改数据投递区域(Area)</li><li>当原实时日志投递任务的目的地为腾讯云 CLS 时,不支持修改目的地详细配置,如日志集、日志主题。</li>
|
2111
|
+
|
2112
|
+
# @param request: Request instance for ModifyRealtimeLogDeliveryTask.
|
2113
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyRealtimeLogDeliveryTaskRequest`
|
2114
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyRealtimeLogDeliveryTaskResponse`
|
2115
|
+
def ModifyRealtimeLogDeliveryTask(request)
|
2116
|
+
body = send_request('ModifyRealtimeLogDeliveryTask', request.serialize)
|
2117
|
+
response = JSON.parse(body)
|
2118
|
+
if response['Response'].key?('Error') == false
|
2119
|
+
model = ModifyRealtimeLogDeliveryTaskResponse.new
|
2120
|
+
model.deserialize(response['Response'])
|
2121
|
+
model
|
2122
|
+
else
|
2123
|
+
code = response['Response']['Error']['Code']
|
2124
|
+
message = response['Response']['Error']['Message']
|
2125
|
+
reqid = response['Response']['RequestId']
|
2126
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2127
|
+
end
|
2128
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2129
|
+
raise e
|
2130
|
+
rescue StandardError => e
|
2131
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2132
|
+
end
|
2133
|
+
|
2013
2134
|
# 修改规则引擎规则。
|
2014
2135
|
|
2015
2136
|
# @param request: Request instance for ModifyRule.
|
data/lib/v20220901/models.rb
CHANGED
@@ -1458,6 +1458,30 @@ module TencentCloud
|
|
1458
1458
|
end
|
1459
1459
|
end
|
1460
1460
|
|
1461
|
+
# 实时日志投递到腾讯云 CLS 的配置信息。
|
1462
|
+
class CLSTopic < TencentCloud::Common::AbstractModel
|
1463
|
+
# @param LogSetId: 腾讯云 CLS 日志集 ID。
|
1464
|
+
# @type LogSetId: String
|
1465
|
+
# @param TopicId: 腾讯云 CLS 日志主题 ID。
|
1466
|
+
# @type TopicId: String
|
1467
|
+
# @param LogSetRegion: 腾讯云 CLS 日志集所在的地域。
|
1468
|
+
# @type LogSetRegion: String
|
1469
|
+
|
1470
|
+
attr_accessor :LogSetId, :TopicId, :LogSetRegion
|
1471
|
+
|
1472
|
+
def initialize(logsetid=nil, topicid=nil, logsetregion=nil)
|
1473
|
+
@LogSetId = logsetid
|
1474
|
+
@TopicId = topicid
|
1475
|
+
@LogSetRegion = logsetregion
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
def deserialize(params)
|
1479
|
+
@LogSetId = params['LogSetId']
|
1480
|
+
@TopicId = params['TopicId']
|
1481
|
+
@LogSetRegion = params['LogSetRegion']
|
1482
|
+
end
|
1483
|
+
end
|
1484
|
+
|
1461
1485
|
# 缓存时间设置
|
1462
1486
|
class Cache < TencentCloud::Common::AbstractModel
|
1463
1487
|
# @param Switch: 缓存配置开关,取值有:
|
@@ -1476,8 +1500,8 @@ module TencentCloud
|
|
1476
1500
|
|
1477
1501
|
attr_accessor :Switch, :CacheTime, :IgnoreCacheControl
|
1478
1502
|
extend Gem::Deprecate
|
1479
|
-
deprecate :IgnoreCacheControl, :none, 2024,
|
1480
|
-
deprecate :IgnoreCacheControl=, :none, 2024,
|
1503
|
+
deprecate :IgnoreCacheControl, :none, 2024, 3
|
1504
|
+
deprecate :IgnoreCacheControl=, :none, 2024, 3
|
1481
1505
|
|
1482
1506
|
def initialize(switch=nil, cachetime=nil, ignorecachecontrol=nil)
|
1483
1507
|
@Switch = switch
|
@@ -2166,6 +2190,42 @@ module TencentCloud
|
|
2166
2190
|
end
|
2167
2191
|
end
|
2168
2192
|
|
2193
|
+
# CreateCLSIndex请求参数结构体
|
2194
|
+
class CreateCLSIndexRequest < TencentCloud::Common::AbstractModel
|
2195
|
+
# @param ZoneId: 站点 ID。
|
2196
|
+
# @type ZoneId: String
|
2197
|
+
# @param TaskId: 实时日志投递任务 ID。
|
2198
|
+
# @type TaskId: String
|
2199
|
+
|
2200
|
+
attr_accessor :ZoneId, :TaskId
|
2201
|
+
|
2202
|
+
def initialize(zoneid=nil, taskid=nil)
|
2203
|
+
@ZoneId = zoneid
|
2204
|
+
@TaskId = taskid
|
2205
|
+
end
|
2206
|
+
|
2207
|
+
def deserialize(params)
|
2208
|
+
@ZoneId = params['ZoneId']
|
2209
|
+
@TaskId = params['TaskId']
|
2210
|
+
end
|
2211
|
+
end
|
2212
|
+
|
2213
|
+
# CreateCLSIndex返回参数结构体
|
2214
|
+
class CreateCLSIndexResponse < TencentCloud::Common::AbstractModel
|
2215
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2216
|
+
# @type RequestId: String
|
2217
|
+
|
2218
|
+
attr_accessor :RequestId
|
2219
|
+
|
2220
|
+
def initialize(requestid=nil)
|
2221
|
+
@RequestId = requestid
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
def deserialize(params)
|
2225
|
+
@RequestId = params['RequestId']
|
2226
|
+
end
|
2227
|
+
end
|
2228
|
+
|
2169
2229
|
# CreateConfigGroupVersion请求参数结构体
|
2170
2230
|
class CreateConfigGroupVersionRequest < TencentCloud::Common::AbstractModel
|
2171
2231
|
# @param ZoneId: 站点 ID。
|
@@ -2546,8 +2606,8 @@ module TencentCloud
|
|
2546
2606
|
|
2547
2607
|
attr_accessor :ZoneId, :Type, :Method, :Targets, :EncodeUrl
|
2548
2608
|
extend Gem::Deprecate
|
2549
|
-
deprecate :EncodeUrl, :none, 2024,
|
2550
|
-
deprecate :EncodeUrl=, :none, 2024,
|
2609
|
+
deprecate :EncodeUrl, :none, 2024, 3
|
2610
|
+
deprecate :EncodeUrl=, :none, 2024, 3
|
2551
2611
|
|
2552
2612
|
def initialize(zoneid=nil, type=nil, method=nil, targets=nil, encodeurl=nil)
|
2553
2613
|
@ZoneId = zoneid
|
@@ -2598,6 +2658,126 @@ module TencentCloud
|
|
2598
2658
|
end
|
2599
2659
|
end
|
2600
2660
|
|
2661
|
+
# CreateRealtimeLogDeliveryTask请求参数结构体
|
2662
|
+
class CreateRealtimeLogDeliveryTaskRequest < TencentCloud::Common::AbstractModel
|
2663
|
+
# @param ZoneId: 站点 ID。
|
2664
|
+
# @type ZoneId: String
|
2665
|
+
# @param TaskName: 实时日志投递任务的名称,格式为数字、英文、-和_组合,最多 200 个字符。
|
2666
|
+
# @type TaskName: String
|
2667
|
+
# @param TaskType: 实时日志投递任务类型,取值有:
|
2668
|
+
# <li>cls: 推送到腾讯云 CLS;</li>
|
2669
|
+
# <li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li>
|
2670
|
+
# <li>s3:推送到 AWS S3 兼容存储桶地址。</li>
|
2671
|
+
# @type TaskType: String
|
2672
|
+
# @param EntityList: 实时日志投递任务对应的实体(七层域名或者四层代理实例)列表。取值示例如下:
|
2673
|
+
# <li>七层域名:domain.example.com;</li>
|
2674
|
+
# <li>四层代理实例:sid-2s69eb5wcms7。</li>
|
2675
|
+
# @type EntityList: Array
|
2676
|
+
# @param LogType: 数据投递类型,取值有:
|
2677
|
+
# <li>domain:站点加速日志;</li>
|
2678
|
+
# <li>application:四层代理日志;</li>
|
2679
|
+
# <li>web-rateLiming:速率限制和 CC 攻击防护日志;</li>
|
2680
|
+
# <li>web-attack:托管规则日志;</li>
|
2681
|
+
# <li>web-rule:自定义规则日志;</li>
|
2682
|
+
# <li>web-bot:Bot管理日志。</li>
|
2683
|
+
# @type LogType: String
|
2684
|
+
# @param Area: 数据投递区域,取值有:
|
2685
|
+
# <li>mainland:中国大陆境内;</li>
|
2686
|
+
# <li>overseas:全球(不含中国大陆)。</li>
|
2687
|
+
# @type Area: String
|
2688
|
+
# @param Fields: 投递的预设字段列表。
|
2689
|
+
# @type Fields: Array
|
2690
|
+
# @param CustomFields: 投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie 中提取指定字段值。自定义字段名称不能重复,且最多不能超过 200 个字段。
|
2691
|
+
# @type CustomFields: Array
|
2692
|
+
# @param DeliveryConditions: 日志投递的过滤条件,不填表示投递全量日志。
|
2693
|
+
# @type DeliveryConditions: Array
|
2694
|
+
# @param Sample: 采样比例,采用千分制,取值范围为1-1000,例如:填写 605 表示采样比例为 60.5%。不填表示采样比例为 100%。
|
2695
|
+
# @type Sample: Integer
|
2696
|
+
# @param CLS: CLS 的配置信息。当 TaskType 取值为 cls 时,该参数必填。
|
2697
|
+
# @type CLS: :class:`Tencentcloud::Teo.v20220901.models.CLSTopic`
|
2698
|
+
# @param CustomEndpoint: 自定义 HTTP 服务的配置信息。当 TaskType 取值为 custom_endpoint 时,该参数必填。
|
2699
|
+
# @type CustomEndpoint: :class:`Tencentcloud::Teo.v20220901.models.CustomEndpoint`
|
2700
|
+
# @param S3: AWS S3 兼容存储桶的配置信息。当 TaskType 取值为 s3 时,该参数必填。
|
2701
|
+
# @type S3: :class:`Tencentcloud::Teo.v20220901.models.S3`
|
2702
|
+
|
2703
|
+
attr_accessor :ZoneId, :TaskName, :TaskType, :EntityList, :LogType, :Area, :Fields, :CustomFields, :DeliveryConditions, :Sample, :CLS, :CustomEndpoint, :S3
|
2704
|
+
|
2705
|
+
def initialize(zoneid=nil, taskname=nil, tasktype=nil, entitylist=nil, logtype=nil, area=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, cls=nil, customendpoint=nil, s3=nil)
|
2706
|
+
@ZoneId = zoneid
|
2707
|
+
@TaskName = taskname
|
2708
|
+
@TaskType = tasktype
|
2709
|
+
@EntityList = entitylist
|
2710
|
+
@LogType = logtype
|
2711
|
+
@Area = area
|
2712
|
+
@Fields = fields
|
2713
|
+
@CustomFields = customfields
|
2714
|
+
@DeliveryConditions = deliveryconditions
|
2715
|
+
@Sample = sample
|
2716
|
+
@CLS = cls
|
2717
|
+
@CustomEndpoint = customendpoint
|
2718
|
+
@S3 = s3
|
2719
|
+
end
|
2720
|
+
|
2721
|
+
def deserialize(params)
|
2722
|
+
@ZoneId = params['ZoneId']
|
2723
|
+
@TaskName = params['TaskName']
|
2724
|
+
@TaskType = params['TaskType']
|
2725
|
+
@EntityList = params['EntityList']
|
2726
|
+
@LogType = params['LogType']
|
2727
|
+
@Area = params['Area']
|
2728
|
+
@Fields = params['Fields']
|
2729
|
+
unless params['CustomFields'].nil?
|
2730
|
+
@CustomFields = []
|
2731
|
+
params['CustomFields'].each do |i|
|
2732
|
+
customfield_tmp = CustomField.new
|
2733
|
+
customfield_tmp.deserialize(i)
|
2734
|
+
@CustomFields << customfield_tmp
|
2735
|
+
end
|
2736
|
+
end
|
2737
|
+
unless params['DeliveryConditions'].nil?
|
2738
|
+
@DeliveryConditions = []
|
2739
|
+
params['DeliveryConditions'].each do |i|
|
2740
|
+
deliverycondition_tmp = DeliveryCondition.new
|
2741
|
+
deliverycondition_tmp.deserialize(i)
|
2742
|
+
@DeliveryConditions << deliverycondition_tmp
|
2743
|
+
end
|
2744
|
+
end
|
2745
|
+
@Sample = params['Sample']
|
2746
|
+
unless params['CLS'].nil?
|
2747
|
+
@CLS = CLSTopic.new
|
2748
|
+
@CLS.deserialize(params['CLS'])
|
2749
|
+
end
|
2750
|
+
unless params['CustomEndpoint'].nil?
|
2751
|
+
@CustomEndpoint = CustomEndpoint.new
|
2752
|
+
@CustomEndpoint.deserialize(params['CustomEndpoint'])
|
2753
|
+
end
|
2754
|
+
unless params['S3'].nil?
|
2755
|
+
@S3 = S3.new
|
2756
|
+
@S3.deserialize(params['S3'])
|
2757
|
+
end
|
2758
|
+
end
|
2759
|
+
end
|
2760
|
+
|
2761
|
+
# CreateRealtimeLogDeliveryTask返回参数结构体
|
2762
|
+
class CreateRealtimeLogDeliveryTaskResponse < TencentCloud::Common::AbstractModel
|
2763
|
+
# @param TaskId: 创建成功的任务ID。
|
2764
|
+
# @type TaskId: String
|
2765
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2766
|
+
# @type RequestId: String
|
2767
|
+
|
2768
|
+
attr_accessor :TaskId, :RequestId
|
2769
|
+
|
2770
|
+
def initialize(taskid=nil, requestid=nil)
|
2771
|
+
@TaskId = taskid
|
2772
|
+
@RequestId = requestid
|
2773
|
+
end
|
2774
|
+
|
2775
|
+
def deserialize(params)
|
2776
|
+
@TaskId = params['TaskId']
|
2777
|
+
@RequestId = params['RequestId']
|
2778
|
+
end
|
2779
|
+
end
|
2780
|
+
|
2601
2781
|
# CreateRule请求参数结构体
|
2602
2782
|
class CreateRuleRequest < TencentCloud::Common::AbstractModel
|
2603
2783
|
# @param ZoneId: 站点 ID。
|
@@ -2779,10 +2959,10 @@ module TencentCloud
|
|
2779
2959
|
|
2780
2960
|
attr_accessor :Type, :ZoneName, :Area, :PlanId, :AliasZoneName, :Tags, :AllowDuplicates, :JumpStart
|
2781
2961
|
extend Gem::Deprecate
|
2782
|
-
deprecate :AllowDuplicates, :none, 2024,
|
2783
|
-
deprecate :AllowDuplicates=, :none, 2024,
|
2784
|
-
deprecate :JumpStart, :none, 2024,
|
2785
|
-
deprecate :JumpStart=, :none, 2024,
|
2962
|
+
deprecate :AllowDuplicates, :none, 2024, 3
|
2963
|
+
deprecate :AllowDuplicates=, :none, 2024, 3
|
2964
|
+
deprecate :JumpStart, :none, 2024, 3
|
2965
|
+
deprecate :JumpStart=, :none, 2024, 3
|
2786
2966
|
|
2787
2967
|
def initialize(type=nil, zonename=nil, area=nil, planid=nil, aliaszonename=nil, tags=nil, allowduplicates=nil, jumpstart=nil)
|
2788
2968
|
@Type = type
|
@@ -2848,6 +3028,81 @@ module TencentCloud
|
|
2848
3028
|
end
|
2849
3029
|
end
|
2850
3030
|
|
3031
|
+
# 实时日志投递到自定义 HTTP(S) 接口的配置信息。
|
3032
|
+
class CustomEndpoint < TencentCloud::Common::AbstractModel
|
3033
|
+
# @param Url: 实时日志投递的自定义 HTTP 接口地址,暂仅支持 HTTP/HTTPS 协议。
|
3034
|
+
# @type Url: String
|
3035
|
+
# @param AccessId: 填写自定义的 SecretId 用于生成加密签名,如果源站需要鉴权此参数必填。
|
3036
|
+
# @type AccessId: String
|
3037
|
+
# @param AccessKey: 填写自定义的 SecretKey 用于生成加密签名,如果源站需要鉴权此参数必填。
|
3038
|
+
# @type AccessKey: String
|
3039
|
+
# @param CompressType: 数据压缩类型,取值有: <li> gzip:使用 gzip 方式压缩。</li>不填表示不启用压缩。
|
3040
|
+
# @type CompressType: String
|
3041
|
+
# @param Protocol: POST 请求投递日志时,使用的应用层协议类型,取值有:
|
3042
|
+
# <li>http:HTTP 协议;</li>
|
3043
|
+
# <li>https:HTTPS 协议。</li>如果不填默认根据填写的 URL 地址解析出协议类型。
|
3044
|
+
# @type Protocol: String
|
3045
|
+
# @param Headers: 投递日志时携带的自定义请求头,注意 Content-Type、Accept-Encoding 不支持添加修改。
|
3046
|
+
# @type Headers: Array
|
3047
|
+
|
3048
|
+
attr_accessor :Url, :AccessId, :AccessKey, :CompressType, :Protocol, :Headers
|
3049
|
+
|
3050
|
+
def initialize(url=nil, accessid=nil, accesskey=nil, compresstype=nil, protocol=nil, headers=nil)
|
3051
|
+
@Url = url
|
3052
|
+
@AccessId = accessid
|
3053
|
+
@AccessKey = accesskey
|
3054
|
+
@CompressType = compresstype
|
3055
|
+
@Protocol = protocol
|
3056
|
+
@Headers = headers
|
3057
|
+
end
|
3058
|
+
|
3059
|
+
def deserialize(params)
|
3060
|
+
@Url = params['Url']
|
3061
|
+
@AccessId = params['AccessId']
|
3062
|
+
@AccessKey = params['AccessKey']
|
3063
|
+
@CompressType = params['CompressType']
|
3064
|
+
@Protocol = params['Protocol']
|
3065
|
+
unless params['Headers'].nil?
|
3066
|
+
@Headers = []
|
3067
|
+
params['Headers'].each do |i|
|
3068
|
+
header_tmp = Header.new
|
3069
|
+
header_tmp.deserialize(i)
|
3070
|
+
@Headers << header_tmp
|
3071
|
+
end
|
3072
|
+
end
|
3073
|
+
end
|
3074
|
+
end
|
3075
|
+
|
3076
|
+
# 实时日志投递任务中的自定义日志字段。
|
3077
|
+
class CustomField < TencentCloud::Common::AbstractModel
|
3078
|
+
# @param Name: 从 HTTP 请求和响应中的指定位置提取数据,取值有:
|
3079
|
+
# <li>ReqHeader:从 HTTP 请求头中提取指定字段值;</li>
|
3080
|
+
# <li>RspHeader:从 HTTP 响应头中提取指定字段值;</li>
|
3081
|
+
# <li>Cookie: 从 Cookie 中提取指定字段值。</li>
|
3082
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3083
|
+
# @type Name: String
|
3084
|
+
# @param Value: 需要提取值的参数名称,例如:Accept-Language。
|
3085
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3086
|
+
# @type Value: String
|
3087
|
+
# @param Enabled: 是否投递该字段,不填表示不投递此字段。
|
3088
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3089
|
+
# @type Enabled: Boolean
|
3090
|
+
|
3091
|
+
attr_accessor :Name, :Value, :Enabled
|
3092
|
+
|
3093
|
+
def initialize(name=nil, value=nil, enabled=nil)
|
3094
|
+
@Name = name
|
3095
|
+
@Value = value
|
3096
|
+
@Enabled = enabled
|
3097
|
+
end
|
3098
|
+
|
3099
|
+
def deserialize(params)
|
3100
|
+
@Name = params['Name']
|
3101
|
+
@Value = params['Value']
|
3102
|
+
@Enabled = params['Enabled']
|
3103
|
+
end
|
3104
|
+
end
|
3105
|
+
|
2851
3106
|
# DDoS配置
|
2852
3107
|
class DDoS < TencentCloud::Common::AbstractModel
|
2853
3108
|
# @param Switch: 开关,取值有:
|
@@ -3327,6 +3582,42 @@ module TencentCloud
|
|
3327
3582
|
end
|
3328
3583
|
end
|
3329
3584
|
|
3585
|
+
# DeleteRealtimeLogDeliveryTask请求参数结构体
|
3586
|
+
class DeleteRealtimeLogDeliveryTaskRequest < TencentCloud::Common::AbstractModel
|
3587
|
+
# @param ZoneId: 站点 ID。
|
3588
|
+
# @type ZoneId: String
|
3589
|
+
# @param TaskId: 实时日志投递任务 ID。
|
3590
|
+
# @type TaskId: String
|
3591
|
+
|
3592
|
+
attr_accessor :ZoneId, :TaskId
|
3593
|
+
|
3594
|
+
def initialize(zoneid=nil, taskid=nil)
|
3595
|
+
@ZoneId = zoneid
|
3596
|
+
@TaskId = taskid
|
3597
|
+
end
|
3598
|
+
|
3599
|
+
def deserialize(params)
|
3600
|
+
@ZoneId = params['ZoneId']
|
3601
|
+
@TaskId = params['TaskId']
|
3602
|
+
end
|
3603
|
+
end
|
3604
|
+
|
3605
|
+
# DeleteRealtimeLogDeliveryTask返回参数结构体
|
3606
|
+
class DeleteRealtimeLogDeliveryTaskResponse < TencentCloud::Common::AbstractModel
|
3607
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3608
|
+
# @type RequestId: String
|
3609
|
+
|
3610
|
+
attr_accessor :RequestId
|
3611
|
+
|
3612
|
+
def initialize(requestid=nil)
|
3613
|
+
@RequestId = requestid
|
3614
|
+
end
|
3615
|
+
|
3616
|
+
def deserialize(params)
|
3617
|
+
@RequestId = params['RequestId']
|
3618
|
+
end
|
3619
|
+
end
|
3620
|
+
|
3330
3621
|
# DeleteRules请求参数结构体
|
3331
3622
|
class DeleteRulesRequest < TencentCloud::Common::AbstractModel
|
3332
3623
|
# @param ZoneId: 站点 ID。
|
@@ -3467,6 +3758,32 @@ module TencentCloud
|
|
3467
3758
|
end
|
3468
3759
|
end
|
3469
3760
|
|
3761
|
+
# 实时日志投递条件,用于定义投递日志范围。DeliveryCondition 数组内多个项的关系为“或”,内层 Conditions 数组内多个项的关系为“且”。
|
3762
|
+
class DeliveryCondition < TencentCloud::Common::AbstractModel
|
3763
|
+
# @param Conditions: 日志过滤条件,详细的过滤条件如下:
|
3764
|
+
# <li>EdgeResponseStatusCode:按照 EdgeOne 节点响应返回给客户端的状态码进行过滤。<br> 支持运算符:equal、great、less、great_equal、less_equal<br> 取值范围:任意大于等于 0 的整数</li>
|
3765
|
+
# <li>OriginResponseStatusCode:按照源站响应状态码进行过滤。<br> 支持运算符:equal、great、less、great_equal、less_equal<br> 取值范围:任意大于等于 -1 的整数</li>
|
3766
|
+
# <li>SecurityAction:按照请求命中安全规则后的最终处置动作进行过滤。<br> 支持运算符:equal<br> 可选项如下:<br> -:未知/未命中<br> Monitor:观察<br> JSChallenge:JavaScript 挑战<br> Deny:拦截<br> Allow:放行<br> BlockIP:IP 封禁<br> Redirect:重定向<br> ReturnCustomPage:返回自定义页面<br> ManagedChallenge:托管挑战<br> Silence:静默<br> LongDelay:长时间等待后响应<br> ShortDelay:短时间等待后响应</li>
|
3767
|
+
# @type Conditions: Array
|
3768
|
+
|
3769
|
+
attr_accessor :Conditions
|
3770
|
+
|
3771
|
+
def initialize(conditions=nil)
|
3772
|
+
@Conditions = conditions
|
3773
|
+
end
|
3774
|
+
|
3775
|
+
def deserialize(params)
|
3776
|
+
unless params['Conditions'].nil?
|
3777
|
+
@Conditions = []
|
3778
|
+
params['Conditions'].each do |i|
|
3779
|
+
querycondition_tmp = QueryCondition.new
|
3780
|
+
querycondition_tmp.deserialize(i)
|
3781
|
+
@Conditions << querycondition_tmp
|
3782
|
+
end
|
3783
|
+
end
|
3784
|
+
end
|
3785
|
+
end
|
3786
|
+
|
3470
3787
|
# DeployConfigGroupVersion请求参数结构体
|
3471
3788
|
class DeployConfigGroupVersionRequest < TencentCloud::Common::AbstractModel
|
3472
3789
|
# @param ZoneId: 站点 ID。
|
@@ -4663,7 +4980,7 @@ module TencentCloud
|
|
4663
4980
|
# DescribeIdentifications请求参数结构体
|
4664
4981
|
class DescribeIdentificationsRequest < TencentCloud::Common::AbstractModel
|
4665
4982
|
# @param Filters: 过滤条件,Filters.Values的上限为20。详细的过滤条件如下:
|
4666
|
-
# <li>zone-name
|
4983
|
+
# <li>zone-name:按照站点名称进行过滤。</li>
|
4667
4984
|
# @type Filters: Array
|
4668
4985
|
# @param Offset: 分页查询偏移量。默认值:0。
|
4669
4986
|
# @type Offset: Integer
|
@@ -5255,6 +5572,76 @@ module TencentCloud
|
|
5255
5572
|
end
|
5256
5573
|
end
|
5257
5574
|
|
5575
|
+
# DescribeRealtimeLogDeliveryTasks请求参数结构体
|
5576
|
+
class DescribeRealtimeLogDeliveryTasksRequest < TencentCloud::Common::AbstractModel
|
5577
|
+
# @param ZoneId: 站点 ID。
|
5578
|
+
# @type ZoneId: String
|
5579
|
+
# @param Offset: 分页查询偏移量。默认值:0。
|
5580
|
+
# @type Offset: Integer
|
5581
|
+
# @param Limit: 分页查询限制数目。默认值:20,最大值:1000。
|
5582
|
+
# @type Limit: Integer
|
5583
|
+
# @param Filters: 过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 zone-id 下所有实时日志投递任务信息。详细的过滤条件如下:
|
5584
|
+
# <li>task-id:按照实时日志投递任务 ID进行过滤。不支持模糊查询。</li>
|
5585
|
+
# <li>task-name:按照实时日志投递任务名称进行过滤。支持模糊查询,使用模糊查询时,仅支持填写一个实时日志投递任务名称。</li>
|
5586
|
+
# <li>entity-list:按照实时日志投递任务对应的实体进行过滤。不支持模糊查询。示例值:domain.example.com 或者 sid-2s69eb5wcms7。</li>
|
5587
|
+
# <li>task-type:按照实时日志投递任务类型进行过滤。不支持模糊查询。可选项如下:<br> cls: 推送到腾讯云 CLS;<br> custom_endpoint:推送到自定义 HTTP(S) 地址;<br> s3:推送到 AWS S3 兼容存储桶地址。</li>
|
5588
|
+
# @type Filters: Array
|
5589
|
+
|
5590
|
+
attr_accessor :ZoneId, :Offset, :Limit, :Filters
|
5591
|
+
|
5592
|
+
def initialize(zoneid=nil, offset=nil, limit=nil, filters=nil)
|
5593
|
+
@ZoneId = zoneid
|
5594
|
+
@Offset = offset
|
5595
|
+
@Limit = limit
|
5596
|
+
@Filters = filters
|
5597
|
+
end
|
5598
|
+
|
5599
|
+
def deserialize(params)
|
5600
|
+
@ZoneId = params['ZoneId']
|
5601
|
+
@Offset = params['Offset']
|
5602
|
+
@Limit = params['Limit']
|
5603
|
+
unless params['Filters'].nil?
|
5604
|
+
@Filters = []
|
5605
|
+
params['Filters'].each do |i|
|
5606
|
+
advancedfilter_tmp = AdvancedFilter.new
|
5607
|
+
advancedfilter_tmp.deserialize(i)
|
5608
|
+
@Filters << advancedfilter_tmp
|
5609
|
+
end
|
5610
|
+
end
|
5611
|
+
end
|
5612
|
+
end
|
5613
|
+
|
5614
|
+
# DescribeRealtimeLogDeliveryTasks返回参数结构体
|
5615
|
+
class DescribeRealtimeLogDeliveryTasksResponse < TencentCloud::Common::AbstractModel
|
5616
|
+
# @param TotalCount: 符合查询条件的实时日志投递任务个数。
|
5617
|
+
# @type TotalCount: Integer
|
5618
|
+
# @param RealtimeLogDeliveryTasks: 符合查询条件的所有实时日志投递任务列表。
|
5619
|
+
# @type RealtimeLogDeliveryTasks: Array
|
5620
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5621
|
+
# @type RequestId: String
|
5622
|
+
|
5623
|
+
attr_accessor :TotalCount, :RealtimeLogDeliveryTasks, :RequestId
|
5624
|
+
|
5625
|
+
def initialize(totalcount=nil, realtimelogdeliverytasks=nil, requestid=nil)
|
5626
|
+
@TotalCount = totalcount
|
5627
|
+
@RealtimeLogDeliveryTasks = realtimelogdeliverytasks
|
5628
|
+
@RequestId = requestid
|
5629
|
+
end
|
5630
|
+
|
5631
|
+
def deserialize(params)
|
5632
|
+
@TotalCount = params['TotalCount']
|
5633
|
+
unless params['RealtimeLogDeliveryTasks'].nil?
|
5634
|
+
@RealtimeLogDeliveryTasks = []
|
5635
|
+
params['RealtimeLogDeliveryTasks'].each do |i|
|
5636
|
+
realtimelogdeliverytask_tmp = RealtimeLogDeliveryTask.new
|
5637
|
+
realtimelogdeliverytask_tmp.deserialize(i)
|
5638
|
+
@RealtimeLogDeliveryTasks << realtimelogdeliverytask_tmp
|
5639
|
+
end
|
5640
|
+
end
|
5641
|
+
@RequestId = params['RequestId']
|
5642
|
+
end
|
5643
|
+
end
|
5644
|
+
|
5258
5645
|
# DescribeRules请求参数结构体
|
5259
5646
|
class DescribeRulesRequest < TencentCloud::Common::AbstractModel
|
5260
5647
|
# @param ZoneId: 站点 ID。
|
@@ -8184,8 +8571,8 @@ module TencentCloud
|
|
8184
8571
|
|
8185
8572
|
attr_accessor :ZoneId, :Hosts, :Mode, :ServerCertInfo, :ApplyType
|
8186
8573
|
extend Gem::Deprecate
|
8187
|
-
deprecate :ApplyType, :none, 2024,
|
8188
|
-
deprecate :ApplyType=, :none, 2024,
|
8574
|
+
deprecate :ApplyType, :none, 2024, 3
|
8575
|
+
deprecate :ApplyType=, :none, 2024, 3
|
8189
8576
|
|
8190
8577
|
def initialize(zoneid=nil, hosts=nil, mode=nil, servercertinfo=nil, applytype=nil)
|
8191
8578
|
@ZoneId = zoneid
|
@@ -8472,6 +8859,102 @@ module TencentCloud
|
|
8472
8859
|
end
|
8473
8860
|
end
|
8474
8861
|
|
8862
|
+
# ModifyRealtimeLogDeliveryTask请求参数结构体
|
8863
|
+
class ModifyRealtimeLogDeliveryTaskRequest < TencentCloud::Common::AbstractModel
|
8864
|
+
# @param ZoneId: 站点 ID。
|
8865
|
+
# @type ZoneId: String
|
8866
|
+
# @param TaskId: 实时日志投递任务 ID。
|
8867
|
+
# @type TaskId: String
|
8868
|
+
# @param TaskName: 实时日志投递任务的名称,格式为数字、英文、-和_组合,最多 200 个字符。不填保持原有配置。
|
8869
|
+
# @type TaskName: String
|
8870
|
+
# @param DeliveryStatus: 实时日志投递任务的状态,取值有:
|
8871
|
+
# <li>enabled: 启用;</li>
|
8872
|
+
# <li>disabled: 停用。</li>不填保持原有配置。
|
8873
|
+
# @type DeliveryStatus: String
|
8874
|
+
# @param EntityList: 实时日志投递任务对应的实体(七层域名或者四层代理实例)列表。取值示例如下:
|
8875
|
+
# <li>七层域名:domain.example.com;</li>
|
8876
|
+
# <li>四层代理实例:sid-2s69eb5wcms7。</li>不填保持原有配置。
|
8877
|
+
# @type EntityList: Array
|
8878
|
+
# @param Fields: 投递的预设字段列表。不填保持原有配置。
|
8879
|
+
# @type Fields: Array
|
8880
|
+
# @param CustomFields: 投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie 中提取指定字段值。自定义字段名称不能重复,且最多不能超过 200 个字段。不填保持原有配置。
|
8881
|
+
# @type CustomFields: Array
|
8882
|
+
# @param DeliveryConditions: 日志投递的过滤条件。不填表示投递全量日志。
|
8883
|
+
# @type DeliveryConditions: Array
|
8884
|
+
# @param Sample: 采样比例,采用千分制,取值范围为1-1000,例如:填写 605 表示采样比例为 60.5%。不填保持原有配置。
|
8885
|
+
# @type Sample: Integer
|
8886
|
+
# @param CustomEndpoint: 自定义 HTTP 服务的配置信息,不填保持原有配置。
|
8887
|
+
# @type CustomEndpoint: :class:`Tencentcloud::Teo.v20220901.models.CustomEndpoint`
|
8888
|
+
# @param S3: AWS S3 兼容存储桶的配置信息,不填保持原有配置。
|
8889
|
+
# @type S3: :class:`Tencentcloud::Teo.v20220901.models.S3`
|
8890
|
+
|
8891
|
+
attr_accessor :ZoneId, :TaskId, :TaskName, :DeliveryStatus, :EntityList, :Fields, :CustomFields, :DeliveryConditions, :Sample, :CustomEndpoint, :S3
|
8892
|
+
|
8893
|
+
def initialize(zoneid=nil, taskid=nil, taskname=nil, deliverystatus=nil, entitylist=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, customendpoint=nil, s3=nil)
|
8894
|
+
@ZoneId = zoneid
|
8895
|
+
@TaskId = taskid
|
8896
|
+
@TaskName = taskname
|
8897
|
+
@DeliveryStatus = deliverystatus
|
8898
|
+
@EntityList = entitylist
|
8899
|
+
@Fields = fields
|
8900
|
+
@CustomFields = customfields
|
8901
|
+
@DeliveryConditions = deliveryconditions
|
8902
|
+
@Sample = sample
|
8903
|
+
@CustomEndpoint = customendpoint
|
8904
|
+
@S3 = s3
|
8905
|
+
end
|
8906
|
+
|
8907
|
+
def deserialize(params)
|
8908
|
+
@ZoneId = params['ZoneId']
|
8909
|
+
@TaskId = params['TaskId']
|
8910
|
+
@TaskName = params['TaskName']
|
8911
|
+
@DeliveryStatus = params['DeliveryStatus']
|
8912
|
+
@EntityList = params['EntityList']
|
8913
|
+
@Fields = params['Fields']
|
8914
|
+
unless params['CustomFields'].nil?
|
8915
|
+
@CustomFields = []
|
8916
|
+
params['CustomFields'].each do |i|
|
8917
|
+
customfield_tmp = CustomField.new
|
8918
|
+
customfield_tmp.deserialize(i)
|
8919
|
+
@CustomFields << customfield_tmp
|
8920
|
+
end
|
8921
|
+
end
|
8922
|
+
unless params['DeliveryConditions'].nil?
|
8923
|
+
@DeliveryConditions = []
|
8924
|
+
params['DeliveryConditions'].each do |i|
|
8925
|
+
deliverycondition_tmp = DeliveryCondition.new
|
8926
|
+
deliverycondition_tmp.deserialize(i)
|
8927
|
+
@DeliveryConditions << deliverycondition_tmp
|
8928
|
+
end
|
8929
|
+
end
|
8930
|
+
@Sample = params['Sample']
|
8931
|
+
unless params['CustomEndpoint'].nil?
|
8932
|
+
@CustomEndpoint = CustomEndpoint.new
|
8933
|
+
@CustomEndpoint.deserialize(params['CustomEndpoint'])
|
8934
|
+
end
|
8935
|
+
unless params['S3'].nil?
|
8936
|
+
@S3 = S3.new
|
8937
|
+
@S3.deserialize(params['S3'])
|
8938
|
+
end
|
8939
|
+
end
|
8940
|
+
end
|
8941
|
+
|
8942
|
+
# ModifyRealtimeLogDeliveryTask返回参数结构体
|
8943
|
+
class ModifyRealtimeLogDeliveryTaskResponse < TencentCloud::Common::AbstractModel
|
8944
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8945
|
+
# @type RequestId: String
|
8946
|
+
|
8947
|
+
attr_accessor :RequestId
|
8948
|
+
|
8949
|
+
def initialize(requestid=nil)
|
8950
|
+
@RequestId = requestid
|
8951
|
+
end
|
8952
|
+
|
8953
|
+
def deserialize(params)
|
8954
|
+
@RequestId = params['RequestId']
|
8955
|
+
end
|
8956
|
+
end
|
8957
|
+
|
8475
8958
|
# ModifyRule请求参数结构体
|
8476
8959
|
class ModifyRuleRequest < TencentCloud::Common::AbstractModel
|
8477
8960
|
# @param ZoneId: 站点 ID。
|
@@ -9927,6 +10410,108 @@ module TencentCloud
|
|
9927
10410
|
end
|
9928
10411
|
end
|
9929
10412
|
|
10413
|
+
# 实时日志投递任务。
|
10414
|
+
class RealtimeLogDeliveryTask < TencentCloud::Common::AbstractModel
|
10415
|
+
# @param TaskId: 实时日志投递任务 ID。
|
10416
|
+
# @type TaskId: String
|
10417
|
+
# @param TaskName: 实时日志投递任务的名称。
|
10418
|
+
# @type TaskName: String
|
10419
|
+
# @param DeliveryStatus: 实时日志投递任务的状态,取值有: <li>enabled: 已启用;</li> <li>disabled: 已停用;</li><li>deleted: 异常删除状态,请检查目的地腾讯云 CLS 日志集/日志主题是否已被删除。</li>
|
10420
|
+
# @type DeliveryStatus: String
|
10421
|
+
# @param TaskType: 实时日志投递任务类型,取值有: <li>cls: 推送到腾讯云 CLS;</li> <li>custom_endpoint:推送到自定义 HTTP(S) 地址;</li> <li>s3:推送到 AWS S3 兼容存储桶地址。</li>
|
10422
|
+
# @type TaskType: String
|
10423
|
+
# @param EntityList: 实时日志投递任务对应的实体(七层域名或者四层代理实例)列表。取值示例如下: <li>七层域名:domain.example.com;</li> <li>四层代理实例:sid-2s69eb5wcms7。</li>
|
10424
|
+
# @type EntityList: Array
|
10425
|
+
# @param LogType: 数据投递类型,取值有: <li>domain:站点加速日志;</li> <li>application:四层代理日志;</li> <li>web-rateLiming:速率限制和 CC 攻击防护日志;</li> <li>web-attack:托管规则日志;</li> <li>web-rule:自定义规则日志;</li> <li>web-bot:Bot管理日志。</li>
|
10426
|
+
# @type LogType: String
|
10427
|
+
# @param Area: 数据投递区域,取值有: <li>mainland:中国大陆境内;</li> <li>overseas:全球(不含中国大陆)。</li>
|
10428
|
+
# @type Area: String
|
10429
|
+
# @param Fields: 投递的预设字段列表。
|
10430
|
+
# @type Fields: Array
|
10431
|
+
# @param CustomFields: 投递的自定义字段列表。
|
10432
|
+
# @type CustomFields: Array
|
10433
|
+
# @param DeliveryConditions: 日志投递的过滤条件。
|
10434
|
+
# @type DeliveryConditions: Array
|
10435
|
+
# @param Sample: 采样比例,采用千分制,取值范围为1-1000,例如:605 表示采样比例为 60.5%。
|
10436
|
+
# @type Sample: Integer
|
10437
|
+
# @param CLS: CLS 的配置信息。
|
10438
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10439
|
+
# @type CLS: :class:`Tencentcloud::Teo.v20220901.models.CLSTopic`
|
10440
|
+
# @param CustomEndpoint: 自定义 HTTP 服务的配置信息。
|
10441
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10442
|
+
# @type CustomEndpoint: :class:`Tencentcloud::Teo.v20220901.models.CustomEndpoint`
|
10443
|
+
# @param S3: AWS S3 兼容存储桶的配置信息。
|
10444
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10445
|
+
# @type S3: :class:`Tencentcloud::Teo.v20220901.models.S3`
|
10446
|
+
# @param CreateTime: 创建时间。
|
10447
|
+
# @type CreateTime: String
|
10448
|
+
# @param UpdateTime: 更新时间。
|
10449
|
+
# @type UpdateTime: String
|
10450
|
+
|
10451
|
+
attr_accessor :TaskId, :TaskName, :DeliveryStatus, :TaskType, :EntityList, :LogType, :Area, :Fields, :CustomFields, :DeliveryConditions, :Sample, :CLS, :CustomEndpoint, :S3, :CreateTime, :UpdateTime
|
10452
|
+
|
10453
|
+
def initialize(taskid=nil, taskname=nil, deliverystatus=nil, tasktype=nil, entitylist=nil, logtype=nil, area=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, cls=nil, customendpoint=nil, s3=nil, createtime=nil, updatetime=nil)
|
10454
|
+
@TaskId = taskid
|
10455
|
+
@TaskName = taskname
|
10456
|
+
@DeliveryStatus = deliverystatus
|
10457
|
+
@TaskType = tasktype
|
10458
|
+
@EntityList = entitylist
|
10459
|
+
@LogType = logtype
|
10460
|
+
@Area = area
|
10461
|
+
@Fields = fields
|
10462
|
+
@CustomFields = customfields
|
10463
|
+
@DeliveryConditions = deliveryconditions
|
10464
|
+
@Sample = sample
|
10465
|
+
@CLS = cls
|
10466
|
+
@CustomEndpoint = customendpoint
|
10467
|
+
@S3 = s3
|
10468
|
+
@CreateTime = createtime
|
10469
|
+
@UpdateTime = updatetime
|
10470
|
+
end
|
10471
|
+
|
10472
|
+
def deserialize(params)
|
10473
|
+
@TaskId = params['TaskId']
|
10474
|
+
@TaskName = params['TaskName']
|
10475
|
+
@DeliveryStatus = params['DeliveryStatus']
|
10476
|
+
@TaskType = params['TaskType']
|
10477
|
+
@EntityList = params['EntityList']
|
10478
|
+
@LogType = params['LogType']
|
10479
|
+
@Area = params['Area']
|
10480
|
+
@Fields = params['Fields']
|
10481
|
+
unless params['CustomFields'].nil?
|
10482
|
+
@CustomFields = []
|
10483
|
+
params['CustomFields'].each do |i|
|
10484
|
+
customfield_tmp = CustomField.new
|
10485
|
+
customfield_tmp.deserialize(i)
|
10486
|
+
@CustomFields << customfield_tmp
|
10487
|
+
end
|
10488
|
+
end
|
10489
|
+
unless params['DeliveryConditions'].nil?
|
10490
|
+
@DeliveryConditions = []
|
10491
|
+
params['DeliveryConditions'].each do |i|
|
10492
|
+
deliverycondition_tmp = DeliveryCondition.new
|
10493
|
+
deliverycondition_tmp.deserialize(i)
|
10494
|
+
@DeliveryConditions << deliverycondition_tmp
|
10495
|
+
end
|
10496
|
+
end
|
10497
|
+
@Sample = params['Sample']
|
10498
|
+
unless params['CLS'].nil?
|
10499
|
+
@CLS = CLSTopic.new
|
10500
|
+
@CLS.deserialize(params['CLS'])
|
10501
|
+
end
|
10502
|
+
unless params['CustomEndpoint'].nil?
|
10503
|
+
@CustomEndpoint = CustomEndpoint.new
|
10504
|
+
@CustomEndpoint.deserialize(params['CustomEndpoint'])
|
10505
|
+
end
|
10506
|
+
unless params['S3'].nil?
|
10507
|
+
@S3 = S3.new
|
10508
|
+
@S3.deserialize(params['S3'])
|
10509
|
+
end
|
10510
|
+
@CreateTime = params['CreateTime']
|
10511
|
+
@UpdateTime = params['UpdateTime']
|
10512
|
+
end
|
10513
|
+
end
|
10514
|
+
|
9930
10515
|
# 计费资源
|
9931
10516
|
class Resource < TencentCloud::Common::AbstractModel
|
9932
10517
|
# @param Id: 资源 ID。
|
@@ -10222,8 +10807,8 @@ module TencentCloud
|
|
10222
10807
|
|
10223
10808
|
attr_accessor :Operator, :Target, :Values, :IgnoreCase, :Name, :IgnoreNameCase
|
10224
10809
|
extend Gem::Deprecate
|
10225
|
-
deprecate :IgnoreNameCase, :none, 2024,
|
10226
|
-
deprecate :IgnoreNameCase=, :none, 2024,
|
10810
|
+
deprecate :IgnoreNameCase, :none, 2024, 3
|
10811
|
+
deprecate :IgnoreNameCase=, :none, 2024, 3
|
10227
10812
|
|
10228
10813
|
def initialize(operator=nil, target=nil, values=nil, ignorecase=nil, name=nil, ignorenamecase=nil)
|
10229
10814
|
@Operator = operator
|
@@ -10486,6 +11071,42 @@ module TencentCloud
|
|
10486
11071
|
end
|
10487
11072
|
end
|
10488
11073
|
|
11074
|
+
# 实时日志投递到 AWS S3 兼容存储桶的配置信息。
|
11075
|
+
class S3 < TencentCloud::Common::AbstractModel
|
11076
|
+
# @param Endpoint: 不包含存储桶名称或路径的 URL,例如:`https://storage.googleapis.com`、`https://s3.ap-northeast-2.amazonaws.com`、`https://cos.ap-nanjing.myqcloud.com`。
|
11077
|
+
# @type Endpoint: String
|
11078
|
+
# @param Region: 存储桶所在的地域,例如:`ap-northeast-2`。
|
11079
|
+
# @type Region: String
|
11080
|
+
# @param Bucket: 存储桶名称和日志存储目录,例如:`your_bucket_name/EO-logs/`。如果存储桶中无此目录则会自动创建。
|
11081
|
+
# @type Bucket: String
|
11082
|
+
# @param AccessId: 访问存储桶使用的 Access Key ID。
|
11083
|
+
# @type AccessId: String
|
11084
|
+
# @param AccessKey: 访问存储桶使用的 secret key。
|
11085
|
+
# @type AccessKey: String
|
11086
|
+
# @param CompressType: 数据压缩类型,取值有: <li> gzip:gzip压缩。</li>不填表示不启用压缩。
|
11087
|
+
# @type CompressType: String
|
11088
|
+
|
11089
|
+
attr_accessor :Endpoint, :Region, :Bucket, :AccessId, :AccessKey, :CompressType
|
11090
|
+
|
11091
|
+
def initialize(endpoint=nil, region=nil, bucket=nil, accessid=nil, accesskey=nil, compresstype=nil)
|
11092
|
+
@Endpoint = endpoint
|
11093
|
+
@Region = region
|
11094
|
+
@Bucket = bucket
|
11095
|
+
@AccessId = accessid
|
11096
|
+
@AccessKey = accesskey
|
11097
|
+
@CompressType = compresstype
|
11098
|
+
end
|
11099
|
+
|
11100
|
+
def deserialize(params)
|
11101
|
+
@Endpoint = params['Endpoint']
|
11102
|
+
@Region = params['Region']
|
11103
|
+
@Bucket = params['Bucket']
|
11104
|
+
@AccessId = params['AccessId']
|
11105
|
+
@AccessKey = params['AccessKey']
|
11106
|
+
@CompressType = params['CompressType']
|
11107
|
+
end
|
11108
|
+
end
|
11109
|
+
|
10489
11110
|
# 安全数据Entry返回值
|
10490
11111
|
class SecEntry < TencentCloud::Common::AbstractModel
|
10491
11112
|
# @param Key: 查询维度值。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-teo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.776
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|