RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
Struct which represents a resource limit for a job. More...
#include <Job.hpp>
Classes | |
struct | Type |
Public Member Functions | |
ResourceLimit ()=default | |
Default constructor. | |
ResourceLimit (std::string in_limitType, std::string in_maxValue="", std::string in_defaultValue="") | |
Constructor. More... | |
json::Object | toJson () const |
Converts this ResourceLimit to a JSON object which represents it. More... | |
Static Public Member Functions | |
static Error | fromJson (const json::Object &in_json, ResourceLimit &out_resourceLimit) |
Constructs a ResourceLimit from a JSON object which represents the resource limit. More... | |
Public Attributes | |
std::string | ResourceType |
std::string | Value |
std::string | MaxValue |
std::string | DefaultValue |
Struct which represents a resource limit for a job.
|
explicit |
Constructor.
in_limitType | The type of the resource limit. |
in_maxValue | The maximum value of the resource limit. Default: no maximum. |
in_defaultValue | The default value of the resource limit. Default: no default. |
|
static |
Constructs a ResourceLimit from a JSON object which represents the resource limit.
in_json | The JSON object which represents the resource limit. |
out_resourceLimit | The populated resource limit value. Not valid if an error is returned. |
json::Object rstudio::launcher_plugins::api::ResourceLimit::toJson | ( | ) | const |
Converts this ResourceLimit to a JSON object which represents it.
std::string rstudio::launcher_plugins::api::ResourceLimit::DefaultValue |
The default value that will be set for this type of resource.
std::string rstudio::launcher_plugins::api::ResourceLimit::MaxValue |
The maximum value that can be set for this type of resource.
std::string rstudio::launcher_plugins::api::ResourceLimit::ResourceType |
The type of resource to limit.
std::string rstudio::launcher_plugins::api::ResourceLimit::Value |
The value of the resource limit.