-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interface to get versions list to catalog client. Implement get versions list. Relates-To: OLPEDGE-1606 Signed-off-by: Liubov Didkivska <[email protected]>
- Loading branch information
Liubov Didkivska
committed
Jun 9, 2020
1 parent
f54b906
commit 0f27430
Showing
11 changed files
with
291 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
olp-cpp-sdk-dataservice-read/src/generated/serializer/VersionInfosSerializer.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright (C) 2020 HERE Europe B.V. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* License-Filename: LICENSE | ||
*/ | ||
|
||
#include <rapidjson/document.h> | ||
|
||
#include "VersionInfosSerializer.h" | ||
|
||
#include <olp/core/generated/serializer/SerializerWrapper.h> | ||
|
||
namespace olp { | ||
namespace serializer { | ||
|
||
void to_json(const dataservice::read::model::VersionDependency& x, | ||
rapidjson::Value& value, | ||
rapidjson::Document::AllocatorType& allocator) { | ||
value.SetObject(); | ||
serialize("hrn", x.GetHrn(), value, allocator); | ||
serialize("version", x.GetVersion(), value, allocator); | ||
serialize("direct", x.GetDirect(), value, allocator); | ||
} | ||
|
||
void to_json(const dataservice::read::model::VersionInfo& x, | ||
rapidjson::Value& value, | ||
rapidjson::Document::AllocatorType& allocator) { | ||
value.SetObject(); | ||
serialize("dependencies", x.GetDependencies(), value, allocator); | ||
serialize("timestamp", x.GetTimestamp(), value, allocator); | ||
serialize("version", x.GetVersion(), value, allocator); | ||
serialize("partitionCounts", x.GetPartitionCounts(), value, allocator); | ||
} | ||
|
||
void to_json(const dataservice::read::model::VersionInfos& x, | ||
rapidjson::Value& value, | ||
rapidjson::Document::AllocatorType& allocator) { | ||
value.SetObject(); | ||
serialize("versions", x.GetVersions(), value, allocator); | ||
} | ||
} // namespace serializer | ||
} // namespace olp |
41 changes: 41 additions & 0 deletions
41
olp-cpp-sdk-dataservice-read/src/generated/serializer/VersionInfosSerializer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (C) 2020 HERE Europe B.V. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* License-Filename: LICENSE | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <rapidjson/document.h> | ||
|
||
#include "olp/dataservice/read/model/VersionInfos.h" | ||
|
||
namespace olp { | ||
namespace serializer { | ||
|
||
void to_json(const dataservice::read::model::VersionDependency& x, | ||
rapidjson::Value& value, | ||
rapidjson::Document::AllocatorType& allocator); | ||
|
||
void to_json(const dataservice::read::model::VersionInfo& x, | ||
rapidjson::Value& value, | ||
rapidjson::Document::AllocatorType& allocator); | ||
|
||
void to_json(const dataservice::read::model::VersionInfos& x, | ||
rapidjson::Value& value, | ||
rapidjson::Document::AllocatorType& allocator); | ||
} // namespace serializer | ||
} // namespace olp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.