dnsimple 11.1.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +10 -5
  3. data/.github/workflows/release.yml +44 -13
  4. data/.github/workflows/sync-test-fixtures.yml +1 -1
  5. data/.rubocop.yml +4 -1
  6. data/.rubocop_dnsimple.yml +13 -41
  7. data/.rubocop_todo.yml +4 -9
  8. data/CHANGELOG.md +285 -183
  9. data/CONTRIBUTING.md +6 -40
  10. data/Gemfile +1 -1
  11. data/LICENSE.txt +1 -1
  12. data/README.md +49 -40
  13. data/RELEASING.md +67 -0
  14. data/dnsimple.gemspec +1 -1
  15. data/lib/dnsimple/client/accounts.rb +1 -3
  16. data/lib/dnsimple/client/billing.rb +2 -4
  17. data/lib/dnsimple/client/certificates.rb +0 -2
  18. data/lib/dnsimple/client/clients.rb +2 -40
  19. data/lib/dnsimple/client/contacts.rb +17 -19
  20. data/lib/dnsimple/client/dns_analytics.rb +2 -4
  21. data/lib/dnsimple/client/domains.rb +13 -15
  22. data/lib/dnsimple/client/domains_delegation_signer_records.rb +18 -20
  23. data/lib/dnsimple/client/domains_dnssec.rb +9 -11
  24. data/lib/dnsimple/client/domains_email_forwards.rb +18 -20
  25. data/lib/dnsimple/client/domains_pushes.rb +13 -15
  26. data/lib/dnsimple/client/identity.rb +4 -9
  27. data/lib/dnsimple/client/oauth.rb +1 -3
  28. data/lib/dnsimple/client/registrar.rb +45 -47
  29. data/lib/dnsimple/client/registrar_auto_renewal.rb +6 -8
  30. data/lib/dnsimple/client/registrar_delegation.rb +14 -16
  31. data/lib/dnsimple/client/registrar_registrant_changes.rb +14 -16
  32. data/lib/dnsimple/client/registrar_transfer_lock.rb +9 -11
  33. data/lib/dnsimple/client/registrar_whois_privacy.rb +6 -48
  34. data/lib/dnsimple/client/services.rb +4 -6
  35. data/lib/dnsimple/client/services_domains.rb +12 -14
  36. data/lib/dnsimple/client/templates.rb +17 -19
  37. data/lib/dnsimple/client/templates_domains.rb +4 -6
  38. data/lib/dnsimple/client/templates_records.rb +18 -20
  39. data/lib/dnsimple/client/tlds.rb +6 -8
  40. data/lib/dnsimple/client/vanity_name_servers.rb +0 -2
  41. data/lib/dnsimple/client/webhooks.rb +11 -13
  42. data/lib/dnsimple/client/zones.rb +16 -18
  43. data/lib/dnsimple/client/zones_distributions.rb +4 -6
  44. data/lib/dnsimple/client/zones_records.rb +29 -31
  45. data/lib/dnsimple/client.rb +22 -24
  46. data/lib/dnsimple/default.rb +0 -4
  47. data/lib/dnsimple/error.rb +0 -6
  48. data/lib/dnsimple/extra.rb +4 -6
  49. data/lib/dnsimple/options.rb +1 -7
  50. data/lib/dnsimple/response.rb +4 -13
  51. data/lib/dnsimple/struct/account.rb +0 -2
  52. data/lib/dnsimple/struct/certificate.rb +0 -2
  53. data/lib/dnsimple/struct/certificate_bundle.rb +0 -2
  54. data/lib/dnsimple/struct/certificate_purchase.rb +0 -2
  55. data/lib/dnsimple/struct/certificate_renewal.rb +0 -2
  56. data/lib/dnsimple/struct/charge.rb +4 -8
  57. data/lib/dnsimple/struct/collaborator.rb +0 -2
  58. data/lib/dnsimple/struct/contact.rb +0 -2
  59. data/lib/dnsimple/struct/delegation_signer_record.rb +0 -2
  60. data/lib/dnsimple/struct/dns_analytics.rb +0 -2
  61. data/lib/dnsimple/struct/dnssec.rb +0 -2
  62. data/lib/dnsimple/struct/domain.rb +0 -2
  63. data/lib/dnsimple/struct/domain_check.rb +0 -2
  64. data/lib/dnsimple/struct/domain_premium_price.rb +0 -2
  65. data/lib/dnsimple/struct/domain_price.rb +0 -2
  66. data/lib/dnsimple/struct/domain_push.rb +0 -2
  67. data/lib/dnsimple/struct/domain_registration.rb +0 -2
  68. data/lib/dnsimple/struct/domain_renewal.rb +0 -2
  69. data/lib/dnsimple/struct/domain_restore.rb +0 -2
  70. data/lib/dnsimple/struct/domain_transfer.rb +0 -2
  71. data/lib/dnsimple/struct/email_forward.rb +0 -2
  72. data/lib/dnsimple/struct/extended_attribute.rb +0 -4
  73. data/lib/dnsimple/struct/oauth_token.rb +0 -2
  74. data/lib/dnsimple/struct/registrant_change.rb +0 -2
  75. data/lib/dnsimple/struct/registrant_change_check.rb +0 -2
  76. data/lib/dnsimple/struct/service.rb +0 -4
  77. data/lib/dnsimple/struct/template.rb +0 -2
  78. data/lib/dnsimple/struct/template_record.rb +0 -2
  79. data/lib/dnsimple/struct/tld.rb +0 -2
  80. data/lib/dnsimple/struct/transfer_lock.rb +0 -2
  81. data/lib/dnsimple/struct/user.rb +0 -2
  82. data/lib/dnsimple/struct/vanity_name_server.rb +0 -2
  83. data/lib/dnsimple/struct/webhook.rb +0 -2
  84. data/lib/dnsimple/struct/whoami.rb +2 -4
  85. data/lib/dnsimple/struct/whois_privacy.rb +0 -2
  86. data/lib/dnsimple/struct/zone.rb +0 -2
  87. data/lib/dnsimple/struct/zone_distribution.rb +0 -2
  88. data/lib/dnsimple/struct/zone_file.rb +0 -2
  89. data/lib/dnsimple/struct/zone_record.rb +0 -2
  90. data/lib/dnsimple/struct/zone_record_id.rb +0 -2
  91. data/lib/dnsimple/struct/zone_records_batch_change.rb +0 -2
  92. data/lib/dnsimple/struct.rb +0 -3
  93. data/lib/dnsimple/version.rb +1 -3
  94. data/lib/dnsimple.rb +1 -3
  95. data/spec/dnsimple/client/client_service_spec.rb +12 -10
  96. data/spec/dnsimple/client/oauth_spec.rb +6 -6
  97. data/spec/dnsimple/client/registrar_whois_privacy_spec.rb +0 -82
  98. data/spec/fixtures.http/acceptPush/success.http +15 -15
  99. data/spec/fixtures.http/accounts/success-account.http +20 -20
  100. data/spec/fixtures.http/accounts/success-user.http +21 -21
  101. data/spec/fixtures.http/activateZoneService/success.http +16 -16
  102. data/spec/fixtures.http/appliedServices/success.http +19 -19
  103. data/spec/fixtures.http/applyService/success.http +15 -15
  104. data/spec/fixtures.http/applyTemplate/success.http +13 -13
  105. data/spec/fixtures.http/authorizeDomainTransferOut/success.http +13 -13
  106. data/spec/fixtures.http/badgateway.http +5 -5
  107. data/spec/fixtures.http/batchChangeZoneRecords/error_400_create_validation_failed.http +16 -16
  108. data/spec/fixtures.http/batchChangeZoneRecords/error_400_delete_validation_failed.http +3 -3
  109. data/spec/fixtures.http/batchChangeZoneRecords/error_400_update_validation_failed.http +3 -3
  110. data/spec/fixtures.http/batchChangeZoneRecords/success.http +16 -16
  111. data/spec/fixtures.http/cancelDomainTransfer/success.http +17 -17
  112. data/spec/fixtures.http/changeDomainDelegation/success.http +15 -15
  113. data/spec/fixtures.http/changeDomainDelegationFromVanity/success.http +15 -15
  114. data/spec/fixtures.http/changeDomainDelegationToVanity/success.http +17 -17
  115. data/spec/fixtures.http/checkDomain/success.http +15 -15
  116. data/spec/fixtures.http/checkRegistrantChange/error-contactnotfound.http +3 -3
  117. data/spec/fixtures.http/checkRegistrantChange/error-domainnotfound.http +3 -3
  118. data/spec/fixtures.http/checkRegistrantChange/success.http +15 -15
  119. data/spec/fixtures.http/checkZoneDistribution/error.http +17 -17
  120. data/spec/fixtures.http/checkZoneDistribution/failure.http +17 -17
  121. data/spec/fixtures.http/checkZoneDistribution/success.http +17 -17
  122. data/spec/fixtures.http/checkZoneRecordDistribution/error.http +17 -17
  123. data/spec/fixtures.http/checkZoneRecordDistribution/failure.http +17 -17
  124. data/spec/fixtures.http/checkZoneRecordDistribution/success.http +17 -17
  125. data/spec/fixtures.http/createContact/created.http +16 -16
  126. data/spec/fixtures.http/createContact/error-validation-errors.http +15 -15
  127. data/spec/fixtures.http/createDelegationSignerRecord/created.http +17 -17
  128. data/spec/fixtures.http/createDelegationSignerRecord/validation-error.http +15 -15
  129. data/spec/fixtures.http/createDomain/created.http +19 -19
  130. data/spec/fixtures.http/createEmailForward/created.http +21 -21
  131. data/spec/fixtures.http/createPrimaryServer/created.http +20 -20
  132. data/spec/fixtures.http/createRegistrantChange/success.http +14 -14
  133. data/spec/fixtures.http/createSecondaryZone/created.http +20 -20
  134. data/spec/fixtures.http/createTemplate/created.http +15 -15
  135. data/spec/fixtures.http/createTemplateRecord/created.http +16 -16
  136. data/spec/fixtures.http/createWebhook/created.http +13 -13
  137. data/spec/fixtures.http/createZoneRecord/created-apex.http +13 -13
  138. data/spec/fixtures.http/createZoneRecord/created.http +13 -13
  139. data/spec/fixtures.http/deactivateZoneService/success.http +16 -16
  140. data/spec/fixtures.http/deleteContact/error-contact-in-use.http +15 -15
  141. data/spec/fixtures.http/deleteContact/success.http +13 -13
  142. data/spec/fixtures.http/deleteDelegationSignerRecord/success.http +15 -15
  143. data/spec/fixtures.http/deleteDomain/success.http +11 -11
  144. data/spec/fixtures.http/deleteEmailForward/success.http +18 -18
  145. data/spec/fixtures.http/deleteRegistrantChange/success.http +13 -13
  146. data/spec/fixtures.http/deleteRegistrantChange/success_async.http +3 -3
  147. data/spec/fixtures.http/deleteTemplate/success.http +13 -13
  148. data/spec/fixtures.http/deleteTemplateRecord/success.http +13 -13
  149. data/spec/fixtures.http/deleteWebhook/success.http +13 -13
  150. data/spec/fixtures.http/deleteZoneRecord/success.http +11 -11
  151. data/spec/fixtures.http/disableDnssec/not-enabled.http +15 -15
  152. data/spec/fixtures.http/disableDnssec/success.http +15 -15
  153. data/spec/fixtures.http/disableDomainAutoRenewal/success.http +13 -13
  154. data/spec/fixtures.http/disableDomainTransferLock/success.http +17 -17
  155. data/spec/fixtures.http/disableVanityNameServers/success.http +15 -15
  156. data/spec/fixtures.http/disableWhoisPrivacy/success.http +16 -16
  157. data/spec/fixtures.http/dnsAnalytics/success.http +17 -17
  158. data/spec/fixtures.http/downloadCertificate/success.http +19 -19
  159. data/spec/fixtures.http/enableDnssec/success.http +17 -17
  160. data/spec/fixtures.http/enableDomainAutoRenewal/success.http +13 -13
  161. data/spec/fixtures.http/enableDomainTransferLock/success.http +17 -17
  162. data/spec/fixtures.http/enableVanityNameServers/success.http +17 -17
  163. data/spec/fixtures.http/enableWhoisPrivacy/created.http +16 -16
  164. data/spec/fixtures.http/enableWhoisPrivacy/success.http +16 -16
  165. data/spec/fixtures.http/getCertificate/success.http +19 -19
  166. data/spec/fixtures.http/getCertificatePrivateKey/success.http +20 -20
  167. data/spec/fixtures.http/getContact/success.http +16 -16
  168. data/spec/fixtures.http/getDelegationSignerRecord/success.http +17 -17
  169. data/spec/fixtures.http/getDnssec/success.http +17 -17
  170. data/spec/fixtures.http/getDomain/success.http +19 -19
  171. data/spec/fixtures.http/getDomainDelegation/success-empty.http +15 -15
  172. data/spec/fixtures.http/getDomainDelegation/success.http +15 -15
  173. data/spec/fixtures.http/getDomainPrices/failure.http +18 -18
  174. data/spec/fixtures.http/getDomainPrices/success.http +21 -21
  175. data/spec/fixtures.http/getDomainRegistration/success.http +20 -20
  176. data/spec/fixtures.http/getDomainRenewal/success.http +20 -20
  177. data/spec/fixtures.http/getDomainRestore/success.http +22 -22
  178. data/spec/fixtures.http/getDomainTransfer/success.http +19 -19
  179. data/spec/fixtures.http/getDomainTransferLock/success.http +17 -17
  180. data/spec/fixtures.http/getEmailForward/success.http +21 -21
  181. data/spec/fixtures.http/getPrimaryServer/success.http +20 -20
  182. data/spec/fixtures.http/getRegistrantChange/success.http +15 -15
  183. data/spec/fixtures.http/getService/success.http +16 -16
  184. data/spec/fixtures.http/getTemplate/success.http +15 -15
  185. data/spec/fixtures.http/getTemplateRecord/success.http +16 -16
  186. data/spec/fixtures.http/getTld/success.http +20 -20
  187. data/spec/fixtures.http/getTldExtendedAttributes/success-attributes.http +15 -15
  188. data/spec/fixtures.http/getTldExtendedAttributes/success-noattributes.http +15 -15
  189. data/spec/fixtures.http/getTldExtendedAttributes/success.http +15 -15
  190. data/spec/fixtures.http/getWebhook/success.http +13 -13
  191. data/spec/fixtures.http/getZone/success.http +16 -16
  192. data/spec/fixtures.http/getZoneFile/success.http +17 -17
  193. data/spec/fixtures.http/getZoneRecord/success.http +17 -17
  194. data/spec/fixtures.http/initiatePush/success.http +17 -17
  195. data/spec/fixtures.http/issueLetsencryptCertificate/success.http +17 -17
  196. data/spec/fixtures.http/issueRenewalLetsencryptCertificate/success.http +17 -17
  197. data/spec/fixtures.http/linkPrimaryServer/success.http +20 -20
  198. data/spec/fixtures.http/listAccounts/success-account.http +20 -20
  199. data/spec/fixtures.http/listAccounts/success-user.http +20 -20
  200. data/spec/fixtures.http/listCertificates/success.http +19 -19
  201. data/spec/fixtures.http/listCharges/fail-400-bad-filter.http +9 -9
  202. data/spec/fixtures.http/listCharges/fail-403.http +9 -9
  203. data/spec/fixtures.http/listCharges/success.http +9 -9
  204. data/spec/fixtures.http/listContacts/success.http +16 -16
  205. data/spec/fixtures.http/listDelegationSignerRecords/success.http +17 -17
  206. data/spec/fixtures.http/listDomains/success.http +19 -19
  207. data/spec/fixtures.http/listEmailForwards/success.http +13 -13
  208. data/spec/fixtures.http/listPrimaryServers/success.http +20 -20
  209. data/spec/fixtures.http/listPushes/success.http +17 -17
  210. data/spec/fixtures.http/listRegistrantChanges/success.http +15 -15
  211. data/spec/fixtures.http/listServices/success.http +17 -17
  212. data/spec/fixtures.http/listTemplateRecords/success.http +16 -16
  213. data/spec/fixtures.http/listTemplates/success.http +15 -15
  214. data/spec/fixtures.http/listTlds/success.http +20 -20
  215. data/spec/fixtures.http/listWebhooks/success.http +13 -13
  216. data/spec/fixtures.http/listZoneRecords/success.http +17 -17
  217. data/spec/fixtures.http/listZones/success.http +16 -16
  218. data/spec/fixtures.http/method-not-allowed.http +8 -8
  219. data/spec/fixtures.http/notfound-certificate.http +12 -12
  220. data/spec/fixtures.http/notfound-contact.http +10 -10
  221. data/spec/fixtures.http/notfound-delegationSignerRecord.http +8 -8
  222. data/spec/fixtures.http/notfound-domain.http +8 -8
  223. data/spec/fixtures.http/notfound-domainpush.http +8 -8
  224. data/spec/fixtures.http/notfound-emailforward.http +8 -8
  225. data/spec/fixtures.http/notfound-record.http +10 -10
  226. data/spec/fixtures.http/notfound-template.http +10 -10
  227. data/spec/fixtures.http/notfound-webhook.http +8 -8
  228. data/spec/fixtures.http/notfound-whoisprivacy.http +10 -10
  229. data/spec/fixtures.http/notfound-zone.http +10 -10
  230. data/spec/fixtures.http/oauthAccessToken/error-invalid-request.http +12 -12
  231. data/spec/fixtures.http/oauthAccessToken/success.http +16 -16
  232. data/spec/fixtures.http/pages-1of3.http +12 -12
  233. data/spec/fixtures.http/pages-2of3.http +12 -12
  234. data/spec/fixtures.http/pages-3of3.http +12 -12
  235. data/spec/fixtures.http/purchaseLetsencryptCertificate/success.http +19 -19
  236. data/spec/fixtures.http/purchaseRenewalLetsencryptCertificate/success.http +19 -19
  237. data/spec/fixtures.http/registerDomain/error-extended-attributes.http +15 -15
  238. data/spec/fixtures.http/registerDomain/success.http +20 -20
  239. data/spec/fixtures.http/rejectPush/success.http +15 -15
  240. data/spec/fixtures.http/renewDomain/error-tooearly.http +14 -14
  241. data/spec/fixtures.http/renewDomain/success.http +20 -20
  242. data/spec/fixtures.http/response.http +12 -12
  243. data/spec/fixtures.http/restoreDomain/success.http +22 -22
  244. data/spec/fixtures.http/success-with-malformed-json.http +4 -4
  245. data/spec/fixtures.http/transferDomain/error-indnsimple.http +13 -13
  246. data/spec/fixtures.http/transferDomain/error-missing-authcode.http +13 -13
  247. data/spec/fixtures.http/transferDomain/success.http +20 -20
  248. data/spec/fixtures.http/unapplyService/success.http +15 -15
  249. data/spec/fixtures.http/unlinkPrimaryServer/success.http +20 -20
  250. data/spec/fixtures.http/updateContact/success.http +16 -16
  251. data/spec/fixtures.http/updateTemplate/success.http +15 -15
  252. data/spec/fixtures.http/updateZoneNsRecords/success.http +16 -16
  253. data/spec/fixtures.http/updateZoneRecord/success.http +17 -17
  254. data/spec/fixtures.http/validation-error.http +15 -15
  255. data/spec/fixtures.http/whoami/success-account.http +15 -15
  256. data/spec/fixtures.http/whoami/success-user.http +15 -15
  257. data/spec/fixtures.http/whoami/success.http +15 -15
  258. data/spec/support/helpers.rb +0 -2
  259. metadata +7 -13
  260. data/lib/dnsimple/struct/whois_privacy_renewal.rb +0 -30
  261. data/spec/fixtures.http/checkDomainPremiumPrice/error_400_not_a_premium_domain.http +0 -18
  262. data/spec/fixtures.http/checkDomainPremiumPrice/error_400_tld_not_supported.http +0 -18
  263. data/spec/fixtures.http/checkDomainPremiumPrice/success.http +0 -20
  264. data/spec/fixtures.http/getDomainPremiumPrice/failure.http +0 -15
  265. data/spec/fixtures.http/getDomainPremiumPrice/success.http +0 -20
  266. data/spec/fixtures.http/getWhoisPrivacy/success.http +0 -16
  267. data/spec/fixtures.http/renewWhoisPrivacy/success.http +0 -20
  268. data/spec/fixtures.http/renewWhoisPrivacy/whois-privacy-duplicated-order.http +0 -18
  269. data/spec/fixtures.http/renewWhoisPrivacy/whois-privacy-not-found.http +0 -18
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class CertificateBundle < Base
6
-
7
6
  # @return [String] The certificate private key
