androidenterprise  v1
Public Member Functions | Static Public Member Functions | List of all members
google_androidenterprise_api::Device Class Reference

#include <device.h>

Inheritance diagram for google_androidenterprise_api::Device:

Public Member Functions

 Device (const Json::Value &storage)
 
 Device (Json::Value *storage)
 
virtual ~Device ()
 
const StringPiece GetTypeName () const
 
bool has_android_id () const
 
void clear_android_id ()
 
const StringPiece get_android_id () const
 
void set_android_id (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_management_type () const
 
void clear_management_type ()
 
const StringPiece get_management_type () const
 
void set_management_type (const StringPiece &value)
 
bool has_policy () const
 
void clear_policy ()
 
const Policy get_policy () const
 
Policy mutable_policy ()
 
bool has_report () const
 
void clear_report ()
 
const DeviceReport get_report () const
 
DeviceReport mutable_report ()
 

Static Public Member Functions

static DeviceNew ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Device() [1/2]

google_androidenterprise_api::Device::Device ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Device() [2/2]

google_androidenterprise_api::Device::Device ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Device()

google_androidenterprise_api::Device::~Device ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_android_id()

void google_androidenterprise_api::Device::clear_android_id ( )
inline

Clears the 'androidId' attribute.

◆ clear_kind()

void google_androidenterprise_api::Device::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_management_type()

void google_androidenterprise_api::Device::clear_management_type ( )
inline

Clears the 'managementType' attribute.

◆ clear_policy()

void google_androidenterprise_api::Device::clear_policy ( )
inline

Clears the 'policy' attribute.

◆ clear_report()

void google_androidenterprise_api::Device::clear_report ( )
inline

Clears the 'report' attribute.

◆ get_android_id()

const StringPiece google_androidenterprise_api::Device::get_android_id ( ) const
inline

Get the value of the 'androidId' attribute.

◆ get_kind()

const StringPiece google_androidenterprise_api::Device::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_management_type()

const StringPiece google_androidenterprise_api::Device::get_management_type ( ) const
inline

Get the value of the 'managementType' attribute.

◆ get_policy()

const Policy google_androidenterprise_api::Device::get_policy ( ) const

Get a reference to the value of the 'policy' attribute.

◆ get_report()

const DeviceReport google_androidenterprise_api::Device::get_report ( ) const

Get a reference to the value of the 'report' attribute.

◆ GetTypeName()

const StringPiece google_androidenterprise_api::Device::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::Device

◆ has_android_id()

bool google_androidenterprise_api::Device::has_android_id ( ) const
inline

Determine if the 'androidId' attribute was set.

Returns
true if the 'androidId' attribute was set.

◆ has_kind()

bool google_androidenterprise_api::Device::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_management_type()

bool google_androidenterprise_api::Device::has_management_type ( ) const
inline

Determine if the 'managementType' attribute was set.

Returns
true if the 'managementType' attribute was set.

◆ has_policy()

bool google_androidenterprise_api::Device::has_policy ( ) const
inline

Determine if the 'policy' attribute was set.

Returns
true if the 'policy' attribute was set.

◆ has_report()

bool google_androidenterprise_api::Device::has_report ( ) const
inline

Determine if the 'report' attribute was set.

Returns
true if the 'report' attribute was set.

◆ mutable_policy()

Policy google_androidenterprise_api::Device::mutable_policy ( )

Gets a reference to a mutable value of the 'policy' property.

The policy enforced on the device.

Returns
The result can be modified to change the attribute value.

◆ mutable_report()

DeviceReport google_androidenterprise_api::Device::mutable_report ( )

Gets a reference to a mutable value of the 'report' property.

The device report updated with the latest app states.

Returns
The result can be modified to change the attribute value.

◆ New()

Device * google_androidenterprise_api::Device::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_android_id()

void google_androidenterprise_api::Device::set_android_id ( const StringPiece &  value)
inline

Change the 'androidId' attribute.

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

Parameters
[in]valueThe new value.

◆ set_kind()

void google_androidenterprise_api::Device::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

Parameters
[in]valueThe new value.

◆ set_management_type()

void google_androidenterprise_api::Device::set_management_type ( const StringPiece &  value)
inline

Change the 'managementType' attribute.

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.
Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: