Compare commits

..

19 Commits

Author SHA1 Message Date
sdk-team
9c95c03a45 Support sequence for listNodes. 2020-05-18 14:55:15 +08:00
sdk-team
c0ffe42087 Fix DescribeIpcLiveAddress , add in params. 2020-05-18 14:31:31 +08:00
sdk-team
2cc7e5ae64 Fix DescribeIpcLiveAddress , add in params. 2020-05-18 12:17:24 +08:00
sdk-team
1a056a97c6 Open API publish. 2020-05-17 13:32:04 +08:00
sdk-team
46862eb08d Open API publish. 2020-05-17 11:39:09 +08:00
sdk-team
bb4a9050b4 Open API publish. 2020-05-17 11:30:02 +08:00
sdk-team
1cba907b97 Open API publish. 2020-05-17 09:43:24 +08:00
sdk-team
efc5b31e28 Open API publish. 2020-05-17 08:58:34 +08:00
sdk-team
23a40fc487 Generated 2015-01-01 for R-kvstore. 2020-05-14 17:32:00 +08:00
sdk-team
03fb512456 Supported Grant Permission. 2020-05-14 14:08:24 +08:00
sdk-team
56c516a238 Add demo edition auth. 2020-05-14 10:33:25 +08:00
sdk-team
2fd4ebc0a8 Add ListDevicesImages DescribeIpcLiveAddress. 2020-05-13 19:41:49 +08:00
sdk-team
735c64063a Add ExportTas apis. 2020-05-13 16:55:49 +08:00
sdk-team
bb7f64aeb3 Generated 2019-09-10 for waf-openapi. 2020-05-13 15:34:52 +08:00
sdk-team
396541400e Supported AAA for BBB. 2020-05-13 14:44:31 +08:00
sdk-team
e312177cd9 Add ExportTas apis. 2020-05-13 11:32:32 +08:00
sdk-team
f60556764e About 2019-03-07 and 2018-09-16 Version. 2020-05-13 11:27:22 +08:00
sdk-team
6c1dbc8b06 Supported DRM. 2020-05-12 11:28:55 +08:00
sdk-team
ab7e92063b Add new openapi ApplyNodes. 2020-05-11 18:08:58 +08:00
269 changed files with 17163 additions and 261 deletions

View File

@@ -1,3 +1,66 @@
2020-05-18 Version: 1.36.421
- Support sequence for listNodes.
- Support StrictSatisfiedTargetCapacity for applyNodes.
2020-05-18 Version: 1.36.420
- Fix DescribeIpcLiveAddress , add in params.
2020-05-18 Version: 1.36.419
- Fix DescribeIpcLiveAddress , add in params.
2020-05-17 Version: 1.36.418
- Open API publish.
2020-05-17 Version: 1.36.417
- Open API publish.
2020-05-17 Version: 1.36.416
- Open API publish.
2020-05-17 Version: 1.36.415
- Open API publish.
2020-05-17 Version: 1.36.414
- Open API publish.
2020-05-14 Version: 1.36.413
- Generated 2015-01-01 for `R-kvstore`.
- Fix DescribeCacheAnalysisReport return empty BigKeys because of wrong type defination.
2020-05-14 Version: 1.36.412
- Supported Grant Permission.
- Supported Revoke Permission.
2020-05-14 Version: 1.36.411
- Add demo edition auth.
2020-05-13 Version: 1.36.410
- Add ListDevicesImages DescribeIpcLiveAddress.
- Modify DescribeDevices.
2020-05-13 Version: 1.36.409
- Add ExportTas apis.
2020-05-13 Version: 1.36.408
- Generated 2019-09-10 for `waf-openapi`.
2020-05-13 Version: 1.36.407
- Supported AAA for BBB.
- Fixed bugs for CCC.
2020-05-13 Version: 1.36.406
- Add ExportTas apis.
2020-05-13 Version: 1.36.405
- About 2019-03-07 and 2018-09-16 Version.
2020-05-12 Version: 1.36.404
- Supported DRM.
2020-05-11 Version: 1.36.403
- Add new openapi ApplyNodes.
2020-05-11 Version: 1.36.402
- Support CreationCategory for CreateDBCluster.

View File

@@ -1 +1 @@
1.36.402
1.36.421

View File

