Compare commits
17 Commits
1.36.370
...
patch/2020
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a13d778e7b | ||
|
|
f16150baca | ||
|
|
a51834c8d0 | ||
|
|
23bea0505a | ||
|
|
8c15acf5c8 | ||
|
|
00cb41817f | ||
|
|
f90eac2a6c | ||
|
|
f69779be3f | ||
|
|
feab9dcc06 | ||
|
|
d1c3599e3d | ||
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd | ||
|
|
e6cff897c5 | ||
|
|
4d493b157c |
52
CHANGELOG
52
CHANGELOG
@@ -1,3 +1,55 @@
|
||||
2020-04-28 Version: 1.36.385
|
||||
- Generated 2019-03-15 for `fnf`.
|
||||
|
||||
2020-04-28 Version: 1.36.384
|
||||
- Add CompareFaceVerify API.
|
||||
|
||||
2020-04-27 Version: 1.36.383
|
||||
- Support watermark.
|
||||
|
||||
2020-04-27 Version: 1.36.382
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-27 Version: 1.36.381
|
||||
- ContrastFaceVerify Return SubCode.
|
||||
|
||||
2020-04-27 Version: 1.36.380
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-26 Version: 1.36.379
|
||||
- New api publish.
|
||||
|
||||
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.
|
||||
|
||||
2020-04-22 Version: 1.36.371
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-21 Version: 1.36.370
|
||||
- Supported API for DescribeTags.
|
||||
- Supported API for ListTagResources.
|
||||
|
||||
@@ -81,6 +81,10 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/ExecuteNodeToolResult.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlRequest.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagsRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagsResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyBackupPlanRequest.h
|
||||
@@ -111,6 +115,10 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/ResizeDiskSizeResult.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountRequest.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountResult.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionRequest.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionResult.h )
|
||||
|
||||
@@ -176,6 +184,10 @@ set(cassandra_src
|
||||
src/model/ExecuteNodeToolResult.cc
|
||||
src/model/GetCmsUrlRequest.cc
|
||||
src/model/GetCmsUrlResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ListTagsRequest.cc
|
||||
src/model/ListTagsResult.cc
|
||||
src/model/ModifyAccountPasswordRequest.cc
|
||||
src/model/ModifyAccountPasswordResult.cc
|
||||
src/model/ModifyBackupPlanRequest.cc
|
||||
@@ -206,6 +218,10 @@ set(cassandra_src
|
||||
src/model/ResizeDiskSizeResult.cc
|
||||
src/model/ResizeNodeCountRequest.cc
|
||||
src/model/ResizeNodeCountResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnTagResourcesRequest.cc
|
||||
src/model/UnTagResourcesResult.cc
|
||||
src/model/UpgradeClusterVersionRequest.cc
|
||||
src/model/UpgradeClusterVersionResult.cc )
|
||||
|
||||
|
||||
@@ -82,6 +82,10 @@
|
||||
#include "model/ExecuteNodeToolResult.h"
|
||||
#include "model/GetCmsUrlRequest.h"
|
||||
#include "model/GetCmsUrlResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ListTagsRequest.h"
|
||||
#include "model/ListTagsResult.h"
|
||||
#include "model/ModifyAccountPasswordRequest.h"
|
||||
#include "model/ModifyAccountPasswordResult.h"
|
||||
#include "model/ModifyBackupPlanRequest.h"
|
||||
@@ -112,6 +116,10 @@
|
||||
#include "model/ResizeDiskSizeResult.h"
|
||||
#include "model/ResizeNodeCountRequest.h"
|
||||
#include "model/ResizeNodeCountResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnTagResourcesRequest.h"
|
||||
#include "model/UnTagResourcesResult.h"
|
||||
#include "model/UpgradeClusterVersionRequest.h"
|
||||
#include "model/UpgradeClusterVersionResult.h"
|
||||
|
||||
@@ -213,6 +221,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCmsUrlResult> GetCmsUrlOutcome;
|
||||
typedef std::future<GetCmsUrlOutcome> GetCmsUrlOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::GetCmsUrlRequest&, const GetCmsUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCmsUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAccountPasswordResult> ModifyAccountPasswordOutcome;
|
||||
typedef std::future<ModifyAccountPasswordOutcome> ModifyAccountPasswordOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyAccountPasswordRequest&, const ModifyAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountPasswordAsyncHandler;
|
||||
@@ -258,6 +272,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ResizeNodeCountResult> ResizeNodeCountOutcome;
|
||||
typedef std::future<ResizeNodeCountOutcome> ResizeNodeCountOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ResizeNodeCountRequest&, const ResizeNodeCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeNodeCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnTagResourcesResult> UnTagResourcesOutcome;
|
||||
typedef std::future<UnTagResourcesOutcome> UnTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UnTagResourcesRequest&, const UnTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeClusterVersionResult> UpgradeClusterVersionOutcome;
|
||||
typedef std::future<UpgradeClusterVersionOutcome> UpgradeClusterVersionOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UpgradeClusterVersionRequest&, const UpgradeClusterVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClusterVersionAsyncHandler;
|
||||
@@ -356,6 +376,12 @@ namespace AlibabaCloud
|
||||
GetCmsUrlOutcome getCmsUrl(const Model::GetCmsUrlRequest &request)const;
|
||||
void getCmsUrlAsync(const Model::GetCmsUrlRequest& request, const GetCmsUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCmsUrlOutcomeCallable getCmsUrlCallable(const Model::GetCmsUrlRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ModifyAccountPasswordOutcome modifyAccountPassword(const Model::ModifyAccountPasswordRequest &request)const;
|
||||
void modifyAccountPasswordAsync(const Model::ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountPasswordOutcomeCallable modifyAccountPasswordCallable(const Model::ModifyAccountPasswordRequest& request) const;
|
||||
@@ -401,6 +427,12 @@ namespace AlibabaCloud
|
||||
ResizeNodeCountOutcome resizeNodeCount(const Model::ResizeNodeCountRequest &request)const;
|
||||
void resizeNodeCountAsync(const Model::ResizeNodeCountRequest& request, const ResizeNodeCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResizeNodeCountOutcomeCallable resizeNodeCountCallable(const Model::ResizeNodeCountRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const;
|
||||
void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const;
|
||||
UpgradeClusterVersionOutcome upgradeClusterVersion(const Model::UpgradeClusterVersionRequest &request)const;
|
||||
void upgradeClusterVersionAsync(const Model::UpgradeClusterVersionRequest& request, const UpgradeClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeClusterVersionOutcomeCallable upgradeClusterVersionCallable(const Model::UpgradeClusterVersionRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
@@ -46,6 +51,7 @@ namespace AlibabaCloud
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string expireTime;
|
||||
std::vector<Tag> tags;
|
||||
std::string maintainStartTime;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,22 +30,34 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClustersRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeClustersRequest();
|
||||
~DescribeClustersRequest();
|
||||
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
int pageNumber_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
@@ -44,6 +49,7 @@ namespace AlibabaCloud
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string expireTime;
|
||||
std::vector<Cluster::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
~ListTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::vector<Tag> tag_;
|
||||
std::vector<std::string> resourceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_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_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagResource
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string tagKey;
|
||||
std::string resourceType;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
ListTagResourcesResult();
|
||||
explicit ListTagResourcesResult(const std::string &payload);
|
||||
~ListTagResourcesResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<TagResource> getTagResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<TagResource> tagResources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_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_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTagsRequest();
|
||||
~ListTagsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
@@ -14,55 +14,43 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Push
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PUSH_EXPORT QueryPushListResult : public ServiceResult
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
struct Tag
|
||||
{
|
||||
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 tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
QueryPushListResult();
|
||||
explicit QueryPushListResult(const std::string &payload);
|
||||
~QueryPushListResult();
|
||||
int getPageSize()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
bool getHasNext()const;
|
||||
ListTagsResult();
|
||||
explicit ListTagsResult(const std::string &payload);
|
||||
~ListTagsResult();
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
bool hasNext_;
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_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_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT TagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string regionId_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
@@ -14,40 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT CreateInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateInstanceResult();
|
||||
explicit CreateInstanceResult(const std::string &payload);
|
||||
~CreateInstanceResult();
|
||||
std::string getClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_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_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT UnTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UnTagResourcesRequest();
|
||||
~UnTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::vector<std::string> getTagKey()const;
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
std::vector<std::string> tagKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_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_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT UnTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnTagResourcesResult();
|
||||
explicit UnTagResourcesResult(const std::string &payload);
|
||||
~UnTagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
@@ -1131,6 +1131,78 @@ CassandraClient::GetCmsUrlOutcomeCallable CassandraClient::getCmsUrlCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ListTagResourcesOutcome CassandraClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::ListTagResourcesOutcomeCallable CassandraClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ListTagsOutcome CassandraClient::listTags(const ListTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagsOutcome(ListTagsResult(outcome.result()));
|
||||
else
|
||||
return ListTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::listTagsAsync(const ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::ListTagsOutcomeCallable CassandraClient::listTagsCallable(const ListTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ModifyAccountPasswordOutcome CassandraClient::modifyAccountPassword(const ModifyAccountPasswordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1743,78 @@ CassandraClient::ResizeNodeCountOutcomeCallable CassandraClient::resizeNodeCount
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::TagResourcesOutcome CassandraClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::TagResourcesOutcomeCallable CassandraClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::UnTagResourcesOutcome CassandraClient::unTagResources(const UnTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnTagResourcesOutcome(UnTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return UnTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::unTagResourcesAsync(const UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::UnTagResourcesOutcomeCallable CassandraClient::unTagResourcesCallable(const UnTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::UpgradeClusterVersionOutcome CassandraClient::upgradeClusterVersion(const UpgradeClusterVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -66,6 +66,16 @@ void DescribeClusterResult::parse(const std::string &payload)
|
||||
cluster_.maintainEndTime = clusterNode["MaintainEndTime"].asString();
|
||||
if(!clusterNode["LockMode"].isNull())
|
||||
cluster_.lockMode = clusterNode["LockMode"].asString();
|
||||
auto allTagsNode = clusterNode["Tags"]["Tag"];
|
||||
for (auto clusterNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Cluster::Tag tagObject;
|
||||
if(!clusterNodeTagsTag["Key"].isNull())
|
||||
tagObject.key = clusterNodeTagsTag["Key"].asString();
|
||||
if(!clusterNodeTagsTag["Value"].isNull())
|
||||
tagObject.value = clusterNodeTagsTag["Value"].asString();
|
||||
cluster_.tags.push_back(tagObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeClustersRequest::DescribeClustersRequest() :
|
||||
DescribeClustersRequest::~DescribeClustersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClustersRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
int DescribeClustersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,3 +71,19 @@ void DescribeClustersRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeClustersRequest::Tag> DescribeClustersRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,16 @@ void DescribeClustersResult::parse(const std::string &payload)
|
||||
clustersObject.dataCenterCount = std::stoi(valueClustersCluster["DataCenterCount"].asString());
|
||||
if(!valueClustersCluster["LockMode"].isNull())
|
||||
clustersObject.lockMode = valueClustersCluster["LockMode"].asString();
|
||||
auto allTagsNode = allClustersNode["Tags"]["Tag"];
|
||||
for (auto allClustersNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Cluster::Tag tagsObject;
|
||||
if(!allClustersNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
|
||||
if(!allClustersNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
|
||||
clustersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
80
cassandra/src/model/ListTagResourcesRequest.cc
Normal file
80
cassandra/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/cassandra/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
70
cassandra/src/model/ListTagResourcesResult.cc
Normal file
70
cassandra/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/cassandra/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/ListTagsRequest.cc
Normal file
40
cassandra/src/model/ListTagsRequest.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/cassandra/model/ListTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ListTagsRequest;
|
||||
|
||||
ListTagsRequest::ListTagsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ListTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagsRequest::~ListTagsRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
cassandra/src/model/ListTagsResult.cc
Normal file
59
cassandra/src/model/ListTagsResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/cassandra/model/ListTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ListTagsResult::ListTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsResult::ListTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsResult::~ListTagsResult()
|
||||
{}
|
||||
|
||||
void ListTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueTagsTag["TagKey"].asString();
|
||||
if(!valueTagsTag["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueTagsTag["TagValue"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsResult::Tag> ListTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
69
cassandra/src/model/TagResourcesRequest.cc
Normal file
69
cassandra/src/model/TagResourcesRequest.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/cassandra/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
44
cassandra/src/model/TagResourcesResult.cc
Normal file
44
cassandra/src/model/TagResourcesResult.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/cassandra/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
77
cassandra/src/model/UnTagResourcesRequest.cc
Normal file
77
cassandra/src/model/UnTagResourcesRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/UnTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::UnTagResourcesRequest;
|
||||
|
||||
UnTagResourcesRequest::UnTagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "UnTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnTagResourcesRequest::~UnTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string UnTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool UnTagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,45 +14,31 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/CreateInstanceResult.h>
|
||||
#include <alibabacloud/cassandra/model/UnTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult() :
|
||||
UnTagResourcesResult::UnTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
|
||||
UnTagResourcesResult::UnTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceResult::~CreateInstanceResult()
|
||||
UnTagResourcesResult::~UnTagResourcesResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceResult::parse(const std::string &payload)
|
||||
void UnTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ set(cloudauth_public_header
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h
|
||||
@@ -84,6 +86,8 @@ set(cloudauth_public_header_model
|
||||
|
||||
set(cloudauth_src
|
||||
src/CloudauthClient.cc
|
||||
src/model/CompareFaceVerifyRequest.cc
|
||||
src/model/CompareFaceVerifyResult.cc
|
||||
src/model/CompareFacesRequest.cc
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/ContrastFaceVerifyRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
#include "model/CompareFaceVerifyRequest.h"
|
||||
#include "model/CompareFaceVerifyResult.h"
|
||||
#include "model/CompareFacesRequest.h"
|
||||
#include "model/CompareFacesResult.h"
|
||||
#include "model/ContrastFaceVerifyRequest.h"
|
||||
@@ -91,6 +93,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CompareFaceVerifyResult> CompareFaceVerifyOutcome;
|
||||
typedef std::future<CompareFaceVerifyOutcome> CompareFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFaceVerifyRequest&, const CompareFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
|
||||
@@ -186,6 +191,9 @@ namespace AlibabaCloud
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
CompareFaceVerifyOutcome compareFaceVerify(const Model::CompareFaceVerifyRequest &request)const;
|
||||
void compareFaceVerifyAsync(const Model::CompareFaceVerifyRequest& request, const CompareFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFaceVerifyOutcomeCallable compareFaceVerifyCallable(const Model::CompareFaceVerifyRequest& request) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFaceVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFaceVerifyRequest();
|
||||
~CompareFaceVerifyRequest();
|
||||
|
||||
std::string getTargetFaceContrastPictureUrl()const;
|
||||
void setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getTargetCertifyId()const;
|
||||
void setTargetCertifyId(const std::string& targetCertifyId);
|
||||
std::string getSourceOssObjectName()const;
|
||||
void setSourceOssObjectName(const std::string& sourceOssObjectName);
|
||||
std::string getTargetFaceContrastPicture()const;
|
||||
void setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture);
|
||||
std::string getTargetOssBucketName()const;
|
||||
void setTargetOssBucketName(const std::string& targetOssBucketName);
|
||||
std::string getSourceOssBucketName()const;
|
||||
void setSourceOssBucketName(const std::string& sourceOssBucketName);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getTargetOssObjectName()const;
|
||||
void setTargetOssObjectName(const std::string& targetOssObjectName);
|
||||
std::string getSourceFaceContrastPicture()const;
|
||||
void setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getSourceFaceContrastPictureUrl()const;
|
||||
void setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl);
|
||||
std::string getSourceCertifyId()const;
|
||||
void setSourceCertifyId(const std::string& sourceCertifyId);
|
||||
|
||||
private:
|
||||
std::string targetFaceContrastPictureUrl_;
|
||||
std::string productCode_;
|
||||
std::string targetCertifyId_;
|
||||
std::string sourceOssObjectName_;
|
||||
std::string targetFaceContrastPicture_;
|
||||
std::string targetOssBucketName_;
|
||||
std::string sourceOssBucketName_;
|
||||
std::string outerOrderNo_;
|
||||
std::string targetOssObjectName_;
|
||||
std::string sourceFaceContrastPicture_;
|
||||
long sceneId_;
|
||||
std::string sourceFaceContrastPictureUrl_;
|
||||
std::string sourceCertifyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_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_CLOUDAUTH_MODEL_COMPAREFACEVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFaceVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
float verifyScore;
|
||||
};
|
||||
|
||||
|
||||
CompareFaceVerifyResult();
|
||||
explicit CompareFaceVerifyResult(const std::string &payload);
|
||||
~CompareFaceVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYRESULT_H_
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
std::string passed;
|
||||
std::string identityInfo;
|
||||
std::string materialInfo;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
VerifyDeviceRequest();
|
||||
~VerifyDeviceRequest();
|
||||
|
||||
std::string getExtInfo()const;
|
||||
void setExtInfo(const std::string& extInfo);
|
||||
std::string getCertifyData()const;
|
||||
void setCertifyData(const std::string& certifyData);
|
||||
std::string getAppVersion()const;
|
||||
@@ -43,6 +45,7 @@ namespace AlibabaCloud
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
|
||||
private:
|
||||
std::string extInfo_;
|
||||
std::string certifyData_;
|
||||
std::string appVersion_;
|
||||
std::string certifyId_;
|
||||
|
||||
@@ -51,6 +51,42 @@ CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::str
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::CompareFaceVerifyOutcome CloudauthClient::compareFaceVerify(const CompareFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFaceVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFaceVerifyOutcome(CompareFaceVerifyResult(outcome.result()));
|
||||
else
|
||||
return CompareFaceVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFaceVerifyAsync(const CompareFaceVerifyRequest& request, const CompareFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaceVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFaceVerifyOutcomeCallable CloudauthClient::compareFaceVerifyCallable(const CompareFaceVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFaceVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaceVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
172
cloudauth/src/model/CompareFaceVerifyRequest.cc
Normal file
172
cloudauth/src/model/CompareFaceVerifyRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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/cloudauth/model/CompareFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFaceVerifyRequest;
|
||||
|
||||
CompareFaceVerifyRequest::CompareFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CompareFaceVerifyRequest::~CompareFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
|
||||
{
|
||||
return targetFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
|
||||
{
|
||||
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
|
||||
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetCertifyId()const
|
||||
{
|
||||
return targetCertifyId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCertifyId)
|
||||
{
|
||||
targetCertifyId_ = targetCertifyId;
|
||||
setBodyParameter("TargetCertifyId", targetCertifyId);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
|
||||
{
|
||||
return sourceOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
|
||||
{
|
||||
sourceOssObjectName_ = sourceOssObjectName;
|
||||
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const
|
||||
{
|
||||
return targetFaceContrastPicture_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture)
|
||||
{
|
||||
targetFaceContrastPicture_ = targetFaceContrastPicture;
|
||||
setBodyParameter("TargetFaceContrastPicture", targetFaceContrastPicture);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssBucketName()const
|
||||
{
|
||||
return targetOssBucketName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetOssBucketName)
|
||||
{
|
||||
targetOssBucketName_ = targetOssBucketName;
|
||||
setBodyParameter("TargetOssBucketName", targetOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
|
||||
{
|
||||
return sourceOssBucketName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
|
||||
{
|
||||
sourceOssBucketName_ = sourceOssBucketName;
|
||||
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
|
||||
{
|
||||
return targetOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
|
||||
{
|
||||
targetOssObjectName_ = targetOssObjectName;
|
||||
setBodyParameter("TargetOssObjectName", targetOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const
|
||||
{
|
||||
return sourceFaceContrastPicture_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture)
|
||||
{
|
||||
sourceFaceContrastPicture_ = sourceFaceContrastPicture;
|
||||
setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture);
|
||||
}
|
||||
|
||||
long CompareFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPictureUrl()const
|
||||
{
|
||||
return sourceFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl)
|
||||
{
|
||||
sourceFaceContrastPictureUrl_ = sourceFaceContrastPictureUrl;
|
||||
setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
|
||||
{
|
||||
return sourceCertifyId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
|
||||
{
|
||||
sourceCertifyId_ = sourceCertifyId;
|
||||
setBodyParameter("SourceCertifyId", sourceCertifyId);
|
||||
}
|
||||
|
||||
68
cloudauth/src/model/CompareFaceVerifyResult.cc
Normal file
68
cloudauth/src/model/CompareFaceVerifyResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/cloudauth/model/CompareFaceVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFaceVerifyResult::CompareFaceVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFaceVerifyResult::CompareFaceVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFaceVerifyResult::~CompareFaceVerifyResult()
|
||||
{}
|
||||
|
||||
void CompareFaceVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["VerifyScore"].isNull())
|
||||
resultObject_.verifyScore = std::stof(resultObjectNode["VerifyScore"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
CompareFaceVerifyResult::ResultObject CompareFaceVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void ContrastFaceVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -27,6 +27,17 @@ VerifyDeviceRequest::VerifyDeviceRequest() :
|
||||
VerifyDeviceRequest::~VerifyDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyDeviceRequest::getExtInfo()const
|
||||
{
|
||||
return extInfo_;
|
||||
}
|
||||
|
||||
void VerifyDeviceRequest::setExtInfo(const std::string& extInfo)
|
||||
{
|
||||
extInfo_ = extInfo;
|
||||
setBodyParameter("ExtInfo", extInfo);
|
||||
}
|
||||
|
||||
std::string VerifyDeviceRequest::getCertifyData()const
|
||||
{
|
||||
return certifyData_;
|
||||
|
||||
@@ -145,6 +145,7 @@ CurlHttpClient::makeRequest(const HttpRequest &request) {
|
||||
curl_easy_setopt(curlHandle_, CURLOPT_READFUNCTION, readCallback);
|
||||
curl_easy_setopt(curlHandle_, CURLOPT_UPLOAD, 1L);
|
||||
curl_easy_setopt(curlHandle_, CURLOPT_READDATA, ctx);
|
||||
free(ctx);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -194,6 +195,7 @@ CurlHttpClient::makeRequest(const HttpRequest &request) {
|
||||
}
|
||||
|
||||
CURLcode res = curl_easy_perform(curlHandle_);
|
||||
curl_slist_free_all(list);
|
||||
switch (res) {
|
||||
case CURLE_OK: {
|
||||
long response_code;
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#include <iomanip>
|
||||
#include <json/json.h>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
|
||||
#ifndef WIN32
|
||||
#include "LocalEndpoints.h"
|
||||
@@ -39,7 +42,10 @@ namespace
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
std::mutex mutex;
|
||||
std::condition_variable cv;
|
||||
bool local_endpoints_loaded = false;
|
||||
bool local_endpoints_loading = false;
|
||||
typedef std::string productType;
|
||||
typedef std::string regionType;
|
||||
typedef std::string endpointType;
|
||||
@@ -60,6 +66,8 @@ static void LoadLocalEndpoints()
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
std::unique_lock<std::mutex> lock(mutex);
|
||||
|
||||
if (local_endpoints_loaded)
|
||||
{
|
||||
return;
|
||||
@@ -76,6 +84,10 @@ static void LoadLocalEndpoints()
|
||||
return;
|
||||
}
|
||||
|
||||
cv.wait(lock, [] { return !local_endpoints_loading; });// continue if loading completed
|
||||
|
||||
local_endpoints_loading = true;
|
||||
|
||||
auto regions = value["regions"];
|
||||
for (const auto ®ion : regions)
|
||||
{
|
||||
@@ -107,6 +119,10 @@ static void LoadLocalEndpoints()
|
||||
allLocalEndpoints[product] = p;
|
||||
}
|
||||
local_endpoints_loaded = true;
|
||||
local_endpoints_loading = false;
|
||||
|
||||
lock.unlock();
|
||||
cv.notify_one();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -139,7 +139,7 @@ HttpMessage::HeaderValueType HttpMessage::header(KnownHeader header)const {
|
||||
|
||||
void HttpMessage::setBody(const char *data, size_t size) {
|
||||
if (body_)
|
||||
delete body_;
|
||||
delete[] body_;
|
||||
body_ = nullptr;
|
||||
bodySize_ = 0;
|
||||
if (size) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setName(const std::string& name);
|
||||
std::string getDefinition()const;
|
||||
void setDefinition(const std::string& definition);
|
||||
std::string getExternalStorageLocation()const;
|
||||
void setExternalStorageLocation(const std::string& externalStorageLocation);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
||||
std::string roleArn_;
|
||||
std::string name_;
|
||||
std::string definition_;
|
||||
std::string externalStorageLocation_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
std::string getDefinition()const;
|
||||
std::string getLastModifiedTime()const;
|
||||
std::string getId()const;
|
||||
std::string getExternalStorageLocation()const;
|
||||
std::string getRoleArn()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -55,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string definition_;
|
||||
std::string lastModifiedTime_;
|
||||
std::string id_;
|
||||
std::string externalStorageLocation_;
|
||||
std::string roleArn_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -42,7 +42,9 @@ namespace AlibabaCloud
|
||||
std::string getStoppedTime()const;
|
||||
std::string getFlowName()const;
|
||||
std::string getOutput()const;
|
||||
std::string getExternalOutputUri()const;
|
||||
std::string getStartedTime()const;
|
||||
std::string getExternalInputUri()const;
|
||||
std::string getFlowDefinition()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -54,7 +56,9 @@ namespace AlibabaCloud
|
||||
std::string stoppedTime_;
|
||||
std::string flowName_;
|
||||
std::string output_;
|
||||
std::string externalOutputUri_;
|
||||
std::string startedTime_;
|
||||
std::string externalInputUri_;
|
||||
std::string flowDefinition_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
std::string getDefinition()const;
|
||||
std::string getLastModifiedTime()const;
|
||||
std::string getId()const;
|
||||
std::string getExternalStorageLocation()const;
|
||||
std::string getRoleArn()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -55,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string definition_;
|
||||
std::string lastModifiedTime_;
|
||||
std::string id_;
|
||||
std::string externalStorageLocation_;
|
||||
std::string roleArn_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -39,7 +39,9 @@ namespace AlibabaCloud
|
||||
std::string stoppedTime;
|
||||
std::string flowName;
|
||||
std::string output;
|
||||
std::string externalOutputUri;
|
||||
std::string startedTime;
|
||||
std::string externalInputUri;
|
||||
std::string flowDefinition;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string definition;
|
||||
std::string lastModifiedTime;
|
||||
std::string id;
|
||||
std::string externalStorageLocation;
|
||||
std::string roleArn;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -42,7 +42,9 @@ namespace AlibabaCloud
|
||||
std::string getStoppedTime()const;
|
||||
std::string getFlowName()const;
|
||||
std::string getOutput()const;
|
||||
std::string getExternalOutputUri()const;
|
||||
std::string getStartedTime()const;
|
||||
std::string getExternalInputUri()const;
|
||||
std::string getFlowDefinition()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -54,7 +56,9 @@ namespace AlibabaCloud
|
||||
std::string stoppedTime_;
|
||||
std::string flowName_;
|
||||
std::string output_;
|
||||
std::string externalOutputUri_;
|
||||
std::string startedTime_;
|
||||
std::string externalInputUri_;
|
||||
std::string flowDefinition_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -42,7 +42,9 @@ namespace AlibabaCloud
|
||||
std::string getStoppedTime()const;
|
||||
std::string getFlowName()const;
|
||||
std::string getOutput()const;
|
||||
std::string getExternalOutputUri()const;
|
||||
std::string getStartedTime()const;
|
||||
std::string getExternalInputUri()const;
|
||||
std::string getFlowDefinition()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -54,7 +56,9 @@ namespace AlibabaCloud
|
||||
std::string stoppedTime_;
|
||||
std::string flowName_;
|
||||
std::string output_;
|
||||
std::string externalOutputUri_;
|
||||
std::string startedTime_;
|
||||
std::string externalInputUri_;
|
||||
std::string flowDefinition_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setName(const std::string& name);
|
||||
std::string getDefinition()const;
|
||||
void setDefinition(const std::string& definition);
|
||||
std::string getExternalStorageLocation()const;
|
||||
void setExternalStorageLocation(const std::string& externalStorageLocation);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
||||
std::string roleArn_;
|
||||
std::string name_;
|
||||
std::string definition_;
|
||||
std::string externalStorageLocation_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
std::string getDefinition()const;
|
||||
std::string getLastModifiedTime()const;
|
||||
std::string getId()const;
|
||||
std::string getExternalStorageLocation()const;
|
||||
std::string getRoleArn()const;
|
||||
std::string getName()const;
|
||||
|
||||
@@ -55,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string definition_;
|
||||
std::string lastModifiedTime_;
|
||||
std::string id_;
|
||||
std::string externalStorageLocation_;
|
||||
std::string roleArn_;
|
||||
std::string name_;
|
||||
|
||||
|
||||
@@ -93,3 +93,14 @@ void CreateFlowRequest::setDefinition(const std::string& definition)
|
||||
setBodyParameter("Definition", definition);
|
||||
}
|
||||
|
||||
std::string CreateFlowRequest::getExternalStorageLocation()const
|
||||
{
|
||||
return externalStorageLocation_;
|
||||
}
|
||||
|
||||
void CreateFlowRequest::setExternalStorageLocation(const std::string& externalStorageLocation)
|
||||
{
|
||||
externalStorageLocation_ = externalStorageLocation;
|
||||
setBodyParameter("ExternalStorageLocation", externalStorageLocation);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,8 @@ void CreateFlowResult::parse(const std::string &payload)
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["LastModifiedTime"].isNull())
|
||||
lastModifiedTime_ = value["LastModifiedTime"].asString();
|
||||
if(!value["ExternalStorageLocation"].isNull())
|
||||
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -88,6 +90,11 @@ std::string CreateFlowResult::getId()const
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string CreateFlowResult::getExternalStorageLocation()const
|
||||
{
|
||||
return externalStorageLocation_;
|
||||
}
|
||||
|
||||
std::string CreateFlowResult::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
|
||||
@@ -55,6 +55,10 @@ void DescribeExecutionResult::parse(const std::string &payload)
|
||||
startedTime_ = value["StartedTime"].asString();
|
||||
if(!value["StoppedTime"].isNull())
|
||||
stoppedTime_ = value["StoppedTime"].asString();
|
||||
if(!value["ExternalInputUri"].isNull())
|
||||
externalInputUri_ = value["ExternalInputUri"].asString();
|
||||
if(!value["ExternalOutputUri"].isNull())
|
||||
externalOutputUri_ = value["ExternalOutputUri"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -83,11 +87,21 @@ std::string DescribeExecutionResult::getOutput()const
|
||||
return output_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionResult::getExternalOutputUri()const
|
||||
{
|
||||
return externalOutputUri_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionResult::getStartedTime()const
|
||||
{
|
||||
return startedTime_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionResult::getExternalInputUri()const
|
||||
{
|
||||
return externalInputUri_;
|
||||
}
|
||||
|
||||
std::string DescribeExecutionResult::getFlowDefinition()const
|
||||
{
|
||||
return flowDefinition_;
|
||||
|
||||
@@ -55,6 +55,8 @@ void DescribeFlowResult::parse(const std::string &payload)
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["LastModifiedTime"].isNull())
|
||||
lastModifiedTime_ = value["LastModifiedTime"].asString();
|
||||
if(!value["ExternalStorageLocation"].isNull())
|
||||
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -88,6 +90,11 @@ std::string DescribeFlowResult::getId()const
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowResult::getExternalStorageLocation()const
|
||||
{
|
||||
return externalStorageLocation_;
|
||||
}
|
||||
|
||||
std::string DescribeFlowResult::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
|
||||
@@ -59,6 +59,10 @@ void ListExecutionsResult::parse(const std::string &payload)
|
||||
executionsObject.startedTime = valueExecutionsExecutionsItem["StartedTime"].asString();
|
||||
if(!valueExecutionsExecutionsItem["StoppedTime"].isNull())
|
||||
executionsObject.stoppedTime = valueExecutionsExecutionsItem["StoppedTime"].asString();
|
||||
if(!valueExecutionsExecutionsItem["ExternalInputUri"].isNull())
|
||||
executionsObject.externalInputUri = valueExecutionsExecutionsItem["ExternalInputUri"].asString();
|
||||
if(!valueExecutionsExecutionsItem["ExternalOutputUri"].isNull())
|
||||
executionsObject.externalOutputUri = valueExecutionsExecutionsItem["ExternalOutputUri"].asString();
|
||||
executions_.push_back(executionsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -59,6 +59,8 @@ void ListFlowsResult::parse(const std::string &payload)
|
||||
flowsObject.createdTime = valueFlowsFlowsItem["CreatedTime"].asString();
|
||||
if(!valueFlowsFlowsItem["LastModifiedTime"].isNull())
|
||||
flowsObject.lastModifiedTime = valueFlowsFlowsItem["LastModifiedTime"].asString();
|
||||
if(!valueFlowsFlowsItem["ExternalStorageLocation"].isNull())
|
||||
flowsObject.externalStorageLocation = valueFlowsFlowsItem["ExternalStorageLocation"].asString();
|
||||
flows_.push_back(flowsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
|
||||
@@ -55,6 +55,10 @@ void StartExecutionResult::parse(const std::string &payload)
|
||||
startedTime_ = value["StartedTime"].asString();
|
||||
if(!value["StoppedTime"].isNull())
|
||||
stoppedTime_ = value["StoppedTime"].asString();
|
||||
if(!value["ExternalInputUri"].isNull())
|
||||
externalInputUri_ = value["ExternalInputUri"].asString();
|
||||
if(!value["ExternalOutputUri"].isNull())
|
||||
externalOutputUri_ = value["ExternalOutputUri"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -83,11 +87,21 @@ std::string StartExecutionResult::getOutput()const
|
||||
return output_;
|
||||
}
|
||||
|
||||
std::string StartExecutionResult::getExternalOutputUri()const
|
||||
{
|
||||
return externalOutputUri_;
|
||||
}
|
||||
|
||||
std::string StartExecutionResult::getStartedTime()const
|
||||
{
|
||||
return startedTime_;
|
||||
}
|
||||
|
||||
std::string StartExecutionResult::getExternalInputUri()const
|
||||
{
|
||||
return externalInputUri_;
|
||||
}
|
||||
|
||||
std::string StartExecutionResult::getFlowDefinition()const
|
||||
{
|
||||
return flowDefinition_;
|
||||
|
||||
@@ -55,6 +55,10 @@ void StopExecutionResult::parse(const std::string &payload)
|
||||
startedTime_ = value["StartedTime"].asString();
|
||||
if(!value["StoppedTime"].isNull())
|
||||
stoppedTime_ = value["StoppedTime"].asString();
|
||||
if(!value["ExternalInputUri"].isNull())
|
||||
externalInputUri_ = value["ExternalInputUri"].asString();
|
||||
if(!value["ExternalOutputUri"].isNull())
|
||||
externalOutputUri_ = value["ExternalOutputUri"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -83,11 +87,21 @@ std::string StopExecutionResult::getOutput()const
|
||||
return output_;
|
||||
}
|
||||
|
||||
std::string StopExecutionResult::getExternalOutputUri()const
|
||||
{
|
||||
return externalOutputUri_;
|
||||
}
|
||||
|
||||
std::string StopExecutionResult::getStartedTime()const
|
||||
{
|
||||
return startedTime_;
|
||||
}
|
||||
|
||||
std::string StopExecutionResult::getExternalInputUri()const
|
||||
{
|
||||
return externalInputUri_;
|
||||
}
|
||||
|
||||
std::string StopExecutionResult::getFlowDefinition()const
|
||||
{
|
||||
return flowDefinition_;
|
||||
|
||||
@@ -93,3 +93,14 @@ void UpdateFlowRequest::setDefinition(const std::string& definition)
|
||||
setBodyParameter("Definition", definition);
|
||||
}
|
||||
|
||||
std::string UpdateFlowRequest::getExternalStorageLocation()const
|
||||
{
|
||||
return externalStorageLocation_;
|
||||
}
|
||||
|
||||
void UpdateFlowRequest::setExternalStorageLocation(const std::string& externalStorageLocation)
|
||||
{
|
||||
externalStorageLocation_ = externalStorageLocation;
|
||||
setBodyParameter("ExternalStorageLocation", externalStorageLocation);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,8 @@ void UpdateFlowResult::parse(const std::string &payload)
|
||||
createdTime_ = value["CreatedTime"].asString();
|
||||
if(!value["LastModifiedTime"].isNull())
|
||||
lastModifiedTime_ = value["LastModifiedTime"].asString();
|
||||
if(!value["ExternalStorageLocation"].isNull())
|
||||
externalStorageLocation_ = value["ExternalStorageLocation"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -88,6 +90,11 @@ std::string UpdateFlowResult::getId()const
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::string UpdateFlowResult::getExternalStorageLocation()const
|
||||
{
|
||||
return externalStorageLocation_;
|
||||
}
|
||||
|
||||
std::string UpdateFlowResult::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/CreateClusterResult.h
|
||||
include/alibabacloud/hbase/model/CreateHbaseHaSlbRequest.h
|
||||
include/alibabacloud/hbase/model/CreateHbaseHaSlbResult.h
|
||||
include/alibabacloud/hbase/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/hbase/model/CreateInstanceResult.h
|
||||
include/alibabacloud/hbase/model/CreateRestorePlanRequest.h
|
||||
include/alibabacloud/hbase/model/CreateRestorePlanResult.h
|
||||
include/alibabacloud/hbase/model/DeleteHbaseHaSlbRequest.h
|
||||
@@ -41,6 +39,8 @@ set(hbase_public_header_model
|
||||
include/alibabacloud/hbase/model/DeleteInstanceResult.h
|
||||
include/alibabacloud/hbase/model/DeleteUserHdfsInfoRequest.h
|
||||
include/alibabacloud/hbase/model/DeleteUserHdfsInfoResult.h
|
||||
include/alibabacloud/hbase/model/DescribeAvailableResourceRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeAvailableResourceResult.h
|
||||
include/alibabacloud/hbase/model/DescribeBackupPlanConfigRequest.h
|
||||
include/alibabacloud/hbase/model/DescribeBackupPlanConfigResult.h
|
||||
include/alibabacloud/hbase/model/DescribeBackupStatusRequest.h
|
||||
@@ -124,8 +124,6 @@ set(hbase_src
|
||||
src/model/CreateClusterResult.cc
|
||||
src/model/CreateHbaseHaSlbRequest.cc
|
||||
src/model/CreateHbaseHaSlbResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateRestorePlanRequest.cc
|
||||
src/model/CreateRestorePlanResult.cc
|
||||
src/model/DeleteHbaseHaSlbRequest.cc
|
||||
@@ -134,6 +132,8 @@ set(hbase_src
|
||||
src/model/DeleteInstanceResult.cc
|
||||
src/model/DeleteUserHdfsInfoRequest.cc
|
||||
src/model/DeleteUserHdfsInfoResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
src/model/DescribeAvailableResourceResult.cc
|
||||
src/model/DescribeBackupPlanConfigRequest.cc
|
||||
src/model/DescribeBackupPlanConfigResult.cc
|
||||
src/model/DescribeBackupStatusRequest.cc
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
#include "model/CreateClusterResult.h"
|
||||
#include "model/CreateHbaseHaSlbRequest.h"
|
||||
#include "model/CreateHbaseHaSlbResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateRestorePlanRequest.h"
|
||||
#include "model/CreateRestorePlanResult.h"
|
||||
#include "model/DeleteHbaseHaSlbRequest.h"
|
||||
@@ -42,6 +40,8 @@
|
||||
#include "model/DeleteInstanceResult.h"
|
||||
#include "model/DeleteUserHdfsInfoRequest.h"
|
||||
#include "model/DeleteUserHdfsInfoResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
#include "model/DescribeAvailableResourceResult.h"
|
||||
#include "model/DescribeBackupPlanConfigRequest.h"
|
||||
#include "model/DescribeBackupPlanConfigResult.h"
|
||||
#include "model/DescribeBackupStatusRequest.h"
|
||||
@@ -136,9 +136,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateHbaseHaSlbResult> CreateHbaseHaSlbOutcome;
|
||||
typedef std::future<CreateHbaseHaSlbOutcome> CreateHbaseHaSlbOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::CreateHbaseHaSlbRequest&, const CreateHbaseHaSlbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateHbaseHaSlbAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRestorePlanResult> CreateRestorePlanOutcome;
|
||||
typedef std::future<CreateRestorePlanOutcome> CreateRestorePlanOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::CreateRestorePlanRequest&, const CreateRestorePlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRestorePlanAsyncHandler;
|
||||
@@ -151,6 +148,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteUserHdfsInfoResult> DeleteUserHdfsInfoOutcome;
|
||||
typedef std::future<DeleteUserHdfsInfoOutcome> DeleteUserHdfsInfoOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DeleteUserHdfsInfoRequest&, const DeleteUserHdfsInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserHdfsInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAvailableResourceResult> DescribeAvailableResourceOutcome;
|
||||
typedef std::future<DescribeAvailableResourceOutcome> DescribeAvailableResourceOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeAvailableResourceRequest&, const DescribeAvailableResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAvailableResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBackupPlanConfigResult> DescribeBackupPlanConfigOutcome;
|
||||
typedef std::future<DescribeBackupPlanConfigOutcome> DescribeBackupPlanConfigOutcomeCallable;
|
||||
typedef std::function<void(const HBaseClient*, const Model::DescribeBackupPlanConfigRequest&, const DescribeBackupPlanConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBackupPlanConfigAsyncHandler;
|
||||
@@ -276,9 +276,6 @@ namespace AlibabaCloud
|
||||
CreateHbaseHaSlbOutcome createHbaseHaSlb(const Model::CreateHbaseHaSlbRequest &request)const;
|
||||
void createHbaseHaSlbAsync(const Model::CreateHbaseHaSlbRequest& request, const CreateHbaseHaSlbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateHbaseHaSlbOutcomeCallable createHbaseHaSlbCallable(const Model::CreateHbaseHaSlbRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
CreateRestorePlanOutcome createRestorePlan(const Model::CreateRestorePlanRequest &request)const;
|
||||
void createRestorePlanAsync(const Model::CreateRestorePlanRequest& request, const CreateRestorePlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRestorePlanOutcomeCallable createRestorePlanCallable(const Model::CreateRestorePlanRequest& request) const;
|
||||
@@ -291,6 +288,9 @@ namespace AlibabaCloud
|
||||
DeleteUserHdfsInfoOutcome deleteUserHdfsInfo(const Model::DeleteUserHdfsInfoRequest &request)const;
|
||||
void deleteUserHdfsInfoAsync(const Model::DeleteUserHdfsInfoRequest& request, const DeleteUserHdfsInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteUserHdfsInfoOutcomeCallable deleteUserHdfsInfoCallable(const Model::DeleteUserHdfsInfoRequest& request) const;
|
||||
DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const;
|
||||
void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const;
|
||||
DescribeBackupPlanConfigOutcome describeBackupPlanConfig(const Model::DescribeBackupPlanConfigRequest &request)const;
|
||||
void describeBackupPlanConfigAsync(const Model::DescribeBackupPlanConfigRequest& request, const DescribeBackupPlanConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBackupPlanConfigOutcomeCallable describeBackupPlanConfigCallable(const Model::DescribeBackupPlanConfigRequest& request) const;
|
||||
|
||||
@@ -1,129 +0,0 @@
|
||||
/*
|
||||
* 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_HBASE_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT CreateInstanceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateInstanceRequest();
|
||||
~CreateInstanceRequest();
|
||||
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
std::string getDbInstanceConnType()const;
|
||||
void setDbInstanceConnType(const std::string& dbInstanceConnType);
|
||||
std::string getEngineVersion()const;
|
||||
void setEngineVersion(const std::string& engineVersion);
|
||||
std::string getDepMode()const;
|
||||
void setDepMode(const std::string& depMode);
|
||||
std::string getBackupId()const;
|
||||
void setBackupId(const std::string& backupId);
|
||||
std::string getDbInstanceType()const;
|
||||
void setDbInstanceType(const std::string& dbInstanceType);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getSecurityIPList()const;
|
||||
void setSecurityIPList(const std::string& securityIPList);
|
||||
std::string getAutoRenew()const;
|
||||
void setAutoRenew(const std::string& autoRenew);
|
||||
std::string getNetType()const;
|
||||
void setNetType(const std::string& netType);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getCoreDiskType()const;
|
||||
void setCoreDiskType(const std::string& coreDiskType);
|
||||
std::string getPricingCycle()const;
|
||||
void setPricingCycle(const std::string& pricingCycle);
|
||||
std::string getCoreInstanceQuantity()const;
|
||||
void setCoreInstanceQuantity(const std::string& coreInstanceQuantity);
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getEngine()const;
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getRestoreTime()const;
|
||||
void setRestoreTime(const std::string& restoreTime);
|
||||
std::string getSrcDBInstanceId()const;
|
||||
void setSrcDBInstanceId(const std::string& srcDBInstanceId);
|
||||
std::string getMasterInstanceType()const;
|
||||
void setMasterInstanceType(const std::string& masterInstanceType);
|
||||
std::string getColdStorageSize()const;
|
||||
void setColdStorageSize(const std::string& coldStorageSize);
|
||||
std::string getCoreDiskQuantity()const;
|
||||
void setCoreDiskQuantity(const std::string& coreDiskQuantity);
|
||||
std::string getIsColdStorage()const;
|
||||
void setIsColdStorage(const std::string& isColdStorage);
|
||||
std::string getCoreInstanceType()const;
|
||||
void setCoreInstanceType(const std::string& coreInstanceType);
|
||||
std::string getCoreDiskSize()const;
|
||||
void setCoreDiskSize(const std::string& coreDiskSize);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
std::string getDbType()const;
|
||||
void setDbType(const std::string& dbType);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
std::string dbInstanceConnType_;
|
||||
std::string engineVersion_;
|
||||
std::string depMode_;
|
||||
std::string backupId_;
|
||||
std::string dbInstanceType_;
|
||||
std::string vSwitchId_;
|
||||
std::string securityIPList_;
|
||||
std::string autoRenew_;
|
||||
std::string netType_;
|
||||
std::string zoneId_;
|
||||
std::string coreDiskType_;
|
||||
std::string pricingCycle_;
|
||||
std::string coreInstanceQuantity_;
|
||||
std::string duration_;
|
||||
std::string regionId_;
|
||||
std::string engine_;
|
||||
std::string restoreTime_;
|
||||
std::string srcDBInstanceId_;
|
||||
std::string masterInstanceType_;
|
||||
std::string coldStorageSize_;
|
||||
std::string coreDiskQuantity_;
|
||||
std::string isColdStorage_;
|
||||
std::string coreInstanceType_;
|
||||
std::string coreDiskSize_;
|
||||
std::string vpcId_;
|
||||
std::string dbType_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCEREQUEST_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_HBASE_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAvailableResourceRequest();
|
||||
~DescribeAvailableResourceRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getChargeType()const;
|
||||
void setChargeType(const std::string& chargeType);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string zoneId_;
|
||||
std::string chargeType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_
|
||||
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* 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_HBASE_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hbase/HBaseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT DescribeAvailableResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AvailableZone
|
||||
{
|
||||
struct SupportedEngine
|
||||
{
|
||||
struct SupportedEngineVersion
|
||||
{
|
||||
struct SupportedCategoriesItem
|
||||
{
|
||||
struct SupportedStorageType
|
||||
{
|
||||
struct CoreResource
|
||||
{
|
||||
struct DBInstanceStorageRange
|
||||
{
|
||||
int minSize;
|
||||
int stepSize;
|
||||
int maxSize;
|
||||
};
|
||||
struct InstanceTypeDetail
|
||||
{
|
||||
int mem;
|
||||
int cpu;
|
||||
};
|
||||
InstanceTypeDetail instanceTypeDetail;
|
||||
DBInstanceStorageRange dBInstanceStorageRange;
|
||||
std::string instanceType;
|
||||
};
|
||||
std::string storageType;
|
||||
std::vector<SupportedStorageType::CoreResource> coreResources;
|
||||
};
|
||||
std::string category;
|
||||
std::vector<SupportedCategoriesItem::SupportedStorageType> supportedStorageTypes;
|
||||
};
|
||||
std::string version;
|
||||
std::vector<SupportedEngineVersion::SupportedCategoriesItem> supportedCategories;
|
||||
};
|
||||
std::vector<SupportedEngine::SupportedEngineVersion> supportedEngineVersions;
|
||||
std::string engine;
|
||||
};
|
||||
struct MasterResource
|
||||
{
|
||||
struct InstanceTypeDetail1
|
||||
{
|
||||
int mem;
|
||||
int cpu;
|
||||
};
|
||||
InstanceTypeDetail1 instanceTypeDetail1;
|
||||
std::string instanceType;
|
||||
};
|
||||
std::vector<AvailableZone::MasterResource> masterResources;
|
||||
std::string zoneId;
|
||||
std::vector<AvailableZone::SupportedEngine> supportedEngines;
|
||||
std::string regionId;
|
||||
};
|
||||
|
||||
|
||||
DescribeAvailableResourceResult();
|
||||
explicit DescribeAvailableResourceResult(const std::string &payload);
|
||||
~DescribeAvailableResourceResult();
|
||||
std::vector<AvailableZone> getAvailableZones()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AvailableZone> availableZones_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_
|
||||
@@ -31,21 +31,21 @@ HBaseClient::HBaseClient(const Credentials &credentials, const ClientConfigurati
|
||||
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, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "hbase");
|
||||
}
|
||||
|
||||
HBaseClient::HBaseClient(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, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "hbase");
|
||||
}
|
||||
|
||||
HBaseClient::HBaseClient(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, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "hbase");
|
||||
}
|
||||
|
||||
HBaseClient::~HBaseClient()
|
||||
@@ -231,42 +231,6 @@ HBaseClient::CreateHbaseHaSlbOutcomeCallable HBaseClient::createHbaseHaSlbCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateInstanceOutcome HBaseClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateInstanceOutcome(CreateInstanceResult(outcome.result()));
|
||||
else
|
||||
return CreateInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::CreateInstanceOutcomeCallable HBaseClient::createInstanceCallable(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateRestorePlanOutcome HBaseClient::createRestorePlan(const CreateRestorePlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +375,42 @@ HBaseClient::DeleteUserHdfsInfoOutcomeCallable HBaseClient::deleteUserHdfsInfoCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeAvailableResourceOutcome HBaseClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAvailableResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result()));
|
||||
else
|
||||
return DescribeAvailableResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAvailableResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeAvailableResourceOutcomeCallable HBaseClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAvailableResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAvailableResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupPlanConfigOutcome HBaseClient::describeBackupPlanConfig(const DescribeBackupPlanConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,337 +0,0 @@
|
||||
/*
|
||||
* 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/hbase/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "CreateInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDbInstanceConnType()const
|
||||
{
|
||||
return dbInstanceConnType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDbInstanceConnType(const std::string& dbInstanceConnType)
|
||||
{
|
||||
dbInstanceConnType_ = dbInstanceConnType;
|
||||
setParameter("DbInstanceConnType", dbInstanceConnType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getEngineVersion()const
|
||||
{
|
||||
return engineVersion_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setEngineVersion(const std::string& engineVersion)
|
||||
{
|
||||
engineVersion_ = engineVersion;
|
||||
setParameter("EngineVersion", engineVersion);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDepMode()const
|
||||
{
|
||||
return depMode_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDepMode(const std::string& depMode)
|
||||
{
|
||||
depMode_ = depMode;
|
||||
setParameter("DepMode", depMode);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDbInstanceType()const
|
||||
{
|
||||
return dbInstanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDbInstanceType(const std::string& dbInstanceType)
|
||||
{
|
||||
dbInstanceType_ = dbInstanceType;
|
||||
setParameter("DbInstanceType", dbInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSecurityIPList()const
|
||||
{
|
||||
return securityIPList_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSecurityIPList(const std::string& securityIPList)
|
||||
{
|
||||
securityIPList_ = securityIPList;
|
||||
setParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setNetType(const std::string& netType)
|
||||
{
|
||||
netType_ = netType;
|
||||
setParameter("NetType", netType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreDiskType()const
|
||||
{
|
||||
return coreDiskType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreDiskType(const std::string& coreDiskType)
|
||||
{
|
||||
coreDiskType_ = coreDiskType;
|
||||
setParameter("CoreDiskType", coreDiskType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPricingCycle()const
|
||||
{
|
||||
return pricingCycle_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPricingCycle(const std::string& pricingCycle)
|
||||
{
|
||||
pricingCycle_ = pricingCycle;
|
||||
setParameter("PricingCycle", pricingCycle);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreInstanceQuantity()const
|
||||
{
|
||||
return coreInstanceQuantity_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreInstanceQuantity(const std::string& coreInstanceQuantity)
|
||||
{
|
||||
coreInstanceQuantity_ = coreInstanceQuantity;
|
||||
setParameter("CoreInstanceQuantity", coreInstanceQuantity);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDuration(const std::string& duration)
|
||||
{
|
||||
duration_ = duration;
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setRestoreTime(const std::string& restoreTime)
|
||||
{
|
||||
restoreTime_ = restoreTime;
|
||||
setParameter("RestoreTime", restoreTime);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSrcDBInstanceId()const
|
||||
{
|
||||
return srcDBInstanceId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSrcDBInstanceId(const std::string& srcDBInstanceId)
|
||||
{
|
||||
srcDBInstanceId_ = srcDBInstanceId;
|
||||
setParameter("SrcDBInstanceId", srcDBInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setMasterInstanceType(const std::string& masterInstanceType)
|
||||
{
|
||||
masterInstanceType_ = masterInstanceType;
|
||||
setParameter("MasterInstanceType", masterInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setColdStorageSize(const std::string& coldStorageSize)
|
||||
{
|
||||
coldStorageSize_ = coldStorageSize;
|
||||
setParameter("ColdStorageSize", coldStorageSize);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreDiskQuantity()const
|
||||
{
|
||||
return coreDiskQuantity_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreDiskQuantity(const std::string& coreDiskQuantity)
|
||||
{
|
||||
coreDiskQuantity_ = coreDiskQuantity;
|
||||
setParameter("CoreDiskQuantity", coreDiskQuantity);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getIsColdStorage()const
|
||||
{
|
||||
return isColdStorage_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setIsColdStorage(const std::string& isColdStorage)
|
||||
{
|
||||
isColdStorage_ = isColdStorage;
|
||||
setParameter("IsColdStorage", isColdStorage);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreInstanceType(const std::string& coreInstanceType)
|
||||
{
|
||||
coreInstanceType_ = coreInstanceType;
|
||||
setParameter("CoreInstanceType", coreInstanceType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getCoreDiskSize()const
|
||||
{
|
||||
return coreDiskSize_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setCoreDiskSize(const std::string& coreDiskSize)
|
||||
{
|
||||
coreDiskSize_ = coreDiskSize;
|
||||
setParameter("CoreDiskSize", coreDiskSize);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setDbType(const std::string& dbType)
|
||||
{
|
||||
dbType_ = dbType;
|
||||
setParameter("DbType", dbType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
62
hbase/src/model/DescribeAvailableResourceRequest.cc
Normal file
62
hbase/src/model/DescribeAvailableResourceRequest.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/hbase/model/DescribeAvailableResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeAvailableResourceRequest;
|
||||
|
||||
DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeAvailableResource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string DescribeAvailableResourceRequest::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
void DescribeAvailableResourceRequest::setChargeType(const std::string& chargeType)
|
||||
{
|
||||
chargeType_ = chargeType;
|
||||
setParameter("ChargeType", chargeType);
|
||||
}
|
||||
|
||||
124
hbase/src/model/DescribeAvailableResourceResult.cc
Normal file
124
hbase/src/model/DescribeAvailableResourceResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/hbase/model/DescribeAvailableResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableResourceResult::~DescribeAvailableResourceResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvailableZonesNode = value["AvailableZones"]["AvailableZone"];
|
||||
for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||
{
|
||||
AvailableZone availableZonesObject;
|
||||
if(!valueAvailableZonesAvailableZone["RegionId"].isNull())
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allSupportedEngineVersionsNode = allSupportedEnginesNode["SupportedEngineVersions"]["SupportedEngineVersion"];
|
||||
for (auto allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion : allSupportedEngineVersionsNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion supportedEngineVersionsObject;
|
||||
if(!allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].isNull())
|
||||
supportedEngineVersionsObject.version = allSupportedEnginesNodeSupportedEngineVersionsSupportedEngineVersion["Version"].asString();
|
||||
auto allSupportedCategoriesNode = allSupportedEngineVersionsNode["SupportedCategories"]["SupportedCategoriesItem"];
|
||||
for (auto allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem : allSupportedCategoriesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem supportedCategoriesObject;
|
||||
if(!allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].isNull())
|
||||
supportedCategoriesObject.category = allSupportedEngineVersionsNodeSupportedCategoriesSupportedCategoriesItem["Category"].asString();
|
||||
auto allSupportedStorageTypesNode = allSupportedCategoriesNode["SupportedStorageTypes"]["SupportedStorageType"];
|
||||
for (auto allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType : allSupportedStorageTypesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType supportedStorageTypesObject;
|
||||
if(!allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].isNull())
|
||||
supportedStorageTypesObject.storageType = allSupportedCategoriesNodeSupportedStorageTypesSupportedStorageType["StorageType"].asString();
|
||||
auto allCoreResourcesNode = allSupportedStorageTypesNode["CoreResources"]["CoreResource"];
|
||||
for (auto allSupportedStorageTypesNodeCoreResourcesCoreResource : allCoreResourcesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::SupportedEngineVersion::SupportedCategoriesItem::SupportedStorageType::CoreResource coreResourcesObject;
|
||||
if(!allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].isNull())
|
||||
coreResourcesObject.instanceType = allSupportedStorageTypesNodeCoreResourcesCoreResource["InstanceType"].asString();
|
||||
auto dBInstanceStorageRangeNode = value["DBInstanceStorageRange"];
|
||||
if(!dBInstanceStorageRangeNode["MaxSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.maxSize = std::stoi(dBInstanceStorageRangeNode["MaxSize"].asString());
|
||||
if(!dBInstanceStorageRangeNode["MinSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.minSize = std::stoi(dBInstanceStorageRangeNode["MinSize"].asString());
|
||||
if(!dBInstanceStorageRangeNode["StepSize"].isNull())
|
||||
coreResourcesObject.dBInstanceStorageRange.stepSize = std::stoi(dBInstanceStorageRangeNode["StepSize"].asString());
|
||||
auto instanceTypeDetailNode = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetailNode["Cpu"].isNull())
|
||||
coreResourcesObject.instanceTypeDetail.cpu = std::stoi(instanceTypeDetailNode["Cpu"].asString());
|
||||
if(!instanceTypeDetailNode["Mem"].isNull())
|
||||
coreResourcesObject.instanceTypeDetail.mem = std::stoi(instanceTypeDetailNode["Mem"].asString());
|
||||
supportedStorageTypesObject.coreResources.push_back(coreResourcesObject);
|
||||
}
|
||||
supportedCategoriesObject.supportedStorageTypes.push_back(supportedStorageTypesObject);
|
||||
}
|
||||
supportedEngineVersionsObject.supportedCategories.push_back(supportedCategoriesObject);
|
||||
}
|
||||
supportedEnginesObject.supportedEngineVersions.push_back(supportedEngineVersionsObject);
|
||||
}
|
||||
availableZonesObject.supportedEngines.push_back(supportedEnginesObject);
|
||||
}
|
||||
auto allMasterResourcesNode = allAvailableZonesNode["MasterResources"]["MasterResource"];
|
||||
for (auto allAvailableZonesNodeMasterResourcesMasterResource : allMasterResourcesNode)
|
||||
{
|
||||
AvailableZone::MasterResource masterResourcesObject;
|
||||
if(!allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].isNull())
|
||||
masterResourcesObject.instanceType = allAvailableZonesNodeMasterResourcesMasterResource["InstanceType"].asString();
|
||||
auto instanceTypeDetail1Node = value["InstanceTypeDetail"];
|
||||
if(!instanceTypeDetail1Node["Cpu"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail1.cpu = std::stoi(instanceTypeDetail1Node["Cpu"].asString());
|
||||
if(!instanceTypeDetail1Node["Mem"].isNull())
|
||||
masterResourcesObject.instanceTypeDetail1.mem = std::stoi(instanceTypeDetail1Node["Mem"].asString());
|
||||
availableZonesObject.masterResources.push_back(masterResourcesObject);
|
||||
}
|
||||
availableZones_.push_back(availableZonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvailableResourceResult::AvailableZone> DescribeAvailableResourceResult::getAvailableZones()const
|
||||
{
|
||||
return availableZones_;
|
||||
}
|
||||
|
||||
@@ -39,19 +39,37 @@ namespace AlibabaCloud
|
||||
void setSrcType(const std::string& srcType);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
int getWatermarkVertical()const;
|
||||
void setWatermarkVertical(int watermarkVertical);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getUseOldURL()const;
|
||||
void setUseOldURL(bool useOldURL);
|
||||
int getWatermarkType()const;
|
||||
void setWatermarkType(int watermarkType);
|
||||
float getWatermarkRotate()const;
|
||||
void setWatermarkRotate(float watermarkRotate);
|
||||
std::string getWatermarkValue()const;
|
||||
void setWatermarkValue(const std::string& watermarkValue);
|
||||
std::string getWatermarkFont()const;
|
||||
void setWatermarkFont(const std::string& watermarkFont);
|
||||
int getWatermarkHorizontal()const;
|
||||
void setWatermarkHorizontal(int watermarkHorizontal);
|
||||
std::string getSrcUri()const;
|
||||
void setSrcUri(const std::string& srcUri);
|
||||
std::string getWatermarkFillStyle()const;
|
||||
void setWatermarkFillStyle(const std::string& watermarkFillStyle);
|
||||
|
||||
private:
|
||||
std::string srcType_;
|
||||
std::string project_;
|
||||
int watermarkVertical_;
|
||||
std::string accessKeyId_;
|
||||
bool useOldURL_;
|
||||
int watermarkType_;
|
||||
float watermarkRotate_;
|
||||
std::string watermarkValue_;
|
||||
std::string watermarkFont_;
|
||||
int watermarkHorizontal_;
|
||||
std::string srcUri_;
|
||||
std::string watermarkFillStyle_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void GetOfficePreviewURLRequest::setProject(const std::string& project)
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
int GetOfficePreviewURLRequest::getWatermarkVertical()const
|
||||
{
|
||||
return watermarkVertical_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setWatermarkVertical(int watermarkVertical)
|
||||
{
|
||||
watermarkVertical_ = watermarkVertical;
|
||||
setParameter("WatermarkVertical", std::to_string(watermarkVertical));
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -60,15 +71,59 @@ void GetOfficePreviewURLRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetOfficePreviewURLRequest::getUseOldURL()const
|
||||
int GetOfficePreviewURLRequest::getWatermarkType()const
|
||||
{
|
||||
return useOldURL_;
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setUseOldURL(bool useOldURL)
|
||||
void GetOfficePreviewURLRequest::setWatermarkType(int watermarkType)
|
||||
{
|
||||
useOldURL_ = useOldURL;
|
||||
setParameter("UseOldURL", useOldURL ? "true" : "false");
|
||||
watermarkType_ = watermarkType;
|
||||
setParameter("WatermarkType", std::to_string(watermarkType));
|
||||
}
|
||||
|
||||
float GetOfficePreviewURLRequest::getWatermarkRotate()const
|
||||
{
|
||||
return watermarkRotate_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setWatermarkRotate(float watermarkRotate)
|
||||
{
|
||||
watermarkRotate_ = watermarkRotate;
|
||||
setParameter("WatermarkRotate", std::to_string(watermarkRotate));
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLRequest::getWatermarkValue()const
|
||||
{
|
||||
return watermarkValue_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setWatermarkValue(const std::string& watermarkValue)
|
||||
{
|
||||
watermarkValue_ = watermarkValue;
|
||||
setParameter("WatermarkValue", watermarkValue);
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLRequest::getWatermarkFont()const
|
||||
{
|
||||
return watermarkFont_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setWatermarkFont(const std::string& watermarkFont)
|
||||
{
|
||||
watermarkFont_ = watermarkFont;
|
||||
setParameter("WatermarkFont", watermarkFont);
|
||||
}
|
||||
|
||||
int GetOfficePreviewURLRequest::getWatermarkHorizontal()const
|
||||
{
|
||||
return watermarkHorizontal_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setWatermarkHorizontal(int watermarkHorizontal)
|
||||
{
|
||||
watermarkHorizontal_ = watermarkHorizontal;
|
||||
setParameter("WatermarkHorizontal", std::to_string(watermarkHorizontal));
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLRequest::getSrcUri()const
|
||||
@@ -82,3 +137,14 @@ void GetOfficePreviewURLRequest::setSrcUri(const std::string& srcUri)
|
||||
setParameter("SrcUri", srcUri);
|
||||
}
|
||||
|
||||
std::string GetOfficePreviewURLRequest::getWatermarkFillStyle()const
|
||||
{
|
||||
return watermarkFillStyle_;
|
||||
}
|
||||
|
||||
void GetOfficePreviewURLRequest::setWatermarkFillStyle(const std::string& watermarkFillStyle)
|
||||
{
|
||||
watermarkFillStyle_ = watermarkFillStyle;
|
||||
setParameter("WatermarkFillStyle", watermarkFillStyle);
|
||||
}
|
||||
|
||||
|
||||
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_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user