Class: MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummary
- Inherits:
-
Entity
- Object
- Entity
- MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummary
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_information_protection_app_learning_summary.rb
Overview
Windows Information Protection AppLearning Summary entity.
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
-
#application_name ⇒ Object
Gets the applicationName property value.
-
#application_name=(value) ⇒ Object
Sets the applicationName property value.
-
#application_type ⇒ Object
Gets the applicationType property value.
-
#application_type=(value) ⇒ Object
Sets the applicationType property value.
-
#device_count ⇒ Object
Gets the deviceCount property value.
-
#device_count=(value) ⇒ Object
Sets the deviceCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsInformationProtectionAppLearningSummary and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsInformationProtectionAppLearningSummary and sets the default values.
54 55 56 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 54 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
62 63 64 65 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 62 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsInformationProtectionAppLearningSummary.new end |
Instance Method Details
#application_name ⇒ Object
Gets the applicationName property value. Application Name
24 25 26 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 24 def application_name return @application_name end |
#application_name=(value) ⇒ Object
Sets the applicationName property value. Application Name
32 33 34 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 32 def application_name=(value) @application_name = value end |
#application_type ⇒ Object
Gets the applicationType property value. Possible types of Application
39 40 41 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 39 def application_type return @application_type end |
#application_type=(value) ⇒ Object
Sets the applicationType property value. Possible types of Application
47 48 49 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 47 def application_type=(value) @application_type = value end |
#device_count ⇒ Object
Gets the deviceCount property value. Device Count
70 71 72 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 70 def device_count return @device_count end |
#device_count=(value) ⇒ Object
Sets the deviceCount property value. Device Count
78 79 80 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 78 def device_count=(value) @device_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
85 86 87 88 89 90 91 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 85 def get_field_deserializers() return super.merge({ "applicationName" => lambda {|n| @application_name = n.get_string_value() }, "applicationType" => lambda {|n| @application_type = n.get_enum_value(MicrosoftGraph::Models::ApplicationType) }, "deviceCount" => lambda {|n| @device_count = n.get_number_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
97 98 99 100 101 102 103 |
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 97 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("applicationName", @application_name) writer.write_enum_value("applicationType", @application_type) writer.write_number_value("deviceCount", @device_count) end |