Class: MicrosoftGraph::Models::Win32LobAppRegistryRule

Inherits:
Win32LobAppRule show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/win32_lob_app_registry_rule.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Win32LobAppRule

#additional_data, #additional_data=, #odata_type, #odata_type=, #rule_type, #rule_type=

Constructor Details

#initializeObject

Instantiates a new Win32LobAppRegistryRule and sets the default values.



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

def initialize()
    super
    @odata_type = "#microsoft.graph.win32LobAppRegistryRule"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • The parse node to use to read the discriminator value and create the object

Returns:

  • a win32_lob_app_registry_rule

Raises:



70
71
72
73
# File 'lib/models/win32_lob_app_registry_rule.rb', line 70

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

Instance Method Details

#check32_bit_on64_systemObject

Gets the check32BitOn64System property value. A value indicating whether to search the 32-bit registry on 64-bit systems.

Returns:

  • a boolean



31
32
33
# File 'lib/models/win32_lob_app_registry_rule.rb', line 31

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 search the 32-bit registry on 64-bit systems.

Parameters:

  • Value to set for the check32_bit_on64_system property.

Returns:

  • a void



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

def check32_bit_on64_system=(value)
    @check32_bit_on64_system = value
end

#comparison_valueObject

Gets the comparisonValue property value. The registry comparison value.

Returns:

  • a string



46
47
48
# File 'lib/models/win32_lob_app_registry_rule.rb', line 46

def comparison_value
    return @comparison_value
end

#comparison_value=(value) ⇒ Object

Sets the comparisonValue property value. The registry comparison value.

Parameters:

  • Value to set for the comparison_value property.

Returns:

  • a void



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

def comparison_value=(value)
    @comparison_value = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



78
79
80
81
82
83
84
85
86
87
# File 'lib/models/win32_lob_app_registry_rule.rb', line 78

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() },
        "keyPath" => lambda {|n| @key_path = n.get_string_value() },
        "operationType" => lambda {|n| @operation_type = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppRegistryRuleOperationType) },
        "operator" => lambda {|n| @operator = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppRuleOperator) },
        "valueName" => lambda {|n| @value_name = n.get_string_value() },
    })
end

#key_pathObject

Gets the keyPath property value. The full path of the registry entry containing the value to detect.

Returns:

  • a string



92
93
94
# File 'lib/models/win32_lob_app_registry_rule.rb', line 92

def key_path
    return @key_path
end

#key_path=(value) ⇒ Object

Sets the keyPath property value. The full path of the registry entry containing the value to detect.

Parameters:

  • Value to set for the key_path property.

Returns:

  • a void



100
101
102
# File 'lib/models/win32_lob_app_registry_rule.rb', line 100

def key_path=(value)
    @key_path = value
end

#operation_typeObject

Gets the operationType property value. Contains all supported registry data detection type.

Returns:

  • a win32_lob_app_registry_rule_operation_type



107
108
109
# File 'lib/models/win32_lob_app_registry_rule.rb', line 107

def operation_type
    return @operation_type
end

#operation_type=(value) ⇒ Object

Sets the operationType property value. Contains all supported registry data detection type.

Parameters:

  • Value to set for the operation_type property.

Returns:

  • a void



115
116
117
# File 'lib/models/win32_lob_app_registry_rule.rb', line 115

def operation_type=(value)
    @operation_type = value
end

#operatorObject

Gets the operator property value. Contains properties for detection operator.

Returns:

  • a win32_lob_app_rule_operator



122
123
124
# File 'lib/models/win32_lob_app_registry_rule.rb', line 122

def operator
    return @operator
end

#operator=(value) ⇒ Object

Sets the operator property value. Contains properties for detection operator.

Parameters:

  • Value to set for the operator property.

Returns:

  • a void



130
131
132
# File 'lib/models/win32_lob_app_registry_rule.rb', line 130

def operator=(value)
    @operator = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • Serialization writer to use to serialize this model

Returns:

  • a void

Raises:



138
139
140
141
142
143
144
145
146
147
# File 'lib/models/win32_lob_app_registry_rule.rb', line 138

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("keyPath", @key_path)
    writer.write_enum_value("operationType", @operation_type)
    writer.write_enum_value("operator", @operator)
    writer.write_string_value("valueName", @value_name)
end

#value_nameObject

Gets the valueName property value. The name of the registry value to detect.

Returns:

  • a string



152
153
154
# File 'lib/models/win32_lob_app_registry_rule.rb', line 152

def value_name
    return @value_name
end

#value_name=(value) ⇒ Object

Sets the valueName property value. The name of the registry value to detect.

Parameters:

  • Value to set for the value_name property.

Returns:

  • a void



160
161
162
# File 'lib/models/win32_lob_app_registry_rule.rb', line 160

def value_name=(value)
    @value_name = value
end