civo 1.4.3 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/civo/organisation.rb +13 -0
- data/app/models/civo/permission.rb +9 -0
- data/app/models/civo/role.rb +11 -0
- data/app/models/civo/team.rb +8 -10
- data/lib/civo/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d5f083694ccd4176ecd56f205035c8e66a92474d487780a8be8cc22b80b8ec3
|
4
|
+
data.tar.gz: e09b4cdc9c4ba3c47ce5a0a9e37593686edcf43a7e2c0a89d1d54c2804c8a6ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/app/models/civo/team.rb
CHANGED
@@ -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 :
|
9
|
-
post :
|
10
|
-
put :
|
11
|
-
|
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
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.
|
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-
|
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
|