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.
756 757 758 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 756 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
694 695 696 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 694 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
700 701 702 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 700 def device @device end |
#latest_build_fingerprint ⇒ String
The build fingerprint of the device if known.
Corresponds to the JSON property latestBuildFingerprint
705 706 707 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 705 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
710 711 712 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 710 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
723 724 725 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 723 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
728 729 730 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 728 def model @model end |
#policy ⇒ Google::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 |
#product ⇒ String
The product name of the device. This comes from android.os.Build.PRODUCT.
Corresponds to the JSON property product
738 739 740 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 738 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
744 745 746 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 744 def report @report end |
#retail_brand ⇒ String
Retail brand for the device, if set. See android.os.Build.BRAND
Corresponds to the JSON property retailBrand
749 750 751 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 749 def retail_brand @retail_brand end |
#sdk_version ⇒ Fixnum
API compatibility version.
Corresponds to the JSON property sdkVersion
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 |