Class: MicrosoftGraph::Models::DefaultManagedAppProtection

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

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.



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

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)


88
89
90
91
# File 'lib/models/default_managed_app_protection.rb', line 88

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



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

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

Returns:

  • a void



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

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



64
65
66
# File 'lib/models/default_managed_app_protection.rb', line 64

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



72
73
74
# File 'lib/models/default_managed_app_protection.rb', line 72

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



96
97
98
# File 'lib/models/default_managed_app_protection.rb', line 96

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

Returns:

  • a void



104
105
106
# File 'lib/models/default_managed_app_protection.rb', line 104

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



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

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

Returns:

  • a void



119
120
121
# File 'lib/models/default_managed_app_protection.rb', line 119

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



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

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

Returns:

  • a void



134
135
136
# File 'lib/models/default_managed_app_protection.rb', line 134

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



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

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

Returns:

  • a void



149
150
151
# File 'lib/models/default_managed_app_protection.rb', line 149

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



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

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

Returns:

  • a void



164
165
166
# File 'lib/models/default_managed_app_protection.rb', line 164

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



171
172
173
# File 'lib/models/default_managed_app_protection.rb', line 171

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

Returns:

  • a void



179
180
181
# File 'lib/models/default_managed_app_protection.rb', line 179

def face_id_blocked=(value)
    @face_id_blocked = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

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



206
207
208
# File 'lib/models/default_managed_app_protection.rb', line 206

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

Returns:

  • a void



214
215
216
# File 'lib/models/default_managed_app_protection.rb', line 214

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



221
222
223
# File 'lib/models/default_managed_app_protection.rb', line 221

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

Returns:

  • a void



229
230
231
# File 'lib/models/default_managed_app_protection.rb', line 229

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



236
237
238
# File 'lib/models/default_managed_app_protection.rb', line 236

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

Returns:

  • a void



244
245
246
# File 'lib/models/default_managed_app_protection.rb', line 244

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



251
252
253
# File 'lib/models/default_managed_app_protection.rb', line 251

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

Returns:

  • a void



259
260
261
# File 'lib/models/default_managed_app_protection.rb', line 259

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)


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

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