class Google::Apis::AndroidmanagementV1::PersonalUsagePolicies

Policies controlling personal usage on a company-owned device with a work profile.

Attributes

account_types_with_management_disabled[RW]

Account types that can't be managed by the user. Corresponds to the JSON property `accountTypesWithManagementDisabled` @return [Array<String>]

camera_disabled[RW]

Whether camera is disabled. Corresponds to the JSON property `cameraDisabled` @return [Boolean]

camera_disabled?[RW]

Whether camera is disabled. Corresponds to the JSON property `cameraDisabled` @return [Boolean]

max_days_with_work_off[RW]

Controls how long the work profile can stay off. The duration must be at least 3 days. Corresponds to the JSON property `maxDaysWithWorkOff` @return [Fixnum]

personal_applications[RW]

Policy applied to applications in the personal profile. Corresponds to the JSON property `personalApplications` @return [Array<Google::Apis::AndroidmanagementV1::PersonalApplicationPolicy>]

personal_play_store_mode[RW]

Used together with personalApplications to control how apps in the personal profile are allowed or blocked. Corresponds to the JSON property `personalPlayStoreMode` @return [String]

screen_capture_disabled[RW]

Whether screen capture is disabled. Corresponds to the JSON property `screenCaptureDisabled` @return [Boolean]

screen_capture_disabled?[RW]

Whether screen capture is disabled. Corresponds to the JSON property `screenCaptureDisabled` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidmanagement_v1/classes.rb, line 2603
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidmanagement_v1/classes.rb, line 2608
def update!(**args)
  @account_types_with_management_disabled = args[:account_types_with_management_disabled] if args.key?(:account_types_with_management_disabled)
  @camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled)
  @max_days_with_work_off = args[:max_days_with_work_off] if args.key?(:max_days_with_work_off)
  @personal_applications = args[:personal_applications] if args.key?(:personal_applications)
  @personal_play_store_mode = args[:personal_play_store_mode] if args.key?(:personal_play_store_mode)
  @screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled)
end