droplet_kit 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +4 -1
  3. data/lib/droplet_kit/mappings/cdn_mapping.rb +6 -0
  4. data/lib/droplet_kit/mappings/load_balancer_mapping.rb +1 -0
  5. data/lib/droplet_kit/models/cdn.rb +2 -0
  6. data/lib/droplet_kit/models/load_balancer.rb +1 -0
  7. data/lib/droplet_kit/resources/cdn_resource.rb +6 -0
  8. data/lib/droplet_kit/version.rb +1 -1
  9. metadata +4 -289
  10. data/.gitignore +0 -23
  11. data/.rspec +0 -2
  12. data/.travis.yml +0 -28
  13. data/CHANGELOG.md +0 -106
  14. data/Gemfile +0 -15
  15. data/Rakefile +0 -3
  16. data/droplet_kit.gemspec +0 -37
  17. data/spec/fixtures/account/info.json +0 -8
  18. data/spec/fixtures/actions/all.json +0 -24
  19. data/spec/fixtures/actions/find.json +0 -19
  20. data/spec/fixtures/cdns/all.json +0 -16
  21. data/spec/fixtures/cdns/create.json +0 -9
  22. data/spec/fixtures/cdns/find.json +0 -9
  23. data/spec/fixtures/cdns/update_ttl.json +0 -9
  24. data/spec/fixtures/certificates/all.json +0 -19
  25. data/spec/fixtures/certificates/find.json +0 -12
  26. data/spec/fixtures/certificates/lets_encrypt.json +0 -12
  27. data/spec/fixtures/domain_records/all.json +0 -57
  28. data/spec/fixtures/domain_records/create.json +0 -12
  29. data/spec/fixtures/domain_records/find.json +0 -12
  30. data/spec/fixtures/domain_records/update.json +0 -12
  31. data/spec/fixtures/domains/all.json +0 -12
  32. data/spec/fixtures/domains/create.json +0 -7
  33. data/spec/fixtures/domains/find.json +0 -7
  34. data/spec/fixtures/droplet_actions/change_kernel.json +0 -27
  35. data/spec/fixtures/droplet_actions/disable_backups.json +0 -27
  36. data/spec/fixtures/droplet_actions/enable_backups.json +0 -27
  37. data/spec/fixtures/droplet_actions/enable_ipv6.json +0 -27
  38. data/spec/fixtures/droplet_actions/enable_private_networking.json +0 -27
  39. data/spec/fixtures/droplet_actions/find.json +0 -19
  40. data/spec/fixtures/droplet_actions/password_reset.json +0 -27
  41. data/spec/fixtures/droplet_actions/power_cycle.json +0 -27
  42. data/spec/fixtures/droplet_actions/power_off.json +0 -27
  43. data/spec/fixtures/droplet_actions/power_on.json +0 -27
  44. data/spec/fixtures/droplet_actions/reboot.json +0 -27
  45. data/spec/fixtures/droplet_actions/rebuild.json +0 -27
  46. data/spec/fixtures/droplet_actions/rename.json +0 -27
  47. data/spec/fixtures/droplet_actions/resize.json +0 -27
  48. data/spec/fixtures/droplet_actions/restore.json +0 -27
  49. data/spec/fixtures/droplet_actions/shutdown.json +0 -27
  50. data/spec/fixtures/droplet_actions/snapshot.json +0 -27
  51. data/spec/fixtures/droplet_actions/upgrade.json +0 -27
  52. data/spec/fixtures/droplet_upgrades/all.json +0 -7
  53. data/spec/fixtures/droplets/all.json +0 -89
  54. data/spec/fixtures/droplets/all_empty.json +0 -7
  55. data/spec/fixtures/droplets/create.json +0 -84
  56. data/spec/fixtures/droplets/create_multiple.json +0 -168
  57. data/spec/fixtures/droplets/find.json +0 -84
  58. data/spec/fixtures/droplets/list_actions.json +0 -24
  59. data/spec/fixtures/droplets/list_backups.json +0 -18
  60. data/spec/fixtures/droplets/list_kernels.json +0 -17
  61. data/spec/fixtures/droplets/list_snapshots.json +0 -18
  62. data/spec/fixtures/firewalls/all.json +0 -67
  63. data/spec/fixtures/firewalls/find.json +0 -61
  64. data/spec/fixtures/floating_ip_actions/all.json +0 -41
  65. data/spec/fixtures/floating_ip_actions/assign.json +0 -27
  66. data/spec/fixtures/floating_ip_actions/find.json +0 -19
  67. data/spec/fixtures/floating_ip_actions/unassign.json +0 -27
  68. data/spec/fixtures/floating_ips/all.json +0 -186
  69. data/spec/fixtures/floating_ips/all_empty.json +0 -7
  70. data/spec/fixtures/floating_ips/create.json +0 -29
  71. data/spec/fixtures/floating_ips/create_with_droplet.json +0 -44
  72. data/spec/fixtures/floating_ips/find.json +0 -28
  73. data/spec/fixtures/image_actions/all.json +0 -36
  74. data/spec/fixtures/image_actions/convert.json +0 -27
  75. data/spec/fixtures/image_actions/find.json +0 -19
  76. data/spec/fixtures/image_actions/transfer.json +0 -27
  77. data/spec/fixtures/images/all.json +0 -31
  78. data/spec/fixtures/images/find.json +0 -16
  79. data/spec/fixtures/images/private.json +0 -31
  80. data/spec/fixtures/images/type.json +0 -31
  81. data/spec/fixtures/kubernetes/all.json +0 -70
  82. data/spec/fixtures/kubernetes/all_empty.json +0 -7
  83. data/spec/fixtures/kubernetes/cluster_node_pool.json +0 -24
  84. data/spec/fixtures/kubernetes/cluster_node_pool_create.json +0 -40
  85. data/spec/fixtures/kubernetes/cluster_node_pool_update.json +0 -31
  86. data/spec/fixtures/kubernetes/cluster_node_pools.json +0 -33
  87. data/spec/fixtures/kubernetes/clusters/create.json +0 -65
  88. data/spec/fixtures/kubernetes/clusters/find.json +0 -65
  89. data/spec/fixtures/kubernetes/clusters/kubeconfig.txt +0 -20
  90. data/spec/fixtures/kubernetes/clusters/update.json +0 -63
  91. data/spec/fixtures/kubernetes/options.json +0 -150
  92. data/spec/fixtures/load_balancers/all.json +0 -129
  93. data/spec/fixtures/load_balancers/find.json +0 -59
  94. data/spec/fixtures/projects/all.json +0 -37
  95. data/spec/fixtures/projects/all_empty.json +0 -12
  96. data/spec/fixtures/projects/find.json +0 -14
  97. data/spec/fixtures/projects/resources.json +0 -84
  98. data/spec/fixtures/regions/all.json +0 -47
  99. data/spec/fixtures/sizes/all.json +0 -37
  100. data/spec/fixtures/snapshots/all.json +0 -32
  101. data/spec/fixtures/snapshots/find.json +0 -14
  102. data/spec/fixtures/snapshots/resource_type.json +0 -20
  103. data/spec/fixtures/ssh_keys/all.json +0 -13
  104. data/spec/fixtures/ssh_keys/create.json +0 -8
  105. data/spec/fixtures/ssh_keys/find.json +0 -8
  106. data/spec/fixtures/ssh_keys/update.json +0 -8
  107. data/spec/fixtures/tags/all.json +0 -34
  108. data/spec/fixtures/tags/all_empty.json +0 -7
  109. data/spec/fixtures/tags/create.json +0 -15
  110. data/spec/fixtures/tags/find.json +0 -99
  111. data/spec/fixtures/volume_actions/all.json +0 -41
  112. data/spec/fixtures/volume_actions/attach.json +0 -34
  113. data/spec/fixtures/volume_actions/detach.json +0 -34
  114. data/spec/fixtures/volume_actions/find.json +0 -34
  115. data/spec/fixtures/volume_actions/resize.json +0 -34
  116. data/spec/fixtures/volumes/all.json +0 -41
  117. data/spec/fixtures/volumes/create.json +0 -34
  118. data/spec/fixtures/volumes/create_snapshot.json +0 -14
  119. data/spec/fixtures/volumes/find.json +0 -34
  120. data/spec/lib/droplet_kit/client_spec.rb +0 -102
  121. data/spec/lib/droplet_kit/models/base_model_spec.rb +0 -21
  122. data/spec/lib/droplet_kit/models/droplet_spec.rb +0 -32
  123. data/spec/lib/droplet_kit/paginated_resource_spec.rb +0 -85
  124. data/spec/lib/droplet_kit/resources/account_resource_spec.rb +0 -30
  125. data/spec/lib/droplet_kit/resources/action_resource_spec.rb +0 -83
  126. data/spec/lib/droplet_kit/resources/cdn_resource_spec.rb +0 -124
  127. data/spec/lib/droplet_kit/resources/certificate_resource_spec.rb +0 -119
  128. data/spec/lib/droplet_kit/resources/domain_record_resource_spec.rb +0 -99
  129. data/spec/lib/droplet_kit/resources/domain_resource_spec.rb +0 -65
  130. data/spec/lib/droplet_kit/resources/droplet_action_resource_spec.rb +0 -223
  131. data/spec/lib/droplet_kit/resources/droplet_resource_spec.rb +0 -340
  132. data/spec/lib/droplet_kit/resources/droplet_upgrade_resource_spec.rb +0 -22
  133. data/spec/lib/droplet_kit/resources/firewall_resource_spec.rb +0 -265
  134. data/spec/lib/droplet_kit/resources/floating_ip_action_resource_spec.rb +0 -137
  135. data/spec/lib/droplet_kit/resources/floating_ip_resource_spec.rb +0 -91
  136. data/spec/lib/droplet_kit/resources/image_action_resource_spec.rb +0 -149
  137. data/spec/lib/droplet_kit/resources/image_resource_spec.rb +0 -93
  138. data/spec/lib/droplet_kit/resources/kubernetes_cluster_resource_spec.rb +0 -313
  139. data/spec/lib/droplet_kit/resources/kubernetes_options_resource_spec.rb +0 -33
  140. data/spec/lib/droplet_kit/resources/load_balancer_resource_spec.rb +0 -213
  141. data/spec/lib/droplet_kit/resources/project_resource_spec.rb +0 -126
  142. data/spec/lib/droplet_kit/resources/region_resource_spec.rb +0 -27
  143. data/spec/lib/droplet_kit/resources/size_resource_spec.rb +0 -27
  144. data/spec/lib/droplet_kit/resources/snapshot_resource_spec.rb +0 -61
  145. data/spec/lib/droplet_kit/resources/ssh_key_resource_spec.rb +0 -92
  146. data/spec/lib/droplet_kit/resources/tag_resource_spec.rb +0 -135
  147. data/spec/lib/droplet_kit/resources/volume_action_resource_spec.rb +0 -157
  148. data/spec/lib/droplet_kit/resources/volume_resource_spec.rb +0 -124
  149. data/spec/spec_helper.rb +0 -19
  150. data/spec/support/fake_server.rb +0 -4
  151. data/spec/support/request_stub_helpers.rb +0 -28
  152. data/spec/support/resource_context.rb +0 -4
  153. data/spec/support/shared_examples/common_errors.rb +0 -27
  154. data/spec/support/shared_examples/paginated_endpoint.rb +0 -16
  155. data/spec/support/shared_examples/unprocessable_entity.rb +0 -11
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
@@ -1,28 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- before_install:
5
- - gem update bundler
6
-
7
- rvm:
8
- - "2.0.0"
9
- - "2.1.10"
10
- - "2.2.10"
11
- - "2.3.7"
12
- - "2.4.4"
13
- - "2.5.1"
14
-
15
- matrix:
16
- exclude:
17
- - rvm: "2.0.0"
18
- env: ACTIVESUPPORT_VERSION=5
19
- - rvm: "2.1.10"
20
- env: ACTIVESUPPORT_VERSION=5
21
-
22
- env:
23
- - ACTIVESUPPORT_VERSION=3
24
- - ACTIVESUPPORT_VERSION=4
25
- - ACTIVESUPPORT_VERSION=5
26
-
27
- script:
28
- - bundle exec rspec ./spec
@@ -1,106 +0,0 @@
1
- ### [2.8.0] - 2018-12-11
2
- * #144 Adds the ability to set timeout options for Faraday - @tgturner
3
- * #145 Bump Faraday version to 0.15 - @petems
4
- * #170 Remove test rb file - @scottcrawford03
5
-
6
- ### Version 2.7.0
7
- * Added KubernetesCluster resource
8
- * Added KubernetesOptions resource
9
- * Added kubernetes cluster and node pool functionality
10
-
11
- ### Version 2.6.1
12
- * Added custom User-Agent for DropletKit
13
-
14
- ### Version 2.6.0
15
- * Added ability to manage projects.
16
-
17
- ### Version 2.5.0
18
- * Added ability to tag images and retrieving new fields for tagged resources.
19
-
20
- ### Version 2.4.0
21
- * Added CDN resource.
22
-
23
- ### Version 2.3.0
24
- * Added support for Let's Encrypt certificates.
25
-
26
- ### Version 2.2.2
27
- * Fix tag / untag resources request body
28
-
29
- ### Version 2.2.1
30
- * Relaxed faraday version requirement
31
-
32
- ### Version 2.2.0
33
- * Added Firewall resource.
34
- * Added support for updating TTLs for DomainRecord resource.
35
- * Added support of all Rails 5 releases.
36
- * Added deprecation for Tag resource rename.
37
-
38
- ### Version 2.1.0
39
- * Added monitoring to the Droplet resource.
40
- * Added LoadBalancer resource.
41
- * Added Certificate resource.
42
- * Added min_disk_size, size_gigabytes and created_at to the Image resource.
43
- * Updated DropletActionResource to use tag_name instead of tag.
44
-
45
- ### Version 2.0.1
46
- * Droplet create action now accepts `tags` attribute.
47
-
48
- ### Version 2.0.0
49
- * Several duplicate classes have been deprecated and combined:
50
- * Replace duplicate Backup model/mapping with Image.
51
- * Remove duplicate ImageAction(Mapping), use Action.
52
- * Redefine Snapshot model for new Snapshot object, use Image for Droplet snapshots.
53
- * Added support for Snapshot endpoint with volume snapshots.
54
-
55
- ### Version 1.2.2
56
-
57
- * Add image convert action.
58
- * Loosen dependency on ActiveSupport, update travis.
59
- * Add Image#type property.
60
- * Allow client option with indifferent access.
61
- * Add private filtering to image endpoint.
62
- * Add droplet upgrades resource.
63
-
64
- ### Version 1.2.1
65
-
66
- * Update to action resources to support embedded region breaking changes in API.
67
-
68
- ### Version 1.2.0
69
-
70
- * Add droplet upgrade action.
71
- * Pass disk option through to Droplet resize.
72
- * Add support for region_slug in action objects.
73
- * Test coverage for Ruby 2.2.0.
74
- * Documentation updates.
75
-
76
- ### Version 1.1.3
77
-
78
- * Paginate the resource for image actions to retrieve all of them.
79
- * Fix infinite loop bug on pagination last page.
80
- * Updates to documentation.
81
-
82
- ### Version 1.1.2
83
-
84
- * Add `public_ip` and `private_ip` to easily get the IP address on `DropletKit::Droplet` objects returned.
85
-
86
- ### Version 1.1.1
87
-
88
- * Use size_slug instead of size object in droplet mappings.
89
-
90
- ### Version 1.1.0
91
-
92
- * Changing kernels is now `client.droplet_actions.change_kernel(kernel: 'name', droplet_id: 123)` instead of `droplet_actions.kernel()`.
93
- * Include Account resource. `client.account`. This allows you to grab information about the user for the access token provided.
94
- * Paginate more resources. This includes:
95
- * Droplet Kernels
96
- * Actions
97
- * Snapshots
98
- * Backups
99
- * Allow creating droplets with User Data and Private Networking
100
- * See [#8](https://github.com/digitalocean/droplet_kit/pull/8) - Thanks @rbishop !
101
- * Fixed a bug where if the resource was paginated and returning 0 entries, an infinite loop would occur.
102
- * See [#11](https://github.com/digitalocean/droplet_kit/pull/11) - Thanks @webdestroya !
103
-
104
- ### August 8, 2014 (Initial Release)
105
-
106
- * Initial Release
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'simplecov'
4
- # Specify your gem's dependencies in droplet_kit.gemspec
5
- gemspec
6
-
7
- version = case (ENV['ACTIVESUPPORT_VERSION'] || '5')
8
- when '5'
9
- '>= 5.0.0.beta3'
10
- when '4'
11
- '~> 4.0'
12
- when '3'
13
- '~> 3.1'
14
- end
15
- gem 'activesupport', version
data/Rakefile DELETED
@@ -1,3 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- load './lib/tasks/resource_doc.rake'
@@ -1,37 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'droplet_kit/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "droplet_kit"
8
- spec.version = DropletKit::VERSION
9
- spec.authors = ["Robert Ross"]
10
- spec.email = ["rross@digitalocean.com"]
11
- spec.summary = %q{Droplet Kit is the official Ruby library for DigitalOcean's API}
12
- spec.description = %q{Droplet Kit is the official Ruby library for DigitalOcean's API}
13
- spec.homepage = "https://github.com/digitalocean/droplet_kit"
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.required_ruby_version = '>= 2.0.0'
22
-
23
- spec.add_dependency 'virtus', '~> 1.0.3'
24
- spec.add_dependency "resource_kit", '~> 0.1.5'
25
- spec.add_dependency "kartograph", '~> 0.2.3'
26
- spec.add_dependency "activesupport", '> 3.0', '< 6'
27
- spec.add_dependency "faraday", '~> 0.15'
28
-
29
- spec.add_development_dependency "bundler", ">= 1.11.0"
30
- spec.add_development_dependency "rake"
31
- spec.add_development_dependency "rspec", "~> 3.0.0"
32
- spec.add_development_dependency "rb-readline"
33
-
34
- # FakeServe
35
- spec.add_development_dependency 'sinatra', '~> 1.4'
36
- spec.add_development_dependency 'webmock', '~> 1.18'
37
- end
@@ -1,8 +0,0 @@
1
- {
2
- "account": {
3
- "droplet_limit": 200,
4
- "email": "droplet_kit@digitalocean.com",
5
- "uuid": "alksdjfhlakjdsfh12983712",
6
- "email_verified": true
7
- }
8
- }
@@ -1,24 +0,0 @@
1
- {
2
- "actions": [
3
- {
4
- "id": 1,
5
- "status": "in-progress",
6
- "type": "test",
7
- "started_at": "2014-07-29T14:35:26Z",
8
- "completed_at": null,
9
- "resource_id": null,
10
- "resource_type": "backend",
11
- "region_slug": "nyc1",
12
- "region": {
13
- "name": "New York",
14
- "slug": "nyc1",
15
- "available": true,
16
- "sizes": ["512mb"],
17
- "features": ["virtio", "private_networking", "backups", "ipv6", "metadata"]
18
- }
19
- }
20
- ],
21
- "meta": {
22
- "total": 1
23
- }
24
- }
@@ -1,19 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "test",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": null,
9
- "resource_type": "backend",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": ["512mb"],
16
- "features": ["virtio", "private_networking", "backups", "ipv6", "metadata"]
17
- }
18
- }
19
- }
@@ -1,16 +0,0 @@
1
- {
2
- "endpoints": [
3
- {
4
- "id": "7724db7c-e098-11e5-b522-000f53304e51",
5
- "origin": "my-space-cdn.nyc3.digitaloceanspaces.com",
6
- "endpoint": "my-space-cdn.nyc3.cdn.digitaloceanspaces.com",
7
- "ttl": 3600,
8
- "created_at": "2016-03-02T17:00:49Z"
9
- }
10
- ],
11
- "links": {
12
- },
13
- "meta": {
14
- "total": 1
15
- }
16
- }
@@ -1,9 +0,0 @@
1
- {
2
- "endpoint": {
3
- "id": "7724db7c-e098-11e5-b522-000f53304e51",
4
- "origin": "my-space-cdn.nyc3.digitaloceanspaces.com",
5
- "endpoint": "my-space-cdn.nyc3.cdn.digitaloceanspaces.com",
6
- "ttl": 3600,
7
- "created_at": "2016-03-02T17:00:49Z"
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "endpoint": {
3
- "id": "7724db7c-e098-11e5-b522-000f53304e51",
4
- "origin": "my-space-cdn.nyc3.digitaloceanspaces.com",
5
- "endpoint": "my-space-cdn.nyc3.cdn.digitaloceanspaces.com",
6
- "ttl": 3600,
7
- "created_at": "2016-03-02T17:00:49Z"
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "endpoint": {
3
- "id": "7724db7c-e098-11e5-b522-000f53304e51",
4
- "origin": "my-space-cdn.nyc3.digitaloceanspaces.com",
5
- "endpoint": "my-space-cdn.nyc3.cdn.digitaloceanspaces.com",
6
- "ttl": 60,
7
- "created_at": "2016-03-02T17:00:49Z"
8
- }
9
- }
@@ -1,19 +0,0 @@
1
- {
2
- "certificates": [
3
- {
4
- "id": "892071a0-bb95-49bc-8021-3afd67a210bf",
5
- "dns_names": [],
6
- "name": "web-cert-01",
7
- "not_after": "2017-02-22T00:23:00Z",
8
- "sha1_fingerprint": "dfcc9f57d86bf58e321c2c6c31c7a971be244ac7",
9
- "created_at": "2017-02-08T16:02:37Z",
10
- "state": "verified",
11
- "type": "custom"
12
- }
13
- ],
14
- "links": {
15
- },
16
- "meta": {
17
- "total": 1
18
- }
19
- }
@@ -1,12 +0,0 @@
1
- {
2
- "certificate": {
3
- "id": "892071a0-bb95-49bc-8021-3afd67a210bf",
4
- "dns_names": [],
5
- "name": "web-cert-01",
6
- "not_after": "2017-02-22T00:23:00Z",
7
- "sha1_fingerprint": "dfcc9f57d86bf58e321c2c6c31c7a971be244ac7",
8
- "created_at": "2017-02-08T16:02:37Z",
9
- "state": "verified",
10
- "type": "custom"
11
- }
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "certificate": {
3
- "id": "2ewewe-bb95-49bc-8021-3afd67a210bf",
4
- "name": "lets-encrypt-cert",
5
- "dns_names": ["somedomain.com", "api.somedomain.com"],
6
- "not_after": "",
7
- "sha1_fingerprint": "",
8
- "created_at": "2017-02-08T16:02:37Z",
9
- "state": "pending",
10
- "type": "lets_encrypt"
11
- }
12
- }
@@ -1,57 +0,0 @@
1
- {
2
- "domain_records": [
3
- {
4
- "id": 1,
5
- "type": "A",
6
- "name": "@",
7
- "data": "8.8.8.8",
8
- "priority": null,
9
- "port": null,
10
- "ttl": 1800,
11
- "weight": null
12
- },
13
- {
14
- "id": 2,
15
- "type": "NS",
16
- "name": null,
17
- "data": "NS1.DIGITALOCEAN.COM.",
18
- "priority": null,
19
- "port": null,
20
- "ttl": 1800,
21
- "weight": null
22
- },
23
- {
24
- "id": 3,
25
- "type": "NS",
26
- "name": null,
27
- "data": "NS2.DIGITALOCEAN.COM.",
28
- "priority": null,
29
- "port": null,
30
- "ttl": 1800,
31
- "weight": null
32
- },
33
- {
34
- "id": 4,
35
- "type": "NS",
36
- "name": null,
37
- "data": "NS3.DIGITALOCEAN.COM.",
38
- "priority": null,
39
- "port": null,
40
- "ttl": 1800,
41
- "weight": null
42
- },
43
- {
44
- "id": 5,
45
- "type": "CNAME",
46
- "name": "example",
47
- "data": "@",
48
- "priority": null,
49
- "port": null,
50
- "ttl": 1800,
51
- "weight": null
52
- }
53
- ],
54
- "meta": {
55
- "total": 5
56
- }
57
- }
@@ -1,12 +0,0 @@
1
- {
2
- "domain_record": {
3
- "id": 16,
4
- "type": "CNAME",
5
- "name": "www",
6
- "data": "@",
7
- "priority": null,
8
- "port": null,
9
- "ttl": 90,
10
- "weight": null
11
- }
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "domain_record": {
3
- "id": 10,
4
- "type": "CNAME",
5
- "name": "example",
6
- "data": "@",
7
- "priority": null,
8
- "port": null,
9
- "ttl": 1800,
10
- "weight": null
11
- }
12
- }
@@ -1,12 +0,0 @@
1
- {
2
- "domain_record": {
3
- "id": 1066,
4
- "type": "CNAME",
5
- "name": "lol",
6
- "data": "@",
7
- "priority": null,
8
- "port": null,
9
- "ttl": 1800,
10
- "weight": null
11
- }
12
- }