tencentcloud-sdk-cls 1.0.225 → 1.0.226

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09148fe2608a58994952200f313397e923479f2f
4
- data.tar.gz: 307f47adfb4be8b2c70064c3ac50987e3769acdf
3
+ metadata.gz: 54ca51544c52dc1cdc2edc34d6f29f6a8cb95cf9
4
+ data.tar.gz: ba3dfea8b3ec6357fb601cb77846a1c85dc05383
5
5
  SHA512:
6
- metadata.gz: 55f02dab1d365bad8e9ebe5e7462d83d5fb598329b05e7749a95f8359c8193d3090bf080b48d9b02621bf46544eaaf232f3b159135db85cbdfe6813ced86883c
7
- data.tar.gz: a73b4cbe80d2258184c7a7cb90ff23e31abc46b3947f51cc61da8ad02c20a54c8de55c4bdded9581d055f800f4858f6fce7221cb9610760c80fb4466ed2c4d56
6
+ metadata.gz: 58dc7067cdd6b5f556bb6bd645c67d302ccbd68826f25ff78aad7b4d6e227963366e763750580094cd3620b9b033de7da7d1023471793150f70fee1c0d900899
7
+ data.tar.gz: 32d6c5bd2f300f0bd9299bedb5327d4f8f9bbc268596e2c13b47ceea900189a572906d314318c767b6f06bf26afaa6612bd156888c0b0f35117b662627dc70c0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.225
1
+ 1.0.226
@@ -173,6 +173,30 @@ module TencentCloud
173
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
174
  end
175
175
 
176
+ # 本接口用于创建投递任务
177
+
178
+ # @param request: Request instance for CreateConsumer.
179
+ # @type request: :class:`Tencentcloud::cls::V20201016::CreateConsumerRequest`
180
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CreateConsumerResponse`
181
+ def CreateConsumer(request)
182
+ body = send_request('CreateConsumer', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateConsumerResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
176
200
  # 本接口用于创建日志下载任务
177
201
 
178
202
  # @param request: Request instance for CreateExport.
@@ -461,6 +485,30 @@ module TencentCloud
461
485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
486
  end
463
487
 
488
+ # 本接口用于删除投递配置
489
+
490
+ # @param request: Request instance for DeleteConsumer.
491
+ # @type request: :class:`Tencentcloud::cls::V20201016::DeleteConsumerRequest`
492
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteConsumerResponse`
493
+ def DeleteConsumer(request)
494
+ body = send_request('DeleteConsumer', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DeleteConsumerResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
464
512
  # 本接口用于删除日志下载任务
465
513
 
466
514
  # @param request: Request instance for DeleteExport.
@@ -797,6 +845,30 @@ module TencentCloud
797
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
846
  end
799
847
 
848
+ # 本接口用于获取投递配置
849
+
850
+ # @param request: Request instance for DescribeConsumer.
851
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeConsumerRequest`
852
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeConsumerResponse`
853
+ def DescribeConsumer(request)
854
+ body = send_request('DescribeConsumer', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = DescribeConsumerResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
800
872
  # 本接口用于获取日志下载任务列表
801
873
 
802
874
  # @param request: Request instance for DescribeExports.
@@ -1181,6 +1253,30 @@ module TencentCloud
1181
1253
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
1254
  end
1183
1255
 
1256
+ # 本接口用于修改投递任务
1257
+
1258
+ # @param request: Request instance for ModifyConsumer.
1259
+ # @type request: :class:`Tencentcloud::cls::V20201016::ModifyConsumerRequest`
1260
+ # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyConsumerResponse`
1261
+ def ModifyConsumer(request)
1262
+ body = send_request('ModifyConsumer', request.serialize)
1263
+ response = JSON.parse(body)
1264
+ if response['Response'].key?('Error') == false
1265
+ model = ModifyConsumerResponse.new
1266
+ model.deserialize(response['Response'])
1267
+ model
1268
+ else
1269
+ code = response['Response']['Error']['Code']
1270
+ message = response['Response']['Error']['Message']
1271
+ reqid = response['Response']['RequestId']
1272
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1273
+ end
1274
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1275
+ raise e
1276
+ rescue StandardError => e
1277
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
+ end
1279
+
1184
1280
  # 本接口用于修改索引配置
1185
1281
 
1186
1282
  # @param request: Request instance for ModifyIndex.
@@ -456,6 +456,42 @@ module TencentCloud
456
456
  end
457
457
  end
458
458
 
459
+ # CKafka的描述-需要投递到的kafka信息
460
+ class Ckafka < TencentCloud::Common::AbstractModel
461
+ # @param Vip: Ckafka 的 Vip
462
+ # @type Vip: String
463
+ # @param Vport: Ckafka 的 Vport
464
+ # @type Vport: String
465
+ # @param InstanceId: Ckafka 的 InstanceId
466
+ # @type InstanceId: String
467
+ # @param InstanceName: Ckafka 的 InstanceName
468
+ # @type InstanceName: String
469
+ # @param TopicId: Ckafka 的 TopicId
470
+ # @type TopicId: String
471
+ # @param TopicName: Ckafka 的 TopicName
472
+ # @type TopicName: String
473
+
474
+ attr_accessor :Vip, :Vport, :InstanceId, :InstanceName, :TopicId, :TopicName
475
+
476
+ def initialize(vip=nil, vport=nil, instanceid=nil, instancename=nil, topicid=nil, topicname=nil)
477
+ @Vip = vip
478
+ @Vport = vport
479
+ @InstanceId = instanceid
480
+ @InstanceName = instancename
481
+ @TopicId = topicid
482
+ @TopicName = topicname
483
+ end
484
+
485
+ def deserialize(params)
486
+ @Vip = params['Vip']
487
+ @Vport = params['Vport']
488
+ @InstanceId = params['InstanceId']
489
+ @InstanceName = params['InstanceName']
490
+ @TopicId = params['TopicId']
491
+ @TopicName = params['TopicName']
492
+ end
493
+ end
494
+
459
495
  # 日志分析的列属性
460
496
  class Column < TencentCloud::Common::AbstractModel
461
497
  # @param Name: 列的名字
@@ -561,6 +597,28 @@ module TencentCloud
561
597
  end
562
598
  end
563
599
 
600
+ # 投递任务出入参 Content
601
+ class ConsumerContent < TencentCloud::Common::AbstractModel
602
+ # @param EnableTag: 是否投递 TAG 信息
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type EnableTag: Boolean
605
+ # @param MetaFields: 需要投递的元数据列表,目前仅支持:__SOURCE__,__FILENAME__和__TIMESTAMP__
606
+ # 注意:此字段可能返回 null,表示取不到有效值。
607
+ # @type MetaFields: Array
608
+
609
+ attr_accessor :EnableTag, :MetaFields
610
+
611
+ def initialize(enabletag=nil, metafields=nil)
612
+ @EnableTag = enabletag
613
+ @MetaFields = metafields
614
+ end
615
+
616
+ def deserialize(params)
617
+ @EnableTag = params['EnableTag']
618
+ @MetaFields = params['MetaFields']
619
+ end
620
+ end
621
+
564
622
  # 投递日志的内容格式配置
565
623
  class ContentInfo < TencentCloud::Common::AbstractModel
566
624
  # @param Format: 内容格式,支持json、csv
@@ -932,6 +990,56 @@ module TencentCloud
932
990
  end
933
991
  end
934
992
 
993
+ # CreateConsumer请求参数结构体
994
+ class CreateConsumerRequest < TencentCloud::Common::AbstractModel
995
+ # @param TopicId: 投递任务绑定的日志主题 ID
996
+ # @type TopicId: String
997
+ # @param NeedContent: 是否投递日志的元数据信息,默认为 true
998
+ # @type NeedContent: Boolean
999
+ # @param Content: 如果需要投递元数据信息,元数据信息的描述
1000
+ # @type Content: :class:`Tencentcloud::Cls.v20201016.models.ConsumerContent`
1001
+ # @param Ckafka: CKafka的描述
1002
+ # @type Ckafka: :class:`Tencentcloud::Cls.v20201016.models.Ckafka`
1003
+
1004
+ attr_accessor :TopicId, :NeedContent, :Content, :Ckafka
1005
+
1006
+ def initialize(topicid=nil, needcontent=nil, content=nil, ckafka=nil)
1007
+ @TopicId = topicid
1008
+ @NeedContent = needcontent
1009
+ @Content = content
1010
+ @Ckafka = ckafka
1011
+ end
1012
+
1013
+ def deserialize(params)
1014
+ @TopicId = params['TopicId']
1015
+ @NeedContent = params['NeedContent']
1016
+ unless params['Content'].nil?
1017
+ @Content = ConsumerContent.new
1018
+ @Content.deserialize(params['Content'])
1019
+ end
1020
+ unless params['Ckafka'].nil?
1021
+ @Ckafka = Ckafka.new
1022
+ @Ckafka.deserialize(params['Ckafka'])
1023
+ end
1024
+ end
1025
+ end
1026
+
1027
+ # CreateConsumer返回参数结构体
1028
+ class CreateConsumerResponse < TencentCloud::Common::AbstractModel
1029
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1030
+ # @type RequestId: String
1031
+
1032
+ attr_accessor :RequestId
1033
+
1034
+ def initialize(requestid=nil)
1035
+ @RequestId = requestid
1036
+ end
1037
+
1038
+ def deserialize(params)
1039
+ @RequestId = params['RequestId']
1040
+ end
1041
+ end
1042
+
935
1043
  # CreateExport请求参数结构体
936
1044
  class CreateExportRequest < TencentCloud::Common::AbstractModel
937
1045
  # @param TopicId: 日志主题
@@ -1545,6 +1653,38 @@ module TencentCloud
1545
1653
  end
1546
1654
  end
1547
1655
 
1656
+ # DeleteConsumer请求参数结构体
1657
+ class DeleteConsumerRequest < TencentCloud::Common::AbstractModel
1658
+ # @param TopicId: 投递任务绑定的日志主题 ID
1659
+ # @type TopicId: String
1660
+
1661
+ attr_accessor :TopicId
1662
+
1663
+ def initialize(topicid=nil)
1664
+ @TopicId = topicid
1665
+ end
1666
+
1667
+ def deserialize(params)
1668
+ @TopicId = params['TopicId']
1669
+ end
1670
+ end
1671
+
1672
+ # DeleteConsumer返回参数结构体
1673
+ class DeleteConsumerResponse < TencentCloud::Common::AbstractModel
1674
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1675
+ # @type RequestId: String
1676
+
1677
+ attr_accessor :RequestId
1678
+
1679
+ def initialize(requestid=nil)
1680
+ @RequestId = requestid
1681
+ end
1682
+
1683
+ def deserialize(params)
1684
+ @RequestId = params['RequestId']
1685
+ end
1686
+ end
1687
+
1548
1688
  # DeleteExport请求参数结构体
1549
1689
  class DeleteExportRequest < TencentCloud::Common::AbstractModel
1550
1690
  # @param ExportId: 日志导出ID
@@ -2345,6 +2485,61 @@ module TencentCloud
2345
2485
  end
2346
2486
  end
2347
2487
 
2488
+ # DescribeConsumer请求参数结构体
2489
+ class DescribeConsumerRequest < TencentCloud::Common::AbstractModel
2490
+ # @param TopicId: 投递任务绑定的日志主题 ID
2491
+ # @type TopicId: String
2492
+
2493
+ attr_accessor :TopicId
2494
+
2495
+ def initialize(topicid=nil)
2496
+ @TopicId = topicid
2497
+ end
2498
+
2499
+ def deserialize(params)
2500
+ @TopicId = params['TopicId']
2501
+ end
2502
+ end
2503
+
2504
+ # DescribeConsumer返回参数结构体
2505
+ class DescribeConsumerResponse < TencentCloud::Common::AbstractModel
2506
+ # @param Effective: 投递任务是否生效
2507
+ # @type Effective: Boolean
2508
+ # @param NeedContent: 是否投递日志的元数据信息
2509
+ # @type NeedContent: Boolean
2510
+ # @param Content: 如果需要投递元数据信息,元数据信息的描述
2511
+ # 注意:此字段可能返回 null,表示取不到有效值。
2512
+ # @type Content: :class:`Tencentcloud::Cls.v20201016.models.ConsumerContent`
2513
+ # @param Ckafka: CKafka的描述
2514
+ # @type Ckafka: :class:`Tencentcloud::Cls.v20201016.models.Ckafka`
2515
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2516
+ # @type RequestId: String
2517
+
2518
+ attr_accessor :Effective, :NeedContent, :Content, :Ckafka, :RequestId
2519
+
2520
+ def initialize(effective=nil, needcontent=nil, content=nil, ckafka=nil, requestid=nil)
2521
+ @Effective = effective
2522
+ @NeedContent = needcontent
2523
+ @Content = content
2524
+ @Ckafka = ckafka
2525
+ @RequestId = requestid
2526
+ end
2527
+
2528
+ def deserialize(params)
2529
+ @Effective = params['Effective']
2530
+ @NeedContent = params['NeedContent']
2531
+ unless params['Content'].nil?
2532
+ @Content = ConsumerContent.new
2533
+ @Content.deserialize(params['Content'])
2534
+ end
2535
+ unless params['Ckafka'].nil?
2536
+ @Ckafka = Ckafka.new
2537
+ @Ckafka.deserialize(params['Ckafka'])
2538
+ end
2539
+ @RequestId = params['RequestId']
2540
+ end
2541
+ end
2542
+
2348
2543
  # DescribeExports请求参数结构体
2349
2544
  class DescribeExportsRequest < TencentCloud::Common::AbstractModel
2350
2545
  # @param TopicId: 日志主题ID
@@ -4076,6 +4271,60 @@ module TencentCloud
4076
4271
  end
4077
4272
  end
4078
4273
 
4274
+ # ModifyConsumer请求参数结构体
4275
+ class ModifyConsumerRequest < TencentCloud::Common::AbstractModel
4276
+ # @param TopicId: 投递任务绑定的日志主题 ID
4277
+ # @type TopicId: String
4278
+ # @param Effective: 投递任务是否生效
4279
+ # @type Effective: Boolean
4280
+ # @param NeedContent: 是否投递日志的元数据信息,默认为 false
4281
+ # @type NeedContent: Boolean
4282
+ # @param Content: 如果需要投递元数据信息,元数据信息的描述
4283
+ # @type Content: :class:`Tencentcloud::Cls.v20201016.models.ConsumerContent`
4284
+ # @param Ckafka: CKafka的描述
4285
+ # @type Ckafka: :class:`Tencentcloud::Cls.v20201016.models.Ckafka`
4286
+
4287
+ attr_accessor :TopicId, :Effective, :NeedContent, :Content, :Ckafka
4288
+
4289
+ def initialize(topicid=nil, effective=nil, needcontent=nil, content=nil, ckafka=nil)
4290
+ @TopicId = topicid
4291
+ @Effective = effective
4292
+ @NeedContent = needcontent
4293
+ @Content = content
4294
+ @Ckafka = ckafka
4295
+ end
4296
+
4297
+ def deserialize(params)
4298
+ @TopicId = params['TopicId']
4299
+ @Effective = params['Effective']
4300
+ @NeedContent = params['NeedContent']
4301
+ unless params['Content'].nil?
4302
+ @Content = ConsumerContent.new
4303
+ @Content.deserialize(params['Content'])
4304
+ end
4305
+ unless params['Ckafka'].nil?
4306
+ @Ckafka = Ckafka.new
4307
+ @Ckafka.deserialize(params['Ckafka'])
4308
+ end
4309
+ end
4310
+ end
4311
+
4312
+ # ModifyConsumer返回参数结构体
4313
+ class ModifyConsumerResponse < TencentCloud::Common::AbstractModel
4314
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4315
+ # @type RequestId: String
4316
+
4317
+ attr_accessor :RequestId
4318
+
4319
+ def initialize(requestid=nil)
4320
+ @RequestId = requestid
4321
+ end
4322
+
4323
+ def deserialize(params)
4324
+ @RequestId = params['RequestId']
4325
+ end
4326
+ end
4327
+
4079
4328
  # ModifyIndex请求参数结构体
4080
4329
  class ModifyIndexRequest < TencentCloud::Common::AbstractModel
4081
4330
  # @param TopicId: 日志主题ID
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: 1.0.225
4
+ version: 1.0.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-16 00:00:00.000000000 Z
11
+ date: 2021-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common