Method: TencentCloud::Anicloud::V20220923::Client#QueryResourceInfo
- Defined in:
- lib/v20220923/client.rb
#QueryResourceInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::anicloud::V20220923::QueryResourceInfoResponse`
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/v20220923/client.rb', line 85 def QueryResourceInfo(request) body = send_request('QueryResourceInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = QueryResourceInfoResponse.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 |