Class: KeycloakAdmin::IdentityProviderRepresentation

Inherits:
Representation show all
Defined in:
lib/keycloak-admin/representation/identity_provider_representation.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Representation

#as_json, from_json, #to_json

Methods included from CamelJson

#camelize

Constructor Details

#initialize(alias_name, display_name, internal_id, provider_id, enabled, update_profile_first_login_mode, trust_email, store_token, add_read_token_role_on_create, authenticate_by_default, link_only, first_broker_login_flow_alias, config) ⇒ IdentityProviderRepresentation

Returns a new instance of IdentityProviderRepresentation.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 39

def initialize(alias_name,
               display_name,
               internal_id,
               provider_id,
               enabled,
               ,
               trust_email,
               store_token,
               add_read_token_role_on_create,
               authenticate_by_default,
               link_only,
               ,
               config)
  @alias                           = alias_name
  @display_name                    = display_name
  @internal_id                     = internal_id
  @provider_id                     = provider_id
  @enabled                         = enabled
  @update_profile_first_login_mode = 
  @trust_email                     = trust_email
  @store_token                     = store_token
  @add_read_token_role_on_create   = add_read_token_role_on_create
  @authenticate_by_default         = authenticate_by_default
  @link_only                       = link_only
  @first_broker_login_flow_alias   = 
  @config                          = config || {}
end

Instance Attribute Details

#add_read_token_role_on_createObject

Returns the value of attribute add_read_token_role_on_create.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def add_read_token_role_on_create
  @add_read_token_role_on_create
end

#aliasObject

Returns the value of attribute alias.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def alias
  @alias
end

#authenticate_by_defaultObject

Returns the value of attribute authenticate_by_default.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def authenticate_by_default
  @authenticate_by_default
end

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def config
  @config
end

#display_nameObject

Returns the value of attribute display_name.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def display_name
  @display_name
end

#enabledObject

Returns the value of attribute enabled.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def enabled
  @enabled
end

#first_broker_login_flow_aliasObject

Returns the value of attribute first_broker_login_flow_alias.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def 
  @first_broker_login_flow_alias
end

#internal_idObject

Returns the value of attribute internal_id.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def internal_id
  @internal_id
end

Returns the value of attribute link_only.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def link_only
  @link_only
end

#provider_idObject

Returns the value of attribute provider_id.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def provider_id
  @provider_id
end

#store_tokenObject

Returns the value of attribute store_token.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def store_token
  @store_token
end

#trust_emailObject

Returns the value of attribute trust_email.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def trust_email
  @trust_email
end

#update_profile_first_login_modeObject

Returns the value of attribute update_profile_first_login_mode.



3
4
5
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 3

def 
  @update_profile_first_login_mode
end

Class Method Details

.from_hash(hash) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/keycloak-admin/representation/identity_provider_representation.rb', line 17

def self.from_hash(hash)
  if hash.nil?
    nil
  else
    new(
      hash["alias"],
      hash["displayName"],
      hash["internalId"],
      hash["providerId"],
      hash["enabled"],
      hash["updateProfileFirstLoginMode"],
      hash["trustEmail"],
      hash["storeToken"],
      hash["addReadTokenRoleOnCreate"],
      hash["authenticateByDefault"],
      hash["linkOnly"],
      hash["firstBrokerLoginFlowAlias"],
      hash["config"]
    )
  end
end