Class: MicrosoftGraph::Models::RemoteLockActionResult
- Inherits:
-
DeviceActionResult
- Object
- DeviceActionResult
- MicrosoftGraph::Models::RemoteLockActionResult
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/remote_lock_action_result.rb
Overview
Lock action result with a pin to unlock
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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new remoteLockActionResult and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#unlock_pin ⇒ Object
Gets the unlockPin property value.
-
#unlock_pin=(value) ⇒ Object
Sets the unlockPin property value.
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 remoteLockActionResult and sets the default values.
18 19 20 |
# File 'lib/models/remote_lock_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/remote_lock_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 RemoteLockActionResult.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
34 35 36 37 38 |
# File 'lib/models/remote_lock_action_result.rb', line 34 def get_field_deserializers() return super.merge({ "unlockPin" => lambda {|n| @unlock_pin = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
44 45 46 47 48 |
# File 'lib/models/remote_lock_action_result.rb', line 44 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("unlockPin", @unlock_pin) end |
#unlock_pin ⇒ Object
Gets the unlockPin property value. Pin to unlock the client
53 54 55 |
# File 'lib/models/remote_lock_action_result.rb', line 53 def unlock_pin return @unlock_pin end |
#unlock_pin=(value) ⇒ Object
Sets the unlockPin property value. Pin to unlock the client
61 62 63 |
# File 'lib/models/remote_lock_action_result.rb', line 61 def unlock_pin=(value) @unlock_pin = value end |