mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Adding delete agent token coverage of api
This commit is contained in:
parent
8de5e6febe
commit
5f7338d77f
2 changed files with 18 additions and 0 deletions
|
@ -63,6 +63,7 @@ module Fog
|
|||
request :update_entity
|
||||
request :update_alarm
|
||||
|
||||
request :delete_agent_token
|
||||
request :delete_check
|
||||
request :delete_entity
|
||||
|
||||
|
|
17
lib/fog/rackspace/requests/monitoring/delete_agent_token.rb
Normal file
17
lib/fog/rackspace/requests/monitoring/delete_agent_token.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
module Fog
|
||||
module Rackspace
|
||||
class Monitoring
|
||||
class Real
|
||||
|
||||
def delete_agent_token(token_id)
|
||||
request(
|
||||
:expects => [204],
|
||||
:method => 'DELETE',
|
||||
:path => "agent_tokens/#{token_id}"
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in a new issue