Compare commits

..

8 Commits

Author SHA1 Message Date
sdk-team
d005611f56 Publish apis for ledger instances. 2020-04-24 16:01:11 +08:00
sdk-team
7e80260525 GetUser API return user execute query count information. 2020-04-23 22:37:56 +08:00
sdk-team
4aa00d49d1 Fixed bugs for MassPush API. 2020-04-23 17:51:52 +08:00
sdk-team
a1dd7e1dbd Add location info. 2020-04-23 10:38:48 +08:00
sdk-team
e6cff897c5 Support groupId operations. 2020-04-23 10:35:18 +08:00
sdk-team
4d493b157c Generated 2019-01-01 for Cassandra. 2020-04-22 17:17:11 +08:00
sdk-team
8a1c79417e Supported API for DescribeTags. 2020-04-21 11:02:12 +08:00
sdk-team
ad02a00036 Supported PackageDesign Apis. 2020-04-21 10:51:59 +08:00
215 changed files with 11509 additions and 699 deletions

View File

@@ -1,3 +1,37 @@
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.
- Supported API for TagResources.
- Supported API for UntagResources.
2020-04-21 Version: 1.36.369
- Supported PackageDesign Apis.
- Supported Api ListPackageDesignModelTypes.
- Supported Api PreviewModelForPackageDesign.
- Supported Api RenderImageForPackageDesign.
- Supported Api GetRenderResult.
2020-04-21 Version: 1.36.368
- Add Statistics API.

View File

@@ -1 +1 @@
1.36.368
1.36.376

View File

