Class: TencentCloud::Tione::V20211111::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Tione::V20211111::Client
- Defined in:
- lib/v20211111/client.rb
Instance Method Summary collapse
-
#ChatCompletion(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ChatCompletionResponse. -
#CreateDataset(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateDatasetResponse. -
#CreateExport(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateExportResponse. -
#CreateModelService(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateModelServiceResponse. -
#CreateModelServiceAuthToken(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateModelServiceAuthTokenResponse. -
#CreateNotebook(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateNotebookResponse. -
#CreatePresignedNotebookUrl(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreatePresignedNotebookUrlResponse. -
#CreateTrainingModel(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateTrainingModelResponse. -
#CreateTrainingTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::CreateTrainingTaskResponse. -
#DeleteDataset(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteDatasetResponse. -
#DeleteExport(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteExportResponse. -
#DeleteModelService(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteModelServiceResponse. -
#DeleteModelServiceAuthToken(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteModelServiceAuthTokenResponse. -
#DeleteModelServiceGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteModelServiceGroupResponse. -
#DeleteNotebook(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteNotebookResponse. -
#DeleteTrainingModel(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteTrainingModelResponse. -
#DeleteTrainingModelVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteTrainingModelVersionResponse. -
#DeleteTrainingTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DeleteTrainingTaskResponse. -
#DescribeBillingResourceGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeBillingResourceGroupResponse. -
#DescribeBillingResourceGroups(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeBillingResourceGroupsResponse. -
#DescribeBillingResourceInstanceRunningJobs(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeBillingResourceInstanceRunningJobsResponse. -
#DescribeBillingSpecs(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeBillingSpecsResponse. -
#DescribeBillingSpecsPrice(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeBillingSpecsPriceResponse. -
#DescribeBuildInImages(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeBuildInImagesResponse. -
#DescribeDatasets(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeDatasetsResponse. -
#DescribeEvents(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeEventsResponse. -
#DescribeExport(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeExportResponse. -
#DescribeInferTemplates(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeInferTemplatesResponse. -
#DescribeLogs(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeLogsResponse. -
#DescribeModelAccelerateTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelAccelerateTaskResponse. -
#DescribeModelAccelerateVersions(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelAccelerateVersionsResponse. -
#DescribeModelService(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelServiceResponse. -
#DescribeModelServiceCallInfo(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoResponse. -
#DescribeModelServiceGroup(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelServiceGroupResponse. -
#DescribeModelServiceGroups(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelServiceGroupsResponse. -
#DescribeModelServiceHotUpdated(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedResponse. -
#DescribeNotebook(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeNotebookResponse. -
#DescribeNotebooks(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeNotebooksResponse. -
#DescribePlatformImages(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribePlatformImagesResponse. -
#DescribeSubAccountLinuxUserInfos(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeSubAccountLinuxUserInfosResponse. -
#DescribeTrainingModelVersion(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeTrainingModelVersionResponse. -
#DescribeTrainingModelVersions(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeTrainingModelVersionsResponse. -
#DescribeTrainingTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeTrainingTaskResponse. -
#DescribeTrainingTaskPods(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeTrainingTaskPodsResponse. -
#DescribeTrainingTasks(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::DescribeTrainingTasksResponse. -
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyModelService(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ModifyModelServiceResponse. -
#ModifyModelServiceAuthorization(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ModifyModelServiceAuthorizationResponse. -
#ModifyModelServiceAuthToken(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ModifyModelServiceAuthTokenResponse. -
#ModifyNotebook(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ModifyNotebookResponse. -
#ModifyNotebookTags(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ModifyNotebookTagsResponse. -
#ModifyServiceGroupWeights(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsResponse. -
#PushTrainingMetrics(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::PushTrainingMetricsResponse. -
#StartNotebook(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::StartNotebookResponse. -
#StartTrainingTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::StartTrainingTaskResponse. -
#StopModelAccelerateTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::StopModelAccelerateTaskResponse. -
#StopNotebook(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::StopNotebookResponse. -
#StopTrainingTask(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::StopTrainingTaskResponse. -
#UpdateSubAccountLinuxUserInfo(request) ⇒ Object
@rtype: :class:
Tencentcloud::tione::V20211111::UpdateSubAccountLinuxUserInfoResponse.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20211111/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2021-11-11' api_endpoint = 'tione.tencentcloudapi.com' sdk_version = 'TIONE_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#ChatCompletion(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ChatCompletionResponse
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/v20211111/client.rb', line 40 def ChatCompletion(request) body = send_request('ChatCompletion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ChatCompletionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateDataset(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateDatasetResponse
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/v20211111/client.rb', line 64 def CreateDataset(request) body = send_request('CreateDataset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateDatasetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateExport(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateExportResponse
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/v20211111/client.rb', line 88 def CreateExport(request) body = send_request('CreateExport', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateExportResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateModelService(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateModelServiceResponse
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/v20211111/client.rb', line 112 def CreateModelService(request) body = send_request('CreateModelService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateModelServiceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateModelServiceAuthToken(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateModelServiceAuthTokenResponse
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/v20211111/client.rb', line 136 def CreateModelServiceAuthToken(request) body = send_request('CreateModelServiceAuthToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateModelServiceAuthTokenResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateNotebook(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateNotebookResponse
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/v20211111/client.rb', line 160 def CreateNotebook(request) body = send_request('CreateNotebook', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateNotebookResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreatePresignedNotebookUrl(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreatePresignedNotebookUrlResponse
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/v20211111/client.rb', line 184 def CreatePresignedNotebookUrl(request) body = send_request('CreatePresignedNotebookUrl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreatePresignedNotebookUrlResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateTrainingModel(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateTrainingModelResponse
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/v20211111/client.rb', line 208 def CreateTrainingModel(request) body = send_request('CreateTrainingModel', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTrainingModelResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateTrainingTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::CreateTrainingTaskResponse
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/v20211111/client.rb', line 232 def CreateTrainingTask(request) body = send_request('CreateTrainingTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTrainingTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteDataset(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteDatasetResponse
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/v20211111/client.rb', line 256 def DeleteDataset(request) body = send_request('DeleteDataset', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteDatasetResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteExport(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteExportResponse
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/v20211111/client.rb', line 280 def DeleteExport(request) body = send_request('DeleteExport', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteExportResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteModelService(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteModelServiceResponse
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/v20211111/client.rb', line 304 def DeleteModelService(request) body = send_request('DeleteModelService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteModelServiceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteModelServiceAuthToken(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteModelServiceAuthTokenResponse
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/v20211111/client.rb', line 328 def DeleteModelServiceAuthToken(request) body = send_request('DeleteModelServiceAuthToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteModelServiceAuthTokenResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteModelServiceGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteModelServiceGroupResponse
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/v20211111/client.rb', line 352 def DeleteModelServiceGroup(request) body = send_request('DeleteModelServiceGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteModelServiceGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteNotebook(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteNotebookResponse
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'lib/v20211111/client.rb', line 376 def DeleteNotebook(request) body = send_request('DeleteNotebook', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteNotebookResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteTrainingModel(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteTrainingModelResponse
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/v20211111/client.rb', line 400 def DeleteTrainingModel(request) body = send_request('DeleteTrainingModel', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTrainingModelResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteTrainingModelVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteTrainingModelVersionResponse
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/v20211111/client.rb', line 424 def DeleteTrainingModelVersion(request) body = send_request('DeleteTrainingModelVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTrainingModelVersionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteTrainingTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DeleteTrainingTaskResponse
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
# File 'lib/v20211111/client.rb', line 448 def DeleteTrainingTask(request) body = send_request('DeleteTrainingTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTrainingTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBillingResourceGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeBillingResourceGroupResponse
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/v20211111/client.rb', line 472 def DescribeBillingResourceGroup(request) body = send_request('DescribeBillingResourceGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBillingResourceGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBillingResourceGroups(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeBillingResourceGroupsResponse
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/v20211111/client.rb', line 496 def DescribeBillingResourceGroups(request) body = send_request('DescribeBillingResourceGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBillingResourceGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBillingResourceInstanceRunningJobs(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeBillingResourceInstanceRunningJobsResponse
520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/v20211111/client.rb', line 520 def DescribeBillingResourceInstanceRunningJobs(request) body = send_request('DescribeBillingResourceInstanceRunningJobs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBillingResourceInstanceRunningJobsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBillingSpecs(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeBillingSpecsResponse
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/v20211111/client.rb', line 544 def DescribeBillingSpecs(request) body = send_request('DescribeBillingSpecs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBillingSpecsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBillingSpecsPrice(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeBillingSpecsPriceResponse
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 |
# File 'lib/v20211111/client.rb', line 568 def DescribeBillingSpecsPrice(request) body = send_request('DescribeBillingSpecsPrice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBillingSpecsPriceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeBuildInImages(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeBuildInImagesResponse
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/v20211111/client.rb', line 592 def DescribeBuildInImages(request) body = send_request('DescribeBuildInImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeBuildInImagesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeDatasets(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeDatasetsResponse
616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
# File 'lib/v20211111/client.rb', line 616 def DescribeDatasets(request) body = send_request('DescribeDatasets', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDatasetsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeEvents(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeEventsResponse
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/v20211111/client.rb', line 640 def DescribeEvents(request) body = send_request('DescribeEvents', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeEventsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeExport(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeExportResponse
664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 |
# File 'lib/v20211111/client.rb', line 664 def DescribeExport(request) body = send_request('DescribeExport', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeExportResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeInferTemplates(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeInferTemplatesResponse
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'lib/v20211111/client.rb', line 690 def DescribeInferTemplates(request) body = send_request('DescribeInferTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInferTemplatesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeLogs(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeLogsResponse
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 |
# File 'lib/v20211111/client.rb', line 714 def DescribeLogs(request) body = send_request('DescribeLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeLogsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelAccelerateTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelAccelerateTaskResponse
738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 |
# File 'lib/v20211111/client.rb', line 738 def DescribeModelAccelerateTask(request) body = send_request('DescribeModelAccelerateTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelAccelerateTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelAccelerateVersions(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelAccelerateVersionsResponse
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 |
# File 'lib/v20211111/client.rb', line 762 def DescribeModelAccelerateVersions(request) body = send_request('DescribeModelAccelerateVersions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelAccelerateVersionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelService(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelServiceResponse
786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/v20211111/client.rb', line 786 def DescribeModelService(request) body = send_request('DescribeModelService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelServiceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelServiceCallInfo(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoResponse
810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 |
# File 'lib/v20211111/client.rb', line 810 def DescribeModelServiceCallInfo(request) body = send_request('DescribeModelServiceCallInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelServiceCallInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelServiceGroup(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelServiceGroupResponse
834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 |
# File 'lib/v20211111/client.rb', line 834 def DescribeModelServiceGroup(request) body = send_request('DescribeModelServiceGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelServiceGroupResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelServiceGroups(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelServiceGroupsResponse
858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 |
# File 'lib/v20211111/client.rb', line 858 def DescribeModelServiceGroups(request) body = send_request('DescribeModelServiceGroups', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelServiceGroupsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeModelServiceHotUpdated(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedResponse
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 |
# File 'lib/v20211111/client.rb', line 882 def DescribeModelServiceHotUpdated(request) body = send_request('DescribeModelServiceHotUpdated', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeModelServiceHotUpdatedResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeNotebook(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeNotebookResponse
906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'lib/v20211111/client.rb', line 906 def DescribeNotebook(request) body = send_request('DescribeNotebook', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeNotebookResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeNotebooks(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeNotebooksResponse
930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 |
# File 'lib/v20211111/client.rb', line 930 def DescribeNotebooks(request) body = send_request('DescribeNotebooks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeNotebooksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribePlatformImages(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribePlatformImagesResponse
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 |
# File 'lib/v20211111/client.rb', line 954 def DescribePlatformImages(request) body = send_request('DescribePlatformImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePlatformImagesResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeSubAccountLinuxUserInfos(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeSubAccountLinuxUserInfosResponse
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 |
# File 'lib/v20211111/client.rb', line 978 def DescribeSubAccountLinuxUserInfos(request) body = send_request('DescribeSubAccountLinuxUserInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSubAccountLinuxUserInfosResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTrainingModelVersion(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeTrainingModelVersionResponse
1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'lib/v20211111/client.rb', line 1002 def DescribeTrainingModelVersion(request) body = send_request('DescribeTrainingModelVersion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTrainingModelVersionResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTrainingModelVersions(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeTrainingModelVersionsResponse
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 |
# File 'lib/v20211111/client.rb', line 1026 def DescribeTrainingModelVersions(request) body = send_request('DescribeTrainingModelVersions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTrainingModelVersionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTrainingTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeTrainingTaskResponse
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 |
# File 'lib/v20211111/client.rb', line 1050 def DescribeTrainingTask(request) body = send_request('DescribeTrainingTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTrainingTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTrainingTaskPods(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeTrainingTaskPodsResponse
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 |
# File 'lib/v20211111/client.rb', line 1074 def DescribeTrainingTaskPods(request) body = send_request('DescribeTrainingTaskPods', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTrainingTaskPodsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTrainingTasks(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::DescribeTrainingTasksResponse
1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 |
# File 'lib/v20211111/client.rb', line 1098 def DescribeTrainingTasks(request) body = send_request('DescribeTrainingTasks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTrainingTasksResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyModelService(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ModifyModelServiceResponse
1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 |
# File 'lib/v20211111/client.rb', line 1122 def ModifyModelService(request) body = send_request('ModifyModelService', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyModelServiceResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyModelServiceAuthorization(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ModifyModelServiceAuthorizationResponse
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
# File 'lib/v20211111/client.rb', line 1170 def ModifyModelServiceAuthorization(request) body = send_request('ModifyModelServiceAuthorization', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyModelServiceAuthorizationResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyModelServiceAuthToken(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ModifyModelServiceAuthTokenResponse
1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 |
# File 'lib/v20211111/client.rb', line 1146 def ModifyModelServiceAuthToken(request) body = send_request('ModifyModelServiceAuthToken', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyModelServiceAuthTokenResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyNotebook(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ModifyNotebookResponse
1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 |
# File 'lib/v20211111/client.rb', line 1194 def ModifyNotebook(request) body = send_request('ModifyNotebook', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyNotebookResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyNotebookTags(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ModifyNotebookTagsResponse
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 |
# File 'lib/v20211111/client.rb', line 1218 def ModifyNotebookTags(request) body = send_request('ModifyNotebookTags', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyNotebookTagsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyServiceGroupWeights(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsResponse
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/v20211111/client.rb', line 1242 def ModifyServiceGroupWeights(request) body = send_request('ModifyServiceGroupWeights', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyServiceGroupWeightsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#PushTrainingMetrics(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::PushTrainingMetricsResponse
1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 |
# File 'lib/v20211111/client.rb', line 1266 def PushTrainingMetrics(request) body = send_request('PushTrainingMetrics', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = PushTrainingMetricsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StartNotebook(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::StartNotebookResponse
1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'lib/v20211111/client.rb', line 1290 def StartNotebook(request) body = send_request('StartNotebook', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartNotebookResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StartTrainingTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::StartTrainingTaskResponse
1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 |
# File 'lib/v20211111/client.rb', line 1314 def StartTrainingTask(request) body = send_request('StartTrainingTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartTrainingTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StopModelAccelerateTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::StopModelAccelerateTaskResponse
1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 |
# File 'lib/v20211111/client.rb', line 1338 def StopModelAccelerateTask(request) body = send_request('StopModelAccelerateTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopModelAccelerateTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StopNotebook(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::StopNotebookResponse
1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 |
# File 'lib/v20211111/client.rb', line 1362 def StopNotebook(request) body = send_request('StopNotebook', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopNotebookResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StopTrainingTask(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::StopTrainingTaskResponse
1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 |
# File 'lib/v20211111/client.rb', line 1386 def StopTrainingTask(request) body = send_request('StopTrainingTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopTrainingTaskResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#UpdateSubAccountLinuxUserInfo(request) ⇒ Object
@rtype: :class:Tencentcloud::tione::V20211111::UpdateSubAccountLinuxUserInfoResponse
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 |
# File 'lib/v20211111/client.rb', line 1410 def UpdateSubAccountLinuxUserInfo(request) body = send_request('UpdateSubAccountLinuxUserInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateSubAccountLinuxUserInfoResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |