Class: ManageIQ::API::Client::Identity

Inherits:
Object
  • Object
show all
Defined in:
lib/manageiq/api/client/identity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identity_spec) ⇒ Identity

Returns a new instance of Identity.



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/manageiq/api/client/identity.rb', line 15

def initialize(identity_spec)
  @userid      = identity_spec["userid"]
  @name        = identity_spec["name"]
  @user_href   = identity_spec["user_href"]
  @group       = identity_spec["group"]
  @group_href  = identity_spec["group_href"]
  @role        = identity_spec["role"]
  @role_href   = identity_spec["role_href"]
  @tenant      = identity_spec["tenant"]
  @groups      = identity_spec["groups"]
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.



8
9
10
# File 'lib/manageiq/api/client/identity.rb', line 8

def group
  @group
end

#group_hrefObject (readonly)

Returns the value of attribute group_href.



9
10
11
# File 'lib/manageiq/api/client/identity.rb', line 9

def group_href
  @group_href
end

#groupsObject (readonly)

Returns the value of attribute groups.



13
14
15
# File 'lib/manageiq/api/client/identity.rb', line 13

def groups
  @groups
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/manageiq/api/client/identity.rb', line 6

def name
  @name
end

#roleObject (readonly)

Returns the value of attribute role.



10
11
12
# File 'lib/manageiq/api/client/identity.rb', line 10

def role
  @role
end

#role_hrefObject (readonly)

Returns the value of attribute role_href.



11
12
13
# File 'lib/manageiq/api/client/identity.rb', line 11

def role_href
  @role_href
end

#tenantObject (readonly)

Returns the value of attribute tenant.



12
13
14
# File 'lib/manageiq/api/client/identity.rb', line 12

def tenant
  @tenant
end

#user_hrefObject (readonly)

Returns the value of attribute user_href.



7
8
9
# File 'lib/manageiq/api/client/identity.rb', line 7

def user_href
  @user_href
end

#useridObject (readonly)

Returns the value of attribute userid.



5
6
7
# File 'lib/manageiq/api/client/identity.rb', line 5

def userid
  @userid
end