Compare commits

..

17 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
sdk-team
3dd38f70c2 Add Statistics API. 2020-04-21 09:54:00 +08:00
sdk-team
cc6cea96e4 Add TemplateId. 2020-04-20 16:31:50 +08:00
sdk-team
f819d8866c Fix FaceContrastPicture. 2020-04-20 14:55:57 +08:00
sdk-team
d53a27c55f Add kibana network white Ips. 2020-04-20 14:25:18 +08:00
sdk-team
112b1d25da Multimedia poc modified. 2020-04-19 18:02:55 +08:00
sdk-team
f51d79f1b9 DescribeInstanceTypes support TotalEniQueueQuantity. 2020-04-17 17:56:20 +08:00
sdk-team
e53482d9c6 Modify SubmitSmarttagJob. 2020-04-16 19:47:18 +08:00
sdk-team
b004f4b9fa Add ModifyWhiteIps. 2020-04-16 18:17:53 +08:00
sdk-team
c9cf723562 Add BatchOptimization param in Stop and Start Instances. 2020-04-16 18:06:50 +08:00
404 changed files with 22088 additions and 736 deletions

View File

@@ -1,3 +1,69 @@
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.
2020-04-20 Version: 1.36.367
- Add TemplateId.
2020-04-20 Version: 1.36.366
- Fix FaceContrastPicture.
2020-04-20 Version: 1.36.365
- Add kibana network white Ips.
2020-04-19 Version: 1.36.364
- Multimedia poc modified.
2020-04-17 Version: 1.36.363
- DescribeInstanceTypes support TotalEniQueueQuantity.
2020-04-16 Version: 1.36.362
- Modify `SubmitSmarttagJob`.
2020-04-16 Version: 1.36.361
- Add ModifyWhiteIps.
2020-04-16 Version: 1.36.360
- Add BatchOptimization param in Stop and Start Instances.
- Add RemoveSymbols in GetInstanceConsoleOutput.
- Add ImageFamily in ModifyImageAttribute.
- Customize InstanceType on DedicatedHosts is supported.
- Add StorageCapacityUnit interfaces.
- Add param Tag in CreateAutoSnapshotPolicy.
2020-04-16 Version: 1.36.359
- Add features for open api.

View File

@@ -1 +1 @@
1.36.359
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

