Sha256: 51ecac5bd11897df4700035e5a2ad003a2259c953d68456f14782d7c782b54a8

Contents?: true

Size: 849 Bytes

Versions: 13

Compression:

Stored size: 849 Bytes

Contents

module ManageIQ
  module API
    class Client
      class Identity
        attr_reader :userid
        attr_reader :name
        attr_reader :user_href
        attr_reader :group
        attr_reader :group_href
        attr_reader :role
        attr_reader :role_href
        attr_reader :tenant
        attr_reader :groups

        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
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
manageiq-api-client-0.6.0 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.4.0 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.7 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.6 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.5 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.4 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.3 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.2 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.1 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.3.0 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.2.0 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.1.1 lib/manageiq/api/client/identity.rb
manageiq-api-client-0.1.0 lib/manageiq/api/client/identity.rb