Class: MicrosoftGraph::Models::EnrollmentTroubleshootingEvent

Inherits:
DeviceManagementTroubleshootingEvent show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/enrollment_troubleshooting_event.rb

Overview

Event representing an enrollment failure.

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a enrollment_troubleshooting_event

Raises:

  • (StandardError)


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_idObject

Gets the deviceId property value. Azure AD device identifier.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the deviceId property.

Returns:

  • a void



63
64
65
# File 'lib/models/enrollment_troubleshooting_event.rb', line 63

def device_id=(value)
    @device_id = value
end

#enrollment_typeObject

Gets the enrollmentType property value. Possible ways of adding a mobile device to management.

Returns:

  • a device_enrollment_type



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.

Parameters:

  • value

    Value to set for the enrollmentType property.

Returns:

  • a void



78
79
80
# File 'lib/models/enrollment_troubleshooting_event.rb', line 78

def enrollment_type=(value)
    @enrollment_type = value
end

#failure_categoryObject

Gets the failureCategory property value. Top level failure categories for enrollment.

Returns:

  • a device_enrollment_failure_reason



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.

Parameters:

  • value

    Value to set for the failureCategory property.

Returns:

  • a void



93
94
95
# File 'lib/models/enrollment_troubleshooting_event.rb', line 93

def failure_category=(value)
    @failure_category = value
end

#failure_reasonObject

Gets the failureReason property value. Detailed failure reason.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the failureReason property.

Returns:

  • a void



108
109
110
# File 'lib/models/enrollment_troubleshooting_event.rb', line 108

def failure_reason=(value)
    @failure_reason = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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| @operating_system = 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_identifierObject

Gets the managedDeviceIdentifier property value. Device identifier created or collected by Intune.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the managedDeviceIdentifier property.

Returns:

  • a void



139
140
141
# File 'lib/models/enrollment_troubleshooting_event.rb', line 139

def managed_device_identifier=(value)
    @managed_device_identifier = value
end

#operating_systemObject

Gets the operatingSystem property value. Operating System.

Returns:

  • a string



146
147
148
# File 'lib/models/enrollment_troubleshooting_event.rb', line 146

def operating_system
    return @operating_system
end

#operating_system=(value) ⇒ Object

Sets the operatingSystem property value. Operating System.

Parameters:

  • value

    Value to set for the operatingSystem property.

Returns:

  • a void



154
155
156
# File 'lib/models/enrollment_troubleshooting_event.rb', line 154

def operating_system=(value)
    @operating_system = value
end

#os_versionObject

Gets the osVersion property value. OS Version.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the osVersion property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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", @operating_system)
    writer.write_string_value("osVersion", @os_version)
    writer.write_string_value("userId", @user_id)
end

#user_idObject

Gets the userId property value. Identifier for the user that tried to enroll the device.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the userId property.

Returns:

  • a void



201
202
203
# File 'lib/models/enrollment_troubleshooting_event.rb', line 201

def user_id=(value)
    @user_id = value
end