Class: MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile
- Inherits:
-
Entity
- Object
- Entity
- MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_information_protection_app_locker_file.rb
Overview
Windows Information Protection AppLocker File
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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#file ⇒ Object
Gets the file property value.
-
#file=(value) ⇒ Object
Sets the file property value.
-
#file_hash ⇒ Object
Gets the fileHash property value.
-
#file_hash=(value) ⇒ Object
Sets the fileHash property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsInformationProtectionAppLockerFile and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsInformationProtectionAppLockerFile and sets the default values.
27 28 29 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 27 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
35 36 37 38 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 35 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsInformationProtectionAppLockerFile.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The friendly name
43 44 45 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 43 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The friendly name
51 52 53 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 51 def display_name=(value) @display_name = value end |
#file ⇒ Object
Gets the file property value. File as a byte array
58 59 60 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 58 def file return @file end |
#file=(value) ⇒ Object
Sets the file property value. File as a byte array
66 67 68 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 66 def file=(value) @file = value end |
#file_hash ⇒ Object
Gets the fileHash property value. SHA256 hash of the file
73 74 75 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 73 def file_hash return @file_hash end |
#file_hash=(value) ⇒ Object
Sets the fileHash property value. SHA256 hash of the file
81 82 83 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 81 def file_hash=(value) @file_hash = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
88 89 90 91 92 93 94 95 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 88 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "file" => lambda {|n| @file = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "fileHash" => lambda {|n| @file_hash = n.get_string_value() }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
101 102 103 104 105 106 107 108 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 101 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_object_value("file", @file) writer.write_string_value("fileHash", @file_hash) writer.write_string_value("version", @version) end |
#version ⇒ Object
Gets the version property value. Version of the entity.
113 114 115 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 113 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the entity.
121 122 123 |
# File 'lib/models/windows_information_protection_app_locker_file.rb', line 121 def version=(value) @version = value end |