@@ -125,6 +125,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DescribeDomainAverageResponseTimeResult.h
include/alibabacloud/cdn/model/DescribeDomainBpsDataRequest.h
include/alibabacloud/cdn/model/DescribeDomainBpsDataResult.h
include/alibabacloud/cdn/model/DescribeDomainBpsDataByLayerRequest.h
include/alibabacloud/cdn/model/DescribeDomainBpsDataByLayerResult.h
include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampRequest.h
include/alibabacloud/cdn/model/DescribeDomainBpsDataByTimeStampResult.h
include/alibabacloud/cdn/model/DescribeDomainCcActivityLogRequest.h
@@ -143,6 +145,8 @@ set(cdn_public_header_model
include/alibabacloud/cdn/model/DescribeDomainHitRateDataResult.h
include/alibabacloud/cdn/model/DescribeDomainHttpCodeDataRequest.h
include/alibabacloud/cdn/model/DescribeDomainHttpCodeDataResult.h
include/alibabacloud/cdn/model/DescribeDomainHttpCodeDataByLayerRequest.h
include/alibabacloud/cdn/model/DescribeDomainHttpCodeDataByLayerResult.h
include/alibabacloud/cdn/model/DescribeDomainISPDataRequest.h
include/alibabacloud/cdn/model/DescribeDomainISPDataResult.h
include/alibabacloud/cdn/model/DescribeDomainMax95BpsDataRequest.h
@@ -514,6 +518,8 @@ set(cdn_src
src/model/DescribeDomainAverageResponseTimeResult.cc
src/model/DescribeDomainBpsDataRequest.cc
src/model/DescribeDomainBpsDataResult.cc
src/model/DescribeDomainBpsDataByLayerRequest.cc
src/model/DescribeDomainBpsDataByLayerResult.cc
src/model/DescribeDomainBpsDataByTimeStampRequest.cc
src/model/DescribeDomainBpsDataByTimeStampResult.cc
src/model/DescribeDomainCcActivityLogRequest.cc
@@ -532,6 +538,8 @@ set(cdn_src
src/model/DescribeDomainHitRateDataResult.cc
src/model/DescribeDomainHttpCodeDataRequest.cc
src/model/DescribeDomainHttpCodeDataResult.cc
src/model/DescribeDomainHttpCodeDataByLayerRequest.cc
src/model/DescribeDomainHttpCodeDataByLayerResult.cc
src/model/DescribeDomainISPDataRequest.cc
src/model/DescribeDomainISPDataResult.cc
src/model/DescribeDomainMax95BpsDataRequest.cc

View File

@@ -126,6 +126,8 @@
#include "model/DescribeDomainAverageResponseTimeResult.h"
#include "model/DescribeDomainBpsDataRequest.h"
#include "model/DescribeDomainBpsDataResult.h"
#include "model/DescribeDomainBpsDataByLayerRequest.h"
#include "model/DescribeDomainBpsDataByLayerResult.h"
#include "model/DescribeDomainBpsDataByTimeStampRequest.h"
#include "model/DescribeDomainBpsDataByTimeStampResult.h"
#include "model/DescribeDomainCcActivityLogRequest.h"
@@ -144,6 +146,8 @@
#include "model/DescribeDomainHitRateDataResult.h"
#include "model/DescribeDomainHttpCodeDataRequest.h"
#include "model/DescribeDomainHttpCodeDataResult.h"
#include "model/DescribeDomainHttpCodeDataByLayerRequest.h"
#include "model/DescribeDomainHttpCodeDataByLayerResult.h"
#include "model/DescribeDomainISPDataRequest.h"
#include "model/DescribeDomainISPDataResult.h"
#include "model/DescribeDomainMax95BpsDataRequest.h"
@@ -573,6 +577,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDomainBpsDataResult> DescribeDomainBpsDataOutcome;
typedef std::future<DescribeDomainBpsDataOutcome> DescribeDomainBpsDataOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeDomainBpsDataRequest&, const DescribeDomainBpsDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainBpsDataAsyncHandler;
typedef Outcome<Error, Model::DescribeDomainBpsDataByLayerResult> DescribeDomainBpsDataByLayerOutcome;
typedef std::future<DescribeDomainBpsDataByLayerOutcome> DescribeDomainBpsDataByLayerOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeDomainBpsDataByLayerRequest&, const DescribeDomainBpsDataByLayerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainBpsDataByLayerAsyncHandler;
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;
@@ -600,6 +607,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDomainHttpCodeDataResult> DescribeDomainHttpCodeDataOutcome;
typedef std::future<DescribeDomainHttpCodeDataOutcome> DescribeDomainHttpCodeDataOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeDomainHttpCodeDataRequest&, const DescribeDomainHttpCodeDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainHttpCodeDataAsyncHandler;
typedef Outcome<Error, Model::DescribeDomainHttpCodeDataByLayerResult> DescribeDomainHttpCodeDataByLayerOutcome;
typedef std::future<DescribeDomainHttpCodeDataByLayerOutcome> DescribeDomainHttpCodeDataByLayerOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeDomainHttpCodeDataByLayerRequest&, const DescribeDomainHttpCodeDataByLayerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainHttpCodeDataByLayerAsyncHandler;
typedef Outcome<Error, Model::DescribeDomainISPDataResult> DescribeDomainISPDataOutcome;
typedef std::future<DescribeDomainISPDataOutcome> DescribeDomainISPDataOutcomeCallable;
typedef std::function<void(const CdnClient*, const Model::DescribeDomainISPDataRequest&, const DescribeDomainISPDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDomainISPDataAsyncHandler;
@@ -1157,6 +1167,9 @@ namespace AlibabaCloud
DescribeDomainBpsDataOutcome describeDomainBpsData(const Model::DescribeDomainBpsDataRequest &request)const;
void describeDomainBpsDataAsync(const Model::DescribeDomainBpsDataRequest& request, const DescribeDomainBpsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDomainBpsDataOutcomeCallable describeDomainBpsDataCallable(const Model::DescribeDomainBpsDataRequest& request) const;
DescribeDomainBpsDataByLayerOutcome describeDomainBpsDataByLayer(const Model::DescribeDomainBpsDataByLayerRequest &request)const;
void describeDomainBpsDataByLayerAsync(const Model::DescribeDomainBpsDataByLayerRequest& request, const DescribeDomainBpsDataByLayerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDomainBpsDataByLayerOutcomeCallable describeDomainBpsDataByLayerCallable(const Model::DescribeDomainBpsDataByLayerRequest& request) const;
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;
@@ -1184,6 +1197,9 @@ namespace AlibabaCloud
DescribeDomainHttpCodeDataOutcome describeDomainHttpCodeData(const Model::DescribeDomainHttpCodeDataRequest &request)const;
void describeDomainHttpCodeDataAsync(const Model::DescribeDomainHttpCodeDataRequest& request, const DescribeDomainHttpCodeDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDomainHttpCodeDataOutcomeCallable describeDomainHttpCodeDataCallable(const Model::DescribeDomainHttpCodeDataRequest& request) const;
DescribeDomainHttpCodeDataByLayerOutcome describeDomainHttpCodeDataByLayer(const Model::DescribeDomainHttpCodeDataByLayerRequest &request)const;
void describeDomainHttpCodeDataByLayerAsync(const Model::DescribeDomainHttpCodeDataByLayerRequest& request, const DescribeDomainHttpCodeDataByLayerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDomainHttpCodeDataByLayerOutcomeCallable describeDomainHttpCodeDataByLayerCallable(const Model::DescribeDomainHttpCodeDataByLayerRequest& request) const;
DescribeDomainISPDataOutcome describeDomainISPData(const Model::DescribeDomainISPDataRequest &request)const;
void describeDomainISPDataAsync(const Model::DescribeDomainISPDataRequest& request, const DescribeDomainISPDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDomainISPDataOutcomeCallable describeDomainISPDataCallable(const Model::DescribeDomainISPDataRequest& request) const;

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINBPSDATABYLAYERREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINBPSDATABYLAYERREQUEST_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 DescribeDomainBpsDataByLayerRequest : public RpcServiceRequest
{
public:
DescribeDomainBpsDataByLayerRequest();
~DescribeDomainBpsDataByLayerRequest();
std::string getLocationNameEn()const;
void setLocationNameEn(const std::string& locationNameEn);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getIspNameEn()const;
void setIspNameEn(const std::string& ispNameEn);
std::string getLayer()const;
void setLayer(const std::string& layer);
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);
std::string getInterval()const;
void setInterval(const std::string& interval);
private:
std::string locationNameEn_;
std::string startTime_;
std::string ispNameEn_;
std::string layer_;
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string interval_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINBPSDATABYLAYERREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINBPSDATABYLAYERRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINBPSDATABYLAYERRESULT_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 DescribeDomainBpsDataByLayerResult : public ServiceResult
{
public:
struct DataModule
{
std::string value;
std::string trafficValue;
std::string timeStamp;
};
DescribeDomainBpsDataByLayerResult();
explicit DescribeDomainBpsDataByLayerResult(const std::string &payload);
~DescribeDomainBpsDataByLayerResult();
std::vector<DataModule> getBpsDataInterval()const;
std::string getDataInterval()const;
protected:
void parse(const std::string &payload);
private:
std::vector<DataModule> bpsDataInterval_;
std::string dataInterval_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINBPSDATABYLAYERRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINHTTPCODEDATABYLAYERREQUEST_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINHTTPCODEDATABYLAYERREQUEST_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 DescribeDomainHttpCodeDataByLayerRequest : public RpcServiceRequest
{
public:
DescribeDomainHttpCodeDataByLayerRequest();
~DescribeDomainHttpCodeDataByLayerRequest();
std::string getLocationNameEn()const;
void setLocationNameEn(const std::string& locationNameEn);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getIspNameEn()const;
void setIspNameEn(const std::string& ispNameEn);
std::string getLayer()const;
void setLayer(const std::string& layer);
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);
std::string getInterval()const;
void setInterval(const std::string& interval);
private:
std::string locationNameEn_;
std::string startTime_;
std::string ispNameEn_;
std::string layer_;
std::string domainName_;
std::string endTime_;
long ownerId_;
std::string interval_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINHTTPCODEDATABYLAYERREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINHTTPCODEDATABYLAYERRESULT_H_
#define ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINHTTPCODEDATABYLAYERRESULT_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 DescribeDomainHttpCodeDataByLayerResult : public ServiceResult
{
public:
struct DataModule
{
std::string totalValue;
std::string value;
std::string timeStamp;
};
DescribeDomainHttpCodeDataByLayerResult();
explicit DescribeDomainHttpCodeDataByLayerResult(const std::string &payload);
~DescribeDomainHttpCodeDataByLayerResult();
std::string getDataInterval()const;
std::vector<DataModule> getHttpCodeDataInterval()const;
protected:
void parse(const std::string &payload);
private:
std::string dataInterval_;
std::vector<DataModule> httpCodeDataInterval_;
};
}
}
}
#endif // !ALIBABACLOUD_CDN_MODEL_DESCRIBEDOMAINHTTPCODEDATABYLAYERRESULT_H_

View File

@@ -1923,6 +1923,42 @@ CdnClient::DescribeDomainBpsDataOutcomeCallable CdnClient::describeDomainBpsData
return task->get_future();
}
CdnClient::DescribeDomainBpsDataByLayerOutcome CdnClient::describeDomainBpsDataByLayer(const DescribeDomainBpsDataByLayerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDomainBpsDataByLayerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDomainBpsDataByLayerOutcome(DescribeDomainBpsDataByLayerResult(outcome.result()));
else
return DescribeDomainBpsDataByLayerOutcome(outcome.error());
}
void CdnClient::describeDomainBpsDataByLayerAsync(const DescribeDomainBpsDataByLayerRequest& request, const DescribeDomainBpsDataByLayerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDomainBpsDataByLayer(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeDomainBpsDataByLayerOutcomeCallable CdnClient::describeDomainBpsDataByLayerCallable(const DescribeDomainBpsDataByLayerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDomainBpsDataByLayerOutcome()>>(
[this, request]()
{
return this->describeDomainBpsDataByLayer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeDomainBpsDataByTimeStampOutcome CdnClient::describeDomainBpsDataByTimeStamp(const DescribeDomainBpsDataByTimeStampRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2247,6 +2283,42 @@ CdnClient::DescribeDomainHttpCodeDataOutcomeCallable CdnClient::describeDomainHt
return task->get_future();
}
CdnClient::DescribeDomainHttpCodeDataByLayerOutcome CdnClient::describeDomainHttpCodeDataByLayer(const DescribeDomainHttpCodeDataByLayerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDomainHttpCodeDataByLayerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDomainHttpCodeDataByLayerOutcome(DescribeDomainHttpCodeDataByLayerResult(outcome.result()));
else
return DescribeDomainHttpCodeDataByLayerOutcome(outcome.error());
}
void CdnClient::describeDomainHttpCodeDataByLayerAsync(const DescribeDomainHttpCodeDataByLayerRequest& request, const DescribeDomainHttpCodeDataByLayerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDomainHttpCodeDataByLayer(request), context);
};
asyncExecute(new Runnable(fn));
}
CdnClient::DescribeDomainHttpCodeDataByLayerOutcomeCallable CdnClient::describeDomainHttpCodeDataByLayerCallable(const DescribeDomainHttpCodeDataByLayerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDomainHttpCodeDataByLayerOutcome()>>(
[this, request]()
{
return this->describeDomainHttpCodeDataByLayer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CdnClient::DescribeDomainISPDataOutcome CdnClient::describeDomainISPData(const DescribeDomainISPDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/DescribeDomainBpsDataByLayerRequest.h>
using AlibabaCloud::Cdn::Model::DescribeDomainBpsDataByLayerRequest;
DescribeDomainBpsDataByLayerRequest::DescribeDomainBpsDataByLayerRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeDomainBpsDataByLayer")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainBpsDataByLayerRequest::~DescribeDomainBpsDataByLayerRequest()
{}
std::string DescribeDomainBpsDataByLayerRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainBpsDataByLayerRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainBpsDataByLayerRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainBpsDataByLayerRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainBpsDataByLayerRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainBpsDataByLayerRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
std::string DescribeDomainBpsDataByLayerRequest::getLayer()const
{
return layer_;
}
void DescribeDomainBpsDataByLayerRequest::setLayer(const std::string& layer)
{
layer_ = layer;
setParameter("Layer", layer);
}
std::string DescribeDomainBpsDataByLayerRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainBpsDataByLayerRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainBpsDataByLayerRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainBpsDataByLayerRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDomainBpsDataByLayerRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainBpsDataByLayerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainBpsDataByLayerRequest::getInterval()const
{
return interval_;
}
void DescribeDomainBpsDataByLayerRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainBpsDataByLayerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainBpsDataByLayerResult::DescribeDomainBpsDataByLayerResult() :
ServiceResult()
{}
DescribeDomainBpsDataByLayerResult::DescribeDomainBpsDataByLayerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainBpsDataByLayerResult::~DescribeDomainBpsDataByLayerResult()
{}
void DescribeDomainBpsDataByLayerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBpsDataIntervalNode = value["BpsDataInterval"]["DataModule"];
for (auto valueBpsDataIntervalDataModule : allBpsDataIntervalNode)
{
DataModule bpsDataIntervalObject;
if(!valueBpsDataIntervalDataModule["TimeStamp"].isNull())
bpsDataIntervalObject.timeStamp = valueBpsDataIntervalDataModule["TimeStamp"].asString();
if(!valueBpsDataIntervalDataModule["Value"].isNull())
bpsDataIntervalObject.value = valueBpsDataIntervalDataModule["Value"].asString();
if(!valueBpsDataIntervalDataModule["TrafficValue"].isNull())
bpsDataIntervalObject.trafficValue = valueBpsDataIntervalDataModule["TrafficValue"].asString();
bpsDataInterval_.push_back(bpsDataIntervalObject);
}
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::vector<DescribeDomainBpsDataByLayerResult::DataModule> DescribeDomainBpsDataByLayerResult::getBpsDataInterval()const
{
return bpsDataInterval_;
}
std::string DescribeDomainBpsDataByLayerResult::getDataInterval()const
{
return dataInterval_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/DescribeDomainHttpCodeDataByLayerRequest.h>
using AlibabaCloud::Cdn::Model::DescribeDomainHttpCodeDataByLayerRequest;
DescribeDomainHttpCodeDataByLayerRequest::DescribeDomainHttpCodeDataByLayerRequest() :
RpcServiceRequest("cdn", "2018-05-10", "DescribeDomainHttpCodeDataByLayer")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainHttpCodeDataByLayerRequest::~DescribeDomainHttpCodeDataByLayerRequest()
{}
std::string DescribeDomainHttpCodeDataByLayerRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainHttpCodeDataByLayerRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainHttpCodeDataByLayerRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
std::string DescribeDomainHttpCodeDataByLayerRequest::getLayer()const
{
return layer_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setLayer(const std::string& layer)
{
layer_ = layer;
setParameter("Layer", layer);
}
std::string DescribeDomainHttpCodeDataByLayerRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainHttpCodeDataByLayerRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDomainHttpCodeDataByLayerRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainHttpCodeDataByLayerRequest::getInterval()const
{
return interval_;
}
void DescribeDomainHttpCodeDataByLayerRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cdn/model/DescribeDomainHttpCodeDataByLayerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cdn;
using namespace AlibabaCloud::Cdn::Model;
DescribeDomainHttpCodeDataByLayerResult::DescribeDomainHttpCodeDataByLayerResult() :
ServiceResult()
{}
DescribeDomainHttpCodeDataByLayerResult::DescribeDomainHttpCodeDataByLayerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainHttpCodeDataByLayerResult::~DescribeDomainHttpCodeDataByLayerResult()
{}
void DescribeDomainHttpCodeDataByLayerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHttpCodeDataIntervalNode = value["HttpCodeDataInterval"]["DataModule"];
for (auto valueHttpCodeDataIntervalDataModule : allHttpCodeDataIntervalNode)
{
DataModule httpCodeDataIntervalObject;
if(!valueHttpCodeDataIntervalDataModule["TimeStamp"].isNull())
httpCodeDataIntervalObject.timeStamp = valueHttpCodeDataIntervalDataModule["TimeStamp"].asString();
if(!valueHttpCodeDataIntervalDataModule["Value"].isNull())
httpCodeDataIntervalObject.value = valueHttpCodeDataIntervalDataModule["Value"].asString();
if(!valueHttpCodeDataIntervalDataModule["TotalValue"].isNull())
httpCodeDataIntervalObject.totalValue = valueHttpCodeDataIntervalDataModule["TotalValue"].asString();
httpCodeDataInterval_.push_back(httpCodeDataIntervalObject);
}
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::string DescribeDomainHttpCodeDataByLayerResult::getDataInterval()const
{
return dataInterval_;
}
std::vector<DescribeDomainHttpCodeDataByLayerResult::DataModule> DescribeDomainHttpCodeDataByLayerResult::getHttpCodeDataInterval()const
{
return httpCodeDataInterval_;
}

View File

@@ -69,12 +69,22 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
include/alibabacloud/cloudauth/model/GetStatusRequest.h
include/alibabacloud/cloudauth/model/GetStatusResult.h
include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h
include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h
include/alibabacloud/cloudauth/model/InitDeviceRequest.h
include/alibabacloud/cloudauth/model/InitDeviceResult.h
include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h
include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
@@ -134,12 +144,22 @@ set(cloudauth_src
src/model/DescribeVerifyUsageResult.cc
src/model/DetectFaceAttributesRequest.cc
src/model/DetectFaceAttributesResult.cc
src/model/GetMaterialsRequest.cc
src/model/GetMaterialsResult.cc
src/model/GetStatusRequest.cc
src/model/GetStatusResult.cc
src/model/GetVerifyTokenRequest.cc
src/model/GetVerifyTokenResult.cc
src/model/InitDeviceRequest.cc
src/model/InitDeviceResult.cc
src/model/InitFaceVerifyRequest.cc
src/model/InitFaceVerifyResult.cc
src/model/ModifyDeviceInfoRequest.cc
src/model/ModifyDeviceInfoResult.cc
src/model/SubmitMaterialsRequest.cc
src/model/SubmitMaterialsResult.cc
src/model/SubmitVerificationRequest.cc
src/model/SubmitVerificationResult.cc
src/model/UpdateAppPackageRequest.cc
src/model/UpdateAppPackageResult.cc
src/model/UpdateVerifySettingRequest.cc

View File

@@ -70,12 +70,22 @@
#include "model/DescribeVerifyUsageResult.h"
#include "model/DetectFaceAttributesRequest.h"
#include "model/DetectFaceAttributesResult.h"
#include "model/GetMaterialsRequest.h"
#include "model/GetMaterialsResult.h"
#include "model/GetStatusRequest.h"
#include "model/GetStatusResult.h"
#include "model/GetVerifyTokenRequest.h"
#include "model/GetVerifyTokenResult.h"
#include "model/InitDeviceRequest.h"
#include "model/InitDeviceResult.h"
#include "model/InitFaceVerifyRequest.h"
#include "model/InitFaceVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
#include "model/ModifyDeviceInfoResult.h"
#include "model/SubmitMaterialsRequest.h"
#include "model/SubmitMaterialsResult.h"
#include "model/SubmitVerificationRequest.h"
#include "model/SubmitVerificationResult.h"
#include "model/UpdateAppPackageRequest.h"
#include "model/UpdateAppPackageResult.h"
#include "model/UpdateVerifySettingRequest.h"
@@ -165,6 +175,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::GetStatusRequest&, const GetStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatusAsyncHandler;
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::GetVerifyTokenRequest&, const GetVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVerifyTokenAsyncHandler;
typedef Outcome<Error, Model::InitDeviceResult> InitDeviceOutcome;
typedef std::future<InitDeviceOutcome> InitDeviceOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitDeviceRequest&, const InitDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitDeviceAsyncHandler;
@@ -174,6 +193,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::SubmitMaterialsRequest&, const SubmitMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitMaterialsAsyncHandler;
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::SubmitVerificationRequest&, const SubmitVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitVerificationAsyncHandler;
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
@@ -263,6 +288,15 @@ namespace AlibabaCloud
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const;
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& request) const;
InitDeviceOutcome initDevice(const Model::InitDeviceRequest &request)const;
void initDeviceAsync(const Model::InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitDeviceOutcomeCallable initDeviceCallable(const Model::InitDeviceRequest& request) const;
@@ -272,6 +306,12 @@ namespace AlibabaCloud
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const;
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitVerificationOutcomeCallable submitVerificationCallable(const Model::SubmitVerificationRequest& request) const;
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_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 GetMaterialsRequest : public RpcServiceRequest
{
public:
GetMaterialsRequest();
~GetMaterialsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getBiz()const;
void setBiz(const std::string& biz);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTicketId()const;
void setTicketId(const std::string& ticketId);
private:
long resourceOwnerId_;
std::string biz_;
std::string sourceIp_;
std::string ticketId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_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 GetMaterialsResult : public ServiceResult
{
public:
struct Data
{
std::string facePic;
std::string identificationNumber;
std::string idCardStartDate;
std::string address;
std::string idCardFrontPic;
std::string ethnicGroup;
std::string authority;
std::string sex;
std::string idCardExpiry;
std::string idCardType;
std::string idCardBackPic;
std::string name;
};
GetMaterialsResult();
explicit GetMaterialsResult(const std::string &payload);
~GetMaterialsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_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 GetStatusRequest : public RpcServiceRequest
{
public:
GetStatusRequest();
~GetStatusRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getBiz()const;
void setBiz(const std::string& biz);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTicketId()const;
void setTicketId(const std::string& ticketId);
private:
long resourceOwnerId_;
std::string biz_;
std::string sourceIp_;
std::string ticketId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_GETSTATUSRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_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 GetStatusResult : public ServiceResult
{
public:
struct Data
{
std::string auditConclusions;
float trustedScore;
float authorityComparisonScore;
float similarityScore;
int statusCode;
};
GetStatusResult();
explicit GetStatusResult(const std::string &payload);
~GetStatusResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_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 GetVerifyTokenRequest : public RpcServiceRequest
{
public:
GetVerifyTokenRequest();
~GetVerifyTokenRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getBinding()const;
void setBinding(const std::string& binding);
std::string getVerifyConfigs()const;
void setVerifyConfigs(const std::string& verifyConfigs);
std::string getUserData()const;
void setUserData(const std::string& userData);
std::string getBiz()const;
void setBiz(const std::string& biz);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTicketId()const;
void setTicketId(const std::string& ticketId);
private:
long resourceOwnerId_;
std::string binding_;
std::string verifyConfigs_;
std::string userData_;
std::string biz_;
std::string sourceIp_;
std::string ticketId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_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 GetVerifyTokenResult : public ServiceResult
{
public:
struct Data
{
struct VerifyToken
{
std::string token;
int durationSeconds;
};
struct StsToken
{
std::string path;
std::string bucketName;
std::string accessKeyId;
std::string accessKeySecret;
std::string expiration;
std::string token;
std::string endPoint;
};
StsToken stsToken;
std::string cloudauthPageUrl;
VerifyToken verifyToken;
};
GetVerifyTokenResult();
explicit GetVerifyTokenResult(const std::string &payload);
~GetVerifyTokenResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_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 SubmitMaterialsRequest : public RpcServiceRequest
{
public:
struct Material
{
std::string materialType;
std::string value;
};
public:
SubmitMaterialsRequest();
~SubmitMaterialsRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getVerifyToken()const;
void setVerifyToken(const std::string& verifyToken);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::vector<Material> getMaterial()const;
void setMaterial(const std::vector<Material>& material);
private:
long resourceOwnerId_;
std::string verifyToken_;
std::string sourceIp_;
std::vector<Material> material_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_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 SubmitMaterialsResult : public ServiceResult
{
public:
struct Data
{
struct VerifyStatus
{
std::string auditConclusions;
float trustedScore;
float authorityComparisonScore;
float similarityScore;
int statusCode;
};
VerifyStatus verifyStatus;
};
SubmitMaterialsResult();
explicit SubmitMaterialsResult(const std::string &payload);
~SubmitMaterialsResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_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 SubmitVerificationRequest : public RpcServiceRequest
{
public:
struct Material
{
std::string materialType;
std::string value;
};
public:
SubmitVerificationRequest();
~SubmitVerificationRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getBiz()const;
void setBiz(const std::string& biz);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::vector<Material> getMaterial()const;
void setMaterial(const std::vector<Material>& material);
std::string getTicketId()const;
void setTicketId(const std::string& ticketId);
private:
long resourceOwnerId_;
std::string biz_;
std::string sourceIp_;
std::vector<Material> material_;
std::string ticketId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_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 SubmitVerificationResult : public ServiceResult
{
public:
struct Data
{
struct VerifyStatus
{
std::string auditConclusions;
float trustedScore;
float authorityComparisonScore;
float similarityScore;
int statusCode;
};
VerifyStatus verifyStatus;
};
SubmitVerificationResult();
explicit SubmitVerificationResult(const std::string &payload);
~SubmitVerificationResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_

View File

@@ -915,6 +915,114 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
return task->get_future();
}
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetMaterialsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
else
return GetMaterialsOutcome(outcome.error());
}
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getMaterials(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
[this, request]()
{
return this->getMaterials(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetStatusOutcome(GetStatusResult(outcome.result()));
else
return GetStatusOutcome(outcome.error());
}
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
[this, request]()
{
return this->getStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetVerifyTokenOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
else
return GetVerifyTokenOutcome(outcome.error());
}
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getVerifyToken(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
[this, request]()
{
return this->getVerifyToken(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::InitDeviceOutcome CloudauthClient::initDevice(const InitDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,6 +1131,78 @@ CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceIn
return task->get_future();
}
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitMaterialsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
else
return SubmitMaterialsOutcome(outcome.error());
}
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitMaterials(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
[this, request]()
{
return this->submitMaterials(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitVerificationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
else
return SubmitVerificationOutcome(outcome.error());
}
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitVerification(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
[this, request]()
{
return this->submitVerification(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::UpdateAppPackageOutcome CloudauthClient::updateAppPackage(const UpdateAppPackageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
CompareFacesRequest::CompareFacesRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaces")
RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
CreateAuthKeyRequest::CreateAuthKeyRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateAuthKey")
RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
CreateVerifySDKRequest::CreateVerifySDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySDK")
RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeDeviceInfo")
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
DescribeVerifySDKRequest::DescribeVerifySDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySDK")
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest;
DetectFaceAttributesRequest::DetectFaceAttributesRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DetectFaceAttributes")
RpcServiceRequest("cloudauth", "2018-09-16", "DetectFaceAttributes")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/GetMaterialsRequest.h>
using AlibabaCloud::Cloudauth::Model::GetMaterialsRequest;
GetMaterialsRequest::GetMaterialsRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "GetMaterials")
{
setMethod(HttpRequest::Method::Post);
}
GetMaterialsRequest::~GetMaterialsRequest()
{}
long GetMaterialsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMaterialsRequest::getBiz()const
{
return biz_;
}
void GetMaterialsRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
}
std::string GetMaterialsRequest::getSourceIp()const
{
return sourceIp_;
}
void GetMaterialsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string GetMaterialsRequest::getTicketId()const
{
return ticketId_;
}
void GetMaterialsRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setParameter("TicketId", ticketId);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/GetMaterialsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
GetMaterialsResult::GetMaterialsResult() :
ServiceResult()
{}
GetMaterialsResult::GetMaterialsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMaterialsResult::~GetMaterialsResult()
{}
void GetMaterialsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Name"].isNull())
data_.name = dataNode["Name"].asString();
if(!dataNode["IdentificationNumber"].isNull())
data_.identificationNumber = dataNode["IdentificationNumber"].asString();
if(!dataNode["IdCardType"].isNull())
data_.idCardType = dataNode["IdCardType"].asString();
if(!dataNode["IdCardStartDate"].isNull())
data_.idCardStartDate = dataNode["IdCardStartDate"].asString();
if(!dataNode["IdCardExpiry"].isNull())
data_.idCardExpiry = dataNode["IdCardExpiry"].asString();
if(!dataNode["Address"].isNull())
data_.address = dataNode["Address"].asString();
if(!dataNode["Sex"].isNull())
data_.sex = dataNode["Sex"].asString();
if(!dataNode["IdCardFrontPic"].isNull())
data_.idCardFrontPic = dataNode["IdCardFrontPic"].asString();
if(!dataNode["IdCardBackPic"].isNull())
data_.idCardBackPic = dataNode["IdCardBackPic"].asString();
if(!dataNode["FacePic"].isNull())
data_.facePic = dataNode["FacePic"].asString();
if(!dataNode["EthnicGroup"].isNull())
data_.ethnicGroup = dataNode["EthnicGroup"].asString();
if(!dataNode["Authority"].isNull())
data_.authority = dataNode["Authority"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetMaterialsResult::getMessage()const
{
return message_;
}
GetMaterialsResult::Data GetMaterialsResult::getData()const
{
return data_;
}
std::string GetMaterialsResult::getCode()const
{
return code_;
}
bool GetMaterialsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/GetStatusRequest.h>
using AlibabaCloud::Cloudauth::Model::GetStatusRequest;
GetStatusRequest::GetStatusRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "GetStatus")
{
setMethod(HttpRequest::Method::Post);
}
GetStatusRequest::~GetStatusRequest()
{}
long GetStatusRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetStatusRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetStatusRequest::getBiz()const
{
return biz_;
}
void GetStatusRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
}
std::string GetStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void GetStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string GetStatusRequest::getTicketId()const
{
return ticketId_;
}
void GetStatusRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setParameter("TicketId", ticketId);
}

View File

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

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/GetVerifyTokenRequest.h>
using AlibabaCloud::Cloudauth::Model::GetVerifyTokenRequest;
GetVerifyTokenRequest::GetVerifyTokenRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "GetVerifyToken")
{
setMethod(HttpRequest::Method::Post);
}
GetVerifyTokenRequest::~GetVerifyTokenRequest()
{}
long GetVerifyTokenRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetVerifyTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetVerifyTokenRequest::getBinding()const
{
return binding_;
}
void GetVerifyTokenRequest::setBinding(const std::string& binding)
{
binding_ = binding;
setBodyParameter("Binding", binding);
}
std::string GetVerifyTokenRequest::getVerifyConfigs()const
{
return verifyConfigs_;
}
void GetVerifyTokenRequest::setVerifyConfigs(const std::string& verifyConfigs)
{
verifyConfigs_ = verifyConfigs;
setParameter("VerifyConfigs", verifyConfigs);
}
std::string GetVerifyTokenRequest::getUserData()const
{
return userData_;
}
void GetVerifyTokenRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
std::string GetVerifyTokenRequest::getBiz()const
{
return biz_;
}
void GetVerifyTokenRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
}
std::string GetVerifyTokenRequest::getSourceIp()const
{
return sourceIp_;
}
void GetVerifyTokenRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string GetVerifyTokenRequest::getTicketId()const
{
return ticketId_;
}
void GetVerifyTokenRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setParameter("TicketId", ticketId);
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/GetVerifyTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
GetVerifyTokenResult::GetVerifyTokenResult() :
ServiceResult()
{}
GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetVerifyTokenResult::~GetVerifyTokenResult()
{}
void GetVerifyTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["CloudauthPageUrl"].isNull())
data_.cloudauthPageUrl = dataNode["CloudauthPageUrl"].asString();
auto verifyTokenNode = dataNode["VerifyToken"];
if(!verifyTokenNode["Token"].isNull())
data_.verifyToken.token = verifyTokenNode["Token"].asString();
if(!verifyTokenNode["DurationSeconds"].isNull())
data_.verifyToken.durationSeconds = std::stoi(verifyTokenNode["DurationSeconds"].asString());
auto stsTokenNode = dataNode["StsToken"];
if(!stsTokenNode["AccessKeyId"].isNull())
data_.stsToken.accessKeyId = stsTokenNode["AccessKeyId"].asString();
if(!stsTokenNode["AccessKeySecret"].isNull())
data_.stsToken.accessKeySecret = stsTokenNode["AccessKeySecret"].asString();
if(!stsTokenNode["Expiration"].isNull())
data_.stsToken.expiration = stsTokenNode["Expiration"].asString();
if(!stsTokenNode["EndPoint"].isNull())
data_.stsToken.endPoint = stsTokenNode["EndPoint"].asString();
if(!stsTokenNode["BucketName"].isNull())
data_.stsToken.bucketName = stsTokenNode["BucketName"].asString();
if(!stsTokenNode["Path"].isNull())
data_.stsToken.path = stsTokenNode["Path"].asString();
if(!stsTokenNode["Token"].isNull())
data_.stsToken.token = stsTokenNode["Token"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetVerifyTokenResult::getMessage()const
{
return message_;
}
GetVerifyTokenResult::Data GetVerifyTokenResult::getData()const
{
return data_;
}
std::string GetVerifyTokenResult::getCode()const
{
return code_;
}
bool GetVerifyTokenResult::getSuccess()const
{
return success_;
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "ModifyDeviceInfo")
RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo")
{
setMethod(HttpRequest::Method::Post);
}

View File

@@ -0,0 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/SubmitMaterialsRequest.h>
using AlibabaCloud::Cloudauth::Model::SubmitMaterialsRequest;
SubmitMaterialsRequest::SubmitMaterialsRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitMaterials")
{
setMethod(HttpRequest::Method::Post);
}
SubmitMaterialsRequest::~SubmitMaterialsRequest()
{}
long SubmitMaterialsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitMaterialsRequest::getVerifyToken()const
{
return verifyToken_;
}
void SubmitMaterialsRequest::setVerifyToken(const std::string& verifyToken)
{
verifyToken_ = verifyToken;
setBodyParameter("VerifyToken", verifyToken);
}
std::string SubmitMaterialsRequest::getSourceIp()const
{
return sourceIp_;
}
void SubmitMaterialsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<SubmitMaterialsRequest::Material> SubmitMaterialsRequest::getMaterial()const
{
return material_;
}
void SubmitMaterialsRequest::setMaterial(const std::vector<Material>& material)
{
material_ = material;
for(int dep1 = 0; dep1!= material.size(); dep1++) {
auto materialObj = material.at(dep1);
std::string materialObjStr = "Material." + std::to_string(dep1 + 1);
setParameter(materialObjStr + ".MaterialType", materialObj.materialType);
setParameter(materialObjStr + ".Value", materialObj.value);
}
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/SubmitMaterialsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
SubmitMaterialsResult::SubmitMaterialsResult() :
ServiceResult()
{}
SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitMaterialsResult::~SubmitMaterialsResult()
{}
void SubmitMaterialsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto verifyStatusNode = dataNode["VerifyStatus"];
if(!verifyStatusNode["StatusCode"].isNull())
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
if(!verifyStatusNode["TrustedScore"].isNull())
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
if(!verifyStatusNode["SimilarityScore"].isNull())
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
if(!verifyStatusNode["AuditConclusions"].isNull())
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubmitMaterialsResult::getMessage()const
{
return message_;
}
SubmitMaterialsResult::Data SubmitMaterialsResult::getData()const
{
return data_;
}
std::string SubmitMaterialsResult::getCode()const
{
return code_;
}
bool SubmitMaterialsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/SubmitVerificationRequest.h>
using AlibabaCloud::Cloudauth::Model::SubmitVerificationRequest;
SubmitVerificationRequest::SubmitVerificationRequest() :
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification")
{
setMethod(HttpRequest::Method::Post);
}
SubmitVerificationRequest::~SubmitVerificationRequest()
{}
long SubmitVerificationRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitVerificationRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitVerificationRequest::getBiz()const
{
return biz_;
}
void SubmitVerificationRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setBodyParameter("Biz", biz);
}
std::string SubmitVerificationRequest::getSourceIp()const
{
return sourceIp_;
}
void SubmitVerificationRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<SubmitVerificationRequest::Material> SubmitVerificationRequest::getMaterial()const
{
return material_;
}
void SubmitVerificationRequest::setMaterial(const std::vector<Material>& material)
{
material_ = material;
for(int dep1 = 0; dep1!= material.size(); dep1++) {
auto materialObj = material.at(dep1);
std::string materialObjStr = "Material." + std::to_string(dep1 + 1);
setParameter(materialObjStr + ".MaterialType", materialObj.materialType);
setParameter(materialObjStr + ".Value", materialObj.value);
}
}
std::string SubmitVerificationRequest::getTicketId()const
{
return ticketId_;
}
void SubmitVerificationRequest::setTicketId(const std::string& ticketId)
{
ticketId_ = ticketId;
setBodyParameter("TicketId", ticketId);
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/SubmitVerificationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
SubmitVerificationResult::SubmitVerificationResult() :
ServiceResult()
{}
SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitVerificationResult::~SubmitVerificationResult()
{}
void SubmitVerificationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto verifyStatusNode = dataNode["VerifyStatus"];
if(!verifyStatusNode["StatusCode"].isNull())
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
if(!verifyStatusNode["TrustedScore"].isNull())
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
if(!verifyStatusNode["SimilarityScore"].isNull())
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
if(!verifyStatusNode["AuditConclusions"].isNull())
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string SubmitVerificationResult::getMessage()const
{
return message_;
}
SubmitVerificationResult::Data SubmitVerificationResult::getData()const
{
return data_;
}
std::string SubmitVerificationResult::getCode()const
{
return code_;
}
bool SubmitVerificationResult::getSuccess()const
{
return success_;
}

View File

@@ -26,7 +26,9 @@ set(democenter_public_header_model
include/alibabacloud/democenter/model/DescribeDemoAccessTokenRequest.h
include/alibabacloud/democenter/model/DescribeDemoAccessTokenResult.h
include/alibabacloud/democenter/model/ExpireDemoAccessTokenRequest.h
include/alibabacloud/democenter/model/ExpireDemoAccessTokenResult.h )
include/alibabacloud/democenter/model/ExpireDemoAccessTokenResult.h
include/alibabacloud/democenter/model/GetDemoTrialAuthRequest.h
include/alibabacloud/democenter/model/GetDemoTrialAuthResult.h )
set(democenter_src
src/DemoCenterClient.cc
@@ -35,7 +37,9 @@ set(democenter_src
src/model/DescribeDemoAccessTokenRequest.cc
src/model/DescribeDemoAccessTokenResult.cc
src/model/ExpireDemoAccessTokenRequest.cc
src/model/ExpireDemoAccessTokenResult.cc )
src/model/ExpireDemoAccessTokenResult.cc
src/model/GetDemoTrialAuthRequest.cc
src/model/GetDemoTrialAuthResult.cc )
add_library(democenter ${LIB_TYPE}
${democenter_public_header}

View File

@@ -28,6 +28,8 @@
#include "model/DescribeDemoAccessTokenResult.h"
#include "model/ExpireDemoAccessTokenRequest.h"
#include "model/ExpireDemoAccessTokenResult.h"
#include "model/GetDemoTrialAuthRequest.h"
#include "model/GetDemoTrialAuthResult.h"
namespace AlibabaCloud
@@ -46,6 +48,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ExpireDemoAccessTokenResult> ExpireDemoAccessTokenOutcome;
typedef std::future<ExpireDemoAccessTokenOutcome> ExpireDemoAccessTokenOutcomeCallable;
typedef std::function<void(const DemoCenterClient*, const Model::ExpireDemoAccessTokenRequest&, const ExpireDemoAccessTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExpireDemoAccessTokenAsyncHandler;
typedef Outcome<Error, Model::GetDemoTrialAuthResult> GetDemoTrialAuthOutcome;
typedef std::future<GetDemoTrialAuthOutcome> GetDemoTrialAuthOutcomeCallable;
typedef std::function<void(const DemoCenterClient*, const Model::GetDemoTrialAuthRequest&, const GetDemoTrialAuthOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDemoTrialAuthAsyncHandler;
DemoCenterClient(const Credentials &credentials, const ClientConfiguration &configuration);
DemoCenterClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -60,6 +65,9 @@ namespace AlibabaCloud
ExpireDemoAccessTokenOutcome expireDemoAccessToken(const Model::ExpireDemoAccessTokenRequest &request)const;
void expireDemoAccessTokenAsync(const Model::ExpireDemoAccessTokenRequest& request, const ExpireDemoAccessTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExpireDemoAccessTokenOutcomeCallable expireDemoAccessTokenCallable(const Model::ExpireDemoAccessTokenRequest& request) const;
GetDemoTrialAuthOutcome getDemoTrialAuth(const Model::GetDemoTrialAuthRequest &request)const;
void getDemoTrialAuthAsync(const Model::GetDemoTrialAuthRequest& request, const GetDemoTrialAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDemoTrialAuthOutcomeCallable getDemoTrialAuthCallable(const Model::GetDemoTrialAuthRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -35,10 +35,13 @@ namespace AlibabaCloud
CreateDemoAccessTokenRequest();
~CreateDemoAccessTokenRequest();
int getEdition()const;
void setEdition(int edition);
long getDemoId()const;
void setDemoId(long demoId);
private:
int edition_;
long demoId_;
};

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
std::string getExpiredDate()const;
std::string getDemoAccessToken()const;
std::string getOpenUserId()const;
std::string getEdition()const;
protected:
void parse(const std::string &payload);
@@ -51,6 +52,7 @@ namespace AlibabaCloud
std::string expiredDate_;
std::string demoAccessToken_;
std::string openUserId_;
std::string edition_;
};
}

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEMOCENTER_MODEL_GETDEMOTRIALAUTHREQUEST_H_
#define ALIBABACLOUD_DEMOCENTER_MODEL_GETDEMOTRIALAUTHREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/democenter/DemoCenterExport.h>
namespace AlibabaCloud
{
namespace DemoCenter
{
namespace Model
{
class ALIBABACLOUD_DEMOCENTER_EXPORT GetDemoTrialAuthRequest : public RpcServiceRequest
{
public:
GetDemoTrialAuthRequest();
~GetDemoTrialAuthRequest();
long getDemoId()const;
void setDemoId(long demoId);
private:
long demoId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEMOCENTER_MODEL_GETDEMOTRIALAUTHREQUEST_H_

View File

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

View File

@@ -31,21 +31,21 @@ DemoCenterClient::DemoCenterClient(const Credentials &credentials, const ClientC
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, "DemoCenter");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
DemoCenterClient::DemoCenterClient(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, "DemoCenter");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
DemoCenterClient::DemoCenterClient(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, "DemoCenter");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
DemoCenterClient::~DemoCenterClient()
@@ -159,3 +159,39 @@ DemoCenterClient::ExpireDemoAccessTokenOutcomeCallable DemoCenterClient::expireD
return task->get_future();
}
DemoCenterClient::GetDemoTrialAuthOutcome DemoCenterClient::getDemoTrialAuth(const GetDemoTrialAuthRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDemoTrialAuthOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDemoTrialAuthOutcome(GetDemoTrialAuthResult(outcome.result()));
else
return GetDemoTrialAuthOutcome(outcome.error());
}
void DemoCenterClient::getDemoTrialAuthAsync(const GetDemoTrialAuthRequest& request, const GetDemoTrialAuthAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDemoTrialAuth(request), context);
};
asyncExecute(new Runnable(fn));
}
DemoCenterClient::GetDemoTrialAuthOutcomeCallable DemoCenterClient::getDemoTrialAuthCallable(const GetDemoTrialAuthRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDemoTrialAuthOutcome()>>(
[this, request]()
{
return this->getDemoTrialAuth(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -27,6 +27,17 @@ CreateDemoAccessTokenRequest::CreateDemoAccessTokenRequest() :
CreateDemoAccessTokenRequest::~CreateDemoAccessTokenRequest()
{}
int CreateDemoAccessTokenRequest::getEdition()const
{
return edition_;
}
void CreateDemoAccessTokenRequest::setEdition(int edition)
{
edition_ = edition;
setBodyParameter("Edition", std::to_string(edition));
}
long CreateDemoAccessTokenRequest::getDemoId()const
{
return demoId_;

View File

@@ -49,6 +49,8 @@ void DescribeDemoAccessTokenResult::parse(const std::string &payload)
demoTrialPage_ = value["DemoTrialPage"].asString();
if(!value["DemoDetailPage"].isNull())
demoDetailPage_ = value["DemoDetailPage"].asString();
if(!value["Edition"].isNull())
edition_ = value["Edition"].asString();
}
@@ -77,3 +79,8 @@ std::string DescribeDemoAccessTokenResult::getOpenUserId()const
return openUserId_;
}
std::string DescribeDemoAccessTokenResult::getEdition()const
{
return edition_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/democenter/model/GetDemoTrialAuthRequest.h>
using AlibabaCloud::DemoCenter::Model::GetDemoTrialAuthRequest;
GetDemoTrialAuthRequest::GetDemoTrialAuthRequest() :
RpcServiceRequest("democenter", "2020-01-21", "GetDemoTrialAuth")
{
setMethod(HttpRequest::Method::Get);
}
GetDemoTrialAuthRequest::~GetDemoTrialAuthRequest()
{}
long GetDemoTrialAuthRequest::getDemoId()const
{
return demoId_;
}
void GetDemoTrialAuthRequest::setDemoId(long demoId)
{
demoId_ = demoId;
setBodyParameter("DemoId", std::to_string(demoId));
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/democenter/model/GetDemoTrialAuthResult.h>
#include <json/json.h>
using namespace AlibabaCloud::DemoCenter;
using namespace AlibabaCloud::DemoCenter::Model;
GetDemoTrialAuthResult::GetDemoTrialAuthResult() :
ServiceResult()
{}
GetDemoTrialAuthResult::GetDemoTrialAuthResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDemoTrialAuthResult::~GetDemoTrialAuthResult()
{}
void GetDemoTrialAuthResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Authorization"].isNull())
authorization_ = value["Authorization"].asString();
}
std::string GetDemoTrialAuthResult::getAuthorization()const
{
return authorization_;
}

View File

@@ -31,6 +31,8 @@ set(ehpc_public_header_model
include/alibabacloud/ehpc/model/AddQueueResult.h
include/alibabacloud/ehpc/model/AddUsersRequest.h
include/alibabacloud/ehpc/model/AddUsersResult.h
include/alibabacloud/ehpc/model/ApplyNodesRequest.h
include/alibabacloud/ehpc/model/ApplyNodesResult.h
include/alibabacloud/ehpc/model/BindAccountToClusterUserRequest.h
include/alibabacloud/ehpc/model/BindAccountToClusterUserResult.h
include/alibabacloud/ehpc/model/CreateClusterRequest.h
@@ -258,6 +260,8 @@ set(ehpc_src
src/model/AddQueueResult.cc
src/model/AddUsersRequest.cc
src/model/AddUsersResult.cc
src/model/ApplyNodesRequest.cc
src/model/ApplyNodesResult.cc
src/model/BindAccountToClusterUserRequest.cc
src/model/BindAccountToClusterUserResult.cc
src/model/CreateClusterRequest.cc

View File

@@ -32,6 +32,8 @@
#include "model/AddQueueResult.h"
#include "model/AddUsersRequest.h"
#include "model/AddUsersResult.h"
#include "model/ApplyNodesRequest.h"
#include "model/ApplyNodesResult.h"
#include "model/BindAccountToClusterUserRequest.h"
#include "model/BindAccountToClusterUserResult.h"
#include "model/CreateClusterRequest.h"
@@ -270,6 +272,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddUsersResult> AddUsersOutcome;
typedef std::future<AddUsersOutcome> AddUsersOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::AddUsersRequest&, const AddUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUsersAsyncHandler;
typedef Outcome<Error, Model::ApplyNodesResult> ApplyNodesOutcome;
typedef std::future<ApplyNodesOutcome> ApplyNodesOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::ApplyNodesRequest&, const ApplyNodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyNodesAsyncHandler;
typedef Outcome<Error, Model::BindAccountToClusterUserResult> BindAccountToClusterUserOutcome;
typedef std::future<BindAccountToClusterUserOutcome> BindAccountToClusterUserOutcomeCallable;
typedef std::function<void(const EHPCClient*, const Model::BindAccountToClusterUserRequest&, const BindAccountToClusterUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindAccountToClusterUserAsyncHandler;
@@ -611,6 +616,9 @@ namespace AlibabaCloud
AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const;
void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const;
ApplyNodesOutcome applyNodes(const Model::ApplyNodesRequest &request)const;
void applyNodesAsync(const Model::ApplyNodesRequest& request, const ApplyNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ApplyNodesOutcomeCallable applyNodesCallable(const Model::ApplyNodesRequest& request) const;
BindAccountToClusterUserOutcome bindAccountToClusterUser(const Model::BindAccountToClusterUserRequest &request)const;
void bindAccountToClusterUserAsync(const Model::BindAccountToClusterUserRequest& request, const BindAccountToClusterUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindAccountToClusterUserOutcomeCallable bindAccountToClusterUserCallable(const Model::BindAccountToClusterUserRequest& request) const;

View File

@@ -0,0 +1,125 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_EHPC_MODEL_APPLYNODESREQUEST_H_
#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ApplyNodesRequest : public RpcServiceRequest
{
public:
struct ZoneInfos
{
std::string vSwitchId;
std::string zoneId;
};
struct InstanceTypeModel
{
float maxPrice;
std::string instanceType;
};
public:
ApplyNodesRequest();
~ApplyNodesRequest();
std::string getImageId()const;
void setImageId(const std::string& imageId);
int getMemory()const;
void setMemory(int memory);
bool getAllocatePublicAddress()const;
void setAllocatePublicAddress(bool allocatePublicAddress);
int getInternetMaxBandWidthOut()const;
void setInternetMaxBandWidthOut(int internetMaxBandWidthOut);
std::string getResourceAmountType()const;
void setResourceAmountType(const std::string& resourceAmountType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSystemDiskType()const;
void setSystemDiskType(const std::string& systemDiskType);
int getCores()const;
void setCores(int cores);
int getSystemDiskSize()const;
void setSystemDiskSize(int systemDiskSize);
std::vector<ZoneInfos> getZoneInfos()const;
void setZoneInfos(const std::vector<ZoneInfos>& zoneInfos);
std::string getHostNamePrefix()const;
void setHostNamePrefix(const std::string& hostNamePrefix);
std::string getComputeSpotPriceLimit()const;
void setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getComputeSpotStrategy()const;
void setComputeSpotStrategy(const std::string& computeSpotStrategy);
std::string getHostNameSuffix()const;
void setHostNameSuffix(const std::string& hostNameSuffix);
std::string getPriorityStrategy()const;
void setPriorityStrategy(const std::string& priorityStrategy);
std::string getInstanceFamilyLevel()const;
void setInstanceFamilyLevel(const std::string& instanceFamilyLevel);
std::string getEcsChargeType()const;
void setEcsChargeType(const std::string& ecsChargeType);
std::string getInternetChargeType()const;
void setInternetChargeType(const std::string& internetChargeType);
std::vector<InstanceTypeModel> getInstanceTypeModel()const;
void setInstanceTypeModel(const std::vector<InstanceTypeModel>& instanceTypeModel);
int getInternetMaxBandWidthIn()const;
void setInternetMaxBandWidthIn(int internetMaxBandWidthIn);
int getTargetCapacity()const;
void setTargetCapacity(int targetCapacity);
bool getStrictSatisfiedTargetCapacity()const;
void setStrictSatisfiedTargetCapacity(bool strictSatisfiedTargetCapacity);
private:
std::string imageId_;
int memory_;
bool allocatePublicAddress_;
int internetMaxBandWidthOut_;
std::string resourceAmountType_;
std::string accessKeyId_;
std::string systemDiskType_;
int cores_;
int systemDiskSize_;
std::vector<ZoneInfos> zoneInfos_;
std::string hostNamePrefix_;
std::string computeSpotPriceLimit_;
std::string clusterId_;
std::string computeSpotStrategy_;
std::string hostNameSuffix_;
std::string priorityStrategy_;
std::string instanceFamilyLevel_;
std::string ecsChargeType_;
std::string internetChargeType_;
std::vector<InstanceTypeModel> instanceTypeModel_;
int internetMaxBandWidthIn_;
int targetCapacity_;
bool strictSatisfiedTargetCapacity_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_EHPC_MODEL_APPLYNODESRESULT_H_
#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ehpc/EHPCExport.h>
namespace AlibabaCloud
{
namespace EHPC
{
namespace Model
{
class ALIBABACLOUD_EHPC_EXPORT ApplyNodesResult : public ServiceResult
{
public:
ApplyNodesResult();
explicit ApplyNodesResult(const std::string &payload);
~ApplyNodesResult();
std::vector<std::string> getInstanceIds()const;
std::string getDetail()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> instanceIds_;
std::string detail_;
};
}
}
}
#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_H_

View File

@@ -53,99 +53,111 @@ namespace AlibabaCloud
CreateHybridClusterRequest();
~CreateHybridClusterRequest();
std::string getKeyPairName()const;
void setKeyPairName(const std::string& keyPairName);
std::string getSecurityGroupName()const;
void setSecurityGroupName(const std::string& securityGroupName);
std::string getOnPremiseVolumeRemotePath()const;
void setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath);
std::string getImageOwnerAlias()const;
void setImageOwnerAlias(const std::string& imageOwnerAlias);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getPassword()const;
void setPassword(const std::string& password);
float getComputeSpotPriceLimit()const;
void setComputeSpotPriceLimit(float computeSpotPriceLimit);
std::string getOnPremiseVolumeLocalPath()const;
void setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath);
std::string getRemoteDirectory()const;
void setRemoteDirectory(const std::string& remoteDirectory);
std::string getComputeSpotStrategy()const;
void setComputeSpotStrategy(const std::string& computeSpotStrategy);
std::vector<PostInstallScript> getPostInstallScript()const;
void setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript);
std::string getVSwitchId()const;
void setVSwitchId(const std::string& vSwitchId);
std::string getDomain()const;
void setDomain(const std::string& domain);
std::string getName()const;
void setName(const std::string& name);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getImageId()const;
void setImageId(const std::string& imageId);
std::string getEhpcVersion()const;
void setEhpcVersion(const std::string& ehpcVersion);
std::string getSecurityGroupId()const;
void setSecurityGroupId(const std::string& securityGroupId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getKeyPairName()const;
void setKeyPairName(const std::string& keyPairName);
std::string getSecurityGroupName()const;
void setSecurityGroupName(const std::string& securityGroupName);
std::string getEcsOrderComputeInstanceType()const;
void setEcsOrderComputeInstanceType(const std::string& ecsOrderComputeInstanceType);
std::string getOnPremiseVolumeRemotePath()const;
void setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath);
std::string getJobQueue()const;
void setJobQueue(const std::string& jobQueue);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getVolumeType()const;
void setVolumeType(const std::string& volumeType);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getPassword()const;
void setPassword(const std::string& password);
std::string getOnPremiseVolumeMountPoint()const;
void setOnPremiseVolumeMountPoint(const std::string& onPremiseVolumeMountPoint);
std::string getOnPremiseVolumeProtocol()const;
void setOnPremiseVolumeProtocol(const std::string& onPremiseVolumeProtocol);
std::string getVolumeProtocol()const;
void setVolumeProtocol(const std::string& volumeProtocol);
std::string getOnPremiseVolumeLocalPath()const;
void setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath);
std::string getClientVersion()const;
void setClientVersion(const std::string& clientVersion);
std::string getOsTag()const;
void setOsTag(const std::string& osTag);
std::string getRemoteDirectory()const;
void setRemoteDirectory(const std::string& remoteDirectory);
std::vector<PostInstallScript> getPostInstallScript()const;
void setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript);
std::string getVSwitchId()const;
void setVSwitchId(const std::string& vSwitchId);
std::vector<Nodes> getNodes()const;
void setNodes(const std::vector<Nodes>& nodes);
std::vector<Application> getApplication()const;
void setApplication(const std::vector<Application>& application);
std::string getDomain()const;
void setDomain(const std::string& domain);
std::string getVpcId()const;
void setVpcId(const std::string& vpcId);
std::string getName()const;
void setName(const std::string& name);
std::string getVolumeId()const;
void setVolumeId(const std::string& volumeId);
std::string getVolumeMountpoint()const;
void setVolumeMountpoint(const std::string& volumeMountpoint);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
bool getSchedulerPreInstall()const;
void setSchedulerPreInstall(bool schedulerPreInstall);
std::string getLocation()const;
void setLocation(const std::string& location);
private:
std::string keyPairName_;
std::string securityGroupName_;
std::string onPremiseVolumeRemotePath_;
std::string imageOwnerAlias_;
std::string resourceGroupId_;
std::string password_;
float computeSpotPriceLimit_;
std::string onPremiseVolumeLocalPath_;
std::string remoteDirectory_;
std::string computeSpotStrategy_;
std::vector<PostInstallScript> postInstallScript_;
std::string vSwitchId_;
std::string domain_;
std::string name_;
std::string volumeId_;
std::string zoneId_;
std::string imageId_;
std::string ehpcVersion_;
std::string securityGroupId_;
std::string description_;
std::string keyPairName_;
std::string securityGroupName_;
std::string ecsOrderComputeInstanceType_;
std::string onPremiseVolumeRemotePath_;
std::string jobQueue_;
std::string accessKeyId_;
std::string volumeType_;
std::string resourceGroupId_;
std::string password_;
std::string onPremiseVolumeMountPoint_;
std::string onPremiseVolumeProtocol_;
std::string volumeProtocol_;
std::string onPremiseVolumeLocalPath_;
std::string clientVersion_;
std::string osTag_;
std::string remoteDirectory_;
std::vector<PostInstallScript> postInstallScript_;
std::string vSwitchId_;
std::vector<Nodes> nodes_;
std::vector<Application> application_;
std::string domain_;
std::string vpcId_;
std::string name_;
std::string volumeId_;
std::string volumeMountpoint_;
std::string zoneId_;
bool schedulerPreInstall_;
std::string location_;

View File

@@ -88,6 +88,7 @@ namespace AlibabaCloud
std::string accountType;
std::string volumeMountpoint;
std::string baseOsTag;
std::string imageName;
std::string vpcId;
EcsInfo ecsInfo;
bool haEnable;

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
std::string instanceType;
std::string spotStrategy;
};
int minNodesInQueue;
int maxNodesInQueue;
std::string resourceGroupId;
bool enableAutoGrow;

View File

@@ -65,6 +65,8 @@ namespace AlibabaCloud
std::string imageOwnerAlias;
std::string description;
std::string nodePrefix;
std::string instanceChargeType;
float computeSpotPriceLimit;
std::string nodeSuffix;
int count;
std::string name;
@@ -79,6 +81,7 @@ namespace AlibabaCloud
std::string vSwitchId;
std::string createTime;
std::string schedulerType;
std::string computeSpotStrategy;
std::string accountType;
std::string ehpcVersion;
std::string baseOsTag;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setClusterId(const std::string& clusterId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSequence()const;
void setSequence(const std::string& sequence);
std::string getHostName()const;
void setHostName(const std::string& hostName);
bool getOnlyDetached()const;
@@ -50,6 +52,7 @@ namespace AlibabaCloud
std::string role_;
std::string clusterId_;
std::string accessKeyId_;
std::string sequence_;
std::string hostName_;
bool onlyDetached_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSequence()const;
void setSequence(const std::string& sequence);
std::string getHostName()const;
void setHostName(const std::string& hostName);
int getPageSize()const;
@@ -53,6 +55,7 @@ namespace AlibabaCloud
std::string clusterId_;
int pageNumber_;
std::string accessKeyId_;
std::string sequence_;
std::string hostName_;
int pageSize_;

View File

@@ -35,19 +35,25 @@ namespace AlibabaCloud
ModifyClusterAttributesRequest();
~ModifyClusterAttributesRequest();
std::string getImageId()const;
void setImageId(const std::string& imageId);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getImageOwnerAlias()const;
void setImageOwnerAlias(const std::string& imageOwnerAlias);
std::string getName()const;
void setName(const std::string& name);
private:
std::string imageId_;
std::string description_;
std::string clusterId_;
std::string accessKeyId_;
std::string imageOwnerAlias_;
std::string name_;
};

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
{
std::string spotStrategy;
std::string queueName;
int minNodesInQueue;
struct InstanceTypes
{
std::string spotStrategy;

View File

@@ -31,21 +31,21 @@ EHPCClient::EHPCClient(const Credentials &credentials, const ClientConfiguration
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "ehs");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
EHPCClient::EHPCClient(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, "ehs");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
EHPCClient::EHPCClient(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, "ehs");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
EHPCClient::~EHPCClient()
@@ -231,6 +231,42 @@ EHPCClient::AddUsersOutcomeCallable EHPCClient::addUsersCallable(const AddUsersR
return task->get_future();
}
EHPCClient::ApplyNodesOutcome EHPCClient::applyNodes(const ApplyNodesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ApplyNodesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ApplyNodesOutcome(ApplyNodesResult(outcome.result()));
else
return ApplyNodesOutcome(outcome.error());
}
void EHPCClient::applyNodesAsync(const ApplyNodesRequest& request, const ApplyNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, applyNodes(request), context);
};
asyncExecute(new Runnable(fn));
}
EHPCClient::ApplyNodesOutcomeCallable EHPCClient::applyNodesCallable(const ApplyNodesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ApplyNodesOutcome()>>(
[this, request]()
{
return this->applyNodes(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EHPCClient::BindAccountToClusterUserOutcome EHPCClient::bindAccountToClusterUser(const BindAccountToClusterUserRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,292 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/ehpc/model/ApplyNodesRequest.h>
using AlibabaCloud::EHPC::Model::ApplyNodesRequest;
ApplyNodesRequest::ApplyNodesRequest() :
RpcServiceRequest("ehpc", "2018-04-12", "ApplyNodes")
{
setMethod(HttpRequest::Method::Get);
}
ApplyNodesRequest::~ApplyNodesRequest()
{}
std::string ApplyNodesRequest::getImageId()const
{
return imageId_;
}
void ApplyNodesRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
int ApplyNodesRequest::getMemory()const
{
return memory_;
}
void ApplyNodesRequest::setMemory(int memory)
{
memory_ = memory;
setParameter("Memory", std::to_string(memory));
}
bool ApplyNodesRequest::getAllocatePublicAddress()const
{
return allocatePublicAddress_;
}
void ApplyNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress)
{
allocatePublicAddress_ = allocatePublicAddress;
setParameter("AllocatePublicAddress", allocatePublicAddress ? "true" : "false");
}
int ApplyNodesRequest::getInternetMaxBandWidthOut()const
{
return internetMaxBandWidthOut_;
}
void ApplyNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut)
{
internetMaxBandWidthOut_ = internetMaxBandWidthOut;
setParameter("InternetMaxBandWidthOut", std::to_string(internetMaxBandWidthOut));
}
std::string ApplyNodesRequest::getResourceAmountType()const
{
return resourceAmountType_;
}
void ApplyNodesRequest::setResourceAmountType(const std::string& resourceAmountType)
{
resourceAmountType_ = resourceAmountType;
setParameter("ResourceAmountType", resourceAmountType);
}
std::string ApplyNodesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ApplyNodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ApplyNodesRequest::getSystemDiskType()const
{
return systemDiskType_;
}
void ApplyNodesRequest::setSystemDiskType(const std::string& systemDiskType)
{
systemDiskType_ = systemDiskType;
setParameter("SystemDiskType", systemDiskType);
}
int ApplyNodesRequest::getCores()const
{
return cores_;
}
void ApplyNodesRequest::setCores(int cores)
{
cores_ = cores;
setParameter("Cores", std::to_string(cores));
}
int ApplyNodesRequest::getSystemDiskSize()const
{
return systemDiskSize_;
}
void ApplyNodesRequest::setSystemDiskSize(int systemDiskSize)
{
systemDiskSize_ = systemDiskSize;
setParameter("SystemDiskSize", std::to_string(systemDiskSize));
}
std::vector<ApplyNodesRequest::ZoneInfos> ApplyNodesRequest::getZoneInfos()const
{
return zoneInfos_;
}
void ApplyNodesRequest::setZoneInfos(const std::vector<ZoneInfos>& zoneInfos)
{
zoneInfos_ = zoneInfos;
for(int dep1 = 0; dep1!= zoneInfos.size(); dep1++) {
auto zoneInfosObj = zoneInfos.at(dep1);
std::string zoneInfosObjStr = "ZoneInfos." + std::to_string(dep1 + 1);
setParameter(zoneInfosObjStr + ".VSwitchId", zoneInfosObj.vSwitchId);
setParameter(zoneInfosObjStr + ".ZoneId", zoneInfosObj.zoneId);
}
}
std::string ApplyNodesRequest::getHostNamePrefix()const
{
return hostNamePrefix_;
}
void ApplyNodesRequest::setHostNamePrefix(const std::string& hostNamePrefix)
{
hostNamePrefix_ = hostNamePrefix;
setParameter("HostNamePrefix", hostNamePrefix);
}
std::string ApplyNodesRequest::getComputeSpotPriceLimit()const
{
return computeSpotPriceLimit_;
}
void ApplyNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
}
std::string ApplyNodesRequest::getClusterId()const
{
return clusterId_;
}
void ApplyNodesRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string ApplyNodesRequest::getComputeSpotStrategy()const
{
return computeSpotStrategy_;
}
void ApplyNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::string ApplyNodesRequest::getHostNameSuffix()const
{
return hostNameSuffix_;
}
void ApplyNodesRequest::setHostNameSuffix(const std::string& hostNameSuffix)
{
hostNameSuffix_ = hostNameSuffix;
setParameter("HostNameSuffix", hostNameSuffix);
}
std::string ApplyNodesRequest::getPriorityStrategy()const
{
return priorityStrategy_;
}
void ApplyNodesRequest::setPriorityStrategy(const std::string& priorityStrategy)
{
priorityStrategy_ = priorityStrategy;
setParameter("PriorityStrategy", priorityStrategy);
}
std::string ApplyNodesRequest::getInstanceFamilyLevel()const
{
return instanceFamilyLevel_;
}
void ApplyNodesRequest::setInstanceFamilyLevel(const std::string& instanceFamilyLevel)
{
instanceFamilyLevel_ = instanceFamilyLevel;
setParameter("InstanceFamilyLevel", instanceFamilyLevel);
}
std::string ApplyNodesRequest::getEcsChargeType()const
{
return ecsChargeType_;
}
void ApplyNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
{
ecsChargeType_ = ecsChargeType;
setParameter("EcsChargeType", ecsChargeType);
}
std::string ApplyNodesRequest::getInternetChargeType()const
{
return internetChargeType_;
}
void ApplyNodesRequest::setInternetChargeType(const std::string& internetChargeType)
{
internetChargeType_ = internetChargeType;
setParameter("InternetChargeType", internetChargeType);
}
std::vector<ApplyNodesRequest::InstanceTypeModel> ApplyNodesRequest::getInstanceTypeModel()const
{
return instanceTypeModel_;
}
void ApplyNodesRequest::setInstanceTypeModel(const std::vector<InstanceTypeModel>& instanceTypeModel)
{
instanceTypeModel_ = instanceTypeModel;
for(int dep1 = 0; dep1!= instanceTypeModel.size(); dep1++) {
auto instanceTypeModelObj = instanceTypeModel.at(dep1);
std::string instanceTypeModelObjStr = "InstanceTypeModel." + std::to_string(dep1 + 1);
setParameter(instanceTypeModelObjStr + ".MaxPrice", std::to_string(instanceTypeModelObj.maxPrice));
setParameter(instanceTypeModelObjStr + ".InstanceType", instanceTypeModelObj.instanceType);
}
}
int ApplyNodesRequest::getInternetMaxBandWidthIn()const
{
return internetMaxBandWidthIn_;
}
void ApplyNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn)
{
internetMaxBandWidthIn_ = internetMaxBandWidthIn;
setParameter("InternetMaxBandWidthIn", std::to_string(internetMaxBandWidthIn));
}
int ApplyNodesRequest::getTargetCapacity()const
{
return targetCapacity_;
}
void ApplyNodesRequest::setTargetCapacity(int targetCapacity)
{
targetCapacity_ = targetCapacity;
setParameter("TargetCapacity", std::to_string(targetCapacity));
}
bool ApplyNodesRequest::getStrictSatisfiedTargetCapacity()const
{
return strictSatisfiedTargetCapacity_;
}
void ApplyNodesRequest::setStrictSatisfiedTargetCapacity(bool strictSatisfiedTargetCapacity)
{
strictSatisfiedTargetCapacity_ = strictSatisfiedTargetCapacity;
setParameter("StrictSatisfiedTargetCapacity", strictSatisfiedTargetCapacity ? "true" : "false");
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ehpc/model/ApplyNodesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::EHPC;
using namespace AlibabaCloud::EHPC::Model;
ApplyNodesResult::ApplyNodesResult() :
ServiceResult()
{}
ApplyNodesResult::ApplyNodesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyNodesResult::~ApplyNodesResult()
{}
void ApplyNodesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
for (const auto &item : allInstanceIds)
instanceIds_.push_back(item.asString());
if(!value["Detail"].isNull())
detail_ = value["Detail"].asString();
}
std::vector<std::string> ApplyNodesResult::getInstanceIds()const
{
return instanceIds_;
}
std::string ApplyNodesResult::getDetail()const
{
return detail_;
}

View File

@@ -27,6 +27,198 @@ CreateHybridClusterRequest::CreateHybridClusterRequest() :
CreateHybridClusterRequest::~CreateHybridClusterRequest()
{}
std::string CreateHybridClusterRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateHybridClusterRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
std::string CreateHybridClusterRequest::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateHybridClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath()const
{
return onPremiseVolumeRemotePath_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath)
{
onPremiseVolumeRemotePath_ = onPremiseVolumeRemotePath;
setParameter("OnPremiseVolumeRemotePath", onPremiseVolumeRemotePath);
}
std::string CreateHybridClusterRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void CreateHybridClusterRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string CreateHybridClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateHybridClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateHybridClusterRequest::getPassword()const
{
return password_;
}
void CreateHybridClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
float CreateHybridClusterRequest::getComputeSpotPriceLimit()const
{
return computeSpotPriceLimit_;
}
void CreateHybridClusterRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit)
{
computeSpotPriceLimit_ = computeSpotPriceLimit;
setParameter("ComputeSpotPriceLimit", std::to_string(computeSpotPriceLimit));
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath()const
{
return onPremiseVolumeLocalPath_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath)
{
onPremiseVolumeLocalPath_ = onPremiseVolumeLocalPath;
setParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath);
}
std::string CreateHybridClusterRequest::getRemoteDirectory()const
{
return remoteDirectory_;
}
void CreateHybridClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
{
remoteDirectory_ = remoteDirectory;
setParameter("RemoteDirectory", remoteDirectory);
}
std::string CreateHybridClusterRequest::getComputeSpotStrategy()const
{
return computeSpotStrategy_;
}
void CreateHybridClusterRequest::setComputeSpotStrategy(const std::string& computeSpotStrategy)
{
computeSpotStrategy_ = computeSpotStrategy;
setParameter("ComputeSpotStrategy", computeSpotStrategy);
}
std::vector<CreateHybridClusterRequest::PostInstallScript> CreateHybridClusterRequest::getPostInstallScript()const
{
return postInstallScript_;
}
void CreateHybridClusterRequest::setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript)
{
postInstallScript_ = postInstallScript;
for(int dep1 = 0; dep1!= postInstallScript.size(); dep1++) {
auto postInstallScriptObj = postInstallScript.at(dep1);
std::string postInstallScriptObjStr = "PostInstallScript." + std::to_string(dep1 + 1);
setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args);
setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url);
}
}
std::string CreateHybridClusterRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateHybridClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::string CreateHybridClusterRequest::getDomain()const
{
return domain_;
}
void CreateHybridClusterRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateHybridClusterRequest::getName()const
{
return name_;
}
void CreateHybridClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateHybridClusterRequest::getVolumeId()const
{
return volumeId_;
}
void CreateHybridClusterRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
std::string CreateHybridClusterRequest::getZoneId()const
{
return zoneId_;
}
void CreateHybridClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
std::string CreateHybridClusterRequest::getImageId()const
{
return imageId_;
}
void CreateHybridClusterRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string CreateHybridClusterRequest::getEhpcVersion()const
{
return ehpcVersion_;
@@ -60,28 +252,6 @@ void CreateHybridClusterRequest::setDescription(const std::string& description)
setParameter("Description", description);
}
std::string CreateHybridClusterRequest::getKeyPairName()const
{
return keyPairName_;
}
void CreateHybridClusterRequest::setKeyPairName(const std::string& keyPairName)
{
keyPairName_ = keyPairName;
setParameter("KeyPairName", keyPairName);
}
std::string CreateHybridClusterRequest::getSecurityGroupName()const
{
return securityGroupName_;
}
void CreateHybridClusterRequest::setSecurityGroupName(const std::string& securityGroupName)
{
securityGroupName_ = securityGroupName;
setParameter("SecurityGroupName", securityGroupName);
}
std::string CreateHybridClusterRequest::getEcsOrderComputeInstanceType()const
{
return ecsOrderComputeInstanceType_;
@@ -93,17 +263,6 @@ void CreateHybridClusterRequest::setEcsOrderComputeInstanceType(const std::strin
setParameter("EcsOrderComputeInstanceType", ecsOrderComputeInstanceType);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath()const
{
return onPremiseVolumeRemotePath_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeRemotePath(const std::string& onPremiseVolumeRemotePath)
{
onPremiseVolumeRemotePath_ = onPremiseVolumeRemotePath;
setParameter("OnPremiseVolumeRemotePath", onPremiseVolumeRemotePath);
}
std::string CreateHybridClusterRequest::getJobQueue()const
{
return jobQueue_;
@@ -137,28 +296,6 @@ void CreateHybridClusterRequest::setVolumeType(const std::string& volumeType)
setParameter("VolumeType", volumeType);
}
std::string CreateHybridClusterRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void CreateHybridClusterRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string CreateHybridClusterRequest::getPassword()const
{
return password_;
}
void CreateHybridClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeMountPoint()const
{
return onPremiseVolumeMountPoint_;
@@ -192,17 +329,6 @@ void CreateHybridClusterRequest::setVolumeProtocol(const std::string& volumeProt
setParameter("VolumeProtocol", volumeProtocol);
}
std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath()const
{
return onPremiseVolumeLocalPath_;
}
void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string& onPremiseVolumeLocalPath)
{
onPremiseVolumeLocalPath_ = onPremiseVolumeLocalPath;
setParameter("OnPremiseVolumeLocalPath", onPremiseVolumeLocalPath);
}
std::string CreateHybridClusterRequest::getClientVersion()const
{
return clientVersion_;
@@ -225,44 +351,6 @@ void CreateHybridClusterRequest::setOsTag(const std::string& osTag)
setParameter("OsTag", osTag);
}
std::string CreateHybridClusterRequest::getRemoteDirectory()const
{
return remoteDirectory_;
}
void CreateHybridClusterRequest::setRemoteDirectory(const std::string& remoteDirectory)
{
remoteDirectory_ = remoteDirectory;
setParameter("RemoteDirectory", remoteDirectory);
}
std::vector<CreateHybridClusterRequest::PostInstallScript> CreateHybridClusterRequest::getPostInstallScript()const
{
return postInstallScript_;
}
void CreateHybridClusterRequest::setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript)
{
postInstallScript_ = postInstallScript;
for(int dep1 = 0; dep1!= postInstallScript.size(); dep1++) {
auto postInstallScriptObj = postInstallScript.at(dep1);
std::string postInstallScriptObjStr = "PostInstallScript." + std::to_string(dep1 + 1);
setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args);
setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url);
}
}
std::string CreateHybridClusterRequest::getVSwitchId()const
{
return vSwitchId_;
}
void CreateHybridClusterRequest::setVSwitchId(const std::string& vSwitchId)
{
vSwitchId_ = vSwitchId;
setParameter("VSwitchId", vSwitchId);
}
std::vector<CreateHybridClusterRequest::Nodes> CreateHybridClusterRequest::getNodes()const
{
return nodes_;
@@ -297,17 +385,6 @@ void CreateHybridClusterRequest::setApplication(const std::vector<Application>&
}
}
std::string CreateHybridClusterRequest::getDomain()const
{
return domain_;
}
void CreateHybridClusterRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}
std::string CreateHybridClusterRequest::getVpcId()const
{
return vpcId_;
@@ -319,28 +396,6 @@ void CreateHybridClusterRequest::setVpcId(const std::string& vpcId)
setParameter("VpcId", vpcId);
}
std::string CreateHybridClusterRequest::getName()const
{
return name_;
}
void CreateHybridClusterRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateHybridClusterRequest::getVolumeId()const
{
return volumeId_;
}
void CreateHybridClusterRequest::setVolumeId(const std::string& volumeId)
{
volumeId_ = volumeId;
setParameter("VolumeId", volumeId);
}
std::string CreateHybridClusterRequest::getVolumeMountpoint()const
{
return volumeMountpoint_;
@@ -352,17 +407,6 @@ void CreateHybridClusterRequest::setVolumeMountpoint(const std::string& volumeMo
setParameter("VolumeMountpoint", volumeMountpoint);
}
std::string CreateHybridClusterRequest::getZoneId()const
{
return zoneId_;
}
void CreateHybridClusterRequest::setZoneId(const std::string& zoneId)
{
zoneId_ = zoneId;
setParameter("ZoneId", zoneId);
}
bool CreateHybridClusterRequest::getSchedulerPreInstall()const
{
return schedulerPreInstall_;

View File

@@ -94,6 +94,8 @@ void DescribeClusterResult::parse(const std::string &payload)
clusterInfo_.location = clusterInfoNode["Location"].asString();
if(!clusterInfoNode["BaseOsTag"].isNull())
clusterInfo_.baseOsTag = clusterInfoNode["BaseOsTag"].asString();
if(!clusterInfoNode["ImageName"].isNull())
clusterInfo_.imageName = clusterInfoNode["ImageName"].asString();
auto allApplicationsNode = clusterInfoNode["Applications"]["ApplicationInfo"];
for (auto clusterInfoNodeApplicationsApplicationInfo : allApplicationsNode)
{

View File

@@ -59,6 +59,8 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
queuesObject.enableAutoShrink = valueQueuesQueueInfo["EnableAutoShrink"].asString() == "true";
if(!valueQueuesQueueInfo["MaxNodesInQueue"].isNull())
queuesObject.maxNodesInQueue = std::stoi(valueQueuesQueueInfo["MaxNodesInQueue"].asString());
if(!valueQueuesQueueInfo["MinNodesInQueue"].isNull())
queuesObject.minNodesInQueue = std::stoi(valueQueuesQueueInfo["MinNodesInQueue"].asString());
auto allInstanceTypesNode = allQueuesNode["InstanceTypes"]["InstanceTypeInfo"];
for (auto allQueuesNodeInstanceTypesInstanceTypeInfo : allInstanceTypesNode)
{

View File

@@ -89,6 +89,12 @@ void ListClustersResult::parse(const std::string &payload)
clustersObject.nodeSuffix = valueClustersClusterInfoSimple["NodeSuffix"].asString();
if(!valueClustersClusterInfoSimple["BaseOsTag"].isNull())
clustersObject.baseOsTag = valueClustersClusterInfoSimple["BaseOsTag"].asString();
if(!valueClustersClusterInfoSimple["InstanceChargeType"].isNull())
clustersObject.instanceChargeType = valueClustersClusterInfoSimple["InstanceChargeType"].asString();
if(!valueClustersClusterInfoSimple["ComputeSpotStrategy"].isNull())
clustersObject.computeSpotStrategy = valueClustersClusterInfoSimple["ComputeSpotStrategy"].asString();
if(!valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].isNull())
clustersObject.computeSpotPriceLimit = std::stof(valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].asString());
auto managersNode = value["Managers"];
if(!managersNode["Total"].isNull())
clustersObject.managers.total = std::stoi(managersNode["Total"].asString());

View File

@@ -60,6 +60,17 @@ void ListNodesNoPagingRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string ListNodesNoPagingRequest::getSequence()const
{
return sequence_;
}
void ListNodesNoPagingRequest::setSequence(const std::string& sequence)
{
sequence_ = sequence;
setParameter("Sequence", sequence);
}
std::string ListNodesNoPagingRequest::getHostName()const
{
return hostName_;

View File

@@ -71,6 +71,17 @@ void ListNodesRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string ListNodesRequest::getSequence()const
{
return sequence_;
}
void ListNodesRequest::setSequence(const std::string& sequence)
{
sequence_ = sequence;
setParameter("Sequence", sequence);
}
std::string ListNodesRequest::getHostName()const
{
return hostName_;

View File

@@ -27,6 +27,17 @@ ModifyClusterAttributesRequest::ModifyClusterAttributesRequest() :
ModifyClusterAttributesRequest::~ModifyClusterAttributesRequest()
{}
std::string ModifyClusterAttributesRequest::getImageId()const
{
return imageId_;
}
void ModifyClusterAttributesRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
}
std::string ModifyClusterAttributesRequest::getDescription()const
{
return description_;
@@ -60,6 +71,17 @@ void ModifyClusterAttributesRequest::setAccessKeyId(const std::string& accessKey
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyClusterAttributesRequest::getImageOwnerAlias()const
{
return imageOwnerAlias_;
}
void ModifyClusterAttributesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
{
imageOwnerAlias_ = imageOwnerAlias;
setParameter("ImageOwnerAlias", imageOwnerAlias);
}
std::string ModifyClusterAttributesRequest::getName()const
{
return name_;

View File

@@ -183,6 +183,7 @@ void SetAutoScaleConfigRequest::setQueues(const std::vector<Queues>& queues)
std::string queuesObjStr = "Queues." + std::to_string(dep1 + 1);
setParameter(queuesObjStr + ".SpotStrategy", queuesObj.spotStrategy);
setParameter(queuesObjStr + ".QueueName", queuesObj.queueName);
setParameter(queuesObjStr + ".MinNodesInQueue", std::to_string(queuesObj.minNodesInQueue));
for(int dep2 = 0; dep2!= queuesObj.instanceTypes.size(); dep2++) {
auto instanceTypesObj = queuesObj.instanceTypes.at(dep2);
std::string instanceTypesObjStr = queuesObjStr + "InstanceTypes." + std::to_string(dep2 + 1);

View File

@@ -97,6 +97,10 @@ set(imm_public_header_model
include/alibabacloud/imm/model/FindImagesByTagNamesResult.h
include/alibabacloud/imm/model/FindSimilarFacesRequest.h
include/alibabacloud/imm/model/FindSimilarFacesResult.h
include/alibabacloud/imm/model/GetContentKeyRequest.h
include/alibabacloud/imm/model/GetContentKeyResult.h
include/alibabacloud/imm/model/GetDRMLicenseRequest.h
include/alibabacloud/imm/model/GetDRMLicenseResult.h
include/alibabacloud/imm/model/GetDocIndexRequest.h
include/alibabacloud/imm/model/GetDocIndexResult.h
include/alibabacloud/imm/model/GetDocIndexTaskRequest.h
@@ -157,6 +161,8 @@ set(imm_public_header_model
include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h
include/alibabacloud/imm/model/SearchDocIndexRequest.h
include/alibabacloud/imm/model/SearchDocIndexResult.h
include/alibabacloud/imm/model/StopStreamAnalyseTaskRequest.h
include/alibabacloud/imm/model/StopStreamAnalyseTaskResult.h
include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h
include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h
include/alibabacloud/imm/model/UpdateFaceGroupRequest.h
@@ -246,6 +252,10 @@ set(imm_src
src/model/FindImagesByTagNamesResult.cc
src/model/FindSimilarFacesRequest.cc
src/model/FindSimilarFacesResult.cc
src/model/GetContentKeyRequest.cc
src/model/GetContentKeyResult.cc
src/model/GetDRMLicenseRequest.cc
src/model/GetDRMLicenseResult.cc
src/model/GetDocIndexRequest.cc
src/model/GetDocIndexResult.cc
src/model/GetDocIndexTaskRequest.cc
@@ -306,6 +316,8 @@ set(imm_src
src/model/RefreshOfficePreviewTokenResult.cc
src/model/SearchDocIndexRequest.cc
src/model/SearchDocIndexResult.cc
src/model/StopStreamAnalyseTaskRequest.cc
src/model/StopStreamAnalyseTaskResult.cc
src/model/UpdateDocIndexMetaRequest.cc
src/model/UpdateDocIndexMetaResult.cc
src/model/UpdateFaceGroupRequest.cc

View File

@@ -98,6 +98,10 @@
#include "model/FindImagesByTagNamesResult.h"
#include "model/FindSimilarFacesRequest.h"
#include "model/FindSimilarFacesResult.h"
#include "model/GetContentKeyRequest.h"
#include "model/GetContentKeyResult.h"
#include "model/GetDRMLicenseRequest.h"
#include "model/GetDRMLicenseResult.h"
#include "model/GetDocIndexRequest.h"
#include "model/GetDocIndexResult.h"
#include "model/GetDocIndexTaskRequest.h"
@@ -158,6 +162,8 @@
#include "model/RefreshOfficePreviewTokenResult.h"
#include "model/SearchDocIndexRequest.h"
#include "model/SearchDocIndexResult.h"
#include "model/StopStreamAnalyseTaskRequest.h"
#include "model/StopStreamAnalyseTaskResult.h"
#include "model/UpdateDocIndexMetaRequest.h"
#include "model/UpdateDocIndexMetaResult.h"
#include "model/UpdateFaceGroupRequest.h"
@@ -291,6 +297,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::FindSimilarFacesResult> FindSimilarFacesOutcome;
typedef std::future<FindSimilarFacesOutcome> FindSimilarFacesOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::FindSimilarFacesRequest&, const FindSimilarFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FindSimilarFacesAsyncHandler;
typedef Outcome<Error, Model::GetContentKeyResult> GetContentKeyOutcome;
typedef std::future<GetContentKeyOutcome> GetContentKeyOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GetContentKeyRequest&, const GetContentKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContentKeyAsyncHandler;
typedef Outcome<Error, Model::GetDRMLicenseResult> GetDRMLicenseOutcome;
typedef std::future<GetDRMLicenseOutcome> GetDRMLicenseOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GetDRMLicenseRequest&, const GetDRMLicenseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDRMLicenseAsyncHandler;
typedef Outcome<Error, Model::GetDocIndexResult> GetDocIndexOutcome;
typedef std::future<GetDocIndexOutcome> GetDocIndexOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GetDocIndexRequest&, const GetDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocIndexAsyncHandler;
@@ -381,6 +393,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SearchDocIndexResult> SearchDocIndexOutcome;
typedef std::future<SearchDocIndexOutcome> SearchDocIndexOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::SearchDocIndexRequest&, const SearchDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDocIndexAsyncHandler;
typedef Outcome<Error, Model::StopStreamAnalyseTaskResult> StopStreamAnalyseTaskOutcome;
typedef std::future<StopStreamAnalyseTaskOutcome> StopStreamAnalyseTaskOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::StopStreamAnalyseTaskRequest&, const StopStreamAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopStreamAnalyseTaskAsyncHandler;
typedef Outcome<Error, Model::UpdateDocIndexMetaResult> UpdateDocIndexMetaOutcome;
typedef std::future<UpdateDocIndexMetaOutcome> UpdateDocIndexMetaOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::UpdateDocIndexMetaRequest&, const UpdateDocIndexMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDocIndexMetaAsyncHandler;
@@ -515,6 +530,12 @@ namespace AlibabaCloud
FindSimilarFacesOutcome findSimilarFaces(const Model::FindSimilarFacesRequest &request)const;
void findSimilarFacesAsync(const Model::FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FindSimilarFacesOutcomeCallable findSimilarFacesCallable(const Model::FindSimilarFacesRequest& request) const;
GetContentKeyOutcome getContentKey(const Model::GetContentKeyRequest &request)const;
void getContentKeyAsync(const Model::GetContentKeyRequest& request, const GetContentKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetContentKeyOutcomeCallable getContentKeyCallable(const Model::GetContentKeyRequest& request) const;
GetDRMLicenseOutcome getDRMLicense(const Model::GetDRMLicenseRequest &request)const;
void getDRMLicenseAsync(const Model::GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDRMLicenseOutcomeCallable getDRMLicenseCallable(const Model::GetDRMLicenseRequest& request) const;
GetDocIndexOutcome getDocIndex(const Model::GetDocIndexRequest &request)const;
void getDocIndexAsync(const Model::GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDocIndexOutcomeCallable getDocIndexCallable(const Model::GetDocIndexRequest& request) const;
@@ -605,6 +626,9 @@ namespace AlibabaCloud
SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const;
void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchDocIndexOutcomeCallable searchDocIndexCallable(const Model::SearchDocIndexRequest& request) const;
StopStreamAnalyseTaskOutcome stopStreamAnalyseTask(const Model::StopStreamAnalyseTaskRequest &request)const;
void stopStreamAnalyseTaskAsync(const Model::StopStreamAnalyseTaskRequest& request, const StopStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopStreamAnalyseTaskOutcomeCallable stopStreamAnalyseTaskCallable(const Model::StopStreamAnalyseTaskRequest& request) const;
UpdateDocIndexMetaOutcome updateDocIndexMeta(const Model::UpdateDocIndexMetaRequest &request)const;
void updateDocIndexMetaAsync(const Model::UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDocIndexMetaOutcomeCallable updateDocIndexMetaCallable(const Model::UpdateDocIndexMetaRequest& request) const;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetContentKeyRequest : public RpcServiceRequest
{
public:
GetContentKeyRequest();
~GetContentKeyRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getVersionId()const;
void setVersionId(const std::string& versionId);
std::string getDRMServerId()const;
void setDRMServerId(const std::string& dRMServerId);
std::string getKeyIds()const;
void setKeyIds(const std::string& keyIds);
private:
std::string project_;
std::string accessKeyId_;
std::string versionId_;
std::string dRMServerId_;
std::string keyIds_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_IMM_MODEL_GETCONTENTKEYRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetContentKeyResult : public ServiceResult
{
public:
GetContentKeyResult();
explicit GetContentKeyResult(const std::string &payload);
~GetContentKeyResult();
std::string getVersionId()const;
std::string getKeyInfos()const;
protected:
void parse(const std::string &payload);
private:
std::string versionId_;
std::string keyInfos_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseRequest : public RpcServiceRequest
{
public:
GetDRMLicenseRequest();
~GetDRMLicenseRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getDRMType()const;
void setDRMType(const std::string& dRMType);
std::string getDRMLicense()const;
void setDRMLicense(const std::string& dRMLicense);
private:
std::string project_;
std::string accessKeyId_;
std::string dRMType_;
std::string dRMLicense_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_

View File

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

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT StopStreamAnalyseTaskRequest : public RpcServiceRequest
{
public:
StopStreamAnalyseTaskRequest();
~StopStreamAnalyseTaskRequest();
std::string getProject()const;
void setProject(const std::string& project);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string project_;
std::string accessKeyId_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_

View File

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

View File

@@ -1419,6 +1419,78 @@ ImmClient::FindSimilarFacesOutcomeCallable ImmClient::findSimilarFacesCallable(c
return task->get_future();
}
ImmClient::GetContentKeyOutcome ImmClient::getContentKey(const GetContentKeyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetContentKeyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetContentKeyOutcome(GetContentKeyResult(outcome.result()));
else
return GetContentKeyOutcome(outcome.error());
}
void ImmClient::getContentKeyAsync(const GetContentKeyRequest& request, const GetContentKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getContentKey(request), context);
};
asyncExecute(new Runnable(fn));
}
ImmClient::GetContentKeyOutcomeCallable ImmClient::getContentKeyCallable(const GetContentKeyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetContentKeyOutcome()>>(
[this, request]()
{
return this->getContentKey(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ImmClient::GetDRMLicenseOutcome ImmClient::getDRMLicense(const GetDRMLicenseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDRMLicenseOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDRMLicenseOutcome(GetDRMLicenseResult(outcome.result()));
else
return GetDRMLicenseOutcome(outcome.error());
}
void ImmClient::getDRMLicenseAsync(const GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDRMLicense(request), context);
};
asyncExecute(new Runnable(fn));
}
ImmClient::GetDRMLicenseOutcomeCallable ImmClient::getDRMLicenseCallable(const GetDRMLicenseRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDRMLicenseOutcome()>>(
[this, request]()
{
return this->getDRMLicense(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ImmClient::GetDocIndexOutcome ImmClient::getDocIndex(const GetDocIndexRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2499,6 +2571,42 @@ ImmClient::SearchDocIndexOutcomeCallable ImmClient::searchDocIndexCallable(const
return task->get_future();
}
ImmClient::StopStreamAnalyseTaskOutcome ImmClient::stopStreamAnalyseTask(const StopStreamAnalyseTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopStreamAnalyseTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopStreamAnalyseTaskOutcome(StopStreamAnalyseTaskResult(outcome.result()));
else
return StopStreamAnalyseTaskOutcome(outcome.error());
}
void ImmClient::stopStreamAnalyseTaskAsync(const StopStreamAnalyseTaskRequest& request, const StopStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopStreamAnalyseTask(request), context);
};
asyncExecute(new Runnable(fn));
}
ImmClient::StopStreamAnalyseTaskOutcomeCallable ImmClient::stopStreamAnalyseTaskCallable(const StopStreamAnalyseTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopStreamAnalyseTaskOutcome()>>(
[this, request]()
{
return this->stopStreamAnalyseTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ImmClient::UpdateDocIndexMetaOutcome ImmClient::updateDocIndexMeta(const UpdateDocIndexMetaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetContentKeyRequest.h>
using AlibabaCloud::Imm::Model::GetContentKeyRequest;
GetContentKeyRequest::GetContentKeyRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetContentKey")
{
setMethod(HttpRequest::Method::Post);
}
GetContentKeyRequest::~GetContentKeyRequest()
{}
std::string GetContentKeyRequest::getProject()const
{
return project_;
}
void GetContentKeyRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string GetContentKeyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetContentKeyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetContentKeyRequest::getVersionId()const
{
return versionId_;
}
void GetContentKeyRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}
std::string GetContentKeyRequest::getDRMServerId()const
{
return dRMServerId_;
}
void GetContentKeyRequest::setDRMServerId(const std::string& dRMServerId)
{
dRMServerId_ = dRMServerId;
setParameter("DRMServerId", dRMServerId);
}
std::string GetContentKeyRequest::getKeyIds()const
{
return keyIds_;
}
void GetContentKeyRequest::setKeyIds(const std::string& keyIds)
{
keyIds_ = keyIds;
setParameter("KeyIds", keyIds);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/imm/model/GetContentKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetContentKeyResult::GetContentKeyResult() :
ServiceResult()
{}
GetContentKeyResult::GetContentKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetContentKeyResult::~GetContentKeyResult()
{}
void GetContentKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["VersionId"].isNull())
versionId_ = value["VersionId"].asString();
if(!value["KeyInfos"].isNull())
keyInfos_ = value["KeyInfos"].asString();
}
std::string GetContentKeyResult::getVersionId()const
{
return versionId_;
}
std::string GetContentKeyResult::getKeyInfos()const
{
return keyInfos_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetDRMLicenseRequest.h>
using AlibabaCloud::Imm::Model::GetDRMLicenseRequest;
GetDRMLicenseRequest::GetDRMLicenseRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetDRMLicense")
{
setMethod(HttpRequest::Method::Post);
}
GetDRMLicenseRequest::~GetDRMLicenseRequest()
{}
std::string GetDRMLicenseRequest::getProject()const
{
return project_;
}
void GetDRMLicenseRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string GetDRMLicenseRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetDRMLicenseRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetDRMLicenseRequest::getDRMType()const
{
return dRMType_;
}
void GetDRMLicenseRequest::setDRMType(const std::string& dRMType)
{
dRMType_ = dRMType;
setParameter("DRMType", dRMType);
}
std::string GetDRMLicenseRequest::getDRMLicense()const
{
return dRMLicense_;
}
void GetDRMLicenseRequest::setDRMLicense(const std::string& dRMLicense)
{
dRMLicense_ = dRMLicense;
setParameter("DRMLicense", dRMLicense);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetDRMLicenseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetDRMLicenseResult::GetDRMLicenseResult() :
ServiceResult()
{}
GetDRMLicenseResult::GetDRMLicenseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDRMLicenseResult::~GetDRMLicenseResult()
{}
void GetDRMLicenseResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DRMData"].isNull())
dRMData_ = value["DRMData"].asString();
}
std::string GetDRMLicenseResult::getDRMData()const
{
return dRMData_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/StopStreamAnalyseTaskRequest.h>
using AlibabaCloud::Imm::Model::StopStreamAnalyseTaskRequest;
StopStreamAnalyseTaskRequest::StopStreamAnalyseTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "StopStreamAnalyseTask")
{
setMethod(HttpRequest::Method::Post);
}
StopStreamAnalyseTaskRequest::~StopStreamAnalyseTaskRequest()
{}
std::string StopStreamAnalyseTaskRequest::getProject()const
{
return project_;
}
void StopStreamAnalyseTaskRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string StopStreamAnalyseTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void StopStreamAnalyseTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string StopStreamAnalyseTaskRequest::getTaskId()const
{
return taskId_;
}
void StopStreamAnalyseTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/StopStreamAnalyseTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
StopStreamAnalyseTaskResult::StopStreamAnalyseTaskResult() :
ServiceResult()
{}
StopStreamAnalyseTaskResult::StopStreamAnalyseTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopStreamAnalyseTaskResult::~StopStreamAnalyseTaskResult()
{}
void StopStreamAnalyseTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string StopStreamAnalyseTaskResult::getTaskId()const
{
return taskId_;
}

View File

@@ -38,9 +38,9 @@ namespace AlibabaCloud
explicit DescribeCacheAnalysisReportResult(const std::string &payload);
~DescribeCacheAnalysisReportResult();
int getTotalRecordCount()const;
std::string getHotKeys()const;
std::vector<std::string> getHotKeys()const;
std::vector<std::string> getBigKeys()const;
int getPageRecordCount()const;
std::string getBigKeys()const;
int getPageSize()const;
int getPageNumber()const;
@@ -48,9 +48,9 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
int totalRecordCount_;
std::string hotKeys_;
std::vector<std::string> hotKeys_;
std::vector<std::string> bigKeys_;
int pageRecordCount_;
std::string bigKeys_;
int pageSize_;
int pageNumber_;

View File

@@ -54,6 +54,7 @@ namespace AlibabaCloud
std::string networkType;
long bandwidth;
std::string packageType;
bool instanceReleaseProtection;
std::string instanceType;
std::string availabilityValue;
std::vector<DBInstanceAttribute::Tag> tags;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
void setResourceGroupId(const std::string& resourceGroupId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getPageSize()const;
@@ -71,6 +73,7 @@ namespace AlibabaCloud
std::string startTime_;
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
int pageSize_;
std::string roleType_;

View File

@@ -37,8 +37,8 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPageNumber()const;
void setPageNumber(const std::string& pageNumber);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
@@ -53,8 +53,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getMaxRecordsPerPage()const;
void setMaxRecordsPerPage(const std::string& maxRecordsPerPage);
int getMaxRecordsPerPage()const;
void setMaxRecordsPerPage(int maxRecordsPerPage);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
long getOwnerId()const;
@@ -66,7 +66,7 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string pageNumber_;
int pageNumber_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;
@@ -74,7 +74,7 @@ namespace AlibabaCloud
std::string instanceStatus_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string maxRecordsPerPage_;
int maxRecordsPerPage_;
std::string clusterId_;
long ownerId_;
std::string instanceIds_;

View File

@@ -37,8 +37,8 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPageNumber()const;
void setPageNumber(const std::string& pageNumber);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
@@ -51,8 +51,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getMaxRecordsPerPage()const;
void setMaxRecordsPerPage(const std::string& maxRecordsPerPage);
int getMaxRecordsPerPage()const;
void setMaxRecordsPerPage(int maxRecordsPerPage);
std::string getClusterId()const;
void setClusterId(const std::string& clusterId);
long getOwnerId()const;
@@ -62,14 +62,14 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string pageNumber_;
int pageNumber_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;
std::string engine_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string maxRecordsPerPage_;
int maxRecordsPerPage_;
std::string clusterId_;
long ownerId_;
std::string zoneId_;

View File

@@ -41,6 +41,10 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getProduct()const;
void setProduct(const std::string& product);
bool getInstanceReleaseProtection()const;
void setInstanceReleaseProtection(bool instanceReleaseProtection);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
@@ -53,17 +57,22 @@ namespace AlibabaCloud
void setInstanceId(const std::string& instanceId);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
std::string getCategory()const;
void setCategory(const std::string& category);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string product_;
bool instanceReleaseProtection_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string newPassword_;
std::string instanceId_;
std::string instanceName_;
std::string category_;
};
}

View File

@@ -39,6 +39,12 @@ void DescribeCacheAnalysisReportResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHotKeys = value["HotKeys"]["HotKeys"];
for (const auto &item : allHotKeys)
hotKeys_.push_back(item.asString());
auto allBigKeys = value["BigKeys"]["BigKeys"];
for (const auto &item : allBigKeys)
bigKeys_.push_back(item.asString());
if(!value["TotalRecordCount"].isNull())
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
if(!value["PageSize"].isNull())
@@ -47,10 +53,6 @@ void DescribeCacheAnalysisReportResult::parse(const std::string &payload)
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageRecordCount"].isNull())
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
if(!value["HotKeys"].isNull())
hotKeys_ = value["HotKeys"].asString();
if(!value["BigKeys"].isNull())
bigKeys_ = value["BigKeys"].asString();
}
@@ -59,21 +61,21 @@ int DescribeCacheAnalysisReportResult::getTotalRecordCount()const
return totalRecordCount_;
}
std::string DescribeCacheAnalysisReportResult::getHotKeys()const
std::vector<std::string> DescribeCacheAnalysisReportResult::getHotKeys()const
{
return hotKeys_;
}
std::vector<std::string> DescribeCacheAnalysisReportResult::getBigKeys()const
{
return bigKeys_;
}
int DescribeCacheAnalysisReportResult::getPageRecordCount()const
{
return pageRecordCount_;
}
std::string DescribeCacheAnalysisReportResult::getBigKeys()const
{
return bigKeys_;
}
int DescribeCacheAnalysisReportResult::getPageSize()const
{
return pageSize_;

View File

@@ -119,6 +119,8 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload)
instancesObject.replicationMode = valueInstancesDBInstanceAttribute["ReplicationMode"].asString();
if(!valueInstancesDBInstanceAttribute["VpcCloudInstanceId"].isNull())
instancesObject.vpcCloudInstanceId = valueInstancesDBInstanceAttribute["VpcCloudInstanceId"].asString();
if(!valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].isNull())
instancesObject.instanceReleaseProtection = valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].asString() == "true";
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
for (auto allInstancesNodeTagsTag : allTagsNode)
{

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