Class: MicrosoftGraph::Models::DeviceAppManagement

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

Overview

Singleton entity that acts as a container for all device app management functionality.

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



85
86
87
# File 'lib/models/device_app_management.rb', line 85

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_app_management

Raises:

  • (StandardError)


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

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

Instance Method Details

#android_managed_app_protectionsObject

Gets the androidManagedAppProtections property value. Android managed app policies.

Returns:

  • a android_managed_app_protection



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

def android_managed_app_protections
    return @android_managed_app_protections
end

#android_managed_app_protections=(value) ⇒ Object

Sets the androidManagedAppProtections property value. Android managed app policies.

Parameters:

  • value

    Value to set for the androidManagedAppProtections property.

Returns:

  • a void



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

def android_managed_app_protections=(value)
    @android_managed_app_protections = value
end

#default_managed_app_protectionsObject

Gets the defaultManagedAppProtections property value. Default managed app policies.

Returns:

  • a default_managed_app_protection



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

def default_managed_app_protections
    return @default_managed_app_protections
end

#default_managed_app_protections=(value) ⇒ Object

Sets the defaultManagedAppProtections property value. Default managed app policies.

Parameters:

  • value

    Value to set for the defaultManagedAppProtections property.

Returns:

  • a void



109
110
111
# File 'lib/models/device_app_management.rb', line 109

def default_managed_app_protections=(value)
    @default_managed_app_protections = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/models/device_app_management.rb', line 116

def get_field_deserializers()
    return super.merge({
        "androidManagedAppProtections" => lambda {|n| @android_managed_app_protections = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AndroidManagedAppProtection.create_from_discriminator_value(pn) }) },
        "defaultManagedAppProtections" => lambda {|n| @default_managed_app_protections = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DefaultManagedAppProtection.create_from_discriminator_value(pn) }) },
        "iosManagedAppProtections" => lambda {|n| @ios_managed_app_protections = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::IosManagedAppProtection.create_from_discriminator_value(pn) }) },
        "isEnabledForMicrosoftStoreForBusiness" => lambda {|n| @is_enabled_for_microsoft_store_for_business = n.get_boolean_value() },
        "managedAppPolicies" => lambda {|n| @managed_app_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicy.create_from_discriminator_value(pn) }) },
        "managedAppRegistrations" => lambda {|n| @managed_app_registrations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppRegistration.create_from_discriminator_value(pn) }) },
        "managedAppStatuses" => lambda {|n| @managed_app_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppStatus.create_from_discriminator_value(pn) }) },
        "managedEBooks" => lambda {|n| @managed_e_books = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedEBook.create_from_discriminator_value(pn) }) },
        "mdmWindowsInformationProtectionPolicies" => lambda {|n| @mdm_windows_information_protection_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MdmWindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }) },
        "microsoftStoreForBusinessLanguage" => lambda {|n| @microsoft_store_for_business_language = n.get_string_value() },
        "microsoftStoreForBusinessLastCompletedApplicationSyncTime" => lambda {|n| @microsoft_store_for_business_last_completed_application_sync_time = n.get_date_time_value() },
        "microsoftStoreForBusinessLastSuccessfulSyncDateTime" => lambda {|n| @microsoft_store_for_business_last_successful_sync_date_time = n.get_date_time_value() },
        "mobileAppCategories" => lambda {|n| @mobile_app_categories = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }) },
        "mobileAppConfigurations" => lambda {|n| @mobile_app_configurations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedDeviceMobileAppConfiguration.create_from_discriminator_value(pn) }) },
        "mobileApps" => lambda {|n| @mobile_apps = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileApp.create_from_discriminator_value(pn) }) },
        "targetedManagedAppConfigurations" => lambda {|n| @targeted_managed_app_configurations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TargetedManagedAppConfiguration.create_from_discriminator_value(pn) }) },
        "vppTokens" => lambda {|n| @vpp_tokens = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::VppToken.create_from_discriminator_value(pn) }) },
        "windowsInformationProtectionPolicies" => lambda {|n| @windows_information_protection_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsInformationProtectionPolicy.create_from_discriminator_value(pn) }) },
    })
end

#ios_managed_app_protectionsObject

