tencentcloud-sdk-lighthouse 3.0.1074 → 3.0.1085
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/v20200324/client.rb +30 -0
- data/lib/v20200324/models.rb +39 -1
- 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: 8fcaeccb26e2fb13f41258f4a78a33fc0fd7983c
|
4
|
+
data.tar.gz: bbb3ae3588d13498f98409cac7a026a5c679b447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb30407cb4f16b6d7ec15e606ac66b3c6a9d84ba37123b7b1eda5bdb85579cef71eee90571a549e17c1e0f21e912e9387d358a566762a75f3f83df1da32780a7
|
7
|
+
data.tar.gz: a0d95b8fa55fbf7741da8f3a91c9bc7f6215dceab40e84e84d0ce1125a056d35c668f6917fa2c255b741e66cbaee305e73c712fc558f53b213741e1dc89c5710
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1085
|
data/lib/v20200324/client.rb
CHANGED
@@ -2702,6 +2702,36 @@ module TencentCloud
|
|
2702
2702
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2703
2703
|
end
|
2704
2704
|
|
2705
|
+
# 本接口 (SyncBlueprint) 用于将自定义镜像同步到其它地域。
|
2706
|
+
|
2707
|
+
# * 支持向多个地域同步。最多10个地域。
|
2708
|
+
# * 不支持向源地域同步。
|
2709
|
+
# * 只支持NORMAL状态的镜像进行同步。
|
2710
|
+
# * 不支持中国大陆地域和非中国大陆地域之间同步。
|
2711
|
+
# * 可以通过[DescribeBlueprints](https://cloud.tencent.com/document/api/1207/47689)查询镜像状态,当镜像状态为NORMAL时表示源地域同步结束。
|
2712
|
+
|
2713
|
+
# @param request: Request instance for SyncBlueprint.
|
2714
|
+
# @type request: :class:`Tencentcloud::lighthouse::V20200324::SyncBlueprintRequest`
|
2715
|
+
# @rtype: :class:`Tencentcloud::lighthouse::V20200324::SyncBlueprintResponse`
|
2716
|
+
def SyncBlueprint(request)
|
2717
|
+
body = send_request('SyncBlueprint', request.serialize)
|
2718
|
+
response = JSON.parse(body)
|
2719
|
+
if response['Response'].key?('Error') == false
|
2720
|
+
model = SyncBlueprintResponse.new
|
2721
|
+
model.deserialize(response['Response'])
|
2722
|
+
model
|
2723
|
+
else
|
2724
|
+
code = response['Response']['Error']['Code']
|
2725
|
+
message = response['Response']['Error']['Message']
|
2726
|
+
reqid = response['Response']['RequestId']
|
2727
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2728
|
+
end
|
2729
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2730
|
+
raise e
|
2731
|
+
rescue StandardError => e
|
2732
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2733
|
+
end
|
2734
|
+
|
2705
2735
|
# 本接口(TerminateDisks)用于销毁一个或多个云硬盘。
|
2706
2736
|
# 云硬盘状态必须处于SHUTDOWN(已隔离)状态。
|
2707
2737
|
|
data/lib/v20200324/models.rb
CHANGED
@@ -319,7 +319,9 @@ module TencentCloud
|
|
319
319
|
# @type ImageUrl: String
|
320
320
|
# @param RequiredSystemDiskSize: 镜像所需系统盘大小,单位 GB。
|
321
321
|
# @type RequiredSystemDiskSize: Integer
|
322
|
-
# @param BlueprintState:
|
322
|
+
# @param BlueprintState: 镜像状态。
|
323
|
+
# 可选值:
|
324
|
+
# NORMAL(正常)、SYNCING(同步中)、OFFLINE(下线)、ISOLATED(已隔离)、CREATEFAILED(创建失败)、SYNCING_FAILED(目的地域同步失败)、ISOLATING(隔离中)、ISOLATED(已隔离)、DELETING(删除中)、DESTROYING(销毁中)。
|
323
325
|
# @type BlueprintState: String
|
324
326
|
# @param CreatedTime: 创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。
|
325
327
|
# 格式为: YYYY-MM-DDThh:mm:ssZ。
|
@@ -7584,6 +7586,42 @@ module TencentCloud
|
|
7584
7586
|
end
|
7585
7587
|
end
|
7586
7588
|
|
7589
|
+
# SyncBlueprint请求参数结构体
|
7590
|
+
class SyncBlueprintRequest < TencentCloud::Common::AbstractModel
|
7591
|
+
# @param BlueprintId: 镜像ID。
|
7592
|
+
# @type BlueprintId: String
|
7593
|
+
# @param DestinationRegions: 同步镜像的目的地域列表。
|
7594
|
+
# @type DestinationRegions: Array
|
7595
|
+
|
7596
|
+
attr_accessor :BlueprintId, :DestinationRegions
|
7597
|
+
|
7598
|
+
def initialize(blueprintid=nil, destinationregions=nil)
|
7599
|
+
@BlueprintId = blueprintid
|
7600
|
+
@DestinationRegions = destinationregions
|
7601
|
+
end
|
7602
|
+
|
7603
|
+
def deserialize(params)
|
7604
|
+
@BlueprintId = params['BlueprintId']
|
7605
|
+
@DestinationRegions = params['DestinationRegions']
|
7606
|
+
end
|
7607
|
+
end
|
7608
|
+
|
7609
|
+
# SyncBlueprint返回参数结构体
|
7610
|
+
class SyncBlueprintResponse < TencentCloud::Common::AbstractModel
|
7611
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7612
|
+
# @type RequestId: String
|
7613
|
+
|
7614
|
+
attr_accessor :RequestId
|
7615
|
+
|
7616
|
+
def initialize(requestid=nil)
|
7617
|
+
@RequestId = requestid
|
7618
|
+
end
|
7619
|
+
|
7620
|
+
def deserialize(params)
|
7621
|
+
@RequestId = params['RequestId']
|
7622
|
+
end
|
7623
|
+
end
|
7624
|
+
|
7587
7625
|
# 描述了操作系统所在块设备即系统盘的信息。
|
7588
7626
|
class SystemDisk < TencentCloud::Common::AbstractModel
|
7589
7627
|
# @param DiskType: 系统盘类型。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-lighthouse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1085
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|