civo 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/volume.rb +12 -0
- data/lib/civo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b5aa0ae3ca786bbf5dcb6a713c0492e11970a18
|
4
|
+
data.tar.gz: 9d2b70a368d71739e4dd321ff6018e8749640b3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db02b83e89729f98f7ab11ca8476c7ebdea21dc98f8c3012e175e43f578377516a2a431c614ffcbc85c4d58c04013c4389be227522f585b6c47ab5e32f043566
|
7
|
+
data.tar.gz: b083b3243fc97805bcf0007017f1a8471dc2e6f0fbbf6a515dfd748b0d02e64e564f247ee25ce5865310e591b7531ad5aa07f4103597eaf77648b216e8132a56
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Civo
|
2
|
+
class Volume < Base
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes"
|
4
|
+
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes/:id", requires: [:id]
|
5
|
+
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes", requires: [:name, :size_gb]
|
6
|
+
put :update, "/v2/volumes/:id", requires: [:id, :name]
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/volumes/:id", requires: [:id], send_delete_body: true
|
8
|
+
put :attach, "/v2/volumes/:id/attach", requires: [:id, :instance_id]
|
9
|
+
put :detach, "/v2/volumes/:id/detach", requires: [:id]
|
10
|
+
put :resize, "/v2/volumes/:id/resize", requires: [:id, :size_gb]
|
11
|
+
end
|
12
|
+
end
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- app/models/civo/team.rb
|
99
99
|
- app/models/civo/template.rb
|
100
100
|
- app/models/civo/user.rb
|
101
|
+
- app/models/civo/volume.rb
|
101
102
|
- app/models/civo/webhook.rb
|
102
103
|
- config/routes.rb
|
103
104
|
- lib/civo.rb
|