Class: MicrosoftGraph::Models::IosUpdateDeviceStatus

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_update_device_status.rb

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 iosUpdateDeviceStatus and sets the default values.



62
63
64
# File 'lib/models/ios_update_device_status.rb', line 62

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 ios_update_device_status

Raises:

  • (StandardError)


70
71
72
73
# File 'lib/models/ios_update_device_status.rb', line 70

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



47
48
49
# File 'lib/models/ios_update_device_status.rb', line 47

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



55
56
57
# File 'lib/models/ios_update_device_status.rb', line 55

def compliance_grace_period_expiration_date_time=(value)
    @compliance_grace_period_expiration_date_time = value
end

#device_display_nameObject

Gets the deviceDisplayName property value. Device name of the DevicePolicyStatus.

Returns:

  • a string



78
79
80
# File 'lib/models/ios_update_device_status.rb', line 78

def device_display_name
    return @device_display_name
end

#device_display_name=(value) ⇒ Object

Sets the deviceDisplayName property value. Device name of the DevicePolicyStatus.

Parameters:

  • value

    Value to set for the deviceDisplayName property.

Returns:

  • a void



86
87
88
# File 'lib/models/ios_update_device_status.rb', line 86

def device_display_name=(value)
    @device_display_name = value
end

#device_idObject

Gets the deviceId property value. The device id that is being reported.

Returns:

  • a string



93
94
95
# File 'lib/models/ios_update_device_status.rb', line 93

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



101
102
103
# File 'lib/models/ios_update_device_status.rb', line 101

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



108
109
110
# File 'lib/models/ios_update_device_status.rb', line 108

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



116
117
118
# File 'lib/models/ios_update_device_status.rb', line 116

def device_model=(value)
    @device_model = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/models/ios_update_device_status.rb', line 123

def get_field_deserializers()
    return super.merge({
        "complianceGracePeriodExpirationDateTime" => lambda {|n| @compliance_grace_period_expiration_date_time = n.get_date_time_value() },
        "deviceDisplayName" => lambda {|n| @device_display_name = n.get_string_value() },
        "deviceId" => lambda {|n| @device_id = n.get_string_value() },
        "deviceModel" => lambda {|n| @device_model = n.get_string_value() },
        "installStatus" => lambda {|n| @install_status = n.get_enum_value(MicrosoftGraph::Models::IosUpdatesInstallStatus) },
        "lastReportedDateTime" => lambda {|n| @last_reported_date_time = n.get_date_time_value() },
        "osVersion" => lambda {|n| @os_version = n.get_string_value() },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::ComplianceStatus) },
        "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

#install_statusObject

Gets the installStatus property value. The installStatus property

Returns:

  • a ios_updates_install_status



142
143
144
# File 'lib/models/ios_update_device_status.rb', line 142

def install_status
    return @install_status
end

#install_status=(value) ⇒ Object

Sets the installStatus property value. The installStatus property

Parameters:

  • value

    Value to set for the installStatus property.

Returns:

  • a void



150
151
152
# File 'lib/models/ios_update_device_status.rb', line 150

def install_status=(value)
    @install_status = value
end

#last_reported_date_timeObject

Gets the lastReportedDateTime property value. Last modified date time of the policy report.

Returns:

  • a date_time



157
158
159
# File 'lib/models/ios_update_device_status.rb', line 157

def last_reported_date_time
    return @last_reported_date_time
end

#last_reported_date_time=(value) ⇒ Object

Sets the lastReportedDateTime property value. Last modified date time of the policy report.

Parameters:

  • value

    Value to set for the lastReportedDateTime property.

Returns:

  • a void



165
166
167
# File 'lib/models/ios_update_device_status.rb', line 165

def last_reported_date_time=(value)
    @last_reported_date_time = value
end

#os_versionObject

Gets the osVersion property value. The device version that is being reported.

Returns:

  • a string



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

def os_version
    return @os_version
end

#os_version=(value) ⇒ Object

Sets the osVersion property value. The device version that is being reported.

Parameters:

  • value

    Value to set for the osVersion property.

Returns:

  • a void



180
181
182
# File 'lib/models/ios_update_device_status.rb', line 180

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


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

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("deviceDisplayName", @device_display_name)
    writer.write_string_value("deviceId", @device_id)
    writer.write_string_value("deviceModel", @device_model)
    writer.write_enum_value("installStatus", @install_status)
    writer.write_date_time_value("lastReportedDateTime", @last_reported_date_time)
    writer.write_string_value("osVersion", @os_version)
    writer.write_enum_value("status", @status)
    writer.write_string_value("userId", @user_id)
    writer.write_string_value("userName", @user_name)
    writer.write_string_value("userPrincipalName", @user_principal_name)
end

#statusObject

Gets the status property value. The status property

Returns:

  • a compliance_status



207
208
209
# File 'lib/models/ios_update_device_status.rb', line 207

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status property

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



215
216
217
# File 'lib/models/ios_update_device_status.rb', line 215

def status=(value)
    @status = value
end

#user_idObject

Gets the userId property value. The User id that is being reported.

Returns:

  • a string



222
223
224
# File 'lib/models/ios_update_device_status.rb', line 222

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



230
231
232
# File 'lib/models/ios_update_device_status.rb', line 230

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



237
238
239
# File 'lib/models/ios_update_device_status.rb', line 237

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



245
246
247
# File 'lib/models/ios_update_device_status.rb', line 245

def user_name=(value)
    @user_name = value
end

#user_principal_nameObject

Gets the userPrincipalName property value. UserPrincipalName.

Returns:

  • a string



252
253
254
# File 'lib/models/ios_update_device_status.rb', line 252

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



260
261
262
# File 'lib/models/ios_update_device_status.rb', line 260

def user_principal_name=(value)
    @user_principal_name = value
end