Class: MicrosoftGraph::Models::IosManagedAppProtection

Inherits:
TargetedManagedAppProtection show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_managed_app_protection.rb

Overview

Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an iOS device

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TargetedManagedAppProtection

#assignments, #assignments=, #is_assigned, #is_assigned=

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



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

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

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return IosManagedAppProtection.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



36
37
38
# File 'lib/models/ios_managed_app_protection.rb', line 36

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



44
45
46
# File 'lib/models/ios_managed_app_protection.rb', line 44

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



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

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



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

def apps=(value)
    @apps = value
end

#custom_browser_protocolObject

Gets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.

Returns:

  • a string



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

def custom_browser_protocol
    return @custom_browser_protocol
end

#custom_browser_protocol=(value) ⇒ Object

Sets the customBrowserProtocol property value. A custom browser protocol to open weblink on iOS. When this property is configured, ManagedBrowserToOpenLinksRequired should be true.

Parameters:

  • value

    Value to set for the customBrowserProtocol property.

Returns:

  • a void



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

def custom_browser_protocol=(value)
    @custom_browser_protocol = value
end

#deployed_app_countObject

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

Returns:

  • a integer



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

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



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

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



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

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



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

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

Returns:

  • a boolean



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

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.

Parameters:

  • value

    Value to set for the faceIdBlocked property.

Returns:

  • a void



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

def face_id_blocked=(value)
    @face_id_blocked = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



143
144
145
146
147
148
149
150
151
152
153
# File 'lib/models/ios_managed_app_protection.rb', line 143

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) }) },
        "customBrowserProtocol" => lambda {|n| @custom_browser_protocol = n.get_string_value() },
        "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) }) },
        "faceIdBlocked" => lambda {|n| @face_id_blocked = n.get_boolean_value() },
        "minimumRequiredSdkVersion" => lambda {|n| @minimum_required_sdk_version = n.get_string_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.

Returns:

  • a string



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

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.

Parameters:

  • value

    Value to set for the minimumRequiredSdkVersion property.

Returns:

  • a void



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

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


174
175
176
177
178
179
180
181
182
183
184
# File 'lib/models/ios_managed_app_protection.rb', line 174

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_string_value("customBrowserProtocol", @custom_browser_protocol)
    writer.write_number_value("deployedAppCount", @deployed_app_count)
    writer.write_object_value("deploymentSummary", @deployment_summary)
    writer.write_boolean_value("faceIdBlocked", @face_id_blocked)
    writer.write_string_value("minimumRequiredSdkVersion", @minimum_required_sdk_version)
end