Compare commits
4 Commits
hitsdb-pat
...
BssOpenApi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
406b8fba46 | ||
|
|
2f2b3aa219 | ||
|
|
64d4eb1931 | ||
|
|
bbbd1121ca |
15
CHANGELOG
15
CHANGELOG
@@ -1,3 +1,18 @@
|
|||||||
|
2021-01-14 Version: patch
|
||||||
|
- Add BillingDate support in QueryAccontBill.
|
||||||
|
- Add SplitAccountId, SplitAccountName, SplitBillingCycle, SplitProductDetail, SplitCommodityCode, ServicePeriodUnit support in QuerySplitItemBill.
|
||||||
|
|
||||||
|
2021-01-14 Version: patch
|
||||||
|
- Update Open API.
|
||||||
|
|
||||||
|
2021-01-14 Version: patch
|
||||||
|
- Update function.
|
||||||
|
|
||||||
|
2021-01-14 Version: patch
|
||||||
|
- Fixed ListUsers, GetUser, EnableUser, RegisterUser, DisableUser, DeleteUser API parameter of uid data type error, from number into string.
|
||||||
|
- Supported ListInstances, GetInstance API to return Owner information.
|
||||||
|
- Supported SetOwners API to set INSTANCE owner.
|
||||||
|
|
||||||
2021-01-14 Version: patch
|
2021-01-14 Version: patch
|
||||||
- Create Lindorm Open api.
|
- Create Lindorm Open api.
|
||||||
|
|
||||||
|
|||||||
@@ -115,6 +115,10 @@ set(bssopenapi_public_header_model
|
|||||||
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h
|
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
||||||
|
include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h
|
||||||
|
include/alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogResult.h
|
||||||
|
include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h
|
||||||
|
include/alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceResult.h
|
||||||
include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h
|
include/alibabacloud/bssopenapi/model/QuerySettleBillRequest.h
|
||||||
include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h
|
include/alibabacloud/bssopenapi/model/QuerySettleBillResult.h
|
||||||
include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h
|
include/alibabacloud/bssopenapi/model/QuerySettlementBillRequest.h
|
||||||
@@ -127,6 +131,10 @@ set(bssopenapi_public_header_model
|
|||||||
include/alibabacloud/bssopenapi/model/RenewInstanceResult.h
|
include/alibabacloud/bssopenapi/model/RenewInstanceResult.h
|
||||||
include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h
|
include/alibabacloud/bssopenapi/model/RenewResourcePackageRequest.h
|
||||||
include/alibabacloud/bssopenapi/model/RenewResourcePackageResult.h
|
include/alibabacloud/bssopenapi/model/RenewResourcePackageResult.h
|
||||||
|
include/alibabacloud/bssopenapi/model/SaveUserCreditRequest.h
|
||||||
|
include/alibabacloud/bssopenapi/model/SaveUserCreditResult.h
|
||||||
|
include/alibabacloud/bssopenapi/model/SetCreditLabelActionRequest.h
|
||||||
|
include/alibabacloud/bssopenapi/model/SetCreditLabelActionResult.h
|
||||||
include/alibabacloud/bssopenapi/model/SetRenewalRequest.h
|
include/alibabacloud/bssopenapi/model/SetRenewalRequest.h
|
||||||
include/alibabacloud/bssopenapi/model/SetRenewalResult.h
|
include/alibabacloud/bssopenapi/model/SetRenewalResult.h
|
||||||
include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h
|
include/alibabacloud/bssopenapi/model/SetResellerUserAlarmThresholdRequest.h
|
||||||
@@ -238,6 +246,10 @@ set(bssopenapi_src
|
|||||||
src/model/QueryResellerAvailableQuotaResult.cc
|
src/model/QueryResellerAvailableQuotaResult.cc
|
||||||
src/model/QueryResourcePackageInstancesRequest.cc
|
src/model/QueryResourcePackageInstancesRequest.cc
|
||||||
src/model/QueryResourcePackageInstancesResult.cc
|
src/model/QueryResourcePackageInstancesResult.cc
|
||||||
|
src/model/QuerySavingsPlansDeductLogRequest.cc
|
||||||
|
src/model/QuerySavingsPlansDeductLogResult.cc
|
||||||
|
src/model/QuerySavingsPlansInstanceRequest.cc
|
||||||
|
src/model/QuerySavingsPlansInstanceResult.cc
|
||||||
src/model/QuerySettleBillRequest.cc
|
src/model/QuerySettleBillRequest.cc
|
||||||
src/model/QuerySettleBillResult.cc
|
src/model/QuerySettleBillResult.cc
|
||||||
src/model/QuerySettlementBillRequest.cc
|
src/model/QuerySettlementBillRequest.cc
|
||||||
@@ -250,6 +262,10 @@ set(bssopenapi_src
|
|||||||
src/model/RenewInstanceResult.cc
|
src/model/RenewInstanceResult.cc
|
||||||
src/model/RenewResourcePackageRequest.cc
|
src/model/RenewResourcePackageRequest.cc
|
||||||
src/model/RenewResourcePackageResult.cc
|
src/model/RenewResourcePackageResult.cc
|
||||||
|
src/model/SaveUserCreditRequest.cc
|
||||||
|
src/model/SaveUserCreditResult.cc
|
||||||
|
src/model/SetCreditLabelActionRequest.cc
|
||||||
|
src/model/SetCreditLabelActionResult.cc
|
||||||
src/model/SetRenewalRequest.cc
|
src/model/SetRenewalRequest.cc
|
||||||
src/model/SetRenewalResult.cc
|
src/model/SetRenewalResult.cc
|
||||||
src/model/SetResellerUserAlarmThresholdRequest.cc
|
src/model/SetResellerUserAlarmThresholdRequest.cc
|
||||||
|
|||||||
@@ -116,6 +116,10 @@
|
|||||||
#include "model/QueryResellerAvailableQuotaResult.h"
|
#include "model/QueryResellerAvailableQuotaResult.h"
|
||||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||||
#include "model/QueryResourcePackageInstancesResult.h"
|
#include "model/QueryResourcePackageInstancesResult.h"
|
||||||
|
#include "model/QuerySavingsPlansDeductLogRequest.h"
|
||||||
|
#include "model/QuerySavingsPlansDeductLogResult.h"
|
||||||
|
#include "model/QuerySavingsPlansInstanceRequest.h"
|
||||||
|
#include "model/QuerySavingsPlansInstanceResult.h"
|
||||||
#include "model/QuerySettleBillRequest.h"
|
#include "model/QuerySettleBillRequest.h"
|
||||||
#include "model/QuerySettleBillResult.h"
|
#include "model/QuerySettleBillResult.h"
|
||||||
#include "model/QuerySettlementBillRequest.h"
|
#include "model/QuerySettlementBillRequest.h"
|
||||||
@@ -128,6 +132,10 @@
|
|||||||
#include "model/RenewInstanceResult.h"
|
#include "model/RenewInstanceResult.h"
|
||||||
#include "model/RenewResourcePackageRequest.h"
|
#include "model/RenewResourcePackageRequest.h"
|
||||||
#include "model/RenewResourcePackageResult.h"
|
#include "model/RenewResourcePackageResult.h"
|
||||||
|
#include "model/SaveUserCreditRequest.h"
|
||||||
|
#include "model/SaveUserCreditResult.h"
|
||||||
|
#include "model/SetCreditLabelActionRequest.h"
|
||||||
|
#include "model/SetCreditLabelActionResult.h"
|
||||||
#include "model/SetRenewalRequest.h"
|
#include "model/SetRenewalRequest.h"
|
||||||
#include "model/SetRenewalResult.h"
|
#include "model/SetRenewalResult.h"
|
||||||
#include "model/SetResellerUserAlarmThresholdRequest.h"
|
#include "model/SetResellerUserAlarmThresholdRequest.h"
|
||||||
@@ -292,6 +300,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
||||||
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
||||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::QuerySavingsPlansDeductLogResult> QuerySavingsPlansDeductLogOutcome;
|
||||||
|
typedef std::future<QuerySavingsPlansDeductLogOutcome> QuerySavingsPlansDeductLogOutcomeCallable;
|
||||||
|
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySavingsPlansDeductLogRequest&, const QuerySavingsPlansDeductLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySavingsPlansDeductLogAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::QuerySavingsPlansInstanceResult> QuerySavingsPlansInstanceOutcome;
|
||||||
|
typedef std::future<QuerySavingsPlansInstanceOutcome> QuerySavingsPlansInstanceOutcomeCallable;
|
||||||
|
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySavingsPlansInstanceRequest&, const QuerySavingsPlansInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySavingsPlansInstanceAsyncHandler;
|
||||||
typedef Outcome<Error, Model::QuerySettleBillResult> QuerySettleBillOutcome;
|
typedef Outcome<Error, Model::QuerySettleBillResult> QuerySettleBillOutcome;
|
||||||
typedef std::future<QuerySettleBillOutcome> QuerySettleBillOutcomeCallable;
|
typedef std::future<QuerySettleBillOutcome> QuerySettleBillOutcomeCallable;
|
||||||
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettleBillRequest&, const QuerySettleBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettleBillAsyncHandler;
|
typedef std::function<void(const BssOpenApiClient*, const Model::QuerySettleBillRequest&, const QuerySettleBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySettleBillAsyncHandler;
|
||||||
@@ -310,6 +324,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::RenewResourcePackageResult> RenewResourcePackageOutcome;
|
typedef Outcome<Error, Model::RenewResourcePackageResult> RenewResourcePackageOutcome;
|
||||||
typedef std::future<RenewResourcePackageOutcome> RenewResourcePackageOutcomeCallable;
|
typedef std::future<RenewResourcePackageOutcome> RenewResourcePackageOutcomeCallable;
|
||||||
typedef std::function<void(const BssOpenApiClient*, const Model::RenewResourcePackageRequest&, const RenewResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewResourcePackageAsyncHandler;
|
typedef std::function<void(const BssOpenApiClient*, const Model::RenewResourcePackageRequest&, const RenewResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewResourcePackageAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::SaveUserCreditResult> SaveUserCreditOutcome;
|
||||||
|
typedef std::future<SaveUserCreditOutcome> SaveUserCreditOutcomeCallable;
|
||||||
|
typedef std::function<void(const BssOpenApiClient*, const Model::SaveUserCreditRequest&, const SaveUserCreditOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveUserCreditAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::SetCreditLabelActionResult> SetCreditLabelActionOutcome;
|
||||||
|
typedef std::future<SetCreditLabelActionOutcome> SetCreditLabelActionOutcomeCallable;
|
||||||
|
typedef std::function<void(const BssOpenApiClient*, const Model::SetCreditLabelActionRequest&, const SetCreditLabelActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetCreditLabelActionAsyncHandler;
|
||||||
typedef Outcome<Error, Model::SetRenewalResult> SetRenewalOutcome;
|
typedef Outcome<Error, Model::SetRenewalResult> SetRenewalOutcome;
|
||||||
typedef std::future<SetRenewalOutcome> SetRenewalOutcomeCallable;
|
typedef std::future<SetRenewalOutcome> SetRenewalOutcomeCallable;
|
||||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetRenewalRequest&, const SetRenewalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRenewalAsyncHandler;
|
typedef std::function<void(const BssOpenApiClient*, const Model::SetRenewalRequest&, const SetRenewalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRenewalAsyncHandler;
|
||||||
@@ -477,6 +497,12 @@ namespace AlibabaCloud
|
|||||||
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
||||||
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
||||||
|
QuerySavingsPlansDeductLogOutcome querySavingsPlansDeductLog(const Model::QuerySavingsPlansDeductLogRequest &request)const;
|
||||||
|
void querySavingsPlansDeductLogAsync(const Model::QuerySavingsPlansDeductLogRequest& request, const QuerySavingsPlansDeductLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
QuerySavingsPlansDeductLogOutcomeCallable querySavingsPlansDeductLogCallable(const Model::QuerySavingsPlansDeductLogRequest& request) const;
|
||||||
|
QuerySavingsPlansInstanceOutcome querySavingsPlansInstance(const Model::QuerySavingsPlansInstanceRequest &request)const;
|
||||||
|
void querySavingsPlansInstanceAsync(const Model::QuerySavingsPlansInstanceRequest& request, const QuerySavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
QuerySavingsPlansInstanceOutcomeCallable querySavingsPlansInstanceCallable(const Model::QuerySavingsPlansInstanceRequest& request) const;
|
||||||
QuerySettleBillOutcome querySettleBill(const Model::QuerySettleBillRequest &request)const;
|
QuerySettleBillOutcome querySettleBill(const Model::QuerySettleBillRequest &request)const;
|
||||||
void querySettleBillAsync(const Model::QuerySettleBillRequest& request, const QuerySettleBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void querySettleBillAsync(const Model::QuerySettleBillRequest& request, const QuerySettleBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QuerySettleBillOutcomeCallable querySettleBillCallable(const Model::QuerySettleBillRequest& request) const;
|
QuerySettleBillOutcomeCallable querySettleBillCallable(const Model::QuerySettleBillRequest& request) const;
|
||||||
@@ -495,6 +521,12 @@ namespace AlibabaCloud
|
|||||||
RenewResourcePackageOutcome renewResourcePackage(const Model::RenewResourcePackageRequest &request)const;
|
RenewResourcePackageOutcome renewResourcePackage(const Model::RenewResourcePackageRequest &request)const;
|
||||||
void renewResourcePackageAsync(const Model::RenewResourcePackageRequest& request, const RenewResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void renewResourcePackageAsync(const Model::RenewResourcePackageRequest& request, const RenewResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
RenewResourcePackageOutcomeCallable renewResourcePackageCallable(const Model::RenewResourcePackageRequest& request) const;
|
RenewResourcePackageOutcomeCallable renewResourcePackageCallable(const Model::RenewResourcePackageRequest& request) const;
|
||||||
|
SaveUserCreditOutcome saveUserCredit(const Model::SaveUserCreditRequest &request)const;
|
||||||
|
void saveUserCreditAsync(const Model::SaveUserCreditRequest& request, const SaveUserCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
SaveUserCreditOutcomeCallable saveUserCreditCallable(const Model::SaveUserCreditRequest& request) const;
|
||||||
|
SetCreditLabelActionOutcome setCreditLabelAction(const Model::SetCreditLabelActionRequest &request)const;
|
||||||
|
void setCreditLabelActionAsync(const Model::SetCreditLabelActionRequest& request, const SetCreditLabelActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
SetCreditLabelActionOutcomeCallable setCreditLabelActionCallable(const Model::SetCreditLabelActionRequest& request) const;
|
||||||
SetRenewalOutcome setRenewal(const Model::SetRenewalRequest &request)const;
|
SetRenewalOutcome setRenewal(const Model::SetRenewalRequest &request)const;
|
||||||
void setRenewalAsync(const Model::SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void setRenewalAsync(const Model::SetRenewalRequest& request, const SetRenewalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
SetRenewalOutcomeCallable setRenewalCallable(const Model::SetRenewalRequest& request) const;
|
SetRenewalOutcomeCallable setRenewalCallable(const Model::SetRenewalRequest& request) const;
|
||||||
|
|||||||
@@ -45,8 +45,12 @@ namespace AlibabaCloud
|
|||||||
void setOwnerID(long ownerID);
|
void setOwnerID(long ownerID);
|
||||||
long getBillOwnerId()const;
|
long getBillOwnerId()const;
|
||||||
void setBillOwnerId(long billOwnerId);
|
void setBillOwnerId(long billOwnerId);
|
||||||
|
std::string getBillingDate()const;
|
||||||
|
void setBillingDate(const std::string& billingDate);
|
||||||
bool getIsGroupByProduct()const;
|
bool getIsGroupByProduct()const;
|
||||||
void setIsGroupByProduct(bool isGroupByProduct);
|
void setIsGroupByProduct(bool isGroupByProduct);
|
||||||
|
std::string getGranularity()const;
|
||||||
|
void setGranularity(const std::string& granularity);
|
||||||
int getPageSize()const;
|
int getPageSize()const;
|
||||||
void setPageSize(int pageSize);
|
void setPageSize(int pageSize);
|
||||||
|
|
||||||
@@ -56,7 +60,9 @@ namespace AlibabaCloud
|
|||||||
int pageNum_;
|
int pageNum_;
|
||||||
long ownerID_;
|
long ownerID_;
|
||||||
long billOwnerId_;
|
long billOwnerId_;
|
||||||
|
std::string billingDate_;
|
||||||
bool isGroupByProduct_;
|
bool isGroupByProduct_;
|
||||||
|
std::string granularity_;
|
||||||
int pageSize_;
|
int pageSize_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
|||||||
std::string productCode;
|
std::string productCode;
|
||||||
float deductedByCashCoupons;
|
float deductedByCashCoupons;
|
||||||
float outstandingAmount;
|
float outstandingAmount;
|
||||||
|
std::string billingDate;
|
||||||
float paymentAmount;
|
float paymentAmount;
|
||||||
float deductedByPrepaidCard;
|
float deductedByPrepaidCard;
|
||||||
std::string pipCode;
|
std::string pipCode;
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_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 QuerySavingsPlansDeductLogRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
QuerySavingsPlansDeductLogRequest();
|
||||||
|
~QuerySavingsPlansDeductLogRequest();
|
||||||
|
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
std::string getLocale()const;
|
||||||
|
void setLocale(const std::string& locale);
|
||||||
|
int getPageNum()const;
|
||||||
|
void setPageNum(int pageNum);
|
||||||
|
std::string getInstanceId()const;
|
||||||
|
void setInstanceId(const std::string& instanceId);
|
||||||
|
std::string getRequestId()const;
|
||||||
|
void setRequestId(const std::string& requestId);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
|
std::string getInstanceType()const;
|
||||||
|
void setInstanceType(const std::string& instanceType);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string endTime_;
|
||||||
|
std::string startTime_;
|
||||||
|
std::string locale_;
|
||||||
|
int pageNum_;
|
||||||
|
std::string instanceId_;
|
||||||
|
std::string requestId_;
|
||||||
|
int pageSize_;
|
||||||
|
std::string instanceType_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGREQUEST_H_
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGRESULT_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSDEDUCTLOGRESULT_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 QuerySavingsPlansDeductLogResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct SavingsPlansDeductDetailResponse
|
||||||
|
{
|
||||||
|
std::string deductFee;
|
||||||
|
std::string billModule;
|
||||||
|
std::string endTime;
|
||||||
|
std::string deductCommodity;
|
||||||
|
std::string instanceId;
|
||||||
|
long userId;
|
||||||
|
std::string startTime;
|
||||||
|
std::string deductRate;
|
||||||
|
std::string deductInstanceId;
|
||||||
|
std::string discountRate;
|
||||||
|
std::string savingsType;
|
||||||
|
};
|
||||||
|
int totalCount;
|
||||||
|
int pageNum;
|
||||||
|
int pageSize;
|
||||||
|
std::vector<SavingsPlansDeductDetailResponse> items;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogResult();
|
||||||
|
explicit QuerySavingsPlansDeductLogResult(const std::string &payload);
|
||||||
|
~QuerySavingsPlansDeductLogResult();
|
||||||
|
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_QUERYSAVINGSPLANSDEDUCTLOGRESULT_H_
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_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 QuerySavingsPlansInstanceRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
QuerySavingsPlansInstanceRequest();
|
||||||
|
~QuerySavingsPlansInstanceRequest();
|
||||||
|
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
std::string getLocale()const;
|
||||||
|
void setLocale(const std::string& locale);
|
||||||
|
int getPageNum()const;
|
||||||
|
void setPageNum(int pageNum);
|
||||||
|
std::string getInstanceId()const;
|
||||||
|
void setInstanceId(const std::string& instanceId);
|
||||||
|
std::string getRequestId()const;
|
||||||
|
void setRequestId(const std::string& requestId);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string endTime_;
|
||||||
|
std::string startTime_;
|
||||||
|
std::string locale_;
|
||||||
|
int pageNum_;
|
||||||
|
std::string instanceId_;
|
||||||
|
std::string requestId_;
|
||||||
|
int pageSize_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCEREQUEST_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_QUERYSAVINGSPLANSINSTANCERESULT_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYSAVINGSPLANSINSTANCERESULT_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 QuerySavingsPlansInstanceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct SavingsPlansDetailResponse
|
||||||
|
{
|
||||||
|
std::string status;
|
||||||
|
std::string endTime;
|
||||||
|
std::string instanceId;
|
||||||
|
std::string instanceFamily;
|
||||||
|
std::string startTime;
|
||||||
|
std::string totalSave;
|
||||||
|
std::string prepayFee;
|
||||||
|
std::string payMode;
|
||||||
|
std::string utilization;
|
||||||
|
std::string currency;
|
||||||
|
std::string poolValue;
|
||||||
|
std::string region;
|
||||||
|
bool share;
|
||||||
|
std::string savingsType;
|
||||||
|
};
|
||||||
|
int totalCount;
|
||||||
|
int pageNum;
|
||||||
|
int pageSize;
|
||||||
|
std::vector<SavingsPlansDetailResponse> items;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceResult();
|
||||||
|
explicit QuerySavingsPlansInstanceResult(const std::string &payload);
|
||||||
|
~QuerySavingsPlansInstanceResult();
|
||||||
|
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_QUERYSAVINGSPLANSINSTANCERESULT_H_
|
||||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
|||||||
std::string instanceSpec;
|
std::string instanceSpec;
|
||||||
std::string productName;
|
std::string productName;
|
||||||
std::string instanceID;
|
std::string instanceID;
|
||||||
|
std::string splitCommodityCode;
|
||||||
float deductedByCashCoupons;
|
float deductedByCashCoupons;
|
||||||
std::string listPriceUnit;
|
std::string listPriceUnit;
|
||||||
std::string billingDate;
|
std::string billingDate;
|
||||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
|||||||
float deductedByPrepaidCard;
|
float deductedByPrepaidCard;
|
||||||
float invoiceDiscount;
|
float invoiceDiscount;
|
||||||
std::string splitItemName;
|
std::string splitItemName;
|
||||||
|
std::string splitProductDetail;
|
||||||
std::string subscriptionType;
|
std::string subscriptionType;
|
||||||
std::string item;
|
std::string item;
|
||||||
float pretaxGrossAmount;
|
float pretaxGrossAmount;
|
||||||
@@ -56,8 +58,10 @@ namespace AlibabaCloud
|
|||||||
std::string costUnit;
|
std::string costUnit;
|
||||||
std::string resourceGroup;
|
std::string resourceGroup;
|
||||||
std::string billingType;
|
std::string billingType;
|
||||||
|
std::string splitAccountName;
|
||||||
std::string usage;
|
std::string usage;
|
||||||
float deductedByCoupons;
|
float deductedByCoupons;
|
||||||
|
std::string splitAccountID;
|
||||||
std::string productDetail;
|
std::string productDetail;
|
||||||
std::string productCode;
|
std::string productCode;
|
||||||
std::string zone;
|
std::string zone;
|
||||||
@@ -67,9 +71,11 @@ namespace AlibabaCloud
|
|||||||
std::string nickName;
|
std::string nickName;
|
||||||
std::string intranetIP;
|
std::string intranetIP;
|
||||||
std::string pipCode;
|
std::string pipCode;
|
||||||
|
std::string servicePeriodUnit;
|
||||||
std::string servicePeriod;
|
std::string servicePeriod;
|
||||||
std::string splitItemID;
|
std::string splitItemID;
|
||||||
std::string deductedByResourcePackage;
|
std::string deductedByResourcePackage;
|
||||||
|
std::string splitBillingCycle;
|
||||||
std::string usageUnit;
|
std::string usageUnit;
|
||||||
std::string ownerID;
|
std::string ownerID;
|
||||||
float pretaxAmount;
|
float pretaxAmount;
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_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 SaveUserCreditRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
SaveUserCreditRequest();
|
||||||
|
~SaveUserCreditRequest();
|
||||||
|
|
||||||
|
bool getAvoidExpiration()const;
|
||||||
|
void setAvoidExpiration(bool avoidExpiration);
|
||||||
|
std::string getDescription()const;
|
||||||
|
void setDescription(const std::string& description);
|
||||||
|
bool getAvoidPrepaidNotification()const;
|
||||||
|
void setAvoidPrepaidNotification(bool avoidPrepaidNotification);
|
||||||
|
bool getAvoidPrepaidExpiration()const;
|
||||||
|
void setAvoidPrepaidExpiration(bool avoidPrepaidExpiration);
|
||||||
|
bool getAvoidNotification()const;
|
||||||
|
void setAvoidNotification(bool avoidNotification);
|
||||||
|
std::string get_Operator()const;
|
||||||
|
void set_Operator(const std::string& _operator);
|
||||||
|
std::string getCreditValue()const;
|
||||||
|
void setCreditValue(const std::string& creditValue);
|
||||||
|
std::string getCreditType()const;
|
||||||
|
void setCreditType(const std::string& creditType);
|
||||||
|
|
||||||
|
private:
|
||||||
|
bool avoidExpiration_;
|
||||||
|
std::string description_;
|
||||||
|
bool avoidPrepaidNotification_;
|
||||||
|
bool avoidPrepaidExpiration_;
|
||||||
|
bool avoidNotification_;
|
||||||
|
std::string _operator_;
|
||||||
|
std::string creditValue_;
|
||||||
|
std::string creditType_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITREQUEST_H_
|
||||||
@@ -14,44 +14,42 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_
|
||||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <alibabacloud/core/ServiceResult.h>
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Dms_enterprise
|
namespace BssOpenApi
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CheckFinishMissionResult : public ServiceResult
|
class ALIBABACLOUD_BSSOPENAPI_EXPORT SaveUserCreditResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
CheckFinishMissionResult();
|
SaveUserCreditResult();
|
||||||
explicit CheckFinishMissionResult(const std::string &payload);
|
explicit SaveUserCreditResult(const std::string &payload);
|
||||||
~CheckFinishMissionResult();
|
~SaveUserCreditResult();
|
||||||
bool getHasFinish()const;
|
std::string getMessage()const;
|
||||||
std::string getErrorCode()const;
|
std::string getCode()const;
|
||||||
std::string getErrorMessage()const;
|
|
||||||
bool getSuccess()const;
|
bool getSuccess()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
bool hasFinish_;
|
std::string message_;
|
||||||
std::string errorCode_;
|
std::string code_;
|
||||||
std::string errorMessage_;
|
|
||||||
bool success_;
|
bool success_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SAVEUSERCREDITRESULT_H_
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_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 SetCreditLabelActionRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
SetCreditLabelActionRequest();
|
||||||
|
~SetCreditLabelActionRequest();
|
||||||
|
|
||||||
|
std::string getActionType()const;
|
||||||
|
void setActionType(const std::string& actionType);
|
||||||
|
std::string getIsNeedSaveNotifyRule()const;
|
||||||
|
void setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule);
|
||||||
|
std::string getIsNeedAdjustCreditAccount()const;
|
||||||
|
void setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount);
|
||||||
|
bool getNewCreateMode()const;
|
||||||
|
void setNewCreateMode(bool newCreateMode);
|
||||||
|
std::string getDescription()const;
|
||||||
|
void setDescription(const std::string& description);
|
||||||
|
std::string getSource()const;
|
||||||
|
void setSource(const std::string& source);
|
||||||
|
std::string getCurrencyCode()const;
|
||||||
|
void setCurrencyCode(const std::string& currencyCode);
|
||||||
|
std::string getDailyCycle()const;
|
||||||
|
void setDailyCycle(const std::string& dailyCycle);
|
||||||
|
std::string get_Operator()const;
|
||||||
|
void set_Operator(const std::string& _operator);
|
||||||
|
std::string getUid()const;
|
||||||
|
void setUid(const std::string& uid);
|
||||||
|
std::string getSiteCode()const;
|
||||||
|
void setSiteCode(const std::string& siteCode);
|
||||||
|
std::string getClearCycle()const;
|
||||||
|
void setClearCycle(const std::string& clearCycle);
|
||||||
|
bool getNeedNotice()const;
|
||||||
|
void setNeedNotice(bool needNotice);
|
||||||
|
std::string getRequestId()const;
|
||||||
|
void setRequestId(const std::string& requestId);
|
||||||
|
std::string getIsNeedSetCreditAmount()const;
|
||||||
|
void setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount);
|
||||||
|
std::string getCreditAmount()const;
|
||||||
|
void setCreditAmount(const std::string& creditAmount);
|
||||||
|
std::string getIsNeedAddSettleLabel()const;
|
||||||
|
void setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string actionType_;
|
||||||
|
std::string isNeedSaveNotifyRule_;
|
||||||
|
std::string isNeedAdjustCreditAccount_;
|
||||||
|
bool newCreateMode_;
|
||||||
|
std::string description_;
|
||||||
|
std::string source_;
|
||||||
|
std::string currencyCode_;
|
||||||
|
std::string dailyCycle_;
|
||||||
|
std::string _operator_;
|
||||||
|
std::string uid_;
|
||||||
|
std::string siteCode_;
|
||||||
|
std::string clearCycle_;
|
||||||
|
bool needNotice_;
|
||||||
|
std::string requestId_;
|
||||||
|
std::string isNeedSetCreditAmount_;
|
||||||
|
std::string creditAmount_;
|
||||||
|
std::string isNeedAddSettleLabel_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONREQUEST_H_
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_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 SetCreditLabelActionResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
SetCreditLabelActionResult();
|
||||||
|
explicit SetCreditLabelActionResult(const std::string &payload);
|
||||||
|
~SetCreditLabelActionResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
bool getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
bool data_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETCREDITLABELACTIONRESULT_H_
|
||||||
@@ -1743,6 +1743,78 @@ BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient:
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::QuerySavingsPlansDeductLogOutcome BssOpenApiClient::querySavingsPlansDeductLog(const QuerySavingsPlansDeductLogRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return QuerySavingsPlansDeductLogOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return QuerySavingsPlansDeductLogOutcome(QuerySavingsPlansDeductLogResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return QuerySavingsPlansDeductLogOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void BssOpenApiClient::querySavingsPlansDeductLogAsync(const QuerySavingsPlansDeductLogRequest& request, const QuerySavingsPlansDeductLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, querySavingsPlansDeductLog(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::QuerySavingsPlansDeductLogOutcomeCallable BssOpenApiClient::querySavingsPlansDeductLogCallable(const QuerySavingsPlansDeductLogRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<QuerySavingsPlansDeductLogOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->querySavingsPlansDeductLog(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::QuerySavingsPlansInstanceOutcome BssOpenApiClient::querySavingsPlansInstance(const QuerySavingsPlansInstanceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return QuerySavingsPlansInstanceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return QuerySavingsPlansInstanceOutcome(QuerySavingsPlansInstanceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return QuerySavingsPlansInstanceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void BssOpenApiClient::querySavingsPlansInstanceAsync(const QuerySavingsPlansInstanceRequest& request, const QuerySavingsPlansInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, querySavingsPlansInstance(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::QuerySavingsPlansInstanceOutcomeCallable BssOpenApiClient::querySavingsPlansInstanceCallable(const QuerySavingsPlansInstanceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<QuerySavingsPlansInstanceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->querySavingsPlansInstance(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
BssOpenApiClient::QuerySettleBillOutcome BssOpenApiClient::querySettleBill(const QuerySettleBillRequest &request) const
|
BssOpenApiClient::QuerySettleBillOutcome BssOpenApiClient::querySettleBill(const QuerySettleBillRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1959,6 +2031,78 @@ BssOpenApiClient::RenewResourcePackageOutcomeCallable BssOpenApiClient::renewRes
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::SaveUserCreditOutcome BssOpenApiClient::saveUserCredit(const SaveUserCreditRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return SaveUserCreditOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return SaveUserCreditOutcome(SaveUserCreditResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return SaveUserCreditOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void BssOpenApiClient::saveUserCreditAsync(const SaveUserCreditRequest& request, const SaveUserCreditAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, saveUserCredit(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::SaveUserCreditOutcomeCallable BssOpenApiClient::saveUserCreditCallable(const SaveUserCreditRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<SaveUserCreditOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->saveUserCredit(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::SetCreditLabelActionOutcome BssOpenApiClient::setCreditLabelAction(const SetCreditLabelActionRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return SetCreditLabelActionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return SetCreditLabelActionOutcome(SetCreditLabelActionResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return SetCreditLabelActionOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void BssOpenApiClient::setCreditLabelActionAsync(const SetCreditLabelActionRequest& request, const SetCreditLabelActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, setCreditLabelAction(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
BssOpenApiClient::SetCreditLabelActionOutcomeCallable BssOpenApiClient::setCreditLabelActionCallable(const SetCreditLabelActionRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<SetCreditLabelActionOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->setCreditLabelAction(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
BssOpenApiClient::SetRenewalOutcome BssOpenApiClient::setRenewal(const SetRenewalRequest &request) const
|
BssOpenApiClient::SetRenewalOutcome BssOpenApiClient::setRenewal(const SetRenewalRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -82,6 +82,17 @@ void QueryAccountBillRequest::setBillOwnerId(long billOwnerId)
|
|||||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string QueryAccountBillRequest::getBillingDate()const
|
||||||
|
{
|
||||||
|
return billingDate_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryAccountBillRequest::setBillingDate(const std::string& billingDate)
|
||||||
|
{
|
||||||
|
billingDate_ = billingDate;
|
||||||
|
setParameter("BillingDate", billingDate);
|
||||||
|
}
|
||||||
|
|
||||||
bool QueryAccountBillRequest::getIsGroupByProduct()const
|
bool QueryAccountBillRequest::getIsGroupByProduct()const
|
||||||
{
|
{
|
||||||
return isGroupByProduct_;
|
return isGroupByProduct_;
|
||||||
@@ -93,6 +104,17 @@ void QueryAccountBillRequest::setIsGroupByProduct(bool isGroupByProduct)
|
|||||||
setParameter("IsGroupByProduct", isGroupByProduct ? "true" : "false");
|
setParameter("IsGroupByProduct", isGroupByProduct ? "true" : "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string QueryAccountBillRequest::getGranularity()const
|
||||||
|
{
|
||||||
|
return granularity_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryAccountBillRequest::setGranularity(const std::string& granularity)
|
||||||
|
{
|
||||||
|
granularity_ = granularity;
|
||||||
|
setParameter("Granularity", granularity);
|
||||||
|
}
|
||||||
|
|
||||||
int QueryAccountBillRequest::getPageSize()const
|
int QueryAccountBillRequest::getPageSize()const
|
||||||
{
|
{
|
||||||
return pageSize_;
|
return pageSize_;
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ void QueryAccountBillResult::parse(const std::string &payload)
|
|||||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||||
|
if(!dataNodeItemsItem["BillingDate"].isNull())
|
||||||
|
itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString();
|
||||||
data_.items.push_back(itemObject);
|
data_.items.push_back(itemObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
|
|||||||
117
bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc
Normal file
117
bssopenapi/src/model/QuerySavingsPlansDeductLogRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/bssopenapi/model/QuerySavingsPlansDeductLogRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansDeductLogRequest;
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogRequest::QuerySavingsPlansDeductLogRequest() :
|
||||||
|
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansDeductLog")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogRequest::~QuerySavingsPlansDeductLogRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogRequest::getLocale()const
|
||||||
|
{
|
||||||
|
return locale_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setLocale(const std::string& locale)
|
||||||
|
{
|
||||||
|
locale_ = locale;
|
||||||
|
setParameter("Locale", locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
int QuerySavingsPlansDeductLogRequest::getPageNum()const
|
||||||
|
{
|
||||||
|
return pageNum_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setPageNum(int pageNum)
|
||||||
|
{
|
||||||
|
pageNum_ = pageNum;
|
||||||
|
setParameter("PageNum", std::to_string(pageNum));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogRequest::getInstanceId()const
|
||||||
|
{
|
||||||
|
return instanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setInstanceId(const std::string& instanceId)
|
||||||
|
{
|
||||||
|
instanceId_ = instanceId;
|
||||||
|
setParameter("InstanceId", instanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogRequest::getRequestId()const
|
||||||
|
{
|
||||||
|
return requestId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setRequestId(const std::string& requestId)
|
||||||
|
{
|
||||||
|
requestId_ = requestId;
|
||||||
|
setParameter("RequestId", requestId);
|
||||||
|
}
|
||||||
|
|
||||||
|
int QuerySavingsPlansDeductLogRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogRequest::getInstanceType()const
|
||||||
|
{
|
||||||
|
return instanceType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogRequest::setInstanceType(const std::string& instanceType)
|
||||||
|
{
|
||||||
|
instanceType_ = instanceType;
|
||||||
|
setParameter("InstanceType", instanceType);
|
||||||
|
}
|
||||||
|
|
||||||
105
bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc
Normal file
105
bssopenapi/src/model/QuerySavingsPlansDeductLogResult.cc
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
/*
|
||||||
|
* 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/QuerySavingsPlansDeductLogResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::BssOpenApi;
|
||||||
|
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogResult::QuerySavingsPlansDeductLogResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogResult::QuerySavingsPlansDeductLogResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogResult::~QuerySavingsPlansDeductLogResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void QuerySavingsPlansDeductLogResult::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["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());
|
||||||
|
auto allItemsNode = dataNode["Items"]["SavingsPlansDeductDetailResponse"];
|
||||||
|
for (auto dataNodeItemsSavingsPlansDeductDetailResponse : allItemsNode)
|
||||||
|
{
|
||||||
|
Data::SavingsPlansDeductDetailResponse savingsPlansDeductDetailResponseObject;
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDeductDetailResponse["InstanceId"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.startTime = dataNodeItemsSavingsPlansDeductDetailResponse["StartTime"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.endTime = dataNodeItemsSavingsPlansDeductDetailResponse["EndTime"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDeductDetailResponse["SavingsType"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.billModule = dataNodeItemsSavingsPlansDeductDetailResponse["BillModule"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.deductFee = dataNodeItemsSavingsPlansDeductDetailResponse["DeductFee"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.deductRate = dataNodeItemsSavingsPlansDeductDetailResponse["DeductRate"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.userId = std::stol(dataNodeItemsSavingsPlansDeductDetailResponse["UserId"].asString());
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.deductCommodity = dataNodeItemsSavingsPlansDeductDetailResponse["DeductCommodity"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.deductInstanceId = dataNodeItemsSavingsPlansDeductDetailResponse["DeductInstanceId"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].isNull())
|
||||||
|
savingsPlansDeductDetailResponseObject.discountRate = dataNodeItemsSavingsPlansDeductDetailResponse["DiscountRate"].asString();
|
||||||
|
data_.items.push_back(savingsPlansDeductDetailResponseObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
QuerySavingsPlansDeductLogResult::Data QuerySavingsPlansDeductLogResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansDeductLogResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool QuerySavingsPlansDeductLogResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
106
bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc
Normal file
106
bssopenapi/src/model/QuerySavingsPlansInstanceRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/bssopenapi/model/QuerySavingsPlansInstanceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::BssOpenApi::Model::QuerySavingsPlansInstanceRequest;
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceRequest::QuerySavingsPlansInstanceRequest() :
|
||||||
|
RpcServiceRequest("bssopenapi", "2017-12-14", "QuerySavingsPlansInstance")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceRequest::~QuerySavingsPlansInstanceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceRequest::getLocale()const
|
||||||
|
{
|
||||||
|
return locale_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setLocale(const std::string& locale)
|
||||||
|
{
|
||||||
|
locale_ = locale;
|
||||||
|
setParameter("Locale", locale);
|
||||||
|
}
|
||||||
|
|
||||||
|
int QuerySavingsPlansInstanceRequest::getPageNum()const
|
||||||
|
{
|
||||||
|
return pageNum_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setPageNum(int pageNum)
|
||||||
|
{
|
||||||
|
pageNum_ = pageNum;
|
||||||
|
setParameter("PageNum", std::to_string(pageNum));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceRequest::getInstanceId()const
|
||||||
|
{
|
||||||
|
return instanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||||
|
{
|
||||||
|
instanceId_ = instanceId;
|
||||||
|
setParameter("InstanceId", instanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceRequest::getRequestId()const
|
||||||
|
{
|
||||||
|
return requestId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setRequestId(const std::string& requestId)
|
||||||
|
{
|
||||||
|
requestId_ = requestId;
|
||||||
|
setParameter("RequestId", requestId);
|
||||||
|
}
|
||||||
|
|
||||||
|
int QuerySavingsPlansInstanceRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
111
bssopenapi/src/model/QuerySavingsPlansInstanceResult.cc
Normal file
111
bssopenapi/src/model/QuerySavingsPlansInstanceResult.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/QuerySavingsPlansInstanceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::BssOpenApi;
|
||||||
|
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceResult::QuerySavingsPlansInstanceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceResult::QuerySavingsPlansInstanceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceResult::~QuerySavingsPlansInstanceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void QuerySavingsPlansInstanceResult::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["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());
|
||||||
|
auto allItemsNode = dataNode["Items"]["SavingsPlansDetailResponse"];
|
||||||
|
for (auto dataNodeItemsSavingsPlansDetailResponse : allItemsNode)
|
||||||
|
{
|
||||||
|
Data::SavingsPlansDetailResponse savingsPlansDetailResponseObject;
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["InstanceId"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.instanceId = dataNodeItemsSavingsPlansDetailResponse["InstanceId"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["SavingsType"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.savingsType = dataNodeItemsSavingsPlansDetailResponse["SavingsType"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.instanceFamily = dataNodeItemsSavingsPlansDetailResponse["InstanceFamily"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["Region"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.region = dataNodeItemsSavingsPlansDetailResponse["Region"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["PoolValue"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.poolValue = dataNodeItemsSavingsPlansDetailResponse["PoolValue"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["Currency"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.currency = dataNodeItemsSavingsPlansDetailResponse["Currency"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["Status"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.status = dataNodeItemsSavingsPlansDetailResponse["Status"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["StartTime"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.startTime = dataNodeItemsSavingsPlansDetailResponse["StartTime"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["EndTime"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.endTime = dataNodeItemsSavingsPlansDetailResponse["EndTime"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["PayMode"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.payMode = dataNodeItemsSavingsPlansDetailResponse["PayMode"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.prepayFee = dataNodeItemsSavingsPlansDetailResponse["PrepayFee"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["TotalSave"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.totalSave = dataNodeItemsSavingsPlansDetailResponse["TotalSave"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["Utilization"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.utilization = dataNodeItemsSavingsPlansDetailResponse["Utilization"].asString();
|
||||||
|
if(!dataNodeItemsSavingsPlansDetailResponse["Share"].isNull())
|
||||||
|
savingsPlansDetailResponseObject.share = dataNodeItemsSavingsPlansDetailResponse["Share"].asString() == "true";
|
||||||
|
data_.items.push_back(savingsPlansDetailResponseObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
QuerySavingsPlansInstanceResult::Data QuerySavingsPlansInstanceResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QuerySavingsPlansInstanceResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool QuerySavingsPlansInstanceResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -136,6 +136,18 @@ void QuerySplitItemBillResult::parse(const std::string &payload)
|
|||||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||||
|
if(!dataNodeItemsItem["ServicePeriodUnit"].isNull())
|
||||||
|
itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString();
|
||||||
|
if(!dataNodeItemsItem["SplitCommodityCode"].isNull())
|
||||||
|
itemObject.splitCommodityCode = dataNodeItemsItem["SplitCommodityCode"].asString();
|
||||||
|
if(!dataNodeItemsItem["SplitProductDetail"].isNull())
|
||||||
|
itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString();
|
||||||
|
if(!dataNodeItemsItem["SplitAccountID"].isNull())
|
||||||
|
itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString();
|
||||||
|
if(!dataNodeItemsItem["SplitAccountName"].isNull())
|
||||||
|
itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString();
|
||||||
|
if(!dataNodeItemsItem["SplitBillingCycle"].isNull())
|
||||||
|
itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString();
|
||||||
data_.items.push_back(itemObject);
|
data_.items.push_back(itemObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
|
|||||||
117
bssopenapi/src/model/SaveUserCreditRequest.cc
Normal file
117
bssopenapi/src/model/SaveUserCreditRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/bssopenapi/model/SaveUserCreditRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::BssOpenApi::Model::SaveUserCreditRequest;
|
||||||
|
|
||||||
|
SaveUserCreditRequest::SaveUserCreditRequest() :
|
||||||
|
RpcServiceRequest("bssopenapi", "2017-12-14", "SaveUserCredit")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SaveUserCreditRequest::~SaveUserCreditRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
bool SaveUserCreditRequest::getAvoidExpiration()const
|
||||||
|
{
|
||||||
|
return avoidExpiration_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setAvoidExpiration(bool avoidExpiration)
|
||||||
|
{
|
||||||
|
avoidExpiration_ = avoidExpiration;
|
||||||
|
setParameter("AvoidExpiration", avoidExpiration ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SaveUserCreditRequest::getDescription()const
|
||||||
|
{
|
||||||
|
return description_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setDescription(const std::string& description)
|
||||||
|
{
|
||||||
|
description_ = description;
|
||||||
|
setParameter("Description", description);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SaveUserCreditRequest::getAvoidPrepaidNotification()const
|
||||||
|
{
|
||||||
|
return avoidPrepaidNotification_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setAvoidPrepaidNotification(bool avoidPrepaidNotification)
|
||||||
|
{
|
||||||
|
avoidPrepaidNotification_ = avoidPrepaidNotification;
|
||||||
|
setParameter("AvoidPrepaidNotification", avoidPrepaidNotification ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SaveUserCreditRequest::getAvoidPrepaidExpiration()const
|
||||||
|
{
|
||||||
|
return avoidPrepaidExpiration_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setAvoidPrepaidExpiration(bool avoidPrepaidExpiration)
|
||||||
|
{
|
||||||
|
avoidPrepaidExpiration_ = avoidPrepaidExpiration;
|
||||||
|
setParameter("AvoidPrepaidExpiration", avoidPrepaidExpiration ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SaveUserCreditRequest::getAvoidNotification()const
|
||||||
|
{
|
||||||
|
return avoidNotification_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setAvoidNotification(bool avoidNotification)
|
||||||
|
{
|
||||||
|
avoidNotification_ = avoidNotification;
|
||||||
|
setParameter("AvoidNotification", avoidNotification ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SaveUserCreditRequest::get_Operator()const
|
||||||
|
{
|
||||||
|
return _operator_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::set_Operator(const std::string& _operator)
|
||||||
|
{
|
||||||
|
_operator_ = _operator;
|
||||||
|
setParameter("_Operator", _operator);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SaveUserCreditRequest::getCreditValue()const
|
||||||
|
{
|
||||||
|
return creditValue_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setCreditValue(const std::string& creditValue)
|
||||||
|
{
|
||||||
|
creditValue_ = creditValue;
|
||||||
|
setParameter("CreditValue", creditValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SaveUserCreditRequest::getCreditType()const
|
||||||
|
{
|
||||||
|
return creditType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SaveUserCreditRequest::setCreditType(const std::string& creditType)
|
||||||
|
{
|
||||||
|
creditType_ = creditType;
|
||||||
|
setParameter("CreditType", creditType);
|
||||||
|
}
|
||||||
|
|
||||||
65
bssopenapi/src/model/SaveUserCreditResult.cc
Normal file
65
bssopenapi/src/model/SaveUserCreditResult.cc
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/bssopenapi/model/SaveUserCreditResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::BssOpenApi;
|
||||||
|
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||||
|
|
||||||
|
SaveUserCreditResult::SaveUserCreditResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SaveUserCreditResult::SaveUserCreditResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SaveUserCreditResult::~SaveUserCreditResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SaveUserCreditResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SaveUserCreditResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SaveUserCreditResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SaveUserCreditResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
216
bssopenapi/src/model/SetCreditLabelActionRequest.cc
Normal file
216
bssopenapi/src/model/SetCreditLabelActionRequest.cc
Normal file
@@ -0,0 +1,216 @@
|
|||||||
|
/*
|
||||||
|
* 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/SetCreditLabelActionRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::BssOpenApi::Model::SetCreditLabelActionRequest;
|
||||||
|
|
||||||
|
SetCreditLabelActionRequest::SetCreditLabelActionRequest() :
|
||||||
|
RpcServiceRequest("bssopenapi", "2017-12-14", "SetCreditLabelAction")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
SetCreditLabelActionRequest::~SetCreditLabelActionRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getActionType()const
|
||||||
|
{
|
||||||
|
return actionType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setActionType(const std::string& actionType)
|
||||||
|
{
|
||||||
|
actionType_ = actionType;
|
||||||
|
setParameter("ActionType", actionType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getIsNeedSaveNotifyRule()const
|
||||||
|
{
|
||||||
|
return isNeedSaveNotifyRule_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setIsNeedSaveNotifyRule(const std::string& isNeedSaveNotifyRule)
|
||||||
|
{
|
||||||
|
isNeedSaveNotifyRule_ = isNeedSaveNotifyRule;
|
||||||
|
setParameter("IsNeedSaveNotifyRule", isNeedSaveNotifyRule);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getIsNeedAdjustCreditAccount()const
|
||||||
|
{
|
||||||
|
return isNeedAdjustCreditAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setIsNeedAdjustCreditAccount(const std::string& isNeedAdjustCreditAccount)
|
||||||
|
{
|
||||||
|
isNeedAdjustCreditAccount_ = isNeedAdjustCreditAccount;
|
||||||
|
setParameter("IsNeedAdjustCreditAccount", isNeedAdjustCreditAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SetCreditLabelActionRequest::getNewCreateMode()const
|
||||||
|
{
|
||||||
|
return newCreateMode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setNewCreateMode(bool newCreateMode)
|
||||||
|
{
|
||||||
|
newCreateMode_ = newCreateMode;
|
||||||
|
setParameter("NewCreateMode", newCreateMode ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getDescription()const
|
||||||
|
{
|
||||||
|
return description_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setDescription(const std::string& description)
|
||||||
|
{
|
||||||
|
description_ = description;
|
||||||
|
setParameter("Description", description);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getSource()const
|
||||||
|
{
|
||||||
|
return source_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setSource(const std::string& source)
|
||||||
|
{
|
||||||
|
source_ = source;
|
||||||
|
setParameter("Source", source);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getCurrencyCode()const
|
||||||
|
{
|
||||||
|
return currencyCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setCurrencyCode(const std::string& currencyCode)
|
||||||
|
{
|
||||||
|
currencyCode_ = currencyCode;
|
||||||
|
setParameter("CurrencyCode", currencyCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getDailyCycle()const
|
||||||
|
{
|
||||||
|
return dailyCycle_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setDailyCycle(const std::string& dailyCycle)
|
||||||
|
{
|
||||||
|
dailyCycle_ = dailyCycle;
|
||||||
|
setParameter("DailyCycle", dailyCycle);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::get_Operator()const
|
||||||
|
{
|
||||||
|
return _operator_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::set_Operator(const std::string& _operator)
|
||||||
|
{
|
||||||
|
_operator_ = _operator;
|
||||||
|
setParameter("_Operator", _operator);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getUid()const
|
||||||
|
{
|
||||||
|
return uid_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setUid(const std::string& uid)
|
||||||
|
{
|
||||||
|
uid_ = uid;
|
||||||
|
setParameter("Uid", uid);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getSiteCode()const
|
||||||
|
{
|
||||||
|
return siteCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setSiteCode(const std::string& siteCode)
|
||||||
|
{
|
||||||
|
siteCode_ = siteCode;
|
||||||
|
setParameter("SiteCode", siteCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getClearCycle()const
|
||||||
|
{
|
||||||
|
return clearCycle_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setClearCycle(const std::string& clearCycle)
|
||||||
|
{
|
||||||
|
clearCycle_ = clearCycle;
|
||||||
|
setParameter("ClearCycle", clearCycle);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SetCreditLabelActionRequest::getNeedNotice()const
|
||||||
|
{
|
||||||
|
return needNotice_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setNeedNotice(bool needNotice)
|
||||||
|
{
|
||||||
|
needNotice_ = needNotice;
|
||||||
|
setParameter("NeedNotice", needNotice ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getRequestId()const
|
||||||
|
{
|
||||||
|
return requestId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setRequestId(const std::string& requestId)
|
||||||
|
{
|
||||||
|
requestId_ = requestId;
|
||||||
|
setParameter("RequestId", requestId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getIsNeedSetCreditAmount()const
|
||||||
|
{
|
||||||
|
return isNeedSetCreditAmount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setIsNeedSetCreditAmount(const std::string& isNeedSetCreditAmount)
|
||||||
|
{
|
||||||
|
isNeedSetCreditAmount_ = isNeedSetCreditAmount;
|
||||||
|
setParameter("IsNeedSetCreditAmount", isNeedSetCreditAmount);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getCreditAmount()const
|
||||||
|
{
|
||||||
|
return creditAmount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setCreditAmount(const std::string& creditAmount)
|
||||||
|
{
|
||||||
|
creditAmount_ = creditAmount;
|
||||||
|
setParameter("CreditAmount", creditAmount);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionRequest::getIsNeedAddSettleLabel()const
|
||||||
|
{
|
||||||
|
return isNeedAddSettleLabel_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetCreditLabelActionRequest::setIsNeedAddSettleLabel(const std::string& isNeedAddSettleLabel)
|
||||||
|
{
|
||||||
|
isNeedAddSettleLabel_ = isNeedAddSettleLabel;
|
||||||
|
setParameter("IsNeedAddSettleLabel", isNeedAddSettleLabel);
|
||||||
|
}
|
||||||
|
|
||||||
72
bssopenapi/src/model/SetCreditLabelActionResult.cc
Normal file
72
bssopenapi/src/model/SetCreditLabelActionResult.cc
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/bssopenapi/model/SetCreditLabelActionResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::BssOpenApi;
|
||||||
|
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||||
|
|
||||||
|
SetCreditLabelActionResult::SetCreditLabelActionResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
SetCreditLabelActionResult::SetCreditLabelActionResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
SetCreditLabelActionResult::~SetCreditLabelActionResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void SetCreditLabelActionResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Data"].isNull())
|
||||||
|
data_ = value["Data"].asString() == "true";
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SetCreditLabelActionResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string SetCreditLabelActionResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SetCreditLabelActionResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -31,6 +31,8 @@ set(cdrs_public_header_model
|
|||||||
include/alibabacloud/cdrs/model/GetCdrsMonitorListResult.h
|
include/alibabacloud/cdrs/model/GetCdrsMonitorListResult.h
|
||||||
include/alibabacloud/cdrs/model/GetCdrsMonitorResultRequest.h
|
include/alibabacloud/cdrs/model/GetCdrsMonitorResultRequest.h
|
||||||
include/alibabacloud/cdrs/model/GetCdrsMonitorResultResult.h
|
include/alibabacloud/cdrs/model/GetCdrsMonitorResultResult.h
|
||||||
|
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/ListAreaHotSpotMetricsResult.h
|
||||||
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
include/alibabacloud/cdrs/model/ListCityMapAoisRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListCityMapAoisResult.h
|
include/alibabacloud/cdrs/model/ListCityMapAoisResult.h
|
||||||
include/alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h
|
include/alibabacloud/cdrs/model/ListCityMapCameraResultsRequest.h
|
||||||
@@ -45,6 +47,10 @@ set(cdrs_public_header_model
|
|||||||
include/alibabacloud/cdrs/model/ListCityMapRangeStatisticResult.h
|
include/alibabacloud/cdrs/model/ListCityMapRangeStatisticResult.h
|
||||||
include/alibabacloud/cdrs/model/ListCorpMetricsRequest.h
|
include/alibabacloud/cdrs/model/ListCorpMetricsRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListCorpMetricsResult.h
|
include/alibabacloud/cdrs/model/ListCorpMetricsResult.h
|
||||||
|
include/alibabacloud/cdrs/model/ListCorpMetricsStatisticRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/ListCorpMetricsStatisticResult.h
|
||||||
|
include/alibabacloud/cdrs/model/ListCorpTrackDetailRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/ListCorpTrackDetailResult.h
|
||||||
include/alibabacloud/cdrs/model/ListDataStatisticsRequest.h
|
include/alibabacloud/cdrs/model/ListDataStatisticsRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListDataStatisticsResult.h
|
include/alibabacloud/cdrs/model/ListDataStatisticsResult.h
|
||||||
include/alibabacloud/cdrs/model/ListDataStatisticsByDayRequest.h
|
include/alibabacloud/cdrs/model/ListDataStatisticsByDayRequest.h
|
||||||
@@ -57,6 +63,8 @@ set(cdrs_public_header_model
|
|||||||
include/alibabacloud/cdrs/model/ListDevicePersonResult.h
|
include/alibabacloud/cdrs/model/ListDevicePersonResult.h
|
||||||
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsRequest.h
|
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsResult.h
|
include/alibabacloud/cdrs/model/ListDevicePersonStatisticsResult.h
|
||||||
|
include/alibabacloud/cdrs/model/ListDeviceRelationRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/ListDeviceRelationResult.h
|
||||||
include/alibabacloud/cdrs/model/ListMapRouteDetailsRequest.h
|
include/alibabacloud/cdrs/model/ListMapRouteDetailsRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListMapRouteDetailsResult.h
|
include/alibabacloud/cdrs/model/ListMapRouteDetailsResult.h
|
||||||
include/alibabacloud/cdrs/model/ListMetricsRequest.h
|
include/alibabacloud/cdrs/model/ListMetricsRequest.h
|
||||||
@@ -79,6 +87,8 @@ set(cdrs_public_header_model
|
|||||||
include/alibabacloud/cdrs/model/ListStorageStatisticsResult.h
|
include/alibabacloud/cdrs/model/ListStorageStatisticsResult.h
|
||||||
include/alibabacloud/cdrs/model/ListStructureStatisticsRequest.h
|
include/alibabacloud/cdrs/model/ListStructureStatisticsRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListStructureStatisticsResult.h
|
include/alibabacloud/cdrs/model/ListStructureStatisticsResult.h
|
||||||
|
include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/ListTagMetricsResult.h
|
||||||
include/alibabacloud/cdrs/model/ListVehicleDetailsRequest.h
|
include/alibabacloud/cdrs/model/ListVehicleDetailsRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListVehicleDetailsResult.h
|
include/alibabacloud/cdrs/model/ListVehicleDetailsResult.h
|
||||||
include/alibabacloud/cdrs/model/ListVehicleResultsRequest.h
|
include/alibabacloud/cdrs/model/ListVehicleResultsRequest.h
|
||||||
@@ -89,6 +99,10 @@ set(cdrs_public_header_model
|
|||||||
include/alibabacloud/cdrs/model/ListVehicleTopResult.h
|
include/alibabacloud/cdrs/model/ListVehicleTopResult.h
|
||||||
include/alibabacloud/cdrs/model/ListVehicleTrackRequest.h
|
include/alibabacloud/cdrs/model/ListVehicleTrackRequest.h
|
||||||
include/alibabacloud/cdrs/model/ListVehicleTrackResult.h
|
include/alibabacloud/cdrs/model/ListVehicleTrackResult.h
|
||||||
|
include/alibabacloud/cdrs/model/PaginateDeviceRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/PaginateDeviceResult.h
|
||||||
|
include/alibabacloud/cdrs/model/PaginateProjectRequest.h
|
||||||
|
include/alibabacloud/cdrs/model/PaginateProjectResult.h
|
||||||
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
include/alibabacloud/cdrs/model/RecognizeImageRequest.h
|
||||||
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
include/alibabacloud/cdrs/model/RecognizeImageResult.h
|
||||||
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
include/alibabacloud/cdrs/model/SearchObjectRequest.h
|
||||||
@@ -114,6 +128,8 @@ set(cdrs_src
|
|||||||
src/model/GetCdrsMonitorListResult.cc
|
src/model/GetCdrsMonitorListResult.cc
|
||||||
src/model/GetCdrsMonitorResultRequest.cc
|
src/model/GetCdrsMonitorResultRequest.cc
|
||||||
src/model/GetCdrsMonitorResultResult.cc
|
src/model/GetCdrsMonitorResultResult.cc
|
||||||
|
src/model/ListAreaHotSpotMetricsRequest.cc
|
||||||
|
src/model/ListAreaHotSpotMetricsResult.cc
|
||||||
src/model/ListCityMapAoisRequest.cc
|
src/model/ListCityMapAoisRequest.cc
|
||||||
src/model/ListCityMapAoisResult.cc
|
src/model/ListCityMapAoisResult.cc
|
||||||
src/model/ListCityMapCameraResultsRequest.cc
|
src/model/ListCityMapCameraResultsRequest.cc
|
||||||
@@ -128,6 +144,10 @@ set(cdrs_src
|
|||||||
src/model/ListCityMapRangeStatisticResult.cc
|
src/model/ListCityMapRangeStatisticResult.cc
|
||||||
src/model/ListCorpMetricsRequest.cc
|
src/model/ListCorpMetricsRequest.cc
|
||||||
src/model/ListCorpMetricsResult.cc
|
src/model/ListCorpMetricsResult.cc
|
||||||
|
src/model/ListCorpMetricsStatisticRequest.cc
|
||||||
|
src/model/ListCorpMetricsStatisticResult.cc
|
||||||
|
src/model/ListCorpTrackDetailRequest.cc
|
||||||
|
src/model/ListCorpTrackDetailResult.cc
|
||||||
src/model/ListDataStatisticsRequest.cc
|
src/model/ListDataStatisticsRequest.cc
|
||||||
src/model/ListDataStatisticsResult.cc
|
src/model/ListDataStatisticsResult.cc
|
||||||
src/model/ListDataStatisticsByDayRequest.cc
|
src/model/ListDataStatisticsByDayRequest.cc
|
||||||
@@ -140,6 +160,8 @@ set(cdrs_src
|
|||||||
src/model/ListDevicePersonResult.cc
|
src/model/ListDevicePersonResult.cc
|
||||||
src/model/ListDevicePersonStatisticsRequest.cc
|
src/model/ListDevicePersonStatisticsRequest.cc
|
||||||
src/model/ListDevicePersonStatisticsResult.cc
|
src/model/ListDevicePersonStatisticsResult.cc
|
||||||
|
src/model/ListDeviceRelationRequest.cc
|
||||||
|
src/model/ListDeviceRelationResult.cc
|
||||||
src/model/ListMapRouteDetailsRequest.cc
|
src/model/ListMapRouteDetailsRequest.cc
|
||||||
src/model/ListMapRouteDetailsResult.cc
|
src/model/ListMapRouteDetailsResult.cc
|
||||||
src/model/ListMetricsRequest.cc
|
src/model/ListMetricsRequest.cc
|
||||||
@@ -162,6 +184,8 @@ set(cdrs_src
|
|||||||
src/model/ListStorageStatisticsResult.cc
|
src/model/ListStorageStatisticsResult.cc
|
||||||
src/model/ListStructureStatisticsRequest.cc
|
src/model/ListStructureStatisticsRequest.cc
|
||||||
src/model/ListStructureStatisticsResult.cc
|
src/model/ListStructureStatisticsResult.cc
|
||||||
|
src/model/ListTagMetricsRequest.cc
|
||||||
|
src/model/ListTagMetricsResult.cc
|
||||||
src/model/ListVehicleDetailsRequest.cc
|
src/model/ListVehicleDetailsRequest.cc
|
||||||
src/model/ListVehicleDetailsResult.cc
|
src/model/ListVehicleDetailsResult.cc
|
||||||
src/model/ListVehicleResultsRequest.cc
|
src/model/ListVehicleResultsRequest.cc
|
||||||
@@ -172,6 +196,10 @@ set(cdrs_src
|
|||||||
src/model/ListVehicleTopResult.cc
|
src/model/ListVehicleTopResult.cc
|
||||||
src/model/ListVehicleTrackRequest.cc
|
src/model/ListVehicleTrackRequest.cc
|
||||||
src/model/ListVehicleTrackResult.cc
|
src/model/ListVehicleTrackResult.cc
|
||||||
|
src/model/PaginateDeviceRequest.cc
|
||||||
|
src/model/PaginateDeviceResult.cc
|
||||||
|
src/model/PaginateProjectRequest.cc
|
||||||
|
src/model/PaginateProjectResult.cc
|
||||||
src/model/RecognizeImageRequest.cc
|
src/model/RecognizeImageRequest.cc
|
||||||
src/model/RecognizeImageResult.cc
|
src/model/RecognizeImageResult.cc
|
||||||
src/model/SearchObjectRequest.cc
|
src/model/SearchObjectRequest.cc
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
#include "model/GetCdrsMonitorListResult.h"
|
#include "model/GetCdrsMonitorListResult.h"
|
||||||
#include "model/GetCdrsMonitorResultRequest.h"
|
#include "model/GetCdrsMonitorResultRequest.h"
|
||||||
#include "model/GetCdrsMonitorResultResult.h"
|
#include "model/GetCdrsMonitorResultResult.h"
|
||||||
|
#include "model/ListAreaHotSpotMetricsRequest.h"
|
||||||
|
#include "model/ListAreaHotSpotMetricsResult.h"
|
||||||
#include "model/ListCityMapAoisRequest.h"
|
#include "model/ListCityMapAoisRequest.h"
|
||||||
#include "model/ListCityMapAoisResult.h"
|
#include "model/ListCityMapAoisResult.h"
|
||||||
#include "model/ListCityMapCameraResultsRequest.h"
|
#include "model/ListCityMapCameraResultsRequest.h"
|
||||||
@@ -46,6 +48,10 @@
|
|||||||
#include "model/ListCityMapRangeStatisticResult.h"
|
#include "model/ListCityMapRangeStatisticResult.h"
|
||||||
#include "model/ListCorpMetricsRequest.h"
|
#include "model/ListCorpMetricsRequest.h"
|
||||||
#include "model/ListCorpMetricsResult.h"
|
#include "model/ListCorpMetricsResult.h"
|
||||||
|
#include "model/ListCorpMetricsStatisticRequest.h"
|
||||||
|
#include "model/ListCorpMetricsStatisticResult.h"
|
||||||
|
#include "model/ListCorpTrackDetailRequest.h"
|
||||||
|
#include "model/ListCorpTrackDetailResult.h"
|
||||||
#include "model/ListDataStatisticsRequest.h"
|
#include "model/ListDataStatisticsRequest.h"
|
||||||
#include "model/ListDataStatisticsResult.h"
|
#include "model/ListDataStatisticsResult.h"
|
||||||
#include "model/ListDataStatisticsByDayRequest.h"
|
#include "model/ListDataStatisticsByDayRequest.h"
|
||||||
@@ -58,6 +64,8 @@
|
|||||||
#include "model/ListDevicePersonResult.h"
|
#include "model/ListDevicePersonResult.h"
|
||||||
#include "model/ListDevicePersonStatisticsRequest.h"
|
#include "model/ListDevicePersonStatisticsRequest.h"
|
||||||
#include "model/ListDevicePersonStatisticsResult.h"
|
#include "model/ListDevicePersonStatisticsResult.h"
|
||||||
|
#include "model/ListDeviceRelationRequest.h"
|
||||||
|
#include "model/ListDeviceRelationResult.h"
|
||||||
#include "model/ListMapRouteDetailsRequest.h"
|
#include "model/ListMapRouteDetailsRequest.h"
|
||||||
#include "model/ListMapRouteDetailsResult.h"
|
#include "model/ListMapRouteDetailsResult.h"
|
||||||
#include "model/ListMetricsRequest.h"
|
#include "model/ListMetricsRequest.h"
|
||||||
@@ -80,6 +88,8 @@
|
|||||||
#include "model/ListStorageStatisticsResult.h"
|
#include "model/ListStorageStatisticsResult.h"
|
||||||
#include "model/ListStructureStatisticsRequest.h"
|
#include "model/ListStructureStatisticsRequest.h"
|
||||||
#include "model/ListStructureStatisticsResult.h"
|
#include "model/ListStructureStatisticsResult.h"
|
||||||
|
#include "model/ListTagMetricsRequest.h"
|
||||||
|
#include "model/ListTagMetricsResult.h"
|
||||||
#include "model/ListVehicleDetailsRequest.h"
|
#include "model/ListVehicleDetailsRequest.h"
|
||||||
#include "model/ListVehicleDetailsResult.h"
|
#include "model/ListVehicleDetailsResult.h"
|
||||||
#include "model/ListVehicleResultsRequest.h"
|
#include "model/ListVehicleResultsRequest.h"
|
||||||
@@ -90,6 +100,10 @@
|
|||||||
#include "model/ListVehicleTopResult.h"
|
#include "model/ListVehicleTopResult.h"
|
||||||
#include "model/ListVehicleTrackRequest.h"
|
#include "model/ListVehicleTrackRequest.h"
|
||||||
#include "model/ListVehicleTrackResult.h"
|
#include "model/ListVehicleTrackResult.h"
|
||||||
|
#include "model/PaginateDeviceRequest.h"
|
||||||
|
#include "model/PaginateDeviceResult.h"
|
||||||
|
#include "model/PaginateProjectRequest.h"
|
||||||
|
#include "model/PaginateProjectResult.h"
|
||||||
#include "model/RecognizeImageRequest.h"
|
#include "model/RecognizeImageRequest.h"
|
||||||
#include "model/RecognizeImageResult.h"
|
#include "model/RecognizeImageResult.h"
|
||||||
#include "model/SearchObjectRequest.h"
|
#include "model/SearchObjectRequest.h"
|
||||||
@@ -126,6 +140,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetCdrsMonitorResultResult> GetCdrsMonitorResultOutcome;
|
typedef Outcome<Error, Model::GetCdrsMonitorResultResult> GetCdrsMonitorResultOutcome;
|
||||||
typedef std::future<GetCdrsMonitorResultOutcome> GetCdrsMonitorResultOutcomeCallable;
|
typedef std::future<GetCdrsMonitorResultOutcome> GetCdrsMonitorResultOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorResultRequest&, const GetCdrsMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorResultAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::GetCdrsMonitorResultRequest&, const GetCdrsMonitorResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCdrsMonitorResultAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListAreaHotSpotMetricsResult> ListAreaHotSpotMetricsOutcome;
|
||||||
|
typedef std::future<ListAreaHotSpotMetricsOutcome> ListAreaHotSpotMetricsOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::ListAreaHotSpotMetricsRequest&, const ListAreaHotSpotMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAreaHotSpotMetricsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListCityMapAoisResult> ListCityMapAoisOutcome;
|
typedef Outcome<Error, Model::ListCityMapAoisResult> ListCityMapAoisOutcome;
|
||||||
typedef std::future<ListCityMapAoisOutcome> ListCityMapAoisOutcomeCallable;
|
typedef std::future<ListCityMapAoisOutcome> ListCityMapAoisOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListCityMapAoisRequest&, const ListCityMapAoisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapAoisAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListCityMapAoisRequest&, const ListCityMapAoisOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCityMapAoisAsyncHandler;
|
||||||
@@ -147,6 +164,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListCorpMetricsResult> ListCorpMetricsOutcome;
|
typedef Outcome<Error, Model::ListCorpMetricsResult> ListCorpMetricsOutcome;
|
||||||
typedef std::future<ListCorpMetricsOutcome> ListCorpMetricsOutcomeCallable;
|
typedef std::future<ListCorpMetricsOutcome> ListCorpMetricsOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsRequest&, const ListCorpMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsRequest&, const ListCorpMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListCorpMetricsStatisticResult> ListCorpMetricsStatisticOutcome;
|
||||||
|
typedef std::future<ListCorpMetricsStatisticOutcome> ListCorpMetricsStatisticOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::ListCorpMetricsStatisticRequest&, const ListCorpMetricsStatisticOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpMetricsStatisticAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListCorpTrackDetailResult> ListCorpTrackDetailOutcome;
|
||||||
|
typedef std::future<ListCorpTrackDetailOutcome> ListCorpTrackDetailOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::ListCorpTrackDetailRequest&, const ListCorpTrackDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCorpTrackDetailAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListDataStatisticsResult> ListDataStatisticsOutcome;
|
typedef Outcome<Error, Model::ListDataStatisticsResult> ListDataStatisticsOutcome;
|
||||||
typedef std::future<ListDataStatisticsOutcome> ListDataStatisticsOutcomeCallable;
|
typedef std::future<ListDataStatisticsOutcome> ListDataStatisticsOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListDataStatisticsRequest&, const ListDataStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataStatisticsAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListDataStatisticsRequest&, const ListDataStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataStatisticsAsyncHandler;
|
||||||
@@ -165,6 +188,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListDevicePersonStatisticsResult> ListDevicePersonStatisticsOutcome;
|
typedef Outcome<Error, Model::ListDevicePersonStatisticsResult> ListDevicePersonStatisticsOutcome;
|
||||||
typedef std::future<ListDevicePersonStatisticsOutcome> ListDevicePersonStatisticsOutcomeCallable;
|
typedef std::future<ListDevicePersonStatisticsOutcome> ListDevicePersonStatisticsOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListDevicePersonStatisticsRequest&, const ListDevicePersonStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicePersonStatisticsAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListDevicePersonStatisticsRequest&, const ListDevicePersonStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDevicePersonStatisticsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListDeviceRelationResult> ListDeviceRelationOutcome;
|
||||||
|
typedef std::future<ListDeviceRelationOutcome> ListDeviceRelationOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::ListDeviceRelationRequest&, const ListDeviceRelationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDeviceRelationAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListMapRouteDetailsResult> ListMapRouteDetailsOutcome;
|
typedef Outcome<Error, Model::ListMapRouteDetailsResult> ListMapRouteDetailsOutcome;
|
||||||
typedef std::future<ListMapRouteDetailsOutcome> ListMapRouteDetailsOutcomeCallable;
|
typedef std::future<ListMapRouteDetailsOutcome> ListMapRouteDetailsOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListMapRouteDetailsRequest&, const ListMapRouteDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMapRouteDetailsAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListMapRouteDetailsRequest&, const ListMapRouteDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMapRouteDetailsAsyncHandler;
|
||||||
@@ -198,6 +224,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListStructureStatisticsResult> ListStructureStatisticsOutcome;
|
typedef Outcome<Error, Model::ListStructureStatisticsResult> ListStructureStatisticsOutcome;
|
||||||
typedef std::future<ListStructureStatisticsOutcome> ListStructureStatisticsOutcomeCallable;
|
typedef std::future<ListStructureStatisticsOutcome> ListStructureStatisticsOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListStructureStatisticsRequest&, const ListStructureStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStructureStatisticsAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListStructureStatisticsRequest&, const ListStructureStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListStructureStatisticsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListTagMetricsResult> ListTagMetricsOutcome;
|
||||||
|
typedef std::future<ListTagMetricsOutcome> ListTagMetricsOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::ListTagMetricsRequest&, const ListTagMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagMetricsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListVehicleDetailsResult> ListVehicleDetailsOutcome;
|
typedef Outcome<Error, Model::ListVehicleDetailsResult> ListVehicleDetailsOutcome;
|
||||||
typedef std::future<ListVehicleDetailsOutcome> ListVehicleDetailsOutcomeCallable;
|
typedef std::future<ListVehicleDetailsOutcome> ListVehicleDetailsOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListVehicleDetailsRequest&, const ListVehicleDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleDetailsAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListVehicleDetailsRequest&, const ListVehicleDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleDetailsAsyncHandler;
|
||||||
@@ -213,6 +242,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListVehicleTrackResult> ListVehicleTrackOutcome;
|
typedef Outcome<Error, Model::ListVehicleTrackResult> ListVehicleTrackOutcome;
|
||||||
typedef std::future<ListVehicleTrackOutcome> ListVehicleTrackOutcomeCallable;
|
typedef std::future<ListVehicleTrackOutcome> ListVehicleTrackOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::ListVehicleTrackRequest&, const ListVehicleTrackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleTrackAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::ListVehicleTrackRequest&, const ListVehicleTrackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListVehicleTrackAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::PaginateDeviceResult> PaginateDeviceOutcome;
|
||||||
|
typedef std::future<PaginateDeviceOutcome> PaginateDeviceOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::PaginateDeviceRequest&, const PaginateDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateDeviceAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::PaginateProjectResult> PaginateProjectOutcome;
|
||||||
|
typedef std::future<PaginateProjectOutcome> PaginateProjectOutcomeCallable;
|
||||||
|
typedef std::function<void(const CDRSClient*, const Model::PaginateProjectRequest&, const PaginateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PaginateProjectAsyncHandler;
|
||||||
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
|
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
|
||||||
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
|
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
|
||||||
typedef std::function<void(const CDRSClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
|
typedef std::function<void(const CDRSClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
|
||||||
@@ -251,6 +286,9 @@ namespace AlibabaCloud
|
|||||||
GetCdrsMonitorResultOutcome getCdrsMonitorResult(const Model::GetCdrsMonitorResultRequest &request)const;
|
GetCdrsMonitorResultOutcome getCdrsMonitorResult(const Model::GetCdrsMonitorResultRequest &request)const;
|
||||||
void getCdrsMonitorResultAsync(const Model::GetCdrsMonitorResultRequest& request, const GetCdrsMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getCdrsMonitorResultAsync(const Model::GetCdrsMonitorResultRequest& request, const GetCdrsMonitorResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetCdrsMonitorResultOutcomeCallable getCdrsMonitorResultCallable(const Model::GetCdrsMonitorResultRequest& request) const;
|
GetCdrsMonitorResultOutcomeCallable getCdrsMonitorResultCallable(const Model::GetCdrsMonitorResultRequest& request) const;
|
||||||
|
ListAreaHotSpotMetricsOutcome listAreaHotSpotMetrics(const Model::ListAreaHotSpotMetricsRequest &request)const;
|
||||||
|
void listAreaHotSpotMetricsAsync(const Model::ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListAreaHotSpotMetricsOutcomeCallable listAreaHotSpotMetricsCallable(const Model::ListAreaHotSpotMetricsRequest& request) const;
|
||||||
ListCityMapAoisOutcome listCityMapAois(const Model::ListCityMapAoisRequest &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;
|
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;
|
ListCityMapAoisOutcomeCallable listCityMapAoisCallable(const Model::ListCityMapAoisRequest& request) const;
|
||||||
@@ -272,6 +310,12 @@ namespace AlibabaCloud
|
|||||||
ListCorpMetricsOutcome listCorpMetrics(const Model::ListCorpMetricsRequest &request)const;
|
ListCorpMetricsOutcome listCorpMetrics(const Model::ListCorpMetricsRequest &request)const;
|
||||||
void listCorpMetricsAsync(const Model::ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listCorpMetricsAsync(const Model::ListCorpMetricsRequest& request, const ListCorpMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListCorpMetricsOutcomeCallable listCorpMetricsCallable(const Model::ListCorpMetricsRequest& request) const;
|
ListCorpMetricsOutcomeCallable listCorpMetricsCallable(const Model::ListCorpMetricsRequest& request) const;
|
||||||
|
ListCorpMetricsStatisticOutcome listCorpMetricsStatistic(const Model::ListCorpMetricsStatisticRequest &request)const;
|
||||||
|
void listCorpMetricsStatisticAsync(const Model::ListCorpMetricsStatisticRequest& request, const ListCorpMetricsStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListCorpMetricsStatisticOutcomeCallable listCorpMetricsStatisticCallable(const Model::ListCorpMetricsStatisticRequest& request) const;
|
||||||
|
ListCorpTrackDetailOutcome listCorpTrackDetail(const Model::ListCorpTrackDetailRequest &request)const;
|
||||||
|
void listCorpTrackDetailAsync(const Model::ListCorpTrackDetailRequest& request, const ListCorpTrackDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListCorpTrackDetailOutcomeCallable listCorpTrackDetailCallable(const Model::ListCorpTrackDetailRequest& request) const;
|
||||||
ListDataStatisticsOutcome listDataStatistics(const Model::ListDataStatisticsRequest &request)const;
|
ListDataStatisticsOutcome listDataStatistics(const Model::ListDataStatisticsRequest &request)const;
|
||||||
void listDataStatisticsAsync(const Model::ListDataStatisticsRequest& request, const ListDataStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listDataStatisticsAsync(const Model::ListDataStatisticsRequest& request, const ListDataStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListDataStatisticsOutcomeCallable listDataStatisticsCallable(const Model::ListDataStatisticsRequest& request) const;
|
ListDataStatisticsOutcomeCallable listDataStatisticsCallable(const Model::ListDataStatisticsRequest& request) const;
|
||||||
@@ -290,6 +334,9 @@ namespace AlibabaCloud
|
|||||||
ListDevicePersonStatisticsOutcome listDevicePersonStatistics(const Model::ListDevicePersonStatisticsRequest &request)const;
|
ListDevicePersonStatisticsOutcome listDevicePersonStatistics(const Model::ListDevicePersonStatisticsRequest &request)const;
|
||||||
void listDevicePersonStatisticsAsync(const Model::ListDevicePersonStatisticsRequest& request, const ListDevicePersonStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listDevicePersonStatisticsAsync(const Model::ListDevicePersonStatisticsRequest& request, const ListDevicePersonStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListDevicePersonStatisticsOutcomeCallable listDevicePersonStatisticsCallable(const Model::ListDevicePersonStatisticsRequest& request) const;
|
ListDevicePersonStatisticsOutcomeCallable listDevicePersonStatisticsCallable(const Model::ListDevicePersonStatisticsRequest& request) const;
|
||||||
|
ListDeviceRelationOutcome listDeviceRelation(const Model::ListDeviceRelationRequest &request)const;
|
||||||
|
void listDeviceRelationAsync(const Model::ListDeviceRelationRequest& request, const ListDeviceRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListDeviceRelationOutcomeCallable listDeviceRelationCallable(const Model::ListDeviceRelationRequest& request) const;
|
||||||
ListMapRouteDetailsOutcome listMapRouteDetails(const Model::ListMapRouteDetailsRequest &request)const;
|
ListMapRouteDetailsOutcome listMapRouteDetails(const Model::ListMapRouteDetailsRequest &request)const;
|
||||||
void listMapRouteDetailsAsync(const Model::ListMapRouteDetailsRequest& request, const ListMapRouteDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listMapRouteDetailsAsync(const Model::ListMapRouteDetailsRequest& request, const ListMapRouteDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListMapRouteDetailsOutcomeCallable listMapRouteDetailsCallable(const Model::ListMapRouteDetailsRequest& request) const;
|
ListMapRouteDetailsOutcomeCallable listMapRouteDetailsCallable(const Model::ListMapRouteDetailsRequest& request) const;
|
||||||
@@ -323,6 +370,9 @@ namespace AlibabaCloud
|
|||||||
ListStructureStatisticsOutcome listStructureStatistics(const Model::ListStructureStatisticsRequest &request)const;
|
ListStructureStatisticsOutcome listStructureStatistics(const Model::ListStructureStatisticsRequest &request)const;
|
||||||
void listStructureStatisticsAsync(const Model::ListStructureStatisticsRequest& request, const ListStructureStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listStructureStatisticsAsync(const Model::ListStructureStatisticsRequest& request, const ListStructureStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListStructureStatisticsOutcomeCallable listStructureStatisticsCallable(const Model::ListStructureStatisticsRequest& request) const;
|
ListStructureStatisticsOutcomeCallable listStructureStatisticsCallable(const Model::ListStructureStatisticsRequest& request) const;
|
||||||
|
ListTagMetricsOutcome listTagMetrics(const Model::ListTagMetricsRequest &request)const;
|
||||||
|
void listTagMetricsAsync(const Model::ListTagMetricsRequest& request, const ListTagMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListTagMetricsOutcomeCallable listTagMetricsCallable(const Model::ListTagMetricsRequest& request) const;
|
||||||
ListVehicleDetailsOutcome listVehicleDetails(const Model::ListVehicleDetailsRequest &request)const;
|
ListVehicleDetailsOutcome listVehicleDetails(const Model::ListVehicleDetailsRequest &request)const;
|
||||||
void listVehicleDetailsAsync(const Model::ListVehicleDetailsRequest& request, const ListVehicleDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listVehicleDetailsAsync(const Model::ListVehicleDetailsRequest& request, const ListVehicleDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListVehicleDetailsOutcomeCallable listVehicleDetailsCallable(const Model::ListVehicleDetailsRequest& request) const;
|
ListVehicleDetailsOutcomeCallable listVehicleDetailsCallable(const Model::ListVehicleDetailsRequest& request) const;
|
||||||
@@ -338,6 +388,12 @@ namespace AlibabaCloud
|
|||||||
ListVehicleTrackOutcome listVehicleTrack(const Model::ListVehicleTrackRequest &request)const;
|
ListVehicleTrackOutcome listVehicleTrack(const Model::ListVehicleTrackRequest &request)const;
|
||||||
void listVehicleTrackAsync(const Model::ListVehicleTrackRequest& request, const ListVehicleTrackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listVehicleTrackAsync(const Model::ListVehicleTrackRequest& request, const ListVehicleTrackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListVehicleTrackOutcomeCallable listVehicleTrackCallable(const Model::ListVehicleTrackRequest& request) const;
|
ListVehicleTrackOutcomeCallable listVehicleTrackCallable(const Model::ListVehicleTrackRequest& request) const;
|
||||||
|
PaginateDeviceOutcome paginateDevice(const Model::PaginateDeviceRequest &request)const;
|
||||||
|
void paginateDeviceAsync(const Model::PaginateDeviceRequest& request, const PaginateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
PaginateDeviceOutcomeCallable paginateDeviceCallable(const Model::PaginateDeviceRequest& request) const;
|
||||||
|
PaginateProjectOutcome paginateProject(const Model::PaginateProjectRequest &request)const;
|
||||||
|
void paginateProjectAsync(const Model::PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
PaginateProjectOutcomeCallable paginateProjectCallable(const Model::PaginateProjectRequest& request) const;
|
||||||
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
|
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
|
||||||
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
|
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ namespace AlibabaCloud
|
|||||||
void setNotifierType(const std::string& notifierType);
|
void setNotifierType(const std::string& notifierType);
|
||||||
int getBatchIndicator()const;
|
int getBatchIndicator()const;
|
||||||
void setBatchIndicator(int batchIndicator);
|
void setBatchIndicator(int batchIndicator);
|
||||||
std::string getBizId()const;
|
|
||||||
void setBizId(const std::string& bizId);
|
|
||||||
int getNotifierTimeOut()const;
|
int getNotifierTimeOut()const;
|
||||||
void setNotifierTimeOut(int notifierTimeOut);
|
void setNotifierTimeOut(int notifierTimeOut);
|
||||||
std::string getAlgorithmVendor()const;
|
std::string getAlgorithmVendor()const;
|
||||||
@@ -67,7 +65,6 @@ namespace AlibabaCloud
|
|||||||
std::string notifierUrl_;
|
std::string notifierUrl_;
|
||||||
std::string notifierType_;
|
std::string notifierType_;
|
||||||
int batchIndicator_;
|
int batchIndicator_;
|
||||||
std::string bizId_;
|
|
||||||
int notifierTimeOut_;
|
int notifierTimeOut_;
|
||||||
std::string algorithmVendor_;
|
std::string algorithmVendor_;
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
|||||||
void set_NameSpace(const std::string& _nameSpace);
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
std::string getName()const;
|
std::string getName()const;
|
||||||
void setName(const std::string& name);
|
void setName(const std::string& name);
|
||||||
|
std::string getAggregateSceneCode()const;
|
||||||
|
void setAggregateSceneCode(const std::string& aggregateSceneCode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string clientToken_;
|
std::string clientToken_;
|
||||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
|||||||
std::string appName_;
|
std::string appName_;
|
||||||
std::string _nameSpace_;
|
std::string _nameSpace_;
|
||||||
std::string name_;
|
std::string name_;
|
||||||
|
std::string aggregateSceneCode_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,9 +36,14 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
struct RecordsItem
|
struct RecordsItem
|
||||||
{
|
{
|
||||||
|
struct ExtendInfo
|
||||||
|
{
|
||||||
|
std::string plateNo;
|
||||||
|
};
|
||||||
std::string leftUpX;
|
std::string leftUpX;
|
||||||
std::string leftUpY;
|
std::string leftUpY;
|
||||||
std::string score;
|
std::string score;
|
||||||
|
std::string taskId;
|
||||||
std::string targetPicUrl;
|
std::string targetPicUrl;
|
||||||
std::string rightBottomX;
|
std::string rightBottomX;
|
||||||
std::string rightBottomY;
|
std::string rightBottomY;
|
||||||
@@ -46,6 +51,7 @@ namespace AlibabaCloud
|
|||||||
std::string monitorPicUrl;
|
std::string monitorPicUrl;
|
||||||
std::string shotTime;
|
std::string shotTime;
|
||||||
std::string picUrl;
|
std::string picUrl;
|
||||||
|
ExtendInfo extendInfo;
|
||||||
};
|
};
|
||||||
std::string maxId;
|
std::string maxId;
|
||||||
std::vector<RecordsItem> records;
|
std::vector<RecordsItem> records;
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_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 ListAreaHotSpotMetricsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListAreaHotSpotMetricsRequest();
|
||||||
|
~ListAreaHotSpotMetricsRequest();
|
||||||
|
|
||||||
|
std::string getSchema()const;
|
||||||
|
void setSchema(const std::string& schema);
|
||||||
|
std::string getCorpId()const;
|
||||||
|
void setCorpId(const std::string& corpId);
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
std::string getDeviceId()const;
|
||||||
|
void setDeviceId(const std::string& deviceId);
|
||||||
|
std::string getPageNumber()const;
|
||||||
|
void setPageNumber(const std::string& pageNumber);
|
||||||
|
std::string getPageSize()const;
|
||||||
|
void setPageSize(const std::string& pageSize);
|
||||||
|
std::string getPersonId()const;
|
||||||
|
void setPersonId(const std::string& personId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string schema_;
|
||||||
|
std::string corpId_;
|
||||||
|
std::string endTime_;
|
||||||
|
std::string startTime_;
|
||||||
|
std::string deviceId_;
|
||||||
|
std::string pageNumber_;
|
||||||
|
std::string pageSize_;
|
||||||
|
std::string personId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSREQUEST_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT ListAreaHotSpotMetricsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DataItem
|
||||||
|
{
|
||||||
|
std::string personId;
|
||||||
|
std::string deviceId;
|
||||||
|
std::string times;
|
||||||
|
std::string coordinates;
|
||||||
|
std::string intervalTime;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListAreaHotSpotMetricsResult();
|
||||||
|
explicit ListAreaHotSpotMetricsResult(const std::string &payload);
|
||||||
|
~ListAreaHotSpotMetricsResult();
|
||||||
|
std::string getTotalCount()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::string getPageSize()const;
|
||||||
|
std::string getPageNumber()const;
|
||||||
|
std::vector<DataItem> getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string totalCount_;
|
||||||
|
std::string message_;
|
||||||
|
std::string pageSize_;
|
||||||
|
std::string pageNumber_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTAREAHOTSPOTMETRICSRESULT_H_
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* 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_LISTCORPMETRICSSTATISTICREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_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 ListCorpMetricsStatisticRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListCorpMetricsStatisticRequest();
|
||||||
|
~ListCorpMetricsStatisticRequest();
|
||||||
|
|
||||||
|
std::string getSchema()const;
|
||||||
|
void setSchema(const std::string& schema);
|
||||||
|
std::string getCorpId()const;
|
||||||
|
void setCorpId(const std::string& corpId);
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
long getPageNumber()const;
|
||||||
|
void setPageNumber(long pageNumber);
|
||||||
|
std::string getDeviceGroupList()const;
|
||||||
|
void setDeviceGroupList(const std::string& deviceGroupList);
|
||||||
|
std::string getTagCode()const;
|
||||||
|
void setTagCode(const std::string& tagCode);
|
||||||
|
std::string getUserGroupList()const;
|
||||||
|
void setUserGroupList(const std::string& userGroupList);
|
||||||
|
long getPageSize()const;
|
||||||
|
void setPageSize(long pageSize);
|
||||||
|
std::string getDeviceIdList()const;
|
||||||
|
void setDeviceIdList(const std::string& deviceIdList);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string schema_;
|
||||||
|
std::string corpId_;
|
||||||
|
std::string endTime_;
|
||||||
|
std::string startTime_;
|
||||||
|
long pageNumber_;
|
||||||
|
std::string deviceGroupList_;
|
||||||
|
std::string tagCode_;
|
||||||
|
std::string userGroupList_;
|
||||||
|
long pageSize_;
|
||||||
|
std::string deviceIdList_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICREQUEST_H_
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* 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_LISTCORPMETRICSSTATISTICRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT ListCorpMetricsStatisticResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DataItem
|
||||||
|
{
|
||||||
|
std::string corpId;
|
||||||
|
std::string personId;
|
||||||
|
std::string deviceGroupId;
|
||||||
|
std::string deviceId;
|
||||||
|
std::string userGroupId;
|
||||||
|
std::string tagMetrics;
|
||||||
|
std::string tagCode;
|
||||||
|
std::string tagValue;
|
||||||
|
std::string dateId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListCorpMetricsStatisticResult();
|
||||||
|
explicit ListCorpMetricsStatisticResult(const std::string &payload);
|
||||||
|
~ListCorpMetricsStatisticResult();
|
||||||
|
int getTotalCount()const;
|
||||||
|
int getPageSize()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getPageNumber()const;
|
||||||
|
std::vector<DataItem> getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
std::string getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int totalCount_;
|
||||||
|
int pageSize_;
|
||||||
|
std::string message_;
|
||||||
|
int pageNumber_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
std::string code_;
|
||||||
|
std::string success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPMETRICSSTATISTICRESULT_H_
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_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 ListCorpTrackDetailRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListCorpTrackDetailRequest();
|
||||||
|
~ListCorpTrackDetailRequest();
|
||||||
|
|
||||||
|
std::string getSchema()const;
|
||||||
|
void setSchema(const std::string& schema);
|
||||||
|
std::string getCorpId()const;
|
||||||
|
void setCorpId(const std::string& corpId);
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
std::string getPageNumber()const;
|
||||||
|
void setPageNumber(const std::string& pageNumber);
|
||||||
|
std::string getPageSize()const;
|
||||||
|
void setPageSize(const std::string& pageSize);
|
||||||
|
std::string getDataSourceId()const;
|
||||||
|
void setDataSourceId(const std::string& dataSourceId);
|
||||||
|
std::string getPersonId()const;
|
||||||
|
void setPersonId(const std::string& personId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string schema_;
|
||||||
|
std::string corpId_;
|
||||||
|
std::string endTime_;
|
||||||
|
std::string startTime_;
|
||||||
|
std::string pageNumber_;
|
||||||
|
std::string pageSize_;
|
||||||
|
std::string dataSourceId_;
|
||||||
|
std::string personId_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILREQUEST_H_
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT ListCorpTrackDetailResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DataItem
|
||||||
|
{
|
||||||
|
std::string startTargetImage;
|
||||||
|
std::string startSourceImage;
|
||||||
|
std::string corpId;
|
||||||
|
std::string personId;
|
||||||
|
std::string deviceId;
|
||||||
|
std::string endTargetImage;
|
||||||
|
std::string startTime;
|
||||||
|
std::string endSourceImage;
|
||||||
|
std::string date;
|
||||||
|
std::string lastTime;
|
||||||
|
std::string groupId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListCorpTrackDetailResult();
|
||||||
|
explicit ListCorpTrackDetailResult(const std::string &payload);
|
||||||
|
~ListCorpTrackDetailResult();
|
||||||
|
int getTotalCount()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
int getPageSize()const;
|
||||||
|
int getPageNumber()const;
|
||||||
|
std::vector<DataItem> getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
std::string getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int totalCount_;
|
||||||
|
std::string message_;
|
||||||
|
int pageSize_;
|
||||||
|
int pageNumber_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
std::string code_;
|
||||||
|
std::string success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTCORPTRACKDETAILRESULT_H_
|
||||||
@@ -14,35 +14,41 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
#define ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
{
|
{
|
||||||
namespace Dms_enterprise
|
namespace CDRS
|
||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CheckFinishMissionRequest : public RpcServiceRequest
|
class ALIBABACLOUD_CDRS_EXPORT ListDeviceRelationRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CheckFinishMissionRequest();
|
ListDeviceRelationRequest();
|
||||||
~CheckFinishMissionRequest();
|
~ListDeviceRelationRequest();
|
||||||
|
|
||||||
std::string getMissionType()const;
|
std::string getDeviceId()const;
|
||||||
void setMissionType(const std::string& missionType);
|
void setDeviceId(const std::string& deviceId);
|
||||||
|
std::string getAppName()const;
|
||||||
|
void setAppName(const std::string& appName);
|
||||||
|
std::string get_NameSpace()const;
|
||||||
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string missionType_;
|
std::string deviceId_;
|
||||||
|
std::string appName_;
|
||||||
|
std::string _nameSpace_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONREQUEST_H_
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT ListDeviceRelationResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DataItem
|
||||||
|
{
|
||||||
|
std::string corpId;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListDeviceRelationResult();
|
||||||
|
explicit ListDeviceRelationResult(const std::string &payload);
|
||||||
|
~ListDeviceRelationResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::vector<DataItem> getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTDEVICERELATIONRESULT_H_
|
||||||
@@ -34,8 +34,9 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct DataItem
|
struct DataItem
|
||||||
{
|
{
|
||||||
|
std::string corpId;
|
||||||
|
std::string tagMetric;
|
||||||
std::string tagCode;
|
std::string tagCode;
|
||||||
std::string dateTime1;
|
|
||||||
std::string tagValue;
|
std::string tagValue;
|
||||||
std::string dateTime;
|
std::string dateTime;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getProfession()const;
|
std::string getProfession()const;
|
||||||
void setProfession(const std::string& profession);
|
void setProfession(const std::string& profession);
|
||||||
|
std::string getSchema()const;
|
||||||
|
void setSchema(const std::string& schema);
|
||||||
std::string getCorpId()const;
|
std::string getCorpId()const;
|
||||||
void setCorpId(const std::string& corpId);
|
void setCorpId(const std::string& corpId);
|
||||||
std::string getGender()const;
|
std::string getGender()const;
|
||||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
std::string profession_;
|
std::string profession_;
|
||||||
|
std::string schema_;
|
||||||
std::string corpId_;
|
std::string corpId_;
|
||||||
std::string gender_;
|
std::string gender_;
|
||||||
std::string endTime_;
|
std::string endTime_;
|
||||||
|
|||||||
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
Normal file
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsRequest.h
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_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 ListTagMetricsRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
ListTagMetricsRequest();
|
||||||
|
~ListTagMetricsRequest();
|
||||||
|
|
||||||
|
std::string getSchema()const;
|
||||||
|
void setSchema(const std::string& schema);
|
||||||
|
std::string getCorpId()const;
|
||||||
|
void setCorpId(const std::string& corpId);
|
||||||
|
std::string getEndTime()const;
|
||||||
|
void setEndTime(const std::string& endTime);
|
||||||
|
std::string getStartTime()const;
|
||||||
|
void setStartTime(const std::string& startTime);
|
||||||
|
std::string getPageNumber()const;
|
||||||
|
void setPageNumber(const std::string& pageNumber);
|
||||||
|
std::string getTagCode()const;
|
||||||
|
void setTagCode(const std::string& tagCode);
|
||||||
|
std::string getPageSize()const;
|
||||||
|
void setPageSize(const std::string& pageSize);
|
||||||
|
std::string getAggregateType()const;
|
||||||
|
void setAggregateType(const std::string& aggregateType);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string schema_;
|
||||||
|
std::string corpId_;
|
||||||
|
std::string endTime_;
|
||||||
|
std::string startTime_;
|
||||||
|
std::string pageNumber_;
|
||||||
|
std::string tagCode_;
|
||||||
|
std::string pageSize_;
|
||||||
|
std::string aggregateType_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSREQUEST_H_
|
||||||
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsResult.h
Normal file
69
cdrs/include/alibabacloud/cdrs/model/ListTagMetricsResult.h
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT ListTagMetricsResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct DataItem
|
||||||
|
{
|
||||||
|
std::string corpId;
|
||||||
|
std::string tagMetric;
|
||||||
|
std::string tagCode;
|
||||||
|
std::string tagValue;
|
||||||
|
std::string dateTime;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListTagMetricsResult();
|
||||||
|
explicit ListTagMetricsResult(const std::string &payload);
|
||||||
|
~ListTagMetricsResult();
|
||||||
|
std::string getTotalCount()const;
|
||||||
|
std::string getMessage()const;
|
||||||
|
std::string getPageSize()const;
|
||||||
|
std::string getPageNumber()const;
|
||||||
|
std::vector<DataItem> getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string totalCount_;
|
||||||
|
std::string message_;
|
||||||
|
std::string pageSize_;
|
||||||
|
std::string pageNumber_;
|
||||||
|
std::vector<DataItem> data_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_LISTTAGMETRICSRESULT_H_
|
||||||
63
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceRequest.h
Normal file
63
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceRequest.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_PAGINATEDEVICEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_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 PaginateDeviceRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
PaginateDeviceRequest();
|
||||||
|
~PaginateDeviceRequest();
|
||||||
|
|
||||||
|
std::string getCorpId()const;
|
||||||
|
void setCorpId(const std::string& corpId);
|
||||||
|
long getPageNumber()const;
|
||||||
|
void setPageNumber(long pageNumber);
|
||||||
|
bool getCountTotalNum()const;
|
||||||
|
void setCountTotalNum(bool countTotalNum);
|
||||||
|
std::string getAppName()const;
|
||||||
|
void setAppName(const std::string& appName);
|
||||||
|
std::string get_NameSpace()const;
|
||||||
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
|
long getPageSize()const;
|
||||||
|
void setPageSize(long pageSize);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string corpId_;
|
||||||
|
long pageNumber_;
|
||||||
|
bool countTotalNum_;
|
||||||
|
std::string appName_;
|
||||||
|
std::string _nameSpace_;
|
||||||
|
long pageSize_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICEREQUEST_H_
|
||||||
66
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceResult.h
Normal file
66
cdrs/include/alibabacloud/cdrs/model/PaginateDeviceResult.h
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICERESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT PaginateDeviceResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct RecordsItem
|
||||||
|
{
|
||||||
|
std::string deviceId;
|
||||||
|
};
|
||||||
|
int totalCount;
|
||||||
|
int pageSize;
|
||||||
|
int pageNumber;
|
||||||
|
std::vector<RecordsItem> records;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
PaginateDeviceResult();
|
||||||
|
explicit PaginateDeviceResult(const std::string &payload);
|
||||||
|
~PaginateDeviceResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
Data getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
Data data_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEDEVICERESULT_H_
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_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 PaginateProjectRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
PaginateProjectRequest();
|
||||||
|
~PaginateProjectRequest();
|
||||||
|
|
||||||
|
std::string getType()const;
|
||||||
|
void setType(const std::string& type);
|
||||||
|
long getPageNumber()const;
|
||||||
|
void setPageNumber(long pageNumber);
|
||||||
|
bool getCountTotalNum()const;
|
||||||
|
void setCountTotalNum(bool countTotalNum);
|
||||||
|
std::string getAppName()const;
|
||||||
|
void setAppName(const std::string& appName);
|
||||||
|
std::string get_NameSpace()const;
|
||||||
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
|
long getPageSize()const;
|
||||||
|
void setPageSize(long pageSize);
|
||||||
|
std::string getNameLike()const;
|
||||||
|
void setNameLike(const std::string& nameLike);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string type_;
|
||||||
|
long pageNumber_;
|
||||||
|
bool countTotalNum_;
|
||||||
|
std::string appName_;
|
||||||
|
std::string _nameSpace_;
|
||||||
|
long pageSize_;
|
||||||
|
std::string nameLike_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTREQUEST_H_
|
||||||
75
cdrs/include/alibabacloud/cdrs/model/PaginateProjectResult.h
Normal file
75
cdrs/include/alibabacloud/cdrs/model/PaginateProjectResult.h
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
/*
|
||||||
|
* 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_PAGINATEPROJECTRESULT_H_
|
||||||
|
#define ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/cdrs/CDRSExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace CDRS
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_CDRS_EXPORT PaginateProjectResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct RecordsItem
|
||||||
|
{
|
||||||
|
std::string type;
|
||||||
|
std::string aggregateSceneCode;
|
||||||
|
std::string corpId;
|
||||||
|
std::string createdTime;
|
||||||
|
std::string description;
|
||||||
|
std::string modifiedTime;
|
||||||
|
std::string userId;
|
||||||
|
std::string icon;
|
||||||
|
std::string name;
|
||||||
|
};
|
||||||
|
int totalCount;
|
||||||
|
int pageSize;
|
||||||
|
int totalPage;
|
||||||
|
int pageNumber;
|
||||||
|
std::vector<RecordsItem> records;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
PaginateProjectResult();
|
||||||
|
explicit PaginateProjectResult(const std::string &payload);
|
||||||
|
~PaginateProjectResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
Data getData()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string message_;
|
||||||
|
Data data_;
|
||||||
|
std::string code_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_CDRS_MODEL_PAGINATEPROJECTRESULT_H_
|
||||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
|||||||
void set_NameSpace(const std::string& _nameSpace);
|
void set_NameSpace(const std::string& _nameSpace);
|
||||||
std::string getName()const;
|
std::string getName()const;
|
||||||
void setName(const std::string& name);
|
void setName(const std::string& name);
|
||||||
|
std::string getAggregateSceneCode()const;
|
||||||
|
void setAggregateSceneCode(const std::string& aggregateSceneCode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string corpId_;
|
std::string corpId_;
|
||||||
@@ -55,6 +57,7 @@ namespace AlibabaCloud
|
|||||||
std::string appName_;
|
std::string appName_;
|
||||||
std::string _nameSpace_;
|
std::string _nameSpace_;
|
||||||
std::string name_;
|
std::string name_;
|
||||||
|
std::string aggregateSceneCode_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,6 +231,42 @@ CDRSClient::GetCdrsMonitorResultOutcomeCallable CDRSClient::getCdrsMonitorResult
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListAreaHotSpotMetricsOutcome CDRSClient::listAreaHotSpotMetrics(const ListAreaHotSpotMetricsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListAreaHotSpotMetricsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListAreaHotSpotMetricsOutcome(ListAreaHotSpotMetricsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListAreaHotSpotMetricsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::listAreaHotSpotMetricsAsync(const ListAreaHotSpotMetricsRequest& request, const ListAreaHotSpotMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listAreaHotSpotMetrics(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListAreaHotSpotMetricsOutcomeCallable CDRSClient::listAreaHotSpotMetricsCallable(const ListAreaHotSpotMetricsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListAreaHotSpotMetricsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listAreaHotSpotMetrics(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CDRSClient::ListCityMapAoisOutcome CDRSClient::listCityMapAois(const ListCityMapAoisRequest &request) const
|
CDRSClient::ListCityMapAoisOutcome CDRSClient::listCityMapAois(const ListCityMapAoisRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -483,6 +519,78 @@ CDRSClient::ListCorpMetricsOutcomeCallable CDRSClient::listCorpMetricsCallable(c
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListCorpMetricsStatisticOutcome CDRSClient::listCorpMetricsStatistic(const ListCorpMetricsStatisticRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListCorpMetricsStatisticOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListCorpMetricsStatisticOutcome(ListCorpMetricsStatisticResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListCorpMetricsStatisticOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::listCorpMetricsStatisticAsync(const ListCorpMetricsStatisticRequest& request, const ListCorpMetricsStatisticAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listCorpMetricsStatistic(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListCorpMetricsStatisticOutcomeCallable CDRSClient::listCorpMetricsStatisticCallable(const ListCorpMetricsStatisticRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListCorpMetricsStatisticOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listCorpMetricsStatistic(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListCorpTrackDetailOutcome CDRSClient::listCorpTrackDetail(const ListCorpTrackDetailRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListCorpTrackDetailOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListCorpTrackDetailOutcome(ListCorpTrackDetailResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListCorpTrackDetailOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::listCorpTrackDetailAsync(const ListCorpTrackDetailRequest& request, const ListCorpTrackDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listCorpTrackDetail(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListCorpTrackDetailOutcomeCallable CDRSClient::listCorpTrackDetailCallable(const ListCorpTrackDetailRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListCorpTrackDetailOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listCorpTrackDetail(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CDRSClient::ListDataStatisticsOutcome CDRSClient::listDataStatistics(const ListDataStatisticsRequest &request) const
|
CDRSClient::ListDataStatisticsOutcome CDRSClient::listDataStatistics(const ListDataStatisticsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -699,6 +807,42 @@ CDRSClient::ListDevicePersonStatisticsOutcomeCallable CDRSClient::listDevicePers
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListDeviceRelationOutcome CDRSClient::listDeviceRelation(const ListDeviceRelationRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListDeviceRelationOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListDeviceRelationOutcome(ListDeviceRelationResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListDeviceRelationOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::listDeviceRelationAsync(const ListDeviceRelationRequest& request, const ListDeviceRelationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listDeviceRelation(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListDeviceRelationOutcomeCallable CDRSClient::listDeviceRelationCallable(const ListDeviceRelationRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListDeviceRelationOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listDeviceRelation(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CDRSClient::ListMapRouteDetailsOutcome CDRSClient::listMapRouteDetails(const ListMapRouteDetailsRequest &request) const
|
CDRSClient::ListMapRouteDetailsOutcome CDRSClient::listMapRouteDetails(const ListMapRouteDetailsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1095,6 +1239,42 @@ CDRSClient::ListStructureStatisticsOutcomeCallable CDRSClient::listStructureStat
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListTagMetricsOutcome CDRSClient::listTagMetrics(const ListTagMetricsRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListTagMetricsOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListTagMetricsOutcome(ListTagMetricsResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListTagMetricsOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::listTagMetricsAsync(const ListTagMetricsRequest& request, const ListTagMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listTagMetrics(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::ListTagMetricsOutcomeCallable CDRSClient::listTagMetricsCallable(const ListTagMetricsRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListTagMetricsOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listTagMetrics(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CDRSClient::ListVehicleDetailsOutcome CDRSClient::listVehicleDetails(const ListVehicleDetailsRequest &request) const
|
CDRSClient::ListVehicleDetailsOutcome CDRSClient::listVehicleDetails(const ListVehicleDetailsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1275,6 +1455,78 @@ CDRSClient::ListVehicleTrackOutcomeCallable CDRSClient::listVehicleTrackCallable
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CDRSClient::PaginateDeviceOutcome CDRSClient::paginateDevice(const PaginateDeviceRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return PaginateDeviceOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return PaginateDeviceOutcome(PaginateDeviceResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return PaginateDeviceOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::paginateDeviceAsync(const PaginateDeviceRequest& request, const PaginateDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, paginateDevice(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::PaginateDeviceOutcomeCallable CDRSClient::paginateDeviceCallable(const PaginateDeviceRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<PaginateDeviceOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->paginateDevice(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::PaginateProjectOutcome CDRSClient::paginateProject(const PaginateProjectRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return PaginateProjectOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return PaginateProjectOutcome(PaginateProjectResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return PaginateProjectOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDRSClient::paginateProjectAsync(const PaginateProjectRequest& request, const PaginateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, paginateProject(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
CDRSClient::PaginateProjectOutcomeCallable CDRSClient::paginateProjectCallable(const PaginateProjectRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<PaginateProjectOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->paginateProject(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
CDRSClient::RecognizeImageOutcome CDRSClient::recognizeImage(const RecognizeImageRequest &request) const
|
CDRSClient::RecognizeImageOutcome CDRSClient::recognizeImage(const RecognizeImageRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -115,17 +115,6 @@ void AddCdrsMonitorRequest::setBatchIndicator(int batchIndicator)
|
|||||||
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
|
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string AddCdrsMonitorRequest::getBizId()const
|
|
||||||
{
|
|
||||||
return bizId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void AddCdrsMonitorRequest::setBizId(const std::string& bizId)
|
|
||||||
{
|
|
||||||
bizId_ = bizId;
|
|
||||||
setBodyParameter("BizId", bizId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int AddCdrsMonitorRequest::getNotifierTimeOut()const
|
int AddCdrsMonitorRequest::getNotifierTimeOut()const
|
||||||
{
|
{
|
||||||
return notifierTimeOut_;
|
return notifierTimeOut_;
|
||||||
|
|||||||
@@ -93,3 +93,14 @@ void CreateProjectRequest::setName(const std::string& name)
|
|||||||
setBodyParameter("Name", name);
|
setBodyParameter("Name", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateProjectRequest::getAggregateSceneCode()const
|
||||||
|
{
|
||||||
|
return aggregateSceneCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateProjectRequest::setAggregateSceneCode(const std::string& aggregateSceneCode)
|
||||||
|
{
|
||||||
|
aggregateSceneCode_ = aggregateSceneCode;
|
||||||
|
setBodyParameter("AggregateSceneCode", aggregateSceneCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,11 @@ void GetCdrsMonitorResultResult::parse(const std::string &payload)
|
|||||||
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
|
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
|
||||||
if(!dataNodeRecordsRecordsItem["TargetPicUrl"].isNull())
|
if(!dataNodeRecordsRecordsItem["TargetPicUrl"].isNull())
|
||||||
recordsItemObject.targetPicUrl = dataNodeRecordsRecordsItem["TargetPicUrl"].asString();
|
recordsItemObject.targetPicUrl = dataNodeRecordsRecordsItem["TargetPicUrl"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["TaskId"].isNull())
|
||||||
|
recordsItemObject.taskId = dataNodeRecordsRecordsItem["TaskId"].asString();
|
||||||
|
auto extendInfoNode = value["ExtendInfo"];
|
||||||
|
if(!extendInfoNode["PlateNo"].isNull())
|
||||||
|
recordsItemObject.extendInfo.plateNo = extendInfoNode["PlateNo"].asString();
|
||||||
data_.records.push_back(recordsItemObject);
|
data_.records.push_back(recordsItemObject);
|
||||||
}
|
}
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
|
|||||||
117
cdrs/src/model/ListAreaHotSpotMetricsRequest.cc
Normal file
117
cdrs/src/model/ListAreaHotSpotMetricsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/ListAreaHotSpotMetricsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::ListAreaHotSpotMetricsRequest;
|
||||||
|
|
||||||
|
ListAreaHotSpotMetricsRequest::ListAreaHotSpotMetricsRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "ListAreaHotSpotMetrics")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListAreaHotSpotMetricsRequest::~ListAreaHotSpotMetricsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getSchema()const
|
||||||
|
{
|
||||||
|
return schema_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setSchema(const std::string& schema)
|
||||||
|
{
|
||||||
|
schema_ = schema;
|
||||||
|
setBodyParameter("Schema", schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getCorpId()const
|
||||||
|
{
|
||||||
|
return corpId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setCorpId(const std::string& corpId)
|
||||||
|
{
|
||||||
|
corpId_ = corpId;
|
||||||
|
setBodyParameter("CorpId", corpId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setBodyParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setBodyParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getDeviceId()const
|
||||||
|
{
|
||||||
|
return deviceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setDeviceId(const std::string& deviceId)
|
||||||
|
{
|
||||||
|
deviceId_ = deviceId;
|
||||||
|
setBodyParameter("DeviceId", deviceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setBodyParameter("PageNumber", pageNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setPageSize(const std::string& pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setBodyParameter("PageSize", pageSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsRequest::getPersonId()const
|
||||||
|
{
|
||||||
|
return personId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsRequest::setPersonId(const std::string& personId)
|
||||||
|
{
|
||||||
|
personId_ = personId;
|
||||||
|
setBodyParameter("PersonId", personId);
|
||||||
|
}
|
||||||
|
|
||||||
100
cdrs/src/model/ListAreaHotSpotMetricsResult.cc
Normal file
100
cdrs/src/model/ListAreaHotSpotMetricsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
/*
|
||||||
|
* 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/ListAreaHotSpotMetricsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
ListAreaHotSpotMetricsResult::ListAreaHotSpotMetricsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListAreaHotSpotMetricsResult::ListAreaHotSpotMetricsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListAreaHotSpotMetricsResult::~ListAreaHotSpotMetricsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListAreaHotSpotMetricsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allDataNode = value["Data"]["DataItem"];
|
||||||
|
for (auto valueDataDataItem : allDataNode)
|
||||||
|
{
|
||||||
|
DataItem dataObject;
|
||||||
|
if(!valueDataDataItem["Times"].isNull())
|
||||||
|
dataObject.times = valueDataDataItem["Times"].asString();
|
||||||
|
if(!valueDataDataItem["Coordinates"].isNull())
|
||||||
|
dataObject.coordinates = valueDataDataItem["Coordinates"].asString();
|
||||||
|
if(!valueDataDataItem["DeviceId"].isNull())
|
||||||
|
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||||
|
if(!valueDataDataItem["PersonId"].isNull())
|
||||||
|
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||||
|
if(!valueDataDataItem["IntervalTime"].isNull())
|
||||||
|
dataObject.intervalTime = valueDataDataItem["IntervalTime"].asString();
|
||||||
|
data_.push_back(dataObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = value["PageNumber"].asString();
|
||||||
|
if(!value["PageSize"].isNull())
|
||||||
|
pageSize_ = value["PageSize"].asString();
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = value["TotalCount"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsResult::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListAreaHotSpotMetricsResult::DataItem> ListAreaHotSpotMetricsResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAreaHotSpotMetricsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
139
cdrs/src/model/ListCorpMetricsStatisticRequest.cc
Normal file
139
cdrs/src/model/ListCorpMetricsStatisticRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
/*
|
||||||
|
* 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/ListCorpMetricsStatisticRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::ListCorpMetricsStatisticRequest;
|
||||||
|
|
||||||
|
ListCorpMetricsStatisticRequest::ListCorpMetricsStatisticRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpMetricsStatistic")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListCorpMetricsStatisticRequest::~ListCorpMetricsStatisticRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getSchema()const
|
||||||
|
{
|
||||||
|
return schema_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setSchema(const std::string& schema)
|
||||||
|
{
|
||||||
|
schema_ = schema;
|
||||||
|
setBodyParameter("Schema", schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getCorpId()const
|
||||||
|
{
|
||||||
|
return corpId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setCorpId(const std::string& corpId)
|
||||||
|
{
|
||||||
|
corpId_ = corpId;
|
||||||
|
setBodyParameter("CorpId", corpId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setBodyParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setBodyParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListCorpMetricsStatisticRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setPageNumber(long pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getDeviceGroupList()const
|
||||||
|
{
|
||||||
|
return deviceGroupList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setDeviceGroupList(const std::string& deviceGroupList)
|
||||||
|
{
|
||||||
|
deviceGroupList_ = deviceGroupList;
|
||||||
|
setBodyParameter("DeviceGroupList", deviceGroupList);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getTagCode()const
|
||||||
|
{
|
||||||
|
return tagCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setTagCode(const std::string& tagCode)
|
||||||
|
{
|
||||||
|
tagCode_ = tagCode;
|
||||||
|
setBodyParameter("TagCode", tagCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getUserGroupList()const
|
||||||
|
{
|
||||||
|
return userGroupList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setUserGroupList(const std::string& userGroupList)
|
||||||
|
{
|
||||||
|
userGroupList_ = userGroupList;
|
||||||
|
setBodyParameter("UserGroupList", userGroupList);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ListCorpMetricsStatisticRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setPageSize(long pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticRequest::getDeviceIdList()const
|
||||||
|
{
|
||||||
|
return deviceIdList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticRequest::setDeviceIdList(const std::string& deviceIdList)
|
||||||
|
{
|
||||||
|
deviceIdList_ = deviceIdList;
|
||||||
|
setBodyParameter("DeviceIdList", deviceIdList);
|
||||||
|
}
|
||||||
|
|
||||||
115
cdrs/src/model/ListCorpMetricsStatisticResult.cc
Normal file
115
cdrs/src/model/ListCorpMetricsStatisticResult.cc
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
/*
|
||||||
|
* 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/ListCorpMetricsStatisticResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
ListCorpMetricsStatisticResult::ListCorpMetricsStatisticResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListCorpMetricsStatisticResult::ListCorpMetricsStatisticResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListCorpMetricsStatisticResult::~ListCorpMetricsStatisticResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListCorpMetricsStatisticResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allDataNode = value["Data"]["DataItem"];
|
||||||
|
for (auto valueDataDataItem : allDataNode)
|
||||||
|
{
|
||||||
|
DataItem dataObject;
|
||||||
|
if(!valueDataDataItem["CorpId"].isNull())
|
||||||
|
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||||
|
if(!valueDataDataItem["PersonId"].isNull())
|
||||||
|
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||||
|
if(!valueDataDataItem["DeviceGroupId"].isNull())
|
||||||
|
dataObject.deviceGroupId = valueDataDataItem["DeviceGroupId"].asString();
|
||||||
|
if(!valueDataDataItem["DeviceId"].isNull())
|
||||||
|
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||||
|
if(!valueDataDataItem["UserGroupId"].isNull())
|
||||||
|
dataObject.userGroupId = valueDataDataItem["UserGroupId"].asString();
|
||||||
|
if(!valueDataDataItem["TagMetrics"].isNull())
|
||||||
|
dataObject.tagMetrics = valueDataDataItem["TagMetrics"].asString();
|
||||||
|
if(!valueDataDataItem["TagCode"].isNull())
|
||||||
|
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||||
|
if(!valueDataDataItem["TagValue"].isNull())
|
||||||
|
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||||
|
if(!valueDataDataItem["DateId"].isNull())
|
||||||
|
dataObject.dateId = valueDataDataItem["DateId"].asString();
|
||||||
|
data_.push_back(dataObject);
|
||||||
|
}
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
if(!value["PageSize"].isNull())
|
||||||
|
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListCorpMetricsStatisticResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListCorpMetricsStatisticResult::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListCorpMetricsStatisticResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListCorpMetricsStatisticResult::DataItem> ListCorpMetricsStatisticResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpMetricsStatisticResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
117
cdrs/src/model/ListCorpTrackDetailRequest.cc
Normal file
117
cdrs/src/model/ListCorpTrackDetailRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/ListCorpTrackDetailRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::ListCorpTrackDetailRequest;
|
||||||
|
|
||||||
|
ListCorpTrackDetailRequest::ListCorpTrackDetailRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "ListCorpTrackDetail")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListCorpTrackDetailRequest::~ListCorpTrackDetailRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getSchema()const
|
||||||
|
{
|
||||||
|
return schema_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setSchema(const std::string& schema)
|
||||||
|
{
|
||||||
|
schema_ = schema;
|
||||||
|
setBodyParameter("Schema", schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getCorpId()const
|
||||||
|
{
|
||||||
|
return corpId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setCorpId(const std::string& corpId)
|
||||||
|
{
|
||||||
|
corpId_ = corpId;
|
||||||
|
setBodyParameter("CorpId", corpId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setBodyParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setBodyParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setPageNumber(const std::string& pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setBodyParameter("PageNumber", pageNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setPageSize(const std::string& pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setBodyParameter("PageSize", pageSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getDataSourceId()const
|
||||||
|
{
|
||||||
|
return dataSourceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setDataSourceId(const std::string& dataSourceId)
|
||||||
|
{
|
||||||
|
dataSourceId_ = dataSourceId;
|
||||||
|
setBodyParameter("DataSourceId", dataSourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailRequest::getPersonId()const
|
||||||
|
{
|
||||||
|
return personId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailRequest::setPersonId(const std::string& personId)
|
||||||
|
{
|
||||||
|
personId_ = personId;
|
||||||
|
setBodyParameter("PersonId", personId);
|
||||||
|
}
|
||||||
|
|
||||||
119
cdrs/src/model/ListCorpTrackDetailResult.cc
Normal file
119
cdrs/src/model/ListCorpTrackDetailResult.cc
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
/*
|
||||||
|
* 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/ListCorpTrackDetailResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
ListCorpTrackDetailResult::ListCorpTrackDetailResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListCorpTrackDetailResult::ListCorpTrackDetailResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListCorpTrackDetailResult::~ListCorpTrackDetailResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListCorpTrackDetailResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allDataNode = value["Data"]["DataItem"];
|
||||||
|
for (auto valueDataDataItem : allDataNode)
|
||||||
|
{
|
||||||
|
DataItem dataObject;
|
||||||
|
if(!valueDataDataItem["Date"].isNull())
|
||||||
|
dataObject.date = valueDataDataItem["Date"].asString();
|
||||||
|
if(!valueDataDataItem["LastTime"].isNull())
|
||||||
|
dataObject.lastTime = valueDataDataItem["LastTime"].asString();
|
||||||
|
if(!valueDataDataItem["StartTime"].isNull())
|
||||||
|
dataObject.startTime = valueDataDataItem["StartTime"].asString();
|
||||||
|
if(!valueDataDataItem["EndSourceImage"].isNull())
|
||||||
|
dataObject.endSourceImage = valueDataDataItem["EndSourceImage"].asString();
|
||||||
|
if(!valueDataDataItem["DeviceId"].isNull())
|
||||||
|
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||||
|
if(!valueDataDataItem["StartTargetImage"].isNull())
|
||||||
|
dataObject.startTargetImage = valueDataDataItem["StartTargetImage"].asString();
|
||||||
|
if(!valueDataDataItem["GroupId"].isNull())
|
||||||
|
dataObject.groupId = valueDataDataItem["GroupId"].asString();
|
||||||
|
if(!valueDataDataItem["PersonId"].isNull())
|
||||||
|
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||||
|
if(!valueDataDataItem["StartSourceImage"].isNull())
|
||||||
|
dataObject.startSourceImage = valueDataDataItem["StartSourceImage"].asString();
|
||||||
|
if(!valueDataDataItem["CorpId"].isNull())
|
||||||
|
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||||
|
if(!valueDataDataItem["EndTargetImage"].isNull())
|
||||||
|
dataObject.endTargetImage = valueDataDataItem["EndTargetImage"].asString();
|
||||||
|
data_.push_back(dataObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString();
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
if(!value["PageSize"].isNull())
|
||||||
|
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListCorpTrackDetailResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListCorpTrackDetailResult::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListCorpTrackDetailResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListCorpTrackDetailResult::DataItem> ListCorpTrackDetailResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListCorpTrackDetailResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
62
cdrs/src/model/ListDeviceRelationRequest.cc
Normal file
62
cdrs/src/model/ListDeviceRelationRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/ListDeviceRelationRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::ListDeviceRelationRequest;
|
||||||
|
|
||||||
|
ListDeviceRelationRequest::ListDeviceRelationRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "ListDeviceRelation")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListDeviceRelationRequest::~ListDeviceRelationRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListDeviceRelationRequest::getDeviceId()const
|
||||||
|
{
|
||||||
|
return deviceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDeviceRelationRequest::setDeviceId(const std::string& deviceId)
|
||||||
|
{
|
||||||
|
deviceId_ = deviceId;
|
||||||
|
setBodyParameter("DeviceId", deviceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListDeviceRelationRequest::getAppName()const
|
||||||
|
{
|
||||||
|
return appName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDeviceRelationRequest::setAppName(const std::string& appName)
|
||||||
|
{
|
||||||
|
appName_ = appName;
|
||||||
|
setBodyParameter("AppName", appName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListDeviceRelationRequest::get_NameSpace()const
|
||||||
|
{
|
||||||
|
return _nameSpace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDeviceRelationRequest::set_NameSpace(const std::string& _nameSpace)
|
||||||
|
{
|
||||||
|
_nameSpace_ = _nameSpace;
|
||||||
|
setBodyParameter("_NameSpace", _nameSpace);
|
||||||
|
}
|
||||||
|
|
||||||
71
cdrs/src/model/ListDeviceRelationResult.cc
Normal file
71
cdrs/src/model/ListDeviceRelationResult.cc
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/ListDeviceRelationResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
ListDeviceRelationResult::ListDeviceRelationResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListDeviceRelationResult::ListDeviceRelationResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListDeviceRelationResult::~ListDeviceRelationResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListDeviceRelationResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allDataNode = value["Data"]["DataItem"];
|
||||||
|
for (auto valueDataDataItem : allDataNode)
|
||||||
|
{
|
||||||
|
DataItem dataObject;
|
||||||
|
if(!valueDataDataItem["CorpId"].isNull())
|
||||||
|
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||||
|
data_.push_back(dataObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListDeviceRelationResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListDeviceRelationResult::DataItem> ListDeviceRelationResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListDeviceRelationResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -49,8 +49,10 @@ void ListMetricsResult::parse(const std::string &payload)
|
|||||||
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||||
if(!valueDataDataItem["TagValue"].isNull())
|
if(!valueDataDataItem["TagValue"].isNull())
|
||||||
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||||
if(!valueDataDataItem["DateTime"].isNull())
|
if(!valueDataDataItem["TagMetric"].isNull())
|
||||||
dataObject.dateTime1 = valueDataDataItem["DateTime"].asString();
|
dataObject.tagMetric = valueDataDataItem["TagMetric"].asString();
|
||||||
|
if(!valueDataDataItem["CorpId"].isNull())
|
||||||
|
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||||
data_.push_back(dataObject);
|
data_.push_back(dataObject);
|
||||||
}
|
}
|
||||||
if(!value["Code"].isNull())
|
if(!value["Code"].isNull())
|
||||||
|
|||||||
@@ -38,6 +38,17 @@ void ListPersonResultRequest::setProfession(const std::string& profession)
|
|||||||
setBodyParameter("Profession", profession);
|
setBodyParameter("Profession", profession);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ListPersonResultRequest::getSchema()const
|
||||||
|
{
|
||||||
|
return schema_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListPersonResultRequest::setSchema(const std::string& schema)
|
||||||
|
{
|
||||||
|
schema_ = schema;
|
||||||
|
setBodyParameter("Schema", schema);
|
||||||
|
}
|
||||||
|
|
||||||
std::string ListPersonResultRequest::getCorpId()const
|
std::string ListPersonResultRequest::getCorpId()const
|
||||||
{
|
{
|
||||||
return corpId_;
|
return corpId_;
|
||||||
|
|||||||
117
cdrs/src/model/ListTagMetricsRequest.cc
Normal file
117
cdrs/src/model/ListTagMetricsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/ListTagMetricsRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::ListTagMetricsRequest;
|
||||||
|
|
||||||
|
ListTagMetricsRequest::ListTagMetricsRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "ListTagMetrics")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListTagMetricsRequest::~ListTagMetricsRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getSchema()const
|
||||||
|
{
|
||||||
|
return schema_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setSchema(const std::string& schema)
|
||||||
|
{
|
||||||
|
schema_ = schema;
|
||||||
|
setBodyParameter("Schema", schema);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getCorpId()const
|
||||||
|
{
|
||||||
|
return corpId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setCorpId(const std::string& corpId)
|
||||||
|
{
|
||||||
|
corpId_ = corpId;
|
||||||
|
setBodyParameter("CorpId", corpId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setEndTime(const std::string& endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setBodyParameter("EndTime", endTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setStartTime(const std::string& startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setBodyParameter("StartTime", startTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setBodyParameter("PageNumber", pageNumber);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getTagCode()const
|
||||||
|
{
|
||||||
|
return tagCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setTagCode(const std::string& tagCode)
|
||||||
|
{
|
||||||
|
tagCode_ = tagCode;
|
||||||
|
setBodyParameter("TagCode", tagCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setPageSize(const std::string& pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setBodyParameter("PageSize", pageSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsRequest::getAggregateType()const
|
||||||
|
{
|
||||||
|
return aggregateType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListTagMetricsRequest::setAggregateType(const std::string& aggregateType)
|
||||||
|
{
|
||||||
|
aggregateType_ = aggregateType;
|
||||||
|
setBodyParameter("AggregateType", aggregateType);
|
||||||
|
}
|
||||||
|
|
||||||
100
cdrs/src/model/ListTagMetricsResult.cc
Normal file
100
cdrs/src/model/ListTagMetricsResult.cc
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
/*
|
||||||
|
* 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/ListTagMetricsResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
ListTagMetricsResult::ListTagMetricsResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListTagMetricsResult::ListTagMetricsResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListTagMetricsResult::~ListTagMetricsResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListTagMetricsResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allDataNode = value["Data"]["DataItem"];
|
||||||
|
for (auto valueDataDataItem : allDataNode)
|
||||||
|
{
|
||||||
|
DataItem dataObject;
|
||||||
|
if(!valueDataDataItem["DateTime"].isNull())
|
||||||
|
dataObject.dateTime = valueDataDataItem["DateTime"].asString();
|
||||||
|
if(!valueDataDataItem["TagCode"].isNull())
|
||||||
|
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||||
|
if(!valueDataDataItem["TagValue"].isNull())
|
||||||
|
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||||
|
if(!valueDataDataItem["TagMetric"].isNull())
|
||||||
|
dataObject.tagMetric = valueDataDataItem["TagMetric"].asString();
|
||||||
|
if(!valueDataDataItem["CorpId"].isNull())
|
||||||
|
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||||
|
data_.push_back(dataObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = value["PageNumber"].asString();
|
||||||
|
if(!value["PageSize"].isNull())
|
||||||
|
pageSize_ = value["PageSize"].asString();
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = value["TotalCount"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsResult::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListTagMetricsResult::DataItem> ListTagMetricsResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListTagMetricsResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
95
cdrs/src/model/PaginateDeviceRequest.cc
Normal file
95
cdrs/src/model/PaginateDeviceRequest.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/PaginateDeviceRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::PaginateDeviceRequest;
|
||||||
|
|
||||||
|
PaginateDeviceRequest::PaginateDeviceRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "PaginateDevice")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginateDeviceRequest::~PaginateDeviceRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string PaginateDeviceRequest::getCorpId()const
|
||||||
|
{
|
||||||
|
return corpId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateDeviceRequest::setCorpId(const std::string& corpId)
|
||||||
|
{
|
||||||
|
corpId_ = corpId;
|
||||||
|
setBodyParameter("CorpId", corpId);
|
||||||
|
}
|
||||||
|
|
||||||
|
long PaginateDeviceRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateDeviceRequest::setPageNumber(long pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PaginateDeviceRequest::getCountTotalNum()const
|
||||||
|
{
|
||||||
|
return countTotalNum_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateDeviceRequest::setCountTotalNum(bool countTotalNum)
|
||||||
|
{
|
||||||
|
countTotalNum_ = countTotalNum;
|
||||||
|
setBodyParameter("CountTotalNum", countTotalNum ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateDeviceRequest::getAppName()const
|
||||||
|
{
|
||||||
|
return appName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateDeviceRequest::setAppName(const std::string& appName)
|
||||||
|
{
|
||||||
|
appName_ = appName;
|
||||||
|
setBodyParameter("AppName", appName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateDeviceRequest::get_NameSpace()const
|
||||||
|
{
|
||||||
|
return _nameSpace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateDeviceRequest::set_NameSpace(const std::string& _nameSpace)
|
||||||
|
{
|
||||||
|
_nameSpace_ = _nameSpace;
|
||||||
|
setBodyParameter("_NameSpace", _nameSpace);
|
||||||
|
}
|
||||||
|
|
||||||
|
long PaginateDeviceRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateDeviceRequest::setPageSize(long pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
78
cdrs/src/model/PaginateDeviceResult.cc
Normal file
78
cdrs/src/model/PaginateDeviceResult.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/PaginateDeviceResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
PaginateDeviceResult::PaginateDeviceResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
PaginateDeviceResult::PaginateDeviceResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginateDeviceResult::~PaginateDeviceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void PaginateDeviceResult::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["PageNumber"].isNull())
|
||||||
|
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||||
|
if(!dataNode["PageSize"].isNull())
|
||||||
|
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||||
|
if(!dataNode["TotalCount"].isNull())
|
||||||
|
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||||
|
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||||
|
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||||
|
{
|
||||||
|
Data::RecordsItem recordsItemObject;
|
||||||
|
if(!dataNodeRecordsRecordsItem["DeviceId"].isNull())
|
||||||
|
recordsItemObject.deviceId = dataNodeRecordsRecordsItem["DeviceId"].asString();
|
||||||
|
data_.records.push_back(recordsItemObject);
|
||||||
|
}
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateDeviceResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginateDeviceResult::Data PaginateDeviceResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateDeviceResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
106
cdrs/src/model/PaginateProjectRequest.cc
Normal file
106
cdrs/src/model/PaginateProjectRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/PaginateProjectRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::CDRS::Model::PaginateProjectRequest;
|
||||||
|
|
||||||
|
PaginateProjectRequest::PaginateProjectRequest() :
|
||||||
|
RpcServiceRequest("cdrs", "2020-11-01", "PaginateProject")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginateProjectRequest::~PaginateProjectRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string PaginateProjectRequest::getType()const
|
||||||
|
{
|
||||||
|
return type_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::setType(const std::string& type)
|
||||||
|
{
|
||||||
|
type_ = type;
|
||||||
|
setBodyParameter("Type", type);
|
||||||
|
}
|
||||||
|
|
||||||
|
long PaginateProjectRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::setPageNumber(long pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PaginateProjectRequest::getCountTotalNum()const
|
||||||
|
{
|
||||||
|
return countTotalNum_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::setCountTotalNum(bool countTotalNum)
|
||||||
|
{
|
||||||
|
countTotalNum_ = countTotalNum;
|
||||||
|
setBodyParameter("CountTotalNum", countTotalNum ? "true" : "false");
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateProjectRequest::getAppName()const
|
||||||
|
{
|
||||||
|
return appName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::setAppName(const std::string& appName)
|
||||||
|
{
|
||||||
|
appName_ = appName;
|
||||||
|
setBodyParameter("AppName", appName);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateProjectRequest::get_NameSpace()const
|
||||||
|
{
|
||||||
|
return _nameSpace_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::set_NameSpace(const std::string& _nameSpace)
|
||||||
|
{
|
||||||
|
_nameSpace_ = _nameSpace;
|
||||||
|
setBodyParameter("_NameSpace", _nameSpace);
|
||||||
|
}
|
||||||
|
|
||||||
|
long PaginateProjectRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::setPageSize(long pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateProjectRequest::getNameLike()const
|
||||||
|
{
|
||||||
|
return nameLike_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaginateProjectRequest::setNameLike(const std::string& nameLike)
|
||||||
|
{
|
||||||
|
nameLike_ = nameLike;
|
||||||
|
setBodyParameter("NameLike", nameLike);
|
||||||
|
}
|
||||||
|
|
||||||
96
cdrs/src/model/PaginateProjectResult.cc
Normal file
96
cdrs/src/model/PaginateProjectResult.cc
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/cdrs/model/PaginateProjectResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::CDRS;
|
||||||
|
using namespace AlibabaCloud::CDRS::Model;
|
||||||
|
|
||||||
|
PaginateProjectResult::PaginateProjectResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
PaginateProjectResult::PaginateProjectResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginateProjectResult::~PaginateProjectResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void PaginateProjectResult::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["PageNumber"].isNull())
|
||||||
|
data_.pageNumber = std::stoi(dataNode["PageNumber"].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["TotalPage"].isNull())
|
||||||
|
data_.totalPage = std::stoi(dataNode["TotalPage"].asString());
|
||||||
|
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||||
|
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||||
|
{
|
||||||
|
Data::RecordsItem recordsItemObject;
|
||||||
|
if(!dataNodeRecordsRecordsItem["UserId"].isNull())
|
||||||
|
recordsItemObject.userId = dataNodeRecordsRecordsItem["UserId"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["Type"].isNull())
|
||||||
|
recordsItemObject.type = dataNodeRecordsRecordsItem["Type"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["CorpId"].isNull())
|
||||||
|
recordsItemObject.corpId = dataNodeRecordsRecordsItem["CorpId"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["Name"].isNull())
|
||||||
|
recordsItemObject.name = dataNodeRecordsRecordsItem["Name"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["CreatedTime"].isNull())
|
||||||
|
recordsItemObject.createdTime = dataNodeRecordsRecordsItem["CreatedTime"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["ModifiedTime"].isNull())
|
||||||
|
recordsItemObject.modifiedTime = dataNodeRecordsRecordsItem["ModifiedTime"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["Icon"].isNull())
|
||||||
|
recordsItemObject.icon = dataNodeRecordsRecordsItem["Icon"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["Description"].isNull())
|
||||||
|
recordsItemObject.description = dataNodeRecordsRecordsItem["Description"].asString();
|
||||||
|
if(!dataNodeRecordsRecordsItem["AggregateSceneCode"].isNull())
|
||||||
|
recordsItemObject.aggregateSceneCode = dataNodeRecordsRecordsItem["AggregateSceneCode"].asString();
|
||||||
|
data_.records.push_back(recordsItemObject);
|
||||||
|
}
|
||||||
|
if(!value["Code"].isNull())
|
||||||
|
code_ = value["Code"].asString();
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateProjectResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
PaginateProjectResult::Data PaginateProjectResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PaginateProjectResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -93,3 +93,14 @@ void UpdateProjectRequest::setName(const std::string& name)
|
|||||||
setBodyParameter("Name", name);
|
setBodyParameter("Name", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string UpdateProjectRequest::getAggregateSceneCode()const
|
||||||
|
{
|
||||||
|
return aggregateSceneCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateProjectRequest::setAggregateSceneCode(const std::string& aggregateSceneCode)
|
||||||
|
{
|
||||||
|
aggregateSceneCode_ = aggregateSceneCode;
|
||||||
|
setBodyParameter("AggregateSceneCode", aggregateSceneCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ set(dms-enterprise_public_header
|
|||||||
set(dms-enterprise_public_header_model
|
set(dms-enterprise_public_header_model
|
||||||
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
|
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
|
||||||
include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h
|
include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h
|
||||||
include/alibabacloud/dms-enterprise/model/CheckFinishMissionRequest.h
|
|
||||||
include/alibabacloud/dms-enterprise/model/CheckFinishMissionResult.h
|
|
||||||
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
||||||
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
||||||
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
|
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
|
||||||
@@ -136,8 +134,6 @@ set(dms-enterprise_src
|
|||||||
src/Dms-enterpriseClient.cc
|
src/Dms-enterpriseClient.cc
|
||||||
src/model/ApproveOrderRequest.cc
|
src/model/ApproveOrderRequest.cc
|
||||||
src/model/ApproveOrderResult.cc
|
src/model/ApproveOrderResult.cc
|
||||||
src/model/CheckFinishMissionRequest.cc
|
|
||||||
src/model/CheckFinishMissionResult.cc
|
|
||||||
src/model/CloseOrderRequest.cc
|
src/model/CloseOrderRequest.cc
|
||||||
src/model/CloseOrderResult.cc
|
src/model/CloseOrderResult.cc
|
||||||
src/model/CreateOrderRequest.cc
|
src/model/CreateOrderRequest.cc
|
||||||
|
|||||||
@@ -24,8 +24,6 @@
|
|||||||
#include "Dms_enterpriseExport.h"
|
#include "Dms_enterpriseExport.h"
|
||||||
#include "model/ApproveOrderRequest.h"
|
#include "model/ApproveOrderRequest.h"
|
||||||
#include "model/ApproveOrderResult.h"
|
#include "model/ApproveOrderResult.h"
|
||||||
#include "model/CheckFinishMissionRequest.h"
|
|
||||||
#include "model/CheckFinishMissionResult.h"
|
|
||||||
#include "model/CloseOrderRequest.h"
|
#include "model/CloseOrderRequest.h"
|
||||||
#include "model/CloseOrderResult.h"
|
#include "model/CloseOrderResult.h"
|
||||||
#include "model/CreateOrderRequest.h"
|
#include "model/CreateOrderRequest.h"
|
||||||
@@ -144,9 +142,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ApproveOrderResult> ApproveOrderOutcome;
|
typedef Outcome<Error, Model::ApproveOrderResult> ApproveOrderOutcome;
|
||||||
typedef std::future<ApproveOrderOutcome> ApproveOrderOutcomeCallable;
|
typedef std::future<ApproveOrderOutcome> ApproveOrderOutcomeCallable;
|
||||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ApproveOrderRequest&, const ApproveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderAsyncHandler;
|
typedef std::function<void(const Dms_enterpriseClient*, const Model::ApproveOrderRequest&, const ApproveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CheckFinishMissionResult> CheckFinishMissionOutcome;
|
|
||||||
typedef std::future<CheckFinishMissionOutcome> CheckFinishMissionOutcomeCallable;
|
|
||||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CheckFinishMissionRequest&, const CheckFinishMissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckFinishMissionAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
||||||
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
||||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
||||||
@@ -314,9 +309,6 @@ namespace AlibabaCloud
|
|||||||
ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const;
|
ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const;
|
||||||
void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const;
|
ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const;
|
||||||
CheckFinishMissionOutcome checkFinishMission(const Model::CheckFinishMissionRequest &request)const;
|
|
||||||
void checkFinishMissionAsync(const Model::CheckFinishMissionRequest& request, const CheckFinishMissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
CheckFinishMissionOutcomeCallable checkFinishMissionCallable(const Model::CheckFinishMissionRequest& request) const;
|
|
||||||
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
||||||
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
||||||
|
|||||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
|||||||
DeleteInstanceRequest();
|
DeleteInstanceRequest();
|
||||||
~DeleteInstanceRequest();
|
~DeleteInstanceRequest();
|
||||||
|
|
||||||
int getPort()const;
|
|
||||||
void setPort(int port);
|
|
||||||
std::string getHost()const;
|
|
||||||
void setHost(const std::string& host);
|
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
std::string getSid()const;
|
std::string getSid()const;
|
||||||
void setSid(const std::string& sid);
|
void setSid(const std::string& sid);
|
||||||
|
int getPort()const;
|
||||||
|
void setPort(int port);
|
||||||
|
std::string getHost()const;
|
||||||
|
void setHost(const std::string& host);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int port_;
|
|
||||||
std::string host_;
|
|
||||||
long tid_;
|
long tid_;
|
||||||
std::string sid_;
|
std::string sid_;
|
||||||
|
int port_;
|
||||||
|
std::string host_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ namespace AlibabaCloud
|
|||||||
DeleteUserRequest();
|
DeleteUserRequest();
|
||||||
~DeleteUserRequest();
|
~DeleteUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
std::string getUid()const;
|
||||||
void setUid(long uid);
|
void setUid(const std::string& uid);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
std::string uid_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ namespace AlibabaCloud
|
|||||||
DisableUserRequest();
|
DisableUserRequest();
|
||||||
~DisableUserRequest();
|
~DisableUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
std::string getUid()const;
|
||||||
void setUid(long uid);
|
void setUid(const std::string& uid);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
std::string uid_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,13 +35,13 @@ namespace AlibabaCloud
|
|||||||
EnableUserRequest();
|
EnableUserRequest();
|
||||||
~EnableUserRequest();
|
~EnableUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
std::string getUid()const;
|
||||||
void setUid(long uid);
|
void setUid(const std::string& uid);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
std::string uid_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
|||||||
GetInstanceRequest();
|
GetInstanceRequest();
|
||||||
~GetInstanceRequest();
|
~GetInstanceRequest();
|
||||||
|
|
||||||
int getPort()const;
|
|
||||||
void setPort(int port);
|
|
||||||
std::string getHost()const;
|
|
||||||
void setHost(const std::string& host);
|
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
std::string getSid()const;
|
std::string getSid()const;
|
||||||
void setSid(const std::string& sid);
|
void setSid(const std::string& sid);
|
||||||
|
int getPort()const;
|
||||||
|
void setPort(int port);
|
||||||
|
std::string getHost()const;
|
||||||
|
void setHost(const std::string& host);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int port_;
|
|
||||||
std::string host_;
|
|
||||||
long tid_;
|
long tid_;
|
||||||
std::string sid_;
|
std::string sid_;
|
||||||
|
int port_;
|
||||||
|
std::string host_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,10 +51,12 @@ namespace AlibabaCloud
|
|||||||
std::string state;
|
std::string state;
|
||||||
std::string ecsRegion;
|
std::string ecsRegion;
|
||||||
std::string databaseUser;
|
std::string databaseUser;
|
||||||
|
std::vector<std::string> ownerNameList;
|
||||||
std::string instanceType;
|
std::string instanceType;
|
||||||
std::string dbaNickName;
|
std::string dbaNickName;
|
||||||
std::string dataLinkName;
|
std::string dataLinkName;
|
||||||
int queryTimeout;
|
int queryTimeout;
|
||||||
|
std::vector<std::string> ownerIdList;
|
||||||
std::string safeRuleId;
|
std::string safeRuleId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -35,17 +35,17 @@ namespace AlibabaCloud
|
|||||||
GetUserRequest();
|
GetUserRequest();
|
||||||
~GetUserRequest();
|
~GetUserRequest();
|
||||||
|
|
||||||
long getUid()const;
|
|
||||||
void setUid(long uid);
|
|
||||||
std::string getUserId()const;
|
std::string getUserId()const;
|
||||||
void setUserId(const std::string& userId);
|
void setUserId(const std::string& userId);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
std::string getUid()const;
|
||||||
|
void setUid(const std::string& uid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long uid_;
|
|
||||||
std::string userId_;
|
std::string userId_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
std::string uid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace AlibabaCloud
|
|||||||
std::string nickName;
|
std::string nickName;
|
||||||
std::string mobile;
|
std::string mobile;
|
||||||
long maxExecuteCount;
|
long maxExecuteCount;
|
||||||
long uid;
|
std::string uid;
|
||||||
std::string lastLoginTime;
|
std::string lastLoginTime;
|
||||||
long curResultCount;
|
long curResultCount;
|
||||||
std::vector<std::string> roleIdList;
|
std::vector<std::string> roleIdList;
|
||||||
|
|||||||
@@ -51,10 +51,12 @@ namespace AlibabaCloud
|
|||||||
std::string state;
|
std::string state;
|
||||||
std::string ecsRegion;
|
std::string ecsRegion;
|
||||||
std::string databaseUser;
|
std::string databaseUser;
|
||||||
|
std::vector<std::string> ownerNameList;
|
||||||
std::string instanceType;
|
std::string instanceType;
|
||||||
std::string dbaNickName;
|
std::string dbaNickName;
|
||||||
std::string dataLinkName;
|
std::string dataLinkName;
|
||||||
int queryTimeout;
|
int queryTimeout;
|
||||||
|
std::vector<std::string> ownerIdList;
|
||||||
std::string safeRuleId;
|
std::string safeRuleId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -35,26 +35,26 @@ namespace AlibabaCloud
|
|||||||
ListUsersRequest();
|
ListUsersRequest();
|
||||||
~ListUsersRequest();
|
~ListUsersRequest();
|
||||||
|
|
||||||
std::string getUserState()const;
|
|
||||||
void setUserState(const std::string& userState);
|
|
||||||
std::string getRole()const;
|
std::string getRole()const;
|
||||||
void setRole(const std::string& role);
|
void setRole(const std::string& role);
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
std::string getSearchKey()const;
|
std::string getSearchKey()const;
|
||||||
void setSearchKey(const std::string& searchKey);
|
void setSearchKey(const std::string& searchKey);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
int getPageNumber()const;
|
int getPageNumber()const;
|
||||||
void setPageNumber(int pageNumber);
|
void setPageNumber(int pageNumber);
|
||||||
|
std::string getUserState()const;
|
||||||
|
void setUserState(const std::string& userState);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string userState_;
|
|
||||||
std::string role_;
|
std::string role_;
|
||||||
int pageSize_;
|
|
||||||
std::string searchKey_;
|
std::string searchKey_;
|
||||||
long tid_;
|
long tid_;
|
||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
|
std::string userState_;
|
||||||
|
int pageSize_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace AlibabaCloud
|
|||||||
std::string nickName;
|
std::string nickName;
|
||||||
std::string mobile;
|
std::string mobile;
|
||||||
long maxExecuteCount;
|
long maxExecuteCount;
|
||||||
long uid;
|
std::string uid;
|
||||||
std::string lastLoginTime;
|
std::string lastLoginTime;
|
||||||
long curResultCount;
|
long curResultCount;
|
||||||
std::vector<std::string> roleIdList;
|
std::vector<std::string> roleIdList;
|
||||||
@@ -46,7 +46,7 @@ namespace AlibabaCloud
|
|||||||
std::string userId;
|
std::string userId;
|
||||||
std::string state;
|
std::string state;
|
||||||
long curExecuteCount;
|
long curExecuteCount;
|
||||||
long parentUid;
|
std::string parentUid;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,21 +37,21 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
std::string getRoleNames()const;
|
std::string getRoleNames()const;
|
||||||
void setRoleNames(const std::string& roleNames);
|
void setRoleNames(const std::string& roleNames);
|
||||||
long getUid()const;
|
|
||||||
void setUid(long uid);
|
|
||||||
std::string getUserNick()const;
|
std::string getUserNick()const;
|
||||||
void setUserNick(const std::string& userNick);
|
void setUserNick(const std::string& userNick);
|
||||||
std::string getMobile()const;
|
std::string getMobile()const;
|
||||||
void setMobile(const std::string& mobile);
|
void setMobile(const std::string& mobile);
|
||||||
long getTid()const;
|
long getTid()const;
|
||||||
void setTid(long tid);
|
void setTid(long tid);
|
||||||
|
std::string getUid()const;
|
||||||
|
void setUid(const std::string& uid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string roleNames_;
|
std::string roleNames_;
|
||||||
long uid_;
|
|
||||||
std::string userNick_;
|
std::string userNick_;
|
||||||
std::string mobile_;
|
std::string mobile_;
|
||||||
long tid_;
|
long tid_;
|
||||||
|
std::string uid_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,42 +87,6 @@ Dms_enterpriseClient::ApproveOrderOutcomeCallable Dms_enterpriseClient::approveO
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dms_enterpriseClient::CheckFinishMissionOutcome Dms_enterpriseClient::checkFinishMission(const CheckFinishMissionRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return CheckFinishMissionOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return CheckFinishMissionOutcome(CheckFinishMissionResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return CheckFinishMissionOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void Dms_enterpriseClient::checkFinishMissionAsync(const CheckFinishMissionRequest& request, const CheckFinishMissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, checkFinishMission(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
Dms_enterpriseClient::CheckFinishMissionOutcomeCallable Dms_enterpriseClient::checkFinishMissionCallable(const CheckFinishMissionRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<CheckFinishMissionOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->checkFinishMission(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const
|
Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/dms-enterprise/model/CheckFinishMissionRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Dms_enterprise::Model::CheckFinishMissionRequest;
|
|
||||||
|
|
||||||
CheckFinishMissionRequest::CheckFinishMissionRequest() :
|
|
||||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CheckFinishMission")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Get);
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckFinishMissionRequest::~CheckFinishMissionRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CheckFinishMissionRequest::getMissionType()const
|
|
||||||
{
|
|
||||||
return missionType_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CheckFinishMissionRequest::setMissionType(const std::string& missionType)
|
|
||||||
{
|
|
||||||
missionType_ = missionType;
|
|
||||||
setParameter("MissionType", missionType);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/dms-enterprise/model/CheckFinishMissionResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Dms_enterprise;
|
|
||||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
|
||||||
|
|
||||||
CheckFinishMissionResult::CheckFinishMissionResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
CheckFinishMissionResult::CheckFinishMissionResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckFinishMissionResult::~CheckFinishMissionResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void CheckFinishMissionResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["Success"].isNull())
|
|
||||||
success_ = value["Success"].asString() == "true";
|
|
||||||
if(!value["ErrorMessage"].isNull())
|
|
||||||
errorMessage_ = value["ErrorMessage"].asString();
|
|
||||||
if(!value["ErrorCode"].isNull())
|
|
||||||
errorCode_ = value["ErrorCode"].asString();
|
|
||||||
if(!value["HasFinish"].isNull())
|
|
||||||
hasFinish_ = value["HasFinish"].asString() == "true";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CheckFinishMissionResult::getHasFinish()const
|
|
||||||
{
|
|
||||||
return hasFinish_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CheckFinishMissionResult::getErrorCode()const
|
|
||||||
{
|
|
||||||
return errorCode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CheckFinishMissionResult::getErrorMessage()const
|
|
||||||
{
|
|
||||||
return errorMessage_;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CheckFinishMissionResult::getSuccess()const
|
|
||||||
{
|
|
||||||
return success_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -27,28 +27,6 @@ DeleteInstanceRequest::DeleteInstanceRequest() :
|
|||||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
int DeleteInstanceRequest::getPort()const
|
|
||||||
{
|
|
||||||
return port_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteInstanceRequest::setPort(int port)
|
|
||||||
{
|
|
||||||
port_ = port;
|
|
||||||
setParameter("Port", std::to_string(port));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DeleteInstanceRequest::getHost()const
|
|
||||||
{
|
|
||||||
return host_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DeleteInstanceRequest::setHost(const std::string& host)
|
|
||||||
{
|
|
||||||
host_ = host;
|
|
||||||
setParameter("Host", host);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DeleteInstanceRequest::getTid()const
|
long DeleteInstanceRequest::getTid()const
|
||||||
{
|
{
|
||||||
return tid_;
|
return tid_;
|
||||||
@@ -71,3 +49,25 @@ void DeleteInstanceRequest::setSid(const std::string& sid)
|
|||||||
setParameter("Sid", sid);
|
setParameter("Sid", sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DeleteInstanceRequest::getPort()const
|
||||||
|
{
|
||||||
|
return port_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteInstanceRequest::setPort(int port)
|
||||||
|
{
|
||||||
|
port_ = port;
|
||||||
|
setParameter("Port", std::to_string(port));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteInstanceRequest::getHost()const
|
||||||
|
{
|
||||||
|
return host_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteInstanceRequest::setHost(const std::string& host)
|
||||||
|
{
|
||||||
|
host_ = host;
|
||||||
|
setParameter("Host", host);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ DeleteUserRequest::DeleteUserRequest() :
|
|||||||
DeleteUserRequest::~DeleteUserRequest()
|
DeleteUserRequest::~DeleteUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long DeleteUserRequest::getUid()const
|
std::string DeleteUserRequest::getUid()const
|
||||||
{
|
{
|
||||||
return uid_;
|
return uid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteUserRequest::setUid(long uid)
|
void DeleteUserRequest::setUid(const std::string& uid)
|
||||||
{
|
{
|
||||||
uid_ = uid;
|
uid_ = uid;
|
||||||
setParameter("Uid", std::to_string(uid));
|
setParameter("Uid", uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
long DeleteUserRequest::getTid()const
|
long DeleteUserRequest::getTid()const
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ DisableUserRequest::DisableUserRequest() :
|
|||||||
DisableUserRequest::~DisableUserRequest()
|
DisableUserRequest::~DisableUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long DisableUserRequest::getUid()const
|
std::string DisableUserRequest::getUid()const
|
||||||
{
|
{
|
||||||
return uid_;
|
return uid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisableUserRequest::setUid(long uid)
|
void DisableUserRequest::setUid(const std::string& uid)
|
||||||
{
|
{
|
||||||
uid_ = uid;
|
uid_ = uid;
|
||||||
setParameter("Uid", std::to_string(uid));
|
setParameter("Uid", uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
long DisableUserRequest::getTid()const
|
long DisableUserRequest::getTid()const
|
||||||
|
|||||||
@@ -27,15 +27,15 @@ EnableUserRequest::EnableUserRequest() :
|
|||||||
EnableUserRequest::~EnableUserRequest()
|
EnableUserRequest::~EnableUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long EnableUserRequest::getUid()const
|
std::string EnableUserRequest::getUid()const
|
||||||
{
|
{
|
||||||
return uid_;
|
return uid_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnableUserRequest::setUid(long uid)
|
void EnableUserRequest::setUid(const std::string& uid)
|
||||||
{
|
{
|
||||||
uid_ = uid;
|
uid_ = uid;
|
||||||
setParameter("Uid", std::to_string(uid));
|
setParameter("Uid", uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
long EnableUserRequest::getTid()const
|
long EnableUserRequest::getTid()const
|
||||||
|
|||||||
@@ -27,28 +27,6 @@ GetInstanceRequest::GetInstanceRequest() :
|
|||||||
GetInstanceRequest::~GetInstanceRequest()
|
GetInstanceRequest::~GetInstanceRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
int GetInstanceRequest::getPort()const
|
|
||||||
{
|
|
||||||
return port_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetInstanceRequest::setPort(int port)
|
|
||||||
{
|
|
||||||
port_ = port;
|
|
||||||
setParameter("Port", std::to_string(port));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetInstanceRequest::getHost()const
|
|
||||||
{
|
|
||||||
return host_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetInstanceRequest::setHost(const std::string& host)
|
|
||||||
{
|
|
||||||
host_ = host;
|
|
||||||
setParameter("Host", host);
|
|
||||||
}
|
|
||||||
|
|
||||||
long GetInstanceRequest::getTid()const
|
long GetInstanceRequest::getTid()const
|
||||||
{
|
{
|
||||||
return tid_;
|
return tid_;
|
||||||
@@ -71,3 +49,25 @@ void GetInstanceRequest::setSid(const std::string& sid)
|
|||||||
setParameter("Sid", sid);
|
setParameter("Sid", sid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int GetInstanceRequest::getPort()const
|
||||||
|
{
|
||||||
|
return port_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetInstanceRequest::setPort(int port)
|
||||||
|
{
|
||||||
|
port_ = port;
|
||||||
|
setParameter("Port", std::to_string(port));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetInstanceRequest::getHost()const
|
||||||
|
{
|
||||||
|
return host_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetInstanceRequest::setHost(const std::string& host)
|
||||||
|
{
|
||||||
|
host_ = host;
|
||||||
|
setParameter("Host", host);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ void GetInstanceResult::parse(const std::string &payload)
|
|||||||
instance_.databasePassword = instanceNode["DatabasePassword"].asString();
|
instance_.databasePassword = instanceNode["DatabasePassword"].asString();
|
||||||
if(!instanceNode["InstanceSource"].isNull())
|
if(!instanceNode["InstanceSource"].isNull())
|
||||||
instance_.instanceSource = instanceNode["InstanceSource"].asString();
|
instance_.instanceSource = instanceNode["InstanceSource"].asString();
|
||||||
|
auto allOwnerIdList = instanceNode["OwnerIdList"]["OwnerIds"];
|
||||||
|
for (auto value : allOwnerIdList)
|
||||||
|
instance_.ownerIdList.push_back(value.asString());
|
||||||
|
auto allOwnerNameList = instanceNode["OwnerNameList"]["OwnerNames"];
|
||||||
|
for (auto value : allOwnerNameList)
|
||||||
|
instance_.ownerNameList.push_back(value.asString());
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
success_ = value["Success"].asString() == "true";
|
success_ = value["Success"].asString() == "true";
|
||||||
if(!value["ErrorMessage"].isNull())
|
if(!value["ErrorMessage"].isNull())
|
||||||
|
|||||||
@@ -56,28 +56,28 @@ void GetTableDBTopologyResult::parse(const std::string &payload)
|
|||||||
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
|
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
|
||||||
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
||||||
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
||||||
auto allDatabaseListNode = allDataSourceListNode["DatabaseList"]["Database"];
|
auto allDatabaseListNode = dBTopologyNodeDataSourceListDataSource["DatabaseList"]["Database"];
|
||||||
for (auto allDataSourceListNodeDatabaseListDatabase : allDatabaseListNode)
|
for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase : allDatabaseListNode)
|
||||||
{
|
{
|
||||||
DBTopology::DataSource::Database databaseListObject;
|
DBTopology::DataSource::Database databaseListObject;
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["DbName"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].isNull())
|
||||||
databaseListObject.dbName = allDataSourceListNodeDatabaseListDatabase["DbName"].asString();
|
databaseListObject.dbName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].asString();
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["DbId"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbId"].isNull())
|
||||||
databaseListObject.dbId = allDataSourceListNodeDatabaseListDatabase["DbId"].asString();
|
databaseListObject.dbId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbId"].asString();
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["EnvType"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].isNull())
|
||||||
databaseListObject.envType = allDataSourceListNodeDatabaseListDatabase["EnvType"].asString();
|
databaseListObject.envType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].asString();
|
||||||
if(!allDataSourceListNodeDatabaseListDatabase["DbType"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].isNull())
|
||||||
databaseListObject.dbType = allDataSourceListNodeDatabaseListDatabase["DbType"].asString();
|
databaseListObject.dbType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].asString();
|
||||||
auto allTableListNode = allDatabaseListNode["TableList"]["Table"];
|
auto allTableListNode = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["TableList"]["Table"];
|
||||||
for (auto allDatabaseListNodeTableListTable : allTableListNode)
|
for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable : allTableListNode)
|
||||||
{
|
{
|
||||||
DBTopology::DataSource::Database::Table tableListObject;
|
DBTopology::DataSource::Database::Table tableListObject;
|
||||||
if(!allDatabaseListNodeTableListTable["TableName"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].isNull())
|
||||||
tableListObject.tableName = allDatabaseListNodeTableListTable["TableName"].asString();
|
tableListObject.tableName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].asString();
|
||||||
if(!allDatabaseListNodeTableListTable["TableId"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].isNull())
|
||||||
tableListObject.tableId = allDatabaseListNodeTableListTable["TableId"].asString();
|
tableListObject.tableId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].asString();
|
||||||
if(!allDatabaseListNodeTableListTable["TableType"].isNull())
|
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].isNull())
|
||||||
tableListObject.tableType = allDatabaseListNodeTableListTable["TableType"].asString();
|
tableListObject.tableType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].asString();
|
||||||
databaseListObject.tableList.push_back(tableListObject);
|
databaseListObject.tableList.push_back(tableListObject);
|
||||||
}
|
}
|
||||||
dataSourceObject.databaseList.push_back(databaseListObject);
|
dataSourceObject.databaseList.push_back(databaseListObject);
|
||||||
|
|||||||
@@ -27,17 +27,6 @@ GetUserRequest::GetUserRequest() :
|
|||||||
GetUserRequest::~GetUserRequest()
|
GetUserRequest::~GetUserRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
long GetUserRequest::getUid()const
|
|
||||||
{
|
|
||||||
return uid_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GetUserRequest::setUid(long uid)
|
|
||||||
{
|
|
||||||
uid_ = uid;
|
|
||||||
setParameter("Uid", std::to_string(uid));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string GetUserRequest::getUserId()const
|
std::string GetUserRequest::getUserId()const
|
||||||
{
|
{
|
||||||
return userId_;
|
return userId_;
|
||||||
@@ -60,3 +49,14 @@ void GetUserRequest::setTid(long tid)
|
|||||||
setParameter("Tid", std::to_string(tid));
|
setParameter("Tid", std::to_string(tid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string GetUserRequest::getUid()const
|
||||||
|
{
|
||||||
|
return uid_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetUserRequest::setUid(const std::string& uid)
|
||||||
|
{
|
||||||
|
uid_ = uid;
|
||||||
|
setParameter("Uid", uid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ void GetUserResult::parse(const std::string &payload)
|
|||||||
if(!userNode["UserId"].isNull())
|
if(!userNode["UserId"].isNull())
|
||||||
user_.userId = userNode["UserId"].asString();
|
user_.userId = userNode["UserId"].asString();
|
||||||
if(!userNode["Uid"].isNull())
|
if(!userNode["Uid"].isNull())
|
||||||
user_.uid = std::stol(userNode["Uid"].asString());
|
user_.uid = userNode["Uid"].asString();
|
||||||
if(!userNode["NickName"].isNull())
|
if(!userNode["NickName"].isNull())
|
||||||
user_.nickName = userNode["NickName"].asString();
|
user_.nickName = userNode["NickName"].asString();
|
||||||
if(!userNode["Mobile"].isNull())
|
if(!userNode["Mobile"].isNull())
|
||||||
|
|||||||
@@ -71,22 +71,22 @@ void ListDatabaseUserPermssionsResult::parse(const std::string &payload)
|
|||||||
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
||||||
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
||||||
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
||||||
auto allPermDetailsNode = allUserPermissionsNode["PermDetails"]["PermDetail"];
|
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
|
||||||
for (auto allUserPermissionsNodePermDetailsPermDetail : allPermDetailsNode)
|
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
|
||||||
{
|
{
|
||||||
UserPermission::PermDetail permDetailsObject;
|
UserPermission::PermDetail permDetailsObject;
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["PermType"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull())
|
||||||
permDetailsObject.permType = allUserPermissionsNodePermDetailsPermDetail["PermType"].asString();
|
permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull())
|
||||||
permDetailsObject.expireDate = allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].asString();
|
permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["CreateDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull())
|
||||||
permDetailsObject.createDate = allUserPermissionsNodePermDetailsPermDetail["CreateDate"].asString();
|
permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull())
|
||||||
permDetailsObject.originFrom = allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].asString();
|
permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull())
|
||||||
permDetailsObject.userAccessId = allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].asString();
|
permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExtraData"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull())
|
||||||
permDetailsObject.extraData = allUserPermissionsNodePermDetailsPermDetail["ExtraData"].asString();
|
permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString();
|
||||||
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
||||||
}
|
}
|
||||||
userPermissions_.push_back(userPermissionsObject);
|
userPermissions_.push_back(userPermissionsObject);
|
||||||
|
|||||||
@@ -87,6 +87,12 @@ void ListInstancesResult::parse(const std::string &payload)
|
|||||||
instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString();
|
instanceListObject.databasePassword = valueInstanceListInstance["DatabasePassword"].asString();
|
||||||
if(!valueInstanceListInstance["InstanceSource"].isNull())
|
if(!valueInstanceListInstance["InstanceSource"].isNull())
|
||||||
instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString();
|
instanceListObject.instanceSource = valueInstanceListInstance["InstanceSource"].asString();
|
||||||
|
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||||
|
for (auto value : allOwnerIdList)
|
||||||
|
instanceListObject.ownerIdList.push_back(value.asString());
|
||||||
|
auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"];
|
||||||
|
for (auto value : allOwnerNameList)
|
||||||
|
instanceListObject.ownerNameList.push_back(value.asString());
|
||||||
instanceList_.push_back(instanceListObject);
|
instanceList_.push_back(instanceListObject);
|
||||||
}
|
}
|
||||||
if(!value["Success"].isNull())
|
if(!value["Success"].isNull())
|
||||||
|
|||||||
@@ -71,22 +71,22 @@ void ListUserPermissionsResult::parse(const std::string &payload)
|
|||||||
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
||||||
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
||||||
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
||||||
auto allPermDetailsNode = allUserPermissionsNode["PermDetails"]["PermDetail"];
|
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
|
||||||
for (auto allUserPermissionsNodePermDetailsPermDetail : allPermDetailsNode)
|
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
|
||||||
{
|
{
|
||||||
UserPermission::PermDetail permDetailsObject;
|
UserPermission::PermDetail permDetailsObject;
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["PermType"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull())
|
||||||
permDetailsObject.permType = allUserPermissionsNodePermDetailsPermDetail["PermType"].asString();
|
permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull())
|
||||||
permDetailsObject.expireDate = allUserPermissionsNodePermDetailsPermDetail["ExpireDate"].asString();
|
permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["CreateDate"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull())
|
||||||
permDetailsObject.createDate = allUserPermissionsNodePermDetailsPermDetail["CreateDate"].asString();
|
permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull())
|
||||||
permDetailsObject.originFrom = allUserPermissionsNodePermDetailsPermDetail["OriginFrom"].asString();
|
permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull())
|
||||||
permDetailsObject.userAccessId = allUserPermissionsNodePermDetailsPermDetail["UserAccessId"].asString();
|
permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString();
|
||||||
if(!allUserPermissionsNodePermDetailsPermDetail["ExtraData"].isNull())
|
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull())
|
||||||
permDetailsObject.extraData = allUserPermissionsNodePermDetailsPermDetail["ExtraData"].asString();
|
permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString();
|
||||||
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
||||||
}
|
}
|
||||||
userPermissions_.push_back(userPermissionsObject);
|
userPermissions_.push_back(userPermissionsObject);
|
||||||
|
|||||||
@@ -27,17 +27,6 @@ ListUsersRequest::ListUsersRequest() :
|
|||||||
ListUsersRequest::~ListUsersRequest()
|
ListUsersRequest::~ListUsersRequest()
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string ListUsersRequest::getUserState()const
|
|
||||||
{
|
|
||||||
return userState_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListUsersRequest::setUserState(const std::string& userState)
|
|
||||||
{
|
|
||||||
userState_ = userState;
|
|
||||||
setParameter("UserState", userState);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListUsersRequest::getRole()const
|
std::string ListUsersRequest::getRole()const
|
||||||
{
|
{
|
||||||
return role_;
|
return role_;
|
||||||
@@ -49,17 +38,6 @@ void ListUsersRequest::setRole(const std::string& role)
|
|||||||
setParameter("Role", role);
|
setParameter("Role", role);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListUsersRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ListUsersRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string ListUsersRequest::getSearchKey()const
|
std::string ListUsersRequest::getSearchKey()const
|
||||||
{
|
{
|
||||||
return searchKey_;
|
return searchKey_;
|
||||||
@@ -93,3 +71,25 @@ void ListUsersRequest::setPageNumber(int pageNumber)
|
|||||||
setParameter("PageNumber", std::to_string(pageNumber));
|
setParameter("PageNumber", std::to_string(pageNumber));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ListUsersRequest::getUserState()const
|
||||||
|
{
|
||||||
|
return userState_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListUsersRequest::setUserState(const std::string& userState)
|
||||||
|
{
|
||||||
|
userState_ = userState;
|
||||||
|
setParameter("UserState", userState);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListUsersRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListUsersRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ void ListUsersResult::parse(const std::string &payload)
|
|||||||
if(!valueUserListUser["UserId"].isNull())
|
if(!valueUserListUser["UserId"].isNull())
|
||||||
userListObject.userId = valueUserListUser["UserId"].asString();
|
userListObject.userId = valueUserListUser["UserId"].asString();
|
||||||
if(!valueUserListUser["Uid"].isNull())
|
if(!valueUserListUser["Uid"].isNull())
|
||||||
userListObject.uid = std::stol(valueUserListUser["Uid"].asString());
|
userListObject.uid = valueUserListUser["Uid"].asString();
|
||||||
if(!valueUserListUser["NickName"].isNull())
|
if(!valueUserListUser["NickName"].isNull())
|
||||||
userListObject.nickName = valueUserListUser["NickName"].asString();
|
userListObject.nickName = valueUserListUser["NickName"].asString();
|
||||||
if(!valueUserListUser["Mobile"].isNull())
|
if(!valueUserListUser["Mobile"].isNull())
|
||||||
userListObject.mobile = valueUserListUser["Mobile"].asString();
|
userListObject.mobile = valueUserListUser["Mobile"].asString();
|
||||||
if(!valueUserListUser["ParentUid"].isNull())
|
if(!valueUserListUser["ParentUid"].isNull())
|
||||||
userListObject.parentUid = std::stol(valueUserListUser["ParentUid"].asString());
|
userListObject.parentUid = valueUserListUser["ParentUid"].asString();
|
||||||
if(!valueUserListUser["State"].isNull())
|
if(!valueUserListUser["State"].isNull())
|
||||||
userListObject.state = valueUserListUser["State"].asString();
|
userListObject.state = valueUserListUser["State"].asString();
|
||||||
if(!valueUserListUser["LastLoginTime"].isNull())
|
if(!valueUserListUser["LastLoginTime"].isNull())
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user