Compare commits
26 Commits
ARMS-patch
...
EHPC-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e8da023b8 | ||
|
|
34b35e8f02 | ||
|
|
3387ef3a68 | ||
|
|
b1f19958a7 | ||
|
|
c5062df7f5 | ||
|
|
f9b117f5a6 | ||
|
|
2a6631ce12 | ||
|
|
639137bd27 | ||
|
|
8a601bc5ae | ||
|
|
0a08e77127 | ||
|
|
46971a81db | ||
|
|
5bde791941 | ||
|
|
0793ffd5d4 | ||
|
|
92791badbf | ||
|
|
fbd8bebfed | ||
|
|
15efd0abf3 | ||
|
|
ec2fdb4ecb | ||
|
|
505b8e2062 | ||
|
|
55c2e91e9f | ||
|
|
e70f8f2d10 | ||
|
|
196b891ec3 | ||
|
|
58b398b978 | ||
|
|
13693fecae | ||
|
|
a4f63bc75f | ||
|
|
6dd27ba3df | ||
|
|
cf63bd74d6 |
80
CHANGELOG
80
CHANGELOG
@@ -1,3 +1,83 @@
|
||||
2020-12-29 Version: patch
|
||||
- ListNodesNoPaging return with instance type.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Release InterpolateVideoFrame ToneSdrVideo ConvertHdrVideo.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Release GenRealPersonVerificationToken GetRealPersonVerificationResult.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Add CommodityCode For QueryOrderAPI.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Add some console API operations.
|
||||
|
||||
2020-12-25 Version: patch
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
2020-12-25 Version: patch
|
||||
- Supported for weboffice edit.
|
||||
|
||||
2020-12-24 Version: patch
|
||||
- Modify ConfigureBackupPlan.
|
||||
|
||||
2020-12-24 Version: patch
|
||||
- Update Open API.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- CDRS First edition.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Add 2019 openapi.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Release DetectPedestrianIntrusion.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Create Lindorm Open api.
|
||||
|
||||
2020-12-23 Version: patch
|
||||
- Create TSDB Open api.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Minor chagnes.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Update SegmentAnimal SegmentCommonImage.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Support SLB latest OpenAPIs.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Release InterpolateVideoFrame ToneSdrVideo ConvertHdrVideo.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Release InterpolateVideoFrame.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Release DetectRibFracture.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Minor chagnes.
|
||||
|
||||
2020-12-22 Version: patch
|
||||
- Generated 2020-05-18 for `dataworks-public`.
|
||||
|
||||
2020-12-21 Version: patch
|
||||
- Support Device of LaunchConfiguration_DataDisk.
|
||||
|
||||
2020-12-21 Version: patch
|
||||
- Support DescribeDatabases for page query.
|
||||
- Support DescribeAccounts for page query.
|
||||
|
||||
2020-12-18 Version: patch
|
||||
- Support ListRepositories, ListOrganizations, GetUserInfo, ListRepositoryWebhook, DeleteRepositoryWebhook api.
|
||||
- AddWebhook api support SecretToken.
|
||||
|
||||
2020-12-18 Version: patch
|
||||
- Add GetAgentDownloadUrl api.
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
||||
@@ -190,6 +192,8 @@ set(bssopenapi_src
|
||||
src/model/QueryAccountBalanceResult.cc
|
||||
src/model/QueryAccountBillRequest.cc
|
||||
src/model/QueryAccountBillResult.cc
|
||||
src/model/QueryAccountTransactionDetailsRequest.cc
|
||||
src/model/QueryAccountTransactionDetailsResult.cc
|
||||
src/model/QueryAccountTransactionsRequest.cc
|
||||
src/model/QueryAccountTransactionsResult.cc
|
||||
src/model/QueryAvailableInstancesRequest.cc
|
||||
|
||||
@@ -70,6 +70,8 @@
|
||||
#include "model/QueryAccountBalanceResult.h"
|
||||
#include "model/QueryAccountBillRequest.h"
|
||||
#include "model/QueryAccountBillResult.h"
|
||||
#include "model/QueryAccountTransactionDetailsRequest.h"
|
||||
#include "model/QueryAccountTransactionDetailsResult.h"
|
||||
#include "model/QueryAccountTransactionsRequest.h"
|
||||
#include "model/QueryAccountTransactionsResult.h"
|
||||
#include "model/QueryAvailableInstancesRequest.h"
|
||||
@@ -221,6 +223,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryAccountBillResult> QueryAccountBillOutcome;
|
||||
typedef std::future<QueryAccountBillOutcome> QueryAccountBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBillRequest&, const QueryAccountBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountTransactionDetailsResult> QueryAccountTransactionDetailsOutcome;
|
||||
typedef std::future<QueryAccountTransactionDetailsOutcome> QueryAccountTransactionDetailsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionDetailsRequest&, const QueryAccountTransactionDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountTransactionsResult> QueryAccountTransactionsOutcome;
|
||||
typedef std::future<QueryAccountTransactionsOutcome> QueryAccountTransactionsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionsRequest&, const QueryAccountTransactionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionsAsyncHandler;
|
||||
@@ -403,6 +408,9 @@ namespace AlibabaCloud
|
||||
QueryAccountBillOutcome queryAccountBill(const Model::QueryAccountBillRequest &request)const;
|
||||
void queryAccountBillAsync(const Model::QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBillOutcomeCallable queryAccountBillCallable(const Model::QueryAccountBillRequest& request) const;
|
||||
QueryAccountTransactionDetailsOutcome queryAccountTransactionDetails(const Model::QueryAccountTransactionDetailsRequest &request)const;
|
||||
void queryAccountTransactionDetailsAsync(const Model::QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountTransactionDetailsOutcomeCallable queryAccountTransactionDetailsCallable(const Model::QueryAccountTransactionDetailsRequest& request) const;
|
||||
QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const;
|
||||
void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const;
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
std::string apportionCode;
|
||||
long resourceUserId;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
std::string unitName;
|
||||
};
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
|
||||
@@ -39,23 +39,24 @@ namespace AlibabaCloud
|
||||
std::string afterTaxAmount;
|
||||
std::string subOrderId;
|
||||
std::string config;
|
||||
std::string paymentTime;
|
||||
std::string tax;
|
||||
std::string paymentCurrency;
|
||||
std::string _operator;
|
||||
std::string tax;
|
||||
std::string paymentTime;
|
||||
std::string paymentCurrency;
|
||||
std::string usageEndTime;
|
||||
std::string subscriptionType;
|
||||
std::string pretaxGrossAmount;
|
||||
std::string orderType;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string usageStartTime;
|
||||
std::string originalConfig;
|
||||
std::string paymentStatus;
|
||||
std::string productCode;
|
||||
std::string createTime;
|
||||
std::string productType;
|
||||
std::string quantity;
|
||||
std::string relatedOrderId;
|
||||
std::string quantity;
|
||||
std::string orderId;
|
||||
std::string pretaxAmount;
|
||||
std::string orderSubType;
|
||||
@@ -64,8 +65,8 @@ namespace AlibabaCloud
|
||||
std::string pretaxAmountLocal;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
int pageNum;
|
||||
std::vector<Order> orderList;
|
||||
std::string hostName;
|
||||
};
|
||||
|
||||
@@ -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_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryAccountTransactionDetailsRequest();
|
||||
~QueryAccountTransactionDetailsRequest();
|
||||
|
||||
std::string getTransactionType()const;
|
||||
void setTransactionType(const std::string& transactionType);
|
||||
std::string getCreateTimeEnd()const;
|
||||
void setCreateTimeEnd(const std::string& createTimeEnd);
|
||||
std::string getRecordID()const;
|
||||
void setRecordID(const std::string& recordID);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getTransactionChannel()const;
|
||||
void setTransactionChannel(const std::string& transactionChannel);
|
||||
std::string getTransactionChannelSN()const;
|
||||
void setTransactionChannelSN(const std::string& transactionChannelSN);
|
||||
std::string getCreateTimeStart()const;
|
||||
void setCreateTimeStart(const std::string& createTimeStart);
|
||||
std::string getTransactionNumber()const;
|
||||
void setTransactionNumber(const std::string& transactionNumber);
|
||||
|
||||
private:
|
||||
std::string transactionType_;
|
||||
std::string createTimeEnd_;
|
||||
std::string recordID_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string transactionChannel_;
|
||||
std::string transactionChannelSN_;
|
||||
std::string createTimeStart_;
|
||||
std::string transactionNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AccountTransactionsListItem
|
||||
{
|
||||
std::string transactionType;
|
||||
std::string billingCycle;
|
||||
std::string transactionNumber;
|
||||
std::string amount;
|
||||
std::string transactionAccount;
|
||||
std::string transactionTime;
|
||||
std::string transactionChannelSN;
|
||||
std::string remarks;
|
||||
std::string fundType;
|
||||
std::string transactionFlow;
|
||||
std::string recordID;
|
||||
std::string balance;
|
||||
std::string transactionChannel;
|
||||
};
|
||||
int totalCount;
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<AccountTransactionsListItem> accountTransactionsList;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
QueryAccountTransactionDetailsResult();
|
||||
explicit QueryAccountTransactionDetailsResult(const std::string &payload);
|
||||
~QueryAccountTransactionDetailsResult();
|
||||
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_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||
@@ -37,15 +37,15 @@ namespace AlibabaCloud
|
||||
struct CostUnit
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
std::string unitName;
|
||||
};
|
||||
struct CostUnitStatisInfo
|
||||
{
|
||||
long subUnitCount;
|
||||
long totalResourceCount;
|
||||
long totalResourceGroupCount;
|
||||
long totalResourceCount;
|
||||
long userCount;
|
||||
long resourceCount;
|
||||
long totalUserCount;
|
||||
@@ -64,12 +64,12 @@ namespace AlibabaCloud
|
||||
std::string commodityCode;
|
||||
std::string resourceStatus;
|
||||
std::string resourceUserName;
|
||||
std::string commodityName;
|
||||
std::string resourceGroup;
|
||||
std::string commodityName;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
int pageNum;
|
||||
CostUnit costUnit;
|
||||
std::vector<ResourceInstanceList> resourceInstanceDtoList;
|
||||
CostUnitStatisInfo costUnitStatisInfo;
|
||||
|
||||
@@ -37,13 +37,13 @@ namespace AlibabaCloud
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
std::string unitName;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
int pageNum;
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
};
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string orderType;
|
||||
std::string pretaxAmount;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string paymentStatus;
|
||||
std::string pretaxAmountLocal;
|
||||
};
|
||||
|
||||
@@ -915,6 +915,42 @@ BssOpenApiClient::QueryAccountBillOutcomeCallable BssOpenApiClient::queryAccount
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionDetailsOutcome BssOpenApiClient::queryAccountTransactionDetails(const QueryAccountTransactionDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccountTransactionDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccountTransactionDetailsOutcome(QueryAccountTransactionDetailsResult(outcome.result()));
|
||||
else
|
||||
return QueryAccountTransactionDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAccountTransactionDetailsAsync(const QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccountTransactionDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionDetailsOutcomeCallable BssOpenApiClient::queryAccountTransactionDetailsCallable(const QueryAccountTransactionDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountTransactionDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccountTransactionDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -40,8 +40,8 @@ void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<
|
||||
std::string resourceInstanceListObjStr = "ResourceInstanceList." + std::to_string(dep1 + 1);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId);
|
||||
setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
||||
setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void AllocateCostUnitResourceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["IsSuccess"].isNull())
|
||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||
if(!dataNode["ToUnitUserId"].isNull())
|
||||
data_.toUnitUserId = std::stol(dataNode["ToUnitUserId"].asString());
|
||||
if(!dataNode["ToUnitId"].isNull())
|
||||
data_.toUnitId = std::stol(dataNode["ToUnitId"].asString());
|
||||
if(!dataNode["IsSuccess"].isNull())
|
||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||
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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -44,22 +44,22 @@ void CreateCostUnitResult::parse(const std::string &payload)
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void DeleteCostUnitResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OwnerUid"].isNull())
|
||||
data_.ownerUid = std::stol(dataNode["OwnerUid"].asString());
|
||||
if(!dataNode["UnitId"].isNull())
|
||||
data_.unitId = std::stol(dataNode["UnitId"].asString());
|
||||
if(!dataNode["IsSuccess"].isNull())
|
||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!dataNode["UnitId"].isNull())
|
||||
data_.unitId = std::stol(dataNode["UnitId"].asString());
|
||||
if(!dataNode["OwnerUid"].isNull())
|
||||
data_.ownerUid = std::stol(dataNode["OwnerUid"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -67,18 +67,18 @@ void DescribePricingModuleResult::parse(const std::string &payload)
|
||||
attributeObject.name = dataNodeAttributeListAttribute["Name"].asString();
|
||||
if(!dataNodeAttributeListAttribute["Unit"].isNull())
|
||||
attributeObject.unit = dataNodeAttributeListAttribute["Unit"].asString();
|
||||
auto allValuesNode = allAttributeListNode["Values"]["AttributeValue"];
|
||||
for (auto allAttributeListNodeValuesAttributeValue : allValuesNode)
|
||||
auto allValuesNode = dataNodeAttributeListAttribute["Values"]["AttributeValue"];
|
||||
for (auto dataNodeAttributeListAttributeValuesAttributeValue : allValuesNode)
|
||||
{
|
||||
Data::Attribute::AttributeValue valuesObject;
|
||||
if(!allAttributeListNodeValuesAttributeValue["Type"].isNull())
|
||||
valuesObject.type = allAttributeListNodeValuesAttributeValue["Type"].asString();
|
||||
if(!allAttributeListNodeValuesAttributeValue["Name"].isNull())
|
||||
valuesObject.name = allAttributeListNodeValuesAttributeValue["Name"].asString();
|
||||
if(!allAttributeListNodeValuesAttributeValue["Value"].isNull())
|
||||
valuesObject.value = allAttributeListNodeValuesAttributeValue["Value"].asString();
|
||||
if(!allAttributeListNodeValuesAttributeValue["Remark"].isNull())
|
||||
valuesObject.remark = allAttributeListNodeValuesAttributeValue["Remark"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Type"].isNull())
|
||||
valuesObject.type = dataNodeAttributeListAttributeValuesAttributeValue["Type"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Name"].isNull())
|
||||
valuesObject.name = dataNodeAttributeListAttributeValuesAttributeValue["Name"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Value"].isNull())
|
||||
valuesObject.value = dataNodeAttributeListAttributeValuesAttributeValue["Value"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Remark"].isNull())
|
||||
valuesObject.remark = dataNodeAttributeListAttributeValuesAttributeValue["Remark"].asString();
|
||||
attributeObject.values.push_back(valuesObject);
|
||||
}
|
||||
data_.attributeList.push_back(attributeObject);
|
||||
|
||||
@@ -50,42 +50,42 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload)
|
||||
resourcePackageObject.productType = dataNodeResourcePackagesResourcePackage["ProductType"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackage["Name"].isNull())
|
||||
resourcePackageObject.name = dataNodeResourcePackagesResourcePackage["Name"].asString();
|
||||
auto allPackageTypesNode = allResourcePackagesNode["PackageTypes"]["PackageType"];
|
||||
for (auto allResourcePackagesNodePackageTypesPackageType : allPackageTypesNode)
|
||||
auto allPackageTypesNode = dataNodeResourcePackagesResourcePackage["PackageTypes"]["PackageType"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageType : allPackageTypesNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType packageTypesObject;
|
||||
if(!allResourcePackagesNodePackageTypesPackageType["Name"].isNull())
|
||||
packageTypesObject.name = allResourcePackagesNodePackageTypesPackageType["Name"].asString();
|
||||
if(!allResourcePackagesNodePackageTypesPackageType["Code"].isNull())
|
||||
packageTypesObject.code = allResourcePackagesNodePackageTypesPackageType["Code"].asString();
|
||||
auto allPropertiesNode = allPackageTypesNode["Properties"]["Property"];
|
||||
for (auto allPackageTypesNodePropertiesProperty : allPropertiesNode)
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].isNull())
|
||||
packageTypesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].isNull())
|
||||
packageTypesObject.code = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].asString();
|
||||
auto allPropertiesNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Properties"]["Property"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty : allPropertiesNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType::Property propertiesObject;
|
||||
if(!allPackageTypesNodePropertiesProperty["Name"].isNull())
|
||||
propertiesObject.name = allPackageTypesNodePropertiesProperty["Name"].asString();
|
||||
if(!allPackageTypesNodePropertiesProperty["Value"].isNull())
|
||||
propertiesObject.value = allPackageTypesNodePropertiesProperty["Value"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Name"].isNull())
|
||||
propertiesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Value"].isNull())
|
||||
propertiesObject.value = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Value"].asString();
|
||||
packageTypesObject.properties.push_back(propertiesObject);
|
||||
}
|
||||
auto allSpecificationsNode = allPackageTypesNode["Specifications"]["Specification"];
|
||||
for (auto allPackageTypesNodeSpecificationsSpecification : allSpecificationsNode)
|
||||
auto allSpecificationsNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Specifications"]["Specification"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification : allSpecificationsNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType::Specification specificationsObject;
|
||||
if(!allPackageTypesNodeSpecificationsSpecification["Name"].isNull())
|
||||
specificationsObject.name = allPackageTypesNodeSpecificationsSpecification["Name"].asString();
|
||||
if(!allPackageTypesNodeSpecificationsSpecification["Value"].isNull())
|
||||
specificationsObject.value = allPackageTypesNodeSpecificationsSpecification["Value"].asString();
|
||||
auto allAvailableDurationsNode = allSpecificationsNode["AvailableDurations"]["AvailableDuration"];
|
||||
for (auto allSpecificationsNodeAvailableDurationsAvailableDuration : allAvailableDurationsNode)
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Name"].isNull())
|
||||
specificationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Value"].isNull())
|
||||
specificationsObject.value = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Value"].asString();
|
||||
auto allAvailableDurationsNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["AvailableDurations"]["AvailableDuration"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration : allAvailableDurationsNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType::Specification::AvailableDuration availableDurationsObject;
|
||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Name"].isNull())
|
||||
availableDurationsObject.name = allSpecificationsNodeAvailableDurationsAvailableDuration["Name"].asString();
|
||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Value"].isNull())
|
||||
availableDurationsObject.value = std::stoi(allSpecificationsNodeAvailableDurationsAvailableDuration["Value"].asString());
|
||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Unit"].isNull())
|
||||
availableDurationsObject.unit = allSpecificationsNodeAvailableDurationsAvailableDuration["Unit"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].isNull())
|
||||
availableDurationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].isNull())
|
||||
availableDurationsObject.value = std::stoi(dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].asString());
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].isNull())
|
||||
availableDurationsObject.unit = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].asString();
|
||||
specificationsObject.availableDurations.push_back(availableDurationsObject);
|
||||
}
|
||||
packageTypesObject.specifications.push_back(specificationsObject);
|
||||
|
||||
@@ -40,78 +40,80 @@ void GetOrderDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostName"].isNull())
|
||||
data_.hostName = dataNode["HostName"].asString();
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["HostName"].isNull())
|
||||
data_.hostName = dataNode["HostName"].asString();
|
||||
auto allOrderListNode = dataNode["OrderList"]["Order"];
|
||||
for (auto dataNodeOrderListOrder : allOrderListNode)
|
||||
{
|
||||
Data::Order orderObject;
|
||||
if(!dataNodeOrderListOrder["OrderId"].isNull())
|
||||
orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["SubOrderId"].isNull())
|
||||
orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductCode"].isNull())
|
||||
orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductType"].isNull())
|
||||
orderObject.productType = dataNodeOrderListOrder["ProductType"].asString();
|
||||
if(!dataNodeOrderListOrder["SubscriptionType"].isNull())
|
||||
orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderType"].isNull())
|
||||
orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString();
|
||||
if(!dataNodeOrderListOrder["CreateTime"].isNull())
|
||||
orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentTime"].isNull())
|
||||
orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentStatus"].isNull())
|
||||
orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString();
|
||||
if(!dataNodeOrderListOrder["Region"].isNull())
|
||||
orderObject.region = dataNodeOrderListOrder["Region"].asString();
|
||||
if(!dataNodeOrderListOrder["Config"].isNull())
|
||||
orderObject.config = dataNodeOrderListOrder["Config"].asString();
|
||||
if(!dataNodeOrderListOrder["Quantity"].isNull())
|
||||
orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageStartTime"].isNull())
|
||||
orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageEndTime"].isNull())
|
||||
orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString();
|
||||
if(!dataNodeOrderListOrder["InstanceIDs"].isNull())
|
||||
orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull())
|
||||
orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmount"].isNull())
|
||||
orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["Currency"].isNull())
|
||||
orderObject.currency = dataNodeOrderListOrder["Currency"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull())
|
||||
orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString();
|
||||
if(!dataNodeOrderListOrder["Tax"].isNull())
|
||||
orderObject.tax = dataNodeOrderListOrder["Tax"].asString();
|
||||
if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull())
|
||||
orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentCurrency"].isNull())
|
||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||
if(!dataNodeOrderListOrder["Operator"].isNull())
|
||||
orderObject._operator = dataNodeOrderListOrder["Operator"].asString();
|
||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderSubType"].isNull())
|
||||
orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString();
|
||||
if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull())
|
||||
orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["SubOrderId"].isNull())
|
||||
orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["Config"].isNull())
|
||||
orderObject.config = dataNodeOrderListOrder["Config"].asString();
|
||||
if(!dataNodeOrderListOrder["Tax"].isNull())
|
||||
orderObject.tax = dataNodeOrderListOrder["Tax"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentTime"].isNull())
|
||||
orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentCurrency"].isNull())
|
||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageEndTime"].isNull())
|
||||
orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString();
|
||||
if(!dataNodeOrderListOrder["SubscriptionType"].isNull())
|
||||
orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull())
|
||||
orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderType"].isNull())
|
||||
orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString();
|
||||
if(!dataNodeOrderListOrder["Currency"].isNull())
|
||||
orderObject.currency = dataNodeOrderListOrder["Currency"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageStartTime"].isNull())
|
||||
orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString();
|
||||
if(!dataNodeOrderListOrder["OriginalConfig"].isNull())
|
||||
orderObject.originalConfig = dataNodeOrderListOrder["OriginalConfig"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentStatus"].isNull())
|
||||
orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductCode"].isNull())
|
||||
orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString();
|
||||
if(!dataNodeOrderListOrder["CreateTime"].isNull())
|
||||
orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductType"].isNull())
|
||||
orderObject.productType = dataNodeOrderListOrder["ProductType"].asString();
|
||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["Quantity"].isNull())
|
||||
orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderId"].isNull())
|
||||
orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmount"].isNull())
|
||||
orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderSubType"].isNull())
|
||||
orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString();
|
||||
if(!dataNodeOrderListOrder["Region"].isNull())
|
||||
orderObject.region = dataNodeOrderListOrder["Region"].asString();
|
||||
if(!dataNodeOrderListOrder["InstanceIDs"].isNull())
|
||||
orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull())
|
||||
orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString();
|
||||
if(!dataNodeOrderListOrder["CommodityCode"].isNull())
|
||||
orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString();
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void ModifyCostUnitResult::parse(const std::string &payload)
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["OwnerUid"].isNull())
|
||||
dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString());
|
||||
if(!valueDataDataItem["UnitId"].isNull())
|
||||
dataObject.unitId = std::stol(valueDataDataItem["UnitId"].asString());
|
||||
if(!valueDataDataItem["IsSuccess"].isNull())
|
||||
dataObject.isSuccess = valueDataDataItem["IsSuccess"].asString() == "true";
|
||||
if(!valueDataDataItem["UnitId"].isNull())
|
||||
dataObject.unitId = std::stol(valueDataDataItem["UnitId"].asString());
|
||||
if(!valueDataDataItem["OwnerUid"].isNull())
|
||||
dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
128
bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc
Normal file
128
bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionDetailsRequest;
|
||||
|
||||
QueryAccountTransactionDetailsRequest::QueryAccountTransactionDetailsRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactionDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccountTransactionDetailsRequest::~QueryAccountTransactionDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionType()const
|
||||
{
|
||||
return transactionType_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionType(const std::string& transactionType)
|
||||
{
|
||||
transactionType_ = transactionType;
|
||||
setParameter("TransactionType", transactionType);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getCreateTimeEnd()const
|
||||
{
|
||||
return createTimeEnd_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setCreateTimeEnd(const std::string& createTimeEnd)
|
||||
{
|
||||
createTimeEnd_ = createTimeEnd;
|
||||
setParameter("CreateTimeEnd", createTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getRecordID()const
|
||||
{
|
||||
return recordID_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setRecordID(const std::string& recordID)
|
||||
{
|
||||
recordID_ = recordID;
|
||||
setParameter("RecordID", recordID);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int QueryAccountTransactionDetailsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionChannel()const
|
||||
{
|
||||
return transactionChannel_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionChannel(const std::string& transactionChannel)
|
||||
{
|
||||
transactionChannel_ = transactionChannel;
|
||||
setParameter("TransactionChannel", transactionChannel);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionChannelSN()const
|
||||
{
|
||||
return transactionChannelSN_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionChannelSN(const std::string& transactionChannelSN)
|
||||
{
|
||||
transactionChannelSN_ = transactionChannelSN;
|
||||
setParameter("TransactionChannelSN", transactionChannelSN);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getCreateTimeStart()const
|
||||
{
|
||||
return createTimeStart_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setCreateTimeStart(const std::string& createTimeStart)
|
||||
{
|
||||
createTimeStart_ = createTimeStart;
|
||||
setParameter("CreateTimeStart", createTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionNumber()const
|
||||
{
|
||||
return transactionNumber_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionNumber(const std::string& transactionNumber)
|
||||
{
|
||||
transactionNumber_ = transactionNumber;
|
||||
setParameter("TransactionNumber", transactionNumber);
|
||||
}
|
||||
|
||||
111
bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc
Normal file
111
bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryAccountTransactionDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryAccountTransactionDetailsResult::QueryAccountTransactionDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccountTransactionDetailsResult::QueryAccountTransactionDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccountTransactionDetailsResult::~QueryAccountTransactionDetailsResult()
|
||||
{}
|
||||
|
||||
void QueryAccountTransactionDetailsResult::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["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
auto allAccountTransactionsListNode = dataNode["AccountTransactionsList"]["AccountTransactionsListItem"];
|
||||
for (auto dataNodeAccountTransactionsListAccountTransactionsListItem : allAccountTransactionsListNode)
|
||||
{
|
||||
Data::AccountTransactionsListItem accountTransactionsListItemObject;
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].isNull())
|
||||
accountTransactionsListItemObject.transactionNumber = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].isNull())
|
||||
accountTransactionsListItemObject.transactionTime = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].isNull())
|
||||
accountTransactionsListItemObject.transactionFlow = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].isNull())
|
||||
accountTransactionsListItemObject.transactionType = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].isNull())
|
||||
accountTransactionsListItemObject.transactionChannel = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].isNull())
|
||||
accountTransactionsListItemObject.transactionChannelSN = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].isNull())
|
||||
accountTransactionsListItemObject.fundType = dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].isNull())
|
||||
accountTransactionsListItemObject.recordID = dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].isNull())
|
||||
accountTransactionsListItemObject.remarks = dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].isNull())
|
||||
accountTransactionsListItemObject.billingCycle = dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].isNull())
|
||||
accountTransactionsListItemObject.amount = dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].isNull())
|
||||
accountTransactionsListItemObject.balance = dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].isNull())
|
||||
accountTransactionsListItemObject.transactionAccount = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].asString();
|
||||
data_.accountTransactionsList.push_back(accountTransactionsListItemObject);
|
||||
}
|
||||
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 QueryAccountTransactionDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAccountTransactionDetailsResult::Data QueryAccountTransactionDetailsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAccountTransactionDetailsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -40,74 +40,74 @@ void QueryCostUnitResourceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
auto allResourceInstanceDtoListNode = dataNode["ResourceInstanceDtoList"]["ResourceInstanceList"];
|
||||
for (auto dataNodeResourceInstanceDtoListResourceInstanceList : allResourceInstanceDtoListNode)
|
||||
{
|
||||
Data::ResourceInstanceList resourceInstanceListObject;
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].isNull())
|
||||
resourceInstanceListObject.resourceUserId = std::stol(dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].asString());
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].isNull())
|
||||
resourceInstanceListObject.resourceTag = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].isNull())
|
||||
resourceInstanceListObject.relatedResources = dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].isNull())
|
||||
resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].isNull())
|
||||
resourceInstanceListObject.resourceId = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].isNull())
|
||||
resourceInstanceListObject.commodityCode = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].isNull())
|
||||
resourceInstanceListObject.resourceUserName = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].isNull())
|
||||
resourceInstanceListObject.commodityName = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].isNull())
|
||||
resourceInstanceListObject.resourceGroup = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].isNull())
|
||||
resourceInstanceListObject.resourceTag = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].isNull())
|
||||
resourceInstanceListObject.resourceNick = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].isNull())
|
||||
resourceInstanceListObject.resourceType = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].isNull())
|
||||
resourceInstanceListObject.resourceStatus = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].isNull())
|
||||
resourceInstanceListObject.relatedResources = dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].isNull())
|
||||
resourceInstanceListObject.resourceType = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].isNull())
|
||||
resourceInstanceListObject.resourceUserName = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].isNull())
|
||||
resourceInstanceListObject.resourceNick = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].isNull())
|
||||
resourceInstanceListObject.resourceGroup = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].isNull())
|
||||
resourceInstanceListObject.commodityName = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionCode"].isNull())
|
||||
resourceInstanceListObject.apportionCode = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionCode"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].isNull())
|
||||
resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString();
|
||||
data_.resourceInstanceDtoList.push_back(resourceInstanceListObject);
|
||||
}
|
||||
auto costUnitNode = dataNode["CostUnit"];
|
||||
if(!costUnitNode["OwnerUid"].isNull())
|
||||
data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString());
|
||||
if(!costUnitNode["ParentUnitId"].isNull())
|
||||
data_.costUnit.parentUnitId = std::stol(costUnitNode["ParentUnitId"].asString());
|
||||
if(!costUnitNode["UnitId"].isNull())
|
||||
data_.costUnit.unitId = std::stol(costUnitNode["UnitId"].asString());
|
||||
if(!costUnitNode["ParentUnitId"].isNull())
|
||||
data_.costUnit.parentUnitId = std::stol(costUnitNode["ParentUnitId"].asString());
|
||||
if(!costUnitNode["OwnerUid"].isNull())
|
||||
data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString());
|
||||
if(!costUnitNode["UnitName"].isNull())
|
||||
data_.costUnit.unitName = costUnitNode["UnitName"].asString();
|
||||
auto costUnitStatisInfoNode = dataNode["CostUnitStatisInfo"];
|
||||
if(!costUnitStatisInfoNode["ResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceCount = std::stol(costUnitStatisInfoNode["ResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceGroupCount = std::stol(costUnitStatisInfoNode["ResourceGroupCount"].asString());
|
||||
if(!costUnitStatisInfoNode["SubUnitCount"].isNull())
|
||||
data_.costUnitStatisInfo.subUnitCount = std::stol(costUnitStatisInfoNode["SubUnitCount"].asString());
|
||||
if(!costUnitStatisInfoNode["UserCount"].isNull())
|
||||
data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceCount = std::stol(costUnitStatisInfoNode["TotalResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalUserCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalUserCount = std::stol(costUnitStatisInfoNode["TotalUserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceGroupCount = std::stol(costUnitStatisInfoNode["TotalResourceGroupCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!costUnitStatisInfoNode["TotalResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceCount = std::stol(costUnitStatisInfoNode["TotalResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["UserCount"].isNull())
|
||||
data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceCount = std::stol(costUnitStatisInfoNode["ResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalUserCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalUserCount = std::stol(costUnitStatisInfoNode["TotalUserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceGroupCount = std::stol(costUnitStatisInfoNode["ResourceGroupCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,32 @@ void QueryCostUnitResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
auto allCostUnitDtoListNode = dataNode["CostUnitDtoList"]["CostUnitDtoListItem"];
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,8 @@ void QueryOrdersResult::parse(const std::string &payload)
|
||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["CommodityCode"].isNull())
|
||||
orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString();
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -21,6 +21,10 @@ set(cdrs_public_header
|
||||
include/alibabacloud/cdrs/CDRSExport.h )
|
||||
|
||||
set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/BindDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/BindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/CreateProjectResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapAoisResult.h
|
||||
include/alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h
|
||||
@@ -76,10 +80,18 @@ set(cdrs_public_header_model
|
||||
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
||||
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
||||
include/alibabacloud/cdrs/model/SearchObjectResult.h )
|
||||
include/alibabacloud/cdrs/model/SearchObjectResult.h
|
||||
include/alibabacloud/cdrs/model/UnbindDeviceRequest.h
|
||||
include/alibabacloud/cdrs/model/UnbindDeviceResult.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectRequest.h
|
||||
include/alibabacloud/cdrs/model/UpdateProjectResult.h )
|
||||
|
||||
set(cdrs_src
|
||||
src/CDRSClient.cc
|
||||
src/model/BindDeviceRequest.cc
|
||||
src/model/BindDeviceResult.cc
|
||||
src/model/CreateProjectRequest.cc
|
||||
src/model/CreateProjectResult.cc
|
||||
src/model/ListCityMapAoisRequest.cc
|
||||
src/model/ListCityMapAoisResult.cc
|
||||
src/model/ListCityMapCameraResultsRequest.cc
|
||||
@@ -135,7 +147,11 @@ set(cdrs_src
|
||||
src/model/RecognizeImageRequest.cc
|
||||
src/model/RecognizeImageResult.cc
|
||||
src/model/SearchObjectRequest.cc
|
||||
src/model/SearchObjectResult.cc )
|
||||
src/model/SearchObjectResult.cc
|
||||
src/model/UnbindDeviceRequest.cc
|
||||
src/model/UnbindDeviceResult.cc
|
||||
src/model/UpdateProjectRequest.cc
|
||||
src/model/UpdateProjectResult.cc )
|
||||
|
||||
add_library(cdrs ${LIB_TYPE}
|
||||
${cdrs_public_header}
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CDRSExport.h"
|
||||
#include "model/BindDeviceRequest.h"
|
||||
#include "model/BindDeviceResult.h"
|
||||
#include "model/CreateProjectRequest.h"
|
||||
#include "model/CreateProjectResult.h"
|
||||
#include "model/ListCityMapAoisRequest.h"
|
||||
#include "model/ListCityMapAoisResult.h"
|
||||
#include "model/ListCityMapCameraResultsRequest.h"
|
||||
@@ -78,6 +82,10 @@
|
||||
#include "model/RecognizeImageResult.h"
|
||||
#include "model/SearchObjectRequest.h"
|
||||
#include "model/SearchObjectResult.h"
|
||||
#include "model/UnbindDeviceRequest.h"
|
||||
#include "model/UnbindDeviceResult.h"
|
||||
#include "model/UpdateProjectRequest.h"
|
||||
#include "model/UpdateProjectResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -87,6 +95,12 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CDRS_EXPORT CDRSClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::BindDeviceResult> BindDeviceOutcome;
|
||||
typedef std::future<BindDeviceOutcome> BindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::BindDeviceRequest&, const BindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
|
||||
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCityMapAoisResult> ListCityMapAoisOutcome;
|
||||
typedef std::future<ListCityMapAoisOutcome> ListCityMapAoisOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::ListCityMapAoisRequest&, const ListCityMapAoisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapAoisAsyncHandler;
|
||||
@@ -171,11 +185,23 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchObjectResult> SearchObjectOutcome;
|
||||
typedef std::future<SearchObjectOutcome> SearchObjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::SearchObjectRequest&, const SearchObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchObjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnbindDeviceResult> UnbindDeviceOutcome;
|
||||
typedef std::future<UnbindDeviceOutcome> UnbindDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UnbindDeviceRequest&, const UnbindDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProjectResult> UpdateProjectOutcome;
|
||||
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
|
||||
typedef std::function<void(const CDRSClient*, const Model::UpdateProjectRequest&, const UpdateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectAsyncHandler;
|
||||
|
||||
CDRSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CDRSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CDRSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CDRSClient();
|
||||
BindDeviceOutcome bindDevice(const Model::BindDeviceRequest &request)const;
|
||||
void bindDeviceAsync(const Model::BindDeviceRequest& request, const BindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindDeviceOutcomeCallable bindDeviceCallable(const Model::BindDeviceRequest& request) const;
|
||||
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
|
||||
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
|
||||
ListCityMapAoisOutcome listCityMapAois(const Model::ListCityMapAoisRequest &request)const;
|
||||
void listCityMapAoisAsync(const Model::ListCityMapAoisRequest& request, const ListCityMapAoisAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListCityMapAoisOutcomeCallable listCityMapAoisCallable(const Model::ListCityMapAoisRequest& request) const;
|
||||
@@ -260,6 +286,12 @@ namespace AlibabaCloud
|
||||
SearchObjectOutcome searchObject(const Model::SearchObjectRequest &request)const;
|
||||
void searchObjectAsync(const Model::SearchObjectRequest& request, const SearchObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchObjectOutcomeCallable searchObjectCallable(const Model::SearchObjectRequest& request) const;
|
||||
UnbindDeviceOutcome unbindDevice(const Model::UnbindDeviceRequest &request)const;
|
||||
void unbindDeviceAsync(const Model::UnbindDeviceRequest& request, const UnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnbindDeviceOutcomeCallable unbindDeviceCallable(const Model::UnbindDeviceRequest& request) const;
|
||||
UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const;
|
||||
void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
63
cdrs/include/alibabacloud/cdrs/model/BindDeviceRequest.h
Normal file
63
cdrs/include/alibabacloud/cdrs/model/BindDeviceRequest.h
Normal 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_CDRS_MODEL_BINDDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_BINDDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CDRS_EXPORT BindDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Devices
|
||||
{
|
||||
std::string corpId;
|
||||
std::string deviceId;
|
||||
};
|
||||
|
||||
public:
|
||||
BindDeviceRequest();
|
||||
~BindDeviceRequest();
|
||||
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::vector<Devices> getDevices()const;
|
||||
void setDevices(const std::vector<Devices>& devices);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::vector<Devices> devices_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_BINDDEVICEREQUEST_H_
|
||||
@@ -14,48 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_BINDDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_BINDDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT QueryUserPoliciesResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT BindDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PolicyDTO
|
||||
struct Datas
|
||||
{
|
||||
std::string gmtCreate;
|
||||
std::string action;
|
||||
std::string effect;
|
||||
std::string conditions;
|
||||
std::string name;
|
||||
std::string message;
|
||||
std::string deviceId;
|
||||
std::string code;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
QueryUserPoliciesResult();
|
||||
explicit QueryUserPoliciesResult(const std::string &payload);
|
||||
~QueryUserPoliciesResult();
|
||||
bool getPaging()const;
|
||||
std::vector<PolicyDTO> getData()const;
|
||||
BindDeviceResult();
|
||||
explicit BindDeviceResult(const std::string &payload);
|
||||
~BindDeviceResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Datas> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool paging_;
|
||||
std::vector<PolicyDTO> data_;
|
||||
std::string message_;
|
||||
std::vector<Datas> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_QUERYUSERPOLICIESRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_BINDDEVICERESULT_H_
|
||||
@@ -14,50 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CREATEALERTDINGDINGGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CREATEALERTDINGDINGGROUPREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CreateAlertDingDingGroupRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDRS_EXPORT CreateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAlertDingDingGroupRequest();
|
||||
~CreateAlertDingDingGroupRequest();
|
||||
CreateProjectRequest();
|
||||
~CreateProjectRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getIcon()const;
|
||||
void setIcon(const std::string& icon);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getWebHookUrl()const;
|
||||
void setWebHookUrl(const std::string& webHookUrl);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string clientToken_;
|
||||
std::string icon_;
|
||||
std::string description_;
|
||||
std::string accessKeyId_;
|
||||
std::string webHookUrl_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CREATEALERTDINGDINGGROUPREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTREQUEST_H_
|
||||
@@ -14,36 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT DeleteHostPoolResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT CreateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteHostPoolResult();
|
||||
explicit DeleteHostPoolResult(const std::string &payload);
|
||||
~DeleteHostPoolResult();
|
||||
CreateProjectResult();
|
||||
explicit CreateProjectResult(const std::string &payload);
|
||||
~CreateProjectResult();
|
||||
std::string getCorpId()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string corpId_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_DELETEHOSTPOOLRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_CREATEPROJECTRESULT_H_
|
||||
@@ -14,44 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT GetBackupInfoRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDRS_EXPORT UnbindDeviceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBackupInfoRequest();
|
||||
~GetBackupInfoRequest();
|
||||
UnbindDeviceRequest();
|
||||
~UnbindDeviceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getBackupId()const;
|
||||
void setBackupId(const std::string& backupId);
|
||||
std::string getDeviceIds()const;
|
||||
void setDeviceIds(const std::string& deviceIds);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string backupId_;
|
||||
std::string deviceIds_;
|
||||
std::string corpId_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_GETBACKUPINFOREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICEREQUEST_H_
|
||||
@@ -14,44 +14,49 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_LISTETLJOBTRIGGERENTITYRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_LISTETLJOBTRIGGERENTITYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICERESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ListETLJobTriggerEntityResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT UnbindDeviceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TriggerEntity
|
||||
struct Datas
|
||||
{
|
||||
std::string entityType;
|
||||
std::string id;
|
||||
std::string name;
|
||||
std::string message;
|
||||
std::string deviceId;
|
||||
std::string code;
|
||||
bool success;
|
||||
};
|
||||
|
||||
|
||||
ListETLJobTriggerEntityResult();
|
||||
explicit ListETLJobTriggerEntityResult(const std::string &payload);
|
||||
~ListETLJobTriggerEntityResult();
|
||||
std::vector<TriggerEntity> getTriggerEntityList()const;
|
||||
UnbindDeviceResult();
|
||||
explicit UnbindDeviceResult(const std::string &payload);
|
||||
~UnbindDeviceResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Datas> getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TriggerEntity> triggerEntityList_;
|
||||
std::string message_;
|
||||
std::vector<Datas> data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_LISTETLJOBTRIGGERENTITYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UNBINDDEVICERESULT_H_
|
||||
@@ -14,50 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ModifyHostPoolRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CDRS_EXPORT UpdateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyHostPoolRequest();
|
||||
~ModifyHostPoolRequest();
|
||||
UpdateProjectRequest();
|
||||
~UpdateProjectRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getCorpId()const;
|
||||
void setCorpId(const std::string& corpId);
|
||||
std::string getIcon()const;
|
||||
void setIcon(const std::string& icon);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
std::string get_NameSpace()const;
|
||||
void set_NameSpace(const std::string& _nameSpace);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string name_;
|
||||
std::string bizId_;
|
||||
std::string description_;
|
||||
std::string accessKeyId_;
|
||||
std::string corpId_;
|
||||
std::string icon_;
|
||||
std::string description_;
|
||||
std::string appName_;
|
||||
std::string _nameSpace_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_MODIFYHOSTPOOLREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTREQUEST_H_
|
||||
@@ -14,36 +14,40 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hitsdb/HitsdbExport.h>
|
||||
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hitsdb
|
||||
namespace CDRS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HITSDB_EXPORT RestartHiTSDBInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_CDRS_EXPORT UpdateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RestartHiTSDBInstanceResult();
|
||||
explicit RestartHiTSDBInstanceResult(const std::string &payload);
|
||||
~RestartHiTSDBInstanceResult();
|
||||
UpdateProjectResult();
|
||||
explicit UpdateProjectResult(const std::string &payload);
|
||||
~UpdateProjectResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CDRS_MODEL_UPDATEPROJECTRESULT_H_
|
||||
@@ -51,6 +51,78 @@ CDRSClient::CDRSClient(const std::string & accessKeyId, const std::string & acce
|
||||
CDRSClient::~CDRSClient()
|
||||
{}
|
||||
|
||||
CDRSClient::BindDeviceOutcome CDRSClient::bindDevice(const BindDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BindDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BindDeviceOutcome(BindDeviceResult(outcome.result()));
|
||||
else
|
||||
return BindDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::bindDeviceAsync(const BindDeviceRequest& request, const BindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, bindDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::BindDeviceOutcomeCallable CDRSClient::bindDeviceCallable(const BindDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BindDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->bindDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::CreateProjectOutcome CDRSClient::createProject(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateProjectOutcome(CreateProjectResult(outcome.result()));
|
||||
else
|
||||
return CreateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::CreateProjectOutcomeCallable CDRSClient::createProjectCallable(const CreateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::ListCityMapAoisOutcome CDRSClient::listCityMapAois(const ListCityMapAoisRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,3 +1131,75 @@ CDRSClient::SearchObjectOutcomeCallable CDRSClient::searchObjectCallable(const S
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UnbindDeviceOutcome CDRSClient::unbindDevice(const UnbindDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UnbindDeviceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UnbindDeviceOutcome(UnbindDeviceResult(outcome.result()));
|
||||
else
|
||||
return UnbindDeviceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::unbindDeviceAsync(const UnbindDeviceRequest& request, const UnbindDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, unbindDevice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::UnbindDeviceOutcomeCallable CDRSClient::unbindDeviceCallable(const UnbindDeviceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UnbindDeviceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->unbindDevice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CDRSClient::UpdateProjectOutcome CDRSClient::updateProject(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateProjectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateProjectOutcome(UpdateProjectResult(outcome.result()));
|
||||
else
|
||||
return UpdateProjectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CDRSClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateProject(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CDRSClient::UpdateProjectOutcomeCallable CDRSClient::updateProjectCallable(const UpdateProjectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateProjectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateProject(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
78
cdrs/src/model/BindDeviceRequest.cc
Normal file
78
cdrs/src/model/BindDeviceRequest.cc
Normal 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/cdrs/model/BindDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::BindDeviceRequest;
|
||||
|
||||
BindDeviceRequest::BindDeviceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "BindDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindDeviceRequest::~BindDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string BindDeviceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::vector<BindDeviceRequest::Devices> BindDeviceRequest::getDevices()const
|
||||
{
|
||||
return devices_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::setDevices(const std::vector<Devices>& devices)
|
||||
{
|
||||
devices_ = devices;
|
||||
for(int dep1 = 0; dep1!= devices.size(); dep1++) {
|
||||
auto devicesObj = devices.at(dep1);
|
||||
std::string devicesObjStr = "Devices." + std::to_string(dep1 + 1);
|
||||
setParameter(devicesObjStr + ".CorpId", devicesObj.corpId);
|
||||
setParameter(devicesObjStr + ".DeviceId", devicesObj.deviceId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string BindDeviceRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string BindDeviceRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void BindDeviceRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
77
cdrs/src/model/BindDeviceResult.cc
Normal file
77
cdrs/src/model/BindDeviceResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/BindDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
BindDeviceResult::BindDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindDeviceResult::BindDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindDeviceResult::~BindDeviceResult()
|
||||
{}
|
||||
|
||||
void BindDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Success"].isNull())
|
||||
dataObject.success = valueDataDatas["Success"].asString() == "true";
|
||||
if(!valueDataDatas["Code"].isNull())
|
||||
dataObject.code = valueDataDatas["Code"].asString();
|
||||
if(!valueDataDatas["Message"].isNull())
|
||||
dataObject.message = valueDataDatas["Message"].asString();
|
||||
if(!valueDataDatas["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDatas["DeviceId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<BindDeviceResult::Datas> BindDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BindDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/CreateProjectRequest.cc
Normal file
95
cdrs/src/model/CreateProjectRequest.cc
Normal 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/cdrs/model/CreateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::CreateProjectRequest;
|
||||
|
||||
CreateProjectRequest::CreateProjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "CreateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateProjectRequest::~CreateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProjectRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getIcon()const
|
||||
{
|
||||
return icon_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setIcon(const std::string& icon)
|
||||
{
|
||||
icon_ = icon;
|
||||
setBodyParameter("Icon", icon);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -14,45 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/AddResourceToUsersResult.h>
|
||||
#include <alibabacloud/cdrs/model/CreateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
AddResourceToUsersResult::AddResourceToUsersResult() :
|
||||
CreateProjectResult::CreateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddResourceToUsersResult::AddResourceToUsersResult(const std::string &payload) :
|
||||
CreateProjectResult::CreateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddResourceToUsersResult::~AddResourceToUsersResult()
|
||||
CreateProjectResult::~CreateProjectResult()
|
||||
{}
|
||||
|
||||
void AddResourceToUsersResult::parse(const std::string &payload)
|
||||
void CreateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Paging"].isNull())
|
||||
paging_ = value["Paging"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["CorpId"].isNull())
|
||||
corpId_ = value["CorpId"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool AddResourceToUsersResult::getPaging()const
|
||||
std::string CreateProjectResult::getCorpId()const
|
||||
{
|
||||
return paging_;
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
bool AddResourceToUsersResult::getData()const
|
||||
std::string CreateProjectResult::getMessage()const
|
||||
{
|
||||
return data_;
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cdrs/src/model/UnbindDeviceRequest.cc
Normal file
73
cdrs/src/model/UnbindDeviceRequest.cc
Normal 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/cdrs/model/UnbindDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::UnbindDeviceRequest;
|
||||
|
||||
UnbindDeviceRequest::UnbindDeviceRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "UnbindDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnbindDeviceRequest::~UnbindDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindDeviceRequest::getDeviceIds()const
|
||||
{
|
||||
return deviceIds_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::setDeviceIds(const std::string& deviceIds)
|
||||
{
|
||||
deviceIds_ = deviceIds;
|
||||
setBodyParameter("DeviceIds", deviceIds);
|
||||
}
|
||||
|
||||
std::string UnbindDeviceRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UnbindDeviceRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string UnbindDeviceRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void UnbindDeviceRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
77
cdrs/src/model/UnbindDeviceResult.cc
Normal file
77
cdrs/src/model/UnbindDeviceResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdrs/model/UnbindDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
UnbindDeviceResult::UnbindDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindDeviceResult::UnbindDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindDeviceResult::~UnbindDeviceResult()
|
||||
{}
|
||||
|
||||
void UnbindDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Datas"];
|
||||
for (auto valueDataDatas : allDataNode)
|
||||
{
|
||||
Datas dataObject;
|
||||
if(!valueDataDatas["Success"].isNull())
|
||||
dataObject.success = valueDataDatas["Success"].asString() == "true";
|
||||
if(!valueDataDatas["Code"].isNull())
|
||||
dataObject.code = valueDataDatas["Code"].asString();
|
||||
if(!valueDataDatas["Message"].isNull())
|
||||
dataObject.message = valueDataDatas["Message"].asString();
|
||||
if(!valueDataDatas["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDatas["DeviceId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UnbindDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<UnbindDeviceResult::Datas> UnbindDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UnbindDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cdrs/src/model/UpdateProjectRequest.cc
Normal file
95
cdrs/src/model/UpdateProjectRequest.cc
Normal 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/cdrs/model/UpdateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CDRS::Model::UpdateProjectRequest;
|
||||
|
||||
UpdateProjectRequest::UpdateProjectRequest() :
|
||||
RpcServiceRequest("cdrs", "2020-11-01", "UpdateProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateProjectRequest::~UpdateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProjectRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getIcon()const
|
||||
{
|
||||
return icon_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setIcon(const std::string& icon)
|
||||
{
|
||||
icon_ = icon;
|
||||
setBodyParameter("Icon", icon);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setBodyParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::get_NameSpace()const
|
||||
{
|
||||
return _nameSpace_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::set_NameSpace(const std::string& _nameSpace)
|
||||
{
|
||||
_nameSpace_ = _nameSpace;
|
||||
setBodyParameter("_NameSpace", _nameSpace);
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -14,38 +14,45 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/emr/model/ModifyAlertDingDingGroupResult.h>
|
||||
#include <alibabacloud/cdrs/model/UpdateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Emr;
|
||||
using namespace AlibabaCloud::Emr::Model;
|
||||
using namespace AlibabaCloud::CDRS;
|
||||
using namespace AlibabaCloud::CDRS::Model;
|
||||
|
||||
ModifyAlertDingDingGroupResult::ModifyAlertDingDingGroupResult() :
|
||||
UpdateProjectResult::UpdateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAlertDingDingGroupResult::ModifyAlertDingDingGroupResult(const std::string &payload) :
|
||||
UpdateProjectResult::UpdateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAlertDingDingGroupResult::~ModifyAlertDingDingGroupResult()
|
||||
UpdateProjectResult::~UpdateProjectResult()
|
||||
{}
|
||||
|
||||
void ModifyAlertDingDingGroupResult::parse(const std::string &payload)
|
||||
void UpdateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Done"].isNull())
|
||||
done_ = value["Done"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool ModifyAlertDingDingGroupResult::getDone()const
|
||||
std::string UpdateProjectResult::getMessage()const
|
||||
{
|
||||
return done_;
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryMemberResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryWebhookRequest.h
|
||||
include/alibabacloud/codeup/model/DeleteRepositoryWebhookResult.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetBranchInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetCodeupOrganizationRequest.h
|
||||
@@ -67,12 +69,18 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/GetRepositoryInfoResult.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryTagRequest.h
|
||||
include/alibabacloud/codeup/model/GetRepositoryTagResult.h
|
||||
include/alibabacloud/codeup/model/GetUserInfoRequest.h
|
||||
include/alibabacloud/codeup/model/GetUserInfoResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupMemberRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupMemberResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListGroupsRequest.h
|
||||
include/alibabacloud/codeup/model/ListGroupsResult.h
|
||||
include/alibabacloud/codeup/model/ListOrganizationsRequest.h
|
||||
include/alibabacloud/codeup/model/ListOrganizationsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoriesRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoriesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryBranchesResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryMemberRequest.h
|
||||
@@ -81,6 +89,8 @@ set(codeup_public_header_model
|
||||
include/alibabacloud/codeup/model/ListRepositoryTagsResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryTreeResult.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryWebhookRequest.h
|
||||
include/alibabacloud/codeup/model/ListRepositoryWebhookResult.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestRequest.h
|
||||
include/alibabacloud/codeup/model/MergeMergeRequestResult.h
|
||||
include/alibabacloud/codeup/model/UpdateFileRequest.h
|
||||
@@ -124,6 +134,8 @@ set(codeup_src
|
||||
src/model/DeleteRepositoryMemberResult.cc
|
||||
src/model/DeleteRepositoryTagRequest.cc
|
||||
src/model/DeleteRepositoryTagResult.cc
|
||||
src/model/DeleteRepositoryWebhookRequest.cc
|
||||
src/model/DeleteRepositoryWebhookResult.cc
|
||||
src/model/GetBranchInfoRequest.cc
|
||||
src/model/GetBranchInfoResult.cc
|
||||
src/model/GetCodeupOrganizationRequest.cc
|
||||
@@ -138,12 +150,18 @@ set(codeup_src
|
||||
src/model/GetRepositoryInfoResult.cc
|
||||
src/model/GetRepositoryTagRequest.cc
|
||||
src/model/GetRepositoryTagResult.cc
|
||||
src/model/GetUserInfoRequest.cc
|
||||
src/model/GetUserInfoResult.cc
|
||||
src/model/ListGroupMemberRequest.cc
|
||||
src/model/ListGroupMemberResult.cc
|
||||
src/model/ListGroupRepositoriesRequest.cc
|
||||
src/model/ListGroupRepositoriesResult.cc
|
||||
src/model/ListGroupsRequest.cc
|
||||
src/model/ListGroupsResult.cc
|
||||
src/model/ListOrganizationsRequest.cc
|
||||
src/model/ListOrganizationsResult.cc
|
||||
src/model/ListRepositoriesRequest.cc
|
||||
src/model/ListRepositoriesResult.cc
|
||||
src/model/ListRepositoryBranchesRequest.cc
|
||||
src/model/ListRepositoryBranchesResult.cc
|
||||
src/model/ListRepositoryMemberRequest.cc
|
||||
@@ -152,6 +170,8 @@ set(codeup_src
|
||||
src/model/ListRepositoryTagsResult.cc
|
||||
src/model/ListRepositoryTreeRequest.cc
|
||||
src/model/ListRepositoryTreeResult.cc
|
||||
src/model/ListRepositoryWebhookRequest.cc
|
||||
src/model/ListRepositoryWebhookResult.cc
|
||||
src/model/MergeMergeRequestRequest.cc
|
||||
src/model/MergeMergeRequestResult.cc
|
||||
src/model/UpdateFileRequest.cc
|
||||
|
||||
@@ -54,6 +54,8 @@
|
||||
#include "model/DeleteRepositoryMemberResult.h"
|
||||
#include "model/DeleteRepositoryTagRequest.h"
|
||||
#include "model/DeleteRepositoryTagResult.h"
|
||||
#include "model/DeleteRepositoryWebhookRequest.h"
|
||||
#include "model/DeleteRepositoryWebhookResult.h"
|
||||
#include "model/GetBranchInfoRequest.h"
|
||||
#include "model/GetBranchInfoResult.h"
|
||||
#include "model/GetCodeupOrganizationRequest.h"
|
||||
@@ -68,12 +70,18 @@
|
||||
#include "model/GetRepositoryInfoResult.h"
|
||||
#include "model/GetRepositoryTagRequest.h"
|
||||
#include "model/GetRepositoryTagResult.h"
|
||||
#include "model/GetUserInfoRequest.h"
|
||||
#include "model/GetUserInfoResult.h"
|
||||
#include "model/ListGroupMemberRequest.h"
|
||||
#include "model/ListGroupMemberResult.h"
|
||||
#include "model/ListGroupRepositoriesRequest.h"
|
||||
#include "model/ListGroupRepositoriesResult.h"
|
||||
#include "model/ListGroupsRequest.h"
|
||||
#include "model/ListGroupsResult.h"
|
||||
#include "model/ListOrganizationsRequest.h"
|
||||
#include "model/ListOrganizationsResult.h"
|
||||
#include "model/ListRepositoriesRequest.h"
|
||||
#include "model/ListRepositoriesResult.h"
|
||||
#include "model/ListRepositoryBranchesRequest.h"
|
||||
#include "model/ListRepositoryBranchesResult.h"
|
||||
#include "model/ListRepositoryMemberRequest.h"
|
||||
@@ -82,6 +90,8 @@
|
||||
#include "model/ListRepositoryTagsResult.h"
|
||||
#include "model/ListRepositoryTreeRequest.h"
|
||||
#include "model/ListRepositoryTreeResult.h"
|
||||
#include "model/ListRepositoryWebhookRequest.h"
|
||||
#include "model/ListRepositoryWebhookResult.h"
|
||||
#include "model/MergeMergeRequestRequest.h"
|
||||
#include "model/MergeMergeRequestResult.h"
|
||||
#include "model/UpdateFileRequest.h"
|
||||
@@ -147,6 +157,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteRepositoryTagResult> DeleteRepositoryTagOutcome;
|
||||
typedef std::future<DeleteRepositoryTagOutcome> DeleteRepositoryTagOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryTagRequest&, const DeleteRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRepositoryWebhookResult> DeleteRepositoryWebhookOutcome;
|
||||
typedef std::future<DeleteRepositoryWebhookOutcome> DeleteRepositoryWebhookOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::DeleteRepositoryWebhookRequest&, const DeleteRepositoryWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRepositoryWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetBranchInfoResult> GetBranchInfoOutcome;
|
||||
typedef std::future<GetBranchInfoOutcome> GetBranchInfoOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetBranchInfoRequest&, const GetBranchInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBranchInfoAsyncHandler;
|
||||
@@ -168,6 +181,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetRepositoryTagResult> GetRepositoryTagOutcome;
|
||||
typedef std::future<GetRepositoryTagOutcome> GetRepositoryTagOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetRepositoryTagRequest&, const GetRepositoryTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRepositoryTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserInfoResult> GetUserInfoOutcome;
|
||||
typedef std::future<GetUserInfoOutcome> GetUserInfoOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::GetUserInfoRequest&, const GetUserInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListGroupMemberResult> ListGroupMemberOutcome;
|
||||
typedef std::future<ListGroupMemberOutcome> ListGroupMemberOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListGroupMemberRequest&, const ListGroupMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupMemberAsyncHandler;
|
||||
@@ -177,6 +193,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListGroupsResult> ListGroupsOutcome;
|
||||
typedef std::future<ListGroupsOutcome> ListGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListGroupsRequest&, const ListGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOrganizationsResult> ListOrganizationsOutcome;
|
||||
typedef std::future<ListOrganizationsOutcome> ListOrganizationsOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListOrganizationsRequest&, const ListOrganizationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOrganizationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoriesResult> ListRepositoriesOutcome;
|
||||
typedef std::future<ListRepositoriesOutcome> ListRepositoriesOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoriesRequest&, const ListRepositoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryBranchesResult> ListRepositoryBranchesOutcome;
|
||||
typedef std::future<ListRepositoryBranchesOutcome> ListRepositoryBranchesOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryBranchesRequest&, const ListRepositoryBranchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryBranchesAsyncHandler;
|
||||
@@ -189,6 +211,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListRepositoryTreeResult> ListRepositoryTreeOutcome;
|
||||
typedef std::future<ListRepositoryTreeOutcome> ListRepositoryTreeOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryTreeRequest&, const ListRepositoryTreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryTreeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRepositoryWebhookResult> ListRepositoryWebhookOutcome;
|
||||
typedef std::future<ListRepositoryWebhookOutcome> ListRepositoryWebhookOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::ListRepositoryWebhookRequest&, const ListRepositoryWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRepositoryWebhookAsyncHandler;
|
||||
typedef Outcome<Error, Model::MergeMergeRequestResult> MergeMergeRequestOutcome;
|
||||
typedef std::future<MergeMergeRequestOutcome> MergeMergeRequestOutcomeCallable;
|
||||
typedef std::function<void(const CodeupClient*, const Model::MergeMergeRequestRequest&, const MergeMergeRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeMergeRequestAsyncHandler;
|
||||
@@ -254,6 +279,9 @@ namespace AlibabaCloud
|
||||
DeleteRepositoryTagOutcome deleteRepositoryTag(const Model::DeleteRepositoryTagRequest &request)const;
|
||||
void deleteRepositoryTagAsync(const Model::DeleteRepositoryTagRequest& request, const DeleteRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryTagOutcomeCallable deleteRepositoryTagCallable(const Model::DeleteRepositoryTagRequest& request) const;
|
||||
DeleteRepositoryWebhookOutcome deleteRepositoryWebhook(const Model::DeleteRepositoryWebhookRequest &request)const;
|
||||
void deleteRepositoryWebhookAsync(const Model::DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRepositoryWebhookOutcomeCallable deleteRepositoryWebhookCallable(const Model::DeleteRepositoryWebhookRequest& request) const;
|
||||
GetBranchInfoOutcome getBranchInfo(const Model::GetBranchInfoRequest &request)const;
|
||||
void getBranchInfoAsync(const Model::GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetBranchInfoOutcomeCallable getBranchInfoCallable(const Model::GetBranchInfoRequest& request) const;
|
||||
@@ -275,6 +303,9 @@ namespace AlibabaCloud
|
||||
GetRepositoryTagOutcome getRepositoryTag(const Model::GetRepositoryTagRequest &request)const;
|
||||
void getRepositoryTagAsync(const Model::GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRepositoryTagOutcomeCallable getRepositoryTagCallable(const Model::GetRepositoryTagRequest& request) const;
|
||||
GetUserInfoOutcome getUserInfo(const Model::GetUserInfoRequest &request)const;
|
||||
void getUserInfoAsync(const Model::GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserInfoOutcomeCallable getUserInfoCallable(const Model::GetUserInfoRequest& request) const;
|
||||
ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const;
|
||||
void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const;
|
||||
@@ -284,6 +315,12 @@ namespace AlibabaCloud
|
||||
ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const;
|
||||
void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const;
|
||||
ListOrganizationsOutcome listOrganizations(const Model::ListOrganizationsRequest &request)const;
|
||||
void listOrganizationsAsync(const Model::ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOrganizationsOutcomeCallable listOrganizationsCallable(const Model::ListOrganizationsRequest& request) const;
|
||||
ListRepositoriesOutcome listRepositories(const Model::ListRepositoriesRequest &request)const;
|
||||
void listRepositoriesAsync(const Model::ListRepositoriesRequest& request, const ListRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoriesOutcomeCallable listRepositoriesCallable(const Model::ListRepositoriesRequest& request) const;
|
||||
ListRepositoryBranchesOutcome listRepositoryBranches(const Model::ListRepositoryBranchesRequest &request)const;
|
||||
void listRepositoryBranchesAsync(const Model::ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryBranchesOutcomeCallable listRepositoryBranchesCallable(const Model::ListRepositoryBranchesRequest& request) const;
|
||||
@@ -296,6 +333,9 @@ namespace AlibabaCloud
|
||||
ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const;
|
||||
void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const;
|
||||
ListRepositoryWebhookOutcome listRepositoryWebhook(const Model::ListRepositoryWebhookRequest &request)const;
|
||||
void listRepositoryWebhookAsync(const Model::ListRepositoryWebhookRequest& request, const ListRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRepositoryWebhookOutcomeCallable listRepositoryWebhookCallable(const Model::ListRepositoryWebhookRequest& request) const;
|
||||
MergeMergeRequestOutcome mergeMergeRequest(const Model::MergeMergeRequestRequest &request)const;
|
||||
void mergeMergeRequestAsync(const Model::MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MergeMergeRequestOutcomeCallable mergeMergeRequestCallable(const Model::MergeMergeRequestRequest& request) const;
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace AlibabaCloud
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
std::string secretToken;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryWebhookRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteRepositoryWebhookRequest();
|
||||
~DeleteRepositoryWebhookRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
long getWebhookId()const;
|
||||
void setWebhookId(long webhookId);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
long webhookId_;
|
||||
std::string accessToken_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string description;
|
||||
std::string lastTestResult;
|
||||
bool pushEvents;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
bool tagPushEvents;
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
bool mergeRequestsEvents;
|
||||
std::string url;
|
||||
std::string secretToken;
|
||||
};
|
||||
|
||||
|
||||
DeleteRepositoryWebhookResult();
|
||||
explicit DeleteRepositoryWebhookResult(const std::string &payload);
|
||||
~DeleteRepositoryWebhookResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYWEBHOOKRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETUSERINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETUSERINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetUserInfoRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetUserInfoRequest();
|
||||
~GetUserInfoRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETUSERINFOREQUEST_H_
|
||||
@@ -14,48 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_LISTALERTCONTACTSRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_LISTALERTCONTACTSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETUSERINFORESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_GETUSERINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT ListAlertContactsResult : public ServiceResult
|
||||
class ALIBABACLOUD_CODEUP_EXPORT GetUserInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AlertContact
|
||||
struct Result
|
||||
{
|
||||
std::string gmtCreate;
|
||||
std::string email;
|
||||
std::string gmtModified;
|
||||
std::string phoneNumber;
|
||||
std::string avatarUrl;
|
||||
std::string username;
|
||||
std::string externalUserId;
|
||||
long id;
|
||||
std::string bizId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListAlertContactsResult();
|
||||
explicit ListAlertContactsResult(const std::string &payload);
|
||||
~ListAlertContactsResult();
|
||||
std::vector<AlertContact> getAlertContactList()const;
|
||||
GetUserInfoResult();
|
||||
explicit GetUserInfoResult(const std::string &payload);
|
||||
~GetUserInfoResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AlertContact> alertContactList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_LISTALERTCONTACTSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETUSERINFORESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListOrganizationsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListOrganizationsRequest();
|
||||
~ListOrganizationsRequest();
|
||||
|
||||
int getAccessLevel()const;
|
||||
void setAccessLevel(int accessLevel);
|
||||
int getMinAccessLevel()const;
|
||||
void setMinAccessLevel(int minAccessLevel);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
|
||||
private:
|
||||
int accessLevel_;
|
||||
int minAccessLevel_;
|
||||
std::string accessToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSREQUEST_H_
|
||||
@@ -14,38 +14,51 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/hitsdb/HitsdbExport.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Hitsdb
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_HITSDB_EXPORT RenewTSDBInstanceResult : public ServiceResult
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListOrganizationsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string organizationName;
|
||||
std::string organizationRole;
|
||||
std::string organizationId;
|
||||
int accessLevel;
|
||||
};
|
||||
|
||||
|
||||
RenewTSDBInstanceResult();
|
||||
explicit RenewTSDBInstanceResult(const std::string &payload);
|
||||
~RenewTSDBInstanceResult();
|
||||
long getOrderId()const;
|
||||
ListOrganizationsResult();
|
||||
explicit ListOrganizationsResult(const std::string &payload);
|
||||
~ListOrganizationsResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long orderId_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTORGANIZATIONSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoriesRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoriesRequest();
|
||||
~ListRepositoriesRequest();
|
||||
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
bool getArchive()const;
|
||||
void setArchive(bool archive);
|
||||
std::string getSort()const;
|
||||
void setSort(const std::string& sort);
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
std::string getSearch()const;
|
||||
void setSearch(const std::string& search);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
std::string getOrder()const;
|
||||
void setOrder(const std::string& order);
|
||||
|
||||
private:
|
||||
std::string accessToken_;
|
||||
bool archive_;
|
||||
std::string sort_;
|
||||
std::string organizationId_;
|
||||
std::string search_;
|
||||
long pageSize_;
|
||||
long page_;
|
||||
std::string order_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoriesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string path;
|
||||
std::string pathWithNamespace;
|
||||
std::string lastActivityAt;
|
||||
std::string description;
|
||||
bool archive;
|
||||
std::string createdAt;
|
||||
std::string webUrl;
|
||||
std::string nameWithNamespace;
|
||||
std::string visibilityLevel;
|
||||
std::string updatedAt;
|
||||
int accessLevel;
|
||||
std::string name;
|
||||
std::string avatarUrl;
|
||||
bool demoProjectStatus;
|
||||
bool star;
|
||||
std::string importStatus;
|
||||
long id;
|
||||
long namespaceId;
|
||||
long starCount;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoriesResult();
|
||||
explicit ListRepositoriesResult(const std::string &payload);
|
||||
~ListRepositoriesResult();
|
||||
long getTotal()const;
|
||||
int getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
int errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORIESRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryWebhookRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListRepositoryWebhookRequest();
|
||||
~ListRepositoryWebhookRequest();
|
||||
|
||||
std::string getOrganizationId()const;
|
||||
void setOrganizationId(const std::string& organizationId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getAccessToken()const;
|
||||
void setAccessToken(const std::string& accessToken);
|
||||
long getPage()const;
|
||||
void setPage(long page);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string organizationId_;
|
||||
long pageSize_;
|
||||
std::string accessToken_;
|
||||
long page_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/codeup/CodeupExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Codeup
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CODEUP_EXPORT ListRepositoryWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultItem
|
||||
{
|
||||
std::string description;
|
||||
std::string lastTestResult;
|
||||
bool pushEvents;
|
||||
std::string createdAt;
|
||||
long projectId;
|
||||
bool tagPushEvents;
|
||||
long id;
|
||||
bool enableSslVerification;
|
||||
bool noteEvents;
|
||||
bool mergeRequestsEvents;
|
||||
std::string url;
|
||||
std::string secretToken;
|
||||
};
|
||||
|
||||
|
||||
ListRepositoryWebhookResult();
|
||||
explicit ListRepositoryWebhookResult(const std::string &payload);
|
||||
~ListRepositoryWebhookResult();
|
||||
long getTotal()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::vector<ResultItem> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long total_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
std::vector<ResultItem> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CODEUP_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_
|
||||
@@ -627,6 +627,42 @@ CodeupClient::DeleteRepositoryTagOutcomeCallable CodeupClient::deleteRepositoryT
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryWebhookOutcome CodeupClient::deleteRepositoryWebhook(const DeleteRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRepositoryWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteRepositoryWebhookOutcome(DeleteRepositoryWebhookResult(outcome.result()));
|
||||
else
|
||||
return DeleteRepositoryWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::deleteRepositoryWebhookAsync(const DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteRepositoryWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::DeleteRepositoryWebhookOutcomeCallable CodeupClient::deleteRepositoryWebhookCallable(const DeleteRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteRepositoryWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteRepositoryWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetBranchInfoOutcome CodeupClient::getBranchInfo(const GetBranchInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +915,42 @@ CodeupClient::GetRepositoryTagOutcomeCallable CodeupClient::getRepositoryTagCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::GetUserInfoOutcome CodeupClient::getUserInfo(const GetUserInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserInfoOutcome(GetUserInfoResult(outcome.result()));
|
||||
else
|
||||
return GetUserInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::getUserInfoAsync(const GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUserInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::GetUserInfoOutcomeCallable CodeupClient::getUserInfoCallable(const GetUserInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUserInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListGroupMemberOutcome CodeupClient::listGroupMember(const ListGroupMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1059,78 @@ CodeupClient::ListGroupsOutcomeCallable CodeupClient::listGroupsCallable(const L
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListOrganizationsOutcome CodeupClient::listOrganizations(const ListOrganizationsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListOrganizationsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListOrganizationsOutcome(ListOrganizationsResult(outcome.result()));
|
||||
else
|
||||
return ListOrganizationsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listOrganizationsAsync(const ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listOrganizations(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListOrganizationsOutcomeCallable CodeupClient::listOrganizationsCallable(const ListOrganizationsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListOrganizationsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listOrganizations(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoriesOutcome CodeupClient::listRepositories(const ListRepositoriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoriesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoriesOutcome(ListRepositoriesResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoriesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoriesAsync(const ListRepositoriesRequest& request, const ListRepositoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositories(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoriesOutcomeCallable CodeupClient::listRepositoriesCallable(const ListRepositoriesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoriesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositories(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryBranchesOutcome CodeupClient::listRepositoryBranches(const ListRepositoryBranchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1275,42 @@ CodeupClient::ListRepositoryTreeOutcomeCallable CodeupClient::listRepositoryTree
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryWebhookOutcome CodeupClient::listRepositoryWebhook(const ListRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRepositoryWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRepositoryWebhookOutcome(ListRepositoryWebhookResult(outcome.result()));
|
||||
else
|
||||
return ListRepositoryWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CodeupClient::listRepositoryWebhookAsync(const ListRepositoryWebhookRequest& request, const ListRepositoryWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRepositoryWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CodeupClient::ListRepositoryWebhookOutcomeCallable CodeupClient::listRepositoryWebhookCallable(const ListRepositoryWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRepositoryWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRepositoryWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CodeupClient::MergeMergeRequestOutcome CodeupClient::mergeMergeRequest(const MergeMergeRequestRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -66,6 +66,8 @@ void AddWebhookResult::parse(const std::string &payload)
|
||||
result_.lastTestResult = resultNode["LastTestResult"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["SecretToken"].isNull())
|
||||
result_.secretToken = resultNode["SecretToken"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
74
codeup/src/model/DeleteRepositoryWebhookRequest.cc
Normal file
74
codeup/src/model/DeleteRepositoryWebhookRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/DeleteRepositoryWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::DeleteRepositoryWebhookRequest;
|
||||
|
||||
DeleteRepositoryWebhookRequest::DeleteRepositoryWebhookRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/hooks/[WebhookId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteRepositoryWebhookRequest::~DeleteRepositoryWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteRepositoryWebhookRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long DeleteRepositoryWebhookRequest::getWebhookId()const
|
||||
{
|
||||
return webhookId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setWebhookId(long webhookId)
|
||||
{
|
||||
webhookId_ = webhookId;
|
||||
setParameter("WebhookId", std::to_string(webhookId));
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryWebhookRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long DeleteRepositoryWebhookRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteRepositoryWebhookRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
95
codeup/src/model/DeleteRepositoryWebhookResult.cc
Normal file
95
codeup/src/model/DeleteRepositoryWebhookResult.cc
Normal 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/codeup/model/DeleteRepositoryWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
DeleteRepositoryWebhookResult::DeleteRepositoryWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRepositoryWebhookResult::DeleteRepositoryWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRepositoryWebhookResult::~DeleteRepositoryWebhookResult()
|
||||
{}
|
||||
|
||||
void DeleteRepositoryWebhookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["Url"].isNull())
|
||||
result_.url = resultNode["Url"].asString();
|
||||
if(!resultNode["CreatedAt"].isNull())
|
||||
result_.createdAt = resultNode["CreatedAt"].asString();
|
||||
if(!resultNode["ProjectId"].isNull())
|
||||
result_.projectId = std::stol(resultNode["ProjectId"].asString());
|
||||
if(!resultNode["PushEvents"].isNull())
|
||||
result_.pushEvents = resultNode["PushEvents"].asString() == "true";
|
||||
if(!resultNode["MergeRequestsEvents"].isNull())
|
||||
result_.mergeRequestsEvents = resultNode["MergeRequestsEvents"].asString() == "true";
|
||||
if(!resultNode["TagPushEvents"].isNull())
|
||||
result_.tagPushEvents = resultNode["TagPushEvents"].asString() == "true";
|
||||
if(!resultNode["NoteEvents"].isNull())
|
||||
result_.noteEvents = resultNode["NoteEvents"].asString() == "true";
|
||||
if(!resultNode["EnableSslVerification"].isNull())
|
||||
result_.enableSslVerification = resultNode["EnableSslVerification"].asString() == "true";
|
||||
if(!resultNode["LastTestResult"].isNull())
|
||||
result_.lastTestResult = resultNode["LastTestResult"].asString();
|
||||
if(!resultNode["Description"].isNull())
|
||||
result_.description = resultNode["Description"].asString();
|
||||
if(!resultNode["SecretToken"].isNull())
|
||||
result_.secretToken = resultNode["SecretToken"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryWebhookResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteRepositoryWebhookResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeleteRepositoryWebhookResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
DeleteRepositoryWebhookResult::Result DeleteRepositoryWebhookResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
41
codeup/src/model/GetUserInfoRequest.cc
Normal file
41
codeup/src/model/GetUserInfoRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* 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/codeup/model/GetUserInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::GetUserInfoRequest;
|
||||
|
||||
GetUserInfoRequest::GetUserInfoRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/user/current");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetUserInfoRequest::~GetUserInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserInfoRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void GetUserInfoRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
83
codeup/src/model/GetUserInfoResult.cc
Normal file
83
codeup/src/model/GetUserInfoResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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/codeup/model/GetUserInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
GetUserInfoResult::GetUserInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserInfoResult::GetUserInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserInfoResult::~GetUserInfoResult()
|
||||
{}
|
||||
|
||||
void GetUserInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Id"].isNull())
|
||||
result_.id = std::stol(resultNode["Id"].asString());
|
||||
if(!resultNode["ExternalUserId"].isNull())
|
||||
result_.externalUserId = resultNode["ExternalUserId"].asString();
|
||||
if(!resultNode["Username"].isNull())
|
||||
result_.username = resultNode["Username"].asString();
|
||||
if(!resultNode["Name"].isNull())
|
||||
result_.name = resultNode["Name"].asString();
|
||||
if(!resultNode["Email"].isNull())
|
||||
result_.email = resultNode["Email"].asString();
|
||||
if(!resultNode["AvatarUrl"].isNull())
|
||||
result_.avatarUrl = resultNode["AvatarUrl"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetUserInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetUserInfoResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetUserInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetUserInfoResult::Result GetUserInfoResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
63
codeup/src/model/ListOrganizationsRequest.cc
Normal file
63
codeup/src/model/ListOrganizationsRequest.cc
Normal 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListOrganizationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListOrganizationsRequest;
|
||||
|
||||
ListOrganizationsRequest::ListOrganizationsRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v4/organization");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListOrganizationsRequest::~ListOrganizationsRequest()
|
||||
{}
|
||||
|
||||
int ListOrganizationsRequest::getAccessLevel()const
|
||||
{
|
||||
return accessLevel_;
|
||||
}
|
||||
|
||||
void ListOrganizationsRequest::setAccessLevel(int accessLevel)
|
||||
{
|
||||
accessLevel_ = accessLevel;
|
||||
setParameter("AccessLevel", std::to_string(accessLevel));
|
||||
}
|
||||
|
||||
int ListOrganizationsRequest::getMinAccessLevel()const
|
||||
{
|
||||
return minAccessLevel_;
|
||||
}
|
||||
|
||||
void ListOrganizationsRequest::setMinAccessLevel(int minAccessLevel)
|
||||
{
|
||||
minAccessLevel_ = minAccessLevel;
|
||||
setParameter("MinAccessLevel", std::to_string(minAccessLevel));
|
||||
}
|
||||
|
||||
std::string ListOrganizationsRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListOrganizationsRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
84
codeup/src/model/ListOrganizationsResult.cc
Normal file
84
codeup/src/model/ListOrganizationsResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/codeup/model/ListOrganizationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListOrganizationsResult::ListOrganizationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListOrganizationsResult::ListOrganizationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListOrganizationsResult::~ListOrganizationsResult()
|
||||
{}
|
||||
|
||||
void ListOrganizationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["OrganizationId"].isNull())
|
||||
resultObject.organizationId = valueResultResultItem["OrganizationId"].asString();
|
||||
if(!valueResultResultItem["OrganizationName"].isNull())
|
||||
resultObject.organizationName = valueResultResultItem["OrganizationName"].asString();
|
||||
if(!valueResultResultItem["OrganizationRole"].isNull())
|
||||
resultObject.organizationRole = valueResultResultItem["OrganizationRole"].asString();
|
||||
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListOrganizationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListOrganizationsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListOrganizationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListOrganizationsResult::ResultItem> ListOrganizationsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
118
codeup/src/model/ListRepositoriesRequest.cc
Normal file
118
codeup/src/model/ListRepositoriesRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* 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/codeup/model/ListRepositoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListRepositoriesRequest;
|
||||
|
||||
ListRepositoriesRequest::ListRepositoriesRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/all");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRepositoriesRequest::~ListRepositoriesRequest()
|
||||
{}
|
||||
|
||||
std::string ListRepositoriesRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
bool ListRepositoriesRequest::getArchive()const
|
||||
{
|
||||
return archive_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setArchive(bool archive)
|
||||
{
|
||||
archive_ = archive;
|
||||
setParameter("Archive", archive ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getSort()const
|
||||
{
|
||||
return sort_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setSort(const std::string& sort)
|
||||
{
|
||||
sort_ = sort;
|
||||
setParameter("Sort", sort);
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
long ListRepositoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListRepositoriesRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string ListRepositoriesRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
void ListRepositoriesRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
121
codeup/src/model/ListRepositoriesResult.cc
Normal file
121
codeup/src/model/ListRepositoriesResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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/codeup/model/ListRepositoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListRepositoriesResult::ListRepositoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRepositoriesResult::ListRepositoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRepositoriesResult::~ListRepositoriesResult()
|
||||
{}
|
||||
|
||||
void ListRepositoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["Description"].isNull())
|
||||
resultObject.description = valueResultResultItem["Description"].asString();
|
||||
if(!valueResultResultItem["VisibilityLevel"].isNull())
|
||||
resultObject.visibilityLevel = valueResultResultItem["VisibilityLevel"].asString();
|
||||
if(!valueResultResultItem["WebUrl"].isNull())
|
||||
resultObject.webUrl = valueResultResultItem["WebUrl"].asString();
|
||||
if(!valueResultResultItem["Name"].isNull())
|
||||
resultObject.name = valueResultResultItem["Name"].asString();
|
||||
if(!valueResultResultItem["NameWithNamespace"].isNull())
|
||||
resultObject.nameWithNamespace = valueResultResultItem["NameWithNamespace"].asString();
|
||||
if(!valueResultResultItem["Path"].isNull())
|
||||
resultObject.path = valueResultResultItem["Path"].asString();
|
||||
if(!valueResultResultItem["PathWithNamespace"].isNull())
|
||||
resultObject.pathWithNamespace = valueResultResultItem["PathWithNamespace"].asString();
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["LastActivityAt"].isNull())
|
||||
resultObject.lastActivityAt = valueResultResultItem["LastActivityAt"].asString();
|
||||
if(!valueResultResultItem["Archive"].isNull())
|
||||
resultObject.archive = valueResultResultItem["Archive"].asString() == "true";
|
||||
if(!valueResultResultItem["AvatarUrl"].isNull())
|
||||
resultObject.avatarUrl = valueResultResultItem["AvatarUrl"].asString();
|
||||
if(!valueResultResultItem["DemoProjectStatus"].isNull())
|
||||
resultObject.demoProjectStatus = valueResultResultItem["DemoProjectStatus"].asString() == "true";
|
||||
if(!valueResultResultItem["AccessLevel"].isNull())
|
||||
resultObject.accessLevel = std::stoi(valueResultResultItem["AccessLevel"].asString());
|
||||
if(!valueResultResultItem["ImportStatus"].isNull())
|
||||
resultObject.importStatus = valueResultResultItem["ImportStatus"].asString();
|
||||
if(!valueResultResultItem["NamespaceId"].isNull())
|
||||
resultObject.namespaceId = std::stol(valueResultResultItem["NamespaceId"].asString());
|
||||
if(!valueResultResultItem["UpdatedAt"].isNull())
|
||||
resultObject.updatedAt = valueResultResultItem["UpdatedAt"].asString();
|
||||
if(!valueResultResultItem["StarCount"].isNull())
|
||||
resultObject.starCount = std::stol(valueResultResultItem["StarCount"].asString());
|
||||
if(!valueResultResultItem["Star"].isNull())
|
||||
resultObject.star = valueResultResultItem["Star"].asString() == "true";
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListRepositoriesResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
int ListRepositoriesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListRepositoriesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListRepositoriesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListRepositoriesResult::ResultItem> ListRepositoriesResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
85
codeup/src/model/ListRepositoryWebhookRequest.cc
Normal file
85
codeup/src/model/ListRepositoryWebhookRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/codeup/model/ListRepositoryWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::Codeup::Model::ListRepositoryWebhookRequest;
|
||||
|
||||
ListRepositoryWebhookRequest::ListRepositoryWebhookRequest() :
|
||||
RoaServiceRequest("codeup", "2020-04-14")
|
||||
{
|
||||
setResourcePath("/api/v3/projects/[ProjectId]/hooks");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRepositoryWebhookRequest::~ListRepositoryWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string ListRepositoryWebhookRequest::getOrganizationId()const
|
||||
{
|
||||
return organizationId_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setOrganizationId(const std::string& organizationId)
|
||||
{
|
||||
organizationId_ = organizationId;
|
||||
setParameter("OrganizationId", organizationId);
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListRepositoryWebhookRequest::getAccessToken()const
|
||||
{
|
||||
return accessToken_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setAccessToken(const std::string& accessToken)
|
||||
{
|
||||
accessToken_ = accessToken;
|
||||
setParameter("AccessToken", accessToken);
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setPage(long page)
|
||||
{
|
||||
page_ = page;
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListRepositoryWebhookRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
107
codeup/src/model/ListRepositoryWebhookResult.cc
Normal file
107
codeup/src/model/ListRepositoryWebhookResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/codeup/model/ListRepositoryWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Codeup;
|
||||
using namespace AlibabaCloud::Codeup::Model;
|
||||
|
||||
ListRepositoryWebhookResult::ListRepositoryWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRepositoryWebhookResult::ListRepositoryWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRepositoryWebhookResult::~ListRepositoryWebhookResult()
|
||||
{}
|
||||
|
||||
void ListRepositoryWebhookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["ResultItem"];
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["Id"].isNull())
|
||||
resultObject.id = std::stol(valueResultResultItem["Id"].asString());
|
||||
if(!valueResultResultItem["Url"].isNull())
|
||||
resultObject.url = valueResultResultItem["Url"].asString();
|
||||
if(!valueResultResultItem["CreatedAt"].isNull())
|
||||
resultObject.createdAt = valueResultResultItem["CreatedAt"].asString();
|
||||
if(!valueResultResultItem["ProjectId"].isNull())
|
||||
resultObject.projectId = std::stol(valueResultResultItem["ProjectId"].asString());
|
||||
if(!valueResultResultItem["PushEvents"].isNull())
|
||||
resultObject.pushEvents = valueResultResultItem["PushEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["MergeRequestsEvents"].isNull())
|
||||
resultObject.mergeRequestsEvents = valueResultResultItem["MergeRequestsEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["TagPushEvents"].isNull())
|
||||
resultObject.tagPushEvents = valueResultResultItem["TagPushEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["NoteEvents"].isNull())
|
||||
resultObject.noteEvents = valueResultResultItem["NoteEvents"].asString() == "true";
|
||||
if(!valueResultResultItem["EnableSslVerification"].isNull())
|
||||
resultObject.enableSslVerification = valueResultResultItem["EnableSslVerification"].asString() == "true";
|
||||
if(!valueResultResultItem["LastTestResult"].isNull())
|
||||
resultObject.lastTestResult = valueResultResultItem["LastTestResult"].asString();
|
||||
if(!valueResultResultItem["Description"].isNull())
|
||||
resultObject.description = valueResultResultItem["Description"].asString();
|
||||
if(!valueResultResultItem["SecretToken"].isNull())
|
||||
resultObject.secretToken = valueResultResultItem["SecretToken"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListRepositoryWebhookResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string ListRepositoryWebhookResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListRepositoryWebhookResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListRepositoryWebhookResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<ListRepositoryWebhookResult::ResultItem> ListRepositoryWebhookResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string columnGuid;
|
||||
std::string columnType;
|
||||
bool isPartitionColumn;
|
||||
int position;
|
||||
bool isForeignKey;
|
||||
std::string caption;
|
||||
bool isPrimaryKey;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string columnGuid;
|
||||
std::string columnType;
|
||||
bool isPartitionColumn;
|
||||
int position;
|
||||
bool isForeignKey;
|
||||
std::string caption;
|
||||
bool isPrimaryKey;
|
||||
|
||||
@@ -37,11 +37,17 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getDataSourceType()const;
|
||||
void setDataSourceType(const std::string& dataSourceType);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string dataSourceType_;
|
||||
int pageSize_;
|
||||
int pageNum_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListQualityResultsByEntityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct QualityResults
|
||||
struct Data
|
||||
{
|
||||
struct RuleChecksItem
|
||||
{
|
||||
@@ -102,12 +102,20 @@ namespace AlibabaCloud
|
||||
ListQualityResultsByEntityResult();
|
||||
explicit ListQualityResultsByEntityResult(const std::string &payload);
|
||||
~ListQualityResultsByEntityResult();
|
||||
QualityResults getQualityResults()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
QualityResults qualityResults_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListQualityResultsByRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct QualityResults
|
||||
struct Data
|
||||
{
|
||||
struct RuleChecksItem
|
||||
{
|
||||
@@ -102,12 +102,20 @@ namespace AlibabaCloud
|
||||
ListQualityResultsByRuleResult();
|
||||
explicit ListQualityResultsByRuleResult(const std::string &payload);
|
||||
~ListQualityResultsByRuleResult();
|
||||
QualityResults getQualityResults()const;
|
||||
int getHttpStatusCode()const;
|
||||
Data getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
QualityResults qualityResults_;
|
||||
int httpStatusCode_;
|
||||
Data data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -66,6 +66,8 @@ void GetMetaTableColumnResult::parse(const std::string &payload)
|
||||
columnListItemObject.isForeignKey = dataNodeColumnListColumnListItem["IsForeignKey"].asString() == "true";
|
||||
if(!dataNodeColumnListColumnListItem["Caption"].isNull())
|
||||
columnListItemObject.caption = dataNodeColumnListColumnListItem["Caption"].asString();
|
||||
if(!dataNodeColumnListColumnListItem["Position"].isNull())
|
||||
columnListItemObject.position = std::stoi(dataNodeColumnListColumnListItem["Position"].asString());
|
||||
data_.columnList.push_back(columnListItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -100,6 +100,8 @@ void GetMetaTableFullInfoResult::parse(const std::string &payload)
|
||||
columnListItemObject.isForeignKey = dataNodeColumnListColumnListItem["IsForeignKey"].asString() == "true";
|
||||
if(!dataNodeColumnListColumnListItem["Caption"].isNull())
|
||||
columnListItemObject.caption = dataNodeColumnListColumnListItem["Caption"].asString();
|
||||
if(!dataNodeColumnListColumnListItem["Position"].isNull())
|
||||
columnListItemObject.position = std::stoi(dataNodeColumnListColumnListItem["Position"].asString());
|
||||
data_.columnList.push_back(columnListItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -38,6 +38,28 @@ void ListMetaDBRequest::setDataSourceType(const std::string& dataSourceType)
|
||||
setParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
int ListMetaDBRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMetaDBRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListMetaDBRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListMetaDBRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long ListMetaDBRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
|
||||
@@ -39,130 +39,158 @@ void ListQualityResultsByEntityResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto qualityResultsNode = value["QualityResults"];
|
||||
if(!qualityResultsNode["TotalCount"].isNull())
|
||||
qualityResults_.totalCount = std::stol(qualityResultsNode["TotalCount"].asString());
|
||||
if(!qualityResultsNode["PageNumber"].isNull())
|
||||
qualityResults_.pageNumber = std::stoi(qualityResultsNode["PageNumber"].asString());
|
||||
if(!qualityResultsNode["PageSize"].isNull())
|
||||
qualityResults_.pageSize = std::stoi(qualityResultsNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = qualityResultsNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = dataNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem ruleChecksItemObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = qualityResultsNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = qualityResultsNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = qualityResultsNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = qualityResultsNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = qualityResultsNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = qualityResultsNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = qualityResultsNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
Data::RuleChecksItem ruleChecksItemObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(dataNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = dataNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(dataNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(dataNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = dataNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = dataNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = dataNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = dataNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(dataNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = dataNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = dataNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = dataNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(dataNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(dataNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = dataNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = dataNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = dataNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = dataNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = dataNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(dataNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = dataNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = dataNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = dataNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(dataNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = dataNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = dataNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = dataNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = dataNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(dataNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(dataNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = dataNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = dataNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
Data::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
ruleChecksItemObject.referenceValue.push_back(referenceValueObject);
|
||||
}
|
||||
auto allSampleValueNode = qualityResultsNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
auto allSampleValueNode = dataNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
Data::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
ruleChecksItemObject.sampleValue.push_back(sampleValueObject);
|
||||
}
|
||||
qualityResults_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
data_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ListQualityResultsByEntityResult::QualityResults ListQualityResultsByEntityResult::getQualityResults()const
|
||||
int ListQualityResultsByEntityResult::getHttpStatusCode()const
|
||||
{
|
||||
return qualityResults_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListQualityResultsByEntityResult::Data ListQualityResultsByEntityResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByEntityResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByEntityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListQualityResultsByEntityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,130 +39,158 @@ void ListQualityResultsByRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto qualityResultsNode = value["QualityResults"];
|
||||
if(!qualityResultsNode["TotalCount"].isNull())
|
||||
qualityResults_.totalCount = std::stol(qualityResultsNode["TotalCount"].asString());
|
||||
if(!qualityResultsNode["PageNumber"].isNull())
|
||||
qualityResults_.pageNumber = std::stoi(qualityResultsNode["PageNumber"].asString());
|
||||
if(!qualityResultsNode["PageSize"].isNull())
|
||||
qualityResults_.pageSize = std::stoi(qualityResultsNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = qualityResultsNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allRuleChecksNode = dataNode["RuleChecks"]["RuleChecksItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItem : allRuleChecksNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem ruleChecksItemObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = qualityResultsNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = qualityResultsNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = qualityResultsNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = qualityResultsNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = qualityResultsNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = qualityResultsNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = qualityResultsNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = qualityResultsNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(qualityResultsNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = qualityResultsNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = qualityResultsNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = qualityResultsNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = qualityResultsNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = qualityResultsNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = qualityResultsNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = qualityResultsNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = qualityResultsNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = qualityResultsNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = qualityResultsNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = qualityResultsNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(qualityResultsNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = qualityResultsNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = qualityResultsNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(qualityResultsNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = qualityResultsNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = qualityResultsNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
Data::RuleChecksItem ruleChecksItemObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Id"].isNull())
|
||||
ruleChecksItemObject.id = std::stoi(dataNodeRuleChecksRuleChecksItem["Id"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TaskId"].isNull())
|
||||
ruleChecksItemObject.taskId = dataNodeRuleChecksRuleChecksItem["TaskId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EntityId"].isNull())
|
||||
ruleChecksItemObject.entityId = std::stoi(dataNodeRuleChecksRuleChecksItem["EntityId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleId"].isNull())
|
||||
ruleChecksItemObject.ruleId = std::stoi(dataNodeRuleChecksRuleChecksItem["RuleId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Property"].isNull())
|
||||
ruleChecksItemObject.property = dataNodeRuleChecksRuleChecksItem["Property"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BizDate"].isNull())
|
||||
ruleChecksItemObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DateType"].isNull())
|
||||
ruleChecksItemObject.dateType = dataNodeRuleChecksRuleChecksItem["DateType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ActualExpression"].isNull())
|
||||
ruleChecksItemObject.actualExpression = dataNodeRuleChecksRuleChecksItem["ActualExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MatchExpression"].isNull())
|
||||
ruleChecksItemObject.matchExpression = dataNodeRuleChecksRuleChecksItem["MatchExpression"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BlockType"].isNull())
|
||||
ruleChecksItemObject.blockType = std::stoi(dataNodeRuleChecksRuleChecksItem["BlockType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResult"].isNull())
|
||||
ruleChecksItemObject.checkResult = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResult"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].isNull())
|
||||
ruleChecksItemObject.checkResultStatus = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckResultStatus"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["MethodName"].isNull())
|
||||
ruleChecksItemObject.methodName = dataNodeRuleChecksRuleChecksItem["MethodName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Comment"].isNull())
|
||||
ruleChecksItemObject.comment = dataNodeRuleChecksRuleChecksItem["Comment"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WhereCondition"].isNull())
|
||||
ruleChecksItemObject.whereCondition = dataNodeRuleChecksRuleChecksItem["WhereCondition"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["BeginTime"].isNull())
|
||||
ruleChecksItemObject.beginTime = std::stol(dataNodeRuleChecksRuleChecksItem["BeginTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["EndTime"].isNull())
|
||||
ruleChecksItemObject.endTime = std::stol(dataNodeRuleChecksRuleChecksItem["EndTime"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TimeCost"].isNull())
|
||||
ruleChecksItemObject.timeCost = dataNodeRuleChecksRuleChecksItem["TimeCost"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalType"].isNull())
|
||||
ruleChecksItemObject.externalType = dataNodeRuleChecksRuleChecksItem["ExternalType"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExternalId"].isNull())
|
||||
ruleChecksItemObject.externalId = dataNodeRuleChecksRuleChecksItem["ExternalId"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].isNull())
|
||||
ruleChecksItemObject.discreteCheck = dataNodeRuleChecksRuleChecksItem["DiscreteCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["FixedCheck"].isNull())
|
||||
ruleChecksItemObject.fixedCheck = dataNodeRuleChecksRuleChecksItem["FixedCheck"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Trend"].isNull())
|
||||
ruleChecksItemObject.trend = dataNodeRuleChecksRuleChecksItem["Trend"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["WarningThreshold"].isNull())
|
||||
ruleChecksItemObject.warningThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["WarningThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].isNull())
|
||||
ruleChecksItemObject.criticalThreshold = std::stof(dataNodeRuleChecksRuleChecksItem["CriticalThreshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ExpectValue"].isNull())
|
||||
ruleChecksItemObject.expectValue = std::stof(dataNodeRuleChecksRuleChecksItem["ExpectValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["Op"].isNull())
|
||||
ruleChecksItemObject.op = dataNodeRuleChecksRuleChecksItem["Op"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ProjectName"].isNull())
|
||||
ruleChecksItemObject.projectName = dataNodeRuleChecksRuleChecksItem["ProjectName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TableName"].isNull())
|
||||
ruleChecksItemObject.tableName = dataNodeRuleChecksRuleChecksItem["TableName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateId"].isNull())
|
||||
ruleChecksItemObject.templateId = std::stoi(dataNodeRuleChecksRuleChecksItem["TemplateId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["TemplateName"].isNull())
|
||||
ruleChecksItemObject.templateName = dataNodeRuleChecksRuleChecksItem["TemplateName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["ResultString"].isNull())
|
||||
ruleChecksItemObject.resultString = dataNodeRuleChecksRuleChecksItem["ResultString"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerId"].isNull())
|
||||
ruleChecksItemObject.checkerId = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerId"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerType"].isNull())
|
||||
ruleChecksItemObject.checkerType = std::stoi(dataNodeRuleChecksRuleChecksItem["CheckerType"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["RuleName"].isNull())
|
||||
ruleChecksItemObject.ruleName = dataNodeRuleChecksRuleChecksItem["RuleName"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItem["IsPrediction"].isNull())
|
||||
ruleChecksItemObject.isPrediction = dataNodeRuleChecksRuleChecksItem["IsPrediction"].asString() == "true";
|
||||
if(!dataNodeRuleChecksRuleChecksItem["UpperValue"].isNull())
|
||||
ruleChecksItemObject.upperValue = std::stof(dataNodeRuleChecksRuleChecksItem["UpperValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["LowerValue"].isNull())
|
||||
ruleChecksItemObject.lowerValue = std::stof(dataNodeRuleChecksRuleChecksItem["LowerValue"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItem["CheckerName"].isNull())
|
||||
ruleChecksItemObject.checkerName = dataNodeRuleChecksRuleChecksItem["CheckerName"].asString();
|
||||
auto allReferenceValueNode = dataNodeRuleChecksRuleChecksItem["ReferenceValue"]["ReferenceValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem : allReferenceValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(qualityResultsNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
Data::RuleChecksItem::ReferenceValueItem referenceValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].isNull())
|
||||
referenceValueObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].isNull())
|
||||
referenceValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].isNull())
|
||||
referenceValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Value"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].isNull())
|
||||
referenceValueObject.threshold = std::stof(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["Threshold"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].isNull())
|
||||
referenceValueObject.singleCheckResult = std::stoi(dataNodeRuleChecksRuleChecksItemReferenceValueReferenceValueItem["SingleCheckResult"].asString());
|
||||
ruleChecksItemObject.referenceValue.push_back(referenceValueObject);
|
||||
}
|
||||
auto allSampleValueNode = qualityResultsNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
auto allSampleValueNode = dataNodeRuleChecksRuleChecksItem["SampleValue"]["SampleValueItem"];
|
||||
for (auto dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem : allSampleValueNode)
|
||||
{
|
||||
QualityResults::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(qualityResultsNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
Data::RuleChecksItem::SampleValueItem sampleValueObject;
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].isNull())
|
||||
sampleValueObject.bizDate = std::stol(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["BizDate"].asString());
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].isNull())
|
||||
sampleValueObject.discreteProperty = dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["DiscreteProperty"].asString();
|
||||
if(!dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].isNull())
|
||||
sampleValueObject.value = std::stof(dataNodeRuleChecksRuleChecksItemSampleValueSampleValueItem["Value"].asString());
|
||||
ruleChecksItemObject.sampleValue.push_back(sampleValueObject);
|
||||
}
|
||||
qualityResults_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
data_.ruleChecks.push_back(ruleChecksItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
ListQualityResultsByRuleResult::QualityResults ListQualityResultsByRuleResult::getQualityResults()const
|
||||
int ListQualityResultsByRuleResult::getHttpStatusCode()const
|
||||
{
|
||||
return qualityResults_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListQualityResultsByRuleResult::Data ListQualityResultsByRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByRuleResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListQualityResultsByRuleResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListQualityResultsByRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,8 @@ namespace AlibabaCloud
|
||||
void setBackupStorageType(const std::string& backupStorageType);
|
||||
int getDuplicationArchivePeriod()const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
int getBackupLogIntervalSeconds()const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getCrossAliyunId()const;
|
||||
void setCrossAliyunId(const std::string& crossAliyunId);
|
||||
bool getAutoStartBackup()const;
|
||||
@@ -71,6 +73,8 @@ namespace AlibabaCloud
|
||||
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
|
||||
std::string getBackupObjects()const;
|
||||
void setBackupObjects(const std::string& backupObjects);
|
||||
long getBackupRateLimit()const;
|
||||
void setBackupRateLimit(long backupRateLimit);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getSourceEndpointPort()const;
|
||||
@@ -107,10 +111,12 @@ namespace AlibabaCloud
|
||||
bool enableBackupLog_;
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string crossAliyunId_;
|
||||
bool autoStartBackup_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
long backupRateLimit_;
|
||||
std::string ownerId_;
|
||||
int sourceEndpointPort_;
|
||||
int backupRetentionPeriod_;
|
||||
|
||||
@@ -181,6 +181,17 @@ void ConfigureBackupPlanRequest::setDuplicationArchivePeriod(int duplicationArch
|
||||
setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
|
||||
}
|
||||
|
||||
int ConfigureBackupPlanRequest::getBackupLogIntervalSeconds()const
|
||||
{
|
||||
return backupLogIntervalSeconds_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds)
|
||||
{
|
||||
backupLogIntervalSeconds_ = backupLogIntervalSeconds;
|
||||
setParameter("BackupLogIntervalSeconds", std::to_string(backupLogIntervalSeconds));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getCrossAliyunId()const
|
||||
{
|
||||
return crossAliyunId_;
|
||||
@@ -225,6 +236,17 @@ void ConfigureBackupPlanRequest::setBackupObjects(const std::string& backupObjec
|
||||
setParameter("BackupObjects", backupObjects);
|
||||
}
|
||||
|
||||
long ConfigureBackupPlanRequest::getBackupRateLimit()const
|
||||
{
|
||||
return backupRateLimit_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setBackupRateLimit(long backupRateLimit)
|
||||
{
|
||||
backupRateLimit_ = backupRateLimit;
|
||||
setParameter("BackupRateLimit", std::to_string(backupRateLimit));
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -53,16 +53,16 @@ void DescribeRestoreRangeInfoResult::parse(const std::string &payload)
|
||||
itemsObject.endTimestampForRestore = std::stol(valueItemsDBSRecoverRange["EndTimestampForRestore"].asString());
|
||||
if(!valueItemsDBSRecoverRange["RangeType"].isNull())
|
||||
itemsObject.rangeType = valueItemsDBSRecoverRange["RangeType"].asString();
|
||||
auto allFullBackupListNode = allItemsNode["FullBackupList"]["FullBackupDetail"];
|
||||
for (auto allItemsNodeFullBackupListFullBackupDetail : allFullBackupListNode)
|
||||
auto allFullBackupListNode = valueItemsDBSRecoverRange["FullBackupList"]["FullBackupDetail"];
|
||||
for (auto valueItemsDBSRecoverRangeFullBackupListFullBackupDetail : allFullBackupListNode)
|
||||
{
|
||||
DBSRecoverRange::FullBackupDetail fullBackupListObject;
|
||||
if(!allItemsNodeFullBackupListFullBackupDetail["BackupSetId"].isNull())
|
||||
fullBackupListObject.backupSetId = allItemsNodeFullBackupListFullBackupDetail["BackupSetId"].asString();
|
||||
if(!allItemsNodeFullBackupListFullBackupDetail["StartTime"].isNull())
|
||||
fullBackupListObject.startTime = std::stol(allItemsNodeFullBackupListFullBackupDetail["StartTime"].asString());
|
||||
if(!allItemsNodeFullBackupListFullBackupDetail["EndTime"].isNull())
|
||||
fullBackupListObject.endTime = std::stol(allItemsNodeFullBackupListFullBackupDetail["EndTime"].asString());
|
||||
if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].isNull())
|
||||
fullBackupListObject.backupSetId = valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["BackupSetId"].asString();
|
||||
if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].isNull())
|
||||
fullBackupListObject.startTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["StartTime"].asString());
|
||||
if(!valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["EndTime"].isNull())
|
||||
fullBackupListObject.endTime = std::stol(valueItemsDBSRecoverRangeFullBackupListFullBackupDetail["EndTime"].asString());
|
||||
itemsObject.fullBackupList.push_back(fullBackupListObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
|
||||
@@ -36,6 +36,13 @@ namespace AlibabaCloud
|
||||
int size;
|
||||
std::string category;
|
||||
std::string performanceLevel;
|
||||
std::string device;
|
||||
std::string snapshotId;
|
||||
bool deleteWithInstance;
|
||||
bool encrypted;
|
||||
std::string kmsKeyId;
|
||||
std::string diskName;
|
||||
std::string description;
|
||||
};
|
||||
struct SystemDiskConfig
|
||||
{
|
||||
|
||||
@@ -41,6 +41,13 @@ void CreateAutoProvisioningGroupRequest::setLaunchConfigurationDataDisk(const st
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".Size", std::to_string(launchConfigurationDataDiskObj.size));
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".Category", launchConfigurationDataDiskObj.category);
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".PerformanceLevel", launchConfigurationDataDiskObj.performanceLevel);
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".Device", launchConfigurationDataDiskObj.device);
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".SnapshotId", launchConfigurationDataDiskObj.snapshotId);
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".DeleteWithInstance", launchConfigurationDataDiskObj.deleteWithInstance ? "true" : "false");
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".Encrypted", launchConfigurationDataDiskObj.encrypted ? "true" : "false");
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".KmsKeyId", launchConfigurationDataDiskObj.kmsKeyId);
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".DiskName", launchConfigurationDataDiskObj.diskName);
|
||||
setParameter(launchConfigurationDataDiskObjStr + ".Description", launchConfigurationDataDiskObj.description);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -113,6 +113,8 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/GetClusterVolumesResult.h
|
||||
include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h
|
||||
include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h
|
||||
include/alibabacloud/ehpc/model/GetHealthMonitorLogsRequest.h
|
||||
include/alibabacloud/ehpc/model/GetHealthMonitorLogsResult.h
|
||||
include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h
|
||||
include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h
|
||||
include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h
|
||||
@@ -121,6 +123,8 @@ set(ehpc_public_header_model
|
||||
include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h
|
||||
include/alibabacloud/ehpc/model/GetWorkbenchTokenRequest.h
|
||||
include/alibabacloud/ehpc/model/GetWorkbenchTokenResult.h
|
||||
include/alibabacloud/ehpc/model/InitializeEHPCRequest.h
|
||||
include/alibabacloud/ehpc/model/InitializeEHPCResult.h
|
||||
include/alibabacloud/ehpc/model/InstallSoftwareRequest.h
|
||||
include/alibabacloud/ehpc/model/InstallSoftwareResult.h
|
||||
include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h
|
||||
@@ -350,6 +354,8 @@ set(ehpc_src
|
||||
src/model/GetClusterVolumesResult.cc
|
||||
src/model/GetGWSConnectTicketRequest.cc
|
||||
src/model/GetGWSConnectTicketResult.cc
|
||||
src/model/GetHealthMonitorLogsRequest.cc
|
||||
src/model/GetHealthMonitorLogsResult.cc
|
||||
src/model/GetHybridClusterConfigRequest.cc
|
||||
src/model/GetHybridClusterConfigResult.cc
|
||||
src/model/GetIfEcsTypeSupportHtConfigRequest.cc
|
||||
@@ -358,6 +364,8 @@ set(ehpc_src
|
||||
src/model/GetVisualServiceStatusResult.cc
|
||||
src/model/GetWorkbenchTokenRequest.cc
|
||||
src/model/GetWorkbenchTokenResult.cc
|
||||
src/model/InitializeEHPCRequest.cc
|
||||
src/model/InitializeEHPCResult.cc
|
||||
src/model/InstallSoftwareRequest.cc
|
||||
src/model/InstallSoftwareResult.cc
|
||||
src/model/InvokeShellCommandRequest.cc
|
||||
|
||||
@@ -114,6 +114,8 @@
|
||||
#include "model/GetClusterVolumesResult.h"
|
||||
#include "model/GetGWSConnectTicketRequest.h"
|
||||
#include "model/GetGWSConnectTicketResult.h"
|
||||
#include "model/GetHealthMonitorLogsRequest.h"
|
||||
#include "model/GetHealthMonitorLogsResult.h"
|
||||
#include "model/GetHybridClusterConfigRequest.h"
|
||||
#include "model/GetHybridClusterConfigResult.h"
|
||||
#include "model/GetIfEcsTypeSupportHtConfigRequest.h"
|
||||
@@ -122,6 +124,8 @@
|
||||
#include "model/GetVisualServiceStatusResult.h"
|
||||
#include "model/GetWorkbenchTokenRequest.h"
|
||||
#include "model/GetWorkbenchTokenResult.h"
|
||||
#include "model/InitializeEHPCRequest.h"
|
||||
#include "model/InitializeEHPCResult.h"
|
||||
#include "model/InstallSoftwareRequest.h"
|
||||
#include "model/InstallSoftwareResult.h"
|
||||
#include "model/InvokeShellCommandRequest.h"
|
||||
@@ -403,6 +407,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetGWSConnectTicketResult> GetGWSConnectTicketOutcome;
|
||||
typedef std::future<GetGWSConnectTicketOutcome> GetGWSConnectTicketOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetGWSConnectTicketRequest&, const GetGWSConnectTicketOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetGWSConnectTicketAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHealthMonitorLogsResult> GetHealthMonitorLogsOutcome;
|
||||
typedef std::future<GetHealthMonitorLogsOutcome> GetHealthMonitorLogsOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetHealthMonitorLogsRequest&, const GetHealthMonitorLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHealthMonitorLogsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetHybridClusterConfigResult> GetHybridClusterConfigOutcome;
|
||||
typedef std::future<GetHybridClusterConfigOutcome> GetHybridClusterConfigOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetHybridClusterConfigRequest&, const GetHybridClusterConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetHybridClusterConfigAsyncHandler;
|
||||
@@ -415,6 +422,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetWorkbenchTokenResult> GetWorkbenchTokenOutcome;
|
||||
typedef std::future<GetWorkbenchTokenOutcome> GetWorkbenchTokenOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::GetWorkbenchTokenRequest&, const GetWorkbenchTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWorkbenchTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitializeEHPCResult> InitializeEHPCOutcome;
|
||||
typedef std::future<InitializeEHPCOutcome> InitializeEHPCOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::InitializeEHPCRequest&, const InitializeEHPCOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitializeEHPCAsyncHandler;
|
||||
typedef Outcome<Error, Model::InstallSoftwareResult> InstallSoftwareOutcome;
|
||||
typedef std::future<InstallSoftwareOutcome> InstallSoftwareOutcomeCallable;
|
||||
typedef std::function<void(const EHPCClient*, const Model::InstallSoftwareRequest&, const InstallSoftwareOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InstallSoftwareAsyncHandler;
|
||||
@@ -759,6 +769,9 @@ namespace AlibabaCloud
|
||||
GetGWSConnectTicketOutcome getGWSConnectTicket(const Model::GetGWSConnectTicketRequest &request)const;
|
||||
void getGWSConnectTicketAsync(const Model::GetGWSConnectTicketRequest& request, const GetGWSConnectTicketAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetGWSConnectTicketOutcomeCallable getGWSConnectTicketCallable(const Model::GetGWSConnectTicketRequest& request) const;
|
||||
GetHealthMonitorLogsOutcome getHealthMonitorLogs(const Model::GetHealthMonitorLogsRequest &request)const;
|
||||
void getHealthMonitorLogsAsync(const Model::GetHealthMonitorLogsRequest& request, const GetHealthMonitorLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHealthMonitorLogsOutcomeCallable getHealthMonitorLogsCallable(const Model::GetHealthMonitorLogsRequest& request) const;
|
||||
GetHybridClusterConfigOutcome getHybridClusterConfig(const Model::GetHybridClusterConfigRequest &request)const;
|
||||
void getHybridClusterConfigAsync(const Model::GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetHybridClusterConfigOutcomeCallable getHybridClusterConfigCallable(const Model::GetHybridClusterConfigRequest& request) const;
|
||||
@@ -771,6 +784,9 @@ namespace AlibabaCloud
|
||||
GetWorkbenchTokenOutcome getWorkbenchToken(const Model::GetWorkbenchTokenRequest &request)const;
|
||||
void getWorkbenchTokenAsync(const Model::GetWorkbenchTokenRequest& request, const GetWorkbenchTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetWorkbenchTokenOutcomeCallable getWorkbenchTokenCallable(const Model::GetWorkbenchTokenRequest& request) const;
|
||||
InitializeEHPCOutcome initializeEHPC(const Model::InitializeEHPCRequest &request)const;
|
||||
void initializeEHPCAsync(const Model::InitializeEHPCRequest& request, const InitializeEHPCAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitializeEHPCOutcomeCallable initializeEHPCCallable(const Model::InitializeEHPCRequest& request) const;
|
||||
InstallSoftwareOutcome installSoftware(const Model::InstallSoftwareRequest &request)const;
|
||||
void installSoftwareAsync(const Model::InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InstallSoftwareOutcomeCallable installSoftwareCallable(const Model::InstallSoftwareRequest& request) const;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getSystemDiskLevel()const;
|
||||
void setSystemDiskLevel(const std::string& systemDiskLevel);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
bool getAllocatePublicAddress()const;
|
||||
@@ -92,6 +94,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string imageId_;
|
||||
std::string systemDiskLevel_;
|
||||
std::string clientToken_;
|
||||
bool allocatePublicAddress_;
|
||||
int internetMaxBandWidthOut_;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setImageId(const std::string& imageId);
|
||||
int getMemory()const;
|
||||
void setMemory(int memory);
|
||||
std::string getSystemDiskLevel()const;
|
||||
void setSystemDiskLevel(const std::string& systemDiskLevel);
|
||||
bool getAllocatePublicAddress()const;
|
||||
void setAllocatePublicAddress(bool allocatePublicAddress);
|
||||
int getInternetMaxBandWidthOut()const;
|
||||
@@ -95,6 +97,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string imageId_;
|
||||
int memory_;
|
||||
std::string systemDiskLevel_;
|
||||
bool allocatePublicAddress_;
|
||||
int internetMaxBandWidthOut_;
|
||||
std::string resourceAmountType_;
|
||||
|
||||
@@ -119,6 +119,8 @@ namespace AlibabaCloud
|
||||
void setSccClusterId(const std::string& sccClusterId);
|
||||
std::string getImageId()const;
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getSystemDiskLevel()const;
|
||||
void setSystemDiskLevel(const std::string& systemDiskLevel);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getEhpcVersion()const;
|
||||
@@ -192,6 +194,7 @@ namespace AlibabaCloud
|
||||
std::string zoneId_;
|
||||
std::string sccClusterId_;
|
||||
std::string imageId_;
|
||||
std::string systemDiskLevel_;
|
||||
std::string clientToken_;
|
||||
std::string ehpcVersion_;
|
||||
std::string accountType_;
|
||||
|
||||
@@ -14,47 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT RenderResourcePoolXmlRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_EHPC_EXPORT GetHealthMonitorLogsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RenderResourcePoolXmlRequest();
|
||||
~RenderResourcePoolXmlRequest();
|
||||
GetHealthMonitorLogsRequest();
|
||||
~GetHealthMonitorLogsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourcePoolId()const;
|
||||
void setResourcePoolId(const std::string& resourcePoolId);
|
||||
int getEndTime()const;
|
||||
void setEndTime(int endTime);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
int getStartTime()const;
|
||||
void setStartTime(int startTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
bool getEnableReverse()const;
|
||||
void setEnableReverse(bool enableReverse);
|
||||
std::string getFilter()const;
|
||||
void setFilter(const std::string& filter);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string resourcePoolId_;
|
||||
int endTime_;
|
||||
std::string clusterId_;
|
||||
int startTime_;
|
||||
std::string accessKeyId_;
|
||||
bool enableReverse_;
|
||||
std::string filter_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_RENDERRESOURCEPOOLXMLREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSRESULT_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 GetHealthMonitorLogsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Logs
|
||||
{
|
||||
struct CheckListItem
|
||||
{
|
||||
std::string checkName;
|
||||
std::string checkSolution;
|
||||
std::string checkInfo;
|
||||
std::string checkDescription;
|
||||
};
|
||||
std::string sceneName;
|
||||
std::string instanceId;
|
||||
std::vector<Logs::CheckListItem> checkList;
|
||||
std::string sceneDescription;
|
||||
std::string itemName;
|
||||
std::string level;
|
||||
int time;
|
||||
std::string itemDescription;
|
||||
std::string hostName;
|
||||
std::string healthId;
|
||||
};
|
||||
|
||||
|
||||
GetHealthMonitorLogsResult();
|
||||
explicit GetHealthMonitorLogsResult(const std::string &payload);
|
||||
~GetHealthMonitorLogsResult();
|
||||
std::vector<Logs> getLogInfo()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Logs> logInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_GETHEALTHMONITORLOGSRESULT_H_
|
||||
@@ -14,38 +14,35 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_DELETEFLOWPROJECTBYIDREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_DELETEFLOWPROJECTBYIDREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT DeleteFlowProjectByIdRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_EHPC_EXPORT InitializeEHPCRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteFlowProjectByIdRequest();
|
||||
~DeleteFlowProjectByIdRequest();
|
||||
InitializeEHPCRequest();
|
||||
~InitializeEHPCRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_DELETEFLOWPROJECTBYIDREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_DELETEPARAGRAPHRESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_DELETEPARAGRAPHRESULT_H_
|
||||
#ifndef ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCRESULT_H_
|
||||
#define ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
#include <alibabacloud/ehpc/EHPCExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
namespace EHPC
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT DeleteParagraphResult : public ServiceResult
|
||||
class ALIBABACLOUD_EHPC_EXPORT InitializeEHPCResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteParagraphResult();
|
||||
explicit DeleteParagraphResult(const std::string &payload);
|
||||
~DeleteParagraphResult();
|
||||
InitializeEHPCResult();
|
||||
explicit InitializeEHPCResult(const std::string &payload);
|
||||
~InitializeEHPCResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_DELETEPARAGRAPHRESULT_H_
|
||||
#endif // !ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCRESULT_H_
|
||||
@@ -36,7 +36,13 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string status;
|
||||
std::string description;
|
||||
std::string vpcId;
|
||||
std::string deployMode;
|
||||
std::string osTag;
|
||||
std::string id;
|
||||
std::string schedulerType;
|
||||
std::string clientVersion;
|
||||
std::string accountType;
|
||||
std::string name;
|
||||
std::string location;
|
||||
};
|
||||
|
||||
@@ -69,6 +69,7 @@ namespace AlibabaCloud
|
||||
float computeSpotPriceLimit;
|
||||
std::string nodeSuffix;
|
||||
int count;
|
||||
std::string clientVersion;
|
||||
std::string name;
|
||||
std::string deployMode;
|
||||
TotalResources totalResources;
|
||||
|
||||
@@ -61,6 +61,7 @@ namespace AlibabaCloud
|
||||
std::string id;
|
||||
std::string regionId;
|
||||
std::string lockReason;
|
||||
std::string instanceType;
|
||||
std::string hostName;
|
||||
std::string spotStrategy;
|
||||
};
|
||||
|
||||
@@ -43,21 +43,30 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getFilter()const;
|
||||
void setFilter(const std::string& filter);
|
||||
std::string getPrivateIpAddress()const;
|
||||
void setPrivateIpAddress(const std::string& privateIpAddress);
|
||||
std::string getSequence()const;
|
||||
void setSequence(const std::string& sequence);
|
||||
std::string getHostName()const;
|
||||
void setHostName(const std::string& hostName);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSortBy()const;
|
||||
void setSortBy(const std::string& sortBy);
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
std::string clusterId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string filter_;
|
||||
std::string privateIpAddress_;
|
||||
std::string sequence_;
|
||||
std::string hostName_;
|
||||
int pageSize_;
|
||||
std::string sortBy_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,29 +46,30 @@ namespace AlibabaCloud
|
||||
int cpu;
|
||||
int gpu;
|
||||
};
|
||||
std::string status;
|
||||
std::string imageOwnerAlias;
|
||||
std::string publicIpAddress;
|
||||
bool createdByEhpc;
|
||||
std::string version;
|
||||
TotalResources totalResources;
|
||||
std::string expiredTime;
|
||||
std::string imageId;
|
||||
std::string lockReason;
|
||||
std::string instanceType;
|
||||
std::string hostName;
|
||||
std::string spotStrategy;
|
||||
std::string status;
|
||||
std::string zoneId;
|
||||
std::string vSwitchId;
|
||||
bool expired;
|
||||
std::vector<std::string> roles;
|
||||
std::string addTime;
|
||||
UsedResources usedResources;
|
||||
std::string publicIpAddress;
|
||||
bool createdByEhpc;
|
||||
std::string createMode;
|
||||
std::string vpcId;
|
||||
std::string version;
|
||||
TotalResources totalResources;
|
||||
std::string expiredTime;
|
||||
std::string imageId;
|
||||
std::string ipAddress;
|
||||
bool htEnabled;
|
||||
std::string id;
|
||||
std::string regionId;
|
||||
std::string lockReason;
|
||||
std::string hostName;
|
||||
std::string spotStrategy;
|
||||
std::string location;
|
||||
};
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setStderrRedirectPath(const std::string& stderrRedirectPath);
|
||||
std::string getRunasUserPassword()const;
|
||||
void setRunasUserPassword(const std::string& runasUserPassword);
|
||||
std::string getClockTime()const;
|
||||
void setClockTime(const std::string& clockTime);
|
||||
std::string getCommandLine()const;
|
||||
void setCommandLine(const std::string& commandLine);
|
||||
std::string getJobQueue()const;
|
||||
@@ -51,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setUnzipCmd(const std::string& unzipCmd);
|
||||
std::string getPackagePath()const;
|
||||
void setPackagePath(const std::string& packagePath);
|
||||
std::string getMem()const;
|
||||
void setMem(const std::string& mem);
|
||||
std::string getStdoutRedirectPath()const;
|
||||
void setStdoutRedirectPath(const std::string& stdoutRedirectPath);
|
||||
std::string getVariables()const;
|
||||
@@ -63,8 +67,16 @@ namespace AlibabaCloud
|
||||
void setClusterId(const std::string& clusterId);
|
||||
bool getReRunable()const;
|
||||
void setReRunable(bool reRunable);
|
||||
int getThread()const;
|
||||
void setThread(int thread);
|
||||
int getPriority()const;
|
||||
void setPriority(int priority);
|
||||
int getGpu()const;
|
||||
void setGpu(int gpu);
|
||||
int getNode()const;
|
||||
void setNode(int node);
|
||||
int getTask()const;
|
||||
void setTask(int task);
|
||||
std::string getInputFileUrl()const;
|
||||
void setInputFileUrl(const std::string& inputFileUrl);
|
||||
std::string getName()const;
|
||||
@@ -75,19 +87,25 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string stderrRedirectPath_;
|
||||
std::string runasUserPassword_;
|
||||
std::string clockTime_;
|
||||
std::string commandLine_;
|
||||
std::string jobQueue_;
|
||||
std::string accessKeyId_;
|
||||
std::string arrayRequest_;
|
||||
std::string unzipCmd_;
|
||||
std::string packagePath_;
|
||||
std::string mem_;
|
||||
std::string stdoutRedirectPath_;
|
||||
std::string variables_;
|
||||
std::string postCmdLine_;
|
||||
std::string runasUser_;
|
||||
std::string clusterId_;
|
||||
bool reRunable_;
|
||||
int thread_;
|
||||
int priority_;
|
||||
int gpu_;
|
||||
int node_;
|
||||
int task_;
|
||||
std::string inputFileUrl_;
|
||||
std::string name_;
|
||||
std::string containerId_;
|
||||
|
||||
@@ -1707,6 +1707,42 @@ EHPCClient::GetGWSConnectTicketOutcomeCallable EHPCClient::getGWSConnectTicketCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::GetHealthMonitorLogsOutcome EHPCClient::getHealthMonitorLogs(const GetHealthMonitorLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetHealthMonitorLogsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetHealthMonitorLogsOutcome(GetHealthMonitorLogsResult(outcome.result()));
|
||||
else
|
||||
return GetHealthMonitorLogsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::getHealthMonitorLogsAsync(const GetHealthMonitorLogsRequest& request, const GetHealthMonitorLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getHealthMonitorLogs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::GetHealthMonitorLogsOutcomeCallable EHPCClient::getHealthMonitorLogsCallable(const GetHealthMonitorLogsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetHealthMonitorLogsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getHealthMonitorLogs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::GetHybridClusterConfigOutcome EHPCClient::getHybridClusterConfig(const GetHybridClusterConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1851,6 +1887,42 @@ EHPCClient::GetWorkbenchTokenOutcomeCallable EHPCClient::getWorkbenchTokenCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::InitializeEHPCOutcome EHPCClient::initializeEHPC(const InitializeEHPCRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InitializeEHPCOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InitializeEHPCOutcome(InitializeEHPCResult(outcome.result()));
|
||||
else
|
||||
return InitializeEHPCOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::initializeEHPCAsync(const InitializeEHPCRequest& request, const InitializeEHPCAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, initializeEHPC(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::InitializeEHPCOutcomeCallable EHPCClient::initializeEHPCCallable(const InitializeEHPCRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InitializeEHPCOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->initializeEHPC(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::InstallSoftwareOutcome EHPCClient::installSoftware(const InstallSoftwareRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user