civo 1.3.3 → 1.4.3

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
  SHA256:
3
- metadata.gz: d294ec9e5bc9cd2e75708e24c9f5d2457dcd2df1193525f529e156d0f3805566
4
- data.tar.gz: 2eb72186662b60d600b650e669b09a3e380da31067fa46089e3cdcac29a7b9d9
3
+ metadata.gz: f72ea25223ef2ea33ba6aab01ac692f3429b0530184feb7cf24b1d0043e2d095
4
+ data.tar.gz: d1994365d59671bcbe2a450bca6088f9f6290f98f7fbe89938b7e33acb748e8e
5
5
  SHA512:
6
- metadata.gz: ba7867a5dd6057feab94814a605e3a2da8dfbe68c078a75af9e2feae2a0020f0874c20950b58127f0149683458bb7eae1dd47e820f55f0d735852f229a2a5838
7
- data.tar.gz: 2550d272ab6c4f67ad48b5aca604d2eb1014e95a00a510707d2996b135bc4d3653c0341ee1e44fa37ca255bd4d956733693a913ccd4ce74aa8ea86fe52c5112f
6
+ metadata.gz: 67bf76254f708a1524ad4b79a4f6df2570880f23db4d7ab07ae35853041f206b2f06aa91deb6e7699b1d0876a633cf97c21f2d14d9293a96fca7c61e41653b5b
7
+ data.tar.gz: 10cccdd5bd670ab4231928eb93ab5b171275d28f7d8d3fffe7e58a4c2766f36eb355ad944e3ec00b26298734736aad1d86e8a4919b1e8eaef2be3b0c62fd1b87
@@ -0,0 +1,17 @@
1
+ module Civo
2
+ class Database < Base
3
+ get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases"
4
+ post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases", requires: [:name, :size, :region]
5
+ get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id"
6
+ put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id"
7
+ delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:id], send_delete_body: true
8
+ put :upgrade, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/resize", requires: [:size, :id]
9
+ put :restore, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/restore", requires: [:snapshot_id]
10
+ get :snapshots, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/snapshots"
11
+ put :tags, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/tags"
12
+
13
+ def to_partial_path
14
+ "civo/database"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,10 @@
1
+ module Civo
2
+ class DiskImage < Base
3
+ get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/disk_images"
4
+ get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/disk_images/:id"
5
+
6
+ def to_partial_path
7
+ "civo/disk_image"
8
+ end
9
+ end
10
+ end
data/lib/civo.rb CHANGED
@@ -14,6 +14,8 @@ require_relative "../app/models/civo/action"
14
14
  require_relative "../app/models/civo/audit_log"
15
15
  require_relative "../app/models/civo/blueprint"
16
16
  require_relative "../app/models/civo/charge"
17
+ require_relative "../app/models/civo/database"
18
+ require_relative "../app/models/civo/disk_image"
17
19
  require_relative "../app/models/civo/dns_domain"
18
20
  require_relative "../app/models/civo/dns_record"
19
21
  require_relative "../app/models/civo/firewall"
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.3.3"
2
+ VERSION = "1.4.3"
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.3.3
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2021-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -81,6 +81,8 @@ files:
81
81
  - app/models/civo/base.rb
82
82
  - app/models/civo/blueprint.rb
83
83
  - app/models/civo/charge.rb
84
+ - app/models/civo/database.rb
85
+ - app/models/civo/disk_image.rb
84
86
  - app/models/civo/dns_domain.rb
85
87
  - app/models/civo/dns_record.rb
86
88
  - app/models/civo/firewall.rb
@@ -129,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
131
  - !ruby/object:Gem::Version
130
132
  version: '0'
131
133
  requirements: []
132
- rubygems_version: 3.0.6
134
+ rubygems_version: 3.1.2
133
135
  signing_key:
134
136
  specification_version: 4
135
137
  summary: Civo CLI AND API