Class: MicrosoftGraph::Models::Win32LobAppRegistryRule

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

Overview

A complex type to store registry rule data for a Win32 LOB app.

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.



63
64
65
66
# File 'lib/models/win32_lob_app_registry_rule.rb', line 63

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:

  • parse_node

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

Returns:

  • a win32_lob_app_registry_rule

Raises:

  • (StandardError)


72
73
74
75
# File 'lib/models/win32_lob_app_registry_rule.rb', line 72

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



33
34
35
# File 'lib/models/win32_lob_app_registry_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 search the 32-bit registry on 64-bit systems.

Parameters:

  • value

    Value to set for the check32BitOn64System property.

Returns:

  • a void



41
42
43
# File 'lib/models/win32_lob_app_registry_rule.rb', line 41

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



48
49
50
# File 'lib/models/win32_lob_app_registry_rule.rb', line 48

def comparison_value
    return @comparison_value
end

#comparison_value=(value) ⇒ Object

Sets the comparisonValue property value. The registry comparison value.

Parameters:

  • value

    Value to set for the comparisonValue property.

Returns:

  • a void



56
57
58
# File 'lib/models/win32_lob_app_registry_rule.rb', line 56

def comparison_value=(value)
    @comparison_value = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

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



94
95
96
# File 'lib/models/win32_lob_app_registry_rule.rb', line 94

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

    Value to set for the keyPath property.

Returns:

  • a void



102
103
104
# File 'lib/models/win32_lob_app_registry_rule.rb', line 102

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



109
110
111
# File 'lib/models/win32_lob_app_registry_rule.rb', line 109

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

    Value to set for the operationType property.

Returns:

  • a void



117
118
119
# File 'lib/models/win32_lob_app_registry_rule.rb', line 117

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



124
125
126
# File 'lib/models/win32_lob_app_registry_rule.rb', line 124

def operator
    return @operator
end

#operator=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the operator property.

Returns:

  • a void



132
133
134
# File 'lib/models/win32_lob_app_registry_rule.rb', line 132

def operator=(value)
    @operator = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

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



154
155
156
# File 'lib/models/win32_lob_app_registry_rule.rb', line 154

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

    Value to set for the valueName property.

Returns:

  • a void



162
163
164
# File 'lib/models/win32_lob_app_registry_rule.rb', line 162

def value_name=(value)
    @value_name = value
end