Class: MicrosoftGraph::Models::UserInstallStateSummary

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/user_install_state_summary.rb

Overview

Contains properties for the installation state summary for a user.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new userInstallStateSummary and sets the default values.



30
31
32
# File 'lib/models/user_install_state_summary.rb', line 30

def initialize()
    super
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a user_install_state_summary

Raises:

  • (StandardError)


38
39
40
41
# File 'lib/models/user_install_state_summary.rb', line 38

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UserInstallStateSummary.new
end

Instance Method Details

#device_statesObject

Gets the deviceStates property value. The install state of the eBook.

Returns:

  • a device_install_state



46
47
48
# File 'lib/models/user_install_state_summary.rb', line 46

def device_states
    return @device_states
end

#device_states=(value) ⇒ Object

Sets the deviceStates property value. The install state of the eBook.

Parameters:

  • value

    Value to set for the deviceStates property.

Returns:

  • a void



54
55
56
# File 'lib/models/user_install_state_summary.rb', line 54

def device_states=(value)
    @device_states = value
end

#failed_device_countObject

Gets the failedDeviceCount property value. Failed Device Count.

Returns:

  • a integer



61
62
63
# File 'lib/models/user_install_state_summary.rb', line 61

def failed_device_count
    return @failed_device_count
end

#failed_device_count=(value) ⇒ Object

Sets the failedDeviceCount property value. Failed Device Count.

Parameters:

  • value

    Value to set for the failedDeviceCount property.

Returns:

  • a void



69
70
71
# File 'lib/models/user_install_state_summary.rb', line 69

def failed_device_count=(value)
    @failed_device_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



76
77
78
79
80
81
82
83
84
# File 'lib/models/user_install_state_summary.rb', line 76

def get_field_deserializers()
    return super.merge({
        "deviceStates" => lambda {|n| @device_states = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }) },
        "failedDeviceCount" => lambda {|n| @failed_device_count = n.get_number_value() },
        "installedDeviceCount" => lambda {|n| @installed_device_count = n.get_number_value() },
        "notInstalledDeviceCount" => lambda {|n| @not_installed_device_count = n.get_number_value() },
        "userName" => lambda {|n| @user_name = n.get_string_value() },
    })
end

#installed_device_countObject

Gets the installedDeviceCount property value. Installed Device Count.

Returns:

  • a integer



89
90
91
# File 'lib/models/user_install_state_summary.rb', line 89

def installed_device_count
    return @installed_device_count
end

#installed_device_count=(value) ⇒ Object

Sets the installedDeviceCount property value. Installed Device Count.

Parameters:

  • value

    Value to set for the installedDeviceCount property.

Returns:

  • a void



97
98
99
# File 'lib/models/user_install_state_summary.rb', line 97

def installed_device_count=(value)
    @installed_device_count = value
end

#not_installed_device_countObject

Gets the notInstalledDeviceCount property value. Not installed device count.

Returns:

  • a integer



104
105
106
# File 'lib/models/user_install_state_summary.rb', line 104

def not_installed_device_count
    return @not_installed_device_count
end

#not_installed_device_count=(value) ⇒ Object

Sets the notInstalledDeviceCount property value. Not installed device count.

Parameters:

  • value

    Value to set for the notInstalledDeviceCount property.

Returns:

  • a void



112
113
114
# File 'lib/models/user_install_state_summary.rb', line 112

def not_installed_device_count=(value)
    @not_installed_device_count = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


120
121
122
123
124
125
126
127
128
# File 'lib/models/user_install_state_summary.rb', line 120

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("deviceStates", @device_states)
    writer.write_number_value("failedDeviceCount", @failed_device_count)
    writer.write_number_value("installedDeviceCount", @installed_device_count)
    writer.write_number_value("notInstalledDeviceCount", @not_installed_device_count)
    writer.write_string_value("userName", @user_name)
end

#user_nameObject

Gets the userName property value. User name.

Returns:

  • a string



133
134
135
# File 'lib/models/user_install_state_summary.rb', line 133

def user_name
    return @user_name
end

#user_name=(value) ⇒ Object

Sets the userName property value. User name.

Parameters:

  • value

    Value to set for the userName property.

Returns:

  • a void



141
142
143
# File 'lib/models/user_install_state_summary.rb', line 141

def user_name=(value)
    @user_name = value
end