Class: Google::Apis::AndroidmanagementV1::Policy

Inherits:
Object
  • Object
show all
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 resources represents a group settings that govern the behavior of a managed device and the apps installed on it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy



2324
2325
2326
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2324

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

Instance Attribute Details

#account_types_with_management_disabledArray<String>

Account types that can't be managed by the user. Corresponds to the JSON property accountTypesWithManagementDisabled

Returns:

  • (Array<String>)


1862
1863
1864
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1862

def 
  @account_types_with_management_disabled
end

#add_user_disabledBoolean Also known as: add_user_disabled?

Whether adding new users and profiles is disabled. Corresponds to the JSON property addUserDisabled

Returns:

  • (Boolean)


1867
1868
1869
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1867

def add_user_disabled
  @add_user_disabled
end

#adjust_volume_disabledBoolean Also known as: adjust_volume_disabled?

Whether adjusting the master volume is disabled. Corresponds to the JSON property adjustVolumeDisabled

Returns:

  • (Boolean)


1873
1874
1875
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1873

def adjust_volume_disabled
  @adjust_volume_disabled
end

#always_on_vpn_packageGoogle::Apis::AndroidmanagementV1::AlwaysOnVpnPackage

Configuration for an always-on VPN connection. Corresponds to the JSON property alwaysOnVpnPackage



1879
1880
1881
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1879

def always_on_vpn_package
  @always_on_vpn_package
end

#android_device_policy_tracksArray<String>

The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track. Corresponds to the JSON property androidDevicePolicyTracks

Returns:

  • (Array<String>)


1886
1887
1888
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1886

def android_device_policy_tracks
  @android_device_policy_tracks
end

#app_auto_update_policyString

The app auto update policy, which controls when automatic app updates can be applied. Corresponds to the JSON property appAutoUpdatePolicy

Returns:

  • (String)


1892
1893
1894
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1892

def app_auto_update_policy
  @app_auto_update_policy
end

#applicationsArray<Google::Apis::AndroidmanagementV1::ApplicationPolicy>

Policy applied to apps. Corresponds to the JSON property applications



1897
1898
1899
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1897

def applications
  @applications
end

#auto_time_requiredBoolean 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

Returns:

  • (Boolean)


1903
1904
1905
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1903

def auto_time_required
  @auto_time_required
end

#block_applications_enabledBoolean 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

Returns:

  • (Boolean)


1912
1913
1914
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1912

def block_applications_enabled
  @block_applications_enabled
end

#bluetooth_config_disabledBoolean Also known as: bluetooth_config_disabled?

Whether configuring bluetooth is disabled. Corresponds to the JSON property bluetoothConfigDisabled

Returns:

  • (Boolean)


1918
1919
1920
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1918

def bluetooth_config_disabled
  @bluetooth_config_disabled
end

#bluetooth_contact_sharing_disabledBoolean Also known as: bluetooth_contact_sharing_disabled?

Whether bluetooth contact sharing is disabled. Corresponds to the JSON property bluetoothContactSharingDisabled

Returns:

  • (Boolean)


1924
1925
1926
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1924

def bluetooth_contact_sharing_disabled
  @bluetooth_contact_sharing_disabled
end

#bluetooth_disabledBoolean Also known as: bluetooth_disabled?

Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. Corresponds to the JSON property bluetoothDisabled

Returns:

  • (Boolean)


1932
1933
1934
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1932

def bluetooth_disabled
  @bluetooth_disabled
end

#camera_disabledBoolean Also known as: camera_disabled?

Whether all cameras on the device are disabled. Corresponds to the JSON property cameraDisabled

Returns:

  • (Boolean)


1938
1939
1940
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1938

def camera_disabled
  @camera_disabled
end

#cell_broadcasts_config_disabledBoolean Also known as: cell_broadcasts_config_disabled?

Whether configuring cell broadcast is disabled. Corresponds to the JSON property cellBroadcastsConfigDisabled

Returns:

  • (Boolean)


1944
1945
1946
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1944

def cell_broadcasts_config_disabled
  @cell_broadcasts_config_disabled
end

#choose_private_key_rulesArray<Google::Apis::AndroidmanagementV1::ChoosePrivateKeyRule>

Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use. Corresponds to the JSON property choosePrivateKeyRules



1953
1954
1955
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1953

