Class: MicrosoftGraph::Models::WindowsInformationProtectionNetworkLearningSummary

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

Overview

Windows Information Protection Network learning 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 windowsInformationProtectionNetworkLearningSummary and sets the default values.



21
22
23
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 21

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_network_learning_summary

Raises:

  • (StandardError)


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

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

Instance Method Details

#device_countObject

Gets the deviceCount property value. Device Count

Returns:

  • a integer



37
38
39
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 37

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



45
46
47
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 45

def device_count=(value)
    @device_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



52
53
54
55
56
57
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 52

def get_field_deserializers()
    return super.merge({
        "deviceCount" => lambda {|n| @device_count = n.get_number_value() },
        "url" => lambda {|n| @url = n.get_string_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)


63
64
65
66
67
68
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 63

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_number_value("deviceCount", @device_count)
    writer.write_string_value("url", @url)
end

#urlObject

Gets the url property value. Website url

Returns:

  • a string



73
74
75
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 73

def url
    return @url
end

#url=(value) ⇒ Object

Sets the url property value. Website url

Parameters:

  • value

    Value to set for the url property.

Returns:

  • a void



81
82
83
# File 'lib/models/windows_information_protection_network_learning_summary.rb', line 81

def url=(value)
    @url = value
end