class TencentCloud::Habo::V20181203::Client

def DescribeStatus(request)

Parameters:
  • request: () -- Request instance for DescribeStatus.
def DescribeStatus(request)
  body = send_request('DescribeStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeStatusResponse.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

def StartAnalyse(request)

Parameters:
  • request: () -- Request instance for StartAnalyse.
def StartAnalyse(request)
  body = send_request('StartAnalyse', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = StartAnalyseResponse.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

def initialize(credential, region, profile = nil)

def initialize(credential, region, profile = nil)
    api_version = '2018-12-03'
    api_endpoint = 'habo.tencentcloudapi.com'
    sdk_version = 'HABO_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end