Gets the iosManagedAppProtections property value. iOS managed app policies.

Returns:

  • a ios_managed_app_protection



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

def ios_managed_app_protections
    return @ios_managed_app_protections
end

#ios_managed_app_protections=(value) ⇒ Object

Sets the iosManagedAppProtections property value. iOS managed app policies.

Parameters:

  • value

    Value to set for the iosManagedAppProtections property.

Returns:

  • a void



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

def ios_managed_app_protections=(value)
    @ios_managed_app_protections = value
end

#is_enabled_for_microsoft_store_for_businessObject

Gets the isEnabledForMicrosoftStoreForBusiness property value. Whether the account is enabled for syncing applications from the Microsoft Store for Business.

Returns:

  • a boolean



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

def is_enabled_for_microsoft_store_for_business
    return @is_enabled_for_microsoft_store_for_business
end

#is_enabled_for_microsoft_store_for_business=(value) ⇒ Object

Sets the isEnabledForMicrosoftStoreForBusiness property value. Whether the account is enabled for syncing applications from the Microsoft Store for Business.

Parameters:

  • value

    Value to set for the isEnabledForMicrosoftStoreForBusiness property.

Returns:

  • a void



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

def is_enabled_for_microsoft_store_for_business=(value)
    @is_enabled_for_microsoft_store_for_business = value
end

#managed_app_policiesObject

Gets the managedAppPolicies property value. Managed app policies.

Returns:

  • a managed_app_policy



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

def managed_app_policies
    return @managed_app_policies
end

#managed_app_policies=(value) ⇒ Object

Sets the managedAppPolicies property value. Managed app policies.

Parameters:

  • value

    Value to set for the managedAppPolicies property.

Returns:

  • a void



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

def managed_app_policies=(value)
    @managed_app_policies = value
end

#managed_app_registrationsObject

Gets the managedAppRegistrations property value. The managed app registrations.

Returns:

  • a managed_app_registration



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

def managed_app_registrations
    return @managed_app_registrations
end

#managed_app_registrations=(value) ⇒ Object

Sets the managedAppRegistrations property value. The managed app registrations.

Parameters:

  • value

    Value to set for the managedAppRegistrations property.

Returns:

  • a void



195
196
197
# File 'lib/models/device_app_management.rb', line 195

def managed_app_registrations=(value)
    @managed_app_registrations = value
end

#managed_app_statusesObject

Gets the managedAppStatuses property value. The managed app statuses.

Returns:

  • a managed_app_status



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

def managed_app_statuses
    return @managed_app_statuses
end

#managed_app_statuses=(value) ⇒ Object

Sets the managedAppStatuses property value. The managed app statuses.

Parameters:

  • value

    Value to set for the managedAppStatuses property.

Returns:

  • a void



210
211
212
# File 'lib/models/device_app_management.rb', line 210

def managed_app_statuses=(value)
    @managed_app_statuses = value
end

#managed_e_booksObject

Gets the managedEBooks property value. The Managed eBook.

Returns:

  • a managed_e_book



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

def managed_e_books
    return @managed_e_books
end

#managed_e_books=(value) ⇒ Object

Sets the managedEBooks property value. The Managed eBook.

Parameters:

  • value

    Value to set for the managedEBooks property.

Returns:

  • a void



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

def managed_e_books=(value)
    @managed_e_books = value
end

#mdm_windows_information_protection_policiesObject

Gets the mdmWindowsInformationProtectionPolicies property value. Windows information protection for apps running on devices which are MDM enrolled.

Returns:

  • a mdm_windows_information_protection_policy



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

def mdm_windows_information_protection_policies
    return @mdm_windows_information_protection_policies
end

#mdm_windows_information_protection_policies=(value) ⇒ Object

Sets the mdmWindowsInformationProtectionPolicies property value. Windows information protection for apps running on devices which are MDM enrolled.

Parameters:

  • value

    Value to set for the mdmWindowsInformationProtectionPolicies property.

Returns:

  • a void



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

def mdm_windows_information_protection_policies=(value)
    @mdm_windows_information_protection_policies = value
end

#microsoft_store_for_business_languageObject

Gets the microsoftStoreForBusinessLanguage property value. The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is -<country/regioncode2>, where is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.

