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
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.
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
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_number ⇒ Object
Gets the buildNumber property value. The build number of the package. This should match the package CFBundleShortVersionString of the .pkg file.
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.
48 49 50 |
# File 'lib/models/mac_o_s_lob_app.rb', line 48 def build_number=(value) @build_number = value end |
#bundle_id ⇒ Object
Gets the bundleId property value. The primary bundleId of the package.
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.
63 64 65 |
# File 'lib/models/mac_o_s_lob_app.rb', line 63 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.
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.
78 79 80 |
# File 'lib/models/mac_o_s_lob_app.rb', line 78 def child_apps=(value) @child_apps = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_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.
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.
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_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.
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.
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_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.
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.
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_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.
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.
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_system ⇒ Object
Gets the minimumSupportedOperatingSystem property value. ComplexType macOSMinimumOperatingSystem that indicates the minimum operating system applicable for the application.
179 180 181 |
# File 'lib/models/mac_o_s_lob_app.rb', line 179 def 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.
187 188 189 |
# File 'lib/models/mac_o_s_lob_app.rb', line 187 def (value) @minimum_supported_operating_system = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
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_number ⇒ Object
Gets the versionNumber property value. The version number of the package. This should match the package CFBundleVersion in the packageinfo file.
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.
220 221 222 |
# File 'lib/models/mac_o_s_lob_app.rb', line 220 def version_number=(value) @version_number = value end |