tencentcloud-sdk-teo 3.0.810 → 3.0.811

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20220901/models.rb +93 -15
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68407cdb948aab1e7020f4d42f8aef4120a5b5f4
4
- data.tar.gz: c835ce61eb269c780d01c06cf84b02070f4c94b4
3
+ metadata.gz: a9b04ec19a43f440735a766053c83f694c6454aa
4
+ data.tar.gz: fe8e81b9cf97f0abbd0aac17523d8bf1f1c5b8f9
5
5
  SHA512:
6
- metadata.gz: d7ae74292b21d59ad8eb2d1adaee7aa075a1fb7260301d49ef78872fa2fc19a5c100049798c899e3f1a65e76ab33aa84c4de249f128e28d4201103a2dd4d87ab
7
- data.tar.gz: 43115c9b1c348350712507ae0dd2cc7f3faa05accdf1d84731bb03455fd430a90b2353d942c1f7971479a58b19b5a6447a23ee06735e37dc9bf9e7292f58dce7
6
+ metadata.gz: 3a379c00a4c5309bca7b70dfc26b7afd52f555ffe5f107279bc3f8f385199f61347131df284f17442c032746ebc1ed8837d1f65008a7e978a21550b7e51d63e7
7
+ data.tar.gz: 3ed4557d48fbedf8aa87313561423fbcf56e6a0e6d332fef7f8234b807aad3b1451f0347c07af15d70cdfb7b1bfce7523e3830643beb16ed48fb47a45f8f789d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.810
1
+ 3.0.811
@@ -2699,6 +2699,10 @@ module TencentCloud
2699
2699
  # @type DeliveryConditions: Array
2700
2700
  # @param Sample: 采样比例,采用千分制,取值范围为1-1000,例如:填写 605 表示采样比例为 60.5%。不填表示采样比例为 100%。
2701
2701
  # @type Sample: Integer
2702
+ # @param LogFormat: 日志投递的输出格式。不填表示为默认格式,默认格式逻辑如下:
2703
+ # <li>当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;</li>
2704
+ # <li>当 TaskType 取值为 s3 时,默认格式为 JSON Lines;</li>特别地,当 TaskType 取值为 cls 时,LogFormat.FormatType 的值只能为 json,且 LogFormat 中其他参数将被忽略,建议不传 LogFormat。
2705
+ # @type LogFormat: :class:`Tencentcloud::Teo.v20220901.models.LogFormat`
2702
2706
  # @param CLS: CLS 的配置信息。当 TaskType 取值为 cls 时,该参数必填。
2703
2707
  # @type CLS: :class:`Tencentcloud::Teo.v20220901.models.CLSTopic`
2704
2708
  # @param CustomEndpoint: 自定义 HTTP 服务的配置信息。当 TaskType 取值为 custom_endpoint 时,该参数必填。
@@ -2706,9 +2710,9 @@ module TencentCloud
2706
2710
  # @param S3: AWS S3 兼容存储桶的配置信息。当 TaskType 取值为 s3 时,该参数必填。
2707
2711
  # @type S3: :class:`Tencentcloud::Teo.v20220901.models.S3`
2708
2712
 
2709
- attr_accessor :ZoneId, :TaskName, :TaskType, :EntityList, :LogType, :Area, :Fields, :CustomFields, :DeliveryConditions, :Sample, :CLS, :CustomEndpoint, :S3
2713
+ attr_accessor :ZoneId, :TaskName, :TaskType, :EntityList, :LogType, :Area, :Fields, :CustomFields, :DeliveryConditions, :Sample, :LogFormat, :CLS, :CustomEndpoint, :S3
2710
2714
 
2711
- 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)
2715
+ def initialize(zoneid=nil, taskname=nil, tasktype=nil, entitylist=nil, logtype=nil, area=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, logformat=nil, cls=nil, customendpoint=nil, s3=nil)
2712
2716
  @ZoneId = zoneid
2713
2717
  @TaskName = taskname
2714
2718
  @TaskType = tasktype
@@ -2719,6 +2723,7 @@ module TencentCloud
2719
2723
  @CustomFields = customfields
2720
2724
  @DeliveryConditions = deliveryconditions
2721
2725
  @Sample = sample
2726
+ @LogFormat = logformat
2722
2727
  @CLS = cls
2723
2728
  @CustomEndpoint = customendpoint
2724
2729
  @S3 = s3
@@ -2749,6 +2754,10 @@ module TencentCloud
2749
2754
  end
2750
2755
  end
2751
2756
  @Sample = params['Sample']
2757
+ unless params['LogFormat'].nil?
2758
+ @LogFormat = LogFormat.new
2759
+ @LogFormat.deserialize(params['LogFormat'])
2760
+ end
2752
2761
  unless params['CLS'].nil?
2753
2762
  @CLS = CLSTopic.new
