Class: Google::Apis::AndroidmanagementV1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::Policy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
generated/google/apis/androidmanagement_v1/representations.rb,
generated/google/apis/androidmanagement_v1/representations.rb
Overview
A policy, which governs behavior for a device.
Instance Attribute Summary collapse
-
#add_user_disabled ⇒ Boolean
(also: #add_user_disabled?)
Whether adding new users and profiles is disabled.
-
#adjust_volume_disabled ⇒ Boolean
(also: #adjust_volume_disabled?)
Whether adjusting the master volume is disabled.
-
#applications ⇒ Array<Google::Apis::AndroidmanagementV1::ApplicationPolicy>
Policy applied to apps.
-
#auto_time_required ⇒ Boolean
(also: #auto_time_required?)
Whether auto time is required, which prevents the user from manually setting the date and time.
-
#block_applications_enabled ⇒ Boolean
(also: #block_applications_enabled?)
Whether applications other than the ones configured in applications are blocked from being installed.
-
#camera_disabled ⇒ Boolean
(also: #camera_disabled?)
Whether all cameras on the device are disabled.
-
#compliance_rules ⇒ Array<Google::Apis::AndroidmanagementV1::ComplianceRule>
Rules declaring which mitigating actions to take when a device is not compliant with its policy.
-
#debugging_features_allowed ⇒ Boolean
(also: #debugging_features_allowed?)
Whether the user is allowed to enable debugging features.
-
#default_permission_policy ⇒ String
The default permission policy for requests for runtime permissions.
-
#factory_reset_disabled ⇒ Boolean
(also: #factory_reset_disabled?)
Whether factory resetting from settings is disabled.
-
#frp_admin_emails ⇒ Array<String>
Email addresses of device administrators for factory reset protection.
-
#fun_disabled ⇒ Boolean
(also: #fun_disabled?)
Whether the user is allowed to have fun.
-
#install_unknown_sources_allowed ⇒ Boolean
(also: #install_unknown_sources_allowed?)
Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources.
-
#keyguard_disabled ⇒ Boolean
(also: #keyguard_disabled?)
Whether the keyguard is disabled.
-
#maximum_time_to_lock ⇒ Fixnum
Maximum time in milliseconds for user activity until the device will lock.
-
#modify_accounts_disabled ⇒ Boolean
(also: #modify_accounts_disabled?)
Whether adding or removing accounts is disabled.
-
#name ⇒ String
The name of the policy in the form enterprises/
enterpriseId
/policies/policyId
Corresponds to the JSON propertyname
. -
#network_escape_hatch_enabled ⇒ Boolean
(also: #network_escape_hatch_enabled?)
Flag to specify if network escape hatch is enabled.
-
#open_network_configuration ⇒ Hash<String,Object>
Network configuration for the device.
-
#password_requirements ⇒ Google::Apis::AndroidmanagementV1::PasswordRequirements
Requirements for the password used to unlock a device.
-
#persistent_preferred_activities ⇒ Array<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>
Default intent handler activities.
-
#remove_user_disabled ⇒ Boolean
(also: #remove_user_disabled?)
Whether removing other users is disabled.
-
#safe_boot_disabled ⇒ Boolean
(also: #safe_boot_disabled?)
Whether rebooting the device into safe boot is disabled.
-
#screen_capture_disabled ⇒ Boolean
(also: #screen_capture_disabled?)
Whether screen capture is disabled.
-
#status_bar_disabled ⇒ Boolean
(also: #status_bar_disabled?)
Whether the status bar is disabled.
-
#status_reporting_settings ⇒ Google::Apis::AndroidmanagementV1::StatusReportingSettings
Settings controlling the behavior of status reports.
-
#stay_on_plugged_modes ⇒ Array<String>
The battery plugged in modes for which the device stays on.
-
#system_update ⇒ Google::Apis::AndroidmanagementV1::SystemUpdate
Configuration for managing system updates Corresponds to the JSON property
systemUpdate
. -
#unmute_microphone_disabled ⇒ Boolean
(also: #unmute_microphone_disabled?)
Whether the microphone is muted and adjusting microphone volume is disabled.
-
#version ⇒ Fixnum
The version of the policy.
-
#wifi_config_disabled ⇒ Boolean
(also: #wifi_config_disabled?)
Whether configuring WiFi access points is disabled.
-
#wifi_configs_lockdown_enabled ⇒ Boolean
(also: #wifi_configs_lockdown_enabled?)
Whether WiFi networks defined in Open Network Configuration are locked so they cannot be edited by the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Policy
constructor
A new instance of Policy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy
1674 1675 1676 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1674 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add_user_disabled ⇒ Boolean Also known as: add_user_disabled?
Whether adding new users and profiles is disabled.
Corresponds to the JSON property addUserDisabled
1473 1474 1475 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1473 def add_user_disabled @add_user_disabled end |
#adjust_volume_disabled ⇒ Boolean Also known as: adjust_volume_disabled?
Whether adjusting the master volume is disabled.
Corresponds to the JSON property adjustVolumeDisabled
1479 1480 1481 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1479 def adjust_volume_disabled @adjust_volume_disabled end |
#applications ⇒ Array<Google::Apis::AndroidmanagementV1::ApplicationPolicy>
Policy applied to apps.
Corresponds to the JSON property applications
1485 1486 1487 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1485 def applications @applications end |
#auto_time_required ⇒ Boolean Also known as: auto_time_required?
Whether auto time is required, which prevents the user from manually setting
the date and time.
Corresponds to the JSON property autoTimeRequired
1491 1492 1493 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1491 def auto_time_required @auto_time_required end |
#block_applications_enabled ⇒ Boolean Also known as: block_applications_enabled?
Whether applications other than the ones configured in applications are
blocked from being installed. When set, applications that were installed under
a previous policy but no longer appear in the policy are automatically
uninstalled.
Corresponds to the JSON property blockApplicationsEnabled
1500 1501 1502 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1500 def block_applications_enabled @block_applications_enabled end |
#camera_disabled ⇒ Boolean Also known as: camera_disabled?
Whether all cameras on the device are disabled.
Corresponds to the JSON property cameraDisabled
1506 1507 1508 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1506 def camera_disabled @camera_disabled end |
#compliance_rules ⇒ Array<Google::Apis::AndroidmanagementV1::ComplianceRule>
Rules declaring which mitigating actions to take when a device is not
compliant with its policy. When the conditions for multiple rules are
satisfied, all of the mitigating actions for the rules are taken. There is a
maximum limit of 100 rules.
Corresponds to the JSON property complianceRules
1515 1516 1517 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1515 def compliance_rules @compliance_rules end |
#debugging_features_allowed ⇒ Boolean Also known as: debugging_features_allowed?
Whether the user is allowed to enable debugging features.
Corresponds to the JSON property debuggingFeaturesAllowed
1520 1521 1522 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1520 def debugging_features_allowed @debugging_features_allowed end |
#default_permission_policy ⇒ String
The default permission policy for requests for runtime permissions.
Corresponds to the JSON property defaultPermissionPolicy
1526 1527 1528 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1526 def @default_permission_policy end |
#factory_reset_disabled ⇒ Boolean Also known as: factory_reset_disabled?
Whether factory resetting from settings is disabled.
Corresponds to the JSON property factoryResetDisabled
1531 1532 1533 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1531 def factory_reset_disabled @factory_reset_disabled end |
#frp_admin_emails ⇒ Array<String>
Email addresses of device administrators for factory reset protection. When
the device is factory reset, it will require one of these admins to log in
with the Google account email and password to unlock the device. If no admins
are specified, the device will not provide factory reset protection.
Corresponds to the JSON property frpAdminEmails
1540 1541 1542 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1540 def frp_admin_emails @frp_admin_emails end |
#fun_disabled ⇒ Boolean Also known as: fun_disabled?
Whether the user is allowed to have fun. Controls whether the Easter egg game
in Settings is disabled.
Corresponds to the JSON property funDisabled
1546 1547 1548 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1546 def fun_disabled @fun_disabled end |
#install_unknown_sources_allowed ⇒ Boolean Also known as: install_unknown_sources_allowed?
Whether the user is allowed to enable the "Unknown Sources" setting, which
allows installation of apps from unknown sources.
Corresponds to the JSON property installUnknownSourcesAllowed
1553 1554 1555 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1553 def install_unknown_sources_allowed @install_unknown_sources_allowed end |
#keyguard_disabled ⇒ Boolean Also known as: keyguard_disabled?
Whether the keyguard is disabled.
Corresponds to the JSON property keyguardDisabled
1559 1560 1561 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1559 def keyguard_disabled @keyguard_disabled end |
#maximum_time_to_lock ⇒ Fixnum
Maximum time in milliseconds for user activity until the device will lock. A
value of 0 means there is no restriction.
Corresponds to the JSON property maximumTimeToLock
1566 1567 1568 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1566 def maximum_time_to_lock @maximum_time_to_lock end |
#modify_accounts_disabled ⇒ Boolean Also known as: modify_accounts_disabled?
Whether adding or removing accounts is disabled.
Corresponds to the JSON property modifyAccountsDisabled
1571 1572 1573 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1571 def modify_accounts_disabled @modify_accounts_disabled end |
#name ⇒ String
The name of the policy in the form enterprises/enterpriseId
/policies/
policyId
Corresponds to the JSON property name
1578 1579 1580 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1578 def name @name end |
#network_escape_hatch_enabled ⇒ Boolean Also known as: network_escape_hatch_enabled?
Flag to specify if network escape hatch is enabled. If this flag has been
enabled then upon device boot if device has no network connection, then an
activity will be shown that allows the user to temporarily connect to a
network to fetch the latest policy. The launched activity will time out if no
network has been connected for a given while and will return to the previous
activity that was shown.
Corresponds to the JSON property networkEscapeHatchEnabled
1588 1589 1590 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1588 def network_escape_hatch_enabled @network_escape_hatch_enabled end |
#open_network_configuration ⇒ Hash<String,Object>
Network configuration for the device. See configure networks for more
information.
Corresponds to the JSON property openNetworkConfiguration
1595 1596 1597 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1595 def open_network_configuration @open_network_configuration end |
#password_requirements ⇒ Google::Apis::AndroidmanagementV1::PasswordRequirements
Requirements for the password used to unlock a device.
Corresponds to the JSON property passwordRequirements
1600 1601 1602 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1600 def password_requirements @password_requirements end |
#persistent_preferred_activities ⇒ Array<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>
Default intent handler activities.
Corresponds to the JSON property persistentPreferredActivities
1605 1606 1607 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1605 def persistent_preferred_activities @persistent_preferred_activities end |
#remove_user_disabled ⇒ Boolean Also known as: remove_user_disabled?
Whether removing other users is disabled.
Corresponds to the JSON property removeUserDisabled
1610 1611 1612 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1610 def remove_user_disabled @remove_user_disabled end |
#safe_boot_disabled ⇒ Boolean Also known as: safe_boot_disabled?
Whether rebooting the device into safe boot is disabled.
Corresponds to the JSON property safeBootDisabled
1616 1617 1618 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1616 def safe_boot_disabled @safe_boot_disabled end |
#screen_capture_disabled ⇒ Boolean Also known as: screen_capture_disabled?
Whether screen capture is disabled.
Corresponds to the JSON property screenCaptureDisabled
1622 1623 1624 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1622 def screen_capture_disabled @screen_capture_disabled end |
#status_bar_disabled ⇒ Boolean Also known as: status_bar_disabled?
Whether the status bar is disabled. This disables notifications, quick
settings and other screen overlays that allow escape from full-screen mode.
Corresponds to the JSON property statusBarDisabled
1629 1630 1631 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1629 def @status_bar_disabled end |
#status_reporting_settings ⇒ Google::Apis::AndroidmanagementV1::StatusReportingSettings
Settings controlling the behavior of status reports.
Corresponds to the JSON property statusReportingSettings
1635 1636 1637 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1635 def status_reporting_settings @status_reporting_settings end |
#stay_on_plugged_modes ⇒ Array<String>
The battery plugged in modes for which the device stays on. When using this
setting, it is recommended to clear maximum_time_to_lock so that the device
doesn't lock itself while it stays on.
Corresponds to the JSON property stayOnPluggedModes
1642 1643 1644 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1642 def stay_on_plugged_modes @stay_on_plugged_modes end |
#system_update ⇒ Google::Apis::AndroidmanagementV1::SystemUpdate
Configuration for managing system updates
Corresponds to the JSON property systemUpdate
1647 1648 1649 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1647 def system_update @system_update end |
#unmute_microphone_disabled ⇒ Boolean Also known as: unmute_microphone_disabled?
Whether the microphone is muted and adjusting microphone volume is disabled.
Corresponds to the JSON property unmuteMicrophoneDisabled
1652 1653 1654 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1652 def unmute_microphone_disabled @unmute_microphone_disabled end |
#version ⇒ Fixnum
The version of the policy. This is a read-only field. The version is
incremented each time the policy is updated.
Corresponds to the JSON property version
1659 1660 1661 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1659 def version @version end |
#wifi_config_disabled ⇒ Boolean Also known as: wifi_config_disabled?
Whether configuring WiFi access points is disabled.
Corresponds to the JSON property wifiConfigDisabled
1664 1665 1666 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1664 def wifi_config_disabled @wifi_config_disabled end |
#wifi_configs_lockdown_enabled ⇒ Boolean Also known as: wifi_configs_lockdown_enabled?
Whether WiFi networks defined in Open Network Configuration are locked so they
cannot be edited by the user.
Corresponds to the JSON property wifiConfigsLockdownEnabled
1671 1672 1673 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1671 def wifi_configs_lockdown_enabled @wifi_configs_lockdown_enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 |
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1679 def update!(**args) @add_user_disabled = args[:add_user_disabled] if args.key?(:add_user_disabled) @adjust_volume_disabled = args[:adjust_volume_disabled] if args.key?(:adjust_volume_disabled) @applications = args[:applications] if args.key?(:applications) @auto_time_required = args[:auto_time_required] if args.key?(:auto_time_required) @block_applications_enabled = args[:block_applications_enabled] if args.key?(:block_applications_enabled) @camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled) @compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules) @debugging_features_allowed = args[:debugging_features_allowed] if args.key?(:debugging_features_allowed) @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy) @factory_reset_disabled = args[:factory_reset_disabled] if args.key?(:factory_reset_disabled) @frp_admin_emails = args[:frp_admin_emails] if args.key?(:frp_admin_emails) @fun_disabled = args[:fun_disabled] if args.key?(:fun_disabled) @install_unknown_sources_allowed = args[:install_unknown_sources_allowed] if args.key?(:install_unknown_sources_allowed) @keyguard_disabled = args[:keyguard_disabled] if args.key?(:keyguard_disabled) @maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock) @modify_accounts_disabled = args[:modify_accounts_disabled] if args.key?(:modify_accounts_disabled) @name = args[:name] if args.key?(:name) @network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled) @open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration) @password_requirements = args[:password_requirements] if args.key?(:password_requirements) @persistent_preferred_activities = args[:persistent_preferred_activities] if args.key?(:persistent_preferred_activities) @remove_user_disabled = args[:remove_user_disabled] if args.key?(:remove_user_disabled) @safe_boot_disabled = args[:safe_boot_disabled] if args.key?(:safe_boot_disabled) @screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled) @status_bar_disabled = args[:status_bar_disabled] if args.key?(:status_bar_disabled) @status_reporting_settings = args[:status_reporting_settings] if args.key?(:status_reporting_settings) @stay_on_plugged_modes = args[:stay_on_plugged_modes] if args.key?(:stay_on_plugged_modes) @system_update = args[:system_update] if args.key?(:system_update) @unmute_microphone_disabled = args[:unmute_microphone_disabled] if args.key?(:unmute_microphone_disabled) @version = args[:version] if args.key?(:version) @wifi_config_disabled = args[:wifi_config_disabled] if args.key?(:wifi_config_disabled) @wifi_configs_lockdown_enabled = args[:wifi_configs_lockdown_enabled] if args.key?(:wifi_configs_lockdown_enabled) end |