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

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

A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy.



3559
3560
3561
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3559

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


3000
3001
3002
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3000

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)


3005
3006
3007
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3005

def add_user_disabled
  @add_user_disabled
end

#adjust_volume_disabledBoolean Also known as: adjust_volume_disabled?

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

Returns:

  • (Boolean)


3011
3012
3013
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3011

def adjust_volume_disabled
  @adjust_volume_disabled
end

#advanced_security_overridesGoogle::Apis::AndroidmanagementV1::AdvancedSecurityOverrides

Security policies set to secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values. Corresponds to the JSON property advancedSecurityOverrides



3018
3019
3020
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3018

def advanced_security_overrides
  @advanced_security_overrides
end

#always_on_vpn_packageGoogle::Apis::AndroidmanagementV1::AlwaysOnVpnPackage

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



3023
3024
3025
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3023

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


3030
3031
3032
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3030

def android_device_policy_tracks
  @android_device_policy_tracks
end

#app_auto_update_policyString

Deprecated. Use autoUpdateMode instead.When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect. The app auto update policy, which controls when automatic app updates can be applied. Corresponds to the JSON property appAutoUpdatePolicy

Returns:

  • (String)


3038
3039
3040
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3038

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



3043
3044
3045
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3043

def applications
  @applications
end

#auto_date_and_time_zoneString

Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored. Corresponds to the JSON property autoDateAndTimeZone

Returns:

  • (String)


3049
3050
3051
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3049

def auto_date_and_time_zone
  @auto_date_and_time_zone
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. If autoDateAndTimeZone is set, this field is ignored. Corresponds to the JSON property autoTimeRequired

Returns:

  • (Boolean)


3055
3056
3057
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3055

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)


3064
3065
3066
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3064

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)


3070
3071
3072
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3070

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)


3076
3077
3078
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3076

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)


3084
3085
3086
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3084

def bluetooth_disabled
  @bluetooth_disabled
end

#camera_accessString

Controls the use of the camera and whether the user has access to the camera access toggle. Corresponds to the JSON property cameraAccess

Returns:

  • (String)


3091
3092
3093
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3091

def camera_access
  @camera_access
end

#camera_disabledBoolean Also known as: camera_disabled?

If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected. Corresponds to the JSON property cameraDisabled

Returns:

  • (Boolean)


3101
3102
3103
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3101

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)


3107
3108
3109
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3107

def cell_broadcasts_config_disabled
  @cell_broadcasts_config_disabled
end

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

Rules for determining apps' access to private keys. See ChoosePrivateKeyRule for details. Corresponds to the JSON property choosePrivateKeyRules



3114
3115
3116
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3114

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. Use policy enforcement rules instead. Corresponds to the JSON property complianceRules



3122
3123
3124
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3122

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)


3127
3128
3129
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3127

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)


3133
3134
3135
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3133

def credentials_config_disabled
  @credentials_config_disabled
end

#cross_profile_policiesGoogle::Apis::AndroidmanagementV1::CrossProfilePolicies

Cross-profile policies applied on the device. Corresponds to the JSON property crossProfilePolicies



3139
3140
3141
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3139

def cross_profile_policies
  @cross_profile_policies
end

#data_roaming_disabledBoolean Also known as: data_roaming_disabled?

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

Returns:

  • (Boolean)


3144
3145
3146
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3144

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)


3150
3151
3152
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3150

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)


3156
3157
3158
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3156

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



3162
3163
3164
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3162

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)


3167
3168
3169
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3167

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)


3172
3173
3174
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3172

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)


3178
3179
3180
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3178

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


3187
3188
3189
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3187

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)


3193
3194
3195
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3193

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)


3199
3200
3201
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3199

def install_apps_disabled
  @install_apps_disabled
end

#install_unknown_sources_allowedBoolean Also known as: install_unknown_sources_allowed?

This field has no effect. Corresponds to the JSON property installUnknownSourcesAllowed

Returns:

  • (Boolean)


