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

#include <user.h>

Inheritance diagram for google_androidenterprise_api::User:

Public Member Functions

 User (const Json::Value &storage)
 
 User (Json::Value *storage)
 
virtual ~User ()
 
const StringPiece GetTypeName () const
 
bool has_account_identifier () const
 
void clear_account_identifier ()
 
const StringPiece get_account_identifier () const
 
void set_account_identifier (const StringPiece &value)
 
bool has_account_type () const
 
void clear_account_type ()
 
const StringPiece get_account_type () const
 
void set_account_type (const StringPiece &value)
 
bool has_display_name () const
 
void clear_display_name ()
 
const StringPiece get_display_name () const
 
void set_display_name (const StringPiece &value)
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_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_primary_email () const
 
void clear_primary_email ()
 
const StringPiece get_primary_email () const
 
void set_primary_email (const StringPiece &value)
 

Static Public Member Functions

static UserNew ()
 

Detailed Description

A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model:

Constructor & Destructor Documentation

◆ User() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ User() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~User()

google_androidenterprise_api::User::~User ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_account_identifier()

void google_androidenterprise_api::User::clear_account_identifier ( )
inline

Clears the 'accountIdentifier' attribute.

◆ clear_account_type()

void google_androidenterprise_api::User::clear_account_type ( )
inline

Clears the 'accountType' attribute.

◆ clear_display_name()

void google_androidenterprise_api::User::clear_display_name ( )
inline

Clears the 'displayName' attribute.

◆ clear_id()

void google_androidenterprise_api::User::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_androidenterprise_api::User::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_management_type()

void google_androidenterprise_api::User::clear_management_type ( )
inline

Clears the 'managementType' attribute.

◆ clear_primary_email()

void google_androidenterprise_api::User::clear_primary_email ( )
inline

Clears the 'primaryEmail' attribute.

◆ get_account_identifier()

const StringPiece google_androidenterprise_api::User::get_account_identifier ( ) const
inline

Get the value of the 'accountIdentifier' attribute.

◆ get_account_type()

const StringPiece google_androidenterprise_api::User::get_account_type ( ) const
inline

Get the value of the 'accountType' attribute.

◆ get_display_name()

const StringPiece google_androidenterprise_api::User::get_display_name ( ) const
inline

Get the value of the 'displayName' attribute.

◆ get_id()

const StringPiece google_androidenterprise_api::User::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_management_type()

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

Get the value of the 'managementType' attribute.

◆ get_primary_email()

const StringPiece google_androidenterprise_api::User::get_primary_email ( ) const
inline

Get the value of the 'primaryEmail' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::User

◆ has_account_identifier()

bool google_androidenterprise_api::User::has_account_identifier ( ) const
inline

Determine if the 'accountIdentifier' attribute was set.

Returns
true if the 'accountIdentifier' attribute was set.

◆ has_account_type()

bool google_androidenterprise_api::User::has_account_type ( ) const
inline

Determine if the 'accountType' attribute was set.

Returns
true if the 'accountType' attribute was set.

◆ has_display_name()

bool google_androidenterprise_api::User::has_display_name ( ) const
inline

Determine if the 'displayName' attribute was set.

Returns
true if the 'displayName' attribute was set.

◆ has_id()

bool google_androidenterprise_api::User::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

bool google_androidenterprise_api::User::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::User::has_management_type ( ) const
inline

Determine if the 'managementType' attribute was set.

Returns
true if the 'managementType' attribute was set.

◆ has_primary_email()

bool google_androidenterprise_api::User::has_primary_email ( ) const
inline

Determine if the 'primaryEmail' attribute was set.

Returns
true if the 'primaryEmail' attribute was set.

◆ New()

User * google_androidenterprise_api::User::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_account_identifier()

void google_androidenterprise_api::User::set_account_identifier ( const StringPiece &  value)
inline

Change the 'accountIdentifier' attribute.

A unique identifier you create for this user, such as "user342" or "asset#44418". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.

Parameters
[in]valueThe new value.

◆ set_account_type()

void google_androidenterprise_api::User::set_account_type ( const StringPiece &  value)
inline

Change the 'accountType' attribute.

The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.

Parameters
[in]valueThe new value.

◆ set_display_name()

void google_androidenterprise_api::User::set_display_name ( const StringPiece &  value)
inline

Change the 'displayName' attribute.

The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as "Example, Inc.") or your name (as EMM). Not used for Google-managed user accounts.

Parameters
[in]valueThe new value.

◆ set_id()

void google_androidenterprise_api::User::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

The unique ID for the user.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

Parameters
[in]valueThe new value.

◆ set_management_type()

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

Change the 'managementType' attribute.

The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.

Parameters
[in]valueThe new value.

◆ set_primary_email()

void google_androidenterprise_api::User::set_primary_email ( const StringPiece &  value)
inline

Change the 'primaryEmail' attribute.

The user's primary email address, for example, "jsmith@example.com". Will always be set for Google managed users and not set for EMM managed users.

Parameters
[in]valueThe new value.

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