tencentcloud-sdk-cvm 1.0.243 → 1.0.244
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 +26 -0
- data/lib/v20170312/models.rb +44 -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: 12e8721634eccfed5bc6951e79625d129d64dd18
|
4
|
+
data.tar.gz: 80e0d352e968e8be31dfa78bffb78c5d76e9ebde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf123b60b2e9278042f75a8ad4c88c20e799ee6c51366941cb409fa9949f6159a18d84791d7e4d86beb41aae4c6df07d292a44e58fa50b270d4ca33668694f7b
|
7
|
+
data.tar.gz: b3075234aa79f4413c1feb36cce5cfef2a7b50f62bddd0a30b77178438d53f234090a45ddb13f469f8287173f12b2a8bdb17d2b60792bf612f462f9ba3b2ed7d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.244
|
data/lib/v20170312/client.rb
CHANGED
@@ -1697,6 +1697,32 @@ module TencentCloud
|
|
1697
1697
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1698
1698
|
end
|
1699
1699
|
|
1700
|
+
# 本接口(ProgramFpgaImage)用于在线烧录由客户提供的FPGA镜像文件到指定实例的指定FPGA卡上。
|
1701
|
+
# * 只支持对单个实例发起在线烧录FPGA镜像的操作。
|
1702
|
+
# * 支持对单个实例的多块FPGA卡同时烧录FPGA镜像,DBDFs参数为空时,默认对指定实例的所有FPGA卡进行烧录。
|
1703
|
+
|
1704
|
+
# @param request: Request instance for ProgramFpgaImage.
|
1705
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::ProgramFpgaImageRequest`
|
1706
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::ProgramFpgaImageResponse`
|
1707
|
+
def ProgramFpgaImage(request)
|
1708
|
+
body = send_request('ProgramFpgaImage', request.serialize)
|
1709
|
+
response = JSON.parse(body)
|
1710
|
+
if response['Response'].key?('Error') == false
|
1711
|
+
model = ProgramFpgaImageResponse.new
|
1712
|
+
model.deserialize(response['Response'])
|
1713
|
+
model
|
1714
|
+
else
|
1715
|
+
code = response['Response']['Error']['Code']
|
1716
|
+
message = response['Response']['Error']['Message']
|
1717
|
+
reqid = response['Response']['RequestId']
|
1718
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1719
|
+
end
|
1720
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1721
|
+
raise e
|
1722
|
+
rescue StandardError => e
|
1723
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1724
|
+
end
|
1725
|
+
|
1700
1726
|
# 本接口(PurchaseReservedInstancesOffering)用于用户购买一个或者多个指定配置的预留实例
|
1701
1727
|
|
1702
1728
|
# @param request: Request instance for PurchaseReservedInstancesOffering.
|
data/lib/v20170312/models.rb
CHANGED
@@ -5433,6 +5433,50 @@ module TencentCloud
|
|
5433
5433
|
end
|
5434
5434
|
end
|
5435
5435
|
|
5436
|
+
# ProgramFpgaImage请求参数结构体
|
5437
|
+
class ProgramFpgaImageRequest < TencentCloud::Common::AbstractModel
|
5438
|
+
# @param InstanceId: 实例的ID信息。
|
5439
|
+
# @type InstanceId: String
|
5440
|
+
# @param FPGAUrl: FPGA镜像文件的COS URL地址。
|
5441
|
+
# @type FPGAUrl: String
|
5442
|
+
# @param DBDFs: 实例上FPGA卡的DBDF号,不填默认烧录FPGA镜像到实例所拥有的所有FPGA卡。
|
5443
|
+
# @type DBDFs: Array
|
5444
|
+
# @param DryRun: 试运行,不会执行实际的烧录动作,默认为False。
|
5445
|
+
# @type DryRun: Boolean
|
5446
|
+
|
5447
|
+
attr_accessor :InstanceId, :FPGAUrl, :DBDFs, :DryRun
|
5448
|
+
|
5449
|
+
def initialize(instanceid=nil, fpgaurl=nil, dbdfs=nil, dryrun=nil)
|
5450
|
+
@InstanceId = instanceid
|
5451
|
+
@FPGAUrl = fpgaurl
|
5452
|
+
@DBDFs = dbdfs
|
5453
|
+
@DryRun = dryrun
|
5454
|
+
end
|
5455
|
+
|
5456
|
+
def deserialize(params)
|
5457
|
+
@InstanceId = params['InstanceId']
|
5458
|
+
@FPGAUrl = params['FPGAUrl']
|
5459
|
+
@DBDFs = params['DBDFs']
|
5460
|
+
@DryRun = params['DryRun']
|
5461
|
+
end
|
5462
|
+
end
|
5463
|
+
|
5464
|
+
# ProgramFpgaImage返回参数结构体
|
5465
|
+
class ProgramFpgaImageResponse < TencentCloud::Common::AbstractModel
|
5466
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5467
|
+
# @type RequestId: String
|
5468
|
+
|
5469
|
+
attr_accessor :RequestId
|
5470
|
+
|
5471
|
+
def initialize(requestid=nil)
|
5472
|
+
@RequestId = requestid
|
5473
|
+
end
|
5474
|
+
|
5475
|
+
def deserialize(params)
|
5476
|
+
@RequestId = params['RequestId']
|
5477
|
+
end
|
5478
|
+
end
|
5479
|
+
|
5436
5480
|
# PurchaseReservedInstancesOffering请求参数结构体
|
5437
5481
|
class PurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
5438
5482
|
# @param InstanceCount: 购买预留实例计费数量
|
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.244
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|