Class: Google::Apis::AndroidenterpriseV1::Device
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Device
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb
Overview
A device resource represents a mobile device managed by the EMM and belonging to a specific enterprise user. This collection cannot be modified via the API; it is automatically populated as devices are set up to be managed.
Instance Attribute Summary collapse
-
#android_id ⇒ String
The Google Play Services Android ID for the device encoded as a lowercase hex string, e.g.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#management_type ⇒ String
Identifies the extent to which the device is controlled by an Android for Work EMM in various deployment configurations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Device
constructor
A new instance of Device.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Device
Returns a new instance of Device.
459 460 461 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 459 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, e.g. "123456789abcdef0".
Corresponds to the JSON property androidId
434 435 436 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 434 def android_id @android_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#device".
Corresponds to the JSON property kind
440 441 442 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 440 def kind @kind end |
#management_type ⇒ String
Identifies the extent to which the device is controlled by an Android for Work 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 work profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC.
- "containerApp"—A device running the Android for Work App. The Android for Work App is managed by the DPC.
- "unmanagedProfile"—A device that has been allowed (by the domain's admin,
using the Admin Console to enable the privilege) to use Android for Work apps
or Google Apps for Work, but the profile is itself not owned by a DPC.
Corresponds to the JSON property
managementType
457 458 459 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 457 def management_type @management_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
464 465 466 467 468 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 464 def update!(**args) @android_id = args[:android_id] if args.key?(:android_id) @kind = args[:kind] if args.key?(:kind) @management_type = args[:management_type] if args.key?(:management_type) end |