2754
2763
  @CLS.deserialize(params['CLS'])
@@ -3224,8 +3233,8 @@ module TencentCloud
3224
3233
  class DDosProtectionConfig < TencentCloud::Common::AbstractModel
3225
3234
  # @param LevelMainland: 中国大陆地区独立 DDoS 防护的规格。详情请参考 [独立 DDoS 防护相关费用](https://cloud.tencent.com/document/product/1552/94162)
3226
3235
  # <li>PLATFORM:平台默认防护,即不开启独立 DDoS 防护;</li>
3227
- # <li>BASE30_MAX300:开启独立 DDoS 防护,提供 30 Gbps 保底防护带宽,可配置最高 300 Gpbs 弹性防护带宽;</li>
3228
- # <li>BASE60_MAX600:开启独立 DDoS 防护,提供 60 Gbps 保底防护带宽,可配置最高 600 Gpbs 弹性防护带宽。</li>不填写参数时,取默认值 PLATFORM。
3236
+ # <li>BASE30_MAX300:开启独立 DDoS 防护,提供 30 Gbps 保底防护带宽以及 300 Gbps 弹性防护带宽;</li>
3237
+ # <li>BASE60_MAX600:开启独立 DDoS 防护,提供 60 Gbps 保底防护带宽以及 600 Gbps 弹性防护带宽。</li>不填写参数时,取默认值 PLATFORM。
3229
3238
  # @type LevelMainland: String
3230
3239
  # @param MaxBandwidthMainland: 中国大陆地区独立 DDoS 防护的弹性防护带宽配置。
3231
3240
  # 仅当开启中国大陆区域独立 DDos 防护时有效(详见 LevelMainland 参数配置),且取值范围有如下限制:
@@ -3235,7 +3244,7 @@ module TencentCloud
3235
3244
  # @type MaxBandwidthMainland: Integer
3236
3245
  # @param LevelOverseas: 全球(除中国大陆以外)地区独立 DDoS 防护的规格。
3237
3246
  # <li>PLATFORM:平台默认防护,即不开启独立 DDoS 防护;</li>
3238
- # <li>ANYCAST300:开启独立 DDoS 防护,提供合计最大 300 Gbps 防护带宽;</li>
3247
+ # <li>ANYCAST300:开启独立 DDoS 防护,提供 300 Gbps 防护带宽;</li>
3239
3248
  # <li>ANYCAST_ALLIN:开启独立 DDoS 防护,使用全部可用防护资源进行防护。</li>不填写参数时,取默认值 PLATFORM。
3240
3249
  # @type LevelOverseas: String
3241
3250
 
@@ -8134,6 +8143,54 @@ module TencentCloud
8134
8143
  end
8135
8144
  end
8136
8145
 
8146
+ # 实时日志投递的输出格式。您可以直接通过 FormatType 参数使用指定预设日志输出格式(JSON Lines / csv),也可以在预设日志输出格式基础上,通过其他参数来自定义变体输出格式。
8147
+ class LogFormat < TencentCloud::Common::AbstractModel
8148
+ # @param FormatType: 日志投递的预设输出格式类型,取值有:
8149
+ # <li>json:使用预设日志输出格式 JSON Lines,单条日志中的字段以键值对方式呈现;</li>
8150
+ # <li>csv:使用预设日志输出格式 csv,单条日志中仅呈现字段值,不呈现字段名称。</li>
8151
+ # @type FormatType: String
8152
+ # @param BatchPrefix: 在每个日志投递批次之前添加的字符串。每个日志投递批次可能包含多条日志记录。
8153
+ # @type BatchPrefix: String
8154
+ # @param BatchSuffix: 在每个日志投递批次后附加的字符串。
8155
+ # @type BatchSuffix: String
8156
+ # @param RecordPrefix: 在每条日志记录之前添加的字符串。
8157
+ # @type RecordPrefix: String
8158
+ # @param RecordSuffix: 在每条日志记录后附加的字符串。
8159
+ # @type RecordSuffix: String
8160
+ # @param RecordDelimiter: 插入日志记录之间作为分隔符的字符串,取值有:
8161
+ # <li>\n:换行符;</li>
8162
+ # <li>\t:制表符;</li>
8163
+ # <li>,:半角逗号。</li>
8164
+ # @type RecordDelimiter: String
8165
+ # @param FieldDelimiter: 单条日志记录内,插入字段之间作为分隔符的字符串,取值有:
8166
+ # <li>\t:制表符;</li>
8167
+ # <li>,:半角逗号;</li>
8168
+ # <li>;:半角分号。</li>
8169
+ # @type FieldDelimiter: String
8170
+
8171
+ attr_accessor :FormatType, :BatchPrefix, :BatchSuffix, :RecordPrefix, :RecordSuffix, :RecordDelimiter, :FieldDelimiter
8172
+
8173
+ def initialize(formattype=nil, batchprefix=nil, batchsuffix=nil, recordprefix=nil, recordsuffix=nil, recorddelimiter=nil, fielddelimiter=nil)
8174
+ @FormatType = formattype
8175
+ @BatchPrefix = batchprefix
8176
+ @BatchSuffix = batchsuffix
8177
+ @RecordPrefix = recordprefix
8178
+ @RecordSuffix = recordsuffix
8179
+ @RecordDelimiter = recorddelimiter
8180
+ @FieldDelimiter = fielddelimiter
8181
+ end
8182
+
8183
+ def deserialize(params)
8184
+ @FormatType = params['FormatType']
8185
+ @BatchPrefix = params['BatchPrefix']
8186
+ @BatchSuffix = params['BatchSuffix']
8187
+ @RecordPrefix = params['RecordPrefix']
8188
+ @RecordSuffix = params['RecordSuffix']
8189
+ @RecordDelimiter = params['RecordDelimiter']
8190
+ @FieldDelimiter = params['FieldDelimiter']
8191
+ end
8192
+ end
8193
+
8137
8194
  # 浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
