cf-perm 0.0.8 → 0.0.9

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: c3d438b85d2fa5fee3e8f26986170c9d8f64adf4ad5ca76a9531a4e7f7d25a89
4
- data.tar.gz: 87fbb221add46447626c3c50c04b69f2540f02beaff8ddec501b5882a7d61bed
3
+ metadata.gz: f93fb7220ed41b9c8f2c9bee1fcd91cc621bcacdbdee45e30b3fae34a14d53a2
4
+ data.tar.gz: 2903a5624826e557958aef4866ce25e578bbcf11179cdfd50c80e6df8289e6b6
5
5
  SHA512:
6
- metadata.gz: '09a5dbed10f9052c4303e0248155ade541276031e7380ffed621883fc3c8d0fb0b0f7c42d78a2c73d0817d322e746dc5c46ef4b4606be3b710ba1b1a3bea637a'
7
- data.tar.gz: a1fa6b2e069a1c3209430304e89749978eede258de9304991fc54071247762e0832c4fb8243127385cb1e802775d7e3fd6e2dae414bf97265ee8925ea39c9ecf
6
+ metadata.gz: 51ec1c43b9753ef3926a98c931fab3d71ff2eb5c2274af5d0846a2ba61c2e18e8b1531d6acaba5d8641f6e91e6ff1421b703fe4e12ca652efd96839d307ab19f
7
+ data.tar.gz: c425bf8d64824680695fc75b5336ecd98b2240015bb599a382d4fc7de094a5c341433da006c1fcf04581d3793e47e7aaaa2f3835fc99c9e307e51d8324e24228
@@ -58,12 +58,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
58
  add_message "cloud_foundry.perm.protos.HasRoleForGroupResponse" do
59
59
  optional :has_role, :bool, 1
60
60
  end
61
- add_message "cloud_foundry.perm.protos.ListActorRolesRequest" do
62
- optional :actor, :message, 2, "cloud_foundry.perm.protos.Actor"
63
- end
64
- add_message "cloud_foundry.perm.protos.ListActorRolesResponse" do
65
- repeated :roles, :message, 2, "cloud_foundry.perm.protos.Role"
66
- end
67
61
  add_message "cloud_foundry.perm.protos.ListRolePermissionsRequest" do
68
62
  optional :role_name, :string, 2
69
63
  end
@@ -91,8 +85,6 @@ module CloudFoundry
91
85
  HasRoleResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.HasRoleResponse").msgclass
92
86
  HasRoleForGroupRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.HasRoleForGroupRequest").msgclass
93
87
  HasRoleForGroupResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.HasRoleForGroupResponse").msgclass
94
- ListActorRolesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.ListActorRolesRequest").msgclass
95
- ListActorRolesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.ListActorRolesResponse").msgclass
96
88
  ListRolePermissionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.ListRolePermissionsRequest").msgclass
97
89
  ListRolePermissionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("cloud_foundry.perm.protos.ListRolePermissionsResponse").msgclass
98
90
  end
@@ -24,7 +24,6 @@ module CloudFoundry
24
24
  rpc :UnassignRoleFromGroup, UnassignRoleFromGroupRequest, UnassignRoleFromGroupResponse
25
25
  rpc :HasRole, HasRoleRequest, HasRoleResponse
26
26
  rpc :HasRoleForGroup, HasRoleForGroupRequest, HasRoleForGroupResponse
27
- rpc :ListActorRoles, ListActorRolesRequest, ListActorRolesResponse
28
27
  rpc :ListRolePermissions, ListRolePermissionsRequest, ListRolePermissionsResponse
29
28
  end
30
29
 
@@ -108,20 +108,6 @@ module CloudFoundry
108
108
  raise Errors.from_grpc_error(e)
109
109
  end
110
110
 
111
- def list_actor_roles(actor_id:, namespace:)
112
- actor = Protos::Actor.new(id: actor_id, namespace: namespace)
113
- request = Protos::ListActorRolesRequest.new(actor: actor)
114
-
115
- response = grpc_role_service.list_actor_roles(request)
116
- roles = response.roles
117
-
118
- roles.map do |role|
119
- Models::Role.new(name: role.name)
120
- end
121
- rescue GRPC::BadStatus => e
122
- raise Errors.from_grpc_error(e)
123
- end
124
-
125
111
  def list_role_permissions(role_name:)
126
112
  request = Protos::ListRolePermissionsRequest.new(role_name: role_name)
127
113
 
data/lib/perm/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CloudFoundry
4
4
  module Perm
5
- VERSION = '0.0.8'
5
+ VERSION = '0.0.9'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-perm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudFoundry Permissions Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2018-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc