Class: MicrosoftGraph::Models::MacOSLobApp

Inherits:
MobileLobApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/mac_o_s_lob_app.rb

Overview

Contains properties and inherited properties for the macOS LOB App.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MobileLobApp

#committed_content_version, #committed_content_version=, #content_versions, #content_versions=, #file_name, #file_name=, #size, #size=

Methods inherited from MobileApp

#assignments, #assignments=, #categories, #categories=, #created_date_time, #created_date_time=, #description, #description=, #developer, #developer=, #display_name, #display_name=, #information_url, #information_url=, #is_featured, #is_featured=, #large_icon, #large_icon=, #last_modified_date_time, #last_modified_date_time=, #notes, #notes=, #owner, #owner=, #privacy_information_url, #privacy_information_url=, #publisher, #publisher=, #publishing_state, #publishing_state=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new macOSLobApp and sets the default values.



87
88
89
90
# File 'lib/models/mac_o_s_lob_app.rb', line 87

def initialize()
    super
    @odata_type = "#microsoft.graph.macOSLobApp"
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_lob_app

Raises:

  • (StandardError)


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

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

Instance Method Details

#build_numberObject

Gets the buildNumber property value. The build number of the package. This should match the package CFBundleShortVersionString of the .pkg file.

Returns:

  • a string



42
43
44
# File 'lib/models/mac_o_s_lob_app.rb', line 42

def build_number
    return @build_number
end

#build_number=(value) ⇒ Object

Sets the buildNumber property value. The build number of the package. This should match the package CFBundleShortVersionString of the .pkg file.

Parameters:

  • value

    Value to set for the buildNumber property.

Returns:

  • a void



50
51
52
# File 'lib/models/mac_o_s_lob_app.rb', line 50

def build_number=(value)
    @build_number = value
end

#bundle_idObject

Gets the bundleId property value. The primary bundleId of the package.

Returns:

  • a string



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

def bundle_id
    return @bundle_id
end

#bundle_id=(value) ⇒ Object

Sets the bundleId property value. The primary bundleId of the package.

Parameters:

  • value

    Value to set for the bundleId property.

Returns:

  • a void



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

def bundle_id=(value)
    @bundle_id = value
end

#child_appsObject

Gets the childApps property value. List of ComplexType macOSLobChildApp objects. Represents the apps expected to be installed by the package.

Returns:

  • a mac_o_s_lob_child_app



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

def child_apps
    return @child_apps
end

#child_apps=(value) ⇒ Object

Sets the childApps property value. List of ComplexType macOSLobChildApp objects. Represents the apps expected to be installed by the package.

Parameters:

  • value

    Value to set for the childApps property.

Returns:

  • a void



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

def child_apps=(value)
    @child_apps = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/models/mac_o_s_lob_app.rb', line 104

def get_field_deserializers()
    return super.merge({
        "buildNumber" => lambda {|n| @build_number = n.get_string_value() },
        "bundleId" => lambda {|n| @bundle_id = n.get_string_value() },
        "childApps" => lambda {|n| @child_apps = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MacOSLobChildApp.create_from_discriminator_value(pn) }) },
        "ignoreVersionDetection" => lambda {|n| @ignore_version_detection = n.get_boolean_value() },
        "installAsManaged" => lambda {|n| @install_as_managed = n.get_boolean_value() },
        "md5Hash" => lambda {|n| @md5_hash = n.get_collection_of_primitive_values(String) },
        "md5HashChunkSize" => lambda {|n| @md5_hash_chunk_size = n.get_number_value() },
        "minimumSupportedOperatingSystem" => lambda {|n| @minimum_supported_operating_system = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MacOSMinimumOperatingSystem.create_from_discriminator_value(pn) }) },
        "versionNumber" => lambda {|n| @version_number = n.get_string_value() },
    })
end

#ignore_version_detectionObject

Gets the ignoreVersionDetection property value. When TRUE, indicates that the app’s version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app’s version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature.

Returns:

  • a boolean



121
122
123
# File 'lib/models/mac_o_s_lob_app.rb', line 121

def ignore_version_detection
    return @ignore_version_detection
end

