SetDevEnvSettingsResult SetDevEnvSettings(MbId tMb, SetDevEnvSettingsArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The SetDevEnvSettings operation changes development environment parameters.
To execute the operation, in the tMb fields specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation. In the tArg.tabSize field specify new development environment parameters to be applied.
The operation results in the changed development environment parameters.
Below is the example of changing development environment parameters. The request contains repository connection moniker and new development environment parameter. The response contains changed parameter values.
{
"SetDevEnvSettings" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "S1!M",
"sessKey" : "182323",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049"
},
"tArg" :
{
"settings" :
{
"tabSize" : "5"
}
}
}
}
{
"SetDevEnvSettingsResult" :
{
"settings" :
{
"tabSize" : "5"
}
}
}
public static SetDevEnvSettingsResult SetDevEnvSettings(MbId mb, long tabulationSize)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetDevEnvSettings()
{
tArg = new SetDevEnvSettingsArg()
{
settings = new DevEnvSettings()
{
tabSize = tabulationSize
}
},
//Repository connection moniker
tMb = mb
};
//Change development environment parameters
var result = somClient.SetDevEnvSettings(tSet);
return result;
}
See also: