Go to the documentation of this file.
21 class GetPushRulesJob :
public BaseJob {
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:477
Delete a push rule.
Definition: pushrules.hpp:167
Definition: push_rule.hpp:14
Definition: pushrules.hpp:172
Retrieve a push rule.
Definition: pushrules.hpp:86
static constexpr auto needsAuth()
Definition: pushrules.hpp:113
Enable or disable a push rule.
Definition: pushrules.hpp:402
static constexpr auto needsAuth()
Definition: pushrules.hpp:251
Definition: location.hpp:26
Get whether a push rule is enabled.
Definition: pushrules.hpp:326
static constexpr auto needsAuth()
Definition: pushrules.hpp:493
The actions for a push rule.
Definition: pushrules.hpp:472
static BaseJob::Body buildBody()
Definition: pushrules.cpp:23
Definition: location.hpp:10
bool success() const
Definition: pushrules.cpp:72
Definition: push_ruleset.hpp:14
Definition: basejob.hpp:90
static constexpr auto needsAuth()
Definition: pushrules.hpp:46
Definition: pushrules.hpp:91
static constexpr auto needsAuth()
Definition: pushrules.hpp:415
PushRule data() const
The specific push rule.
Definition: pushrules.hpp:104
Definition: pushrules.hpp:243
Definition: pushrules.hpp:30
Definition: location.hpp:10
JobResponse(Response r)
Definition: pushrules.cpp:69
Definition: pushrules.hpp:554
Set the actions for a push rule.
Definition: pushrules.hpp:549
static constexpr auto needsAuth()
Definition: pushrules.hpp:562
static constexpr auto needsAuth()
Definition: pushrules.hpp:180
Definition: jsonwrap.hpp:22
GetPushRulesJob withData(JsonWrap j) &&
Definition: pushrules.cpp:55
Definition: basejob.hpp:76
Definition: pushrules.hpp:331
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: pushrules.hpp:407
Retrieve all push rulesets.
Definition: pushrules.hpp:23
static BaseJob::Query buildQuery()
Definition: pushrules.cpp:15
PushRuleset global() const
The global ruleset.
Definition: pushrules.cpp:83
GetPushRulesJob(std::string serverUrl, std::string _accessToken)
Retrieve all push rulesets.
Definition: pushrules.cpp:35
Add or change a push rule.
Definition: pushrules.hpp:238
static constexpr auto needsAuth()
Definition: pushrules.hpp:347
Definition: basejob.hpp:50