Class: TencentCloud::Bm::V20180423::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Bm::V20180423::Client
- Defined in:
- lib/v20180423/client.rb
Instance Method Summary collapse
-
#AttachCamRole(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::AttachCamRoleResponse`.
-
#BindPsaTag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::BindPsaTagResponse`.
-
#BuyDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::BuyDevicesResponse`.
-
#CreateCustomImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreateCustomImageResponse`.
-
#CreatePsaRegulation(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreatePsaRegulationResponse`.
-
#CreateSpotDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreateSpotDeviceResponse`.
-
#CreateUserCmd(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreateUserCmdResponse`.
-
#DeleteCustomImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DeleteCustomImagesResponse`.
-
#DeletePsaRegulation(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DeletePsaRegulationResponse`.
-
#DeleteUserCmds(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DeleteUserCmdsResponse`.
-
#DescribeCustomImageProcess(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeCustomImageProcessResponse`.
-
#DescribeCustomImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeCustomImagesResponse`.
-
#DescribeDeviceClass(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceClassResponse`.
-
#DescribeDeviceClassPartition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceClassPartitionResponse`.
-
#DescribeDeviceHardwareInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceHardwareInfoResponse`.
-
#DescribeDeviceInventory(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceInventoryResponse`.
-
#DescribeDeviceOperationLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceOperationLogResponse`.
-
#DescribeDevicePartition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePartitionResponse`.
-
#DescribeDevicePosition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePositionResponse`.
-
#DescribeDevicePriceInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePriceInfoResponse`.
-
#DescribeDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicesResponse`.
-
#DescribeHardwareSpecification(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeHardwareSpecificationResponse`.
-
#DescribeHostedDeviceOutBandInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeHostedDeviceOutBandInfoResponse`.
-
#DescribeOperationResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeOperationResultResponse`.
-
#DescribeOsInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeOsInfoResponse`.
-
#DescribePsaRegulations(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribePsaRegulationsResponse`.
-
#DescribeRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeRegionsResponse`.
-
#DescribeRepairTaskConstant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeRepairTaskConstantResponse`.
-
#DescribeTaskInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeTaskInfoResponse`.
-
#DescribeTaskOperationLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeTaskOperationLogResponse`.
-
#DescribeUserCmds(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdsResponse`.
-
#DescribeUserCmdTaskInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdTaskInfoResponse`.
-
#DescribeUserCmdTasks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdTasksResponse`.
-
#DetachCamRole(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DetachCamRoleResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyCustomImageAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyCustomImageAttributeResponse`.
-
#ModifyDeviceAliases(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyDeviceAliasesResponse`.
-
#ModifyDeviceAutoRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyDeviceAutoRenewFlagResponse`.
-
#ModifyLanIp(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyLanIpResponse`.
-
#ModifyPayModePre2Post(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyPayModePre2PostResponse`.
-
#ModifyPsaRegulation(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyPsaRegulationResponse`.
-
#ModifyUserCmd(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyUserCmdResponse`.
-
#OfflineDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::OfflineDevicesResponse`.
-
#RebootDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RebootDevicesResponse`.
-
#RecoverDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RecoverDevicesResponse`.
-
#ReloadDeviceOs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ReloadDeviceOsResponse`.
-
#RepairTaskControl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RepairTaskControlResponse`.
-
#ResetDevicePassword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ResetDevicePasswordResponse`.
-
#ReturnDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ReturnDevicesResponse`.
-
#RunUserCmd(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RunUserCmdResponse`.
-
#SetOutBandVpnAuthPassword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::SetOutBandVpnAuthPasswordResponse`.
-
#ShutdownDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ShutdownDevicesResponse`.
-
#StartDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::StartDevicesResponse`.
-
#UnbindPsaTag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::UnbindPsaTagResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20180423/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-04-23' api_endpoint = 'bm.tencentcloudapi.com' sdk_version = 'BM_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AttachCamRole(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::AttachCamRoleResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20180423/client.rb', line 37 def AttachCamRole(request) body = send_request('AttachCamRole', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachCamRoleResponse.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 |
#BindPsaTag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::BindPsaTagResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20180423/client.rb', line 61 def BindPsaTag(request) body = send_request('BindPsaTag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BindPsaTagResponse.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 |
#BuyDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::BuyDevicesResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20180423/client.rb', line 85 def BuyDevices(request) body = send_request('BuyDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = BuyDevicesResponse.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 |
#CreateCustomImage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreateCustomImageResponse`
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/v20180423/client.rb', line 110 def CreateCustomImage(request) body = send_request('CreateCustomImage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateCustomImageResponse.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 |
#CreatePsaRegulation(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreatePsaRegulationResponse`
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/v20180423/client.rb', line 134 def CreatePsaRegulation(request) body = send_request('CreatePsaRegulation', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreatePsaRegulationResponse.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 |
#CreateSpotDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreateSpotDeviceResponse`
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/v20180423/client.rb', line 158 def CreateSpotDevice(request) body = send_request('CreateSpotDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSpotDeviceResponse.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 |
#CreateUserCmd(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::CreateUserCmdResponse`
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/v20180423/client.rb', line 182 def CreateUserCmd(request) body = send_request('CreateUserCmd', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateUserCmdResponse.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 |
#DeleteCustomImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DeleteCustomImagesResponse`
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/v20180423/client.rb', line 207 def DeleteCustomImages(request) body = send_request('DeleteCustomImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteCustomImagesResponse.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 |
#DeletePsaRegulation(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DeletePsaRegulationResponse`
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/v20180423/client.rb', line 231 def DeletePsaRegulation(request) body = send_request('DeletePsaRegulation', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeletePsaRegulationResponse.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 |
#DeleteUserCmds(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DeleteUserCmdsResponse`
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/v20180423/client.rb', line 255 def DeleteUserCmds(request) body = send_request('DeleteUserCmds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteUserCmdsResponse.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 |
#DescribeCustomImageProcess(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeCustomImageProcessResponse`
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/v20180423/client.rb', line 279 def DescribeCustomImageProcess(request) body = send_request('DescribeCustomImageProcess', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCustomImageProcessResponse.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 |
#DescribeCustomImages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeCustomImagesResponse`
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
# File 'lib/v20180423/client.rb', line 303 def DescribeCustomImages(request) body = send_request('DescribeCustomImages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCustomImagesResponse.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 |
#DescribeDeviceClass(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceClassResponse`
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/v20180423/client.rb', line 327 def DescribeDeviceClass(request) body = send_request('DescribeDeviceClass', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDeviceClassResponse.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 |
#DescribeDeviceClassPartition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceClassPartitionResponse`
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 |
# File 'lib/v20180423/client.rb', line 351 def DescribeDeviceClassPartition(request) body = send_request('DescribeDeviceClassPartition', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDeviceClassPartitionResponse.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 |
#DescribeDeviceHardwareInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceHardwareInfoResponse`
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 |
# File 'lib/v20180423/client.rb', line 375 def DescribeDeviceHardwareInfo(request) body = send_request('DescribeDeviceHardwareInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDeviceHardwareInfoResponse.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 |
#DescribeDeviceInventory(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceInventoryResponse`
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
# File 'lib/v20180423/client.rb', line 399 def DescribeDeviceInventory(request) body = send_request('DescribeDeviceInventory', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDeviceInventoryResponse.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 |
#DescribeDeviceOperationLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceOperationLogResponse`
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/v20180423/client.rb', line 423 def DescribeDeviceOperationLog(request) body = send_request('DescribeDeviceOperationLog', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDeviceOperationLogResponse.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 |
#DescribeDevicePartition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePartitionResponse`
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 |
# File 'lib/v20180423/client.rb', line 447 def DescribeDevicePartition(request) body = send_request('DescribeDevicePartition', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDevicePartitionResponse.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 |
#DescribeDevicePosition(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePositionResponse`
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/v20180423/client.rb', line 471 def DescribeDevicePosition(request) body = send_request('DescribeDevicePosition', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDevicePositionResponse.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 |
#DescribeDevicePriceInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePriceInfoResponse`
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/v20180423/client.rb', line 495 def DescribeDevicePriceInfo(request) body = send_request('DescribeDevicePriceInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDevicePriceInfoResponse.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 |
#DescribeDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicesResponse`
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/v20180423/client.rb', line 519 def DescribeDevices(request) body = send_request('DescribeDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeDevicesResponse.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 |
#DescribeHardwareSpecification(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeHardwareSpecificationResponse`
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 |
# File 'lib/v20180423/client.rb', line 543 def DescribeHardwareSpecification(request) body = send_request('DescribeHardwareSpecification', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHardwareSpecificationResponse.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 |
#DescribeHostedDeviceOutBandInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeHostedDeviceOutBandInfoResponse`
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 |
# File 'lib/v20180423/client.rb', line 567 def DescribeHostedDeviceOutBandInfo(request) body = send_request('DescribeHostedDeviceOutBandInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeHostedDeviceOutBandInfoResponse.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 |
#DescribeOperationResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeOperationResultResponse`
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/v20180423/client.rb', line 591 def DescribeOperationResult(request) body = send_request('DescribeOperationResult', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeOperationResultResponse.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 |
#DescribeOsInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeOsInfoResponse`
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 |
# File 'lib/v20180423/client.rb', line 615 def DescribeOsInfo(request) body = send_request('DescribeOsInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeOsInfoResponse.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 |
#DescribePsaRegulations(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribePsaRegulationsResponse`
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/v20180423/client.rb', line 639 def DescribePsaRegulations(request) body = send_request('DescribePsaRegulations', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePsaRegulationsResponse.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 |
#DescribeRegions(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeRegionsResponse`
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/v20180423/client.rb', line 663 def DescribeRegions(request) body = send_request('DescribeRegions', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRegionsResponse.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 |
#DescribeRepairTaskConstant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeRepairTaskConstantResponse`
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/v20180423/client.rb', line 687 def DescribeRepairTaskConstant(request) body = send_request('DescribeRepairTaskConstant', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeRepairTaskConstantResponse.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 |
#DescribeTaskInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeTaskInfoResponse`
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 |
# File 'lib/v20180423/client.rb', line 719 def DescribeTaskInfo(request) body = send_request('DescribeTaskInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskInfoResponse.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 |
#DescribeTaskOperationLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeTaskOperationLogResponse`
743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 |
# File 'lib/v20180423/client.rb', line 743 def DescribeTaskOperationLog(request) body = send_request('DescribeTaskOperationLog', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskOperationLogResponse.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 |
#DescribeUserCmds(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdsResponse`
815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 |
# File 'lib/v20180423/client.rb', line 815 def DescribeUserCmds(request) body = send_request('DescribeUserCmds', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeUserCmdsResponse.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 |
#DescribeUserCmdTaskInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdTaskInfoResponse`
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 |
# File 'lib/v20180423/client.rb', line 767 def DescribeUserCmdTaskInfo(request) body = send_request('DescribeUserCmdTaskInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeUserCmdTaskInfoResponse.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 |
#DescribeUserCmdTasks(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdTasksResponse`
791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 |
# File 'lib/v20180423/client.rb', line 791 def DescribeUserCmdTasks(request) body = send_request('DescribeUserCmdTasks', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeUserCmdTasksResponse.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 |
#DetachCamRole(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::DetachCamRoleResponse`
839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 |
# File 'lib/v20180423/client.rb', line 839 def DetachCamRole(request) body = send_request('DetachCamRole', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DetachCamRoleResponse.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 |
#ModifyCustomImageAttribute(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyCustomImageAttributeResponse`
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 |
# File 'lib/v20180423/client.rb', line 863 def ModifyCustomImageAttribute(request) body = send_request('ModifyCustomImageAttribute', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyCustomImageAttributeResponse.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 |
#ModifyDeviceAliases(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyDeviceAliasesResponse`
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 |
# File 'lib/v20180423/client.rb', line 887 def ModifyDeviceAliases(request) body = send_request('ModifyDeviceAliases', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDeviceAliasesResponse.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 |
#ModifyDeviceAutoRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyDeviceAutoRenewFlagResponse`
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 |
# File 'lib/v20180423/client.rb', line 911 def ModifyDeviceAutoRenewFlag(request) body = send_request('ModifyDeviceAutoRenewFlag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyDeviceAutoRenewFlagResponse.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 |
#ModifyLanIp(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyLanIpResponse`
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 |
# File 'lib/v20180423/client.rb', line 935 def ModifyLanIp(request) body = send_request('ModifyLanIp', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyLanIpResponse.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 |
#ModifyPayModePre2Post(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyPayModePre2PostResponse`
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/v20180423/client.rb', line 959 def ModifyPayModePre2Post(request) body = send_request('ModifyPayModePre2Post', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyPayModePre2PostResponse.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 |
#ModifyPsaRegulation(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyPsaRegulationResponse`
983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'lib/v20180423/client.rb', line 983 def ModifyPsaRegulation(request) body = send_request('ModifyPsaRegulation', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyPsaRegulationResponse.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 |
#ModifyUserCmd(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyUserCmdResponse`
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'lib/v20180423/client.rb', line 1007 def ModifyUserCmd(request) body = send_request('ModifyUserCmd', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyUserCmdResponse.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 |
#OfflineDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::OfflineDevicesResponse`
1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 |
# File 'lib/v20180423/client.rb', line 1031 def OfflineDevices(request) body = send_request('OfflineDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = OfflineDevicesResponse.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 |
#RebootDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RebootDevicesResponse`
1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'lib/v20180423/client.rb', line 1055 def RebootDevices(request) body = send_request('RebootDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RebootDevicesResponse.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 |
#RecoverDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RecoverDevicesResponse`
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 |
# File 'lib/v20180423/client.rb', line 1079 def RecoverDevices(request) body = send_request('RecoverDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RecoverDevicesResponse.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 |
#ReloadDeviceOs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ReloadDeviceOsResponse`
1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 |
# File 'lib/v20180423/client.rb', line 1103 def ReloadDeviceOs(request) body = send_request('ReloadDeviceOs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ReloadDeviceOsResponse.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 |
#RepairTaskControl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RepairTaskControlResponse`
1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 |
# File 'lib/v20180423/client.rb', line 1149 def RepairTaskControl(request) body = send_request('RepairTaskControl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RepairTaskControlResponse.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 |
#ResetDevicePassword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ResetDevicePasswordResponse`
1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 |
# File 'lib/v20180423/client.rb', line 1173 def ResetDevicePassword(request) body = send_request('ResetDevicePassword', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetDevicePasswordResponse.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 |
#ReturnDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ReturnDevicesResponse`
1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 |
# File 'lib/v20180423/client.rb', line 1197 def ReturnDevices(request) body = send_request('ReturnDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ReturnDevicesResponse.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 |
#RunUserCmd(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::RunUserCmdResponse`
1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'lib/v20180423/client.rb', line 1221 def RunUserCmd(request) body = send_request('RunUserCmd', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RunUserCmdResponse.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 |
#SetOutBandVpnAuthPassword(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::SetOutBandVpnAuthPasswordResponse`
1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 |
# File 'lib/v20180423/client.rb', line 1245 def SetOutBandVpnAuthPassword(request) body = send_request('SetOutBandVpnAuthPassword', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetOutBandVpnAuthPasswordResponse.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 |
#ShutdownDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::ShutdownDevicesResponse`
1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 |
# File 'lib/v20180423/client.rb', line 1269 def ShutdownDevices(request) body = send_request('ShutdownDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ShutdownDevicesResponse.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 |
#StartDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::StartDevicesResponse`
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/v20180423/client.rb', line 1293 def StartDevices(request) body = send_request('StartDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartDevicesResponse.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 |
#UnbindPsaTag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::bm::V20180423::UnbindPsaTagResponse`
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 |
# File 'lib/v20180423/client.rb', line 1317 def UnbindPsaTag(request) body = send_request('UnbindPsaTag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UnbindPsaTagResponse.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 |