Class: KeycloakAdmin::ClientAuthzPolicyRepresentation

Inherits:
Representation
  • Object
show all
Defined in:
lib/keycloak-admin/representation/client_authz_policy_representation.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Representation

#as_json, from_json, #to_json

Methods included from CamelJson

#camelize

Instance Attribute Details

#configObject

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_strategyObject

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

#descriptionObject

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_rolesObject

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

#idObject

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

#logicObject

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

#nameObject

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

#rolesObject

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

#typeObject

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