tencentcloud-sdk-cdn 1.0.326 → 1.0.327
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/v20180606/client.rb +24 -0
- data/lib/v20180606/models.rb +51 -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: 457621409bbde69ab7813bf6dc4f732c2c41b933
|
4
|
+
data.tar.gz: 4aa85652322b273b604b0a20b8315031d983bce4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b4e4ed30a4e449985263e396d115f4f7e4e08b991c986a24402def41db3cc5691efc7010698766bdae67e45821fdd608e794e7e040bae9d6f0b2c32ed24a5af
|
7
|
+
data.tar.gz: 11ddb2bab0589bb51f7ec981d86afe0d0d48f8b97f81ed28c435b99ce66e622c78a076ab151d9dc68c9848f44fa739c391786c5d5a40a5c2d8601bfbf3bdf6de
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.327
|
data/lib/v20180606/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# AddCLSTopicDomains 用于新增域名到某日志主题下
|
33
|
+
|
34
|
+
# @param request: Request instance for AddCLSTopicDomains.
|
35
|
+
# @type request: :class:`Tencentcloud::cdn::V20180606::AddCLSTopicDomainsRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::cdn::V20180606::AddCLSTopicDomainsResponse`
|
37
|
+
def AddCLSTopicDomains(request)
|
38
|
+
body = send_request('AddCLSTopicDomains', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AddCLSTopicDomainsResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# AddCdnDomain 用于新增内容分发网络加速域名。1分钟内最多可新增100个域名。
|
33
57
|
|
34
58
|
# @param request: Request instance for AddCdnDomain.
|
data/lib/v20180606/models.rb
CHANGED
@@ -84,6 +84,57 @@ module TencentCloud
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
# AddCLSTopicDomains请求参数结构体
|
88
|
+
class AddCLSTopicDomainsRequest < TencentCloud::Common::AbstractModel
|
89
|
+
# @param LogsetId: 日志集ID
|
90
|
+
# @type LogsetId: String
|
91
|
+
# @param TopicId: 日志主题ID
|
92
|
+
# @type TopicId: String
|
93
|
+
# @param DomainAreaConfigs: 域名区域配置
|
94
|
+
# @type DomainAreaConfigs: Array
|
95
|
+
# @param Channel: 接入渠道,cdn或者ecdn,默认值为cdn
|
96
|
+
# @type Channel: String
|
97
|
+
|
98
|
+
attr_accessor :LogsetId, :TopicId, :DomainAreaConfigs, :Channel
|
99
|
+
|
100
|
+
def initialize(logsetid=nil, topicid=nil, domainareaconfigs=nil, channel=nil)
|
101
|
+
@LogsetId = logsetid
|
102
|
+
@TopicId = topicid
|
103
|
+
@DomainAreaConfigs = domainareaconfigs
|
104
|
+
@Channel = channel
|
105
|
+
end
|
106
|
+
|
107
|
+
def deserialize(params)
|
108
|
+
@LogsetId = params['LogsetId']
|
109
|
+
@TopicId = params['TopicId']
|
110
|
+
unless params['DomainAreaConfigs'].nil?
|
111
|
+
@DomainAreaConfigs = []
|
112
|
+
params['DomainAreaConfigs'].each do |i|
|
113
|
+
domainareaconfig_tmp = DomainAreaConfig.new
|
114
|
+
domainareaconfig_tmp.deserialize(i)
|
115
|
+
@DomainAreaConfigs << domainareaconfig_tmp
|
116
|
+
end
|
117
|
+
end
|
118
|
+
@Channel = params['Channel']
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# AddCLSTopicDomains返回参数结构体
|
123
|
+
class AddCLSTopicDomainsResponse < TencentCloud::Common::AbstractModel
|
124
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
125
|
+
# @type RequestId: String
|
126
|
+
|
127
|
+
attr_accessor :RequestId
|
128
|
+
|
129
|
+
def initialize(requestid=nil)
|
130
|
+
@RequestId = requestid
|
131
|
+
end
|
132
|
+
|
133
|
+
def deserialize(params)
|
134
|
+
@RequestId = params['RequestId']
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
87
138
|
# AddCdnDomain请求参数结构体
|
88
139
|
class AddCdnDomainRequest < TencentCloud::Common::AbstractModel
|
89
140
|
# @param Domain: 域名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.327
|
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-06-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|