civo 1.5.3 → 1.5.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/team.rb +0 -5
- data/app/models/civo/team_member.rb +17 -0
- data/app/models/civo/user.rb +1 -1
- data/lib/civo/version.rb +1 -1
- data/lib/civo.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66ade81f651621df55e94e267d6b53056dda03d007a58f32ee3b70febf474989
|
4
|
+
data.tar.gz: '085c5c51b3a7e2a70b69cfdf28e86e85a72ce402bcc5e80a39ce892453fdeb9b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5617f6759823718d30b29bf0d0aed6b307edf0269d284b78b2585fa136d5a6d223ae95e7c39f7e665d45e9bbd8121dee38e5469107653a176c2803fda0a96741
|
7
|
+
data.tar.gz: 2a23679344be30a3314a0ac008baa023926143ce4f035098473e658551a8dca3980bed65bd5f0409d0d5583e469921a2979a9d262c240f1486b536a7d9fd4030
|
data/app/models/civo/team.rb
CHANGED
@@ -8,10 +8,5 @@ module Civo
|
|
8
8
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams"
|
9
9
|
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
|
10
10
|
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id", requires: %i{id}
|
11
|
-
|
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"
|
16
11
|
end
|
17
12
|
end
|
@@ -0,0 +1,17 @@
|
|
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 TeamMember < Base
|
7
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members"
|
8
|
+
post :add, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members", requires: [:user_id]
|
9
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
|
10
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/teams/:id/members/:member_id"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
data/app/models/civo/user.rb
CHANGED
@@ -9,7 +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
|
+
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, team_members: Civo::TeamMember}
|
13
13
|
if ENV["CIVO_API_VERSION"] == "2"
|
14
14
|
get :all, "/v2/users"
|
15
15
|
get :find_by_token, "/v2/users/token/:token"
|
data/lib/civo/version.rb
CHANGED
data/lib/civo.rb
CHANGED
@@ -35,6 +35,7 @@ require_relative "../app/models/civo/snapshot"
|
|
35
35
|
require_relative "../app/models/civo/ssh_key"
|
36
36
|
require_relative "../app/models/civo/system"
|
37
37
|
require_relative "../app/models/civo/team"
|
38
|
+
require_relative "../app/models/civo/team_member"
|
38
39
|
require_relative "../app/models/civo/template"
|
39
40
|
require_relative "../app/models/civo/user"
|
40
41
|
require_relative "../app/models/civo/volume"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- app/models/civo/ssh_key.rb
|
104
104
|
- app/models/civo/system.rb
|
105
105
|
- app/models/civo/team.rb
|
106
|
+
- app/models/civo/team_member.rb
|
106
107
|
- app/models/civo/template.rb
|
107
108
|
- app/models/civo/user.rb
|
108
109
|
- app/models/civo/volume.rb
|