Class: MicrosoftGraph::Models::MacOSLobApp

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

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.



85
86
87
88
# File 'lib/models/mac_o_s_lob_app.rb', line 85

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)


94
95
96
97
# File 'lib/models/mac_o_s_lob_app.rb', line 94

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



40
41
42
# File 'lib/models/mac_o_s_lob_app.rb', line 40

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 build_number property.

Returns:

  • a void



48
49
50
# File 'lib/models/mac_o_s_lob_app.rb', line 48

def build_number=(value)
    @build_number = value
end

#bundle_idObject

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

Returns:

  • a string



55
56
57
# File 'lib/models/mac_o_s_lob_app.rb', line 55

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 bundle_id property.

Returns:

  • a void



63
64
65
# File 'lib/models/mac_o_s_lob_app.rb', line 63

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



70
71
72
# File 'lib/models/mac_o_s_lob_app.rb', line 70

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 child_apps property.

Returns:

  • a void



78
79
80
# File 'lib/models/mac_o_s_lob_app.rb', line 78

def child_apps=(value)
    @child_apps = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

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



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

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 ignore_version_detection property.

Returns:

  • a void



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

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



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

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 install_as_managed property.

Returns:

  • a void



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

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



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

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 md5_hash property.

Returns:

  • a void



157
158
159
# File 'lib/models/mac_o_s_lob_app.rb', line 157

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



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

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 md5_hash_chunk_size property.

Returns:

  • a void



172
173
174
# File 'lib/models/mac_o_s_lob_app.rb', line 172

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



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

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 minimum_supported_operating_system property.

Returns:

  • a void



187
188
189
# File 'lib/models/mac_o_s_lob_app.rb', line 187

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)


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

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



212
213
214
# File 'lib/models/mac_o_s_lob_app.rb', line 212

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 version_number property.

Returns:

  • a void



220
221
222
# File 'lib/models/mac_o_s_lob_app.rb', line 220

def version_number=(value)
    @version_number = value
end