Class: MicrosoftGraph::Models::UpdateWindowsDeviceAccountActionParameter

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/update_windows_device_account_action_parameter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new updateWindowsDeviceAccountActionParameter and sets the default values.



67
68
69
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 67

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_windows_device_account_action_parameter

Raises:

  • (StandardError)


75
76
77
78
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 75

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UpdateWindowsDeviceAccountActionParameter.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



37
38
39
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 37

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



45
46
47
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#calendar_sync_enabledObject

Gets the calendarSyncEnabled property value. Not yet documented

Returns:

  • a boolean



52
53
54
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 52

def calendar_sync_enabled
    return @calendar_sync_enabled
end

#calendar_sync_enabled=(value) ⇒ Object

Sets the calendarSyncEnabled property value. Not yet documented

Parameters:

  • value

    Value to set for the calendarSyncEnabled property.

Returns:

  • a void



60
61
62
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 60

def calendar_sync_enabled=(value)
    @calendar_sync_enabled = value
end

#device_accountObject

Gets the deviceAccount property value. Not yet documented

Returns:

  • a windows_device_account



83
84
85
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 83

def 
    return @device_account
end

#device_account=(value) ⇒ Object

Sets the deviceAccount property value. Not yet documented

Parameters:

  • value

    Value to set for the deviceAccount property.

Returns:

  • a void



91
92
93
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 91

def device_account=(value)
    @device_account = value
end

#device_account_emailObject

Gets the deviceAccountEmail property value. Not yet documented

Returns:

  • a string



98
99
100
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 98

def 
    return @device_account_email
end

#device_account_email=(value) ⇒ Object

Sets the deviceAccountEmail property value. Not yet documented

Parameters:

  • value

    Value to set for the deviceAccountEmail property.

Returns:

  • a void



106
107
108
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 106

def (value)
    @device_account_email = value
end

#exchange_serverObject

Gets the exchangeServer property value. Not yet documented

Returns:

  • a string



113
114
115
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 113

def exchange_server
    return @exchange_server
end

#exchange_server=(value) ⇒ Object

Sets the exchangeServer property value. Not yet documented

Parameters:

  • value

    Value to set for the exchangeServer property.

Returns:

  • a void



121
122
123
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 121

def exchange_server=(value)
    @exchange_server = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



128
129
130
131
132
133
134
135
136
137
138
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 128

def get_field_deserializers()
    return {
        "calendarSyncEnabled" => lambda {|n| @calendar_sync_enabled = n.get_boolean_value() },
        "deviceAccount" => lambda {|n| @device_account = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WindowsDeviceAccount.create_from_discriminator_value(pn) }) },
        "deviceAccountEmail" => lambda {|n| @device_account_email = n.get_string_value() },
        "exchangeServer" => lambda {|n| @exchange_server = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "passwordRotationEnabled" => lambda {|n| @password_rotation_enabled = n.get_boolean_value() },
        "sessionInitiationProtocalAddress" => lambda {|n| @session_initiation_protocal_address = n.get_string_value() },
    }
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



143
144
145
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 143

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



151
152
153
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 151

def odata_type=(value)
    @odata_type = value
end

#password_rotation_enabledObject

Gets the passwordRotationEnabled property value. Not yet documented

Returns:

  • a boolean



158
159
160
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 158

def password_rotation_enabled
    return @password_rotation_enabled
end

#password_rotation_enabled=(value) ⇒ Object

Sets the passwordRotationEnabled property value. Not yet documented

Parameters:

  • value

    Value to set for the passwordRotationEnabled property.

Returns:

  • a void



166
167
168
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 166

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


174
175
176
177
178
179
180
181
182
183
184
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 174

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("calendarSyncEnabled", @calendar_sync_enabled)
    writer.write_object_value("deviceAccount", @device_account)
    writer.write_string_value("deviceAccountEmail", @device_account_email)
    writer.write_string_value("exchangeServer", @exchange_server)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_boolean_value("passwordRotationEnabled", @password_rotation_enabled)
    writer.write_string_value("sessionInitiationProtocalAddress", @session_initiation_protocal_address)
    writer.write_additional_data(@additional_data)
end

#session_initiation_protocal_addressObject

Gets the sessionInitiationProtocalAddress property value. Not yet documented

Returns:

  • a string



189
190
191
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 189

def session_initiation_protocal_address
    return @session_initiation_protocal_address
end

#session_initiation_protocal_address=(value) ⇒ Object

Sets the sessionInitiationProtocalAddress property value. Not yet documented

Parameters:

  • value

    Value to set for the sessionInitiationProtocalAddress property.

Returns:

  • a void



197
198
199
# File 'lib/models/update_windows_device_account_action_parameter.rb', line 197

def session_initiation_protocal_address=(value)
    @session_initiation_protocal_address = value
end