8138
8195
  class MaxAge < TencentCloud::Common::AbstractModel
8139
8196
  # @param FollowOrigin: 是否遵循源站,取值有:
@@ -8945,14 +9002,16 @@ module TencentCloud
8945
9002
  # @type DeliveryConditions: Array
8946
9003
  # @param Sample: 采样比例,采用千分制,取值范围为1-1000,例如:填写 605 表示采样比例为 60.5%。不填保持原有配置。
8947
9004
  # @type Sample: Integer
9005
+ # @param LogFormat: 日志投递的输出格式。不填保持原有配置。
9006
+ # @type LogFormat: :class:`Tencentcloud::Teo.v20220901.models.LogFormat`
8948
9007
  # @param CustomEndpoint: 自定义 HTTP 服务的配置信息,不填保持原有配置。
8949
9008
  # @type CustomEndpoint: :class:`Tencentcloud::Teo.v20220901.models.CustomEndpoint`
8950
9009
  # @param S3: AWS S3 兼容存储桶的配置信息,不填保持原有配置。
8951
9010
  # @type S3: :class:`Tencentcloud::Teo.v20220901.models.S3`
8952
9011
 
8953
- attr_accessor :ZoneId, :TaskId, :TaskName, :DeliveryStatus, :EntityList, :Fields, :CustomFields, :DeliveryConditions, :Sample, :CustomEndpoint, :S3
9012
+ attr_accessor :ZoneId, :TaskId, :TaskName, :DeliveryStatus, :EntityList, :Fields, :CustomFields, :DeliveryConditions, :Sample, :LogFormat, :CustomEndpoint, :S3
8954
9013
 
8955
- def initialize(zoneid=nil, taskid=nil, taskname=nil, deliverystatus=nil, entitylist=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, customendpoint=nil, s3=nil)
9014
+ def initialize(zoneid=nil, taskid=nil, taskname=nil, deliverystatus=nil, entitylist=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, logformat=nil, customendpoint=nil, s3=nil)
8956
9015
  @ZoneId = zoneid
8957
9016
  @TaskId = taskid
8958
9017
  @TaskName = taskname
@@ -8962,6 +9021,7 @@ module TencentCloud
8962
9021
  @CustomFields = customfields
8963
9022
  @DeliveryConditions = deliveryconditions
8964
9023
  @Sample = sample
9024
+ @LogFormat = logformat
8965
9025
  @CustomEndpoint = customendpoint
8966
9026
  @S3 = s3
8967
9027
  end
@@ -8990,6 +9050,10 @@ module TencentCloud
8990
9050
  end
8991
9051
  end
8992
9052
  @Sample = params['Sample']
9053
+ unless params['LogFormat'].nil?
9054
+ @LogFormat = LogFormat.new
9055
+ @LogFormat.deserialize(params['LogFormat'])
9056
+ end
8993
9057
  unless params['CustomEndpoint'].nil?
8994
9058
  @CustomEndpoint = CustomEndpoint.new
8995
9059
  @CustomEndpoint.deserialize(params['CustomEndpoint'])
@@ -10502,6 +10566,11 @@ module TencentCloud
10502
10566
  # @type DeliveryConditions: Array
10503
10567
  # @param Sample: 采样比例,采用千分制,取值范围为1-1000,例如:605 表示采样比例为 60.5%。
10504
10568
  # @type Sample: Integer
10569
+ # @param LogFormat: 日志投递的输出格式。出参为 null 时表示为默认格式,默认格式逻辑如下:
10570
+ # <li>当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;</li>
10571
+ # <li>当 TaskType 取值为 s3 时,默认格式为 JSON Lines。</li>
10572
+ # 注意:此字段可能返回 null,表示取不到有效值。
10573
+ # @type LogFormat: :class:`Tencentcloud::Teo.v20220901.models.LogFormat`
10505
10574
  # @param CLS: CLS 的配置信息。
