Class: Google::Apis::AndroidenterpriseV1::Device
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Device
- 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
-
#android_id ⇒ String
The Google Play Services Android ID for the device encoded as a lowercase hex string.
-
#device ⇒ String
The internal hardware codename of the device.
-
#latest_build_fingerprint ⇒ String
The build fingerprint of the device if known.
-
#maker ⇒ String
The manufacturer of the device.
-
#management_type ⇒ String
Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations.
-
#model ⇒ String
The model name of the device.
-
#policy ⇒ Google::Apis::AndroidenterpriseV1::Policy
The device policy for a given managed device.
-
#product ⇒ String
The product name of the device.
-
#report ⇒ Google::Apis::AndroidenterpriseV1::DeviceReport
Device report updated with the latest app states for managed apps on the device.
-
#retail_brand ⇒ String
Retail brand for the device, if set.
-
#sdk_version ⇒ Fixnum
API compatibility version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Device
constructor
A new instance of Device.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Device
Returns a new instance of Device.
749 750 751 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 749 def initialize(**args) update!(**args) end |
Instance Attribute Details
#android_id ⇒ String
The Google Play Services Android ID for the device encoded as a lowercase hex
string. For example, "123456789abcdef0".
Corresponds to the JSON property androidId
686 687 688 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 686 def android_id @android_id end |
#device ⇒ String
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
692 693 694 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 692 def device @device end |
#latest_build_fingerprint ⇒ String
The build fingerprint of the device if known.
Corresponds to the JSON property latestBuildFingerprint
697 698 699 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 697 def latest_build_fingerprint @latest_build_fingerprint end |
#maker ⇒ String
The manufacturer of the device. This comes from android.os.Build.MANUFACTURER.
Corresponds to the JSON property maker
702 703 704 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 702 def maker @maker end |
#management_type ⇒ String
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
715 716 717 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 715 def management_type @management_type end |
#model ⇒ String
The model name of the device. This comes from android.os.Build.MODEL.
Corresponds to the JSON property model
720 721 722 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 720 def model @model end |
#policy ⇒ Google::Apis::AndroidenterpriseV1::Policy
The device policy for a given managed device.
Corresponds to the JSON property policy
725 726 727 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 725 def policy @policy end |
#product ⇒ String
The product name of the device. This comes from android.os.Build.PRODUCT.
Corresponds to the JSON property product
730 731 732 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 730 def product @product end |
#report ⇒ Google::Apis::AndroidenterpriseV1::DeviceReport
Device report updated with the latest app states for managed apps on the
device.
Corresponds to the JSON property report
736 737 738 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 736 def report @report end |
#retail_brand ⇒ String
Retail brand for the device, if set. See https://developer.android.com/
reference/android/os/Build.html#BRAND
Corresponds to the JSON property retailBrand
742 743 744 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 742 def retail_brand @retail_brand end |
#sdk_version ⇒ Fixnum
API compatibility version.
Corresponds to the JSON property sdkVersion
747 748 749 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 747 def sdk_version @sdk_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
754 755 756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 754 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 |