#ignore_version_detection=(value) ⇒ Object

Sets the ignoreVersionDetection property value. When TRUE, indicates that the app’s version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app’s version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature.

Parameters:

  • value

    Value to set for the ignoreVersionDetection property.

Returns:

  • a void



129
130
131
# File 'lib/models/mac_o_s_lob_app.rb', line 129

def ignore_version_detection=(value)
    @ignore_version_detection = value
end

#install_as_managedObject

Gets the installAsManaged property value. When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged.

Returns:

  • a boolean



136
137
138
# File 'lib/models/mac_o_s_lob_app.rb', line 136

def install_as_managed
    return @install_as_managed
end

#install_as_managed=(value) ⇒ Object

Sets the installAsManaged property value. When TRUE, indicates that the app will be installed as managed (requires macOS 11.0 and other managed package restrictions). When FALSE, indicates that the app will be installed as unmanaged.

Parameters:

  • value

    Value to set for the installAsManaged property.

Returns:

  • a void



144
145
146
# File 'lib/models/mac_o_s_lob_app.rb', line 144

def install_as_managed=(value)
    @install_as_managed = value
end

#md5_hashObject

Gets the md5Hash property value. The MD5 hash codes. This is empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.

Returns:

  • a string



151
152
153
# File 'lib/models/mac_o_s_lob_app.rb', line 151

def md5_hash
    return @md5_hash
end

#md5_hash=(value) ⇒ Object

Sets the md5Hash property value. The MD5 hash codes. This is empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.

Parameters:

  • value

    Value to set for the md5Hash property.

Returns:

  • a void



159
160
161
# File 'lib/models/mac_o_s_lob_app.rb', line 159

def md5_hash=(value)
    @md5_hash = value
end

#md5_hash_chunk_sizeObject

Gets the md5HashChunkSize property value. The chunk size for MD5 hash. This is ‘0’ or empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.

Returns:

  • a integer



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

def md5_hash_chunk_size
    return @md5_hash_chunk_size
end

#md5_hash_chunk_size=(value) ⇒ Object

Sets the md5HashChunkSize property value. The chunk size for MD5 hash. This is ‘0’ or empty if the package was uploaded directly. If the Intune App Wrapping Tool is used to create a .intunemac, this value can be found inside the Detection.xml file.

Parameters:

  • value

    Value to set for the md5HashChunkSize property.

Returns:

  • a void



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

def md5_hash_chunk_size=(value)
    @md5_hash_chunk_size = value
end

#minimum_supported_operating_systemObject

Gets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.

Returns:

  • a mac_o_s_minimum_operating_system



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

def minimum_supported_operating_system
    return @minimum_supported_operating_system
end

#minimum_supported_operating_system=(value) ⇒ Object

Sets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.

Parameters:

  • value

    Value to set for the minimumSupportedOperatingSystem property.

Returns:

  • a void



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

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


197
198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/models/mac_o_s_lob_app.rb', line 197

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("buildNumber", @build_number)
    writer.write_string_value("bundleId", @bundle_id)
    writer.write_collection_of_object_values("childApps", @child_apps)
    writer.write_boolean_value("ignoreVersionDetection", @ignore_version_detection)
    writer.write_boolean_value("installAsManaged", @install_as_managed)
    writer.write_collection_of_primitive_values("md5Hash", @md5_hash)
    writer.write_number_value("md5HashChunkSize", @md5_hash_chunk_size)
    writer.write_object_value("minimumSupportedOperatingSystem", @minimum_supported_operating_system)
    writer.write_string_value("versionNumber", @version_number)
end

#version_numberObject

Gets the versionNumber property value. The version number of the package. This should match the package CFBundleVersion in the packageinfo file.

Returns:

  • a string



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

def version_number
    return @version_number
end

#version_number=(value) ⇒ Object

Sets the versionNumber property value. The version number of the package. This should match the package CFBundleVersion in the packageinfo file.

Parameters:

  • value

    Value to set for the versionNumber property.

Returns:

  • a void



222
223
224
# File 'lib/models/mac_o_s_lob_app.rb', line 222

def version_number=(value)
    @version_number = value
end