Class: MicrosoftGraph::Models::ManagedAppProtection

Inherits:
ManagedAppPolicy show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/managed_app_protection.rb

Overview

Policy used to configure detailed management settings for a specified set of apps

Class Method Summary collapse

Instance Method Summary collapse

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



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

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

Raises:

  • (StandardError)


180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/models/managed_app_protection.rb', line 180

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    mapping_value_node = parse_node.get_child_node("@odata.type")
    unless mapping_value_node.nil? then
        mapping_value = mapping_value_node.get_string_value
        case mapping_value
            when "#microsoft.graph.androidManagedAppProtection"
                return AndroidManagedAppProtection.new
            when "#microsoft.graph.defaultManagedAppProtection"
                return DefaultManagedAppProtection.new
            when "#microsoft.graph.iosManagedAppProtection"
                return IosManagedAppProtection.new
            when "#microsoft.graph.targetedManagedAppProtection"
                return TargetedManagedAppProtection.new
        end
    end
    return ManagedAppProtection.new
end

Instance Method Details

#allowed_data_storage_locationsObject

Gets the allowedDataStorageLocations property value. Data storage locations where a user may store managed data.

Returns:

  • a managed_app_data_storage_location



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

def allowed_data_storage_locations
    return @allowed_data_storage_locations
end

#allowed_data_storage_locations=(value) ⇒ Object

Sets the allowedDataStorageLocations property value. Data storage locations where a user may store managed data.

Parameters:

  • value

    Value to set for the allowedDataStorageLocations property.

Returns:

  • a void



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

def allowed_data_storage_locations=(value)
    @allowed_data_storage_locations = value
end

#allowed_inbound_data_transfer_sourcesObject

Gets the allowedInboundDataTransferSources property value. Data can be transferred from/to these classes of apps

Returns:

  • a managed_app_data_transfer_level



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

def allowed_inbound_data_transfer_sources
    return @allowed_inbound_data_transfer_sources
end

#allowed_inbound_data_transfer_sources=(value) ⇒ Object

Sets the allowedInboundDataTransferSources property value. Data can be transferred from/to these classes of apps

Parameters:

  • value

    Value to set for the allowedInboundDataTransferSources property.

Returns:

  • a void



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

def allowed_inbound_data_transfer_sources=(value)
    @allowed_inbound_data_transfer_sources = value
end

#allowed_outbound_clipboard_sharing_levelObject

Gets the allowedOutboundClipboardSharingLevel property value. Represents the level to which the device’s clipboard may be shared between apps

Returns:

  • a managed_app_clipboard_sharing_level



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

def allowed_outbound_clipboard_sharing_level
    return @allowed_outbound_clipboard_sharing_level
end

#allowed_outbound_clipboard_sharing_level=(value) ⇒ Object

Sets the allowedOutboundClipboardSharingLevel property value. Represents the level to which the device’s clipboard may be shared between apps

Parameters:

  • value

    Value to set for the allowedOutboundClipboardSharingLevel property.

Returns:

  • a void



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

def allowed_outbound_clipboard_sharing_level=(value)
    @allowed_outbound_clipboard_sharing_level = value
end

#allowed_outbound_data_transfer_destinationsObject

Gets the allowedOutboundDataTransferDestinations property value. Data can be transferred from/to these classes of apps

Returns:

  • a managed_app_data_transfer_level



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

def allowed_outbound_data_transfer_destinations
    return @allowed_outbound_data_transfer_destinations
end

#allowed_outbound_data_transfer_destinations=(value) ⇒ Object

Sets the allowedOutboundDataTransferDestinations property value. Data can be transferred from/to these classes of apps

Parameters:

  • value

    Value to set for the allowedOutboundDataTransferDestinations property.

Returns:

  • a void



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

def allowed_outbound_data_transfer_destinations=(value)
    @allowed_outbound_data_transfer_destinations = value
end

#contact_sync_blockedObject

Gets the contactSyncBlocked property value. Indicates whether contacts can be synced to the user’s device.

Returns:

  • a boolean



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

def contact_sync_blocked
    return @contact_sync_blocked
end

#contact_sync_blocked=(value) ⇒ Object

