Class: KeycloakAdmin::ClientAuthzPolicyRepresentation
- Inherits:
-
Representation
- Object
- Representation
- KeycloakAdmin::ClientAuthzPolicyRepresentation
- Defined in:
- lib/keycloak-admin/representation/client_authz_policy_representation.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#decision_strategy ⇒ Object
Returns the value of attribute decision_strategy.
-
#description ⇒ Object
Returns the value of attribute description.
-
#fetch_roles ⇒ Object
Returns the value of attribute fetch_roles.
-
#id ⇒ Object
Returns the value of attribute id.
-
#logic ⇒ Object
Returns the value of attribute logic.
-
#name ⇒ Object
Returns the value of attribute name.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Methods inherited from Representation
Methods included from CamelJson
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def config @config end |
#decision_strategy ⇒ Object
Returns the value of attribute decision_strategy.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def decision_strategy @decision_strategy end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def description @description end |
#fetch_roles ⇒ Object
Returns the value of attribute fetch_roles.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def fetch_roles @fetch_roles end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def id @id end |
#logic ⇒ Object
Returns the value of attribute logic.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def logic @logic end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def name @name end |
#roles ⇒ Object
Returns the value of attribute roles.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def roles @roles end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 3 def type @type end |
Class Method Details
.from_hash(hash) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/keycloak-admin/representation/client_authz_policy_representation.rb', line 13 def self.from_hash(hash) resource = new resource.id = hash["id"] resource.name = hash["name"] resource.description = hash["description"] resource.type = hash["type"] resource.logic = hash["logic"] resource.decision_strategy = hash["decisionStrategy"] resource.roles = hash["roles"] resource.fetch_roles = hash["fetchRoles"] resource.config = ClientAuthzPolicyConfigRepresentation.from_hash((hash["config"] || {})) resource end |