Class: MicrosoftGraph::Models::WindowsInformationProtectionDesktopApp
- Inherits:
-
WindowsInformationProtectionApp
- Object
- WindowsInformationProtectionApp
- MicrosoftGraph::Models::WindowsInformationProtectionDesktopApp
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_information_protection_desktop_app.rb
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
-
#binary_name ⇒ Object
Gets the binaryName property value.
-
#binary_name=(value) ⇒ Object
Sets the binaryName property value.
-
#binary_version_high ⇒ Object
Gets the binaryVersionHigh property value.
-
#binary_version_high=(value) ⇒ Object
Sets the binaryVersionHigh property value.
-
#binary_version_low ⇒ Object
Gets the binaryVersionLow property value.
-
#binary_version_low=(value) ⇒ Object
Sets the binaryVersionLow property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new WindowsInformationProtectionDesktopApp and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
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
#initialize ⇒ Object
Instantiates a new WindowsInformationProtectionDesktopApp and sets the default values.
67 68 69 70 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 67 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
76 77 78 79 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 76 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_name ⇒ Object
Gets the binaryName property value. The binary name.
22 23 24 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 22 def binary_name return @binary_name end |
#binary_name=(value) ⇒ Object
Sets the binaryName property value. The binary name.
30 31 32 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 30 def binary_name=(value) @binary_name = value end |
#binary_version_high ⇒ Object
Gets the binaryVersionHigh property value. The high binary version.
37 38 39 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 37 def binary_version_high return @binary_version_high end |
#binary_version_high=(value) ⇒ Object
Sets the binaryVersionHigh property value. The high binary version.
45 46 47 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 45 def binary_version_high=(value) @binary_version_high = value end |
#binary_version_low ⇒ Object
Gets the binaryVersionLow property value. The lower binary version.
52 53 54 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 52 def binary_version_low return @binary_version_low end |
#binary_version_low=(value) ⇒ Object
Sets the binaryVersionLow property value. The lower binary version.
60 61 62 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 60 def binary_version_low=(value) @binary_version_low = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
84 85 86 87 88 89 90 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 84 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
96 97 98 99 100 101 102 |
# File 'lib/models/windows_information_protection_desktop_app.rb', line 96 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 |