Module: Dnsimple::Client::DomainsDnssec
- Included in:
- DomainsService
- Defined in:
- lib/dnsimple/client/domains_dnssec.rb
Instance Method Summary collapse
-
#disable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable DNSSEC for the domain in the account.
-
#enable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Enable DNSSEC for the domain in the account.
-
#get_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Get the DNSSEC status for the domain in the account.
Instance Method Details
#disable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>
Disable DNSSEC for the domain in the account.
34 35 36 37 38 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 34 def disable_dnssec(account_id, domain_name, = {}) response = client.delete(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, nil) end |
#enable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Enable DNSSEC for the domain in the account.
17 18 19 20 21 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 17 def enable_dnssec(account_id, domain_name, = {}) response = client.post(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), nil, ) Dnsimple::Response.new(response, Struct::Dnssec.new(response["data"])) end |
#get_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Dnssec>
Get the DNSSEC status for the domain in the account.
51 52 53 54 55 |
# File 'lib/dnsimple/client/domains_dnssec.rb', line 51 def get_dnssec(account_id, domain_name, = {}) response = client.get(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), ) Dnsimple::Response.new(response, Struct::Dnssec.new(response["data"])) end |