Returns:

  • a string



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

def microsoft_store_for_business_language
    return @microsoft_store_for_business_language
end

#microsoft_store_for_business_language=(value) ⇒ Object

Sets the microsoftStoreForBusinessLanguage property value. The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is -<country/regioncode2>, where is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.

Parameters:

  • value

    Value to set for the microsoftStoreForBusinessLanguage property.

Returns:

  • a void



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

def microsoft_store_for_business_language=(value)
    @microsoft_store_for_business_language = value
end

#microsoft_store_for_business_last_completed_application_sync_timeObject

Gets the microsoftStoreForBusinessLastCompletedApplicationSyncTime property value. The last time an application sync from the Microsoft Store for Business was completed.

Returns:

  • a date_time



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

def microsoft_store_for_business_last_completed_application_sync_time
    return @microsoft_store_for_business_last_completed_application_sync_time
end

#microsoft_store_for_business_last_completed_application_sync_time=(value) ⇒ Object

Sets the microsoftStoreForBusinessLastCompletedApplicationSyncTime property value. The last time an application sync from the Microsoft Store for Business was completed.

Parameters:

  • value

    Value to set for the microsoftStoreForBusinessLastCompletedApplicationSyncTime property.

Returns:

  • a void



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

def microsoft_store_for_business_last_completed_application_sync_time=(value)
    @microsoft_store_for_business_last_completed_application_sync_time = value
end

#microsoft_store_for_business_last_successful_sync_date_timeObject

Gets the microsoftStoreForBusinessLastSuccessfulSyncDateTime property value. The last time the apps from the Microsoft Store for Business were synced successfully for the account.

Returns:

  • a date_time



277
278
279
# File 'lib/models/device_app_management.rb', line 277

def microsoft_store_for_business_last_successful_sync_date_time
    return @microsoft_store_for_business_last_successful_sync_date_time
end

#microsoft_store_for_business_last_successful_sync_date_time=(value) ⇒ Object

Sets the microsoftStoreForBusinessLastSuccessfulSyncDateTime property value. The last time the apps from the Microsoft Store for Business were synced successfully for the account.

Parameters:

  • value

    Value to set for the microsoftStoreForBusinessLastSuccessfulSyncDateTime property.

Returns:

  • a void



285
286
287
# File 'lib/models/device_app_management.rb', line 285

def microsoft_store_for_business_last_successful_sync_date_time=(value)
    @microsoft_store_for_business_last_successful_sync_date_time = value
end

#mobile_app_categoriesObject

Gets the mobileAppCategories property value. The mobile app categories.

Returns:

  • a mobile_app_category



292
293
294
# File 'lib/models/device_app_management.rb', line 292

def mobile_app_categories
    return @mobile_app_categories
end

#mobile_app_categories=(value) ⇒ Object

Sets the mobileAppCategories property value. The mobile app categories.

Parameters:

  • value

    Value to set for the mobileAppCategories property.

Returns:

  • a void



300
301
302
# File 'lib/models/device_app_management.rb', line 300

def mobile_app_categories=(value)
    @mobile_app_categories = value
end

#mobile_app_configurationsObject

Gets the mobileAppConfigurations property value. The Managed Device Mobile Application Configurations.

Returns:

  • a managed_device_mobile_app_configuration



307
308
309
# File 'lib/models/device_app_management.rb', line 307

def mobile_app_configurations
    return @mobile_app_configurations
end

#mobile_app_configurations=(value) ⇒ Object

Sets the mobileAppConfigurations property value. The Managed Device Mobile Application Configurations.

Parameters:

  • value

    Value to set for the mobileAppConfigurations property.

Returns:

  • a void



315
316
317
# File 'lib/models/device_app_management.rb', line 315

def mobile_app_configurations=(value)
    @mobile_app_configurations = value
end

#mobile_appsObject

Gets the mobileApps property value. The mobile apps.

Returns:

  • a mobile_app



322
323
324
# File 'lib/models/device_app_management.rb', line 322

def mobile_apps
    return @mobile_apps
end

#mobile_apps=(value) ⇒ Object

Sets the mobileApps property value. The mobile apps.

