Class: MicrosoftGraph::Models::FilterOperatorSchema

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

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 filterOperatorSchema and sets the default values.



37
38
39
# File 'lib/models/filter_operator_schema.rb', line 37

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

Parameters:

  • parse_node

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

Returns:

  • a filter_operator_schema

Raises:

  • (StandardError)


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

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

Instance Method Details

#arityObject

Gets the arity property value. The arity property

Returns:

  • a scope_operator_type



22
23
24
# File 'lib/models/filter_operator_schema.rb', line 22

def arity
    return @arity
end

#arity=(value) ⇒ Object

Sets the arity property value. The arity property

Parameters:

  • value

    Value to set for the arity property.

Returns:

  • a void



30
31
32
# File 'lib/models/filter_operator_schema.rb', line 30

def arity=(value)
    @arity = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
59
# File 'lib/models/filter_operator_schema.rb', line 53

def get_field_deserializers()
    return super.merge({
        "arity" => lambda {|n| @arity = n.get_enum_value(MicrosoftGraph::Models::ScopeOperatorType) },
        "multivaluedComparisonType" => lambda {|n| @multivalued_comparison_type = n.get_enum_value(MicrosoftGraph::Models::ScopeOperatorMultiValuedComparisonType) },
        "supportedAttributeTypes" => lambda {|n| @supported_attribute_types = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttributeType.create_from_discriminator_value(pn) }) },
    })
end

#multivalued_comparison_typeObject

Gets the multivaluedComparisonType property value. The multivaluedComparisonType property

Returns:

  • a scope_operator_multi_valued_comparison_type



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

def multivalued_comparison_type
    return @multivalued_comparison_type
end

#multivalued_comparison_type=(value) ⇒ Object

Sets the multivaluedComparisonType property value. The multivaluedComparisonType property

Parameters:

  • value

    Value to set for the multivaluedComparisonType property.

Returns:

  • a void



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

def multivalued_comparison_type=(value)
    @multivalued_comparison_type = 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)


80
81
82
83
84
85
86
# File 'lib/models/filter_operator_schema.rb', line 80

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("arity", @arity)
    writer.write_enum_value("multivaluedComparisonType", @multivalued_comparison_type)
    writer.write_collection_of_object_values("supportedAttributeTypes", @supported_attribute_types)
end

#supported_attribute_typesObject

Gets the supportedAttributeTypes property value. Attribute types supported by the operator. Possible values are: Boolean, Binary, Reference, Integer, String.

Returns:

  • a attribute_type



91
92
93
# File 'lib/models/filter_operator_schema.rb', line 91

def supported_attribute_types
    return @supported_attribute_types
end

#supported_attribute_types=(value) ⇒ Object

Sets the supportedAttributeTypes property value. Attribute types supported by the operator. Possible values are: Boolean, Binary, Reference, Integer, String.

Parameters:

  • value

    Value to set for the supportedAttributeTypes property.

Returns:

  • a void



99
100
101
# File 'lib/models/filter_operator_schema.rb', line 99

def supported_attribute_types=(value)
    @supported_attribute_types = value
end