8
7
  attr_accessor :private_key
9
8
 
@@ -21,7 +20,6 @@ module Dnsimple
21
20
  attr_accessor :chain
22
21
 
23
22
  alias intermediate_certificates chain
24
-
25
23
  end
26
24
  end
27
25
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class CertificatePurchase < Base
6
-
7
6
  # @return [Integer] The certificate purchase ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -21,7 +20,6 @@ module Dnsimple
21
20
 
22
21
  # @return [String] When the certificate renewal was last updated in DNSimple.
23
22
  attr_accessor :updated_at
24
-
25
23
  end
26
24
  end
27
25
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class CertificateRenewal < Base
6
-
7
6
  # @return [Integer] The certificate renewal ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -24,7 +23,6 @@ module Dnsimple
24
23
 
25
24
  # @return [String] When the certificate renewal was last updated in DNSimple.
26
25
  attr_accessor :updated_at
27
-
28
26
  end
29
27
  end
30
28
  end
@@ -5,9 +5,7 @@ require "bigdecimal"
5
5
  module Dnsimple
6
6
  module Struct
7
7
  class Charge < Base
8
-
9
8
  class ChargeItem < Base
10
-
11
9
  # @return [String] The description of the charge item.
12
10
  attr_accessor :description
13
11
 
@@ -25,12 +23,11 @@ module Dnsimple
25
23
 
26
24
  # Converts amount to a Float and sets it.
27
25
  #
28
- # @param [String] amount
26
+ # @param amount [String]
29
27
  # @return [void]
30
28
  def amount=(amount)
31
29
  @amount = BigDecimal(amount)
32
30
  end
33
-
34
31
  end
35
32
 
36
33
  # @return [String] The reference number of the invoice.
@@ -58,7 +55,7 @@ module Dnsimple
58
55
 
59
56
  # Converts items to an Array<Struct::Charge::ChargeItem> and sets it.
60
57
  #
61
- # @param [Array<Hash>] charge_items
58
+ # @param charge_items [Array<Hash>]
62
59
  # @return [void]
63
60
  def items=(charge_items)
64
61
  @items = charge_items.map do |charge_item|
@@ -68,7 +65,7 @@ module Dnsimple
68
65
 
69
66
  # Converts balance_amount to a Float and sets it.
70
67
  #
71
- # @param [String] balance_amount
68
+ # @param balance_amount [String]
72
69
  # @return [void]
73
70
  def balance_amount=(balance_amount)
74
71
  @balance_amount = BigDecimal(balance_amount)
@@ -76,12 +73,11 @@ module Dnsimple
76
73
 
77
74
  # Converts total_amount to a Float and sets it.
78
75
  #