Sets the contactSyncBlocked property value. Indicates whether contacts can be synced to the user’s device.

Parameters:

  • value

    Value to set for the contactSyncBlocked property.

Returns:

  • a void



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

def contact_sync_blocked=(value)
    @contact_sync_blocked = value
end

#data_backup_blockedObject

Gets the dataBackupBlocked property value. Indicates whether the backup of a managed app’s data is blocked.

Returns:

  • a boolean



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

def data_backup_blocked
    return @data_backup_blocked
end

#data_backup_blocked=(value) ⇒ Object

Sets the dataBackupBlocked property value. Indicates whether the backup of a managed app’s data is blocked.

Parameters:

  • value

    Value to set for the dataBackupBlocked property.

Returns:

  • a void



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

def data_backup_blocked=(value)
    @data_backup_blocked = value
end

#device_compliance_requiredObject

Gets the deviceComplianceRequired property value. Indicates whether device compliance is required.

Returns:

  • a boolean



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

def device_compliance_required
    return @device_compliance_required
end

#device_compliance_required=(value) ⇒ Object

Sets the deviceComplianceRequired property value. Indicates whether device compliance is required.

Parameters:

  • value

    Value to set for the deviceComplianceRequired property.

Returns:

  • a void



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

def device_compliance_required=(value)
    @device_compliance_required = value
end

#disable_app_pin_if_device_pin_is_setObject

Gets the disableAppPinIfDevicePinIsSet property value. Indicates whether use of the app pin is required if the device pin is set.

Returns:

  • a boolean



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

def disable_app_pin_if_device_pin_is_set
    return @disable_app_pin_if_device_pin_is_set
end

#disable_app_pin_if_device_pin_is_set=(value) ⇒ Object

Sets the disableAppPinIfDevicePinIsSet property value. Indicates whether use of the app pin is required if the device pin is set.

Parameters:

  • value

    Value to set for the disableAppPinIfDevicePinIsSet property.

Returns:

  • a void



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

def disable_app_pin_if_device_pin_is_set=(value)
    @disable_app_pin_if_device_pin_is_set = value
end

#fingerprint_blockedObject

Gets the fingerprintBlocked property value. Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.

Returns:

  • a boolean



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

def fingerprint_blocked
    return @fingerprint_blocked
end

#fingerprint_blocked=(value) ⇒ Object

Sets the fingerprintBlocked property value. Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.

Parameters:

  • value

    Value to set for the fingerprintBlocked property.

Returns:

  • a void



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

def fingerprint_blocked=(value)
    @fingerprint_blocked = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# File 'lib/models/managed_app_protection.rb', line 262

