Class: MicrosoftGraph::Models::DeviceAppManagement

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device_app_management.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 DeviceAppManagement and sets the default values.



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

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)


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

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



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

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 android_managed_app_protections property.

Returns:

  • a void



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

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



99
100
101
# File 'lib/models/device_app_management.rb', line 99

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 default_managed_app_protections property.

Returns:

  • a void



107
108
109
# File 'lib/models/device_app_management.rb', line 107

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



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

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



140
141
142
# File 'lib/models/device_app_management.rb', line 140

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 ios_managed_app_protections property.

Returns:

  • a void



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

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



155
156
157
# File 'lib/models/device_app_management.rb', line 155

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 is_enabled_for_microsoft_store_for_business property.

Returns:

  • a void



163
164
165
# File 'lib/models/device_app_management.rb', line 163

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



170
171
172
# File 'lib/models/device_app_management.rb', line 170

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 managed_app_policies property.

Returns:

  • a void



178
179
180
# File 'lib/models/device_app_management.rb', line 178

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



185
186
187
# File 'lib/models/device_app_management.rb', line 185

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 managed_app_registrations property.

Returns:

  • a void



193
194
195
# File 'lib/models/device_app_management.rb', line 193

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



200
201
202
# File 'lib/models/device_app_management.rb', line 200

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 managed_app_statuses property.

Returns:

  • a void



208
209
210
# File 'lib/models/device_app_management.rb', line 208

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



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

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 managed_e_books property.

Returns:

  • a void



223
224
225
# File 'lib/models/device_app_management.rb', line 223

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



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

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 mdm_windows_information_protection_policies property.

Returns:

  • a void



238
239
240
# File 'lib/models/device_app_management.rb', line 238

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



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

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 microsoft_store_for_business_language property.

Returns:

  • a void



253
254
255
# File 'lib/models/device_app_management.rb', line 253

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



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

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 microsoft_store_for_business_last_completed_application_sync_time property.

Returns:

  • a void



268
269
270
# File 'lib/models/device_app_management.rb', line 268

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



275
276
277
# File 'lib/models/device_app_management.rb', line 275

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 microsoft_store_for_business_last_successful_sync_date_time property.

Returns:

  • a void



283
284
285
# File 'lib/models/device_app_management.rb', line 283

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



290
291
292
# File 'lib/models/device_app_management.rb', line 290

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 mobile_app_categories property.

Returns:

  • a void



298
299
300
# File 'lib/models/device_app_management.rb', line 298

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



305
306
307
# File 'lib/models/device_app_management.rb', line 305

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 mobile_app_configurations property.

Returns:

  • a void



313
314
315
# File 'lib/models/device_app_management.rb', line 313

def mobile_app_configurations=(value)
    @mobile_app_configurations = value
end

#mobile_appsObject

Gets the mobileApps property value. The mobile apps.

Returns:

  • a mobile_app



320
321
322
# File 'lib/models/device_app_management.rb', line 320

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 mobile_apps property.

Returns:

  • a void



328
329
330
# File 'lib/models/device_app_management.rb', line 328

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)


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

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



362
363
364
# File 'lib/models/device_app_management.rb', line 362

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 targeted_managed_app_configurations property.

Returns:

  • a void



370
371
372
# File 'lib/models/device_app_management.rb', line 370

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



377
378
379
# File 'lib/models/device_app_management.rb', line 377

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 vpp_tokens property.

Returns:

  • a void



385
386
387
# File 'lib/models/device_app_management.rb', line 385

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



392
393
394
# File 'lib/models/device_app_management.rb', line 392

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 windows_information_protection_policies property.

Returns:

  • a void



400
401
402
# File 'lib/models/device_app_management.rb', line 400

def windows_information_protection_policies=(value)
    @windows_information_protection_policies = value
end