Class: Google::Apis::CloudidentityV1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes

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

Returns a new instance of GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes.



144
145
146
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 144

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

Instance Attribute Details

#baseband_versionString

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

Returns:

  • (String)


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

def baseband_version
  @baseband_version
end

#bootloader_versionString

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

Returns:

  • (String)


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

def bootloader_version
  @bootloader_version
end

#build_numberString

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

Returns:

  • (String)


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

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)


79
80
81
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 79

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)


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

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)


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

def enabled_usb_debugging
  @enabled_usb_debugging
end

#encryption_stateString

Device encryption state. Corresponds to the JSON property encryptionState

Returns:

  • (String)


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

def encryption_state
  @encryption_state
end

#hardwareString

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

Returns:

  • (String)


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

def hardware
  @hardware
end

#kernel_versionString

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

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 107

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


116
117
118
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 116

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)


123
124
125
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 123

def 
  @owner_profile_account
end

#ownership_privilegeString

Ownership privileges on device. Corresponds to the JSON property ownershipPrivilege

Returns:

  • (String)


129
130
131
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 129

def ownership_privilege
  @ownership_privilege
end

#security_patch_timeString

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

Returns:

  • (String)


134
135
136
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 134

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)


141
142
143
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 141

def supports_work_profile
  @supports_work_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 149

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