Class: MicrosoftGraph::Models::WindowsInformationProtectionAppLockerFile

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

Overview

Windows Information Protection AppLocker File

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 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

Raises:

  • (StandardError)


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_nameObject

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

#fileObject

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_hashObject

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_deserializersObject

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

Raises:

  • (StandardError)


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

#versionObject

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