tencentcloud-sdk-vpc 3.0.528 → 3.0.529
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/v20170312/client.rb +25 -0
- data/lib/v20170312/models.rb +46 -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: bd8e878bd6391e9882acc8d0358da1699fb3a18f
|
4
|
+
data.tar.gz: 5f334aa29343333b1af44d2cf768527b45ea4b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ca70db2acd0d019dccf8fe704152c5d29080093e64ad413bb51a4d09e1c1b271bf9c4951c5f6ebbc863cd6e43e899ee0ee3af8073250f0ccfce17ec02901835
|
7
|
+
data.tar.gz: 8d3ca0f4dfb31e3c299f44519f94535bc53d8866a06177108c206eb0837c6b41ce7aa0580815ca061b88a63337ea411ca515e15f929d911445d25244084f3a34
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.529
|
data/lib/v20170312/client.rb
CHANGED
@@ -7061,6 +7061,31 @@ module TencentCloud
|
|
7061
7061
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
7062
7062
|
end
|
7063
7063
|
|
7064
|
+
# 本接口(ReplaceSecurityGroupPolicies)用于批量修改安全组规则(SecurityGroupPolicy)。
|
7065
|
+
# 单个请求中只能替换单个方向的一条或多条规则, 必须要指定索引(PolicyIndex)。
|
7066
|
+
|
7067
|
+
# @param request: Request instance for ReplaceSecurityGroupPolicies.
|
7068
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::ReplaceSecurityGroupPoliciesRequest`
|
7069
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::ReplaceSecurityGroupPoliciesResponse`
|
7070
|
+
def ReplaceSecurityGroupPolicies(request)
|
7071
|
+
body = send_request('ReplaceSecurityGroupPolicies', request.serialize)
|
7072
|
+
response = JSON.parse(body)
|
7073
|
+
if response['Response'].key?('Error') == false
|
7074
|
+
model = ReplaceSecurityGroupPoliciesResponse.new
|
7075
|
+
model.deserialize(response['Response'])
|
7076
|
+
model
|
7077
|
+
else
|
7078
|
+
code = response['Response']['Error']['Code']
|
7079
|
+
message = response['Response']['Error']['Message']
|
7080
|
+
reqid = response['Response']['RequestId']
|
7081
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
7082
|
+
end
|
7083
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
7084
|
+
raise e
|
7085
|
+
rescue StandardError => e
|
7086
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
7087
|
+
end
|
7088
|
+
|
7064
7089
|
# 本接口(ReplaceSecurityGroupPolicy)用于替换单条安全组规则(SecurityGroupPolicy)。
|
7065
7090
|
# 单个请求中只能替换单个方向的一条规则, 必须要指定索引(PolicyIndex)。
|
7066
7091
|
|
data/lib/v20170312/models.rb
CHANGED
@@ -17618,6 +17618,52 @@ module TencentCloud
|
|
17618
17618
|
end
|
17619
17619
|
end
|
17620
17620
|
|
17621
|
+
# ReplaceSecurityGroupPolicies请求参数结构体
|
17622
|
+
class ReplaceSecurityGroupPoliciesRequest < TencentCloud::Common::AbstractModel
|
17623
|
+
# @param SecurityGroupId: 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。
|
17624
|
+
# @type SecurityGroupId: String
|
17625
|
+
# @param SecurityGroupPolicySet: 安全组规则集合对象。
|
17626
|
+
# @type SecurityGroupPolicySet: :class:`Tencentcloud::Vpc.v20170312.models.SecurityGroupPolicySet`
|
17627
|
+
# @param OriginalSecurityGroupPolicySet: 旧的安全组规则集合对象,可选,日志记录用。
|
17628
|
+
# @type OriginalSecurityGroupPolicySet: :class:`Tencentcloud::Vpc.v20170312.models.SecurityGroupPolicySet`
|
17629
|
+
|
17630
|
+
attr_accessor :SecurityGroupId, :SecurityGroupPolicySet, :OriginalSecurityGroupPolicySet
|
17631
|
+
|
17632
|
+
def initialize(securitygroupid=nil, securitygrouppolicyset=nil, originalsecuritygrouppolicyset=nil)
|
17633
|
+
@SecurityGroupId = securitygroupid
|
17634
|
+
@SecurityGroupPolicySet = securitygrouppolicyset
|
17635
|
+
@OriginalSecurityGroupPolicySet = originalsecuritygrouppolicyset
|
17636
|
+
end
|
17637
|
+
|
17638
|
+
def deserialize(params)
|
17639
|
+
@SecurityGroupId = params['SecurityGroupId']
|
17640
|
+
unless params['SecurityGroupPolicySet'].nil?
|
17641
|
+
@SecurityGroupPolicySet = SecurityGroupPolicySet.new
|
17642
|
+
@SecurityGroupPolicySet.deserialize(params['SecurityGroupPolicySet'])
|
17643
|
+
end
|
17644
|
+
unless params['OriginalSecurityGroupPolicySet'].nil?
|
17645
|
+
@OriginalSecurityGroupPolicySet = SecurityGroupPolicySet.new
|
17646
|
+
@OriginalSecurityGroupPolicySet.deserialize(params['OriginalSecurityGroupPolicySet'])
|
17647
|
+
end
|
17648
|
+
end
|
17649
|
+
end
|
17650
|
+
|
17651
|
+
# ReplaceSecurityGroupPolicies返回参数结构体
|
17652
|
+
class ReplaceSecurityGroupPoliciesResponse < TencentCloud::Common::AbstractModel
|
17653
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
17654
|
+
# @type RequestId: String
|
17655
|
+
|
17656
|
+
attr_accessor :RequestId
|
17657
|
+
|
17658
|
+
def initialize(requestid=nil)
|
17659
|
+
@RequestId = requestid
|
17660
|
+
end
|
17661
|
+
|
17662
|
+
def deserialize(params)
|
17663
|
+
@RequestId = params['RequestId']
|
17664
|
+
end
|
17665
|
+
end
|
17666
|
+
|
17621
17667
|
# ReplaceSecurityGroupPolicy请求参数结构体
|
17622
17668
|
class ReplaceSecurityGroupPolicyRequest < TencentCloud::Common::AbstractModel
|
17623
17669
|
# @param SecurityGroupId: 安全组实例ID,例如sg-33ocnj9n,可通过DescribeSecurityGroups获取。
|
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.529
|
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-03-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|