Class: Google::Apis::CloudidentityV1::AndroidAttributes

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1/classes.rb,
generated/google/apis/cloudidentity_v1/representations.rb,
generated/google/apis/cloudidentity_v1/representations.rb

Overview

Resource representing the Android specific attributes of a Device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AndroidAttributes

Returns a new instance of AndroidAttributes.



112
113
114
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 112

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

Instance Attribute Details

#baseband_versionString

Baseband version of Android device. Corresponds to the JSON property basebandVersion

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 32

def baseband_version
  @baseband_version
end

#bootloader_versionString

Device bootloader version. Example: 0.6.7. Corresponds to the JSON property bootloaderVersion

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 37

def bootloader_version
  @bootloader_version
end

#build_numberString

Build number of Android device. Corresponds to the JSON property buildNumber

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 42

def build_number
  @build_number
end

#enabled_developer_optionsBoolean Also known as: enabled_developer_options?

Whether developer options is enabled on device. Corresponds to the JSON property enabledDeveloperOptions

Returns:

  • (Boolean)


47
48
49
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 47

def enabled_developer_options
  @enabled_developer_options
end

#enabled_unknown_sourcesBoolean Also known as: enabled_unknown_sources?

Whether applications from unknown sources can be installed on device. Corresponds to the JSON property enabledUnknownSources

Returns:

  • (Boolean)


53
54
55
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 53

def enabled_unknown_sources
  @enabled_unknown_sources
end

#enabled_usb_debuggingBoolean Also known as: enabled_usb_debugging?

Whether adb (USB debugging) is enabled on device. Corresponds to the JSON property enabledUsbDebugging

Returns:

  • (Boolean)


59
60
61
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 59

def enabled_usb_debugging
  @enabled_usb_debugging
end

#encryption_stateString

Device encryption state. Corresponds to the JSON property encryptionState

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 65

def encryption_state
  @encryption_state
end

#hardwareString

Device hardware. Example: Sprout. Corresponds to the JSON property hardware

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 70

def hardware
  @hardware
end

#kernel_versionString

Kernel version of Android device. Corresponds to the JSON property kernelVersion

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 75

def kernel_version
  @kernel_version
end

#other_accountsArray<String>

Domain name for Google accounts on device. Type for other accounts on device. Will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com". Corresponds to the JSON property otherAccounts

Returns:

  • (Array<String>)


84
85
86
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 84

def other_accounts
  @other_accounts
end

#owner_profile_accountBoolean Also known as: owner_profile_account?

Whether this account is on an owner/primary profile. For phones, only true for owner profiles. Android 4+ devices can have secondary or restricted user profiles. Corresponds to the JSON property ownerProfileAccount

Returns:

  • (Boolean)


91
92
93
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 91

def 
  @owner_profile_account
end

#ownership_privilegeString

Ownership privileges on device. Corresponds to the JSON property ownershipPrivilege

Returns:

  • (String)


97
98
99
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 97

def ownership_privilege
  @ownership_privilege
end

#security_patch_timeString

OS security patch update time on device. Corresponds to the JSON property securityPatchTime

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 102

def security_patch_time
  @security_patch_time
end

#supports_work_profileBoolean Also known as: supports_work_profile?

Whether device supports Android work profiles. If false, this service will not block access to corp data even if an administrator turns on the "Enforce Work Profile" policy. Corresponds to the JSON property supportsWorkProfile

Returns:

  • (Boolean)


109
110
111
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 109

def supports_work_profile
  @supports_work_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 117

def update!(**args)
  @baseband_version = args[:baseband_version] if args.key?(:baseband_version)
  @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
  @build_number = args[:build_number] if args.key?(:build_number)
  @enabled_developer_options = args[:enabled_developer_options] if args.key?(:enabled_developer_options)
  @enabled_unknown_sources = args[:enabled_unknown_sources] if args.key?(:enabled_unknown_sources)
  @enabled_usb_debugging = args[:enabled_usb_debugging] if args.key?(:enabled_usb_debugging)
  @encryption_state = args[:encryption_state] if args.key?(:encryption_state)
  @hardware = args[:hardware] if args.key?(:hardware)
  @kernel_version = args[:kernel_version] if args.key?(:kernel_version)
  @other_accounts = args[:other_accounts] if args.key?(:other_accounts)
  @owner_profile_account = args[:owner_profile_account] if args.key?(:owner_profile_account)
  @ownership_privilege = args[:ownership_privilege] if args.key?(:ownership_privilege)
  @security_patch_time = args[:security_patch_time] if args.key?(:security_patch_time)
  @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
end