tencentcloud-sdk-vpc 3.0.528 → 3.0.530

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: 0a6f0cce520e3fd0888f78b2e2eecc21a3ab0b14
4
- data.tar.gz: e19de1e688ef9e87befe9c7fbd64034a52ec9e92
3
+ metadata.gz: 57990fc546f4159c122f523f2b6140f5cce5f137
4
+ data.tar.gz: 932fe06ad1f9f662e02025de1e90644725a6c5ac
5
5
  SHA512:
6
- metadata.gz: d94ae011760ed617929cf0658d07d0362a9e6c2bb121ea39addb7e2230ff74ec46f38b76ca84556e235dafcf4ea0c90cd13e9a61373e1183e57b2ba061460534
7
- data.tar.gz: afca26f12fcb3377624c317fd626de2fb9f51c34e26da49b16266de8f9650aed0e97eac06f4ae6facd2da0209764b8b2da98f3001b535d1dfe52f95976eb2a06
6
+ metadata.gz: 481a4813554347a078db8bcd36c376d2935dd21dd5bd742e70a27c02e255aaa564613bfed1ef451d1b79c396c25392471f3778beeeaecfc8e4d4c938329fb45a
7
+ data.tar.gz: 5ed9adf0e142f40ad59cacbc87ebaa66ef44d21f28b810d26c4d0e3f0edc1f231de6ffdb354e46551840ea467d890dc6e6c6bb4888fa0805d2826a799afa6fbf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.528
1
+ 3.0.530
@@ -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
 
@@ -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.528
4
+ version: 3.0.530
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-13 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common