Class: Google::Apis::AndroidmanagementV1::DeviceSettings

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

Information about security related device settings on device.

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

Returns a new instance of DeviceSettings



762
763
764
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 762

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

Instance Attribute Details

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

Returns:

  • (Boolean)


723
724
725
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 723

def adb_enabled
  @adb_enabled
end

#development_settings_enabledBoolean Also known as: development_settings_enabled?

Whether developer mode is enabled on the device. Corresponds to the JSON property developmentSettingsEnabled

Returns:

  • (Boolean)


729
730
731
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 729

def development_settings_enabled
  @development_settings_enabled
end

#encryption_statusString

Encryption status from DevicePolicyManager. Corresponds to the JSON property encryptionStatus

Returns:

  • (String)


735
736
737
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 735

def encryption_status
  @encryption_status
end

#is_device_secureBoolean Also known as: is_device_secure?

Whether the device is secured with PIN/password. Corresponds to the JSON property isDeviceSecure

Returns:

  • (Boolean)


740
741
742
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 740

def is_device_secure
  @is_device_secure
end

#is_encryptedBoolean Also known as: is_encrypted?

Whether the storage encryption is enabled. Corresponds to the JSON property isEncrypted

Returns:

  • (Boolean)


746
747
748
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 746

def is_encrypted
  @is_encrypted
end

#unknown_sources_enabledBoolean Also known as: unknown_sources_enabled?

Whether installing apps from unknown sources is enabled. Corresponds to the JSON property unknownSourcesEnabled

Returns:

  • (Boolean)


752
753
754
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 752

def unknown_sources_enabled
  @unknown_sources_enabled
end

#verify_apps_enabledBoolean Also known as: verify_apps_enabled?

Whether Verify Apps (Google Play Protect (https://support.google.com/ googleplay/answer/2812853)) is enabled on the device. Corresponds to the JSON property verifyAppsEnabled

Returns:

  • (Boolean)


759
760
761
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 759

def verify_apps_enabled
  @verify_apps_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



767
768
769
770
771
772
773
774
775
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 767

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