Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
Defines the settings associated with a PolicyEngine. More...
#include <src/api/mip/upe/policy_engine.h>
Public Member Functions | |
void | ConfigureFunctionality (FunctionalityFilterType functionalityFilterType, bool enabled) |
Enables or disables functionality. | |
std::shared_ptr< AuthDelegate > | GetAuthDelegate () const |
Get the Engine Auth Delegate. | |
const std::string & | GetClientData () const |
Get the Client Data set in the settings. | |
Cloud | GetCloud () const |
Gets the target cloud used by all service requests. | |
const std::string & | GetCloudEndpointBaseUrl () const |
Gets the cloud base URL used by all service requests, if specified. | |
const std::map< FunctionalityFilterType, bool > & | GetConfiguredFunctionality () const |
Gets the configured functionality. | |
const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
Get the custom settings, used for feature gating and testing. | |
DataBoundary | GetDataBoundary () const |
Gets the data boundary region. | |
const std::string & | GetDelegatedUserEmail () const |
Gets the delegated user. | |
const std::string & | GetEngineId () const |
Get the engine ID. | |
const Identity & | GetIdentity () const |
Get the Identity object. | |
const std::vector< LabelFilterType > & | GetLabelFilter () const |
Gets the label filters set through deprecated function SetLabelFilter. | |
const std::string & | GetLocale () const |
Get the Locale set in the settings. | |
const std::shared_ptr< void > & | GetLoggerContext () const |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine. | |
const std::string & | GetSessionId () const |
Get the session ID, a unique identifier. | |
VariableTextMarkingType | GetVariableTextMarkingType () const |
Gets the variable text marking type. | |
bool | IsLoadSensitivityTypesEnabled () const |
Get the the flag indicating if load sensitivity labels is enabled. | |
void | SetAuthDelegate (const std::shared_ptr< AuthDelegate > &authDelegate) |
Set the Engine Auth Delegate. | |
void | SetClientData (const std::string &clientData) |
Set the Client Data string. | |
void | SetCloud (Cloud cloud) |
Optionally sets the target cloud. | |
void | SetCloudEndpointBaseUrl (const std::string &cloudEndpointBaseUrl) |
Sets the cloud endpoint base URL for custom cloud. | |
void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &customSettings) |
Set the custom settings, used for feature gating and testing. | |
void | SetDataBoundary (DataBoundary dataBoundary) |
Optionally sets the target diagnostic region. | |
void | SetDelegatedUserEmail (const std::string &delegatedUserEmail) |
Sets the delegated user. | |
void | SetEngineId (const std::string &id) |
Set the engine ID. | |
void | SetIdentity (const Identity &identity) |
Set the Identity object. | |
void | SetLabelFilter (const std::vector< LabelFilterType > &deprecatedLabelFilters) |
Sets the label filter. | |
void | SetLoggerContext (const std::shared_ptr< void > &loggerContext) |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created engine. | |
void | SetSessionId (const std::string &sessionId) |
Set the session ID, used for client defined telemetry and to make it easier to correlate application events with the corresponding policy service REST requests. | |
Settings (const Identity &identity, const std::shared_ptr< AuthDelegate > &authDelegate, const std::string &clientData, const std::string &locale="", bool loadSensitivityTypes=false) | |
PolicyEngine::Settings constructor for creating a new engine. | |
Settings (const std::string &engineId, const std::shared_ptr< AuthDelegate > &authDelegate, const std::string &clientData, const std::string &locale="", bool loadSensitivityTypes=false) | |
PolicyEngine::Settings constructor for loading an existing engine. | |
void | SetVariableTextMarkingType (VariableTextMarkingType variableTextMarkingType) |
Sets the variable text marking type. | |
Defines the settings associated with a PolicyEngine.
Definition at line 60 of file policy_engine.h.
|
inline |
PolicyEngine::Settings constructor for loading an existing engine.
engineId | Set it to the unique engine ID generated by AddEngineAsync or one self-generated. When loading an existing engine, reuse the ID else a new engine will be created. |
authDelegate | The authentication delegate used by the SDK to acquire authentication tokens, will override the PolicyProfile::Settings::authDelegate if both provided |
clientData | customizable client data that can be stored with the engine when unloaded, can be retrieved from a loaded engine. |
locale | engine localizable output will be provided in this locale. |
Optional | flag indicating when the engine is loaded should load also custom sensitivity types, if true OnPolicyChange Observer on the profile will be invoked on updates to custom sensitivity types as well as policy changes. if false ListSensitivityTypes call will always return an empty list. |
Definition at line 76 of file policy_engine.h.
|
inline |
PolicyEngine::Settings constructor for creating a new engine.
identity | Identity info of the user associated with the new engine. |
authDelegate | The authentication delegate used by the SDK to acquire authentication tokens, will override the PolicyProfile::Settings::authDelegate if both provided |
clientData | customizable client data that can be stored with the engine when unloaded, can be retrieved from a loaded engine. |
locale | engine localizable output will be provided in this locale. |
Optional | flag indicating when the engine is loaded should load also custom sensitivity types, if true OnPolicyChange Observer on the profile will be invoked on updates to custom sensitivity types as well as policy changes. if false ListSensitivityTypes call will always return an empty list. |
Definition at line 105 of file policy_engine.h.
|
inline |
Enables or disables functionality.
functionalityFilterType | the type of functionality. |
enabled | True to enable, false to disable |
Definition at line 327 of file policy_engine.h.
References None.
|
inline |
Get the Engine Auth Delegate.
Definition at line 377 of file policy_engine.h.
|
inline |
Get the Client Data set in the settings.
Definition at line 156 of file policy_engine.h.
|
inline |
Gets the target cloud used by all service requests.
Definition at line 234 of file policy_engine.h.
|
inline |
Gets the cloud base URL used by all service requests, if specified.
Definition at line 274 of file policy_engine.h.
|
inline |
Gets the configured functionality.
Definition at line 341 of file policy_engine.h.
|
inline |
Get the custom settings, used for feature gating and testing.
Definition at line 186 of file policy_engine.h.
|
inline |
Gets the data boundary region.
Definition at line 254 of file policy_engine.h.
|
inline |
Gets the delegated user.
Definition at line 294 of file policy_engine.h.
|
inline |
Get the engine ID.
Definition at line 126 of file policy_engine.h.
|
inline |
Get the Identity object.
Definition at line 141 of file policy_engine.h.
|
inline |
Gets the label filters set through deprecated function SetLabelFilter.
Definition at line 317 of file policy_engine.h.
|
inline |
Get the Locale set in the settings.
Definition at line 170 of file policy_engine.h.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
Definition at line 385 of file policy_engine.h.
|
inline |
Get the session ID, a unique identifier.
Definition at line 205 of file policy_engine.h.
|
inline |
Gets the variable text marking type.
Definition at line 359 of file policy_engine.h.
|
inline |
Get the the flag indicating if load sensitivity labels is enabled.
Definition at line 214 of file policy_engine.h.
|
inline |
Set the Engine Auth Delegate.
authDelegate | the Auth delegate |
Definition at line 368 of file policy_engine.h.
|
inline |
Set the Client Data string.
clientData | user specified data. |
Definition at line 163 of file policy_engine.h.
|
inline |
Optionally sets the target cloud.
cloud | Cloud |
Definition at line 225 of file policy_engine.h.
|
inline |
Sets the cloud endpoint base URL for custom cloud.
cloudEndpointBaseUrl | the base URL used by all service requests (for example, "https://dataservice.protection.outlook.com") |
Definition at line 265 of file policy_engine.h.
|
inline |
Set the custom settings, used for feature gating and testing.
customSettings | List of name/value pairs. |
Definition at line 177 of file policy_engine.h.
|
inline |
Optionally sets the target diagnostic region.
dataBoundary | Data boundary region |
Definition at line 245 of file policy_engine.h.
|
inline |
Sets the delegated user.
delegatedUserEmail | the delegation email. |
Definition at line 285 of file policy_engine.h.
|
inline |
Set the engine ID.
id | engine ID. |
Definition at line 133 of file policy_engine.h.
|
inline |
Set the Identity object.
identity | the unique identity of a user. |
Definition at line 149 of file policy_engine.h.
|
inline |
Sets the label filter.
labelFilter | the label filter. |
Definition at line 307 of file policy_engine.h.
|
inline |
Sets the logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
loggerContext | The logger context |
Definition at line 393 of file policy_engine.h.
|
inline |
Set the session ID, used for client defined telemetry and to make it easier to correlate application events with the corresponding policy service REST requests.
sessionId | An identifier (usually specified as a GUID) to uniquely identify this operation. |
Definition at line 196 of file policy_engine.h.
|
inline |
Sets the variable text marking type.
variableTextMarkingType | the variable text marking type. |
Definition at line 349 of file policy_engine.h.