Class: MicrosoftGraph::Models::Win32LobAppFileSystemRule
- Inherits:
-
Win32LobAppRule
- Object
- Win32LobAppRule
- MicrosoftGraph::Models::Win32LobAppFileSystemRule
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/win32_lob_app_file_system_rule.rb
Overview
A complex type to store file or folder rule data for a Win32 LOB app.
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
-
#check32_bit_on64_system ⇒ Object
Gets the check32BitOn64System property value.
-
#check32_bit_on64_system=(value) ⇒ Object
Sets the check32BitOn64System property value.
-
#comparison_value ⇒ Object
Gets the comparisonValue property value.
-
#comparison_value=(value) ⇒ Object
Sets the comparisonValue property value.
-
#file_or_folder_name ⇒ Object
Gets the fileOrFolderName property value.
-
#file_or_folder_name=(value) ⇒ Object
Sets the fileOrFolderName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new win32LobAppFileSystemRule and sets the default values.
-
#operation_type ⇒ Object
Gets the operationType property value.
-
#operation_type=(value) ⇒ Object
Sets the operationType property value.
-
#operator ⇒ Object
Gets the operator property value.
-
#operator=(value) ⇒ Object
Sets the operator property value.
-
#path ⇒ Object
Gets the path property value.
-
#path=(value) ⇒ Object
Sets the path property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Win32LobAppRule
#additional_data, #additional_data=, #odata_type, #odata_type=, #rule_type, #rule_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new win32LobAppFileSystemRule and sets the default values.
63 64 65 66 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 63 def initialize() super @odata_type = "#microsoft.graph.win32LobAppFileSystemRule" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
72 73 74 75 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Win32LobAppFileSystemRule.new end |
Instance Method Details
#check32_bit_on64_system ⇒ Object
Gets the check32BitOn64System property value. A value indicating whether to expand environment variables in the 32-bit context on 64-bit systems.
33 34 35 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 33 def check32_bit_on64_system return @check32_bit_on64_system end |
#check32_bit_on64_system=(value) ⇒ Object
Sets the check32BitOn64System property value. A value indicating whether to expand environment variables in the 32-bit context on 64-bit systems.
41 42 43 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 41 def check32_bit_on64_system=(value) @check32_bit_on64_system = value end |
#comparison_value ⇒ Object
Gets the comparisonValue property value. The file or folder comparison value.
48 49 50 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 48 def comparison_value return @comparison_value end |
#comparison_value=(value) ⇒ Object
Sets the comparisonValue property value. The file or folder comparison value.
56 57 58 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 56 def comparison_value=(value) @comparison_value = value end |
#file_or_folder_name ⇒ Object
Gets the fileOrFolderName property value. The file or folder name to look up.
80 81 82 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 80 def file_or_folder_name return @file_or_folder_name end |
#file_or_folder_name=(value) ⇒ Object
Sets the fileOrFolderName property value. The file or folder name to look up.
88 89 90 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 88 def file_or_folder_name=(value) @file_or_folder_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 103 104 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 95 def get_field_deserializers() return super.merge({ "check32BitOn64System" => lambda {|n| @check32_bit_on64_system = n.get_boolean_value() }, "comparisonValue" => lambda {|n| @comparison_value = n.get_string_value() }, "fileOrFolderName" => lambda {|n| @file_or_folder_name = n.get_string_value() }, "operationType" => lambda {|n| @operation_type = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppFileSystemOperationType) }, "operator" => lambda {|n| @operator = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppRuleOperator) }, "path" => lambda {|n| @path = n.get_string_value() }, }) end |
#operation_type ⇒ Object
Gets the operationType property value. Contains all supported file system detection type.
109 110 111 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 109 def operation_type return @operation_type end |
#operation_type=(value) ⇒ Object
Sets the operationType property value. Contains all supported file system detection type.
117 118 119 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 117 def operation_type=(value) @operation_type = value end |
#operator ⇒ Object
Gets the operator property value. Contains properties for detection operator.
124 125 126 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 124 def operator return @operator end |
#operator=(value) ⇒ Object
Sets the operator property value. Contains properties for detection operator.
132 133 134 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 132 def operator=(value) @operator = value end |
#path ⇒ Object
Gets the path property value. The file or folder path to look up.
139 140 141 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 139 def path return @path end |
#path=(value) ⇒ Object
Sets the path property value. The file or folder path to look up.
147 148 149 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 147 def path=(value) @path = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
155 156 157 158 159 160 161 162 163 164 |
# File 'lib/models/win32_lob_app_file_system_rule.rb', line 155 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("check32BitOn64System", @check32_bit_on64_system) writer.write_string_value("comparisonValue", @comparison_value) writer.write_string_value("fileOrFolderName", @file_or_folder_name) writer.write_enum_value("operationType", @operation_type) writer.write_enum_value("operator", @operator) writer.write_string_value("path", @path) end |