Method: TencentCloud::Anicloud::V20220923::Client#CheckAppidExist

Defined in:
lib/v20220923/client.rb

#CheckAppidExist(request) ⇒ Object

@rtype: :class:‘Tencentcloud::anicloud::V20220923::CheckAppidExistResponse`

Parameters:

  • request:

    Request instance for CheckAppidExist.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/v20220923/client.rb', line 37

def CheckAppidExist(request)
  body = send_request('CheckAppidExist', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CheckAppidExistResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end