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

#include <new_permissions_event.h>

Inheritance diagram for google_androidenterprise_api::NewPermissionsEvent:

Public Member Functions

 NewPermissionsEvent (const Json::Value &storage)
 
 NewPermissionsEvent (Json::Value *storage)
 
virtual ~NewPermissionsEvent ()
 
const StringPiece GetTypeName () const
 
bool has_approved_permissions () const
 
void clear_approved_permissions ()
 
const client::JsonCppArray< string > get_approved_permissions () const
 
client::JsonCppArray< string > mutable_approvedPermissions ()
 
bool has_product_id () const
 
void clear_product_id ()
 
const StringPiece get_product_id () const
 
void set_product_id (const StringPiece &value)
 
bool has_requested_permissions () const
 
void clear_requested_permissions ()
 
const client::JsonCppArray< string > get_requested_permissions () const
 
client::JsonCppArray< string > mutable_requestedPermissions ()
 

Static Public Member Functions

static NewPermissionsEventNew ()
 

Detailed Description

An event generated when new permissions are added to an app.

Constructor & Destructor Documentation

◆ NewPermissionsEvent() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ NewPermissionsEvent() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~NewPermissionsEvent()

google_androidenterprise_api::NewPermissionsEvent::~NewPermissionsEvent ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_approved_permissions()

void google_androidenterprise_api::NewPermissionsEvent::clear_approved_permissions ( )
inline

Clears the 'approvedPermissions' attribute.

◆ clear_product_id()

void google_androidenterprise_api::NewPermissionsEvent::clear_product_id ( )
inline

Clears the 'productId' attribute.

◆ clear_requested_permissions()

void google_androidenterprise_api::NewPermissionsEvent::clear_requested_permissions ( )
inline

Clears the 'requestedPermissions' attribute.

◆ get_approved_permissions()

const client::JsonCppArray<string > google_androidenterprise_api::NewPermissionsEvent::get_approved_permissions ( ) const
inline

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

◆ get_product_id()

const StringPiece google_androidenterprise_api::NewPermissionsEvent::get_product_id ( ) const
inline

Get the value of the 'productId' attribute.

◆ get_requested_permissions()

const client::JsonCppArray<string > google_androidenterprise_api::NewPermissionsEvent::get_requested_permissions ( ) const
inline

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::NewPermissionsEvent

◆ has_approved_permissions()

bool google_androidenterprise_api::NewPermissionsEvent::has_approved_permissions ( ) const
inline

Determine if the 'approvedPermissions' attribute was set.

Returns
true if the 'approvedPermissions' attribute was set.

◆ has_product_id()

bool google_androidenterprise_api::NewPermissionsEvent::has_product_id ( ) const
inline

Determine if the 'productId' attribute was set.

Returns
true if the 'productId' attribute was set.

◆ has_requested_permissions()

bool google_androidenterprise_api::NewPermissionsEvent::has_requested_permissions ( ) const
inline

Determine if the 'requestedPermissions' attribute was set.

Returns
true if the 'requestedPermissions' attribute was set.

◆ mutable_approvedPermissions()

client::JsonCppArray<string > google_androidenterprise_api::NewPermissionsEvent::mutable_approvedPermissions ( )
inline

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

The set of permissions that the enterprise admin has already approved for this application. Use Permissions.Get on the EMM API to retrieve details about these permissions.

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

◆ mutable_requestedPermissions()

client::JsonCppArray<string > google_androidenterprise_api::NewPermissionsEvent::mutable_requestedPermissions ( )
inline

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

The set of permissions that the app is currently requesting. Use Permissions.Get on the EMM API to retrieve details about these permissions.

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

◆ New()

NewPermissionsEvent * google_androidenterprise_api::NewPermissionsEvent::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_product_id()

void google_androidenterprise_api::NewPermissionsEvent::set_product_id ( const StringPiece &  value)
inline

Change the 'productId' attribute.

The id of the product (e.g. "app:com.google.android.gm") for which new permissions were added. This field will always be present.

Parameters
[in]valueThe new value.

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