@@ -0,0 +1,56 @@
/*
* 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_LISTTAGSRESULT_H_
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_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 ListTagsResult : public ServiceResult
{
public:
struct Tag
{
std::string tagKey;
std::string tagValue;
};
ListTagsResult();
explicit ListTagsResult(const std::string &payload);
~ListTagsResult();
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Tag> tags_;
};
}
}
}
#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

@@ -33,6 +33,8 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h
include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h
include/alibabacloud/cloudauth/model/DescribeAppInfoRequest.h
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
@@ -43,6 +45,10 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h
include/alibabacloud/cloudauth/model/DescribeRPSDKRequest.h
include/alibabacloud/cloudauth/model/DescribeRPSDKResult.h
include/alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h
include/alibabacloud/cloudauth/model/DescribeSdkUrlResult.h
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h
include/alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h
include/alibabacloud/cloudauth/model/DescribeUploadInfoResult.h
include/alibabacloud/cloudauth/model/DescribeUserStatusRequest.h
@@ -67,6 +73,8 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
@@ -88,6 +96,8 @@ set(cloudauth_src
src/model/CreateVerifySDKResult.cc
src/model/CreateVerifySettingRequest.cc
src/model/CreateVerifySettingResult.cc
src/model/DescribeAppInfoRequest.cc
src/model/DescribeAppInfoResult.cc
src/model/DescribeDeviceInfoRequest.cc
src/model/DescribeDeviceInfoResult.cc
src/model/DescribeFaceUsageRequest.cc
@@ -98,6 +108,10 @@ set(cloudauth_src
src/model/DescribeOssUploadTokenResult.cc
src/model/DescribeRPSDKRequest.cc
src/model/DescribeRPSDKResult.cc
src/model/DescribeSdkUrlRequest.cc
src/model/DescribeSdkUrlResult.cc
src/model/DescribeUpdatePackageResultRequest.cc
src/model/DescribeUpdatePackageResultResult.cc
src/model/DescribeUploadInfoRequest.cc
src/model/DescribeUploadInfoResult.cc
src/model/DescribeUserStatusRequest.cc
@@ -122,6 +136,8 @@ set(cloudauth_src
src/model/InitFaceVerifyResult.cc
src/model/ModifyDeviceInfoRequest.cc
src/model/ModifyDeviceInfoResult.cc
src/model/UpdateAppPackageRequest.cc
src/model/UpdateAppPackageResult.cc
src/model/UpdateVerifySettingRequest.cc
src/model/UpdateVerifySettingResult.cc
src/model/VerifyDeviceRequest.cc

View File

@@ -34,6 +34,8 @@
#include "model/CreateVerifySDKResult.h"
#include "model/CreateVerifySettingRequest.h"
#include "model/CreateVerifySettingResult.h"
#include "model/DescribeAppInfoRequest.h"
#include "model/DescribeAppInfoResult.h"
#include "model/DescribeDeviceInfoRequest.h"
#include "model/DescribeDeviceInfoResult.h"
#include "model/DescribeFaceUsageRequest.h"
@@ -44,6 +46,10 @@
#include "model/DescribeOssUploadTokenResult.h"
#include "model/DescribeRPSDKRequest.h"
#include "model/DescribeRPSDKResult.h"
#include "model/DescribeSdkUrlRequest.h"
#include "model/DescribeSdkUrlResult.h"
#include "model/DescribeUpdatePackageResultRequest.h"
#include "model/DescribeUpdatePackageResultResult.h"
#include "model/DescribeUploadInfoRequest.h"
#include "model/DescribeUploadInfoResult.h"
#include "model/DescribeUserStatusRequest.h"
@@ -68,6 +74,8 @@
#include "model/InitFaceVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
#include "model/ModifyDeviceInfoResult.h"
#include "model/UpdateAppPackageRequest.h"
#include "model/UpdateAppPackageResult.h"
#include "model/UpdateVerifySettingRequest.h"
#include "model/UpdateVerifySettingResult.h"
#include "model/VerifyDeviceRequest.h"
@@ -101,6 +109,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateVerifySettingResult> CreateVerifySettingOutcome;
typedef std::future<CreateVerifySettingOutcome> CreateVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySettingRequest&, const CreateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySettingAsyncHandler;
typedef Outcome<Error, Model::DescribeAppInfoResult> DescribeAppInfoOutcome;
typedef std::future<DescribeAppInfoOutcome> DescribeAppInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeAppInfoRequest&, const DescribeAppInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAppInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
@@ -116,6 +127,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeRPSDKResult> DescribeRPSDKOutcome;
typedef std::future<DescribeRPSDKOutcome> DescribeRPSDKOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeRPSDKRequest&, const DescribeRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRPSDKAsyncHandler;
typedef Outcome<Error, Model::DescribeSdkUrlResult> DescribeSdkUrlOutcome;
typedef std::future<DescribeSdkUrlOutcome> DescribeSdkUrlOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeSdkUrlRequest&, const DescribeSdkUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSdkUrlAsyncHandler;
typedef Outcome<Error, Model::DescribeUpdatePackageResultResult> DescribeUpdatePackageResultOutcome;
typedef std::future<DescribeUpdatePackageResultOutcome> DescribeUpdatePackageResultOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUpdatePackageResultRequest&, const DescribeUpdatePackageResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpdatePackageResultAsyncHandler;
typedef Outcome<Error, Model::DescribeUploadInfoResult> DescribeUploadInfoOutcome;
typedef std::future<DescribeUploadInfoOutcome> DescribeUploadInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUploadInfoRequest&, const DescribeUploadInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUploadInfoAsyncHandler;
@@ -152,6 +169,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
@@ -184,6 +204,9 @@ namespace AlibabaCloud
CreateVerifySettingOutcome createVerifySetting(const Model::CreateVerifySettingRequest &request)const;
void createVerifySettingAsync(const Model::CreateVerifySettingRequest& request, const CreateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVerifySettingOutcomeCallable createVerifySettingCallable(const Model::CreateVerifySettingRequest& request) const;
DescribeAppInfoOutcome describeAppInfo(const Model::DescribeAppInfoRequest &request)const;
void describeAppInfoAsync(const Model::DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAppInfoOutcomeCallable describeAppInfoCallable(const Model::DescribeAppInfoRequest& request) const;
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
@@ -199,6 +222,12 @@ namespace AlibabaCloud
DescribeRPSDKOutcome describeRPSDK(const Model::DescribeRPSDKRequest &request)const;
void describeRPSDKAsync(const Model::DescribeRPSDKRequest& request, const DescribeRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRPSDKOutcomeCallable describeRPSDKCallable(const Model::DescribeRPSDKRequest& request) const;
DescribeSdkUrlOutcome describeSdkUrl(const Model::DescribeSdkUrlRequest &request)const;
void describeSdkUrlAsync(const Model::DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSdkUrlOutcomeCallable describeSdkUrlCallable(const Model::DescribeSdkUrlRequest& request) const;
DescribeUpdatePackageResultOutcome describeUpdatePackageResult(const Model::DescribeUpdatePackageResultRequest &request)const;
void describeUpdatePackageResultAsync(const Model::DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUpdatePackageResultOutcomeCallable describeUpdatePackageResultCallable(const Model::DescribeUpdatePackageResultRequest& request) const;
DescribeUploadInfoOutcome describeUploadInfo(const Model::DescribeUploadInfoRequest &request)const;
void describeUploadInfoAsync(const Model::DescribeUploadInfoRequest& request, const DescribeUploadInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUploadInfoOutcomeCallable describeUploadInfoCallable(const Model::DescribeUploadInfoRequest& request) const;
@@ -235,6 +264,9 @@ namespace AlibabaCloud
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;

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_CLOUDAUTH_MODEL_DESCRIBEAPPINFOREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeAppInfoRequest : public RpcServiceRequest
{
public:
DescribeAppInfoRequest();
~DescribeAppInfoRequest();
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int currentPage_;
std::string platform_;
std::string sourceIp_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFOREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFORESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeAppInfoResult : public ServiceResult
{
public:
struct AppInfo
{
struct PackageInfo
{
std::string version;
};
struct DebugPackageInfo
{
std::string version;
};
std::string startDate;
int type;
DebugPackageInfo debugPackageInfo;
std::string packageName;
PackageInfo packageInfo;
long id;
std::string icon;
std::string endDate;
std::string name;
};
DescribeAppInfoResult();
explicit DescribeAppInfoResult(const std::string &payload);
~DescribeAppInfoResult();
int getTotalCount()const;
int getPageSize()const;
int getCurrentPage()const;
std::vector<AppInfo> getAppInfoList()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int currentPage_;
std::vector<AppInfo> appInfoList_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFORESULT_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_CLOUDAUTH_MODEL_DESCRIBESDKURLREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESDKURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSdkUrlRequest : public RpcServiceRequest
{
public:
DescribeSdkUrlRequest();
~DescribeSdkUrlRequest();
bool getDebug()const;
void setDebug(bool debug);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getId()const;
void setId(long id);
private:
bool debug_;
std::string sourceIp_;
long id_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESDKURLREQUEST_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_CLOUDAUTH_MODEL_DESCRIBESDKURLRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESDKURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSdkUrlResult : public ServiceResult
{
public:
DescribeSdkUrlResult();
explicit DescribeSdkUrlResult(const std::string &payload);
~DescribeSdkUrlResult();
std::string getSdkUrl()const;
protected:
void parse(const std::string &payload);
private:
std::string sdkUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESDKURLRESULT_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_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUpdatePackageResultRequest : public RpcServiceRequest
{
public:
DescribeUpdatePackageResultRequest();
~DescribeUpdatePackageResultRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string sourceIp_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUpdatePackageResultResult : public ServiceResult
{
public:
struct AppInfo
{
struct PackageInfo
{
std::string version;
};
struct DebugPackageInfo
{
std::string version;
};
std::string startDate;
int type;
DebugPackageInfo debugPackageInfo;
std::string packageName;
PackageInfo packageInfo;
long id;
std::string icon;
std::string endDate;
std::string name;
};
DescribeUpdatePackageResultResult();
explicit DescribeUpdatePackageResultResult(const std::string &payload);
~DescribeUpdatePackageResultResult();
AppInfo getAppInfo()const;
protected:
void parse(const std::string &payload);
private:
AppInfo appInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_

View File

@@ -35,10 +35,13 @@ namespace AlibabaCloud
DescribeUploadInfoRequest();
~DescribeUploadInfoRequest();
std::string getBiz()const;
void setBiz(const std::string& biz);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string biz_;
std::string sourceIp_;
};

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_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateAppPackageRequest : public RpcServiceRequest
{
public:
UpdateAppPackageRequest();
~UpdateAppPackageRequest();
bool getDebug()const;
void setDebug(bool debug);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getPackageUrl()const;
void setPackageUrl(const std::string& packageUrl);
long getId()const;
void setId(long id);
private:
bool debug_;
std::string platform_;
std::string sourceIp_;
std::string packageUrl_;
long id_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_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_CLOUDAUTH_MODEL_UPDATEAPPPACKAGERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateAppPackageResult : public ServiceResult
{
public:
UpdateAppPackageResult();
explicit UpdateAppPackageResult(const std::string &payload);
~UpdateAppPackageResult();
std::string getTaskId()const;
protected:
void parse(const std::string &payload);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGERESULT_H_

View File

@@ -267,6 +267,42 @@ CloudauthClient::CreateVerifySettingOutcomeCallable CloudauthClient::createVerif
return task->get_future();
}
CloudauthClient::DescribeAppInfoOutcome CloudauthClient::describeAppInfo(const DescribeAppInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAppInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAppInfoOutcome(DescribeAppInfoResult(outcome.result()));
else
return DescribeAppInfoOutcome(outcome.error());
}
void CloudauthClient::describeAppInfoAsync(const DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAppInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeAppInfoOutcomeCallable CloudauthClient::describeAppInfoCallable(const DescribeAppInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAppInfoOutcome()>>(
[this, request]()
{
return this->describeAppInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,6 +483,78 @@ CloudauthClient::DescribeRPSDKOutcomeCallable CloudauthClient::describeRPSDKCall
return task->get_future();
}
CloudauthClient::DescribeSdkUrlOutcome CloudauthClient::describeSdkUrl(const DescribeSdkUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSdkUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSdkUrlOutcome(DescribeSdkUrlResult(outcome.result()));
else
return DescribeSdkUrlOutcome(outcome.error());
}
void CloudauthClient::describeSdkUrlAsync(const DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSdkUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeSdkUrlOutcomeCallable CloudauthClient::describeSdkUrlCallable(const DescribeSdkUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSdkUrlOutcome()>>(
[this, request]()
{
return this->describeSdkUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUpdatePackageResultOutcome CloudauthClient::describeUpdatePackageResult(const DescribeUpdatePackageResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUpdatePackageResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUpdatePackageResultOutcome(DescribeUpdatePackageResultResult(outcome.result()));
else
return DescribeUpdatePackageResultOutcome(outcome.error());
}
void CloudauthClient::describeUpdatePackageResultAsync(const DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUpdatePackageResult(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUpdatePackageResultOutcomeCallable CloudauthClient::describeUpdatePackageResultCallable(const DescribeUpdatePackageResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUpdatePackageResultOutcome()>>(
[this, request]()
{
return this->describeUpdatePackageResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUploadInfoOutcome CloudauthClient::describeUploadInfo(const DescribeUploadInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +987,42 @@ CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceIn
return task->get_future();
}
CloudauthClient::UpdateAppPackageOutcome CloudauthClient::updateAppPackage(const UpdateAppPackageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateAppPackageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateAppPackageOutcome(UpdateAppPackageResult(outcome.result()));
else
return UpdateAppPackageOutcome(outcome.error());
}
void CloudauthClient::updateAppPackageAsync(const UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateAppPackage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateAppPackageOutcomeCallable CloudauthClient::updateAppPackageCallable(const UpdateAppPackageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateAppPackageOutcome()>>(
[this, request]()
{
return this->updateAppPackage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -35,7 +35,7 @@ std::string ContrastFaceVerifyRequest::getProductCode()const
void ContrastFaceVerifyRequest::setProductCode(const std::string& productCode)
{
productCode_ = productCode;
setParameter("ProductCode", productCode);
setBodyParameter("ProductCode", productCode);
}
std::string ContrastFaceVerifyRequest::getOssObjectName()const
@@ -46,7 +46,7 @@ std::string ContrastFaceVerifyRequest::getOssObjectName()const
void ContrastFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
{
ossObjectName_ = ossObjectName;
setParameter("OssObjectName", ossObjectName);
setBodyParameter("OssObjectName", ossObjectName);
}
std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const
@@ -57,7 +57,7 @@ std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const
void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
{
faceContrastPicture_ = faceContrastPicture;
setParameter("FaceContrastPicture", faceContrastPicture);
setBodyParameter("FaceContrastPicture", faceContrastPicture);
}
std::string ContrastFaceVerifyRequest::getCertName()const
@@ -68,7 +68,7 @@ std::string ContrastFaceVerifyRequest::getCertName()const
void ContrastFaceVerifyRequest::setCertName(const std::string& certName)
{
certName_ = certName;
setParameter("CertName", certName);
setBodyParameter("CertName", certName);
}
std::string ContrastFaceVerifyRequest::getIp()const
@@ -79,7 +79,7 @@ std::string ContrastFaceVerifyRequest::getIp()const
void ContrastFaceVerifyRequest::setIp(const std::string& ip)
{
ip_ = ip;
setParameter("Ip", ip);
setBodyParameter("Ip", ip);
}
std::string ContrastFaceVerifyRequest::getMobile()const
@@ -90,7 +90,7 @@ std::string ContrastFaceVerifyRequest::getMobile()const
void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setParameter("Mobile", mobile);
setBodyParameter("Mobile", mobile);
}
std::string ContrastFaceVerifyRequest::getDeviceToken()const
@@ -101,7 +101,7 @@ std::string ContrastFaceVerifyRequest::getDeviceToken()const
void ContrastFaceVerifyRequest::setDeviceToken(const std::string& deviceToken)
{
deviceToken_ = deviceToken;
setParameter("DeviceToken", deviceToken);
setBodyParameter("DeviceToken", deviceToken);
}
std::string ContrastFaceVerifyRequest::getUserId()const
@@ -112,7 +112,7 @@ std::string ContrastFaceVerifyRequest::getUserId()const
void ContrastFaceVerifyRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
setBodyParameter("UserId", userId);
}
std::string ContrastFaceVerifyRequest::getCertifyId()const
@@ -123,7 +123,7 @@ std::string ContrastFaceVerifyRequest::getCertifyId()const
void ContrastFaceVerifyRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
setBodyParameter("CertifyId", certifyId);
}
std::string ContrastFaceVerifyRequest::getCertNo()const
@@ -134,7 +134,7 @@ std::string ContrastFaceVerifyRequest::getCertNo()const
void ContrastFaceVerifyRequest::setCertNo(const std::string& certNo)
{
certNo_ = certNo;
setParameter("CertNo", certNo);
setBodyParameter("CertNo", certNo);
}
std::string ContrastFaceVerifyRequest::getOuterOrderNo()const
@@ -145,7 +145,7 @@ std::string ContrastFaceVerifyRequest::getOuterOrderNo()const
void ContrastFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
{
outerOrderNo_ = outerOrderNo;
setParameter("OuterOrderNo", outerOrderNo);
setBodyParameter("OuterOrderNo", outerOrderNo);
}
std::string ContrastFaceVerifyRequest::getCertType()const
@@ -156,7 +156,7 @@ std::string ContrastFaceVerifyRequest::getCertType()const
void ContrastFaceVerifyRequest::setCertType(const std::string& certType)
{
certType_ = certType;
setParameter("CertType", certType);
setBodyParameter("CertType", certType);
}
std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl()const
@@ -167,7 +167,7 @@ std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl()const
void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl)
{
faceContrastPictureUrl_ = faceContrastPictureUrl;
setParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
}
long ContrastFaceVerifyRequest::getSceneId()const
@@ -178,7 +178,7 @@ long ContrastFaceVerifyRequest::getSceneId()const
void ContrastFaceVerifyRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
setBodyParameter("SceneId", std::to_string(sceneId));
}
std::string ContrastFaceVerifyRequest::getOssBucketName()const
@@ -189,6 +189,6 @@ std::string ContrastFaceVerifyRequest::getOssBucketName()const
void ContrastFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
{
ossBucketName_ = ossBucketName;
setParameter("OssBucketName", ossBucketName);
setBodyParameter("OssBucketName", ossBucketName);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeAppInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeAppInfoRequest;
DescribeAppInfoRequest::DescribeAppInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeAppInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAppInfoRequest::~DescribeAppInfoRequest()
{}
int DescribeAppInfoRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAppInfoRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAppInfoRequest::getPlatform()const
{
return platform_;
}
void DescribeAppInfoRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string DescribeAppInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAppInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAppInfoRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAppInfoRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeAppInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeAppInfoResult::DescribeAppInfoResult() :
ServiceResult()
{}
DescribeAppInfoResult::DescribeAppInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppInfoResult::~DescribeAppInfoResult()
{}
void DescribeAppInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppInfoListNode = value["AppInfoList"]["AppInfo"];
for (auto valueAppInfoListAppInfo : allAppInfoListNode)
{
AppInfo appInfoListObject;
if(!valueAppInfoListAppInfo["Id"].isNull())
appInfoListObject.id = std::stol(valueAppInfoListAppInfo["Id"].asString());
if(!valueAppInfoListAppInfo["Name"].isNull())
appInfoListObject.name = valueAppInfoListAppInfo["Name"].asString();
if(!valueAppInfoListAppInfo["PackageName"].isNull())
appInfoListObject.packageName = valueAppInfoListAppInfo["PackageName"].asString();
if(!valueAppInfoListAppInfo["Icon"].isNull())
appInfoListObject.icon = valueAppInfoListAppInfo["Icon"].asString();
if(!valueAppInfoListAppInfo["StartDate"].isNull())
appInfoListObject.startDate = valueAppInfoListAppInfo["StartDate"].asString();
if(!valueAppInfoListAppInfo["EndDate"].isNull())
appInfoListObject.endDate = valueAppInfoListAppInfo["EndDate"].asString();
if(!valueAppInfoListAppInfo["Type"].isNull())
appInfoListObject.type = std::stoi(valueAppInfoListAppInfo["Type"].asString());
auto packageInfoNode = value["PackageInfo"];
if(!packageInfoNode["Version"].isNull())
appInfoListObject.packageInfo.version = packageInfoNode["Version"].asString();
auto debugPackageInfoNode = value["DebugPackageInfo"];
if(!debugPackageInfoNode["Version"].isNull())
appInfoListObject.debugPackageInfo.version = debugPackageInfoNode["Version"].asString();
appInfoList_.push_back(appInfoListObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeAppInfoResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAppInfoResult::getPageSize()const
{
return pageSize_;
}
int DescribeAppInfoResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeAppInfoResult::AppInfo> DescribeAppInfoResult::getAppInfoList()const
{
return appInfoList_;
}

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.
*/
#include <alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeSdkUrlRequest;
DescribeSdkUrlRequest::DescribeSdkUrlRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeSdkUrl")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSdkUrlRequest::~DescribeSdkUrlRequest()
{}
bool DescribeSdkUrlRequest::getDebug()const
{
return debug_;
}
void DescribeSdkUrlRequest::setDebug(bool debug)
{
debug_ = debug;
setParameter("Debug", debug ? "true" : "false");
}
std::string DescribeSdkUrlRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeSdkUrlRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeSdkUrlRequest::getId()const
{
return id_;
}
void DescribeSdkUrlRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

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.
*/
#include <alibabacloud/cloudauth/model/DescribeSdkUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeSdkUrlResult::DescribeSdkUrlResult() :
ServiceResult()
{}
DescribeSdkUrlResult::DescribeSdkUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSdkUrlResult::~DescribeSdkUrlResult()
{}
void DescribeSdkUrlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SdkUrl"].isNull())
sdkUrl_ = value["SdkUrl"].asString();
}
std::string DescribeSdkUrlResult::getSdkUrl()const
{
return sdkUrl_;
}

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.
*/
#include <alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeUpdatePackageResultRequest;
DescribeUpdatePackageResultRequest::DescribeUpdatePackageResultRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUpdatePackageResult")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUpdatePackageResultRequest::~DescribeUpdatePackageResultRequest()
{}
std::string DescribeUpdatePackageResultRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUpdatePackageResultRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeUpdatePackageResultRequest::getTaskId()const
{
return taskId_;
}
void DescribeUpdatePackageResultRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

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/cloudauth/model/DescribeUpdatePackageResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeUpdatePackageResultResult::DescribeUpdatePackageResultResult() :
ServiceResult()
{}
DescribeUpdatePackageResultResult::DescribeUpdatePackageResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUpdatePackageResultResult::~DescribeUpdatePackageResultResult()
{}
void DescribeUpdatePackageResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appInfoNode = value["AppInfo"];
if(!appInfoNode["Id"].isNull())
appInfo_.id = std::stol(appInfoNode["Id"].asString());
if(!appInfoNode["Name"].isNull())
appInfo_.name = appInfoNode["Name"].asString();
if(!appInfoNode["PackageName"].isNull())
appInfo_.packageName = appInfoNode["PackageName"].asString();
if(!appInfoNode["Icon"].isNull())
appInfo_.icon = appInfoNode["Icon"].asString();
if(!appInfoNode["StartDate"].isNull())
appInfo_.startDate = appInfoNode["StartDate"].asString();
if(!appInfoNode["EndDate"].isNull())
appInfo_.endDate = appInfoNode["EndDate"].asString();
if(!appInfoNode["Type"].isNull())
appInfo_.type = std::stoi(appInfoNode["Type"].asString());
auto packageInfoNode = appInfoNode["PackageInfo"];
if(!packageInfoNode["Version"].isNull())
appInfo_.packageInfo.version = packageInfoNode["Version"].asString();
auto debugPackageInfoNode = appInfoNode["DebugPackageInfo"];
if(!debugPackageInfoNode["Version"].isNull())
appInfo_.debugPackageInfo.version = debugPackageInfoNode["Version"].asString();
}
DescribeUpdatePackageResultResult::AppInfo DescribeUpdatePackageResultResult::getAppInfo()const
{
return appInfo_;
}

