1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/linode/requests/compute/domain_update.rb
Athir Nuaimi 0ffd1404d5 All Linode DNS functions are now supported. Still needs some testing though
Added support for all the DNS resource functions.
As with Slicehost, no mocks or test cases yet.  Also, example code still needs some updating
2010-12-11 11:32:41 -05:00

52 lines
1.5 KiB
Ruby

module Fog
module Linode
class Compute
class Real
# Update a domain record
#
# ==== Parameters
# * domain_id<~Integer>: The ID to identify the zone
# * options<~Hash>
# * domain<~String>: The zone's name.
# * type<~String>: master or slave
# * description<~String> Currently undisplayed
# * SOA_email<~String> Required when type=master
# * refresh_sec<~Integer> numeric, default: '0'
# * retry_sec<~Integer> numeric, default: '0'
# * expire_sec<~Integer> numeric, default: '0'
# * ttl_sec<~String> numeric, default: '0'
# * status<~Integer> 0, 1, or 2 (disabled, active, edit mode), default: 1
# * master_ips<~String> When type=slave, the zone's master DNS servers list, semicolon separated
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * DATA<~Hash>:
# * 'DomainID'<~Integer>: domain ID
def domain_update( domain_id, options = {})
query= {}
request(
:expects => 200,
:method => 'GET',
:query => {
:api_action => 'domain.update',
:domain => domain,
:type => type
}.merge!( options)
)
end
end
class Mock
def domain_update(datacenter_id, payment_term, plan_id)
Fog::Mock.not_implemented
end
end
end
end
end