Compare commits
17 Commits
Slb-patch
...
EHPC-patch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e8da023b8 | ||
|
|
34b35e8f02 | ||
|
|
3387ef3a68 | ||
|
|
b1f19958a7 | ||
|
|
c5062df7f5 | ||
|
|
f9b117f5a6 | ||
|
|
2a6631ce12 | ||
|
|
639137bd27 | ||
|
|
8a601bc5ae | ||
|
|
0a08e77127 | ||
|
|
46971a81db | ||
|
|
5bde791941 | ||
|
|
0793ffd5d4 | ||
|
|
92791badbf | ||
|
|
fbd8bebfed | ||
|
|
15efd0abf3 | ||
|
|
ec2fdb4ecb |
51
CHANGELOG
51
CHANGELOG
@@ -1,3 +1,54 @@
|
||||
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.
|
||||
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -38,6 +38,17 @@ void AddNodesRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getSystemDiskLevel()const
|
||||
{
|
||||
return systemDiskLevel_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setSystemDiskLevel(const std::string& systemDiskLevel)
|
||||
{
|
||||
systemDiskLevel_ = systemDiskLevel;
|
||||
setParameter("SystemDiskLevel", systemDiskLevel);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void ApplyNodesRequest::setMemory(int memory)
|
||||
setParameter("Memory", std::to_string(memory));
|
||||
}
|
||||
|
||||
std::string ApplyNodesRequest::getSystemDiskLevel()const
|
||||
{
|
||||
return systemDiskLevel_;
|
||||
}
|
||||
|
||||
void ApplyNodesRequest::setSystemDiskLevel(const std::string& systemDiskLevel)
|
||||
{
|
||||
systemDiskLevel_ = systemDiskLevel;
|
||||
setParameter("SystemDiskLevel", systemDiskLevel);
|
||||
}
|
||||
|
||||
bool ApplyNodesRequest::getAllocatePublicAddress()const
|
||||
{
|
||||
return allocatePublicAddress_;
|
||||
|
||||
@@ -367,6 +367,17 @@ void CreateClusterRequest::setImageId(const std::string& imageId)
|
||||
setParameter("ImageId", imageId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getSystemDiskLevel()const
|
||||
{
|
||||
return systemDiskLevel_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setSystemDiskLevel(const std::string& systemDiskLevel)
|
||||
{
|
||||
systemDiskLevel_ = systemDiskLevel;
|
||||
setParameter("SystemDiskLevel", systemDiskLevel);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
|
||||
@@ -61,16 +61,16 @@ void DescribeGWSInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.name = valueInstancesInstanceInfo["Name"].asString();
|
||||
if(!valueInstancesInstanceInfo["UserName"].isNull())
|
||||
instancesObject.userName = valueInstancesInstanceInfo["UserName"].asString();
|
||||
auto allAppListNode = allInstancesNode["AppList"]["AppInfo"];
|
||||
for (auto allInstancesNodeAppListAppInfo : allAppListNode)
|
||||
auto allAppListNode = valueInstancesInstanceInfo["AppList"]["AppInfo"];
|
||||
for (auto valueInstancesInstanceInfoAppListAppInfo : allAppListNode)
|
||||
{
|
||||
InstanceInfo::AppInfo appListObject;
|
||||
if(!allInstancesNodeAppListAppInfo["AppName"].isNull())
|
||||
appListObject.appName = allInstancesNodeAppListAppInfo["AppName"].asString();
|
||||
if(!allInstancesNodeAppListAppInfo["AppPath"].isNull())
|
||||
appListObject.appPath = allInstancesNodeAppListAppInfo["AppPath"].asString();
|
||||
if(!allInstancesNodeAppListAppInfo["AppArgs"].isNull())
|
||||
appListObject.appArgs = allInstancesNodeAppListAppInfo["AppArgs"].asString();
|
||||
if(!valueInstancesInstanceInfoAppListAppInfo["AppName"].isNull())
|
||||
appListObject.appName = valueInstancesInstanceInfoAppListAppInfo["AppName"].asString();
|
||||
if(!valueInstancesInstanceInfoAppListAppInfo["AppPath"].isNull())
|
||||
appListObject.appPath = valueInstancesInstanceInfoAppListAppInfo["AppPath"].asString();
|
||||
if(!valueInstancesInstanceInfoAppListAppInfo["AppArgs"].isNull())
|
||||
appListObject.appArgs = valueInstancesInstanceInfoAppListAppInfo["AppArgs"].asString();
|
||||
instancesObject.appList.push_back(appListObject);
|
||||
}
|
||||
instances_.push_back(instancesObject);
|
||||
|
||||
@@ -63,22 +63,22 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
|
||||
queuesObject.minNodesInQueue = std::stoi(valueQueuesQueueInfo["MinNodesInQueue"].asString());
|
||||
if(!valueQueuesQueueInfo["QueueImageId"].isNull())
|
||||
queuesObject.queueImageId = valueQueuesQueueInfo["QueueImageId"].asString();
|
||||
auto allInstanceTypesNode = allQueuesNode["InstanceTypes"]["InstanceTypeInfo"];
|
||||
for (auto allQueuesNodeInstanceTypesInstanceTypeInfo : allInstanceTypesNode)
|
||||
auto allInstanceTypesNode = valueQueuesQueueInfo["InstanceTypes"]["InstanceTypeInfo"];
|
||||
for (auto valueQueuesQueueInfoInstanceTypesInstanceTypeInfo : allInstanceTypesNode)
|
||||
{
|
||||
QueueInfo::InstanceTypeInfo instanceTypesObject;
|
||||
if(!allQueuesNodeInstanceTypesInstanceTypeInfo["InstanceType"].isNull())
|
||||
instanceTypesObject.instanceType = allQueuesNodeInstanceTypesInstanceTypeInfo["InstanceType"].asString();
|
||||
if(!allQueuesNodeInstanceTypesInstanceTypeInfo["SpotStrategy"].isNull())
|
||||
instanceTypesObject.spotStrategy = allQueuesNodeInstanceTypesInstanceTypeInfo["SpotStrategy"].asString();
|
||||
if(!allQueuesNodeInstanceTypesInstanceTypeInfo["SpotPriceLimit"].isNull())
|
||||
instanceTypesObject.spotPriceLimit = std::stof(allQueuesNodeInstanceTypesInstanceTypeInfo["SpotPriceLimit"].asString());
|
||||
if(!allQueuesNodeInstanceTypesInstanceTypeInfo["ZoneId"].isNull())
|
||||
instanceTypesObject.zoneId = allQueuesNodeInstanceTypesInstanceTypeInfo["ZoneId"].asString();
|
||||
if(!allQueuesNodeInstanceTypesInstanceTypeInfo["VSwitchId"].isNull())
|
||||
instanceTypesObject.vSwitchId = allQueuesNodeInstanceTypesInstanceTypeInfo["VSwitchId"].asString();
|
||||
if(!allQueuesNodeInstanceTypesInstanceTypeInfo["HostNamePrefix"].isNull())
|
||||
instanceTypesObject.hostNamePrefix = allQueuesNodeInstanceTypesInstanceTypeInfo["HostNamePrefix"].asString();
|
||||
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].isNull())
|
||||
instanceTypesObject.instanceType = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].asString();
|
||||
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].isNull())
|
||||
instanceTypesObject.spotStrategy = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].asString();
|
||||
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].isNull())
|
||||
instanceTypesObject.spotPriceLimit = std::stof(valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].asString());
|
||||
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].isNull())
|
||||
instanceTypesObject.zoneId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].asString();
|
||||
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].isNull())
|
||||
instanceTypesObject.vSwitchId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].asString();
|
||||
if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].isNull())
|
||||
instanceTypesObject.hostNamePrefix = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].asString();
|
||||
queuesObject.instanceTypes.push_back(instanceTypesObject);
|
||||
}
|
||||
queues_.push_back(queuesObject);
|
||||
|
||||
@@ -61,12 +61,12 @@ void GetClusterVolumesResult::parse(const std::string &payload)
|
||||
volumesObject.jobQueue = valueVolumesVolumeInfo["JobQueue"].asString();
|
||||
if(!valueVolumesVolumeInfo["MustKeep"].isNull())
|
||||
volumesObject.mustKeep = valueVolumesVolumeInfo["MustKeep"].asString() == "true";
|
||||
auto allRolesNode = allVolumesNode["Roles"]["RoleInfo"];
|
||||
for (auto allVolumesNodeRolesRoleInfo : allRolesNode)
|
||||
auto allRolesNode = valueVolumesVolumeInfo["Roles"]["RoleInfo"];
|
||||
for (auto valueVolumesVolumeInfoRolesRoleInfo : allRolesNode)
|
||||
{
|
||||
VolumeInfo::RoleInfo rolesObject;
|
||||
if(!allVolumesNodeRolesRoleInfo["Name"].isNull())
|
||||
rolesObject.name = allVolumesNodeRolesRoleInfo["Name"].asString();
|
||||
if(!valueVolumesVolumeInfoRolesRoleInfo["Name"].isNull())
|
||||
rolesObject.name = valueVolumesVolumeInfoRolesRoleInfo["Name"].asString();
|
||||
volumesObject.roles.push_back(rolesObject);
|
||||
}
|
||||
volumes_.push_back(volumesObject);
|
||||
|
||||
95
ehpc/src/model/GetHealthMonitorLogsRequest.cc
Normal file
95
ehpc/src/model/GetHealthMonitorLogsRequest.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/ehpc/model/GetHealthMonitorLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::GetHealthMonitorLogsRequest;
|
||||
|
||||
GetHealthMonitorLogsRequest::GetHealthMonitorLogsRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetHealthMonitorLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetHealthMonitorLogsRequest::~GetHealthMonitorLogsRequest()
|
||||
{}
|
||||
|
||||
int GetHealthMonitorLogsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetHealthMonitorLogsRequest::setEndTime(int endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetHealthMonitorLogsRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetHealthMonitorLogsRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int GetHealthMonitorLogsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetHealthMonitorLogsRequest::setStartTime(int startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetHealthMonitorLogsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetHealthMonitorLogsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool GetHealthMonitorLogsRequest::getEnableReverse()const
|
||||
{
|
||||
return enableReverse_;
|
||||
}
|
||||
|
||||
void GetHealthMonitorLogsRequest::setEnableReverse(bool enableReverse)
|
||||
{
|
||||
enableReverse_ = enableReverse;
|
||||
setParameter("EnableReverse", enableReverse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetHealthMonitorLogsRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void GetHealthMonitorLogsRequest::setFilter(const std::string& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
setParameter("Filter", filter);
|
||||
}
|
||||
|
||||
87
ehpc/src/model/GetHealthMonitorLogsResult.cc
Normal file
87
ehpc/src/model/GetHealthMonitorLogsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/GetHealthMonitorLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
GetHealthMonitorLogsResult::GetHealthMonitorLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHealthMonitorLogsResult::GetHealthMonitorLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHealthMonitorLogsResult::~GetHealthMonitorLogsResult()
|
||||
{}
|
||||
|
||||
void GetHealthMonitorLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogInfoNode = value["LogInfo"]["Logs"];
|
||||
for (auto valueLogInfoLogs : allLogInfoNode)
|
||||
{
|
||||
Logs logInfoObject;
|
||||
if(!valueLogInfoLogs["HealthId"].isNull())
|
||||
logInfoObject.healthId = valueLogInfoLogs["HealthId"].asString();
|
||||
if(!valueLogInfoLogs["HostName"].isNull())
|
||||
logInfoObject.hostName = valueLogInfoLogs["HostName"].asString();
|
||||
if(!valueLogInfoLogs["InstanceId"].isNull())
|
||||
logInfoObject.instanceId = valueLogInfoLogs["InstanceId"].asString();
|
||||
if(!valueLogInfoLogs["ItemDescription"].isNull())
|
||||
logInfoObject.itemDescription = valueLogInfoLogs["ItemDescription"].asString();
|
||||
if(!valueLogInfoLogs["ItemName"].isNull())
|
||||
logInfoObject.itemName = valueLogInfoLogs["ItemName"].asString();
|
||||
if(!valueLogInfoLogs["Level"].isNull())
|
||||
logInfoObject.level = valueLogInfoLogs["Level"].asString();
|
||||
if(!valueLogInfoLogs["SceneDescription"].isNull())
|
||||
logInfoObject.sceneDescription = valueLogInfoLogs["SceneDescription"].asString();
|
||||
if(!valueLogInfoLogs["SceneName"].isNull())
|
||||
logInfoObject.sceneName = valueLogInfoLogs["SceneName"].asString();
|
||||
if(!valueLogInfoLogs["Time"].isNull())
|
||||
logInfoObject.time = std::stoi(valueLogInfoLogs["Time"].asString());
|
||||
auto allCheckListNode = valueLogInfoLogs["CheckList"]["CheckListItem"];
|
||||
for (auto valueLogInfoLogsCheckListCheckListItem : allCheckListNode)
|
||||
{
|
||||
Logs::CheckListItem checkListObject;
|
||||
if(!valueLogInfoLogsCheckListCheckListItem["CheckDescription"].isNull())
|
||||
checkListObject.checkDescription = valueLogInfoLogsCheckListCheckListItem["CheckDescription"].asString();
|
||||
if(!valueLogInfoLogsCheckListCheckListItem["CheckInfo"].isNull())
|
||||
checkListObject.checkInfo = valueLogInfoLogsCheckListCheckListItem["CheckInfo"].asString();
|
||||
if(!valueLogInfoLogsCheckListCheckListItem["CheckName"].isNull())
|
||||
checkListObject.checkName = valueLogInfoLogsCheckListCheckListItem["CheckName"].asString();
|
||||
if(!valueLogInfoLogsCheckListCheckListItem["CheckSolution"].isNull())
|
||||
checkListObject.checkSolution = valueLogInfoLogsCheckListCheckListItem["CheckSolution"].asString();
|
||||
logInfoObject.checkList.push_back(checkListObject);
|
||||
}
|
||||
logInfo_.push_back(logInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetHealthMonitorLogsResult::Logs> GetHealthMonitorLogsResult::getLogInfo()const
|
||||
{
|
||||
return logInfo_;
|
||||
}
|
||||
|
||||
40
ehpc/src/model/InitializeEHPCRequest.cc
Normal file
40
ehpc/src/model/InitializeEHPCRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/InitializeEHPCRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::InitializeEHPCRequest;
|
||||
|
||||
InitializeEHPCRequest::InitializeEHPCRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "InitializeEHPC")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
InitializeEHPCRequest::~InitializeEHPCRequest()
|
||||
{}
|
||||
|
||||
std::string InitializeEHPCRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void InitializeEHPCRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hitsdb/model/RestartHiTSDBInstanceResult.h>
|
||||
#include <alibabacloud/ehpc/model/InitializeEHPCResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Hitsdb;
|
||||
using namespace AlibabaCloud::Hitsdb::Model;
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
RestartHiTSDBInstanceResult::RestartHiTSDBInstanceResult() :
|
||||
InitializeEHPCResult::InitializeEHPCResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartHiTSDBInstanceResult::RestartHiTSDBInstanceResult(const std::string &payload) :
|
||||
InitializeEHPCResult::InitializeEHPCResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartHiTSDBInstanceResult::~RestartHiTSDBInstanceResult()
|
||||
InitializeEHPCResult::~InitializeEHPCResult()
|
||||
{}
|
||||
|
||||
void RestartHiTSDBInstanceResult::parse(const std::string &payload)
|
||||
void InitializeEHPCResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -47,32 +47,32 @@ void ListAvailableEcsTypesResult::parse(const std::string &payload)
|
||||
instanceTypeFamiliesObject.instanceTypeFamilyId = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["InstanceTypeFamilyId"].asString();
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Generation"].isNull())
|
||||
instanceTypeFamiliesObject.generation = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Generation"].asString();
|
||||
auto allTypesNode = allInstanceTypeFamiliesNode["Types"]["TypesInfo"];
|
||||
for (auto allInstanceTypeFamiliesNodeTypesTypesInfo : allTypesNode)
|
||||
auto allTypesNode = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Types"]["TypesInfo"];
|
||||
for (auto valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo : allTypesNode)
|
||||
{
|
||||
InstanceTypeFamilyInfo::TypesInfo typesObject;
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["CpuCoreCount"].isNull())
|
||||
typesObject.cpuCoreCount = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["CpuCoreCount"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["MemorySize"].isNull())
|
||||
typesObject.memorySize = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["MemorySize"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["GPUAmount"].isNull())
|
||||
typesObject.gPUAmount = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["GPUAmount"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["InstanceBandwidthRx"].isNull())
|
||||
typesObject.instanceBandwidthRx = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["InstanceBandwidthRx"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["InstancePpsRx"].isNull())
|
||||
typesObject.instancePpsRx = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["InstancePpsRx"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["InstancePpsTx"].isNull())
|
||||
typesObject.instancePpsTx = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["InstancePpsTx"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["EniQuantity"].isNull())
|
||||
typesObject.eniQuantity = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["EniQuantity"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["InstanceBandwidthTx"].isNull())
|
||||
typesObject.instanceBandwidthTx = std::stoi(allInstanceTypeFamiliesNodeTypesTypesInfo["InstanceBandwidthTx"].asString());
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["InstanceTypeId"].isNull())
|
||||
typesObject.instanceTypeId = allInstanceTypeFamiliesNodeTypesTypesInfo["InstanceTypeId"].asString();
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["GPUSpec"].isNull())
|
||||
typesObject.gPUSpec = allInstanceTypeFamiliesNodeTypesTypesInfo["GPUSpec"].asString();
|
||||
if(!allInstanceTypeFamiliesNodeTypesTypesInfo["Status"].isNull())
|
||||
typesObject.status = allInstanceTypeFamiliesNodeTypesTypesInfo["Status"].asString();
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["CpuCoreCount"].isNull())
|
||||
typesObject.cpuCoreCount = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["CpuCoreCount"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["MemorySize"].isNull())
|
||||
typesObject.memorySize = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["MemorySize"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUAmount"].isNull())
|
||||
typesObject.gPUAmount = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUAmount"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthRx"].isNull())
|
||||
typesObject.instanceBandwidthRx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthRx"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsRx"].isNull())
|
||||
typesObject.instancePpsRx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsRx"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsTx"].isNull())
|
||||
typesObject.instancePpsTx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsTx"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["EniQuantity"].isNull())
|
||||
typesObject.eniQuantity = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["EniQuantity"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthTx"].isNull())
|
||||
typesObject.instanceBandwidthTx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthTx"].asString());
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceTypeId"].isNull())
|
||||
typesObject.instanceTypeId = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceTypeId"].asString();
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUSpec"].isNull())
|
||||
typesObject.gPUSpec = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUSpec"].asString();
|
||||
if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["Status"].isNull())
|
||||
typesObject.status = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["Status"].asString();
|
||||
instanceTypeFamiliesObject.types.push_back(typesObject);
|
||||
}
|
||||
instanceTypeFamilies_.push_back(instanceTypeFamiliesObject);
|
||||
|
||||
@@ -53,6 +53,18 @@ void ListClustersMetaResult::parse(const std::string &payload)
|
||||
clustersObject.status = valueClustersClusterInfoSimple["Status"].asString();
|
||||
if(!valueClustersClusterInfoSimple["Location"].isNull())
|
||||
clustersObject.location = valueClustersClusterInfoSimple["Location"].asString();
|
||||
if(!valueClustersClusterInfoSimple["OsTag"].isNull())
|
||||
clustersObject.osTag = valueClustersClusterInfoSimple["OsTag"].asString();
|
||||
if(!valueClustersClusterInfoSimple["ClientVersion"].isNull())
|
||||
clustersObject.clientVersion = valueClustersClusterInfoSimple["ClientVersion"].asString();
|
||||
if(!valueClustersClusterInfoSimple["AccountType"].isNull())
|
||||
clustersObject.accountType = valueClustersClusterInfoSimple["AccountType"].asString();
|
||||
if(!valueClustersClusterInfoSimple["SchedulerType"].isNull())
|
||||
clustersObject.schedulerType = valueClustersClusterInfoSimple["SchedulerType"].asString();
|
||||
if(!valueClustersClusterInfoSimple["VpcId"].isNull())
|
||||
clustersObject.vpcId = valueClustersClusterInfoSimple["VpcId"].asString();
|
||||
if(!valueClustersClusterInfoSimple["DeployMode"].isNull())
|
||||
clustersObject.deployMode = valueClustersClusterInfoSimple["DeployMode"].asString();
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -95,6 +95,8 @@ void ListClustersResult::parse(const std::string &payload)
|
||||
clustersObject.computeSpotStrategy = valueClustersClusterInfoSimple["ComputeSpotStrategy"].asString();
|
||||
if(!valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].isNull())
|
||||
clustersObject.computeSpotPriceLimit = std::stof(valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].asString());
|
||||
if(!valueClustersClusterInfoSimple["ClientVersion"].isNull())
|
||||
clustersObject.clientVersion = valueClustersClusterInfoSimple["ClientVersion"].asString();
|
||||
auto managersNode = value["Managers"];
|
||||
if(!managersNode["Total"].isNull())
|
||||
clustersObject.managers.total = std::stoi(managersNode["Total"].asString());
|
||||
|
||||
@@ -57,20 +57,20 @@ void ListCpfsFileSystemsResult::parse(const std::string &payload)
|
||||
fileSystemListObject.protocolType = valueFileSystemListFileSystems["ProtocolType"].asString();
|
||||
if(!valueFileSystemListFileSystems["Capacity"].isNull())
|
||||
fileSystemListObject.capacity = valueFileSystemListFileSystems["Capacity"].asString();
|
||||
auto allMountTargetListNode = allFileSystemListNode["MountTargetList"]["MountTargets"];
|
||||
for (auto allFileSystemListNodeMountTargetListMountTargets : allMountTargetListNode)
|
||||
auto allMountTargetListNode = valueFileSystemListFileSystems["MountTargetList"]["MountTargets"];
|
||||
for (auto valueFileSystemListFileSystemsMountTargetListMountTargets : allMountTargetListNode)
|
||||
{
|
||||
FileSystems::MountTargets mountTargetListObject;
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["MountTargetDomain"].isNull())
|
||||
mountTargetListObject.mountTargetDomain = allFileSystemListNodeMountTargetListMountTargets["MountTargetDomain"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["Status"].isNull())
|
||||
mountTargetListObject.status = allFileSystemListNodeMountTargetListMountTargets["Status"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["NetworkType"].isNull())
|
||||
mountTargetListObject.networkType = allFileSystemListNodeMountTargetListMountTargets["NetworkType"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["VswId"].isNull())
|
||||
mountTargetListObject.vswId = allFileSystemListNodeMountTargetListMountTargets["VswId"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["VpcId"].isNull())
|
||||
mountTargetListObject.vpcId = allFileSystemListNodeMountTargetListMountTargets["VpcId"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].isNull())
|
||||
mountTargetListObject.mountTargetDomain = valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].isNull())
|
||||
mountTargetListObject.status = valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].isNull())
|
||||
mountTargetListObject.networkType = valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].isNull())
|
||||
mountTargetListObject.vswId = valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].isNull())
|
||||
mountTargetListObject.vpcId = valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].asString();
|
||||
fileSystemListObject.mountTargetList.push_back(mountTargetListObject);
|
||||
}
|
||||
fileSystemList_.push_back(fileSystemListObject);
|
||||
|
||||
@@ -67,30 +67,30 @@ void ListFileSystemWithMountTargetsResult::parse(const std::string &payload)
|
||||
fileSystemListObject.bandWidth = std::stoi(valueFileSystemListFileSystems["BandWidth"].asString());
|
||||
if(!valueFileSystemListFileSystems["Status"].isNull())
|
||||
fileSystemListObject.status = valueFileSystemListFileSystems["Status"].asString();
|
||||
auto allPackageListNode = allFileSystemListNode["PackageList"]["Packages"];
|
||||
for (auto allFileSystemListNodePackageListPackages : allPackageListNode)
|
||||
auto allPackageListNode = valueFileSystemListFileSystems["PackageList"]["Packages"];
|
||||
for (auto valueFileSystemListFileSystemsPackageListPackages : allPackageListNode)
|
||||
{
|
||||
FileSystems::Packages packageListObject;
|
||||
if(!allFileSystemListNodePackageListPackages["PackageId"].isNull())
|
||||
packageListObject.packageId = allFileSystemListNodePackageListPackages["PackageId"].asString();
|
||||
if(!valueFileSystemListFileSystemsPackageListPackages["PackageId"].isNull())
|
||||
packageListObject.packageId = valueFileSystemListFileSystemsPackageListPackages["PackageId"].asString();
|
||||
fileSystemListObject.packageList.push_back(packageListObject);
|
||||
}
|
||||
auto allMountTargetListNode = allFileSystemListNode["MountTargetList"]["MountTargets"];
|
||||
for (auto allFileSystemListNodeMountTargetListMountTargets : allMountTargetListNode)
|
||||
auto allMountTargetListNode = valueFileSystemListFileSystems["MountTargetList"]["MountTargets"];
|
||||
for (auto valueFileSystemListFileSystemsMountTargetListMountTargets : allMountTargetListNode)
|
||||
{
|
||||
FileSystems::MountTargets mountTargetListObject;
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["MountTargetDomain"].isNull())
|
||||
mountTargetListObject.mountTargetDomain = allFileSystemListNodeMountTargetListMountTargets["MountTargetDomain"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["Status"].isNull())
|
||||
mountTargetListObject.status = allFileSystemListNodeMountTargetListMountTargets["Status"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["NetworkType"].isNull())
|
||||
mountTargetListObject.networkType = allFileSystemListNodeMountTargetListMountTargets["NetworkType"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["VswId"].isNull())
|
||||
mountTargetListObject.vswId = allFileSystemListNodeMountTargetListMountTargets["VswId"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["VpcId"].isNull())
|
||||
mountTargetListObject.vpcId = allFileSystemListNodeMountTargetListMountTargets["VpcId"].asString();
|
||||
if(!allFileSystemListNodeMountTargetListMountTargets["AccessGroup"].isNull())
|
||||
mountTargetListObject.accessGroup = allFileSystemListNodeMountTargetListMountTargets["AccessGroup"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].isNull())
|
||||
mountTargetListObject.mountTargetDomain = valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].isNull())
|
||||
mountTargetListObject.status = valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].isNull())
|
||||
mountTargetListObject.networkType = valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].isNull())
|
||||
mountTargetListObject.vswId = valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].isNull())
|
||||
mountTargetListObject.vpcId = valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].asString();
|
||||
if(!valueFileSystemListFileSystemsMountTargetListMountTargets["AccessGroup"].isNull())
|
||||
mountTargetListObject.accessGroup = valueFileSystemListFileSystemsMountTargetListMountTargets["AccessGroup"].asString();
|
||||
fileSystemListObject.mountTargetList.push_back(mountTargetListObject);
|
||||
}
|
||||
fileSystemList_.push_back(fileSystemListObject);
|
||||
|
||||
@@ -71,6 +71,8 @@ void ListNodesNoPagingResult::parse(const std::string &payload)
|
||||
nodesObject.imageId = valueNodesNodeInfo["ImageId"].asString();
|
||||
if(!valueNodesNodeInfo["HtEnabled"].isNull())
|
||||
nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true";
|
||||
if(!valueNodesNodeInfo["InstanceType"].isNull())
|
||||
nodesObject.instanceType = valueNodesNodeInfo["InstanceType"].asString();
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
|
||||
@@ -71,6 +71,28 @@ void ListNodesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListNodesRequest::getFilter()const
|
||||
{
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void ListNodesRequest::setFilter(const std::string& filter)
|
||||
{
|
||||
filter_ = filter;
|
||||
setParameter("Filter", filter);
|
||||
}
|
||||
|
||||
std::string ListNodesRequest::getPrivateIpAddress()const
|
||||
{
|
||||
return privateIpAddress_;
|
||||
}
|
||||
|
||||
void ListNodesRequest::setPrivateIpAddress(const std::string& privateIpAddress)
|
||||
{
|
||||
privateIpAddress_ = privateIpAddress;
|
||||
setParameter("PrivateIpAddress", privateIpAddress);
|
||||
}
|
||||
|
||||
std::string ListNodesRequest::getSequence()const
|
||||
{
|
||||
return sequence_;
|
||||
@@ -104,3 +126,14 @@ void ListNodesRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListNodesRequest::getSortBy()const
|
||||
{
|
||||
return sortBy_;
|
||||
}
|
||||
|
||||
void ListNodesRequest::setSortBy(const std::string& sortBy)
|
||||
{
|
||||
sortBy_ = sortBy;
|
||||
setParameter("SortBy", sortBy);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ void ListNodesResult::parse(const std::string &payload)
|
||||
nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true";
|
||||
if(!valueNodesNodeInfo["PublicIpAddress"].isNull())
|
||||
nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString();
|
||||
if(!valueNodesNodeInfo["InstanceType"].isNull())
|
||||
nodesObject.instanceType = valueNodesNodeInfo["InstanceType"].asString();
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
|
||||
@@ -55,18 +55,18 @@ void ListSoftwaresResult::parse(const std::string &payload)
|
||||
softwaresObject.accountType = valueSoftwaresSoftwareInfo["AccountType"].asString();
|
||||
if(!valueSoftwaresSoftwareInfo["AccountVersion"].isNull())
|
||||
softwaresObject.accountVersion = valueSoftwaresSoftwareInfo["AccountVersion"].asString();
|
||||
auto allApplicationsNode = allSoftwaresNode["Applications"]["ApplicationInfo"];
|
||||
for (auto allSoftwaresNodeApplicationsApplicationInfo : allApplicationsNode)
|
||||
auto allApplicationsNode = valueSoftwaresSoftwareInfo["Applications"]["ApplicationInfo"];
|
||||
for (auto valueSoftwaresSoftwareInfoApplicationsApplicationInfo : allApplicationsNode)
|
||||
{
|
||||
SoftwareInfo::ApplicationInfo applicationsObject;
|
||||
if(!allSoftwaresNodeApplicationsApplicationInfo["Tag"].isNull())
|
||||
applicationsObject.tag = allSoftwaresNodeApplicationsApplicationInfo["Tag"].asString();
|
||||
if(!allSoftwaresNodeApplicationsApplicationInfo["Name"].isNull())
|
||||
applicationsObject.name = allSoftwaresNodeApplicationsApplicationInfo["Name"].asString();
|
||||
if(!allSoftwaresNodeApplicationsApplicationInfo["Version"].isNull())
|
||||
applicationsObject.version = allSoftwaresNodeApplicationsApplicationInfo["Version"].asString();
|
||||
if(!allSoftwaresNodeApplicationsApplicationInfo["Required"].isNull())
|
||||
applicationsObject.required = allSoftwaresNodeApplicationsApplicationInfo["Required"].asString() == "true";
|
||||
if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Tag"].isNull())
|
||||
applicationsObject.tag = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Tag"].asString();
|
||||
if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Name"].isNull())
|
||||
applicationsObject.name = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Name"].asString();
|
||||
if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Version"].isNull())
|
||||
applicationsObject.version = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Version"].asString();
|
||||
if(!valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Required"].isNull())
|
||||
applicationsObject.required = valueSoftwaresSoftwareInfoApplicationsApplicationInfo["Required"].asString() == "true";
|
||||
softwaresObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
softwares_.push_back(softwaresObject);
|
||||
|
||||
@@ -59,28 +59,28 @@ void ListVolumesResult::parse(const std::string &payload)
|
||||
volumesObject.volumeMountpoint = valueVolumesVolumeInfo["VolumeMountpoint"].asString();
|
||||
if(!valueVolumesVolumeInfo["RemoteDirectory"].isNull())
|
||||
volumesObject.remoteDirectory = valueVolumesVolumeInfo["RemoteDirectory"].asString();
|
||||
auto allAdditionalVolumesNode = allVolumesNode["AdditionalVolumes"]["VolumeInfo"];
|
||||
for (auto allVolumesNodeAdditionalVolumesVolumeInfo : allAdditionalVolumesNode)
|
||||
auto allAdditionalVolumesNode = valueVolumesVolumeInfo["AdditionalVolumes"]["VolumeInfo"];
|
||||
for (auto valueVolumesVolumeInfoAdditionalVolumesVolumeInfo : allAdditionalVolumesNode)
|
||||
{
|
||||
VolumeInfo::VolumeInfo1 additionalVolumesObject;
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["VolumeType"].isNull())
|
||||
additionalVolumesObject.volumeType = allVolumesNodeAdditionalVolumesVolumeInfo["VolumeType"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["VolumeId"].isNull())
|
||||
additionalVolumesObject.volumeId = allVolumesNodeAdditionalVolumesVolumeInfo["VolumeId"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["VolumeProtocol"].isNull())
|
||||
additionalVolumesObject.volumeProtocol = allVolumesNodeAdditionalVolumesVolumeInfo["VolumeProtocol"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["VolumeMountpoint"].isNull())
|
||||
additionalVolumesObject.volumeMountpoint = allVolumesNodeAdditionalVolumesVolumeInfo["VolumeMountpoint"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["RemoteDirectory"].isNull())
|
||||
additionalVolumesObject.remoteDirectory = allVolumesNodeAdditionalVolumesVolumeInfo["RemoteDirectory"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["LocalDirectory"].isNull())
|
||||
additionalVolumesObject.localDirectory = allVolumesNodeAdditionalVolumesVolumeInfo["LocalDirectory"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["Role"].isNull())
|
||||
additionalVolumesObject.role = allVolumesNodeAdditionalVolumesVolumeInfo["Role"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["Location"].isNull())
|
||||
additionalVolumesObject.location = allVolumesNodeAdditionalVolumesVolumeInfo["Location"].asString();
|
||||
if(!allVolumesNodeAdditionalVolumesVolumeInfo["JobQueue"].isNull())
|
||||
additionalVolumesObject.jobQueue = allVolumesNodeAdditionalVolumesVolumeInfo["JobQueue"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeType"].isNull())
|
||||
additionalVolumesObject.volumeType = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeType"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeId"].isNull())
|
||||
additionalVolumesObject.volumeId = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeId"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeProtocol"].isNull())
|
||||
additionalVolumesObject.volumeProtocol = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeProtocol"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeMountpoint"].isNull())
|
||||
additionalVolumesObject.volumeMountpoint = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeMountpoint"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["RemoteDirectory"].isNull())
|
||||
additionalVolumesObject.remoteDirectory = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["RemoteDirectory"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["LocalDirectory"].isNull())
|
||||
additionalVolumesObject.localDirectory = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["LocalDirectory"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Role"].isNull())
|
||||
additionalVolumesObject.role = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Role"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Location"].isNull())
|
||||
additionalVolumesObject.location = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Location"].asString();
|
||||
if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["JobQueue"].isNull())
|
||||
additionalVolumesObject.jobQueue = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["JobQueue"].asString();
|
||||
volumesObject.additionalVolumes.push_back(additionalVolumesObject);
|
||||
}
|
||||
volumes_.push_back(volumesObject);
|
||||
|
||||
@@ -49,6 +49,17 @@ void SubmitJobRequest::setRunasUserPassword(const std::string& runasUserPassword
|
||||
setParameter("RunasUserPassword", runasUserPassword);
|
||||
}
|
||||
|
||||
std::string SubmitJobRequest::getClockTime()const
|
||||
{
|
||||
return clockTime_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setClockTime(const std::string& clockTime)
|
||||
{
|
||||
clockTime_ = clockTime;
|
||||
setParameter("ClockTime", clockTime);
|
||||
}
|
||||
|
||||
std::string SubmitJobRequest::getCommandLine()const
|
||||
{
|
||||
return commandLine_;
|
||||
@@ -115,6 +126,17 @@ void SubmitJobRequest::setPackagePath(const std::string& packagePath)
|
||||
setParameter("PackagePath", packagePath);
|
||||
}
|
||||
|
||||
std::string SubmitJobRequest::getMem()const
|
||||
{
|
||||
return mem_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setMem(const std::string& mem)
|
||||
{
|
||||
mem_ = mem;
|
||||
setParameter("Mem", mem);
|
||||
}
|
||||
|
||||
std::string SubmitJobRequest::getStdoutRedirectPath()const
|
||||
{
|
||||
return stdoutRedirectPath_;
|
||||
@@ -181,6 +203,17 @@ void SubmitJobRequest::setReRunable(bool reRunable)
|
||||
setParameter("ReRunable", reRunable ? "true" : "false");
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getThread()const
|
||||
{
|
||||
return thread_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setThread(int thread)
|
||||
{
|
||||
thread_ = thread;
|
||||
setParameter("Thread", std::to_string(thread));
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
@@ -192,6 +225,39 @@ void SubmitJobRequest::setPriority(int priority)
|
||||
setParameter("Priority", std::to_string(priority));
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getGpu()const
|
||||
{
|
||||
return gpu_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setGpu(int gpu)
|
||||
{
|
||||
gpu_ = gpu;
|
||||
setParameter("Gpu", std::to_string(gpu));
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getNode()const
|
||||
{
|
||||
return node_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setNode(int node)
|
||||
{
|
||||
node_ = node;
|
||||
setParameter("Node", std::to_string(node));
|
||||
}
|
||||
|
||||
int SubmitJobRequest::getTask()const
|
||||
{
|
||||
return task_;
|
||||
}
|
||||
|
||||
void SubmitJobRequest::setTask(int task)
|
||||
{
|
||||
task_ = task;
|
||||
setParameter("Task", std::to_string(task));
|
||||
}
|
||||
|
||||
std::string SubmitJobRequest::getInputFileUrl()const
|
||||
{
|
||||
return inputFileUrl_;
|
||||
|
||||
1116
emr/CMakeLists.txt
1116
emr/CMakeLists.txt
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,77 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ADDHPHOSTREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ADDHPHOSTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT AddHpHostRequest : public RpcServiceRequest
|
||||
{
|
||||
struct HpHost
|
||||
{
|
||||
int cpuCore;
|
||||
int memSize;
|
||||
std::string rackInfo;
|
||||
std::string role;
|
||||
std::string serialNumber;
|
||||
std::string hostType;
|
||||
std::string securityGroupId;
|
||||
RepeatList hpHostDisk;
|
||||
std::string vswitchId;
|
||||
std::string externalKey;
|
||||
std::string hostName;
|
||||
std::string vpcId;
|
||||
std::string innerIp;
|
||||
std::string externalIp;
|
||||
};
|
||||
|
||||
public:
|
||||
AddHpHostRequest();
|
||||
~AddHpHostRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::vector<HpHost> getHpHost()const;
|
||||
void setHpHost(const std::vector<HpHost>& hpHost);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getHpBizId()const;
|
||||
void setHpBizId(const std::string& hpBizId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::vector<HpHost> hpHost_;
|
||||
std::string regionId_;
|
||||
std::string hpBizId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ADDHPHOSTREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CREATECLUSTERHOSTGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CREATECLUSTERHOSTGROUPREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ADDSCALINGCONFIGITEMV2REQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ADDSCALINGCONFIGITEMV2REQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,39 +28,39 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CreateClusterHostGroupRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_EMR_EXPORT AddScalingConfigItemV2Request : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateClusterHostGroupRequest();
|
||||
~CreateClusterHostGroupRequest();
|
||||
AddScalingConfigItemV2Request();
|
||||
~AddScalingConfigItemV2Request();
|
||||
|
||||
std::string getConfigItemType()const;
|
||||
void setConfigItemType(const std::string& configItemType);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getComment()const;
|
||||
void setComment(const std::string& comment);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getHostGroupName()const;
|
||||
void setHostGroupName(const std::string& hostGroupName);
|
||||
std::string getHostGroupType()const;
|
||||
void setHostGroupType(const std::string& hostGroupType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getScalingGroupBizId()const;
|
||||
void setScalingGroupBizId(const std::string& scalingGroupBizId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getConfigItemInformation()const;
|
||||
void setConfigItemInformation(const std::string& configItemInformation);
|
||||
|
||||
private:
|
||||
std::string configItemType_;
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string comment_;
|
||||
std::string clusterId_;
|
||||
std::string hostGroupName_;
|
||||
std::string hostGroupType_;
|
||||
std::string accessKeyId_;
|
||||
std::string scalingGroupBizId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string configItemInformation_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CREATECLUSTERHOSTGROUPREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ADDSCALINGCONFIGITEMV2REQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CREATEVERIFICATIONCODERESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CREATEVERIFICATIONCODERESULT_H_
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ADDSCALINGCONFIGITEMV2RESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ADDSCALINGCONFIGITEMV2RESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,23 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CreateVerificationCodeResult : public ServiceResult
|
||||
class ALIBABACLOUD_EMR_EXPORT AddScalingConfigItemV2Result : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVerificationCodeResult();
|
||||
explicit CreateVerificationCodeResult(const std::string &payload);
|
||||
~CreateVerificationCodeResult();
|
||||
long getStatus()const;
|
||||
AddScalingConfigItemV2Result();
|
||||
explicit AddScalingConfigItemV2Result(const std::string &payload);
|
||||
~AddScalingConfigItemV2Result();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long status_;
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CREATEVERIFICATIONCODERESULT_H_
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ADDSCALINGCONFIGITEMV2RESULT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLEREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT AddUserResourceRoleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddUserResourceRoleRequest();
|
||||
~AddUserResourceRoleRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceId()const;
|
||||
void setResourceId(const std::string& resourceId);
|
||||
long getRoleId()const;
|
||||
void setRoleId(long roleId);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAliyunUserId()const;
|
||||
void setAliyunUserId(const std::string& aliyunUserId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceId_;
|
||||
long roleId_;
|
||||
std::string resourceType_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string aliyunUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLEREQUEST_H_
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLERESULT_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT AddUserResourceRoleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddUserResourceRoleResult();
|
||||
explicit AddUserResourceRoleResult(const std::string &payload);
|
||||
~AddUserResourceRoleResult();
|
||||
bool getPaging()const;
|
||||
bool getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool paging_;
|
||||
bool data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ADDUSERRESOURCEROLERESULT_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ATTACHCLUSTERFORNOTEREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ATTACHCLUSTERFORNOTEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT AttachClusterForNoteRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AttachClusterForNoteRequest();
|
||||
~AttachClusterForNoteRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getId()const;
|
||||
void setId(const std::string& id);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string id_;
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ATTACHCLUSTERFORNOTEREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_ATTACHPUBIPREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_ATTACHPUBIPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT AttachPubIpRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AttachPubIpRequest();
|
||||
~AttachPubIpRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<std::string> getInstanceIds()const;
|
||||
void setInstanceIds(const std::vector<std::string>& instanceIds);
|
||||
std::string getClusterId()const;
|
||||
void setClusterId(const std::string& clusterId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::vector<std::string> instanceIds_;
|
||||
std::string clusterId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_ATTACHPUBIPREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_EMR_MODEL_CANCELETLJOBRELEASEREQUEST_H_
|
||||
#define ALIBABACLOUD_EMR_MODEL_CANCELETLJOBRELEASEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/emr/EmrExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Emr
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_EMR_EXPORT CancelETLJobReleaseRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CancelETLJobReleaseRequest();
|
||||
~CancelETLJobReleaseRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getEtlJobId()const;
|
||||
void setEtlJobId(const std::string& etlJobId);
|
||||
std::string getReleaseId()const;
|
||||
void setReleaseId(const std::string& releaseId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string regionId_;
|
||||
std::string etlJobId_;
|
||||
std::string releaseId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_EMR_MODEL_CANCELETLJOBRELEASEREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user