azure-data-tables
Loading...
Searching...
No Matches
serializers.hpp
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License. See License.txt in the project root for license information.
3
4#pragma once
5#include "azure/data/tables/internal/xml_wrapper.hpp"
6#include "azure/data/tables/models.hpp"
7
8#include <azure/core/internal/json/json.hpp>
9
10#include <cstdint>
11#include <memory>
12#include <string>
13#include <utility>
14#include <vector>
15
16namespace Azure { namespace Data { namespace Tables { namespace _detail {
17
22 class Serializers final {
23 public:
28 static std::string const CreateEntity(Models::TableEntity const& tableEntity);
29
34 static std::string const MergeEntity(Models::TableEntity const& tableEntity);
35
40 static std::string const UpdateEntity(Models::TableEntity const& tableEntity);
41
46 static std::string const SetAccessPolicy(Models::TableAccessPolicy const& tableAccessPolicy);
47
52 static Models::TableAccessPolicy TableAccessPolicyFromXml(std::vector<uint8_t> responseData);
53
58 static std::string const Create(std::string const& tableName);
59
64 static std::string const SetServiceProperties(
65 Models::SetServicePropertiesOptions const& options);
66
71 static Models::TableServiceProperties ServicePropertiesFromXml(
72 std::vector<uint8_t> responseData);
73
77 static Models::TableEntity DeserializeEntity(Azure::Core::Json::_internal::json json);
78 };
79}}}} // namespace Azure::Data::Tables::_detail