mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
0ffd1404d5
Added support for all the DNS resource functions. As with Slicehost, no mocks or test cases yet. Also, example code still needs some updating
36 lines
925 B
Ruby
36 lines
925 B
Ruby
module Fog
|
|
module Linode
|
|
class Compute
|
|
class Real
|
|
|
|
# Delete the given resource from a domain
|
|
#
|
|
# ==== Parameters
|
|
# * domain_id<~Integer>: id of domain resource belongs to
|
|
# * resource_id<~Integer>: id of resouce to delete
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Hash>:
|
|
# * DATA<~Hash>:
|
|
# * resource_id<~Integer>: resource id that was deleted
|
|
def domain_resource_delete(domain_id, resource_id)
|
|
request(
|
|
:expects => 200,
|
|
:method => 'GET',
|
|
:query => { :api_action => 'domain.resource.delete', :domainId => domain_id, :resourceID => resource_id }
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def domain_resource_delete(domain_id, resource_id)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|