Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1c3599e3d | ||
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd |
25
CHANGELOG
25
CHANGELOG
@@ -1,3 +1,28 @@
|
||||
2020-04-25 Version: 1.36.378
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add RestoreTime for CreateInstance API.
|
||||
|
||||
2020-04-24 Version: 1.36.377
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-24 Version: 1.36.376
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-23 Version: 1.36.375
|
||||
- GetUser API return user execute query count information.
|
||||
|
||||
2020-04-23 Version: 1.36.374
|
||||
- Fixed bugs for MassPush API.
|
||||
|
||||
2020-04-23 Version: 1.36.373
|
||||
- Add location info.
|
||||
|
||||
2020-04-23 Version: 1.36.372
|
||||
- Support groupId operations.
|
||||
|
||||
|
||||
@@ -34,13 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct User
|
||||
{
|
||||
long uid;
|
||||
std::vector<std::string> roleIdList;
|
||||
std::string userId;
|
||||
std::string state;
|
||||
std::vector<std::string> roleNameList;
|
||||
std::string nickName;
|
||||
std::string mobile;
|
||||
long maxExecuteCount;
|
||||
long uid;
|
||||
std::string lastLoginTime;
|
||||
long curResultCount;
|
||||
std::vector<std::string> roleIdList;
|
||||
long maxResultCount;
|
||||
std::string userId;
|
||||
std::string state;
|
||||
long curExecuteCount;
|
||||
long parentUid;
|
||||
};
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetApprovalDetailRequest;
|
||||
GetApprovalDetailRequest::GetApprovalDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetApprovalDetailRequest::~GetApprovalDetailRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest;
|
||||
GetDatabaseRequest::GetDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDatabaseRequest::~GetDatabaseRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetInstanceRequest;
|
||||
GetInstanceRequest::GetInstanceRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetInstanceRequest::~GetInstanceRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetLogicDatabaseRequest;
|
||||
GetLogicDatabaseRequest::GetLogicDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetLogicDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLogicDatabaseRequest::~GetLogicDatabaseRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetOpLogRequest;
|
||||
GetOpLogRequest::GetOpLogRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOpLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOpLogRequest::~GetOpLogRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetUserRequest;
|
||||
GetUserRequest::GetUserRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserRequest::~GetUserRequest()
|
||||
|
||||
@@ -52,6 +52,16 @@ void GetUserResult::parse(const std::string &payload)
|
||||
user_.parentUid = std::stol(userNode["ParentUid"].asString());
|
||||
if(!userNode["State"].isNull())
|
||||
user_.state = userNode["State"].asString();
|
||||
if(!userNode["LastLoginTime"].isNull())
|
||||
user_.lastLoginTime = userNode["LastLoginTime"].asString();
|
||||
if(!userNode["CurExecuteCount"].isNull())
|
||||
user_.curExecuteCount = std::stol(userNode["CurExecuteCount"].asString());
|
||||
if(!userNode["CurResultCount"].isNull())
|
||||
user_.curResultCount = std::stol(userNode["CurResultCount"].asString());
|
||||
if(!userNode["MaxExecuteCount"].isNull())
|
||||
user_.maxExecuteCount = std::stol(userNode["MaxExecuteCount"].asString());
|
||||
if(!userNode["MaxResultCount"].isNull())
|
||||
user_.maxResultCount = std::stol(userNode["MaxResultCount"].asString());
|
||||
auto allRoleIdList = userNode["RoleIdList"]["RoleIds"];
|
||||
for (auto value : allRoleIdList)
|
||||
user_.roleIdList.push_back(value.asString());
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListColumnsRequest;
|
||||
ListColumnsRequest::ListColumnsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListColumns")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListColumnsRequest::~ListColumnsRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListDatabaseUserPermssionsRequest;
|
||||
ListDatabaseUserPermssionsRequest::ListDatabaseUserPermssionsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDatabaseUserPermssionsRequest::~ListDatabaseUserPermssionsRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListDatabasesRequest;
|
||||
ListDatabasesRequest::ListDatabasesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabases")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDatabasesRequest::~ListDatabasesRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListIndexesRequest;
|
||||
ListIndexesRequest::ListIndexesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListIndexes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListIndexesRequest::~ListIndexesRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListInstancesRequest;
|
||||
ListInstancesRequest::ListInstancesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstances")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstancesRequest::~ListInstancesRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListLogicDatabasesRequest;
|
||||
ListLogicDatabasesRequest::ListLogicDatabasesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicDatabases")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLogicDatabasesRequest::~ListLogicDatabasesRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListLogicTablesRequest;
|
||||
ListLogicTablesRequest::ListLogicTablesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLogicTablesRequest::~ListLogicTablesRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListOrdersRequest;
|
||||
ListOrdersRequest::ListOrdersRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListOrders")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListOrdersRequest::~ListOrdersRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListTablesRequest;
|
||||
ListTablesRequest::ListTablesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTablesRequest::~ListTablesRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListUserPermissionsRequest;
|
||||
ListUserPermissionsRequest::ListUserPermissionsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserPermissions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUserPermissionsRequest::~ListUserPermissionsRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::ListUsersRequest;
|
||||
ListUsersRequest::ListUsersRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUsersRequest::~ListUsersRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::SearchDatabaseRequest;
|
||||
SearchDatabaseRequest::SearchDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchDatabaseRequest::~SearchDatabaseRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::SearchTableRequest;
|
||||
SearchTableRequest::SearchTableRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchTableRequest::~SearchTableRequest()
|
||||
|
||||
@@ -37,22 +37,34 @@ namespace AlibabaCloud
|
||||
DescribeIpv4LocationResult();
|
||||
explicit DescribeIpv4LocationResult(const std::string &payload);
|
||||
~DescribeIpv4LocationResult();
|
||||
std::string getProvinceEn()const;
|
||||
std::string getCityEn()const;
|
||||
std::string getIp()const;
|
||||
std::string getIsp()const;
|
||||
std::string getCountry()const;
|
||||
std::string getLatitude()const;
|
||||
std::string getCity()const;
|
||||
std::string getCountryCode()const;
|
||||
std::string getCounty()const;
|
||||
std::string getLongitude()const;
|
||||
std::string getProvince()const;
|
||||
std::string getCountryEn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string provinceEn_;
|
||||
std::string cityEn_;
|
||||
std::string ip_;
|
||||
std::string isp_;
|
||||
std::string country_;
|
||||
std::string latitude_;
|
||||
std::string city_;
|
||||
std::string countryCode_;
|
||||
std::string county_;
|
||||
std::string longitude_;
|
||||
std::string province_;
|
||||
std::string countryEn_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,22 +37,34 @@ namespace AlibabaCloud
|
||||
DescribeIpv6LocationResult();
|
||||
explicit DescribeIpv6LocationResult(const std::string &payload);
|
||||
~DescribeIpv6LocationResult();
|
||||
std::string getProvinceEn()const;
|
||||
std::string getCityEn()const;
|
||||
std::string getIp()const;
|
||||
std::string getIsp()const;
|
||||
std::string getCountry()const;
|
||||
std::string getLatitude()const;
|
||||
std::string getCity()const;
|
||||
std::string getCountryCode()const;
|
||||
std::string getCounty()const;
|
||||
std::string getLongitude()const;
|
||||
std::string getProvince()const;
|
||||
std::string getCountryEn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string provinceEn_;
|
||||
std::string cityEn_;
|
||||
std::string ip_;
|
||||
std::string isp_;
|
||||
std::string country_;
|
||||
std::string latitude_;
|
||||
std::string city_;
|
||||
std::string countryCode_;
|
||||
std::string county_;
|
||||
std::string longitude_;
|
||||
std::string province_;
|
||||
std::string countryEn_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -51,9 +51,31 @@ void DescribeIpv4LocationResult::parse(const std::string &payload)
|
||||
county_ = value["County"].asString();
|
||||
if(!value["Isp"].isNull())
|
||||
isp_ = value["Isp"].asString();
|
||||
if(!value["CountryCode"].isNull())
|
||||
countryCode_ = value["CountryCode"].asString();
|
||||
if(!value["CountryEn"].isNull())
|
||||
countryEn_ = value["CountryEn"].asString();
|
||||
if(!value["ProvinceEn"].isNull())
|
||||
provinceEn_ = value["ProvinceEn"].asString();
|
||||
if(!value["CityEn"].isNull())
|
||||
cityEn_ = value["CityEn"].asString();
|
||||
if(!value["Longitude"].isNull())
|
||||
longitude_ = value["Longitude"].asString();
|
||||
if(!value["Latitude"].isNull())
|
||||
latitude_ = value["Latitude"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getProvinceEn()const
|
||||
{
|
||||
return provinceEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCityEn()const
|
||||
{
|
||||
return cityEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
@@ -69,18 +91,38 @@ std::string DescribeIpv4LocationResult::getCountry()const
|
||||
return country_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getLatitude()const
|
||||
{
|
||||
return latitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCountryCode()const
|
||||
{
|
||||
return countryCode_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCounty()const
|
||||
{
|
||||
return county_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getLongitude()const
|
||||
{
|
||||
return longitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getProvince()const
|
||||
{
|
||||
return province_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv4LocationResult::getCountryEn()const
|
||||
{
|
||||
return countryEn_;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,9 +51,31 @@ void DescribeIpv6LocationResult::parse(const std::string &payload)
|
||||
county_ = value["County"].asString();
|
||||
if(!value["Isp"].isNull())
|
||||
isp_ = value["Isp"].asString();
|
||||
if(!value["CountryCode"].isNull())
|
||||
countryCode_ = value["CountryCode"].asString();
|
||||
if(!value["CountryEn"].isNull())
|
||||
countryEn_ = value["CountryEn"].asString();
|
||||
if(!value["ProvinceEn"].isNull())
|
||||
provinceEn_ = value["ProvinceEn"].asString();
|
||||
if(!value["CityEn"].isNull())
|
||||
cityEn_ = value["CityEn"].asString();
|
||||
if(!value["Longitude"].isNull())
|
||||
longitude_ = value["Longitude"].asString();
|
||||
if(!value["Latitude"].isNull())
|
||||
latitude_ = value["Latitude"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getProvinceEn()const
|
||||
{
|
||||
return provinceEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCityEn()const
|
||||
{
|
||||
return cityEn_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
@@ -69,18 +91,38 @@ std::string DescribeIpv6LocationResult::getCountry()const
|
||||
return country_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getLatitude()const
|
||||
{
|
||||
return latitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCity()const
|
||||
{
|
||||
return city_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCountryCode()const
|
||||
{
|
||||
return countryCode_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCounty()const
|
||||
{
|
||||
return county_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getLongitude()const
|
||||
{
|
||||
return longitude_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getProvince()const
|
||||
{
|
||||
return province_;
|
||||
}
|
||||
|
||||
std::string DescribeIpv6LocationResult::getCountryEn()const
|
||||
{
|
||||
return countryEn_;
|
||||
}
|
||||
|
||||
|
||||
162
ledgerdb/CMakeLists.txt
Normal file
162
ledgerdb/CMakeLists.txt
Normal file
@@ -0,0 +1,162 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(ledgerdb_public_header
|
||||
include/alibabacloud/ledgerdb/LedgerdbClient.h
|
||||
include/alibabacloud/ledgerdb/LedgerdbExport.h )
|
||||
|
||||
set(ledgerdb_public_header_model
|
||||
include/alibabacloud/ledgerdb/model/AcceptMemberRequest.h
|
||||
include/alibabacloud/ledgerdb/model/AcceptMemberResult.h
|
||||
include/alibabacloud/ledgerdb/model/CreateVpcEndpointRequest.h
|
||||
include/alibabacloud/ledgerdb/model/CreateVpcEndpointResult.h
|
||||
include/alibabacloud/ledgerdb/model/DeleteLedgerRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DeleteLedgerResult.h
|
||||
include/alibabacloud/ledgerdb/model/DeleteMemberRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DeleteMemberResult.h
|
||||
include/alibabacloud/ledgerdb/model/DeleteVpcEndpointRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DeleteVpcEndpointResult.h
|
||||
include/alibabacloud/ledgerdb/model/DescribeLedgerRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DescribeLedgerResult.h
|
||||
include/alibabacloud/ledgerdb/model/DescribeLedgersRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DescribeLedgersResult.h
|
||||
include/alibabacloud/ledgerdb/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/ledgerdb/model/DisableMemberRequest.h
|
||||
include/alibabacloud/ledgerdb/model/DisableMemberResult.h
|
||||
include/alibabacloud/ledgerdb/model/EnableMemberRequest.h
|
||||
include/alibabacloud/ledgerdb/model/EnableMemberResult.h
|
||||
include/alibabacloud/ledgerdb/model/GetJournalRequest.h
|
||||
include/alibabacloud/ledgerdb/model/GetJournalResult.h
|
||||
include/alibabacloud/ledgerdb/model/GetMemberRequest.h
|
||||
include/alibabacloud/ledgerdb/model/GetMemberResult.h
|
||||
include/alibabacloud/ledgerdb/model/InviteMembersRequest.h
|
||||
include/alibabacloud/ledgerdb/model/InviteMembersResult.h
|
||||
include/alibabacloud/ledgerdb/model/ListJournalsRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ListJournalsResult.h
|
||||
include/alibabacloud/ledgerdb/model/ListMembersRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ListMembersResult.h
|
||||
include/alibabacloud/ledgerdb/model/ListTimeAnchorsRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ListTimeAnchorsResult.h
|
||||
include/alibabacloud/ledgerdb/model/ListVpcEndpointsRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ListVpcEndpointsResult.h
|
||||
include/alibabacloud/ledgerdb/model/ModifyLedgerAttributeRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ModifyLedgerAttributeResult.h
|
||||
include/alibabacloud/ledgerdb/model/ModifyMemberACLsRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ModifyMemberACLsResult.h
|
||||
include/alibabacloud/ledgerdb/model/ModifyMemberKeyRequest.h
|
||||
include/alibabacloud/ledgerdb/model/ModifyMemberKeyResult.h )
|
||||
|
||||
set(ledgerdb_src
|
||||
src/LedgerdbClient.cc
|
||||
src/model/AcceptMemberRequest.cc
|
||||
src/model/AcceptMemberResult.cc
|
||||
src/model/CreateVpcEndpointRequest.cc
|
||||
src/model/CreateVpcEndpointResult.cc
|
||||
src/model/DeleteLedgerRequest.cc
|
||||
src/model/DeleteLedgerResult.cc
|
||||
src/model/DeleteMemberRequest.cc
|
||||
src/model/DeleteMemberResult.cc
|
||||
src/model/DeleteVpcEndpointRequest.cc
|
||||
src/model/DeleteVpcEndpointResult.cc
|
||||
src/model/DescribeLedgerRequest.cc
|
||||
src/model/DescribeLedgerResult.cc
|
||||
src/model/DescribeLedgersRequest.cc
|
||||
src/model/DescribeLedgersResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DisableMemberRequest.cc
|
||||
src/model/DisableMemberResult.cc
|
||||
src/model/EnableMemberRequest.cc
|
||||
src/model/EnableMemberResult.cc
|
||||
src/model/GetJournalRequest.cc
|
||||
src/model/GetJournalResult.cc
|
||||
src/model/GetMemberRequest.cc
|
||||
src/model/GetMemberResult.cc
|
||||
src/model/InviteMembersRequest.cc
|
||||
src/model/InviteMembersResult.cc
|
||||
src/model/ListJournalsRequest.cc
|
||||
src/model/ListJournalsResult.cc
|
||||
src/model/ListMembersRequest.cc
|
||||
src/model/ListMembersResult.cc
|
||||
src/model/ListTimeAnchorsRequest.cc
|
||||
src/model/ListTimeAnchorsResult.cc
|
||||
src/model/ListVpcEndpointsRequest.cc
|
||||
src/model/ListVpcEndpointsResult.cc
|
||||
src/model/ModifyLedgerAttributeRequest.cc
|
||||
src/model/ModifyLedgerAttributeResult.cc
|
||||
src/model/ModifyMemberACLsRequest.cc
|
||||
src/model/ModifyMemberACLsResult.cc
|
||||
src/model/ModifyMemberKeyRequest.cc
|
||||
src/model/ModifyMemberKeyResult.cc )
|
||||
|
||||
add_library(ledgerdb ${LIB_TYPE}
|
||||
${ledgerdb_public_header}
|
||||
${ledgerdb_public_header_model}
|
||||
${ledgerdb_src})
|
||||
|
||||
set_target_properties(ledgerdb
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ledgerdb
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(ledgerdb
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_LEDGERDB_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(ledgerdb
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(ledgerdb
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(ledgerdb
|
||||
jsoncpp)
|
||||
target_include_directories(ledgerdb
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(ledgerdb
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(ledgerdb
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(ledgerdb
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(ledgerdb
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${ledgerdb_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ledgerdb)
|
||||
install(FILES ${ledgerdb_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ledgerdb/model)
|
||||
install(TARGETS ledgerdb
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
206
ledgerdb/include/alibabacloud/ledgerdb/LedgerdbClient.h
Normal file
206
ledgerdb/include/alibabacloud/ledgerdb/LedgerdbClient.h
Normal file
@@ -0,0 +1,206 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_LEDGERDBCLIENT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_LEDGERDBCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "LedgerdbExport.h"
|
||||
#include "model/AcceptMemberRequest.h"
|
||||
#include "model/AcceptMemberResult.h"
|
||||
#include "model/CreateVpcEndpointRequest.h"
|
||||
#include "model/CreateVpcEndpointResult.h"
|
||||
#include "model/DeleteLedgerRequest.h"
|
||||
#include "model/DeleteLedgerResult.h"
|
||||
#include "model/DeleteMemberRequest.h"
|
||||
#include "model/DeleteMemberResult.h"
|
||||
#include "model/DeleteVpcEndpointRequest.h"
|
||||
#include "model/DeleteVpcEndpointResult.h"
|
||||
#include "model/DescribeLedgerRequest.h"
|
||||
#include "model/DescribeLedgerResult.h"
|
||||
#include "model/DescribeLedgersRequest.h"
|
||||
#include "model/DescribeLedgersResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DisableMemberRequest.h"
|
||||
#include "model/DisableMemberResult.h"
|
||||
#include "model/EnableMemberRequest.h"
|
||||
#include "model/EnableMemberResult.h"
|
||||
#include "model/GetJournalRequest.h"
|
||||
#include "model/GetJournalResult.h"
|
||||
#include "model/GetMemberRequest.h"
|
||||
#include "model/GetMemberResult.h"
|
||||
#include "model/InviteMembersRequest.h"
|
||||
#include "model/InviteMembersResult.h"
|
||||
#include "model/ListJournalsRequest.h"
|
||||
#include "model/ListJournalsResult.h"
|
||||
#include "model/ListMembersRequest.h"
|
||||
#include "model/ListMembersResult.h"
|
||||
#include "model/ListTimeAnchorsRequest.h"
|
||||
#include "model/ListTimeAnchorsResult.h"
|
||||
#include "model/ListVpcEndpointsRequest.h"
|
||||
#include "model/ListVpcEndpointsResult.h"
|
||||
#include "model/ModifyLedgerAttributeRequest.h"
|
||||
#include "model/ModifyLedgerAttributeResult.h"
|
||||
#include "model/ModifyMemberACLsRequest.h"
|
||||
#include "model/ModifyMemberACLsResult.h"
|
||||
#include "model/ModifyMemberKeyRequest.h"
|
||||
#include "model/ModifyMemberKeyResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT LedgerdbClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AcceptMemberResult> AcceptMemberOutcome;
|
||||
typedef std::future<AcceptMemberOutcome> AcceptMemberOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::AcceptMemberRequest&, const AcceptMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AcceptMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVpcEndpointResult> CreateVpcEndpointOutcome;
|
||||
typedef std::future<CreateVpcEndpointOutcome> CreateVpcEndpointOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::CreateVpcEndpointRequest&, const CreateVpcEndpointOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVpcEndpointAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLedgerResult> DeleteLedgerOutcome;
|
||||
typedef std::future<DeleteLedgerOutcome> DeleteLedgerOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DeleteLedgerRequest&, const DeleteLedgerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLedgerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMemberResult> DeleteMemberOutcome;
|
||||
typedef std::future<DeleteMemberOutcome> DeleteMemberOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DeleteMemberRequest&, const DeleteMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteVpcEndpointResult> DeleteVpcEndpointOutcome;
|
||||
typedef std::future<DeleteVpcEndpointOutcome> DeleteVpcEndpointOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DeleteVpcEndpointRequest&, const DeleteVpcEndpointOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteVpcEndpointAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLedgerResult> DescribeLedgerOutcome;
|
||||
typedef std::future<DescribeLedgerOutcome> DescribeLedgerOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DescribeLedgerRequest&, const DescribeLedgerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLedgerAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLedgersResult> DescribeLedgersOutcome;
|
||||
typedef std::future<DescribeLedgersOutcome> DescribeLedgersOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DescribeLedgersRequest&, const DescribeLedgersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLedgersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableMemberResult> DisableMemberOutcome;
|
||||
typedef std::future<DisableMemberOutcome> DisableMemberOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::DisableMemberRequest&, const DisableMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableMemberResult> EnableMemberOutcome;
|
||||
typedef std::future<EnableMemberOutcome> EnableMemberOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::EnableMemberRequest&, const EnableMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJournalResult> GetJournalOutcome;
|
||||
typedef std::future<GetJournalOutcome> GetJournalOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::GetJournalRequest&, const GetJournalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJournalAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMemberResult> GetMemberOutcome;
|
||||
typedef std::future<GetMemberOutcome> GetMemberOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::GetMemberRequest&, const GetMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::InviteMembersResult> InviteMembersOutcome;
|
||||
typedef std::future<InviteMembersOutcome> InviteMembersOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::InviteMembersRequest&, const InviteMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InviteMembersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJournalsResult> ListJournalsOutcome;
|
||||
typedef std::future<ListJournalsOutcome> ListJournalsOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ListJournalsRequest&, const ListJournalsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJournalsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMembersResult> ListMembersOutcome;
|
||||
typedef std::future<ListMembersOutcome> ListMembersOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ListMembersRequest&, const ListMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMembersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTimeAnchorsResult> ListTimeAnchorsOutcome;
|
||||
typedef std::future<ListTimeAnchorsOutcome> ListTimeAnchorsOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ListTimeAnchorsRequest&, const ListTimeAnchorsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTimeAnchorsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListVpcEndpointsResult> ListVpcEndpointsOutcome;
|
||||
typedef std::future<ListVpcEndpointsOutcome> ListVpcEndpointsOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ListVpcEndpointsRequest&, const ListVpcEndpointsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVpcEndpointsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyLedgerAttributeResult> ModifyLedgerAttributeOutcome;
|
||||
typedef std::future<ModifyLedgerAttributeOutcome> ModifyLedgerAttributeOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ModifyLedgerAttributeRequest&, const ModifyLedgerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyLedgerAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMemberACLsResult> ModifyMemberACLsOutcome;
|
||||
typedef std::future<ModifyMemberACLsOutcome> ModifyMemberACLsOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ModifyMemberACLsRequest&, const ModifyMemberACLsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMemberACLsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMemberKeyResult> ModifyMemberKeyOutcome;
|
||||
typedef std::future<ModifyMemberKeyOutcome> ModifyMemberKeyOutcomeCallable;
|
||||
typedef std::function<void(const LedgerdbClient*, const Model::ModifyMemberKeyRequest&, const ModifyMemberKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMemberKeyAsyncHandler;
|
||||
|
||||
LedgerdbClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
LedgerdbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
LedgerdbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~LedgerdbClient();
|
||||
AcceptMemberOutcome acceptMember(const Model::AcceptMemberRequest &request)const;
|
||||
void acceptMemberAsync(const Model::AcceptMemberRequest& request, const AcceptMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AcceptMemberOutcomeCallable acceptMemberCallable(const Model::AcceptMemberRequest& request) const;
|
||||
CreateVpcEndpointOutcome createVpcEndpoint(const Model::CreateVpcEndpointRequest &request)const;
|
||||
void createVpcEndpointAsync(const Model::CreateVpcEndpointRequest& request, const CreateVpcEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVpcEndpointOutcomeCallable createVpcEndpointCallable(const Model::CreateVpcEndpointRequest& request) const;
|
||||
DeleteLedgerOutcome deleteLedger(const Model::DeleteLedgerRequest &request)const;
|
||||
void deleteLedgerAsync(const Model::DeleteLedgerRequest& request, const DeleteLedgerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteLedgerOutcomeCallable deleteLedgerCallable(const Model::DeleteLedgerRequest& request) const;
|
||||
DeleteMemberOutcome deleteMember(const Model::DeleteMemberRequest &request)const;
|
||||
void deleteMemberAsync(const Model::DeleteMemberRequest& request, const DeleteMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMemberOutcomeCallable deleteMemberCallable(const Model::DeleteMemberRequest& request) const;
|
||||
DeleteVpcEndpointOutcome deleteVpcEndpoint(const Model::DeleteVpcEndpointRequest &request)const;
|
||||
void deleteVpcEndpointAsync(const Model::DeleteVpcEndpointRequest& request, const DeleteVpcEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteVpcEndpointOutcomeCallable deleteVpcEndpointCallable(const Model::DeleteVpcEndpointRequest& request) const;
|
||||
DescribeLedgerOutcome describeLedger(const Model::DescribeLedgerRequest &request)const;
|
||||
void describeLedgerAsync(const Model::DescribeLedgerRequest& request, const DescribeLedgerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLedgerOutcomeCallable describeLedgerCallable(const Model::DescribeLedgerRequest& request) const;
|
||||
DescribeLedgersOutcome describeLedgers(const Model::DescribeLedgersRequest &request)const;
|
||||
void describeLedgersAsync(const Model::DescribeLedgersRequest& request, const DescribeLedgersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLedgersOutcomeCallable describeLedgersCallable(const Model::DescribeLedgersRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DisableMemberOutcome disableMember(const Model::DisableMemberRequest &request)const;
|
||||
void disableMemberAsync(const Model::DisableMemberRequest& request, const DisableMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableMemberOutcomeCallable disableMemberCallable(const Model::DisableMemberRequest& request) const;
|
||||
EnableMemberOutcome enableMember(const Model::EnableMemberRequest &request)const;
|
||||
void enableMemberAsync(const Model::EnableMemberRequest& request, const EnableMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableMemberOutcomeCallable enableMemberCallable(const Model::EnableMemberRequest& request) const;
|
||||
GetJournalOutcome getJournal(const Model::GetJournalRequest &request)const;
|
||||
void getJournalAsync(const Model::GetJournalRequest& request, const GetJournalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJournalOutcomeCallable getJournalCallable(const Model::GetJournalRequest& request) const;
|
||||
GetMemberOutcome getMember(const Model::GetMemberRequest &request)const;
|
||||
void getMemberAsync(const Model::GetMemberRequest& request, const GetMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMemberOutcomeCallable getMemberCallable(const Model::GetMemberRequest& request) const;
|
||||
InviteMembersOutcome inviteMembers(const Model::InviteMembersRequest &request)const;
|
||||
void inviteMembersAsync(const Model::InviteMembersRequest& request, const InviteMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InviteMembersOutcomeCallable inviteMembersCallable(const Model::InviteMembersRequest& request) const;
|
||||
ListJournalsOutcome listJournals(const Model::ListJournalsRequest &request)const;
|
||||
void listJournalsAsync(const Model::ListJournalsRequest& request, const ListJournalsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJournalsOutcomeCallable listJournalsCallable(const Model::ListJournalsRequest& request) const;
|
||||
ListMembersOutcome listMembers(const Model::ListMembersRequest &request)const;
|
||||
void listMembersAsync(const Model::ListMembersRequest& request, const ListMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMembersOutcomeCallable listMembersCallable(const Model::ListMembersRequest& request) const;
|
||||
ListTimeAnchorsOutcome listTimeAnchors(const Model::ListTimeAnchorsRequest &request)const;
|
||||
void listTimeAnchorsAsync(const Model::ListTimeAnchorsRequest& request, const ListTimeAnchorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTimeAnchorsOutcomeCallable listTimeAnchorsCallable(const Model::ListTimeAnchorsRequest& request) const;
|
||||
ListVpcEndpointsOutcome listVpcEndpoints(const Model::ListVpcEndpointsRequest &request)const;
|
||||
void listVpcEndpointsAsync(const Model::ListVpcEndpointsRequest& request, const ListVpcEndpointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListVpcEndpointsOutcomeCallable listVpcEndpointsCallable(const Model::ListVpcEndpointsRequest& request) const;
|
||||
ModifyLedgerAttributeOutcome modifyLedgerAttribute(const Model::ModifyLedgerAttributeRequest &request)const;
|
||||
void modifyLedgerAttributeAsync(const Model::ModifyLedgerAttributeRequest& request, const ModifyLedgerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyLedgerAttributeOutcomeCallable modifyLedgerAttributeCallable(const Model::ModifyLedgerAttributeRequest& request) const;
|
||||
ModifyMemberACLsOutcome modifyMemberACLs(const Model::ModifyMemberACLsRequest &request)const;
|
||||
void modifyMemberACLsAsync(const Model::ModifyMemberACLsRequest& request, const ModifyMemberACLsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMemberACLsOutcomeCallable modifyMemberACLsCallable(const Model::ModifyMemberACLsRequest& request) const;
|
||||
ModifyMemberKeyOutcome modifyMemberKey(const Model::ModifyMemberKeyRequest &request)const;
|
||||
void modifyMemberKeyAsync(const Model::ModifyMemberKeyRequest& request, const ModifyMemberKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMemberKeyOutcomeCallable modifyMemberKeyCallable(const Model::ModifyMemberKeyRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_LEDGERDBCLIENT_H_
|
||||
32
ledgerdb/include/alibabacloud/ledgerdb/LedgerdbExport.h
Normal file
32
ledgerdb/include/alibabacloud/ledgerdb/LedgerdbExport.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_LEDGERDBEXPORT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_LEDGERDBEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_LEDGERDB_LIBRARY)
|
||||
# define ALIBABACLOUD_LEDGERDB_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_LEDGERDB_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_LEDGERDB_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_LEDGERDBEXPORT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT AcceptMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AcceptMemberRequest();
|
||||
~AcceptMemberRequest();
|
||||
|
||||
std::string getPublicKey()const;
|
||||
void setPublicKey(const std::string& publicKey);
|
||||
std::string getKeyType()const;
|
||||
void setKeyType(const std::string& keyType);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
|
||||
private:
|
||||
std::string publicKey_;
|
||||
std::string keyType_;
|
||||
std::string ledgerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT AcceptMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AcceptMemberResult();
|
||||
explicit AcceptMemberResult(const std::string &payload);
|
||||
~AcceptMemberResult();
|
||||
std::string getMemberId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT CreateVpcEndpointRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVpcEndpointRequest();
|
||||
~CreateVpcEndpointRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string ledgerId_;
|
||||
std::string vSwitchId_;
|
||||
std::string vpcId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT CreateVpcEndpointResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVpcEndpointResult();
|
||||
explicit CreateVpcEndpointResult(const std::string &payload);
|
||||
~CreateVpcEndpointResult();
|
||||
std::string getVpcEndpointId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string vpcEndpointId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DELETELEDGERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DELETELEDGERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DeleteLedgerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteLedgerRequest();
|
||||
~DeleteLedgerRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DELETELEDGERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DELETELEDGERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DELETELEDGERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DeleteLedgerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteLedgerResult();
|
||||
explicit DeleteLedgerResult(const std::string &payload);
|
||||
~DeleteLedgerResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DELETELEDGERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DELETEMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DELETEMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DeleteMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteMemberRequest();
|
||||
~DeleteMemberRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DELETEMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DELETEMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DELETEMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DeleteMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteMemberResult();
|
||||
explicit DeleteMemberResult(const std::string &payload);
|
||||
~DeleteMemberResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DELETEMEMBERRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DELETEVPCENDPOINTREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DELETEVPCENDPOINTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DeleteVpcEndpointRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteVpcEndpointRequest();
|
||||
~DeleteVpcEndpointRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getVpcEndpointId()const;
|
||||
void setVpcEndpointId(const std::string& vpcEndpointId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string vSwitchId_;
|
||||
std::string vpcId_;
|
||||
std::string vpcEndpointId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DELETEVPCENDPOINTREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DELETEVPCENDPOINTRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DELETEVPCENDPOINTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DeleteVpcEndpointResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteVpcEndpointResult();
|
||||
explicit DeleteVpcEndpointResult(const std::string &payload);
|
||||
~DeleteVpcEndpointResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DELETEVPCENDPOINTRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DescribeLedgerRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLedgerRequest();
|
||||
~DescribeLedgerRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DescribeLedgerResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Ledger
|
||||
{
|
||||
struct LastTimeAnchor
|
||||
{
|
||||
std::string ledgerDigest;
|
||||
std::string journalId;
|
||||
std::string ledgerDigestType;
|
||||
std::string proof;
|
||||
std::string ledgerVersion;
|
||||
std::string timeStamp;
|
||||
};
|
||||
long journalCount;
|
||||
std::string zoneId;
|
||||
long timeAnchorCount;
|
||||
std::string createTime;
|
||||
long memberCount;
|
||||
std::string ledgerId;
|
||||
LastTimeAnchor lastTimeAnchor;
|
||||
std::string ledgerDescription;
|
||||
std::string ownerAliUid;
|
||||
std::string ledgerType;
|
||||
std::string updateTime;
|
||||
std::string regionId;
|
||||
std::string ledgerStatus;
|
||||
std::string ledgerName;
|
||||
};
|
||||
|
||||
|
||||
DescribeLedgerResult();
|
||||
explicit DescribeLedgerResult(const std::string &payload);
|
||||
~DescribeLedgerResult();
|
||||
Ledger getLedger()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Ledger ledger_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DescribeLedgersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLedgersRequest();
|
||||
~DescribeLedgersRequest();
|
||||
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERSREQUEST_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DescribeLedgersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Ledger
|
||||
{
|
||||
struct LastTimeAnchor
|
||||
{
|
||||
std::string ledgerDigest;
|
||||
std::string journalId;
|
||||
std::string ledgerDigestType;
|
||||
std::string proof;
|
||||
std::string ledgerVersion;
|
||||
std::string timeStamp;
|
||||
};
|
||||
long journalCount;
|
||||
std::string zoneId;
|
||||
long timeAnchorCount;
|
||||
std::string createTime;
|
||||
long memberCount;
|
||||
std::string ledgerId;
|
||||
LastTimeAnchor lastTimeAnchor;
|
||||
std::string ledgerDescription;
|
||||
std::string ownerAliUid;
|
||||
std::string ledgerType;
|
||||
std::string updateTime;
|
||||
std::string regionId;
|
||||
std::string ledgerStatus;
|
||||
std::string ledgerName;
|
||||
};
|
||||
|
||||
|
||||
DescribeLedgersResult();
|
||||
explicit DescribeLedgersResult(const std::string &payload);
|
||||
~DescribeLedgersResult();
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::vector<Ledger> getLedgers()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::vector<Ledger> ledgers_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBELEDGERSRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
@@ -14,55 +14,48 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Push
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PUSH_EXPORT QueryPushListResult : public ServiceResult
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
struct Result
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string type;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string appName;
|
||||
std::string messageId;
|
||||
std::string regionId;
|
||||
std::string regionEndpoint;
|
||||
std::string localName;
|
||||
};
|
||||
|
||||
|
||||
QueryPushListResult();
|
||||
explicit QueryPushListResult(const std::string &payload);
|
||||
~QueryPushListResult();
|
||||
int getPageSize()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
bool getHasNext()const;
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
std::vector<Result> getRegions()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
bool hasNext_;
|
||||
std::vector<Result> regions_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DISABLEMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DISABLEMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DisableMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DisableMemberRequest();
|
||||
~DisableMemberRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DISABLEMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_DISABLEMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_DISABLEMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT DisableMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DisableMemberResult();
|
||||
explicit DisableMemberResult(const std::string &payload);
|
||||
~DisableMemberResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_DISABLEMEMBERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_ENABLEMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_ENABLEMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT EnableMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableMemberRequest();
|
||||
~EnableMemberRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_ENABLEMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_ENABLEMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_ENABLEMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT EnableMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableMemberResult();
|
||||
explicit EnableMemberResult(const std::string &payload);
|
||||
~EnableMemberResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_ENABLEMEMBERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_GETJOURNALREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_GETJOURNALREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT GetJournalRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetJournalRequest();
|
||||
~GetJournalRequest();
|
||||
|
||||
long getJournalId()const;
|
||||
void setJournalId(long journalId);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
|
||||
private:
|
||||
long journalId_;
|
||||
std::string ledgerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_GETJOURNALREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_GETJOURNALRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_GETJOURNALRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT GetJournalResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Journal
|
||||
{
|
||||
std::string memberId;
|
||||
std::string journalId;
|
||||
std::string clientId;
|
||||
std::vector<std::string> clues;
|
||||
std::string ledgerId;
|
||||
std::string journalHash;
|
||||
long timestamp;
|
||||
std::string payloadType;
|
||||
std::string payloadJsonString;
|
||||
};
|
||||
|
||||
|
||||
GetJournalResult();
|
||||
explicit GetJournalResult(const std::string &payload);
|
||||
~GetJournalResult();
|
||||
Journal getJournal()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Journal journal_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_GETJOURNALRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_GETMEMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_GETMEMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT GetMemberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMemberRequest();
|
||||
~GetMemberRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_GETMEMBERREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_GETMEMBERRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_GETMEMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT GetMemberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetMemberResult();
|
||||
explicit GetMemberResult(const std::string &payload);
|
||||
~GetMemberResult();
|
||||
std::string getRole()const;
|
||||
std::string getMemberId()const;
|
||||
std::string getKeyType()const;
|
||||
std::string getPublicKey()const;
|
||||
std::string getState()const;
|
||||
long getCreateTime()const;
|
||||
long getUpdateTime()const;
|
||||
std::string getLedgerId()const;
|
||||
std::string getAliUid()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string role_;
|
||||
std::string memberId_;
|
||||
std::string keyType_;
|
||||
std::string publicKey_;
|
||||
std::string state_;
|
||||
long createTime_;
|
||||
long updateTime_;
|
||||
std::string ledgerId_;
|
||||
std::string aliUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_GETMEMBERRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_INVITEMEMBERSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_INVITEMEMBERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT InviteMembersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InviteMembersRequest();
|
||||
~InviteMembersRequest();
|
||||
|
||||
std::string getAliUids()const;
|
||||
void setAliUids(const std::string& aliUids);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
|
||||
private:
|
||||
std::string aliUids_;
|
||||
std::string ledgerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_INVITEMEMBERSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_INVITEMEMBERSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_INVITEMEMBERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT InviteMembersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
InviteMembersResult();
|
||||
explicit InviteMembersResult(const std::string &payload);
|
||||
~InviteMembersResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_INVITEMEMBERSRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTJOURNALSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTJOURNALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListJournalsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListJournalsRequest();
|
||||
~ListJournalsRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getClue()const;
|
||||
void setClue(const std::string& clue);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string nextToken_;
|
||||
std::string clue_;
|
||||
int maxResults_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTJOURNALSREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTJOURNALSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTJOURNALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListJournalsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Journal
|
||||
{
|
||||
std::string memberId;
|
||||
std::string journalId;
|
||||
std::string clientId;
|
||||
std::vector<std::string> clues;
|
||||
std::string ledgerId;
|
||||
std::string journalHash;
|
||||
long timestamp;
|
||||
std::string payloadType;
|
||||
std::string payloadJsonString;
|
||||
};
|
||||
|
||||
|
||||
ListJournalsResult();
|
||||
explicit ListJournalsResult(const std::string &payload);
|
||||
~ListJournalsResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<Journal> getJournals()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<Journal> journals_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTJOURNALSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTMEMBERSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTMEMBERSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListMembersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMembersRequest();
|
||||
~ListMembersRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTMEMBERSREQUEST_H_
|
||||
@@ -14,55 +14,54 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTMEMBERSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTMEMBERSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Push
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PUSH_EXPORT ListPushRecordsResult : public ServiceResult
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListMembersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
struct Member
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string type;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string appName;
|
||||
std::string messageId;
|
||||
std::string role;
|
||||
std::string memberId;
|
||||
std::string keyType;
|
||||
std::string publicKey;
|
||||
std::string state;
|
||||
long createTime;
|
||||
long updateTime;
|
||||
std::string ledgerId;
|
||||
std::string aliUid;
|
||||
};
|
||||
|
||||
|
||||
ListPushRecordsResult();
|
||||
explicit ListPushRecordsResult(const std::string &payload);
|
||||
~ListPushRecordsResult();
|
||||
int getPageSize()const;
|
||||
int getTotal()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
ListMembersResult();
|
||||
explicit ListMembersResult(const std::string &payload);
|
||||
~ListMembersResult();
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
std::vector<Member> getMembers()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int total_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::vector<Member> members_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTMEMBERSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTTIMEANCHORSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTTIMEANCHORSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListTimeAnchorsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTimeAnchorsRequest();
|
||||
~ListTimeAnchorsRequest();
|
||||
|
||||
bool getReverse()const;
|
||||
void setReverse(bool reverse);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
bool reverse_;
|
||||
std::string ledgerId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTTIMEANCHORSREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTTIMEANCHORSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTTIMEANCHORSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListTimeAnchorsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TimeAnchor
|
||||
{
|
||||
std::string ledgerDigest;
|
||||
long journalId;
|
||||
std::string ledgerDigestType;
|
||||
std::string proof;
|
||||
long ledgerVersion;
|
||||
long timeStamp;
|
||||
};
|
||||
|
||||
|
||||
ListTimeAnchorsResult();
|
||||
explicit ListTimeAnchorsResult(const std::string &payload);
|
||||
~ListTimeAnchorsResult();
|
||||
std::vector<TimeAnchor> getTimeAnchors()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TimeAnchor> timeAnchors_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTTIMEANCHORSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTVPCENDPOINTSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTVPCENDPOINTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListVpcEndpointsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListVpcEndpointsRequest();
|
||||
~ListVpcEndpointsRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTVPCENDPOINTSREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_LISTVPCENDPOINTSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_LISTVPCENDPOINTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ListVpcEndpointsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct VpcEndpoint
|
||||
{
|
||||
std::string status;
|
||||
std::string memberId;
|
||||
std::string vpcId;
|
||||
std::string address;
|
||||
std::string vSwitchId;
|
||||
long createTime;
|
||||
std::string ledgerId;
|
||||
std::string regionId;
|
||||
std::string vpcEndpointId;
|
||||
};
|
||||
|
||||
|
||||
ListVpcEndpointsResult();
|
||||
explicit ListVpcEndpointsResult(const std::string &payload);
|
||||
~ListVpcEndpointsResult();
|
||||
std::vector<VpcEndpoint> getVpcEndpoints()const;
|
||||
std::string getNextToken()const;
|
||||
int getMaxResults()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<VpcEndpoint> vpcEndpoints_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_LISTVPCENDPOINTSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_MODIFYLEDGERATTRIBUTEREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_MODIFYLEDGERATTRIBUTEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ModifyLedgerAttributeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyLedgerAttributeRequest();
|
||||
~ModifyLedgerAttributeRequest();
|
||||
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getLedgerName()const;
|
||||
void setLedgerName(const std::string& ledgerName);
|
||||
std::string getLedgerDescription()const;
|
||||
void setLedgerDescription(const std::string& ledgerDescription);
|
||||
|
||||
private:
|
||||
std::string ledgerId_;
|
||||
std::string ledgerName_;
|
||||
std::string ledgerDescription_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_MODIFYLEDGERATTRIBUTEREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_MODIFYLEDGERATTRIBUTERESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_MODIFYLEDGERATTRIBUTERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ModifyLedgerAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyLedgerAttributeResult();
|
||||
explicit ModifyLedgerAttributeResult(const std::string &payload);
|
||||
~ModifyLedgerAttributeResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_MODIFYLEDGERATTRIBUTERESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERACLSREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERACLSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ModifyMemberACLsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyMemberACLsRequest();
|
||||
~ModifyMemberACLsRequest();
|
||||
|
||||
std::string getRole()const;
|
||||
void setRole(const std::string& role);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
std::string ledgerId_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERACLSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERACLSRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERACLSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ModifyMemberACLsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyMemberACLsResult();
|
||||
explicit ModifyMemberACLsResult(const std::string &payload);
|
||||
~ModifyMemberACLsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERACLSRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ModifyMemberKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyMemberKeyRequest();
|
||||
~ModifyMemberKeyRequest();
|
||||
|
||||
std::string getPublicKey()const;
|
||||
void setPublicKey(const std::string& publicKey);
|
||||
std::string getKeyType()const;
|
||||
void setKeyType(const std::string& keyType);
|
||||
std::string getLedgerId()const;
|
||||
void setLedgerId(const std::string& ledgerId);
|
||||
std::string getMemberId()const;
|
||||
void setMemberId(const std::string& memberId);
|
||||
|
||||
private:
|
||||
std::string publicKey_;
|
||||
std::string keyType_;
|
||||
std::string ledgerId_;
|
||||
std::string memberId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERKEYREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERKEYRESULT_H_
|
||||
#define ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ledgerdb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_LEDGERDB_EXPORT ModifyMemberKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyMemberKeyResult();
|
||||
explicit ModifyMemberKeyResult(const std::string &payload);
|
||||
~ModifyMemberKeyResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_MODIFYMEMBERKEYRESULT_H_
|
||||
773
ledgerdb/src/LedgerdbClient.cc
Normal file
773
ledgerdb/src/LedgerdbClient.cc
Normal file
@@ -0,0 +1,773 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/LedgerdbClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "ledgerdb";
|
||||
}
|
||||
|
||||
LedgerdbClient::LedgerdbClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ledgerdb");
|
||||
}
|
||||
|
||||
LedgerdbClient::LedgerdbClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ledgerdb");
|
||||
}
|
||||
|
||||
LedgerdbClient::LedgerdbClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ledgerdb");
|
||||
}
|
||||
|
||||
LedgerdbClient::~LedgerdbClient()
|
||||
{}
|
||||
|
||||
LedgerdbClient::AcceptMemberOutcome LedgerdbClient::acceptMember(const AcceptMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AcceptMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AcceptMemberOutcome(AcceptMemberResult(outcome.result()));
|
||||
else
|
||||
return AcceptMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::acceptMemberAsync(const AcceptMemberRequest& request, const AcceptMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, acceptMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::AcceptMemberOutcomeCallable LedgerdbClient::acceptMemberCallable(const AcceptMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AcceptMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->acceptMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::CreateVpcEndpointOutcome LedgerdbClient::createVpcEndpoint(const CreateVpcEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVpcEndpointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVpcEndpointOutcome(CreateVpcEndpointResult(outcome.result()));
|
||||
else
|
||||
return CreateVpcEndpointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::createVpcEndpointAsync(const CreateVpcEndpointRequest& request, const CreateVpcEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVpcEndpoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::CreateVpcEndpointOutcomeCallable LedgerdbClient::createVpcEndpointCallable(const CreateVpcEndpointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVpcEndpointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVpcEndpoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DeleteLedgerOutcome LedgerdbClient::deleteLedger(const DeleteLedgerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLedgerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLedgerOutcome(DeleteLedgerResult(outcome.result()));
|
||||
else
|
||||
return DeleteLedgerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::deleteLedgerAsync(const DeleteLedgerRequest& request, const DeleteLedgerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLedger(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DeleteLedgerOutcomeCallable LedgerdbClient::deleteLedgerCallable(const DeleteLedgerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLedgerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLedger(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DeleteMemberOutcome LedgerdbClient::deleteMember(const DeleteMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteMemberOutcome(DeleteMemberResult(outcome.result()));
|
||||
else
|
||||
return DeleteMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::deleteMemberAsync(const DeleteMemberRequest& request, const DeleteMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DeleteMemberOutcomeCallable LedgerdbClient::deleteMemberCallable(const DeleteMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DeleteVpcEndpointOutcome LedgerdbClient::deleteVpcEndpoint(const DeleteVpcEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteVpcEndpointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteVpcEndpointOutcome(DeleteVpcEndpointResult(outcome.result()));
|
||||
else
|
||||
return DeleteVpcEndpointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::deleteVpcEndpointAsync(const DeleteVpcEndpointRequest& request, const DeleteVpcEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteVpcEndpoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DeleteVpcEndpointOutcomeCallable LedgerdbClient::deleteVpcEndpointCallable(const DeleteVpcEndpointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteVpcEndpointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteVpcEndpoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DescribeLedgerOutcome LedgerdbClient::describeLedger(const DescribeLedgerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLedgerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLedgerOutcome(DescribeLedgerResult(outcome.result()));
|
||||
else
|
||||
return DescribeLedgerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::describeLedgerAsync(const DescribeLedgerRequest& request, const DescribeLedgerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLedger(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DescribeLedgerOutcomeCallable LedgerdbClient::describeLedgerCallable(const DescribeLedgerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLedgerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLedger(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DescribeLedgersOutcome LedgerdbClient::describeLedgers(const DescribeLedgersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLedgersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLedgersOutcome(DescribeLedgersResult(outcome.result()));
|
||||
else
|
||||
return DescribeLedgersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::describeLedgersAsync(const DescribeLedgersRequest& request, const DescribeLedgersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLedgers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DescribeLedgersOutcomeCallable LedgerdbClient::describeLedgersCallable(const DescribeLedgersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLedgersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLedgers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DescribeRegionsOutcome LedgerdbClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRegionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRegions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DescribeRegionsOutcomeCallable LedgerdbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRegions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::DisableMemberOutcome LedgerdbClient::disableMember(const DisableMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableMemberOutcome(DisableMemberResult(outcome.result()));
|
||||
else
|
||||
return DisableMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::disableMemberAsync(const DisableMemberRequest& request, const DisableMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::DisableMemberOutcomeCallable LedgerdbClient::disableMemberCallable(const DisableMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::EnableMemberOutcome LedgerdbClient::enableMember(const EnableMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableMemberOutcome(EnableMemberResult(outcome.result()));
|
||||
else
|
||||
return EnableMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::enableMemberAsync(const EnableMemberRequest& request, const EnableMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::EnableMemberOutcomeCallable LedgerdbClient::enableMemberCallable(const EnableMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::GetJournalOutcome LedgerdbClient::getJournal(const GetJournalRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetJournalOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetJournalOutcome(GetJournalResult(outcome.result()));
|
||||
else
|
||||
return GetJournalOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::getJournalAsync(const GetJournalRequest& request, const GetJournalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getJournal(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::GetJournalOutcomeCallable LedgerdbClient::getJournalCallable(const GetJournalRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetJournalOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getJournal(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::GetMemberOutcome LedgerdbClient::getMember(const GetMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMemberOutcome(GetMemberResult(outcome.result()));
|
||||
else
|
||||
return GetMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::getMemberAsync(const GetMemberRequest& request, const GetMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::GetMemberOutcomeCallable LedgerdbClient::getMemberCallable(const GetMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::InviteMembersOutcome LedgerdbClient::inviteMembers(const InviteMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InviteMembersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InviteMembersOutcome(InviteMembersResult(outcome.result()));
|
||||
else
|
||||
return InviteMembersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::inviteMembersAsync(const InviteMembersRequest& request, const InviteMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, inviteMembers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::InviteMembersOutcomeCallable LedgerdbClient::inviteMembersCallable(const InviteMembersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InviteMembersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->inviteMembers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ListJournalsOutcome LedgerdbClient::listJournals(const ListJournalsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListJournalsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListJournalsOutcome(ListJournalsResult(outcome.result()));
|
||||
else
|
||||
return ListJournalsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::listJournalsAsync(const ListJournalsRequest& request, const ListJournalsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listJournals(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ListJournalsOutcomeCallable LedgerdbClient::listJournalsCallable(const ListJournalsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListJournalsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listJournals(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ListMembersOutcome LedgerdbClient::listMembers(const ListMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMembersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMembersOutcome(ListMembersResult(outcome.result()));
|
||||
else
|
||||
return ListMembersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::listMembersAsync(const ListMembersRequest& request, const ListMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMembers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ListMembersOutcomeCallable LedgerdbClient::listMembersCallable(const ListMembersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMembersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMembers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ListTimeAnchorsOutcome LedgerdbClient::listTimeAnchors(const ListTimeAnchorsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTimeAnchorsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTimeAnchorsOutcome(ListTimeAnchorsResult(outcome.result()));
|
||||
else
|
||||
return ListTimeAnchorsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::listTimeAnchorsAsync(const ListTimeAnchorsRequest& request, const ListTimeAnchorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTimeAnchors(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ListTimeAnchorsOutcomeCallable LedgerdbClient::listTimeAnchorsCallable(const ListTimeAnchorsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTimeAnchorsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTimeAnchors(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ListVpcEndpointsOutcome LedgerdbClient::listVpcEndpoints(const ListVpcEndpointsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListVpcEndpointsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListVpcEndpointsOutcome(ListVpcEndpointsResult(outcome.result()));
|
||||
else
|
||||
return ListVpcEndpointsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::listVpcEndpointsAsync(const ListVpcEndpointsRequest& request, const ListVpcEndpointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listVpcEndpoints(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ListVpcEndpointsOutcomeCallable LedgerdbClient::listVpcEndpointsCallable(const ListVpcEndpointsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListVpcEndpointsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listVpcEndpoints(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ModifyLedgerAttributeOutcome LedgerdbClient::modifyLedgerAttribute(const ModifyLedgerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyLedgerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyLedgerAttributeOutcome(ModifyLedgerAttributeResult(outcome.result()));
|
||||
else
|
||||
return ModifyLedgerAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::modifyLedgerAttributeAsync(const ModifyLedgerAttributeRequest& request, const ModifyLedgerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyLedgerAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ModifyLedgerAttributeOutcomeCallable LedgerdbClient::modifyLedgerAttributeCallable(const ModifyLedgerAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyLedgerAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyLedgerAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ModifyMemberACLsOutcome LedgerdbClient::modifyMemberACLs(const ModifyMemberACLsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyMemberACLsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyMemberACLsOutcome(ModifyMemberACLsResult(outcome.result()));
|
||||
else
|
||||
return ModifyMemberACLsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::modifyMemberACLsAsync(const ModifyMemberACLsRequest& request, const ModifyMemberACLsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyMemberACLs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ModifyMemberACLsOutcomeCallable LedgerdbClient::modifyMemberACLsCallable(const ModifyMemberACLsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyMemberACLsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyMemberACLs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LedgerdbClient::ModifyMemberKeyOutcome LedgerdbClient::modifyMemberKey(const ModifyMemberKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyMemberKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyMemberKeyOutcome(ModifyMemberKeyResult(outcome.result()));
|
||||
else
|
||||
return ModifyMemberKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LedgerdbClient::modifyMemberKeyAsync(const ModifyMemberKeyRequest& request, const ModifyMemberKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyMemberKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LedgerdbClient::ModifyMemberKeyOutcomeCallable LedgerdbClient::modifyMemberKeyCallable(const ModifyMemberKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyMemberKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyMemberKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
62
ledgerdb/src/model/AcceptMemberRequest.cc
Normal file
62
ledgerdb/src/model/AcceptMemberRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/AcceptMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::AcceptMemberRequest;
|
||||
|
||||
AcceptMemberRequest::AcceptMemberRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "AcceptMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AcceptMemberRequest::~AcceptMemberRequest()
|
||||
{}
|
||||
|
||||
std::string AcceptMemberRequest::getPublicKey()const
|
||||
{
|
||||
return publicKey_;
|
||||
}
|
||||
|
||||
void AcceptMemberRequest::setPublicKey(const std::string& publicKey)
|
||||
{
|
||||
publicKey_ = publicKey;
|
||||
setBodyParameter("PublicKey", publicKey);
|
||||
}
|
||||
|
||||
std::string AcceptMemberRequest::getKeyType()const
|
||||
{
|
||||
return keyType_;
|
||||
}
|
||||
|
||||
void AcceptMemberRequest::setKeyType(const std::string& keyType)
|
||||
{
|
||||
keyType_ = keyType;
|
||||
setBodyParameter("KeyType", keyType);
|
||||
}
|
||||
|
||||
std::string AcceptMemberRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void AcceptMemberRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setBodyParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/AcceptMemberResult.cc
Normal file
51
ledgerdb/src/model/AcceptMemberResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/AcceptMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
AcceptMemberResult::AcceptMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AcceptMemberResult::AcceptMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AcceptMemberResult::~AcceptMemberResult()
|
||||
{}
|
||||
|
||||
void AcceptMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["MemberId"].isNull())
|
||||
memberId_ = value["MemberId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AcceptMemberResult::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
73
ledgerdb/src/model/CreateVpcEndpointRequest.cc
Normal file
73
ledgerdb/src/model/CreateVpcEndpointRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/CreateVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::CreateVpcEndpointRequest;
|
||||
|
||||
CreateVpcEndpointRequest::CreateVpcEndpointRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "CreateVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVpcEndpointRequest::~CreateVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setBodyParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setBodyParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setBodyParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/CreateVpcEndpointResult.cc
Normal file
51
ledgerdb/src/model/CreateVpcEndpointResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/CreateVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
CreateVpcEndpointResult::CreateVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVpcEndpointResult::CreateVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVpcEndpointResult::~CreateVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void CreateVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["VpcEndpointId"].isNull())
|
||||
vpcEndpointId_ = value["VpcEndpointId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointResult::getVpcEndpointId()const
|
||||
{
|
||||
return vpcEndpointId_;
|
||||
}
|
||||
|
||||
40
ledgerdb/src/model/DeleteLedgerRequest.cc
Normal file
40
ledgerdb/src/model/DeleteLedgerRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DeleteLedgerRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DeleteLedgerRequest;
|
||||
|
||||
DeleteLedgerRequest::DeleteLedgerRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DeleteLedger")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLedgerRequest::~DeleteLedgerRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLedgerRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void DeleteLedgerRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
44
ledgerdb/src/model/DeleteLedgerResult.cc
Normal file
44
ledgerdb/src/model/DeleteLedgerResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DeleteLedgerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DeleteLedgerResult::DeleteLedgerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLedgerResult::DeleteLedgerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLedgerResult::~DeleteLedgerResult()
|
||||
{}
|
||||
|
||||
void DeleteLedgerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/DeleteMemberRequest.cc
Normal file
51
ledgerdb/src/model/DeleteMemberRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DeleteMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DeleteMemberRequest;
|
||||
|
||||
DeleteMemberRequest::DeleteMemberRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DeleteMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMemberRequest::~DeleteMemberRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMemberRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void DeleteMemberRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string DeleteMemberRequest::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DeleteMemberRequest::setMemberId(const std::string& memberId)
|
||||
{
|
||||
memberId_ = memberId;
|
||||
setParameter("MemberId", memberId);
|
||||
}
|
||||
|
||||
44
ledgerdb/src/model/DeleteMemberResult.cc
Normal file
44
ledgerdb/src/model/DeleteMemberResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DeleteMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DeleteMemberResult::DeleteMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteMemberResult::DeleteMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteMemberResult::~DeleteMemberResult()
|
||||
{}
|
||||
|
||||
void DeleteMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
ledgerdb/src/model/DeleteVpcEndpointRequest.cc
Normal file
73
ledgerdb/src/model/DeleteVpcEndpointRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DeleteVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DeleteVpcEndpointRequest;
|
||||
|
||||
DeleteVpcEndpointRequest::DeleteVpcEndpointRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DeleteVpcEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointRequest::~DeleteVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getVpcEndpointId()const
|
||||
{
|
||||
return vpcEndpointId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setVpcEndpointId(const std::string& vpcEndpointId)
|
||||
{
|
||||
vpcEndpointId_ = vpcEndpointId;
|
||||
setParameter("VpcEndpointId", vpcEndpointId);
|
||||
}
|
||||
|
||||
44
ledgerdb/src/model/DeleteVpcEndpointResult.cc
Normal file
44
ledgerdb/src/model/DeleteVpcEndpointResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DeleteVpcEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DeleteVpcEndpointResult::DeleteVpcEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteVpcEndpointResult::DeleteVpcEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointResult::~DeleteVpcEndpointResult()
|
||||
{}
|
||||
|
||||
void DeleteVpcEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
ledgerdb/src/model/DescribeLedgerRequest.cc
Normal file
40
ledgerdb/src/model/DescribeLedgerRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DescribeLedgerRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DescribeLedgerRequest;
|
||||
|
||||
DescribeLedgerRequest::DescribeLedgerRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DescribeLedger")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeLedgerRequest::~DescribeLedgerRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLedgerRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void DescribeLedgerRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
89
ledgerdb/src/model/DescribeLedgerResult.cc
Normal file
89
ledgerdb/src/model/DescribeLedgerResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DescribeLedgerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DescribeLedgerResult::DescribeLedgerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLedgerResult::DescribeLedgerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLedgerResult::~DescribeLedgerResult()
|
||||
{}
|
||||
|
||||
void DescribeLedgerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto ledgerNode = value["Ledger"];
|
||||
if(!ledgerNode["LedgerId"].isNull())
|
||||
ledger_.ledgerId = ledgerNode["LedgerId"].asString();
|
||||
if(!ledgerNode["LedgerName"].isNull())
|
||||
ledger_.ledgerName = ledgerNode["LedgerName"].asString();
|
||||
if(!ledgerNode["LedgerDescription"].isNull())
|
||||
ledger_.ledgerDescription = ledgerNode["LedgerDescription"].asString();
|
||||
if(!ledgerNode["LedgerType"].isNull())
|
||||
ledger_.ledgerType = ledgerNode["LedgerType"].asString();
|
||||
if(!ledgerNode["OwnerAliUid"].isNull())
|
||||
ledger_.ownerAliUid = ledgerNode["OwnerAliUid"].asString();
|
||||
if(!ledgerNode["RegionId"].isNull())
|
||||
ledger_.regionId = ledgerNode["RegionId"].asString();
|
||||
if(!ledgerNode["ZoneId"].isNull())
|
||||
ledger_.zoneId = ledgerNode["ZoneId"].asString();
|
||||
if(!ledgerNode["CreateTime"].isNull())
|
||||
ledger_.createTime = ledgerNode["CreateTime"].asString();
|
||||
if(!ledgerNode["UpdateTime"].isNull())
|
||||
ledger_.updateTime = ledgerNode["UpdateTime"].asString();
|
||||
if(!ledgerNode["LedgerStatus"].isNull())
|
||||
ledger_.ledgerStatus = ledgerNode["LedgerStatus"].asString();
|
||||
if(!ledgerNode["JournalCount"].isNull())
|
||||
ledger_.journalCount = std::stol(ledgerNode["JournalCount"].asString());
|
||||
if(!ledgerNode["MemberCount"].isNull())
|
||||
ledger_.memberCount = std::stol(ledgerNode["MemberCount"].asString());
|
||||
if(!ledgerNode["TimeAnchorCount"].isNull())
|
||||
ledger_.timeAnchorCount = std::stol(ledgerNode["TimeAnchorCount"].asString());
|
||||
auto lastTimeAnchorNode = ledgerNode["LastTimeAnchor"];
|
||||
if(!lastTimeAnchorNode["JournalId"].isNull())
|
||||
ledger_.lastTimeAnchor.journalId = lastTimeAnchorNode["JournalId"].asString();
|
||||
if(!lastTimeAnchorNode["LedgerDigest"].isNull())
|
||||
ledger_.lastTimeAnchor.ledgerDigest = lastTimeAnchorNode["LedgerDigest"].asString();
|
||||
if(!lastTimeAnchorNode["LedgerDigestType"].isNull())
|
||||
ledger_.lastTimeAnchor.ledgerDigestType = lastTimeAnchorNode["LedgerDigestType"].asString();
|
||||
if(!lastTimeAnchorNode["LedgerVersion"].isNull())
|
||||
ledger_.lastTimeAnchor.ledgerVersion = lastTimeAnchorNode["LedgerVersion"].asString();
|
||||
if(!lastTimeAnchorNode["Proof"].isNull())
|
||||
ledger_.lastTimeAnchor.proof = lastTimeAnchorNode["Proof"].asString();
|
||||
if(!lastTimeAnchorNode["TimeStamp"].isNull())
|
||||
ledger_.lastTimeAnchor.timeStamp = lastTimeAnchorNode["TimeStamp"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeLedgerResult::Ledger DescribeLedgerResult::getLedger()const
|
||||
{
|
||||
return ledger_;
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/DescribeLedgersRequest.cc
Normal file
51
ledgerdb/src/model/DescribeLedgersRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DescribeLedgersRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DescribeLedgersRequest;
|
||||
|
||||
DescribeLedgersRequest::DescribeLedgersRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DescribeLedgers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeLedgersRequest::~DescribeLedgersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLedgersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeLedgersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int DescribeLedgersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeLedgersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
108
ledgerdb/src/model/DescribeLedgersResult.cc
Normal file
108
ledgerdb/src/model/DescribeLedgersResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DescribeLedgersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DescribeLedgersResult::DescribeLedgersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLedgersResult::DescribeLedgersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLedgersResult::~DescribeLedgersResult()
|
||||
{}
|
||||
|
||||
void DescribeLedgersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLedgersNode = value["Ledgers"]["Ledger"];
|
||||
for (auto valueLedgersLedger : allLedgersNode)
|
||||
{
|
||||
Ledger ledgersObject;
|
||||
if(!valueLedgersLedger["LedgerId"].isNull())
|
||||
ledgersObject.ledgerId = valueLedgersLedger["LedgerId"].asString();
|
||||
if(!valueLedgersLedger["LedgerName"].isNull())
|
||||
ledgersObject.ledgerName = valueLedgersLedger["LedgerName"].asString();
|
||||
if(!valueLedgersLedger["LedgerDescription"].isNull())
|
||||
ledgersObject.ledgerDescription = valueLedgersLedger["LedgerDescription"].asString();
|
||||
if(!valueLedgersLedger["LedgerType"].isNull())
|
||||
ledgersObject.ledgerType = valueLedgersLedger["LedgerType"].asString();
|
||||
if(!valueLedgersLedger["OwnerAliUid"].isNull())
|
||||
ledgersObject.ownerAliUid = valueLedgersLedger["OwnerAliUid"].asString();
|
||||
if(!valueLedgersLedger["RegionId"].isNull())
|
||||
ledgersObject.regionId = valueLedgersLedger["RegionId"].asString();
|
||||
if(!valueLedgersLedger["ZoneId"].isNull())
|
||||
ledgersObject.zoneId = valueLedgersLedger["ZoneId"].asString();
|
||||
if(!valueLedgersLedger["CreateTime"].isNull())
|
||||
ledgersObject.createTime = valueLedgersLedger["CreateTime"].asString();
|
||||
if(!valueLedgersLedger["UpdateTime"].isNull())
|
||||
ledgersObject.updateTime = valueLedgersLedger["UpdateTime"].asString();
|
||||
if(!valueLedgersLedger["LedgerStatus"].isNull())
|
||||
ledgersObject.ledgerStatus = valueLedgersLedger["LedgerStatus"].asString();
|
||||
if(!valueLedgersLedger["JournalCount"].isNull())
|
||||
ledgersObject.journalCount = std::stol(valueLedgersLedger["JournalCount"].asString());
|
||||
if(!valueLedgersLedger["MemberCount"].isNull())
|
||||
ledgersObject.memberCount = std::stol(valueLedgersLedger["MemberCount"].asString());
|
||||
if(!valueLedgersLedger["TimeAnchorCount"].isNull())
|
||||
ledgersObject.timeAnchorCount = std::stol(valueLedgersLedger["TimeAnchorCount"].asString());
|
||||
auto lastTimeAnchorNode = value["LastTimeAnchor"];
|
||||
if(!lastTimeAnchorNode["JournalId"].isNull())
|
||||
ledgersObject.lastTimeAnchor.journalId = lastTimeAnchorNode["JournalId"].asString();
|
||||
if(!lastTimeAnchorNode["LedgerDigest"].isNull())
|
||||
ledgersObject.lastTimeAnchor.ledgerDigest = lastTimeAnchorNode["LedgerDigest"].asString();
|
||||
if(!lastTimeAnchorNode["LedgerDigestType"].isNull())
|
||||
ledgersObject.lastTimeAnchor.ledgerDigestType = lastTimeAnchorNode["LedgerDigestType"].asString();
|
||||
if(!lastTimeAnchorNode["LedgerVersion"].isNull())
|
||||
ledgersObject.lastTimeAnchor.ledgerVersion = lastTimeAnchorNode["LedgerVersion"].asString();
|
||||
if(!lastTimeAnchorNode["Proof"].isNull())
|
||||
ledgersObject.lastTimeAnchor.proof = lastTimeAnchorNode["Proof"].asString();
|
||||
if(!lastTimeAnchorNode["TimeStamp"].isNull())
|
||||
ledgersObject.lastTimeAnchor.timeStamp = lastTimeAnchorNode["TimeStamp"].asString();
|
||||
ledgers_.push_back(ledgersObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLedgersResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int DescribeLedgersResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLedgersResult::Ledger> DescribeLedgersResult::getLedgers()const
|
||||
{
|
||||
return ledgers_;
|
||||
}
|
||||
|
||||
40
ledgerdb/src/model/DescribeRegionsRequest.cc
Normal file
40
ledgerdb/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
75
ledgerdb/src/model/DescribeRegionsResult.cc
Normal file
75
ledgerdb/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Result"];
|
||||
for (auto valueRegionsResult : allRegionsNode)
|
||||
{
|
||||
Result regionsObject;
|
||||
if(!valueRegionsResult["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsResult["LocalName"].asString();
|
||||
if(!valueRegionsResult["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsResult["RegionEndpoint"].asString();
|
||||
if(!valueRegionsResult["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsResult["RegionId"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Result> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
int DescribeRegionsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DescribeRegionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/DisableMemberRequest.cc
Normal file
51
ledgerdb/src/model/DisableMemberRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DisableMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::DisableMemberRequest;
|
||||
|
||||
DisableMemberRequest::DisableMemberRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "DisableMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableMemberRequest::~DisableMemberRequest()
|
||||
{}
|
||||
|
||||
std::string DisableMemberRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void DisableMemberRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setBodyParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string DisableMemberRequest::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DisableMemberRequest::setMemberId(const std::string& memberId)
|
||||
{
|
||||
memberId_ = memberId;
|
||||
setBodyParameter("MemberId", memberId);
|
||||
}
|
||||
|
||||
44
ledgerdb/src/model/DisableMemberResult.cc
Normal file
44
ledgerdb/src/model/DisableMemberResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/DisableMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
DisableMemberResult::DisableMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableMemberResult::DisableMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableMemberResult::~DisableMemberResult()
|
||||
{}
|
||||
|
||||
void DisableMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/EnableMemberRequest.cc
Normal file
51
ledgerdb/src/model/EnableMemberRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/EnableMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::EnableMemberRequest;
|
||||
|
||||
EnableMemberRequest::EnableMemberRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "EnableMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableMemberRequest::~EnableMemberRequest()
|
||||
{}
|
||||
|
||||
std::string EnableMemberRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void EnableMemberRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setBodyParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string EnableMemberRequest::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void EnableMemberRequest::setMemberId(const std::string& memberId)
|
||||
{
|
||||
memberId_ = memberId;
|
||||
setBodyParameter("MemberId", memberId);
|
||||
}
|
||||
|
||||
44
ledgerdb/src/model/EnableMemberResult.cc
Normal file
44
ledgerdb/src/model/EnableMemberResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/EnableMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
EnableMemberResult::EnableMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableMemberResult::EnableMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableMemberResult::~EnableMemberResult()
|
||||
{}
|
||||
|
||||
void EnableMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/GetJournalRequest.cc
Normal file
51
ledgerdb/src/model/GetJournalRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/GetJournalRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::GetJournalRequest;
|
||||
|
||||
GetJournalRequest::GetJournalRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "GetJournal")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetJournalRequest::~GetJournalRequest()
|
||||
{}
|
||||
|
||||
long GetJournalRequest::getJournalId()const
|
||||
{
|
||||
return journalId_;
|
||||
}
|
||||
|
||||
void GetJournalRequest::setJournalId(long journalId)
|
||||
{
|
||||
journalId_ = journalId;
|
||||
setParameter("JournalId", std::to_string(journalId));
|
||||
}
|
||||
|
||||
std::string GetJournalRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void GetJournalRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
69
ledgerdb/src/model/GetJournalResult.cc
Normal file
69
ledgerdb/src/model/GetJournalResult.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/GetJournalResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
GetJournalResult::GetJournalResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJournalResult::GetJournalResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJournalResult::~GetJournalResult()
|
||||
{}
|
||||
|
||||
void GetJournalResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto journalNode = value["Journal"];
|
||||
if(!journalNode["JournalId"].isNull())
|
||||
journal_.journalId = journalNode["JournalId"].asString();
|
||||
if(!journalNode["LedgerId"].isNull())
|
||||
journal_.ledgerId = journalNode["LedgerId"].asString();
|
||||
if(!journalNode["PayloadType"].isNull())
|
||||
journal_.payloadType = journalNode["PayloadType"].asString();
|
||||
if(!journalNode["PayloadJsonString"].isNull())
|
||||
journal_.payloadJsonString = journalNode["PayloadJsonString"].asString();
|
||||
if(!journalNode["MemberId"].isNull())
|
||||
journal_.memberId = journalNode["MemberId"].asString();
|
||||
if(!journalNode["ClientId"].isNull())
|
||||
journal_.clientId = journalNode["ClientId"].asString();
|
||||
if(!journalNode["JournalHash"].isNull())
|
||||
journal_.journalHash = journalNode["JournalHash"].asString();
|
||||
if(!journalNode["Timestamp"].isNull())
|
||||
journal_.timestamp = std::stol(journalNode["Timestamp"].asString());
|
||||
auto allClues = journalNode["Clues"]["Clue"];
|
||||
for (auto value : allClues)
|
||||
journal_.clues.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetJournalResult::Journal GetJournalResult::getJournal()const
|
||||
{
|
||||
return journal_;
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/GetMemberRequest.cc
Normal file
51
ledgerdb/src/model/GetMemberRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/GetMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::GetMemberRequest;
|
||||
|
||||
GetMemberRequest::GetMemberRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "GetMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMemberRequest::~GetMemberRequest()
|
||||
{}
|
||||
|
||||
std::string GetMemberRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void GetMemberRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string GetMemberRequest::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void GetMemberRequest::setMemberId(const std::string& memberId)
|
||||
{
|
||||
memberId_ = memberId;
|
||||
setParameter("MemberId", memberId);
|
||||
}
|
||||
|
||||
107
ledgerdb/src/model/GetMemberResult.cc
Normal file
107
ledgerdb/src/model/GetMemberResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/GetMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
GetMemberResult::GetMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMemberResult::GetMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMemberResult::~GetMemberResult()
|
||||
{}
|
||||
|
||||
void GetMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["LedgerId"].isNull())
|
||||
ledgerId_ = value["LedgerId"].asString();
|
||||
if(!value["MemberId"].isNull())
|
||||
memberId_ = value["MemberId"].asString();
|
||||
if(!value["AliUid"].isNull())
|
||||
aliUid_ = value["AliUid"].asString();
|
||||
if(!value["KeyType"].isNull())
|
||||
keyType_ = value["KeyType"].asString();
|
||||
if(!value["PublicKey"].isNull())
|
||||
publicKey_ = value["PublicKey"].asString();
|
||||
if(!value["Role"].isNull())
|
||||
role_ = value["Role"].asString();
|
||||
if(!value["State"].isNull())
|
||||
state_ = value["State"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["UpdateTime"].isNull())
|
||||
updateTime_ = std::stol(value["UpdateTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getKeyType()const
|
||||
{
|
||||
return keyType_;
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getPublicKey()const
|
||||
{
|
||||
return publicKey_;
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getState()const
|
||||
{
|
||||
return state_;
|
||||
}
|
||||
|
||||
long GetMemberResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
long GetMemberResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
std::string GetMemberResult::getAliUid()const
|
||||
{
|
||||
return aliUid_;
|
||||
}
|
||||
|
||||
51
ledgerdb/src/model/InviteMembersRequest.cc
Normal file
51
ledgerdb/src/model/InviteMembersRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/InviteMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::InviteMembersRequest;
|
||||
|
||||
InviteMembersRequest::InviteMembersRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "InviteMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InviteMembersRequest::~InviteMembersRequest()
|
||||
{}
|
||||
|
||||
std::string InviteMembersRequest::getAliUids()const
|
||||
{
|
||||
return aliUids_;
|
||||
}
|
||||
|
||||
void InviteMembersRequest::setAliUids(const std::string& aliUids)
|
||||
{
|
||||
aliUids_ = aliUids;
|
||||
setBodyParameter("AliUids", aliUids);
|
||||
}
|
||||
|
||||
std::string InviteMembersRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void InviteMembersRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setBodyParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
44
ledgerdb/src/model/InviteMembersResult.cc
Normal file
44
ledgerdb/src/model/InviteMembersResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/InviteMembersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
InviteMembersResult::InviteMembersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InviteMembersResult::InviteMembersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InviteMembersResult::~InviteMembersResult()
|
||||
{}
|
||||
|
||||
void InviteMembersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
ledgerdb/src/model/ListJournalsRequest.cc
Normal file
84
ledgerdb/src/model/ListJournalsRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/ListJournalsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::ListJournalsRequest;
|
||||
|
||||
ListJournalsRequest::ListJournalsRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "ListJournals")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListJournalsRequest::~ListJournalsRequest()
|
||||
{}
|
||||
|
||||
std::string ListJournalsRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void ListJournalsRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string ListJournalsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListJournalsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListJournalsRequest::getClue()const
|
||||
{
|
||||
return clue_;
|
||||
}
|
||||
|
||||
void ListJournalsRequest::setClue(const std::string& clue)
|
||||
{
|
||||
clue_ = clue;
|
||||
setParameter("Clue", clue);
|
||||
}
|
||||
|
||||
int ListJournalsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListJournalsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListJournalsRequest::getMemberId()const
|
||||
{
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void ListJournalsRequest::setMemberId(const std::string& memberId)
|
||||
{
|
||||
memberId_ = memberId;
|
||||
setParameter("MemberId", memberId);
|
||||
}
|
||||
|
||||
88
ledgerdb/src/model/ListJournalsResult.cc
Normal file
88
ledgerdb/src/model/ListJournalsResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/ListJournalsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ledgerdb;
|
||||
using namespace AlibabaCloud::Ledgerdb::Model;
|
||||
|
||||
ListJournalsResult::ListJournalsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListJournalsResult::ListJournalsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListJournalsResult::~ListJournalsResult()
|
||||
{}
|
||||
|
||||
void ListJournalsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJournalsNode = value["Journals"]["Journal"];
|
||||
for (auto valueJournalsJournal : allJournalsNode)
|
||||
{
|
||||
Journal journalsObject;
|
||||
if(!valueJournalsJournal["JournalId"].isNull())
|
||||
journalsObject.journalId = valueJournalsJournal["JournalId"].asString();
|
||||
if(!valueJournalsJournal["LedgerId"].isNull())
|
||||
journalsObject.ledgerId = valueJournalsJournal["LedgerId"].asString();
|
||||
if(!valueJournalsJournal["PayloadType"].isNull())
|
||||
journalsObject.payloadType = valueJournalsJournal["PayloadType"].asString();
|
||||
if(!valueJournalsJournal["PayloadJsonString"].isNull())
|
||||
journalsObject.payloadJsonString = valueJournalsJournal["PayloadJsonString"].asString();
|
||||
if(!valueJournalsJournal["MemberId"].isNull())
|
||||
journalsObject.memberId = valueJournalsJournal["MemberId"].asString();
|
||||
if(!valueJournalsJournal["ClientId"].isNull())
|
||||
journalsObject.clientId = valueJournalsJournal["ClientId"].asString();
|
||||
if(!valueJournalsJournal["JournalHash"].isNull())
|
||||
journalsObject.journalHash = valueJournalsJournal["JournalHash"].asString();
|
||||
if(!valueJournalsJournal["Timestamp"].isNull())
|
||||
journalsObject.timestamp = std::stol(valueJournalsJournal["Timestamp"].asString());
|
||||
auto allClues = value["Clues"]["Clue"];
|
||||
for (auto value : allClues)
|
||||
journalsObject.clues.push_back(value.asString());
|
||||
journals_.push_back(journalsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListJournalsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListJournalsResult::Journal> ListJournalsResult::getJournals()const
|
||||
{
|
||||
return journals_;
|
||||
}
|
||||
|
||||
int ListJournalsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
62
ledgerdb/src/model/ListMembersRequest.cc
Normal file
62
ledgerdb/src/model/ListMembersRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ledgerdb/model/ListMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Ledgerdb::Model::ListMembersRequest;
|
||||
|
||||
ListMembersRequest::ListMembersRequest() :
|
||||
RpcServiceRequest("ledgerdb", "2019-11-22", "ListMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListMembersRequest::~ListMembersRequest()
|
||||
{}
|
||||
|
||||
std::string ListMembersRequest::getLedgerId()const
|
||||
{
|
||||
return ledgerId_;
|
||||
}
|
||||
|
||||
void ListMembersRequest::setLedgerId(const std::string& ledgerId)
|
||||
{
|
||||
ledgerId_ = ledgerId;
|
||||
setParameter("LedgerId", ledgerId);
|
||||
}
|
||||
|
||||
std::string ListMembersRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListMembersRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListMembersRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListMembersRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user