tencentcloud-sdk-cfw 3.0.611 → 3.0.613
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 +48 -0
- data/lib/v20190904/models.rb +86 -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: 91841be82711d16e391e421ecceb2ba51dce6390
|
4
|
+
data.tar.gz: ced11bed271651de9fa29ed64df3d716465a5bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100acac64e38bbf27d5ffecb2031ca58bf86c56dcda1f3d571183b80e4566c960e116f1a59b4d3f0581bc2d664238752fc38bb6fe74036a994306b872f66e2df
|
7
|
+
data.tar.gz: aed19fa301f7f4c5edb653d61fe488c41b55547e67b150134139881bb7af3a7376d6d235f775f4840c78f4cf9f207989f3558ecf923ea22985b6225eb3c41bf3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.613
|
data/lib/v20190904/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 创建地址模板规则
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateAddressTemplate.
|
131
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::CreateAddressTemplateRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::CreateAddressTemplateResponse`
|
133
|
+
def CreateAddressTemplate(request)
|
134
|
+
body = send_request('CreateAddressTemplate', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateAddressTemplateResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 创建、选择vpc
|
129
153
|
|
130
154
|
# @param request: Request instance for CreateChooseVpcs.
|
@@ -269,6 +293,30 @@ module TencentCloud
|
|
269
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
294
|
end
|
271
295
|
|
296
|
+
# 删除地址模板规则
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteAddressTemplate.
|
299
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DeleteAddressTemplateRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DeleteAddressTemplateResponse`
|
301
|
+
def DeleteAddressTemplate(request)
|
302
|
+
body = send_request('DeleteAddressTemplate', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteAddressTemplateResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
272
320
|
# 全部删除规则
|
273
321
|
|
274
322
|
# @param request: Request instance for DeleteAllAccessControlRule.
|
data/lib/v20190904/models.rb
CHANGED
@@ -683,6 +683,56 @@ module TencentCloud
|
|
683
683
|
end
|
684
684
|
end
|
685
685
|
|
686
|
+
# CreateAddressTemplate请求参数结构体
|
687
|
+
class CreateAddressTemplateRequest < TencentCloud::Common::AbstractModel
|
688
|
+
# @param Name: 模板名称
|
689
|
+
# @type Name: String
|
690
|
+
# @param Detail: 模板描述
|
691
|
+
# @type Detail: String
|
692
|
+
# @param IpString: Type为1,ip模板eg:1.1.1.1,2.2.2.2;
|
693
|
+
# Type为5,域名模板eg:www.qq.com,www.tencent.com
|
694
|
+
# @type IpString: String
|
695
|
+
# @param Type: 1 ip模板
|
696
|
+
# 5 域名模板
|
697
|
+
# @type Type: Integer
|
698
|
+
|
699
|
+
attr_accessor :Name, :Detail, :IpString, :Type
|
700
|
+
|
701
|
+
def initialize(name=nil, detail=nil, ipstring=nil, type=nil)
|
702
|
+
@Name = name
|
703
|
+
@Detail = detail
|
704
|
+
@IpString = ipstring
|
705
|
+
@Type = type
|
706
|
+
end
|
707
|
+
|
708
|
+
def deserialize(params)
|
709
|
+
@Name = params['Name']
|
710
|
+
@Detail = params['Detail']
|
711
|
+
@IpString = params['IpString']
|
712
|
+
@Type = params['Type']
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
# CreateAddressTemplate返回参数结构体
|
717
|
+
class CreateAddressTemplateResponse < TencentCloud::Common::AbstractModel
|
718
|
+
# @param Status: 创建结果,0成功
|
719
|
+
# @type Status: Integer
|
720
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
721
|
+
# @type RequestId: String
|
722
|
+
|
723
|
+
attr_accessor :Status, :RequestId
|
724
|
+
|
725
|
+
def initialize(status=nil, requestid=nil)
|
726
|
+
@Status = status
|
727
|
+
@RequestId = requestid
|
728
|
+
end
|
729
|
+
|
730
|
+
def deserialize(params)
|
731
|
+
@Status = params['Status']
|
732
|
+
@RequestId = params['RequestId']
|
733
|
+
end
|
734
|
+
end
|
735
|
+
|
686
736
|
# CreateChooseVpcs请求参数结构体
|
687
737
|
class CreateChooseVpcsRequest < TencentCloud::Common::AbstractModel
|
688
738
|
# @param VpcList: vpc列表
|
@@ -1158,6 +1208,42 @@ module TencentCloud
|
|
1158
1208
|
end
|
1159
1209
|
end
|
1160
1210
|
|
1211
|
+
# DeleteAddressTemplate请求参数结构体
|
1212
|
+
class DeleteAddressTemplateRequest < TencentCloud::Common::AbstractModel
|
1213
|
+
# @param Uuid: 模板id
|
1214
|
+
# @type Uuid: String
|
1215
|
+
|
1216
|
+
attr_accessor :Uuid
|
1217
|
+
|
1218
|
+
def initialize(uuid=nil)
|
1219
|
+
@Uuid = uuid
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
def deserialize(params)
|
1223
|
+
@Uuid = params['Uuid']
|
1224
|
+
end
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# DeleteAddressTemplate返回参数结构体
|
1228
|
+
class DeleteAddressTemplateResponse < TencentCloud::Common::AbstractModel
|
1229
|
+
# @param Status: 删除结果,0成功
|
1230
|
+
# @type Status: Integer
|
1231
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1232
|
+
# @type RequestId: String
|
1233
|
+
|
1234
|
+
attr_accessor :Status, :RequestId
|
1235
|
+
|
1236
|
+
def initialize(status=nil, requestid=nil)
|
1237
|
+
@Status = status
|
1238
|
+
@RequestId = requestid
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
def deserialize(params)
|
1242
|
+
@Status = params['Status']
|
1243
|
+
@RequestId = params['RequestId']
|
1244
|
+
end
|
1245
|
+
end
|
1246
|
+
|
1161
1247
|
# DeleteAllAccessControlRule请求参数结构体
|
1162
1248
|
class DeleteAllAccessControlRuleRequest < TencentCloud::Common::AbstractModel
|
1163
1249
|
# @param Direction: 方向,0:出站,1:入站 默认值是 0
|
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.613
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|