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
@@ -1,12 +0,0 @@
1
- {
2
- "domains": [
3
- {
4
- "name": "example.com",
5
- "ttl": 1800,
6
- "zone_file": "Example zone file text..."
7
- }
8
- ],
9
- "meta": {
10
- "total": 1
11
- }
12
- }
@@ -1,7 +0,0 @@
1
- {
2
- "domain": {
3
- "name": "example.com",
4
- "ttl": 1800,
5
- "zone_file": null
6
- }
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "domain": {
3
- "name": "example.com",
4
- "ttl": 1800,
5
- "zone_file": "Example zone file text..."
6
- }
7
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "change_kernel",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "disable_backups",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "enable_backups",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "enable_ipv6",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "enable_private_networking",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -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,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "password_reset",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "power_cycle",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "power_off",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "power_on",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "reboot",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "rebuild",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "rename",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "resize",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }
@@ -1,27 +0,0 @@
1
- {
2
- "action": {
3
- "id": 2,
4
- "status": "in-progress",
5
- "type": "restore",
6
- "started_at": "2014-07-29T14:35:27Z",
7
- "completed_at": null,
8
- "resource_id": 12,
9
- "resource_type": "droplet",
10
- "region_slug": "nyc1",
11
- "region": {
12
- "name": "New York",
13
- "slug": "nyc1",
14
- "available": true,
15
- "sizes": [
16
- "512mb"
17
- ],
18
- "features": [
19
- "virtio",
20
- "private_networking",
21
- "backups",
22
- "ipv6",
23
- "metadata"
24
- ]
25
- }
26
- }
27
- }