tencentcloud-sdk-cvm 3.0.901 → 3.0.903

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6329665f38058af6cc7692b26f40f3aef48a63d6
4
- data.tar.gz: f1b0b6a6634a90ad3ff40e0b1d420f441a8630e3
3
+ metadata.gz: 1b0fdc90858ea91d400bf80e402c2e69af11154a
4
+ data.tar.gz: a0fbfcb24a20fda7555cbcbeb8b29b571f9b246f
5
5
  SHA512:
6
- metadata.gz: 72948a7a7ab6d4cf273e8f1e8c97d2d6c6b6b996da5cfae97576583998a6f758fb7d41bcb9035d7f722732cd197634505cfd6c798028a6c2d18f717d7f417a7d
7
- data.tar.gz: dfae1e6c56679c1da3040fb66a95045ef0f63333093e25b806d71e836d9c21ae12e33e2225aeac9521c9ecb8d3d23726ec88d6f5bac782543e876b7bc984785a
6
+ metadata.gz: 28d249d7fae80025f036be2fd77ab8ef9c5eb10fa94bacb2db24eb99ce20a6a20c767889386c1a6cf484685111bc1e605ccbef0d0f0a80fe2484ceb3ff99b186
7
+ data.tar.gz: 4bf08b0e09b4a516ed757f1dd39d708bd23ec88f89b49b461614704f649ac71b6e71d0964d0eee56e54ab7c378790d1acd5cfb382d8a9700980e1f00ee53994b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.901
1
+ 3.0.903
@@ -159,6 +159,30 @@ module TencentCloud
159
159
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
160
160
  end
161
161
 
162
+ # 本接口(ConvertOperatingSystem)用于转换实例的操作系统,仅支持源操作系统为 CentOS 7、CentOS 8 的实例。
163
+
164
+ # @param request: Request instance for ConvertOperatingSystems.
165
+ # @type request: :class:`Tencentcloud::cvm::V20170312::ConvertOperatingSystemsRequest`
166
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::ConvertOperatingSystemsResponse`
167
+ def ConvertOperatingSystems(request)
168
+ body = send_request('ConvertOperatingSystems', request.serialize)
169
+ response = JSON.parse(body)
170
+ if response['Response'].key?('Error') == false
171
+ model = ConvertOperatingSystemsResponse.new
172
+ model.deserialize(response['Response'])
173
+ model
174
+ else
175
+ code = response['Response']['Error']['Code']
176
+ message = response['Response']['Error']['Message']
177
+ reqid = response['Response']['RequestId']
178
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
179
+ end
180
+ rescue TencentCloud::Common::TencentCloudSDKException => e
181
+ raise e
182
+ rescue StandardError => e
183
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
184
+ end
185
+
162
186
  # 本接口 (CreateDisasterRecoverGroup)用于创建[分散置放群组](https://cloud.tencent.com/document/product/213/15486)。创建好的置放群组,可在[创建实例](https://cloud.tencent.com/document/api/213/15730)时指定。
163
187
 
164
188
  # @param request: Request instance for CreateDisasterRecoverGroup.
@@ -576,6 +576,67 @@ module TencentCloud
576
576
  end
577
577
  end
578
578
 
579
+ # ConvertOperatingSystems请求参数结构体
580
+ class ConvertOperatingSystemsRequest < TencentCloud::Common::AbstractModel
581
+ # @param InstanceIds: 执行操作系统转换的实例 ID
582
+ # @type InstanceIds: Array
583
+ # @param MinimalConversion: 是否最小规模转换
584
+ # @type MinimalConversion: Boolean
585
+ # @param DryRun: 是否只预检
586
+ # @type DryRun: Boolean
587
+ # @param TargetOSType: 转换的目标操作系统类型。仅支持 TencentOS。
588
+ # @type TargetOSType: String
589
+
590
+ attr_accessor :InstanceIds, :MinimalConversion, :DryRun, :TargetOSType
591
+
592
+ def initialize(instanceids=nil, minimalconversion=nil, dryrun=nil, targetostype=nil)
593
+ @InstanceIds = instanceids
594
+ @MinimalConversion = minimalconversion
595
+ @DryRun = dryrun
596
+ @TargetOSType = targetostype
597
+ end
598
+
599
+ def deserialize(params)
600
+ @InstanceIds = params['InstanceIds']
601
+ @MinimalConversion = params['MinimalConversion']
602
+ @DryRun = params['DryRun']
603
+ @TargetOSType = params['TargetOSType']
604
+ end
605
+ end
606
+
607
+ # ConvertOperatingSystems返回参数结构体
608
+ class ConvertOperatingSystemsResponse < TencentCloud::Common::AbstractModel
609
+ # @param SupportTargetOSList: 转换的目标操系统信息,仅在入参 DryRun 为 true 时返回。
610
+ # 注意:此字段可能返回 null,表示取不到有效值。
611
+ # @type SupportTargetOSList: Array
612
+ # @param TaskId: 操作系统转换的任务 ID
613
+ # 注意:此字段可能返回 null,表示取不到有效值。
614
+ # @type TaskId: String
615
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
616
+ # @type RequestId: String
617
+
618
+ attr_accessor :SupportTargetOSList, :TaskId, :RequestId
619
+
620
+ def initialize(supporttargetoslist=nil, taskid=nil, requestid=nil)
621
+ @SupportTargetOSList = supporttargetoslist
622
+ @TaskId = taskid
623
+ @RequestId = requestid
624
+ end
625
+
626
+ def deserialize(params)
627
+ unless params['SupportTargetOSList'].nil?
628
+ @SupportTargetOSList = []
629
+ params['SupportTargetOSList'].each do |i|
630
+ targetos_tmp = TargetOS.new
631
+ targetos_tmp.deserialize(i)
632
+ @SupportTargetOSList << targetos_tmp
633
+ end
634
+ end
635
+ @TaskId = params['TaskId']
636
+ @RequestId = params['RequestId']
637
+ end
638
+ end
639
+
579
640
  # 描述了实例CPU拓扑结构的相关信息。
580
641
  class CpuTopology < TencentCloud::Common::AbstractModel
581
642
  # @param CoreCount: 决定启用的CPU物理核心数。
@@ -8680,6 +8741,26 @@ module TencentCloud
8680
8741
  end
8681
8742
  end
8682
8743
 
8744
+ # 操作系统转换的目标操作系统信息
8745
+ class TargetOS < TencentCloud::Common::AbstractModel
8746
+ # @param TargetOSType: 目标操作系统类型
8747
+ # @type TargetOSType: String
8748
+ # @param TargetOSVersion: 目标操作系统版本
8749
+ # @type TargetOSVersion: String
8750
+
8751
+ attr_accessor :TargetOSType, :TargetOSVersion
8752
+
8753
+ def initialize(targetostype=nil, targetosversion=nil)
8754
+ @TargetOSType = targetostype
8755
+ @TargetOSVersion = targetosversion
8756
+ end
8757
+
8758
+ def deserialize(params)
8759
+ @TargetOSType = params['TargetOSType']
8760
+ @TargetOSVersion = params['TargetOSVersion']
8761
+ end
8762
+ end
8763
+
8683
8764
  # TerminateInstances请求参数结构体
8684
8765
  class TerminateInstancesRequest < TencentCloud::Common::AbstractModel
8685
8766
  # @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
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.901
4
+ version: 3.0.903
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-08 00:00:00.000000000 Z
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common