def choose_private_key_rules
  @choose_private_key_rules
end

#compliance_rulesArray<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



1961
1962
1963
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1961

def compliance_rules
  @compliance_rules
end

#create_windows_disabledBoolean Also known as: create_windows_disabled?

Whether creating windows besides app windows is disabled. Corresponds to the JSON property createWindowsDisabled

Returns:

  • (Boolean)


1966
1967
1968
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1966

def create_windows_disabled
  @create_windows_disabled
end

#credentials_config_disabledBoolean Also known as: credentials_config_disabled?

Whether configuring user credentials is disabled. Corresponds to the JSON property credentialsConfigDisabled

Returns:

  • (Boolean)


1972
1973
1974
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1972

def credentials_config_disabled
  @credentials_config_disabled
end

#data_roaming_disabledBoolean Also known as: data_roaming_disabled?

Whether roaming data services are disabled. Corresponds to the JSON property dataRoamingDisabled

Returns:

  • (Boolean)


1978
1979
1980
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1978

def data_roaming_disabled
  @data_roaming_disabled
end

#debugging_features_allowedBoolean Also known as: debugging_features_allowed?

Whether the user is allowed to enable debugging features. Corresponds to the JSON property debuggingFeaturesAllowed

Returns:

  • (Boolean)


1984
1985
1986
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1984

def debugging_features_allowed
  @debugging_features_allowed
end

#default_permission_policyString

The default permission policy for runtime permission requests. Corresponds to the JSON property defaultPermissionPolicy

Returns:

  • (String)


1990
1991
1992
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1990

def default_permission_policy
  @default_permission_policy
end

#device_owner_lock_screen_infoGoogle::Apis::AndroidmanagementV1::UserFacingMessage

Provides a user-facing message with locale info. The maximum message length is 4096 characters. Corresponds to the JSON property deviceOwnerLockScreenInfo



1996
1997
1998
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1996

def device_owner_lock_screen_info
  @device_owner_lock_screen_info
end

#encryption_policyString

Whether encryption is enabled Corresponds to the JSON property encryptionPolicy

Returns:

  • (String)


2001
2002
2003
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2001

def encryption_policy
  @encryption_policy
end

#ensure_verify_apps_enabledBoolean Also known as: ensure_verify_apps_enabled?

Whether app verification is force-enabled. Corresponds to the JSON property ensureVerifyAppsEnabled

Returns:

  • (Boolean)


2006
2007
2008
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2006

def ensure_verify_apps_enabled
  @ensure_verify_apps_enabled
end

#factory_reset_disabledBoolean Also known as: factory_reset_disabled?

Whether factory resetting from settings is disabled. Corresponds to the JSON property factoryResetDisabled

Returns:

  • (Boolean)


2012
2013
2014
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2012

def factory_reset_disabled
  @factory_reset_disabled
end

#frp_admin_emailsArray<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 won't provide factory reset protection. Corresponds to the JSON property frpAdminEmails

Returns:

  • (Array<String>)


2021
2022
2023
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2021

def frp_admin_emails
  @frp_admin_emails
end

#fun_disabledBoolean 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

Returns:

  • (Boolean)


2027
2028
2029
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2027

def fun_disabled
  @fun_disabled
end

#install_apps_disabledBoolean Also known as: install_apps_disabled?

Whether user installation of apps is disabled. Corresponds to the JSON property installAppsDisabled

Returns:

  • (Boolean)


2033
2034
2035
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2033

def install_apps_disabled
  @install_apps_disabled
end

#install_unknown_sources_allowedBoolean 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

Returns:

  • (Boolean)


2040
2041
2042
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2040

def install_unknown_sources_allowed
  @install_unknown_sources_allowed
end

#keyguard_disabledBoolean Also known as: keyguard_disabled?

Whether the keyguard is disabled. Corresponds to the JSON property keyguardDisabled

Returns:

  • (Boolean)


2046
2047
2048
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2046

def keyguard_disabled
  @keyguard_disabled
end

#keyguard_disabled_featuresArray<String>

Disabled keyguard customizations, such as widgets. Corresponds to the JSON property keyguardDisabledFeatures

Returns:

  • (Array<String>)


2052
2053
2054
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2052

def keyguard_disabled_features
  @keyguard_disabled_features
end

