class Google::Apis::AdminDirectoryV1::MobileDevice

Google Workspace Mobile Management includes Android, [Google Sync](https:// support.google.com/a/answer/135937), and iOS devices. For more information about common group mobile device API tasks, see the [Developer's Guide](/admin- sdk/directory/v1/guides/manage-mobile-devices.html).

Attributes

adb_status[RW]

Adb (USB debugging) enabled or disabled on device (Read-only) Corresponds to the JSON property `adbStatus` @return [Boolean]

adb_status?[RW]

Adb (USB debugging) enabled or disabled on device (Read-only) Corresponds to the JSON property `adbStatus` @return [Boolean]

applications[RW]

The list of applications installed on an Android mobile device. It is not applicable to Google Sync and iOS devices. The list includes any Android applications that access Google Workspace data. When updating an applications list, it is important to note that updates replace the existing list. If the Android device has two existing applications and the API updates the list with five applications, the is now the updated list of five applications. Corresponds to the JSON property `applications` @return [Array<Google::Apis::AdminDirectoryV1::MobileDevice::Application>]

baseband_version[RW]

The device's baseband version. Corresponds to the JSON property `basebandVersion` @return [String]

bootloader_version[RW]

Mobile Device Bootloader version (Read-only) Corresponds to the JSON property `bootloaderVersion` @return [String]

brand[RW]

Mobile Device Brand (Read-only) Corresponds to the JSON property `brand` @return [String]

build_number[RW]

The device's operating system build number. Corresponds to the JSON property `buildNumber` @return [String]

default_language[RW]

The default locale used on the device. Corresponds to the JSON property `defaultLanguage` @return [String]

developer_options_status[RW]

Developer options enabled or disabled on device (Read-only) Corresponds to the JSON property `developerOptionsStatus` @return [Boolean]

developer_options_status?[RW]

Developer options enabled or disabled on device (Read-only) Corresponds to the JSON property `developerOptionsStatus` @return [Boolean]

device_compromised_status[RW]

The compromised device status. Corresponds to the JSON property `deviceCompromisedStatus` @return [String]

device_id[RW]

The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software generated unique identifier. Corresponds to the JSON property `deviceId` @return [String]

device_password_status[RW]

DevicePasswordStatus (Read-only) Corresponds to the JSON property `devicePasswordStatus` @return [String]

email[RW]

List of owner's email addresses. If your application needs the current list of user emails, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get. html) method. For additional information, see the [retrieve a user](/admin-sdk/ directory/v1/guides/manage-users#get_user) method. Corresponds to the JSON property `email` @return [Array<String>]

encryption_status[RW]

Mobile Device Encryption Status (Read-only) Corresponds to the JSON property `encryptionStatus` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

first_sync[RW]

Date and time the device was first synchronized with the policy settings in the G Suite administrator control panel (Read-only) Corresponds to the JSON property `firstSync` @return [DateTime]

hardware[RW]

Mobile Device Hardware (Read-only) Corresponds to the JSON property `hardware` @return [String]

hardware_id[RW]

The IMEI/MEID unique identifier for Android hardware. It is not applicable to Google Sync devices. When adding an Android mobile device, this is an optional property. When updating one of these devices, this is a read-only property. Corresponds to the JSON property `hardwareId` @return [String]

imei[RW]

The device's IMEI number. Corresponds to the JSON property `imei` @return [String]

kernel_version[RW]

The device's kernel version. Corresponds to the JSON property `kernelVersion` @return [String]

kind[RW]

The type of the API resource. For Mobiledevices resources, the value is `admin# directory#mobiledevice`. Corresponds to the JSON property `kind` @return [String]

last_sync[RW]

Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) Corresponds to the JSON property `lastSync` @return [DateTime]

managed_account_is_on_owner_profile[RW]

Boolean indicating if this account is on owner/primary profile or not. Corresponds to the JSON property `managedAccountIsOnOwnerProfile` @return [Boolean]

managed_account_is_on_owner_profile?[RW]

Boolean indicating if this account is on owner/primary profile or not. Corresponds to the JSON property `managedAccountIsOnOwnerProfile` @return [Boolean]

manufacturer[RW]

Mobile Device manufacturer (Read-only) Corresponds to the JSON property `manufacturer` @return [String]

meid[RW]

The device's MEID number. Corresponds to the JSON property `meid` @return [String]

model[RW]

The mobile device's model name, for example Nexus S. This property can be [ updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/ manage-mobile=devices#update_mobile_device). Corresponds to the JSON property `model` @return [String]

name[RW]