@@ -141,6 +141,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h
include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h
include/alibabacloud/alidns/model/DescribeSupportLinesResult.h
include/alibabacloud/alidns/model/DescribeTagsRequest.h
include/alibabacloud/alidns/model/DescribeTagsResult.h
include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h
include/alibabacloud/alidns/model/DescribeTransferDomainsResult.h
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h
@@ -149,6 +151,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/GetMainDomainNameResult.h
include/alibabacloud/alidns/model/GetTxtRecordForVerifyRequest.h
include/alibabacloud/alidns/model/GetTxtRecordForVerifyResult.h
include/alibabacloud/alidns/model/ListTagResourcesRequest.h
include/alibabacloud/alidns/model/ListTagResourcesResult.h
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSRequest.h
include/alibabacloud/alidns/model/ModifyHichinaDomainDNSResult.h
include/alibabacloud/alidns/model/OperateBatchDomainRequest.h
@@ -169,10 +173,14 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/SetGtmAccessModeResult.h
include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h
include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h
include/alibabacloud/alidns/model/TagResourcesRequest.h
include/alibabacloud/alidns/model/TagResourcesResult.h
include/alibabacloud/alidns/model/TransferDomainRequest.h
include/alibabacloud/alidns/model/TransferDomainResult.h
include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h
include/alibabacloud/alidns/model/UnbindInstanceDomainsResult.h
include/alibabacloud/alidns/model/UntagResourcesRequest.h
include/alibabacloud/alidns/model/UntagResourcesResult.h
include/alibabacloud/alidns/model/UpdateCustomLineRequest.h
include/alibabacloud/alidns/model/UpdateCustomLineResult.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h
@@ -318,6 +326,8 @@ set(alidns_src
src/model/DescribeSubDomainRecordsResult.cc
src/model/DescribeSupportLinesRequest.cc
src/model/DescribeSupportLinesResult.cc
src/model/DescribeTagsRequest.cc
src/model/DescribeTagsResult.cc
src/model/DescribeTransferDomainsRequest.cc
src/model/DescribeTransferDomainsResult.cc
src/model/ExecuteGtmRecoveryPlanRequest.cc
@@ -326,6 +336,8 @@ set(alidns_src
src/model/GetMainDomainNameResult.cc
src/model/GetTxtRecordForVerifyRequest.cc
src/model/GetTxtRecordForVerifyResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/ModifyHichinaDomainDNSRequest.cc
src/model/ModifyHichinaDomainDNSResult.cc
src/model/OperateBatchDomainRequest.cc
@@ -346,10 +358,14 @@ set(alidns_src
src/model/SetGtmAccessModeResult.cc
src/model/SetGtmMonitorStatusRequest.cc
src/model/SetGtmMonitorStatusResult.cc
src/model/TagResourcesRequest.cc
src/model/TagResourcesResult.cc
src/model/TransferDomainRequest.cc
src/model/TransferDomainResult.cc
src/model/UnbindInstanceDomainsRequest.cc
src/model/UnbindInstanceDomainsResult.cc
src/model/UntagResourcesRequest.cc
src/model/UntagResourcesResult.cc
src/model/UpdateCustomLineRequest.cc
src/model/UpdateCustomLineResult.cc
src/model/UpdateDNSSLBWeightRequest.cc

View File

@@ -142,6 +142,8 @@
#include "model/DescribeSubDomainRecordsResult.h"
#include "model/DescribeSupportLinesRequest.h"
#include "model/DescribeSupportLinesResult.h"
#include "model/DescribeTagsRequest.h"
#include "model/DescribeTagsResult.h"
#include "model/DescribeTransferDomainsRequest.h"
#include "model/DescribeTransferDomainsResult.h"
#include "model/ExecuteGtmRecoveryPlanRequest.h"
@@ -150,6 +152,8 @@
#include "model/GetMainDomainNameResult.h"
#include "model/GetTxtRecordForVerifyRequest.h"
#include "model/GetTxtRecordForVerifyResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/ModifyHichinaDomainDNSRequest.h"
#include "model/ModifyHichinaDomainDNSResult.h"
#include "model/OperateBatchDomainRequest.h"
@@ -170,10 +174,14 @@
#include "model/SetGtmAccessModeResult.h"
#include "model/SetGtmMonitorStatusRequest.h"
#include "model/SetGtmMonitorStatusResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/TransferDomainRequest.h"
#include "model/TransferDomainResult.h"
#include "model/UnbindInstanceDomainsRequest.h"
#include "model/UnbindInstanceDomainsResult.h"
#include "model/UntagResourcesRequest.h"
#include "model/UntagResourcesResult.h"
#include "model/UpdateCustomLineRequest.h"
#include "model/UpdateCustomLineResult.h"
#include "model/UpdateDNSSLBWeightRequest.h"
@@ -385,6 +393,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSupportLinesResult> DescribeSupportLinesOutcome;
typedef std::future<DescribeSupportLinesOutcome> DescribeSupportLinesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeSupportLinesRequest&, const DescribeSupportLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSupportLinesAsyncHandler;
typedef Outcome<Error, Model::DescribeTagsResult> DescribeTagsOutcome;
typedef std::future<DescribeTagsOutcome> DescribeTagsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeTagsRequest&, const DescribeTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagsAsyncHandler;
typedef Outcome<Error, Model::DescribeTransferDomainsResult> DescribeTransferDomainsOutcome;
typedef std::future<DescribeTransferDomainsOutcome> DescribeTransferDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeTransferDomainsRequest&, const DescribeTransferDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTransferDomainsAsyncHandler;
@@ -397,6 +408,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetTxtRecordForVerifyResult> GetTxtRecordForVerifyOutcome;
typedef std::future<GetTxtRecordForVerifyOutcome> GetTxtRecordForVerifyOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::GetTxtRecordForVerifyRequest&, const GetTxtRecordForVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTxtRecordForVerifyAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::ModifyHichinaDomainDNSResult> ModifyHichinaDomainDNSOutcome;
typedef std::future<ModifyHichinaDomainDNSOutcome> ModifyHichinaDomainDNSOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::ModifyHichinaDomainDNSRequest&, const ModifyHichinaDomainDNSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHichinaDomainDNSAsyncHandler;
@@ -427,12 +441,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetGtmMonitorStatusResult> SetGtmMonitorStatusOutcome;
typedef std::future<SetGtmMonitorStatusOutcome> SetGtmMonitorStatusOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::SetGtmMonitorStatusRequest&, const SetGtmMonitorStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetGtmMonitorStatusAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::TransferDomainResult> TransferDomainOutcome;
typedef std::future<TransferDomainOutcome> TransferDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::TransferDomainRequest&, const TransferDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferDomainAsyncHandler;
typedef Outcome<Error, Model::UnbindInstanceDomainsResult> UnbindInstanceDomainsOutcome;
typedef std::future<UnbindInstanceDomainsOutcome> UnbindInstanceDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UnbindInstanceDomainsRequest&, const UnbindInstanceDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindInstanceDomainsAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
typedef Outcome<Error, Model::UpdateCustomLineResult> UpdateCustomLineOutcome;
typedef std::future<UpdateCustomLineOutcome> UpdateCustomLineOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateCustomLineRequest&, const UpdateCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCustomLineAsyncHandler;
@@ -651,6 +671,9 @@ namespace AlibabaCloud
DescribeSupportLinesOutcome describeSupportLines(const Model::DescribeSupportLinesRequest &request)const;
void describeSupportLinesAsync(const Model::DescribeSupportLinesRequest& request, const DescribeSupportLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSupportLinesOutcomeCallable describeSupportLinesCallable(const Model::DescribeSupportLinesRequest& request) const;
DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const;
void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const;
DescribeTransferDomainsOutcome describeTransferDomains(const Model::DescribeTransferDomainsRequest &request)const;
void describeTransferDomainsAsync(const Model::DescribeTransferDomainsRequest& request, const DescribeTransferDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTransferDomainsOutcomeCallable describeTransferDomainsCallable(const Model::DescribeTransferDomainsRequest& request) const;
@@ -663,6 +686,9 @@ namespace AlibabaCloud
GetTxtRecordForVerifyOutcome getTxtRecordForVerify(const Model::GetTxtRecordForVerifyRequest &request)const;
void getTxtRecordForVerifyAsync(const Model::GetTxtRecordForVerifyRequest& request, const GetTxtRecordForVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTxtRecordForVerifyOutcomeCallable getTxtRecordForVerifyCallable(const Model::GetTxtRecordForVerifyRequest& 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;
ModifyHichinaDomainDNSOutcome modifyHichinaDomainDNS(const Model::ModifyHichinaDomainDNSRequest &request)const;
void modifyHichinaDomainDNSAsync(const Model::ModifyHichinaDomainDNSRequest& request, const ModifyHichinaDomainDNSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyHichinaDomainDNSOutcomeCallable modifyHichinaDomainDNSCallable(const Model::ModifyHichinaDomainDNSRequest& request) const;
@@ -693,12 +719,18 @@ namespace AlibabaCloud
SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const;
void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& 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;
TransferDomainOutcome transferDomain(const Model::TransferDomainRequest &request)const;
void transferDomainAsync(const Model::TransferDomainRequest& request, const TransferDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransferDomainOutcomeCallable transferDomainCallable(const Model::TransferDomainRequest& request) const;
UnbindInstanceDomainsOutcome unbindInstanceDomains(const Model::UnbindInstanceDomainsRequest &request)const;
void unbindInstanceDomainsAsync(const Model::UnbindInstanceDomainsRequest& request, const UnbindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindInstanceDomainsOutcomeCallable unbindInstanceDomainsCallable(const Model::UnbindInstanceDomainsRequest& 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;
UpdateCustomLineOutcome updateCustomLine(const Model::UpdateCustomLineRequest &request)const;
void updateCustomLineAsync(const Model::UpdateCustomLineRequest& request, const UpdateCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCustomLineOutcomeCallable updateCustomLineCallable(const Model::UpdateCustomLineRequest& request) const;

View File

@@ -30,6 +30,12 @@ namespace AlibabaCloud
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeDomainsRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string value;
std::string key;
};
public:
DescribeDomainsRequest();
@@ -43,6 +49,8 @@ namespace AlibabaCloud
void setResourceGroupId(const std::string& resourceGroupId);
long getPageSize()const;
void setPageSize(long pageSize);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getKeyWord()const;
@@ -67,6 +75,7 @@ namespace AlibabaCloud
long pageNumber_;
std::string resourceGroupId_;
long pageSize_;
std::vector<Tag> tag_;
std::string lang_;
std::string keyWord_;
std::string direction_;

View File

@@ -34,6 +34,11 @@ namespace AlibabaCloud
public:
struct Domain
{
struct Tag
{
std::string value;
std::string key;
};
std::string groupName;
bool aliDomain;
std::string domainName;
@@ -52,6 +57,7 @@ namespace AlibabaCloud
bool instanceExpired;
long recordCount;
long createTimestamp;
std::vector<Domain::Tag> tags;
};

View File

@@ -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_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsRequest : public RpcServiceRequest
{
public:
DescribeTagsRequest();
~DescribeTagsRequest();
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string resourceType_;
long pageNumber_;
std::string userClientIp_;
long pageSize_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTagsResult : public ServiceResult
{
public:
struct Tag
{
std::vector<std::string> values;
std::string key;
};
DescribeTagsResult();
explicit DescribeTagsResult(const std::string &payload);
~DescribeTagsResult();
long getTotalCount()const;
long getPageSize()const;
long getPageNumber()const;
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
long pageSize_;
long pageNumber_;
std::vector<Tag> tags_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETAGSRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT ListTagResourcesRequest : public RpcServiceRequest
{
public:
struct Tag
{
std::string value;
std::string key;
};
public:
ListTagResourcesRequest();
~ListTagResourcesRequest();
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
int getSize()const;
void setSize(int size);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
int size_;
std::string nextToken_;
std::string userClientIp_;
std::vector<Tag> tag_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESREQUEST_H_

View File

@@ -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_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_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_ALIDNS_MODEL_LISTTAGRESOURCESRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_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 getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::vector<Tag> getTag()const;
void setTag(const std::vector<Tag>& tag);
std::string getLang()const;
void setLang(const std::string& lang);
bool getOverWrite()const;
void setOverWrite(bool overWrite);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string userClientIp_;
std::vector<Tag> tag_;
std::string lang_;
bool overWrite_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESREQUEST_H_

View File

@@ -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_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesResult : public ServiceResult
{
public:
TagResourcesResult();
explicit TagResourcesResult(const std::string &payload);
~TagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_H_

View File

@@ -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_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesRequest : public RpcServiceRequest
{
public:
UntagResourcesRequest();
~UntagResourcesRequest();
bool getAll()const;
void setAll(bool all);
std::vector<std::string> getResourceId()const;
void setResourceId(const std::vector<std::string>& resourceId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::vector<std::string> getTagKey()const;
void setTagKey(const std::vector<std::string>& tagKey);
private:
bool all_;
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string userClientIp_;
std::string lang_;
std::vector<std::string> tagKey_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESREQUEST_H_

View File

@@ -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_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UntagResourcesResult : public ServiceResult
{
public:
UntagResourcesResult();
explicit UntagResourcesResult(const std::string &payload);
~UntagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNTAGRESOURCESRESULT_H_

View File

@@ -2211,6 +2211,42 @@ AlidnsClient::DescribeSupportLinesOutcomeCallable AlidnsClient::describeSupportL
return task->get_future();
}
AlidnsClient::DescribeTagsOutcome AlidnsClient::describeTags(const DescribeTagsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeTagsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeTagsOutcome(DescribeTagsResult(outcome.result()));
else
return DescribeTagsOutcome(outcome.error());
}
void AlidnsClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeTags(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DescribeTagsOutcomeCallable AlidnsClient::describeTagsCallable(const DescribeTagsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeTagsOutcome()>>(
[this, request]()
{
return this->describeTags(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DescribeTransferDomainsOutcome AlidnsClient::describeTransferDomains(const DescribeTransferDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2355,6 +2391,42 @@ AlidnsClient::GetTxtRecordForVerifyOutcomeCallable AlidnsClient::getTxtRecordFor
return task->get_future();
}
AlidnsClient::ListTagResourcesOutcome AlidnsClient::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 AlidnsClient::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));
}
AlidnsClient::ListTagResourcesOutcomeCallable AlidnsClient::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();
}
AlidnsClient::ModifyHichinaDomainDNSOutcome AlidnsClient::modifyHichinaDomainDNS(const ModifyHichinaDomainDNSRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2715,6 +2787,42 @@ AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStat
return task->get_future();
}
AlidnsClient::TagResourcesOutcome AlidnsClient::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 AlidnsClient::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));
}
AlidnsClient::TagResourcesOutcomeCallable AlidnsClient::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();
}
AlidnsClient::TransferDomainOutcome AlidnsClient::transferDomain(const TransferDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2787,6 +2895,42 @@ AlidnsClient::UnbindInstanceDomainsOutcomeCallable AlidnsClient::unbindInstanceD
return task->get_future();
}
AlidnsClient::UntagResourcesOutcome AlidnsClient::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 AlidnsClient::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));
}
AlidnsClient::UntagResourcesOutcomeCallable AlidnsClient::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();
}
AlidnsClient::UpdateCustomLineOutcome AlidnsClient::updateCustomLine(const UpdateCustomLineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -71,6 +71,22 @@ void DescribeDomainsRequest::setPageSize(long pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::vector<DescribeDomainsRequest::Tag> DescribeDomainsRequest::getTag()const
{
return tag_;
}
void DescribeDomainsRequest::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::string DescribeDomainsRequest::getLang()const
{
return lang_;

View File

@@ -77,6 +77,16 @@ void DescribeDomainsResult::parse(const std::string &payload)
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
if(!valueDomainsDomain["CreateTimestamp"].isNull())
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
auto allTagsNode = allDomainsNode["Tags"]["Tag"];
for (auto allDomainsNodeTagsTag : allTagsNode)
{
Domain::Tag tagsObject;
if(!allDomainsNodeTagsTag["Key"].isNull())
tagsObject.key = allDomainsNodeTagsTag["Key"].asString();
if(!allDomainsNodeTagsTag["Value"].isNull())
tagsObject.value = allDomainsNodeTagsTag["Value"].asString();
domainsObject.tags.push_back(tagsObject);
}
auto allDnsServers = value["DnsServers"]["DnsServer"];
for (auto value : allDnsServers)
domainsObject.dnsServers.push_back(value.asString());

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alidns/model/DescribeTagsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeTagsRequest;
DescribeTagsRequest::DescribeTagsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeTags")
{
setMethod(HttpRequest::Method::Post);
}
DescribeTagsRequest::~DescribeTagsRequest()
{}
std::string DescribeTagsRequest::getResourceType()const
{
return resourceType_;
}
void DescribeTagsRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
long DescribeTagsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeTagsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeTagsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeTagsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
long DescribeTagsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeTagsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeTagsRequest::getLang()const
{
return lang_;
}
void DescribeTagsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alidns/model/DescribeTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeTagsResult::DescribeTagsResult() :
ServiceResult()
{}
DescribeTagsResult::DescribeTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTagsResult::~DescribeTagsResult()
{}
void DescribeTagsResult::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["Key"].isNull())
tagsObject.key = valueTagsTag["Key"].asString();
auto allValues = value["Values"]["Value"];
for (auto value : allValues)
tagsObject.values.push_back(value.asString());
tags_.push_back(tagsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeTagsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeTagsResult::getPageSize()const
{
return pageSize_;
}
long DescribeTagsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeTagsResult::Tag> DescribeTagsResult::getTags()const
{
return tags_;
}

View File

@@ -0,0 +1,113 @@
/*
* 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/alidns/model/ListTagResourcesRequest.h>
using AlibabaCloud::Alidns::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "ListTagResources")
{
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesRequest::~ListTagResourcesRequest()
{}
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));
}
}
std::string ListTagResourcesRequest::getResourceType()const
{
return resourceType_;
}
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
int ListTagResourcesRequest::getSize()const
{
return size_;
}
void ListTagResourcesRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
std::string ListTagResourcesRequest::getNextToken()const
{
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListTagResourcesRequest::getUserClientIp()const
{
return userClientIp_;
}
void ListTagResourcesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
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::string ListTagResourcesRequest::getLang()const
{
return lang_;
}
void ListTagResourcesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View 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/alidns/model/ListTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::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["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].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_;
}

View File

@@ -0,0 +1,102 @@
/*
* 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/alidns/model/TagResourcesRequest.h>
using AlibabaCloud::Alidns::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "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::getResourceType()const
{
return resourceType_;
}
void TagResourcesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string TagResourcesRequest::getUserClientIp()const
{
return userClientIp_;
}
void TagResourcesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
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);
}
}
std::string TagResourcesRequest::getLang()const
{
return lang_;
}
void TagResourcesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
bool TagResourcesRequest::getOverWrite()const
{
return overWrite_;
}
void TagResourcesRequest::setOverWrite(bool overWrite)
{
overWrite_ = overWrite;
setParameter("OverWrite", overWrite ? "true" : "false");
}

View 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/alidns/model/TagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::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());
}

View File

@@ -0,0 +1,99 @@
/*
* 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/alidns/model/UntagResourcesRequest.h>
using AlibabaCloud::Alidns::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UntagResources")
{
setMethod(HttpRequest::Method::Post);
}
UntagResourcesRequest::~UntagResourcesRequest()
{}
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::string UntagResourcesRequest::getResourceType()const
{
return resourceType_;
}
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string UntagResourcesRequest::getUserClientIp()const
{
return userClientIp_;
}
void UntagResourcesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setParameter("UserClientIp", userClientIp);
}
std::string UntagResourcesRequest::getLang()const
{
return lang_;
}
void UntagResourcesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
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));
}
}

View 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/alidns/model/UntagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
UntagResourcesResult::UntagResourcesResult() :
ServiceResult()
{}
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UntagResourcesResult::~UntagResourcesResult()
{}
void UntagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -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 )

View File

@@ -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;

View File

@@ -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;
};

View File

@@ -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_;
};
}

View File

@@ -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;
};

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_TAGRESOURCESRESULT_H_
#define ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_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 TagResourcesResult : public ServiceResult
{
public:
TagResourcesResult();
explicit TagResourcesResult(const std::string &payload);
~TagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESRESULT_H_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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();

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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())

View 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));
}
}

View 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_;
}

View 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);
}

View 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_;
}

View 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);
}
}

View 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());
}

View 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));
}
}

View 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/UnTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cassandra;
using namespace AlibabaCloud::Cassandra::Model;
UnTagResourcesResult::UnTagResourcesResult() :
ServiceResult()
{}
UnTagResourcesResult::UnTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnTagResourcesResult::~UnTagResourcesResult()
{}
void UnTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -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;
};

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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());

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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_;
};
}

View File

@@ -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_;
};
}

View File

@@ -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_;
}

View File

@@ -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_;
}

View File

@@ -33,14 +33,22 @@ set(ivpd_public_header_model
include/alibabacloud/ivpd/model/GetJobResultResult.h
include/alibabacloud/ivpd/model/GetJobStatusRequest.h
include/alibabacloud/ivpd/model/GetJobStatusResult.h
include/alibabacloud/ivpd/model/GetRenderResultRequest.h
include/alibabacloud/ivpd/model/GetRenderResultResult.h
include/alibabacloud/ivpd/model/ListPackageDesignModelTypesRequest.h
include/alibabacloud/ivpd/model/ListPackageDesignModelTypesResult.h
include/alibabacloud/ivpd/model/MakeSuperResolutionImageRequest.h
include/alibabacloud/ivpd/model/MakeSuperResolutionImageResult.h
include/alibabacloud/ivpd/model/PreviewModelForPackageDesignRequest.h
include/alibabacloud/ivpd/model/PreviewModelForPackageDesignResult.h
include/alibabacloud/ivpd/model/RecognizeImageColorRequest.h
include/alibabacloud/ivpd/model/RecognizeImageColorResult.h
include/alibabacloud/ivpd/model/RecognizeImageStyleRequest.h
include/alibabacloud/ivpd/model/RecognizeImageStyleResult.h
include/alibabacloud/ivpd/model/RecolorImageRequest.h
include/alibabacloud/ivpd/model/RecolorImageResult.h
include/alibabacloud/ivpd/model/RenderImageForPackageDesignRequest.h
include/alibabacloud/ivpd/model/RenderImageForPackageDesignResult.h
include/alibabacloud/ivpd/model/SegmentBodyRequest.h
include/alibabacloud/ivpd/model/SegmentBodyResult.h
include/alibabacloud/ivpd/model/SegmentImageRequest.h
@@ -60,14 +68,22 @@ set(ivpd_src
src/model/GetJobResultResult.cc
src/model/GetJobStatusRequest.cc
src/model/GetJobStatusResult.cc
src/model/GetRenderResultRequest.cc
src/model/GetRenderResultResult.cc
src/model/ListPackageDesignModelTypesRequest.cc
src/model/ListPackageDesignModelTypesResult.cc
src/model/MakeSuperResolutionImageRequest.cc
src/model/MakeSuperResolutionImageResult.cc
src/model/PreviewModelForPackageDesignRequest.cc
src/model/PreviewModelForPackageDesignResult.cc
src/model/RecognizeImageColorRequest.cc
src/model/RecognizeImageColorResult.cc
src/model/RecognizeImageStyleRequest.cc
src/model/RecognizeImageStyleResult.cc
src/model/RecolorImageRequest.cc
src/model/RecolorImageResult.cc
src/model/RenderImageForPackageDesignRequest.cc
src/model/RenderImageForPackageDesignResult.cc
src/model/SegmentBodyRequest.cc
src/model/SegmentBodyResult.cc
src/model/SegmentImageRequest.cc

View File

@@ -34,14 +34,22 @@
#include "model/GetJobResultResult.h"
#include "model/GetJobStatusRequest.h"
#include "model/GetJobStatusResult.h"
#include "model/GetRenderResultRequest.h"
#include "model/GetRenderResultResult.h"
#include "model/ListPackageDesignModelTypesRequest.h"
#include "model/ListPackageDesignModelTypesResult.h"
#include "model/MakeSuperResolutionImageRequest.h"
#include "model/MakeSuperResolutionImageResult.h"
#include "model/PreviewModelForPackageDesignRequest.h"
#include "model/PreviewModelForPackageDesignResult.h"
#include "model/RecognizeImageColorRequest.h"
#include "model/RecognizeImageColorResult.h"
#include "model/RecognizeImageStyleRequest.h"
#include "model/RecognizeImageStyleResult.h"
#include "model/RecolorImageRequest.h"
#include "model/RecolorImageResult.h"
#include "model/RenderImageForPackageDesignRequest.h"
#include "model/RenderImageForPackageDesignResult.h"
#include "model/SegmentBodyRequest.h"
#include "model/SegmentBodyResult.h"
#include "model/SegmentImageRequest.h"
@@ -73,9 +81,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetJobStatusResult> GetJobStatusOutcome;
typedef std::future<GetJobStatusOutcome> GetJobStatusOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::GetJobStatusRequest&, const GetJobStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobStatusAsyncHandler;
typedef Outcome<Error, Model::GetRenderResultResult> GetRenderResultOutcome;
typedef std::future<GetRenderResultOutcome> GetRenderResultOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::GetRenderResultRequest&, const GetRenderResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRenderResultAsyncHandler;
typedef Outcome<Error, Model::ListPackageDesignModelTypesResult> ListPackageDesignModelTypesOutcome;
typedef std::future<ListPackageDesignModelTypesOutcome> ListPackageDesignModelTypesOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::ListPackageDesignModelTypesRequest&, const ListPackageDesignModelTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPackageDesignModelTypesAsyncHandler;
typedef Outcome<Error, Model::MakeSuperResolutionImageResult> MakeSuperResolutionImageOutcome;
typedef std::future<MakeSuperResolutionImageOutcome> MakeSuperResolutionImageOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::MakeSuperResolutionImageRequest&, const MakeSuperResolutionImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MakeSuperResolutionImageAsyncHandler;
typedef Outcome<Error, Model::PreviewModelForPackageDesignResult> PreviewModelForPackageDesignOutcome;
typedef std::future<PreviewModelForPackageDesignOutcome> PreviewModelForPackageDesignOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::PreviewModelForPackageDesignRequest&, const PreviewModelForPackageDesignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PreviewModelForPackageDesignAsyncHandler;
typedef Outcome<Error, Model::RecognizeImageColorResult> RecognizeImageColorOutcome;
typedef std::future<RecognizeImageColorOutcome> RecognizeImageColorOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::RecognizeImageColorRequest&, const RecognizeImageColorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageColorAsyncHandler;
@@ -85,6 +102,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RecolorImageResult> RecolorImageOutcome;
typedef std::future<RecolorImageOutcome> RecolorImageOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::RecolorImageRequest&, const RecolorImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecolorImageAsyncHandler;
typedef Outcome<Error, Model::RenderImageForPackageDesignResult> RenderImageForPackageDesignOutcome;
typedef std::future<RenderImageForPackageDesignOutcome> RenderImageForPackageDesignOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::RenderImageForPackageDesignRequest&, const RenderImageForPackageDesignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenderImageForPackageDesignAsyncHandler;
typedef Outcome<Error, Model::SegmentBodyResult> SegmentBodyOutcome;
typedef std::future<SegmentBodyOutcome> SegmentBodyOutcomeCallable;
typedef std::function<void(const IvpdClient*, const Model::SegmentBodyRequest&, const SegmentBodyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SegmentBodyAsyncHandler;
@@ -114,9 +134,18 @@ namespace AlibabaCloud
GetJobStatusOutcome getJobStatus(const Model::GetJobStatusRequest &request)const;
void getJobStatusAsync(const Model::GetJobStatusRequest& request, const GetJobStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetJobStatusOutcomeCallable getJobStatusCallable(const Model::GetJobStatusRequest& request) const;
GetRenderResultOutcome getRenderResult(const Model::GetRenderResultRequest &request)const;
void getRenderResultAsync(const Model::GetRenderResultRequest& request, const GetRenderResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRenderResultOutcomeCallable getRenderResultCallable(const Model::GetRenderResultRequest& request) const;
ListPackageDesignModelTypesOutcome listPackageDesignModelTypes(const Model::ListPackageDesignModelTypesRequest &request)const;
void listPackageDesignModelTypesAsync(const Model::ListPackageDesignModelTypesRequest& request, const ListPackageDesignModelTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPackageDesignModelTypesOutcomeCallable listPackageDesignModelTypesCallable(const Model::ListPackageDesignModelTypesRequest& request) const;
MakeSuperResolutionImageOutcome makeSuperResolutionImage(const Model::MakeSuperResolutionImageRequest &request)const;
void makeSuperResolutionImageAsync(const Model::MakeSuperResolutionImageRequest& request, const MakeSuperResolutionImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MakeSuperResolutionImageOutcomeCallable makeSuperResolutionImageCallable(const Model::MakeSuperResolutionImageRequest& request) const;
PreviewModelForPackageDesignOutcome previewModelForPackageDesign(const Model::PreviewModelForPackageDesignRequest &request)const;
void previewModelForPackageDesignAsync(const Model::PreviewModelForPackageDesignRequest& request, const PreviewModelForPackageDesignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PreviewModelForPackageDesignOutcomeCallable previewModelForPackageDesignCallable(const Model::PreviewModelForPackageDesignRequest& request) const;
RecognizeImageColorOutcome recognizeImageColor(const Model::RecognizeImageColorRequest &request)const;
void recognizeImageColorAsync(const Model::RecognizeImageColorRequest& request, const RecognizeImageColorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecognizeImageColorOutcomeCallable recognizeImageColorCallable(const Model::RecognizeImageColorRequest& request) const;
@@ -126,6 +155,9 @@ namespace AlibabaCloud
RecolorImageOutcome recolorImage(const Model::RecolorImageRequest &request)const;
void recolorImageAsync(const Model::RecolorImageRequest& request, const RecolorImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecolorImageOutcomeCallable recolorImageCallable(const Model::RecolorImageRequest& request) const;
RenderImageForPackageDesignOutcome renderImageForPackageDesign(const Model::RenderImageForPackageDesignRequest &request)const;
void renderImageForPackageDesignAsync(const Model::RenderImageForPackageDesignRequest& request, const RenderImageForPackageDesignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RenderImageForPackageDesignOutcomeCallable renderImageForPackageDesignCallable(const Model::RenderImageForPackageDesignRequest& request) const;
SegmentBodyOutcome segmentBody(const Model::SegmentBodyRequest &request)const;
void segmentBodyAsync(const Model::SegmentBodyRequest& request, const SegmentBodyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SegmentBodyOutcomeCallable segmentBodyCallable(const Model::SegmentBodyRequest& request) const;

View File

@@ -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_IVPD_MODEL_GETRENDERRESULTREQUEST_H_
#define ALIBABACLOUD_IVPD_MODEL_GETRENDERRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT GetRenderResultRequest : public RpcServiceRequest
{
public:
GetRenderResultRequest();
~GetRenderResultRequest();
std::string getJobId()const;
void setJobId(const std::string& jobId);
private:
std::string jobId_;
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_GETRENDERRESULTREQUEST_H_

View File

@@ -14,55 +14,54 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
#define ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
#ifndef ALIBABACLOUD_IVPD_MODEL_GETRENDERRESULTRESULT_H_
#define ALIBABACLOUD_IVPD_MODEL_GETRENDERRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/push/PushExport.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Push
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_PUSH_EXPORT ListPushRecordsResult : public ServiceResult
class ALIBABACLOUD_IVPD_EXPORT GetRenderResultResult : public ServiceResult
{
public:
struct PushMessageInfo
struct Data
{
std::string deviceType;
std::string type;
std::string pushTime;
long appKey;
std::string title;
std::string body;
std::string appName;
std::string messageId;
struct ResultData
{
std::string imageUrl;
};
float progress;
ResultData resultData;
std::string message;
bool completed;
std::string code;
};
ListPushRecordsResult();
explicit ListPushRecordsResult(const std::string &payload);
~ListPushRecordsResult();
int getPageSize()const;
int getTotal()const;
int getPage()const;
std::vector<PushMessageInfo> getPushMessageInfos()const;
GetRenderResultResult();
explicit GetRenderResultResult(const std::string &payload);
~GetRenderResultResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int total_;
int page_;
std::vector<PushMessageInfo> pushMessageInfos_;
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_PUSH_MODEL_LISTPUSHRECORDSRESULT_H_
#endif // !ALIBABACLOUD_IVPD_MODEL_GETRENDERRESULTRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* 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_IVPD_MODEL_LISTPACKAGEDESIGNMODELTYPESREQUEST_H_
#define ALIBABACLOUD_IVPD_MODEL_LISTPACKAGEDESIGNMODELTYPESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT ListPackageDesignModelTypesRequest : public RpcServiceRequest
{
public:
ListPackageDesignModelTypesRequest();
~ListPackageDesignModelTypesRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_LISTPACKAGEDESIGNMODELTYPESREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_IVPD_MODEL_LISTPACKAGEDESIGNMODELTYPESRESULT_H_
#define ALIBABACLOUD_IVPD_MODEL_LISTPACKAGEDESIGNMODELTYPESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT ListPackageDesignModelTypesResult : public ServiceResult
{
public:
struct Data
{
struct ModelType
{
struct Element
{
std::string sideName;
};
std::string modelType;
std::vector<ModelType::Element> elements;
};
std::vector<ModelType> modelTypeList;
};
ListPackageDesignModelTypesResult();
explicit ListPackageDesignModelTypesResult(const std::string &payload);
~ListPackageDesignModelTypesResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_LISTPACKAGEDESIGNMODELTYPESRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_IVPD_MODEL_PREVIEWMODELFORPACKAGEDESIGNREQUEST_H_
#define ALIBABACLOUD_IVPD_MODEL_PREVIEWMODELFORPACKAGEDESIGNREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT PreviewModelForPackageDesignRequest : public RpcServiceRequest
{
public:
struct ElementList
{
std::string imageUrl;
std::string sideName;
};
public:
PreviewModelForPackageDesignRequest();
~PreviewModelForPackageDesignRequest();
std::string getMaterialName()const;
void setMaterialName(const std::string& materialName);
std::vector<ElementList> getElementList()const;
void setElementList(const std::vector<ElementList>& elementList);
std::string getDataId()const;
void setDataId(const std::string& dataId);
std::string getMaterialType()const;
void setMaterialType(const std::string& materialType);
std::string getModelType()const;
void setModelType(const std::string& modelType);
std::string getCategory()const;
void setCategory(const std::string& category);
private:
std::string materialName_;
std::vector<ElementList> elementList_;
std::string dataId_;
std::string materialType_;
std::string modelType_;
std::string category_;
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_PREVIEWMODELFORPACKAGEDESIGNREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_IVPD_MODEL_PREVIEWMODELFORPACKAGEDESIGNRESULT_H_
#define ALIBABACLOUD_IVPD_MODEL_PREVIEWMODELFORPACKAGEDESIGNRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT PreviewModelForPackageDesignResult : public ServiceResult
{
public:
struct Data
{
std::string previewUrl;
};
PreviewModelForPackageDesignResult();
explicit PreviewModelForPackageDesignResult(const std::string &payload);
~PreviewModelForPackageDesignResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_PREVIEWMODELFORPACKAGEDESIGNRESULT_H_

View File

@@ -0,0 +1,78 @@
/*
* 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_IVPD_MODEL_RENDERIMAGEFORPACKAGEDESIGNREQUEST_H_
#define ALIBABACLOUD_IVPD_MODEL_RENDERIMAGEFORPACKAGEDESIGNREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT RenderImageForPackageDesignRequest : public RpcServiceRequest
{
public:
struct ElementList
{
std::string imageUrl;
std::string sideName;
};
public:
RenderImageForPackageDesignRequest();
~RenderImageForPackageDesignRequest();
std::string getDisplayType()const;
void setDisplayType(const std::string& displayType);
std::string getMaterialName()const;
void setMaterialName(const std::string& materialName);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getMaterialType()const;
void setMaterialType(const std::string& materialType);
std::string getModelType()const;
void setModelType(const std::string& modelType);
int getTargetWidth()const;
void setTargetWidth(int targetWidth);
std::vector<ElementList> getElementList()const;
void setElementList(const std::vector<ElementList>& elementList);
std::string getCategory()const;
void setCategory(const std::string& category);
int getTargetHeight()const;
void setTargetHeight(int targetHeight);
private:
std::string displayType_;
std::string materialName_;
std::string jobId_;
std::string materialType_;
std::string modelType_;
int targetWidth_;
std::vector<ElementList> elementList_;
std::string category_;
int targetHeight_;
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_RENDERIMAGEFORPACKAGEDESIGNREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_IVPD_MODEL_RENDERIMAGEFORPACKAGEDESIGNRESULT_H_
#define ALIBABACLOUD_IVPD_MODEL_RENDERIMAGEFORPACKAGEDESIGNRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ivpd/IvpdExport.h>
namespace AlibabaCloud
{
namespace Ivpd
{
namespace Model
{
class ALIBABACLOUD_IVPD_EXPORT RenderImageForPackageDesignResult : public ServiceResult
{
public:
struct Data
{
std::string jobId;
};
RenderImageForPackageDesignResult();
explicit RenderImageForPackageDesignResult(const std::string &payload);
~RenderImageForPackageDesignResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_IVPD_MODEL_RENDERIMAGEFORPACKAGEDESIGNRESULT_H_

View File

@@ -267,6 +267,78 @@ IvpdClient::GetJobStatusOutcomeCallable IvpdClient::getJobStatusCallable(const G
return task->get_future();
}
IvpdClient::GetRenderResultOutcome IvpdClient::getRenderResult(const GetRenderResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetRenderResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetRenderResultOutcome(GetRenderResultResult(outcome.result()));
else
return GetRenderResultOutcome(outcome.error());
}
void IvpdClient::getRenderResultAsync(const GetRenderResultRequest& request, const GetRenderResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getRenderResult(request), context);
};
asyncExecute(new Runnable(fn));
}
IvpdClient::GetRenderResultOutcomeCallable IvpdClient::getRenderResultCallable(const GetRenderResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetRenderResultOutcome()>>(
[this, request]()
{
return this->getRenderResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IvpdClient::ListPackageDesignModelTypesOutcome IvpdClient::listPackageDesignModelTypes(const ListPackageDesignModelTypesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListPackageDesignModelTypesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListPackageDesignModelTypesOutcome(ListPackageDesignModelTypesResult(outcome.result()));
else
return ListPackageDesignModelTypesOutcome(outcome.error());
}
void IvpdClient::listPackageDesignModelTypesAsync(const ListPackageDesignModelTypesRequest& request, const ListPackageDesignModelTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listPackageDesignModelTypes(request), context);
};
asyncExecute(new Runnable(fn));
}
IvpdClient::ListPackageDesignModelTypesOutcomeCallable IvpdClient::listPackageDesignModelTypesCallable(const ListPackageDesignModelTypesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListPackageDesignModelTypesOutcome()>>(
[this, request]()
{
return this->listPackageDesignModelTypes(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IvpdClient::MakeSuperResolutionImageOutcome IvpdClient::makeSuperResolutionImage(const MakeSuperResolutionImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +375,42 @@ IvpdClient::MakeSuperResolutionImageOutcomeCallable IvpdClient::makeSuperResolut
return task->get_future();
}
IvpdClient::PreviewModelForPackageDesignOutcome IvpdClient::previewModelForPackageDesign(const PreviewModelForPackageDesignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PreviewModelForPackageDesignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PreviewModelForPackageDesignOutcome(PreviewModelForPackageDesignResult(outcome.result()));
else
return PreviewModelForPackageDesignOutcome(outcome.error());
}
void IvpdClient::previewModelForPackageDesignAsync(const PreviewModelForPackageDesignRequest& request, const PreviewModelForPackageDesignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, previewModelForPackageDesign(request), context);
};
asyncExecute(new Runnable(fn));
}
IvpdClient::PreviewModelForPackageDesignOutcomeCallable IvpdClient::previewModelForPackageDesignCallable(const PreviewModelForPackageDesignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PreviewModelForPackageDesignOutcome()>>(
[this, request]()
{
return this->previewModelForPackageDesign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IvpdClient::RecognizeImageColorOutcome IvpdClient::recognizeImageColor(const RecognizeImageColorRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -411,6 +519,42 @@ IvpdClient::RecolorImageOutcomeCallable IvpdClient::recolorImageCallable(const R
return task->get_future();
}
IvpdClient::RenderImageForPackageDesignOutcome IvpdClient::renderImageForPackageDesign(const RenderImageForPackageDesignRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RenderImageForPackageDesignOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RenderImageForPackageDesignOutcome(RenderImageForPackageDesignResult(outcome.result()));
else
return RenderImageForPackageDesignOutcome(outcome.error());
}
void IvpdClient::renderImageForPackageDesignAsync(const RenderImageForPackageDesignRequest& request, const RenderImageForPackageDesignAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, renderImageForPackageDesign(request), context);
};
asyncExecute(new Runnable(fn));
}
IvpdClient::RenderImageForPackageDesignOutcomeCallable IvpdClient::renderImageForPackageDesignCallable(const RenderImageForPackageDesignRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RenderImageForPackageDesignOutcome()>>(
[this, request]()
{
return this->renderImageForPackageDesign(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IvpdClient::SegmentBodyOutcome IvpdClient::segmentBody(const SegmentBodyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View 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/ivpd/model/GetRenderResultRequest.h>
using AlibabaCloud::Ivpd::Model::GetRenderResultRequest;
GetRenderResultRequest::GetRenderResultRequest() :
RpcServiceRequest("ivpd", "2019-06-25", "GetRenderResult")
{
setMethod(HttpRequest::Method::Post);
}
GetRenderResultRequest::~GetRenderResultRequest()
{}
std::string GetRenderResultRequest::getJobId()const
{
return jobId_;
}
void GetRenderResultRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setBodyParameter("JobId", jobId);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ivpd/model/GetRenderResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ivpd;
using namespace AlibabaCloud::Ivpd::Model;
GetRenderResultResult::GetRenderResultResult() :
ServiceResult()
{}
GetRenderResultResult::GetRenderResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRenderResultResult::~GetRenderResultResult()
{}
void GetRenderResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Completed"].isNull())
data_.completed = dataNode["Completed"].asString() == "true";
if(!dataNode["Progress"].isNull())
data_.progress = std::stof(dataNode["Progress"].asString());
if(!dataNode["Code"].isNull())
data_.code = dataNode["Code"].asString();
if(!dataNode["Message"].isNull())
data_.message = dataNode["Message"].asString();
auto resultDataNode = dataNode["ResultData"];
if(!resultDataNode["ImageUrl"].isNull())
data_.resultData.imageUrl = resultDataNode["ImageUrl"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetRenderResultResult::getMessage()const
{
return message_;
}
GetRenderResultResult::Data GetRenderResultResult::getData()const
{
return data_;
}
std::string GetRenderResultResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,29 @@
/*
* 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/ivpd/model/ListPackageDesignModelTypesRequest.h>
using AlibabaCloud::Ivpd::Model::ListPackageDesignModelTypesRequest;
ListPackageDesignModelTypesRequest::ListPackageDesignModelTypesRequest() :
RpcServiceRequest("ivpd", "2019-06-25", "ListPackageDesignModelTypes")
{
setMethod(HttpRequest::Method::Post);
}
ListPackageDesignModelTypesRequest::~ListPackageDesignModelTypesRequest()
{}

View 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/ivpd/model/ListPackageDesignModelTypesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ivpd;
using namespace AlibabaCloud::Ivpd::Model;
ListPackageDesignModelTypesResult::ListPackageDesignModelTypesResult() :
ServiceResult()
{}
ListPackageDesignModelTypesResult::ListPackageDesignModelTypesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPackageDesignModelTypesResult::~ListPackageDesignModelTypesResult()
{}
void ListPackageDesignModelTypesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allModelTypeListNode = dataNode["ModelTypeList"]["ModelType"];
for (auto dataNodeModelTypeListModelType : allModelTypeListNode)
{
Data::ModelType modelTypeObject;
if(!dataNodeModelTypeListModelType["ModelType"].isNull())
modelTypeObject.modelType = dataNodeModelTypeListModelType["ModelType"].asString();
auto allElementsNode = allModelTypeListNode["Elements"]["Element"];
for (auto allModelTypeListNodeElementsElement : allElementsNode)
{
Data::ModelType::Element elementsObject;
if(!allModelTypeListNodeElementsElement["SideName"].isNull())
elementsObject.sideName = allModelTypeListNodeElementsElement["SideName"].asString();
modelTypeObject.elements.push_back(elementsObject);
}
data_.modelTypeList.push_back(modelTypeObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListPackageDesignModelTypesResult::getMessage()const
{
return message_;
}
ListPackageDesignModelTypesResult::Data ListPackageDesignModelTypesResult::getData()const
{
return data_;
}
std::string ListPackageDesignModelTypesResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,100 @@
/*
* 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/ivpd/model/PreviewModelForPackageDesignRequest.h>
using AlibabaCloud::Ivpd::Model::PreviewModelForPackageDesignRequest;
PreviewModelForPackageDesignRequest::PreviewModelForPackageDesignRequest() :
RpcServiceRequest("ivpd", "2019-06-25", "PreviewModelForPackageDesign")
{
setMethod(HttpRequest::Method::Post);
}
PreviewModelForPackageDesignRequest::~PreviewModelForPackageDesignRequest()
{}
std::string PreviewModelForPackageDesignRequest::getMaterialName()const
{
return materialName_;
}
void PreviewModelForPackageDesignRequest::setMaterialName(const std::string& materialName)
{
materialName_ = materialName;
setBodyParameter("MaterialName", materialName);
}
std::vector<PreviewModelForPackageDesignRequest::ElementList> PreviewModelForPackageDesignRequest::getElementList()const
{
return elementList_;
}
void PreviewModelForPackageDesignRequest::setElementList(const std::vector<ElementList>& elementList)
{
elementList_ = elementList;
for(int dep1 = 0; dep1!= elementList.size(); dep1++) {
auto elementListObj = elementList.at(dep1);
std::string elementListObjStr = "ElementList." + std::to_string(dep1 + 1);
setParameter(elementListObjStr + ".ImageUrl", elementListObj.imageUrl);
setParameter(elementListObjStr + ".SideName", elementListObj.sideName);
}
}
std::string PreviewModelForPackageDesignRequest::getDataId()const
{
return dataId_;
}
void PreviewModelForPackageDesignRequest::setDataId(const std::string& dataId)
{
dataId_ = dataId;
setBodyParameter("DataId", dataId);
}
std::string PreviewModelForPackageDesignRequest::getMaterialType()const
{
return materialType_;
}
void PreviewModelForPackageDesignRequest::setMaterialType(const std::string& materialType)
{
materialType_ = materialType;
setBodyParameter("MaterialType", materialType);
}
std::string PreviewModelForPackageDesignRequest::getModelType()const
{
return modelType_;
}
void PreviewModelForPackageDesignRequest::setModelType(const std::string& modelType)
{
modelType_ = modelType;
setBodyParameter("ModelType", modelType);
}
std::string PreviewModelForPackageDesignRequest::getCategory()const
{
return category_;
}
void PreviewModelForPackageDesignRequest::setCategory(const std::string& category)
{
category_ = category;
setBodyParameter("Category", category);
}

View File

@@ -0,0 +1,66 @@
/*
* 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/ivpd/model/PreviewModelForPackageDesignResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ivpd;
using namespace AlibabaCloud::Ivpd::Model;
PreviewModelForPackageDesignResult::PreviewModelForPackageDesignResult() :
ServiceResult()
{}
PreviewModelForPackageDesignResult::PreviewModelForPackageDesignResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PreviewModelForPackageDesignResult::~PreviewModelForPackageDesignResult()
{}
void PreviewModelForPackageDesignResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PreviewUrl"].isNull())
data_.previewUrl = dataNode["PreviewUrl"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string PreviewModelForPackageDesignResult::getMessage()const
{
return message_;
}
PreviewModelForPackageDesignResult::Data PreviewModelForPackageDesignResult::getData()const
{
return data_;
}
std::string PreviewModelForPackageDesignResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,133 @@
/*
* 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/ivpd/model/RenderImageForPackageDesignRequest.h>
using AlibabaCloud::Ivpd::Model::RenderImageForPackageDesignRequest;
RenderImageForPackageDesignRequest::RenderImageForPackageDesignRequest() :
RpcServiceRequest("ivpd", "2019-06-25", "RenderImageForPackageDesign")
{
setMethod(HttpRequest::Method::Post);
}
RenderImageForPackageDesignRequest::~RenderImageForPackageDesignRequest()
{}
std::string RenderImageForPackageDesignRequest::getDisplayType()const
{
return displayType_;
}
void RenderImageForPackageDesignRequest::setDisplayType(const std::string& displayType)
{
displayType_ = displayType;
setBodyParameter("DisplayType", displayType);
}
std::string RenderImageForPackageDesignRequest::getMaterialName()const
{
return materialName_;
}
void RenderImageForPackageDesignRequest::setMaterialName(const std::string& materialName)
{
materialName_ = materialName;
setBodyParameter("MaterialName", materialName);
}
std::string RenderImageForPackageDesignRequest::getJobId()const
{
return jobId_;
}
void RenderImageForPackageDesignRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setBodyParameter("JobId", jobId);
}
std::string RenderImageForPackageDesignRequest::getMaterialType()const
{
return materialType_;
}
void RenderImageForPackageDesignRequest::setMaterialType(const std::string& materialType)
{
materialType_ = materialType;
setBodyParameter("MaterialType", materialType);
}
std::string RenderImageForPackageDesignRequest::getModelType()const
{
return modelType_;
}
void RenderImageForPackageDesignRequest::setModelType(const std::string& modelType)
{
modelType_ = modelType;
setBodyParameter("ModelType", modelType);
}
int RenderImageForPackageDesignRequest::getTargetWidth()const
{
return targetWidth_;
}
void RenderImageForPackageDesignRequest::setTargetWidth(int targetWidth)
{
targetWidth_ = targetWidth;
setBodyParameter("TargetWidth", std::to_string(targetWidth));
}
std::vector<RenderImageForPackageDesignRequest::ElementList> RenderImageForPackageDesignRequest::getElementList()const
{
return elementList_;
}
void RenderImageForPackageDesignRequest::setElementList(const std::vector<ElementList>& elementList)
{
elementList_ = elementList;
for(int dep1 = 0; dep1!= elementList.size(); dep1++) {
auto elementListObj = elementList.at(dep1);
std::string elementListObjStr = "ElementList." + std::to_string(dep1 + 1);
setParameter(elementListObjStr + ".ImageUrl", elementListObj.imageUrl);
setParameter(elementListObjStr + ".SideName", elementListObj.sideName);
}
}
std::string RenderImageForPackageDesignRequest::getCategory()const
{
return category_;
}
void RenderImageForPackageDesignRequest::setCategory(const std::string& category)
{
category_ = category;
setBodyParameter("Category", category);
}
int RenderImageForPackageDesignRequest::getTargetHeight()const
{
return targetHeight_;
}
void RenderImageForPackageDesignRequest::setTargetHeight(int targetHeight)
{
targetHeight_ = targetHeight;
setBodyParameter("TargetHeight", std::to_string(targetHeight));
}

View File

@@ -0,0 +1,66 @@
/*
* 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/ivpd/model/RenderImageForPackageDesignResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ivpd;
using namespace AlibabaCloud::Ivpd::Model;
RenderImageForPackageDesignResult::RenderImageForPackageDesignResult() :
ServiceResult()
{}
RenderImageForPackageDesignResult::RenderImageForPackageDesignResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenderImageForPackageDesignResult::~RenderImageForPackageDesignResult()
{}
void RenderImageForPackageDesignResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["JobId"].isNull())
data_.jobId = dataNode["JobId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string RenderImageForPackageDesignResult::getMessage()const
{
return message_;
}
RenderImageForPackageDesignResult::Data RenderImageForPackageDesignResult::getData()const
{
return data_;
}
std::string RenderImageForPackageDesignResult::getCode()const
{
return code_;
}

162
ledgerdb/CMakeLists.txt Normal file
View 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}
)

View 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_

View 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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERREQUEST_H_
#define ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
namespace AlibabaCloud
{
namespace Ledgerdb
{
namespace Model
{
class ALIBABACLOUD_LEDGERDB_EXPORT AcceptMemberRequest : public RpcServiceRequest
{
public:
AcceptMemberRequest();
~AcceptMemberRequest();
std::string getPublicKey()const;
void setPublicKey(const std::string& publicKey);
std::string getKeyType()const;
void setKeyType(const std::string& keyType);
std::string getLedgerId()const;
void setLedgerId(const std::string& ledgerId);
private:
std::string publicKey_;
std::string keyType_;
std::string ledgerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERRESULT_H_
#define ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
namespace AlibabaCloud
{
namespace Ledgerdb
{
namespace Model
{
class ALIBABACLOUD_LEDGERDB_EXPORT AcceptMemberResult : public ServiceResult
{
public:
AcceptMemberResult();
explicit AcceptMemberResult(const std::string &payload);
~AcceptMemberResult();
std::string getMemberId()const;
protected:
void parse(const std::string &payload);
private:
std::string memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_ACCEPTMEMBERRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTREQUEST_H_
#define ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ledgerdb/LedgerdbExport.h>
namespace AlibabaCloud
{
namespace Ledgerdb
{
namespace Model
{
class ALIBABACLOUD_LEDGERDB_EXPORT CreateVpcEndpointRequest : public RpcServiceRequest
{
public:
CreateVpcEndpointRequest();
~CreateVpcEndpointRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getLedgerId()const;
void setLedgerId(const std::string& ledgerId);
std::string getVSwitchId()const;
void setVSwitchId(const std::string& vSwitchId);
std::string getVpcId()const;
void setVpcId(const std::string& vpcId);
private:
std::string clientToken_;
std::string ledgerId_;
std::string vSwitchId_;
std::string vpcId_;
};
}
}
}
#endif // !ALIBABACLOUD_LEDGERDB_MODEL_CREATEVPCENDPOINTREQUEST_H_

Some files were not shown because too many files have changed in this diff Show More