Parameters:

  • value

    Value to set for the mobileApps property.

Returns:

  • a void



330
331
332
# File 'lib/models/device_app_management.rb', line 330

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


338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# File 'lib/models/device_app_management.rb', line 338

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("androidManagedAppProtections", @android_managed_app_protections)
    writer.write_collection_of_object_values("defaultManagedAppProtections", @default_managed_app_protections)
    writer.write_collection_of_object_values("iosManagedAppProtections", @ios_managed_app_protections)
    writer.write_boolean_value("isEnabledForMicrosoftStoreForBusiness", @is_enabled_for_microsoft_store_for_business)
    writer.write_collection_of_object_values("managedAppPolicies", @managed_app_policies)
    writer.write_collection_of_object_values("managedAppRegistrations", @managed_app_registrations)
    writer.write_collection_of_object_values("managedAppStatuses", @managed_app_statuses)
    writer.write_collection_of_object_values("managedEBooks", @managed_e_books)
    writer.write_collection_of_object_values("mdmWindowsInformationProtectionPolicies", @mdm_windows_information_protection_policies)
    writer.write_string_value("microsoftStoreForBusinessLanguage", @microsoft_store_for_business_language)
    writer.write_date_time_value("microsoftStoreForBusinessLastCompletedApplicationSyncTime", @microsoft_store_for_business_last_completed_application_sync_time)
    writer.write_date_time_value("microsoftStoreForBusinessLastSuccessfulSyncDateTime", @microsoft_store_for_business_last_successful_sync_date_time)
    writer.write_collection_of_object_values("mobileAppCategories", @mobile_app_categories)
    writer.write_collection_of_object_values("mobileAppConfigurations", @mobile_app_configurations)
    writer.write_collection_of_object_values("mobileApps", @mobile_apps)
    writer.write_collection_of_object_values("targetedManagedAppConfigurations", @targeted_managed_app_configurations)
    writer.write_collection_of_object_values("vppTokens", @vpp_tokens)
    writer.write_collection_of_object_values("windowsInformationProtectionPolicies", @windows_information_protection_policies)
end

#targeted_managed_app_configurationsObject

Gets the targetedManagedAppConfigurations property value. Targeted managed app configurations.

Returns:

  • a targeted_managed_app_configuration



364
365
366
# File 'lib/models/device_app_management.rb', line 364

def targeted_managed_app_configurations
    return @targeted_managed_app_configurations
end

#targeted_managed_app_configurations=(value) ⇒ Object

Sets the targetedManagedAppConfigurations property value. Targeted managed app configurations.

Parameters:

  • value

    Value to set for the targetedManagedAppConfigurations property.

Returns:

  • a void



372
373
374
# File 'lib/models/device_app_management.rb', line 372

def targeted_managed_app_configurations=(value)
    @targeted_managed_app_configurations = value
end

#vpp_tokensObject

Gets the vppTokens property value. List of Vpp tokens for this organization.

Returns:

  • a vpp_token



379
380
381
# File 'lib/models/device_app_management.rb', line 379

def vpp_tokens
    return @vpp_tokens
end

#vpp_tokens=(value) ⇒ Object

Sets the vppTokens property value. List of Vpp tokens for this organization.

Parameters:

  • value

    Value to set for the vppTokens property.

Returns:

  • a void



387
388
389
# File 'lib/models/device_app_management.rb', line 387

def vpp_tokens=(value)
    @vpp_tokens = value
end

#windows_information_protection_policiesObject

Gets the windowsInformationProtectionPolicies property value. Windows information protection for apps running on devices which are not MDM enrolled.

Returns:

  • a windows_information_protection_policy



394
395
396
# File 'lib/models/device_app_management.rb', line 394

def windows_information_protection_policies
    return @windows_information_protection_policies
end

#windows_information_protection_policies=(value) ⇒ Object

Sets the windowsInformationProtectionPolicies property value. Windows information protection for apps running on devices which are not MDM enrolled.

Parameters:

  • value

    Value to set for the windowsInformationProtectionPolicies property.

Returns:

  • a void



402
403
404
# File 'lib/models/device_app_management.rb', line 402

def windows_information_protection_policies=(value)
    @windows_information_protection_policies = value
end