Class: MicrosoftGraph::Models::EnrollmentTroubleshootingEvent
- Inherits:
-
DeviceManagementTroubleshootingEvent
- Object
- Entity
- DeviceManagementTroubleshootingEvent
- MicrosoftGraph::Models::EnrollmentTroubleshootingEvent
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/enrollment_troubleshooting_event.rb
Overview
Event representing an enrollment failure.
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_id ⇒ Object
Gets the deviceId property value.
-
#device_id=(value) ⇒ Object
Sets the deviceId property value.
-
#enrollment_type ⇒ Object
Gets the enrollmentType property value.
-
#enrollment_type=(value) ⇒ Object
Sets the enrollmentType property value.
-
#failure_category ⇒ Object
Gets the failureCategory property value.
-
#failure_category=(value) ⇒ Object
Sets the failureCategory property value.
-
#failure_reason ⇒ Object
Gets the failureReason property value.
-
#failure_reason=(value) ⇒ Object
Sets the failureReason property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new enrollmentTroubleshootingEvent and sets the default values.
-
#managed_device_identifier ⇒ Object
Gets the managedDeviceIdentifier property value.
-
#managed_device_identifier=(value) ⇒ Object
Sets the managedDeviceIdentifier property value.
-
#operating_system ⇒ Object
Gets the operatingSystem property value.
-
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value.
-
#os_version ⇒ Object
Gets the osVersion property value.
-
#os_version=(value) ⇒ Object
Sets the osVersion property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_id ⇒ Object
Gets the userId property value.
-
#user_id=(value) ⇒ Object
Sets the userId property value.
Methods inherited from DeviceManagementTroubleshootingEvent
#correlation_id, #correlation_id=, #event_date_time, #event_date_time=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new enrollmentTroubleshootingEvent and sets the default values.
39 40 41 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 39 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
47 48 49 50 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 47 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EnrollmentTroubleshootingEvent.new end |
Instance Method Details
#device_id ⇒ Object
Gets the deviceId property value. Azure AD device identifier.
55 56 57 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 55 def device_id return @device_id end |
#device_id=(value) ⇒ Object
Sets the deviceId property value. Azure AD device identifier.
63 64 65 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 63 def device_id=(value) @device_id = value end |
#enrollment_type ⇒ Object
Gets the enrollmentType property value. Possible ways of adding a mobile device to management.
70 71 72 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 70 def enrollment_type return @enrollment_type end |
#enrollment_type=(value) ⇒ Object
Sets the enrollmentType property value. Possible ways of adding a mobile device to management.
78 79 80 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 78 def enrollment_type=(value) @enrollment_type = value end |
#failure_category ⇒ Object
Gets the failureCategory property value. Top level failure categories for enrollment.
85 86 87 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 85 def failure_category return @failure_category end |
#failure_category=(value) ⇒ Object
Sets the failureCategory property value. Top level failure categories for enrollment.
93 94 95 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 93 def failure_category=(value) @failure_category = value end |
#failure_reason ⇒ Object
Gets the failureReason property value. Detailed failure reason.
100 101 102 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 100 def failure_reason return @failure_reason end |
#failure_reason=(value) ⇒ Object
Sets the failureReason property value. Detailed failure reason.
108 109 110 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 108 def failure_reason=(value) @failure_reason = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 115 def get_field_deserializers() return super.merge({ "deviceId" => lambda {|n| @device_id = n.get_string_value() }, "enrollmentType" => lambda {|n| @enrollment_type = n.get_enum_value(MicrosoftGraph::Models::DeviceEnrollmentType) }, "failureCategory" => lambda {|n| @failure_category = n.get_enum_value(MicrosoftGraph::Models::DeviceEnrollmentFailureReason) }, "failureReason" => lambda {|n| @failure_reason = n.get_string_value() }, "managedDeviceIdentifier" => lambda {|n| @managed_device_identifier = n.get_string_value() }, "operatingSystem" => lambda {|n| = n.get_string_value() }, "osVersion" => lambda {|n| @os_version = n.get_string_value() }, "userId" => lambda {|n| @user_id = n.get_string_value() }, }) end |
#managed_device_identifier ⇒ Object
Gets the managedDeviceIdentifier property value. Device identifier created or collected by Intune.
131 132 133 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 131 def managed_device_identifier return @managed_device_identifier end |
#managed_device_identifier=(value) ⇒ Object
Sets the managedDeviceIdentifier property value. Device identifier created or collected by Intune.
139 140 141 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 139 def managed_device_identifier=(value) @managed_device_identifier = value end |
#operating_system ⇒ Object
Gets the operatingSystem property value. Operating System.
146 147 148 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 146 def return end |
#operating_system=(value) ⇒ Object
Sets the operatingSystem property value. Operating System.
154 155 156 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 154 def (value) = value end |
#os_version ⇒ Object
Gets the osVersion property value. OS Version.
161 162 163 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 161 def os_version return @os_version end |
#os_version=(value) ⇒ Object
Sets the osVersion property value. OS Version.
169 170 171 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 169 def os_version=(value) @os_version = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 177 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("deviceId", @device_id) writer.write_enum_value("enrollmentType", @enrollment_type) writer.write_enum_value("failureCategory", @failure_category) writer.write_string_value("failureReason", @failure_reason) writer.write_string_value("managedDeviceIdentifier", @managed_device_identifier) writer.write_string_value("operatingSystem", ) writer.write_string_value("osVersion", @os_version) writer.write_string_value("userId", @user_id) end |
#user_id ⇒ Object
Gets the userId property value. Identifier for the user that tried to enroll the device.
193 194 195 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 193 def user_id return @user_id end |
#user_id=(value) ⇒ Object
Sets the userId property value. Identifier for the user that tried to enroll the device.
201 202 203 |
# File 'lib/models/enrollment_troubleshooting_event.rb', line 201 def user_id=(value) @user_id = value end |