Class: MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity
- Inherits:
-
Entity
- Object
- Entity
- MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/imported_windows_autopilot_device_identity.rb
Overview
Imported windows autopilot devices.
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
-
#assigned_user_principal_name ⇒ Object
Gets the assignedUserPrincipalName property value.
-
#assigned_user_principal_name=(value) ⇒ Object
Sets the assignedUserPrincipalName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#group_tag ⇒ Object
Gets the groupTag property value.
-
#group_tag=(value) ⇒ Object
Sets the groupTag property value.
-
#hardware_identifier ⇒ Object
Gets the hardwareIdentifier property value.
-
#hardware_identifier=(value) ⇒ Object
Sets the hardwareIdentifier property value.
-
#import_id ⇒ Object
Gets the importId property value.
-
#import_id=(value) ⇒ Object
Sets the importId property value.
-
#initialize ⇒ Object
constructor
Instantiates a new importedWindowsAutopilotDeviceIdentity and sets the default values.
-
#product_key ⇒ Object
Gets the productKey property value.
-
#product_key=(value) ⇒ Object
Sets the productKey property value.
-
#serial_number ⇒ Object
Gets the serialNumber property value.
-
#serial_number=(value) ⇒ Object
Sets the serialNumber property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new importedWindowsAutopilotDeviceIdentity and sets the default values.
51 52 53 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 51 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
59 60 61 62 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 59 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ImportedWindowsAutopilotDeviceIdentity.new end |
Instance Method Details
#assigned_user_principal_name ⇒ Object
Gets the assignedUserPrincipalName property value. UPN of the user the device will be assigned
36 37 38 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 36 def assigned_user_principal_name return @assigned_user_principal_name end |
#assigned_user_principal_name=(value) ⇒ Object
Sets the assignedUserPrincipalName property value. UPN of the user the device will be assigned
44 45 46 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 44 def assigned_user_principal_name=(value) @assigned_user_principal_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 67 def get_field_deserializers() return super.merge({ "assignedUserPrincipalName" => lambda {|n| @assigned_user_principal_name = n.get_string_value() }, "groupTag" => lambda {|n| @group_tag = n.get_string_value() }, "hardwareIdentifier" => lambda {|n| @hardware_identifier = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "importId" => lambda {|n| @import_id = n.get_string_value() }, "productKey" => lambda {|n| @product_key = n.get_string_value() }, "serialNumber" => lambda {|n| @serial_number = n.get_string_value() }, "state" => lambda {|n| @state = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentityState.create_from_discriminator_value(pn) }) }, }) end |
#group_tag ⇒ Object
Gets the groupTag property value. Group Tag of the Windows autopilot device.
82 83 84 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 82 def group_tag return @group_tag end |
#group_tag=(value) ⇒ Object
Sets the groupTag property value. Group Tag of the Windows autopilot device.
90 91 92 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 90 def group_tag=(value) @group_tag = value end |
#hardware_identifier ⇒ Object
Gets the hardwareIdentifier property value. Hardware Blob of the Windows autopilot device.
97 98 99 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 97 def hardware_identifier return @hardware_identifier end |
#hardware_identifier=(value) ⇒ Object
Sets the hardwareIdentifier property value. Hardware Blob of the Windows autopilot device.
105 106 107 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 105 def hardware_identifier=(value) @hardware_identifier = value end |
#import_id ⇒ Object
Gets the importId property value. The Import Id of the Windows autopilot device.
112 113 114 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 112 def import_id return @import_id end |
#import_id=(value) ⇒ Object
Sets the importId property value. The Import Id of the Windows autopilot device.
120 121 122 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 120 def import_id=(value) @import_id = value end |
#product_key ⇒ Object
Gets the productKey property value. Product Key of the Windows autopilot device.
127 128 129 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 127 def product_key return @product_key end |
#product_key=(value) ⇒ Object
Sets the productKey property value. Product Key of the Windows autopilot device.
135 136 137 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 135 def product_key=(value) @product_key = value end |
#serial_number ⇒ Object
Gets the serialNumber property value. Serial number of the Windows autopilot device.
142 143 144 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 142 def serial_number return @serial_number end |
#serial_number=(value) ⇒ Object
Sets the serialNumber property value. Serial number of the Windows autopilot device.
150 151 152 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 150 def serial_number=(value) @serial_number = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 158 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("assignedUserPrincipalName", @assigned_user_principal_name) writer.write_string_value("groupTag", @group_tag) writer.write_object_value("hardwareIdentifier", @hardware_identifier) writer.write_string_value("importId", @import_id) writer.write_string_value("productKey", @product_key) writer.write_string_value("serialNumber", @serial_number) writer.write_object_value("state", @state) end |
#state ⇒ Object
Gets the state property value. Current state of the imported device.
173 174 175 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 173 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. Current state of the imported device.
181 182 183 |
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 181 def state=(value) @state = value end |