class TencentCloud::Common::AbstractClient
def initialize(credential, region, api_version, api_endpoint, sdk_version, profile = nil)
def initialize(credential, region, api_version, api_endpoint, sdk_version, profile = nil) raise TencentCloudSDKException.new('InvalidCredential', 'Credential is None or invalid') unless credential @credential = credential @region = region @api_version = api_version @endpoint = api_endpoint @sdk_version = sdk_version @profile = profile || ClientProfile.new @request = ApiRequset.new(@profile.http_profile.scheme, endpoint, nil, @profile.http_profile.req_timeout, @profile.http_profile.proxy) end