Class: MicrosoftGraph::Models::MacOSLobApp
- Inherits:
-
MobileLobApp
- Object
- Entity
- MobileApp
- MobileLobApp
- MicrosoftGraph::Models::MacOSLobApp
- 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
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#build_number ⇒ Object
Gets the buildNumber property value.
-
#build_number=(value) ⇒ Object
Sets the buildNumber property value.
-
#bundle_id ⇒ Object
Gets the bundleId property value.
-
#bundle_id=(value) ⇒ Object
Sets the bundleId property value.
-
#child_apps ⇒ Object
Gets the childApps property value.
-
#child_apps=(value) ⇒ Object
Sets the childApps property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#ignore_version_detection ⇒ Object
Gets the ignoreVersionDetection property value.
-
#ignore_version_detection=(value) ⇒ Object
Sets the ignoreVersionDetection property value.
-
#initialize ⇒ Object
constructor
Instantiates a new macOSLobApp and sets the default values.
-
#install_as_managed ⇒ Object
Gets the installAsManaged property value.
-
#install_as_managed=(value) ⇒ Object
Sets the installAsManaged property value.
-
#md5_hash ⇒ Object
Gets the md5Hash property value.
-
#md5_hash=(value) ⇒ Object
Sets the md5Hash property value.
-
#md5_hash_chunk_size ⇒ Object
Gets the md5HashChunkSize property value.
-
#md5_hash_chunk_size=(value) ⇒ Object
Sets the md5HashChunkSize property value.
-
#minimum_supported_operating_system ⇒ Object
Gets the minimumSupportedOperatingSystem property value.
-
#minimum_supported_operating_system=(value) ⇒ Object
Sets the minimumSupportedOperatingSystem property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#version_number ⇒ Object
Gets the versionNumber property value.
-
#version_number=(value) ⇒ Object
Sets the versionNumber property value.
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
#initialize ⇒ Object
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
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_number ⇒ Object
Gets the buildNumber property value. The build number of the package. This should match the package CFBundleShortVersionString of the .pkg file.
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.
50 51 52 |
# File 'lib/models/mac_o_s_lob_app.rb', line 50 def build_number=(value) @build_number = value end |
#bundle_id ⇒ Object
Gets the bundleId property value. The primary bundleId of the package.
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.
65 66 67 |
# File 'lib/models/mac_o_s_lob_app.rb', line 65 def bundle_id=(value) @bundle_id = value end |
#child_apps ⇒ Object
Gets the childApps property value. List of ComplexType macOSLobChildApp objects. Represents the apps expected to be installed by the package.
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.
80 81 82 |
# File 'lib/models/mac_o_s_lob_app.rb', line 80 def child_apps=(value) @child_apps = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::.create_from_discriminator_value(pn) }) }, "versionNumber" => lambda {|n| @version_number = n.get_string_value() }, }) end |
#ignore_version_detection ⇒ Object
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.
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.
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_managed ⇒ Object
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.
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.
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_hash ⇒ Object
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.
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.
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_size ⇒ Object
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.
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.
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_system ⇒ Object
Gets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.
181 182 183 |
# File 'lib/models/mac_o_s_lob_app.rb', line 181 def return end |
#minimum_supported_operating_system=(value) ⇒ Object
Sets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.
189 190 191 |
# File 'lib/models/mac_o_s_lob_app.rb', line 189 def (value) = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
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", ) writer.write_string_value("versionNumber", @version_number) end |
#version_number ⇒ Object
Gets the versionNumber property value. The version number of the package. This should match the package CFBundleVersion in the packageinfo file.
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.
222 223 224 |
# File 'lib/models/mac_o_s_lob_app.rb', line 222 def version_number=(value) @version_number = value end |