3205
3206
3207
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3205

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)


3211
3212
3213
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3211

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


3217
3218
3219
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3217

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. Apps appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior. Corresponds to the JSON property kioskCustomLauncherEnabled

Returns:

  • (Boolean)


3225
3226
3227
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3225

def kiosk_custom_launcher_enabled
  @kiosk_custom_launcher_enabled
end

#kiosk_customizationGoogle::Apis::AndroidmanagementV1::KioskCustomization

Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set kioskCustomLauncherEnabled to true or specify an app in the policy with installType KIOSK. Corresponds to the JSON property kioskCustomization



3233
3234
3235
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3233

def kiosk_customization
  @kiosk_customization
end

#location_modeString

The degree of location detection enabled. Corresponds to the JSON property locationMode

Returns:

  • (String)


3238
3239
3240
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3238

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



3244
3245
3246
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3244

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)


3250
3251
3252
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3250

def maximum_time_to_lock
  @maximum_time_to_lock
end

#microphone_accessString

Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices. Corresponds to the JSON property microphoneAccess

Returns:

  • (String)


3256
3257
3258
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3256

def microphone_access
  @microphone_access
end

#minimum_api_levelFixnum

The minimum allowed Android API level. Corresponds to the JSON property minimumApiLevel

Returns:

  • (Fixnum)


3261
3262
3263
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3261

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


3266
3267
3268
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3266

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)


3272
3273
3274
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3272

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)


3278
3279
3280
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3278

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)


3285
3286
3287
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3285

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.Note: Setting wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details. Corresponds to the JSON property networkEscapeHatchEnabled

Returns:

  • (Boolean)


3298
3299
3300
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3298

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)


3304
3305
3306
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3304

def network_reset_disabled
  @network_reset_disabled
end

#onc_certificate_providersArray<Google::Apis::AndroidmanagementV1::OncCertificateProvider>

This feature is not generally available. Corresponds to the JSON property oncCertificateProviders



3310
3311
3312
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3310

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


3316
3317
3318
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3316

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)


3321
3322
3323
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3321

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)


3327
3328
3329
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3327

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



3334
3335
3336
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3334

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



3339
3340
3341
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3339

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



3345
3346
3347
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3345

def permission_grants
  @permission_grants
end

#permitted_accessibility_servicesGoogle::Apis::AndroidmanagementV1::PackageNameList

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



3350
3351
3352
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3350

def permitted_accessibility_services
  @permitted_accessibility_services
end

#permitted_input_methodsGoogle::Apis::AndroidmanagementV1::PackageNameList

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



3355
3356
3357
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3355

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



3360
3361
3362
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3360

def persistent_preferred_activities
  @persistent_preferred_activities
end

#personal_usage_policiesGoogle::Apis::AndroidmanagementV1::PersonalUsagePolicies

Policies controlling personal usage on a company-owned device with a work profile. Corresponds to the JSON property personalUsagePolicies



3366
3367
3368
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3366

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


3372
3373
3374
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3372

def play_store_mode
  @play_store_mode
end

#policy_enforcement_rulesArray<Google::Apis::AndroidmanagementV1::PolicyEnforcementRule>

Rules that define the behavior when a particular policy can not be applied on device Corresponds to the JSON property policyEnforcementRules



3378
3379
3380
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3378

def policy_enforcement_rules
  @policy_enforcement_rules
end

#preferential_network_serviceString

Controls whether preferential network service is enabled on the work profile. For example, an organization may have an agreement with a carrier that all of the work data from its employees' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This has no effect on fully managed devices. Corresponds to the JSON property preferentialNetworkService

Returns:

  • (String)


3388
3389
3390
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3388

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


3395
3396
3397
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3395

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



3402
3403
3404
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3402

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)


3407
3408
3409
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3407

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)


3413
3414
3415
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3413

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)


3419
3420
3421
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3419

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)


3425
3426
3427
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3425

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)


3431
3432
3433
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3431

