civo 1.4.3 → 1.4.7

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: f72ea25223ef2ea33ba6aab01ac692f3429b0530184feb7cf24b1d0043e2d095
4
- data.tar.gz: d1994365d59671bcbe2a450bca6088f9f6290f98f7fbe89938b7e33acb748e8e
3
+ metadata.gz: 9d5f083694ccd4176ecd56f205035c8e66a92474d487780a8be8cc22b80b8ec3
4
+ data.tar.gz: e09b4cdc9c4ba3c47ce5a0a9e37593686edcf43a7e2c0a89d1d54c2804c8a6ba
5
5
  SHA512:
6
- metadata.gz: 67bf76254f708a1524ad4b79a4f6df2570880f23db4d7ab07ae35853041f206b2f06aa91deb6e7699b1d0876a633cf97c21f2d14d9293a96fca7c61e41653b5b
7
- data.tar.gz: 10cccdd5bd670ab4231928eb93ab5b171275d28f7d8d3fffe7e58a4c2766f36eb355ad944e3ec00b26298734736aad1d86e8a4919b1e8eaef2be3b0c62fd1b87
6
+ metadata.gz: 91b066f01905ec99d27857e2f3aaf7f968726e0bc2b60754751f0bee9dc2ef87065092fb0e429fac2acfeac43c063cc3b7c9df5c374679f1f76773f74cae5ac0
7
+ data.tar.gz: 7f25eef9a7efd71212ce0e4a0d017cdae8d6b9aaac0f3da53d9ef13673a95b9a41598ea78f3a183be823622e056e87888e8dc3bde5e62ad7eea0054c1c337179
@@ -0,0 +1,13 @@
1
+ # WARNING!
2
+ # This module is for an in-development feature of Civo and isn't intended to
3
+ # be used by the general public yet. Public accounts won't even have the
4
+ # feature flag enabled. Do not bother trying to use this class.
5
+ module Civo
6
+ class Organisation < Base
7
+ get :current, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation"
8
+ post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation", requires: [:name]
9
+ put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation", requires: [:name]
10
+ get :accounts, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/accounts"
11
+ post :add_account, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/accounts", requires: [:account_id]
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ # WARNING!
2
+ # This module is for an in-development feature of Civo and isn't intended to
3
+ # be used by the general public yet. Public accounts won't even have the
4
+ # feature flag enabled. Do not bother trying to use this class.
5
+ module Civo
6
+ class Permission < Base
7
+ get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/permissions"
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ # WARNING!
2
+ # This module is for an in-development feature of Civo and isn't intended to
3
+ # be used by the general public yet. Public accounts won't even have the
4
+ # feature flag enabled. Do not bother trying to use this class.
5
+ module Civo
6
+ class Role < Base
7
+ get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/roles"
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"
10
+ end
11
+ end
@@ -1,3 +1,7 @@
1
+ # WARNING!
2
+ # This module is for an in-development feature of Civo and isn't intended to
3
+ # be used by the general public yet. Public accounts won't even have the
4
+ # feature flag enabled. Do not bother trying to use this class.
1
5
  module Civo
2
6
  class Team < Base
3
7
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams"
@@ -5,15 +9,9 @@ module Civo
5
9
  put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
6
10
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}, send_delete_body: true
7
11
 
8
- get :my_memberships, "/v#{ENV["CIVO_API_VERSION"] || "2"}/team_memberships"
9
- post :member_invite, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/memberships/:user_id", requires: %i{id user_id email_address}
10
- put :member_status, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/memberships/:user_id", requires: %i{id user_id status}
11
- get :members, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/memberships", requires: %i{id}
12
- post :permissions, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/memberships", requires: %i{email_address permissions}
13
- delete :member_remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/memberships/:user_id", requires: %i{id user_id}, send_delete_body: true
14
-
15
- def to_partial_path
16
- "civo/team"
17
- end
12
+ get :members, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members"
13
+ post :add_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members", requires: [:user_id]
14
+ put :update_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
15
+ delete :remove_member, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
18
16
  end
19
17
  end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.7"
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.4.3
4
+ version: 1.4.7
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-03-18 00:00:00.000000000 Z
11
+ date: 2021-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -93,8 +93,11 @@ files:
93
93
  - app/models/civo/kubernetes.rb
94
94
  - app/models/civo/load_balancer.rb
95
95
  - app/models/civo/network.rb
96
+ - app/models/civo/organisation.rb
97
+ - app/models/civo/permission.rb
96
98
  - app/models/civo/quota.rb
97
99
  - app/models/civo/region.rb
100
+ - app/models/civo/role.rb
98
101
  - app/models/civo/size.rb
99
102
  - app/models/civo/snapshot.rb
100
103
  - app/models/civo/ssh_key.rb