Class: MicrosoftGraph::Models::LocateDeviceActionResult
- Inherits:
-
DeviceActionResult
- Object
- DeviceActionResult
- MicrosoftGraph::Models::LocateDeviceActionResult
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/locate_device_action_result.rb
Overview
Locate device action result
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_location ⇒ Object
Gets the deviceLocation property value.
-
#device_location=(value) ⇒ Object
Sets the deviceLocation property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new locateDeviceActionResult and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from DeviceActionResult
#action_name, #action_name=, #action_state, #action_state=, #additional_data, #additional_data=, #last_updated_date_time, #last_updated_date_time=, #odata_type, #odata_type=, #start_date_time, #start_date_time=
Constructor Details
#initialize ⇒ Object
Instantiates a new locateDeviceActionResult and sets the default values.
18 19 20 |
# File 'lib/models/locate_device_action_result.rb', line 18 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
26 27 28 29 |
# File 'lib/models/locate_device_action_result.rb', line 26 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return LocateDeviceActionResult.new end |
Instance Method Details
#device_location ⇒ Object
Gets the deviceLocation property value. device location
34 35 36 |
# File 'lib/models/locate_device_action_result.rb', line 34 def device_location return @device_location end |
#device_location=(value) ⇒ Object
Sets the deviceLocation property value. device location
42 43 44 |
# File 'lib/models/locate_device_action_result.rb', line 42 def device_location=(value) @device_location = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
49 50 51 52 53 |
# File 'lib/models/locate_device_action_result.rb', line 49 def get_field_deserializers() return super.merge({ "deviceLocation" => lambda {|n| @device_location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceGeoLocation.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
59 60 61 62 63 |
# File 'lib/models/locate_device_action_result.rb', line 59 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("deviceLocation", @device_location) end |