tencentcloud-sdk-vpc 3.0.860 → 3.0.861
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/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +90 -3
- 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: adce572f44240eda2fa2b4ac324182ee761d9b4a
|
4
|
+
data.tar.gz: 0857952f4a04946457eaca66b70781082b35c454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e0f2ade73a848e6de69852f0b4d94417a993d6bc4e31f81303be629363087cfaa7a5a6a35f82d12df06d48c9961b0a3c591029a21bd3986baabbe048db7375
|
7
|
+
data.tar.gz: cf7c320c24a9905b4487af4ac3050d4961196d5678651cae2130fc85f16e74d0fdc9c541ddf26b5d77b79d54d3d6d3037f04f55a0839b30cac6ad27dd3c4a847
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.861
|
data/lib/v20170312/client.rb
CHANGED
@@ -7508,6 +7508,30 @@ module TencentCloud
|
|
7508
7508
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
7509
7509
|
end
|
7510
7510
|
|
7511
|
+
# 更新SslVpnClient证书
|
7512
|
+
|
7513
|
+
# @param request: Request instance for ModifyVpnGatewaySslClientCert.
|
7514
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::ModifyVpnGatewaySslClientCertRequest`
|
7515
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::ModifyVpnGatewaySslClientCertResponse`
|
7516
|
+
def ModifyVpnGatewaySslClientCert(request)
|
7517
|
+
body = send_request('ModifyVpnGatewaySslClientCert', request.serialize)
|
7518
|
+
response = JSON.parse(body)
|
7519
|
+
if response['Response'].key?('Error') == false
|
7520
|
+
model = ModifyVpnGatewaySslClientCertResponse.new
|
7521
|
+
model.deserialize(response['Response'])
|
7522
|
+
model
|
7523
|
+
else
|
7524
|
+
code = response['Response']['Error']['Code']
|
7525
|
+
message = response['Response']['Error']['Message']
|
7526
|
+
reqid = response['Response']['RequestId']
|
7527
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
7528
|
+
end
|
7529
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
7530
|
+
raise e
|
7531
|
+
rescue StandardError => e
|
7532
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
7533
|
+
end
|
7534
|
+
|
7511
7535
|
# 本接口用于修改 SSL-VPN 服务端属性
|
7512
7536
|
|
7513
7537
|
# @param request: Request instance for ModifyVpnGatewaySslServer.
|
data/lib/v20170312/models.rb
CHANGED
@@ -11009,7 +11009,7 @@ module TencentCloud
|
|
11009
11009
|
|
11010
11010
|
# DescribeSecurityGroupPolicies请求参数结构体
|
11011
11011
|
class DescribeSecurityGroupPoliciesRequest < TencentCloud::Common::AbstractModel
|
11012
|
-
# @param SecurityGroupId: 安全组实例ID,例如:sg-33ocnj9n
|
11012
|
+
# @param SecurityGroupId: 安全组实例ID,例如:sg-33ocnj9n,可通过<a href="https://cloud.tencent.com/document/product/215/15808">DescribeSecurityGroups</a>获取。
|
11013
11013
|
# @type SecurityGroupId: String
|
11014
11014
|
# @param Filters: 过滤条件。
|
11015
11015
|
# <li>security-group-id - String - 规则中的安全组ID。</li>
|
@@ -18451,6 +18451,42 @@ module TencentCloud
|
|
18451
18451
|
end
|
18452
18452
|
end
|
18453
18453
|
|
18454
|
+
# ModifyVpnGatewaySslClientCert请求参数结构体
|
18455
|
+
class ModifyVpnGatewaySslClientCertRequest < TencentCloud::Common::AbstractModel
|
18456
|
+
# @param SslVpnClientIds: SSL-VPN-CLIENT 实例ID列表。
|
18457
|
+
# @type SslVpnClientIds: Array
|
18458
|
+
|
18459
|
+
attr_accessor :SslVpnClientIds
|
18460
|
+
|
18461
|
+
def initialize(sslvpnclientids=nil)
|
18462
|
+
@SslVpnClientIds = sslvpnclientids
|
18463
|
+
end
|
18464
|
+
|
18465
|
+
def deserialize(params)
|
18466
|
+
@SslVpnClientIds = params['SslVpnClientIds']
|
18467
|
+
end
|
18468
|
+
end
|
18469
|
+
|
18470
|
+
# ModifyVpnGatewaySslClientCert返回参数结构体
|
18471
|
+
class ModifyVpnGatewaySslClientCertResponse < TencentCloud::Common::AbstractModel
|
18472
|
+
# @param TaskId: 异步任务ID。
|
18473
|
+
# @type TaskId: Integer
|
18474
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
18475
|
+
# @type RequestId: String
|
18476
|
+
|
18477
|
+
attr_accessor :TaskId, :RequestId
|
18478
|
+
|
18479
|
+
def initialize(taskid=nil, requestid=nil)
|
18480
|
+
@TaskId = taskid
|
18481
|
+
@RequestId = requestid
|
18482
|
+
end
|
18483
|
+
|
18484
|
+
def deserialize(params)
|
18485
|
+
@TaskId = params['TaskId']
|
18486
|
+
@RequestId = params['RequestId']
|
18487
|
+
end
|
18488
|
+
end
|
18489
|
+
|
18454
18490
|
# ModifyVpnGatewaySslServer请求参数结构体
|
18455
18491
|
class ModifyVpnGatewaySslServerRequest < TencentCloud::Common::AbstractModel
|
18456
18492
|
# @param SslVpnServerId: SSL-VPN SERVER 实例ID
|
@@ -19477,6 +19513,38 @@ module TencentCloud
|
|
19477
19513
|
end
|
19478
19514
|
end
|
19479
19515
|
|
19516
|
+
# 安全组策略统计
|
19517
|
+
class PolicyStatistics < TencentCloud::Common::AbstractModel
|
19518
|
+
# @param IngressIPv4TotalCount: 入站IPv4总数
|
19519
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19520
|
+
# @type IngressIPv4TotalCount: Integer
|
19521
|
+
# @param IngressIPv6TotalCount: 入站IPv6总数
|
19522
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19523
|
+
# @type IngressIPv6TotalCount: Integer
|
19524
|
+
# @param EgressIPv4TotalCount: 出站IPv4总数
|
19525
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19526
|
+
# @type EgressIPv4TotalCount: Integer
|
19527
|
+
# @param EgressIPv6TotalCount: 出站IPv6总数
|
19528
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19529
|
+
# @type EgressIPv6TotalCount: Integer
|
19530
|
+
|
19531
|
+
attr_accessor :IngressIPv4TotalCount, :IngressIPv6TotalCount, :EgressIPv4TotalCount, :EgressIPv6TotalCount
|
19532
|
+
|
19533
|
+
def initialize(ingressipv4totalcount=nil, ingressipv6totalcount=nil, egressipv4totalcount=nil, egressipv6totalcount=nil)
|
19534
|
+
@IngressIPv4TotalCount = ingressipv4totalcount
|
19535
|
+
@IngressIPv6TotalCount = ingressipv6totalcount
|
19536
|
+
@EgressIPv4TotalCount = egressipv4totalcount
|
19537
|
+
@EgressIPv6TotalCount = egressipv6totalcount
|
19538
|
+
end
|
19539
|
+
|
19540
|
+
def deserialize(params)
|
19541
|
+
@IngressIPv4TotalCount = params['IngressIPv4TotalCount']
|
19542
|
+
@IngressIPv6TotalCount = params['IngressIPv6TotalCount']
|
19543
|
+
@EgressIPv4TotalCount = params['EgressIPv4TotalCount']
|
19544
|
+
@EgressIPv6TotalCount = params['EgressIPv6TotalCount']
|
19545
|
+
end
|
19546
|
+
end
|
19547
|
+
|
19480
19548
|
# 价格
|
19481
19549
|
class Price < TencentCloud::Common::AbstractModel
|
19482
19550
|
# @param InstancePrice: 实例价格。
|
@@ -21230,27 +21298,38 @@ module TencentCloud
|
|
21230
21298
|
# 安全组规则对象
|
21231
21299
|
class SecurityGroupPolicy < TencentCloud::Common::AbstractModel
|
21232
21300
|
# @param PolicyIndex: 安全组规则索引号,值会随着安全组规则的变更动态变化。使用PolicyIndex时,请先调用`DescribeSecurityGroupPolicies`获取到规则的PolicyIndex,并且结合返回值中的Version一起使用处理规则。
|
21301
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21233
21302
|
# @type PolicyIndex: Integer
|
21234
21303
|
# @param Protocol: 协议, 取值: TCP,UDP,ICMP,ICMPv6,ALL。
|
21304
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21235
21305
|
# @type Protocol: String
|
21236
21306
|
# @param Port: 端口(all, 离散port, range)。
|
21237
21307
|
# 说明:如果Protocol设置为ALL,则Port也需要设置为all。
|
21308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21238
21309
|
# @type Port: String
|
21239
21310
|
# @param ServiceTemplate: 协议端口ID或者协议端口组ID。ServiceTemplate和Protocol+Port互斥。
|
21311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21240
21312
|
# @type ServiceTemplate: :class:`Tencentcloud::Vpc.v20170312.models.ServiceTemplateSpecification`
|
21241
21313
|
# @param CidrBlock: 网段或IP(互斥),特殊说明:0.0.0.0/n 都会映射为0.0.0.0/0。
|
21314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21242
21315
|
# @type CidrBlock: String
|
21243
21316
|
# @param Ipv6CidrBlock: 网段或IPv6(互斥)。
|
21317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21244
21318
|
# @type Ipv6CidrBlock: String
|
21245
21319
|
# @param SecurityGroupId: 安全组实例ID,例如:sg-ohuuioma。
|
21320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21246
21321
|
# @type SecurityGroupId: String
|
21247
21322
|
# @param AddressTemplate: IP地址ID或者IP地址组ID。
|
21323
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21248
21324
|
# @type AddressTemplate: :class:`Tencentcloud::Vpc.v20170312.models.AddressTemplateSpecification`
|
21249
21325
|
# @param Action: ACCEPT 或 DROP。
|
21326
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21250
21327
|
# @type Action: String
|
21251
21328
|
# @param PolicyDescription: 安全组规则描述。
|
21329
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21252
21330
|
# @type PolicyDescription: String
|
21253
21331
|
# @param ModifyTime: 安全组最近修改时间。
|
21332
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21254
21333
|
# @type ModifyTime: String
|
21255
21334
|
|
21256
21335
|
attr_accessor :PolicyIndex, :Protocol, :Port, :ServiceTemplate, :CidrBlock, :Ipv6CidrBlock, :SecurityGroupId, :AddressTemplate, :Action, :PolicyDescription, :ModifyTime
|
@@ -21301,13 +21380,17 @@ module TencentCloud
|
|
21301
21380
|
# @param Ingress: 入站规则。
|
21302
21381
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
21303
21382
|
# @type Ingress: Array
|
21383
|
+
# @param PolicyStatistics: 安全组策略条目统计。只用于出参。
|
21384
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
21385
|
+
# @type PolicyStatistics: :class:`Tencentcloud::Vpc.v20170312.models.PolicyStatistics`
|
21304
21386
|
|
21305
|
-
attr_accessor :Version, :Egress, :Ingress
|
21387
|
+
attr_accessor :Version, :Egress, :Ingress, :PolicyStatistics
|
21306
21388
|
|
21307
|
-
def initialize(version=nil, egress=nil, ingress=nil)
|
21389
|
+
def initialize(version=nil, egress=nil, ingress=nil, policystatistics=nil)
|
21308
21390
|
@Version = version
|
21309
21391
|
@Egress = egress
|
21310
21392
|
@Ingress = ingress
|
21393
|
+
@PolicyStatistics = policystatistics
|
21311
21394
|
end
|
21312
21395
|
|
21313
21396
|
def deserialize(params)
|
@@ -21328,6 +21411,10 @@ module TencentCloud
|
|
21328
21411
|
@Ingress << securitygrouppolicy_tmp
|
21329
21412
|
end
|
21330
21413
|
end
|
21414
|
+
unless params['PolicyStatistics'].nil?
|
21415
|
+
@PolicyStatistics = PolicyStatistics.new
|
21416
|
+
@PolicyStatistics.deserialize(params['PolicyStatistics'])
|
21417
|
+
end
|
21331
21418
|
end
|
21332
21419
|
end
|
21333
21420
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.861
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|