Class: MicrosoftGraph::Models::WindowsInformationProtectionAppLearningSummary

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a windows_information_protection_app_learning_summary

Raises:

  • (StandardError)


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_nameObject

Gets the applicationName property value. Application Name

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the applicationName property.

Returns:

  • a void



32
33
34
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 32

def application_name=(value)
    @application_name = value
end

#application_typeObject

Gets the applicationType property value. Possible types of Application

Returns:

  • a application_type



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

Parameters:

  • value

    Value to set for the applicationType property.

Returns:

  • a void



47
48
49
# File 'lib/models/windows_information_protection_app_learning_summary.rb', line 47

def application_type=(value)
    @application_type = value
end

#device_countObject

Gets the deviceCount property value. Device Count

Returns:

  • a integer



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

Parameters:

  • value

    Value to set for the deviceCount property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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