tencentcloud-sdk-cvm 3.0.1020 → 3.0.1021

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: b8bb75888c2db1c18c19a26ad617a12685d5e56c
4
- data.tar.gz: f1bd16a7fca89500753eaf9cc25dca3b5b0bd39b
3
+ metadata.gz: 4984ccac01200ccac0eb4afd505382b24478061f
4
+ data.tar.gz: 44cf84e34dadb3a5f4321ad56c2cbe71fd96c07b
5
5
  SHA512:
6
- metadata.gz: d10fb6d2d44ac79c731dafe7d3544dfeb1d3062ab55ada9ced2d40f68062cb78e0cc1c534929d0c1093f2e6a617d9f0f9a4c388b47a7f11ad0912b7679616c57
7
- data.tar.gz: ae7764c62d89d9b6a8cf763c434ec1dc601c9bacaf42672a80ff24458c8c49b7c1ae25e2951ad13cfe127b8256edfe5655683b4f8d6cf5cc1cec481920042e6c
6
+ metadata.gz: dbce881ee2e4a39034221bac896bfae79601948774083b4d0d643d15ac235f12d08447cc68846109392b2f077385c9e81e30eaa6afd893d9cfa12b2656d3fdcd
7
+ data.tar.gz: db4ad3d435a6a4925487f6e671b629d235cce486461a08d0e937a7e5eaa21f2d73277bd79495ab90071820b7d2b5dbc079cf809db0a368cd787f58e32151564e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1020
1
+ 3.0.1021
@@ -973,6 +973,30 @@ module TencentCloud
973
973
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
974
974
  end
975
975
 
