tencentcloud-sdk-teo 1.0.313 → 1.0.314
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/v20220106/client.rb +24 -0
- data/lib/v20220106/models.rb +136 -4
- 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: 0f2e95941b873c498bda1052ba014cfbd5ff4828
|
4
|
+
data.tar.gz: 924e53bd1438ab1cab5cc4b90e39bff5b9dc39a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f2d5984697c7aec7e9a94c02f9084c9983bc4b7a7e54086dd08aac2b5d64b4750f516bc0abbc8d68477652d689cebaec69cba03c38268f9b42eb554574b6fa
|
7
|
+
data.tar.gz: f61f0f462e4c19ea205fa43ae062f143b5f0b7e6366358766817e0f8797b79f265782a8a761edf4bafa30fdb96a2ed161f52bc9e468d3ba5f29bf7822f436d98
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.314
|
data/lib/v20220106/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 查询七层离线日志
|
153
|
+
|
154
|
+
# @param request: Request instance for DownloadL7Logs.
|
155
|
+
# @type request: :class:`Tencentcloud::teo::V20220106::DownloadL7LogsRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::teo::V20220106::DownloadL7LogsResponse`
|
157
|
+
def DownloadL7Logs(request)
|
158
|
+
body = send_request('DownloadL7Logs', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DownloadL7LogsResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
|
153
177
|
end
|
154
178
|
end
|
data/lib/v20220106/models.rb
CHANGED
@@ -21,9 +21,11 @@ module TencentCloud
|
|
21
21
|
class CreatePrefetchTaskRequest < TencentCloud::Common::AbstractModel
|
22
22
|
# @param ZoneId: Zone ID
|
23
23
|
# @type ZoneId: String
|
24
|
-
# @param Targets:
|
24
|
+
# @param Targets: 要预热的资源列表,每个元素格式类似如下:
|
25
|
+
# http://www.example.com/example.txt
|
25
26
|
# @type Targets: Array
|
26
27
|
# @param EncodeUrl: 是否对url进行encode
|
28
|
+
# 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
27
29
|
# @type EncodeUrl: Boolean
|
28
30
|
# @param Headers: 附带的http头部信息
|
29
31
|
# @type Headers: Array
|
@@ -94,10 +96,18 @@ module TencentCloud
|
|
94
96
|
# - purge_host:Hostname
|
95
97
|
# - purge_all:全部缓存
|
96
98
|
# @type Type: String
|
97
|
-
# @param Targets:
|
99
|
+
# @param Targets: 要刷新的资源列表,每个元素格式依据Type而定
|
100
|
+
# 1) Type = purge_host 时
|
101
|
+
# 形如:www.example.com 或 foo.bar.example.com
|
102
|
+
# 2) Type = purge_prefix 时
|
103
|
+
# 形如:http://www.example.com/example
|
104
|
+
# 3) Type = purge_url 时
|
105
|
+
# 形如:https://www.example.com/example.jpg
|
106
|
+
# 4)Type = purge_all 时
|
107
|
+
# Targets可为空,不需要填写
|
98
108
|
# @type Targets: Array
|
99
109
|
# @param EncodeUrl: 若有编码转换,仅清除编码转换后匹配的资源
|
100
|
-
# 若内容含有非 ASCII
|
110
|
+
# 若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
101
111
|
# @type EncodeUrl: Boolean
|
102
112
|
|
103
113
|
attr_accessor :ZoneId, :Type, :Targets, :EncodeUrl
|
@@ -376,11 +386,96 @@ module TencentCloud
|
|
376
386
|
end
|
377
387
|
end
|
378
388
|
|
389
|
+
# DownloadL7Logs请求参数结构体
|
390
|
+
class DownloadL7LogsRequest < TencentCloud::Common::AbstractModel
|
391
|
+
# @param StartTime: 起始时间(需严格按照RFC3339标准传参)
|
392
|
+
# @type StartTime: String
|
393
|
+
# @param EndTime: 结束时间(需严格按照RFC3339标准传参)
|
394
|
+
# @type EndTime: String
|
395
|
+
# @param PageSize: 每页展示条数
|
396
|
+
# @type PageSize: Integer
|
397
|
+
# @param PageNo: 当前页
|
398
|
+
# @type PageNo: Integer
|
399
|
+
# @param Zones: 站点集合
|
400
|
+
# @type Zones: Array
|
401
|
+
# @param Domains: 域名集合
|
402
|
+
# @type Domains: Array
|
403
|
+
|
404
|
+
attr_accessor :StartTime, :EndTime, :PageSize, :PageNo, :Zones, :Domains
|
405
|
+
|
406
|
+
def initialize(starttime=nil, endtime=nil, pagesize=nil, pageno=nil, zones=nil, domains=nil)
|
407
|
+
@StartTime = starttime
|
408
|
+
@EndTime = endtime
|
409
|
+
@PageSize = pagesize
|
410
|
+
@PageNo = pageno
|
411
|
+
@Zones = zones
|
412
|
+
@Domains = domains
|
413
|
+
end
|
414
|
+
|
415
|
+
def deserialize(params)
|
416
|
+
@StartTime = params['StartTime']
|
417
|
+
@EndTime = params['EndTime']
|
418
|
+
@PageSize = params['PageSize']
|
419
|
+
@PageNo = params['PageNo']
|
420
|
+
@Zones = params['Zones']
|
421
|
+
@Domains = params['Domains']
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
425
|
+
# DownloadL7Logs返回参数结构体
|
426
|
+
class DownloadL7LogsResponse < TencentCloud::Common::AbstractModel
|
427
|
+
# @param Data: 七层离线日志data
|
428
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
429
|
+
# @type Data: Array
|
430
|
+
# @param PageSize: 页面大小
|
431
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
432
|
+
# @type PageSize: Integer
|
433
|
+
# @param PageNo: 页号
|
434
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
435
|
+
# @type PageNo: Integer
|
436
|
+
# @param Pages: 总页数
|
437
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
438
|
+
# @type Pages: Integer
|
439
|
+
# @param TotalSize: 总条数
|
440
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
441
|
+
# @type TotalSize: Integer
|
442
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
443
|
+
# @type RequestId: String
|
444
|
+
|
445
|
+
attr_accessor :Data, :PageSize, :PageNo, :Pages, :TotalSize, :RequestId
|
446
|
+
|
447
|
+
def initialize(data=nil, pagesize=nil, pageno=nil, pages=nil, totalsize=nil, requestid=nil)
|
448
|
+
@Data = data
|
449
|
+
@PageSize = pagesize
|
450
|
+
@PageNo = pageno
|
451
|
+
@Pages = pages
|
452
|
+
@TotalSize = totalsize
|
453
|
+
@RequestId = requestid
|
454
|
+
end
|
455
|
+
|
456
|
+
def deserialize(params)
|
457
|
+
unless params['Data'].nil?
|
458
|
+
@Data = []
|
459
|
+
params['Data'].each do |i|
|
460
|
+
l7offlinelog_tmp = L7OfflineLog.new
|
461
|
+
l7offlinelog_tmp.deserialize(i)
|
462
|
+
@Data << l7offlinelog_tmp
|
463
|
+
end
|
464
|
+
end
|
465
|
+
@PageSize = params['PageSize']
|
466
|
+
@PageNo = params['PageNo']
|
467
|
+
@Pages = params['Pages']
|
468
|
+
@TotalSize = params['TotalSize']
|
469
|
+
@RequestId = params['RequestId']
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
379
473
|
# 失败原因
|
380
474
|
class FailReason < TencentCloud::Common::AbstractModel
|
381
475
|
# @param Reason: 失败原因
|
382
476
|
# @type Reason: String
|
383
|
-
# @param Targets:
|
477
|
+
# @param Targets: 处理失败的资源列表。
|
478
|
+
# 该列表元素来源于输入参数中的Targets,因此格式和入参中的Targets保持一致
|
384
479
|
# @type Targets: Array
|
385
480
|
|
386
481
|
attr_accessor :Reason, :Targets
|
@@ -416,6 +511,43 @@ module TencentCloud
|
|
416
511
|
end
|
417
512
|
end
|
418
513
|
|
514
|
+
# 离线日志详细信息
|
515
|
+
class L7OfflineLog < TencentCloud::Common::AbstractModel
|
516
|
+
# @param LogTime: 日志打包开始时间
|
517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
518
|
+
# @type LogTime: Integer
|
519
|
+
# @param Domain: 站点名称
|
520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
521
|
+
# @type Domain: String
|
522
|
+
# @param Size: 原始大小 单位byte
|
523
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
524
|
+
# @type Size: Integer
|
525
|
+
# @param Url: 下载地址
|
526
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
527
|
+
# @type Url: String
|
528
|
+
# @param LogPacketName: 日志数据包名
|
529
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
530
|
+
# @type LogPacketName: String
|
531
|
+
|
532
|
+
attr_accessor :LogTime, :Domain, :Size, :Url, :LogPacketName
|
533
|
+
|
534
|
+
def initialize(logtime=nil, domain=nil, size=nil, url=nil, logpacketname=nil)
|
535
|
+
@LogTime = logtime
|
536
|
+
@Domain = domain
|
537
|
+
@Size = size
|
538
|
+
@Url = url
|
539
|
+
@LogPacketName = logpacketname
|
540
|
+
end
|
541
|
+
|
542
|
+
def deserialize(params)
|
543
|
+
@LogTime = params['LogTime']
|
544
|
+
@Domain = params['Domain']
|
545
|
+
@Size = params['Size']
|
546
|
+
@Url = params['Url']
|
547
|
+
@LogPacketName = params['LogPacketName']
|
548
|
+
end
|
549
|
+
end
|
550
|
+
|
419
551
|
# 内容管理任务结果
|
420
552
|
class Task < TencentCloud::Common::AbstractModel
|
421
553
|
# @param JobId: 任务ID
|
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: 1.0.
|
4
|
+
version: 1.0.314
|
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-05-
|
11
|
+
date: 2022-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|