tencentcloud-sdk-cbs 3.0.864 → 3.0.865
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 +43 -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: 484291e3f2bad0d50576d07313fb7441b69a6603
|
4
|
+
data.tar.gz: fc9bae28e42cbc6a7fd246f63babecef05b41de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca023a1165d887228123a9cb3e37faf8ddc75cfc00d29ad328060127d96b97968cb0c345285b3ae1bd7aada0952fc2dd67cbf74be12e88fde5c93983ccb78ecc
|
7
|
+
data.tar.gz: 847bd77fd1b72822eb59c209b13b4eb964f65b046949dfb30980faefd0db1f4e6502eddab081c4314ba72aaecce518a123290fb012c9e7d8226e782fd84e75fd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.865
|
data/lib/v20170312/client.rb
CHANGED
@@ -532,6 +532,30 @@ module TencentCloud
|
|
532
532
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
533
533
|
end
|
534
534
|
|
535
|
+
# 该接口用于查询用户快照使用概览,包括快照总容量、计费容量等信息。
|
536
|
+
|
537
|
+
# @param request: Request instance for DescribeSnapshotOverview.
|
538
|
+
# @type request: :class:`Tencentcloud::cbs::V20170312::DescribeSnapshotOverviewRequest`
|
539
|
+
# @rtype: :class:`Tencentcloud::cbs::V20170312::DescribeSnapshotOverviewResponse`
|
540
|
+
def DescribeSnapshotOverview(request)
|
541
|
+
body = send_request('DescribeSnapshotOverview', request.serialize)
|
542
|
+
response = JSON.parse(body)
|
543
|
+
if response['Response'].key?('Error') == false
|
544
|
+
model = DescribeSnapshotOverviewResponse.new
|
545
|
+
model.deserialize(response['Response'])
|
546
|
+
model
|
547
|
+
else
|
548
|
+
code = response['Response']['Error']['Code']
|
549
|
+
message = response['Response']['Error']['Message']
|
550
|
+
reqid = response['Response']['RequestId']
|
551
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
552
|
+
end
|
553
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
554
|
+
raise e
|
555
|
+
rescue StandardError => e
|
556
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
557
|
+
end
|
558
|
+
|
535
559
|
# 本接口(DescribeSnapshotSharePermission)用于查询快照的分享信息。
|
536
560
|
|
537
561
|
# @param request: Request instance for DescribeSnapshotSharePermission.
|
data/lib/v20170312/models.rb
CHANGED
@@ -1350,6 +1350,49 @@ module TencentCloud
|
|
1350
1350
|
end
|
1351
1351
|
end
|
1352
1352
|
|
1353
|
+
# DescribeSnapshotOverview请求参数结构体
|
1354
|
+
class DescribeSnapshotOverviewRequest < TencentCloud::Common::AbstractModel
|
1355
|
+
|
1356
|
+
|
1357
|
+
def initialize()
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
def deserialize(params)
|
1361
|
+
end
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
# DescribeSnapshotOverview返回参数结构体
|
1365
|
+
class DescribeSnapshotOverviewResponse < TencentCloud::Common::AbstractModel
|
1366
|
+
# @param TotalNums: 当前总有效快照数量
|
1367
|
+
# @type TotalNums: Integer
|
1368
|
+
# @param TotalSize: 已使用快照总容量大小,容量单位为GiB
|
1369
|
+
# @type TotalSize: Float
|
1370
|
+
# @param FreeQuota: 快照免费额度大小,额度单位为GiB
|
1371
|
+
# @type FreeQuota: Float
|
1372
|
+
# @param RealTradeSize: 快照真实产生计费的总容量大小,单位为GiB
|
1373
|
+
# @type RealTradeSize: Float
|
1374
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1375
|
+
# @type RequestId: String
|
1376
|
+
|
1377
|
+
attr_accessor :TotalNums, :TotalSize, :FreeQuota, :RealTradeSize, :RequestId
|
1378
|
+
|
1379
|
+
def initialize(totalnums=nil, totalsize=nil, freequota=nil, realtradesize=nil, requestid=nil)
|
1380
|
+
@TotalNums = totalnums
|
1381
|
+
@TotalSize = totalsize
|
1382
|
+
@FreeQuota = freequota
|
1383
|
+
@RealTradeSize = realtradesize
|
1384
|
+
@RequestId = requestid
|
1385
|
+
end
|
1386
|
+
|
1387
|
+
def deserialize(params)
|
1388
|
+
@TotalNums = params['TotalNums']
|
1389
|
+
@TotalSize = params['TotalSize']
|
1390
|
+
@FreeQuota = params['FreeQuota']
|
1391
|
+
@RealTradeSize = params['RealTradeSize']
|
1392
|
+
@RequestId = params['RequestId']
|
1393
|
+
end
|
1394
|
+
end
|
1395
|
+
|
1353
1396
|
# DescribeSnapshotSharePermission请求参数结构体
|
1354
1397
|
class DescribeSnapshotSharePermissionRequest < TencentCloud::Common::AbstractModel
|
1355
1398
|
# @param SnapshotId: 要查询快照的ID。可通过[DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647)查询获取。
|
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: 3.0.
|
4
|
+
version: 3.0.865
|
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-07-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|