Class: Google::Apis::AdminDirectoryV1::MobileDevice

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

Google Workspace Mobile Management includes Android, Google Sync, and iOS devices. For more information about common group mobile device API tasks, see the Developer's Guide.

Defined Under Namespace

Classes: Application

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MobileDevice

Returns a new instance of MobileDevice.



2722
2723
2724
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2722

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

Instance Attribute Details

#adb_statusBoolean Also known as: adb_status?

Adb (USB debugging) enabled or disabled on device (Read-only) Corresponds to the JSON property adbStatus

Returns:

  • (Boolean)


2493
2494
2495
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2493

def adb_status
  @adb_status
end

#applicationsArray<Google::Apis::AdminDirectoryV1::MobileDevice::Application>

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



2504
2505
2506
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2504

def applications
  @applications
end

#baseband_versionString

The device's baseband version. Corresponds to the JSON property basebandVersion

Returns:

  • (String)


2509
2510
2511
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2509

def baseband_version
  @baseband_version
end

#bootloader_versionString

Mobile Device Bootloader version (Read-only) Corresponds to the JSON property bootloaderVersion

Returns:

  • (String)


2514
2515
2516
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2514

def bootloader_version
  @bootloader_version
end

#brandString

Mobile Device Brand (Read-only) Corresponds to the JSON property brand

Returns:

  • (String)


2519
2520
2521
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2519

def brand
  @brand
end

#build_numberString

The device's operating system build number. Corresponds to the JSON property buildNumber

Returns:

  • (String)


2524
2525
2526
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2524

def build_number
  @build_number
end

#default_languageString

The default locale used on the device. Corresponds to the JSON property defaultLanguage

Returns:

  • (String)


2529
2530
2531
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2529

def default_language
  @default_language
end

#developer_options_statusBoolean Also known as: developer_options_status?

Developer options enabled or disabled on device (Read-only) Corresponds to the JSON property developerOptionsStatus

Returns:

  • (Boolean)


2534
2535
2536
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2534

def developer_options_status
  @developer_options_status
end

#device_compromised_statusString

The compromised device status. Corresponds to the JSON property deviceCompromisedStatus

Returns:

  • (String)


2540
2541
2542
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2540

def device_compromised_status
  @device_compromised_status
end

#device_idString

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

Returns:

  • (String)


2546
2547
2548
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2546

def device_id
  @device_id
end

#device_password_statusString

DevicePasswordStatus (Read-only) Corresponds to the JSON property devicePasswordStatus

Returns:

  • (String)


2551
2552
2553
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2551

def device_password_status
  @device_password_status
end

#emailArray<String>

List of owner's email addresses. If your application needs the current list of user emails, use the get method. For additional information, see the retrieve a user method. Corresponds to the JSON property email

Returns:

  • (Array<String>)


2559
2560
2561
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2559

def email
  @email
end

#encryption_statusString

Mobile Device Encryption Status (Read-only) Corresponds to the JSON property encryptionStatus

Returns:

  • (String)


2564
2565
2566
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2564

def encryption_status
  @encryption_status
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2569
2570
2571
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2569

def etag
  @etag
end

#first_syncDateTime

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

Returns:

  • (DateTime)


2575
2576
2577
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2575

def first_sync
  @first_sync
end

#hardwareString

Mobile Device Hardware (Read-only) Corresponds to the JSON property hardware

Returns:

  • (String)


2580
2581
2582
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2580

def hardware
  @hardware
end

#hardware_idString

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

Returns:

  • (String)


2587
2588
2589
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2587

def hardware_id
  @hardware_id
end

#imeiString

The device's IMEI number. Corresponds to the JSON property imei

Returns:

  • (String)


2592
2593
2594
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2592

def imei
  @imei
end

#kernel_versionString

The device's kernel version. Corresponds to the JSON property kernelVersion

Returns:

  • (String)


2597
2598
2599
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2597

def kernel_version
  @kernel_version
end

#kindString

The type of the API resource. For Mobiledevices resources, the value is admin# directory#mobiledevice. Corresponds to the JSON property kind

Returns:

  • (String)


2603
2604
2605
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2603

def kind
  @kind
end

#last_syncDateTime

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

Returns:

  • (DateTime)


2609
2610
2611
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2609

