tencentcloud-sdk-lighthouse 1.0.303 → 1.0.304
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/v20200324/client.rb +24 -0
- data/lib/v20200324/models.rb +69 -1
- 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: 23198cc5787ac6007a0d87b5087a3b568d845124
|
4
|
+
data.tar.gz: 6991d5cdc928bc730c74b0c5b821db7109d371c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edc0a7cc26dc4a32ea54684739362dd0a955199b1102a0433eef865869e581df4dc5d2cc0b920e74e9f6baa2738d87a2fad0a0a22898f65fd1c597eca0b2a98b
|
7
|
+
data.tar.gz: 32598853a22302fafefd0264e7f13cf08456091716010b342442112eab56814b2ced7a2ab9ffe40ed99fa50e95b290fb7f1e3ab318e6904ef5d2603bc7ddcebb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.304
|
data/lib/v20200324/client.rb
CHANGED
@@ -1524,6 +1524,30 @@ module TencentCloud
|
|
1524
1524
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1525
1525
|
end
|
1526
1526
|
|
1527
|
+
# 本接口(RenewInstances)用于续费一个或多个轻量应用服务器实例。
|
1528
|
+
|
1529
|
+
# @param request: Request instance for RenewInstances.
|
1530
|
+
# @type request: :class:`Tencentcloud::lighthouse::V20200324::RenewInstancesRequest`
|
1531
|
+
# @rtype: :class:`Tencentcloud::lighthouse::V20200324::RenewInstancesResponse`
|
1532
|
+
def RenewInstances(request)
|
1533
|
+
body = send_request('RenewInstances', request.serialize)
|
1534
|
+
response = JSON.parse(body)
|
1535
|
+
if response['Response'].key?('Error') == false
|
1536
|
+
model = RenewInstancesResponse.new
|
1537
|
+
model.deserialize(response['Response'])
|
1538
|
+
model
|
1539
|
+
else
|
1540
|
+
code = response['Response']['Error']['Code']
|
1541
|
+
message = response['Response']['Error']['Message']
|
1542
|
+
reqid = response['Response']['RequestId']
|
1543
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1544
|
+
end
|
1545
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1546
|
+
raise e
|
1547
|
+
rescue StandardError => e
|
1548
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1549
|
+
end
|
1550
|
+
|
1527
1551
|
# 本接口 (ResetAttachCcn) 用于关联云联网实例申请过期时,重新申请关联操作。
|
1528
1552
|
|
1529
1553
|
# @param request: Request instance for ResetAttachCcn.
|
data/lib/v20200324/models.rb
CHANGED
@@ -3726,12 +3726,27 @@ module TencentCloud
|
|
3726
3726
|
|
3727
3727
|
# 实例密码登录配置信息。
|
3728
3728
|
class LoginConfiguration < TencentCloud::Common::AbstractModel
|
3729
|
+
# @param AutoGeneratePassword: <li>"YES"代表选择自动生成密码,这时不指定Password字段。</li>
|
3730
|
+
# <li>"NO"代表选择自定义密码,这时要指定Password字段。</li>
|
3731
|
+
# @type AutoGeneratePassword: String
|
3732
|
+
# @param Password: 实例登录密码。具体按照操作系统的复杂度要求。
|
3733
|
+
# WINDOWS 实例密码必须 12-30 位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符
|
3734
|
+
# <li>小写字母:[a-z]</li>
|
3735
|
+
# <li>大写字母:[A-Z]</li>
|
3736
|
+
# <li>数字: 0-9</li>
|
3737
|
+
# <li>特殊字符:()`~!@#$%^&*-+=_|{}[]:;' <>,.?/</li>
|
3738
|
+
# @type Password: String
|
3729
3739
|
|
3740
|
+
attr_accessor :AutoGeneratePassword, :Password
|
3730
3741
|
|
3731
|
-
def initialize()
|
3742
|
+
def initialize(autogeneratepassword=nil, password=nil)
|
3743
|
+
@AutoGeneratePassword = autogeneratepassword
|
3744
|
+
@Password = password
|
3732
3745
|
end
|
3733
3746
|
|
3734
3747
|
def deserialize(params)
|
3748
|
+
@AutoGeneratePassword = params['AutoGeneratePassword']
|
3749
|
+
@Password = params['Password']
|
3735
3750
|
end
|
3736
3751
|
end
|
3737
3752
|
|
@@ -4266,6 +4281,59 @@ module TencentCloud
|
|
4266
4281
|
end
|
4267
4282
|
end
|
4268
4283
|
|
4284
|
+
# RenewInstances请求参数结构体
|
4285
|
+
class RenewInstancesRequest < TencentCloud::Common::AbstractModel
|
4286
|
+
# @param InstanceIds: 实例ID列表。一个或多个待操作的实例ID。可通过DescribeInstances接口返回值中的InstanceId获取。每次请求批量实例的上限为100。
|
4287
|
+
# @type InstanceIds: Array
|
4288
|
+
# @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
|
4289
|
+
# @type InstanceChargePrepaid: :class:`Tencentcloud::Lighthouse.v20200324.models.InstanceChargePrepaid`
|
4290
|
+
# @param RenewDataDisk: 是否续费弹性数据盘。取值范围:
|
4291
|
+
# TRUE:表示续费实例同时续费其挂载的数据盘
|
4292
|
+
# FALSE:表示续费实例同时不再续费其挂载的数据盘
|
4293
|
+
# 默认取值:TRUE。
|
4294
|
+
# @type RenewDataDisk: Boolean
|
4295
|
+
# @param AutoVoucher: 是否自动抵扣代金券。取值范围:
|
4296
|
+
# TRUE:表示自动抵扣代金券
|
4297
|
+
# FALSE:表示不自动抵扣代金券
|
4298
|
+
# 默认取值:FALSE。
|
4299
|
+
# @type AutoVoucher: Boolean
|
4300
|
+
|
4301
|
+
attr_accessor :InstanceIds, :InstanceChargePrepaid, :RenewDataDisk, :AutoVoucher
|
4302
|
+
|
4303
|
+
def initialize(instanceids=nil, instancechargeprepaid=nil, renewdatadisk=nil, autovoucher=nil)
|
4304
|
+
@InstanceIds = instanceids
|
4305
|
+
@InstanceChargePrepaid = instancechargeprepaid
|
4306
|
+
@RenewDataDisk = renewdatadisk
|
4307
|
+
@AutoVoucher = autovoucher
|
4308
|
+
end
|
4309
|
+
|
4310
|
+
def deserialize(params)
|
4311
|
+
@InstanceIds = params['InstanceIds']
|
4312
|
+
unless params['InstanceChargePrepaid'].nil?
|
4313
|
+
@InstanceChargePrepaid = InstanceChargePrepaid.new
|
4314
|
+
@InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
|
4315
|
+
end
|
4316
|
+
@RenewDataDisk = params['RenewDataDisk']
|
4317
|
+
@AutoVoucher = params['AutoVoucher']
|
4318
|
+
end
|
4319
|
+
end
|
4320
|
+
|
4321
|
+
# RenewInstances返回参数结构体
|
4322
|
+
class RenewInstancesResponse < TencentCloud::Common::AbstractModel
|
4323
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4324
|
+
# @type RequestId: String
|
4325
|
+
|
4326
|
+
attr_accessor :RequestId
|
4327
|
+
|
4328
|
+
def initialize(requestid=nil)
|
4329
|
+
@RequestId = requestid
|
4330
|
+
end
|
4331
|
+
|
4332
|
+
def deserialize(params)
|
4333
|
+
@RequestId = params['RequestId']
|
4334
|
+
end
|
4335
|
+
end
|
4336
|
+
|
4269
4337
|
# ResetAttachCcn请求参数结构体
|
4270
4338
|
class ResetAttachCcnRequest < TencentCloud::Common::AbstractModel
|
4271
4339
|
# @param CcnId: 云联网实例ID。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-lighthouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.304
|
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-04-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|