17 #ifndef __MASTER_QUOTA_HPP__ 18 #define __MASTER_QUOTA_HPP__ 22 #include <google/protobuf/repeated_field.h> 61 const google::protobuf::RepeatedPtrField<mesos::quota::QuotaConfig>&
68 google::protobuf::RepeatedPtrField<mesos::quota::QuotaConfig> configs;
76 const mesos::quota::QuotaRequest&
request);
78 namespace validation {
132 #endif // __MASTER_QUOTA_HPP__
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
Sets quota for a role.
Definition: quota.hpp:55
Definition: master.hpp:27
Option< Error > validate(const mesos::quota::QuotaRequest &request)
A QuotaRequest is valid if the following conditions are met:
Option< Error > quotaInfo(const mesos::quota::QuotaInfo "aInfo)
Definition: attributes.hpp:24
Definition: registrar.hpp:45
mesos::quota::QuotaInfo createQuotaInfo(const mesos::quota::QuotaRequest &request)
Creates a QuotaInfo protobuf from the QuotaRequest protobuf.
Try< bool > perform(Registry *registry, hashset< SlaveID > *slaveIDs) override
UpdateQuota(const google::protobuf::RepeatedPtrField< mesos::quota::QuotaConfig > "aConfigs)