gandi_v5 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +70 -5
- data/LICENSE.md +2 -6
- data/README.md +65 -17
- data/lib/gandi_v5.rb +139 -70
- data/lib/gandi_v5/billing/info/prepaid.rb +1 -0
- data/lib/gandi_v5/data.rb +1 -0
- data/lib/gandi_v5/data/converter.rb +3 -2
- data/lib/gandi_v5/data/converter/array_of.rb +3 -2
- data/lib/gandi_v5/data/converter/integer.rb +27 -0
- data/lib/gandi_v5/data/converter/symbol.rb +3 -2
- data/lib/gandi_v5/data/converter/time.rb +3 -2
- data/lib/gandi_v5/domain.rb +16 -17
- data/lib/gandi_v5/domain/availability/product/period.rb +1 -1
- data/lib/gandi_v5/domain/contact.rb +5 -5
- data/lib/gandi_v5/domain/tld.rb +2 -2
- data/lib/gandi_v5/domain/transfer_in.rb +170 -0
- data/lib/gandi_v5/domain/transfer_in/availability.rb +51 -0
- data/lib/gandi_v5/email.rb +1 -0
- data/lib/gandi_v5/email/forward.rb +2 -8
- data/lib/gandi_v5/email/mailbox.rb +3 -9
- data/lib/gandi_v5/email/slot.rb +11 -3
- data/lib/gandi_v5/error/gandi_error.rb +1 -0
- data/lib/gandi_v5/live_dns.rb +2 -12
- data/lib/gandi_v5/live_dns/domain.rb +340 -29
- data/lib/gandi_v5/live_dns/domain/dnssec_key.rb +120 -0
- data/lib/gandi_v5/live_dns/domain/record.rb +81 -0
- data/lib/gandi_v5/live_dns/domain/snapshot.rb +111 -0
- data/lib/gandi_v5/live_dns/domain/tsig_key.rb +74 -0
- data/lib/gandi_v5/sharing_space.rb +27 -0
- data/lib/gandi_v5/simple_hosting.rb +13 -0
- data/lib/gandi_v5/simple_hosting/instance.rb +245 -0
- data/lib/gandi_v5/simple_hosting/instance/application.rb +45 -0
- data/lib/gandi_v5/simple_hosting/instance/database.rb +20 -0
- data/lib/gandi_v5/simple_hosting/instance/language.rb +22 -0
- data/lib/gandi_v5/simple_hosting/instance/upgrade.rb +22 -0
- data/lib/gandi_v5/simple_hosting/instance/virtual_host.rb +187 -0
- data/lib/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone.rb +75 -0
- data/lib/gandi_v5/version.rb +1 -1
- data/spec/.rubocop.yml +50 -3
- data/spec/features/list_domain_renewals_spec.rb +16 -0
- data/spec/features/list_email_addresses_spec.rb +39 -0
- data/spec/fixtures/bodies/GandiV5_Domain/fetch.yml +8 -0
- data/spec/fixtures/bodies/GandiV5_Domain_TransferIn/fetch.yml +21 -0
- data/spec/fixtures/bodies/GandiV5_Domain_TransferIn_Availability/fetch.yml +10 -0
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/fetch.yml +1 -2
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/list_tsig.yml +3 -0
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/nameservers.yml +3 -0
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain_DnssecKey/fetch.yml +12 -0
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain_DnssecKey/list.yml +9 -0
- data/spec/fixtures/bodies/{GandiV5_LiveDNS_Zone_Snapshot → GandiV5_LiveDNS_Domain_Snapshot}/fetch.yml +4 -3
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain_Snapshot/list.yml +5 -0
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain_TsigKey/fetch.yml +9 -0
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain_TsigKey/list.yml +4 -0
- data/spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/fetch.yml +80 -0
- data/spec/fixtures/bodies/GandiV5_SimpleHosting_Instance/list.yml +38 -0
- data/spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/fetch.yml +26 -0
- data/spec/fixtures/bodies/GandiV5_SimpleHosting_Instance_VirtualHost/list.yml +18 -0
- data/spec/fixtures/vcr/Examples/List_domain_renewals.yml +54 -0
- data/spec/fixtures/vcr/Examples/List_email_addresses.yml +103 -0
- data/spec/units/gandi_v5/data/converter/integer_spec.rb +16 -0
- data/spec/units/gandi_v5/domain/transfer_in/availability_spec.rb +49 -0
- data/spec/units/gandi_v5/domain/transfer_in_spec.rb +143 -0
- data/spec/units/gandi_v5/domain_spec.rb +13 -39
- data/spec/units/gandi_v5/email/forward_spec.rb +5 -34
- data/spec/units/gandi_v5/email/mailbox_spec.rb +4 -34
- data/spec/units/gandi_v5/email/slot_spec.rb +10 -2
- data/spec/units/gandi_v5/live_dns/domain/dnssec_key_spec.rb +128 -0
- data/spec/units/gandi_v5/live_dns/{record_set_spec.rb → domain/record_spec.rb} +1 -1
- data/spec/units/gandi_v5/live_dns/domain/snapshot_spec.rb +101 -0
- data/spec/units/gandi_v5/live_dns/domain/tsig_key_spec.rb +78 -0
- data/spec/units/gandi_v5/live_dns/domain_spec.rb +297 -118
- data/spec/units/gandi_v5/live_dns_spec.rb +0 -12
- data/spec/units/gandi_v5/sharing_space_spec.rb +4 -0
- data/spec/units/gandi_v5/simple_hosting/instance/application_spec.rb +37 -0
- data/spec/units/gandi_v5/simple_hosting/instance/database_spec.rb +4 -0
- data/spec/units/gandi_v5/simple_hosting/instance/language_spec.rb +4 -0
- data/spec/units/gandi_v5/simple_hosting/instance/upgrade_spec.rb +4 -0
- data/spec/units/gandi_v5/simple_hosting/instance/virtual_host/linked_dns_zone_spec.rb +50 -0
- data/spec/units/gandi_v5/simple_hosting/instance/virtual_host_spec.rb +199 -0
- data/spec/units/gandi_v5/simple_hosting/instance_spec.rb +182 -0
- data/spec/units/gandi_v5/simple_hosting_spec.rb +9 -0
- data/spec/units/gandi_v5_spec.rb +111 -14
- metadata +171 -48
- data/.gitignore +0 -26
- data/.rspec +0 -3
- data/.rubocop.yml +0 -30
- data/.travis.yml +0 -37
- data/FUNDING.yml +0 -10
- data/Gemfile +0 -6
- data/Guardfile +0 -39
- data/Rakefile +0 -3
- data/bin/console +0 -13
- data/gandi_v5.gemspec +0 -42
- data/lib/gandi_v5/domain/sharing_space.rb +0 -21
- data/lib/gandi_v5/live_dns/has_zone_records.rb +0 -153
- data/lib/gandi_v5/live_dns/record_set.rb +0 -79
- data/lib/gandi_v5/live_dns/zone.rb +0 -160
- data/lib/gandi_v5/live_dns/zone/snapshot.rb +0 -81
- data/spec/features/domain_spec.rb +0 -45
- data/spec/features/livedns_domain_spec.rb +0 -8
- data/spec/features/livedns_zone_spec.rb +0 -45
- data/spec/features/mailbox_spec.rb +0 -18
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone/fetch.yml +0 -11
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone/list.yml +0 -11
- data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/list.yml +0 -3
- data/spec/fixtures/vcr/Domain_features/List_domains.yml +0 -55
- data/spec/fixtures/vcr/Domain_features/Renew_domain.yml +0 -133
- data/spec/fixtures/vcr/LiveDNS_Domain_features/List_domains.yml +0 -32
- data/spec/fixtures/vcr/LiveDNS_Zone_features/List_zones.yml +0 -42
- data/spec/fixtures/vcr/LiveDNS_Zone_features/Make_and_save_snapshot.yml +0 -72
- data/spec/fixtures/vcr/LiveDNS_Zone_features/Save_zone_to_file.yml +0 -28
- data/spec/fixtures/vcr/Mailbox_features/List_mailboxes.yml +0 -39
- data/spec/units/gandi_v5/domain/sharing_space_spec.rb +0 -4
- data/spec/units/gandi_v5/live_dns/zone/snapshot_spec.rb +0 -66
- data/spec/units/gandi_v5/live_dns/zone_spec.rb +0 -347
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe 'Examples', :vcr do
|
4
|
+
it 'List domain renewals' do
|
5
|
+
expect(STDOUT).to receive(:puts).with("2021-03-12\t£8.87\texample.com")
|
6
|
+
|
7
|
+
# For each domain (sorted by assending renewal date) print <date>\t<cost>\t<fqdn>
|
8
|
+
GandiV5::Domain.list.each do |domain|
|
9
|
+
puts [
|
10
|
+
domain.dates.registry_ends_at.to_date,
|
11
|
+
"£#{domain.renewal_price.price_after_taxes}",
|
12
|
+
domain.fqdn
|
13
|
+
].join("\t")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe 'Examples', :vcr do
|
4
|
+
it 'List email addresses' do
|
5
|
+
expect(STDOUT).to receive(:puts).with("alias@example.com\talias for user@example.com").ordered
|
6
|
+
expect(STDOUT).to receive(:puts).with("forward@example.com\tforwards to user@example.com").ordered
|
7
|
+
expect(STDOUT).to receive(:puts).with("user@example.com\tstandard mailbox (0% of 3GB used)").ordered
|
8
|
+
|
9
|
+
# For each domain:
|
10
|
+
# 1. Create an empty hash to store address => description
|
11
|
+
# 2. Get the mailboxes and add them to the hash
|
12
|
+
# 3. Get the forwards and add them to the hash
|
13
|
+
# 4. Sort the hash by email address
|
14
|
+
# 5. Print the list
|
15
|
+
GandiV5::Domain.list.each do |domain|
|
16
|
+
emails = {}
|
17
|
+
|
18
|
+
mailboxes = GandiV5::Email::Mailbox.list(domain.fqdn)
|
19
|
+
mailboxes.each do |mailbox|
|
20
|
+
mailbox.refresh
|
21
|
+
emails["#{mailbox.login}@#{domain.fqdn}"] = "#{mailbox.type} mailbox " \
|
22
|
+
"(#{mailbox.quota_usage.to_i}% " \
|
23
|
+
"of #{(mailbox.quota / 1024**3).round}GB used)"
|
24
|
+
mailbox.aliases.each do |alias_name|
|
25
|
+
emails["#{alias_name}@#{domain.fqdn}"] = "alias for #{mailbox.login}@#{domain.fqdn}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
forwards = GandiV5::Email::Forward.list(domain.fqdn)
|
30
|
+
forwards.each do |forward|
|
31
|
+
emails["#{forward.source}@#{domain.fqdn}"] = "forwards to #{forward.destinations.join(', ')}"
|
32
|
+
end
|
33
|
+
|
34
|
+
emails.sort.each do |address, text|
|
35
|
+
puts "#{address}\t#{text}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
created_at: '2011-02-21T10:39:00Z'
|
3
|
+
owner_contact: owner contact
|
4
|
+
params:
|
5
|
+
domain: example.com
|
6
|
+
duration: 1
|
7
|
+
reseller: reseller-uuid
|
8
|
+
tld: com
|
9
|
+
version: 0
|
10
|
+
step: step text
|
11
|
+
step_nb: 2
|
12
|
+
updated_at: '2011-02-22T10:39:00Z'
|
13
|
+
errortype: error-type
|
14
|
+
errortype_label: error label
|
15
|
+
foa:
|
16
|
+
- answer: ans
|
17
|
+
email: user@example.com
|
18
|
+
inner_step: inner-step
|
19
|
+
regac_at: '2011-02-23T10:39:00Z'
|
20
|
+
start_at: '2011-02-24T10:39:00Z'
|
21
|
+
transfer_procedure: transfer-procedure
|
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
access_information:
|
3
|
+
admin_url: admin.example.com/
|
4
|
+
database:
|
5
|
+
admins:
|
6
|
+
- type: phpMyAdmin
|
7
|
+
url: admin.example.com/phpmyadmin
|
8
|
+
username: database admin username
|
9
|
+
host: database.example.com
|
10
|
+
port: 1234
|
11
|
+
socket: /socket/for/database
|
12
|
+
deploy:
|
13
|
+
- cli:
|
14
|
+
init: cli init string
|
15
|
+
git:
|
16
|
+
deploy: git deploy string
|
17
|
+
remote: git remote string
|
18
|
+
url: git url string
|
19
|
+
sftp:
|
20
|
+
directory: sftp directory
|
21
|
+
document_root: sftp document root
|
22
|
+
server: sftp server
|
23
|
+
url: sftp url
|
24
|
+
vhost:
|
25
|
+
fqdn: example.com
|
26
|
+
href: link/to/href/details/virtualhost-uuid
|
27
|
+
user: A user
|
28
|
+
available_upgrade: false
|
29
|
+
console:
|
30
|
+
enabled: true
|
31
|
+
url: console.example.com/
|
32
|
+
created_at: 2020-01-02T12:34:56+00
|
33
|
+
database:
|
34
|
+
name: database name
|
35
|
+
status: database status
|
36
|
+
version: database version
|
37
|
+
datacenter:
|
38
|
+
code: FR-SD5
|
39
|
+
name: SD5
|
40
|
+
region: FR
|
41
|
+
expire_at: 2021-01-02T12:34:56+00
|
42
|
+
id: instance-uuid
|
43
|
+
is_trial: false
|
44
|
+
language:
|
45
|
+
name: ruby
|
46
|
+
single_application: true
|
47
|
+
status: great
|
48
|
+
version: "2.7"
|
49
|
+
name: instance name
|
50
|
+
sharing_space:
|
51
|
+
id: sharing-space-uuid
|
52
|
+
name: sharing space name
|
53
|
+
size: s+
|
54
|
+
snapshot_enabled: true
|
55
|
+
status: active
|
56
|
+
storage:
|
57
|
+
additional:
|
58
|
+
unit: GB
|
59
|
+
value: 10
|
60
|
+
base:
|
61
|
+
unit: GB
|
62
|
+
value: 20
|
63
|
+
total:
|
64
|
+
unit: GB
|
65
|
+
value: 30
|
66
|
+
vhosts:
|
67
|
+
- fqdn: vhost1.example.com
|
68
|
+
href: link/to.vhost/details
|
69
|
+
autorenew:
|
70
|
+
duration: 1
|
71
|
+
duration_type: m
|
72
|
+
compatible_applications:
|
73
|
+
- name: compatable name
|
74
|
+
parameters: {}
|
75
|
+
password_updated_at: 2020-06-02T12:34:56+00
|
76
|
+
upgrade_to:
|
77
|
+
- name: upgrade to name
|
78
|
+
status: upgrade to status
|
79
|
+
type: database
|
80
|
+
version: upgrade to version
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
- available_upgrade: true
|
3
|
+
created_at: 2020-01-02T12:34:56+00
|
4
|
+
database:
|
5
|
+
name: database name
|
6
|
+
status: database status
|
7
|
+
version: database version
|
8
|
+
datacenter:
|
9
|
+
code: FR-SD5
|
10
|
+
name: SD5
|
11
|
+
region: FR
|
12
|
+
expire_at: 2021-01-02T12:34:56+00
|
13
|
+
id: instance-uuid
|
14
|
+
language:
|
15
|
+
name: ruby
|
16
|
+
single_application: true
|
17
|
+
status: great
|
18
|
+
version: "2.7"
|
19
|
+
name: instance name
|
20
|
+
sharing_space:
|
21
|
+
id: sharing-space-uuid
|
22
|
+
name: sharing space name
|
23
|
+
size: s+
|
24
|
+
snapshot_enabled: true
|
25
|
+
status: active
|
26
|
+
storage:
|
27
|
+
additional:
|
28
|
+
unit: GB
|
29
|
+
value: 10
|
30
|
+
base:
|
31
|
+
unit: GB
|
32
|
+
value: 20
|
33
|
+
total:
|
34
|
+
unit: GB
|
35
|
+
value: 30
|
36
|
+
autorenew:
|
37
|
+
duration: 1
|
38
|
+
duration_type: m
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
created_at: 2020-01-02T12:34:56+00
|
3
|
+
fqdn: vh.example.com
|
4
|
+
is_a_test_vhost: false
|
5
|
+
linked_dns_zone:
|
6
|
+
allow_alteration: true
|
7
|
+
cname: cn
|
8
|
+
domain: example.com
|
9
|
+
ipv4: 1.2.3.4
|
10
|
+
ipv6: 1:2::3:4
|
11
|
+
is_alterable: true
|
12
|
+
is_root: true
|
13
|
+
key: www
|
14
|
+
txt: abcd1234
|
15
|
+
last_checked_status: unknown
|
16
|
+
last_checked_at: 2020-02-03T23:45:56+00
|
17
|
+
status: running
|
18
|
+
application:
|
19
|
+
name: app-name
|
20
|
+
status: being_created
|
21
|
+
parameters: {}
|
22
|
+
certificates:
|
23
|
+
- href: example.com
|
24
|
+
id: cert-id
|
25
|
+
pending: true
|
26
|
+
https_strategy: redirect_HTTP_to_HTTPS
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
- created_at: 2020-01-02T12:34:56+00
|
3
|
+
fqdn: vh.example.com
|
4
|
+
is_a_test_vhost: false
|
5
|
+
linked_dns_zone:
|
6
|
+
allow_alteration: true
|
7
|
+
last_checked_status: unknown
|
8
|
+
last_checked_at: 2020-02-03T23:45:56+00
|
9
|
+
status: running
|
10
|
+
application:
|
11
|
+
name: app-name
|
12
|
+
status: being_created
|
13
|
+
parameters: {}
|
14
|
+
certificates:
|
15
|
+
- href: example.com
|
16
|
+
id: cert-id
|
17
|
+
pending: true
|
18
|
+
https_strategy: redirect_HTTP_to_HTTPS
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.gandi.net/v5/domain/domains?page=1&per_page=100
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Apikey abdce12345
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Content-Length:
|
22
|
+
- '461'
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: '[{"status":[],"dates":{"created_at":"2011-02-21T10:39:00Z","registry_created_at":"2003-03-12T12:02:11Z","registry_ends_at":"2021-03-12T12:02:11Z","updated_at":"2020-03-25T17:06:34Z"},"tags":[],"fqdn":"example.com","id":"domain-uuid","autorenew":false,"tld":"com","owner":"Mr. Example","orga_owner":"Example Org","domain_owner":"Owner","nameserver":{"current":"livedns"},"href":"https://api.gandi.net/v5/domain/domains/example.com","fqdn_unicode":"example.com"}]'
|
26
|
+
recorded_at: Mon, 17 Aug 2020 16:02:51 GMT
|
27
|
+
|
28
|
+
- request:
|
29
|
+
method: get
|
30
|
+
uri: https://api.gandi.net/v5/domain/check?currency=GBP&name=example.com&period=1&processes%5B%5D=renew
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ''
|
34
|
+
headers:
|
35
|
+
Accept:
|
36
|
+
- application/json
|
37
|
+
Authorization:
|
38
|
+
- Apikey abcde12345
|
39
|
+
response:
|
40
|
+
status:
|
41
|
+
code: 200
|
42
|
+
message: OK
|
43
|
+
headers:
|
44
|
+
Content-Type:
|
45
|
+
- application/json; charset=utf-8
|
46
|
+
Content-Length:
|
47
|
+
- '353'
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: '{"currency":"GBP","products":[{"name":"example.com","taxes":[{"rate":20,"name":"vat","type":"service"}],"process":"renew","prices":[{"min_duration":1,"discount":false,"price_after_taxes":8.87,"max_duration":9,"price_before_taxes":7.39,"duration_unit":"y"}],"status":"unavailable"}],"grid":"A","taxes":[{"rate":20,"name":"vat","type":"service"}]}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 17 Aug 2020 16:53:54 GMT
|
53
|
+
|
54
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.gandi.net/v5/domain/domains?page=1&per_page=100
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Apikey abdce12345
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Content-Length:
|
22
|
+
- '461'
|
23
|
+
body:
|
24
|
+
encoding: UTF-8
|
25
|
+
string: '[{"status":[],"dates":{"created_at":"2011-02-21T10:39:00Z","registry_created_at":"2003-03-12T12:02:11Z","registry_ends_at":"2021-03-12T12:02:11Z","updated_at":"2020-03-25T17:06:34Z"},"tags":[],"fqdn":"example.com","id":"domain-uuid","autorenew":false,"tld":"com","owner":"Mr. Example","orga_owner":"Example Org","domain_owner":"Owner","nameserver":{"current":"livedns"},"href":"https://api.gandi.net/v5/domain/domains/example.com","fqdn_unicode":"example.com"}]'
|
26
|
+
recorded_at: Mon, 17 Aug 2020 16:02:51 GMT
|
27
|
+
|
28
|
+
- request:
|
29
|
+
method: get
|
30
|
+
uri: https://api.gandi.net/v5/email/mailboxes/example.com?page=1&per_page=100
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ''
|
34
|
+
headers:
|
35
|
+
Accept:
|
36
|
+
- application/json
|
37
|
+
Authorization:
|
38
|
+
- Apikey abdce12345
|
39
|
+
response:
|
40
|
+
status:
|
41
|
+
code: 200
|
42
|
+
message: OK
|
43
|
+
headers:
|
44
|
+
Content-Type:
|
45
|
+
- application/json; charset=utf-8
|
46
|
+
Content-Length:
|
47
|
+
- '284'
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: '[{"responder":{"message":"","enabled":false},"mailbox_type":"standard","login":"user","quota_used":3597,"domain":"example.com","aliases":["alias"],"address":"user@example.com","href":"https://api.gandi.net/v5/email/mailboxes/example.com/mailbox-uuid","id":"mailbox-uuid"}]'
|
51
|
+
recorded_at: Mon, 17 Aug 2020 16:02:51 GMT
|
52
|
+
|
53
|
+
- request:
|
54
|
+
method: get
|
55
|
+
uri: https://api.gandi.net/v5/email/mailboxes/example.com/mailbox-uuid
|
56
|
+
body:
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: ''
|
59
|
+
headers:
|
60
|
+
Accept:
|
61
|
+
- application/json
|
62
|
+
Authorization:
|
63
|
+
- Apikey abdce12345
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Content-Type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
Content-Length:
|
72
|
+
- '270'
|
73
|
+
body:
|
74
|
+
encoding: UTF-8
|
75
|
+
string: '{"responder":{"message":"","enabled":false},"mailbox_type":"standard","login":"user","quota_used":3597,"domain":"example.com","aliases":["alias"],"address":"user@example.com","href":"https://api.gandi.net/v5/email/mailboxes/example.com/mailbox-uuid","id":"mailbox-uuid"}'
|
76
|
+
recorded_at: Mon, 17 Aug 2020 16:17:50 GMT
|
77
|
+
|
78
|
+
- request:
|
79
|
+
method: get
|
80
|
+
uri: https://api.gandi.net/v5/email/forwards/example.com?page=1&per_page=100
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ''
|
84
|
+
headers:
|
85
|
+
Accept:
|
86
|
+
- application/json
|
87
|
+
Authorization:
|
88
|
+
- Apikey abdce12345
|
89
|
+
response:
|
90
|
+
status:
|
91
|
+
code: 200
|
92
|
+
message: OK
|
93
|
+
headers:
|
94
|
+
Content-Type:
|
95
|
+
- application/json; charset=utf-8
|
96
|
+
Content-Length:
|
97
|
+
- '127'
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: '[{"destinations":["user@example.com"],"source":"forward","href":"https://api.gandi.net/v5/email/forwards/example.com/forward"}]'
|
101
|
+
recorded_at: Mon, 17 Aug 2020 16:02:52 GMT
|
102
|
+
|
103
|
+
recorded_with: VCR 4.0.0
|