Class: MicrosoftGraph::Models::DeviceConfigurationSettingState
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::DeviceConfigurationSettingState
- 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
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#current_value ⇒ Object
Gets the currentValue property value.
-
#current_value=(value) ⇒ Object
Sets the currentValue property value.
-
#error_code ⇒ Object
Gets the errorCode property value.
-
#error_code=(value) ⇒ Object
Sets the errorCode property value.
-
#error_description ⇒ Object
Gets the errorDescription property value.
-
#error_description=(value) ⇒ Object
Sets the errorDescription property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceConfigurationSettingState and sets the default values.
-
#instance_display_name ⇒ Object
Gets the instanceDisplayName property value.
-
#instance_display_name=(value) ⇒ Object
Sets the instanceDisplayName property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#setting ⇒ Object
Gets the setting property value.
-
#setting=(value) ⇒ Object
Sets the setting property value.
-
#setting_name ⇒ Object
Gets the settingName property value.
-
#setting_name=(value) ⇒ Object
Sets the settingName property value.
-
#sources ⇒ Object
Gets the sources property value.
-
#sources=(value) ⇒ Object
Sets the sources property value.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#user_email ⇒ Object
Gets the userEmail property value.
-
#user_email=(value) ⇒ Object
Sets the userEmail property value.
-
#user_id ⇒ Object
Gets the userId property value.
-
#user_id=(value) ⇒ Object
Sets the userId property value.
-
#user_name ⇒ Object
Gets the userName property value.
-
#user_name=(value) ⇒ Object
Sets the userName property value.
-
#user_principal_name ⇒ Object
Gets the userPrincipalName property value.
-
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
65 66 67 |
# File 'lib/models/device_configuration_setting_state.rb', line 65 def additional_data=(value) @additional_data = value end |
#current_value ⇒ Object
Gets the currentValue property value. Current value of setting on device
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
96 97 98 |
# File 'lib/models/device_configuration_setting_state.rb', line 96 def current_value=(value) @current_value = value end |
#error_code ⇒ Object
Gets the errorCode property value. Error code for the setting
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
111 112 113 |
# File 'lib/models/device_configuration_setting_state.rb', line 111 def error_code=(value) @error_code = value end |
#error_description ⇒ Object
Gets the errorDescription property value. Error description
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
126 127 128 |
# File 'lib/models/device_configuration_setting_state.rb', line 126 def error_description=(value) @error_description = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_name ⇒ Object
Gets the instanceDisplayName property value. Name of setting instance that is being reported.
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.
162 163 164 |
# File 'lib/models/device_configuration_setting_state.rb', line 162 def instance_display_name=(value) @instance_display_name = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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 |
#setting ⇒ Object
Gets the setting property value. The setting that is being reported
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
214 215 216 |
# File 'lib/models/device_configuration_setting_state.rb', line 214 def setting=(value) @setting = value end |
#setting_name ⇒ Object
Gets the settingName property value. Localized/user friendly setting name that is being reported
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
229 230 231 |
# File 'lib/models/device_configuration_setting_state.rb', line 229 def setting_name=(value) @setting_name = value end |
#sources ⇒ Object
Gets the sources property value. Contributing policies
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
244 245 246 |
# File 'lib/models/device_configuration_setting_state.rb', line 244 def sources=(value) @sources = value end |
#state ⇒ Object
Gets the state property value. The state property
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
259 260 261 |
# File 'lib/models/device_configuration_setting_state.rb', line 259 def state=(value) @state = value end |
#user_email ⇒ Object
Gets the userEmail property value. UserEmail
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
274 275 276 |
# File 'lib/models/device_configuration_setting_state.rb', line 274 def user_email=(value) @user_email = value end |
#user_id ⇒ Object
Gets the userId property value. UserId
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
289 290 291 |
# File 'lib/models/device_configuration_setting_state.rb', line 289 def user_id=(value) @user_id = value end |
#user_name ⇒ Object
Gets the userName property value. UserName
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
304 305 306 |
# File 'lib/models/device_configuration_setting_state.rb', line 304 def user_name=(value) @user_name = value end |
#user_principal_name ⇒ Object
Gets the userPrincipalName property value. UserPrincipalName.
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.
319 320 321 |
# File 'lib/models/device_configuration_setting_state.rb', line 319 def user_principal_name=(value) @user_principal_name = value end |