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.
- checksums.yaml +5 -5
- data/README.md +4 -1
- data/lib/droplet_kit/mappings/cdn_mapping.rb +6 -0
- data/lib/droplet_kit/mappings/load_balancer_mapping.rb +1 -0
- data/lib/droplet_kit/models/cdn.rb +2 -0
- data/lib/droplet_kit/models/load_balancer.rb +1 -0
- data/lib/droplet_kit/resources/cdn_resource.rb +6 -0
- data/lib/droplet_kit/version.rb +1 -1
- metadata +4 -289
- data/.gitignore +0 -23
- data/.rspec +0 -2
- data/.travis.yml +0 -28
- data/CHANGELOG.md +0 -106
- data/Gemfile +0 -15
- data/Rakefile +0 -3
- data/droplet_kit.gemspec +0 -37
- data/spec/fixtures/account/info.json +0 -8
- data/spec/fixtures/actions/all.json +0 -24
- data/spec/fixtures/actions/find.json +0 -19
- data/spec/fixtures/cdns/all.json +0 -16
- data/spec/fixtures/cdns/create.json +0 -9
- data/spec/fixtures/cdns/find.json +0 -9
- data/spec/fixtures/cdns/update_ttl.json +0 -9
- data/spec/fixtures/certificates/all.json +0 -19
- data/spec/fixtures/certificates/find.json +0 -12
- data/spec/fixtures/certificates/lets_encrypt.json +0 -12
- data/spec/fixtures/domain_records/all.json +0 -57
- data/spec/fixtures/domain_records/create.json +0 -12
- data/spec/fixtures/domain_records/find.json +0 -12
- data/spec/fixtures/domain_records/update.json +0 -12
- data/spec/fixtures/domains/all.json +0 -12
- data/spec/fixtures/domains/create.json +0 -7
- data/spec/fixtures/domains/find.json +0 -7
- data/spec/fixtures/droplet_actions/change_kernel.json +0 -27
- data/spec/fixtures/droplet_actions/disable_backups.json +0 -27
- data/spec/fixtures/droplet_actions/enable_backups.json +0 -27
- data/spec/fixtures/droplet_actions/enable_ipv6.json +0 -27
- data/spec/fixtures/droplet_actions/enable_private_networking.json +0 -27
- data/spec/fixtures/droplet_actions/find.json +0 -19
- data/spec/fixtures/droplet_actions/password_reset.json +0 -27
- data/spec/fixtures/droplet_actions/power_cycle.json +0 -27
- data/spec/fixtures/droplet_actions/power_off.json +0 -27
- data/spec/fixtures/droplet_actions/power_on.json +0 -27
- data/spec/fixtures/droplet_actions/reboot.json +0 -27
- data/spec/fixtures/droplet_actions/rebuild.json +0 -27
- data/spec/fixtures/droplet_actions/rename.json +0 -27
- data/spec/fixtures/droplet_actions/resize.json +0 -27
- data/spec/fixtures/droplet_actions/restore.json +0 -27
- data/spec/fixtures/droplet_actions/shutdown.json +0 -27
- data/spec/fixtures/droplet_actions/snapshot.json +0 -27
- data/spec/fixtures/droplet_actions/upgrade.json +0 -27
- data/spec/fixtures/droplet_upgrades/all.json +0 -7
- data/spec/fixtures/droplets/all.json +0 -89
- data/spec/fixtures/droplets/all_empty.json +0 -7
- data/spec/fixtures/droplets/create.json +0 -84
- data/spec/fixtures/droplets/create_multiple.json +0 -168
- data/spec/fixtures/droplets/find.json +0 -84
- data/spec/fixtures/droplets/list_actions.json +0 -24
- data/spec/fixtures/droplets/list_backups.json +0 -18
- data/spec/fixtures/droplets/list_kernels.json +0 -17
- data/spec/fixtures/droplets/list_snapshots.json +0 -18
- data/spec/fixtures/firewalls/all.json +0 -67
- data/spec/fixtures/firewalls/find.json +0 -61
- data/spec/fixtures/floating_ip_actions/all.json +0 -41
- data/spec/fixtures/floating_ip_actions/assign.json +0 -27
- data/spec/fixtures/floating_ip_actions/find.json +0 -19
- data/spec/fixtures/floating_ip_actions/unassign.json +0 -27
- data/spec/fixtures/floating_ips/all.json +0 -186
- data/spec/fixtures/floating_ips/all_empty.json +0 -7
- data/spec/fixtures/floating_ips/create.json +0 -29
- data/spec/fixtures/floating_ips/create_with_droplet.json +0 -44
- data/spec/fixtures/floating_ips/find.json +0 -28
- data/spec/fixtures/image_actions/all.json +0 -36
- data/spec/fixtures/image_actions/convert.json +0 -27
- data/spec/fixtures/image_actions/find.json +0 -19
- data/spec/fixtures/image_actions/transfer.json +0 -27
- data/spec/fixtures/images/all.json +0 -31
- data/spec/fixtures/images/find.json +0 -16
- data/spec/fixtures/images/private.json +0 -31
- data/spec/fixtures/images/type.json +0 -31
- data/spec/fixtures/kubernetes/all.json +0 -70
- data/spec/fixtures/kubernetes/all_empty.json +0 -7
- data/spec/fixtures/kubernetes/cluster_node_pool.json +0 -24
- data/spec/fixtures/kubernetes/cluster_node_pool_create.json +0 -40
- data/spec/fixtures/kubernetes/cluster_node_pool_update.json +0 -31
- data/spec/fixtures/kubernetes/cluster_node_pools.json +0 -33
- data/spec/fixtures/kubernetes/clusters/create.json +0 -65
- data/spec/fixtures/kubernetes/clusters/find.json +0 -65
- data/spec/fixtures/kubernetes/clusters/kubeconfig.txt +0 -20
- data/spec/fixtures/kubernetes/clusters/update.json +0 -63
- data/spec/fixtures/kubernetes/options.json +0 -150
- data/spec/fixtures/load_balancers/all.json +0 -129
- data/spec/fixtures/load_balancers/find.json +0 -59
- data/spec/fixtures/projects/all.json +0 -37
- data/spec/fixtures/projects/all_empty.json +0 -12
- data/spec/fixtures/projects/find.json +0 -14
- data/spec/fixtures/projects/resources.json +0 -84
- data/spec/fixtures/regions/all.json +0 -47
- data/spec/fixtures/sizes/all.json +0 -37
- data/spec/fixtures/snapshots/all.json +0 -32
- data/spec/fixtures/snapshots/find.json +0 -14
- data/spec/fixtures/snapshots/resource_type.json +0 -20
- data/spec/fixtures/ssh_keys/all.json +0 -13
- data/spec/fixtures/ssh_keys/create.json +0 -8
- data/spec/fixtures/ssh_keys/find.json +0 -8
- data/spec/fixtures/ssh_keys/update.json +0 -8
- data/spec/fixtures/tags/all.json +0 -34
- data/spec/fixtures/tags/all_empty.json +0 -7
- data/spec/fixtures/tags/create.json +0 -15
- data/spec/fixtures/tags/find.json +0 -99
- data/spec/fixtures/volume_actions/all.json +0 -41
- data/spec/fixtures/volume_actions/attach.json +0 -34
- data/spec/fixtures/volume_actions/detach.json +0 -34
- data/spec/fixtures/volume_actions/find.json +0 -34
- data/spec/fixtures/volume_actions/resize.json +0 -34
- data/spec/fixtures/volumes/all.json +0 -41
- data/spec/fixtures/volumes/create.json +0 -34
- data/spec/fixtures/volumes/create_snapshot.json +0 -14
- data/spec/fixtures/volumes/find.json +0 -34
- data/spec/lib/droplet_kit/client_spec.rb +0 -102
- data/spec/lib/droplet_kit/models/base_model_spec.rb +0 -21
- data/spec/lib/droplet_kit/models/droplet_spec.rb +0 -32
- data/spec/lib/droplet_kit/paginated_resource_spec.rb +0 -85
- data/spec/lib/droplet_kit/resources/account_resource_spec.rb +0 -30
- data/spec/lib/droplet_kit/resources/action_resource_spec.rb +0 -83
- data/spec/lib/droplet_kit/resources/cdn_resource_spec.rb +0 -124
- data/spec/lib/droplet_kit/resources/certificate_resource_spec.rb +0 -119
- data/spec/lib/droplet_kit/resources/domain_record_resource_spec.rb +0 -99
- data/spec/lib/droplet_kit/resources/domain_resource_spec.rb +0 -65
- data/spec/lib/droplet_kit/resources/droplet_action_resource_spec.rb +0 -223
- data/spec/lib/droplet_kit/resources/droplet_resource_spec.rb +0 -340
- data/spec/lib/droplet_kit/resources/droplet_upgrade_resource_spec.rb +0 -22
- data/spec/lib/droplet_kit/resources/firewall_resource_spec.rb +0 -265
- data/spec/lib/droplet_kit/resources/floating_ip_action_resource_spec.rb +0 -137
- data/spec/lib/droplet_kit/resources/floating_ip_resource_spec.rb +0 -91
- data/spec/lib/droplet_kit/resources/image_action_resource_spec.rb +0 -149
- data/spec/lib/droplet_kit/resources/image_resource_spec.rb +0 -93
- data/spec/lib/droplet_kit/resources/kubernetes_cluster_resource_spec.rb +0 -313
- data/spec/lib/droplet_kit/resources/kubernetes_options_resource_spec.rb +0 -33
- data/spec/lib/droplet_kit/resources/load_balancer_resource_spec.rb +0 -213
- data/spec/lib/droplet_kit/resources/project_resource_spec.rb +0 -126
- data/spec/lib/droplet_kit/resources/region_resource_spec.rb +0 -27
- data/spec/lib/droplet_kit/resources/size_resource_spec.rb +0 -27
- data/spec/lib/droplet_kit/resources/snapshot_resource_spec.rb +0 -61
- data/spec/lib/droplet_kit/resources/ssh_key_resource_spec.rb +0 -92
- data/spec/lib/droplet_kit/resources/tag_resource_spec.rb +0 -135
- data/spec/lib/droplet_kit/resources/volume_action_resource_spec.rb +0 -157
- data/spec/lib/droplet_kit/resources/volume_resource_spec.rb +0 -124
- data/spec/spec_helper.rb +0 -19
- data/spec/support/fake_server.rb +0 -4
- data/spec/support/request_stub_helpers.rb +0 -28
- data/spec/support/resource_context.rb +0 -4
- data/spec/support/shared_examples/common_errors.rb +0 -27
- data/spec/support/shared_examples/paginated_endpoint.rb +0 -16
- data/spec/support/shared_examples/unprocessable_entity.rb +0 -11
@@ -1,129 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"load_balancers": [
|
3
|
-
{
|
4
|
-
"id": "4de7ac8b-495b-4884-9a69-1050c6793cd6",
|
5
|
-
"name": "example-lb-01",
|
6
|
-
"ip": "104.131.186.241",
|
7
|
-
"algorithm": "round_robin",
|
8
|
-
"status": "active",
|
9
|
-
"created_at": "2017-02-01T22:22:58Z",
|
10
|
-
"forwarding_rules": [
|
11
|
-
{
|
12
|
-
"entry_protocol": "http",
|
13
|
-
"entry_port": 80,
|
14
|
-
"target_protocol": "http",
|
15
|
-
"target_port": 80,
|
16
|
-
"certificate_id": "",
|
17
|
-
"tls_passthrough": false
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"entry_protocol": "https",
|
21
|
-
"entry_port": 444,
|
22
|
-
"target_protocol": "https",
|
23
|
-
"target_port": 443,
|
24
|
-
"certificate_id": "my-cert",
|
25
|
-
"tls_passthrough": true
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"health_check": {
|
29
|
-
"protocol": "http",
|
30
|
-
"port": 80,
|
31
|
-
"path": "/",
|
32
|
-
"check_interval_seconds": 10,
|
33
|
-
"response_timeout_seconds": 5,
|
34
|
-
"healthy_threshold": 5,
|
35
|
-
"unhealthy_threshold": 3
|
36
|
-
},
|
37
|
-
"sticky_sessions": {
|
38
|
-
"type": "cookies",
|
39
|
-
"cookie_name": "DO-LB",
|
40
|
-
"cookie_ttl_seconds": 5
|
41
|
-
},
|
42
|
-
"region": {
|
43
|
-
"name": "New York 3",
|
44
|
-
"slug": "nyc3",
|
45
|
-
"sizes": [
|
46
|
-
"512mb"
|
47
|
-
],
|
48
|
-
"features": [
|
49
|
-
"private_networking"
|
50
|
-
],
|
51
|
-
"available": true
|
52
|
-
},
|
53
|
-
"tag": "",
|
54
|
-
"droplet_ids": [
|
55
|
-
3164444,
|
56
|
-
3164445
|
57
|
-
],
|
58
|
-
"redirect_http_to_https": false
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"id": "3de7ac8b-495b-4884-9a69-1050c6793cd6",
|
62
|
-
"name": "example-lb-02",
|
63
|
-
"ip": "104.131.186.242",
|
64
|
-
"algorithm": "round_robin",
|
65
|
-
"status": "active",
|
66
|
-
"created_at": "2017-02-01T22:22:58Z",
|
67
|
-
"forwarding_rules": [
|
68
|
-
{
|
69
|
-
"entry_protocol": "http",
|
70
|
-
"entry_port": 80,
|
71
|
-
"target_protocol": "http",
|
72
|
-
"target_port": 80,
|
73
|
-
"certificate_id": "",
|
74
|
-
"tls_passthrough": false
|
75
|
-
}
|
76
|
-
],
|
77
|
-
"health_check": {
|
78
|
-
"protocol": "http",
|
79
|
-
"port": 80,
|
80
|
-
"path": "/",
|
81
|
-
"check_interval_seconds": 10,
|
82
|
-
"response_timeout_seconds": 5,
|
83
|
-
"healthy_threshold": 5,
|
84
|
-
"unhealthy_threshold": 3
|
85
|
-
},
|
86
|
-
"sticky_sessions": {
|
87
|
-
"type": "cookies",
|
88
|
-
"cookie_name": "DO-LB",
|
89
|
-
"cookie_ttl_seconds": 5
|
90
|
-
},
|
91
|
-
"region": {
|
92
|
-
"name": "New York 3",
|
93
|
-
"slug": "nyc3",
|
94
|
-
"sizes": [
|
95
|
-
"512mb",
|
96
|
-
"1gb",
|
97
|
-
"2gb",
|
98
|
-
"4gb",
|
99
|
-
"8gb",
|
100
|
-
"16gb",
|
101
|
-
"m-16gb",
|
102
|
-
"32gb",
|
103
|
-
"m-32gb",
|
104
|
-
"48gb",
|
105
|
-
"m-64gb",
|
106
|
-
"64gb",
|
107
|
-
"m-128gb",
|
108
|
-
"m-224gb"
|
109
|
-
],
|
110
|
-
"features": [
|
111
|
-
"private_networking",
|
112
|
-
"backups",
|
113
|
-
"ipv6",
|
114
|
-
"metadata",
|
115
|
-
"install_agent"
|
116
|
-
],
|
117
|
-
"available": true
|
118
|
-
},
|
119
|
-
"tag": "",
|
120
|
-
"droplet_ids": [],
|
121
|
-
"redirect_http_to_https": true
|
122
|
-
}
|
123
|
-
],
|
124
|
-
"links": {
|
125
|
-
},
|
126
|
-
"meta": {
|
127
|
-
"total": 1
|
128
|
-
}
|
129
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"load_balancer": {
|
3
|
-
"id": "4de7ac8b-495b-4884-9a69-1050c6793cd6",
|
4
|
-
"name": "example-lb-01",
|
5
|
-
"ip": "104.131.186.241",
|
6
|
-
"algorithm": "round_robin",
|
7
|
-
"status": "active",
|
8
|
-
"created_at": "2017-02-01T22:22:58Z",
|
9
|
-
"forwarding_rules": [
|
10
|
-
{
|
11
|
-
"entry_protocol": "http",
|
12
|
-
"entry_port": 80,
|
13
|
-
"target_protocol": "http",
|
14
|
-
"target_port": 80,
|
15
|
-
"certificate_id": "",
|
16
|
-
"tls_passthrough": false
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"entry_protocol": "https",
|
20
|
-
"entry_port": 444,
|
21
|
-
"target_protocol": "https",
|
22
|
-
"target_port": 443,
|
23
|
-
"certificate_id": "my-cert",
|
24
|
-
"tls_passthrough": true
|
25
|
-
}
|
26
|
-
],
|
27
|
-
"health_check": {
|
28
|
-
"protocol": "http",
|
29
|
-
"port": 80,
|
30
|
-
"path": "/",
|
31
|
-
"check_interval_seconds": 10,
|
32
|
-
"response_timeout_seconds": 5,
|
33
|
-
"healthy_threshold": 5,
|
34
|
-
"unhealthy_threshold": 3
|
35
|
-
},
|
36
|
-
"sticky_sessions": {
|
37
|
-
"type": "cookies",
|
38
|
-
"cookie_name": "DO-LB",
|
39
|
-
"cookie_ttl_seconds": 5
|
40
|
-
},
|
41
|
-
"region": {
|
42
|
-
"name": "New York 3",
|
43
|
-
"slug": "nyc3",
|
44
|
-
"sizes": [
|
45
|
-
"512mb"
|
46
|
-
],
|
47
|
-
"features": [
|
48
|
-
"private_networking"
|
49
|
-
],
|
50
|
-
"available": true
|
51
|
-
},
|
52
|
-
"tag": "",
|
53
|
-
"droplet_ids": [
|
54
|
-
3164444,
|
55
|
-
3164445
|
56
|
-
],
|
57
|
-
"redirect_http_to_https": false
|
58
|
-
}
|
59
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"projects": [
|
3
|
-
{
|
4
|
-
"id": "ec104091-d6d3-41b6-b803-780156de20ae",
|
5
|
-
"owner_uuid": "34fc5c195b417b7157649f6b8ae273ae9b1b2970",
|
6
|
-
"owner_id": 123,
|
7
|
-
"name": "digitalocean",
|
8
|
-
"description": "Update your project information under Settings",
|
9
|
-
"purpose": "",
|
10
|
-
"environment": "",
|
11
|
-
"is_default": true,
|
12
|
-
"created_at": "2018-07-25T08:10:03Z",
|
13
|
-
"updated_at": "2018-07-25T08:10:03Z"
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"id": "c177dc8c-12c1-4483-af1c-877eed0f14cb",
|
17
|
-
"owner_uuid": "34fc5c195b417b7157649f6b8ae273ae9b1b2970",
|
18
|
-
"owner_id": 123,
|
19
|
-
"name": "cloud.digitalocean.com",
|
20
|
-
"description": "Our control panel",
|
21
|
-
"purpose": "Web Application",
|
22
|
-
"environment": "Production",
|
23
|
-
"is_default": false,
|
24
|
-
"created_at": "2018-08-22T20:23:12Z",
|
25
|
-
"updated_at": "2018-08-22T21:55:34Z"
|
26
|
-
}
|
27
|
-
],
|
28
|
-
"meta": {
|
29
|
-
"total": 2
|
30
|
-
},
|
31
|
-
"links": {
|
32
|
-
"pages": {
|
33
|
-
"first": "https://api.digitalocean.com/v2/projects",
|
34
|
-
"last": "https://api.digitalocean.com/v2/projects"
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"project": {
|
3
|
-
"id": "c177dc8c-12c1-4483-af1c-877eed0f14cb",
|
4
|
-
"owner_uuid": "34fc5c195b417b7157649f6b8ae273ae9b1b2970",
|
5
|
-
"owner_id": 123,
|
6
|
-
"name": "cloud.digitalocean.com",
|
7
|
-
"description": "Our control panel",
|
8
|
-
"purpose": "Web Application",
|
9
|
-
"environment": "Production",
|
10
|
-
"is_default": false,
|
11
|
-
"created_at": "2018-08-22T20:23:12Z",
|
12
|
-
"updated_at": "2018-08-22T21:55:34Z"
|
13
|
-
}
|
14
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"resources": [
|
3
|
-
{
|
4
|
-
"urn": "do:space:poptarts",
|
5
|
-
"assigned_at": "2018-09-20T19:08:37Z",
|
6
|
-
"links": {
|
7
|
-
"self": "https://poptarts.nyc3.digitaloceanspaces.com"
|
8
|
-
}
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"urn": "do:droplet:24535",
|
12
|
-
"assigned_at": "2018-09-19T19:08:37Z",
|
13
|
-
"links": {
|
14
|
-
"self": "https://api.digitalocean.com/v2/droplets/24535"
|
15
|
-
}
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"urn": "do:droplet:182734",
|
19
|
-
"assigned_at": "2018-09-18T19:08:37Z",
|
20
|
-
"links": {
|
21
|
-
"self": "https://api.digitalocean.com/v2/droplets/182734"
|
22
|
-
}
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"urn": "do:droplet:235312",
|
26
|
-
"assigned_at": "2018-09-17T19:08:37Z",
|
27
|
-
"links": {
|
28
|
-
"self": "https://api.digitalocean.com/v2/droplets/235312"
|
29
|
-
}
|
30
|
-
},
|
31
|
-
{
|
32
|
-
"urn": "do:droplet:2435246",
|
33
|
-
"assigned_at": "2018-09-16T19:08:37Z",
|
34
|
-
"links": {
|
35
|
-
"self": "https://api.digitalocean.com/v2/droplets/2435246"
|
36
|
-
}
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"urn": "do:droplet:3243262",
|
40
|
-
"assigned_at": "2018-09-15T19:08:37Z",
|
41
|
-
"links": {
|
42
|
-
"self": "https://api.digitalocean.com/v2/droplets/3243262"
|
43
|
-
}
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"urn": "do:droplet:245351",
|
47
|
-
"assigned_at": "2018-09-14T19:08:37Z",
|
48
|
-
"links": {
|
49
|
-
"self": "https://api.digitalocean.com/v2/droplets/245351"
|
50
|
-
}
|
51
|
-
},
|
52
|
-
{
|
53
|
-
"urn": "do:droplet:1827341",
|
54
|
-
"assigned_at": "2018-09-13T19:08:37Z",
|
55
|
-
"links": {
|
56
|
-
"self": "https://api.digitalocean.com/v2/droplets/1827341"
|
57
|
-
}
|
58
|
-
},
|
59
|
-
{
|
60
|
-
"urn": "do:droplet:2353121",
|
61
|
-
"assigned_at": "2018-09-12T19:08:37Z",
|
62
|
-
"links": {
|
63
|
-
"self": "https://api.digitalocean.com/v2/droplets/2353121"
|
64
|
-
}
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"urn": "do:droplet:24352461",
|
68
|
-
"assigned_at": "2018-09-11T19:08:37Z",
|
69
|
-
"links": {
|
70
|
-
"self": "https://api.digitalocean.com/v2/droplets/24352461"
|
71
|
-
}
|
72
|
-
}
|
73
|
-
],
|
74
|
-
"meta": {
|
75
|
-
"total": 11
|
76
|
-
},
|
77
|
-
"links": {
|
78
|
-
"pages": {
|
79
|
-
"first": "https://api.digitalocean.com/v2/projects/c177dc8c-12c1-4483-af1c-877eed0f14cb/resources?per_page=10",
|
80
|
-
"next": "https://api.digitalocean.com/v2/projects/c177dc8c-12c1-4483-af1c-877eed0f14cb/resources?page=2&per_page=10",
|
81
|
-
"last": "https://api.digitalocean.com/v2/projects/c177dc8c-12c1-4483-af1c-877eed0f14cb/resources?page=2&per_page=10"
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
@@ -1,47 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"regions": [
|
3
|
-
{
|
4
|
-
"slug": "nyc1",
|
5
|
-
"name": "New York",
|
6
|
-
"sizes": [
|
7
|
-
|
8
|
-
],
|
9
|
-
"available": false,
|
10
|
-
"features": [
|
11
|
-
"virtio",
|
12
|
-
"private_networking",
|
13
|
-
"backups",
|
14
|
-
"ipv6"
|
15
|
-
]
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"slug": "sfo1",
|
19
|
-
"name": "San Francisco",
|
20
|
-
"sizes": [
|
21
|
-
"1gb",
|
22
|
-
"512mb"
|
23
|
-
],
|
24
|
-
"available": true,
|
25
|
-
"features": [
|
26
|
-
"virtio",
|
27
|
-
"backups"
|
28
|
-
]
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"slug": "ams1",
|
32
|
-
"name": "Amsterdam",
|
33
|
-
"sizes": [
|
34
|
-
"1gb",
|
35
|
-
"512mb"
|
36
|
-
],
|
37
|
-
"available": true,
|
38
|
-
"features": [
|
39
|
-
"virtio",
|
40
|
-
"backups"
|
41
|
-
]
|
42
|
-
}
|
43
|
-
],
|
44
|
-
"meta": {
|
45
|
-
"total": 3
|
46
|
-
}
|
47
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"sizes": [
|
3
|
-
{
|
4
|
-
"slug": "512mb",
|
5
|
-
"memory": 512,
|
6
|
-
"vcpus": 1,
|
7
|
-
"disk": 20,
|
8
|
-
"transfer": 1,
|
9
|
-
"price_monthly": 5.0,
|
10
|
-
"price_hourly": 0.00744,
|
11
|
-
"regions": [
|
12
|
-
"nyc1",
|
13
|
-
"ams1",
|
14
|
-
"sfo1"
|
15
|
-
],
|
16
|
-
"available": true
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"slug": "1gb",
|
20
|
-
"memory": 1024,
|
21
|
-
"vcpus": 2,
|
22
|
-
"disk": 30,
|
23
|
-
"transfer": 2,
|
24
|
-
"price_monthly": 10.0,
|
25
|
-
"price_hourly": 0.01488,
|
26
|
-
"regions": [
|
27
|
-
"nyc1",
|
28
|
-
"ams1",
|
29
|
-
"sfo1"
|
30
|
-
],
|
31
|
-
"available": true
|
32
|
-
}
|
33
|
-
],
|
34
|
-
"meta": {
|
35
|
-
"total": 2
|
36
|
-
}
|
37
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"snapshots": [
|
3
|
-
{
|
4
|
-
"id": "119192817",
|
5
|
-
"name": "Ubuntu 13.04",
|
6
|
-
"regions": [
|
7
|
-
"nyc1"
|
8
|
-
],
|
9
|
-
"created_at": "2014-07-29T14:35:40Z",
|
10
|
-
"resource_type": "droplet",
|
11
|
-
"resource_id": "123",
|
12
|
-
"resource_type": "droplet",
|
13
|
-
"min_disk_size": 10,
|
14
|
-
"size_gigabytes": 0.4
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"id": "7724db7c-e098-11e5-b522-000f53304e51",
|
18
|
-
"name": "Ubuntu Foo",
|
19
|
-
"regions": [
|
20
|
-
"nyc1"
|
21
|
-
],
|
22
|
-
"created_at": "2014-07-29T14:35:40Z",
|
23
|
-
"resource_type": "volume",
|
24
|
-
"resource_id": "7724db7c-e098-11e5-b522-000f53304e51",
|
25
|
-
"min_disk_size": 10,
|
26
|
-
"size_gigabytes": 0.4
|
27
|
-
}
|
28
|
-
],
|
29
|
-
"meta": {
|
30
|
-
"total": 2
|
31
|
-
}
|
32
|
-
}
|