lib/retentiongrid/api.rb
# Do a HTTP DELETE requests with the given arguments
# and then check for the response code.
# @raise [Retentiongrid::BadRequest] (400) in case the request was not legible to the server
# @raise [Retentiongrid::Forbidden] (403) access denied (e.g. wrong api key)
# @raise [Retentiongrid::NotFound] (404) in case the requested resource could not be found
# @raise [Retentiongrid::ServerError] (500) in case something went wrong on the retentiongrid server
# @return [Httparty::Response]
Do a HTTP DELETE requests with the given arguments
and then check for the response code.
Do a HTTP DELETE requests with the given arguments and then check for the response code .
def delete_with_response_check(*args)
        begin
          check_response_codes(delete_without_response_check(*args))
        rescue TooManyRequests => e
          sleep 1
          retry
        end
      end
def delete_with_response_check ( * args ) begin check_response_codes ( delete_without_response_check ( * args ) ) rescue TooManyRequests => e sleep 1 retry end end
Do a HTTP DELETE requests with the given arguments
and then check for the response code.
Do a HTTP DELETE requests with the given arguments and then check for the response code .
None
Httparty::Response
[Retentiongrid::BadRequest] (400) in case the request was not legible to the server
[ Retentiongrid :: BadRequest ] ( 400 ) in case the request was not legible to the server
[Retentiongrid::Forbidden] (403) access denied
[ Retentiongrid :: Forbidden ] ( 403 ) access denied
[Retentiongrid::NotFound] (404) in case the requested resource could not be found
[ Retentiongrid :: NotFound ] ( 404 ) in case the requested resource could not be found
[Retentiongrid::ServerError] (500) in case something went wrong on the retentiongrid server
[ Retentiongrid :: ServerError ] ( 500 ) in case something went wrong on the retentiongrid server
args
<not_specific>