Class: MicrosoftGraph::Models::DefaultManagedAppProtection

Inherits:
ManagedAppProtection show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/default_managed_app_protection.rb

Overview

Policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ManagedAppProtection

#allowed_data_storage_locations, #allowed_data_storage_locations=, #allowed_inbound_data_transfer_sources, #allowed_inbound_data_transfer_sources=, #allowed_outbound_clipboard_sharing_level, #allowed_outbound_clipboard_sharing_level=, #allowed_outbound_data_transfer_destinations, #allowed_outbound_data_transfer_destinations=, #contact_sync_blocked, #contact_sync_blocked=, #data_backup_blocked, #data_backup_blocked=, #device_compliance_required, #device_compliance_required=, #disable_app_pin_if_device_pin_is_set, #disable_app_pin_if_device_pin_is_set=, #fingerprint_blocked, #fingerprint_blocked=, #managed_browser, #managed_browser=, #managed_browser_to_open_links_required, #managed_browser_to_open_links_required=, #maximum_pin_retries, #maximum_pin_retries=, #minimum_pin_length, #minimum_pin_length=, #minimum_required_app_version, #minimum_required_app_version=, #minimum_required_os_version, #minimum_required_os_version=, #minimum_warning_app_version, #minimum_warning_app_version=, #minimum_warning_os_version, #minimum_warning_os_version=, #organizational_credentials_required, #organizational_credentials_required=, #period_before_pin_reset, #period_before_pin_reset=, #period_offline_before_access_check, #period_offline_before_access_check=, #period_offline_before_wipe_is_enforced, #period_offline_before_wipe_is_enforced=, #period_online_before_access_check, #period_online_before_access_check=, #pin_character_set, #pin_character_set=, #pin_required, #pin_required=, #print_blocked, #print_blocked=, #save_as_blocked, #save_as_blocked=, #simple_pin_blocked, #simple_pin_blocked=

Methods inherited from ManagedAppPolicy

#created_date_time, #created_date_time=, #description, #description=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #version, #version=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new defaultManagedAppProtection and sets the default values.



81
82
83
84
# File 'lib/models/default_managed_app_protection.rb', line 81

def initialize()
    super
    @odata_type = "#microsoft.graph.defaultManagedAppProtection"
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 default_managed_app_protection

Raises:

  • (StandardError)


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

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

Instance Method Details

#app_data_encryption_typeObject

Gets the appDataEncryptionType property value. Represents the level to which app data is encrypted for managed apps

Returns:

  • a managed_app_data_encryption_type



51
52
53
# File 'lib/models/default_managed_app_protection.rb', line 51

def app_data_encryption_type
    return @app_data_encryption_type
end

#app_data_encryption_type=(value) ⇒ Object

Sets the appDataEncryptionType property value. Represents the level to which app data is encrypted for managed apps

Parameters:

  • value

    Value to set for the appDataEncryptionType property.

Returns:

  • a void



59
60
61
# File 'lib/models/default_managed_app_protection.rb', line 59

def app_data_encryption_type=(value)
    @app_data_encryption_type = value
end

#appsObject

Gets the apps property value. List of apps to which the policy is deployed.

Returns:

  • a managed_mobile_app



66
67
68
# File 'lib/models/default_managed_app_protection.rb', line 66

def apps
    return @apps
end

#apps=(value) ⇒ Object

Sets the apps property value. List of apps to which the policy is deployed.

Parameters:

  • value

    Value to set for the apps property.

Returns:

  • a void



74
75
76
# File 'lib/models/default_managed_app_protection.rb', line 74

def apps=(value)
    @apps = value
end

#custom_settingsObject

Gets the customSettings property value. A set of string key and string value pairs to be sent to the affected users, unalterned by this service

Returns:

  • a key_value_pair



98
99
100
# File 'lib/models/default_managed_app_protection.rb', line 98

def custom_settings
    return @custom_settings
end

#custom_settings=(value) ⇒ Object

Sets the customSettings property value. A set of string key and string value pairs to be sent to the affected users, unalterned by this service

Parameters:

  • value

    Value to set for the customSettings property.

Returns:

  • a void



