Class: Google::Apis::AndroidmanagementV1::DeviceSettings
- Inherits:
-
Object
- Object
- Google::Apis::AndroidmanagementV1::DeviceSettings
- 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
Information about security related device settings on device.
Instance Attribute Summary collapse
-
#adb_enabled ⇒ Boolean
(also: #adb_enabled?)
Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device.
-
#development_settings_enabled ⇒ Boolean
(also: #development_settings_enabled?)
Whether developer mode is enabled on the device.
-
#encryption_status ⇒ String
Encryption status from DevicePolicyManager.
-
#is_device_secure ⇒ Boolean
(also: #is_device_secure?)
Whether the device is secured with PIN/password.
-
#is_encrypted ⇒ Boolean
(also: #is_encrypted?)
Whether the storage encryption is enabled.
-
#unknown_sources_enabled ⇒ Boolean
(also: #unknown_sources_enabled?)
Whether installing apps from unknown sources is enabled.
-
#verify_apps_enabled ⇒ Boolean
(also: #verify_apps_enabled?)
Whether Google Play Protect verification (https://support.google.com/accounts/ answer/2812853) is enforced on the device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeviceSettings
constructor
A new instance of DeviceSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeviceSettings
Returns a new instance of DeviceSettings.
1915 1916 1917 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1915 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adb_enabled ⇒ Boolean Also known as: adb_enabled?
Whether ADB (https://developer.android.com/studio/command-line/adb.html) is
enabled on the device.
Corresponds to the JSON property adbEnabled
1876 1877 1878 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1876 def adb_enabled @adb_enabled end |
#development_settings_enabled ⇒ Boolean Also known as: development_settings_enabled?
Whether developer mode is enabled on the device.
Corresponds to the JSON property developmentSettingsEnabled
1882 1883 1884 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1882 def development_settings_enabled @development_settings_enabled end |
#encryption_status ⇒ String
Encryption status from DevicePolicyManager.
Corresponds to the JSON property encryptionStatus
1888 1889 1890 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1888 def encryption_status @encryption_status end |
#is_device_secure ⇒ Boolean Also known as: is_device_secure?
Whether the device is secured with PIN/password.
Corresponds to the JSON property isDeviceSecure
1893 1894 1895 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1893 def is_device_secure @is_device_secure end |
#is_encrypted ⇒ Boolean Also known as: is_encrypted?
Whether the storage encryption is enabled.
Corresponds to the JSON property isEncrypted
1899 1900 1901 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1899 def is_encrypted @is_encrypted end |
#unknown_sources_enabled ⇒ Boolean Also known as: unknown_sources_enabled?
Whether installing apps from unknown sources is enabled.
Corresponds to the JSON property unknownSourcesEnabled
1905 1906 1907 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1905 def unknown_sources_enabled @unknown_sources_enabled end |
#verify_apps_enabled ⇒ Boolean Also known as: verify_apps_enabled?
Whether Google Play Protect verification (https://support.google.com/accounts/
answer/2812853) is enforced on the device.
Corresponds to the JSON property verifyAppsEnabled
1912 1913 1914 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1912 def verify_apps_enabled @verify_apps_enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1920 1921 1922 1923 1924 1925 1926 1927 1928 |
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 1920 def update!(**args) @adb_enabled = args[:adb_enabled] if args.key?(:adb_enabled) @development_settings_enabled = args[:development_settings_enabled] if args.key?(:development_settings_enabled) @encryption_status = args[:encryption_status] if args.key?(:encryption_status) @is_device_secure = args[:is_device_secure] if args.key?(:is_device_secure) @is_encrypted = args[:is_encrypted] if args.key?(:is_encrypted) @unknown_sources_enabled = args[:unknown_sources_enabled] if args.key?(:unknown_sources_enabled) @verify_apps_enabled = args[:verify_apps_enabled] if args.key?(:verify_apps_enabled) end |