10506
10575
  # 注意:此字段可能返回 null,表示取不到有效值。
10507
10576
  # @type CLS: :class:`Tencentcloud::Teo.v20220901.models.CLSTopic`
@@ -10516,9 +10585,9 @@ module TencentCloud
10516
10585
  # @param UpdateTime: 更新时间。
10517
10586
  # @type UpdateTime: String
10518
10587
 
10519
- attr_accessor :TaskId, :TaskName, :DeliveryStatus, :TaskType, :EntityList, :LogType, :Area, :Fields, :CustomFields, :DeliveryConditions, :Sample, :CLS, :CustomEndpoint, :S3, :CreateTime, :UpdateTime
10588
+ attr_accessor :TaskId, :TaskName, :DeliveryStatus, :TaskType, :EntityList, :LogType, :Area, :Fields, :CustomFields, :DeliveryConditions, :Sample, :LogFormat, :CLS, :CustomEndpoint, :S3, :CreateTime, :UpdateTime
10520
10589
 
10521
- 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)
10590
+ def initialize(taskid=nil, taskname=nil, deliverystatus=nil, tasktype=nil, entitylist=nil, logtype=nil, area=nil, fields=nil, customfields=nil, deliveryconditions=nil, sample=nil, logformat=nil, cls=nil, customendpoint=nil, s3=nil, createtime=nil, updatetime=nil)
10522
10591
  @TaskId = taskid
10523
10592
  @TaskName = taskname
10524
10593
  @DeliveryStatus = deliverystatus
@@ -10530,6 +10599,7 @@ module TencentCloud
10530
10599
  @CustomFields = customfields
10531
10600
  @DeliveryConditions = deliveryconditions
10532
10601
  @Sample = sample
10602
+ @LogFormat = logformat
10533
10603
  @CLS = cls
10534
10604
  @CustomEndpoint = customendpoint
10535
10605
  @S3 = s3
@@ -10563,6 +10633,10 @@ module TencentCloud
10563
10633
  end
10564
10634
  end
10565
10635
  @Sample = params['Sample']
10636
+ unless params['LogFormat'].nil?
10637
+ @LogFormat = LogFormat.new
10638
+ @LogFormat.deserialize(params['LogFormat'])
10639
+ end
10566
10640
  unless params['CLS'].nil?
10567
10641
  @CLS = CLSTopic.new
10568
10642
  @CLS.deserialize(params['CLS'])
@@ -11748,33 +11822,37 @@ module TencentCloud
11748
11822
  class Task < TencentCloud::Common::AbstractModel
11749
11823
  # @param JobId: 任务 ID。
11750
11824
  # @type JobId: String
11751
- # @param Status: 状态。
11752
- # @type Status: String
11753
11825
  # @param Target: 资源。
11754
11826
  # @type Target: String
11755
11827
  # @param Type: 任务类型。
11756
11828
  # @type Type: String
11829
+ # @param Status: 状态。取值有:
11830
+ # <li>processing:处理中;</li>
11831
+ # <li>success:成功;</li>
11832
+ # <li> failed:失败;</li>
11833
+ # <li>timeout:超时。</li>
11834
+ # @type Status: String
11757
11835
  # @param CreateTime: 任务创建时间。
11758
11836
  # @type CreateTime: String
11759
11837
  # @param UpdateTime: 任务完成时间。
11760
11838
  # @type UpdateTime: String
11761
11839
 
11762
- attr_accessor :JobId, :Status, :Target, :Type, :CreateTime, :UpdateTime
11840
+ attr_accessor :JobId, :Target, :Type, :Status, :CreateTime, :UpdateTime
11763
11841
 
11764
- def initialize(jobid=nil, status=nil, target=nil, type=nil, createtime=nil, updatetime=nil)
11842
+ def initialize(jobid=nil, target=nil, type=nil, status=nil, createtime=nil, updatetime=nil)
11765
11843
  @JobId = jobid
11766
- @Status = status
11767
11844
  @Target = target
11768
11845
  @Type = type
11846
+ @Status = status
11769
11847
  @CreateTime = createtime
11770
11848
  @UpdateTime = updatetime
11771
11849
  end
11772
11850
 
11773
11851
  def deserialize(params)
11774
11852
  @JobId = params['JobId']
11775
- @Status = params['Status']
11776
11853
  @Target = params['Target']
11777
11854
  @Type = params['Type']
11855
+ @Status = params['Status']
11778
11856
  @CreateTime = params['CreateTime']
11779
11857
  @UpdateTime = params['UpdateTime']
11780
11858
  end
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.810
4
+ version: 3.0.811
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-04-24 00:00:00.000000000 Z
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common