List of the owner's user names. If your application needs the current list of device owner names, use the [get](/admin-sdk/directory/v1/reference/ mobiledevices/get.html) method. For more information about retrieving mobile device user information, see the [Developer's Guide](/admin-sdk/directory/v1/ guides/manage-users#get_user). Corresponds to the JSON property `name` @return [Array<String>]

network_operator[RW]

Mobile Device mobile or network operator (if available) (Read-only) Corresponds to the JSON property `networkOperator` @return [String]

os[RW]

The mobile device's operating system, for example IOS 4.3 or Android 2.3.5. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/ update.html). For more information, see the [Developer's Guide](/admin-sdk/ directory/v1/guides/manage-mobile-devices#update_mobile_device). Corresponds to the JSON property `os` @return [String]

other_accounts_info[RW]

List of accounts added on device (Read-only) Corresponds to the JSON property `otherAccountsInfo` @return [Array<String>]

privilege[RW]

DMAgentPermission (Read-only) Corresponds to the JSON property `privilege` @return [String]

release_version[RW]

Mobile Device release version version (Read-only) Corresponds to the JSON property `releaseVersion` @return [String]

resource_id[RW]

The unique ID the API service uses to identify the mobile device. Corresponds to the JSON property `resourceId` @return [String]

security_patch_level[RW]

Mobile Device Security patch level (Read-only) Corresponds to the JSON property `securityPatchLevel` @return [Fixnum]

serial_number[RW]

The device's serial number. Corresponds to the JSON property `serialNumber` @return [String]

status[RW]

The device's status. Corresponds to the JSON property `status` @return [String]

supports_work_profile[RW]

Work profile supported on device (Read-only) Corresponds to the JSON property `supportsWorkProfile` @return [Boolean]

supports_work_profile?[RW]

Work profile supported on device (Read-only) Corresponds to the JSON property `supportsWorkProfile` @return [Boolean]

type[RW]

The type of mobile device. Corresponds to the JSON property `type` @return [String]

unknown_sources_status[RW]

Unknown sources enabled or disabled on device (Read-only) Corresponds to the JSON property `unknownSourcesStatus` @return [Boolean]

unknown_sources_status?[RW]

Unknown sources enabled or disabled on device (Read-only) Corresponds to the JSON property `unknownSourcesStatus` @return [Boolean]

user_agent[RW]

Gives information about the device such as `os` version. This property can be [ updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/ manage-mobile-devices#update_mobile_device). Corresponds to the JSON property `userAgent` @return [String]

wifi_mac_address[RW]

The device's MAC address on Wi-Fi networks. Corresponds to the JSON property `wifiMacAddress` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 2615
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 2620
def update!(**args)
  @adb_status = args[:adb_status] if args.key?(:adb_status)
  @applications = args[:applications] if args.key?(:applications)
  @baseband_version = args[:baseband_version] if args.key?(:baseband_version)
  @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
  @brand = args[:brand] if args.key?(:brand)
  @build_number = args[:build_number] if args.key?(:build_number)
  @default_language = args[:default_language] if args.key?(:default_language)
  @developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status)
  @device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status)
  @device_id = args[:device_id] if args.key?(:device_id)
  @device_password_status = args[:device_password_status] if args.key?(:device_password_status)
  @email = args[:email] if args.key?(:email)
  @encryption_status = args[:encryption_status] if args.key?(:encryption_status)
  @etag = args[:etag] if args.key?(:etag)
  @first_sync = args[:first_sync] if args.key?(:first_sync)
  @hardware = args[:hardware] if args.key?(:hardware)
  @hardware_id = args[:hardware_id] if args.key?(:hardware_id)
  @imei = args[:imei] if args.key?(:imei)
  @kernel_version = args[:kernel_version] if args.key?(:kernel_version)
  @kind = args[:kind] if args.key?(:kind)
  @last_sync = args[:last_sync] if args.key?(:last_sync)
  @managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile)
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
  @meid = args[:meid] if args.key?(:meid)
  @model = args[:model] if args.key?(:model)
  @name = args[:name] if args.key?(:name)
  @network_operator = args[:network_operator] if args.key?(:network_operator)
  @os = args[:os] if args.key?(:os)
  @other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info)
  @privilege = args[:privilege] if args.key?(:privilege)
  @release_version = args[:release_version] if args.key?(:release_version)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @status = args[:status] if args.key?(:status)
  @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
  @type = args[:type] if args.key?(:type)
  @unknown_sources_status = args[:unknown_sources_status] if args.key?(:unknown_sources_status)
  @user_agent = args[:user_agent] if args.key?(:user_agent)
  @wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
end