Sha256: 4bfcc60b39ce731af6a14ef03a5c0b0a7d3c44b61e2f1570f42312661101178b
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
module Fog module Linode class DNS class Real # Creates a domain record # # ==== Parameters # * domain<~String>: The zone's name. Note, if master zone, SOA_email is required and if slave # master_ips is/are required # * type<~String>: master or slave # * options<~Hash> # * 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_create( domain, type, options = {}) query= {} request( :expects => 200, :method => 'GET', :query => { :api_action => 'domain.create', :domain => domain, :type => type }.merge!( options) ) end end class Mock def domain_create( domain, type, options ={}) Fog::Mock.not_implemented end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fog-0.3.34 | lib/fog/linode/requests/dns/domain_create.rb |
fog-0.3.33 | lib/fog/linode/requests/dns/domain_create.rb |
fog-0.3.32 | lib/fog/linode/requests/dns/domain_create.rb |