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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f72ea25223ef2ea33ba6aab01ac692f3429b0530184feb7cf24b1d0043e2d095
4
- data.tar.gz: d1994365d59671bcbe2a450bca6088f9f6290f98f7fbe89938b7e33acb748e8e
3
+ metadata.gz: 6adb91cf79b368d111f7eb49ddce70a5edc0ed1ca200e846081712bb8f9408a1
4
+ data.tar.gz: df6f6ce2bca1bf8df04c7e1fdc88caf152f830312d7aa53b77bea1db68f01af1
5
5
  SHA512:
6
- metadata.gz: 67bf76254f708a1524ad4b79a4f6df2570880f23db4d7ab07ae35853041f206b2f06aa91deb6e7699b1d0876a633cf97c21f2d14d9293a96fca7c61e41653b5b
7
- data.tar.gz: 10cccdd5bd670ab4231928eb93ab5b171275d28f7d8d3fffe7e58a4c2766f36eb355ad944e3ec00b26298734736aad1d86e8a4919b1e8eaef2be3b0c62fd1b87
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
@@ -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
+ 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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
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.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-03-18 00:00:00.000000000 Z
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