tencentcloud-sdk-tione 3.0.456 → 3.0.457
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 +181 -4
- 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: 640c799618eeecdfd190c0abbb35459346a03b45
|
4
|
+
data.tar.gz: 39947db705eb9145f9e64d1f9b9b5f110dcf5d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe8350c901b777f336f61fa40e0a03e874d5ae19159ea9440cc40fcfc4f69c5b524c3dd10dd074fde98296a342f669d3afa0f5a703ffa5909a4ee66f9dcd3652
|
7
|
+
data.tar.gz: 483a075021d21695aa728efeaac189a7376539ae406e3082d6154ef48e9177a9ffd301a98164c5a8e1354a8cc6ea4de915f6f158dce0f74b9a30a90dc4365088
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.457
|
data/lib/v20211111/client.rb
CHANGED
@@ -1133,6 +1133,30 @@ module TencentCloud
|
|
1133
1133
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
1134
|
end
|
1135
1135
|
|
1136
|
+
# 用于更新模型服务
|
1137
|
+
|
1138
|
+
# @param request: Request instance for ModifyModelService.
|
1139
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyModelServiceRequest`
|
1140
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyModelServiceResponse`
|
1141
|
+
def ModifyModelService(request)
|
1142
|
+
body = send_request('ModifyModelService', request.serialize)
|
1143
|
+
response = JSON.parse(body)
|
1144
|
+
if response['Response'].key?('Error') == false
|
1145
|
+
model = ModifyModelServiceResponse.new
|
1146
|
+
model.deserialize(response['Response'])
|
1147
|
+
model
|
1148
|
+
else
|
1149
|
+
code = response['Response']['Error']['Code']
|
1150
|
+
message = response['Response']['Error']['Message']
|
1151
|
+
reqid = response['Response']['RequestId']
|
1152
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1153
|
+
end
|
1154
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1155
|
+
raise e
|
1156
|
+
rescue StandardError => e
|
1157
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1158
|
+
end
|
1159
|
+
|
1136
1160
|
# 增量更新在线推理服务的部分配置,不更新的配置项不需要传入
|
1137
1161
|
|
1138
1162
|
# @param request: Request instance for ModifyModelServicePartialConfig.
|
data/lib/v20211111/models.rb
CHANGED
@@ -1314,7 +1314,7 @@ module TencentCloud
|
|
1314
1314
|
# @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
|
1315
1315
|
# @param StartCmdInfo: 启动命令信息,默认为sh start.sh
|
1316
1316
|
# @type StartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.StartCmdInfo`
|
1317
|
-
# @param DataConfigs:
|
1317
|
+
# @param DataConfigs: 数据配置,依赖DataSource字段
|
1318
1318
|
# @type DataConfigs: Array
|
1319
1319
|
# @param VpcId: VPC Id
|
1320
1320
|
# @type VpcId: String
|
@@ -5196,6 +5196,183 @@ module TencentCloud
|
|
5196
5196
|
end
|
5197
5197
|
end
|
5198
5198
|
|
5199
|
+
# ModifyModelService请求参数结构体
|
5200
|
+
class ModifyModelServiceRequest < TencentCloud::Common::AbstractModel
|
5201
|
+
# @param ServiceId: 服务id
|
5202
|
+
# @type ServiceId: String
|
5203
|
+
# @param ModelInfo: 模型信息,需要挂载模型时填写
|
5204
|
+
# @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo`
|
5205
|
+
# @param ImageInfo: 镜像信息,配置服务运行所需的镜像地址等信息
|
5206
|
+
# @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
|
5207
|
+
# @param Env: 环境变量,可选参数,用于配置容器中的环境变量
|
5208
|
+
# @type Env: Array
|
5209
|
+
# @param Resources: 资源描述,指定预付费模式下的cpu,mem,gpu等信息,后付费无需填写
|
5210
|
+
# @type Resources: :class:`Tencentcloud::Tione.v20211111.models.ResourceInfo`
|
5211
|
+
# @param InstanceType: 使用DescribeBillingSpecs接口返回的规格列表中的值,或者参考实例列表:
|
5212
|
+
# TI.S.MEDIUM.POST 2C4G
|
5213
|
+
# TI.S.LARGE.POST 4C8G
|
5214
|
+
# TI.S.2XLARGE16.POST 8C16G
|
5215
|
+
# TI.S.2XLARGE32.POST 8C32G
|
5216
|
+
# TI.S.4XLARGE32.POST 16C32G
|
5217
|
+
# TI.S.4XLARGE64.POST 16C64G
|
5218
|
+
# TI.S.6XLARGE48.POST 24C48G
|
5219
|
+
# TI.S.6XLARGE96.POST 24C96G
|
5220
|
+
# TI.S.8XLARGE64.POST 32C64G
|
5221
|
+
# TI.S.8XLARGE128.POST 32C128G
|
5222
|
+
# TI.GN7.LARGE20.POST 4C20G T4*1/4
|
5223
|
+
# TI.GN7.2XLARGE40.POST 10C40G T4*1/2
|
5224
|
+
# TI.GN7.2XLARGE32.POST 8C32G T4*1
|
5225
|
+
# TI.GN7.5XLARGE80.POST 20C80G T4*1
|
5226
|
+
# TI.GN7.8XLARGE128.POST 32C128G T4*1
|
5227
|
+
# TI.GN7.10XLARGE160.POST 40C160G T4*2
|
5228
|
+
# TI.GN7.20XLARGE320.POST 80C320G T4*4
|
5229
|
+
# @type InstanceType: String
|
5230
|
+
# @param ScaleMode: 扩缩容类型 支持:自动 - "AUTO", 手动 - "MANUAL"
|
5231
|
+
# @type ScaleMode: String
|
5232
|
+
# @param Replicas: 实例数量, 不同计费模式和调节模式下对应关系如下
|
5233
|
+
# PREPAID 和 POSTPAID_BY_HOUR:
|
5234
|
+
# 手动调节模式下对应 实例数量
|
5235
|
+
# 自动调节模式下对应 基于时间的默认策略的实例数量
|
5236
|
+
# HYBRID_PAID:
|
5237
|
+
# 后付费实例手动调节模式下对应 实例数量
|
5238
|
+
# 后付费实例自动调节模式下对应 时间策略的默认策略的实例数量
|
5239
|
+
# @type Replicas: Integer
|
5240
|
+
# @param HorizontalPodAutoscaler: 自动伸缩信息
|
5241
|
+
# @type HorizontalPodAutoscaler: :class:`Tencentcloud::Tione.v20211111.models.HorizontalPodAutoscaler`
|
5242
|
+
# @param LogEnable: 是否开启日志投递,开启后需填写配置投递到指定cls
|
5243
|
+
# @type LogEnable: Boolean
|
5244
|
+
# @param LogConfig: 日志配置,需要投递服务日志到指定cls时填写
|
5245
|
+
# @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig`
|
5246
|
+
# @param ServiceAction: 特殊更新行为: "STOP": 停止, "RESUME": 重启, "SCALE": 扩缩容, 存在这些特殊更新行为时,会忽略其他更新字段
|
5247
|
+
# @type ServiceAction: String
|
5248
|
+
# @param ServiceDescription: 服务的描述
|
5249
|
+
# @type ServiceDescription: String
|
5250
|
+
# @param ScaleStrategy: 自动伸缩策略
|
5251
|
+
# @type ScaleStrategy: String
|
5252
|
+
# @param CronScaleJobs: 自动伸缩策略配置 HPA : 通过HPA进行弹性伸缩 CRON 通过定时任务进行伸缩
|
5253
|
+
# @type CronScaleJobs: Array
|
5254
|
+
# @param HybridBillingPrepaidReplicas: 计费模式[HYBRID_PAID]时生效, 用于标识混合计费模式下的预付费实例数, 若不填则默认为1
|
5255
|
+
# @type HybridBillingPrepaidReplicas: Integer
|
5256
|
+
# @param ModelHotUpdateEnable: 是否开启模型的热更新。默认不开启
|
5257
|
+
# @type ModelHotUpdateEnable: Boolean
|
5258
|
+
# @param ScheduledAction: 定时停止配置
|
5259
|
+
# @type ScheduledAction: :class:`Tencentcloud::Tione.v20211111.models.ScheduledAction`
|
5260
|
+
# @param ServiceLimit: 服务限速限流相关配置
|
5261
|
+
# @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit`
|
5262
|
+
# @param VolumeMount: 挂载配置,目前只支持CFS
|
5263
|
+
# @type VolumeMount: :class:`Tencentcloud::Tione.v20211111.models.VolumeMount`
|
5264
|
+
|
5265
|
+
attr_accessor :ServiceId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :ServiceAction, :ServiceDescription, :ScaleStrategy, :CronScaleJobs, :HybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScheduledAction, :ServiceLimit, :VolumeMount
|
5266
|
+
|
5267
|
+
def initialize(serviceid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, serviceaction=nil, servicedescription=nil, scalestrategy=nil, cronscalejobs=nil, hybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scheduledaction=nil, servicelimit=nil, volumemount=nil)
|
5268
|
+
@ServiceId = serviceid
|
5269
|
+
@ModelInfo = modelinfo
|
5270
|
+
@ImageInfo = imageinfo
|
5271
|
+
@Env = env
|
5272
|
+
@Resources = resources
|
5273
|
+
@InstanceType = instancetype
|
5274
|
+
@ScaleMode = scalemode
|
5275
|
+
@Replicas = replicas
|
5276
|
+
@HorizontalPodAutoscaler = horizontalpodautoscaler
|
5277
|
+
@LogEnable = logenable
|
5278
|
+
@LogConfig = logconfig
|
5279
|
+
@ServiceAction = serviceaction
|
5280
|
+
@ServiceDescription = servicedescription
|
5281
|
+
@ScaleStrategy = scalestrategy
|
5282
|
+
@CronScaleJobs = cronscalejobs
|
5283
|
+
@HybridBillingPrepaidReplicas = hybridbillingprepaidreplicas
|
5284
|
+
@ModelHotUpdateEnable = modelhotupdateenable
|
5285
|
+
@ScheduledAction = scheduledaction
|
5286
|
+
@ServiceLimit = servicelimit
|
5287
|
+
@VolumeMount = volumemount
|
5288
|
+
end
|
5289
|
+
|
5290
|
+
def deserialize(params)
|
5291
|
+
@ServiceId = params['ServiceId']
|
5292
|
+
unless params['ModelInfo'].nil?
|
5293
|
+
@ModelInfo = ModelInfo.new
|
5294
|
+
@ModelInfo.deserialize(params['ModelInfo'])
|
5295
|
+
end
|
5296
|
+
unless params['ImageInfo'].nil?
|
5297
|
+
@ImageInfo = ImageInfo.new
|
5298
|
+
@ImageInfo.deserialize(params['ImageInfo'])
|
5299
|
+
end
|
5300
|
+
unless params['Env'].nil?
|
5301
|
+
@Env = []
|
5302
|
+
params['Env'].each do |i|
|
5303
|
+
envvar_tmp = EnvVar.new
|
5304
|
+
envvar_tmp.deserialize(i)
|
5305
|
+
@Env << envvar_tmp
|
5306
|
+
end
|
5307
|
+
end
|
5308
|
+
unless params['Resources'].nil?
|
5309
|
+
@Resources = ResourceInfo.new
|
5310
|
+
@Resources.deserialize(params['Resources'])
|
5311
|
+
end
|
5312
|
+
@InstanceType = params['InstanceType']
|
5313
|
+
@ScaleMode = params['ScaleMode']
|
5314
|
+
@Replicas = params['Replicas']
|
5315
|
+
unless params['HorizontalPodAutoscaler'].nil?
|
5316
|
+
@HorizontalPodAutoscaler = HorizontalPodAutoscaler.new
|
5317
|
+
@HorizontalPodAutoscaler.deserialize(params['HorizontalPodAutoscaler'])
|
5318
|
+
end
|
5319
|
+
@LogEnable = params['LogEnable']
|
5320
|
+
unless params['LogConfig'].nil?
|
5321
|
+
@LogConfig = LogConfig.new
|
5322
|
+
@LogConfig.deserialize(params['LogConfig'])
|
5323
|
+
end
|
5324
|
+
@ServiceAction = params['ServiceAction']
|
5325
|
+
@ServiceDescription = params['ServiceDescription']
|
5326
|
+
@ScaleStrategy = params['ScaleStrategy']
|
5327
|
+
unless params['CronScaleJobs'].nil?
|
5328
|
+
@CronScaleJobs = []
|
5329
|
+
params['CronScaleJobs'].each do |i|
|
5330
|
+
cronscalejob_tmp = CronScaleJob.new
|
5331
|
+
cronscalejob_tmp.deserialize(i)
|
5332
|
+
@CronScaleJobs << cronscalejob_tmp
|
5333
|
+
end
|
5334
|
+
end
|
5335
|
+
@HybridBillingPrepaidReplicas = params['HybridBillingPrepaidReplicas']
|
5336
|
+
@ModelHotUpdateEnable = params['ModelHotUpdateEnable']
|
5337
|
+
unless params['ScheduledAction'].nil?
|
5338
|
+
@ScheduledAction = ScheduledAction.new
|
5339
|
+
@ScheduledAction.deserialize(params['ScheduledAction'])
|
5340
|
+
end
|
5341
|
+
unless params['ServiceLimit'].nil?
|
5342
|
+
@ServiceLimit = ServiceLimit.new
|
5343
|
+
@ServiceLimit.deserialize(params['ServiceLimit'])
|
5344
|
+
end
|
5345
|
+
unless params['VolumeMount'].nil?
|
5346
|
+
@VolumeMount = VolumeMount.new
|
5347
|
+
@VolumeMount.deserialize(params['VolumeMount'])
|
5348
|
+
end
|
5349
|
+
end
|
5350
|
+
end
|
5351
|
+
|
5352
|
+
# ModifyModelService返回参数结构体
|
5353
|
+
class ModifyModelServiceResponse < TencentCloud::Common::AbstractModel
|
5354
|
+
# @param Service: 生成的模型服务
|
5355
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5356
|
+
# @type Service: :class:`Tencentcloud::Tione.v20211111.models.Service`
|
5357
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5358
|
+
# @type RequestId: String
|
5359
|
+
|
5360
|
+
attr_accessor :Service, :RequestId
|
5361
|
+
|
5362
|
+
def initialize(service=nil, requestid=nil)
|
5363
|
+
@Service = service
|
5364
|
+
@RequestId = requestid
|
5365
|
+
end
|
5366
|
+
|
5367
|
+
def deserialize(params)
|
5368
|
+
unless params['Service'].nil?
|
5369
|
+
@Service = Service.new
|
5370
|
+
@Service.deserialize(params['Service'])
|
5371
|
+
end
|
5372
|
+
@RequestId = params['RequestId']
|
5373
|
+
end
|
5374
|
+
end
|
5375
|
+
|
5199
5376
|
# ModifyServiceGroupWeights请求参数结构体
|
5200
5377
|
class ModifyServiceGroupWeightsRequest < TencentCloud::Common::AbstractModel
|
5201
5378
|
# @param ServiceGroupId: 服务组id
|
@@ -7134,7 +7311,7 @@ module TencentCloud
|
|
7134
7311
|
# @type SubUin: String
|
7135
7312
|
# @param Region: 地域
|
7136
7313
|
# @type Region: String
|
7137
|
-
# @param FrameworkName: 训练框架名称,eg:SPARK、TENSORFLOW、PYTORCH
|
7314
|
+
# @param FrameworkName: 训练框架名称,eg:SPARK、PYSARK、TENSORFLOW、PYTORCH
|
7138
7315
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7139
7316
|
# @type FrameworkName: String
|
7140
7317
|
# @param FrameworkVersion: 训练框架版本
|
@@ -7221,7 +7398,7 @@ module TencentCloud
|
|
7221
7398
|
# @param Message: 任务信息
|
7222
7399
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7223
7400
|
# @type Message: String
|
7224
|
-
# @param Status:
|
7401
|
+
# @param Status: 任务状态,eg:STARTING启动中、RUNNING运行中、STOPPING停止中、STOPPED已停止、FAILED异常、SUCCEED已完成
|
7225
7402
|
# @type Status: String
|
7226
7403
|
|
7227
7404
|
attr_accessor :Id, :Name, :Uin, :SubUin, :Region, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ChargeType, :ResourceGroupId, :ResourceConfigInfos, :Tags, :TrainingMode, :CodePackagePath, :StartCmdInfo, :DataSource, :DataConfigs, :TuningParameters, :Output, :LogEnable, :LogConfig, :VpcId, :SubnetId, :ImageInfo, :RuntimeInSeconds, :CreateTime, :StartTime, :ChargeStatus, :LatestInstanceId, :TensorBoardId, :Remark, :FailureReason, :UpdateTime, :EndTime, :BillingInfo, :ResourceGroupName, :Message, :Status
|
@@ -7372,7 +7549,7 @@ module TencentCloud
|
|
7372
7549
|
# @param TrainingMode: 训练模式eg:PS_WORKER、DDP、MPI、HOROVOD
|
7373
7550
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
7374
7551
|
# @type TrainingMode: String
|
7375
|
-
# @param Status:
|
7552
|
+
# @param Status: 任务状态,eg:STARTING启动中、RUNNING运行中、STOPPING停止中、STOPPED已停止、FAILED异常、SUCCEED已完成
|
7376
7553
|
# @type Status: String
|
7377
7554
|
# @param RuntimeInSeconds: 运行时长
|
7378
7555
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
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.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
|