#kiosk_custom_launcher_enabledBoolean Also known as: kiosk_custom_launcher_enabled?

Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings. Corresponds to the JSON property kioskCustomLauncherEnabled

Returns:

  • (Boolean)


2061
2062
2063
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2061

def kiosk_custom_launcher_enabled
  @kiosk_custom_launcher_enabled
end

#location_modeString

The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings. Corresponds to the JSON property locationMode

Returns:

  • (String)


2068
2069
2070
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2068

def location_mode
  @location_mode
end

#long_support_messageGoogle::Apis::AndroidmanagementV1::UserFacingMessage

Provides a user-facing message with locale info. The maximum message length is 4096 characters. Corresponds to the JSON property longSupportMessage



2074
2075
2076
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2074

def long_support_message
  @long_support_message
end

#maximum_time_to_lockFixnum

Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction. Corresponds to the JSON property maximumTimeToLock

Returns:

  • (Fixnum)


2080
2081
2082
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2080

def maximum_time_to_lock
  @maximum_time_to_lock
end

#mobile_networks_config_disabledBoolean Also known as: mobile_networks_config_disabled?

Whether configuring mobile networks is disabled. Corresponds to the JSON property mobileNetworksConfigDisabled

Returns:

  • (Boolean)


2085
2086
2087
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2085

def mobile_networks_config_disabled
  @mobile_networks_config_disabled
end

#modify_accounts_disabledBoolean Also known as: modify_accounts_disabled?

Whether adding or removing accounts is disabled. Corresponds to the JSON property modifyAccountsDisabled

Returns:

  • (Boolean)


2091
2092
2093
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2091

def modify_accounts_disabled
  @modify_accounts_disabled
end

#mount_physical_media_disabledBoolean Also known as: mount_physical_media_disabled?

Whether the user mounting physical external media is disabled. Corresponds to the JSON property mountPhysicalMediaDisabled

Returns:

  • (Boolean)


2097
2098
2099
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2097

def mount_physical_media_disabled
  @mount_physical_media_disabled
end

#nameString

The name of the policy in the form enterprises/enterpriseId/policies/ policyId. Corresponds to the JSON property name

Returns:

  • (String)


2104
2105
2106
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2104

def name
  @name
end

#network_escape_hatch_enabledBoolean Also known as: network_escape_hatch_enabled?

Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings. Corresponds to the JSON property networkEscapeHatchEnabled

Returns:

  • (Boolean)


2115
2116
2117
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2115

def network_escape_hatch_enabled
  @network_escape_hatch_enabled
end

#network_reset_disabledBoolean Also known as: network_reset_disabled?

Whether resetting network settings is disabled. Corresponds to the JSON property networkResetDisabled

Returns:

  • (Boolean)


2121
2122
2123
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2121

def network_reset_disabled
  @network_reset_disabled
end

#open_network_configurationHash<String,Object>

Network configuration for the device. See configure networks for more information. Corresponds to the JSON property openNetworkConfiguration

Returns:

  • (Hash<String,Object>)


2128
2129
2130
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2128

def open_network_configuration
  @open_network_configuration
end

#outgoing_beam_disabledBoolean Also known as: outgoing_beam_disabled?

Whether using NFC to beam data from apps is disabled. Corresponds to the JSON property outgoingBeamDisabled

Returns:

  • (Boolean)


2133
2134
2135
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2133

def outgoing_beam_disabled
  @outgoing_beam_disabled
end

#outgoing_calls_disabledBoolean Also known as: outgoing_calls_disabled?

Whether outgoing calls are disabled. Corresponds to the JSON property outgoingCallsDisabled

Returns:

  • (Boolean)


2139
2140
2141
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2139

def outgoing_calls_disabled
  @outgoing_calls_disabled
end

#password_policiesArray<Google::Apis::AndroidmanagementV1::PasswordRequirements>

Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy. Corresponds to the JSON property passwordPolicies



2146
2147
2148
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2146

def password_policies
  @password_policies
end

#password_requirementsGoogle::Apis::AndroidmanagementV1::PasswordRequirements

Requirements for the password used to unlock a device. Corresponds to the JSON property passwordRequirements



2151
2152
2153
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2151

def password_requirements
  @password_requirements
end

#permission_grantsArray<Google::Apis::AndroidmanagementV1::PermissionGrant>

Explicit permission or group grants or denials for all apps. These values override the default_permission_policy. Corresponds to the JSON property permissionGrants



