tencentcloud-sdk-cvm 1.0.306 → 1.0.309
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +60 -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: 2107905cd914208352c52820ff58948d0a749271
|
4
|
+
data.tar.gz: 072a1ab3c752d864ad53627e82bb6c0aeefc76c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86e1207951208871dbf5d15f9d1bb2b7357f20ad12b37baa2e43c890ae35aa8a486c544b0177dca52a54b14ddd6276f9c44b25f88e2318909890b5c58f40c4b5
|
7
|
+
data.tar.gz: 7617b7440d3a73f7220ba36a25d1d806253ccac185a8c36ab850f46ed49d6940773060a931743ee6c1f93ed3d11af41bcde73ebd0daafa0971c84e41333be1a0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.309
|
data/lib/v20170312/client.rb
CHANGED
@@ -1076,6 +1076,30 @@ module TencentCloud
|
|
1076
1076
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1077
1077
|
end
|
1078
1078
|
|
1079
|
+
# 提供导出自定义镜像到指定COS存储桶的能力
|
1080
|
+
|
1081
|
+
# @param request: Request instance for ExportImages.
|
1082
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::ExportImagesRequest`
|
1083
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::ExportImagesResponse`
|
1084
|
+
def ExportImages(request)
|
1085
|
+
body = send_request('ExportImages', request.serialize)
|
1086
|
+
response = JSON.parse(body)
|
1087
|
+
if response['Response'].key?('Error') == false
|
1088
|
+
model = ExportImagesResponse.new
|
1089
|
+
model.deserialize(response['Response'])
|
1090
|
+
model
|
1091
|
+
else
|
1092
|
+
code = response['Response']['Error']['Code']
|
1093
|
+
message = response['Response']['Error']['Message']
|
1094
|
+
reqid = response['Response']['RequestId']
|
1095
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1096
|
+
end
|
1097
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1098
|
+
raise e
|
1099
|
+
rescue StandardError => e
|
1100
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1101
|
+
end
|
1102
|
+
|
1079
1103
|
# 本接口(ImportImage)用于导入镜像,导入后的镜像可用于创建实例。目前支持 RAW、VHD、QCOW2、VMDK 镜像格式。
|
1080
1104
|
|
1081
1105
|
# @param request: Request instance for ImportImage.
|
data/lib/v20170312/models.rb
CHANGED
@@ -2782,6 +2782,66 @@ module TencentCloud
|
|
2782
2782
|
end
|
2783
2783
|
end
|
2784
2784
|
|
2785
|
+
# ExportImages请求参数结构体
|
2786
|
+
class ExportImagesRequest < TencentCloud::Common::AbstractModel
|
2787
|
+
# @param BucketName: COS存储桶名称
|
2788
|
+
# @type BucketName: String
|
2789
|
+
# @param ImageIds: 镜像ID列表
|
2790
|
+
# @type ImageIds: Array
|
2791
|
+
# @param ExportFormat: 镜像文件导出格式。取值范围:RAW,QCOW2,VHD,VMDK。默认为RAW
|
2792
|
+
# @type ExportFormat: String
|
2793
|
+
# @param FileNamePrefixList: 导出文件的名称前缀列表
|
2794
|
+
# @type FileNamePrefixList: Array
|
2795
|
+
# @param OnlyExportRootDisk: 是否只导出系统盘
|
2796
|
+
# @type OnlyExportRootDisk: Boolean
|
2797
|
+
# @param DryRun: 检测镜像是否支持导出
|
2798
|
+
# @type DryRun: Boolean
|
2799
|
+
# @param RoleName: 角色名称。默认为CVM_QcsRole,发起请求前请确认是否存在该角色,以及是否已正确配置COS写入权限。
|
2800
|
+
# @type RoleName: String
|
2801
|
+
|
2802
|
+
attr_accessor :BucketName, :ImageIds, :ExportFormat, :FileNamePrefixList, :OnlyExportRootDisk, :DryRun, :RoleName
|
2803
|
+
|
2804
|
+
def initialize(bucketname=nil, imageids=nil, exportformat=nil, filenameprefixlist=nil, onlyexportrootdisk=nil, dryrun=nil, rolename=nil)
|
2805
|
+
@BucketName = bucketname
|
2806
|
+
@ImageIds = imageids
|
2807
|
+
@ExportFormat = exportformat
|
2808
|
+
@FileNamePrefixList = filenameprefixlist
|
2809
|
+
@OnlyExportRootDisk = onlyexportrootdisk
|
2810
|
+
@DryRun = dryrun
|
2811
|
+
@RoleName = rolename
|
2812
|
+
end
|
2813
|
+
|
2814
|
+
def deserialize(params)
|
2815
|
+
@BucketName = params['BucketName']
|
2816
|
+
@ImageIds = params['ImageIds']
|
2817
|
+
@ExportFormat = params['ExportFormat']
|
2818
|
+
@FileNamePrefixList = params['FileNamePrefixList']
|
2819
|
+
@OnlyExportRootDisk = params['OnlyExportRootDisk']
|
2820
|
+
@DryRun = params['DryRun']
|
2821
|
+
@RoleName = params['RoleName']
|
2822
|
+
end
|
2823
|
+
end
|
2824
|
+
|
2825
|
+
# ExportImages返回参数结构体
|
2826
|
+
class ExportImagesResponse < TencentCloud::Common::AbstractModel
|
2827
|
+
# @param TaskId: 导出镜像任务ID
|
2828
|
+
# @type TaskId: Integer
|
2829
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2830
|
+
# @type RequestId: String
|
2831
|
+
|
2832
|
+
attr_accessor :TaskId, :RequestId
|
2833
|
+
|
2834
|
+
def initialize(taskid=nil, requestid=nil)
|
2835
|
+
@TaskId = taskid
|
2836
|
+
@RequestId = requestid
|
2837
|
+
end
|
2838
|
+
|
2839
|
+
def deserialize(params)
|
2840
|
+
@TaskId = params['TaskId']
|
2841
|
+
@RequestId = params['RequestId']
|
2842
|
+
end
|
2843
|
+
end
|
2844
|
+
|
2785
2845
|
# 扩展数据
|
2786
2846
|
class Externals < TencentCloud::Common::AbstractModel
|
2787
2847
|
# @param ReleaseAddress: 释放地址
|
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: 1.0.
|
4
|
+
version: 1.0.309
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|