79
- # @param [String] total_amount
76
+ # @param total_amount [String]
80
77
  # @return [void]
81
78
  def total_amount=(total_amount)
82
79
  @total_amount = BigDecimal(total_amount)
83
80
  end
84
-
85
81
  end
86
82
  end
87
83
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Collaborator < Base
6
-
7
6
  # @return [Integer] The collaborator ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -30,7 +29,6 @@ module Dnsimple
30
29
 
31
30
  # @return [String,NilClass] When the collaborator has accepted the invitation.
32
31
  attr_accessor :accepted_at
33
-
34
32
  end
35
33
  end
36
34
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Contact < Base
6
-
7
6
  # @return [Integer] The contact ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -57,7 +56,6 @@ module Dnsimple
57
56
 
58
57
  # @return [String] When the contact was last updated in DNSimple.
59
58
  attr_accessor :updated_at
60
-
61
59
  end
62
60
  end
63
61
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DelegationSignerRecord < Base
6
-
7
6
  # @return [Integer] The ID of the delegation signer record in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -30,7 +29,6 @@ module Dnsimple
30
29
 
31
30
  # @return [String] When the delegation signing record was last updated in DNSimple.
32
31
  attr_accessor :updated_at
33
-
34
32
  end
35
33
  end
36
34
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DnsAnalytics < Base
6
-
7
6
  # @return [Integer] The recorded volume
