Sha256: 381abb8f90b7135bf6fb03ebdcd84ed67bdf09d8e0bdb0a447a782a91dcc314e
Contents?: true
Size: 1.43 KB
Versions: 19
Compression:
Stored size: 1.43 KB
Contents
# frozen_string_literal: true module Dnsimple class Client module RegistrarAutoRenewal # Enable auto renewal for the domain in the account. # # @see https://developer.dnsimple.com/v2/registrar/auto-renewal/ # # @param [Integer] account_id the account ID # @param [#to_s] domain_name the domain name # @param [Hash] options # @return [Dnsimple::Response<nil>] # # @raise [Dnsimple::NotFoundError] # @raise [Dnsimple::RequestError] def enable_auto_renewal(account_id, domain_name, options = {}) response = client.put(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), nil, options) Dnsimple::Response.new(response, nil) end # Disable auto renewal for the domain in the account. # # @see https://developer.dnsimple.com/v2/registrar/auto-renewal/ # # @param [Integer] account_id the account ID # @param [#to_s] domain_name the domain name # @param [Hash] options # @return [Dnsimple::Response<nil>] # # @raise [Dnsimple::NotFoundError] # @raise [Dnsimple::RequestError] def disable_auto_renewal(account_id, domain_name, options = {}) response = client.delete(Client.versioned("/%s/registrar/domains/%s/auto_renewal" % [account_id, domain_name]), nil, options) Dnsimple::Response.new(response, nil) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems