tencentcloud-sdk-cfw 3.0.993 → 3.0.995
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190904/client.rb +0 -26
- data/lib/v20190904/models.rb +0 -138
- 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: 751b65a8ff6238f5bb91e16d2cc58e19e4612c5d
|
4
|
+
data.tar.gz: 8b44b590fb29831d1e858fd0b4e801cdbd84a6df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b58c0a17810c0b6bde272cc0a5558163d0512e0f4148883a6b269526cd670da092f5ef3322f8c948d46d2fbccafef3bb4ed674886c7a82bb5fefe4c320653f
|
7
|
+
data.tar.gz: b7b83ff142d6a4073fd42223dc8aa614dff7169a99601aad3d37f3a4a3dd67f9a96f5d8ec384cf68d026ad9dbd96e9a36dd784cf247d94e5df5dfe8dc3910575
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.995
|
data/lib/v20190904/client.rb
CHANGED
@@ -29,32 +29,6 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
# 接口不再使用,已有新接口AddAclRule
|
33
|
-
|
34
|
-
# 添加互联网边界规则
|
35
|
-
|
36
|
-
# @param request: Request instance for AddAcRule.
|
37
|
-
# @type request: :class:`Tencentcloud::cfw::V20190904::AddAcRuleRequest`
|
38
|
-
# @rtype: :class:`Tencentcloud::cfw::V20190904::AddAcRuleResponse`
|
39
|
-
def AddAcRule(request)
|
40
|
-
body = send_request('AddAcRule', request.serialize)
|
41
|
-
response = JSON.parse(body)
|
42
|
-
if response['Response'].key?('Error') == false
|
43
|
-
model = AddAcRuleResponse.new
|
44
|
-
model.deserialize(response['Response'])
|
45
|
-
model
|
46
|
-
else
|
47
|
-
code = response['Response']['Error']['Code']
|
48
|
-
message = response['Response']['Error']['Message']
|
49
|
-
reqid = response['Response']['RequestId']
|
50
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
51
|
-
end
|
52
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
53
|
-
raise e
|
54
|
-
rescue StandardError => e
|
55
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
|
-
end
|
57
|
-
|
58
32
|
# 添加互联网边界访问控制规则
|
59
33
|
|
60
34
|
# @param request: Request instance for AddAclRule.
|
data/lib/v20190904/models.rb
CHANGED
@@ -127,144 +127,6 @@ module TencentCloud
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
# AddAcRule请求参数结构体
|
131
|
-
class AddAcRuleRequest < TencentCloud::Common::AbstractModel
|
132
|
-
# @param OrderIndex: -1表示优先级最低,1表示优先级最高
|
133
|
-
# @type OrderIndex: String
|
134
|
-
# @param RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值:
|
135
|
-
# accept:放行
|
136
|
-
# drop:拒绝
|
137
|
-
# log:观察
|
138
|
-
# @type RuleAction: String
|
139
|
-
# @param Direction: 访问控制策略的流量方向。取值:
|
140
|
-
# in:外对内流量访问控制
|
141
|
-
# out:内对外流量访问控制
|
142
|
-
# @type Direction: String
|
143
|
-
# @param Description: 访问控制策略的描述信息
|
144
|
-
# @type Description: String
|
145
|
-
# @param SourceType: 访问控制策略中的源地址类型。取值:
|
146
|
-
# net:源IP或网段(IP或者CIDR)
|
147
|
-
# location:源区域
|
148
|
-
# template:云防火墙地址模板
|
149
|
-
# instance:实例id
|
150
|
-
# vendor:云厂商
|
151
|
-
# @type SourceType: String
|
152
|
-
# @param SourceContent: 访问控制策略中的源地址。取值:
|
153
|
-
# 当SourceType为net时,SourceContent为源IP地址或者CIDR地址。
|
154
|
-
# 例如:1.1.1.0/24
|
155
|
-
|
156
|
-
# 当SourceType为template时,SourceContent为源地址模板id。
|
157
|
-
|
158
|
-
# 当SourceType为location时,SourceContent为源区域。
|
159
|
-
# 例如["BJ11", "ZB"]
|
160
|
-
|
161
|
-
# 当SourceType为instance时,SourceContent为该实例id对应的公网ip。
|
162
|
-
# 例如ins-xxxxx
|
163
|
-
|
164
|
-
# 当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。
|
165
|
-
# 例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
|
166
|
-
# @type SourceContent: String
|
167
|
-
# @param DestType: 访问控制策略中的目的地址类型。取值:
|
168
|
-
# net:目的IP或者网段(IP或者CIDR)
|
169
|
-
# location:源区域
|
170
|
-
# template:云防火墙地址模板
|
171
|
-
# instance:实例id
|
172
|
-
# vendor:云厂商
|
173
|
-
# domain: 域名或者ip
|
174
|
-
# @type DestType: String
|
175
|
-
# @param DestContent: 访问控制策略中的目的地址。取值:
|
176
|
-
# 当DestType为net时,DestContent为源IP地址或者CIDR地址。
|
177
|
-
# 例如:1.1.1.0/24
|
178
|
-
|
179
|
-
# 当DestType为template时,DestContent为源地址模板id。
|
180
|
-
|
181
|
-
# 当DestType为location时,DestContent为源区域。
|
182
|
-
# 例如["BJ11", "ZB"]
|
183
|
-
|
184
|
-
# 当DestType为instance时,DestContent为该实例id对应的公网ip。
|
185
|
-
# 例如ins-xxxxx
|
186
|
-
|
187
|
-
# 当DestType为domain时,DestContent为该实例id对应的域名规则。
|
188
|
-
# 例如*.qq.com
|
189
|
-
|
190
|
-
# 当DestType为vendor时,DestContent为所选择厂商的公网ip列表。
|
191
|
-
# 例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
|
192
|
-
# @type DestContent: String
|
193
|
-
# @param Port: 访问控制策略的端口。取值:
|
194
|
-
# -1/-1:全部端口
|
195
|
-
# 80,443:80或者443
|
196
|
-
# @type Port: String
|
197
|
-
# @param Protocol: 访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP
|
198
|
-
# @type Protocol: String
|
199
|
-
# @param ApplicationName: 七层协议,取值:
|
200
|
-
# HTTP/HTTPS
|
201
|
-
# TLS/SSL
|
202
|
-
# @type ApplicationName: String
|
203
|
-
# @param Enable: 是否启用规则,默认为启用,取值:
|
204
|
-
# true为启用,false为不启用
|
205
|
-
# @type Enable: String
|
206
|
-
|
207
|
-
attr_accessor :OrderIndex, :RuleAction, :Direction, :Description, :SourceType, :SourceContent, :DestType, :DestContent, :Port, :Protocol, :ApplicationName, :Enable
|
208
|
-
|
209
|
-
def initialize(orderindex=nil, ruleaction=nil, direction=nil, description=nil, sourcetype=nil, sourcecontent=nil, desttype=nil, destcontent=nil, port=nil, protocol=nil, applicationname=nil, enable=nil)
|
210
|
-
@OrderIndex = orderindex
|
211
|
-
@RuleAction = ruleaction
|
212
|
-
@Direction = direction
|
213
|
-
@Description = description
|
214
|
-
@SourceType = sourcetype
|
215
|
-
@SourceContent = sourcecontent
|
216
|
-
@DestType = desttype
|
217
|
-
@DestContent = destcontent
|
218
|
-
@Port = port
|
219
|
-
@Protocol = protocol
|
220
|
-
@ApplicationName = applicationname
|
221
|
-
@Enable = enable
|
222
|
-
end
|
223
|
-
|
224
|
-
def deserialize(params)
|
225
|
-
@OrderIndex = params['OrderIndex']
|
226
|
-
@RuleAction = params['RuleAction']
|
227
|
-
@Direction = params['Direction']
|
228
|
-
@Description = params['Description']
|
229
|
-
@SourceType = params['SourceType']
|
230
|
-
@SourceContent = params['SourceContent']
|
231
|
-
@DestType = params['DestType']
|
232
|
-
@DestContent = params['DestContent']
|
233
|
-
@Port = params['Port']
|
234
|
-
@Protocol = params['Protocol']
|
235
|
-
@ApplicationName = params['ApplicationName']
|
236
|
-
@Enable = params['Enable']
|
237
|
-
end
|
238
|
-
end
|
239
|
-
|
240
|
-
# AddAcRule返回参数结构体
|
241
|
-
class AddAcRuleResponse < TencentCloud::Common::AbstractModel
|
242
|
-
# @param RuleUuid: 创建成功后返回新策略的uuid
|
243
|
-
# @type RuleUuid: Integer
|
244
|
-
# @param ReturnCode: 0代表成功,-1代表失败
|
245
|
-
# @type ReturnCode: Integer
|
246
|
-
# @param ReturnMsg: success代表成功,failed代表失败
|
247
|
-
# @type ReturnMsg: String
|
248
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
249
|
-
# @type RequestId: String
|
250
|
-
|
251
|
-
attr_accessor :RuleUuid, :ReturnCode, :ReturnMsg, :RequestId
|
252
|
-
|
253
|
-
def initialize(ruleuuid=nil, returncode=nil, returnmsg=nil, requestid=nil)
|
254
|
-
@RuleUuid = ruleuuid
|
255
|
-
@ReturnCode = returncode
|
256
|
-
@ReturnMsg = returnmsg
|
257
|
-
@RequestId = requestid
|
258
|
-
end
|
259
|
-
|
260
|
-
def deserialize(params)
|
261
|
-
@RuleUuid = params['RuleUuid']
|
262
|
-
@ReturnCode = params['ReturnCode']
|
263
|
-
@ReturnMsg = params['ReturnMsg']
|
264
|
-
@RequestId = params['RequestId']
|
265
|
-
end
|
266
|
-
end
|
267
|
-
|
268
130
|
# AddAclRule请求参数结构体
|
269
131
|
class AddAclRuleRequest < TencentCloud::Common::AbstractModel
|
270
132
|
# @param Rules: 需要添加的访问控制规则列表
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cfw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.995
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|