976
+ # 获取指定实例的属性,目前支持查询实例自定义数据User-Data。
977
+
978
+ # @param request: Request instance for DescribeInstancesAttributes.
979
+ # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeInstancesAttributesRequest`
980
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeInstancesAttributesResponse`
981
+ def DescribeInstancesAttributes(request)
982
+ body = send_request('DescribeInstancesAttributes', request.serialize)
983
+ response = JSON.parse(body)
984
+ if response['Response'].key?('Error') == false
985
+ model = DescribeInstancesAttributesResponse.new
986
+ model.deserialize(response['Response'])
987
+ model
988
+ else
989
+ code = response['Response']['Error']['Code']
990
+ message = response['Response']['Error']['Message']
991
+ reqid = response['Response']['RequestId']
992
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
993
+ end
994
+ rescue TencentCloud::Common::TencentCloudSDKException => e
995
+ raise e
996
+ rescue StandardError => e
997
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
998
+ end
999
+
976
1000
  # 本接口 (DescribeInstancesModification) 用于查询指定实例支持调整的机型配置。
977
1001
 
978
1002
  # @param request: Request instance for DescribeInstancesModification.
@@ -299,6 +299,22 @@ module TencentCloud
299
299
  end
300
300
  end
301
301
 
302
+ # 属性信息
303
+ class Attribute < TencentCloud::Common::AbstractModel
304
+ # @param UserData: 实例的自定义数据。
305
+ # @type UserData: String
306
+
307
+ attr_accessor :UserData
308
+
309
+ def initialize(userdata=nil)
310
+ @UserData = userdata
311
+ end
312
+
313
+ def deserialize(params)
314
+ @UserData = params['UserData']
315
+ end
316
+ end
317
+
302
318
  # 描述预付费模式,即包年包月相关参数。包括购买时长和自动续费逻辑等。
303
319
  class ChargePrepaid < TencentCloud::Common::AbstractModel
304
320
  # @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
@@ -2687,6 +2703,54 @@ module TencentCloud
2687
2703
  end
2688
2704
  end
2689
2705
 
2706
+ # DescribeInstancesAttributes请求参数结构体
2707
+ class DescribeInstancesAttributesRequest < TencentCloud::Common::AbstractModel
2708
+ # @param Attributes: 需要获取的实例属性。可选值:
2709
+ # UserData: 实例自定义数据
2710
+ # @type Attributes: Array
2711
+ # @param InstanceIds: 实例ID列表
2712
+ # @type InstanceIds: Array
2713
+
2714
+ attr_accessor :Attributes, :InstanceIds
2715
+
2716
+ def initialize(attributes=nil, instanceids=nil)
2717
+ @Attributes = attributes
2718
+ @InstanceIds = instanceids
2719
+ end
2720
+
2721
+ def deserialize(params)
2722
+ @Attributes = params['Attributes']
2723
+ @InstanceIds = params['InstanceIds']
2724
+ end
2725
+ end
2726
+
2727
+ # DescribeInstancesAttributes返回参数结构体
2728
+ class DescribeInstancesAttributesResponse < TencentCloud::Common::AbstractModel
2729
+ # @param InstanceSet: 指定的实例属性列表
2730
+ # @type InstanceSet: Array
2731
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2732
+ # @type RequestId: String
2733
+
2734
+ attr_accessor :InstanceSet, :RequestId
2735
+
2736
+ def initialize(instanceset=nil, requestid=nil)
2737
+ @InstanceSet = instanceset
2738
+ @RequestId = requestid
2739
+ end
2740
+
2741
+ def deserialize(params)
2742
+ unless params['InstanceSet'].nil?
2743
+ @InstanceSet = []
2744
+ params['InstanceSet'].each do |i|
2745
+ instanceattribute_tmp = InstanceAttribute.new
2746
+ instanceattribute_tmp.deserialize(i)
2747
+ @InstanceSet << instanceattribute_tmp
2748
+ end
2749
+ end
2750
+ @RequestId = params['RequestId']
2751
+ end
2752
+ end
2753
+
2690
2754
  # DescribeInstancesModification请求参数结构体
2691
2755
  class DescribeInstancesModificationRequest < TencentCloud::Common::AbstractModel
2692
2756
  # @param InstanceIds: 一个或多个待查询的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为20。
@@ -3475,7 +3539,6 @@ module TencentCloud
3475
3539
  # @param TotalCount: 查询返回的维修任务总数量。
3476
3540
  # @type TotalCount: Integer
3477
3541
  # @param RepairTaskInfoSet: 查询返回的维修任务列表。
3478
- # 注意:此字段可能返回 null,表示取不到有效值。
3479
3542
  # @type RepairTaskInfoSet: Array
3480
3543
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3481
3544
  # @type RequestId: String
@@ -3807,16 +3870,22 @@ module TencentCloud
3807
3870
  # @type Password: String
3808
3871
  # @param Username: 救援模式下系统用户名
3809
3872
  # @type Username: String
3810
- # @param ForceStop: 是否强制关机
3873
+ # @param ForceStop: 是否强制关机。本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。
3811
3874
  # @type ForceStop: Boolean
3875
+ # @param StopType: 实例的关闭模式。取值范围:<br><li>SOFT_FIRST:表示在正常关闭失败后进行强制关闭</li><br><li>HARD:直接强制关闭</li><br><li>SOFT:仅软关机</li><br>默认取值:SOFT。
3876
+ # @type StopType: String
3812
3877
 
3813
- attr_accessor :InstanceId, :Password, :Username, :ForceStop
3878
+ attr_accessor :InstanceId, :Password, :Username, :ForceStop, :StopType
3879
+ extend Gem::Deprecate
3880
+ deprecate :ForceStop, :none, 2025, 3
3881
+ deprecate :ForceStop=, :none, 2025, 3
3814
3882
 
3815
- def initialize(instanceid=nil, password=nil, username=nil, forcestop=nil)
3883
+ def initialize(instanceid=nil, password=nil, username=nil, forcestop=nil, stoptype=nil)
3816
3884
  @InstanceId = instanceid
3817
3885
  @Password = password
3818
3886
  @Username = username
3819
3887
  @ForceStop = forcestop
3888
+ @StopType = stoptype
3820
3889
  end
3821
3890
 
3822
3891
  def deserialize(params)
@@ -3824,6 +3893,7 @@ module TencentCloud
3824
3893
  @Password = params['Password']
3825
3894
  @Username = params['Username']
3826
3895
  @ForceStop = params['ForceStop']
3896
+ @StopType = params['StopType']
3827
3897
  end
3828
3898
  end
3829
3899
 
@@ -5462,6 +5532,29 @@ module TencentCloud
5462
5532
  end
5463
5533
  end
5464
5534
 
5535
+ # 实例属性
5536
+ class InstanceAttribute < TencentCloud::Common::AbstractModel
5537
+ # @param InstanceId: 实例 ID。
5538
+ # @type InstanceId: String
5539
+ # @param Attributes: 实例属性信息。
5540
+ # @type Attributes: :class:`Tencentcloud::Cvm.v20170312.models.Attribute`
5541
+
5542
+ attr_accessor :InstanceId, :Attributes
5543
+
5544
+ def initialize(instanceid=nil, attributes=nil)
5545
+ @InstanceId = instanceid
5546
+ @Attributes = attributes
5547
+ end
5548
+
5549
+ def deserialize(params)
5550
+ @InstanceId = params['InstanceId']
5551
+ unless params['Attributes'].nil?
5552
+ @Attributes = Attribute.new
5553
+ @Attributes.deserialize(params['Attributes'])
5554
+ end
5555
+ end
5556
+ end
5557
+
5465
5558
  # 描述了实例的计费模式
5466
5559
  class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
5467
5560
  # @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1020
4
+ version: 3.0.1021
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud