Class: MicrosoftGraph::Models::DeviceComplianceSettingState
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_compliance_setting_state.rb
Overview
Device compliance 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
-
#compliance_grace_period_expiration_date_time ⇒ Object
Gets the complianceGracePeriodExpirationDateTime property value.
-
#compliance_grace_period_expiration_date_time=(value) ⇒ Object
Sets the complianceGracePeriodExpirationDateTime property value.
-
#device_id ⇒ Object
Gets the deviceId property value.
-
#device_id=(value) ⇒ Object
Sets the deviceId property value.
-
#device_model ⇒ Object
Gets the deviceModel property value.
-
#device_model=(value) ⇒ Object
Sets the deviceModel property value.
-
#device_name ⇒ Object
Gets the deviceName property value.
-
#device_name=(value) ⇒ Object
Sets the deviceName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceComplianceSettingState and sets the default values.
-
#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.
-
#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.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceComplianceSettingState and sets the default values.
64 65 66 |
# File 'lib/models/device_compliance_setting_state.rb', line 64 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
72 73 74 75 |
# File 'lib/models/device_compliance_setting_state.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceComplianceSettingState.new end |
Instance Method Details
#compliance_grace_period_expiration_date_time ⇒ Object
Gets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires
49 50 51 |
# File 'lib/models/device_compliance_setting_state.rb', line 49 def compliance_grace_period_expiration_date_time return @compliance_grace_period_expiration_date_time end |
#compliance_grace_period_expiration_date_time=(value) ⇒ Object
Sets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires
57 58 59 |
# File 'lib/models/device_compliance_setting_state.rb', line 57 def compliance_grace_period_expiration_date_time=(value) @compliance_grace_period_expiration_date_time = value end |
#device_id ⇒ Object
Gets the deviceId property value. The Device Id that is being reported
80 81 82 |
# File 'lib/models/device_compliance_setting_state.rb', line 80 def device_id return @device_id end |
#device_id=(value) ⇒ Object
Sets the deviceId property value. The Device Id that is being reported
88 89 90 |
# File 'lib/models/device_compliance_setting_state.rb', line 88 def device_id=(value) @device_id = value end |
#device_model ⇒ Object
Gets the deviceModel property value. The device model that is being reported
95 96 97 |
# File 'lib/models/device_compliance_setting_state.rb', line 95 def device_model return @device_model end |
#device_model=(value) ⇒ Object
Sets the deviceModel property value. The device model that is being reported
103 104 105 |
# File 'lib/models/device_compliance_setting_state.rb', line 103 def device_model=(value) @device_model = value end |
#device_name ⇒ Object
Gets the deviceName property value. The Device Name that is being reported
110 111 112 |
# File 'lib/models/device_compliance_setting_state.rb', line 110 def device_name return @device_name end |
#device_name=(value) ⇒ Object
Sets the deviceName property value. The Device Name that is being reported
118 119 120 |
# File 'lib/models/device_compliance_setting_state.rb', line 118 def device_name=(value) @device_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/models/device_compliance_setting_state.rb', line 125 def get_field_deserializers() return super.merge({ "complianceGracePeriodExpirationDateTime" => lambda {|n| @compliance_grace_period_expiration_date_time = n.get_date_time_value() }, "deviceId" => lambda {|n| @device_id = n.get_string_value() }, "deviceModel" => lambda {|n| @device_model = n.get_string_value() }, "deviceName" => lambda {|n| @device_name = n.get_string_value() }, "setting" => lambda {|n| @setting = n.get_string_value() }, "settingName" => lambda {|n| @setting_name = n.get_string_value() }, "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 |
#serialize(writer) ⇒ Object
Serializes information the current object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/models/device_compliance_setting_state.rb', line 145 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("complianceGracePeriodExpirationDateTime", @compliance_grace_period_expiration_date_time) writer.write_string_value("deviceId", @device_id) writer.write_string_value("deviceModel", @device_model) writer.write_string_value("deviceName", @device_name) writer.write_string_value("setting", @setting) writer.write_string_value("settingName", @setting_name) 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) end |
#setting ⇒ Object
Gets the setting property value. The setting class name and property name.
164 165 166 |
# File 'lib/models/device_compliance_setting_state.rb', line 164 def setting return @setting end |
#setting=(value) ⇒ Object
Sets the setting property value. The setting class name and property name.
172 173 174 |
# File 'lib/models/device_compliance_setting_state.rb', line 172 def setting=(value) @setting = value end |
#setting_name ⇒ Object
Gets the settingName property value. The Setting Name that is being reported
179 180 181 |
# File 'lib/models/device_compliance_setting_state.rb', line 179 def setting_name return @setting_name end |
#setting_name=(value) ⇒ Object
Sets the settingName property value. The Setting Name that is being reported
187 188 189 |
# File 'lib/models/device_compliance_setting_state.rb', line 187 def setting_name=(value) @setting_name = value end |
#state ⇒ Object
Gets the state property value. The state property
194 195 196 |
# File 'lib/models/device_compliance_setting_state.rb', line 194 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The state property
202 203 204 |
# File 'lib/models/device_compliance_setting_state.rb', line 202 def state=(value) @state = value end |
#user_email ⇒ Object
Gets the userEmail property value. The User email address that is being reported
209 210 211 |
# File 'lib/models/device_compliance_setting_state.rb', line 209 def user_email return @user_email end |
#user_email=(value) ⇒ Object
Sets the userEmail property value. The User email address that is being reported
217 218 219 |
# File 'lib/models/device_compliance_setting_state.rb', line 217 def user_email=(value) @user_email = value end |
#user_id ⇒ Object
Gets the userId property value. The user Id that is being reported
224 225 226 |
# File 'lib/models/device_compliance_setting_state.rb', line 224 def user_id return @user_id end |
#user_id=(value) ⇒ Object
Sets the userId property value. The user Id that is being reported
232 233 234 |
# File 'lib/models/device_compliance_setting_state.rb', line 232 def user_id=(value) @user_id = value end |
#user_name ⇒ Object
Gets the userName property value. The User Name that is being reported
239 240 241 |
# File 'lib/models/device_compliance_setting_state.rb', line 239 def user_name return @user_name end |
#user_name=(value) ⇒ Object
Sets the userName property value. The User Name that is being reported
247 248 249 |
# File 'lib/models/device_compliance_setting_state.rb', line 247 def user_name=(value) @user_name = value end |
#user_principal_name ⇒ Object
Gets the userPrincipalName property value. The User PrincipalName that is being reported
254 255 256 |
# File 'lib/models/device_compliance_setting_state.rb', line 254 def user_principal_name return @user_principal_name end |
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value. The User PrincipalName that is being reported
262 263 264 |
# File 'lib/models/device_compliance_setting_state.rb', line 262 def user_principal_name=(value) @user_principal_name = value end |