Sha256: 1a10b08bfff098c14668d4120fd64867fa3711cb91d0103b9d03f4c03c35a28b
Contents?: true
Size: 999 Bytes
Versions: 19
Compression:
Stored size: 999 Bytes
Contents
# frozen_string_literal: true module Dnsimple class Client module TemplatesDomains # Applies a template to the domain. # # @see https://developer.dnsimple.com/v2/templates/domains/#apply # # @example Apply template 5401 for example.com in account 1010: # client.templates.apply_template(1010, 5401, "example.com") # # @param [Integer] account_id The account ID # @param [#to_s] template_id The template ID # @param [#to_s] domain_id The Domain ID or name # @param [Hash] options # @return [Dnsimple::Response<nil>] # # @raise [Dnsimple::NotFoundError] # @raise [Dnsimple::RequestError] def apply_template(account_id, template_id, domain_id, options = {}) endpoint = Client.versioned("/%s/domains/%s/templates/%s" % [account_id, domain_id, template_id]) response = client.post(endpoint, options) Dnsimple::Response.new(response, nil) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems