Class: MicrosoftGraph::Models::DeviceConfigurationSettingState

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

Overview

Device Configuration Setting State for a given device.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new deviceConfigurationSettingState and sets the default values.



72
73
74
# File 'lib/models/device_configuration_setting_state.rb', line 72

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 device_configuration_setting_state

Raises:

  • (StandardError)


80
81
82
83
# File 'lib/models/device_configuration_setting_state.rb', line 80

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



57
58
59
# File 'lib/models/device_configuration_setting_state.rb', line 57

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



65
66
67
# File 'lib/models/device_configuration_setting_state.rb', line 65

def additional_data=(value)
    @additional_data = value
end

#current_valueObject

Gets the currentValue property value. Current value of setting on device

Returns:

  • a string



88
89
90
# File 'lib/models/device_configuration_setting_state.rb', line 88

def current_value
    return @current_value
end

#current_value=(value) ⇒ Object

Sets the currentValue property value. Current value of setting on device

Parameters:

  • value

    Value to set for the currentValue property.

Returns:

  • a void



96
97
98
# File 'lib/models/device_configuration_setting_state.rb', line 96

def current_value=(value)
    @current_value = value
end

#error_codeObject

Gets the errorCode property value. Error code for the setting

Returns:

  • a int64



103
104
105
# File 'lib/models/device_configuration_setting_state.rb', line 103

def error_code
    return @error_code
end

#error_code=(value) ⇒ Object

Sets the errorCode property value. Error code for the setting

Parameters:

  • value

    Value to set for the errorCode property.

Returns:

  • a void



111
112
113
# File 'lib/models/device_configuration_setting_state.rb', line 111

def error_code=(value)
    @error_code = value
end

#error_descriptionObject

Gets the errorDescription property value. Error description

Returns:

  • a string



118
119
120
# File 'lib/models/device_configuration_setting_state.rb', line 118

def error_description
    return @error_description
end

#error_description=(value) ⇒ Object

Sets the errorDescription property value. Error description

Parameters:

  • value

    Value to set for the errorDescription property.

Returns:

  • a void



126
127
128
# File 'lib/models/device_configuration_setting_state.rb', line 126

def error_description=(value)
    @error_description = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/models/device_configuration_setting_state.rb', line 133

def get_field_deserializers()
    return {
        "currentValue" => lambda {|n| @current_value = n.get_string_value() },
        "errorCode" => lambda {|n| @error_code = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "errorDescription" => lambda {|n| @error_description = n.get_string_value() },
        "instanceDisplayName" => lambda {|n| @instance_display_name = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "setting" => lambda {|n| @setting = n.get_string_value() },
        "settingName" => lambda {|n| @setting_name = n.get_string_value() },
        "sources" => lambda {|n| @sources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SettingSource.create_from_discriminator_value(pn) }) },
        "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::ComplianceStatus) },
        "userEmail" => lambda {|n| @user_email = n.get_string_value() },
        "userId" => lambda {|n| @user_id = n.get_string_value() },
        "userName" => lambda {|n| @user_name = n.get_string_value() },
        "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() },
    }
end

#instance_display_nameObject

Gets the instanceDisplayName property value. Name of setting instance that is being reported.

Returns:

  • a string



154
155
156
# File 'lib/models/device_configuration_setting_state.rb', line 154

def instance_display_name
    return @instance_display_name
end

#instance_display_name=(value) ⇒ Object

Sets the instanceDisplayName property value. Name of setting instance that is being reported.

Parameters:

  • value

    Value to set for the instanceDisplayName property.

Returns:

  • a void



162
163
164
# File 'lib/models/device_configuration_setting_state.rb', line 162

def instance_display_name=(value)
    @instance_display_name = value
end

#odata_typeObject

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

Returns:

  • a string



169
170
171
# File 'lib/models/device_configuration_setting_state.rb', line 169

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



177
178
179
# File 'lib/models/device_configuration_setting_state.rb', line 177

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


185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/models/device_configuration_setting_state.rb', line 185

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("currentValue", @current_value)
    writer.write_object_value("errorCode", @error_code)
    writer.write_string_value("errorDescription", @error_description)
    writer.write_string_value("instanceDisplayName", @instance_display_name)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("setting", @setting)
    writer.write_string_value("settingName", @setting_name)
    writer.write_collection_of_object_values("sources", @sources)
    writer.write_enum_value("state", @state)
    writer.write_string_value("userEmail", @user_email)
    writer.write_string_value("userId", @user_id)
    writer.write_string_value("userName", @user_name)
    writer.write_string_value("userPrincipalName", @user_principal_name)
    writer.write_additional_data(@additional_data)
end

#settingObject

Gets the setting property value. The setting that is being reported

Returns:

  • a string



206
207
208
# File 'lib/models/device_configuration_setting_state.rb', line 206

def setting
    return @setting
end

#setting=(value) ⇒ Object

Sets the setting property value. The setting that is being reported

Parameters:

  • value

    Value to set for the setting property.

Returns:

  • a void



214
215
216
# File 'lib/models/device_configuration_setting_state.rb', line 214

def setting=(value)
    @setting = value
end

#setting_nameObject

Gets the settingName property value. Localized/user friendly setting name that is being reported

Returns:

  • a string



221
222
223
# File 'lib/models/device_configuration_setting_state.rb', line 221

def setting_name
    return @setting_name
end

#setting_name=(value) ⇒ Object

Sets the settingName property value. Localized/user friendly setting name that is being reported

Parameters:

  • value

    Value to set for the settingName property.

Returns:

  • a void



229
230
231
# File 'lib/models/device_configuration_setting_state.rb', line 229

def setting_name=(value)
    @setting_name = value
end

#sourcesObject

Gets the sources property value. Contributing policies

Returns:

  • a setting_source



236
237
238
# File 'lib/models/device_configuration_setting_state.rb', line 236

def sources
    return @sources
end

#sources=(value) ⇒ Object

Sets the sources property value. Contributing policies

Parameters:

  • value

    Value to set for the sources property.

Returns:

  • a void



244
245
246
# File 'lib/models/device_configuration_setting_state.rb', line 244

def sources=(value)
    @sources = value
end

#stateObject

Gets the state property value. The state property

Returns:

  • a compliance_status



251
252
253
# File 'lib/models/device_configuration_setting_state.rb', line 251

def state
    return @state
end

#state=(value) ⇒ Object

Sets the state property value. The state property

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



259
260
261
# File 'lib/models/device_configuration_setting_state.rb', line 259

def state=(value)
    @state = value
end

#user_emailObject

Gets the userEmail property value. UserEmail

Returns:

  • a string



266
267
268
# File 'lib/models/device_configuration_setting_state.rb', line 266

def user_email
    return @user_email
end

#user_email=(value) ⇒ Object

Sets the userEmail property value. UserEmail

Parameters:

  • value

    Value to set for the userEmail property.

Returns:

  • a void



274
275
276
# File 'lib/models/device_configuration_setting_state.rb', line 274

def user_email=(value)
    @user_email = value
end

#user_idObject

Gets the userId property value. UserId

Returns:

  • a string



281
282
283
# File 'lib/models/device_configuration_setting_state.rb', line 281

def user_id
    return @user_id
end

#user_id=(value) ⇒ Object

Sets the userId property value. UserId

Parameters:

  • value

    Value to set for the userId property.

Returns:

  • a void



289
290
291
# File 'lib/models/device_configuration_setting_state.rb', line 289

def user_id=(value)
    @user_id = value
end

#user_nameObject

Gets the userName property value. UserName

Returns:

  • a string



296
297
298
# File 'lib/models/device_configuration_setting_state.rb', line 296

def user_name
    return @user_name
end

#user_name=(value) ⇒ Object

Sets the userName property value. UserName

Parameters:

  • value

    Value to set for the userName property.

Returns:

  • a void



304
305
306
# File 'lib/models/device_configuration_setting_state.rb', line 304

def user_name=(value)
    @user_name = value
end

#user_principal_nameObject

Gets the userPrincipalName property value. UserPrincipalName.

Returns:

  • a string



311
312
313
# File 'lib/models/device_configuration_setting_state.rb', line 311

def user_principal_name
    return @user_principal_name
end

#user_principal_name=(value) ⇒ Object

Sets the userPrincipalName property value. UserPrincipalName.

Parameters:

  • value

    Value to set for the userPrincipalName property.

Returns:

  • a void



319
320
321
# File 'lib/models/device_configuration_setting_state.rb', line 319

def user_principal_name=(value)
    @user_principal_name = value
end