civo 1.4.3 → 1.4.4
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/organisation.rb +12 -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: 6adb91cf79b368d111f7eb49ddce70a5edc0ed1ca200e846081712bb8f9408a1
|
4
|
+
data.tar.gz: df6f6ce2bca1bf8df04c7e1fdc88caf152f830312d7aa53b77bea1db68f01af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f775f4c8efea23ccbb97ffb195b3533845d2a3f792fa8e9e7d8bcd92f53f2a77e4c5694747132ceec1669a60f51ea09872d343be2cc0ffa3587b65560553a9da
|
7
|
+
data.tar.gz: 0f594bd863728a84b3bdbfc91214b2fc7fc667d7d7bb947921e7510e593172b30ebf80147ce55642203d4d76bfbcf85730c37d1f0c7972c81b636d679dfb5d64
|
@@ -0,0 +1,12 @@
|
|
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
|
+
get :accounts, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/accounts"
|
10
|
+
post :add_account, "/v#{ENV["CIVO_API_VERSION"] || "2"}/organisation/accounts", requires: [:account_id]
|
11
|
+
end
|
12
|
+
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
|
-
|
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
|
+
post :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.4
|
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-08-18 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
|