Class: Google::Apis::AndroidenterpriseV1::Device

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

Overview

A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device.



756
757
758
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 756

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

Instance Attribute Details

#android_idString

The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0". Corresponds to the JSON property androidId

Returns:

  • (String)


694
695
696
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 694

def android_id
  @android_id
end

#deviceString

The internal hardware codename of the device. This comes from android.os.Build. DEVICE. (field named "device" per logs/wireless/android/android_checkin.proto) Corresponds to the JSON property device

Returns:

  • (String)


700
701
702
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 700

def device
  @device
end

#latest_build_fingerprintString

The build fingerprint of the device if known. Corresponds to the JSON property latestBuildFingerprint

Returns:

  • (String)


705
706
707
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 705

def latest_build_fingerprint
  @latest_build_fingerprint
end

#makerString

The manufacturer of the device. This comes from android.os.Build.MANUFACTURER. Corresponds to the JSON property maker

Returns:

  • (String)


710
711
712
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 710

def maker
  @maker
end

#management_typeString

Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - " managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - "containerApp", no longer used (deprecated).

  • "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC. Corresponds to the JSON property managementType

Returns:

  • (String)


723
724
725
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 723

def management_type
  @management_type
end

#modelString

The model name of the device. This comes from android.os.Build.MODEL. Corresponds to the JSON property model

Returns:

  • (String)


728
729
730
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 728

def model
  @model
end

#policyGoogle::Apis::AndroidenterpriseV1::Policy

The device policy for a given managed device. Corresponds to the JSON property policy



733
734
735
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 733

def policy
  @policy
end

#productString

The product name of the device. This comes from android.os.Build.PRODUCT. Corresponds to the JSON property product

Returns:

  • (String)


738
739
740
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 738

def product
  @product
end

#reportGoogle::Apis::AndroidenterpriseV1::DeviceReport

Device report updated with the latest app states for managed apps on the device. Corresponds to the JSON property report



744
745
746
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 744

def report
  @report
end

#retail_brandString

Retail brand for the device, if set. See android.os.Build.BRAND Corresponds to the JSON property retailBrand

Returns:

  • (String)


749
750
751
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 749

def retail_brand
  @retail_brand
end

#sdk_versionFixnum

API compatibility version. Corresponds to the JSON property sdkVersion

Returns:

  • (Fixnum)


754
755
756
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 754

def sdk_version
  @sdk_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



761
762
763
764
765
766
767
768
769
770
771
772
773
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 761

def update!(**args)
  @android_id = args[:android_id] if args.key?(:android_id)
  @device = args[:device] if args.key?(:device)
  @latest_build_fingerprint = args[:latest_build_fingerprint] if args.key?(:latest_build_fingerprint)
  @maker = args[:maker] if args.key?(:maker)
  @management_type = args[:management_type] if args.key?(:management_type)
  @model = args[:model] if args.key?(:model)
  @policy = args[:policy] if args.key?(:policy)
  @product = args[:product] if args.key?(:product)
  @report = args[:report] if args.key?(:report)
  @retail_brand = args[:retail_brand] if args.key?(:retail_brand)
  @sdk_version = args[:sdk_version] if args.key?(:sdk_version)
end