tencentcloud-sdk-cfw 3.0.1034 → 3.0.1036
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/v20190904/client.rb +24 -0
- data/lib/v20190904/models.rb +93 -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: baae1cf6bb292b394a9d1d1029e327993bab5271
|
4
|
+
data.tar.gz: 795ee8ec0684506853bc9a03e62edc4ee9d13924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8379a3492dc625870e0a2df006282804d937c43d355377c3c2eaf42511c555cdde7748b82a3946d91fe149845f930f3628ac55a167c84f9363701e4c564aa157
|
7
|
+
data.tar.gz: 395aaa6176476372d905d9152b0120b2643653a713216a2bed5031ec8bd38751f785814a1af1ecd689a45ecfef972e5b50940085660031c7a7446a8ad28f45e5
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1036
|
data/lib/v20190904/client.rb
CHANGED
@@ -945,6 +945,30 @@ module TencentCloud
|
|
945
945
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
946
946
|
end
|
947
947
|
|
948
|
+
# cfw实例运行状态查询
|
949
|
+
|
950
|
+
# @param request: Request instance for DescribeCfwInsStatus.
|
951
|
+
# @type request: :class:`Tencentcloud::cfw::V20190904::DescribeCfwInsStatusRequest`
|
952
|
+
# @rtype: :class:`Tencentcloud::cfw::V20190904::DescribeCfwInsStatusResponse`
|
953
|
+
def DescribeCfwInsStatus(request)
|
954
|
+
body = send_request('DescribeCfwInsStatus', request.serialize)
|
955
|
+
response = JSON.parse(body)
|
956
|
+
if response['Response'].key?('Error') == false
|
957
|
+
model = DescribeCfwInsStatusResponse.new
|
958
|
+
model.deserialize(response['Response'])
|
959
|
+
model
|
960
|
+
else
|
961
|
+
code = response['Response']['Error']['Code']
|
962
|
+
message = response['Response']['Error']['Message']
|
963
|
+
reqid = response['Response']['RequestId']
|
964
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
965
|
+
end
|
966
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
967
|
+
raise e
|
968
|
+
rescue StandardError => e
|
969
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
970
|
+
end
|
971
|
+
|
948
972
|
# 获取入侵防御按钮列表
|
949
973
|
|
950
974
|
# @param request: Request instance for DescribeDefenseSwitch.
|
data/lib/v20190904/models.rb
CHANGED
@@ -613,6 +613,56 @@ module TencentCloud
|
|
613
613
|
end
|
614
614
|
end
|
615
615
|
|
616
|
+
# 防火墙实例运行状态
|
617
|
+
class CfwInsStatus < TencentCloud::Common::AbstractModel
|
618
|
+
# @param CfwInsId: 防火墙实例id
|
619
|
+
# @type CfwInsId: String
|
620
|
+
# @param FwType: 防火墙类型,nat:nat防火墙;ew:vpc间防火墙
|
621
|
+
# @type FwType: String
|
622
|
+
# @param Region: 实例所属地域
|
623
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
624
|
+
# @type Region: String
|
625
|
+
# @param Status: 实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中
|
626
|
+
# @type Status: String
|
627
|
+
# @param EventTime: 事件时间
|
628
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
629
|
+
# @type EventTime: String
|
630
|
+
# @param RecoverTime: 恢复时间
|
631
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
632
|
+
# @type RecoverTime: String
|
633
|
+
# @param CfwInsName: 实例名称
|
634
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
635
|
+
# @type CfwInsName: String
|
636
|
+
# @param TrafficMode: Normal: 正常模式
|
637
|
+
# OnlyRoute: 透明模式
|
638
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
639
|
+
# @type TrafficMode: String
|
640
|
+
|
641
|
+
attr_accessor :CfwInsId, :FwType, :Region, :Status, :EventTime, :RecoverTime, :CfwInsName, :TrafficMode
|
642
|
+
|
643
|
+
def initialize(cfwinsid=nil, fwtype=nil, region=nil, status=nil, eventtime=nil, recovertime=nil, cfwinsname=nil, trafficmode=nil)
|
644
|
+
@CfwInsId = cfwinsid
|
645
|
+
@FwType = fwtype
|
646
|
+
@Region = region
|
647
|
+
@Status = status
|
648
|
+
@EventTime = eventtime
|
649
|
+
@RecoverTime = recovertime
|
650
|
+
@CfwInsName = cfwinsname
|
651
|
+
@TrafficMode = trafficmode
|
652
|
+
end
|
653
|
+
|
654
|
+
def deserialize(params)
|
655
|
+
@CfwInsId = params['CfwInsId']
|
656
|
+
@FwType = params['FwType']
|
657
|
+
@Region = params['Region']
|
658
|
+
@Status = params['Status']
|
659
|
+
@EventTime = params['EventTime']
|
660
|
+
@RecoverTime = params['RecoverTime']
|
661
|
+
@CfwInsName = params['CfwInsName']
|
662
|
+
@TrafficMode = params['TrafficMode']
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
616
666
|
# NAT防火墙Dnat规则
|
617
667
|
class CfwNatDnatRule < TencentCloud::Common::AbstractModel
|
618
668
|
# @param IpProtocol: 网络协议,可选值:TCP、UDP。
|
@@ -3202,6 +3252,49 @@ module TencentCloud
|
|
3202
3252
|
end
|
3203
3253
|
end
|
3204
3254
|
|
3255
|
+
# DescribeCfwInsStatus请求参数结构体
|
3256
|
+
class DescribeCfwInsStatusRequest < TencentCloud::Common::AbstractModel
|
3257
|
+
|
3258
|
+
|
3259
|
+
def initialize()
|
3260
|
+
end
|
3261
|
+
|
3262
|
+
def deserialize(params)
|
3263
|
+
end
|
3264
|
+
end
|
3265
|
+
|
3266
|
+
# DescribeCfwInsStatus返回参数结构体
|
3267
|
+
class DescribeCfwInsStatusResponse < TencentCloud::Common::AbstractModel
|
3268
|
+
# @param CfwInsStatus: 防火墙实例运行状态
|
3269
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3270
|
+
# @type CfwInsStatus: Array
|
3271
|
+
# @param TotalCount: 0
|
3272
|
+
# @type TotalCount: Integer
|
3273
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3274
|
+
# @type RequestId: String
|
3275
|
+
|
3276
|
+
attr_accessor :CfwInsStatus, :TotalCount, :RequestId
|
3277
|
+
|
3278
|
+
def initialize(cfwinsstatus=nil, totalcount=nil, requestid=nil)
|
3279
|
+
@CfwInsStatus = cfwinsstatus
|
3280
|
+
@TotalCount = totalcount
|
3281
|
+
@RequestId = requestid
|
3282
|
+
end
|
3283
|
+
|
3284
|
+
def deserialize(params)
|
3285
|
+
unless params['CfwInsStatus'].nil?
|
3286
|
+
@CfwInsStatus = []
|
3287
|
+
params['CfwInsStatus'].each do |i|
|
3288
|
+
cfwinsstatus_tmp = CfwInsStatus.new
|
3289
|
+
cfwinsstatus_tmp.deserialize(i)
|
3290
|
+
@CfwInsStatus << cfwinsstatus_tmp
|
3291
|
+
end
|
3292
|
+
end
|
3293
|
+
@TotalCount = params['TotalCount']
|
3294
|
+
@RequestId = params['RequestId']
|
3295
|
+
end
|
3296
|
+
end
|
3297
|
+
|
3205
3298
|
# DescribeDefenseSwitch请求参数结构体
|
3206
3299
|
class DescribeDefenseSwitchRequest < TencentCloud::Common::AbstractModel
|
3207
3300
|
|
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.1036
|
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-04-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|