Class: MicrosoftGraph::Models::WindowsInformationProtectionDesktopApp

Inherits:
WindowsInformationProtectionApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/windows_information_protection_desktop_app.rb

Overview

Desktop App for Windows information protection

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from WindowsInformationProtectionApp

#additional_data, #additional_data=, #denied, #denied=, #description, #description=, #display_name, #display_name=, #odata_type, #odata_type=, #product_name, #product_name=, #publisher_name, #publisher_name=

Constructor Details

#initializeObject

Instantiates a new windowsInformationProtectionDesktopApp and sets the default values.



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

def initialize()
    super
    @odata_type = "#microsoft.graph.windowsInformationProtectionDesktopApp"
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_desktop_app

Raises:

  • (StandardError)


78
79
80
81
# File 'lib/models/windows_information_protection_desktop_app.rb', line 78

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

Instance Method Details

#binary_nameObject

Gets the binaryName property value. The binary name.

Returns:

  • a string



24
25
26
# File 'lib/models/windows_information_protection_desktop_app.rb', line 24

def binary_name
    return @binary_name
end

#binary_name=(value) ⇒ Object

Sets the binaryName property value. The binary name.

Parameters:

  • value

    Value to set for the binaryName property.

Returns:

  • a void



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

def binary_name=(value)
    @binary_name = value
end

#binary_version_highObject

Gets the binaryVersionHigh property value. The high binary version.

Returns:

  • a string



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

def binary_version_high
    return @binary_version_high
end

#binary_version_high=(value) ⇒ Object

Sets the binaryVersionHigh property value. The high binary version.

Parameters:

  • value

    Value to set for the binaryVersionHigh property.

Returns:

  • a void



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

def binary_version_high=(value)
    @binary_version_high = value
end

#binary_version_lowObject

Gets the binaryVersionLow property value. The lower binary version.

Returns:

  • a string



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

def binary_version_low
    return @binary_version_low
end

#binary_version_low=(value) ⇒ Object

Sets the binaryVersionLow property value. The lower binary version.

Parameters:

  • value

    Value to set for the binaryVersionLow property.

Returns:

  • a void



62
63
64
# File 'lib/models/windows_information_protection_desktop_app.rb', line 62

def binary_version_low=(value)
    @binary_version_low = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



86
87
88
89
90
91
92
# File 'lib/models/windows_information_protection_desktop_app.rb', line 86

def get_field_deserializers()
    return super.merge({
        "binaryName" => lambda {|n| @binary_name = n.get_string_value() },
        "binaryVersionHigh" => lambda {|n| @binary_version_high = n.get_string_value() },
        "binaryVersionLow" => lambda {|n| @binary_version_low = 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)


98
99
100
101
102
103
104
# File 'lib/models/windows_information_protection_desktop_app.rb', line 98

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("binaryName", @binary_name)
    writer.write_string_value("binaryVersionHigh", @binary_version_high)
    writer.write_string_value("binaryVersionLow", @binary_version_low)
end