def last_sync
  @last_sync
end

#managed_account_is_on_owner_profileBoolean Also known as: managed_account_is_on_owner_profile?

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

Returns:

  • (Boolean)


2614
2615
2616
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2614

def 
  @managed_account_is_on_owner_profile
end

#manufacturerString

Mobile Device manufacturer (Read-only) Corresponds to the JSON property manufacturer

Returns:

  • (String)


2620
2621
2622
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2620

def manufacturer
  @manufacturer
end

#meidString

The device's MEID number. Corresponds to the JSON property meid

Returns:

  • (String)


2625
2626
2627
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2625

def meid
  @meid
end

#modelString

The mobile device's model name, for example Nexus S. This property can be updated. For more information, see the Developer's Guide. Corresponds to the JSON property model

Returns:

  • (String)


2633
2634
2635
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2633

def model
  @model
end

#nameArray<String>

List of the owner's user names. If your application needs the current list of device owner names, use the get method. For more information about retrieving mobile device user information, see the Developer's Guide. Corresponds to the JSON property name

Returns:

  • (Array<String>)


2642
2643
2644
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2642

def name
  @name
end

#network_operatorString

Mobile Device mobile or network operator (if available) (Read-only) Corresponds to the JSON property networkOperator

Returns:

  • (String)


2647
2648
2649
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2647

def network_operator
  @network_operator
end

#osString

The mobile device's operating system, for example IOS 4.3 or Android 2.3.5. This property can be updated. For more information, see the Developer's Guide. Corresponds to the JSON property os

Returns:

  • (String)


2655
2656
2657
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2655

def os
  @os
end

#other_accounts_infoArray<String>

List of accounts added on device (Read-only) Corresponds to the JSON property otherAccountsInfo

Returns:

  • (Array<String>)


2660
2661
2662
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2660

def other_accounts_info
  @other_accounts_info
end

#privilegeString

DMAgentPermission (Read-only) Corresponds to the JSON property privilege

Returns:

  • (String)


2665
2666
2667
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2665

def privilege
  @privilege
end

#release_versionString

Mobile Device release version version (Read-only) Corresponds to the JSON property releaseVersion

Returns:

  • (String)


2670
2671
2672
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2670

def release_version
  @release_version
end

#resource_idString

The unique ID the API service uses to identify the mobile device. Corresponds to the JSON property resourceId

Returns:

  • (String)


2675
2676
2677
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2675

def resource_id
  @resource_id
end

#security_patch_levelFixnum

Mobile Device Security patch level (Read-only) Corresponds to the JSON property securityPatchLevel

Returns:

  • (Fixnum)


2680
2681
2682
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2680

def security_patch_level
  @security_patch_level
end

#serial_numberString

The device's serial number. Corresponds to the JSON property serialNumber

Returns:

  • (String)


2685
2686
2687
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2685

def serial_number
  @serial_number
end

#statusString

The device's status. Corresponds to the JSON property status

Returns:

  • (String)


2690
2691
2692
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2690

def status
  @status
end

#supports_work_profileBoolean Also known as: supports_work_profile?

Work profile supported on device (Read-only) Corresponds to the JSON property supportsWorkProfile

Returns:

  • (Boolean)


2695
2696
2697
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2695

def supports_work_profile
  @supports_work_profile
end

#typeString

The type of mobile device. Corresponds to the JSON property type

Returns:

  • (String)


2701
2702
2703
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2701

def type
  @type
end

#unknown_sources_statusBoolean Also known as: unknown_sources_status?

Unknown sources enabled or disabled on device (Read-only) Corresponds to the JSON property unknownSourcesStatus

Returns:

  • (Boolean)


2706
2707
2708
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2706

def unknown_sources_status
  @unknown_sources_status
end

#user_agentString

Gives information about the device such as os version. This property can be updated. For more information, see the Developer's Guide. Corresponds to the JSON property userAgent

Returns:

  • (String)


2715
2716
2717
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2715

def user_agent
  @user_agent
end

#wifi_mac_addressString

The device's MAC address on Wi-Fi networks. Corresponds to the JSON property wifiMacAddress

Returns:

  • (String)


2720
2721
2722
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2720

def wifi_mac_address
  @wifi_mac_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2727

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