Class: TencentCloud::Mna::V20210119::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Mna::V20210119::Client
- Defined in:
- lib/v20210119/client.rb
Instance Method Summary collapse
-
#ActivateHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::ActivateHardwareResponse`.
-
#AddDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddDeviceResponse`.
-
#AddGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddGroupResponse`.
-
#AddHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddHardwareResponse`.
-
#AddL3Conn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddL3ConnResponse`.
-
#CreateEncryptedKey(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::CreateEncryptedKeyResponse`.
-
#DeleteDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DeleteDeviceResponse`.
-
#DeleteGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DeleteGroupResponse`.
-
#DeleteL3Conn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DeleteL3ConnResponse`.
-
#DownloadActiveDeviceCount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DownloadActiveDeviceCountResponse`.
-
#GetActiveDeviceCount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetActiveDeviceCountResponse`.
-
#GetDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetDeviceResponse`.
-
#GetDevicePayMode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetDevicePayModeResponse`.
-
#GetDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetDevicesResponse`.
-
#GetFlowAlarmInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowAlarmInfoResponse`.
-
#GetFlowPackages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowPackagesResponse`.
-
#GetFlowStatistic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowStatisticResponse`.
-
#GetFlowStatisticByGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowStatisticByGroupResponse`.
-
#GetFlowStatisticByRegion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowStatisticByRegionResponse`.
-
#GetGroupDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetGroupDetailResponse`.
-
#GetGroupList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetGroupListResponse`.
-
#GetHardwareList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetHardwareListResponse`.
-
#GetL3ConnList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetL3ConnListResponse`.
-
#GetMultiFlowStatistic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetMultiFlowStatisticResponse`.
-
#GetNetMonitor(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetNetMonitorResponse`.
-
#GetPublicKey(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetPublicKeyResponse`.
-
#GetStatisticData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetStatisticDataResponse`.
-
#GetVendorHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetVendorHardwareResponse`.
-
#GroupAddDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GroupAddDeviceResponse`.
-
#GroupDeleteDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GroupDeleteDeviceResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyPackageRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::ModifyPackageRenewFlagResponse`.
-
#OrderFlowPackage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::OrderFlowPackageResponse`.
-
#OrderPerLicense(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::OrderPerLicenseResponse`.
-
#ReportOrder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::ReportOrderResponse`.
-
#SetNotifyUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::SetNotifyUrlResponse`.
-
#UpdateDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateDeviceResponse`.
-
#UpdateGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateGroupResponse`.
-
#UpdateHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateHardwareResponse`.
-
#UpdateL3Cidr(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateL3CidrResponse`.
-
#UpdateL3Conn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateL3ConnResponse`.
-
#UpdateL3Switch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateL3SwitchResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20210119/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2021-01-19' api_endpoint = 'mna.tencentcloudapi.com' sdk_version = 'MNA_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#ActivateHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::ActivateHardwareResponse`
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20210119/client.rb', line 37 def ActivateHardware(request) body = send_request('ActivateHardware', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ActivateHardwareResponse.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 |
#AddDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddDeviceResponse`
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/v20210119/client.rb', line 61 def AddDevice(request) body = send_request('AddDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AddDeviceResponse.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 |
#AddGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddGroupResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20210119/client.rb', line 85 def AddGroup(request) body = send_request('AddGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AddGroupResponse.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 |
#AddHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddHardwareResponse`
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/v20210119/client.rb', line 109 def AddHardware(request) body = send_request('AddHardware', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AddHardwareResponse.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 |
#AddL3Conn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::AddL3ConnResponse`
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/v20210119/client.rb', line 133 def AddL3Conn(request) body = send_request('AddL3Conn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AddL3ConnResponse.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 |
#CreateEncryptedKey(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::CreateEncryptedKeyResponse`
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/v20210119/client.rb', line 157 def CreateEncryptedKey(request) body = send_request('CreateEncryptedKey', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateEncryptedKeyResponse.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 |
#DeleteDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DeleteDeviceResponse`
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/v20210119/client.rb', line 181 def DeleteDevice(request) body = send_request('DeleteDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteDeviceResponse.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 |
#DeleteGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DeleteGroupResponse`
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/v20210119/client.rb', line 205 def DeleteGroup(request) body = send_request('DeleteGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteGroupResponse.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 |
#DeleteL3Conn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DeleteL3ConnResponse`
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/v20210119/client.rb', line 229 def DeleteL3Conn(request) body = send_request('DeleteL3Conn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteL3ConnResponse.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 |
#DownloadActiveDeviceCount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::DownloadActiveDeviceCountResponse`
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/v20210119/client.rb', line 253 def DownloadActiveDeviceCount(request) body = send_request('DownloadActiveDeviceCount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DownloadActiveDeviceCountResponse.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 |
#GetActiveDeviceCount(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetActiveDeviceCountResponse`
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/v20210119/client.rb', line 277 def GetActiveDeviceCount(request) body = send_request('GetActiveDeviceCount', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetActiveDeviceCountResponse.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 |
#GetDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetDeviceResponse`
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/v20210119/client.rb', line 301 def GetDevice(request) body = send_request('GetDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetDeviceResponse.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 |
#GetDevicePayMode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetDevicePayModeResponse`
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/v20210119/client.rb', line 325 def GetDevicePayMode(request) body = send_request('GetDevicePayMode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetDevicePayModeResponse.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 |
#GetDevices(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetDevicesResponse`
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/v20210119/client.rb', line 349 def GetDevices(request) body = send_request('GetDevices', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetDevicesResponse.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 |
#GetFlowAlarmInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowAlarmInfoResponse`
373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/v20210119/client.rb', line 373 def GetFlowAlarmInfo(request) body = send_request('GetFlowAlarmInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFlowAlarmInfoResponse.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 |
#GetFlowPackages(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowPackagesResponse`
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/v20210119/client.rb', line 397 def GetFlowPackages(request) body = send_request('GetFlowPackages', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFlowPackagesResponse.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 |
#GetFlowStatistic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowStatisticResponse`
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/v20210119/client.rb', line 421 def GetFlowStatistic(request) body = send_request('GetFlowStatistic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFlowStatisticResponse.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 |
#GetFlowStatisticByGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowStatisticByGroupResponse`
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/v20210119/client.rb', line 445 def GetFlowStatisticByGroup(request) body = send_request('GetFlowStatisticByGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFlowStatisticByGroupResponse.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 |
#GetFlowStatisticByRegion(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetFlowStatisticByRegionResponse`
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 |
# File 'lib/v20210119/client.rb', line 469 def GetFlowStatisticByRegion(request) body = send_request('GetFlowStatisticByRegion', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetFlowStatisticByRegionResponse.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 |
#GetGroupDetail(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetGroupDetailResponse`
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/v20210119/client.rb', line 493 def GetGroupDetail(request) body = send_request('GetGroupDetail', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetGroupDetailResponse.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 |
#GetGroupList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetGroupListResponse`
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 |
# File 'lib/v20210119/client.rb', line 517 def GetGroupList(request) body = send_request('GetGroupList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetGroupListResponse.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 |
#GetHardwareList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetHardwareListResponse`
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 |
# File 'lib/v20210119/client.rb', line 541 def GetHardwareList(request) body = send_request('GetHardwareList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetHardwareListResponse.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 |
#GetL3ConnList(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetL3ConnListResponse`
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/v20210119/client.rb', line 565 def GetL3ConnList(request) body = send_request('GetL3ConnList', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetL3ConnListResponse.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 |
#GetMultiFlowStatistic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetMultiFlowStatisticResponse`
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 |
# File 'lib/v20210119/client.rb', line 589 def GetMultiFlowStatistic(request) body = send_request('GetMultiFlowStatistic', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetMultiFlowStatisticResponse.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 |
#GetNetMonitor(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetNetMonitorResponse`
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 |
# File 'lib/v20210119/client.rb', line 613 def GetNetMonitor(request) body = send_request('GetNetMonitor', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetNetMonitorResponse.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 |
#GetPublicKey(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetPublicKeyResponse`
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'lib/v20210119/client.rb', line 637 def GetPublicKey(request) body = send_request('GetPublicKey', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetPublicKeyResponse.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 |
#GetStatisticData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetStatisticDataResponse`
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/v20210119/client.rb', line 661 def GetStatisticData(request) body = send_request('GetStatisticData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetStatisticDataResponse.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 |
#GetVendorHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GetVendorHardwareResponse`
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 |
# File 'lib/v20210119/client.rb', line 685 def GetVendorHardware(request) body = send_request('GetVendorHardware', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GetVendorHardwareResponse.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 |
#GroupAddDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GroupAddDeviceResponse`
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 |
# File 'lib/v20210119/client.rb', line 709 def GroupAddDevice(request) body = send_request('GroupAddDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GroupAddDeviceResponse.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 |
#GroupDeleteDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::GroupDeleteDeviceResponse`
733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 |
# File 'lib/v20210119/client.rb', line 733 def GroupDeleteDevice(request) body = send_request('GroupDeleteDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = GroupDeleteDeviceResponse.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 |
#ModifyPackageRenewFlag(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::ModifyPackageRenewFlagResponse`
757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 |
# File 'lib/v20210119/client.rb', line 757 def ModifyPackageRenewFlag(request) body = send_request('ModifyPackageRenewFlag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyPackageRenewFlagResponse.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 |
#OrderFlowPackage(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::OrderFlowPackageResponse`
781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 |
# File 'lib/v20210119/client.rb', line 781 def OrderFlowPackage(request) body = send_request('OrderFlowPackage', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = OrderFlowPackageResponse.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 |
#OrderPerLicense(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::OrderPerLicenseResponse`
805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 |
# File 'lib/v20210119/client.rb', line 805 def OrderPerLicense(request) body = send_request('OrderPerLicense', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = OrderPerLicenseResponse.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 |
#ReportOrder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::ReportOrderResponse`
829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 |
# File 'lib/v20210119/client.rb', line 829 def ReportOrder(request) body = send_request('ReportOrder', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ReportOrderResponse.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 |
#SetNotifyUrl(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::SetNotifyUrlResponse`
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 |
# File 'lib/v20210119/client.rb', line 853 def SetNotifyUrl(request) body = send_request('SetNotifyUrl', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SetNotifyUrlResponse.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 |
#UpdateDevice(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateDeviceResponse`
877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/v20210119/client.rb', line 877 def UpdateDevice(request) body = send_request('UpdateDevice', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateDeviceResponse.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 |
#UpdateGroup(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateGroupResponse`
901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 |
# File 'lib/v20210119/client.rb', line 901 def UpdateGroup(request) body = send_request('UpdateGroup', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateGroupResponse.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 |
#UpdateHardware(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateHardwareResponse`
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 |
# File 'lib/v20210119/client.rb', line 925 def UpdateHardware(request) body = send_request('UpdateHardware', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateHardwareResponse.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 |
#UpdateL3Cidr(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateL3CidrResponse`
949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 |
# File 'lib/v20210119/client.rb', line 949 def UpdateL3Cidr(request) body = send_request('UpdateL3Cidr', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateL3CidrResponse.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 |
#UpdateL3Conn(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateL3ConnResponse`
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 |
# File 'lib/v20210119/client.rb', line 973 def UpdateL3Conn(request) body = send_request('UpdateL3Conn', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateL3ConnResponse.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 |
#UpdateL3Switch(request) ⇒ Object
@rtype: :class:‘Tencentcloud::mna::V20210119::UpdateL3SwitchResponse`
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'lib/v20210119/client.rb', line 997 def UpdateL3Switch(request) body = send_request('UpdateL3Switch', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = UpdateL3SwitchResponse.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 |