tencentcloud-sdk-vpc 1.0.338 → 1.0.339
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 +24 -0
- data/lib/v20170312/models.rb +54 -2
- 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: 2ca043aff7b719d65e19253ca25a2359f6556c58
|
4
|
+
data.tar.gz: c5c8357e2b488ddfa792f28c94de48ae5630b126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b1954286b455ad3fbf1ec0cd4a111acf6cabe90a4438e8854266788564e05a74cc9f554dde0bbb86987281fd66049753092fdaddc5951c63c0f731ba08caaee
|
7
|
+
data.tar.gz: 7b5fcb72ca5270c014554f5dd220146b9087ed439def51be549f6b34563f14cc90b3bb00fb007599dd675610bbff376fd67ce857c22341d4a905fc819fb7ce67
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.339
|
data/lib/v20170312/client.rb
CHANGED
@@ -127,6 +127,30 @@ module TencentCloud
|
|
127
127
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
128
|
end
|
129
129
|
|
130
|
+
# 本接口 (AdjustPublicAddress) 用于更换IP地址,支持更换CVM实例的普通公网IP和包月带宽的EIP。
|
131
|
+
|
132
|
+
# @param request: Request instance for AdjustPublicAddress.
|
133
|
+
# @type request: :class:`Tencentcloud::vpc::V20170312::AdjustPublicAddressRequest`
|
134
|
+
# @rtype: :class:`Tencentcloud::vpc::V20170312::AdjustPublicAddressResponse`
|
135
|
+
def AdjustPublicAddress(request)
|
136
|
+
body = send_request('AdjustPublicAddress', request.serialize)
|
137
|
+
response = JSON.parse(body)
|
138
|
+
if response['Response'].key?('Error') == false
|
139
|
+
model = AdjustPublicAddressResponse.new
|
140
|
+
model.deserialize(response['Response'])
|
141
|
+
model
|
142
|
+
else
|
143
|
+
code = response['Response']['Error']['Code']
|
144
|
+
message = response['Response']['Error']['Message']
|
145
|
+
reqid = response['Response']['RequestId']
|
146
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
147
|
+
end
|
148
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
149
|
+
raise e
|
150
|
+
rescue StandardError => e
|
151
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
152
|
+
end
|
153
|
+
|
130
154
|
# 本接口 (AllocateAddresses) 用于申请一个或多个[弹性公网IP](https://cloud.tencent.com/document/product/213/1941)(简称 EIP)。
|
131
155
|
# * EIP 是专为动态云计算设计的静态 IP 地址。借助 EIP,您可以快速将 EIP 重新映射到您的另一个实例上,从而屏蔽实例故障。
|
132
156
|
# * 您的 EIP 与腾讯云账户相关联,而不是与某个实例相关联。在您选择显式释放该地址,或欠费超过24小时之前,它会一直与您的腾讯云账户保持关联。
|
data/lib/v20170312/models.rb
CHANGED
@@ -492,6 +492,46 @@ module TencentCloud
|
|
492
492
|
end
|
493
493
|
end
|
494
494
|
|
495
|
+
# AdjustPublicAddress请求参数结构体
|
496
|
+
class AdjustPublicAddressRequest < TencentCloud::Common::AbstractModel
|
497
|
+
# @param InstanceId: 标识CVM实例的唯一 ID。CVM 唯一 ID 形如:`ins-11112222`。
|
498
|
+
# @type InstanceId: String
|
499
|
+
# @param AddressId: 标识EIP实例的唯一 ID。EIP 唯一 ID 形如:`eip-11112222`。
|
500
|
+
# @type AddressId: String
|
501
|
+
|
502
|
+
attr_accessor :InstanceId, :AddressId
|
503
|
+
|
504
|
+
def initialize(instanceid=nil, addressid=nil)
|
505
|
+
@InstanceId = instanceid
|
506
|
+
@AddressId = addressid
|
507
|
+
end
|
508
|
+
|
509
|
+
def deserialize(params)
|
510
|
+
@InstanceId = params['InstanceId']
|
511
|
+
@AddressId = params['AddressId']
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|
515
|
+
# AdjustPublicAddress返回参数结构体
|
516
|
+
class AdjustPublicAddressResponse < TencentCloud::Common::AbstractModel
|
517
|
+
# @param TaskId: 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。
|
518
|
+
# @type TaskId: Integer
|
519
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
520
|
+
# @type RequestId: String
|
521
|
+
|
522
|
+
attr_accessor :TaskId, :RequestId
|
523
|
+
|
524
|
+
def initialize(taskid=nil, requestid=nil)
|
525
|
+
@TaskId = taskid
|
526
|
+
@RequestId = requestid
|
527
|
+
end
|
528
|
+
|
529
|
+
def deserialize(params)
|
530
|
+
@TaskId = params['TaskId']
|
531
|
+
@RequestId = params['RequestId']
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
495
535
|
# ALG协议类型
|
496
536
|
class AlgType < TencentCloud::Common::AbstractModel
|
497
537
|
# @param Ftp: Ftp协议Alg功能是否开启
|
@@ -4397,10 +4437,16 @@ module TencentCloud
|
|
4397
4437
|
# @type EncryptAlgorithm: String
|
4398
4438
|
# @param Compress: 是否支持压缩。当前仅支持不支持压缩。默认False
|
4399
4439
|
# @type Compress: Boolean
|
4440
|
+
# @param SsoEnabled: 是否开启SSO认证
|
4441
|
+
# @type SsoEnabled: Boolean
|
4442
|
+
# @param AccessPolicyEnabled: 是否开启策略访问控制
|
4443
|
+
# @type AccessPolicyEnabled: Boolean
|
4444
|
+
# @param SamlData: SAML-DATA
|
4445
|
+
# @type SamlData: String
|
4400
4446
|
|
4401
|
-
attr_accessor :VpnGatewayId, :SslVpnServerName, :LocalAddress, :RemoteAddress, :SslVpnProtocol, :SslVpnPort, :IntegrityAlgorithm, :EncryptAlgorithm, :Compress
|
4447
|
+
attr_accessor :VpnGatewayId, :SslVpnServerName, :LocalAddress, :RemoteAddress, :SslVpnProtocol, :SslVpnPort, :IntegrityAlgorithm, :EncryptAlgorithm, :Compress, :SsoEnabled, :AccessPolicyEnabled, :SamlData
|
4402
4448
|
|
4403
|
-
def initialize(vpngatewayid=nil, sslvpnservername=nil, localaddress=nil, remoteaddress=nil, sslvpnprotocol=nil, sslvpnport=nil, integrityalgorithm=nil, encryptalgorithm=nil, compress=nil)
|
4449
|
+
def initialize(vpngatewayid=nil, sslvpnservername=nil, localaddress=nil, remoteaddress=nil, sslvpnprotocol=nil, sslvpnport=nil, integrityalgorithm=nil, encryptalgorithm=nil, compress=nil, ssoenabled=nil, accesspolicyenabled=nil, samldata=nil)
|
4404
4450
|
@VpnGatewayId = vpngatewayid
|
4405
4451
|
@SslVpnServerName = sslvpnservername
|
4406
4452
|
@LocalAddress = localaddress
|
@@ -4410,6 +4456,9 @@ module TencentCloud
|
|
4410
4456
|
@IntegrityAlgorithm = integrityalgorithm
|
4411
4457
|
@EncryptAlgorithm = encryptalgorithm
|
4412
4458
|
@Compress = compress
|
4459
|
+
@SsoEnabled = ssoenabled
|
4460
|
+
@AccessPolicyEnabled = accesspolicyenabled
|
4461
|
+
@SamlData = samldata
|
4413
4462
|
end
|
4414
4463
|
|
4415
4464
|
def deserialize(params)
|
@@ -4422,6 +4471,9 @@ module TencentCloud
|
|
4422
4471
|
@IntegrityAlgorithm = params['IntegrityAlgorithm']
|
4423
4472
|
@EncryptAlgorithm = params['EncryptAlgorithm']
|
4424
4473
|
@Compress = params['Compress']
|
4474
|
+
@SsoEnabled = params['SsoEnabled']
|
4475
|
+
@AccessPolicyEnabled = params['AccessPolicyEnabled']
|
4476
|
+
@SamlData = params['SamlData']
|
4425
4477
|
end
|
4426
4478
|
end
|
4427
4479
|
|
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: 1.0.
|
4
|
+
version: 1.0.339
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|