8
7
  attr_accessor :volume
9
8
 
@@ -12,7 +11,6 @@ module Dnsimple
12
11
 
13
12
  # @return [String] The zone name
14
13
  attr_accessor :zone_name
15
-
16
14
  end
17
15
  end
18
16
  end
@@ -3,10 +3,8 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Dnssec < Base
6
-
7
6
  # @return [Boolean] True if DNSSEC is enabled on the domain, otherwise false
8
7
  attr_accessor :enabled
9
-
10
8
  end
11
9
  end
12
10
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Domain < Base
6
-
7
6
  # @return [Integer] The domain ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -36,7 +35,6 @@ module Dnsimple
36
35
 
37
36
  # @return [String] When the domain was last updated in DNSimple.
38
37
  attr_accessor :updated_at
39
-
40
38
  end
41
39
  end
42
40
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainCheck < Base
6
-
7
6
  # @return [String] The domain name that was checked.
8
7
  attr_accessor :domain
9
8
 
@@ -12,7 +11,6 @@ module Dnsimple
12
11
 
13
12
  # @return [Boolean] Whether the domain name is premium.
14
13
  attr_accessor :premium
15
-
16
14
  end
17
15
  end
18
16
  end
@@ -3,13 +3,11 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainPremiumPrice < Base
6
-
7
6
  # @return [String] The domain premium price
