Class: MicrosoftGraph::Models::DetectedApp
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/detected_app.rb
Overview
A managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned.
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
-
#device_count ⇒ Object
Gets the deviceCount property value.
-
#device_count=(value) ⇒ Object
Sets the deviceCount property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new detectedApp and sets the default values.
-
#managed_devices ⇒ Object
Gets the managedDevices property value.
-
#managed_devices=(value) ⇒ Object
Sets the managedDevices property value.
-
#platform ⇒ Object
Gets the platform property value.
-
#platform=(value) ⇒ Object
Sets the platform property value.
-
#publisher ⇒ Object
Gets the publisher property value.
-
#publisher=(value) ⇒ Object
Sets the publisher property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#size_in_byte ⇒ Object
Gets the sizeInByte property value.
-
#size_in_byte=(value) ⇒ Object
Sets the sizeInByte property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new detectedApp and sets the default values.
36 37 38 |
# File 'lib/models/detected_app.rb', line 36 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
44 45 46 47 |
# File 'lib/models/detected_app.rb', line 44 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DetectedApp.new end |
Instance Method Details
#device_count ⇒ Object
Gets the deviceCount property value. The number of devices that have installed this application
52 53 54 |
# File 'lib/models/detected_app.rb', line 52 def device_count return @device_count end |
#device_count=(value) ⇒ Object
Sets the deviceCount property value. The number of devices that have installed this application
60 61 62 |
# File 'lib/models/detected_app.rb', line 60 def device_count=(value) @device_count = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the discovered application. Read-only
67 68 69 |
# File 'lib/models/detected_app.rb', line 67 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the discovered application. Read-only
75 76 77 |
# File 'lib/models/detected_app.rb', line 75 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/models/detected_app.rb', line 82 def get_field_deserializers() return super.merge({ "deviceCount" => lambda {|n| @device_count = n.get_number_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "managedDevices" => lambda {|n| @managed_devices = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDevice.create_from_discriminator_value(pn) }) }, "platform" => lambda {|n| @platform = n.get_enum_value(MicrosoftGraph::Models::DetectedAppPlatformType) }, "publisher" => lambda {|n| @publisher = n.get_string_value() }, "sizeInByte" => lambda {|n| @size_in_byte = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, "version" => lambda {|n| @version = n.get_string_value() }, }) end |
#managed_devices ⇒ Object
Gets the managedDevices property value. The devices that have the discovered application installed
97 98 99 |
# File 'lib/models/detected_app.rb', line 97 def managed_devices return @managed_devices end |
#managed_devices=(value) ⇒ Object
Sets the managedDevices property value. The devices that have the discovered application installed
105 106 107 |
# File 'lib/models/detected_app.rb', line 105 def managed_devices=(value) @managed_devices = value end |
#platform ⇒ Object
Gets the platform property value. Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0).
112 113 114 |
# File 'lib/models/detected_app.rb', line 112 def platform return @platform end |
#platform=(value) ⇒ Object
Sets the platform property value. Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0).
120 121 122 |
# File 'lib/models/detected_app.rb', line 120 def platform=(value) @platform = value end |
#publisher ⇒ Object
Gets the publisher property value. Indicates the publisher of the discovered application. For example: ‘Microsoft’. The default value is an empty string.
127 128 129 |
# File 'lib/models/detected_app.rb', line 127 def publisher return @publisher end |
#publisher=(value) ⇒ Object
Sets the publisher property value. Indicates the publisher of the discovered application. For example: ‘Microsoft’. The default value is an empty string.
135 136 137 |
# File 'lib/models/detected_app.rb', line 135 def publisher=(value) @publisher = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/models/detected_app.rb', line 143 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_number_value("deviceCount", @device_count) writer.write_string_value("displayName", @display_name) writer.write_collection_of_object_values("managedDevices", @managed_devices) writer.write_enum_value("platform", @platform) writer.write_string_value("publisher", @publisher) writer.write_object_value("sizeInByte", @size_in_byte) writer.write_string_value("version", @version) end |
#size_in_byte ⇒ Object
Gets the sizeInByte property value. Discovered application size in bytes. Read-only
158 159 160 |
# File 'lib/models/detected_app.rb', line 158 def size_in_byte return @size_in_byte end |
#size_in_byte=(value) ⇒ Object
Sets the sizeInByte property value. Discovered application size in bytes. Read-only
166 167 168 |
# File 'lib/models/detected_app.rb', line 166 def size_in_byte=(value) @size_in_byte = value end |
#version ⇒ Object
Gets the version property value. Version of the discovered application. Read-only
173 174 175 |
# File 'lib/models/detected_app.rb', line 173 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the discovered application. Read-only
181 182 183 |
# File 'lib/models/detected_app.rb', line 181 def version=(value) @version = value end |