tencentcloud-sdk-tione 3.0.453 → 3.0.454
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 +53 -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: 9bcc15a503ef907a8749d80010571ab62cdb3dce
|
4
|
+
data.tar.gz: 8cd6fa69050128aafd9e8f059421ddc9b2c194b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28206b6bb30fd0d3b4edbbb9b6402112ed3fd5b35d94e895dd3323fe0010ea3b655bdbd064d085cbd0cef4f64eb7dfd5ed60fd54370442d42f2d23bcbf88bba7
|
7
|
+
data.tar.gz: cce82266b65a28454b297a1aca2397fc407869294e30598c857923267de5e7f305f4c8f2a702cdfc3efef35f076879a1b65132c900ab7203867ac967bc3575de
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.454
|
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 ModifyModelServicePartialConfig.
|
1139
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyModelServicePartialConfigRequest`
|
1140
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyModelServicePartialConfigResponse`
|
1141
|
+
def ModifyModelServicePartialConfig(request)
|
1142
|
+
body = send_request('ModifyModelServicePartialConfig', request.serialize)
|
1143
|
+
response = JSON.parse(body)
|
1144
|
+
if response['Response'].key?('Error') == false
|
1145
|
+
model = ModifyModelServicePartialConfigResponse.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 ModifyServiceGroupWeights.
|
data/lib/v20211111/models.rb
CHANGED
@@ -5143,6 +5143,59 @@ module TencentCloud
|
|
5143
5143
|
end
|
5144
5144
|
end
|
5145
5145
|
|
5146
|
+
# ModifyModelServicePartialConfig请求参数结构体
|
5147
|
+
class ModifyModelServicePartialConfigRequest < TencentCloud::Common::AbstractModel
|
5148
|
+
# @param ServiceId: 在线推理服务Id,需已存在
|
5149
|
+
# @type ServiceId: String
|
5150
|
+
# @param ScheduledAction: 更新后服务不重启,定时停止的配置
|
5151
|
+
# @type ScheduledAction: :class:`Tencentcloud::Tione.v20211111.models.ScheduledAction`
|
5152
|
+
# @param ServiceLimit: 更新后服务不重启,服务对应限流限频配置
|
5153
|
+
# @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit`
|
5154
|
+
|
5155
|
+
attr_accessor :ServiceId, :ScheduledAction, :ServiceLimit
|
5156
|
+
|
5157
|
+
def initialize(serviceid=nil, scheduledaction=nil, servicelimit=nil)
|
5158
|
+
@ServiceId = serviceid
|
5159
|
+
@ScheduledAction = scheduledaction
|
5160
|
+
@ServiceLimit = servicelimit
|
5161
|
+
end
|
5162
|
+
|
5163
|
+
def deserialize(params)
|
5164
|
+
@ServiceId = params['ServiceId']
|
5165
|
+
unless params['ScheduledAction'].nil?
|
5166
|
+
@ScheduledAction = ScheduledAction.new
|
5167
|
+
@ScheduledAction.deserialize(params['ScheduledAction'])
|
5168
|
+
end
|
5169
|
+
unless params['ServiceLimit'].nil?
|
5170
|
+
@ServiceLimit = ServiceLimit.new
|
5171
|
+
@ServiceLimit.deserialize(params['ServiceLimit'])
|
5172
|
+
end
|
5173
|
+
end
|
5174
|
+
end
|
5175
|
+
|
5176
|
+
# ModifyModelServicePartialConfig返回参数结构体
|
5177
|
+
class ModifyModelServicePartialConfigResponse < TencentCloud::Common::AbstractModel
|
5178
|
+
# @param Service: 被修改后的服务配置
|
5179
|
+
# @type Service: :class:`Tencentcloud::Tione.v20211111.models.Service`
|
5180
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5181
|
+
# @type RequestId: String
|
5182
|
+
|
5183
|
+
attr_accessor :Service, :RequestId
|
5184
|
+
|
5185
|
+
def initialize(service=nil, requestid=nil)
|
5186
|
+
@Service = service
|
5187
|
+
@RequestId = requestid
|
5188
|
+
end
|
5189
|
+
|
5190
|
+
def deserialize(params)
|
5191
|
+
unless params['Service'].nil?
|
5192
|
+
@Service = Service.new
|
5193
|
+
@Service.deserialize(params['Service'])
|
5194
|
+
end
|
5195
|
+
@RequestId = params['RequestId']
|
5196
|
+
end
|
5197
|
+
end
|
5198
|
+
|
5146
5199
|
# ModifyServiceGroupWeights请求参数结构体
|
5147
5200
|
class ModifyServiceGroupWeightsRequest < TencentCloud::Common::AbstractModel
|
5148
5201
|
# @param ServiceGroupId: 服务组id
|
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.454
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|