8
7
  attr_accessor :premium_price
9
8
 
10
9
  # @return [String] The action: registration/transfer/renewal
11
10
  attr_accessor :action
12
-
13
11
  end
14
12
  end
15
13
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainPrice < Base
6
-
7
6
  # @return [String] The domain name
8
7
  attr_accessor :domain
9
8
 
@@ -18,7 +17,6 @@ module Dnsimple
18
17
 
19
18
  # @return [Float] The price for transfer
20
19
  attr_accessor :transfer_price
21
-
22
20
  end
23
21
  end
24
22
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainPush < Base
6
-
7
6
  # @return [Integer] The domain push ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -24,7 +23,6 @@ module Dnsimple
24
23
 
25
24
  # @return [String] When the domain push was accepted in DNSimple.
26
25
  attr_accessor :accepted_at
27
-
28
26
  end
29
27
  end
30
28
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainRegistration < Base
6
-
7
6
  # @return [Integer] The domain registration ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -30,7 +29,6 @@ module Dnsimple
30
29
 
31
30
  # @return [String] When the domain renewal was last updated in DNSimple.
32
31
  attr_accessor :updated_at
33
-
34
32
  end
35
33
  end
36
34
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainRenewal < Base
6
-
7
6
  # @return [Integer] The domain renewal ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -21,7 +20,6 @@ module Dnsimple
