lib/fastly/api/automation_tokens_api.rb in fastly-5.2.2 vs lib/fastly/api/automation_tokens_api.rb in fastly-5.3.0
- old
+ new
@@ -275,20 +275,20 @@
end
# Revoke an Automation Token by ID
# Revoke an automation token by ID.
# @option opts [String] :id (required)
- # @return [nil]
+ # @return [ErrorResponse]
def revoke_automation_token_id(opts = {})
- revoke_automation_token_id_with_http_info(opts)
- nil
+ data, _status_code, _headers = revoke_automation_token_id_with_http_info(opts)
+ data
end
# Revoke an Automation Token by ID
# Revoke an automation token by ID.
# @option opts [String] :id (required)
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
+ # @return [Array<(ErrorResponse, Integer, Hash)>] ErrorResponse data, response status code and response headers
def revoke_automation_token_id_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: AutomationTokensApi.revoke_automation_token_id ...'
end
# unbox the parameters from the hash
@@ -313,10 +313,10 @@
# http body (model)
post_body = opts[:debug_body]
# return_type
- return_type = opts[:debug_return_type]
+ return_type = opts[:debug_return_type] || 'ErrorResponse'
# auth_names
auth_names = opts[:debug_auth_names] || ['token']
new_options = opts.merge(