Class: MicrosoftGraph::DeviceManagement::WindowsAutopilotDeviceIdentities::Item::UpdateDeviceProperties::UpdateDevicePropertiesPostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new updateDevicePropertiesPostRequestBody and sets the default values.



64
65
66
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 64

def initialize()
    @additional_data = Hash.new
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 update_device_properties_post_request_body

Raises:

  • (StandardError)


72
73
74
75
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 72

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UpdateDevicePropertiesPostRequestBody.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 34

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#addressable_user_nameObject

Gets the addressableUserName property value. The addressableUserName property

Returns:

  • a string



49
50
51
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 49

def addressable_user_name
    return @addressable_user_name
end

#addressable_user_name=(value) ⇒ Object

Sets the addressableUserName property value. The addressableUserName property

Parameters:

  • value

    Value to set for the addressableUserName property.

Returns:

  • a void



57
58
59
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 57

def addressable_user_name=(value)
    @addressable_user_name = value
end

#display_nameObject

Gets the displayName property value. The displayName property

Returns:

  • a string



80
81
82
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 80

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The displayName property

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



88
89
90
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 88

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



95
96
97
98
99
100
101
102
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 95

def get_field_deserializers()
    return {
        "addressableUserName" => lambda {|n| @addressable_user_name = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "groupTag" => lambda {|n| @group_tag = n.get_string_value() },
        "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() },
    }
end

#group_tagObject

Gets the groupTag property value. The groupTag property

Returns:

  • a string



107
108
109
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 107

def group_tag
    return @group_tag
end

#group_tag=(value) ⇒ Object

Sets the groupTag property value. The groupTag property

Parameters:

  • value

    Value to set for the groupTag property.

Returns:

  • a void



115
116
117
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 115

def group_tag=(value)
    @group_tag = 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)


123
124
125
126
127
128
129
130
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 123

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("addressableUserName", @addressable_user_name)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("groupTag", @group_tag)
    writer.write_string_value("userPrincipalName", @user_principal_name)
    writer.write_additional_data(@additional_data)
end

#user_principal_nameObject

Gets the userPrincipalName property value. The userPrincipalName property

Returns:

  • a string



135
136
137
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 135

def user_principal_name
    return @user_principal_name
end

#user_principal_name=(value) ⇒ Object

Sets the userPrincipalName property value. The userPrincipalName property

Parameters:

  • value

    Value to set for the userPrincipalName property.

Returns:

  • a void



143
144
145
# File 'lib/device_management/windows_autopilot_device_identities/item/update_device_properties/update_device_properties_post_request_body.rb', line 143

def user_principal_name=(value)
    @user_principal_name = value
end