Class: MicrosoftGraph::Models::WorkbookFilterCriteria

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/workbook_filter_criteria.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new workbookFilterCriteria and sets the default values.



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

def initialize()
    @additional_data = Hash.new
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 workbook_filter_criteria

Raises:

  • (StandardError)


81
82
83
84
# File 'lib/models/workbook_filter_criteria.rb', line 81

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



43
44
45
# File 'lib/models/workbook_filter_criteria.rb', line 43

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



51
52
53
# File 'lib/models/workbook_filter_criteria.rb', line 51

def additional_data=(value)
    @additional_data = value
end

#colorObject

Gets the color property value. The color property

Returns:

  • a string



58
59
60
# File 'lib/models/workbook_filter_criteria.rb', line 58

def color
    return @color
end

#color=(value) ⇒ Object

Sets the color property value. The color property

Parameters:

  • value

    Value to set for the color property.

Returns:

  • a void



66
67
68
# File 'lib/models/workbook_filter_criteria.rb', line 66

def color=(value)
    @color = value
end

#criterion1Object

Gets the criterion1 property value. The criterion1 property

Returns:

  • a string



89
90
91
# File 'lib/models/workbook_filter_criteria.rb', line 89

def criterion1
    return @criterion1
end

#criterion1=(value) ⇒ Object

Sets the criterion1 property value. The criterion1 property

Parameters:

  • value

    Value to set for the criterion1 property.

Returns:

  • a void



97
98
99
# File 'lib/models/workbook_filter_criteria.rb', line 97

def criterion1=(value)
    @criterion1 = value
end

#criterion2Object

Gets the criterion2 property value. The criterion2 property

Returns:

  • a string



104
105
106
# File 'lib/models/workbook_filter_criteria.rb', line 104

def criterion2
    return @criterion2
end

#criterion2=(value) ⇒ Object

Sets the criterion2 property value. The criterion2 property

Parameters:

  • value

    Value to set for the criterion2 property.

Returns:

  • a void



112
113
114
# File 'lib/models/workbook_filter_criteria.rb', line 112

def criterion2=(value)
    @criterion2 = value
end

#dynamic_criteriaObject

Gets the dynamicCriteria property value. The dynamicCriteria property

Returns:

  • a string



119
120
121
# File 'lib/models/workbook_filter_criteria.rb', line 119

def dynamic_criteria
    return @dynamic_criteria
end

#dynamic_criteria=(value) ⇒ Object

Sets the dynamicCriteria property value. The dynamicCriteria property

Parameters:

  • value

    Value to set for the dynamicCriteria property.

Returns:

  • a void



127
128
129
# File 'lib/models/workbook_filter_criteria.rb', line 127

def dynamic_criteria=(value)
    @dynamic_criteria = value
end

#filter_onObject

Gets the filterOn property value. The filterOn property

Returns:

  • a string



134
135
136
# File 'lib/models/workbook_filter_criteria.rb', line 134

def filter_on
    return @filter_on
end

#filter_on=(value) ⇒ Object

Sets the filterOn property value. The filterOn property

Parameters:

  • value

    Value to set for the filterOn property.

Returns:

  • a void



142
143
144
# File 'lib/models/workbook_filter_criteria.rb', line 142

def filter_on=(value)
    @filter_on = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/models/workbook_filter_criteria.rb', line 149

def get_field_deserializers()
    return {
        "color" => lambda {|n| @color = n.get_string_value() },
        "criterion1" => lambda {|n| @criterion1 = n.get_string_value() },
        "criterion2" => lambda {|n| @criterion2 = n.get_string_value() },
        "dynamicCriteria" => lambda {|n| @dynamic_criteria = n.get_string_value() },
        "filterOn" => lambda {|n| @filter_on = n.get_string_value() },
        "icon" => lambda {|n| @icon = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookIcon.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "operator" => lambda {|n| @operator = n.get_string_value() },
        "values" => lambda {|n| @values = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) },
    }
end

#iconObject

Gets the icon property value. The icon property

Returns:

  • a workbook_icon



166
167
168
# File 'lib/models/workbook_filter_criteria.rb', line 166

def icon
    return @icon
end

#icon=(value) ⇒ Object

Sets the icon property value. The icon property

Parameters:

  • value

    Value to set for the icon property.

Returns:

  • a void



174
175
176
# File 'lib/models/workbook_filter_criteria.rb', line 174

def icon=(value)
    @icon = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



181
182
183
# File 'lib/models/workbook_filter_criteria.rb', line 181

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



189
190
191
# File 'lib/models/workbook_filter_criteria.rb', line 189

def odata_type=(value)
    @odata_type = value
end

#operatorObject

Gets the operator property value. The operator property

Returns:

  • a string



196
197
198
# File 'lib/models/workbook_filter_criteria.rb', line 196

def operator
    return @operator
end

#operator=(value) ⇒ Object

Sets the operator property value. The operator property

Parameters:

  • value

    Value to set for the operator property.

Returns:

  • a void



204
205
206
# File 'lib/models/workbook_filter_criteria.rb', line 204

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)


212
213
214
215
216
217
218
219
220
221
222
223
224
# File 'lib/models/workbook_filter_criteria.rb', line 212

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("color", @color)
    writer.write_string_value("criterion1", @criterion1)
    writer.write_string_value("criterion2", @criterion2)
    writer.write_string_value("dynamicCriteria", @dynamic_criteria)
    writer.write_string_value("filterOn", @filter_on)
    writer.write_object_value("icon", @icon)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("operator", @operator)
    writer.write_object_value("values", @values)
    writer.write_additional_data(@additional_data)
end

#valuesObject

Gets the values property value. The values property

Returns:

  • a json



229
230
231
# File 'lib/models/workbook_filter_criteria.rb', line 229

def values
    return @values
end

#values=(value) ⇒ Object

Sets the values property value. The values property

Parameters:

  • value

    Value to set for the values property.

Returns:

  • a void



237
238
239
# File 'lib/models/workbook_filter_criteria.rb', line 237

def values=(value)
    @values = value
end