Sha256: d1b82d5f08f4bce23e4b421c11ceea5ac5ad61b5bbbf2068069d41c8bdbb8c8f

Contents?: true

Size: 1.41 KB

Versions: 102

Compression:

Stored size: 1.41 KB

Contents

module Fog
  module DNS
    class Linode
      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
    end
  end
end

Version data entries

102 entries across 102 versions & 18 rubygems

Version Path
fog-1.22.0 lib/fog/linode/requests/dns/domain_create.rb
fog-1.21.0 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/linode/requests/dns/domain_create.rb
fog-1.20.0 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/linode/requests/dns/domain_create.rb
fog-1.19.0 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/linode/requests/dns/domain_create.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/linode/requests/dns/domain_create.rb