|
MIP SDK — C++ 1.18
API Reference Documentation for C++
|
Defines the settings associated with a PolicyEngine. More...
#include <mip/upe/policy_engine.h>
Public Member Functions | |
| 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. | |
| 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. | |
| const std::string & | GetEngineId () const |
| Get the engine ID. | |
| void | SetEngineId (const std::string &id) |
| Set the engine ID. | |
| const Identity & | GetIdentity () const |
| Get the Identity object. | |
| void | SetIdentity (const Identity &identity) |
| Set the Identity object. | |
| const std::string & | GetClientData () const |
| Get the Client Data set in the settings. | |
| void | SetClientData (const std::string &clientData) |
| Set the Client Data string. | |
| const std::string & | GetLocale () const |
| Get the Locale set in the settings. | |
| void | SetCustomSettings (const std::vector< std::pair< std::string, std::string > > &customSettings) |
| Set the custom settings, used for feature gating and testing. | |
| const std::vector< std::pair< std::string, std::string > > & | GetCustomSettings () const |
| Get the custom settings, used for feature gating and testing. | |
| 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. | |
| const std::string & | GetSessionId () const |
| Get the session ID, a unique identifier. | |
| bool | IsLoadSensitivityTypesEnabled () const |
| Get the the flag indicating if load sensitivity labels is enabled. | |
| void | SetCloud (Cloud cloud) |
| Optionally sets the target cloud. | |
| Cloud | GetCloud () const |
| Gets the target cloud used by all service requests. | |
| void | SetDataBoundary (DataBoundary dataBoundary) |
| Optionally sets the target diagnostic region. | |
| DataBoundary | GetDataBoundary () const |
| Gets the data boundary region. | |
| void | SetCloudEndpointBaseUrl (const std::string &cloudEndpointBaseUrl) |
| Sets the cloud endpoint base URL for custom cloud. | |
| const std::string & | GetCloudEndpointBaseUrl () const |
| Gets the cloud base URL used by all service requests, if specified. | |
| void | SetDelegatedUserEmail (const std::string &delegatedUserEmail) |
| Sets the delegated user. | |
| const std::string & | GetDelegatedUserEmail () const |
| Gets the delegated user. | |
| void | SetLabelFilter (const std::vector< LabelFilterType > &deprecatedLabelFilters) |
| Sets the label filter. | |
| const std::vector< LabelFilterType > & | GetLabelFilter () const |
| Gets the label filters set through deprecated function SetLabelFilter. | |
| void | ConfigureFunctionality (FunctionalityFilterType functionalityFilterType, bool enabled) |
| Enables or disables functionality. | |
| const std::map< FunctionalityFilterType, bool > & | GetConfiguredFunctionality () const |
| Gets the configured functionality. | |
| void | SetVariableTextMarkingType (VariableTextMarkingType variableTextMarkingType) |
| Sets the variable text marking type. | |
| VariableTextMarkingType | GetVariableTextMarkingType () const |
| Gets the variable text marking type. | |
| void | SetAuthDelegate (const std::shared_ptr< AuthDelegate > &authDelegate) |
| Set the Engine Auth Delegate. | |
| std::shared_ptr< AuthDelegate > | GetAuthDelegate () const |
| Get the Engine Auth Delegate. | |
| 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. | |
| 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. | |
| ~Settings () | |
Private Attributes | |
| std::string | mEngineId |
| Identity | mIdentity |
| Cloud | mCloud = Cloud::Unknown |
| DataBoundary | mDataBoundary = DataBoundary::Default |
| std::shared_ptr< AuthDelegate > | mAuthDelegate |
| std::string | mClientData |
| std::vector< std::pair< std::string, std::string > > | mCustomSettings |
| std::vector< LabelFilterType > | mDeprecatedLabelFilters |
| std::map< FunctionalityFilterType, bool > | mConfiguredFunctionality |
| std::string | mLocale |
| std::string | mSessionId |
| bool | mIsLoadSensitivityTypesEnabled |
| std::string | mCloudEndpointBaseUrl |
| std::string | mDelegatedUserEmail |
| VariableTextMarkingType | mVariableTextMarkingType = VariableTextMarkingType::Default |
| std::map< Classifier, bool > | mClassifierSupport |
| std::shared_ptr< void > | mLoggerContext |
Defines the settings associated with a PolicyEngine.
|
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. |
| loadSensitivityTypes | 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. |
|
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. |
| loadSensitivityTypes | 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. |
|
inline |
|
inline |
Enables or disables functionality.
| functionalityFilterType | the type of functionality. |
| enabled | True to enable, false to disable |
|
inline |
Get the Engine Auth Delegate.
|
inline |
Get the Client Data set in the settings.
|
inline |
Gets the target cloud used by all service requests.
|
inline |
Gets the cloud base URL used by all service requests, if specified.
|
inline |
Gets the configured functionality.
|
inline |
Get the custom settings, used for feature gating and testing.
|
inline |
Gets the data boundary region.
|
inline |
Gets the delegated user.
|
inline |
Get the engine ID.
|
inline |
Get the Identity object.
|
inline |
Gets the label filters set through deprecated function SetLabelFilter.
|
inline |
Get the Locale set in the settings.
|
inline |
Get logger context that will be opaquely passed to the logger delegate for logs associated with the created engine.
|
inline |
Get the session ID, a unique identifier.
|
inline |
Gets the variable text marking type.
|
inline |
Get the the flag indicating if load sensitivity labels is enabled.
|
inline |
Set the Engine Auth Delegate.
| authDelegate | the Auth delegate |
|
inline |
Set the Client Data string.
| clientData | user specified data. |
|
inline |
Optionally sets the target cloud.
| cloud | Cloud |
|
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") |
|
inline |
Set the custom settings, used for feature gating and testing.
| customSettings | List of name/value pairs. |
|
inline |
Optionally sets the target diagnostic region.
| dataBoundary | Data boundary region |
|
inline |
Sets the delegated user.
| delegatedUserEmail | the delegation email. |
|
inline |
Set the engine ID.
| id | engine ID. |
|
inline |
|
inline |
Sets the label filter.
| labelFilter | the label filter. |
|
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 |
|
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. |
|
inline |
Sets the variable text marking type.
| variableTextMarkingType | the variable text marking type. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |