Class: MicrosoftGraph::Models::ImportedWindowsAutopilotDeviceIdentity

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/imported_windows_autopilot_device_identity.rb

Overview

Imported windows autopilot devices.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a imported_windows_autopilot_device_identity

Raises:

  • (StandardError)


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_nameObject

Gets the assignedUserPrincipalName property value. UPN of the user the device will be assigned

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the assignedUserPrincipalName property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_tagObject

Gets the groupTag property value. Group Tag of the Windows autopilot device.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the groupTag property.

Returns:

  • a void



90
91
92
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 90

def group_tag=(value)
    @group_tag = value
end

#hardware_identifierObject

Gets the hardwareIdentifier property value. Hardware Blob of the Windows autopilot device.

Returns:

  • a base64url



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.

Parameters:

  • value

    Value to set for the hardwareIdentifier property.

Returns:

  • a void



105
106
107
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 105

def hardware_identifier=(value)
    @hardware_identifier = value
end

#import_idObject

Gets the importId property value. The Import Id of the Windows autopilot device.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the importId property.

Returns:

  • a void



120
121
122
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 120

def import_id=(value)
    @import_id = value
end

#product_keyObject

Gets the productKey property value. Product Key of the Windows autopilot device.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the productKey property.

Returns:

  • a void



135
136
137
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 135

def product_key=(value)
    @product_key = value
end

#serial_numberObject

Gets the serialNumber property value. Serial number of the Windows autopilot device.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the serialNumber property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#stateObject

Gets the state property value. Current state of the imported device.

Returns:

  • a imported_windows_autopilot_device_identity_state



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.

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



181
182
183
# File 'lib/models/imported_windows_autopilot_device_identity.rb', line 181

def state=(value)
    @state = value
end