View File

@@ -27,6 +27,17 @@ DescribeUploadInfoRequest::DescribeUploadInfoRequest() :
DescribeUploadInfoRequest::~DescribeUploadInfoRequest()
{}
std::string DescribeUploadInfoRequest::getBiz()const
{
return biz_;
}
void DescribeUploadInfoRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
}
std::string DescribeUploadInfoRequest::getSourceIp()const
{
return sourceIp_;

View File

@@ -46,7 +46,7 @@ std::string InitFaceVerifyRequest::getFaceContrastPicture()const
void InitFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
{
faceContrastPicture_ = faceContrastPicture;
setParameter("FaceContrastPicture", faceContrastPicture);
setBodyParameter("FaceContrastPicture", faceContrastPicture);
}
std::string InitFaceVerifyRequest::getUserId()const

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/cloudauth/model/UpdateAppPackageRequest.h>
using AlibabaCloud::Cloudauth::Model::UpdateAppPackageRequest;
UpdateAppPackageRequest::UpdateAppPackageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateAppPackage")
{
setMethod(HttpRequest::Method::Post);
}
UpdateAppPackageRequest::~UpdateAppPackageRequest()
{}
bool UpdateAppPackageRequest::getDebug()const
{
return debug_;
}
void UpdateAppPackageRequest::setDebug(bool debug)
{
debug_ = debug;
setParameter("Debug", debug ? "true" : "false");
}
std::string UpdateAppPackageRequest::getPlatform()const
{
return platform_;
}
void UpdateAppPackageRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string UpdateAppPackageRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateAppPackageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateAppPackageRequest::getPackageUrl()const
{
return packageUrl_;
}
void UpdateAppPackageRequest::setPackageUrl(const std::string& packageUrl)
{
packageUrl_ = packageUrl;
setParameter("PackageUrl", packageUrl);
}
long UpdateAppPackageRequest::getId()const
{
return id_;
}
void UpdateAppPackageRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

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.
*/
#include <alibabacloud/cloudauth/model/UpdateAppPackageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
UpdateAppPackageResult::UpdateAppPackageResult() :
ServiceResult()
{}
UpdateAppPackageResult::UpdateAppPackageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAppPackageResult::~UpdateAppPackageResult()
{}
void UpdateAppPackageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string UpdateAppPackageResult::getTaskId()const
{
return taskId_;
}

View File

@@ -53,28 +53,46 @@ set(csb_public_header_model
include/alibabacloud/csb/model/DeleteUnionCasServiceResult.h
include/alibabacloud/csb/model/DescribeRegionsRequest.h
include/alibabacloud/csb/model/DescribeRegionsResult.h
include/alibabacloud/csb/model/FindAllLinkRuleRequest.h
include/alibabacloud/csb/model/FindAllLinkRuleResult.h
include/alibabacloud/csb/model/FindApprovalOrderListRequest.h
include/alibabacloud/csb/model/FindApprovalOrderListResult.h
include/alibabacloud/csb/model/FindApproveServiceListRequest.h
include/alibabacloud/csb/model/FindApproveServiceListResult.h
include/alibabacloud/csb/model/FindBrokerSLOHisListRequest.h
include/alibabacloud/csb/model/FindBrokerSLOHisListResult.h
include/alibabacloud/csb/model/FindBrokerSLOListRequest.h
include/alibabacloud/csb/model/FindBrokerSLOListResult.h
include/alibabacloud/csb/model/FindCredentialStatisticalDataRequest.h
include/alibabacloud/csb/model/FindCredentialStatisticalDataResult.h
include/alibabacloud/csb/model/FindCredentialsListRequest.h
include/alibabacloud/csb/model/FindCredentialsListResult.h
include/alibabacloud/csb/model/FindInstanceListRequest.h
include/alibabacloud/csb/model/FindInstanceListResult.h
include/alibabacloud/csb/model/FindInstanceNodeListRequest.h
include/alibabacloud/csb/model/FindInstanceNodeListResult.h
include/alibabacloud/csb/model/FindOrderableListRequest.h
include/alibabacloud/csb/model/FindOrderableListResult.h
include/alibabacloud/csb/model/FindOrderedListRequest.h
include/alibabacloud/csb/model/FindOrderedListResult.h
include/alibabacloud/csb/model/FindProjectListRequest.h
include/alibabacloud/csb/model/FindProjectListResult.h
include/alibabacloud/csb/model/FindProjectStatisticalDataRequest.h
include/alibabacloud/csb/model/FindProjectStatisticalDataResult.h
include/alibabacloud/csb/model/FindProjectsNameListRequest.h
include/alibabacloud/csb/model/FindProjectsNameListResult.h
include/alibabacloud/csb/model/FindServiceCredentialStatisticalDataRequest.h
include/alibabacloud/csb/model/FindServiceCredentialStatisticalDataResult.h
include/alibabacloud/csb/model/FindServiceListRequest.h
include/alibabacloud/csb/model/FindServiceListResult.h
include/alibabacloud/csb/model/FindServiceStatisticalDataRequest.h
include/alibabacloud/csb/model/FindServiceStatisticalDataResult.h
include/alibabacloud/csb/model/GetConsoleSLORequest.h
include/alibabacloud/csb/model/GetConsoleSLOResult.h
include/alibabacloud/csb/model/GetInstanceRequest.h
include/alibabacloud/csb/model/GetInstanceResult.h
include/alibabacloud/csb/model/GetMetaServerSLORequest.h
include/alibabacloud/csb/model/GetMetaServerSLOResult.h
include/alibabacloud/csb/model/GetOrderRequest.h
include/alibabacloud/csb/model/GetOrderResult.h
include/alibabacloud/csb/model/GetProjectRequest.h
@@ -140,28 +158,46 @@ set(csb_src
src/model/DeleteUnionCasServiceResult.cc
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/FindAllLinkRuleRequest.cc
src/model/FindAllLinkRuleResult.cc
src/model/FindApprovalOrderListRequest.cc
src/model/FindApprovalOrderListResult.cc
src/model/FindApproveServiceListRequest.cc
src/model/FindApproveServiceListResult.cc
src/model/FindBrokerSLOHisListRequest.cc
src/model/FindBrokerSLOHisListResult.cc
src/model/FindBrokerSLOListRequest.cc
src/model/FindBrokerSLOListResult.cc
src/model/FindCredentialStatisticalDataRequest.cc
src/model/FindCredentialStatisticalDataResult.cc
src/model/FindCredentialsListRequest.cc
src/model/FindCredentialsListResult.cc
src/model/FindInstanceListRequest.cc
src/model/FindInstanceListResult.cc
src/model/FindInstanceNodeListRequest.cc
src/model/FindInstanceNodeListResult.cc
src/model/FindOrderableListRequest.cc
src/model/FindOrderableListResult.cc
src/model/FindOrderedListRequest.cc
src/model/FindOrderedListResult.cc
src/model/FindProjectListRequest.cc
src/model/FindProjectListResult.cc
src/model/FindProjectStatisticalDataRequest.cc
src/model/FindProjectStatisticalDataResult.cc
src/model/FindProjectsNameListRequest.cc
src/model/FindProjectsNameListResult.cc
src/model/FindServiceCredentialStatisticalDataRequest.cc
src/model/FindServiceCredentialStatisticalDataResult.cc
src/model/FindServiceListRequest.cc
src/model/FindServiceListResult.cc
src/model/FindServiceStatisticalDataRequest.cc
src/model/FindServiceStatisticalDataResult.cc
src/model/GetConsoleSLORequest.cc
src/model/GetConsoleSLOResult.cc
src/model/GetInstanceRequest.cc
src/model/GetInstanceResult.cc
src/model/GetMetaServerSLORequest.cc
src/model/GetMetaServerSLOResult.cc
src/model/GetOrderRequest.cc
src/model/GetOrderResult.cc
src/model/GetProjectRequest.cc

View File

@@ -54,28 +54,46 @@
#include "model/DeleteUnionCasServiceResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/FindAllLinkRuleRequest.h"
#include "model/FindAllLinkRuleResult.h"
#include "model/FindApprovalOrderListRequest.h"
#include "model/FindApprovalOrderListResult.h"
#include "model/FindApproveServiceListRequest.h"
#include "model/FindApproveServiceListResult.h"
#include "model/FindBrokerSLOHisListRequest.h"
#include "model/FindBrokerSLOHisListResult.h"
#include "model/FindBrokerSLOListRequest.h"
#include "model/FindBrokerSLOListResult.h"
#include "model/FindCredentialStatisticalDataRequest.h"
#include "model/FindCredentialStatisticalDataResult.h"
#include "model/FindCredentialsListRequest.h"
#include "model/FindCredentialsListResult.h"
#include "model/FindInstanceListRequest.h"
#include "model/FindInstanceListResult.h"
#include "model/FindInstanceNodeListRequest.h"
#include "model/FindInstanceNodeListResult.h"
#include "model/FindOrderableListRequest.h"
#include "model/FindOrderableListResult.h"
#include "model/FindOrderedListRequest.h"
#include "model/FindOrderedListResult.h"
#include "model/FindProjectListRequest.h"
#include "model/FindProjectListResult.h"
#include "model/FindProjectStatisticalDataRequest.h"
#include "model/FindProjectStatisticalDataResult.h"
#include "model/FindProjectsNameListRequest.h"
#include "model/FindProjectsNameListResult.h"
#include "model/FindServiceCredentialStatisticalDataRequest.h"
#include "model/FindServiceCredentialStatisticalDataResult.h"
#include "model/FindServiceListRequest.h"
#include "model/FindServiceListResult.h"
#include "model/FindServiceStatisticalDataRequest.h"
#include "model/FindServiceStatisticalDataResult.h"
#include "model/GetConsoleSLORequest.h"
#include "model/GetConsoleSLOResult.h"
#include "model/GetInstanceRequest.h"
#include "model/GetInstanceResult.h"
#include "model/GetMetaServerSLORequest.h"
#include "model/GetMetaServerSLOResult.h"
#include "model/GetOrderRequest.h"
#include "model/GetOrderResult.h"
#include "model/GetProjectRequest.h"
@@ -163,18 +181,33 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::FindAllLinkRuleResult> FindAllLinkRuleOutcome;
typedef std::future<FindAllLinkRuleOutcome> FindAllLinkRuleOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindAllLinkRuleRequest&, const FindAllLinkRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindAllLinkRuleAsyncHandler;
typedef Outcome<Error, Model::FindApprovalOrderListResult> FindApprovalOrderListOutcome;
typedef std::future<FindApprovalOrderListOutcome> FindApprovalOrderListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindApprovalOrderListRequest&, const FindApprovalOrderListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindApprovalOrderListAsyncHandler;
typedef Outcome<Error, Model::FindApproveServiceListResult> FindApproveServiceListOutcome;
typedef std::future<FindApproveServiceListOutcome> FindApproveServiceListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindApproveServiceListRequest&, const FindApproveServiceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindApproveServiceListAsyncHandler;
typedef Outcome<Error, Model::FindBrokerSLOHisListResult> FindBrokerSLOHisListOutcome;
typedef std::future<FindBrokerSLOHisListOutcome> FindBrokerSLOHisListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindBrokerSLOHisListRequest&, const FindBrokerSLOHisListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindBrokerSLOHisListAsyncHandler;
typedef Outcome<Error, Model::FindBrokerSLOListResult> FindBrokerSLOListOutcome;
typedef std::future<FindBrokerSLOListOutcome> FindBrokerSLOListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindBrokerSLOListRequest&, const FindBrokerSLOListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindBrokerSLOListAsyncHandler;
typedef Outcome<Error, Model::FindCredentialStatisticalDataResult> FindCredentialStatisticalDataOutcome;
typedef std::future<FindCredentialStatisticalDataOutcome> FindCredentialStatisticalDataOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindCredentialStatisticalDataRequest&, const FindCredentialStatisticalDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindCredentialStatisticalDataAsyncHandler;
typedef Outcome<Error, Model::FindCredentialsListResult> FindCredentialsListOutcome;
typedef std::future<FindCredentialsListOutcome> FindCredentialsListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindCredentialsListRequest&, const FindCredentialsListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindCredentialsListAsyncHandler;
typedef Outcome<Error, Model::FindInstanceListResult> FindInstanceListOutcome;
typedef std::future<FindInstanceListOutcome> FindInstanceListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindInstanceListRequest&, const FindInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindInstanceListAsyncHandler;
typedef Outcome<Error, Model::FindInstanceNodeListResult> FindInstanceNodeListOutcome;
typedef std::future<FindInstanceNodeListOutcome> FindInstanceNodeListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindInstanceNodeListRequest&, const FindInstanceNodeListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindInstanceNodeListAsyncHandler;
typedef Outcome<Error, Model::FindOrderableListResult> FindOrderableListOutcome;
typedef std::future<FindOrderableListOutcome> FindOrderableListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindOrderableListRequest&, const FindOrderableListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindOrderableListAsyncHandler;
@@ -184,18 +217,30 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::FindProjectListResult> FindProjectListOutcome;
typedef std::future<FindProjectListOutcome> FindProjectListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindProjectListRequest&, const FindProjectListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindProjectListAsyncHandler;
typedef Outcome<Error, Model::FindProjectStatisticalDataResult> FindProjectStatisticalDataOutcome;
typedef std::future<FindProjectStatisticalDataOutcome> FindProjectStatisticalDataOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindProjectStatisticalDataRequest&, const FindProjectStatisticalDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindProjectStatisticalDataAsyncHandler;
typedef Outcome<Error, Model::FindProjectsNameListResult> FindProjectsNameListOutcome;
typedef std::future<FindProjectsNameListOutcome> FindProjectsNameListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindProjectsNameListRequest&, const FindProjectsNameListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindProjectsNameListAsyncHandler;
typedef Outcome<Error, Model::FindServiceCredentialStatisticalDataResult> FindServiceCredentialStatisticalDataOutcome;
typedef std::future<FindServiceCredentialStatisticalDataOutcome> FindServiceCredentialStatisticalDataOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindServiceCredentialStatisticalDataRequest&, const FindServiceCredentialStatisticalDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindServiceCredentialStatisticalDataAsyncHandler;
typedef Outcome<Error, Model::FindServiceListResult> FindServiceListOutcome;
typedef std::future<FindServiceListOutcome> FindServiceListOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindServiceListRequest&, const FindServiceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindServiceListAsyncHandler;
typedef Outcome<Error, Model::FindServiceStatisticalDataResult> FindServiceStatisticalDataOutcome;
typedef std::future<FindServiceStatisticalDataOutcome> FindServiceStatisticalDataOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::FindServiceStatisticalDataRequest&, const FindServiceStatisticalDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindServiceStatisticalDataAsyncHandler;
typedef Outcome<Error, Model::GetConsoleSLOResult> GetConsoleSLOOutcome;
typedef std::future<GetConsoleSLOOutcome> GetConsoleSLOOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::GetConsoleSLORequest&, const GetConsoleSLOOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsoleSLOAsyncHandler;
typedef Outcome<Error, Model::GetInstanceResult> GetInstanceOutcome;
typedef std::future<GetInstanceOutcome> GetInstanceOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::GetInstanceRequest&, const GetInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceAsyncHandler;
typedef Outcome<Error, Model::GetMetaServerSLOResult> GetMetaServerSLOOutcome;
typedef std::future<GetMetaServerSLOOutcome> GetMetaServerSLOOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::GetMetaServerSLORequest&, const GetMetaServerSLOOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMetaServerSLOAsyncHandler;
typedef Outcome<Error, Model::GetOrderResult> GetOrderOutcome;
typedef std::future<GetOrderOutcome> GetOrderOutcomeCallable;
typedef std::function<void(const CSBClient*, const Model::GetOrderRequest&, const GetOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOrderAsyncHandler;
@@ -294,18 +339,33 @@ namespace AlibabaCloud
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;
FindAllLinkRuleOutcome findAllLinkRule(const Model::FindAllLinkRuleRequest &request)const;
void findAllLinkRuleAsync(const Model::FindAllLinkRuleRequest& request, const FindAllLinkRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindAllLinkRuleOutcomeCallable findAllLinkRuleCallable(const Model::FindAllLinkRuleRequest& request) const;
FindApprovalOrderListOutcome findApprovalOrderList(const Model::FindApprovalOrderListRequest &request)const;
void findApprovalOrderListAsync(const Model::FindApprovalOrderListRequest& request, const FindApprovalOrderListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindApprovalOrderListOutcomeCallable findApprovalOrderListCallable(const Model::FindApprovalOrderListRequest& request) const;
FindApproveServiceListOutcome findApproveServiceList(const Model::FindApproveServiceListRequest &request)const;
void findApproveServiceListAsync(const Model::FindApproveServiceListRequest& request, const FindApproveServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindApproveServiceListOutcomeCallable findApproveServiceListCallable(const Model::FindApproveServiceListRequest& request) const;
FindBrokerSLOHisListOutcome findBrokerSLOHisList(const Model::FindBrokerSLOHisListRequest &request)const;
void findBrokerSLOHisListAsync(const Model::FindBrokerSLOHisListRequest& request, const FindBrokerSLOHisListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindBrokerSLOHisListOutcomeCallable findBrokerSLOHisListCallable(const Model::FindBrokerSLOHisListRequest& request) const;
FindBrokerSLOListOutcome findBrokerSLOList(const Model::FindBrokerSLOListRequest &request)const;
void findBrokerSLOListAsync(const Model::FindBrokerSLOListRequest& request, const FindBrokerSLOListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindBrokerSLOListOutcomeCallable findBrokerSLOListCallable(const Model::FindBrokerSLOListRequest& request) const;
FindCredentialStatisticalDataOutcome findCredentialStatisticalData(const Model::FindCredentialStatisticalDataRequest &request)const;
void findCredentialStatisticalDataAsync(const Model::FindCredentialStatisticalDataRequest& request, const FindCredentialStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindCredentialStatisticalDataOutcomeCallable findCredentialStatisticalDataCallable(const Model::FindCredentialStatisticalDataRequest& request) const;
FindCredentialsListOutcome findCredentialsList(const Model::FindCredentialsListRequest &request)const;
void findCredentialsListAsync(const Model::FindCredentialsListRequest& request, const FindCredentialsListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindCredentialsListOutcomeCallable findCredentialsListCallable(const Model::FindCredentialsListRequest& request) const;
FindInstanceListOutcome findInstanceList(const Model::FindInstanceListRequest &request)const;
void findInstanceListAsync(const Model::FindInstanceListRequest& request, const FindInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindInstanceListOutcomeCallable findInstanceListCallable(const Model::FindInstanceListRequest& request) const;
FindInstanceNodeListOutcome findInstanceNodeList(const Model::FindInstanceNodeListRequest &request)const;
void findInstanceNodeListAsync(const Model::FindInstanceNodeListRequest& request, const FindInstanceNodeListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindInstanceNodeListOutcomeCallable findInstanceNodeListCallable(const Model::FindInstanceNodeListRequest& request) const;
FindOrderableListOutcome findOrderableList(const Model::FindOrderableListRequest &request)const;
void findOrderableListAsync(const Model::FindOrderableListRequest& request, const FindOrderableListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindOrderableListOutcomeCallable findOrderableListCallable(const Model::FindOrderableListRequest& request) const;
@@ -315,18 +375,30 @@ namespace AlibabaCloud
FindProjectListOutcome findProjectList(const Model::FindProjectListRequest &request)const;
void findProjectListAsync(const Model::FindProjectListRequest& request, const FindProjectListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindProjectListOutcomeCallable findProjectListCallable(const Model::FindProjectListRequest& request) const;
FindProjectStatisticalDataOutcome findProjectStatisticalData(const Model::FindProjectStatisticalDataRequest &request)const;
void findProjectStatisticalDataAsync(const Model::FindProjectStatisticalDataRequest& request, const FindProjectStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindProjectStatisticalDataOutcomeCallable findProjectStatisticalDataCallable(const Model::FindProjectStatisticalDataRequest& request) const;
FindProjectsNameListOutcome findProjectsNameList(const Model::FindProjectsNameListRequest &request)const;
void findProjectsNameListAsync(const Model::FindProjectsNameListRequest& request, const FindProjectsNameListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindProjectsNameListOutcomeCallable findProjectsNameListCallable(const Model::FindProjectsNameListRequest& request) const;
FindServiceCredentialStatisticalDataOutcome findServiceCredentialStatisticalData(const Model::FindServiceCredentialStatisticalDataRequest &request)const;
void findServiceCredentialStatisticalDataAsync(const Model::FindServiceCredentialStatisticalDataRequest& request, const FindServiceCredentialStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindServiceCredentialStatisticalDataOutcomeCallable findServiceCredentialStatisticalDataCallable(const Model::FindServiceCredentialStatisticalDataRequest& request) const;
FindServiceListOutcome findServiceList(const Model::FindServiceListRequest &request)const;
void findServiceListAsync(const Model::FindServiceListRequest& request, const FindServiceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindServiceListOutcomeCallable findServiceListCallable(const Model::FindServiceListRequest& request) const;
FindServiceStatisticalDataOutcome findServiceStatisticalData(const Model::FindServiceStatisticalDataRequest &request)const;
void findServiceStatisticalDataAsync(const Model::FindServiceStatisticalDataRequest& request, const FindServiceStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindServiceStatisticalDataOutcomeCallable findServiceStatisticalDataCallable(const Model::FindServiceStatisticalDataRequest& request) const;
GetConsoleSLOOutcome getConsoleSLO(const Model::GetConsoleSLORequest &request)const;
void getConsoleSLOAsync(const Model::GetConsoleSLORequest& request, const GetConsoleSLOAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetConsoleSLOOutcomeCallable getConsoleSLOCallable(const Model::GetConsoleSLORequest& request) const;
GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const;
void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const;
GetMetaServerSLOOutcome getMetaServerSLO(const Model::GetMetaServerSLORequest &request)const;
void getMetaServerSLOAsync(const Model::GetMetaServerSLORequest& request, const GetMetaServerSLOAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMetaServerSLOOutcomeCallable getMetaServerSLOCallable(const Model::GetMetaServerSLORequest& request) const;
GetOrderOutcome getOrder(const Model::GetOrderRequest &request)const;
void getOrderAsync(const Model::GetOrderRequest& request, const GetOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetOrderOutcomeCallable getOrderCallable(const Model::GetOrderRequest& 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_CSB_MODEL_FINDALLLINKRULEREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDALLLINKRULEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindAllLinkRuleRequest : public RpcServiceRequest
{
public:
FindAllLinkRuleRequest();
~FindAllLinkRuleRequest();
long getCsbId()const;
void setCsbId(long csbId);
private:
long csbId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDALLLINKRULEREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_CSB_MODEL_FINDALLLINKRULERESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDALLLINKRULERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindAllLinkRuleResult : public ServiceResult
{
public:
struct Data
{
struct LinkRuleListItem
{
std::string originName;
long gmtCreate;
std::string ownerId;
long csbId;
long gmtModified;
long id;
int deleted;
std::string targetName;
};
std::vector<LinkRuleListItem> linkRuleList;
};
FindAllLinkRuleResult();
explicit FindAllLinkRuleResult(const std::string &payload);
~FindAllLinkRuleResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDALLLINKRULERESULT_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_CSB_MODEL_FINDBROKERSLOHISLISTREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOHISLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindBrokerSLOHisListRequest : public RpcServiceRequest
{
public:
FindBrokerSLOHisListRequest();
~FindBrokerSLOHisListRequest();
long getCsbId()const;
void setCsbId(long csbId);
private:
long csbId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOHISLISTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_CSB_MODEL_FINDBROKERSLOHISLISTRESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOHISLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindBrokerSLOHisListResult : public ServiceResult
{
public:
FindBrokerSLOHisListResult();
explicit FindBrokerSLOHisListResult(const std::string &payload);
~FindBrokerSLOHisListResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOHISLISTRESULT_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_CSB_MODEL_FINDBROKERSLOLISTREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOLISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindBrokerSLOListRequest : public RpcServiceRequest
{
public:
FindBrokerSLOListRequest();
~FindBrokerSLOListRequest();
long getCsbId()const;
void setCsbId(long csbId);
private:
long csbId_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOLISTREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_CSB_MODEL_FINDBROKERSLOLISTRESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindBrokerSLOListResult : public ServiceResult
{
public:
FindBrokerSLOListResult();
explicit FindBrokerSLOListResult(const std::string &payload);
~FindBrokerSLOListResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDBROKERSLOLISTRESULT_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_CSB_MODEL_FINDCREDENTIALSTATISTICALDATAREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSTATISTICALDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindCredentialStatisticalDataRequest : public RpcServiceRequest
{
public:
FindCredentialStatisticalDataRequest();
~FindCredentialStatisticalDataRequest();
long getCsbId()const;
void setCsbId(long csbId);
long getEndTime()const;
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getCredentialName()const;
void setCredentialName(const std::string& credentialName);
private:
long csbId_;
long endTime_;
long startTime_;
std::string credentialName_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSTATISTICALDATAREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSTATISTICALDATARESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSTATISTICALDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindCredentialStatisticalDataResult : public ServiceResult
{
public:
struct Data
{
struct ServiceStatisticData
{
struct Total
{
long total;
long errorNum;
};
struct CredentialInfoData
{
std::string currentAk;
std::string credentialName;
};
CredentialInfoData credentialInfoData;
Total total;
float minRt;
float maxRt;
float avgRt;
};
int currentPage;
int pageNumber;
long total;
std::vector<ServiceStatisticData> monitorStatisticData;
};
FindCredentialStatisticalDataResult();
explicit FindCredentialStatisticalDataResult(const std::string &payload);
~FindCredentialStatisticalDataResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDCREDENTIALSTATISTICALDATARESULT_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_CSB_MODEL_FINDINSTANCENODELISTREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDINSTANCENODELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindInstanceNodeListRequest : public RpcServiceRequest
{
public:
FindInstanceNodeListRequest();
~FindInstanceNodeListRequest();
bool getOnlyImported()const;
void setOnlyImported(bool onlyImported);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
int getPageSize()const;
void setPageSize(int pageSize);
private:
bool onlyImported_;
int pageNum_;
std::string instanceName_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDINSTANCENODELISTREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_CSB_MODEL_FINDINSTANCENODELISTRESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDINSTANCENODELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindInstanceNodeListResult : public ServiceResult
{
public:
struct Data
{
struct InstanceNode
{
std::string instanceName;
std::string importedName;
bool isImported;
std::string groupAddress;
std::string edasTenantInfo;
long id;
std::string brokerAddress;
};
int currentPage;
int pageNumber;
std::vector<InstanceNode> instanceNodeList;
};
FindInstanceNodeListResult();
explicit FindInstanceNodeListResult(const std::string &payload);
~FindInstanceNodeListResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDINSTANCENODELISTRESULT_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_CSB_MODEL_FINDPROJECTSTATISTICALDATAREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDPROJECTSTATISTICALDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindProjectStatisticalDataRequest : public RpcServiceRequest
{
public:
FindProjectStatisticalDataRequest();
~FindProjectStatisticalDataRequest();
std::string getProjectName()const;
void setProjectName(const std::string& projectName);
long getCsbId()const;
void setCsbId(long csbId);
long getEndTime()const;
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
private:
std::string projectName_;
long csbId_;
long endTime_;
long startTime_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDPROJECTSTATISTICALDATAREQUEST_H_

View File

@@ -0,0 +1,79 @@
/*
* 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_CSB_MODEL_FINDPROJECTSTATISTICALDATARESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDPROJECTSTATISTICALDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindProjectStatisticalDataResult : public ServiceResult
{
public:
struct Data
{
struct ServiceStatisticData
{
struct Total
{
long total;
long errorNum;
};
struct ProjectInfoData
{
std::string projectName;
};
ProjectInfoData projectInfoData;
Total total;
float minRt;
float maxRt;
float avgRt;
};
int currentPage;
int pageNumber;
long total;
std::vector<ServiceStatisticData> monitorStatisticData;
};
FindProjectStatisticalDataResult();
explicit FindProjectStatisticalDataResult(const std::string &payload);
~FindProjectStatisticalDataResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDPROJECTSTATISTICALDATARESULT_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_CSB_MODEL_FINDSERVICECREDENTIALSTATISTICALDATAREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_FINDSERVICECREDENTIALSTATISTICALDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindServiceCredentialStatisticalDataRequest : public RpcServiceRequest
{
public:
FindServiceCredentialStatisticalDataRequest();
~FindServiceCredentialStatisticalDataRequest();
long getCsbId()const;
void setCsbId(long csbId);
long getEndTime()const;
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getCredentialName()const;
void setCredentialName(const std::string& credentialName);
std::string getServiceNameVersion()const;
void setServiceNameVersion(const std::string& serviceNameVersion);
private:
long csbId_;
long endTime_;
long startTime_;
std::string credentialName_;
std::string serviceNameVersion_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDSERVICECREDENTIALSTATISTICALDATAREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* 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_CSB_MODEL_FINDSERVICECREDENTIALSTATISTICALDATARESULT_H_
#define ALIBABACLOUD_CSB_MODEL_FINDSERVICECREDENTIALSTATISTICALDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT FindServiceCredentialStatisticalDataResult : public ServiceResult
{
public:
struct Data
{
struct ServiceStatisticData
{
struct Total
{
long total;
long errorNum;
};
std::string serviceName;
Total total;
std::string credentialName;
float minRt;
float maxRt;
float avgRt;
};
int currentPage;
int pageNumber;
long total;
std::vector<ServiceStatisticData> monitorStatisticData;
};
FindServiceCredentialStatisticalDataResult();
explicit FindServiceCredentialStatisticalDataResult(const std::string &payload);
~FindServiceCredentialStatisticalDataResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_FINDSERVICECREDENTIALSTATISTICALDATARESULT_H_

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setPageNum(int pageNum);
int getCasShowType()const;
void setCasShowType(int casShowType);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getAlias()const;
void setAlias(const std::string& alias);
std::string getServiceName()const;
@@ -56,6 +58,7 @@ namespace AlibabaCloud
long csbId_;
int pageNum_;
int casShowType_;
int pageSize_;
std::string alias_;
std::string serviceName_;

View File

@@ -41,14 +41,14 @@ namespace AlibabaCloud
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getServiceName()const;
void setServiceName(const std::string& serviceName);
std::string getServiceNameVersion()const;
void setServiceNameVersion(const std::string& serviceNameVersion);
private:
long csbId_;
long endTime_;
long startTime_;
std::string serviceName_;
std::string serviceNameVersion_;
};
}

View File

@@ -38,19 +38,18 @@ namespace AlibabaCloud
{
struct Total
{
int total;
int errorNum;
long total;
long errorNum;
};
std::string serviceName;
std::string userId;
Total total;
float minRt;
long requestTime;
float maxRt;
float avgRt;
};
int currentPage;
int pageNumber;
long total;
std::vector<ServiceStatisticData> monitorStatisticData;
};

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_CSB_MODEL_GETCONSOLESLOREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_GETCONSOLESLOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT GetConsoleSLORequest : public RpcServiceRequest
{
public:
GetConsoleSLORequest();
~GetConsoleSLORequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_GETCONSOLESLOREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_CSB_MODEL_GETCONSOLESLORESULT_H_
#define ALIBABACLOUD_CSB_MODEL_GETCONSOLESLORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT GetConsoleSLOResult : public ServiceResult
{
public:
GetConsoleSLOResult();
explicit GetConsoleSLOResult(const std::string &payload);
~GetConsoleSLOResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_GETCONSOLESLORESULT_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_CSB_MODEL_GETMETASERVERSLOREQUEST_H_
#define ALIBABACLOUD_CSB_MODEL_GETMETASERVERSLOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT GetMetaServerSLORequest : public RpcServiceRequest
{
public:
GetMetaServerSLORequest();
~GetMetaServerSLORequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_GETMETASERVERSLOREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_CSB_MODEL_GETMETASERVERSLORESULT_H_
#define ALIBABACLOUD_CSB_MODEL_GETMETASERVERSLORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/csb/CSBExport.h>
namespace AlibabaCloud
{
namespace CSB
{
namespace Model
{
class ALIBABACLOUD_CSB_EXPORT GetMetaServerSLOResult : public ServiceResult
{
public:
GetMetaServerSLOResult();
explicit GetMetaServerSLOResult(const std::string &payload);
~GetMetaServerSLOResult();
std::string getMessage()const;
std::string getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_CSB_MODEL_GETMETASERVERSLORESULT_H_

View File

@@ -31,21 +31,21 @@ CSBClient::CSBClient(const Credentials &credentials, const ClientConfiguration &
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "csb");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
CSBClient::CSBClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "csb");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
CSBClient::CSBClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "csb");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
CSBClient::~CSBClient()
@@ -627,6 +627,42 @@ CSBClient::DescribeRegionsOutcomeCallable CSBClient::describeRegionsCallable(con
return task->get_future();
}
CSBClient::FindAllLinkRuleOutcome CSBClient::findAllLinkRule(const FindAllLinkRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindAllLinkRuleOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindAllLinkRuleOutcome(FindAllLinkRuleResult(outcome.result()));
else
return FindAllLinkRuleOutcome(outcome.error());
}
void CSBClient::findAllLinkRuleAsync(const FindAllLinkRuleRequest& request, const FindAllLinkRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findAllLinkRule(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindAllLinkRuleOutcomeCallable CSBClient::findAllLinkRuleCallable(const FindAllLinkRuleRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindAllLinkRuleOutcome()>>(
[this, request]()
{
return this->findAllLinkRule(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindApprovalOrderListOutcome CSBClient::findApprovalOrderList(const FindApprovalOrderListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +735,114 @@ CSBClient::FindApproveServiceListOutcomeCallable CSBClient::findApproveServiceLi
return task->get_future();
}
CSBClient::FindBrokerSLOHisListOutcome CSBClient::findBrokerSLOHisList(const FindBrokerSLOHisListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindBrokerSLOHisListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindBrokerSLOHisListOutcome(FindBrokerSLOHisListResult(outcome.result()));
else
return FindBrokerSLOHisListOutcome(outcome.error());
}
void CSBClient::findBrokerSLOHisListAsync(const FindBrokerSLOHisListRequest& request, const FindBrokerSLOHisListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findBrokerSLOHisList(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindBrokerSLOHisListOutcomeCallable CSBClient::findBrokerSLOHisListCallable(const FindBrokerSLOHisListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindBrokerSLOHisListOutcome()>>(
[this, request]()
{
return this->findBrokerSLOHisList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindBrokerSLOListOutcome CSBClient::findBrokerSLOList(const FindBrokerSLOListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindBrokerSLOListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindBrokerSLOListOutcome(FindBrokerSLOListResult(outcome.result()));
else
return FindBrokerSLOListOutcome(outcome.error());
}
void CSBClient::findBrokerSLOListAsync(const FindBrokerSLOListRequest& request, const FindBrokerSLOListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findBrokerSLOList(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindBrokerSLOListOutcomeCallable CSBClient::findBrokerSLOListCallable(const FindBrokerSLOListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindBrokerSLOListOutcome()>>(
[this, request]()
{
return this->findBrokerSLOList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindCredentialStatisticalDataOutcome CSBClient::findCredentialStatisticalData(const FindCredentialStatisticalDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindCredentialStatisticalDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindCredentialStatisticalDataOutcome(FindCredentialStatisticalDataResult(outcome.result()));
else
return FindCredentialStatisticalDataOutcome(outcome.error());
}
void CSBClient::findCredentialStatisticalDataAsync(const FindCredentialStatisticalDataRequest& request, const FindCredentialStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findCredentialStatisticalData(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindCredentialStatisticalDataOutcomeCallable CSBClient::findCredentialStatisticalDataCallable(const FindCredentialStatisticalDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindCredentialStatisticalDataOutcome()>>(
[this, request]()
{
return this->findCredentialStatisticalData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindCredentialsListOutcome CSBClient::findCredentialsList(const FindCredentialsListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,6 +915,42 @@ CSBClient::FindInstanceListOutcomeCallable CSBClient::findInstanceListCallable(c
return task->get_future();
}
CSBClient::FindInstanceNodeListOutcome CSBClient::findInstanceNodeList(const FindInstanceNodeListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindInstanceNodeListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindInstanceNodeListOutcome(FindInstanceNodeListResult(outcome.result()));
else
return FindInstanceNodeListOutcome(outcome.error());
}
void CSBClient::findInstanceNodeListAsync(const FindInstanceNodeListRequest& request, const FindInstanceNodeListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findInstanceNodeList(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindInstanceNodeListOutcomeCallable CSBClient::findInstanceNodeListCallable(const FindInstanceNodeListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindInstanceNodeListOutcome()>>(
[this, request]()
{
return this->findInstanceNodeList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindOrderableListOutcome CSBClient::findOrderableList(const FindOrderableListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +1059,42 @@ CSBClient::FindProjectListOutcomeCallable CSBClient::findProjectListCallable(con
return task->get_future();
}
CSBClient::FindProjectStatisticalDataOutcome CSBClient::findProjectStatisticalData(const FindProjectStatisticalDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindProjectStatisticalDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindProjectStatisticalDataOutcome(FindProjectStatisticalDataResult(outcome.result()));
else
return FindProjectStatisticalDataOutcome(outcome.error());
}
void CSBClient::findProjectStatisticalDataAsync(const FindProjectStatisticalDataRequest& request, const FindProjectStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findProjectStatisticalData(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindProjectStatisticalDataOutcomeCallable CSBClient::findProjectStatisticalDataCallable(const FindProjectStatisticalDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindProjectStatisticalDataOutcome()>>(
[this, request]()
{
return this->findProjectStatisticalData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindProjectsNameListOutcome CSBClient::findProjectsNameList(const FindProjectsNameListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,6 +1131,42 @@ CSBClient::FindProjectsNameListOutcomeCallable CSBClient::findProjectsNameListCa
return task->get_future();
}
CSBClient::FindServiceCredentialStatisticalDataOutcome CSBClient::findServiceCredentialStatisticalData(const FindServiceCredentialStatisticalDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return FindServiceCredentialStatisticalDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return FindServiceCredentialStatisticalDataOutcome(FindServiceCredentialStatisticalDataResult(outcome.result()));
else
return FindServiceCredentialStatisticalDataOutcome(outcome.error());
}
void CSBClient::findServiceCredentialStatisticalDataAsync(const FindServiceCredentialStatisticalDataRequest& request, const FindServiceCredentialStatisticalDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, findServiceCredentialStatisticalData(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::FindServiceCredentialStatisticalDataOutcomeCallable CSBClient::findServiceCredentialStatisticalDataCallable(const FindServiceCredentialStatisticalDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<FindServiceCredentialStatisticalDataOutcome()>>(
[this, request]()
{
return this->findServiceCredentialStatisticalData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindServiceListOutcome CSBClient::findServiceList(const FindServiceListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,6 +1239,42 @@ CSBClient::FindServiceStatisticalDataOutcomeCallable CSBClient::findServiceStati
return task->get_future();
}
CSBClient::GetConsoleSLOOutcome CSBClient::getConsoleSLO(const GetConsoleSLORequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetConsoleSLOOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetConsoleSLOOutcome(GetConsoleSLOResult(outcome.result()));
else
return GetConsoleSLOOutcome(outcome.error());
}
void CSBClient::getConsoleSLOAsync(const GetConsoleSLORequest& request, const GetConsoleSLOAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getConsoleSLO(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::GetConsoleSLOOutcomeCallable CSBClient::getConsoleSLOCallable(const GetConsoleSLORequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetConsoleSLOOutcome()>>(
[this, request]()
{
return this->getConsoleSLO(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::GetInstanceOutcome CSBClient::getInstance(const GetInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,6 +1311,42 @@ CSBClient::GetInstanceOutcomeCallable CSBClient::getInstanceCallable(const GetIn
return task->get_future();
}
CSBClient::GetMetaServerSLOOutcome CSBClient::getMetaServerSLO(const GetMetaServerSLORequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMetaServerSLOOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMetaServerSLOOutcome(GetMetaServerSLOResult(outcome.result()));
else
return GetMetaServerSLOOutcome(outcome.error());
}
void CSBClient::getMetaServerSLOAsync(const GetMetaServerSLORequest& request, const GetMetaServerSLOAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMetaServerSLO(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::GetMetaServerSLOOutcomeCallable CSBClient::getMetaServerSLOCallable(const GetMetaServerSLORequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMetaServerSLOOutcome()>>(
[this, request]()
{
return this->getMetaServerSLO(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::GetOrderOutcome CSBClient::getOrder(const GetOrderRequest &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/csb/model/FindAllLinkRuleRequest.h>
using AlibabaCloud::CSB::Model::FindAllLinkRuleRequest;
FindAllLinkRuleRequest::FindAllLinkRuleRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindAllLinkRule")
{
setMethod(HttpRequest::Method::Get);
}
FindAllLinkRuleRequest::~FindAllLinkRuleRequest()
{}
long FindAllLinkRuleRequest::getCsbId()const
{
return csbId_;
}
void FindAllLinkRuleRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -0,0 +1,86 @@
/*
* 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/csb/model/FindAllLinkRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CSB;
using namespace AlibabaCloud::CSB::Model;
FindAllLinkRuleResult::FindAllLinkRuleResult() :
ServiceResult()
{}
FindAllLinkRuleResult::FindAllLinkRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
FindAllLinkRuleResult::~FindAllLinkRuleResult()
{}
void FindAllLinkRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allLinkRuleListNode = dataNode["LinkRuleList"]["LinkRuleListItem"];
for (auto dataNodeLinkRuleListLinkRuleListItem : allLinkRuleListNode)
{
Data::LinkRuleListItem linkRuleListItemObject;
if(!dataNodeLinkRuleListLinkRuleListItem["CsbId"].isNull())
linkRuleListItemObject.csbId = std::stol(dataNodeLinkRuleListLinkRuleListItem["CsbId"].asString());
if(!dataNodeLinkRuleListLinkRuleListItem["OwnerId"].isNull())
linkRuleListItemObject.ownerId = dataNodeLinkRuleListLinkRuleListItem["OwnerId"].asString();
if(!dataNodeLinkRuleListLinkRuleListItem["GmtCreate"].isNull())
linkRuleListItemObject.gmtCreate = std::stol(dataNodeLinkRuleListLinkRuleListItem["GmtCreate"].asString());
if(!dataNodeLinkRuleListLinkRuleListItem["GmtModified"].isNull())
linkRuleListItemObject.gmtModified = std::stol(dataNodeLinkRuleListLinkRuleListItem["GmtModified"].asString());
if(!dataNodeLinkRuleListLinkRuleListItem["Id"].isNull())
linkRuleListItemObject.id = std::stol(dataNodeLinkRuleListLinkRuleListItem["Id"].asString());
if(!dataNodeLinkRuleListLinkRuleListItem["Deleted"].isNull())
linkRuleListItemObject.deleted = std::stoi(dataNodeLinkRuleListLinkRuleListItem["Deleted"].asString());
if(!dataNodeLinkRuleListLinkRuleListItem["OriginName"].isNull())
linkRuleListItemObject.originName = dataNodeLinkRuleListLinkRuleListItem["OriginName"].asString();
if(!dataNodeLinkRuleListLinkRuleListItem["TargetName"].isNull())
linkRuleListItemObject.targetName = dataNodeLinkRuleListLinkRuleListItem["TargetName"].asString();
data_.linkRuleList.push_back(linkRuleListItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string FindAllLinkRuleResult::getMessage()const
{
return message_;
}
FindAllLinkRuleResult::Data FindAllLinkRuleResult::getData()const
{
return data_;
}
int FindAllLinkRuleResult::getCode()const
{
return code_;
}

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/csb/model/FindBrokerSLOHisListRequest.h>
using AlibabaCloud::CSB::Model::FindBrokerSLOHisListRequest;
FindBrokerSLOHisListRequest::FindBrokerSLOHisListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindBrokerSLOHisList")
{
setMethod(HttpRequest::Method::Get);
}
FindBrokerSLOHisListRequest::~FindBrokerSLOHisListRequest()
{}
long FindBrokerSLOHisListRequest::getCsbId()const
{
return csbId_;
}
void FindBrokerSLOHisListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setParameter("CsbId", std::to_string(csbId));
}

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