Class: MicrosoftGraph::Models::AndroidMinimumOperatingSystem

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

Overview

Contains properties for the minimum operating system required for an Android mobile app.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new androidMinimumOperatingSystem and sets the default values.



84
85
86
# File 'lib/models/android_minimum_operating_system.rb', line 84

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 android_minimum_operating_system

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return AndroidMinimumOperatingSystem.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



69
70
71
# File 'lib/models/android_minimum_operating_system.rb', line 69

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



77
78
79
# File 'lib/models/android_minimum_operating_system.rb', line 77

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# File 'lib/models/android_minimum_operating_system.rb', line 100

def get_field_deserializers()
    return {
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "v10_0" => lambda {|n| @v10_0 = n.get_boolean_value() },
        "v11_0" => lambda {|n| @v11_0 = n.get_boolean_value() },
        "v4_0" => lambda {|n| @v4_0 = n.get_boolean_value() },
        "v4_0_3" => lambda {|n| @v4_0_3 = n.get_boolean_value() },
        "v4_1" => lambda {|n| @v4_1 = n.get_boolean_value() },
        "v4_2" => lambda {|n| @v4_2 = n.get_boolean_value() },
        "v4_3" => lambda {|n| @v4_3 = n.get_boolean_value() },
        "v4_4" => lambda {|n| @v4_4 = n.get_boolean_value() },
        "v5_0" => lambda {|n| @v5_0 = n.get_boolean_value() },
        "v5_1" => lambda {|n| @v5_1 = n.get_boolean_value() },
        "v6_0" => lambda {|n| @v6_0 = n.get_boolean_value() },
        "v7_0" => lambda {|n| @v7_0 = n.get_boolean_value() },
        "v7_1" => lambda {|n| @v7_1 = n.get_boolean_value() },
        "v8_0" => lambda {|n| @v8_0 = n.get_boolean_value() },
        "v8_1" => lambda {|n| @v8_1 = n.get_boolean_value() },
        "v9_0" => lambda {|n| @v9_0 = n.get_boolean_value() },
    }
end

#odata_typeObject

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

Returns:

  • a string



125
126
127
# File 'lib/models/android_minimum_operating_system.rb', line 125

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



133
134
135
# File 'lib/models/android_minimum_operating_system.rb', line 133

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


141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/models/android_minimum_operating_system.rb', line 141

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_boolean_value("v10_0", @v10_0)
    writer.write_boolean_value("v11_0", @v11_0)
    writer.write_boolean_value("v4_0", @v4_0)
    writer.write_boolean_value("v4_0_3", @v4_0_3)
    writer.write_boolean_value("v4_1", @v4_1)
    writer.write_boolean_value("v4_2", @v4_2)
    writer.write_boolean_value("v4_3", @v4_3)
    writer.write_boolean_value("v4_4", @v4_4)
    writer.write_boolean_value("v5_0", @v5_0)
    writer.write_boolean_value("v5_1", @v5_1)
    writer.write_boolean_value("v6_0", @v6_0)
    writer.write_boolean_value("v7_0", @v7_0)
    writer.write_boolean_value("v7_1", @v7_1)
    writer.write_boolean_value("v8_0", @v8_0)
    writer.write_boolean_value("v8_1", @v8_1)
    writer.write_boolean_value("v9_0", @v9_0)
    writer.write_additional_data(@additional_data)
end

#v10_0Object

Gets the v10_0 property value. When TRUE, only Version 10.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



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

def v10_0
    return @v10_0
end

#v10_0=(value) ⇒ Object

Sets the v10_0 property value. When TRUE, only Version 10.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v10_0 property.

Returns:

  • a void



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

def v10_0=(value)
    @v10_0 = value
end

#v11_0Object

Gets the v11_0 property value. When TRUE, only Version 11.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



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

def v11_0
    return @v11_0
end

#v11_0=(value) ⇒ Object

Sets the v11_0 property value. When TRUE, only Version 11.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v11_0 property.

Returns:

  • a void



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

def v11_0=(value)
    @v11_0 = value
end

#v4_0Object

Gets the v4_0 property value. When TRUE, only Version 4.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



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

def v4_0
    return @v4_0
end

#v4_0=(value) ⇒ Object

Sets the v4_0 property value. When TRUE, only Version 4.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v4_0 property.

Returns:

  • a void



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

def v4_0=(value)
    @v4_0 = value
end

#v4_0_3Object

Gets the v4_0_3 property value. When TRUE, only Version 4.0.3 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



211
212
213
# File 'lib/models/android_minimum_operating_system.rb', line 211

def v4_0_3
    return @v4_0_3
end

#v4_0_3=(value) ⇒ Object

Sets the v4_0_3 property value. When TRUE, only Version 4.0.3 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v4_0_3 property.

Returns:

  • a void



219
220
221
# File 'lib/models/android_minimum_operating_system.rb', line 219

def v4_0_3=(value)
    @v4_0_3 = value
end

#v4_1Object

Gets the v4_1 property value. When TRUE, only Version 4.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



226
227
228
# File 'lib/models/android_minimum_operating_system.rb', line 226

def v4_1
    return @v4_1
end

#v4_1=(value) ⇒ Object

Sets the v4_1 property value. When TRUE, only Version 4.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v4_1 property.

Returns:

  • a void



234
235
236
# File 'lib/models/android_minimum_operating_system.rb', line 234

def v4_1=(value)
    @v4_1 = value
end

#v4_2Object

Gets the v4_2 property value. When TRUE, only Version 4.2 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



241
242
243
# File 'lib/models/android_minimum_operating_system.rb', line 241

def v4_2
    return @v4_2
end

#v4_2=(value) ⇒ Object

Sets the v4_2 property value. When TRUE, only Version 4.2 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v4_2 property.

Returns:

  • a void



249
250
251
# File 'lib/models/android_minimum_operating_system.rb', line 249

def v4_2=(value)
    @v4_2 = value
end

#v4_3Object

Gets the v4_3 property value. When TRUE, only Version 4.3 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



256
257
258
# File 'lib/models/android_minimum_operating_system.rb', line 256

def v4_3
    return @v4_3
end

#v4_3=(value) ⇒ Object

Sets the v4_3 property value. When TRUE, only Version 4.3 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v4_3 property.

Returns:

  • a void



264
265
266
# File 'lib/models/android_minimum_operating_system.rb', line 264

def v4_3=(value)
    @v4_3 = value
end

#v4_4Object

Gets the v4_4 property value. When TRUE, only Version 4.4 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



271
272
273
# File 'lib/models/android_minimum_operating_system.rb', line 271

def v4_4
    return @v4_4
end

#v4_4=(value) ⇒ Object

Sets the v4_4 property value. When TRUE, only Version 4.4 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v4_4 property.

Returns:

  • a void



279
280
281
# File 'lib/models/android_minimum_operating_system.rb', line 279

def v4_4=(value)
    @v4_4 = value
end

#v5_0Object

Gets the v5_0 property value. When TRUE, only Version 5.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



286
287
288
# File 'lib/models/android_minimum_operating_system.rb', line 286

def v5_0
    return @v5_0
end

#v5_0=(value) ⇒ Object

Sets the v5_0 property value. When TRUE, only Version 5.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v5_0 property.

Returns:

  • a void



294
295
296
# File 'lib/models/android_minimum_operating_system.rb', line 294

def v5_0=(value)
    @v5_0 = value
end

#v5_1Object

Gets the v5_1 property value. When TRUE, only Version 5.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



301
302
303
# File 'lib/models/android_minimum_operating_system.rb', line 301

def v5_1
    return @v5_1
end

#v5_1=(value) ⇒ Object

Sets the v5_1 property value. When TRUE, only Version 5.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v5_1 property.

Returns:

  • a void



309
310
311
# File 'lib/models/android_minimum_operating_system.rb', line 309

def v5_1=(value)
    @v5_1 = value
end

#v6_0Object

Gets the v6_0 property value. When TRUE, only Version 6.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



316
317
318
# File 'lib/models/android_minimum_operating_system.rb', line 316

def v6_0
    return @v6_0
end

#v6_0=(value) ⇒ Object

Sets the v6_0 property value. When TRUE, only Version 6.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v6_0 property.

Returns:

  • a void



324
325
326
# File 'lib/models/android_minimum_operating_system.rb', line 324

def v6_0=(value)
    @v6_0 = value
end

#v7_0Object

Gets the v7_0 property value. When TRUE, only Version 7.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



331
332
333
# File 'lib/models/android_minimum_operating_system.rb', line 331

def v7_0
    return @v7_0
end

#v7_0=(value) ⇒ Object

Sets the v7_0 property value. When TRUE, only Version 7.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v7_0 property.

Returns:

  • a void



339
340
341
# File 'lib/models/android_minimum_operating_system.rb', line 339

def v7_0=(value)
    @v7_0 = value
end

#v7_1Object

Gets the v7_1 property value. When TRUE, only Version 7.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



346
347
348
# File 'lib/models/android_minimum_operating_system.rb', line 346

def v7_1
    return @v7_1
end

#v7_1=(value) ⇒ Object

Sets the v7_1 property value. When TRUE, only Version 7.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v7_1 property.

Returns:

  • a void



354
355
356
# File 'lib/models/android_minimum_operating_system.rb', line 354

def v7_1=(value)
    @v7_1 = value
end

#v8_0Object

Gets the v8_0 property value. When TRUE, only Version 8.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



361
362
363
# File 'lib/models/android_minimum_operating_system.rb', line 361

def v8_0
    return @v8_0
end

#v8_0=(value) ⇒ Object

Sets the v8_0 property value. When TRUE, only Version 8.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v8_0 property.

Returns:

  • a void



369
370
371
# File 'lib/models/android_minimum_operating_system.rb', line 369

def v8_0=(value)
    @v8_0 = value
end

#v8_1Object

Gets the v8_1 property value. When TRUE, only Version 8.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



376
377
378
# File 'lib/models/android_minimum_operating_system.rb', line 376

def v8_1
    return @v8_1
end

#v8_1=(value) ⇒ Object

Sets the v8_1 property value. When TRUE, only Version 8.1 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v8_1 property.

Returns:

  • a void



384
385
386
# File 'lib/models/android_minimum_operating_system.rb', line 384

def v8_1=(value)
    @v8_1 = value
end

#v9_0Object

Gets the v9_0 property value. When TRUE, only Version 9.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Returns:

  • a boolean



391
392
393
# File 'lib/models/android_minimum_operating_system.rb', line 391

def v9_0
    return @v9_0
end

#v9_0=(value) ⇒ Object

Sets the v9_0 property value. When TRUE, only Version 9.0 or later is supported. Default value is FALSE. Exactly one of the minimum operating system boolean values will be TRUE.

Parameters:

  • value

    Value to set for the v9_0 property.

Returns:

  • a void



399
400
401
# File 'lib/models/android_minimum_operating_system.rb', line 399

def v9_0=(value)
    @v9_0 = value
end