Class: MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus
- Inherits:
-
Entity
- Object
- Entity
- MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_device_mobile_app_configuration_user_status.rb
Overview
Contains properties, inherited properties and actions for an MDM mobile app configuration status for a user.
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
-
#devices_count ⇒ Object
Gets the devicesCount property value.
-
#devices_count=(value) ⇒ Object
Sets the devicesCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new managedDeviceMobileAppConfigurationUserStatus and sets the default values.
-
#last_reported_date_time ⇒ Object
Gets the lastReportedDateTime property value.
-
#last_reported_date_time=(value) ⇒ Object
Sets the lastReportedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#user_display_name ⇒ Object
Gets the userDisplayName property value.
-
#user_display_name=(value) ⇒ Object
Sets the userDisplayName property value.
-
#user_principal_name ⇒ Object
Gets the userPrincipalName property value.
-
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new managedDeviceMobileAppConfigurationUserStatus and sets the default values.
31 32 33 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 31 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
39 40 41 42 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 39 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ManagedDeviceMobileAppConfigurationUserStatus.new end |
Instance Method Details
#devices_count ⇒ Object
Gets the devicesCount property value. Devices count for that user.
47 48 49 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 47 def devices_count return @devices_count end |
#devices_count=(value) ⇒ Object
Sets the devicesCount property value. Devices count for that user.
55 56 57 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 55 def devices_count=(value) @devices_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
62 63 64 65 66 67 68 69 70 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 62 def get_field_deserializers() return super.merge({ "devicesCount" => lambda {|n| @devices_count = n.get_number_value() }, "lastReportedDateTime" => lambda {|n| @last_reported_date_time = n.get_date_time_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::ComplianceStatus) }, "userDisplayName" => lambda {|n| @user_display_name = n.get_string_value() }, "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() }, }) end |
#last_reported_date_time ⇒ Object
Gets the lastReportedDateTime property value. Last modified date time of the policy report.
75 76 77 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 75 def last_reported_date_time return @last_reported_date_time end |
#last_reported_date_time=(value) ⇒ Object
Sets the lastReportedDateTime property value. Last modified date time of the policy report.
83 84 85 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 83 def last_reported_date_time=(value) @last_reported_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
91 92 93 94 95 96 97 98 99 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 91 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_number_value("devicesCount", @devices_count) writer.write_date_time_value("lastReportedDateTime", @last_reported_date_time) writer.write_enum_value("status", @status) writer.write_string_value("userDisplayName", @user_display_name) writer.write_string_value("userPrincipalName", @user_principal_name) end |
#status ⇒ Object
Gets the status property value. The status property
104 105 106 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 104 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
112 113 114 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 112 def status=(value) @status = value end |
#user_display_name ⇒ Object
Gets the userDisplayName property value. User name of the DevicePolicyStatus.
119 120 121 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 119 def user_display_name return @user_display_name end |
#user_display_name=(value) ⇒ Object
Sets the userDisplayName property value. User name of the DevicePolicyStatus.
127 128 129 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 127 def user_display_name=(value) @user_display_name = value end |
#user_principal_name ⇒ Object
Gets the userPrincipalName property value. UserPrincipalName.
134 135 136 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 134 def user_principal_name return @user_principal_name end |
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value. UserPrincipalName.
142 143 144 |
# File 'lib/models/managed_device_mobile_app_configuration_user_status.rb', line 142 def user_principal_name=(value) @user_principal_name = value end |