Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1e2187ca5 | ||
|
|
92be79728f | ||
|
|
e1097547c2 | ||
|
|
87957e1677 | ||
|
|
8ef38637d2 | ||
|
|
7041b32dc4 | ||
|
|
d3ae1f02a3 | ||
|
|
87fc3376cb | ||
|
|
f6ec6326cb | ||
|
|
bd43e54271 | ||
|
|
f16150baca | ||
|
|
a51834c8d0 | ||
|
|
23bea0505a | ||
|
|
8c15acf5c8 | ||
|
|
00cb41817f | ||
|
|
f90eac2a6c | ||
|
|
f69779be3f | ||
|
|
feab9dcc06 | ||
|
|
d1c3599e3d | ||
|
|
f1483f8582 | ||
|
|
d005611f56 | ||
|
|
7e80260525 | ||
|
|
4aa00d49d1 | ||
|
|
a1dd7e1dbd | ||
|
|
e6cff897c5 | ||
|
|
4d493b157c | ||
|
|
8a1c79417e |
93
CHANGELOG
93
CHANGELOG
@@ -1,3 +1,96 @@
|
||||
2020-04-29 Version: 1.36.395
|
||||
- Add prometheus ListDashboards api.
|
||||
|
||||
2020-04-29 Version: 1.36.394
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.393
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.392
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.391
|
||||
- Add ListTemplateVersions API.
|
||||
- GenerateExecutionPolicy supports TemplateVersion.
|
||||
- CreateTemplate and UpdateTemplate support VersionName.
|
||||
|
||||
|
||||
2020-04-29 Version: 1.36.390
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-29 Version: 1.36.389
|
||||
- Add ExportTas apis.
|
||||
|
||||
2020-04-29 Version: 1.36.388
|
||||
- Support Document Translation.
|
||||
- Support Lanuage Detection.
|
||||
|
||||
2020-04-29 Version: 1.36.387
|
||||
- Sync cdn APIs.
|
||||
|
||||
2020-04-29 Version: 1.36.386
|
||||
- Add Scdn APIS.
|
||||
- Sync cdn APIS.
|
||||
|
||||
2020-04-28 Version: 1.36.385
|
||||
- Generated 2019-03-15 for `fnf`.
|
||||
|
||||
2020-04-28 Version: 1.36.384
|
||||
- Add CompareFaceVerify API.
|
||||
|
||||
2020-04-27 Version: 1.36.383
|
||||
- Support watermark.
|
||||
|
||||
2020-04-27 Version: 1.36.382
|
||||
- Describe describeAvailableResource.
|
||||
|
||||
2020-04-27 Version: 1.36.381
|
||||
- ContrastFaceVerify Return SubCode.
|
||||
|
||||
2020-04-27 Version: 1.36.380
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-26 Version: 1.36.379
|
||||
- New api publish.
|
||||
|
||||
2020-04-25 Version: 1.36.378
|
||||
- Generated 2015-01-01 for `R-kvstore`.
|
||||
- Add RestoreTime for CreateInstance API.
|
||||
|
||||
2020-04-24 Version: 1.36.377
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-24 Version: 1.36.376
|
||||
- Publish apis for ledger instances.
|
||||
- Publish apis for members.
|
||||
- Publish apis for time anchors.
|
||||
- Publish apis for endpoints.
|
||||
|
||||
2020-04-23 Version: 1.36.375
|
||||
- GetUser API return user execute query count information.
|
||||
|
||||
2020-04-23 Version: 1.36.374
|
||||
- Fixed bugs for MassPush API.
|
||||
|
||||
2020-04-23 Version: 1.36.373
|
||||
- Add location info.
|
||||
|
||||
2020-04-23 Version: 1.36.372
|
||||
- Support groupId operations.
|
||||
|
||||
2020-04-22 Version: 1.36.371
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2020-04-21 Version: 1.36.370
|
||||
- Supported API for DescribeTags.
|
||||
- Supported API for ListTagResources.
|
||||
- Supported API for TagResources.
|
||||
- Supported API for UntagResources.
|
||||
|
||||
2020-04-21 Version: 1.36.369
|
||||
- Supported PackageDesign Apis.
|
||||
- Supported Api ListPackageDesignModelTypes.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -14,40 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCERESULT_H_
|
||||
#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/hbase/HBaseExport.h>
|
||||
#include <alibabacloud/alidns/AlidnsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace HBase
|
||||
namespace Alidns
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HBASE_EXPORT CreateInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIDNS_EXPORT TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateInstanceResult();
|
||||
explicit CreateInstanceResult(const std::string &payload);
|
||||
~CreateInstanceResult();
|
||||
std::string getClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string clusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HBASE_MODEL_CREATEINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TAGRESOURCESRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_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_
|
||||
@@ -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_
|
||||
@@ -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();
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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());
|
||||
|
||||
84
alidns/src/model/DescribeTagsRequest.cc
Normal file
84
alidns/src/model/DescribeTagsRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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);
|
||||
}
|
||||
|
||||
81
alidns/src/model/DescribeTagsResult.cc
Normal file
81
alidns/src/model/DescribeTagsResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
113
alidns/src/model/ListTagResourcesRequest.cc
Normal file
113
alidns/src/model/ListTagResourcesRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
70
alidns/src/model/ListTagResourcesResult.cc
Normal file
70
alidns/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
}
|
||||
|
||||
102
alidns/src/model/TagResourcesRequest.cc
Normal file
102
alidns/src/model/TagResourcesRequest.cc
Normal 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");
|
||||
}
|
||||
|
||||
44
alidns/src/model/TagResourcesResult.cc
Normal file
44
alidns/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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());
|
||||
|
||||
}
|
||||
|
||||
99
alidns/src/model/UntagResourcesRequest.cc
Normal file
99
alidns/src/model/UntagResourcesRequest.cc
Normal 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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,45 +14,31 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/CreateInstanceResult.h>
|
||||
#include <alibabacloud/alidns/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult() :
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceResult::CreateInstanceResult(const std::string &payload) :
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceResult::~CreateInstanceResult()
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceResult::parse(const std::string &payload)
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateInstanceResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -31,21 +31,21 @@ AlimtClient::AlimtClient(const Credentials &credentials, const ClientConfigurati
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(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, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::AlimtClient(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, "alimtct");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alimt");
|
||||
}
|
||||
|
||||
AlimtClient::~AlimtClient()
|
||||
|
||||
@@ -25,6 +25,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/AddGrafanaResult.h
|
||||
include/alibabacloud/arms/model/AddIntegrationRequest.h
|
||||
include/alibabacloud/arms/model/AddIntegrationResult.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyRequest.h
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
@@ -39,6 +41,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotRequest.h
|
||||
include/alibabacloud/arms/model/GetConsistencySnapshotResult.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenRequest.h
|
||||
include/alibabacloud/arms/model/GetPrometheusApiTokenResult.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
|
||||
@@ -51,6 +55,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaRequest.h
|
||||
include/alibabacloud/arms/model/ListClusterFromGrafanaResult.h
|
||||
include/alibabacloud/arms/model/ListDashboardsRequest.h
|
||||
include/alibabacloud/arms/model/ListDashboardsResult.h
|
||||
include/alibabacloud/arms/model/ListPromClustersRequest.h
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
@@ -98,6 +104,8 @@ set(arms_src
|
||||
src/model/AddGrafanaResult.cc
|
||||
src/model/AddIntegrationRequest.cc
|
||||
src/model/AddIntegrationResult.cc
|
||||
src/model/CheckDataConsistencyRequest.cc
|
||||
src/model/CheckDataConsistencyResult.cc
|
||||
src/model/CreateAlertContactRequest.cc
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
@@ -112,6 +120,8 @@ set(arms_src
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/GetConsistencySnapshotRequest.cc
|
||||
src/model/GetConsistencySnapshotResult.cc
|
||||
src/model/GetPrometheusApiTokenRequest.cc
|
||||
src/model/GetPrometheusApiTokenResult.cc
|
||||
src/model/GetRetcodeShareUrlRequest.cc
|
||||
@@ -124,6 +134,8 @@ set(arms_src
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ListClusterFromGrafanaRequest.cc
|
||||
src/model/ListClusterFromGrafanaResult.cc
|
||||
src/model/ListDashboardsRequest.cc
|
||||
src/model/ListDashboardsResult.cc
|
||||
src/model/ListPromClustersRequest.cc
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "model/AddGrafanaResult.h"
|
||||
#include "model/AddIntegrationRequest.h"
|
||||
#include "model/AddIntegrationResult.h"
|
||||
#include "model/CheckDataConsistencyRequest.h"
|
||||
#include "model/CheckDataConsistencyResult.h"
|
||||
#include "model/CreateAlertContactRequest.h"
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
@@ -40,6 +42,8 @@
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/GetConsistencySnapshotRequest.h"
|
||||
#include "model/GetConsistencySnapshotResult.h"
|
||||
#include "model/GetPrometheusApiTokenRequest.h"
|
||||
#include "model/GetPrometheusApiTokenResult.h"
|
||||
#include "model/GetRetcodeShareUrlRequest.h"
|
||||
@@ -52,6 +56,8 @@
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ListClusterFromGrafanaRequest.h"
|
||||
#include "model/ListClusterFromGrafanaResult.h"
|
||||
#include "model/ListDashboardsRequest.h"
|
||||
#include "model/ListDashboardsResult.h"
|
||||
#include "model/ListPromClustersRequest.h"
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
@@ -107,6 +113,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::AddIntegrationResult> AddIntegrationOutcome;
|
||||
typedef std::future<AddIntegrationOutcome> AddIntegrationOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::AddIntegrationRequest&, const AddIntegrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddIntegrationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckDataConsistencyResult> CheckDataConsistencyOutcome;
|
||||
typedef std::future<CheckDataConsistencyOutcome> CheckDataConsistencyOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CheckDataConsistencyRequest&, const CheckDataConsistencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckDataConsistencyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAlertContactResult> CreateAlertContactOutcome;
|
||||
typedef std::future<CreateAlertContactOutcome> CreateAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateAlertContactRequest&, const CreateAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertContactAsyncHandler;
|
||||
@@ -128,6 +137,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetConsistencySnapshotResult> GetConsistencySnapshotOutcome;
|
||||
typedef std::future<GetConsistencySnapshotOutcome> GetConsistencySnapshotOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetConsistencySnapshotRequest&, const GetConsistencySnapshotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConsistencySnapshotAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPrometheusApiTokenResult> GetPrometheusApiTokenOutcome;
|
||||
typedef std::future<GetPrometheusApiTokenOutcome> GetPrometheusApiTokenOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetPrometheusApiTokenRequest&, const GetPrometheusApiTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPrometheusApiTokenAsyncHandler;
|
||||
@@ -146,6 +158,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListClusterFromGrafanaResult> ListClusterFromGrafanaOutcome;
|
||||
typedef std::future<ListClusterFromGrafanaOutcome> ListClusterFromGrafanaOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListClusterFromGrafanaRequest&, const ListClusterFromGrafanaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClusterFromGrafanaAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDashboardsResult> ListDashboardsOutcome;
|
||||
typedef std::future<ListDashboardsOutcome> ListDashboardsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListDashboardsRequest&, const ListDashboardsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDashboardsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPromClustersResult> ListPromClustersOutcome;
|
||||
typedef std::future<ListPromClustersOutcome> ListPromClustersOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPromClustersRequest&, const ListPromClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPromClustersAsyncHandler;
|
||||
@@ -217,6 +232,9 @@ namespace AlibabaCloud
|
||||
AddIntegrationOutcome addIntegration(const Model::AddIntegrationRequest &request)const;
|
||||
void addIntegrationAsync(const Model::AddIntegrationRequest& request, const AddIntegrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddIntegrationOutcomeCallable addIntegrationCallable(const Model::AddIntegrationRequest& request) const;
|
||||
CheckDataConsistencyOutcome checkDataConsistency(const Model::CheckDataConsistencyRequest &request)const;
|
||||
void checkDataConsistencyAsync(const Model::CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckDataConsistencyOutcomeCallable checkDataConsistencyCallable(const Model::CheckDataConsistencyRequest& request) const;
|
||||
CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const;
|
||||
void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const;
|
||||
@@ -238,6 +256,9 @@ namespace AlibabaCloud
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
GetConsistencySnapshotOutcome getConsistencySnapshot(const Model::GetConsistencySnapshotRequest &request)const;
|
||||
void getConsistencySnapshotAsync(const Model::GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetConsistencySnapshotOutcomeCallable getConsistencySnapshotCallable(const Model::GetConsistencySnapshotRequest& request) const;
|
||||
GetPrometheusApiTokenOutcome getPrometheusApiToken(const Model::GetPrometheusApiTokenRequest &request)const;
|
||||
void getPrometheusApiTokenAsync(const Model::GetPrometheusApiTokenRequest& request, const GetPrometheusApiTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPrometheusApiTokenOutcomeCallable getPrometheusApiTokenCallable(const Model::GetPrometheusApiTokenRequest& request) const;
|
||||
@@ -256,6 +277,9 @@ namespace AlibabaCloud
|
||||
ListClusterFromGrafanaOutcome listClusterFromGrafana(const Model::ListClusterFromGrafanaRequest &request)const;
|
||||
void listClusterFromGrafanaAsync(const Model::ListClusterFromGrafanaRequest& request, const ListClusterFromGrafanaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListClusterFromGrafanaOutcomeCallable listClusterFromGrafanaCallable(const Model::ListClusterFromGrafanaRequest& request) const;
|
||||
ListDashboardsOutcome listDashboards(const Model::ListDashboardsRequest &request)const;
|
||||
void listDashboardsAsync(const Model::ListDashboardsRequest& request, const ListDashboardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDashboardsOutcomeCallable listDashboardsCallable(const Model::ListDashboardsRequest& request) const;
|
||||
ListPromClustersOutcome listPromClusters(const Model::ListPromClustersRequest &request)const;
|
||||
void listPromClustersAsync(const Model::ListPromClustersRequest& request, const ListPromClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPromClustersOutcomeCallable listPromClustersCallable(const Model::ListPromClustersRequest& request) const;
|
||||
|
||||
@@ -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_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckDataConsistencyRequest();
|
||||
~CheckDataConsistencyRequest();
|
||||
|
||||
long getCurrentTimestamp()const;
|
||||
void setCurrentTimestamp(long currentTimestamp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long currentTimestamp_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT CheckDataConsistencyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CheckDataConsistencyResult();
|
||||
explicit CheckDataConsistencyResult(const std::string &payload);
|
||||
~CheckDataConsistencyResult();
|
||||
bool getIsDataConsistency()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isDataConsistency_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CHECKDATACONSISTENCYRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetConsistencySnapshotRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetConsistencySnapshotRequest();
|
||||
~GetConsistencySnapshotRequest();
|
||||
|
||||
long getCurrentTimestamp()const;
|
||||
void setCurrentTimestamp(long currentTimestamp);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long currentTimestamp_;
|
||||
std::string regionId_;
|
||||
std::string appType_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTREQUEST_H_
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT GetConsistencySnapshotResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConsistencyResult
|
||||
{
|
||||
struct SlsShardWatermarkBean
|
||||
{
|
||||
struct CheckPointResponse
|
||||
{
|
||||
std::string consumer;
|
||||
long updateTime;
|
||||
int shard;
|
||||
std::string checkPoint;
|
||||
};
|
||||
std::string userId;
|
||||
std::vector<CheckPointResponse> checkPointResponses;
|
||||
std::string pid;
|
||||
std::vector<std::string> cursorUpdateTimes;
|
||||
std::string regionId;
|
||||
std::string appType;
|
||||
};
|
||||
struct AgentHeartbeatInfo
|
||||
{
|
||||
long startTimestamp;
|
||||
std::string agentVersion;
|
||||
std::string ip;
|
||||
std::string hostname;
|
||||
long lastHeartbeatTime;
|
||||
std::string pid;
|
||||
std::string regionId;
|
||||
std::string appType;
|
||||
std::string procId;
|
||||
};
|
||||
long lastSlsShardWatermarkTimestamp;
|
||||
long lastAgentInfoTimestamp;
|
||||
long judgeTimestamp;
|
||||
SlsShardWatermarkBean slsShardWatermarkBean;
|
||||
std::string barrierPointsLastTimestampMap;
|
||||
long lastBarrierTimestamp;
|
||||
std::vector<AgentHeartbeatInfo> agentHeartbeatInfos;
|
||||
};
|
||||
|
||||
|
||||
GetConsistencySnapshotResult();
|
||||
explicit GetConsistencySnapshotResult(const std::string &payload);
|
||||
~GetConsistencySnapshotResult();
|
||||
ConsistencyResult getConsistencyResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ConsistencyResult consistencyResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETCONSISTENCYSNAPSHOTRESULT_H_
|
||||
51
arms/include/alibabacloud/arms/model/ListDashboardsRequest.h
Normal file
51
arms/include/alibabacloud/arms/model/ListDashboardsRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListDashboardsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDashboardsRequest();
|
||||
~ListDashboardsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string clusterId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSREQUEST_H_
|
||||
@@ -14,55 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#define ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/push/PushExport.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Push
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_PUSH_EXPORT QueryPushListResult : public ServiceResult
|
||||
class ALIBABACLOUD_ARMS_EXPORT ListDashboardsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PushMessageInfo
|
||||
struct DashboardVosItem
|
||||
{
|
||||
std::string deviceType;
|
||||
std::string uid;
|
||||
std::string type;
|
||||
std::string pushTime;
|
||||
long appKey;
|
||||
std::string title;
|
||||
std::string body;
|
||||
std::string appName;
|
||||
std::string messageId;
|
||||
std::string time;
|
||||
std::string id;
|
||||
std::string exporter;
|
||||
std::string url;
|
||||
std::vector<std::string> tags;
|
||||
bool isArmsExporter;
|
||||
};
|
||||
|
||||
|
||||
QueryPushListResult();
|
||||
explicit QueryPushListResult(const std::string &payload);
|
||||
~QueryPushListResult();
|
||||
int getPageSize()const;
|
||||
int getPage()const;
|
||||
std::vector<PushMessageInfo> getPushMessageInfos()const;
|
||||
bool getHasNext()const;
|
||||
ListDashboardsResult();
|
||||
explicit ListDashboardsResult(const std::string &payload);
|
||||
~ListDashboardsResult();
|
||||
std::vector<DashboardVosItem> getDashboardVos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int pageSize_;
|
||||
int page_;
|
||||
std::vector<PushMessageInfo> pushMessageInfos_;
|
||||
bool hasNext_;
|
||||
std::vector<DashboardVosItem> dashboardVos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_PUSH_MODEL_QUERYPUSHLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTDASHBOARDSRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
QueryMetricRequest();
|
||||
~QueryMetricRequest();
|
||||
|
||||
std::string getConsistencyQueryStrategy()const;
|
||||
void setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getOrderBy()const;
|
||||
@@ -49,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::string getConsistencyDataKey()const;
|
||||
void setConsistencyDataKey(const std::string& consistencyDataKey);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
@@ -65,10 +69,12 @@ namespace AlibabaCloud
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string consistencyQueryStrategy_;
|
||||
long endTime_;
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::string consistencyDataKey_;
|
||||
std::string proxyUserId_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
|
||||
@@ -123,6 +123,42 @@ ARMSClient::AddIntegrationOutcomeCallable ARMSClient::addIntegrationCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcome ARMSClient::checkDataConsistency(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckDataConsistencyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckDataConsistencyOutcome(CheckDataConsistencyResult(outcome.result()));
|
||||
else
|
||||
return CheckDataConsistencyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::checkDataConsistencyAsync(const CheckDataConsistencyRequest& request, const CheckDataConsistencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkDataConsistency(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CheckDataConsistencyOutcomeCallable ARMSClient::checkDataConsistencyCallable(const CheckDataConsistencyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckDataConsistencyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkDataConsistency(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +411,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcome ARMSClient::getConsistencySnapshot(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetConsistencySnapshotOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetConsistencySnapshotOutcome(GetConsistencySnapshotResult(outcome.result()));
|
||||
else
|
||||
return GetConsistencySnapshotOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getConsistencySnapshotAsync(const GetConsistencySnapshotRequest& request, const GetConsistencySnapshotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getConsistencySnapshot(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetConsistencySnapshotOutcomeCallable ARMSClient::getConsistencySnapshotCallable(const GetConsistencySnapshotRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetConsistencySnapshotOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getConsistencySnapshot(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetPrometheusApiTokenOutcome ARMSClient::getPrometheusApiToken(const GetPrometheusApiTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +663,42 @@ ARMSClient::ListClusterFromGrafanaOutcomeCallable ARMSClient::listClusterFromGra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListDashboardsOutcome ARMSClient::listDashboards(const ListDashboardsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDashboardsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDashboardsOutcome(ListDashboardsResult(outcome.result()));
|
||||
else
|
||||
return ListDashboardsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listDashboardsAsync(const ListDashboardsRequest& request, const ListDashboardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDashboards(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListDashboardsOutcomeCallable ARMSClient::listDashboardsCallable(const ListDashboardsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDashboardsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDashboards(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPromClustersOutcome ARMSClient::listPromClusters(const ListPromClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
arms/src/model/CheckDataConsistencyRequest.cc
Normal file
84
arms/src/model/CheckDataConsistencyRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckDataConsistencyRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CheckDataConsistencyRequest;
|
||||
|
||||
CheckDataConsistencyRequest::CheckDataConsistencyRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CheckDataConsistency")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckDataConsistencyRequest::~CheckDataConsistencyRequest()
|
||||
{}
|
||||
|
||||
long CheckDataConsistencyRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string CheckDataConsistencyRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CheckDataConsistencyRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/CheckDataConsistencyResult.cc
Normal file
51
arms/src/model/CheckDataConsistencyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/CheckDataConsistencyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDataConsistencyResult::CheckDataConsistencyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDataConsistencyResult::~CheckDataConsistencyResult()
|
||||
{}
|
||||
|
||||
void CheckDataConsistencyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsDataConsistency"].isNull())
|
||||
isDataConsistency_ = value["IsDataConsistency"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckDataConsistencyResult::getIsDataConsistency()const
|
||||
{
|
||||
return isDataConsistency_;
|
||||
}
|
||||
|
||||
84
arms/src/model/GetConsistencySnapshotRequest.cc
Normal file
84
arms/src/model/GetConsistencySnapshotRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/GetConsistencySnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetConsistencySnapshotRequest;
|
||||
|
||||
GetConsistencySnapshotRequest::GetConsistencySnapshotRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetConsistencySnapshot")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetConsistencySnapshotRequest::~GetConsistencySnapshotRequest()
|
||||
{}
|
||||
|
||||
long GetConsistencySnapshotRequest::getCurrentTimestamp()const
|
||||
{
|
||||
return currentTimestamp_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setCurrentTimestamp(long currentTimestamp)
|
||||
{
|
||||
currentTimestamp_ = currentTimestamp;
|
||||
setParameter("CurrentTimestamp", std::to_string(currentTimestamp));
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string GetConsistencySnapshotRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void GetConsistencySnapshotRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
110
arms/src/model/GetConsistencySnapshotResult.cc
Normal file
110
arms/src/model/GetConsistencySnapshotResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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/arms/model/GetConsistencySnapshotResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetConsistencySnapshotResult::GetConsistencySnapshotResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetConsistencySnapshotResult::GetConsistencySnapshotResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::~GetConsistencySnapshotResult()
|
||||
{}
|
||||
|
||||
void GetConsistencySnapshotResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto consistencyResultNode = value["ConsistencyResult"];
|
||||
if(!consistencyResultNode["JudgeTimestamp"].isNull())
|
||||
consistencyResult_.judgeTimestamp = std::stol(consistencyResultNode["JudgeTimestamp"].asString());
|
||||
if(!consistencyResultNode["LastSlsShardWatermarkTimestamp"].isNull())
|
||||
consistencyResult_.lastSlsShardWatermarkTimestamp = std::stol(consistencyResultNode["LastSlsShardWatermarkTimestamp"].asString());
|
||||
if(!consistencyResultNode["LastAgentInfoTimestamp"].isNull())
|
||||
consistencyResult_.lastAgentInfoTimestamp = std::stol(consistencyResultNode["LastAgentInfoTimestamp"].asString());
|
||||
if(!consistencyResultNode["BarrierPointsLastTimestampMap"].isNull())
|
||||
consistencyResult_.barrierPointsLastTimestampMap = consistencyResultNode["BarrierPointsLastTimestampMap"].asString();
|
||||
if(!consistencyResultNode["LastBarrierTimestamp"].isNull())
|
||||
consistencyResult_.lastBarrierTimestamp = std::stol(consistencyResultNode["LastBarrierTimestamp"].asString());
|
||||
auto allAgentHeartbeatInfosNode = consistencyResultNode["AgentHeartbeatInfos"]["AgentHeartbeatInfo"];
|
||||
for (auto consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo : allAgentHeartbeatInfosNode)
|
||||
{
|
||||
ConsistencyResult::AgentHeartbeatInfo agentHeartbeatInfoObject;
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["RegionId"].isNull())
|
||||
agentHeartbeatInfoObject.regionId = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["RegionId"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AppType"].isNull())
|
||||
agentHeartbeatInfoObject.appType = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AppType"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Pid"].isNull())
|
||||
agentHeartbeatInfoObject.pid = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Pid"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Ip"].isNull())
|
||||
agentHeartbeatInfoObject.ip = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Ip"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["StartTimestamp"].isNull())
|
||||
agentHeartbeatInfoObject.startTimestamp = std::stol(consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["StartTimestamp"].asString());
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Hostname"].isNull())
|
||||
agentHeartbeatInfoObject.hostname = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["Hostname"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["ProcId"].isNull())
|
||||
agentHeartbeatInfoObject.procId = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["ProcId"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AgentVersion"].isNull())
|
||||
agentHeartbeatInfoObject.agentVersion = consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["AgentVersion"].asString();
|
||||
if(!consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["LastHeartbeatTime"].isNull())
|
||||
agentHeartbeatInfoObject.lastHeartbeatTime = std::stol(consistencyResultNodeAgentHeartbeatInfosAgentHeartbeatInfo["LastHeartbeatTime"].asString());
|
||||
consistencyResult_.agentHeartbeatInfos.push_back(agentHeartbeatInfoObject);
|
||||
}
|
||||
auto slsShardWatermarkBeanNode = consistencyResultNode["SlsShardWatermarkBean"];
|
||||
if(!slsShardWatermarkBeanNode["Pid"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.pid = slsShardWatermarkBeanNode["Pid"].asString();
|
||||
if(!slsShardWatermarkBeanNode["UserId"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.userId = slsShardWatermarkBeanNode["UserId"].asString();
|
||||
if(!slsShardWatermarkBeanNode["RegionId"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.regionId = slsShardWatermarkBeanNode["RegionId"].asString();
|
||||
if(!slsShardWatermarkBeanNode["AppType"].isNull())
|
||||
consistencyResult_.slsShardWatermarkBean.appType = slsShardWatermarkBeanNode["AppType"].asString();
|
||||
auto allCheckPointResponsesNode = slsShardWatermarkBeanNode["CheckPointResponses"]["CheckPointResponse"];
|
||||
for (auto slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse : allCheckPointResponsesNode)
|
||||
{
|
||||
ConsistencyResult::SlsShardWatermarkBean::CheckPointResponse checkPointResponseObject;
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Shard"].isNull())
|
||||
checkPointResponseObject.shard = std::stoi(slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Shard"].asString());
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["CheckPoint"].isNull())
|
||||
checkPointResponseObject.checkPoint = slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["CheckPoint"].asString();
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["UpdateTime"].isNull())
|
||||
checkPointResponseObject.updateTime = std::stol(slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["UpdateTime"].asString());
|
||||
if(!slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Consumer"].isNull())
|
||||
checkPointResponseObject.consumer = slsShardWatermarkBeanNodeCheckPointResponsesCheckPointResponse["Consumer"].asString();
|
||||
consistencyResult_.slsShardWatermarkBean.checkPointResponses.push_back(checkPointResponseObject);
|
||||
}
|
||||
auto allCursorUpdateTimes = slsShardWatermarkBeanNode["CursorUpdateTimes"]["CursorUpdateTime"];
|
||||
for (auto value : allCursorUpdateTimes)
|
||||
consistencyResult_.slsShardWatermarkBean.cursorUpdateTimes.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetConsistencySnapshotResult::ConsistencyResult GetConsistencySnapshotResult::getConsistencyResult()const
|
||||
{
|
||||
return consistencyResult_;
|
||||
}
|
||||
|
||||
51
arms/src/model/ListDashboardsRequest.cc
Normal file
51
arms/src/model/ListDashboardsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ListDashboardsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListDashboardsRequest;
|
||||
|
||||
ListDashboardsRequest::ListDashboardsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListDashboards")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDashboardsRequest::~ListDashboardsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDashboardsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListDashboardsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListDashboardsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
74
arms/src/model/ListDashboardsResult.cc
Normal file
74
arms/src/model/ListDashboardsResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/arms/model/ListDashboardsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListDashboardsResult::ListDashboardsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDashboardsResult::ListDashboardsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDashboardsResult::~ListDashboardsResult()
|
||||
{}
|
||||
|
||||
void ListDashboardsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDashboardVosNode = value["DashboardVos"]["DashboardVosItem"];
|
||||
for (auto valueDashboardVosDashboardVosItem : allDashboardVosNode)
|
||||
{
|
||||
DashboardVosItem dashboardVosObject;
|
||||
if(!valueDashboardVosDashboardVosItem["Id"].isNull())
|
||||
dashboardVosObject.id = valueDashboardVosDashboardVosItem["Id"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Uid"].isNull())
|
||||
dashboardVosObject.uid = valueDashboardVosDashboardVosItem["Uid"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Title"].isNull())
|
||||
dashboardVosObject.title = valueDashboardVosDashboardVosItem["Title"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Time"].isNull())
|
||||
dashboardVosObject.time = valueDashboardVosDashboardVosItem["Time"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Url"].isNull())
|
||||
dashboardVosObject.url = valueDashboardVosDashboardVosItem["Url"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Type"].isNull())
|
||||
dashboardVosObject.type = valueDashboardVosDashboardVosItem["Type"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["Exporter"].isNull())
|
||||
dashboardVosObject.exporter = valueDashboardVosDashboardVosItem["Exporter"].asString();
|
||||
if(!valueDashboardVosDashboardVosItem["IsArmsExporter"].isNull())
|
||||
dashboardVosObject.isArmsExporter = valueDashboardVosDashboardVosItem["IsArmsExporter"].asString() == "true";
|
||||
auto allTags = value["Tags"]["Tags"];
|
||||
for (auto value : allTags)
|
||||
dashboardVosObject.tags.push_back(value.asString());
|
||||
dashboardVos_.push_back(dashboardVosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListDashboardsResult::DashboardVosItem> ListDashboardsResult::getDashboardVos()const
|
||||
{
|
||||
return dashboardVos_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ QueryMetricRequest::QueryMetricRequest() :
|
||||
QueryMetricRequest::~QueryMetricRequest()
|
||||
{}
|
||||
|
||||
std::string QueryMetricRequest::getConsistencyQueryStrategy()const
|
||||
{
|
||||
return consistencyQueryStrategy_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setConsistencyQueryStrategy(const std::string& consistencyQueryStrategy)
|
||||
{
|
||||
consistencyQueryStrategy_ = consistencyQueryStrategy;
|
||||
setParameter("ConsistencyQueryStrategy", consistencyQueryStrategy);
|
||||
}
|
||||
|
||||
long QueryMetricRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
@@ -76,6 +87,17 @@ void QueryMetricRequest::setFilters(const std::vector<Filters>& filters)
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getConsistencyDataKey()const
|
||||
{
|
||||
return consistencyDataKey_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setConsistencyDataKey(const std::string& consistencyDataKey)
|
||||
{
|
||||
consistencyDataKey_ = consistencyDataKey;
|
||||
setParameter("ConsistencyDataKey", consistencyDataKey);
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
|
||||
@@ -81,6 +81,10 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/ExecuteNodeToolResult.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlRequest.h
|
||||
include/alibabacloud/cassandra/model/GetCmsUrlResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/ListTagsRequest.h
|
||||
include/alibabacloud/cassandra/model/ListTagsResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordRequest.h
|
||||
include/alibabacloud/cassandra/model/ModifyAccountPasswordResult.h
|
||||
include/alibabacloud/cassandra/model/ModifyBackupPlanRequest.h
|
||||
@@ -111,6 +115,10 @@ set(cassandra_public_header_model
|
||||
include/alibabacloud/cassandra/model/ResizeDiskSizeResult.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountRequest.h
|
||||
include/alibabacloud/cassandra/model/ResizeNodeCountResult.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/TagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesRequest.h
|
||||
include/alibabacloud/cassandra/model/UnTagResourcesResult.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionRequest.h
|
||||
include/alibabacloud/cassandra/model/UpgradeClusterVersionResult.h )
|
||||
|
||||
@@ -176,6 +184,10 @@ set(cassandra_src
|
||||
src/model/ExecuteNodeToolResult.cc
|
||||
src/model/GetCmsUrlRequest.cc
|
||||
src/model/GetCmsUrlResult.cc
|
||||
src/model/ListTagResourcesRequest.cc
|
||||
src/model/ListTagResourcesResult.cc
|
||||
src/model/ListTagsRequest.cc
|
||||
src/model/ListTagsResult.cc
|
||||
src/model/ModifyAccountPasswordRequest.cc
|
||||
src/model/ModifyAccountPasswordResult.cc
|
||||
src/model/ModifyBackupPlanRequest.cc
|
||||
@@ -206,6 +218,10 @@ set(cassandra_src
|
||||
src/model/ResizeDiskSizeResult.cc
|
||||
src/model/ResizeNodeCountRequest.cc
|
||||
src/model/ResizeNodeCountResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnTagResourcesRequest.cc
|
||||
src/model/UnTagResourcesResult.cc
|
||||
src/model/UpgradeClusterVersionRequest.cc
|
||||
src/model/UpgradeClusterVersionResult.cc )
|
||||
|
||||
|
||||
@@ -82,6 +82,10 @@
|
||||
#include "model/ExecuteNodeToolResult.h"
|
||||
#include "model/GetCmsUrlRequest.h"
|
||||
#include "model/GetCmsUrlResult.h"
|
||||
#include "model/ListTagResourcesRequest.h"
|
||||
#include "model/ListTagResourcesResult.h"
|
||||
#include "model/ListTagsRequest.h"
|
||||
#include "model/ListTagsResult.h"
|
||||
#include "model/ModifyAccountPasswordRequest.h"
|
||||
#include "model/ModifyAccountPasswordResult.h"
|
||||
#include "model/ModifyBackupPlanRequest.h"
|
||||
@@ -112,6 +116,10 @@
|
||||
#include "model/ResizeDiskSizeResult.h"
|
||||
#include "model/ResizeNodeCountRequest.h"
|
||||
#include "model/ResizeNodeCountResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnTagResourcesRequest.h"
|
||||
#include "model/UnTagResourcesResult.h"
|
||||
#include "model/UpgradeClusterVersionRequest.h"
|
||||
#include "model/UpgradeClusterVersionResult.h"
|
||||
|
||||
@@ -213,6 +221,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetCmsUrlResult> GetCmsUrlOutcome;
|
||||
typedef std::future<GetCmsUrlOutcome> GetCmsUrlOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::GetCmsUrlRequest&, const GetCmsUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCmsUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
|
||||
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAccountPasswordResult> ModifyAccountPasswordOutcome;
|
||||
typedef std::future<ModifyAccountPasswordOutcome> ModifyAccountPasswordOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ModifyAccountPasswordRequest&, const ModifyAccountPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountPasswordAsyncHandler;
|
||||
@@ -258,6 +272,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ResizeNodeCountResult> ResizeNodeCountOutcome;
|
||||
typedef std::future<ResizeNodeCountOutcome> ResizeNodeCountOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::ResizeNodeCountRequest&, const ResizeNodeCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResizeNodeCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnTagResourcesResult> UnTagResourcesOutcome;
|
||||
typedef std::future<UnTagResourcesOutcome> UnTagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UnTagResourcesRequest&, const UnTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnTagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeClusterVersionResult> UpgradeClusterVersionOutcome;
|
||||
typedef std::future<UpgradeClusterVersionOutcome> UpgradeClusterVersionOutcomeCallable;
|
||||
typedef std::function<void(const CassandraClient*, const Model::UpgradeClusterVersionRequest&, const UpgradeClusterVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeClusterVersionAsyncHandler;
|
||||
@@ -356,6 +376,12 @@ namespace AlibabaCloud
|
||||
GetCmsUrlOutcome getCmsUrl(const Model::GetCmsUrlRequest &request)const;
|
||||
void getCmsUrlAsync(const Model::GetCmsUrlRequest& request, const GetCmsUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetCmsUrlOutcomeCallable getCmsUrlCallable(const Model::GetCmsUrlRequest& request) const;
|
||||
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
|
||||
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ModifyAccountPasswordOutcome modifyAccountPassword(const Model::ModifyAccountPasswordRequest &request)const;
|
||||
void modifyAccountPasswordAsync(const Model::ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAccountPasswordOutcomeCallable modifyAccountPasswordCallable(const Model::ModifyAccountPasswordRequest& request) const;
|
||||
@@ -401,6 +427,12 @@ namespace AlibabaCloud
|
||||
ResizeNodeCountOutcome resizeNodeCount(const Model::ResizeNodeCountRequest &request)const;
|
||||
void resizeNodeCountAsync(const Model::ResizeNodeCountRequest& request, const ResizeNodeCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ResizeNodeCountOutcomeCallable resizeNodeCountCallable(const Model::ResizeNodeCountRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const;
|
||||
void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const;
|
||||
UpgradeClusterVersionOutcome upgradeClusterVersion(const Model::UpgradeClusterVersionRequest &request)const;
|
||||
void upgradeClusterVersionAsync(const Model::UpgradeClusterVersionRequest& request, const UpgradeClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeClusterVersionOutcomeCallable upgradeClusterVersionCallable(const Model::UpgradeClusterVersionRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
@@ -46,6 +51,7 @@ namespace AlibabaCloud
|
||||
int dataCenterCount;
|
||||
std::string clusterName;
|
||||
std::string expireTime;
|
||||
std::vector<Tag> tags;
|
||||
std::string maintainStartTime;
|
||||
};
|
||||
|
||||
|
||||
@@ -30,22 +30,34 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT DescribeClustersRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeClustersRequest();
|
||||
~DescribeClustersRequest();
|
||||
|
||||
std::string getClusterName()const;
|
||||
void setClusterName(const std::string& clusterName);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::string clusterName_;
|
||||
int pageNumber_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,6 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Cluster
|
||||
{
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::string majorVersion;
|
||||
std::string createdTime;
|
||||
@@ -44,6 +49,7 @@ namespace AlibabaCloud
|
||||
std::string payType;
|
||||
std::string lockMode;
|
||||
std::string expireTime;
|
||||
std::vector<Cluster::Tag> tags;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
ListTagResourcesRequest();
|
||||
~ListTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::vector<Tag> tag_;
|
||||
std::vector<std::string> resourceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagResource
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string tagKey;
|
||||
std::string resourceType;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
ListTagResourcesResult();
|
||||
explicit ListTagResourcesResult(const std::string &payload);
|
||||
~ListTagResourcesResult();
|
||||
std::string getNextToken()const;
|
||||
std::vector<TagResource> getTagResources()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string nextToken_;
|
||||
std::vector<TagResource> tagResources_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGRESOURCESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListTagsRequest();
|
||||
~ListTagsRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSREQUEST_H_
|
||||
@@ -14,44 +14,43 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMERESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCnameResult : public ServiceResult
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT ListTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
struct Tag
|
||||
{
|
||||
int status;
|
||||
std::string domain;
|
||||
std::string cname;
|
||||
std::string tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
DescribeDomainCnameResult();
|
||||
explicit DescribeDomainCnameResult(const std::string &payload);
|
||||
~DescribeDomainCnameResult();
|
||||
std::vector<Data> getCnameDatas()const;
|
||||
ListTagsResult();
|
||||
explicit ListTagsResult(const std::string &payload);
|
||||
~ListTagsResult();
|
||||
std::vector<Tag> getTags()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Data> cnameDatas_;
|
||||
std::vector<Tag> tags_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCNAMERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_LISTTAGSRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT TagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::string regionId_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_TAGRESOURCESREQUEST_H_
|
||||
@@ -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_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT UnTagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UnTagResourcesRequest();
|
||||
~UnTagResourcesRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::vector<std::string> getTagKey()const;
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
std::vector<std::string> tagKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cassandra/CassandraExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cassandra
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CASSANDRA_EXPORT UnTagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnTagResourcesResult();
|
||||
explicit UnTagResourcesResult(const std::string &payload);
|
||||
~UnTagResourcesResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CASSANDRA_MODEL_UNTAGRESOURCESRESULT_H_
|
||||
@@ -1131,6 +1131,78 @@ CassandraClient::GetCmsUrlOutcomeCallable CassandraClient::getCmsUrlCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ListTagResourcesOutcome CassandraClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return ListTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::ListTagResourcesOutcomeCallable CassandraClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ListTagsOutcome CassandraClient::listTags(const ListTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTagsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTagsOutcome(ListTagsResult(outcome.result()));
|
||||
else
|
||||
return ListTagsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::listTagsAsync(const ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTags(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::ListTagsOutcomeCallable CassandraClient::listTagsCallable(const ListTagsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTagsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTags(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::ModifyAccountPasswordOutcome CassandraClient::modifyAccountPassword(const ModifyAccountPasswordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1743,78 @@ CassandraClient::ResizeNodeCountOutcomeCallable CassandraClient::resizeNodeCount
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::TagResourcesOutcome CassandraClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::TagResourcesOutcomeCallable CassandraClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::UnTagResourcesOutcome CassandraClient::unTagResources(const UnTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnTagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnTagResourcesOutcome(UnTagResourcesResult(outcome.result()));
|
||||
else
|
||||
return UnTagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CassandraClient::unTagResourcesAsync(const UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unTagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CassandraClient::UnTagResourcesOutcomeCallable CassandraClient::unTagResourcesCallable(const UnTagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnTagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unTagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CassandraClient::UpgradeClusterVersionOutcome CassandraClient::upgradeClusterVersion(const UpgradeClusterVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -66,6 +66,16 @@ void DescribeClusterResult::parse(const std::string &payload)
|
||||
cluster_.maintainEndTime = clusterNode["MaintainEndTime"].asString();
|
||||
if(!clusterNode["LockMode"].isNull())
|
||||
cluster_.lockMode = clusterNode["LockMode"].asString();
|
||||
auto allTagsNode = clusterNode["Tags"]["Tag"];
|
||||
for (auto clusterNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Cluster::Tag tagObject;
|
||||
if(!clusterNodeTagsTag["Key"].isNull())
|
||||
tagObject.key = clusterNodeTagsTag["Key"].asString();
|
||||
if(!clusterNodeTagsTag["Value"].isNull())
|
||||
tagObject.value = clusterNodeTagsTag["Value"].asString();
|
||||
cluster_.tags.push_back(tagObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeClustersRequest::DescribeClustersRequest() :
|
||||
DescribeClustersRequest::~DescribeClustersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClustersRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
int DescribeClustersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,3 +71,19 @@ void DescribeClustersRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeClustersRequest::Tag> DescribeClustersRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeClustersRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,16 @@ void DescribeClustersResult::parse(const std::string &payload)
|
||||
clustersObject.dataCenterCount = std::stoi(valueClustersCluster["DataCenterCount"].asString());
|
||||
if(!valueClustersCluster["LockMode"].isNull())
|
||||
clustersObject.lockMode = valueClustersCluster["LockMode"].asString();
|
||||
auto allTagsNode = allClustersNode["Tags"]["Tag"];
|
||||
for (auto allClustersNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Cluster::Tag tagsObject;
|
||||
if(!allClustersNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
|
||||
if(!allClustersNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
|
||||
clustersObject.tags.push_back(tagsObject);
|
||||
}
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
80
cassandra/src/model/ListTagResourcesRequest.cc
Normal file
80
cassandra/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
70
cassandra/src/model/ListTagResourcesResult.cc
Normal file
70
cassandra/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
40
cassandra/src/model/ListTagsRequest.cc
Normal file
40
cassandra/src/model/ListTagsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::ListTagsRequest;
|
||||
|
||||
ListTagsRequest::ListTagsRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "ListTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagsRequest::~ListTagsRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
cassandra/src/model/ListTagsResult.cc
Normal file
59
cassandra/src/model/ListTagsResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/ListTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
ListTagsResult::ListTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsResult::ListTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsResult::~ListTagsResult()
|
||||
{}
|
||||
|
||||
void ListTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueTagsTag["TagKey"].asString();
|
||||
if(!valueTagsTag["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueTagsTag["TagValue"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsResult::Tag> ListTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
69
cassandra/src/model/TagResourcesRequest.cc
Normal file
69
cassandra/src/model/TagResourcesRequest.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
44
cassandra/src/model/TagResourcesResult.cc
Normal file
44
cassandra/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cassandra;
|
||||
using namespace AlibabaCloud::Cassandra::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
77
cassandra/src/model/UnTagResourcesRequest.cc
Normal file
77
cassandra/src/model/UnTagResourcesRequest.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/UnTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cassandra::Model::UnTagResourcesRequest;
|
||||
|
||||
UnTagResourcesRequest::UnTagResourcesRequest() :
|
||||
RpcServiceRequest("cassandra", "2019-01-01", "UnTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnTagResourcesRequest::~UnTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string UnTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool UnTagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> UnTagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UnTagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
44
cassandra/src/model/UnTagResourcesResult.cc
Normal file
44
cassandra/src/model/UnTagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cassandra/model/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());
|
||||
|
||||
}
|
||||
|
||||
@@ -127,10 +127,10 @@ set(cdn_public_header_model
|
||||
include/alibabacloud/cdn/model/DescribeDomainBpsDataResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCcActivityLogRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCcActivityLogResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCertificateInfoRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCertificateInfoResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCnameRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCnameResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainConfigsRequest.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainConfigsResult.h
|
||||
include/alibabacloud/cdn/model/DescribeDomainCustomLogConfigRequest.h
|
||||
@@ -516,10 +516,10 @@ set(cdn_src
|
||||
src/model/DescribeDomainBpsDataResult.cc
|
||||
src/model/DescribeDomainBpsDataByTimeStampRequest.cc
|
||||
src/model/DescribeDomainBpsDataByTimeStampResult.cc
|
||||
src/model/DescribeDomainCcActivityLogRequest.cc
|
||||
src/model/DescribeDomainCcActivityLogResult.cc
|
||||
src/model/DescribeDomainCertificateInfoRequest.cc
|
||||
src/model/DescribeDomainCertificateInfoResult.cc
|
||||
src/model/DescribeDomainCnameRequest.cc
|
||||
src/model/DescribeDomainCnameResult.cc
|
||||
src/model/DescribeDomainConfigsRequest.cc
|
||||
src/model/DescribeDomainConfigsResult.cc
|
||||
src/model/DescribeDomainCustomLogConfigRequest.cc
|
||||
|
||||
@@ -128,10 +128,10 @@
|
||||
#include "model/DescribeDomainBpsDataResult.h"
|
||||
#include "model/DescribeDomainBpsDataByTimeStampRequest.h"
|
||||
#include "model/DescribeDomainBpsDataByTimeStampResult.h"
|
||||
#include "model/DescribeDomainCcActivityLogRequest.h"
|
||||
#include "model/DescribeDomainCcActivityLogResult.h"
|
||||
#include "model/DescribeDomainCertificateInfoRequest.h"
|
||||
#include "model/DescribeDomainCertificateInfoResult.h"
|
||||
#include "model/DescribeDomainCnameRequest.h"
|
||||
#include "model/DescribeDomainCnameResult.h"
|
||||
#include "model/DescribeDomainConfigsRequest.h"
|
||||
#include "model/DescribeDomainConfigsResult.h"
|
||||
#include "model/DescribeDomainCustomLogConfigRequest.h"
|
||||
@@ -576,12 +576,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDomainBpsDataByTimeStampResult> DescribeDomainBpsDataByTimeStampOutcome;
|
||||
typedef std::future<DescribeDomainBpsDataByTimeStampOutcome> DescribeDomainBpsDataByTimeStampOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainBpsDataByTimeStampRequest&, const DescribeDomainBpsDataByTimeStampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainBpsDataByTimeStampAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainCcActivityLogResult> DescribeDomainCcActivityLogOutcome;
|
||||
typedef std::future<DescribeDomainCcActivityLogOutcome> DescribeDomainCcActivityLogOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainCcActivityLogRequest&, const DescribeDomainCcActivityLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainCcActivityLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainCertificateInfoResult> DescribeDomainCertificateInfoOutcome;
|
||||
typedef std::future<DescribeDomainCertificateInfoOutcome> DescribeDomainCertificateInfoOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainCertificateInfoRequest&, const DescribeDomainCertificateInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainCertificateInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainCnameResult> DescribeDomainCnameOutcome;
|
||||
typedef std::future<DescribeDomainCnameOutcome> DescribeDomainCnameOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainCnameRequest&, const DescribeDomainCnameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainCnameAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDomainConfigsResult> DescribeDomainConfigsOutcome;
|
||||
typedef std::future<DescribeDomainConfigsOutcome> DescribeDomainConfigsOutcomeCallable;
|
||||
typedef std::function<void(const CdnClient*, const Model::DescribeDomainConfigsRequest&, const DescribeDomainConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainConfigsAsyncHandler;
|
||||
@@ -1160,12 +1160,12 @@ namespace AlibabaCloud
|
||||
DescribeDomainBpsDataByTimeStampOutcome describeDomainBpsDataByTimeStamp(const Model::DescribeDomainBpsDataByTimeStampRequest &request)const;
|
||||
void describeDomainBpsDataByTimeStampAsync(const Model::DescribeDomainBpsDataByTimeStampRequest& request, const DescribeDomainBpsDataByTimeStampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainBpsDataByTimeStampOutcomeCallable describeDomainBpsDataByTimeStampCallable(const Model::DescribeDomainBpsDataByTimeStampRequest& request) const;
|
||||
DescribeDomainCcActivityLogOutcome describeDomainCcActivityLog(const Model::DescribeDomainCcActivityLogRequest &request)const;
|
||||
void describeDomainCcActivityLogAsync(const Model::DescribeDomainCcActivityLogRequest& request, const DescribeDomainCcActivityLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainCcActivityLogOutcomeCallable describeDomainCcActivityLogCallable(const Model::DescribeDomainCcActivityLogRequest& request) const;
|
||||
DescribeDomainCertificateInfoOutcome describeDomainCertificateInfo(const Model::DescribeDomainCertificateInfoRequest &request)const;
|
||||
void describeDomainCertificateInfoAsync(const Model::DescribeDomainCertificateInfoRequest& request, const DescribeDomainCertificateInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainCertificateInfoOutcomeCallable describeDomainCertificateInfoCallable(const Model::DescribeDomainCertificateInfoRequest& request) const;
|
||||
DescribeDomainCnameOutcome describeDomainCname(const Model::DescribeDomainCnameRequest &request)const;
|
||||
void describeDomainCnameAsync(const Model::DescribeDomainCnameRequest& request, const DescribeDomainCnameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainCnameOutcomeCallable describeDomainCnameCallable(const Model::DescribeDomainCnameRequest& request) const;
|
||||
DescribeDomainConfigsOutcome describeDomainConfigs(const Model::DescribeDomainConfigsRequest &request)const;
|
||||
void describeDomainConfigsAsync(const Model::DescribeDomainConfigsRequest& request, const DescribeDomainConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDomainConfigsOutcomeCallable describeDomainConfigsCallable(const Model::DescribeDomainConfigsRequest& request) const;
|
||||
|
||||
@@ -35,28 +35,28 @@ namespace AlibabaCloud
|
||||
AddLiveAppRecordConfigRequest();
|
||||
~AddLiveAppRecordConfigRequest();
|
||||
|
||||
std::string getOssBucket()const;
|
||||
void setOssBucket(const std::string& ossBucket);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getOssEndpoint()const;
|
||||
void setOssEndpoint(const std::string& ossEndpoint);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getOssBucket()const;
|
||||
void setOssBucket(const std::string& ossBucket);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getOssObjectPrefix()const;
|
||||
void setOssObjectPrefix(const std::string& ossObjectPrefix);
|
||||
|
||||
private:
|
||||
std::string ossBucket_;
|
||||
std::string domainName_;
|
||||
std::string ossEndpoint_;
|
||||
long ownerId_;
|
||||
std::string appName_;
|
||||
std::string securityToken_;
|
||||
std::string ossBucket_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string ossObjectPrefix_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,23 +37,23 @@ namespace AlibabaCloud
|
||||
|
||||
std::string get_Template()const;
|
||||
void set_Template(const std::string& _template);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getApp()const;
|
||||
void setApp(const std::string& app);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomain()const;
|
||||
void setDomain(const std::string& domain);
|
||||
|
||||
private:
|
||||
std::string _template_;
|
||||
std::string securityToken_;
|
||||
std::string app_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string securityToken_;
|
||||
std::string domain_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCcActivityLogRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDomainCcActivityLogRequest();
|
||||
~DescribeDomainCcActivityLogRequest();
|
||||
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getTriggerObject()const;
|
||||
void setTriggerObject(const std::string& triggerObject);
|
||||
long getPageNumber()const;
|
||||
void setPageNumber(long pageNumber);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getValue()const;
|
||||
void setValue(const std::string& value);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
std::string ruleName_;
|
||||
std::string startTime_;
|
||||
std::string triggerObject_;
|
||||
long pageNumber_;
|
||||
long pageSize_;
|
||||
std::string value_;
|
||||
std::string domainName_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGRESULT_H_
|
||||
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cdn/CdnExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cdn
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDN_EXPORT DescribeDomainCcActivityLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LogInfo
|
||||
{
|
||||
std::string action;
|
||||
std::string domainName;
|
||||
std::string value;
|
||||
std::string triggerObject;
|
||||
long ttl;
|
||||
std::string timeStamp;
|
||||
std::string ruleName;
|
||||
};
|
||||
|
||||
|
||||
DescribeDomainCcActivityLogResult();
|
||||
explicit DescribeDomainCcActivityLogResult(const std::string &payload);
|
||||
~DescribeDomainCcActivityLogResult();
|
||||
long getPageSize()const;
|
||||
long getTotal()const;
|
||||
std::vector<LogInfo> getActivityLog()const;
|
||||
long getPageIndex()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long pageSize_;
|
||||
long total_;
|
||||
std::vector<LogInfo> activityLog_;
|
||||
long pageIndex_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINCCACTIVITYLOGRESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ModifyPathCacheExpiredConfigRequest();
|
||||
~ModifyPathCacheExpiredConfigRequest();
|
||||
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getWeight()const;
|
||||
@@ -45,18 +47,16 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTTL()const;
|
||||
void setTTL(const std::string& tTL);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getConfigID()const;
|
||||
void setConfigID(const std::string& configID);
|
||||
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string domainName_;
|
||||
std::string weight_;
|
||||
std::string cacheContent_;
|
||||
long ownerId_;
|
||||
std::string tTL_;
|
||||
std::string securityToken_;
|
||||
std::string configID_;
|
||||
|
||||
};
|
||||
|
||||
@@ -1959,6 +1959,42 @@ CdnClient::DescribeDomainBpsDataByTimeStampOutcomeCallable CdnClient::describeDo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCcActivityLogOutcome CdnClient::describeDomainCcActivityLog(const DescribeDomainCcActivityLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDomainCcActivityLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDomainCcActivityLogOutcome(DescribeDomainCcActivityLogResult(outcome.result()));
|
||||
else
|
||||
return DescribeDomainCcActivityLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeDomainCcActivityLogAsync(const DescribeDomainCcActivityLogRequest& request, const DescribeDomainCcActivityLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDomainCcActivityLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCcActivityLogOutcomeCallable CdnClient::describeDomainCcActivityLogCallable(const DescribeDomainCcActivityLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDomainCcActivityLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDomainCcActivityLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCertificateInfoOutcome CdnClient::describeDomainCertificateInfo(const DescribeDomainCertificateInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1995,42 +2031,6 @@ CdnClient::DescribeDomainCertificateInfoOutcomeCallable CdnClient::describeDomai
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCnameOutcome CdnClient::describeDomainCname(const DescribeDomainCnameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDomainCnameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDomainCnameOutcome(DescribeDomainCnameResult(outcome.result()));
|
||||
else
|
||||
return DescribeDomainCnameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CdnClient::describeDomainCnameAsync(const DescribeDomainCnameRequest& request, const DescribeDomainCnameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDomainCname(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainCnameOutcomeCallable CdnClient::describeDomainCnameCallable(const DescribeDomainCnameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDomainCnameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDomainCname(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CdnClient::DescribeDomainConfigsOutcome CdnClient::describeDomainConfigs(const DescribeDomainConfigsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -27,28 +27,6 @@ AddLiveAppRecordConfigRequest::AddLiveAppRecordConfigRequest() :
|
||||
AddLiveAppRecordConfigRequest::~AddLiveAppRecordConfigRequest()
|
||||
{}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssEndpoint()const
|
||||
{
|
||||
return ossEndpoint_;
|
||||
@@ -60,17 +38,6 @@ void AddLiveAppRecordConfigRequest::setOssEndpoint(const std::string& ossEndpoin
|
||||
setParameter("OssEndpoint", ossEndpoint);
|
||||
}
|
||||
|
||||
long AddLiveAppRecordConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
@@ -93,6 +60,39 @@ void AddLiveAppRecordConfigRequest::setSecurityToken(const std::string& security
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssBucket()const
|
||||
{
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOssBucket(const std::string& ossBucket)
|
||||
{
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter("OssBucket", ossBucket);
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long AddLiveAppRecordConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddLiveAppRecordConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddLiveAppRecordConfigRequest::getOssObjectPrefix()const
|
||||
{
|
||||
return ossObjectPrefix_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void DeleteLiveStreamTranscodeRequest::set_Template(const std::string& _template
|
||||
setParameter("_Template", _template);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getApp()const
|
||||
{
|
||||
return app_;
|
||||
@@ -71,17 +82,6 @@ void DeleteLiveStreamTranscodeRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteLiveStreamTranscodeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteLiveStreamTranscodeRequest::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
|
||||
128
cdn/src/model/DescribeDomainCcActivityLogRequest.cc
Normal file
128
cdn/src/model/DescribeDomainCcActivityLogRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeDomainCcActivityLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainCcActivityLogRequest;
|
||||
|
||||
DescribeDomainCcActivityLogRequest::DescribeDomainCcActivityLogRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeDomainCcActivityLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainCcActivityLogRequest::~DescribeDomainCcActivityLogRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getTriggerObject()const
|
||||
{
|
||||
return triggerObject_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setTriggerObject(const std::string& triggerObject)
|
||||
{
|
||||
triggerObject_ = triggerObject;
|
||||
setParameter("TriggerObject", triggerObject);
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setValue(const std::string& value)
|
||||
{
|
||||
value_ = value;
|
||||
setParameter("Value", value);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCcActivityLogRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCcActivityLogRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
90
cdn/src/model/DescribeDomainCcActivityLogResult.cc
Normal file
90
cdn/src/model/DescribeDomainCcActivityLogResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeDomainCcActivityLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainCcActivityLogResult::DescribeDomainCcActivityLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainCcActivityLogResult::DescribeDomainCcActivityLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainCcActivityLogResult::~DescribeDomainCcActivityLogResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainCcActivityLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActivityLogNode = value["ActivityLog"]["LogInfo"];
|
||||
for (auto valueActivityLogLogInfo : allActivityLogNode)
|
||||
{
|
||||
LogInfo activityLogObject;
|
||||
if(!valueActivityLogLogInfo["TimeStamp"].isNull())
|
||||
activityLogObject.timeStamp = valueActivityLogLogInfo["TimeStamp"].asString();
|
||||
if(!valueActivityLogLogInfo["Value"].isNull())
|
||||
activityLogObject.value = valueActivityLogLogInfo["Value"].asString();
|
||||
if(!valueActivityLogLogInfo["TriggerObject"].isNull())
|
||||
activityLogObject.triggerObject = valueActivityLogLogInfo["TriggerObject"].asString();
|
||||
if(!valueActivityLogLogInfo["DomainName"].isNull())
|
||||
activityLogObject.domainName = valueActivityLogLogInfo["DomainName"].asString();
|
||||
if(!valueActivityLogLogInfo["Ttl"].isNull())
|
||||
activityLogObject.ttl = std::stol(valueActivityLogLogInfo["Ttl"].asString());
|
||||
if(!valueActivityLogLogInfo["Action"].isNull())
|
||||
activityLogObject.action = valueActivityLogLogInfo["Action"].asString();
|
||||
if(!valueActivityLogLogInfo["RuleName"].isNull())
|
||||
activityLogObject.ruleName = valueActivityLogLogInfo["RuleName"].asString();
|
||||
activityLog_.push_back(activityLogObject);
|
||||
}
|
||||
if(!value["PageIndex"].isNull())
|
||||
pageIndex_ = std::stol(value["PageIndex"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCcActivityLogResult::LogInfo> DescribeDomainCcActivityLogResult::getActivityLog()const
|
||||
{
|
||||
return activityLog_;
|
||||
}
|
||||
|
||||
long DescribeDomainCcActivityLogResult::getPageIndex()const
|
||||
{
|
||||
return pageIndex_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeDomainCnameRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainCnameRequest;
|
||||
|
||||
DescribeDomainCnameRequest::DescribeDomainCnameRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeDomainCname")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDomainCnameRequest::~DescribeDomainCnameRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainCnameRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCnameRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeDomainCnameRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCnameRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeDomainCnameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainCnameResult::DescribeDomainCnameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainCnameResult::DescribeDomainCnameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainCnameResult::~DescribeDomainCnameResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainCnameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCnameDatasNode = value["CnameDatas"]["Data"];
|
||||
for (auto valueCnameDatasData : allCnameDatasNode)
|
||||
{
|
||||
Data cnameDatasObject;
|
||||
if(!valueCnameDatasData["Domain"].isNull())
|
||||
cnameDatasObject.domain = valueCnameDatasData["Domain"].asString();
|
||||
if(!valueCnameDatasData["Cname"].isNull())
|
||||
cnameDatasObject.cname = valueCnameDatasData["Cname"].asString();
|
||||
if(!valueCnameDatasData["Status"].isNull())
|
||||
cnameDatasObject.status = std::stoi(valueCnameDatasData["Status"].asString());
|
||||
cnameDatas_.push_back(cnameDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCnameResult::Data> DescribeDomainCnameResult::getCnameDatas()const
|
||||
{
|
||||
return cnameDatas_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ModifyPathCacheExpiredConfigRequest::ModifyPathCacheExpiredConfigRequest() :
|
||||
ModifyPathCacheExpiredConfigRequest::~ModifyPathCacheExpiredConfigRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
@@ -82,17 +93,6 @@ void ModifyPathCacheExpiredConfigRequest::setTTL(const std::string& tTL)
|
||||
setParameter("TTL", tTL);
|
||||
}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyPathCacheExpiredConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyPathCacheExpiredConfigRequest::getConfigID()const
|
||||
{
|
||||
return configID_;
|
||||
|
||||
@@ -21,6 +21,8 @@ set(cloudauth_public_header
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h
|
||||
@@ -84,6 +86,8 @@ set(cloudauth_public_header_model
|
||||
|
||||
set(cloudauth_src
|
||||
src/CloudauthClient.cc
|
||||
src/model/CompareFaceVerifyRequest.cc
|
||||
src/model/CompareFaceVerifyResult.cc
|
||||
src/model/CompareFacesRequest.cc
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/ContrastFaceVerifyRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
#include "model/CompareFaceVerifyRequest.h"
|
||||
#include "model/CompareFaceVerifyResult.h"
|
||||
#include "model/CompareFacesRequest.h"
|
||||
#include "model/CompareFacesResult.h"
|
||||
#include "model/ContrastFaceVerifyRequest.h"
|
||||
@@ -91,6 +93,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::CompareFaceVerifyResult> CompareFaceVerifyOutcome;
|
||||
typedef std::future<CompareFaceVerifyOutcome> CompareFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFaceVerifyRequest&, const CompareFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
|
||||
@@ -186,6 +191,9 @@ namespace AlibabaCloud
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
CompareFaceVerifyOutcome compareFaceVerify(const Model::CompareFaceVerifyRequest &request)const;
|
||||
void compareFaceVerifyAsync(const Model::CompareFaceVerifyRequest& request, const CompareFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFaceVerifyOutcomeCallable compareFaceVerifyCallable(const Model::CompareFaceVerifyRequest& request) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFaceVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFaceVerifyRequest();
|
||||
~CompareFaceVerifyRequest();
|
||||
|
||||
std::string getTargetFaceContrastPictureUrl()const;
|
||||
void setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getTargetCertifyId()const;
|
||||
void setTargetCertifyId(const std::string& targetCertifyId);
|
||||
std::string getSourceOssObjectName()const;
|
||||
void setSourceOssObjectName(const std::string& sourceOssObjectName);
|
||||
std::string getTargetFaceContrastPicture()const;
|
||||
void setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture);
|
||||
std::string getTargetOssBucketName()const;
|
||||
void setTargetOssBucketName(const std::string& targetOssBucketName);
|
||||
std::string getSourceOssBucketName()const;
|
||||
void setSourceOssBucketName(const std::string& sourceOssBucketName);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getTargetOssObjectName()const;
|
||||
void setTargetOssObjectName(const std::string& targetOssObjectName);
|
||||
std::string getSourceFaceContrastPicture()const;
|
||||
void setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getSourceFaceContrastPictureUrl()const;
|
||||
void setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl);
|
||||
std::string getSourceCertifyId()const;
|
||||
void setSourceCertifyId(const std::string& sourceCertifyId);
|
||||
|
||||
private:
|
||||
std::string targetFaceContrastPictureUrl_;
|
||||
std::string productCode_;
|
||||
std::string targetCertifyId_;
|
||||
std::string sourceOssObjectName_;
|
||||
std::string targetFaceContrastPicture_;
|
||||
std::string targetOssBucketName_;
|
||||
std::string sourceOssBucketName_;
|
||||
std::string outerOrderNo_;
|
||||
std::string targetOssObjectName_;
|
||||
std::string sourceFaceContrastPicture_;
|
||||
long sceneId_;
|
||||
std::string sourceFaceContrastPictureUrl_;
|
||||
std::string sourceCertifyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFaceVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
float verifyScore;
|
||||
};
|
||||
|
||||
|
||||
CompareFaceVerifyResult();
|
||||
explicit CompareFaceVerifyResult(const std::string &payload);
|
||||
~CompareFaceVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYRESULT_H_
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
std::string passed;
|
||||
std::string identityInfo;
|
||||
std::string materialInfo;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
VerifyDeviceRequest();
|
||||
~VerifyDeviceRequest();
|
||||
|
||||
std::string getExtInfo()const;
|
||||
void setExtInfo(const std::string& extInfo);
|
||||
std::string getCertifyData()const;
|
||||
void setCertifyData(const std::string& certifyData);
|
||||
std::string getAppVersion()const;
|
||||
@@ -43,6 +45,7 @@ namespace AlibabaCloud
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
|
||||
private:
|
||||
std::string extInfo_;
|
||||
std::string certifyData_;
|
||||
std::string appVersion_;
|
||||
std::string certifyId_;
|
||||
|
||||
@@ -51,6 +51,42 @@ CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::str
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::CompareFaceVerifyOutcome CloudauthClient::compareFaceVerify(const CompareFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFaceVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFaceVerifyOutcome(CompareFaceVerifyResult(outcome.result()));
|
||||
else
|
||||
return CompareFaceVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFaceVerifyAsync(const CompareFaceVerifyRequest& request, const CompareFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaceVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFaceVerifyOutcomeCallable CloudauthClient::compareFaceVerifyCallable(const CompareFaceVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFaceVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaceVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
172
cloudauth/src/model/CompareFaceVerifyRequest.cc
Normal file
172
cloudauth/src/model/CompareFaceVerifyRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFaceVerifyRequest;
|
||||
|
||||
CompareFaceVerifyRequest::CompareFaceVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaceVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CompareFaceVerifyRequest::~CompareFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
|
||||
{
|
||||
return targetFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
|
||||
{
|
||||
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
|
||||
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetCertifyId()const
|
||||
{
|
||||
return targetCertifyId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCertifyId)
|
||||
{
|
||||
targetCertifyId_ = targetCertifyId;
|
||||
setBodyParameter("TargetCertifyId", targetCertifyId);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
|
||||
{
|
||||
return sourceOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
|
||||
{
|
||||
sourceOssObjectName_ = sourceOssObjectName;
|
||||
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const
|
||||
{
|
||||
return targetFaceContrastPicture_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture)
|
||||
{
|
||||
targetFaceContrastPicture_ = targetFaceContrastPicture;
|
||||
setBodyParameter("TargetFaceContrastPicture", targetFaceContrastPicture);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssBucketName()const
|
||||
{
|
||||
return targetOssBucketName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetOssBucketName)
|
||||
{
|
||||
targetOssBucketName_ = targetOssBucketName;
|
||||
setBodyParameter("TargetOssBucketName", targetOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
|
||||
{
|
||||
return sourceOssBucketName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
|
||||
{
|
||||
sourceOssBucketName_ = sourceOssBucketName;
|
||||
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
|
||||
{
|
||||
return targetOssObjectName_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
|
||||
{
|
||||
targetOssObjectName_ = targetOssObjectName;
|
||||
setBodyParameter("TargetOssObjectName", targetOssObjectName);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const
|
||||
{
|
||||
return sourceFaceContrastPicture_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture)
|
||||
{
|
||||
sourceFaceContrastPicture_ = sourceFaceContrastPicture;
|
||||
setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture);
|
||||
}
|
||||
|
||||
long CompareFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceFaceContrastPictureUrl()const
|
||||
{
|
||||
return sourceFaceContrastPictureUrl_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl)
|
||||
{
|
||||
sourceFaceContrastPictureUrl_ = sourceFaceContrastPictureUrl;
|
||||
setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
|
||||
{
|
||||
return sourceCertifyId_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
|
||||
{
|
||||
sourceCertifyId_ = sourceCertifyId;
|
||||
setBodyParameter("SourceCertifyId", sourceCertifyId);
|
||||
}
|
||||
|
||||
68
cloudauth/src/model/CompareFaceVerifyResult.cc
Normal file
68
cloudauth/src/model/CompareFaceVerifyResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFaceVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFaceVerifyResult::CompareFaceVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFaceVerifyResult::CompareFaceVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFaceVerifyResult::~CompareFaceVerifyResult()
|
||||
{}
|
||||
|
||||
void CompareFaceVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["VerifyScore"].isNull())
|
||||
resultObject_.verifyScore = std::stof(resultObjectNode["VerifyScore"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
CompareFaceVerifyResult::ResultObject CompareFaceVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void ContrastFaceVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -27,6 +27,17 @@ VerifyDeviceRequest::VerifyDeviceRequest() :
|
||||
VerifyDeviceRequest::~VerifyDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyDeviceRequest::getExtInfo()const
|
||||
{
|
||||
return extInfo_;
|
||||
}
|
||||
|
||||
void VerifyDeviceRequest::setExtInfo(const std::string& extInfo)
|
||||
{
|
||||
extInfo_ = extInfo;
|
||||
setBodyParameter("ExtInfo", extInfo);
|
||||
}
|
||||
|
||||
std::string VerifyDeviceRequest::getCertifyData()const
|
||||
{
|
||||
return certifyData_;
|
||||
|
||||
@@ -221,6 +221,7 @@ CurlHttpClient::makeRequest(const HttpRequest &request) {
|
||||
HttpMethodToString(request.method()) + " " + request.url().toString()));
|
||||
}
|
||||
}
|
||||
curl_slist_free_all(list);
|
||||
}
|
||||
|
||||
} // namespace AlibabaCloud
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#include <iomanip>
|
||||
#include <json/json.h>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
|
||||
#ifndef WIN32
|
||||
#include "LocalEndpoints.h"
|
||||
@@ -39,7 +42,10 @@ namespace
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
std::mutex mutex;
|
||||
std::condition_variable cv;
|
||||
bool local_endpoints_loaded = false;
|
||||
bool local_endpoints_loading = false;
|
||||
typedef std::string productType;
|
||||
typedef std::string regionType;
|
||||
typedef std::string endpointType;
|
||||
@@ -60,6 +66,8 @@ static void LoadLocalEndpoints()
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
std::unique_lock<std::mutex> lock(mutex);
|
||||
|
||||
if (local_endpoints_loaded)
|
||||
{
|
||||
return;
|
||||
@@ -76,6 +84,10 @@ static void LoadLocalEndpoints()
|
||||
return;
|
||||
}
|
||||
|
||||
cv.wait(lock, [] { return !local_endpoints_loading; });// continue if loading completed
|
||||
|
||||
local_endpoints_loading = true;
|
||||
|
||||
auto regions = value["regions"];
|
||||
for (const auto ®ion : regions)
|
||||
{
|
||||
@@ -107,6 +119,10 @@ static void LoadLocalEndpoints()
|
||||
allLocalEndpoints[product] = p;
|
||||
}
|
||||
local_endpoints_loaded = true;
|
||||
local_endpoints_loading = false;
|
||||
|
||||
lock.unlock();
|
||||
cv.notify_one();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -139,7 +139,7 @@ HttpMessage::HeaderValueType HttpMessage::header(KnownHeader header)const {
|
||||
|
||||
void HttpMessage::setBody(const char *data, size_t size) {
|
||||
if (body_)
|
||||
delete body_;
|
||||
delete[] body_;
|
||||
body_ = nullptr;
|
||||
bodySize_ = 0;
|
||||
if (size) {
|
||||
|
||||
@@ -34,13 +34,18 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct User
|
||||
{
|
||||
long uid;
|
||||
std::vector<std::string> roleIdList;
|
||||
std::string userId;
|
||||
std::string state;
|
||||
std::vector<std::string> roleNameList;
|
||||
std::string nickName;
|
||||
std::string mobile;
|
||||
long maxExecuteCount;
|
||||
long uid;
|
||||
std::string lastLoginTime;
|
||||
long curResultCount;
|
||||
std::vector<std::string> roleIdList;
|
||||
long maxResultCount;
|
||||
std::string userId;
|
||||
std::string state;
|
||||
long curExecuteCount;
|
||||
long parentUid;
|
||||
};
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetApprovalDetailRequest;
|
||||
GetApprovalDetailRequest::GetApprovalDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetApprovalDetailRequest::~GetApprovalDetailRequest()
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest;
|
||||
GetDatabaseRequest::GetDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDatabaseRequest::~GetDatabaseRequest()
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user