tencentcloud-sdk-cvm 3.0.916 → 3.0.918

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: 55b9a13e27996e32f43c118d275b510dbeeccbb4
4
- data.tar.gz: 347911d4c85a0d35f2a6d20bf8c807e80bf14b15
3
+ metadata.gz: 65dd9806f077cde61a1d0579dd90fca8be72f1e4
4
+ data.tar.gz: 1a746da56806a790e4db6e6d1d05139608a1a840
5
5
  SHA512:
6
- metadata.gz: b7e8090d4f97d0cecc2b6b667bea15d9769ed00a89cd5a6e5a87fd5b8780e48387623111cce1219ba0d50eb7799796e2ec73e05509edc39db6531ecf11dec138
7
- data.tar.gz: 86d6cf91d7a94971724c181fee84b5d6f264a7a244757d06cbe79d3f0da383d631dd8d375bb2811d1c2101091ebb542b41fbe04d4e3f1805dd86c2babed38c76
6
+ metadata.gz: 187b5b9d34aeec2452fb2b3fba57b5bf45dba430a0aacd1b03037613a174cc1969b659d44722a4697c4a9b73b87e2672dac317d21e431b7125e5a4ba9e7352b8
7
+ data.tar.gz: 87ceb1a8cc522780965902bba657ee6b6458fa4aed4f4a00a7e7985e806d2ca67121a2a688a49c5c1c5004a4fcf86a458af47e34d5c6823198821e36a18a19c5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.916
1
+ 3.0.918
@@ -682,6 +682,30 @@ module TencentCloud
682
682
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
683
683
  end
684
684
 