def get_field_deserializers()
    return super.merge({
        "allowedDataStorageLocations" => lambda {|n| @allowed_data_storage_locations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedAppDataStorageLocation.create_from_discriminator_value(pn) }) },
        "allowedInboundDataTransferSources" => lambda {|n| @allowed_inbound_data_transfer_sources = n.get_enum_value(MicrosoftGraph::Models::ManagedAppDataTransferLevel) },
        "allowedOutboundClipboardSharingLevel" => lambda {|n| @allowed_outbound_clipboard_sharing_level = n.get_enum_value(MicrosoftGraph::Models::ManagedAppClipboardSharingLevel) },
        "allowedOutboundDataTransferDestinations" => lambda {|n| @allowed_outbound_data_transfer_destinations = n.get_enum_value(MicrosoftGraph::Models::ManagedAppDataTransferLevel) },
        "contactSyncBlocked" => lambda {|n| @contact_sync_blocked = n.get_boolean_value() },
        "dataBackupBlocked" => lambda {|n| @data_backup_blocked = n.get_boolean_value() },
        "deviceComplianceRequired" => lambda {|n| @device_compliance_required = n.get_boolean_value() },
        "disableAppPinIfDevicePinIsSet" => lambda {|n| @disable_app_pin_if_device_pin_is_set = n.get_boolean_value() },
        "fingerprintBlocked" => lambda {|n| @fingerprint_blocked = n.get_boolean_value() },
        "managedBrowser" => lambda {|n| @managed_browser = n.get_enum_value(MicrosoftGraph::Models::ManagedBrowserType) },
        "managedBrowserToOpenLinksRequired" => lambda {|n| @managed_browser_to_open_links_required = n.get_boolean_value() },
        "maximumPinRetries" => lambda {|n| @maximum_pin_retries = n.get_number_value() },
        "minimumPinLength" => lambda {|n| @minimum_pin_length = n.get_number_value() },
        "minimumRequiredAppVersion" => lambda {|n| @minimum_required_app_version = n.get_string_value() },
        "minimumRequiredOsVersion" => lambda {|n| @minimum_required_os_version = n.get_string_value() },
        "minimumWarningAppVersion" => lambda {|n| @minimum_warning_app_version = n.get_string_value() },
        "minimumWarningOsVersion" => lambda {|n| @minimum_warning_os_version = n.get_string_value() },
        "organizationalCredentialsRequired" => lambda {|n| @organizational_credentials_required = n.get_boolean_value() },
        "periodBeforePinReset" => lambda {|n| @period_before_pin_reset = n.get_duration_value() },
        "periodOfflineBeforeAccessCheck" => lambda {|n| @period_offline_before_access_check = n.get_duration_value() },
        "periodOfflineBeforeWipeIsEnforced" => lambda {|n| @period_offline_before_wipe_is_enforced = n.get_duration_value() },
        "periodOnlineBeforeAccessCheck" => lambda {|n| @period_online_before_access_check = n.get_duration_value() },
        "pinCharacterSet" => lambda {|n| @pin_character_set = n.get_enum_value(MicrosoftGraph::Models::ManagedAppPinCharacterSet) },
        "pinRequired" => lambda {|n| @pin_required = n.get_boolean_value() },
        "printBlocked" => lambda {|n| @print_blocked = n.get_boolean_value() },
        "saveAsBlocked" => lambda {|n| @save_as_blocked = n.get_boolean_value() },
        "simplePinBlocked" => lambda {|n| @simple_pin_blocked = n.get_boolean_value() },
    })
end

#managed_browserObject

Gets the managedBrowser property value. Type of managed browser

Returns:

  • a managed_browser_type



297
298
299
# File 'lib/models/managed_app_protection.rb', line 297

def managed_browser
    return @managed_browser
end

#managed_browser=(value) ⇒ Object

Sets the managedBrowser property value. Type of managed browser

Parameters:

  • value

    Value to set for the managedBrowser property.

Returns:

  • a void



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

def managed_browser=(value)
    @managed_browser = value
end

Gets the managedBrowserToOpenLinksRequired property value. Indicates whether internet links should be opened in the managed browser app, or any custom browser specified by CustomBrowserProtocol (for iOS) or CustomBrowserPackageId/CustomBrowserDisplayName (for Android)

Returns:

  • a boolean



312
313
314
# File 'lib/models/managed_app_protection.rb', line 312

def managed_browser_to_open_links_required
    return @managed_browser_to_open_links_required
end

Sets the managedBrowserToOpenLinksRequired property value. Indicates whether internet links should be opened in the managed browser app, or any custom browser specified by CustomBrowserProtocol (for iOS) or CustomBrowserPackageId/CustomBrowserDisplayName (for Android)

Parameters:

  • value

    Value to set for the managedBrowserToOpenLinksRequired property.

Returns:

  • a void



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

def managed_browser_to_open_links_required=(value)
    @managed_browser_to_open_links_required = value
end

#maximum_pin_retriesObject

Gets the maximumPinRetries property value. Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.

Returns:

  • a integer



327
328
329
# File 'lib/models/managed_app_protection.rb', line 327

def maximum_pin_retries
    return @maximum_pin_retries
end

#maximum_pin_retries=(value) ⇒ Object

Sets the maximumPinRetries property value. Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.

Parameters:

  • value

    Value to set for the maximumPinRetries property.

Returns:

  • a void



335
336
337
# File 'lib/models/managed_app_protection.rb', line 335

def maximum_pin_retries=(value)
    @maximum_pin_retries = value
end

#minimum_pin_lengthObject

Gets the minimumPinLength property value. Minimum pin length required for an app-level pin if PinRequired is set to True

Returns:

  • a integer



