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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc249ef10b0174aae529d0a328924a3841261cd0
4
- data.tar.gz: 2807bbdb6a8f69d987e78547892d73653583cf28
3
+ metadata.gz: 6b5aa0ae3ca786bbf5dcb6a713c0492e11970a18
4
+ data.tar.gz: 9d2b70a368d71739e4dd321ff6018e8749640b3e
5
5
  SHA512:
6
- metadata.gz: 6b38cfe7f0d40a0d936030128cc0fb952b78e5f9a6eff67562351c13146618b2b3759bd41ae1d63c6fd61a4e91d528eaac8738691c0e80881bab4ec4f53168fc
7
- data.tar.gz: 301c38cb7dc99bbca72ad6c8434431179ce27a17e7c32eb25ee61df3a20506021207a2ba45a70d1d609780adb8633e188f724e668f9009488a96117003a4cf42
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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.0.9"
2
+ VERSION = "1.1.0"
3
3
  end
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.9
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-01-30 00:00:00.000000000 Z
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