685
+ # 本接口(DescribeImageFromFamily) 用于查看镜像族内可用镜像信息。
686
+
687
+ # @param request: Request instance for DescribeImageFromFamily.
688
+ # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeImageFromFamilyRequest`
689
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeImageFromFamilyResponse`
690
+ def DescribeImageFromFamily(request)
691
+ body = send_request('DescribeImageFromFamily', request.serialize)
692
+ response = JSON.parse(body)
693
+ if response['Response'].key?('Error') == false
694
+ model = DescribeImageFromFamilyResponse.new
695
+ model.deserialize(response['Response'])
696
+ model
697
+ else
698
+ code = response['Response']['Error']['Code']
699
+ message = response['Response']['Error']['Message']
700
+ reqid = response['Response']['RequestId']
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
702
+ end
703
+ rescue TencentCloud::Common::TencentCloudSDKException => e
704
+ raise e
705
+ rescue StandardError => e
706
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
707
+ end
708
+
685
709
  # 本接口(DescribeImageQuota)用于查询用户账号的镜像配额。
686
710
 
687
711
  # @param request: Request instance for DescribeImageQuota.
@@ -791,7 +791,7 @@ module TencentCloud
791
791
  # @param ImageDescription: 镜像描述
792
792
  # @type ImageDescription: String
793
793
  # @param ForcePoweroff: 是否执行强制关机以制作镜像。
794
- # 取值范围:<br><li>true:表示关机之后制作镜像<br><li>false:表示开机状态制作镜像<br><br>默认取值:false。<br><br>开机状态制作镜像,可能导致部分数据未备份,影响数据安全。
794
+ # 取值范围:<br><li>true:表示关机之后制作镜像</li><br><li>false:表示开机状态制作镜像</li><br><br>默认取值:false。<br><br>开机状态制作镜像,可能导致部分数据未备份,影响数据安全。
795
795
  # @type ForcePoweroff: String
796
796
  # @param Sysprep: 创建Windows镜像时是否启用Sysprep。
797
797
  # 取值范围:true或false,传true表示启用Sysprep,传false表示不启用,默认取值为false。
@@ -806,10 +806,12 @@ module TencentCloud
806
806
  # @type DryRun: Boolean
807
807
  # @param TagSpecification: 标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。
808
808
  # @type TagSpecification: Array
809
+ # @param ImageFamily: 镜像族
810
+ # @type ImageFamily: String
809
811
 
810
- attr_accessor :ImageName, :InstanceId, :ImageDescription, :ForcePoweroff, :Sysprep, :DataDiskIds, :SnapshotIds, :DryRun, :TagSpecification
812
+ attr_accessor :ImageName, :InstanceId, :ImageDescription, :ForcePoweroff, :Sysprep, :DataDiskIds, :SnapshotIds, :DryRun, :TagSpecification, :ImageFamily
811
813
 
812
- def initialize(imagename=nil, instanceid=nil, imagedescription=nil, forcepoweroff=nil, sysprep=nil, datadiskids=nil, snapshotids=nil, dryrun=nil, tagspecification=nil)
814
+ def initialize(imagename=nil, instanceid=nil, imagedescription=nil, forcepoweroff=nil, sysprep=nil, datadiskids=nil, snapshotids=nil, dryrun=nil, tagspecification=nil, imagefamily=nil)
813
815
  @ImageName = imagename
814
816
  @InstanceId = instanceid
815
817
  @ImageDescription = imagedescription
@@ -819,6 +821,7 @@ module TencentCloud
819
821
  @SnapshotIds = snapshotids
820
822
  @DryRun = dryrun
821
823
  @TagSpecification = tagspecification
824
+ @ImageFamily = imagefamily
822
825
  end
823
826
 
824
827
  def deserialize(params)
@@ -838,6 +841,7 @@ module TencentCloud
838
841
  @TagSpecification << tagspecification_tmp
839
842
  end
840
843
  end
844
+ @ImageFamily = params['ImageFamily']
841
845
  end
842
846
  end
843
847
 
@@ -2059,6 +2063,46 @@ module TencentCloud
2059
2063
  end
2060
2064
  end
2061
2065
 
2066
+ # DescribeImageFromFamily请求参数结构体
2067
+ class DescribeImageFromFamilyRequest < TencentCloud::Common::AbstractModel
2068
+ # @param ImageFamily: 镜像族
2069
+ # @type ImageFamily: String
2070
+
2071
+ attr_accessor :ImageFamily
2072
+
2073
+ def initialize(imagefamily=nil)
2074
+ @ImageFamily = imagefamily
2075
+ end
2076
+
2077
+ def deserialize(params)
2078
+ @ImageFamily = params['ImageFamily']
2079
+ end
2080
+ end
2081
+
2082
+ # DescribeImageFromFamily返回参数结构体
2083
+ class DescribeImageFromFamilyResponse < TencentCloud::Common::AbstractModel
2084
+ # @param Image: 镜像信息,没有可用镜像是返回为空
2085
+ # 注意:此字段可能返回 null,表示取不到有效值。
2086
+ # @type Image: :class:`Tencentcloud::Cvm.v20170312.models.Image`
2087
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2088
+ # @type RequestId: String
2089
+
2090
+ attr_accessor :Image, :RequestId
2091
+
2092
+ def initialize(image=nil, requestid=nil)
2093
+ @Image = image
2094
+ @RequestId = requestid
2095
+ end
2096
+
2097
+ def deserialize(params)
2098
+ unless params['Image'].nil?
2099
+ @Image = Image.new
2100
+ @Image.deserialize(params['Image'])
2101
+ end
2102
+ @RequestId = params['RequestId']
2103
+ end
2104
+ end
2105
+
2062
2106
  # DescribeImageQuota请求参数结构体
2063
2107
  class DescribeImageQuotaRequest < TencentCloud::Common::AbstractModel
2064
2108
 
@@ -4170,10 +4214,15 @@ module TencentCloud
4170
4214
  # @type Tags: Array
4171
4215
  # @param LicenseType: 镜像许可类型
4172
4216
  # @type LicenseType: String
4217
+ # @param ImageFamily: 镜像族
4218
+ # 注意:此字段可能返回 null,表示取不到有效值。
4219
+ # @type ImageFamily: String
4220
+ # @param ImageDeprecated: 镜像是否废弃
4221
+ # @type ImageDeprecated: Boolean
4173
4222
 
4174
- attr_accessor :ImageId, :OsName, :ImageType, :CreatedTime, :ImageName, :ImageDescription, :ImageSize, :Architecture, :ImageState, :Platform, :ImageCreator, :ImageSource, :SyncPercent, :IsSupportCloudinit, :SnapshotSet, :Tags, :LicenseType
4223
+ attr_accessor :ImageId, :OsName, :ImageType, :CreatedTime, :ImageName, :ImageDescription, :ImageSize, :Architecture, :ImageState, :Platform, :ImageCreator, :ImageSource, :SyncPercent, :IsSupportCloudinit, :SnapshotSet, :Tags, :LicenseType, :ImageFamily, :ImageDeprecated
4175
4224
 
4176
- def initialize(imageid=nil, osname=nil, imagetype=nil, createdtime=nil, imagename=nil, imagedescription=nil, imagesize=nil, architecture=nil, imagestate=nil, platform=nil, imagecreator=nil, imagesource=nil, syncpercent=nil, issupportcloudinit=nil, snapshotset=nil, tags=nil, licensetype=nil)
4225
+ def initialize(imageid=nil, osname=nil, imagetype=nil, createdtime=nil, imagename=nil, imagedescription=nil, imagesize=nil, architecture=nil, imagestate=nil, platform=nil, imagecreator=nil, imagesource=nil, syncpercent=nil, issupportcloudinit=nil, snapshotset=nil, tags=nil, licensetype=nil, imagefamily=nil, imagedeprecated=nil)
4177
4226
  @ImageId = imageid
4178
4227
  @OsName = osname
4179
4228
  @ImageType = imagetype
@@ -4191,6 +4240,8 @@ module TencentCloud
4191
4240
  @SnapshotSet = snapshotset
4192
4241
  @Tags = tags
4193
4242
  @LicenseType = licensetype
4243
+ @ImageFamily = imagefamily
4244
+ @ImageDeprecated = imagedeprecated
4194
4245
  end
4195
4246
 
4196
4247
  def deserialize(params)
@@ -4225,6 +4276,8 @@ module TencentCloud
4225
4276
  end
4226
4277
  end
4227
4278
  @LicenseType = params['LicenseType']
4279
+ @ImageFamily = params['ImageFamily']
4280
+ @ImageDeprecated = params['ImageDeprecated']
4228
4281
  end
4229
4282
  end
4230
4283
 
@@ -4567,7 +4620,7 @@ module TencentCloud
4567
4620
  # @type HostIds: Array
4568
4621
  # @param HostChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
4569
4622
  # @type HostChargePrepaid: :class:`Tencentcloud::Cvm.v20170312.models.ChargePrepaid`
4570
- # @param DryRun: 试运行,测试使用,不执行具体逻辑。取值范围:<br><li>TRUE:跳过执行逻辑<br><li>FALSE:执行逻辑<br><br>默认取值:FALSE。
4623
+ # @param DryRun: 是否只预检此次请求。true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。如果检查不通过,则返回对应错误码;如果检查通过,则返回RequestId.false(默认):发送正常请求,通过检查后直接创建实例
4571
4624
  # @type DryRun: Boolean
4572
4625
 
4573
4626
  attr_accessor :HostIds, :HostChargePrepaid, :DryRun
@@ -6194,13 +6247,13 @@ module TencentCloud
6194
6247
 
6195
6248
  # 描述了实例登录相关配置与信息。
6196
6249
  class LoginSettings < TencentCloud::Common::AbstractModel
6197
- # @param Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
6250
+ # @param Password: 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
6198
6251
  # 注意:此字段可能返回 null,表示取不到有效值。
6199
6252
  # @type Password: String
6200
6253
  # @param KeyIds: 密钥ID列表。关联密钥后,就可以通过对应的私钥来访问实例;KeyId可通过接口[DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699)获取,密钥与密码不能同时指定,同时Windows操作系统不支持指定密钥。
6201
6254
  # 注意:此字段可能返回 null,表示取不到有效值。
6202
6255
  # @type KeyIds: Array
6203
- # @param KeepImageLogin: 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为TRUE。取值范围:<br><li>TRUE:表示保持镜像的登录设置<br><li>FALSE:表示不保持镜像的登录设置<br><br>默认取值:FALSE
6256
+ # @param KeepImageLogin: 保持镜像的原始设置。该参数与Password或KeyIds.N不能同时指定。只有使用自定义镜像、共享镜像或外部导入镜像创建实例时才能指定该参数为true。取值范围:<li>true:表示保持镜像的登录设置</li><li>false:表示不保持镜像的登录设置</li>默认取值:false
6204
6257
  # 注意:此字段可能返回 null,表示取不到有效值。
6205
6258
  # @type KeepImageLogin: String
6206
6259
 
@@ -6399,19 +6452,27 @@ module TencentCloud
6399
6452
  # @type ImageName: String
6400
6453
  # @param ImageDescription: 设置新的镜像描述;必须满足下列限制: <li> 不得超过 256 个字符。</li>
6401
6454
  # @type ImageDescription: String
6455
+ # @param ImageFamily: 设置镜像族;
6456
+ # @type ImageFamily: String
6457
+ # @param ImageDeprecated: 设置镜像是否废弃;
6458
+ # @type ImageDeprecated: Boolean
6402
6459
 
6403
- attr_accessor :ImageId, :ImageName, :ImageDescription
6460
+ attr_accessor :ImageId, :ImageName, :ImageDescription, :ImageFamily, :ImageDeprecated
6404
6461
 
6405
- def initialize(imageid=nil, imagename=nil, imagedescription=nil)
6462
+ def initialize(imageid=nil, imagename=nil, imagedescription=nil, imagefamily=nil, imagedeprecated=nil)
6406
6463
  @ImageId = imageid
6407
6464
  @ImageName = imagename
6408
6465
  @ImageDescription = imagedescription
6466
+ @ImageFamily = imagefamily
6467
+ @ImageDeprecated = imagedeprecated
6409
6468
  end
6410
6469
 
6411
6470
  def deserialize(params)
6412
6471
  @ImageId = params['ImageId']
6413
6472
  @ImageName = params['ImageName']
6414
6473
  @ImageDescription = params['ImageDescription']
6474
+ @ImageFamily = params['ImageFamily']
6475
+ @ImageDeprecated = params['ImageDeprecated']
6415
6476
  end
6416
6477
  end
6417
6478
 
@@ -7606,14 +7667,22 @@ module TencentCloud
7606
7667
  # @type OriginalUsagePrice: Float
7607
7668
  # @param DiscountUsagePrice: 后续合计费用的折扣价,单位:元/小时
7608
7669
  # @type DiscountUsagePrice: Float
7670
+ # @param FixedPriceDiscount: 预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
7671
+ # 注意:此字段可能返回 null,表示取不到有效值。
7672
+ # @type FixedPriceDiscount: Float
7673
+ # @param UsagePriceDiscount: 后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
7674
+ # 注意:此字段可能返回 null,表示取不到有效值。
7675
+ # @type UsagePriceDiscount: Float
7609
7676
 
7610
- attr_accessor :OriginalFixedPrice, :DiscountFixedPrice, :OriginalUsagePrice, :DiscountUsagePrice
7677
+ attr_accessor :OriginalFixedPrice, :DiscountFixedPrice, :OriginalUsagePrice, :DiscountUsagePrice, :FixedPriceDiscount, :UsagePriceDiscount
7611
7678
 
7612
- def initialize(originalfixedprice=nil, discountfixedprice=nil, originalusageprice=nil, discountusageprice=nil)
7679
+ def initialize(originalfixedprice=nil, discountfixedprice=nil, originalusageprice=nil, discountusageprice=nil, fixedpricediscount=nil, usagepricediscount=nil)
7613
7680
  @OriginalFixedPrice = originalfixedprice
7614
7681
  @DiscountFixedPrice = discountfixedprice
7615
7682
  @OriginalUsagePrice = originalusageprice
7616
7683
  @DiscountUsagePrice = discountusageprice
7684
+ @FixedPriceDiscount = fixedpricediscount
7685
+ @UsagePriceDiscount = usagepricediscount
7617
7686
  end
7618
7687
 
7619
7688
  def deserialize(params)
@@ -7621,6 +7690,8 @@ module TencentCloud
7621
7690
  @DiscountFixedPrice = params['DiscountFixedPrice']
7622
7691
  @OriginalUsagePrice = params['OriginalUsagePrice']
7623
7692
  @DiscountUsagePrice = params['DiscountUsagePrice']
7693
+ @FixedPriceDiscount = params['FixedPriceDiscount']
7694
+ @UsagePriceDiscount = params['UsagePriceDiscount']
7624
7695
  end
7625
7696
  end
7626
7697
 
@@ -7642,10 +7713,14 @@ module TencentCloud
7642
7713
  # @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:Linux。
7643
7714
  # 返回项: Linux 。
7644
7715
  # @type ProductDescription: String
7716
+ # @param DiscountUsagePrice: 预支合计费用,单位:元。
7717
+ # @type DiscountUsagePrice: Float
7718
+ # @param DiscountFixedPrice: 后续合计费用的折扣价,单位:元/小时
7719
+ # @type DiscountFixedPrice: Float
7645
7720
 
7646
- attr_accessor :OfferingType, :FixedPrice, :UsagePrice, :ReservedInstancesOfferingId, :Zone, :Duration, :ProductDescription
7721
+ attr_accessor :OfferingType, :FixedPrice, :UsagePrice, :ReservedInstancesOfferingId, :Zone, :Duration, :ProductDescription, :DiscountUsagePrice, :DiscountFixedPrice
7647
7722
 
7648
- def initialize(offeringtype=nil, fixedprice=nil, usageprice=nil, reservedinstancesofferingid=nil, zone=nil, duration=nil, productdescription=nil)
7723
+ def initialize(offeringtype=nil, fixedprice=nil, usageprice=nil, reservedinstancesofferingid=nil, zone=nil, duration=nil, productdescription=nil, discountusageprice=nil, discountfixedprice=nil)
7649
7724
  @OfferingType = offeringtype
7650
7725
  @FixedPrice = fixedprice
7651
7726
  @UsagePrice = usageprice
@@ -7653,6 +7728,8 @@ module TencentCloud
7653
7728
  @Zone = zone
7654
7729
  @Duration = duration
7655
7730
  @ProductDescription = productdescription
7731
+ @DiscountUsagePrice = discountusageprice
7732
+ @DiscountFixedPrice = discountfixedprice
7656
7733
  end
7657
7734
 
7658
7735
  def deserialize(params)
@@ -7663,6 +7740,8 @@ module TencentCloud
7663
7740
  @Zone = params['Zone']
7664
7741
  @Duration = params['Duration']
7665
7742
  @ProductDescription = params['ProductDescription']
7743
+ @DiscountUsagePrice = params['DiscountUsagePrice']
7744
+ @DiscountFixedPrice = params['DiscountFixedPrice']
7666
7745
  end
7667
7746
  end
7668
7747
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.916
4
+ version: 3.0.918
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-29 00:00:00.000000000 Z
11
+ date: 2024-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common