20#ifndef ORES_DQ_MESSAGING_DATASET_BUNDLE_PROTOCOL_HPP
21#define ORES_DQ_MESSAGING_DATASET_BUNDLE_PROTOCOL_HPP
27#include <boost/uuid/uuid.hpp>
28#include "ores.comms/messaging/message_types.hpp"
29#include "ores.comms/messaging/message_traits.hpp"
30#include "ores.dq/domain/dataset_bundle.hpp"
32namespace ores::dq::messaging {
42 std::vector<std::byte> serialize()
const;
44 ores::utility::serialization::error_code>
45 deserialize(std::span<const std::byte> data);
54 std::vector<domain::dataset_bundle> bundles;
56 std::vector<std::byte> serialize()
const;
58 ores::utility::serialization::error_code>
59 deserialize(std::span<const std::byte> data);
70 std::vector<std::byte> serialize()
const;
72 ores::utility::serialization::error_code>
73 deserialize(std::span<const std::byte> data);
85 std::vector<std::byte> serialize()
const;
87 ores::utility::serialization::error_code>
88 deserialize(std::span<const std::byte> data);
97 boost::uuids::uuid id;
108 std::vector<boost::uuids::uuid> ids;
110 std::vector<std::byte> serialize()
const;
112 ores::utility::serialization::error_code>
113 deserialize(std::span<const std::byte> data);
122 std::vector<delete_dataset_bundle_result> results;
124 std::vector<std::byte> serialize()
const;
126 ores::utility::serialization::error_code>
127 deserialize(std::span<const std::byte> data);
136 boost::uuids::uuid id;
138 std::vector<std::byte> serialize()
const;
140 ores::utility::serialization::error_code>
141 deserialize(std::span<const std::byte> data);
152 std::vector<domain::dataset_bundle> versions;
154 std::vector<std::byte> serialize()
const;
156 ores::utility::serialization::error_code>
157 deserialize(std::span<const std::byte> data);
171 static constexpr message_type request_message_type =
172 message_type::get_dataset_bundles_request;
176struct message_traits<dq::messaging::save_dataset_bundle_request> {
179 static constexpr message_type request_message_type =
180 message_type::save_dataset_bundle_request;
184struct message_traits<dq::messaging::delete_dataset_bundle_request> {
185 using request_type = dq::messaging::delete_dataset_bundle_request;
186 using response_type = dq::messaging::delete_dataset_bundle_response;
187 static constexpr message_type request_message_type =
188 message_type::delete_dataset_bundle_request;
192struct message_traits<dq::messaging::get_dataset_bundle_history_request> {
193 using request_type = dq::messaging::get_dataset_bundle_history_request;
194 using response_type = dq::messaging::get_dataset_bundle_history_response;
195 static constexpr message_type request_message_type =
196 message_type::get_dataset_bundle_history_request;
Contains messaging related infrastructure in the comms library.
Definition assets_protocol.hpp:122
A named collection of datasets designed to work together.
Definition dataset_bundle.hpp:41
Request to retrieve all dataset bundles.
Definition dataset_bundle_protocol.hpp:41
Response containing all dataset bundles.
Definition dataset_bundle_protocol.hpp:53
Request to save a dataset bundle (create or update).
Definition dataset_bundle_protocol.hpp:67
Response confirming dataset bundle save operation.
Definition dataset_bundle_protocol.hpp:81
Result for a single dataset bundle deletion.
Definition dataset_bundle_protocol.hpp:96
Request to delete one or more dataset bundles.
Definition dataset_bundle_protocol.hpp:107
Response confirming dataset bundle deletion(s).
Definition dataset_bundle_protocol.hpp:121
Request to retrieve version history for a dataset bundle.
Definition dataset_bundle_protocol.hpp:135
Response containing dataset bundle version history.
Definition dataset_bundle_protocol.hpp:149