Module: Dnsimple::Client::RegistrarDelegation
- Included in:
- RegistrarService
- Defined in:
- lib/dnsimple/client/registrar_delegation.rb
Instance Method Summary collapse
-
#change_domain_delegation(account_id, domain_name, attributes, options = {}) ⇒ Dnsimple::Response<Array>
Chagne name servers the domain is delegating to.
-
#change_domain_delegation_from_vanity(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable vanity name servers for the domain.
-
#change_domain_delegation_to_vanity(account_id, domain_name, attributes, options = {}) ⇒ Dnsimple::Response<Array<Dnsimple::Struct::VanityNameServer>>
Enable vanity name servers for the domain.
-
#domain_delegation(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Array>
Lists name servers the domain is delegating to.
Instance Method Details
#change_domain_delegation(account_id, domain_name, attributes, options = {}) ⇒ Dnsimple::Response<Array>
Chagne name servers the domain is delegating to.
42 43 44 45 46 47 |
# File 'lib/dnsimple/client/registrar_delegation.rb', line 42 def change_domain_delegation(account_id, domain_name, attributes, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/delegation" % [account_id, domain_name]) response = client.put(endpoint, attributes, ) Dnsimple::Response.new(response, response["data"]) end |
#change_domain_delegation_from_vanity(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable vanity name servers for the domain.
84 85 86 87 88 89 |
# File 'lib/dnsimple/client/registrar_delegation.rb', line 84 def change_domain_delegation_from_vanity(account_id, domain_name, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/delegation/vanity" % [account_id, domain_name]) response = client.delete(endpoint, ) Dnsimple::Response.new(response, nil) end |
#change_domain_delegation_to_vanity(account_id, domain_name, attributes, options = {}) ⇒ Dnsimple::Response<Array<Dnsimple::Struct::VanityNameServer>>
Enable vanity name servers for the domain.
64 65 66 67 68 69 |
# File 'lib/dnsimple/client/registrar_delegation.rb', line 64 def change_domain_delegation_to_vanity(account_id, domain_name, attributes, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/delegation/vanity" % [account_id, domain_name]) response = client.put(endpoint, attributes, ) Dnsimple::Response.new(response, response["data"].map { |r| Struct::VanityNameServer.new(r) }) end |
#domain_delegation(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Array>
Lists name servers the domain is delegating to.
20 21 22 23 24 25 |
# File 'lib/dnsimple/client/registrar_delegation.rb', line 20 def domain_delegation(account_id, domain_name, = {}) endpoint = Client.versioned("/%s/registrar/domains/%s/delegation" % [account_id, domain_name]) response = client.get(endpoint, ) Dnsimple::Response.new(response, response["data"]) end |