civo 1.4.8 → 1.5.3
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/kubernetes.rb +1 -1
- data/app/models/civo/role.rb +2 -1
- data/app/models/civo/user.rb +1 -0
- data/lib/civo/version.rb +1 -1
- data/lib/civo.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fb8656e6a68bc22cfe6f8d62036ef34c1ea9d0669ac9f06cf5d22cae11f1b54
|
4
|
+
data.tar.gz: 34cdbe84bc7d540c83962aeb883abe326204591e019d0badcf7e2c4b19134fbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a083bd4de8b7dede1449d148db98b9d5e479f27f86512723ad48cb6aaf9006225659504e1690d5084351d752df9e39136c97575df4f4b35bfb06a81e365a9196
|
7
|
+
data.tar.gz: 22ae869debf50e66f38f51c6c2e82b425105817d4feddb95a90c9a8775b6c946e8c1081b8cd94c1e80bcdbd871f429467a8130be3c2618d51c026776c112d4a9
|
@@ -4,7 +4,7 @@ module Civo
|
|
4
4
|
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", requires: [:id]
|
5
5
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters", requires: [:name]
|
6
6
|
post :recycle, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id/recycle", requires: [:id, :hostname]
|
7
|
-
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id"
|
7
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", request_body_type: :json
|
8
8
|
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/clusters/:id", requires: [:id]
|
9
9
|
|
10
10
|
get :applications, "/v#{ENV["CIVO_API_VERSION"] || "2"}/kubernetes/applications"
|
data/app/models/civo/role.rb
CHANGED
@@ -6,6 +6,7 @@ module Civo
|
|
6
6
|
class Role < Base
|
7
7
|
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles"
|
8
8
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles", requires: [:name, :permissions]
|
9
|
-
|
9
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles/:id", requires: %i{id}
|
10
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles/:id"
|
10
11
|
end
|
11
12
|
end
|
data/app/models/civo/user.rb
CHANGED
@@ -9,6 +9,7 @@ module Civo
|
|
9
9
|
put :flags, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id/flags"
|
10
10
|
put :save, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id"
|
11
11
|
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id"
|
12
|
+
get :everything, "/v#{ENV["CIVO_API_VERSION"] || "2"}/users/:id/everything", has_many: {accounts: Civo::Account, teams: Civo::Team, organisations: Civo::Organisation, roles: Civo::Role}
|
12
13
|
if ENV["CIVO_API_VERSION"] == "2"
|
13
14
|
get :all, "/v2/users"
|
14
15
|
get :find_by_token, "/v2/users/token/:token"
|
data/lib/civo/version.rb
CHANGED
data/lib/civo.rb
CHANGED
@@ -26,8 +26,10 @@ require_relative "../app/models/civo/ip"
|
|
26
26
|
require_relative "../app/models/civo/kpi"
|
27
27
|
require_relative "../app/models/civo/load_balancer"
|
28
28
|
require_relative "../app/models/civo/network"
|
29
|
+
require_relative "../app/models/civo/organisation"
|
29
30
|
require_relative "../app/models/civo/quota"
|
30
31
|
require_relative "../app/models/civo/region"
|
32
|
+
require_relative "../app/models/civo/role"
|
31
33
|
require_relative "../app/models/civo/size"
|
32
34
|
require_relative "../app/models/civo/snapshot"
|
33
35
|
require_relative "../app/models/civo/ssh_key"
|
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.
|
4
|
+
version: 1.5.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: 2021-10-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|