civo 1.5.16 → 1.5.17
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/database.rb +6 -6
- data/lib/civo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2a882e5dc253db31bb08188a7f87a32eb210ab007b4549061898b71f6fe9e3
|
4
|
+
data.tar.gz: 92b5060ccfef28b6792f8b85552fdf92c9cab1c22c389db467c9cdd3f8f643ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c297903d4edc0f6daea6078353331131bdfc9b53e6e6b707faeaaba84dd4a55fe04f6af71825a17d43392c011bc22c106f3f0f4979a5a45901a5b8b8b845992
|
7
|
+
data.tar.gz: 55e1287490515b892aaf5c4eb56452e7b7c5fa9c18c586602e4f1d36c2c462730701fbc9b3b16fd2239e0361746bc31d9c3320216e5381f73c2c6b166cd46c3f
|
data/app/models/civo/database.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
module Civo
|
2
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, :
|
5
|
-
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:
|
6
|
-
patch :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id",
|
7
|
-
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:id
|
8
|
-
post :restore, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/restore", requires: [:
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases", fake: :databases
|
4
|
+
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases", requires: [:name, :size, :software, :network_id], fake: :create_database
|
5
|
+
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:id], fake: :get_database
|
6
|
+
patch :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", fake: :update_database
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id", requires: [:id], fake: :delete_database
|
8
|
+
post :restore, "/v#{ENV["CIVO_API_VERSION"] || "2"}/databases/:id/restore", requires: [:snapshot_id], fake: :restore_database
|
9
9
|
|
10
10
|
def to_partial_path
|
11
11
|
"civo/database"
|
data/lib/civo/version.rb
CHANGED