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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 516b7d671323a8ee143986704685faab7354128ac77ff58030ab5392eb291c89
4
- data.tar.gz: 7f7f12b17b9fe91d9ae9ed1534974ced81aa0e00333f31cc3bf541198585f305
3
+ metadata.gz: 0fb8656e6a68bc22cfe6f8d62036ef34c1ea9d0669ac9f06cf5d22cae11f1b54
4
+ data.tar.gz: 34cdbe84bc7d540c83962aeb883abe326204591e019d0badcf7e2c4b19134fbf
5
5
  SHA512:
6
- metadata.gz: 42493f5438139b63f465a6cf66e2ee63ad9dbbeca14ccb128b0bb731fe7a619cde038c5ad131a5379d75ce71b04e3bb9e06dbaefbc1efd692b860eda55a28310
7
- data.tar.gz: d00992a9e025ed39eb51972c7a6ac0984539f32f588f30eedebf7bb769be036e6c7e1c8c35ceb399666c816780332b89bee7cf894042b7892dca964b3ebd55d0
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"
@@ -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
- delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/roles/:id"
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.4.8"
2
+ VERSION = "1.5.3"
3
3
  end
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.8
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-01 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest