Class: KeycloakAdmin::ClientAuthzPermissionRepresentation

Inherits:
Representation
  • Object
show all
Defined in:
lib/keycloak-admin/representation/client_authz_permission_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

#decision_strategyObject

Returns the value of attribute decision_strategy.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def decision_strategy
  @decision_strategy
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def description
  @description
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def id
  @id
end

#logicObject

Returns the value of attribute logic.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def logic
  @logic
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def name
  @name
end

#policiesObject

Returns the value of attribute policies.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def policies
  @policies
end

#resource_typeObject

Returns the value of attribute resource_type.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def resource_type
  @resource_type
end

#resourcesObject

Returns the value of attribute resources.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def resources
  @resources
end

#scopesObject

Returns the value of attribute scopes.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def scopes
  @scopes
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 8

def type
  @type
end

Class Method Details

.from_hash(hash) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/keycloak-admin/representation/client_authz_permission_representation.rb', line 19

def self.from_hash(hash)
  resource                   = new
  resource.id                = hash["id"]
  resource.name              = hash["name"]
  resource.description       = hash["description"]
  resource.decision_strategy = hash["decisionStrategy"]
  resource.resource_type     = hash["resourceType"]
  resource.resources         = hash["resources"]
  resource.policies          = hash["policies"]
  resource.scopes            = hash["scopes"]
  resource.logic             = hash["logic"]
  resource.type              = hash["type"]
  resource
end