Sha256: 86669db9a101b017c569b75fc24552958d8a8eec8d0399322d0d8d0028f5dde0
Contents?: true
Size: 807 Bytes
Versions: 4
Compression:
Stored size: 807 Bytes
Contents
module Conjur::Policy::Types class Member < Base def initialize role = nil self.role = role end attribute :role attribute :admin, kind: :boolean, singular: true self.description = %( Designate the members of a [Role](#reference/role) such as a [Group](#reference/group). The member indicates the "grantee" (which role will gain the role grant), as well as the `admin` option which determines whether the grantee can grant/revoke the role to other roles. The default value for `admin` is `false`. ) self.example = %( - !user dee - !user dum - !group brothers - !grant role: !group brothers members: - !user dee - !member dum role: !user dum admin: true ) def to_s "#{role} #{admin ? 'with' : 'without'} admin option" end end end
Version data entries
4 entries across 4 versions & 2 rubygems