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

#include <permission.h>

Inheritance diagram for google_androidenterprise_api::Permission:

Public Member Functions

 Permission (const Json::Value &storage)
 
 Permission (Json::Value *storage)
 
virtual ~Permission ()
 
const StringPiece GetTypeName () const
 
bool has_description () const
 
void clear_description ()
 
const StringPiece get_description () const
 
void set_description (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_name () const
 
void clear_name ()
 
const StringPiece get_name () const
 
void set_name (const StringPiece &value)
 
bool has_permission_id () const
 
void clear_permission_id ()
 
const StringPiece get_permission_id () const
 
void set_permission_id (const StringPiece &value)
 

Static Public Member Functions

static PermissionNew ()
 

Detailed Description

A Permissions resource represents some extra capability, to be granted to an Android app, which requires explicit consent. An enterprise admin must consent to these permissions on behalf of their users before an entitlement for the app can be created.

The permissions collection is read-only. The information provided for each permission (localized name and description) is intended to be used in the MDM user interface when obtaining consent from the enterprise.

Constructor & Destructor Documentation

◆ Permission() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Permission() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Permission()

google_androidenterprise_api::Permission::~Permission ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_description()

void google_androidenterprise_api::Permission::clear_description ( )
inline

Clears the 'description' attribute.

◆ clear_kind()

void google_androidenterprise_api::Permission::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_name()

void google_androidenterprise_api::Permission::clear_name ( )
inline

Clears the 'name' attribute.

◆ clear_permission_id()

void google_androidenterprise_api::Permission::clear_permission_id ( )
inline

Clears the 'permissionId' attribute.

◆ get_description()

const StringPiece google_androidenterprise_api::Permission::get_description ( ) const
inline

Get the value of the 'description' attribute.

◆ get_kind()

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

Get the value of the 'kind' attribute.

◆ get_name()

const StringPiece google_androidenterprise_api::Permission::get_name ( ) const
inline

Get the value of the 'name' attribute.

◆ get_permission_id()

const StringPiece google_androidenterprise_api::Permission::get_permission_id ( ) const
inline

Get the value of the 'permissionId' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::Permission

◆ has_description()

bool google_androidenterprise_api::Permission::has_description ( ) const
inline

Determine if the 'description' attribute was set.

Returns
true if the 'description' attribute was set.

◆ has_kind()

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

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_name()

bool google_androidenterprise_api::Permission::has_name ( ) const
inline

Determine if the 'name' attribute was set.

Returns
true if the 'name' attribute was set.

◆ has_permission_id()

bool google_androidenterprise_api::Permission::has_permission_id ( ) const
inline

Determine if the 'permissionId' attribute was set.

Returns
true if the 'permissionId' attribute was set.

◆ New()

Permission * google_androidenterprise_api::Permission::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_description()

void google_androidenterprise_api::Permission::set_description ( const StringPiece &  value)
inline

Change the 'description' attribute.

A longer description of the Permissions resource, giving more details of what it affects.

Parameters
[in]valueThe new value.

◆ set_kind()

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

Change the 'kind' attribute.

Parameters
[in]valueThe new value.

◆ set_name()

void google_androidenterprise_api::Permission::set_name ( const StringPiece &  value)
inline

Change the 'name' attribute.

The name of the permission.

Parameters
[in]valueThe new value.

◆ set_permission_id()

void google_androidenterprise_api::Permission::set_permission_id ( const StringPiece &  value)
inline

Change the 'permissionId' attribute.

An opaque string uniquely identifying the permission.

Parameters
[in]valueThe new value.

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