342
343
344
# File 'lib/models/managed_app_protection.rb', line 342

def minimum_pin_length
    return @minimum_pin_length
end

#minimum_pin_length=(value) ⇒ Object

Sets the minimumPinLength property value. Minimum pin length required for an app-level pin if PinRequired is set to True

Parameters:

  • value

    Value to set for the minimumPinLength property.

Returns:

  • a void



350
351
352
# File 'lib/models/managed_app_protection.rb', line 350

def minimum_pin_length=(value)
    @minimum_pin_length = value
end

#minimum_required_app_versionObject

Gets the minimumRequiredAppVersion property value. Versions less than the specified version will block the managed app from accessing company data.

Returns:

  • a string



357
358
359
# File 'lib/models/managed_app_protection.rb', line 357

def minimum_required_app_version
    return @minimum_required_app_version
end

#minimum_required_app_version=(value) ⇒ Object

Sets the minimumRequiredAppVersion property value. Versions less than the specified version will block the managed app from accessing company data.

Parameters:

  • value

    Value to set for the minimumRequiredAppVersion property.

Returns:

  • a void



365
366
367
# File 'lib/models/managed_app_protection.rb', line 365

def minimum_required_app_version=(value)
    @minimum_required_app_version = value
end

#minimum_required_os_versionObject

Gets the minimumRequiredOsVersion property value. Versions less than the specified version will block the managed app from accessing company data.

Returns:

  • a string



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

def minimum_required_os_version
    return @minimum_required_os_version
end

#minimum_required_os_version=(value) ⇒ Object

Sets the minimumRequiredOsVersion property value. Versions less than the specified version will block the managed app from accessing company data.

Parameters:

  • value

    Value to set for the minimumRequiredOsVersion property.

Returns:

  • a void



380
381
382
# File 'lib/models/managed_app_protection.rb', line 380

def minimum_required_os_version=(value)
    @minimum_required_os_version = value
end

#minimum_warning_app_versionObject

Gets the minimumWarningAppVersion property value. Versions less than the specified version will result in warning message on the managed app.

Returns:

  • a string



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

def minimum_warning_app_version
    return @minimum_warning_app_version
end

#minimum_warning_app_version=(value) ⇒ Object

Sets the minimumWarningAppVersion property value. Versions less than the specified version will result in warning message on the managed app.

Parameters:

  • value

    Value to set for the minimumWarningAppVersion property.

Returns:

  • a void



395
396
397
# File 'lib/models/managed_app_protection.rb', line 395

def minimum_warning_app_version=(value)
    @minimum_warning_app_version = value
end

#minimum_warning_os_versionObject

Gets the minimumWarningOsVersion property value. Versions less than the specified version will result in warning message on the managed app from accessing company data.

Returns:

  • a string



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

def minimum_warning_os_version
    return @minimum_warning_os_version
end

#minimum_warning_os_version=(value) ⇒ Object

Sets the minimumWarningOsVersion property value. Versions less than the specified version will result in warning message on the managed app from accessing company data.

Parameters:

  • value

    Value to set for the minimumWarningOsVersion property.

Returns:

  • a void



410
411
412
# File 'lib/models/managed_app_protection.rb', line 410

def minimum_warning_os_version=(value)
    @minimum_warning_os_version = value
end

#organizational_credentials_requiredObject

Gets the organizationalCredentialsRequired property value. Indicates whether organizational credentials are required for app use.

Returns:

  • a boolean



417
418
419
# File 'lib/models/managed_app_protection.rb', line 417

def organizational_credentials_required
    return @organizational_credentials_required
end

#organizational_credentials_required=(value) ⇒ Object

Sets the organizationalCredentialsRequired property value. Indicates whether organizational credentials are required for app use.

Parameters:

  • value

    Value to set for the organizationalCredentialsRequired property.

Returns:

  • a void



425
426
427
# File 'lib/models/managed_app_protection.rb', line 425

def organizational_credentials_required=(value)
    @organizational_credentials_required = value
end

#period_before_pin_resetObject

Gets the periodBeforePinReset property value. TimePeriod before the all-level pin must be reset if PinRequired is set to True.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



432
433
434
# File 'lib/models/managed_app_protection.rb', line 432

def period_before_pin_reset
    return @period_before_pin_reset
end

#period_before_pin_reset=(value) ⇒ Object

Sets the periodBeforePinReset property value. TimePeriod before the all-level pin must be reset if PinRequired is set to True.

Parameters:

  • value

    Value to set for the periodBeforePinReset property.

Returns:

  • a void



440
441
442
# File 'lib/models/managed_app_protection.rb', line 440

def period_before_pin_reset=(value)
    @period_before_pin_reset = value
end

#period_offline_before_access_checkObject

Gets the periodOfflineBeforeAccessCheck property value. The period after which access is checked when the device is not connected to the internet.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



447
448
449
# File 'lib/models/managed_app_protection.rb', line 447

def period_offline_before_access_check
    return @period_offline_before_access_check
end

#period_offline_before_access_check=(value) ⇒ Object

Sets the periodOfflineBeforeAccessCheck property value. The period after which access is checked when the device is not connected to the internet.

Parameters:

  • value

    Value to set for the periodOfflineBeforeAccessCheck property.

Returns:

  • a void



455
456
457
# File 'lib/models/managed_app_protection.rb', line 455

def period_offline_before_access_check=(value)
    @period_offline_before_access_check = value
end

#period_offline_before_wipe_is_enforcedObject

Gets the periodOfflineBeforeWipeIsEnforced property value. The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



462
463
464
# File 'lib/models/managed_app_protection.rb', line 462

def period_offline_before_wipe_is_enforced
    return @period_offline_before_wipe_is_enforced
end

#period_offline_before_wipe_is_enforced=(value) ⇒ Object

Sets the periodOfflineBeforeWipeIsEnforced property value. The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.

Parameters:

  • value

    Value to set for the periodOfflineBeforeWipeIsEnforced property.

Returns:

  • a void



470
471
472
# File 'lib/models/managed_app_protection.rb', line 470

def period_offline_before_wipe_is_enforced=(value)
    @period_offline_before_wipe_is_enforced = value
end

#period_online_before_access_checkObject

Gets the periodOnlineBeforeAccessCheck property value. The period after which access is checked when the device is connected to the internet.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



477
478
479
# File 'lib/models/managed_app_protection.rb', line 477

def period_online_before_access_check
    return @period_online_before_access_check
end

#period_online_before_access_check=(value) ⇒ Object

Sets the periodOnlineBeforeAccessCheck property value. The period after which access is checked when the device is connected to the internet.

Parameters:

  • value

    Value to set for the periodOnlineBeforeAccessCheck property.

Returns:

  • a void



485
486
487
# File 'lib/models/managed_app_protection.rb', line 485

def period_online_before_access_check=(value)
    @period_online_before_access_check = value
end

#pin_character_setObject

Gets the pinCharacterSet property value. Character set which is to be used for a user’s app PIN

Returns:

  • a managed_app_pin_character_set



492
493
494
# File 'lib/models/managed_app_protection.rb', line 492

def pin_character_set
    return @pin_character_set
end

#pin_character_set=(value) ⇒ Object

Sets the pinCharacterSet property value. Character set which is to be used for a user’s app PIN

Parameters:

  • value

    Value to set for the pinCharacterSet property.

Returns:

  • a void



500
501
502
# File 'lib/models/managed_app_protection.rb', line 500

def pin_character_set=(value)
    @pin_character_set = value
end

#pin_requiredObject

Gets the pinRequired property value. Indicates whether an app-level pin is required.

Returns:

  • a boolean



507
508
509
# File 'lib/models/managed_app_protection.rb', line 507

def pin_required
    return @pin_required
end

#pin_required=(value) ⇒ Object

Sets the pinRequired property value. Indicates whether an app-level pin is required.

Parameters:

  • value

    Value to set for the pinRequired property.

Returns:

  • a void



515
516
517
# File 'lib/models/managed_app_protection.rb', line 515

def pin_required=(value)
    @pin_required = value
end

Gets the printBlocked property value. Indicates whether printing is allowed from managed apps.

Returns:

  • a boolean



522
523
524
# File 'lib/models/managed_app_protection.rb', line 522

