Class: MicrosoftGraph::Models::UserInstallStateSummary
- 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
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#device_states ⇒ Object
Gets the deviceStates property value.
-
#device_states=(value) ⇒ Object
Sets the deviceStates property value.
-
#failed_device_count ⇒ Object
Gets the failedDeviceCount property value.
-
#failed_device_count=(value) ⇒ Object
Sets the failedDeviceCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new userInstallStateSummary and sets the default values.
-
#installed_device_count ⇒ Object
Gets the installedDeviceCount property value.
-
#installed_device_count=(value) ⇒ Object
Sets the installedDeviceCount property value.
-
#not_installed_device_count ⇒ Object
Gets the notInstalledDeviceCount property value.
-
#not_installed_device_count=(value) ⇒ Object
Sets the notInstalledDeviceCount property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_name ⇒ Object
Gets the userName property value.
-
#user_name=(value) ⇒ Object
Sets the userName property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_states ⇒ Object
Gets the deviceStates property value. The install state of the eBook.
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.
54 55 56 |
# File 'lib/models/user_install_state_summary.rb', line 54 def device_states=(value) @device_states = value end |
#failed_device_count ⇒ Object
Gets the failedDeviceCount property value. Failed Device Count.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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_count ⇒ Object
Gets the installedDeviceCount property value. Installed Device Count.
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.
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_count ⇒ Object
Gets the notInstalledDeviceCount property value. Not installed device count.
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.
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
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_name ⇒ Object
Gets the userName property value. User name.
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.
141 142 143 |
# File 'lib/models/user_install_state_summary.rb', line 141 def user_name=(value) @user_name = value end |