Class: Google::Apis::AndroidmanagementV1::PersonalUsagePolicies
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::PersonalUsagePolicies
- 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
Policies controlling personal usage on a company-owned device with a work profile.
Instance Attribute Summary collapse
-
#account_types_with_management_disabled ⇒ Array<String>
Account types that can't be managed by the user.
-
#camera_disabled ⇒ Boolean
(also: #camera_disabled?)
Whether camera is disabled.
-
#max_days_with_work_off ⇒ Fixnum
Controls how long the work profile can stay off.
-
#personal_applications ⇒ Array<Google::Apis::AndroidmanagementV1::PersonalApplicationPolicy>
Policy applied to applications in the personal profile.
-
#personal_play_store_mode ⇒ String
Used together with personalApplications to control how apps in the personal profile are allowed or blocked.
-
#screen_capture_disabled ⇒ Boolean
(also: #screen_capture_disabled?)
Whether screen capture is disabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersonalUsagePolicies
constructor
A new instance of PersonalUsagePolicies.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersonalUsagePolicies
Returns a new instance of PersonalUsagePolicies.
2556 2557 2558 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2556 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_types_with_management_disabled ⇒ Array<String>
Account types that can't be managed by the user.
Corresponds to the JSON property accountTypesWithManagementDisabled
2525 2526 2527 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2525 def account_types_with_management_disabled @account_types_with_management_disabled end |
#camera_disabled ⇒ Boolean Also known as: camera_disabled?
Whether camera is disabled.
Corresponds to the JSON property cameraDisabled
2530 2531 2532 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2530 def camera_disabled @camera_disabled end |
#max_days_with_work_off ⇒ Fixnum
Controls how long the work profile can stay off. The duration must be at least
3 days.
Corresponds to the JSON property maxDaysWithWorkOff
2537 2538 2539 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2537 def max_days_with_work_off @max_days_with_work_off end |
#personal_applications ⇒ Array<Google::Apis::AndroidmanagementV1::PersonalApplicationPolicy>
Policy applied to applications in the personal profile.
Corresponds to the JSON property personalApplications
2542 2543 2544 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2542 def personal_applications @personal_applications end |
#personal_play_store_mode ⇒ String
Used together with personalApplications to control how apps in the personal
profile are allowed or blocked.
Corresponds to the JSON property personalPlayStoreMode
2548 2549 2550 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2548 def personal_play_store_mode @personal_play_store_mode end |
#screen_capture_disabled ⇒ Boolean Also known as: screen_capture_disabled?
Whether screen capture is disabled.
Corresponds to the JSON property screenCaptureDisabled
2553 2554 2555 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2553 def screen_capture_disabled @screen_capture_disabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2561 2562 2563 2564 2565 2566 2567 2568 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2561 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 |