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,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"action": {
|
3
|
-
"id": 2,
|
4
|
-
"status": "in-progress",
|
5
|
-
"type": "shutdown",
|
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": "snapshot",
|
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": "upgrade",
|
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,89 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"droplets": [
|
3
|
-
{
|
4
|
-
"id": 19,
|
5
|
-
"name": "test.example.com",
|
6
|
-
"memory": 1024,
|
7
|
-
"vcpus": 2,
|
8
|
-
"disk": 20,
|
9
|
-
"region": {
|
10
|
-
"slug": "nyc1",
|
11
|
-
"name": "New York",
|
12
|
-
"sizes": [
|
13
|
-
"1024mb",
|
14
|
-
"512mb"
|
15
|
-
],
|
16
|
-
"available": true,
|
17
|
-
"features": [
|
18
|
-
"virtio",
|
19
|
-
"private_networking",
|
20
|
-
"backups",
|
21
|
-
"ipv6"
|
22
|
-
]
|
23
|
-
},
|
24
|
-
"image": {
|
25
|
-
"id": 119192817,
|
26
|
-
"name": "Ubuntu 13.04",
|
27
|
-
"distribution": "ubuntu",
|
28
|
-
"slug": "ubuntu1304",
|
29
|
-
"public": true,
|
30
|
-
"regions": [
|
31
|
-
"nyc1"
|
32
|
-
],
|
33
|
-
"created_at": "2014-07-29T14:35:36Z"
|
34
|
-
},
|
35
|
-
"size_slug": "1024mb",
|
36
|
-
"locked": false,
|
37
|
-
"status": "active",
|
38
|
-
"networks": {
|
39
|
-
"v4": [
|
40
|
-
{
|
41
|
-
"ip_address": "10.0.0.19",
|
42
|
-
"netmask": "255.255.0.0",
|
43
|
-
"gateway": "10.0.0.1",
|
44
|
-
"type": "private"
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"ip_address": "127.0.0.19",
|
48
|
-
"netmask": "255.255.255.0",
|
49
|
-
"gateway": "127.0.0.20",
|
50
|
-
"type": "public"
|
51
|
-
}
|
52
|
-
],
|
53
|
-
"v6": [
|
54
|
-
{
|
55
|
-
"ip_address": "2001::13",
|
56
|
-
"cidr": 124,
|
57
|
-
"gateway": "2400:6180:0000:00D0:0000:0000:0009:7000",
|
58
|
-
"type": "public"
|
59
|
-
}
|
60
|
-
]
|
61
|
-
},
|
62
|
-
"kernel": {
|
63
|
-
"id": 485432985,
|
64
|
-
"name": "DO-recovery-static-fsck",
|
65
|
-
"version": "3.8.0-25-generic"
|
66
|
-
},
|
67
|
-
"created_at": "2014-07-29T14:35:36Z",
|
68
|
-
"features": [
|
69
|
-
"ipv6"
|
70
|
-
],
|
71
|
-
"backup_ids": [
|
72
|
-
449676382
|
73
|
-
],
|
74
|
-
"snapshot_ids": [
|
75
|
-
449676383
|
76
|
-
],
|
77
|
-
"action_ids": [
|
78
|
-
|
79
|
-
],
|
80
|
-
"tags": [
|
81
|
-
"tag-1",
|
82
|
-
"tag-2"
|
83
|
-
]
|
84
|
-
}
|
85
|
-
],
|
86
|
-
"meta": {
|
87
|
-
"total": 1
|
88
|
-
}
|
89
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"droplet": {
|
3
|
-
"id": 19,
|
4
|
-
"name": "test.example.com",
|
5
|
-
"memory": 1024,
|
6
|
-
"vcpus": 2,
|
7
|
-
"disk": 20,
|
8
|
-
"region": {
|
9
|
-
"slug": "nyc1",
|
10
|
-
"name": "New York",
|
11
|
-
"sizes": [
|
12
|
-
"1024mb",
|
13
|
-
"512mb"
|
14
|
-
],
|
15
|
-
"available": true,
|
16
|
-
"features": [
|
17
|
-
"virtio",
|
18
|
-
"private_networking",
|
19
|
-
"backups",
|
20
|
-
"ipv6"
|
21
|
-
]
|
22
|
-
},
|
23
|
-
"image": {
|
24
|
-
"id": 119192817,
|
25
|
-
"name": "Ubuntu 13.04",
|
26
|
-
"distribution": "ubuntu",
|
27
|
-
"slug": "ubuntu1304",
|
28
|
-
"public": true,
|
29
|
-
"regions": [
|
30
|
-
"nyc1"
|
31
|
-
],
|
32
|
-
"created_at": "2014-07-29T14:35:37Z"
|
33
|
-
},
|
34
|
-
"size_slug": "1024mb",
|
35
|
-
"locked": false,
|
36
|
-
"status": "active",
|
37
|
-
"networks": {
|
38
|
-
"v4": [
|
39
|
-
{
|
40
|
-
"ip_address": "10.0.0.19",
|
41
|
-
"netmask": "255.255.0.0",
|
42
|
-
"gateway": "10.0.0.1",
|
43
|
-
"type": "private"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"ip_address": "127.0.0.19",
|
47
|
-
"netmask": "255.255.255.0",
|
48
|
-
"gateway": "127.0.0.20",
|
49
|
-
"type": "public"
|
50
|
-
}
|
51
|
-
],
|
52
|
-
"v6": [
|
53
|
-
{
|
54
|
-
"ip_address": "2001::13",
|
55
|
-
"cidr": 124,
|
56
|
-
"gateway": "2400:6180:0000:00D0:0000:0000:0009:7000",
|
57
|
-
"type": "public"
|
58
|
-
}
|
59
|
-
]
|
60
|
-
},
|
61
|
-
"kernel": {
|
62
|
-
"id": 485432985,
|
63
|
-
"name": "DO-recovery-static-fsck",
|
64
|
-
"version": "3.8.0-25-generic"
|
65
|
-
},
|
66
|
-
"created_at": "2014-07-29T14:35:37Z",
|
67
|
-
"features": [
|
68
|
-
"ipv6"
|
69
|
-
],
|
70
|
-
"backup_ids": [
|
71
|
-
449676382
|
72
|
-
],
|
73
|
-
"snapshot_ids": [
|
74
|
-
449676383
|
75
|
-
],
|
76
|
-
"action_ids": [
|
77
|
-
|
78
|
-
],
|
79
|
-
"tags": [
|
80
|
-
"one",
|
81
|
-
"two"
|
82
|
-
]
|
83
|
-
}
|
84
|
-
}
|
@@ -1,168 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"droplets": [
|
3
|
-
{
|
4
|
-
"id": 19,
|
5
|
-
"name": "test-01.example.com",
|
6
|
-
"memory": 1024,
|
7
|
-
"vcpus": 2,
|
8
|
-
"disk": 20,
|
9
|
-
"region": {
|
10
|
-
"slug": "nyc1",
|
11
|
-
"name": "New York",
|
12
|
-
"sizes": [
|
13
|
-
"1024mb",
|
14
|
-
"512mb"
|
15
|
-
],
|
16
|
-
"available": true,
|
17
|
-
"features": [
|
18
|
-
"virtio",
|
19
|
-
"private_networking",
|
20
|
-
"backups",
|
21
|
-
"ipv6"
|
22
|
-
]
|
23
|
-
},
|
24
|
-
"image": {
|
25
|
-
"id": 119192817,
|
26
|
-
"name": "Ubuntu 13.04",
|
27
|
-
"distribution": "ubuntu",
|
28
|
-
"slug": "ubuntu1304",
|
29
|
-
"public": true,
|
30
|
-
"regions": [
|
31
|
-
"nyc1"
|
32
|
-
],
|
33
|
-
"created_at": "2014-07-29T14:35:37Z"
|
34
|
-
},
|
35
|
-
"size_slug": "1024mb",
|
36
|
-
"locked": false,
|
37
|
-
"status": "active",
|
38
|
-
"networks": {
|
39
|
-
"v4": [
|
40
|
-
{
|
41
|
-
"ip_address": "10.0.0.19",
|
42
|
-
"netmask": "255.255.0.0",
|
43
|
-
"gateway": "10.0.0.1",
|
44
|
-
"type": "private"
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"ip_address": "127.0.0.19",
|
48
|
-
"netmask": "255.255.255.0",
|
49
|
-
"gateway": "127.0.0.20",
|
50
|
-
"type": "public"
|
51
|
-
}
|
52
|
-
],
|
53
|
-
"v6": [
|
54
|
-
{
|
55
|
-
"ip_address": "2001::13",
|
56
|
-
"cidr": 124,
|
57
|
-
"gateway": "2400:6180:0000:00D0:0000:0000:0009:7000",
|
58
|
-
"type": "public"
|
59
|
-
}
|
60
|
-
]
|
61
|
-
},
|
62
|
-
"kernel": {
|
63
|
-
"id": 485432985,
|
64
|
-
"name": "DO-recovery-static-fsck",
|
65
|
-
"version": "3.8.0-25-generic"
|
66
|
-
},
|
67
|
-
"created_at": "2014-07-29T14:35:37Z",
|
68
|
-
"features": [
|
69
|
-
"ipv6"
|
70
|
-
],
|
71
|
-
"backup_ids": [
|
72
|
-
449676382
|
73
|
-
],
|
74
|
-
"snapshot_ids": [
|
75
|
-
449676383
|
76
|
-
],
|
77
|
-
"action_ids": [
|
78
|
-
|
79
|
-
],
|
80
|
-
"tags": [
|
81
|
-
"one",
|
82
|
-
"two"
|
83
|
-
]
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"id": 20,
|
87
|
-
"name": "test-02.example.com",
|
88
|
-
"memory": 1024,
|
89
|
-
"vcpus": 2,
|
90
|
-
"disk": 20,
|
91
|
-
"region": {
|
92
|
-
"slug": "nyc1",
|
93
|
-
"name": "New York",
|
94
|
-
"sizes": [
|
95
|
-
"1024mb",
|
96
|
-
"512mb"
|
97
|
-
],
|
98
|
-
"available": true,
|
99
|
-
"features": [
|
100
|
-
"virtio",
|
101
|
-
"private_networking",
|
102
|
-
"backups",
|
103
|
-
"ipv6"
|
104
|
-
]
|
105
|
-
},
|
106
|
-
"image": {
|
107
|
-
"id": 119192817,
|
108
|
-
"name": "Ubuntu 13.04",
|
109
|
-
"distribution": "ubuntu",
|
110
|
-
"slug": "ubuntu1304",
|
111
|
-
"public": true,
|
112
|
-
"regions": [
|
113
|
-
"nyc1"
|
114
|
-
],
|
115
|
-
"created_at": "2014-07-29T14:35:37Z"
|
116
|
-
},
|
117
|
-
"size_slug": "1024mb",
|
118
|
-
"locked": false,
|
119
|
-
"status": "active",
|
120
|
-
"networks": {
|
121
|
-
"v4": [
|
122
|
-
{
|
123
|
-
"ip_address": "10.0.0.19",
|
124
|
-
"netmask": "255.255.0.0",
|
125
|
-
"gateway": "10.0.0.1",
|
126
|
-
"type": "private"
|
127
|
-
},
|
128
|
-
{
|
129
|
-
"ip_address": "127.0.0.19",
|
130
|
-
"netmask": "255.255.255.0",
|
131
|
-
"gateway": "127.0.0.20",
|
132
|
-
"type": "public"
|
133
|
-
}
|
134
|
-
],
|
135
|
-
"v6": [
|
136
|
-
{
|
137
|
-
"ip_address": "2001::13",
|
138
|
-
"cidr": 124,
|
139
|
-
"gateway": "2400:6180:0000:00D0:0000:0000:0009:7000",
|
140
|
-
"type": "public"
|
141
|
-
}
|
142
|
-
]
|
143
|
-
},
|
144
|
-
"kernel": {
|
145
|
-
"id": 485432985,
|
146
|
-
"name": "DO-recovery-static-fsck",
|
147
|
-
"version": "3.8.0-25-generic"
|
148
|
-
},
|
149
|
-
"created_at": "2014-07-29T14:35:37Z",
|
150
|
-
"features": [
|
151
|
-
"ipv6"
|
152
|
-
],
|
153
|
-
"backup_ids": [
|
154
|
-
449676382
|
155
|
-
],
|
156
|
-
"snapshot_ids": [
|
157
|
-
449676383
|
158
|
-
],
|
159
|
-
"action_ids": [
|
160
|
-
|
161
|
-
],
|
162
|
-
"tags": [
|
163
|
-
"one",
|
164
|
-
"two"
|
165
|
-
]
|
166
|
-
}
|
167
|
-
]
|
168
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"droplet": {
|
3
|
-
"id": 19,
|
4
|
-
"name": "test.example.com",
|
5
|
-
"memory": 1024,
|
6
|
-
"vcpus": 2,
|
7
|
-
"disk": 20,
|
8
|
-
"region": {
|
9
|
-
"slug": "nyc1",
|
10
|
-
"name": "New York",
|
11
|
-
"sizes": [
|
12
|
-
"1024mb",
|
13
|
-
"512mb"
|
14
|
-
],
|
15
|
-
"available": true,
|
16
|
-
"features": [
|
17
|
-
"virtio",
|
18
|
-
"private_networking",
|
19
|
-
"backups",
|
20
|
-
"ipv6"
|
21
|
-
]
|
22
|
-
},
|
23
|
-
"image": {
|
24
|
-
"id": 119192817,
|
25
|
-
"name": "Ubuntu 13.04",
|
26
|
-
"distribution": "ubuntu",
|
27
|
-
"slug": "ubuntu1304",
|
28
|
-
"public": true,
|
29
|
-
"regions": [
|
30
|
-
"nyc1"
|
31
|
-
],
|
32
|
-
"created_at": "2014-07-29T14:35:37Z"
|
33
|
-
},
|
34
|
-
"size_slug": "1024mb",
|
35
|
-
"locked": false,
|
36
|
-
"status": "active",
|
37
|
-
"networks": {
|
38
|
-
"v4": [
|
39
|
-
{
|
40
|
-
"ip_address": "10.0.0.19",
|
41
|
-
"netmask": "255.255.0.0",
|
42
|
-
"gateway": "10.0.0.1",
|
43
|
-
"type": "private"
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"ip_address": "127.0.0.19",
|
47
|
-
"netmask": "255.255.255.0",
|
48
|
-
"gateway": "127.0.0.20",
|
49
|
-
"type": "public"
|
50
|
-
}
|
51
|
-
],
|
52
|
-
"v6": [
|
53
|
-
{
|
54
|
-
"ip_address": "2001::13",
|
55
|
-
"cidr": 124,
|
56
|
-
"gateway": "2400:6180:0000:00D0:0000:0000:0009:7000",
|
57
|
-
"type": "public"
|
58
|
-
}
|
59
|
-
]
|
60
|
-
},
|
61
|
-
"kernel": {
|
62
|
-
"id": 485432985,
|
63
|
-
"name": "DO-recovery-static-fsck",
|
64
|
-
"version": "3.8.0-25-generic"
|
65
|
-
},
|
66
|
-
"created_at": "2014-07-29T14:35:37Z",
|
67
|
-
"features": [
|
68
|
-
"ipv6"
|
69
|
-
],
|
70
|
-
"backup_ids": [
|
71
|
-
449676382
|
72
|
-
],
|
73
|
-
"snapshot_ids": [
|
74
|
-
449676383
|
75
|
-
],
|
76
|
-
"action_ids": [
|
77
|
-
|
78
|
-
],
|
79
|
-
"tags": [
|
80
|
-
"tag-1",
|
81
|
-
"tag-2"
|
82
|
-
]
|
83
|
-
}
|
84
|
-
}
|