def print_blocked
    return @print_blocked
end

Sets the printBlocked property value. Indicates whether printing is allowed from managed apps.

Parameters:

  • value

    Value to set for the printBlocked property.

Returns:

  • a void



530
531
532
# File 'lib/models/managed_app_protection.rb', line 530

def print_blocked=(value)
    @print_blocked = value
end

#save_as_blockedObject

Gets the saveAsBlocked property value. Indicates whether users may use the ‘Save As’ menu item to save a copy of protected files.

Returns:

  • a boolean



537
538
539
# File 'lib/models/managed_app_protection.rb', line 537

def save_as_blocked
    return @save_as_blocked
end

#save_as_blocked=(value) ⇒ Object

Sets the saveAsBlocked property value. Indicates whether users may use the ‘Save As’ menu item to save a copy of protected files.

Parameters:

  • value

    Value to set for the saveAsBlocked property.

Returns:

  • a void



545
546
547
# File 'lib/models/managed_app_protection.rb', line 545

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


553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
# File 'lib/models/managed_app_protection.rb', line 553

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("allowedDataStorageLocations", @allowed_data_storage_locations)
    writer.write_enum_value("allowedInboundDataTransferSources", @allowed_inbound_data_transfer_sources)
    writer.write_enum_value("allowedOutboundClipboardSharingLevel", @allowed_outbound_clipboard_sharing_level)
    writer.write_enum_value("allowedOutboundDataTransferDestinations", @allowed_outbound_data_transfer_destinations)
    writer.write_boolean_value("contactSyncBlocked", @contact_sync_blocked)
    writer.write_boolean_value("dataBackupBlocked", @data_backup_blocked)
    writer.write_boolean_value("deviceComplianceRequired", @device_compliance_required)
    writer.write_boolean_value("disableAppPinIfDevicePinIsSet", @disable_app_pin_if_device_pin_is_set)
    writer.write_boolean_value("fingerprintBlocked", @fingerprint_blocked)
    writer.write_enum_value("managedBrowser", @managed_browser)
    writer.write_boolean_value("managedBrowserToOpenLinksRequired", @managed_browser_to_open_links_required)
    writer.write_number_value("maximumPinRetries", @maximum_pin_retries)
    writer.write_number_value("minimumPinLength", @minimum_pin_length)
    writer.write_string_value("minimumRequiredAppVersion", @minimum_required_app_version)
    writer.write_string_value("minimumRequiredOsVersion", @minimum_required_os_version)
    writer.write_string_value("minimumWarningAppVersion", @minimum_warning_app_version)
    writer.write_string_value("minimumWarningOsVersion", @minimum_warning_os_version)
    writer.write_boolean_value("organizationalCredentialsRequired", @organizational_credentials_required)
    writer.write_duration_value("periodBeforePinReset", @period_before_pin_reset)
    writer.write_duration_value("periodOfflineBeforeAccessCheck", @period_offline_before_access_check)
    writer.write_duration_value("periodOfflineBeforeWipeIsEnforced", @period_offline_before_wipe_is_enforced)
    writer.write_duration_value("periodOnlineBeforeAccessCheck", @period_online_before_access_check)
    writer.write_enum_value("pinCharacterSet", @pin_character_set)
    writer.write_boolean_value("pinRequired", @pin_required)
    writer.write_boolean_value("printBlocked", @print_blocked)
    writer.write_boolean_value("saveAsBlocked", @save_as_blocked)
    writer.write_boolean_value("simplePinBlocked", @simple_pin_blocked)
end

#simple_pin_blockedObject

Gets the simplePinBlocked property value. Indicates whether simplePin is blocked.

Returns:

  • a boolean



588
589
590
# File 'lib/models/managed_app_protection.rb', line 588

def simple_pin_blocked
    return @simple_pin_blocked
end

#simple_pin_blocked=(value) ⇒ Object

Sets the simplePinBlocked property value. Indicates whether simplePin is blocked.

Parameters:

  • value

    Value to set for the simplePinBlocked property.

Returns:

  • a void



596
597
598
# File 'lib/models/managed_app_protection.rb', line 596

def simple_pin_blocked=(value)
    @simple_pin_blocked = value
end