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

Inherits:
Object
  • Object
show all
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 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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Device

Returns a new instance of Device



483
484
485
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 483

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)


454
455
456
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 454

def android_id
  @android_id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#device". Corresponds to the JSON property kind

Returns:

  • (String)


460
461
462
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 460

def kind
  @kind
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)


476
477
478
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 476

def management_type
  @management_type
end

#policyGoogle::Apis::AndroidenterpriseV1::Policy

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



481
482
483
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 481

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



488
489
490
491
492
493
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 488

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)
  @policy = args[:policy] if args.key?(:policy)
end