Class: MicrosoftGraph::Models::ManagedDeviceMobileAppConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_device_mobile_app_configuration.rb
Overview
An abstract class for Mobile app configuration for enrolled devices.
Direct Known Subclasses
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
-
#assignments ⇒ Object
Gets the assignments property value.
-
#assignments=(value) ⇒ Object
Sets the assignments property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#device_status_summary ⇒ Object
Gets the deviceStatusSummary property value.
-
#device_status_summary=(value) ⇒ Object
Sets the deviceStatusSummary property value.
-
#device_statuses ⇒ Object
Gets the deviceStatuses property value.
-
#device_statuses=(value) ⇒ Object
Sets the deviceStatuses 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 managedDeviceMobileAppConfiguration and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#targeted_mobile_apps ⇒ Object
Gets the targetedMobileApps property value.
-
#targeted_mobile_apps=(value) ⇒ Object
Sets the targetedMobileApps property value.
-
#user_status_summary ⇒ Object
Gets the userStatusSummary property value.
-
#user_status_summary=(value) ⇒ Object
Sets the userStatusSummary property value.
-
#user_statuses ⇒ Object
Gets the userStatuses property value.
-
#user_statuses=(value) ⇒ Object
Sets the userStatuses 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 managedDeviceMobileAppConfiguration and sets the default values.
64 65 66 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 64 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
87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 87 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.iosMobileAppConfiguration" return IosMobileAppConfiguration.new end end return ManagedDeviceMobileAppConfiguration.new end |
Instance Method Details
#assignments ⇒ Object
Gets the assignments property value. The list of group assignemenets for app configration.
49 50 51 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 49 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. The list of group assignemenets for app configration.
57 58 59 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 57 def assignments=(value) @assignments = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. DateTime the object was created.
71 72 73 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 71 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. DateTime the object was created.
79 80 81 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 79 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Admin provided description of the Device Configuration.
103 104 105 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 103 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Admin provided description of the Device Configuration.
111 112 113 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 111 def description=(value) @description = value end |
#device_status_summary ⇒ Object
Gets the deviceStatusSummary property value. App configuration device status summary.
118 119 120 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 118 def device_status_summary return @device_status_summary end |
#device_status_summary=(value) ⇒ Object
Sets the deviceStatusSummary property value. App configuration device status summary.
126 127 128 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 126 def device_status_summary=(value) @device_status_summary = value end |
#device_statuses ⇒ Object
Gets the deviceStatuses property value. List of ManagedDeviceMobileAppConfigurationDeviceStatus.
133 134 135 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 133 def device_statuses return @device_statuses end |
#device_statuses=(value) ⇒ Object
Sets the deviceStatuses property value. List of ManagedDeviceMobileAppConfigurationDeviceStatus.
141 142 143 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 141 def device_statuses=(value) @device_statuses = value end |
#display_name ⇒ Object
Gets the displayName property value. Admin provided name of the device configuration.
148 149 150 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 148 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Admin provided name of the device configuration.
156 157 158 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 156 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 163 def get_field_deserializers() return super.merge({ "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationAssignment.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "deviceStatusSummary" => lambda {|n| @device_status_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceSummary.create_from_discriminator_value(pn) }) }, "deviceStatuses" => lambda {|n| @device_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceStatus.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "targetedMobileApps" => lambda {|n| @targeted_mobile_apps = n.get_collection_of_primitive_values(String) }, "userStatusSummary" => lambda {|n| @user_status_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserSummary.create_from_discriminator_value(pn) }) }, "userStatuses" => lambda {|n| @user_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus.create_from_discriminator_value(pn) }) }, "version" => lambda {|n| @version = n.get_number_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. DateTime the object was last modified.
182 183 184 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 182 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. DateTime the object was last modified.
190 191 192 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 190 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 198 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignments", @assignments) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_object_value("deviceStatusSummary", @device_status_summary) writer.write_collection_of_object_values("deviceStatuses", @device_statuses) writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_collection_of_primitive_values("targetedMobileApps", @targeted_mobile_apps) writer.write_object_value("userStatusSummary", @user_status_summary) writer.write_collection_of_object_values("userStatuses", @user_statuses) writer.write_number_value("version", @version) end |
#targeted_mobile_apps ⇒ Object
Gets the targetedMobileApps property value. the associated app.
217 218 219 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 217 def targeted_mobile_apps return @targeted_mobile_apps end |
#targeted_mobile_apps=(value) ⇒ Object
Sets the targetedMobileApps property value. the associated app.
225 226 227 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 225 def targeted_mobile_apps=(value) @targeted_mobile_apps = value end |
#user_status_summary ⇒ Object
Gets the userStatusSummary property value. App configuration user status summary.
232 233 234 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 232 def user_status_summary return @user_status_summary end |
#user_status_summary=(value) ⇒ Object
Sets the userStatusSummary property value. App configuration user status summary.
240 241 242 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 240 def user_status_summary=(value) @user_status_summary = value end |
#user_statuses ⇒ Object
Gets the userStatuses property value. List of ManagedDeviceMobileAppConfigurationUserStatus.
247 248 249 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 247 def user_statuses return @user_statuses end |
#user_statuses=(value) ⇒ Object
Sets the userStatuses property value. List of ManagedDeviceMobileAppConfigurationUserStatus.
255 256 257 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 255 def user_statuses=(value) @user_statuses = value end |
#version ⇒ Object
Gets the version property value. Version of the device configuration.
262 263 264 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 262 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the device configuration.
270 271 272 |
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 270 def version=(value) @version = value end |