Struct which represents a custom configuration setting for jobs launched with a given Plugin.
More...
#include <Job.hpp>
Struct which represents a custom configuration setting for jobs launched with a given Plugin.
JobConfig values should be used only when there is a necessary per-job configuration that cannot be covered by another aspect of the Job structure, such as a ResourceLimit or PlacementConstraint.
◆ Type
| Enumerator |
|---|
| ENUM | Enumeration type.
|
| FLOAT | Floating point value type.
|
| INT | Integer type.
|
| STRING | String type.
|
◆ JobConfig()
| rstudio::launcher_plugins::api::JobConfig::JobConfig |
( |
std::string |
in_name, |
|
|
Type |
in_type |
|
) |
| |
Constructor.
- Parameters
-
| in_name | The name of the custom job configuration value. |
| in_type | The type of the custom job configuration value. |
◆ fromJson()
Constructs a JobConfig from a JSON object which represents the job config.
- Parameters
-
| in_json | The JSON object which represents the job config. |
| out_jobConfig | The populated job config value. Not valid if an error is returned. |
- Returns
- Success if in_json could be parsed as a JobConfig; Error otherwise.
◆ toJson()
| json::Object rstudio::launcher_plugins::api::JobConfig::toJson |
( |
| ) |
const |
Converts this JobConfig to a JSON object which represents it.
- Returns
- The JSON object which represents this JobConfig.
◆ Name
| std::string rstudio::launcher_plugins::api::JobConfig::Name |
The name of the custom job configuration value.
◆ Value
| std::string rstudio::launcher_plugins::api::JobConfig::Value |
The value of the custom job configuration value.
◆ ValueType
| Optional<Type> rstudio::launcher_plugins::api::JobConfig::ValueType |
The type of the custom job configuration value.
The documentation for this struct was generated from the following file:
- /var/lib/jenkins/workspace/IDE/launcher-plugin-sdk/master/sdk/include/api/Job.hpp