tencentcloud-sdk-lighthouse 3.0.564 → 3.0.565

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 155ed25c6ab0a954ce40167adaae17fe20aa066f
4
- data.tar.gz: a640bde48f113cbfe4457f612e0848a6b2e3e7b1
3
+ metadata.gz: 9ec862eedc1b33d9aca4c9b564445cd09e28a49a
4
+ data.tar.gz: 02269e17c18bedeca4a948c5889c29f3c741856f
5
5
  SHA512:
6
- metadata.gz: 760cdd6898d83aef96c098335108d1f8da1372f9c97218d4d5ca1c58883a9a0af771ef0c3f6f0047e1d4949df436da62948e3fb5e299968c41d4435d9f45b27e
7
- data.tar.gz: 3c0ae8809c0f68e9e301b31e5a8adaaba785e1666e216bf969e791ce0623c747fe6abbc65ee4d9dfc49a33efbe2bd0fa3f76ae8f75ec03c22d899df87fbfe431
6
+ metadata.gz: 0c20d714846dd423fa1e0dc8e63382db1ebe935319110a23d2f75864edcf1e153f2bb3bde553f526241a3e4be270072159563b539fc994c19779742f0c29fd15
7
+ data.tar.gz: 2f78379329d1f154f347b8dd8e4c335900070e27dba696c88a2f1b0cf1a56db201ed7a45f08a6845439e17dd4ae7a96bea911900a2e53e758dd03cc408489bbc
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.564
1
+ 3.0.565
@@ -212,6 +212,30 @@ module TencentCloud
212
212
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
213
213
  end
214
214
 
215
+ # 本接口(CreateDisks)用于创建一个或多个云硬盘。
216
+
217
+ # @param request: Request instance for CreateDisks.
218
+ # @type request: :class:`Tencentcloud::lighthouse::V20200324::CreateDisksRequest`
219
+ # @rtype: :class:`Tencentcloud::lighthouse::V20200324::CreateDisksResponse`
220
+ def CreateDisks(request)
221
+ body = send_request('CreateDisks', request.serialize)
222
+ response = JSON.parse(body)
223
+ if response['Response'].key?('Error') == false
224
+ model = CreateDisksResponse.new
225
+ model.deserialize(response['Response'])
226
+ model
227
+ else
228
+ code = response['Response']['Error']['Code']
229
+ message = response['Response']['Error']['Message']
230
+ reqid = response['Response']['RequestId']
231
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
232
+ end
233
+ rescue TencentCloud::Common::TencentCloudSDKException => e
234
+ raise e
235
+ rescue StandardError => e
236
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
237
+ end
238
+
215
239
  # 本接口(CreateFirewallRules)用于在实例上添加防火墙规则。
216
240
 
217
241
 
@@ -225,6 +225,30 @@ module TencentCloud
225
225
  end
226
226
  end
227
227
 
228
+ # 自动挂载并初始化该数据盘。
229
+ class AutoMountConfiguration < TencentCloud::Common::AbstractModel
230
+ # @param InstanceId: 待挂载的实例ID。指定的实例必须处于“运行中”状态。
231
+ # @type InstanceId: String
232
+ # @param MountPoint: 实例内的挂载点。仅Linux操作系统的实例可传入该参数, 不传则默认挂载在“/data/disk”路径下。
233
+ # @type MountPoint: String
234
+ # @param FileSystemType: 文件系统类型。取值: “ext4”、“xfs”。仅Linux操作系统的实例可传入该参数, 不传则默认为“ext4”。
235
+ # @type FileSystemType: String
236
+
237
+ attr_accessor :InstanceId, :MountPoint, :FileSystemType
238
+
239
+ def initialize(instanceid=nil, mountpoint=nil, filesystemtype=nil)
240
+ @InstanceId = instanceid
241
+ @MountPoint = mountpoint
242
+ @FileSystemType = filesystemtype
243
+ end
244
+
245
+ def deserialize(params)
246
+ @InstanceId = params['InstanceId']
247
+ @MountPoint = params['MountPoint']
248
+ @FileSystemType = params['FileSystemType']
249
+ end
250
+ end
251
+
228
252
  # 描述了镜像信息。
229
253
  class Blueprint < TencentCloud::Common::AbstractModel
230
254
  # @param BlueprintId: 镜像 ID ,是 Blueprint 的唯一标识。
@@ -632,6 +656,82 @@ module TencentCloud
632
656
  end
633
657
  end
634
658
 
