tencentcloud-sdk-hai 3.0.1210 → 3.0.1211
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/v20230812/client.rb +24 -0
- data/lib/v20230812/models.rb +53 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed624e36ad2a816496e55a10787581c80428e9cd
|
|
4
|
+
data.tar.gz: 411ccc936c1ea9ec2ad5c481b93871b8d070d269
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ddcb88f3dfed1976e28f60ba020bec85023527ebc0be3c5c9c04fbca60a03423a110b9ab1828cc7aefcb26020f30e062a40e5c190f580b0e9bc8a41d7d0543db
|
|
7
|
+
data.tar.gz: dfccecae317dc6ac4536dd53669e7c8cd686701cab9cccfdaff26931669297686c85383bb54a8610d8493df742c974eaecda602252b44936209a95998bb807f4
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1211
|
data/lib/v20230812/client.rb
CHANGED
|
@@ -269,6 +269,30 @@ module TencentCloud
|
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
+
# 本接口(InquirePriceUpdateServiceConfigs)用于更新服务配置询价
|
|
273
|
+
|
|
274
|
+
# @param request: Request instance for InquirePriceUpdateServiceConfigs.
|
|
275
|
+
# @type request: :class:`Tencentcloud::hai::V20230812::InquirePriceUpdateServiceConfigsRequest`
|
|
276
|
+
# @rtype: :class:`Tencentcloud::hai::V20230812::InquirePriceUpdateServiceConfigsResponse`
|
|
277
|
+
def InquirePriceUpdateServiceConfigs(request)
|
|
278
|
+
body = send_request('InquirePriceUpdateServiceConfigs', request.serialize)
|
|
279
|
+
response = JSON.parse(body)
|
|
280
|
+
if response['Response'].key?('Error') == false
|
|
281
|
+
model = InquirePriceUpdateServiceConfigsResponse.new
|
|
282
|
+
model.deserialize(response['Response'])
|
|
283
|
+
model
|
|
284
|
+
else
|
|
285
|
+
code = response['Response']['Error']['Code']
|
|
286
|
+
message = response['Response']['Error']['Message']
|
|
287
|
+
reqid = response['Response']['RequestId']
|
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
289
|
+
end
|
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
291
|
+
raise e
|
|
292
|
+
rescue StandardError => e
|
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
294
|
+
end
|
|
295
|
+
|
|
272
296
|
# 本接口 (ResetInstancesPassword) 用于重置实例的用户密码。
|
|
273
297
|
|
|
274
298
|
# @param request: Request instance for ResetInstancesPassword.
|
data/lib/v20230812/models.rb
CHANGED
|
@@ -639,6 +639,40 @@ module TencentCloud
|
|
|
639
639
|
end
|
|
640
640
|
end
|
|
641
641
|
|
|
642
|
+
# InquirePriceUpdateServiceConfigs请求参数结构体
|
|
643
|
+
class InquirePriceUpdateServiceConfigsRequest < TencentCloud::Common::AbstractModel
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
def initialize()
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
def deserialize(params)
|
|
650
|
+
end
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# InquirePriceUpdateServiceConfigs返回参数结构体
|
|
654
|
+
class InquirePriceUpdateServiceConfigsResponse < TencentCloud::Common::AbstractModel
|
|
655
|
+
# @param Price: 发货参数对应的价格组合。
|
|
656
|
+
# @type Price: :class:`Tencentcloud::Hai.v20230812.models.ServicePriceDetail`
|
|
657
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
658
|
+
# @type RequestId: String
|
|
659
|
+
|
|
660
|
+
attr_accessor :Price, :RequestId
|
|
661
|
+
|
|
662
|
+
def initialize(price=nil, requestid=nil)
|
|
663
|
+
@Price = price
|
|
664
|
+
@RequestId = requestid
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
def deserialize(params)
|
|
668
|
+
unless params['Price'].nil?
|
|
669
|
+
@Price = ServicePriceDetail.new
|
|
670
|
+
@Price.deserialize(params['Price'])
|
|
671
|
+
end
|
|
672
|
+
@RequestId = params['RequestId']
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
642
676
|
# 实例信息
|
|
643
677
|
class Instance < TencentCloud::Common::AbstractModel
|
|
644
678
|
# @param InstanceId: 实例id
|
|
@@ -1215,6 +1249,25 @@ module TencentCloud
|
|
|
1215
1249
|
end
|
|
1216
1250
|
end
|
|
1217
1251
|
|
|
1252
|
+
# 推理集群费用数据结构体
|
|
1253
|
+
class ServicePriceDetail < TencentCloud::Common::AbstractModel
|
|
1254
|
+
# @param ServicePrice: 推理集群价格信息
|
|
1255
|
+
# @type ServicePrice: :class:`Tencentcloud::Hai.v20230812.models.ItemPrice`
|
|
1256
|
+
|
|
1257
|
+
attr_accessor :ServicePrice
|
|
1258
|
+
|
|
1259
|
+
def initialize(serviceprice=nil)
|
|
1260
|
+
@ServicePrice = serviceprice
|
|
1261
|
+
end
|
|
1262
|
+
|
|
1263
|
+
def deserialize(params)
|
|
1264
|
+
unless params['ServicePrice'].nil?
|
|
1265
|
+
@ServicePrice = ItemPrice.new
|
|
1266
|
+
@ServicePrice.deserialize(params['ServicePrice'])
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
end
|
|
1270
|
+
|
|
1218
1271
|
# StartInstance请求参数结构体
|
|
1219
1272
|
class StartInstanceRequest < TencentCloud::Common::AbstractModel
|
|
1220
1273
|
# @param InstanceId: 实例ID。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1721/101612) API获取实例ID。
|