Class: MicrosoftGraph::Models::DefaultManagedAppProtection
- Inherits:
-
ManagedAppProtection
- Object
- Entity
- ManagedAppPolicy
- ManagedAppProtection
- MicrosoftGraph::Models::DefaultManagedAppProtection
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/default_managed_app_protection.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#app_data_encryption_type ⇒ Object
Gets the appDataEncryptionType property value.
-
#app_data_encryption_type=(value) ⇒ Object
Sets the appDataEncryptionType property value.
-
#apps ⇒ Object
Gets the apps property value.
-
#apps=(value) ⇒ Object
Sets the apps property value.
-
#custom_settings ⇒ Object
Gets the customSettings property value.
-
#custom_settings=(value) ⇒ Object
Sets the customSettings property value.
-
#deployed_app_count ⇒ Object
Gets the deployedAppCount property value.
-
#deployed_app_count=(value) ⇒ Object
Sets the deployedAppCount property value.
-
#deployment_summary ⇒ Object
Gets the deploymentSummary property value.
-
#deployment_summary=(value) ⇒ Object
Sets the deploymentSummary property value.
-
#disable_app_encryption_if_device_encryption_is_enabled ⇒ Object
Gets the disableAppEncryptionIfDeviceEncryptionIsEnabled property value.
-
#disable_app_encryption_if_device_encryption_is_enabled=(value) ⇒ Object
Sets the disableAppEncryptionIfDeviceEncryptionIsEnabled property value.
-
#encrypt_app_data ⇒ Object
Gets the encryptAppData property value.
-
#encrypt_app_data=(value) ⇒ Object
Sets the encryptAppData property value.
-
#face_id_blocked ⇒ Object
Gets the faceIdBlocked property value.
-
#face_id_blocked=(value) ⇒ Object
Sets the faceIdBlocked property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new DefaultManagedAppProtection and sets the default values.
-
#minimum_required_patch_version ⇒ Object
Gets the minimumRequiredPatchVersion property value.
-
#minimum_required_patch_version=(value) ⇒ Object
Sets the minimumRequiredPatchVersion property value.
-
#minimum_required_sdk_version ⇒ Object
Gets the minimumRequiredSdkVersion property value.
-
#minimum_required_sdk_version=(value) ⇒ Object
Sets the minimumRequiredSdkVersion property value.
-
#minimum_warning_patch_version ⇒ Object
Gets the minimumWarningPatchVersion property value.
-
#minimum_warning_patch_version=(value) ⇒ Object
Sets the minimumWarningPatchVersion property value.
-
#screen_capture_blocked ⇒ Object
Gets the screenCaptureBlocked property value.
-
#screen_capture_blocked=(value) ⇒ Object
Sets the screenCaptureBlocked property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
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
#initialize ⇒ Object
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
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_type ⇒ Object
Gets the appDataEncryptionType property value. Represents the level to which app data is encrypted for managed apps
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
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 |
#apps ⇒ Object
Gets the apps property value. List of apps to which the policy is deployed.
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.
72 73 74 |
# File 'lib/models/default_managed_app_protection.rb', line 72 def apps=(value) @apps = value end |
#custom_settings ⇒ Object
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
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
104 105 106 |
# File 'lib/models/default_managed_app_protection.rb', line 104 def custom_settings=(value) @custom_settings = value end |
#deployed_app_count ⇒ Object
Gets the deployedAppCount property value. Count of apps to which the current policy is deployed.
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.
119 120 121 |
# File 'lib/models/default_managed_app_protection.rb', line 119 def deployed_app_count=(value) @deployed_app_count = value end |
#deployment_summary ⇒ Object
Gets the deploymentSummary property value. Navigation property to deployment summary of the configuration.
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.
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_enabled ⇒ Object
Gets the disableAppEncryptionIfDeviceEncryptionIsEnabled property value. When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)
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)
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_data ⇒ Object
Gets the encryptAppData property value. Indicates whether managed-app data should be encrypted. (Android only)
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)
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_blocked ⇒ Object
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)
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)
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_deserializers ⇒ Object
The deserialization information for the current model
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_version ⇒ Object
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)
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)
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_version ⇒ Object
Gets the minimumRequiredSdkVersion property value. Versions less than the specified version will block the managed app from accessing company data. (iOS Only)
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)
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_version ⇒ Object
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)
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)
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_blocked ⇒ Object
Gets the screenCaptureBlocked property value. Indicates whether screen capture is blocked. (Android only)
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)
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
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 |