tencentcloud-sdk-cfw 3.0.993 → 3.0.994

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: e2e649c3b4dca6a73a04fb9ac2a6d853cfd2198d
4
- data.tar.gz: b3865fdafd9996bee703b12dd610d27f4b6fd1da
3
+ metadata.gz: babde48c9b09584b93a4d6adec56af8b19d2588e
4
+ data.tar.gz: ebe012676fd8db579c44bb8ee20ecd98e193a26d
5
5
  SHA512:
6
- metadata.gz: 57fc3ca5951071d19136b3cfac2adb48d453668695460bbce9a38dbdef7962e59b512125a0641f2028e0609b18d26580d8798922f95817dab7b4f03517fd6b35
7
- data.tar.gz: ba4a03f5b86b65827b91e42c9b98cc2dca7bd39c85222bf8b20cb7fd0ddbeb5d975cba45f78d1e0d3c39392d5ebc8b1c6bc0166619bfd671ab55856ff99d0520
6
+ metadata.gz: 210daa894424a15beaa775afaaecaa4fb14051b3e8610c95f84ee8a4500ab41832f3d059698ccdbdea08530cca812934a4dfddcd918c8bd20f6962f9724a7c9e
7
+ data.tar.gz: a0299c9a9eedb9a77bc4178e34e9d97ecc8fa5a05ad6d31c49164d4da66ca8b71493f022b49afd30ff919d7f19e95d8da67f2edb955e0857eab7839e980fa535
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.993
1
+ 3.0.994
@@ -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.
@@ -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.993
4
+ version: 3.0.994
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-06 00:00:00.000000000 Z
11
+ date: 2025-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common