tencentcloud-sdk-cvm 3.0.455 → 3.0.457
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 +96 -0
- data/lib/v20170312/models.rb +235 -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: 66485455a23dfbc0de628ae2c6748b2c74c1a3a8
|
4
|
+
data.tar.gz: ca2334a9d73e2456c97f572cd389d08c5ab644d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6cb1f0674ccf8beaf905ba327cdb5f1185a6ba99839e699f188bc03adfd46a32f43cb729455581da43544010dc0761a4a36b9f7a019cc377b69c6c2e658a176
|
7
|
+
data.tar.gz: c203309a844d0c7c72d3d9b07393b8a9b11de89cff49e7a1d5b157ffed536be1db6f7830eac81a9d5019b6a07884c5ffd545ed39d92ac32e5b7cdc9f6cb5a044
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.457
|
data/lib/v20170312/client.rb
CHANGED
@@ -180,6 +180,30 @@ module TencentCloud
|
|
180
180
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
181
181
|
end
|
182
182
|
|
183
|
+
# 创建高性能计算集群
|
184
|
+
|
185
|
+
# @param request: Request instance for CreateHpcCluster.
|
186
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::CreateHpcClusterRequest`
|
187
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::CreateHpcClusterResponse`
|
188
|
+
def CreateHpcCluster(request)
|
189
|
+
body = send_request('CreateHpcCluster', request.serialize)
|
190
|
+
response = JSON.parse(body)
|
191
|
+
if response['Response'].key?('Error') == false
|
192
|
+
model = CreateHpcClusterResponse.new
|
193
|
+
model.deserialize(response['Response'])
|
194
|
+
model
|
195
|
+
else
|
196
|
+
code = response['Response']['Error']['Code']
|
197
|
+
message = response['Response']['Error']['Message']
|
198
|
+
reqid = response['Response']['RequestId']
|
199
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
200
|
+
end
|
201
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
202
|
+
raise e
|
203
|
+
rescue StandardError => e
|
204
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
205
|
+
end
|
206
|
+
|
183
207
|
# 本接口(CreateImage)用于将实例的系统盘制作为新镜像,创建后的镜像可以用于创建实例。
|
184
208
|
|
185
209
|
# @param request: Request instance for CreateImage.
|
@@ -309,6 +333,30 @@ module TencentCloud
|
|
309
333
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
310
334
|
end
|
311
335
|
|
336
|
+
# 当高性能计算集群为空, 即集群内没有任何设备时候, 可以删除改集群。
|
337
|
+
|
338
|
+
# @param request: Request instance for DeleteHpcClusters.
|
339
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::DeleteHpcClustersRequest`
|
340
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::DeleteHpcClustersResponse`
|
341
|
+
def DeleteHpcClusters(request)
|
342
|
+
body = send_request('DeleteHpcClusters', request.serialize)
|
343
|
+
response = JSON.parse(body)
|
344
|
+
if response['Response'].key?('Error') == false
|
345
|
+
model = DeleteHpcClustersResponse.new
|
346
|
+
model.deserialize(response['Response'])
|
347
|
+
model
|
348
|
+
else
|
349
|
+
code = response['Response']['Error']['Code']
|
350
|
+
message = response['Response']['Error']['Message']
|
351
|
+
reqid = response['Response']['RequestId']
|
352
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
353
|
+
end
|
354
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
355
|
+
raise e
|
356
|
+
rescue StandardError => e
|
357
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
358
|
+
end
|
359
|
+
|
312
360
|
# 本接口(DeleteImages)用于删除一个或多个镜像。
|
313
361
|
|
314
362
|
# * 当[镜像状态](https://cloud.tencent.com/document/product/213/15753#Image)为`创建中`和`使用中`时, 不允许删除。镜像状态可以通过[DescribeImages](https://cloud.tencent.com/document/api/213/9418)获取。
|
@@ -559,6 +607,30 @@ module TencentCloud
|
|
559
607
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
608
|
end
|
561
609
|
|
610
|
+
# 查询高性能集群信息
|
611
|
+
|
612
|
+
# @param request: Request instance for DescribeHpcClusters.
|
613
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeHpcClustersRequest`
|
614
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeHpcClustersResponse`
|
615
|
+
def DescribeHpcClusters(request)
|
616
|
+
body = send_request('DescribeHpcClusters', request.serialize)
|
617
|
+
response = JSON.parse(body)
|
618
|
+
if response['Response'].key?('Error') == false
|
619
|
+
model = DescribeHpcClustersResponse.new
|
620
|
+
model.deserialize(response['Response'])
|
621
|
+
model
|
622
|
+
else
|
623
|
+
code = response['Response']['Error']['Code']
|
624
|
+
message = response['Response']['Error']['Message']
|
625
|
+
reqid = response['Response']['RequestId']
|
626
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
627
|
+
end
|
628
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
629
|
+
raise e
|
630
|
+
rescue StandardError => e
|
631
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
632
|
+
end
|
633
|
+
|
562
634
|
# 本接口(DescribeImageQuota)用于查询用户帐号的镜像配额。
|
563
635
|
|
564
636
|
# @param request: Request instance for DescribeImageQuota.
|
@@ -1564,6 +1636,30 @@ module TencentCloud
|
|
1564
1636
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1565
1637
|
end
|
1566
1638
|
|
1639
|
+
# 修改高性能计算集群属性。
|
1640
|
+
|
1641
|
+
# @param request: Request instance for ModifyHpcClusterAttribute.
|
1642
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::ModifyHpcClusterAttributeRequest`
|
1643
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::ModifyHpcClusterAttributeResponse`
|
1644
|
+
def ModifyHpcClusterAttribute(request)
|
1645
|
+
body = send_request('ModifyHpcClusterAttribute', request.serialize)
|
1646
|
+
response = JSON.parse(body)
|
1647
|
+
if response['Response'].key?('Error') == false
|
1648
|
+
model = ModifyHpcClusterAttributeResponse.new
|
1649
|
+
model.deserialize(response['Response'])
|
1650
|
+
model
|
1651
|
+
else
|
1652
|
+
code = response['Response']['Error']['Code']
|
1653
|
+
message = response['Response']['Error']['Message']
|
1654
|
+
reqid = response['Response']['RequestId']
|
1655
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1656
|
+
end
|
1657
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1658
|
+
raise e
|
1659
|
+
rescue StandardError => e
|
1660
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1661
|
+
end
|
1662
|
+
|
1567
1663
|
# 本接口(ModifyImageAttribute)用于修改镜像属性。
|
1568
1664
|
|
1569
1665
|
# * 已分享的镜像无法修改属性。
|
data/lib/v20170312/models.rb
CHANGED
@@ -635,6 +635,58 @@ module TencentCloud
|
|
635
635
|
end
|
636
636
|
end
|
637
637
|
|
638
|
+
# CreateHpcCluster请求参数结构体
|
639
|
+
class CreateHpcClusterRequest < TencentCloud::Common::AbstractModel
|
640
|
+
# @param Zone: 可用区。
|
641
|
+
# @type Zone: String
|
642
|
+
# @param Name: 高性能计算集群名称。
|
643
|
+
# @type Name: String
|
644
|
+
# @param Remark: 高性能计算集群备注。
|
645
|
+
# @type Remark: String
|
646
|
+
|
647
|
+
attr_accessor :Zone, :Name, :Remark
|
648
|
+
|
649
|
+
def initialize(zone=nil, name=nil, remark=nil)
|
650
|
+
@Zone = zone
|
651
|
+
@Name = name
|
652
|
+
@Remark = remark
|
653
|
+
end
|
654
|
+
|
655
|
+
def deserialize(params)
|
656
|
+
@Zone = params['Zone']
|
657
|
+
@Name = params['Name']
|
658
|
+
@Remark = params['Remark']
|
659
|
+
end
|
660
|
+
end
|
661
|
+
|
662
|
+
# CreateHpcCluster返回参数结构体
|
663
|
+
class CreateHpcClusterResponse < TencentCloud::Common::AbstractModel
|
664
|
+
# @param HpcClusterSet: 高性能计算集群信息。
|
665
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
666
|
+
# @type HpcClusterSet: Array
|
667
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
668
|
+
# @type RequestId: String
|
669
|
+
|
670
|
+
attr_accessor :HpcClusterSet, :RequestId
|
671
|
+
|
672
|
+
def initialize(hpcclusterset=nil, requestid=nil)
|
673
|
+
@HpcClusterSet = hpcclusterset
|
674
|
+
@RequestId = requestid
|
675
|
+
end
|
676
|
+
|
677
|
+
def deserialize(params)
|
678
|
+
unless params['HpcClusterSet'].nil?
|
679
|
+
@HpcClusterSet = []
|
680
|
+
params['HpcClusterSet'].each do |i|
|
681
|
+
hpcclusterinfo_tmp = HpcClusterInfo.new
|
682
|
+
hpcclusterinfo_tmp.deserialize(i)
|
683
|
+
@HpcClusterSet << hpcclusterinfo_tmp
|
684
|
+
end
|
685
|
+
end
|
686
|
+
@RequestId = params['RequestId']
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
638
690
|
# CreateImage请求参数结构体
|
639
691
|
class CreateImageRequest < TencentCloud::Common::AbstractModel
|
640
692
|
# @param ImageName: 镜像名称
|
@@ -1245,6 +1297,38 @@ module TencentCloud
|
|
1245
1297
|
end
|
1246
1298
|
end
|
1247
1299
|
|
1300
|
+
# DeleteHpcClusters请求参数结构体
|
1301
|
+
class DeleteHpcClustersRequest < TencentCloud::Common::AbstractModel
|
1302
|
+
# @param HpcClusterIds: 高性能计算集群ID列表。
|
1303
|
+
# @type HpcClusterIds: Array
|
1304
|
+
|
1305
|
+
attr_accessor :HpcClusterIds
|
1306
|
+
|
1307
|
+
def initialize(hpcclusterids=nil)
|
1308
|
+
@HpcClusterIds = hpcclusterids
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
def deserialize(params)
|
1312
|
+
@HpcClusterIds = params['HpcClusterIds']
|
1313
|
+
end
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
# DeleteHpcClusters返回参数结构体
|
1317
|
+
class DeleteHpcClustersResponse < TencentCloud::Common::AbstractModel
|
1318
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1319
|
+
# @type RequestId: String
|
1320
|
+
|
1321
|
+
attr_accessor :RequestId
|
1322
|
+
|
1323
|
+
def initialize(requestid=nil)
|
1324
|
+
@RequestId = requestid
|
1325
|
+
end
|
1326
|
+
|
1327
|
+
def deserialize(params)
|
1328
|
+
@RequestId = params['RequestId']
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
|
1248
1332
|
# DeleteImages请求参数结构体
|
1249
1333
|
class DeleteImagesRequest < TencentCloud::Common::AbstractModel
|
1250
1334
|
# @param ImageIds: 准备删除的镜像Id列表
|
@@ -1736,6 +1820,69 @@ module TencentCloud
|
|
1736
1820
|
end
|
1737
1821
|
end
|
1738
1822
|
|
1823
|
+
# DescribeHpcClusters请求参数结构体
|
1824
|
+
class DescribeHpcClustersRequest < TencentCloud::Common::AbstractModel
|
1825
|
+
# @param HpcClusterIds: 高性能计算集群ID数组。
|
1826
|
+
# @type HpcClusterIds: Array
|
1827
|
+
# @param Name: 高性能计算集群名称。
|
1828
|
+
# @type Name: String
|
1829
|
+
# @param Zone: 可用区。
|
1830
|
+
# @type Zone: String
|
1831
|
+
# @param Offset: 偏移量, 默认值0。
|
1832
|
+
# @type Offset: Integer
|
1833
|
+
# @param Limit: 本次请求量, 默认值20。
|
1834
|
+
# @type Limit: Integer
|
1835
|
+
|
1836
|
+
attr_accessor :HpcClusterIds, :Name, :Zone, :Offset, :Limit
|
1837
|
+
|
1838
|
+
def initialize(hpcclusterids=nil, name=nil, zone=nil, offset=nil, limit=nil)
|
1839
|
+
@HpcClusterIds = hpcclusterids
|
1840
|
+
@Name = name
|
1841
|
+
@Zone = zone
|
1842
|
+
@Offset = offset
|
1843
|
+
@Limit = limit
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
def deserialize(params)
|
1847
|
+
@HpcClusterIds = params['HpcClusterIds']
|
1848
|
+
@Name = params['Name']
|
1849
|
+
@Zone = params['Zone']
|
1850
|
+
@Offset = params['Offset']
|
1851
|
+
@Limit = params['Limit']
|
1852
|
+
end
|
1853
|
+
end
|
1854
|
+
|
1855
|
+
# DescribeHpcClusters返回参数结构体
|
1856
|
+
class DescribeHpcClustersResponse < TencentCloud::Common::AbstractModel
|
1857
|
+
# @param HpcClusterSet: 高性能计算集群信息。
|
1858
|
+
# @type HpcClusterSet: Array
|
1859
|
+
# @param TotalCount: 高性能计算集群总数。
|
1860
|
+
# @type TotalCount: Integer
|
1861
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1862
|
+
# @type RequestId: String
|
1863
|
+
|
1864
|
+
attr_accessor :HpcClusterSet, :TotalCount, :RequestId
|
1865
|
+
|
1866
|
+
def initialize(hpcclusterset=nil, totalcount=nil, requestid=nil)
|
1867
|
+
@HpcClusterSet = hpcclusterset
|
1868
|
+
@TotalCount = totalcount
|
1869
|
+
@RequestId = requestid
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
def deserialize(params)
|
1873
|
+
unless params['HpcClusterSet'].nil?
|
1874
|
+
@HpcClusterSet = []
|
1875
|
+
params['HpcClusterSet'].each do |i|
|
1876
|
+
hpcclusterinfo_tmp = HpcClusterInfo.new
|
1877
|
+
hpcclusterinfo_tmp.deserialize(i)
|
1878
|
+
@HpcClusterSet << hpcclusterinfo_tmp
|
1879
|
+
end
|
1880
|
+
end
|
1881
|
+
@TotalCount = params['TotalCount']
|
1882
|
+
@RequestId = params['RequestId']
|
1883
|
+
end
|
1884
|
+
end
|
1885
|
+
|
1739
1886
|
# DescribeImageQuota请求参数结构体
|
1740
1887
|
class DescribeImageQuotaRequest < TencentCloud::Common::AbstractModel
|
1741
1888
|
|
@@ -3464,6 +3611,54 @@ module TencentCloud
|
|
3464
3611
|
end
|
3465
3612
|
end
|
3466
3613
|
|
3614
|
+
# 高性能计算集群
|
3615
|
+
class HpcClusterInfo < TencentCloud::Common::AbstractModel
|
3616
|
+
# @param HpcClusterId: 高性能计算集群ID
|
3617
|
+
# @type HpcClusterId: String
|
3618
|
+
# @param Name: 高性能计算集群名
|
3619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3620
|
+
# @type Name: String
|
3621
|
+
# @param Remark: 高性能计算集群备注
|
3622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3623
|
+
# @type Remark: String
|
3624
|
+
# @param CvmQuotaTotal: 集群下设备容量
|
3625
|
+
# @type CvmQuotaTotal: Integer
|
3626
|
+
# @param Zone: 集群所在可用区
|
3627
|
+
# @type Zone: String
|
3628
|
+
# @param CurrentNum: 集群当前已有设备量
|
3629
|
+
# @type CurrentNum: Integer
|
3630
|
+
# @param CreateTime: 集群创建时间
|
3631
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3632
|
+
# @type CreateTime: String
|
3633
|
+
# @param InstanceIds: 集群内实例ID列表
|
3634
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3635
|
+
# @type InstanceIds: Array
|
3636
|
+
|
3637
|
+
attr_accessor :HpcClusterId, :Name, :Remark, :CvmQuotaTotal, :Zone, :CurrentNum, :CreateTime, :InstanceIds
|
3638
|
+
|
3639
|
+
def initialize(hpcclusterid=nil, name=nil, remark=nil, cvmquotatotal=nil, zone=nil, currentnum=nil, createtime=nil, instanceids=nil)
|
3640
|
+
@HpcClusterId = hpcclusterid
|
3641
|
+
@Name = name
|
3642
|
+
@Remark = remark
|
3643
|
+
@CvmQuotaTotal = cvmquotatotal
|
3644
|
+
@Zone = zone
|
3645
|
+
@CurrentNum = currentnum
|
3646
|
+
@CreateTime = createtime
|
3647
|
+
@InstanceIds = instanceids
|
3648
|
+
end
|
3649
|
+
|
3650
|
+
def deserialize(params)
|
3651
|
+
@HpcClusterId = params['HpcClusterId']
|
3652
|
+
@Name = params['Name']
|
3653
|
+
@Remark = params['Remark']
|
3654
|
+
@CvmQuotaTotal = params['CvmQuotaTotal']
|
3655
|
+
@Zone = params['Zone']
|
3656
|
+
@CurrentNum = params['CurrentNum']
|
3657
|
+
@CreateTime = params['CreateTime']
|
3658
|
+
@InstanceIds = params['InstanceIds']
|
3659
|
+
end
|
3660
|
+
end
|
3661
|
+
|
3467
3662
|
# 一个关于镜像详细信息的结构体,主要包括镜像的主要状态与属性。
|
3468
3663
|
class Image < TencentCloud::Common::AbstractModel
|
3469
3664
|
# @param ImageId: 镜像ID
|
@@ -5527,6 +5722,46 @@ module TencentCloud
|
|
5527
5722
|
end
|
5528
5723
|
end
|
5529
5724
|
|
5725
|
+
# ModifyHpcClusterAttribute请求参数结构体
|
5726
|
+
class ModifyHpcClusterAttributeRequest < TencentCloud::Common::AbstractModel
|
5727
|
+
# @param HpcClusterId: 高性能计算集群ID。
|
5728
|
+
# @type HpcClusterId: String
|
5729
|
+
# @param Name: 高性能计算集群新名称。
|
5730
|
+
# @type Name: String
|
5731
|
+
# @param Remark: 高性能计算集群新备注。
|
5732
|
+
# @type Remark: String
|
5733
|
+
|
5734
|
+
attr_accessor :HpcClusterId, :Name, :Remark
|
5735
|
+
|
5736
|
+
def initialize(hpcclusterid=nil, name=nil, remark=nil)
|
5737
|
+
@HpcClusterId = hpcclusterid
|
5738
|
+
@Name = name
|
5739
|
+
@Remark = remark
|
5740
|
+
end
|
5741
|
+
|
5742
|
+
def deserialize(params)
|
5743
|
+
@HpcClusterId = params['HpcClusterId']
|
5744
|
+
@Name = params['Name']
|
5745
|
+
@Remark = params['Remark']
|
5746
|
+
end
|
5747
|
+
end
|
5748
|
+
|
5749
|
+
# ModifyHpcClusterAttribute返回参数结构体
|
5750
|
+
class ModifyHpcClusterAttributeResponse < TencentCloud::Common::AbstractModel
|
5751
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5752
|
+
# @type RequestId: String
|
5753
|
+
|
5754
|
+
attr_accessor :RequestId
|
5755
|
+
|
5756
|
+
def initialize(requestid=nil)
|
5757
|
+
@RequestId = requestid
|
5758
|
+
end
|
5759
|
+
|
5760
|
+
def deserialize(params)
|
5761
|
+
@RequestId = params['RequestId']
|
5762
|
+
end
|
5763
|
+
end
|
5764
|
+
|
5530
5765
|
# ModifyImageAttribute请求参数结构体
|
5531
5766
|
class ModifyImageAttributeRequest < TencentCloud::Common::AbstractModel
|
5532
5767
|
# @param ImageId: 镜像ID,形如`img-gvbnzy6f`。镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。<br><li>通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
|
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.457
|
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-11-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|