tencentcloud-sdk-tione 3.0.1203 → 3.0.1205
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/v20211111/client.rb +24 -0
- data/lib/v20211111/models.rb +71 -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: 961ab000b6a9398c3aeb8cf5f65edc0273279604
|
|
4
|
+
data.tar.gz: ffd8c85e60bf828396280d7a818bfc7b989e1865
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 627027e51370d0a04099d121fa2f214b377a741f50b19deca9b2777021f54f5126ee426d57538b24111f1d8d82a47017b0c104d7a72b661a55e1033dc4b56a38
|
|
7
|
+
data.tar.gz: b1685b123593e38159c16fd622897d19d1d7c49a0cce6a6469bf496095d2c13d4da678e861bbd3caa680e259a6617f13a178d4ce787f40fff8928fc81f050ad9
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1205
|
data/lib/v20211111/client.rb
CHANGED
|
@@ -1234,6 +1234,30 @@ module TencentCloud
|
|
|
1234
1234
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1235
1235
|
end
|
|
1236
1236
|
|
|
1237
|
+
# 更新推理服务组流量分配
|
|
1238
|
+
|
|
1239
|
+
# @param request: Request instance for ModifyServiceGroupWeights.
|
|
1240
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsRequest`
|
|
1241
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsResponse`
|
|
1242
|
+
def ModifyServiceGroupWeights(request)
|
|
1243
|
+
body = send_request('ModifyServiceGroupWeights', request.serialize)
|
|
1244
|
+
response = JSON.parse(body)
|
|
1245
|
+
if response['Response'].key?('Error') == false
|
|
1246
|
+
model = ModifyServiceGroupWeightsResponse.new
|
|
1247
|
+
model.deserialize(response['Response'])
|
|
1248
|
+
model
|
|
1249
|
+
else
|
|
1250
|
+
code = response['Response']['Error']['Code']
|
|
1251
|
+
message = response['Response']['Error']['Message']
|
|
1252
|
+
reqid = response['Response']['RequestId']
|
|
1253
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1254
|
+
end
|
|
1255
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1256
|
+
raise e
|
|
1257
|
+
rescue StandardError => e
|
|
1258
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1237
1261
|
# 上报训练自定义指标
|
|
1238
1262
|
|
|
1239
1263
|
# @param request: Request instance for PushTrainingMetrics.
|
data/lib/v20211111/models.rb
CHANGED
|
@@ -6278,6 +6278,57 @@ module TencentCloud
|
|
|
6278
6278
|
end
|
|
6279
6279
|
end
|
|
6280
6280
|
|
|
6281
|
+
# ModifyServiceGroupWeights请求参数结构体
|
|
6282
|
+
class ModifyServiceGroupWeightsRequest < TencentCloud::Common::AbstractModel
|
|
6283
|
+
# @param ServiceGroupId: 服务组id
|
|
6284
|
+
# @type ServiceGroupId: String
|
|
6285
|
+
# @param Weights: 权重设置
|
|
6286
|
+
# @type Weights: Array
|
|
6287
|
+
|
|
6288
|
+
attr_accessor :ServiceGroupId, :Weights
|
|
6289
|
+
|
|
6290
|
+
def initialize(servicegroupid=nil, weights=nil)
|
|
6291
|
+
@ServiceGroupId = servicegroupid
|
|
6292
|
+
@Weights = weights
|
|
6293
|
+
end
|
|
6294
|
+
|
|
6295
|
+
def deserialize(params)
|
|
6296
|
+
@ServiceGroupId = params['ServiceGroupId']
|
|
6297
|
+
unless params['Weights'].nil?
|
|
6298
|
+
@Weights = []
|
|
6299
|
+
params['Weights'].each do |i|
|
|
6300
|
+
weightentry_tmp = WeightEntry.new
|
|
6301
|
+
weightentry_tmp.deserialize(i)
|
|
6302
|
+
@Weights << weightentry_tmp
|
|
6303
|
+
end
|
|
6304
|
+
end
|
|
6305
|
+
end
|
|
6306
|
+
end
|
|
6307
|
+
|
|
6308
|
+
# ModifyServiceGroupWeights返回参数结构体
|
|
6309
|
+
class ModifyServiceGroupWeightsResponse < TencentCloud::Common::AbstractModel
|
|
6310
|
+
# @param ServiceGroup: 更新权重后的服务组信息
|
|
6311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6312
|
+
# @type ServiceGroup: :class:`Tencentcloud::Tione.v20211111.models.ServiceGroup`
|
|
6313
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6314
|
+
# @type RequestId: String
|
|
6315
|
+
|
|
6316
|
+
attr_accessor :ServiceGroup, :RequestId
|
|
6317
|
+
|
|
6318
|
+
def initialize(servicegroup=nil, requestid=nil)
|
|
6319
|
+
@ServiceGroup = servicegroup
|
|
6320
|
+
@RequestId = requestid
|
|
6321
|
+
end
|
|
6322
|
+
|
|
6323
|
+
def deserialize(params)
|
|
6324
|
+
unless params['ServiceGroup'].nil?
|
|
6325
|
+
@ServiceGroup = ServiceGroup.new
|
|
6326
|
+
@ServiceGroup.deserialize(params['ServiceGroup'])
|
|
6327
|
+
end
|
|
6328
|
+
@RequestId = params['RequestId']
|
|
6329
|
+
end
|
|
6330
|
+
end
|
|
6331
|
+
|
|
6281
6332
|
# 多模态对话内容,支持图片与文字信息
|
|
6282
6333
|
class MultiModalContent < TencentCloud::Common::AbstractModel
|
|
6283
6334
|
# @param Type: 对话类型,text表示文本对话内容,image_url表示图片对话内容
|
|
@@ -9679,6 +9730,26 @@ module TencentCloud
|
|
|
9679
9730
|
end
|
|
9680
9731
|
end
|
|
9681
9732
|
|
|
9733
|
+
# 服务的权重
|
|
9734
|
+
class WeightEntry < TencentCloud::Common::AbstractModel
|
|
9735
|
+
# @param ServiceId: 服务id
|
|
9736
|
+
# @type ServiceId: String
|
|
9737
|
+
# @param Weight: 流量权重值,同 ServiceGroup 下 总和应为 100
|
|
9738
|
+
# @type Weight: Integer
|
|
9739
|
+
|
|
9740
|
+
attr_accessor :ServiceId, :Weight
|
|
9741
|
+
|
|
9742
|
+
def initialize(serviceid=nil, weight=nil)
|
|
9743
|
+
@ServiceId = serviceid
|
|
9744
|
+
@Weight = weight
|
|
9745
|
+
end
|
|
9746
|
+
|
|
9747
|
+
def deserialize(params)
|
|
9748
|
+
@ServiceId = params['ServiceId']
|
|
9749
|
+
@Weight = params['Weight']
|
|
9750
|
+
end
|
|
9751
|
+
end
|
|
9752
|
+
|
|
9682
9753
|
# 工作负载的状态
|
|
9683
9754
|
class WorkloadStatus < TencentCloud::Common::AbstractModel
|
|
9684
9755
|
# @param Replicas: 当前实例数
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-tione
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1205
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|