Class: Conjur::DSL2::Types::Role
- Includes:
- ActsAsCompoundId, ActsAsRole
- Defined in:
- lib/conjur/dsl2/types/records.rb
Instance Method Summary collapse
- #immutable_attribute_names ⇒ Object
- #role_id ⇒ Object
- #role_kind ⇒ Object
- #roleid(default_account = nil) ⇒ Object
Methods included from ActsAsCompoundId
Methods included from ActsAsRole
Methods inherited from Record
Methods inherited from Base
#custom_attribute_names, #id_attribute, inherited, #referenced_records, register_yaml_type, #resource?, #role?, short_name
Methods included from InheritableAttribute
inherit_for, #inheritable_attr
Methods included from TypeChecking
#expect_array, #expect_boolean, #expect_hash, #expect_integer, #expect_layer, #expect_member, #expect_permission, #expect_record, #expect_resource, #expect_role, #expect_string, #expect_type, #test_resource, #test_role
Methods included from AttributeDefinition
#attribute, #define_field, #define_plural_field, #yaml_field?, #yaml_field_type
Instance Method Details
#immutable_attribute_names ⇒ Object
124 125 126 |
# File 'lib/conjur/dsl2/types/records.rb', line 124 def immutable_attribute_names [] end |
#role_id ⇒ Object
121 |
# File 'lib/conjur/dsl2/types/records.rb', line 121 def role_id; id; end |
#role_kind ⇒ Object
122 |
# File 'lib/conjur/dsl2/types/records.rb', line 122 def role_kind; kind; end |
#roleid(default_account = nil) ⇒ Object
116 117 118 119 |
# File 'lib/conjur/dsl2/types/records.rb', line 116 def roleid default_account = nil raise "account is required" unless account || default_account [ account || default_account, kind, id ].join(":") end |