Class: Google::Apis::AndroidmanagementV1::CrossProfilePolicies
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::CrossProfilePolicies
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidmanagement_v1/classes.rb,
lib/google/apis/androidmanagement_v1/representations.rb,
lib/google/apis/androidmanagement_v1/representations.rb
Overview
Controls the data from the work profile that can be accessed from the personal profile and vice versa. A nonComplianceDetail with MANAGEMENT_MODE is reported if the device does not have a work profile.
Instance Attribute Summary collapse
-
#cross_profile_copy_paste ⇒ String
Whether text copied from one profile (personal or work) can be pasted in the other profile.
-
#cross_profile_data_sharing ⇒ String
Whether data from one profile (personal or work) can be shared with apps in the other profile.
-
#exemptions_to_show_work_contacts_in_personal_profile ⇒ Google::Apis::AndroidmanagementV1::PackageNameList
A list of package names.
-
#show_work_contacts_in_personal_profile ⇒ String
Whether personal apps can access contacts stored in the work profile.See also exemptions_to_show_work_contacts_in_personal_profile.
-
#work_profile_widgets_default ⇒ String
Specifies the default behaviour for work profile widgets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CrossProfilePolicies
constructor
A new instance of CrossProfilePolicies.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CrossProfilePolicies
Returns a new instance of CrossProfilePolicies.
1442 1443 1444 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cross_profile_copy_paste ⇒ String
Whether text copied from one profile (personal or work) can be pasted in the
other profile.
Corresponds to the JSON property crossProfileCopyPaste
1413 1414 1415 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1413 def cross_profile_copy_paste @cross_profile_copy_paste end |
#cross_profile_data_sharing ⇒ String
Whether data from one profile (personal or work) can be shared with apps in
the other profile. Specifically controls simple data sharing via intents.
Management of other cross-profile communication channels, such as contact
search, copy/paste, or connected work & personal apps, are configured
separately.
Corresponds to the JSON property crossProfileDataSharing
1422 1423 1424 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1422 def cross_profile_data_sharing @cross_profile_data_sharing end |
#exemptions_to_show_work_contacts_in_personal_profile ⇒ Google::Apis::AndroidmanagementV1::PackageNameList
A list of package names.
Corresponds to the JSON property exemptionsToShowWorkContactsInPersonalProfile
1427 1428 1429 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1427 def exemptions_to_show_work_contacts_in_personal_profile @exemptions_to_show_work_contacts_in_personal_profile end |
#show_work_contacts_in_personal_profile ⇒ String
Whether personal apps can access contacts stored in the work profile.See also
exemptions_to_show_work_contacts_in_personal_profile.
Corresponds to the JSON property showWorkContactsInPersonalProfile
1433 1434 1435 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1433 def show_work_contacts_in_personal_profile @show_work_contacts_in_personal_profile end |
#work_profile_widgets_default ⇒ String
Specifies the default behaviour for work profile widgets. If the policy does
not specify work_profile_widgets for a specific application, it will behave
according to the value specified here.
Corresponds to the JSON property workProfileWidgetsDefault
1440 1441 1442 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1440 def @work_profile_widgets_default end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1447 1448 1449 1450 1451 1452 1453 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1447 def update!(**args) @cross_profile_copy_paste = args[:cross_profile_copy_paste] if args.key?(:cross_profile_copy_paste) @cross_profile_data_sharing = args[:cross_profile_data_sharing] if args.key?(:cross_profile_data_sharing) @exemptions_to_show_work_contacts_in_personal_profile = args[:exemptions_to_show_work_contacts_in_personal_profile] if args.key?(:exemptions_to_show_work_contacts_in_personal_profile) @show_work_contacts_in_personal_profile = args[:show_work_contacts_in_personal_profile] if args.key?(:show_work_contacts_in_personal_profile) @work_profile_widgets_default = args[:work_profile_widgets_default] if args.key?(:work_profile_widgets_default) end |