cf-perm 0.0.0 → 0.0.1

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
  SHA1:
3
- metadata.gz: 2e0cc38271569c48c51a2c0877be866ef286a748
4
- data.tar.gz: ba4b8ca77f6367b5688f82c50a6218d313fa40e1
3
+ metadata.gz: c7125e6f9fded928fc9d49e833237643482d998e
4
+ data.tar.gz: 93406093631ca371dbaa93c4292be9bab1faa00f
5
5
  SHA512:
6
- metadata.gz: e4a985c559c37091598144ee9ac0dd044ba1b07b310184fe41024cde988d923a9dc921e7b25207b350908111ec923db3d2e4e20bf044ee7c8343ade9db64e68e
7
- data.tar.gz: 9476625520fe357e4342e85fafb5abd0781c4d03c29b4ba191919708976a0106efd61817c8726d0d5d7038ec7252e8fc6617609cb6cbcd853ba0c9267420dbd5
6
+ metadata.gz: 1e880c39115b70254c856b5fb0967f36bbd101ca1ebb0a252f1ac0b4e521d9f47adf784b3716efe6a509c6d18b5821a4ffca317aa9c815d0b7ce09d5ff8f068a
7
+ data.tar.gz: f374e854a82c72a19278c410d1618aab0d2dedabba1fff5cd21880ec24ad243fc6c006469297f4c977222e755a22aea858ea7e7a0495907eee2ef12079e6b7eb
@@ -6,7 +6,7 @@ require 'google/protobuf'
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
7
  add_message "cloud_foundry.perm.protos.Actor" do
8
8
  optional :id, :string, 2
9
- optional :issuer, :string, 3
9
+ optional :namespace, :string, 3
10
10
  end
11
11
  end
12
12
 
@@ -54,8 +54,8 @@ module CloudFoundry
54
54
  raise Errors.from_grpc_error(e)
55
55
  end
56
56
 
57
- def assign_role(role_name:, actor_id:, issuer:)
58
- actor = Protos::Actor.new(id: actor_id, issuer: issuer)
57
+ def assign_role(role_name:, actor_id:, namespace:)
58
+ actor = Protos::Actor.new(id: actor_id, namespace: namespace)
59
59
  request = Protos::AssignRoleRequest.new(actor: actor, role_name: role_name)
60
60
 
61
61
  grpc_role_service.assign_role(request)
@@ -65,8 +65,8 @@ module CloudFoundry
65
65
  raise Errors.from_grpc_error(e)
66
66
  end
67
67
 
68
- def unassign_role(role_name:, actor_id:, issuer:)
69
- actor = Protos::Actor.new(id: actor_id, issuer: issuer)
68
+ def unassign_role(role_name:, actor_id:, namespace:)
69
+ actor = Protos::Actor.new(id: actor_id, namespace: namespace)
70
70
  request = Protos::UnassignRoleRequest.new(actor: actor, role_name: role_name)
71
71
 
72
72
  grpc_role_service.unassign_role(request)
@@ -77,8 +77,8 @@ module CloudFoundry
77
77
  end
78
78
 
79
79
  # rubocop:disable Naming/PredicateName
80
- def has_role?(role_name:, actor_id:, issuer:)
81
- actor = Protos::Actor.new(id: actor_id, issuer: issuer)
80
+ def has_role?(role_name:, actor_id:, namespace:)
81
+ actor = Protos::Actor.new(id: actor_id, namespace: namespace)
82
82
  request = Protos::HasRoleRequest.new(actor: actor, role_name: role_name)
83
83
 
84
84
  response = grpc_role_service.has_role(request)
@@ -87,8 +87,8 @@ module CloudFoundry
87
87
  raise Errors.from_grpc_error(e)
88
88
  end
89
89
 
90
- def list_actor_roles(actor_id:, issuer:)
91
- actor = Protos::Actor.new(id: actor_id, issuer: issuer)
90
+ def list_actor_roles(actor_id:, namespace:)
91
+ actor = Protos::Actor.new(id: actor_id, namespace: namespace)
92
92
  request = Protos::ListActorRolesRequest.new(actor: actor)
93
93
 
94
94
  response = grpc_role_service.list_actor_roles(request)
@@ -114,8 +114,8 @@ module CloudFoundry
114
114
  raise Errors.from_grpc_error(e)
115
115
  end
116
116
 
117
- def has_permission?(actor_id:, issuer:, permission_name:, resource_id:)
118
- actor = Protos::Actor.new(id: actor_id, issuer: issuer)
117
+ def has_permission?(actor_id:, namespace:, permission_name:, resource_id:)
118
+ actor = Protos::Actor.new(id: actor_id, namespace: namespace)
119
119
  request = Protos::HasPermissionRequest.new(
120
120
  actor: actor,
121
121
  permission_name: permission_name,
@@ -128,8 +128,8 @@ module CloudFoundry
128
128
  raise Errors.from_grpc_error(e)
129
129
  end
130
130
 
131
- def list_resource_patterns(actor_id:, issuer:, permission_name:)
132
- actor = Protos::Actor.new(id: actor_id, issuer: issuer)
131
+ def list_resource_patterns(actor_id:, namespace:, permission_name:)
132
+ actor = Protos::Actor.new(id: actor_id, namespace: namespace)
133
133
  request = Protos::ListResourcePatternsRequest.new(
134
134
  actor: actor,
135
135
  permission_name: permission_name
data/lib/perm/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CloudFoundry
4
4
  module Perm
5
- VERSION = '0.0.0'
5
+ VERSION = '0.0.1'
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.0
4
+ version: 0.0.1
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-04 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc