Class: MicrosoftGraph::Models::IosMinimumOperatingSystem

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

Overview

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new iosMinimumOperatingSystem and sets the default values.



60
61
62
# File 'lib/models/ios_minimum_operating_system.rb', line 60

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 ios_minimum_operating_system

Raises:

  • (StandardError)


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

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



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

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



53
54
55
# File 'lib/models/ios_minimum_operating_system.rb', line 53

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

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() },
        "v12_0" => lambda {|n| @v12_0 = n.get_boolean_value() },
        "v13_0" => lambda {|n| @v13_0 = n.get_boolean_value() },
        "v14_0" => lambda {|n| @v14_0 = n.get_boolean_value() },
        "v15_0" => lambda {|n| @v15_0 = n.get_boolean_value() },
        "v8_0" => lambda {|n| @v8_0 = 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



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

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



101
102
103
# File 'lib/models/ios_minimum_operating_system.rb', line 101

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)


109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/models/ios_minimum_operating_system.rb', line 109

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("v12_0", @v12_0)
    writer.write_boolean_value("v13_0", @v13_0)
    writer.write_boolean_value("v14_0", @v14_0)
    writer.write_boolean_value("v15_0", @v15_0)
    writer.write_boolean_value("v8_0", @v8_0)
    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



126
127
128
# File 'lib/models/ios_minimum_operating_system.rb', line 126

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



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

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



141
142
143
# File 'lib/models/ios_minimum_operating_system.rb', line 141

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



149
150
151
# File 'lib/models/ios_minimum_operating_system.rb', line 149

def v11_0=(value)
    @v11_0 = value
end

#v12_0Object

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

Returns:

  • a boolean



156
157
158
# File 'lib/models/ios_minimum_operating_system.rb', line 156

def v12_0
    return @v12_0
end

#v12_0=(value) ⇒ Object

Sets the v12_0 property value. When TRUE, only Version 12.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 v12_0 property.

Returns:

  • a void



164
165
166
# File 'lib/models/ios_minimum_operating_system.rb', line 164

def v12_0=(value)
    @v12_0 = value
end

#v13_0Object

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

Returns:

  • a boolean



171
172
173
# File 'lib/models/ios_minimum_operating_system.rb', line 171

def v13_0
    return @v13_0
end

#v13_0=(value) ⇒ Object

Sets the v13_0 property value. When TRUE, only Version 13.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 v13_0 property.

Returns:

  • a void



179
180
181
# File 'lib/models/ios_minimum_operating_system.rb', line 179

def v13_0=(value)
    @v13_0 = value
end

#v14_0Object

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

Returns:

  • a boolean



186
187
188
# File 'lib/models/ios_minimum_operating_system.rb', line 186

def v14_0
    return @v14_0
end

#v14_0=(value) ⇒ Object

Sets the v14_0 property value. When TRUE, only Version 14.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 v14_0 property.

Returns:

  • a void



194
195
196
# File 'lib/models/ios_minimum_operating_system.rb', line 194

def v14_0=(value)
    @v14_0 = value
end

#v15_0Object

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

Returns:

  • a boolean



201
202
203
# File 'lib/models/ios_minimum_operating_system.rb', line 201

def v15_0
    return @v15_0
end

#v15_0=(value) ⇒ Object

Sets the v15_0 property value. When TRUE, only Version 15.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 v15_0 property.

Returns:

  • a void



209
210
211
# File 'lib/models/ios_minimum_operating_system.rb', line 209

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



216
217
218
# File 'lib/models/ios_minimum_operating_system.rb', line 216

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



224
225
226
# File 'lib/models/ios_minimum_operating_system.rb', line 224

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



231
232
233
# File 'lib/models/ios_minimum_operating_system.rb', line 231

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



239
240
241
# File 'lib/models/ios_minimum_operating_system.rb', line 239

def v9_0=(value)
    @v9_0 = value
end