godaddy23 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/godaddy23.rb +20 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fba08155664b36e309d922e162c92f16431c5a12132ecff5e746b1dbf0a6ae0b
|
|
4
|
+
data.tar.gz: 6c5102a68816d1bc31cb5a78aa569aa836ab9dc0778d2bbcda8a52682777daa2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76d8011e3135644b5745b0c016770f91e8c0c8f4f41926a66fd46a950e861e976d141fdac396de3ded5f0aca1accecc06505d463857ed2655c52bf0afaf76e3e
|
|
7
|
+
data.tar.gz: 45fa4264607265b379eb059d940e48393ea7bf1537bdc9dc4f49ac26b8a5fd8f4456a33c45c425cba1e9816ea95b210d55a1b66a547faefce99f1f5cf8138541
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/godaddy23.rb
CHANGED
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
# n/a # DELETE # /v1/domains/{domain}/privacy # Submit a privacy cancellation request for the given domain
|
|
28
28
|
# n/a # POST # /v1/domains/{domain}/privacy/purchase # Purchase privacy for a specified domain
|
|
29
29
|
# n/a # PATCH # /v1/domains/{domain}/records # Add the specified DNS Records to the specified Domain
|
|
30
|
-
#
|
|
30
|
+
# replace_records # PUT # /v1/domains/{domain}/records # Replace all DNS Records for the specified Domain
|
|
31
31
|
# list_records # GET # /v1/domains/{domain}/records/{type}/{name} # Retrieve DNS Records for the specified Domain, optionally with the specified Type and/or Name
|
|
32
32
|
# replace_records # PUT # /v1/domains/{domain}/records/{type}/{name} # Replace all DNS Records for the specified Domain with the specified Type and Name
|
|
33
33
|
# n/a # DELETE # /v1/domains/{domain}/records/{type}/{name} # Delete all DNS Records for the specified Domain with the specified Type and Name
|
|
34
|
-
#
|
|
34
|
+
# replace_records # PUT # /v1/domains/{domain}/records/{type} # Replace all DNS Records for the specified Domain with the specified Type
|
|
35
35
|
# n/a # POST # /v1/domains/{domain}/renew # Renew the specified Domain
|
|
36
36
|
# n/a # POST # /v1/domains/{domain}/transfer # Purchase and start or restart transfer process
|
|
37
37
|
# n/a # POST # /v1/domains/{domain}/verifyRegistrantEmail # Re-send Contact E-mail Verification for specified Domain
|
|
@@ -90,6 +90,24 @@ module GoDaddy23
|
|
|
90
90
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
# Replace all DNS Records for the specified Domain with the specified Type and Name
|
|
94
|
+
#
|
|
95
|
+
# type: e.g. A
|
|
96
|
+
# name: e.g. www
|
|
97
|
+
#
|
|
98
|
+
# warning: be careful if you don't supply a type and name as you may
|
|
99
|
+
# accidentally remove existing records if they are not being
|
|
100
|
+
# updated using the *records* keyword parameter
|
|
101
|
+
#
|
|
102
|
+
# curl -X 'PUT' \
|
|
103
|
+
# 'https://api.godaddy.com/v1/domains/[DOMAIN]/records/[TYPE]/[NAME]' \
|
|
104
|
+
# -H 'accept: application/json' \
|
|
105
|
+
# -H 'Content-Type: application/json' \
|
|
106
|
+
# -H 'Authorization: sso-key [APIKEY]:[SECRET]' \
|
|
107
|
+
# -d '[
|
|
108
|
+
# {"data":"[NEW_IP]","ttl":600}
|
|
109
|
+
# ]'
|
|
110
|
+
#
|
|
93
111
|
def replace_records(domain, type: nil, name: nil, records: [])
|
|
94
112
|
|
|
95
113
|
uri = domain
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: godaddy23
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
|
36
36
|
Yg9iNn+HpSpcgFFNYkD9AkRV4P3F0m3lGd5T/u5I61G8igHUOocGsbItrIsMUv5k
|
|
37
37
|
tlXmn35NPgEcJF/WY5HMzywKhA3Vj/dVyxo=
|
|
38
38
|
-----END CERTIFICATE-----
|
|
39
|
-
date: 2023-03-
|
|
39
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
|
40
40
|
dependencies: []
|
|
41
41
|
description:
|
|
42
42
|
email: digital.robertson@gmail.com
|
metadata.gz.sig
CHANGED
|
Binary file
|