659
+ # CreateDisks请求参数结构体
660
+ class CreateDisksRequest < TencentCloud::Common::AbstractModel
661
+ # @param Zone: 可用区。可通过[DescribeZones](https://cloud.tencent.com/document/product/1207/57513)返回值中的Zone获取。
662
+ # @type Zone: String
663
+ # @param DiskSize: 云硬盘大小, 单位: GB。
664
+ # @type DiskSize: Integer
665
+ # @param DiskType: 云硬盘介质类型。取值: "CLOUD_PREMIUM"(高性能云盘), "CLOUD_SSD"(SSD云硬盘)。
666
+ # @type DiskType: String
667
+ # @param DiskChargePrepaid: 云硬盘包年包月相关参数设置。
668
+ # @type DiskChargePrepaid: :class:`Tencentcloud::Lighthouse.v20200324.models.DiskChargePrepaid`
669
+ # @param DiskName: 云硬盘名称。最大长度60。
670
+ # @type DiskName: String
671
+ # @param DiskCount: 云硬盘个数。取值范围: [1, 30]。默认值: 1。
672
+ # @type DiskCount: Integer
673
+ # @param DiskBackupQuota: 指定云硬盘备份点配额,不传时默认为不带备份点配额。目前只支持不带或设置1个云硬盘备份点配额。
674
+ # @type DiskBackupQuota: Integer
675
+ # @param AutoVoucher: 是否自动使用代金券。默认不使用。
676
+ # @type AutoVoucher: Boolean
677
+ # @param AutoMountConfiguration: 自动挂载并初始化数据盘。
678
+ # @type AutoMountConfiguration: :class:`Tencentcloud::Lighthouse.v20200324.models.AutoMountConfiguration`
679
+
680
+ attr_accessor :Zone, :DiskSize, :DiskType, :DiskChargePrepaid, :DiskName, :DiskCount, :DiskBackupQuota, :AutoVoucher, :AutoMountConfiguration
681
+
682
+ def initialize(zone=nil, disksize=nil, disktype=nil, diskchargeprepaid=nil, diskname=nil, diskcount=nil, diskbackupquota=nil, autovoucher=nil, automountconfiguration=nil)
683
+ @Zone = zone
684
+ @DiskSize = disksize
685
+ @DiskType = disktype
686
+ @DiskChargePrepaid = diskchargeprepaid
687
+ @DiskName = diskname
688
+ @DiskCount = diskcount
689
+ @DiskBackupQuota = diskbackupquota
690
+ @AutoVoucher = autovoucher
691
+ @AutoMountConfiguration = automountconfiguration
692
+ end
693
+
694
+ def deserialize(params)
695
+ @Zone = params['Zone']
696
+ @DiskSize = params['DiskSize']
697
+ @DiskType = params['DiskType']
698
+ unless params['DiskChargePrepaid'].nil?
699
+ @DiskChargePrepaid = DiskChargePrepaid.new
700
+ @DiskChargePrepaid.deserialize(params['DiskChargePrepaid'])
701
+ end
702
+ @DiskName = params['DiskName']
703
+ @DiskCount = params['DiskCount']
704
+ @DiskBackupQuota = params['DiskBackupQuota']
705
+ @AutoVoucher = params['AutoVoucher']
706
+ unless params['AutoMountConfiguration'].nil?
707
+ @AutoMountConfiguration = AutoMountConfiguration.new
708
+ @AutoMountConfiguration.deserialize(params['AutoMountConfiguration'])
709
+ end
710
+ end
711
+ end
712
+
713
+ # CreateDisks返回参数结构体
714
+ class CreateDisksResponse < TencentCloud::Common::AbstractModel
715
+ # @param DiskIdSet: 当通过本接口来创建云硬盘时会返回该参数,表示一个或多个云硬盘ID。返回云硬盘ID列表并不代表云硬盘创建成功。
716
+
717
+ # 可根据 [DescribeDisks](https://cloud.tencent.com/document/product/1207/66093) 接口查询返回的DiskSet中对应云硬盘的ID的状态来判断创建是否完成;如果云硬盘状态由“PENDING”变为“UNATTACHED”或“ATTACHED”,则为创建成功。
718
+ # @type DiskIdSet: Array
719
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
720
+ # @type RequestId: String
721
+
722
+ attr_accessor :DiskIdSet, :RequestId
723
+
724
+ def initialize(diskidset=nil, requestid=nil)
725
+ @DiskIdSet = diskidset
726
+ @RequestId = requestid
727
+ end
728
+
729
+ def deserialize(params)
730
+ @DiskIdSet = params['DiskIdSet']
731
+ @RequestId = params['RequestId']
732
+ end
733
+ end
734
+
635
735
  # CreateFirewallRules请求参数结构体
636
736
  class CreateFirewallRulesRequest < TencentCloud::Common::AbstractModel
637
737
  # @param InstanceId: 实例 ID。
@@ -4940,11 +5040,11 @@ module TencentCloud
4940
5040
  # 折扣详情信息。
4941
5041
  class PolicyDetail < TencentCloud::Common::AbstractModel
4942
5042
  # @param UserDiscount: 用户折扣。
4943
- # @type UserDiscount: Integer
5043
+ # @type UserDiscount: Float
4944
5044
  # @param CommonDiscount: 公共折扣。
4945
- # @type CommonDiscount: Integer
5045
+ # @type CommonDiscount: Float
4946
5046
  # @param FinalDiscount: 最终折扣。
4947
- # @type FinalDiscount: Integer
5047
+ # @type FinalDiscount: Float
4948
5048
  # @param ActivityDiscount: 活动折扣。取值为null,表示无有效值,即没有折扣。
4949
5049
  # 注意:此字段可能返回 null,表示取不到有效值。
4950
5050
  # @type ActivityDiscount: Float
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: 3.0.564
4
+ version: 3.0.565
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-05-08 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common