tencentcloud-sdk-cvm 3.0.900 → 3.0.902
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/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +81 -0
- 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: 72bf2afd5bcb9774d81900ad464572bf1ce03dc8
|
4
|
+
data.tar.gz: 532a40aa03442ac23ccd0ec8d7c950096215aabe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9db562e8d297613ee233d55db93e9356ee17f254f8e39786663a4928d88d1e42a60fec0a6ce00e37b0762f1fff255f1c5765ed804515af894744b1159e1adb7
|
7
|
+
data.tar.gz: c8f510b39db0dbb84547065f12db5f96968dec1f95473e47766a31f80c9f1a89b27151f617209c20c8b7b0532c3adfaa18af4dfa4faa7ea3cf520e5d3f204f76
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.902
|
data/lib/v20170312/client.rb
CHANGED
@@ -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.
|
data/lib/v20170312/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 3.0.902
|
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-
|
11
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|