106
107
108
# File 'lib/models/default_managed_app_protection.rb', line 106

def custom_settings=(value)
    @custom_settings = value
end

#deployed_app_countObject

Gets the deployedAppCount property value. Count of apps to which the current policy is deployed.

Returns:

  • a integer



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

def deployed_app_count
    return @deployed_app_count
end

#deployed_app_count=(value) ⇒ Object

Sets the deployedAppCount property value. Count of apps to which the current policy is deployed.

Parameters:

  • value

    Value to set for the deployedAppCount property.

Returns:

  • a void



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

def deployed_app_count=(value)
    @deployed_app_count = value
end

#deployment_summaryObject

Gets the deploymentSummary property value. Navigation property to deployment summary of the configuration.

Returns:

  • a managed_app_policy_deployment_summary



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

def deployment_summary
    return @deployment_summary
end

#deployment_summary=(value) ⇒ Object

Sets the deploymentSummary property value. Navigation property to deployment summary of the configuration.

Parameters:

  • value

    Value to set for the deploymentSummary property.

Returns:

  • a void



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

def deployment_summary=(value)
    @deployment_summary = value
end

#disable_app_encryption_if_device_encryption_is_enabledObject

Gets the disableAppEncryptionIfDeviceEncryptionIsEnabled property value. When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)

Returns:

  • a boolean



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

def disable_app_encryption_if_device_encryption_is_enabled
    return @disable_app_encryption_if_device_encryption_is_enabled
end

#disable_app_encryption_if_device_encryption_is_enabled=(value) ⇒ Object

Sets the disableAppEncryptionIfDeviceEncryptionIsEnabled property value. When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)

Parameters:

  • value

    Value to set for the disableAppEncryptionIfDeviceEncryptionIsEnabled property.

Returns:

  • a void



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

def disable_app_encryption_if_device_encryption_is_enabled=(value)
    @disable_app_encryption_if_device_encryption_is_enabled = value
end

#encrypt_app_dataObject

Gets the encryptAppData property value. Indicates whether managed-app data should be encrypted. (Android only)

Returns:

  • a boolean



158
159
160
# File 'lib/models/default_managed_app_protection.rb', line 158

def encrypt_app_data
    return @encrypt_app_data
end

#encrypt_app_data=(value) ⇒ Object

Sets the encryptAppData property value. Indicates whether managed-app data should be encrypted. (Android only)

Parameters:

  • value

    Value to set for the encryptAppData property.

Returns:

  • a void



166
167
168
# File 'lib/models/default_managed_app_protection.rb', line 166

def encrypt_app_data=(value)
    @encrypt_app_data = value
end

#face_id_blockedObject

Gets the faceIdBlocked property value. Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)

Returns:

  • a boolean



173
174
175
# File 'lib/models/default_managed_app_protection.rb', line 173

def face_id_blocked
    return @face_id_blocked
end

#face_id_blocked=(value) ⇒ Object

Sets the faceIdBlocked property value. Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)

Parameters:

  • value

    Value to set for the faceIdBlocked property.

Returns:

  • a void



181
182
183
# File 'lib/models/default_managed_app_protection.rb', line 181

def face_id_blocked=(value)
    @face_id_blocked = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

def get_field_deserializers()
    return super.merge({
        "appDataEncryptionType" => lambda {|n| @app_data_encryption_type = n.get_enum_value(MicrosoftGraph::Models::ManagedAppDataEncryptionType) },
        "apps" => lambda {|n| @apps = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedMobileApp.create_from_discriminator_value(pn) }) },
        "customSettings" => lambda {|n| @custom_settings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) },
        "deployedAppCount" => lambda {|n| @deployed_app_count = n.get_number_value() },
        "deploymentSummary" => lambda {|n| @deployment_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ManagedAppPolicyDeploymentSummary.create_from_discriminator_value(pn) }) },
        "disableAppEncryptionIfDeviceEncryptionIsEnabled" => lambda {|n| @disable_app_encryption_if_device_encryption_is_enabled = n.get_boolean_value() },
        "encryptAppData" => lambda {|n| @encrypt_app_data = n.get_boolean_value() },
        "faceIdBlocked" => lambda {|n| @face_id_blocked = n.get_boolean_value() },
        "minimumRequiredPatchVersion" => lambda {|n| @minimum_required_patch_version = n.get_string_value() },
        "minimumRequiredSdkVersion" => lambda {|n| @minimum_required_sdk_version = n.get_string_value() },
        "minimumWarningPatchVersion" => lambda {|n| @minimum_warning_patch_version = n.get_string_value() },
        "screenCaptureBlocked" => lambda {|n| @screen_capture_blocked = n.get_boolean_value() },
    })
