Class: Google::Apis::AndroidmanagementV1::CrossProfilePolicies

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CrossProfilePolicies

Returns a new instance of CrossProfilePolicies.



1383
1384
1385
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1383

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cross_profile_copy_pasteString

Whether text copied from one profile (personal or work) can be pasted in the other profile. Corresponds to the JSON property crossProfileCopyPaste

Returns:

  • (String)


1359
1360
1361
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1359

def cross_profile_copy_paste
  @cross_profile_copy_paste
end

#cross_profile_data_sharingString

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

Returns:

  • (String)


1368
1369
1370
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1368

def cross_profile_data_sharing
  @cross_profile_data_sharing
end

#show_work_contacts_in_personal_profileString

Whether contacts stored in the work profile can be shown in personal profile contact searches and incoming calls. Corresponds to the JSON property showWorkContactsInPersonalProfile

Returns:

  • (String)


1374
1375
1376
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1374

def show_work_contacts_in_personal_profile
  @show_work_contacts_in_personal_profile
end

#work_profile_widgets_defaultString

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

Returns:

  • (String)


1381
1382
1383
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1381

def work_profile_widgets_default
  @work_profile_widgets_default
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1388
1389
1390
1391
1392
1393
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1388

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)
  @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