Class: MicrosoftGraph::Models::DeviceComplianceSettingState

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a device_compliance_setting_state

Raises:

  • (StandardError)


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_timeObject

Gets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the complianceGracePeriodExpirationDateTime property.

Returns:

  • a void



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_idObject

Gets the deviceId property value. The Device Id that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the deviceId property.

Returns:

  • a void



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

def device_id=(value)
    @device_id = value
end

#device_modelObject

Gets the deviceModel property value. The device model that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the deviceModel property.

Returns:

  • a void



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

def device_model=(value)
    @device_model = value
end

#device_nameObject

Gets the deviceName property value. The Device Name that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the deviceName property.

Returns:

  • a void



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

def device_name=(value)
    @device_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#settingObject

Gets the setting property value. The setting class name and property name.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the setting property.

Returns:

  • a void



172
173
174
# File 'lib/models/device_compliance_setting_state.rb', line 172

def setting=(value)
    @setting = value
end

#setting_nameObject

Gets the settingName property value. The Setting Name that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the settingName property.

Returns:

  • a void



187
188
189
# File 'lib/models/device_compliance_setting_state.rb', line 187

def setting_name=(value)
    @setting_name = value
end

#stateObject

Gets the state property value. The state property

Returns:

  • a compliance_status



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

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



202
203
204
# File 'lib/models/device_compliance_setting_state.rb', line 202

def state=(value)
    @state = value
end

#user_emailObject

Gets the userEmail property value. The User email address that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the userEmail property.

Returns:

  • a void



217
218
219
# File 'lib/models/device_compliance_setting_state.rb', line 217

def user_email=(value)
    @user_email = value
end

#user_idObject

Gets the userId property value. The user Id that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the userId property.

Returns:

  • a void



232
233
234
# File 'lib/models/device_compliance_setting_state.rb', line 232

def user_id=(value)
    @user_id = value
end

#user_nameObject

Gets the userName property value. The User Name that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the userName property.

Returns:

  • a void



247
248
249
# File 'lib/models/device_compliance_setting_state.rb', line 247

def user_name=(value)
    @user_name = value
end

#user_principal_nameObject

Gets the userPrincipalName property value. The User PrincipalName that is being reported

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the userPrincipalName property.

Returns:

  • a void



262
263
264
# File 'lib/models/device_compliance_setting_state.rb', line 262

def user_principal_name=(value)
    @user_principal_name = value
end