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

#include <policy.h>

Inheritance diagram for google_androidenterprise_api::Policy:

Public Member Functions

 Policy (const Json::Value &storage)
 
 Policy (Json::Value *storage)
 
virtual ~Policy ()
 
const StringPiece GetTypeName () const
 
bool has_auto_update_policy () const
 
void clear_auto_update_policy ()
 
const StringPiece get_auto_update_policy () const
 
void set_auto_update_policy (const StringPiece &value)
 
bool has_device_report_policy () const
 
void clear_device_report_policy ()
 
const StringPiece get_device_report_policy () const
 
void set_device_report_policy (const StringPiece &value)
 
bool has_maintenance_window () const
 
void clear_maintenance_window ()
 
const MaintenanceWindow get_maintenance_window () const
 
MaintenanceWindow mutable_maintenanceWindow ()
 
bool has_product_availability_policy () const
 
void clear_product_availability_policy ()
 
const StringPiece get_product_availability_policy () const
 
void set_product_availability_policy (const StringPiece &value)
 
bool has_product_policy () const
 
void clear_product_policy ()
 
const client::JsonCppArray< ProductPolicyget_product_policy () const
 
client::JsonCppArray< ProductPolicymutable_productPolicy ()
 

Static Public Member Functions

static PolicyNew ()
 

Detailed Description

The device policy for a given managed device.

Constructor & Destructor Documentation

◆ Policy() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ Policy() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~Policy()

google_androidenterprise_api::Policy::~Policy ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_auto_update_policy()

void google_androidenterprise_api::Policy::clear_auto_update_policy ( )
inline

Clears the 'autoUpdatePolicy' attribute.

◆ clear_device_report_policy()

void google_androidenterprise_api::Policy::clear_device_report_policy ( )
inline

Clears the 'deviceReportPolicy' attribute.

◆ clear_maintenance_window()

void google_androidenterprise_api::Policy::clear_maintenance_window ( )
inline

Clears the 'maintenanceWindow' attribute.

◆ clear_product_availability_policy()

void google_androidenterprise_api::Policy::clear_product_availability_policy ( )
inline

Clears the 'productAvailabilityPolicy' attribute.

◆ clear_product_policy()

void google_androidenterprise_api::Policy::clear_product_policy ( )
inline

Clears the 'productPolicy' attribute.

◆ get_auto_update_policy()

const StringPiece google_androidenterprise_api::Policy::get_auto_update_policy ( ) const
inline

Get the value of the 'autoUpdatePolicy' attribute.

◆ get_device_report_policy()

const StringPiece google_androidenterprise_api::Policy::get_device_report_policy ( ) const
inline

Get the value of the 'deviceReportPolicy' attribute.

◆ get_maintenance_window()

const MaintenanceWindow google_androidenterprise_api::Policy::get_maintenance_window ( ) const

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

◆ get_product_availability_policy()

const StringPiece google_androidenterprise_api::Policy::get_product_availability_policy ( ) const
inline

Get the value of the 'productAvailabilityPolicy' attribute.

◆ get_product_policy()

const client::JsonCppArray<ProductPolicy > google_androidenterprise_api::Policy::get_product_policy ( ) const

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

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::Policy

◆ has_auto_update_policy()

bool google_androidenterprise_api::Policy::has_auto_update_policy ( ) const
inline

Determine if the 'autoUpdatePolicy' attribute was set.

Returns
true if the 'autoUpdatePolicy' attribute was set.

◆ has_device_report_policy()

bool google_androidenterprise_api::Policy::has_device_report_policy ( ) const
inline

Determine if the 'deviceReportPolicy' attribute was set.

Returns
true if the 'deviceReportPolicy' attribute was set.

◆ has_maintenance_window()

bool google_androidenterprise_api::Policy::has_maintenance_window ( ) const
inline

Determine if the 'maintenanceWindow' attribute was set.

Returns
true if the 'maintenanceWindow' attribute was set.

◆ has_product_availability_policy()

bool google_androidenterprise_api::Policy::has_product_availability_policy ( ) const
inline

Determine if the 'productAvailabilityPolicy' attribute was set.

Returns
true if the 'productAvailabilityPolicy' attribute was set.

◆ has_product_policy()

bool google_androidenterprise_api::Policy::has_product_policy ( ) const
inline

Determine if the 'productPolicy' attribute was set.

Returns
true if the 'productPolicy' attribute was set.

◆ mutable_maintenanceWindow()

MaintenanceWindow google_androidenterprise_api::Policy::mutable_maintenanceWindow ( )

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

The maintenance window defining when apps running in the foreground should be updated.

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

◆ mutable_productPolicy()

client::JsonCppArray<ProductPolicy > google_androidenterprise_api::Policy::mutable_productPolicy ( )

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

The list of product policies.

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

◆ New()

Policy * google_androidenterprise_api::Policy::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_auto_update_policy()

void google_androidenterprise_api::Policy::set_auto_update_policy ( const StringPiece &  value)
inline

Change the 'autoUpdatePolicy' attribute.

The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi.

Parameters
[in]valueThe new value.

◆ set_device_report_policy()

void google_androidenterprise_api::Policy::set_device_report_policy ( const StringPiece &  value)
inline

Change the 'deviceReportPolicy' attribute.

Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".

Parameters
[in]valueThe new value.

◆ set_product_availability_policy()

void google_androidenterprise_api::Policy::set_product_availability_policy ( const StringPiece &  value)
inline

Change the 'productAvailabilityPolicy' attribute.

The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.

Parameters
[in]valueThe new value.

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