class TencentCloud::Sqlserver::V20180328::Client

def DescribeReadOnlyGroupByReadOnlyInstance(request)

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