2157
2158
2159
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2157

def permission_grants
  @permission_grants
end

#permitted_input_methodsGoogle::Apis::AndroidmanagementV1::PackageNameList

A list of package names. Corresponds to the JSON property permittedInputMethods



2162
2163
2164
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2162

def permitted_input_methods
  @permitted_input_methods
end

#persistent_preferred_activitiesArray<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>

Default intent handler activities. Corresponds to the JSON property persistentPreferredActivities



2167
2168
2169
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2167

def persistent_preferred_activities
  @persistent_preferred_activities
end

#play_store_modeString

This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy. Corresponds to the JSON property playStoreMode

Returns:

  • (String)


2173
2174
2175
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2173

def play_store_mode
  @play_store_mode
end

#private_key_selection_enabledBoolean Also known as: private_key_selection_enabled?

Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. Corresponds to the JSON property privateKeySelectionEnabled

Returns:

  • (Boolean)


2180
2181
2182
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2180

def private_key_selection_enabled
  @private_key_selection_enabled
end

Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field. Corresponds to the JSON property recommendedGlobalProxy



2187
2188
2189
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2187

def recommended_global_proxy
  @recommended_global_proxy
end

#remove_user_disabledBoolean Also known as: remove_user_disabled?

Whether removing other users is disabled. Corresponds to the JSON property removeUserDisabled

Returns:

  • (Boolean)


2192
2193
2194
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2192

def remove_user_disabled
  @remove_user_disabled
end

#safe_boot_disabledBoolean Also known as: safe_boot_disabled?

Whether rebooting the device into safe boot is disabled. Corresponds to the JSON property safeBootDisabled

Returns:

  • (Boolean)


2198
2199
2200
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2198

def safe_boot_disabled
  @safe_boot_disabled
end

#screen_capture_disabledBoolean Also known as: screen_capture_disabled?

Whether screen capture is disabled. Corresponds to the JSON property screenCaptureDisabled

Returns:

  • (Boolean)


2204
2205
2206
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2204

def screen_capture_disabled
  @screen_capture_disabled
end

#set_user_icon_disabledBoolean Also known as: set_user_icon_disabled?

Whether changing the user icon is disabled. Corresponds to the JSON property setUserIconDisabled

Returns:

  • (Boolean)


2210
2211
2212
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2210

def set_user_icon_disabled
  @set_user_icon_disabled
end

#set_wallpaper_disabledBoolean Also known as: set_wallpaper_disabled?

Whether changing the wallpaper is disabled. Corresponds to the JSON property setWallpaperDisabled

Returns:

  • (Boolean)


2216
2217
2218
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2216

def set_wallpaper_disabled
  @set_wallpaper_disabled
end

#share_location_disabledBoolean Also known as: share_location_disabled?

Whether location sharing is disabled. Corresponds to the JSON property shareLocationDisabled

Returns:

  • (Boolean)


2222
2223
2224
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2222

def share_location_disabled
  @share_location_disabled
end

#short_support_messageGoogle::Apis::AndroidmanagementV1::UserFacingMessage

Provides a user-facing message with locale info. The maximum message length is 4096 characters. Corresponds to the JSON property shortSupportMessage



2229
2230
2231
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2229

def short_support_message
  @short_support_message
end

#skip_first_use_hints_enabledBoolean Also known as: skip_first_use_hints_enabled?

Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up. Corresponds to the JSON property skipFirstUseHintsEnabled

Returns:

  • (Boolean)


2236
2237
2238
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2236

def skip_first_use_hints_enabled
  @skip_first_use_hints_enabled
end

#sms_disabledBoolean Also known as: sms_disabled?

Whether sending and receiving SMS messages is disabled. Corresponds to the JSON property smsDisabled

Returns:

  • (Boolean)


2242
2243
2244
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2242

def sms_disabled
  @sms_disabled
end

#status_bar_disabledBoolean 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

Returns:

  • (Boolean)


2249
2250
2251
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2249

def status_bar_disabled
  @status_bar_disabled
end

#status_reporting_settingsGoogle::Apis::AndroidmanagementV1::StatusReportingSettings

Settings controlling the behavior of status reports. Corresponds to the JSON property statusReportingSettings



2255
2256
2257
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2255

def status_reporting_settings
  @status_reporting_settings
