Class: MicrosoftGraph::Models::DeviceConfigurationState
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_configuration_state.rb
Overview
Device Configuration 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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceConfigurationState and sets the default values.
-
#platform_type ⇒ Object
Gets the platformType property value.
-
#platform_type=(value) ⇒ Object
Sets the platformType property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#setting_count ⇒ Object
Gets the settingCount property value.
-
#setting_count=(value) ⇒ Object
Sets the settingCount property value.
-
#setting_states ⇒ Object
Gets the settingStates property value.
-
#setting_states=(value) ⇒ Object
Sets the settingStates property value.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceConfigurationState and sets the default values.
33 34 35 |
# File 'lib/models/device_configuration_state.rb', line 33 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
41 42 43 44 |
# File 'lib/models/device_configuration_state.rb', line 41 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceConfigurationState.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The name of the policy for this policyBase
49 50 51 |
# File 'lib/models/device_configuration_state.rb', line 49 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the policy for this policyBase
57 58 59 |
# File 'lib/models/device_configuration_state.rb', line 57 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/models/device_configuration_state.rb', line 64 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "platformType" => lambda {|n| @platform_type = n.get_enum_value(MicrosoftGraph::Models::PolicyPlatformType) }, "settingCount" => lambda {|n| @setting_count = n.get_number_value() }, "settingStates" => lambda {|n| @setting_states = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationSettingState.create_from_discriminator_value(pn) }) }, "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::ComplianceStatus) }, "version" => lambda {|n| @version = n.get_number_value() }, }) end |
#platform_type ⇒ Object
Gets the platformType property value. Supported platform types for policies.
78 79 80 |
# File 'lib/models/device_configuration_state.rb', line 78 def platform_type return @platform_type end |
#platform_type=(value) ⇒ Object
Sets the platformType property value. Supported platform types for policies.
86 87 88 |
# File 'lib/models/device_configuration_state.rb', line 86 def platform_type=(value) @platform_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/models/device_configuration_state.rb', line 94 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_enum_value("platformType", @platform_type) writer.write_number_value("settingCount", @setting_count) writer.write_collection_of_object_values("settingStates", @setting_states) writer.write_enum_value("state", @state) writer.write_number_value("version", @version) end |
#setting_count ⇒ Object
Gets the settingCount property value. Count of how many setting a policy holds
108 109 110 |
# File 'lib/models/device_configuration_state.rb', line 108 def setting_count return @setting_count end |
#setting_count=(value) ⇒ Object
Sets the settingCount property value. Count of how many setting a policy holds
116 117 118 |
# File 'lib/models/device_configuration_state.rb', line 116 def setting_count=(value) @setting_count = value end |
#setting_states ⇒ Object
Gets the settingStates property value. The settingStates property
123 124 125 |
# File 'lib/models/device_configuration_state.rb', line 123 def setting_states return @setting_states end |
#setting_states=(value) ⇒ Object
Sets the settingStates property value. The settingStates property
131 132 133 |
# File 'lib/models/device_configuration_state.rb', line 131 def setting_states=(value) @setting_states = value end |
#state ⇒ Object
Gets the state property value. The state property
138 139 140 |
# File 'lib/models/device_configuration_state.rb', line 138 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The state property
146 147 148 |
# File 'lib/models/device_configuration_state.rb', line 146 def state=(value) @state = value end |
#version ⇒ Object
Gets the version property value. The version of the policy
153 154 155 |
# File 'lib/models/device_configuration_state.rb', line 153 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. The version of the policy
161 162 163 |
# File 'lib/models/device_configuration_state.rb', line 161 def version=(value) @version = value end |