def set_wallpaper_disabled
  @set_wallpaper_disabled
end

#setup_actionsArray<Google::Apis::AndroidmanagementV1::SetupAction>

Action to take during the setup process. At most one action may be specified. Corresponds to the JSON property setupActions



3437
3438
3439
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3437

def setup_actions
  @setup_actions
end

#share_location_disabledBoolean Also known as: share_location_disabled?

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

Returns:

  • (Boolean)


3442
3443
3444
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3442

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



3449
3450
3451
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3449

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)


3456
3457
3458
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3456

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)


3462
3463
3464
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3462

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. DEPRECATED. To disable the status bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled. Corresponds to the JSON property statusBarDisabled

Returns:

  • (Boolean)


3471
3472
3473
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3471

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



3477
3478
3479
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3477

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


3484
3485
3486
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3484

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



3489
3490
3491
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3489

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)


3494
3495
3496
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3494

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)


3500
3501
3502
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3500

def uninstall_apps_disabled
  @uninstall_apps_disabled
end

#unmute_microphone_disabledBoolean Also known as: unmute_microphone_disabled?

If microphone_access is set to any value other than MICROPHONE_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all microphones are disabled, otherwise they are available. This is available only on fully managed devices. Corresponds to the JSON property unmuteMicrophoneDisabled

Returns:

  • (Boolean)


3510
3511
3512
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3510

def unmute_microphone_disabled
  @unmute_microphone_disabled
end

#usage_logGoogle::Apis::AndroidmanagementV1::UsageLog

Controls types of device activity logs collected from the device and reported via Pub/Sub notification (https://developers.google.com/android/management/ notifications). Corresponds to the JSON property usageLog



3518
3519
3520
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3518

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


3523
3524
3525
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3523

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)


3529
3530
3531
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3529

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)


3536
3537
3538
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3536

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)


3541
3542
3543
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3541

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.Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled). Corresponds to the JSON property wifiConfigDisabled

Returns:

  • (Boolean)


3550
3551
3552
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3550

def wifi_config_disabled
  @wifi_config_disabled
end

#wifi_configs_lockdown_enabledBoolean Also known as: wifi_configs_lockdown_enabled?

DEPRECATED - Use wifi_config_disabled. Corresponds to the JSON property wifiConfigsLockdownEnabled

Returns:

  • (Boolean)


3556
3557
3558
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3556

def wifi_configs_lockdown_enabled
  @wifi_configs_lockdown_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3564

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)
  @advanced_security_overrides = args[:advanced_security_overrides] if args.key?(:advanced_security_overrides)
  @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_date_and_time_zone = args[:auto_date_and_time_zone] if args.key?(:auto_date_and_time_zone)
  @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_access = args[:camera_access] if args.key?(:camera_access)
  @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)
  @cross_profile_policies = args[:cross_profile_policies] if args.key?(:cross_profile_policies)
  @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)
  @kiosk_customization = args[:kiosk_customization] if args.key?(:kiosk_customization)
  @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)
  @microphone_access = args[:microphone_access] if args.key?(:microphone_access)
  @minimum_api_level = args[:minimum_api_level] if args.key?(:minimum_api_level)
  @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)
  @onc_certificate_providers = args[:onc_certificate_providers] if args.key?(:onc_certificate_providers)
  @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_accessibility_services = args[:permitted_accessibility_services] if args.key?(:permitted_accessibility_services)
  @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)
  @personal_usage_policies = args[:personal_usage_policies] if args.key?(:personal_usage_policies)
  @play_store_mode = args[:play_store_mode] if args.key?(:play_store_mode)
  @policy_enforcement_rules = args[:policy_enforcement_rules] if args.key?(:policy_enforcement_rules)
  @preferential_network_service = args[:preferential_network_service] if args.key?(:preferential_network_service)
  @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)
  @setup_actions = args[:setup_actions] if args.key?(:setup_actions)
  @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)
  @usage_log = args[:usage_log] if args.key?(:usage_log)
  @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