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 +4 -4
- data/lib/perm/protos/role_service_pb.rb +0 -8
- data/lib/perm/protos/role_service_services_pb.rb +0 -1
- data/lib/perm/v1/client.rb +0 -14
- data/lib/perm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f93fb7220ed41b9c8f2c9bee1fcd91cc621bcacdbdee45e30b3fae34a14d53a2
|
4
|
+
data.tar.gz: 2903a5624826e557958aef4866ce25e578bbcf11179cdfd50c80e6df8289e6b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/perm/v1/client.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2018-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|