end

#minimum_required_patch_versionObject

Gets the minimumRequiredPatchVersion property value. Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)

Returns:

  • a string



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

def minimum_required_patch_version
    return @minimum_required_patch_version
end

#minimum_required_patch_version=(value) ⇒ Object

Sets the minimumRequiredPatchVersion property value. Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)

Parameters:

  • value

    Value to set for the minimumRequiredPatchVersion property.

Returns:

  • a void



216
217
218
# File 'lib/models/default_managed_app_protection.rb', line 216

def minimum_required_patch_version=(value)
    @minimum_required_patch_version = value
end

#minimum_required_sdk_versionObject

Gets the minimumRequiredSdkVersion property value. Versions less than the specified version will block the managed app from accessing company data. (iOS Only)

Returns:

  • a string



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

def minimum_required_sdk_version
    return @minimum_required_sdk_version
end

#minimum_required_sdk_version=(value) ⇒ Object

Sets the minimumRequiredSdkVersion property value. Versions less than the specified version will block the managed app from accessing company data. (iOS Only)

Parameters:

  • value

    Value to set for the minimumRequiredSdkVersion property.

Returns:

  • a void



231
232
233
# File 'lib/models/default_managed_app_protection.rb', line 231

def minimum_required_sdk_version=(value)
    @minimum_required_sdk_version = value
end

#minimum_warning_patch_versionObject

Gets the minimumWarningPatchVersion property value. Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)

Returns:

  • a string



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

def minimum_warning_patch_version
    return @minimum_warning_patch_version
end

#minimum_warning_patch_version=(value) ⇒ Object

Sets the minimumWarningPatchVersion property value. Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)

Parameters:

  • value

    Value to set for the minimumWarningPatchVersion property.

Returns:

  • a void



246
247
248
# File 'lib/models/default_managed_app_protection.rb', line 246

def minimum_warning_patch_version=(value)
    @minimum_warning_patch_version = value
end

#screen_capture_blockedObject

Gets the screenCaptureBlocked property value. Indicates whether screen capture is blocked. (Android only)

Returns:

  • a boolean



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

def screen_capture_blocked
    return @screen_capture_blocked
end

#screen_capture_blocked=(value) ⇒ Object

Sets the screenCaptureBlocked property value. Indicates whether screen capture is blocked. (Android only)

Parameters:

  • value

    Value to set for the screenCaptureBlocked property.

Returns:

  • a void



261
262
263
# File 'lib/models/default_managed_app_protection.rb', line 261

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


269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
# File 'lib/models/default_managed_app_protection.rb', line 269

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("appDataEncryptionType", @app_data_encryption_type)
    writer.write_collection_of_object_values("apps", @apps)
    writer.write_collection_of_object_values("customSettings", @custom_settings)
    writer.write_number_value("deployedAppCount", @deployed_app_count)
    writer.write_object_value("deploymentSummary", @deployment_summary)
    writer.write_boolean_value("disableAppEncryptionIfDeviceEncryptionIsEnabled", @disable_app_encryption_if_device_encryption_is_enabled)
    writer.write_boolean_value("encryptAppData", @encrypt_app_data)
    writer.write_boolean_value("faceIdBlocked", @face_id_blocked)
    writer.write_string_value("minimumRequiredPatchVersion", @minimum_required_patch_version)
    writer.write_string_value("minimumRequiredSdkVersion", @minimum_required_sdk_version)
    writer.write_string_value("minimumWarningPatchVersion", @minimum_warning_patch_version)
    writer.write_boolean_value("screenCaptureBlocked", @screen_capture_blocked)
end