Class: MicrosoftGraph::Models::MacOSMinimumOperatingSystem

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

Overview

The minimum operating system required for a macOS app.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new macOSMinimumOperatingSystem and sets the default values.



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

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 mac_o_s_minimum_operating_system

Raises:

  • (StandardError)


80
81
82
83
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 80

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



57
58
59
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 57

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



65
66
67
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 65

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 88

def get_field_deserializers()
    return {
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "v10_10" => lambda {|n| @v10_10 = n.get_boolean_value() },
        "v10_11" => lambda {|n| @v10_11 = n.get_boolean_value() },
        "v10_12" => lambda {|n| @v10_12 = n.get_boolean_value() },
        "v10_13" => lambda {|n| @v10_13 = n.get_boolean_value() },
        "v10_14" => lambda {|n| @v10_14 = n.get_boolean_value() },
        "v10_15" => lambda {|n| @v10_15 = n.get_boolean_value() },
        "v10_7" => lambda {|n| @v10_7 = n.get_boolean_value() },
        "v10_8" => lambda {|n| @v10_8 = n.get_boolean_value() },
        "v10_9" => lambda {|n| @v10_9 = 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() },
    }
end

#odata_typeObject

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

Returns:

  • a string



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

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



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

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)


125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 125

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_10", @v10_10)
    writer.write_boolean_value("v10_11", @v10_11)
    writer.write_boolean_value("v10_12", @v10_12)
    writer.write_boolean_value("v10_13", @v10_13)
    writer.write_boolean_value("v10_14", @v10_14)
    writer.write_boolean_value("v10_15", @v10_15)
    writer.write_boolean_value("v10_7", @v10_7)
    writer.write_boolean_value("v10_8", @v10_8)
    writer.write_boolean_value("v10_9", @v10_9)
    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_additional_data(@additional_data)
end

#v10_10Object

Gets the v10_10 property value. When TRUE, indicates OS X 10.10 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



146
147
148
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 146

def v10_10
    return @v10_10
end

#v10_10=(value) ⇒ Object

Sets the v10_10 property value. When TRUE, indicates OS X 10.10 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_10 property.

Returns:

  • a void



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

def v10_10=(value)
    @v10_10 = value
end

#v10_11Object

Gets the v10_11 property value. When TRUE, indicates OS X 10.11 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



161
162
163
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 161

def v10_11
    return @v10_11
end

#v10_11=(value) ⇒ Object

Sets the v10_11 property value. When TRUE, indicates OS X 10.11 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_11 property.

Returns:

  • a void



169
170
171
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 169

def v10_11=(value)
    @v10_11 = value
end

#v10_12Object

Gets the v10_12 property value. When TRUE, indicates macOS 10.12 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



176
177
178
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 176

def v10_12
    return @v10_12
end

#v10_12=(value) ⇒ Object

Sets the v10_12 property value. When TRUE, indicates macOS 10.12 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_12 property.

Returns:

  • a void



184
185
186
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 184

def v10_12=(value)
    @v10_12 = value
end

#v10_13Object

Gets the v10_13 property value. When TRUE, indicates macOS 10.13 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



191
192
193
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 191

def v10_13
    return @v10_13
end

#v10_13=(value) ⇒ Object

Sets the v10_13 property value. When TRUE, indicates macOS 10.13 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_13 property.

Returns:

  • a void



199
200
201
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 199

def v10_13=(value)
    @v10_13 = value
end

#v10_14Object

Gets the v10_14 property value. When TRUE, indicates macOS 10.14 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



206
207
208
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 206

def v10_14
    return @v10_14
end

#v10_14=(value) ⇒ Object

Sets the v10_14 property value. When TRUE, indicates macOS 10.14 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_14 property.

Returns:

  • a void



214
215
216
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 214

def v10_14=(value)
    @v10_14 = value
end

#v10_15Object

Gets the v10_15 property value. When TRUE, indicates macOS 10.15 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



221
222
223
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 221

def v10_15
    return @v10_15
end

#v10_15=(value) ⇒ Object

Sets the v10_15 property value. When TRUE, indicates macOS 10.15 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_15 property.

Returns:

  • a void



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

def v10_15=(value)
    @v10_15 = value
end

#v10_7Object

Gets the v10_7 property value. When TRUE, indicates Mac OS X 10.7 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



236
237
238
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 236

def v10_7
    return @v10_7
end

#v10_7=(value) ⇒ Object

Sets the v10_7 property value. When TRUE, indicates Mac OS X 10.7 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_7 property.

Returns:

  • a void



244
245
246
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 244

def v10_7=(value)
    @v10_7 = value
end

#v10_8Object

Gets the v10_8 property value. When TRUE, indicates OS X 10.8 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



251
252
253
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 251

def v10_8
    return @v10_8
end

#v10_8=(value) ⇒ Object

Sets the v10_8 property value. When TRUE, indicates OS X 10.8 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_8 property.

Returns:

  • a void



259
260
261
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 259

def v10_8=(value)
    @v10_8 = value
end

#v10_9Object

Gets the v10_9 property value. When TRUE, indicates OS X 10.9 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



266
267
268
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 266

def v10_9
    return @v10_9
end

#v10_9=(value) ⇒ Object

Sets the v10_9 property value. When TRUE, indicates OS X 10.9 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v10_9 property.

Returns:

  • a void



274
275
276
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 274

def v10_9=(value)
    @v10_9 = value
end

#v11_0Object

Gets the v11_0 property value. When TRUE, indicates macOS 11.0 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



281
282
283
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 281

def v11_0
    return @v11_0
end

#v11_0=(value) ⇒ Object

Sets the v11_0 property value. When TRUE, indicates macOS 11.0 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v11_0 property.

Returns:

  • a void



289
290
291
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 289

def v11_0=(value)
    @v11_0 = value
end

#v12_0Object

Gets the v12_0 property value. When TRUE, indicates macOS 12.0 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



296
297
298
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 296

def v12_0
    return @v12_0
end

#v12_0=(value) ⇒ Object

Sets the v12_0 property value. When TRUE, indicates macOS 12.0 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v12_0 property.

Returns:

  • a void



304
305
306
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 304

def v12_0=(value)
    @v12_0 = value
end

#v13_0Object

Gets the v13_0 property value. When TRUE, indicates macOS 13.0 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Returns:

  • a boolean



311
312
313
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 311

def v13_0
    return @v13_0
end

#v13_0=(value) ⇒ Object

Sets the v13_0 property value. When TRUE, indicates macOS 13.0 or later is required to install the app. When FALSE, indicates some other OS version is the minimum OS to install the app. Default value is FALSE.

Parameters:

  • value

    Value to set for the v13_0 property.

Returns:

  • a void



319
320
321
# File 'lib/models/mac_o_s_minimum_operating_system.rb', line 319

def v13_0=(value)
    @v13_0 = value
end