21
20
 
22
21
  # @return [String] When the domain renewal was last updated in DNSimple.
23
22
  attr_accessor :updated_at
24
-
25
23
  end
26
24
  end
27
25
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainRestore < Base
6
-
7
6
  # @return [Integer] The domain restore ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -18,7 +17,6 @@ module Dnsimple
18
17
 
19
18
  # @return [String] When the domain restore was last updated in DNSimple.
20
19
  attr_accessor :updated_at
21
-
22
20
  end
23
21
  end
24
22
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class DomainTransfer < Base
6
-
7
6
  # @return [Integer] The domain registration ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -30,7 +29,6 @@ module Dnsimple
30
29
 
31
30
  # @return [String] When the domain renewal was last updated in DNSimple.
32
31
  attr_accessor :updated_at
33
-
34
32
  end
35
33
  end
36
34
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class EmailForward < Base
6
-
7
6
  # @return [Integer] The email forward ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -24,7 +23,6 @@ module Dnsimple
24
23
 
25
24
  # @return [String] When the email forward was last updated in DNSimple.
26
25
  attr_accessor :updated_at
27
-
28
26
  end
29
27
  end
30
28
  end
@@ -3,9 +3,7 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class ExtendedAttribute < Base
6
-
7
6
  class Option < Base
8
-
9
7
  # The option name
10
8
  attr_accessor :title
11
9
 
@@ -14,7 +12,6 @@ module Dnsimple
14
12
 
15
13
  # A long description of the option
16
14
  attr_accessor :description
17
-
18
15
  end
19
16
 
20
17
  # The extended attribute name
@@ -39,7 +36,6 @@ module Dnsimple
39
36
  ExtendedAttribute::Option.new(opt)
40
37
  end
41
38
  end
42
-
43
39
  end
44
40
  end
45
41
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class OauthToken < Base
6
-
7
6
  # @return [String] The token you can use to authenticate.
8
7
  attr_accessor :access_token
9
8
 
@@ -15,7 +14,6 @@ module Dnsimple
15
14
 
16
15
  # @return [Integer] The account ID in DNSimple this token belongs to.
17
16
  attr_accessor :account_id
18
-
19
17
  end
20
18
  end
21
19
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class RegistrantChange < Base
6
-
7
6
  # @return [Integer] The registrant change ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -33,7 +32,6 @@ module Dnsimple
33
32
 
34
33
  # @return [String] When the registrant change was last updated in DNSimple.
35
34
  attr_accessor :updated_at
36
-
37
35
  end
38
36
  end
39
37
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class RegistrantChangeCheck < Base
6
-
7
6
  # @return [Integer] The associated contact ID.
8
7
  attr_accessor :contact_id
9
8
 
@@ -15,7 +14,6 @@ module Dnsimple
15
14
 
16
15
  # # @return [Boolean] True if the registrant change is a registry owner change.
17
16
  attr_accessor :registry_owner_change
18
-
19
17
  end
20
18
  end
21
19
  end
@@ -3,9 +3,7 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Service < Base
6
-
7
6
  class Setting < Base
8
-
9
7
  # @return [String] The setting name.
10
8
  attr_accessor :name
11
9
 
@@ -23,7 +21,6 @@ module Dnsimple
23
21
 
24
22
  # @return [Boolean] Whether the setting requires a password.
25
23
  attr_accessor :password
26
-
27
24
  end
28
25
 
29
26
  # @return [Integer] The service ID in DNSimple.
@@ -60,7 +57,6 @@ module Dnsimple
60
57
  Setting.new(setting)
61
58
  end
62
59
  end
63
-
64
60
  end
65
61
  end
66
62
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Template < Base
6
-
7
6
  # @return [Integer] The template ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -18,7 +17,6 @@ module Dnsimple
18
17
 
19
18
  # @return [String] The template description.
20
19
  attr_accessor :description
21
-
22
20
  end
23
21
  end
24
22
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class TemplateRecord < Base
6
-
7
6
  # @return [Integer] The template record ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -30,7 +29,6 @@ module Dnsimple
30
29
 
31
30
  # @return [String] When the template record was last updated in DNSimple.
32
31
  attr_accessor :updated_at
33
-
34
32
  end
35
33
  end
36
34
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Tld < Base
6
-
7
6
  # @return [String] The TLD in DNSimple.
8
7
  attr_accessor :tld
9
8
 
@@ -33,7 +32,6 @@ module Dnsimple
33
32
 