end

#stay_on_plugged_modesArray<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

Returns:

  • (Array<String>)


2262
2263
2264
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2262

def stay_on_plugged_modes
  @stay_on_plugged_modes
end

#system_updateGoogle::Apis::AndroidmanagementV1::SystemUpdate

Configuration for managing system updates Corresponds to the JSON property systemUpdate



2267
2268
2269
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2267

def system_update
  @system_update
end

#tethering_config_disabledBoolean Also known as: tethering_config_disabled?

Whether configuring tethering and portable hotspots is disabled. Corresponds to the JSON property tetheringConfigDisabled

Returns:

  • (Boolean)


2272
2273
2274
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2272

def tethering_config_disabled
  @tethering_config_disabled
end

#uninstall_apps_disabledBoolean Also known as: uninstall_apps_disabled?

Whether user uninstallation of applications is disabled. Corresponds to the JSON property uninstallAppsDisabled

Returns:

  • (Boolean)


2278
2279
2280
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2278

def uninstall_apps_disabled
  @uninstall_apps_disabled
end

#unmute_microphone_disabledBoolean Also known as: unmute_microphone_disabled?

Whether the microphone is muted and adjusting microphone volume is disabled. Corresponds to the JSON property unmuteMicrophoneDisabled

Returns:

  • (Boolean)


2284
2285
2286
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2284

def unmute_microphone_disabled
  @unmute_microphone_disabled
end

#usb_file_transfer_disabledBoolean Also known as: usb_file_transfer_disabled?

Whether transferring files over USB is disabled. Corresponds to the JSON property usbFileTransferDisabled

Returns:

  • (Boolean)


2290
2291
2292
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2290

def usb_file_transfer_disabled
  @usb_file_transfer_disabled
end

#usb_mass_storage_enabledBoolean Also known as: usb_mass_storage_enabled?

Whether USB storage is enabled. Deprecated. Corresponds to the JSON property usbMassStorageEnabled

Returns:

  • (Boolean)


2296
2297
2298
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2296

def usb_mass_storage_enabled
  @usb_mass_storage_enabled
end

#versionFixnum

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

Returns:

  • (Fixnum)


2303
2304
2305
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2303

def version
  @version
end

#vpn_config_disabledBoolean Also known as: vpn_config_disabled?

Whether configuring VPN is disabled. Corresponds to the JSON property vpnConfigDisabled

Returns:

  • (Boolean)


2308
2309
2310
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2308

def vpn_config_disabled
  @vpn_config_disabled
end

#wifi_config_disabledBoolean Also known as: wifi_config_disabled?

Whether configuring Wi-Fi access points is disabled. Corresponds to the JSON property wifiConfigDisabled

Returns:

  • (Boolean)


2314
2315
2316
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2314

def wifi_config_disabled
  @wifi_config_disabled
end

#wifi_configs_lockdown_enabledBoolean Also known as: wifi_configs_lockdown_enabled?

Whether Wi-Fi networks defined in Open Network Configuration are locked so they can't be edited by the user. Corresponds to the JSON property wifiConfigsLockdownEnabled

Returns:

  • (Boolean)


2321
2322
2323
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2321

def wifi_configs_lockdown_enabled
  @wifi_configs_lockdown_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 2329

