parameters: (self, request)
return_statement: return _ResponseForAliyun(status, result, headers)
docstring: send request to aliyun
docstring_summary: send request to aliyun
docstring_tokens: send request to aliyun
function: def _send_reqeust(self, request):
          """
          send request to aliyun
          """
          request.set_accept_format("json")
          try:
              status, headers, result = self.clt.implementation_of_do_action(request)
              result = json.loads(result)
              if "Message" in result or "Code" in result:
                  result["Success"] = False
                  self.logger.warning("aliyundns resp error: %s", result)
          except Exception as exc:
              self.logger.warning("aliyundns failed to send request: %s, %s", str(exc), request)
              status, headers, result = 502, {}, '{"Success": false}'
              result = json.loads(result)
  
          if self._debug:
              self.logger.info("aliyundns request name: %s", request.__class__.__name__)
              self.logger.info("aliyundns request query: %s", request.get_query_params())
          return _ResponseForAliyun(status, result, headers)
function_tokens: def _send_reqeust ( self , request ) : request . set_accept_format ( "json" ) try : status , headers , result = self . clt . implementation_of_do_action ( request ) result = json . loads ( result ) if "Message" in result or "Code" in result : result [ "Success" ] = False self . logger . warning ( "aliyundns resp error: %s" , result ) except Exception as exc : self . logger . warning ( "aliyundns failed to send request: %s, %s" , str ( exc ) , request ) status , headers , result = 502 , { } , '{"Success": false}' result = json . loads ( result ) if self . _debug : self . logger . info ( "aliyundns request name: %s" , request . __class__ . __name__ ) self . logger . info ( "aliyundns request query: %s" , request . get_query_params ( ) ) return _ResponseForAliyun ( status , result , headers )