tencentcloud-sdk-cbs 1.0.248 → 1.0.252
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 +27 -0
- data/lib/v20170312/models.rb +79 -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: f98157114643384129fffc7f20f6bdfc90986536
|
4
|
+
data.tar.gz: 671f056150af925b031ae9ea081a9326f5b50e53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01a57158b9f842dcc453bff14561e8178cb6b486dea3b3df4cad8d8141754c24b4f1986f12066a6f62079f997a68e0381ea49ea49eaf440b6599ef4bb05f94d
|
7
|
+
data.tar.gz: 8dc7a37d6c49343d979e9d13a5db854f76f343d0dd30740399da99921650bd2a03e62ca07715c3b4a33a667f781516acb0dd2afddee2c37df15997c8e2c38c16
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.252
|
data/lib/v20170312/client.rb
CHANGED
@@ -111,6 +111,33 @@ module TencentCloud
|
|
111
111
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
112
112
|
end
|
113
113
|
|
114
|
+
# 本接口(CopySnapshotCrossRegions)用于快照跨地域复制。
|
115
|
+
|
116
|
+
# * 本接口为异步接口,当跨地域复制的请求下发成功后会返回一个新的快照ID,此时快照未立即复制到目标地域,可请求目标地域的[DescribeSnapshots](/document/product/362/15647)接口查询新快照的状态,判断是否复制完成。如果快照的状态为“NORMAL”,表示快照复制完成。
|
117
|
+
# * 本接口实现的快照跨地域复制操作将产生跨地域流量,预计2022年第三季度会针对此功能进行商业化计费;请留意后续站内信公告,避免产生预期外扣费。
|
118
|
+
|
119
|
+
# @param request: Request instance for CopySnapshotCrossRegions.
|
120
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::CopySnapshotCrossRegionsRequest`
|
121
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::CopySnapshotCrossRegionsResponse`
|
122
|
+
def CopySnapshotCrossRegions(request)
|
123
|
+
body = send_request('CopySnapshotCrossRegions', request.serialize)
|
124
|
+
response = JSON.parse(body)
|
125
|
+
if response['Response'].key?('Error') == false
|
126
|
+
model = CopySnapshotCrossRegionsResponse.new
|
127
|
+
model.deserialize(response['Response'])
|
128
|
+
model
|
129
|
+
else
|
130
|
+
code = response['Response']['Error']['Code']
|
131
|
+
message = response['Response']['Error']['Message']
|
132
|
+
reqid = response['Response']['RequestId']
|
133
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
134
|
+
end
|
135
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
136
|
+
raise e
|
137
|
+
rescue StandardError => e
|
138
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
139
|
+
end
|
140
|
+
|
114
141
|
# 本接口(CreateAutoSnapshotPolicy)用于创建定期快照策略。
|
115
142
|
|
116
143
|
# * 每个地域可创建的定期快照策略数量限制请参考文档[定期快照](/document/product/362/8191)。
|
data/lib/v20170312/models.rb
CHANGED
@@ -318,6 +318,57 @@ module TencentCloud
|
|
318
318
|
end
|
319
319
|
end
|
320
320
|
|
321
|
+
# CopySnapshotCrossRegions请求参数结构体
|
322
|
+
class CopySnapshotCrossRegionsRequest < TencentCloud::Common::AbstractModel
|
323
|
+
# @param DestinationRegions: 快照需要复制到的目标地域,各地域的标准取值可通过接口[DescribeRegions](https://cloud.tencent.com/document/product/213/9456)查询,且只能传入支持快照的地域。
|
324
|
+
# @type DestinationRegions: Array
|
325
|
+
# @param SnapshotId: 需要跨地域复制的源快照ID,可通过[DescribeSnapshots](/document/product/362/15647)查询。
|
326
|
+
# @type SnapshotId: String
|
327
|
+
# @param SnapshotName: 新复制快照的名称,如果不传,则默认取值为“Copied 源快照ID from 地域名”。
|
328
|
+
# @type SnapshotName: String
|
329
|
+
|
330
|
+
attr_accessor :DestinationRegions, :SnapshotId, :SnapshotName
|
331
|
+
|
332
|
+
def initialize(destinationregions=nil, snapshotid=nil, snapshotname=nil)
|
333
|
+
@DestinationRegions = destinationregions
|
334
|
+
@SnapshotId = snapshotid
|
335
|
+
@SnapshotName = snapshotname
|
336
|
+
end
|
337
|
+
|
338
|
+
def deserialize(params)
|
339
|
+
@DestinationRegions = params['DestinationRegions']
|
340
|
+
@SnapshotId = params['SnapshotId']
|
341
|
+
@SnapshotName = params['SnapshotName']
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
# CopySnapshotCrossRegions返回参数结构体
|
346
|
+
class CopySnapshotCrossRegionsResponse < TencentCloud::Common::AbstractModel
|
347
|
+
# @param SnapshotCopyResultSet: 快照跨地域复制的结果,如果请求下发成功,则返回相应地地域的新快照ID,否则返回Error。
|
348
|
+
# @type SnapshotCopyResultSet: Array
|
349
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
350
|
+
# @type RequestId: String
|
351
|
+
|
352
|
+
attr_accessor :SnapshotCopyResultSet, :RequestId
|
353
|
+
|
354
|
+
def initialize(snapshotcopyresultset=nil, requestid=nil)
|
355
|
+
@SnapshotCopyResultSet = snapshotcopyresultset
|
356
|
+
@RequestId = requestid
|
357
|
+
end
|
358
|
+
|
359
|
+
def deserialize(params)
|
360
|
+
unless params['SnapshotCopyResultSet'].nil?
|
361
|
+
@SnapshotCopyResultSet = []
|
362
|
+
params['SnapshotCopyResultSet'].each do |i|
|
363
|
+
snapshotcopyresult_tmp = SnapshotCopyResult.new
|
364
|
+
snapshotcopyresult_tmp.deserialize(i)
|
365
|
+
@SnapshotCopyResultSet << snapshotcopyresult_tmp
|
366
|
+
end
|
367
|
+
end
|
368
|
+
@RequestId = params['RequestId']
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
321
372
|
# CreateAutoSnapshotPolicy请求参数结构体
|
322
373
|
class CreateAutoSnapshotPolicyRequest < TencentCloud::Common::AbstractModel
|
323
374
|
# @param Policy: 定期快照的执行策略。
|
@@ -2563,6 +2614,34 @@ module TencentCloud
|
|
2563
2614
|
end
|
2564
2615
|
end
|
2565
2616
|
|
2617
|
+
# 描述快照跨地域复制的结果。
|
2618
|
+
class SnapshotCopyResult < TencentCloud::Common::AbstractModel
|
2619
|
+
# @param SnapshotId: 复制到目标地域的新快照ID。
|
2620
|
+
# @type SnapshotId: String
|
2621
|
+
# @param Message: 指示具体错误信息,成功时为空字符串。
|
2622
|
+
# @type Message: String
|
2623
|
+
# @param Code: 错误码,成功时取值为“Success”。
|
2624
|
+
# @type Code: String
|
2625
|
+
# @param DestinationRegion: 跨地复制的目标地域。
|
2626
|
+
# @type DestinationRegion: String
|
2627
|
+
|
2628
|
+
attr_accessor :SnapshotId, :Message, :Code, :DestinationRegion
|
2629
|
+
|
2630
|
+
def initialize(snapshotid=nil, message=nil, code=nil, destinationregion=nil)
|
2631
|
+
@SnapshotId = snapshotid
|
2632
|
+
@Message = message
|
2633
|
+
@Code = code
|
2634
|
+
@DestinationRegion = destinationregion
|
2635
|
+
end
|
2636
|
+
|
2637
|
+
def deserialize(params)
|
2638
|
+
@SnapshotId = params['SnapshotId']
|
2639
|
+
@Message = params['Message']
|
2640
|
+
@Code = params['Code']
|
2641
|
+
@DestinationRegion = params['DestinationRegion']
|
2642
|
+
end
|
2643
|
+
end
|
2644
|
+
|
2566
2645
|
# 快照操作日志。
|
2567
2646
|
class SnapshotOperationLog < TencentCloud::Common::AbstractModel
|
2568
2647
|
# @param Operator: 操作者的UIN。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.252
|
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-01-
|
11
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|