Class: MicrosoftGraph::Models::ManagedDeviceMobileAppConfiguration

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

Overview

An abstract class for Mobile app configuration for enrolled devices.

Direct Known Subclasses

IosMobileAppConfiguration

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



64
65
66
# File 'lib/models/managed_device_mobile_app_configuration.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 managed_device_mobile_app_configuration

Raises:

  • (StandardError)


87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 87

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    mapping_value_node = parse_node.get_child_node("@odata.type")
    unless mapping_value_node.nil? then
        mapping_value = mapping_value_node.get_string_value
        case mapping_value
            when "#microsoft.graph.iosMobileAppConfiguration"
                return IosMobileAppConfiguration.new
        end
    end
    return ManagedDeviceMobileAppConfiguration.new
end

Instance Method Details

#assignmentsObject

Gets the assignments property value. The list of group assignemenets for app configration.

Returns:

  • a managed_device_mobile_app_configuration_assignment



49
50
51
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 49

def assignments
    return @assignments
end

#assignments=(value) ⇒ Object

Sets the assignments property value. The list of group assignemenets for app configration.

Parameters:

  • value

    Value to set for the assignments property.

Returns:

  • a void



57
58
59
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 57

def assignments=(value)
    @assignments = value
end

#created_date_timeObject

Gets the createdDateTime property value. DateTime the object was created.

Returns:

  • a date_time



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

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. DateTime the object was created.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



79
80
81
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 79

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. Admin provided description of the Device Configuration.

Returns:

  • a string



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

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. Admin provided description of the Device Configuration.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



111
112
113
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 111

def description=(value)
    @description = value
end

#device_status_summaryObject

Gets the deviceStatusSummary property value. App configuration device status summary.

Returns:

  • a managed_device_mobile_app_configuration_device_summary



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

def device_status_summary
    return @device_status_summary
end

#device_status_summary=(value) ⇒ Object

Sets the deviceStatusSummary property value. App configuration device status summary.

Parameters:

  • value

    Value to set for the deviceStatusSummary property.

Returns:

  • a void



126
127
128
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 126

def device_status_summary=(value)
    @device_status_summary = value
end

#device_statusesObject

Gets the deviceStatuses property value. List of ManagedDeviceMobileAppConfigurationDeviceStatus.

Returns:

  • a managed_device_mobile_app_configuration_device_status



133
134
135
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 133

def device_statuses
    return @device_statuses
end

#device_statuses=(value) ⇒ Object

Sets the deviceStatuses property value. List of ManagedDeviceMobileAppConfigurationDeviceStatus.

Parameters:

  • value

    Value to set for the deviceStatuses property.

Returns:

  • a void



141
142
143
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 141

def device_statuses=(value)
    @device_statuses = value
end

#display_nameObject

Gets the displayName property value. Admin provided name of the device configuration.

Returns:

  • a string



148
149
150
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 148

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Admin provided name of the device configuration.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



156
157
158
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 156

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 163

def get_field_deserializers()
    return super.merge({
        "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationAssignment.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "description" => lambda {|n| @description = n.get_string_value() },
        "deviceStatusSummary" => lambda {|n| @device_status_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceSummary.create_from_discriminator_value(pn) }) },
        "deviceStatuses" => lambda {|n| @device_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationDeviceStatus.create_from_discriminator_value(pn) }) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "targetedMobileApps" => lambda {|n| @targeted_mobile_apps = n.get_collection_of_primitive_values(String) },
        "userStatusSummary" => lambda {|n| @user_status_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserSummary.create_from_discriminator_value(pn) }) },
        "userStatuses" => lambda {|n| @user_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfigurationUserStatus.create_from_discriminator_value(pn) }) },
        "version" => lambda {|n| @version = n.get_number_value() },
    })
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. DateTime the object was last modified.

Returns:

  • a date_time



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

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. DateTime the object was last modified.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



190
191
192
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 190

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


198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 198

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("assignments", @assignments)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_string_value("description", @description)
    writer.write_object_value("deviceStatusSummary", @device_status_summary)
    writer.write_collection_of_object_values("deviceStatuses", @device_statuses)
    writer.write_string_value("displayName", @display_name)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_collection_of_primitive_values("targetedMobileApps", @targeted_mobile_apps)
    writer.write_object_value("userStatusSummary", @user_status_summary)
    writer.write_collection_of_object_values("userStatuses", @user_statuses)
    writer.write_number_value("version", @version)
end

#targeted_mobile_appsObject

Gets the targetedMobileApps property value. the associated app.

Returns:

  • a string



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

def targeted_mobile_apps
    return @targeted_mobile_apps
end

#targeted_mobile_apps=(value) ⇒ Object

Sets the targetedMobileApps property value. the associated app.

Parameters:

  • value

    Value to set for the targetedMobileApps property.

Returns:

  • a void



225
226
227
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 225

def targeted_mobile_apps=(value)
    @targeted_mobile_apps = value
end

#user_status_summaryObject

Gets the userStatusSummary property value. App configuration user status summary.

Returns:

  • a managed_device_mobile_app_configuration_user_summary



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

def user_status_summary
    return @user_status_summary
end

#user_status_summary=(value) ⇒ Object

Sets the userStatusSummary property value. App configuration user status summary.

Parameters:

  • value

    Value to set for the userStatusSummary property.

Returns:

  • a void



240
241
242
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 240

def user_status_summary=(value)
    @user_status_summary = value
end

#user_statusesObject

Gets the userStatuses property value. List of ManagedDeviceMobileAppConfigurationUserStatus.

Returns:

  • a managed_device_mobile_app_configuration_user_status



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

def user_statuses
    return @user_statuses
end

#user_statuses=(value) ⇒ Object

Sets the userStatuses property value. List of ManagedDeviceMobileAppConfigurationUserStatus.

Parameters:

  • value

    Value to set for the userStatuses property.

Returns:

  • a void



255
256
257
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 255

def user_statuses=(value)
    @user_statuses = value
end

#versionObject

Gets the version property value. Version of the device configuration.

Returns:

  • a integer



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

def version
    return @version
end

#version=(value) ⇒ Object

Sets the version property value. Version of the device configuration.

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



270
271
272
# File 'lib/models/managed_device_mobile_app_configuration.rb', line 270

def version=(value)
    @version = value
end