52 , std::string _accessToken
107 std::move(jsonBody().get()).get<
PushRule>()
133 , std::string _accessToken
135 std::string scope , std::string kind , std::string ruleId
142 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId);
155 using namespace Kazv;
177 bool success()
const;
200 , std::string _accessToken
202 std::string scope , std::string kind , std::string ruleId
209 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId);
222 using namespace Kazv;
248 bool success()
const;
292 , std::string _accessToken
294 std::string scope , std::string kind , std::string ruleId , immer::array<Variant> actions , std::optional<std::string> before = std::nullopt, std::optional<std::string> after = std::nullopt, immer::array<PushCondition> conditions = {}, std::optional<std::string> pattern = std::nullopt
299 std::optional<std::string> before, std::optional<std::string> after);
301 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId, immer::array<Variant> actions, std::optional<std::string> before, std::optional<std::string> after, immer::array<PushCondition> conditions, std::optional<std::string> pattern);
314 using namespace Kazv;
336 bool success()
const;
344 bool enabled()
const;
368 , std::string _accessToken
370 std::string scope , std::string kind , std::string ruleId
377 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId);
390 using namespace Kazv;
412 bool success()
const;
438 , std::string _accessToken
440 std::string scope , std::string kind , std::string ruleId ,
bool enabled
447 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId,
bool enabled);
460 using namespace Kazv;
482 bool success()
const;
490 immer::array<Variant> actions()
const;
514 , std::string _accessToken
516 std::string scope , std::string kind , std::string ruleId
523 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId);
536 using namespace Kazv;
559 bool success()
const;
585 , std::string _accessToken
587 std::string scope , std::string kind , std::string ruleId , immer::array<Variant> actions
594 static BaseJob::Body buildBody(std::string scope, std::string kind, std::string ruleId, immer::array<Variant> actions);
607 using namespace Kazv;
Definition: pushrules.hpp:173
Delete a push rule.
Definition: pushrules.hpp:167
static constexpr auto needsAuth()
Definition: pushrules.hpp:180
Definition: pushrules.hpp:478
The actions for a push rule.
Definition: pushrules.hpp:472
static constexpr auto needsAuth()
Definition: pushrules.hpp:493
Definition: pushrules.hpp:92
PushRule data() const
The specific push rule.
Definition: pushrules.hpp:104
Retrieve a push rule.
Definition: pushrules.hpp:86
static constexpr auto needsAuth()
Definition: pushrules.hpp:113
Definition: pushrules.hpp:27
JobResponse(Response r)
Definition: pushrules.cpp:67
PushRuleset global() const
The global ruleset.
Definition: pushrules.cpp:81
bool success() const
Definition: pushrules.cpp:70
Retrieve all push rulesets.
Definition: pushrules.hpp:21
static BaseJob::Query buildQuery()
Definition: pushrules.cpp:13
GetPushRulesJob(std::string serverUrl, std::string _accessToken)
Retrieve all push rulesets.
Definition: pushrules.cpp:33
GetPushRulesJob withData(JsonWrap j) &&
Definition: pushrules.cpp:53
static BaseJob::Body buildBody()
Definition: pushrules.cpp:21
static constexpr auto needsAuth()
Definition: pushrules.hpp:42
Definition: pushrules.hpp:332
Get whether a push rule is enabled.
Definition: pushrules.hpp:326
static constexpr auto needsAuth()
Definition: pushrules.hpp:347
Definition: pushrules.hpp:555
Set the actions for a push rule.
Definition: pushrules.hpp:549
static constexpr auto needsAuth()
Definition: pushrules.hpp:562
Definition: pushrules.hpp:408
Enable or disable a push rule.
Definition: pushrules.hpp:402
static constexpr auto needsAuth()
Definition: pushrules.hpp:415
Definition: pushrules.hpp:244
Add or change a push rule.
Definition: pushrules.hpp:238
static constexpr auto needsAuth()
Definition: pushrules.hpp:251
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: push_rule.hpp:13
Definition: push_ruleset.hpp:13
Definition: basejob.hpp:50