def update!(**args)
  @account_types_with_management_disabled = args[:account_types_with_management_disabled] if args.key?(:account_types_with_management_disabled)
  @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)
  @always_on_vpn_package = args[:always_on_vpn_package] if args.key?(:always_on_vpn_package)
  @android_device_policy_tracks = args[:android_device_policy_tracks] if args.key?(:android_device_policy_tracks)
  @app_auto_update_policy = args[:app_auto_update_policy] if args.key?(:app_auto_update_policy)
  @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)
  @bluetooth_config_disabled = args[:bluetooth_config_disabled] if args.key?(:bluetooth_config_disabled)
  @bluetooth_contact_sharing_disabled = args[:bluetooth_contact_sharing_disabled] if args.key?(:bluetooth_contact_sharing_disabled)
  @bluetooth_disabled = args[:bluetooth_disabled] if args.key?(:bluetooth_disabled)
  @camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled)
  @cell_broadcasts_config_disabled = args[:cell_broadcasts_config_disabled] if args.key?(:cell_broadcasts_config_disabled)
  @choose_private_key_rules = args[:choose_private_key_rules] if args.key?(:choose_private_key_rules)
  @compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules)
  @create_windows_disabled = args[:create_windows_disabled] if args.key?(:create_windows_disabled)
  @credentials_config_disabled = args[:credentials_config_disabled] if args.key?(:credentials_config_disabled)
  @data_roaming_disabled = args[:data_roaming_disabled] if args.key?(:data_roaming_disabled)
  @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)
  @device_owner_lock_screen_info = args[:device_owner_lock_screen_info] if args.key?(:device_owner_lock_screen_info)
  @encryption_policy = args[:encryption_policy] if args.key?(:encryption_policy)
  @ensure_verify_apps_enabled = args[:ensure_verify_apps_enabled] if args.key?(:ensure_verify_apps_enabled)
  @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_apps_disabled = args[:install_apps_disabled] if args.key?(:install_apps_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)
  @keyguard_disabled_features = args[:keyguard_disabled_features] if args.key?(:keyguard_disabled_features)
  @kiosk_custom_launcher_enabled = args[:kiosk_custom_launcher_enabled] if args.key?(:kiosk_custom_launcher_enabled)
  @location_mode = args[:location_mode] if args.key?(:location_mode)
  @long_support_message = args[:long_support_message] if args.key?(:long_support_message)
  @maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock)
  @mobile_networks_config_disabled = args[:mobile_networks_config_disabled] if args.key?(:mobile_networks_config_disabled)
  @modify_accounts_disabled = args[:modify_accounts_disabled] if args.key?(:modify_accounts_disabled)
  @mount_physical_media_disabled = args[:mount_physical_media_disabled] if args.key?(:mount_physical_media_disabled)
  @name = args[:name] if args.key?(:name)
  @network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
  @network_reset_disabled = args[:network_reset_disabled] if args.key?(:network_reset_disabled)
  @open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
  @outgoing_beam_disabled = args[:outgoing_beam_disabled] if args.key?(:outgoing_beam_disabled)
  @outgoing_calls_disabled = args[:outgoing_calls_disabled] if args.key?(:outgoing_calls_disabled)
  @password_policies = args[:password_policies] if args.key?(:password_policies)
  @password_requirements = args[:password_requirements] if args.key?(:password_requirements)
  @permission_grants = args[:permission_grants] if args.key?(:permission_grants)
  @permitted_input_methods = args[:permitted_input_methods] if args.key?(:permitted_input_methods)
  @persistent_preferred_activities = args[:persistent_preferred_activities] if args.key?(:persistent_preferred_activities)
  @play_store_mode = args[:play_store_mode] if args.key?(:play_store_mode)
  @private_key_selection_enabled = args[:private_key_selection_enabled] if args.key?(:private_key_selection_enabled)
  @recommended_global_proxy = args[:recommended_global_proxy] if args.key?(:recommended_global_proxy)
  @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)
  @set_user_icon_disabled = args[:set_user_icon_disabled] if args.key?(:set_user_icon_disabled)
  @set_wallpaper_disabled = args[:set_wallpaper_disabled] if args.key?(:set_wallpaper_disabled)
  @share_location_disabled = args[:share_location_disabled] if args.key?(:share_location_disabled)
  @short_support_message = args[:short_support_message] if args.key?(:short_support_message)
  @skip_first_use_hints_enabled = args[:skip_first_use_hints_enabled] if args.key?(:skip_first_use_hints_enabled)
  @sms_disabled = args[:sms_disabled] if args.key?(:sms_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)
  @tethering_config_disabled = args[:tethering_config_disabled] if args.key?(:tethering_config_disabled)
  @uninstall_apps_disabled = args[:uninstall_apps_disabled] if args.key?(:uninstall_apps_disabled)
  @unmute_microphone_disabled = args[:unmute_microphone_disabled] if args.key?(:unmute_microphone_disabled)
  @usb_file_transfer_disabled = args[:usb_file_transfer_disabled] if args.key?(:usb_file_transfer_disabled)
  @usb_mass_storage_enabled = args[:usb_mass_storage_enabled] if args.key?(:usb_mass_storage_enabled)
  @version = args[:version] if args.key?(:version)
  @vpn_config_disabled = args[:vpn_config_disabled] if args.key?(:vpn_config_disabled)
  @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