34
33
  # @return [String, nil] Type of data interface required for DNSSEC for this TLD.
35
34
  attr_accessor :dnssec_interface_type
36
-
37
35
  end
38
36
  end
39
37
  end
@@ -3,10 +3,8 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class TransferLock < Base
6
-
7
6
  # @return [Boolean] True if Transfer Lock is enabled on the domain, otherwise false
8
7
  attr_accessor :enabled
9
-
10
8
  end
11
9
  end
12
10
  end
@@ -3,13 +3,11 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class User < Base
6
-
7
6
  # @return [Integer] The user ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
10
9
  # @return [String] The user email.
11
10
  attr_accessor :email
12
-
13
11
  end
14
12
  end
15
13
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class VanityNameServer < Base
6
-
7
6
  # @return [Integer] The vanity name server ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -21,7 +20,6 @@ module Dnsimple
21
20
 
22
21
  # @return [String] When the vanity name server was last updated in DNSimple.
23
22
  attr_accessor :updated_at
24
-
25
23
  end
26
24
  end
27
25
  end
@@ -3,13 +3,11 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Webhook < Base
6
-
7
6
  # @return [Integer] The contact ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
10
9
  # @return [String] The callback URL.
11
10
  attr_accessor :url
12
-
13
11
  end
14
12
  end
15
13
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Whoami < Base
6
-
7
6
  # @return [Account] The account, if present.
8
7
  attr_reader :account
9
8
 
@@ -13,7 +12,7 @@ module Dnsimple
13
12
 
14
13
  # Converts account to a Struct::Account and sets it.
15
14
  #
16
- # @param [Hash, nil] account
15
+ # @param account [Hash, nil]
17
16
  # @return [void]
18
17
  def account=(account)
19
18
  @account = account ? Struct::Account.new(account) : account
@@ -21,12 +20,11 @@ module Dnsimple
21
20
 
22
21
  # Converts user to a Struct::User and sets it.
23
22
  #
24
- # @param [Hash, nil] user
23
+ # @param user [Hash, nil]
25
24
  # @return [void]
26
25
  def user=(user)
27
26
  @user = user ? Struct::User.new(user) : user
28
27
  end
29
-
30
28
  end
31
29
  end
32
30
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class WhoisPrivacy < Base
6
-
7
6
  # @return [Integer] The associated domain ID.
8
7
  attr_accessor :domain_id
9
8
 
@@ -18,7 +17,6 @@ module Dnsimple
18
17
 
19
18
  # @return [String] When the whois privacy was last updated in DNSimple.
20
19
  attr_accessor :updated_at
21
-
22
20
  end
23
21
  end
24
22
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class Zone < Base
6
-
7
6
  # @return [Integer] The zone ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -30,7 +29,6 @@ module Dnsimple
30
29
 
31
30
  # @return [String] When the zone was last updated in DNSimple.
32
31
  attr_accessor :updated_at
33
-
34
32
  end
35
33
  end
36
34
  end
@@ -3,11 +3,9 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class ZoneDistribution < Base
6
-
7
6
  # @return [Boolean] true if the zone is properly distributed across
8
7
  # all DNSimple name servers.
9
8
  attr_accessor :distributed
10
-
11
9
  end
12
10
  end
13
11
  end
@@ -3,10 +3,8 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class ZoneFile < Base
6
-
7
6
  # @return [String] The zone file contents.
8
7
  attr_accessor :zone
9
-
10
8
  end
11
9
  end
12
10
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class ZoneRecord < Base
6
-
7
6
  # @return [Integer] The record ID in DNSimple.
8
7
  attr_accessor :id
9
8
 
@@ -39,7 +38,6 @@ module Dnsimple
39
38
 
40
39
  # @return [String] When the record was last updated in DNSimple.
41
40
  attr_accessor :updated_at
42
-
43
41
  end
44
42
  end
45
43
  end
@@ -3,10 +3,8 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class ZoneRecordId < Base
6
-
7
6
  # @return [Integer] The record ID in DNSimple.
8
7
  attr_accessor :id
9
-
10
8
  end
11
9
  end
12
10
  end
@@ -3,7 +3,6 @@
3
3
  module Dnsimple
4
4
  module Struct
5
5
  class ZoneRecordsBatchChange < Base
6
-
7
6
  # @return [Array<ZoneRecord>]
8
7
  attr_accessor :creates
9
8
 
@@ -12,7 +11,6 @@ module Dnsimple
12
11
 
13
12
  # @return [Array<ZoneRecordId>]
14
13
  attr_accessor :deletes
15
-
16
14
  end
17
15
  end
18
16
  end