Module: Dnsimple::Client::DomainsDnssec

Included in:
DomainsService
Defined in:
lib/dnsimple/client/domains_dnssec.rb

Instance Method Summary collapse

Instance Method Details

#disable_dnssec(account_id, domain_name, options = {}) ⇒ Dnsimple::Response<nil>

Disable DNSSEC for the domain in the account.

Parameters:

  • account_id (Integer)

    the account ID

  • domain_name (#to_s)

    the domain name

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:



35
36
37
38
39
# File 'lib/dnsimple/client/domains_dnssec.rb', line 35

def disable_dnssec(, domain_name, options = {})
  response = client.delete(Client.versioned("/%s/domains/%s/dnssec" % [, domain_name]), nil, options)

  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.

Parameters:

  • account_id (Integer)

    the account ID

  • domain_name (#to_s)

    the domain name

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:



18
19
20
21
22
# File 'lib/dnsimple/client/domains_dnssec.rb', line 18

def enable_dnssec(, domain_name, options = {})
  response = client.post(Client.versioned("/%s/domains/%s/dnssec" % [, domain_name]), nil, options)

  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.

Parameters:

  • account_id (Integer)

    the account ID

  • domain_name (#to_s)

    the domain name

  • options (Hash) (defaults to: {})

Returns:

Raises:

See Also:



52
53
54
55
56
# File 'lib/dnsimple/client/domains_dnssec.rb', line 52

def get_dnssec(, domain_name, options = {})
  response = client.get(Client.versioned("/%s/domains/%s/dnssec" % [, domain_name]), options)

  Dnsimple::Response.new(response, Struct::Dnssec.new(response["data"]))
end