Class: MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceSummary

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

Overview

Contains properties, inherited properties and actions for an MDM mobile app configuration device status summary.

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



52
53
54
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 52

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 managed_device_mobile_app_configuration_device_summary

Raises:

  • (StandardError)


60
61
62
63
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 60

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return ManagedDeviceMobileAppConfigurationDeviceSummary.new
end

Instance Method Details

#configuration_versionObject

Gets the configurationVersion property value. Version of the policy for that overview

Returns:

  • a integer



37
38
39
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 37

def configuration_version
    return @configuration_version
end

#configuration_version=(value) ⇒ Object

Sets the configurationVersion property value. Version of the policy for that overview

Parameters:

  • value

    Value to set for the configurationVersion property.

Returns:

  • a void



45
46
47
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 45

def configuration_version=(value)
    @configuration_version = value
end

#error_countObject

Gets the errorCount property value. Number of error devices

Returns:

  • a integer



68
69
70
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 68

def error_count
    return @error_count
end

#error_count=(value) ⇒ Object

Sets the errorCount property value. Number of error devices

Parameters:

  • value

    Value to set for the errorCount property.

Returns:

  • a void



76
77
78
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 76

def error_count=(value)
    @error_count = value
end

#failed_countObject

Gets the failedCount property value. Number of failed devices

Returns:

  • a integer



83
84
85
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 83

def failed_count
    return @failed_count
end

#failed_count=(value) ⇒ Object

Sets the failedCount property value. Number of failed devices

Parameters:

  • value

    Value to set for the failedCount property.

Returns:

  • a void



91
92
93
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 91

def failed_count=(value)
    @failed_count = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 98

def get_field_deserializers()
    return super.merge({
        "configurationVersion" => lambda {|n| @configuration_version = n.get_number_value() },
        "errorCount" => lambda {|n| @error_count = n.get_number_value() },
        "failedCount" => lambda {|n| @failed_count = n.get_number_value() },
        "lastUpdateDateTime" => lambda {|n| @last_update_date_time = n.get_date_time_value() },
        "notApplicableCount" => lambda {|n| @not_applicable_count = n.get_number_value() },
        "pendingCount" => lambda {|n| @pending_count = n.get_number_value() },
        "successCount" => lambda {|n| @success_count = n.get_number_value() },
    })
end

#last_update_date_timeObject

Gets the lastUpdateDateTime property value. Last update time

Returns:

  • a date_time



113
114
115
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 113

def last_update_date_time
    return @last_update_date_time
end

#last_update_date_time=(value) ⇒ Object

Sets the lastUpdateDateTime property value. Last update time

Parameters:

  • value

    Value to set for the lastUpdateDateTime property.

Returns:

  • a void



121
122
123
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 121

def last_update_date_time=(value)
    @last_update_date_time = value
end

#not_applicable_countObject

Gets the notApplicableCount property value. Number of not applicable devices

Returns:

  • a integer



128
129
130
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 128

def not_applicable_count
    return @not_applicable_count
end

#not_applicable_count=(value) ⇒ Object

Sets the notApplicableCount property value. Number of not applicable devices

Parameters:

  • value

    Value to set for the notApplicableCount property.

Returns:

  • a void



136
137
138
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 136

def not_applicable_count=(value)
    @not_applicable_count = value
end

#pending_countObject

Gets the pendingCount property value. Number of pending devices

Returns:

  • a integer



143
144
145
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 143

def pending_count
    return @pending_count
end

#pending_count=(value) ⇒ Object

Sets the pendingCount property value. Number of pending devices

Parameters:

  • value

    Value to set for the pendingCount property.

Returns:

  • a void



151
152
153
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 151

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


159
160
161
162
163
164
165
166
167
168
169
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 159

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_number_value("configurationVersion", @configuration_version)
    writer.write_number_value("errorCount", @error_count)
    writer.write_number_value("failedCount", @failed_count)
    writer.write_date_time_value("lastUpdateDateTime", @last_update_date_time)
    writer.write_number_value("notApplicableCount", @not_applicable_count)
    writer.write_number_value("pendingCount", @pending_count)
    writer.write_number_value("successCount", @success_count)
end

#success_countObject

Gets the successCount property value. Number of succeeded devices

Returns:

  • a integer



174
175
176
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 174

def success_count
    return @success_count
end

#success_count=(value) ⇒ Object

Sets the successCount property value. Number of succeeded devices

Parameters:

  • value

    Value to set for the successCount property.

Returns:

  • a void



182
183
184
# File 'lib/models/managed_device_mobile_app_configuration_device_summary.rb', line 182

def success_count=(value)
    @success_count = value
end