Compare commits

...

9 Commits

Author SHA1 Message Date
sdk-team
1908e64fa6 Change Configuration. 2020-10-23 09:52:11 +00:00
sdk-team
8f6d6d4d1d Update DetectLungNodule. 2020-10-23 06:45:18 +00:00
sdk-team
e5ea19cdfb Support feedback. 2020-10-23 03:01:46 +00:00
sdk-team
55c7cdde91 Add Pipeline Member api. 2020-10-22 12:00:10 +00:00
sdk-team
836913a2a9 Update data API. 2020-10-22 11:03:56 +00:00
sdk-team
b34cb31a9a Update cert API. 2020-10-22 10:58:21 +00:00
sdk-team
8ef1e983c1 Update data API. 2020-10-22 10:57:52 +00:00
sdk-team
3845e06de3 DescribeAvailableResource support AcceptLanguage. 2020-10-21 12:31:56 +00:00
sdk-team
a349057ec2 Change Documentation configuration. 2020-10-21 10:10:32 +00:00
90 changed files with 4774 additions and 31 deletions

View File

@@ -1,3 +1,30 @@
2020-10-23 Version: patch
- Change Configuration.
2020-10-23 Version: patch
- Update DetectLungNodule.
2020-10-23 Version: patch
- Support feedback.
2020-10-22 Version: patch
- Add Pipeline Member api.
2020-10-22 Version: patch
- Update data API.
2020-10-22 Version: patch
- Update cert API.
2020-10-22 Version: patch
- Update data API.
2020-10-21 Version: patch
- DescribeAvailableResource support AcceptLanguage.
2020-10-21 Version: patch
- Change Documentation configuration.
2020-10-21 Version: patch
- Cloud Storage Gateway openapi sdk is released.

View File

@@ -113,6 +113,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainRegionDataResult.h
include/alibabacloud/dcdn/model/DescribeDcdnDomainStagingConfigRequest.h
@@ -155,6 +157,8 @@ set(dcdn_public_header_model
include/alibabacloud/dcdn/model/DescribeDcdnTagResourcesResult.h
include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnTopDomainsByFlowResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeRequest.h
include/alibabacloud/dcdn/model/DescribeDcdnUserBillTypeResult.h
include/alibabacloud/dcdn/model/DescribeDcdnUserDomainsRequest.h
@@ -302,6 +306,8 @@ set(dcdn_src
src/model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.cc
src/model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.cc
src/model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.cc
src/model/DescribeDcdnDomainRealTimeTrafficDataRequest.cc
src/model/DescribeDcdnDomainRealTimeTrafficDataResult.cc
src/model/DescribeDcdnDomainRegionDataRequest.cc
src/model/DescribeDcdnDomainRegionDataResult.cc
src/model/DescribeDcdnDomainStagingConfigRequest.cc
@@ -344,6 +350,8 @@ set(dcdn_src
src/model/DescribeDcdnTagResourcesResult.cc
src/model/DescribeDcdnTopDomainsByFlowRequest.cc
src/model/DescribeDcdnTopDomainsByFlowResult.cc
src/model/DescribeDcdnUserBillHistoryRequest.cc
src/model/DescribeDcdnUserBillHistoryResult.cc
src/model/DescribeDcdnUserBillTypeRequest.cc
src/model/DescribeDcdnUserBillTypeResult.cc
src/model/DescribeDcdnUserDomainsRequest.cc

View File

@@ -114,6 +114,8 @@
#include "model/DescribeDcdnDomainRealTimeSrcHttpCodeDataResult.h"
#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataRequest.h"
#include "model/DescribeDcdnDomainRealTimeSrcTrafficDataResult.h"
#include "model/DescribeDcdnDomainRealTimeTrafficDataRequest.h"
#include "model/DescribeDcdnDomainRealTimeTrafficDataResult.h"
#include "model/DescribeDcdnDomainRegionDataRequest.h"
#include "model/DescribeDcdnDomainRegionDataResult.h"
#include "model/DescribeDcdnDomainStagingConfigRequest.h"
@@ -156,6 +158,8 @@
#include "model/DescribeDcdnTagResourcesResult.h"
#include "model/DescribeDcdnTopDomainsByFlowRequest.h"
#include "model/DescribeDcdnTopDomainsByFlowResult.h"
#include "model/DescribeDcdnUserBillHistoryRequest.h"
#include "model/DescribeDcdnUserBillHistoryResult.h"
#include "model/DescribeDcdnUserBillTypeRequest.h"
#include "model/DescribeDcdnUserBillTypeResult.h"
#include "model/DescribeDcdnUserDomainsRequest.h"
@@ -355,6 +359,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDcdnDomainRealTimeSrcTrafficDataResult> DescribeDcdnDomainRealTimeSrcTrafficDataOutcome;
typedef std::future<DescribeDcdnDomainRealTimeSrcTrafficDataOutcome> DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest&, const DescribeDcdnDomainRealTimeSrcTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnDomainRealTimeTrafficDataResult> DescribeDcdnDomainRealTimeTrafficDataOutcome;
typedef std::future<DescribeDcdnDomainRealTimeTrafficDataOutcome> DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRealTimeTrafficDataRequest&, const DescribeDcdnDomainRealTimeTrafficDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRealTimeTrafficDataAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnDomainRegionDataResult> DescribeDcdnDomainRegionDataOutcome;
typedef std::future<DescribeDcdnDomainRegionDataOutcome> DescribeDcdnDomainRegionDataOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnDomainRegionDataRequest&, const DescribeDcdnDomainRegionDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnDomainRegionDataAsyncHandler;
@@ -418,6 +425,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDcdnTopDomainsByFlowResult> DescribeDcdnTopDomainsByFlowOutcome;
typedef std::future<DescribeDcdnTopDomainsByFlowOutcome> DescribeDcdnTopDomainsByFlowOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnTopDomainsByFlowRequest&, const DescribeDcdnTopDomainsByFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnTopDomainsByFlowAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnUserBillHistoryResult> DescribeDcdnUserBillHistoryOutcome;
typedef std::future<DescribeDcdnUserBillHistoryOutcome> DescribeDcdnUserBillHistoryOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserBillHistoryRequest&, const DescribeDcdnUserBillHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserBillHistoryAsyncHandler;
typedef Outcome<Error, Model::DescribeDcdnUserBillTypeResult> DescribeDcdnUserBillTypeOutcome;
typedef std::future<DescribeDcdnUserBillTypeOutcome> DescribeDcdnUserBillTypeOutcomeCallable;
typedef std::function<void(const DcdnClient*, const Model::DescribeDcdnUserBillTypeRequest&, const DescribeDcdnUserBillTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDcdnUserBillTypeAsyncHandler;
@@ -639,6 +649,9 @@ namespace AlibabaCloud
DescribeDcdnDomainRealTimeSrcTrafficDataOutcome describeDcdnDomainRealTimeSrcTrafficData(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest &request)const;
void describeDcdnDomainRealTimeSrcTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request, const DescribeDcdnDomainRealTimeSrcTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable describeDcdnDomainRealTimeSrcTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeSrcTrafficDataRequest& request) const;
DescribeDcdnDomainRealTimeTrafficDataOutcome describeDcdnDomainRealTimeTrafficData(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest &request)const;
void describeDcdnDomainRealTimeTrafficDataAsync(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest& request, const DescribeDcdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable describeDcdnDomainRealTimeTrafficDataCallable(const Model::DescribeDcdnDomainRealTimeTrafficDataRequest& request) const;
DescribeDcdnDomainRegionDataOutcome describeDcdnDomainRegionData(const Model::DescribeDcdnDomainRegionDataRequest &request)const;
void describeDcdnDomainRegionDataAsync(const Model::DescribeDcdnDomainRegionDataRequest& request, const DescribeDcdnDomainRegionDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnDomainRegionDataOutcomeCallable describeDcdnDomainRegionDataCallable(const Model::DescribeDcdnDomainRegionDataRequest& request) const;
@@ -702,6 +715,9 @@ namespace AlibabaCloud
DescribeDcdnTopDomainsByFlowOutcome describeDcdnTopDomainsByFlow(const Model::DescribeDcdnTopDomainsByFlowRequest &request)const;
void describeDcdnTopDomainsByFlowAsync(const Model::DescribeDcdnTopDomainsByFlowRequest& request, const DescribeDcdnTopDomainsByFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnTopDomainsByFlowOutcomeCallable describeDcdnTopDomainsByFlowCallable(const Model::DescribeDcdnTopDomainsByFlowRequest& request) const;
DescribeDcdnUserBillHistoryOutcome describeDcdnUserBillHistory(const Model::DescribeDcdnUserBillHistoryRequest &request)const;
void describeDcdnUserBillHistoryAsync(const Model::DescribeDcdnUserBillHistoryRequest& request, const DescribeDcdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnUserBillHistoryOutcomeCallable describeDcdnUserBillHistoryCallable(const Model::DescribeDcdnUserBillHistoryRequest& request) const;
DescribeDcdnUserBillTypeOutcome describeDcdnUserBillType(const Model::DescribeDcdnUserBillTypeRequest &request)const;
void describeDcdnUserBillTypeAsync(const Model::DescribeDcdnUserBillTypeRequest& request, const DescribeDcdnUserBillTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDcdnUserBillTypeOutcomeCallable describeDcdnUserBillTypeCallable(const Model::DescribeDcdnUserBillTypeRequest& request) const;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeTrafficDataRequest : public RpcServiceRequest
{
public:
DescribeDcdnDomainRealTimeTrafficDataRequest();
~DescribeDcdnDomainRealTimeTrafficDataRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string startTime_;
std::string domainName_;
std::string endTime_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATAREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* 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_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnDomainRealTimeTrafficDataResult : public ServiceResult
{
public:
struct DataModule
{
std::string value;
std::string timeStamp;
};
DescribeDcdnDomainRealTimeTrafficDataResult();
explicit DescribeDcdnDomainRealTimeTrafficDataResult(const std::string &payload);
~DescribeDcdnDomainRealTimeTrafficDataResult();
std::string getEndTime()const;
std::vector<DataModule> getRealTimeTrafficDataPerInterval()const;
std::string getDomainName()const;
std::string getStartTime()const;
std::string getDataInterval()const;
protected:
void parse(const std::string &payload);
private:
std::string endTime_;
std::vector<DataModule> realTimeTrafficDataPerInterval_;
std::string domainName_;
std::string startTime_;
std::string dataInterval_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNDOMAINREALTIMETRAFFICDATARESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserBillHistoryRequest : public RpcServiceRequest
{
public:
DescribeDcdnUserBillHistoryRequest();
~DescribeDcdnUserBillHistoryRequest();
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string startTime_;
std::string endTime_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_
#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dcdn/DcdnExport.h>
namespace AlibabaCloud
{
namespace Dcdn
{
namespace Model
{
class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnUserBillHistoryResult : public ServiceResult
{
public:
struct BillHistoryDataItem
{
struct BillingDataItem
{
std::string chargeType;
float bandwidth;
std::string cdnRegion;
float count;
float flow;
};
std::string billType;
std::string billTime;
std::vector<BillHistoryDataItem::BillingDataItem> billingData;
std::string dimension;
};
DescribeDcdnUserBillHistoryResult();
explicit DescribeDcdnUserBillHistoryResult(const std::string &payload);
~DescribeDcdnUserBillHistoryResult();
std::vector<BillHistoryDataItem> getBillHistoryData()const;
protected:
void parse(const std::string &payload);
private:
std::vector<BillHistoryDataItem> billHistoryData_;
};
}
}
}
#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNUSERBILLHISTORYRESULT_H_

View File

@@ -1707,6 +1707,42 @@ DcdnClient::DescribeDcdnDomainRealTimeSrcTrafficDataOutcomeCallable DcdnClient::
return task->get_future();
}
DcdnClient::DescribeDcdnDomainRealTimeTrafficDataOutcome DcdnClient::describeDcdnDomainRealTimeTrafficData(const DescribeDcdnDomainRealTimeTrafficDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnDomainRealTimeTrafficDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnDomainRealTimeTrafficDataOutcome(DescribeDcdnDomainRealTimeTrafficDataResult(outcome.result()));
else
return DescribeDcdnDomainRealTimeTrafficDataOutcome(outcome.error());
}
void DcdnClient::describeDcdnDomainRealTimeTrafficDataAsync(const DescribeDcdnDomainRealTimeTrafficDataRequest& request, const DescribeDcdnDomainRealTimeTrafficDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnDomainRealTimeTrafficData(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnDomainRealTimeTrafficDataOutcomeCallable DcdnClient::describeDcdnDomainRealTimeTrafficDataCallable(const DescribeDcdnDomainRealTimeTrafficDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnDomainRealTimeTrafficDataOutcome()>>(
[this, request]()
{
return this->describeDcdnDomainRealTimeTrafficData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnDomainRegionDataOutcome DcdnClient::describeDcdnDomainRegionData(const DescribeDcdnDomainRegionDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2463,6 +2499,42 @@ DcdnClient::DescribeDcdnTopDomainsByFlowOutcomeCallable DcdnClient::describeDcdn
return task->get_future();
}
DcdnClient::DescribeDcdnUserBillHistoryOutcome DcdnClient::describeDcdnUserBillHistory(const DescribeDcdnUserBillHistoryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDcdnUserBillHistoryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDcdnUserBillHistoryOutcome(DescribeDcdnUserBillHistoryResult(outcome.result()));
else
return DescribeDcdnUserBillHistoryOutcome(outcome.error());
}
void DcdnClient::describeDcdnUserBillHistoryAsync(const DescribeDcdnUserBillHistoryRequest& request, const DescribeDcdnUserBillHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDcdnUserBillHistory(request), context);
};
asyncExecute(new Runnable(fn));
}
DcdnClient::DescribeDcdnUserBillHistoryOutcomeCallable DcdnClient::describeDcdnUserBillHistoryCallable(const DescribeDcdnUserBillHistoryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDcdnUserBillHistoryOutcome()>>(
[this, request]()
{
return this->describeDcdnUserBillHistory(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DcdnClient::DescribeDcdnUserBillTypeOutcome DcdnClient::describeDcdnUserBillType(const DescribeDcdnUserBillTypeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dcdn/model/DescribeDcdnDomainRealTimeTrafficDataRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnDomainRealTimeTrafficDataRequest;
DescribeDcdnDomainRealTimeTrafficDataRequest::DescribeDcdnDomainRealTimeTrafficDataRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnDomainRealTimeTrafficData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnDomainRealTimeTrafficDataRequest::~DescribeDcdnDomainRealTimeTrafficDataRequest()
{}
std::string DescribeDcdnDomainRealTimeTrafficDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDcdnDomainRealTimeTrafficDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDcdnDomainRealTimeTrafficDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDcdnDomainRealTimeTrafficDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDcdnDomainRealTimeTrafficDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDcdnDomainRealTimeTrafficDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDcdnDomainRealTimeTrafficDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnDomainRealTimeTrafficDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryRequest.h>
using AlibabaCloud::Dcdn::Model::DescribeDcdnUserBillHistoryRequest;
DescribeDcdnUserBillHistoryRequest::DescribeDcdnUserBillHistoryRequest() :
RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnUserBillHistory")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDcdnUserBillHistoryRequest::~DescribeDcdnUserBillHistoryRequest()
{}
std::string DescribeDcdnUserBillHistoryRequest::getStartTime()const
{
return startTime_;
}
void DescribeDcdnUserBillHistoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDcdnUserBillHistoryRequest::getEndTime()const
{
return endTime_;
}
void DescribeDcdnUserBillHistoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDcdnUserBillHistoryRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDcdnUserBillHistoryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dcdn/model/DescribeDcdnUserBillHistoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dcdn;
using namespace AlibabaCloud::Dcdn::Model;
DescribeDcdnUserBillHistoryResult::DescribeDcdnUserBillHistoryResult() :
ServiceResult()
{}
DescribeDcdnUserBillHistoryResult::DescribeDcdnUserBillHistoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDcdnUserBillHistoryResult::~DescribeDcdnUserBillHistoryResult()
{}
void DescribeDcdnUserBillHistoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBillHistoryDataNode = value["BillHistoryData"]["BillHistoryDataItem"];
for (auto valueBillHistoryDataBillHistoryDataItem : allBillHistoryDataNode)
{
BillHistoryDataItem billHistoryDataObject;
if(!valueBillHistoryDataBillHistoryDataItem["Dimension"].isNull())
billHistoryDataObject.dimension = valueBillHistoryDataBillHistoryDataItem["Dimension"].asString();
if(!valueBillHistoryDataBillHistoryDataItem["BillType"].isNull())
billHistoryDataObject.billType = valueBillHistoryDataBillHistoryDataItem["BillType"].asString();
if(!valueBillHistoryDataBillHistoryDataItem["BillTime"].isNull())
billHistoryDataObject.billTime = valueBillHistoryDataBillHistoryDataItem["BillTime"].asString();
auto allBillingDataNode = allBillHistoryDataNode["BillingData"]["BillingDataItem"];
for (auto allBillHistoryDataNodeBillingDataBillingDataItem : allBillingDataNode)
{
BillHistoryDataItem::BillingDataItem billingDataObject;
if(!allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].isNull())
billingDataObject.chargeType = allBillHistoryDataNodeBillingDataBillingDataItem["ChargeType"].asString();
if(!allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].isNull())
billingDataObject.cdnRegion = allBillHistoryDataNodeBillingDataBillingDataItem["CdnRegion"].asString();
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].isNull())
billingDataObject.bandwidth = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Bandwidth"].asString());
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].isNull())
billingDataObject.flow = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Flow"].asString());
if(!allBillHistoryDataNodeBillingDataBillingDataItem["Count"].isNull())
billingDataObject.count = std::stof(allBillHistoryDataNodeBillingDataBillingDataItem["Count"].asString());
billHistoryDataObject.billingData.push_back(billingDataObject);
}
billHistoryData_.push_back(billHistoryDataObject);
}
}
std::vector<DescribeDcdnUserBillHistoryResult::BillHistoryDataItem> DescribeDcdnUserBillHistoryResult::getBillHistoryData()const
{
return billHistoryData_;
}

View File

@@ -51,6 +51,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectSprintResult.h
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskRequest.h
include/alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskResult.h
include/alibabacloud/devops-rdc/model/DeletePipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/DeletePipelineMemberResult.h
include/alibabacloud/devops-rdc/model/ExecutePipelineRequest.h
include/alibabacloud/devops-rdc/model/ExecutePipelineResult.h
include/alibabacloud/devops-rdc/model/GetDevopsOrganizationMembersRequest.h
@@ -79,6 +81,8 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/GetUserByAliyunUidResult.h
include/alibabacloud/devops-rdc/model/InsertDevopsUserRequest.h
include/alibabacloud/devops-rdc/model/InsertDevopsUserResult.h
include/alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/InsertPipelineMemberResult.h
include/alibabacloud/devops-rdc/model/InsertProjectMembersRequest.h
include/alibabacloud/devops-rdc/model/InsertProjectMembersResult.h
include/alibabacloud/devops-rdc/model/ListCredentialsRequest.h
@@ -99,12 +103,16 @@ set(devops-rdc_public_header_model
include/alibabacloud/devops-rdc/model/ListServiceConnectionsResult.h
include/alibabacloud/devops-rdc/model/ListUserOrganizationRequest.h
include/alibabacloud/devops-rdc/model/ListUserOrganizationResult.h
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h
include/alibabacloud/devops-rdc/model/TransferPipelineOwnerResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintResult.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskRequest.h
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h )
include/alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h
include/alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h
include/alibabacloud/devops-rdc/model/UpdatePipelineMemberResult.h )
set(devops-rdc_src
src/Devops-rdcClient.cc
@@ -138,6 +146,8 @@ set(devops-rdc_src
src/model/DeleteDevopsProjectSprintResult.cc
src/model/DeleteDevopsProjectTaskRequest.cc
src/model/DeleteDevopsProjectTaskResult.cc
src/model/DeletePipelineMemberRequest.cc
src/model/DeletePipelineMemberResult.cc
src/model/ExecutePipelineRequest.cc
src/model/ExecutePipelineResult.cc
src/model/GetDevopsOrganizationMembersRequest.cc
@@ -166,6 +176,8 @@ set(devops-rdc_src
src/model/GetUserByAliyunUidResult.cc
src/model/InsertDevopsUserRequest.cc
src/model/InsertDevopsUserResult.cc
src/model/InsertPipelineMemberRequest.cc
src/model/InsertPipelineMemberResult.cc
src/model/InsertProjectMembersRequest.cc
src/model/InsertProjectMembersResult.cc
src/model/ListCredentialsRequest.cc
@@ -186,12 +198,16 @@ set(devops-rdc_src
src/model/ListServiceConnectionsResult.cc
src/model/ListUserOrganizationRequest.cc
src/model/ListUserOrganizationResult.cc
src/model/TransferPipelineOwnerRequest.cc
src/model/TransferPipelineOwnerResult.cc
src/model/UpdateDevopsProjectRequest.cc
src/model/UpdateDevopsProjectResult.cc
src/model/UpdateDevopsProjectSprintRequest.cc
src/model/UpdateDevopsProjectSprintResult.cc
src/model/UpdateDevopsProjectTaskRequest.cc
src/model/UpdateDevopsProjectTaskResult.cc )
src/model/UpdateDevopsProjectTaskResult.cc
src/model/UpdatePipelineMemberRequest.cc
src/model/UpdatePipelineMemberResult.cc )
add_library(devops-rdc ${LIB_TYPE}
${devops-rdc_public_header}

View File

@@ -52,6 +52,8 @@
#include "model/DeleteDevopsProjectSprintResult.h"
#include "model/DeleteDevopsProjectTaskRequest.h"
#include "model/DeleteDevopsProjectTaskResult.h"
#include "model/DeletePipelineMemberRequest.h"
#include "model/DeletePipelineMemberResult.h"
#include "model/ExecutePipelineRequest.h"
#include "model/ExecutePipelineResult.h"
#include "model/GetDevopsOrganizationMembersRequest.h"
@@ -80,6 +82,8 @@
#include "model/GetUserByAliyunUidResult.h"
#include "model/InsertDevopsUserRequest.h"
#include "model/InsertDevopsUserResult.h"
#include "model/InsertPipelineMemberRequest.h"
#include "model/InsertPipelineMemberResult.h"
#include "model/InsertProjectMembersRequest.h"
#include "model/InsertProjectMembersResult.h"
#include "model/ListCredentialsRequest.h"
@@ -100,12 +104,16 @@
#include "model/ListServiceConnectionsResult.h"
#include "model/ListUserOrganizationRequest.h"
#include "model/ListUserOrganizationResult.h"
#include "model/TransferPipelineOwnerRequest.h"
#include "model/TransferPipelineOwnerResult.h"
#include "model/UpdateDevopsProjectRequest.h"
#include "model/UpdateDevopsProjectResult.h"
#include "model/UpdateDevopsProjectSprintRequest.h"
#include "model/UpdateDevopsProjectSprintResult.h"
#include "model/UpdateDevopsProjectTaskRequest.h"
#include "model/UpdateDevopsProjectTaskResult.h"
#include "model/UpdatePipelineMemberRequest.h"
#include "model/UpdatePipelineMemberResult.h"
namespace AlibabaCloud
@@ -160,6 +168,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteDevopsProjectTaskResult> DeleteDevopsProjectTaskOutcome;
typedef std::future<DeleteDevopsProjectTaskOutcome> DeleteDevopsProjectTaskOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::DeleteDevopsProjectTaskRequest&, const DeleteDevopsProjectTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDevopsProjectTaskAsyncHandler;
typedef Outcome<Error, Model::DeletePipelineMemberResult> DeletePipelineMemberOutcome;
typedef std::future<DeletePipelineMemberOutcome> DeletePipelineMemberOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::DeletePipelineMemberRequest&, const DeletePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePipelineMemberAsyncHandler;
typedef Outcome<Error, Model::ExecutePipelineResult> ExecutePipelineOutcome;
typedef std::future<ExecutePipelineOutcome> ExecutePipelineOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ExecutePipelineRequest&, const ExecutePipelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecutePipelineAsyncHandler;
@@ -202,6 +213,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InsertDevopsUserResult> InsertDevopsUserOutcome;
typedef std::future<InsertDevopsUserOutcome> InsertDevopsUserOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertDevopsUserRequest&, const InsertDevopsUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertDevopsUserAsyncHandler;
typedef Outcome<Error, Model::InsertPipelineMemberResult> InsertPipelineMemberOutcome;
typedef std::future<InsertPipelineMemberOutcome> InsertPipelineMemberOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertPipelineMemberRequest&, const InsertPipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertPipelineMemberAsyncHandler;
typedef Outcome<Error, Model::InsertProjectMembersResult> InsertProjectMembersOutcome;
typedef std::future<InsertProjectMembersOutcome> InsertProjectMembersOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::InsertProjectMembersRequest&, const InsertProjectMembersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InsertProjectMembersAsyncHandler;
@@ -232,6 +246,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListUserOrganizationResult> ListUserOrganizationOutcome;
typedef std::future<ListUserOrganizationOutcome> ListUserOrganizationOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::ListUserOrganizationRequest&, const ListUserOrganizationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserOrganizationAsyncHandler;
typedef Outcome<Error, Model::TransferPipelineOwnerResult> TransferPipelineOwnerOutcome;
typedef std::future<TransferPipelineOwnerOutcome> TransferPipelineOwnerOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::TransferPipelineOwnerRequest&, const TransferPipelineOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferPipelineOwnerAsyncHandler;
typedef Outcome<Error, Model::UpdateDevopsProjectResult> UpdateDevopsProjectOutcome;
typedef std::future<UpdateDevopsProjectOutcome> UpdateDevopsProjectOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectRequest&, const UpdateDevopsProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectAsyncHandler;
@@ -241,6 +258,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateDevopsProjectTaskResult> UpdateDevopsProjectTaskOutcome;
typedef std::future<UpdateDevopsProjectTaskOutcome> UpdateDevopsProjectTaskOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateDevopsProjectTaskRequest&, const UpdateDevopsProjectTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDevopsProjectTaskAsyncHandler;
typedef Outcome<Error, Model::UpdatePipelineMemberResult> UpdatePipelineMemberOutcome;
typedef std::future<UpdatePipelineMemberOutcome> UpdatePipelineMemberOutcomeCallable;
typedef std::function<void(const Devops_rdcClient*, const Model::UpdatePipelineMemberRequest&, const UpdatePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePipelineMemberAsyncHandler;
Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration);
Devops_rdcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -291,6 +311,9 @@ namespace AlibabaCloud
DeleteDevopsProjectTaskOutcome deleteDevopsProjectTask(const Model::DeleteDevopsProjectTaskRequest &request)const;
void deleteDevopsProjectTaskAsync(const Model::DeleteDevopsProjectTaskRequest& request, const DeleteDevopsProjectTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDevopsProjectTaskOutcomeCallable deleteDevopsProjectTaskCallable(const Model::DeleteDevopsProjectTaskRequest& request) const;
DeletePipelineMemberOutcome deletePipelineMember(const Model::DeletePipelineMemberRequest &request)const;
void deletePipelineMemberAsync(const Model::DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePipelineMemberOutcomeCallable deletePipelineMemberCallable(const Model::DeletePipelineMemberRequest& request) const;
ExecutePipelineOutcome executePipeline(const Model::ExecutePipelineRequest &request)const;
void executePipelineAsync(const Model::ExecutePipelineRequest& request, const ExecutePipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecutePipelineOutcomeCallable executePipelineCallable(const Model::ExecutePipelineRequest& request) const;
@@ -333,6 +356,9 @@ namespace AlibabaCloud
InsertDevopsUserOutcome insertDevopsUser(const Model::InsertDevopsUserRequest &request)const;
void insertDevopsUserAsync(const Model::InsertDevopsUserRequest& request, const InsertDevopsUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertDevopsUserOutcomeCallable insertDevopsUserCallable(const Model::InsertDevopsUserRequest& request) const;
InsertPipelineMemberOutcome insertPipelineMember(const Model::InsertPipelineMemberRequest &request)const;
void insertPipelineMemberAsync(const Model::InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertPipelineMemberOutcomeCallable insertPipelineMemberCallable(const Model::InsertPipelineMemberRequest& request) const;
InsertProjectMembersOutcome insertProjectMembers(const Model::InsertProjectMembersRequest &request)const;
void insertProjectMembersAsync(const Model::InsertProjectMembersRequest& request, const InsertProjectMembersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InsertProjectMembersOutcomeCallable insertProjectMembersCallable(const Model::InsertProjectMembersRequest& request) const;
@@ -363,6 +389,9 @@ namespace AlibabaCloud
ListUserOrganizationOutcome listUserOrganization(const Model::ListUserOrganizationRequest &request)const;
void listUserOrganizationAsync(const Model::ListUserOrganizationRequest& request, const ListUserOrganizationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserOrganizationOutcomeCallable listUserOrganizationCallable(const Model::ListUserOrganizationRequest& request) const;
TransferPipelineOwnerOutcome transferPipelineOwner(const Model::TransferPipelineOwnerRequest &request)const;
void transferPipelineOwnerAsync(const Model::TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransferPipelineOwnerOutcomeCallable transferPipelineOwnerCallable(const Model::TransferPipelineOwnerRequest& request) const;
UpdateDevopsProjectOutcome updateDevopsProject(const Model::UpdateDevopsProjectRequest &request)const;
void updateDevopsProjectAsync(const Model::UpdateDevopsProjectRequest& request, const UpdateDevopsProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDevopsProjectOutcomeCallable updateDevopsProjectCallable(const Model::UpdateDevopsProjectRequest& request) const;
@@ -372,6 +401,9 @@ namespace AlibabaCloud
UpdateDevopsProjectTaskOutcome updateDevopsProjectTask(const Model::UpdateDevopsProjectTaskRequest &request)const;
void updateDevopsProjectTaskAsync(const Model::UpdateDevopsProjectTaskRequest& request, const UpdateDevopsProjectTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDevopsProjectTaskOutcomeCallable updateDevopsProjectTaskCallable(const Model::UpdateDevopsProjectTaskRequest& request) const;
UpdatePipelineMemberOutcome updatePipelineMember(const Model::UpdatePipelineMemberRequest &request)const;
void updatePipelineMemberAsync(const Model::UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdatePipelineMemberOutcomeCallable updatePipelineMemberCallable(const Model::UpdatePipelineMemberRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT DeletePipelineMemberRequest : public RpcServiceRequest
{
public:
DeletePipelineMemberRequest();
~DeletePipelineMemberRequest();
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string userPk_;
std::string userId_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_DELETEPIPELINEMEMBERREQUEST_H_

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT InsertPipelineMemberRequest : public RpcServiceRequest
{
public:
InsertPipelineMemberRequest();
~InsertPipelineMemberRequest();
std::string getRoleName()const;
void setRoleName(const std::string& roleName);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string roleName_;
std::string userPk_;
std::string userId_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_INSERTPIPELINEMEMBERREQUEST_H_

View File

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

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT TransferPipelineOwnerRequest : public RpcServiceRequest
{
public:
TransferPipelineOwnerRequest();
~TransferPipelineOwnerRequest();
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
std::string getNewOwnerId()const;
void setNewOwnerId(const std::string& newOwnerId);
private:
std::string userPk_;
std::string orgId_;
long pipelineId_;
std::string newOwnerId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_TRANSFERPIPELINEOWNERREQUEST_H_

View File

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

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
namespace AlibabaCloud
{
namespace Devops_rdc
{
namespace Model
{
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdatePipelineMemberRequest : public RpcServiceRequest
{
public:
UpdatePipelineMemberRequest();
~UpdatePipelineMemberRequest();
std::string getRoleName()const;
void setRoleName(const std::string& roleName);
std::string getUserPk()const;
void setUserPk(const std::string& userPk);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
long getPipelineId()const;
void setPipelineId(long pipelineId);
private:
std::string roleName_;
std::string userPk_;
std::string userId_;
std::string orgId_;
long pipelineId_;
};
}
}
}
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATEPIPELINEMEMBERREQUEST_H_

View File

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

View File

@@ -591,6 +591,42 @@ Devops_rdcClient::DeleteDevopsProjectTaskOutcomeCallable Devops_rdcClient::delet
return task->get_future();
}
Devops_rdcClient::DeletePipelineMemberOutcome Devops_rdcClient::deletePipelineMember(const DeletePipelineMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeletePipelineMemberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeletePipelineMemberOutcome(DeletePipelineMemberResult(outcome.result()));
else
return DeletePipelineMemberOutcome(outcome.error());
}
void Devops_rdcClient::deletePipelineMemberAsync(const DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deletePipelineMember(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::DeletePipelineMemberOutcomeCallable Devops_rdcClient::deletePipelineMemberCallable(const DeletePipelineMemberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeletePipelineMemberOutcome()>>(
[this, request]()
{
return this->deletePipelineMember(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::ExecutePipelineOutcome Devops_rdcClient::executePipeline(const ExecutePipelineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1131,42 @@ Devops_rdcClient::InsertDevopsUserOutcomeCallable Devops_rdcClient::insertDevops
return task->get_future();
}
Devops_rdcClient::InsertPipelineMemberOutcome Devops_rdcClient::insertPipelineMember(const InsertPipelineMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InsertPipelineMemberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InsertPipelineMemberOutcome(InsertPipelineMemberResult(outcome.result()));
else
return InsertPipelineMemberOutcome(outcome.error());
}
void Devops_rdcClient::insertPipelineMemberAsync(const InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, insertPipelineMember(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::InsertPipelineMemberOutcomeCallable Devops_rdcClient::insertPipelineMemberCallable(const InsertPipelineMemberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InsertPipelineMemberOutcome()>>(
[this, request]()
{
return this->insertPipelineMember(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::InsertProjectMembersOutcome Devops_rdcClient::insertProjectMembers(const InsertProjectMembersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1455,6 +1527,42 @@ Devops_rdcClient::ListUserOrganizationOutcomeCallable Devops_rdcClient::listUser
return task->get_future();
}
Devops_rdcClient::TransferPipelineOwnerOutcome Devops_rdcClient::transferPipelineOwner(const TransferPipelineOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TransferPipelineOwnerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TransferPipelineOwnerOutcome(TransferPipelineOwnerResult(outcome.result()));
else
return TransferPipelineOwnerOutcome(outcome.error());
}
void Devops_rdcClient::transferPipelineOwnerAsync(const TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, transferPipelineOwner(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::TransferPipelineOwnerOutcomeCallable Devops_rdcClient::transferPipelineOwnerCallable(const TransferPipelineOwnerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TransferPipelineOwnerOutcome()>>(
[this, request]()
{
return this->transferPipelineOwner(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
Devops_rdcClient::UpdateDevopsProjectOutcome Devops_rdcClient::updateDevopsProject(const UpdateDevopsProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1563,3 +1671,39 @@ Devops_rdcClient::UpdateDevopsProjectTaskOutcomeCallable Devops_rdcClient::updat
return task->get_future();
}
Devops_rdcClient::UpdatePipelineMemberOutcome Devops_rdcClient::updatePipelineMember(const UpdatePipelineMemberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdatePipelineMemberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdatePipelineMemberOutcome(UpdatePipelineMemberResult(outcome.result()));
else
return UpdatePipelineMemberOutcome(outcome.error());
}
void Devops_rdcClient::updatePipelineMemberAsync(const UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updatePipelineMember(request), context);
};
asyncExecute(new Runnable(fn));
}
Devops_rdcClient::UpdatePipelineMemberOutcomeCallable Devops_rdcClient::updatePipelineMemberCallable(const UpdatePipelineMemberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdatePipelineMemberOutcome()>>(
[this, request]()
{
return this->updatePipelineMember(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeletePipelineMemberRequest.h>
using AlibabaCloud::Devops_rdc::Model::DeletePipelineMemberRequest;
DeletePipelineMemberRequest::DeletePipelineMemberRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "DeletePipelineMember")
{
setMethod(HttpRequest::Method::Post);
}
DeletePipelineMemberRequest::~DeletePipelineMemberRequest()
{}
std::string DeletePipelineMemberRequest::getUserPk()const
{
return userPk_;
}
void DeletePipelineMemberRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string DeletePipelineMemberRequest::getUserId()const
{
return userId_;
}
void DeletePipelineMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string DeletePipelineMemberRequest::getOrgId()const
{
return orgId_;
}
void DeletePipelineMemberRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setParameter("OrgId", orgId);
}
long DeletePipelineMemberRequest::getPipelineId()const
{
return pipelineId_;
}
void DeletePipelineMemberRequest::setPipelineId(long pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", std::to_string(pipelineId));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeletePipelineMemberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeletePipelineMemberResult::DeletePipelineMemberResult() :
ServiceResult()
{}
DeletePipelineMemberResult::DeletePipelineMemberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePipelineMemberResult::~DeletePipelineMemberResult()
{}
void DeletePipelineMemberResult::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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Object"].isNull())
object_ = value["Object"].asString() == "true";
}
bool DeletePipelineMemberResult::getObject()const
{
return object_;
}
std::string DeletePipelineMemberResult::getErrorCode()const
{
return errorCode_;
}
std::string DeletePipelineMemberResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeletePipelineMemberResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h>
using AlibabaCloud::Devops_rdc::Model::InsertPipelineMemberRequest;
InsertPipelineMemberRequest::InsertPipelineMemberRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "InsertPipelineMember")
{
setMethod(HttpRequest::Method::Post);
}
InsertPipelineMemberRequest::~InsertPipelineMemberRequest()
{}
std::string InsertPipelineMemberRequest::getRoleName()const
{
return roleName_;
}
void InsertPipelineMemberRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setBodyParameter("RoleName", roleName);
}
std::string InsertPipelineMemberRequest::getUserPk()const
{
return userPk_;
}
void InsertPipelineMemberRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string InsertPipelineMemberRequest::getUserId()const
{
return userId_;
}
void InsertPipelineMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string InsertPipelineMemberRequest::getOrgId()const
{
return orgId_;
}
void InsertPipelineMemberRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setParameter("OrgId", orgId);
}
long InsertPipelineMemberRequest::getPipelineId()const
{
return pipelineId_;
}
void InsertPipelineMemberRequest::setPipelineId(long pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", std::to_string(pipelineId));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/InsertPipelineMemberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
InsertPipelineMemberResult::InsertPipelineMemberResult() :
ServiceResult()
{}
InsertPipelineMemberResult::InsertPipelineMemberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InsertPipelineMemberResult::~InsertPipelineMemberResult()
{}
void InsertPipelineMemberResult::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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Object"].isNull())
object_ = value["Object"].asString() == "true";
}
bool InsertPipelineMemberResult::getObject()const
{
return object_;
}
std::string InsertPipelineMemberResult::getErrorCode()const
{
return errorCode_;
}
std::string InsertPipelineMemberResult::getErrorMessage()const
{
return errorMessage_;
}
bool InsertPipelineMemberResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h>
using AlibabaCloud::Devops_rdc::Model::TransferPipelineOwnerRequest;
TransferPipelineOwnerRequest::TransferPipelineOwnerRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "TransferPipelineOwner")
{
setMethod(HttpRequest::Method::Post);
}
TransferPipelineOwnerRequest::~TransferPipelineOwnerRequest()
{}
std::string TransferPipelineOwnerRequest::getUserPk()const
{
return userPk_;
}
void TransferPipelineOwnerRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string TransferPipelineOwnerRequest::getOrgId()const
{
return orgId_;
}
void TransferPipelineOwnerRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setParameter("OrgId", orgId);
}
long TransferPipelineOwnerRequest::getPipelineId()const
{
return pipelineId_;
}
void TransferPipelineOwnerRequest::setPipelineId(long pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", std::to_string(pipelineId));
}
std::string TransferPipelineOwnerRequest::getNewOwnerId()const
{
return newOwnerId_;
}
void TransferPipelineOwnerRequest::setNewOwnerId(const std::string& newOwnerId)
{
newOwnerId_ = newOwnerId;
setBodyParameter("NewOwnerId", newOwnerId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/TransferPipelineOwnerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
TransferPipelineOwnerResult::TransferPipelineOwnerResult() :
ServiceResult()
{}
TransferPipelineOwnerResult::TransferPipelineOwnerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TransferPipelineOwnerResult::~TransferPipelineOwnerResult()
{}
void TransferPipelineOwnerResult::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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Object"].isNull())
object_ = value["Object"].asString();
}
std::string TransferPipelineOwnerResult::getObject()const
{
return object_;
}
std::string TransferPipelineOwnerResult::getErrorCode()const
{
return errorCode_;
}
std::string TransferPipelineOwnerResult::getErrorMessage()const
{
return errorMessage_;
}
bool TransferPipelineOwnerResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h>
using AlibabaCloud::Devops_rdc::Model::UpdatePipelineMemberRequest;
UpdatePipelineMemberRequest::UpdatePipelineMemberRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdatePipelineMember")
{
setMethod(HttpRequest::Method::Post);
}
UpdatePipelineMemberRequest::~UpdatePipelineMemberRequest()
{}
std::string UpdatePipelineMemberRequest::getRoleName()const
{
return roleName_;
}
void UpdatePipelineMemberRequest::setRoleName(const std::string& roleName)
{
roleName_ = roleName;
setBodyParameter("RoleName", roleName);
}
std::string UpdatePipelineMemberRequest::getUserPk()const
{
return userPk_;
}
void UpdatePipelineMemberRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string UpdatePipelineMemberRequest::getUserId()const
{
return userId_;
}
void UpdatePipelineMemberRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string UpdatePipelineMemberRequest::getOrgId()const
{
return orgId_;
}
void UpdatePipelineMemberRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setParameter("OrgId", orgId);
}
long UpdatePipelineMemberRequest::getPipelineId()const
{
return pipelineId_;
}
void UpdatePipelineMemberRequest::setPipelineId(long pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", std::to_string(pipelineId));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdatePipelineMemberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
UpdatePipelineMemberResult::UpdatePipelineMemberResult() :
ServiceResult()
{}
UpdatePipelineMemberResult::UpdatePipelineMemberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdatePipelineMemberResult::~UpdatePipelineMemberResult()
{}
void UpdatePipelineMemberResult::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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Object"].isNull())
object_ = value["Object"].asString() == "true";
}
bool UpdatePipelineMemberResult::getObject()const
{
return object_;
}
std::string UpdatePipelineMemberResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdatePipelineMemberResult::getErrorMessage()const
{
return errorMessage_;
}
bool UpdatePipelineMemberResult::getSuccess()const
{
return success_;
}

View File

@@ -48,6 +48,7 @@ namespace AlibabaCloud
float x;
float y;
float z;
std::string sOPInstanceUID;
float diameter;
};
std::vector<std::string> origin;

View File

@@ -72,6 +72,8 @@ void DetectLungNoduleResult::parse(const std::string &payload)
elementsObject.imageY = std::stof(allSeriesNodeElementsElement["ImageY"].asString());
if(!allSeriesNodeElementsElement["ImageZ"].isNull())
elementsObject.imageZ = std::stof(allSeriesNodeElementsElement["ImageZ"].asString());
if(!allSeriesNodeElementsElement["SOPInstanceUID"].isNull())
elementsObject.sOPInstanceUID = allSeriesNodeElementsElement["SOPInstanceUID"].asString();
serieObject.elements.push_back(elementsObject);
}
auto allOrigin = value["Origin"]["Origin"];

View File

@@ -176,7 +176,9 @@ set(imm_public_header_model
include/alibabacloud/imm/model/UpdateProjectRequest.h
include/alibabacloud/imm/model/UpdateProjectResult.h
include/alibabacloud/imm/model/UpdateSetRequest.h
include/alibabacloud/imm/model/UpdateSetResult.h )
include/alibabacloud/imm/model/UpdateSetResult.h
include/alibabacloud/imm/model/VideoAnalyseFeedbackRequest.h
include/alibabacloud/imm/model/VideoAnalyseFeedbackResult.h )
set(imm_src
src/ImmClient.cc
@@ -335,7 +337,9 @@ set(imm_src
src/model/UpdateProjectRequest.cc
src/model/UpdateProjectResult.cc
src/model/UpdateSetRequest.cc
src/model/UpdateSetResult.cc )
src/model/UpdateSetResult.cc
src/model/VideoAnalyseFeedbackRequest.cc
src/model/VideoAnalyseFeedbackResult.cc )
add_library(imm ${LIB_TYPE}
${imm_public_header}

View File

@@ -178,6 +178,8 @@
#include "model/UpdateProjectResult.h"
#include "model/UpdateSetRequest.h"
#include "model/UpdateSetResult.h"
#include "model/VideoAnalyseFeedbackRequest.h"
#include "model/VideoAnalyseFeedbackResult.h"
namespace AlibabaCloud
@@ -421,6 +423,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateSetResult> UpdateSetOutcome;
typedef std::future<UpdateSetOutcome> UpdateSetOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::UpdateSetRequest&, const UpdateSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSetAsyncHandler;
typedef Outcome<Error, Model::VideoAnalyseFeedbackResult> VideoAnalyseFeedbackOutcome;
typedef std::future<VideoAnalyseFeedbackOutcome> VideoAnalyseFeedbackOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::VideoAnalyseFeedbackRequest&, const VideoAnalyseFeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoAnalyseFeedbackAsyncHandler;
ImmClient(const Credentials &credentials, const ClientConfiguration &configuration);
ImmClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -660,6 +665,9 @@ namespace AlibabaCloud
UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const;
void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateSetOutcomeCallable updateSetCallable(const Model::UpdateSetRequest& request) const;
VideoAnalyseFeedbackOutcome videoAnalyseFeedback(const Model::VideoAnalyseFeedbackRequest &request)const;
void videoAnalyseFeedbackAsync(const Model::VideoAnalyseFeedbackRequest& request, const VideoAnalyseFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VideoAnalyseFeedbackOutcomeCallable videoAnalyseFeedbackCallable(const Model::VideoAnalyseFeedbackRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

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

View File

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

View File

@@ -2859,3 +2859,39 @@ ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSet
return task->get_future();
}
ImmClient::VideoAnalyseFeedbackOutcome ImmClient::videoAnalyseFeedback(const VideoAnalyseFeedbackRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VideoAnalyseFeedbackOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VideoAnalyseFeedbackOutcome(VideoAnalyseFeedbackResult(outcome.result()));
else
return VideoAnalyseFeedbackOutcome(outcome.error());
}
void ImmClient::videoAnalyseFeedbackAsync(const VideoAnalyseFeedbackRequest& request, const VideoAnalyseFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, videoAnalyseFeedback(request), context);
};
asyncExecute(new Runnable(fn));
}
ImmClient::VideoAnalyseFeedbackOutcomeCallable ImmClient::videoAnalyseFeedbackCallable(const VideoAnalyseFeedbackRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VideoAnalyseFeedbackOutcome()>>(
[this, request]()
{
return this->videoAnalyseFeedback(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

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

View File

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

View File

@@ -21,6 +21,8 @@ set(r-kvstore_public_header
include/alibabacloud/r-kvstore/R_kvstoreExport.h )
set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/AddShardingNodeRequest.h
include/alibabacloud/r-kvstore/model/AddShardingNodeResult.h
include/alibabacloud/r-kvstore/model/AllocateDirectConnectionRequest.h
include/alibabacloud/r-kvstore/model/AllocateDirectConnectionResult.h
include/alibabacloud/r-kvstore/model/AllocateInstancePublicConnectionRequest.h
@@ -49,6 +51,8 @@ set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/DeleteDedicatedUserClusterResult.h
include/alibabacloud/r-kvstore/model/DeleteInstanceRequest.h
include/alibabacloud/r-kvstore/model/DeleteInstanceResult.h
include/alibabacloud/r-kvstore/model/DeleteShardingNodeRequest.h
include/alibabacloud/r-kvstore/model/DeleteShardingNodeResult.h
include/alibabacloud/r-kvstore/model/DeleteUserClusterHostRequest.h
include/alibabacloud/r-kvstore/model/DeleteUserClusterHostResult.h
include/alibabacloud/r-kvstore/model/DescribeAccountsRequest.h
@@ -65,6 +69,8 @@ set(r-kvstore_public_header_model
include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportResult.h
include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportListRequest.h
include/alibabacloud/r-kvstore/model/DescribeCacheAnalysisReportListResult.h
include/alibabacloud/r-kvstore/model/DescribeClusterMemberInfoRequest.h
include/alibabacloud/r-kvstore/model/DescribeClusterMemberInfoResult.h
include/alibabacloud/r-kvstore/model/DescribeDBInstanceNetInfoRequest.h
include/alibabacloud/r-kvstore/model/DescribeDBInstanceNetInfoResult.h
include/alibabacloud/r-kvstore/model/DescribeDedicatedClusterInstanceListRequest.h
@@ -190,6 +196,8 @@ set(r-kvstore_public_header_model
set(r-kvstore_src
src/R-kvstoreClient.cc
src/model/AddShardingNodeRequest.cc
src/model/AddShardingNodeResult.cc
src/model/AllocateDirectConnectionRequest.cc
src/model/AllocateDirectConnectionResult.cc
src/model/AllocateInstancePublicConnectionRequest.cc
@@ -218,6 +226,8 @@ set(r-kvstore_src
src/model/DeleteDedicatedUserClusterResult.cc
src/model/DeleteInstanceRequest.cc
src/model/DeleteInstanceResult.cc
src/model/DeleteShardingNodeRequest.cc
src/model/DeleteShardingNodeResult.cc
src/model/DeleteUserClusterHostRequest.cc
src/model/DeleteUserClusterHostResult.cc
src/model/DescribeAccountsRequest.cc
@@ -234,6 +244,8 @@ set(r-kvstore_src
src/model/DescribeCacheAnalysisReportResult.cc
src/model/DescribeCacheAnalysisReportListRequest.cc
src/model/DescribeCacheAnalysisReportListResult.cc
src/model/DescribeClusterMemberInfoRequest.cc
src/model/DescribeClusterMemberInfoResult.cc
src/model/DescribeDBInstanceNetInfoRequest.cc
src/model/DescribeDBInstanceNetInfoResult.cc
src/model/DescribeDedicatedClusterInstanceListRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "R_kvstoreExport.h"
#include "model/AddShardingNodeRequest.h"
#include "model/AddShardingNodeResult.h"
#include "model/AllocateDirectConnectionRequest.h"
#include "model/AllocateDirectConnectionResult.h"
#include "model/AllocateInstancePublicConnectionRequest.h"
@@ -50,6 +52,8 @@
#include "model/DeleteDedicatedUserClusterResult.h"
#include "model/DeleteInstanceRequest.h"
#include "model/DeleteInstanceResult.h"
#include "model/DeleteShardingNodeRequest.h"
#include "model/DeleteShardingNodeResult.h"
#include "model/DeleteUserClusterHostRequest.h"
#include "model/DeleteUserClusterHostResult.h"
#include "model/DescribeAccountsRequest.h"
@@ -66,6 +70,8 @@
#include "model/DescribeCacheAnalysisReportResult.h"
#include "model/DescribeCacheAnalysisReportListRequest.h"
#include "model/DescribeCacheAnalysisReportListResult.h"
#include "model/DescribeClusterMemberInfoRequest.h"
#include "model/DescribeClusterMemberInfoResult.h"
#include "model/DescribeDBInstanceNetInfoRequest.h"
#include "model/DescribeDBInstanceNetInfoResult.h"
#include "model/DescribeDedicatedClusterInstanceListRequest.h"
@@ -197,6 +203,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_R_KVSTORE_EXPORT R_kvstoreClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddShardingNodeResult> AddShardingNodeOutcome;
typedef std::future<AddShardingNodeOutcome> AddShardingNodeOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::AddShardingNodeRequest&, const AddShardingNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddShardingNodeAsyncHandler;
typedef Outcome<Error, Model::AllocateDirectConnectionResult> AllocateDirectConnectionOutcome;
typedef std::future<AllocateDirectConnectionOutcome> AllocateDirectConnectionOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::AllocateDirectConnectionRequest&, const AllocateDirectConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateDirectConnectionAsyncHandler;
@@ -239,6 +248,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
typedef Outcome<Error, Model::DeleteShardingNodeResult> DeleteShardingNodeOutcome;
typedef std::future<DeleteShardingNodeOutcome> DeleteShardingNodeOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DeleteShardingNodeRequest&, const DeleteShardingNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteShardingNodeAsyncHandler;
typedef Outcome<Error, Model::DeleteUserClusterHostResult> DeleteUserClusterHostOutcome;
typedef std::future<DeleteUserClusterHostOutcome> DeleteUserClusterHostOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DeleteUserClusterHostRequest&, const DeleteUserClusterHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserClusterHostAsyncHandler;
@@ -263,6 +275,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeCacheAnalysisReportListResult> DescribeCacheAnalysisReportListOutcome;
typedef std::future<DescribeCacheAnalysisReportListOutcome> DescribeCacheAnalysisReportListOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeCacheAnalysisReportListRequest&, const DescribeCacheAnalysisReportListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCacheAnalysisReportListAsyncHandler;
typedef Outcome<Error, Model::DescribeClusterMemberInfoResult> DescribeClusterMemberInfoOutcome;
typedef std::future<DescribeClusterMemberInfoOutcome> DescribeClusterMemberInfoOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeClusterMemberInfoRequest&, const DescribeClusterMemberInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClusterMemberInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeDBInstanceNetInfoResult> DescribeDBInstanceNetInfoOutcome;
typedef std::future<DescribeDBInstanceNetInfoOutcome> DescribeDBInstanceNetInfoOutcomeCallable;
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeDBInstanceNetInfoRequest&, const DescribeDBInstanceNetInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBInstanceNetInfoAsyncHandler;
@@ -451,6 +466,9 @@ namespace AlibabaCloud
R_kvstoreClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
R_kvstoreClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~R_kvstoreClient();
AddShardingNodeOutcome addShardingNode(const Model::AddShardingNodeRequest &request)const;
void addShardingNodeAsync(const Model::AddShardingNodeRequest& request, const AddShardingNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddShardingNodeOutcomeCallable addShardingNodeCallable(const Model::AddShardingNodeRequest& request) const;
AllocateDirectConnectionOutcome allocateDirectConnection(const Model::AllocateDirectConnectionRequest &request)const;
void allocateDirectConnectionAsync(const Model::AllocateDirectConnectionRequest& request, const AllocateDirectConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AllocateDirectConnectionOutcomeCallable allocateDirectConnectionCallable(const Model::AllocateDirectConnectionRequest& request) const;
@@ -493,6 +511,9 @@ namespace AlibabaCloud
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
DeleteShardingNodeOutcome deleteShardingNode(const Model::DeleteShardingNodeRequest &request)const;
void deleteShardingNodeAsync(const Model::DeleteShardingNodeRequest& request, const DeleteShardingNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteShardingNodeOutcomeCallable deleteShardingNodeCallable(const Model::DeleteShardingNodeRequest& request) const;
DeleteUserClusterHostOutcome deleteUserClusterHost(const Model::DeleteUserClusterHostRequest &request)const;
void deleteUserClusterHostAsync(const Model::DeleteUserClusterHostRequest& request, const DeleteUserClusterHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteUserClusterHostOutcomeCallable deleteUserClusterHostCallable(const Model::DeleteUserClusterHostRequest& request) const;
@@ -517,6 +538,9 @@ namespace AlibabaCloud
DescribeCacheAnalysisReportListOutcome describeCacheAnalysisReportList(const Model::DescribeCacheAnalysisReportListRequest &request)const;
void describeCacheAnalysisReportListAsync(const Model::DescribeCacheAnalysisReportListRequest& request, const DescribeCacheAnalysisReportListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCacheAnalysisReportListOutcomeCallable describeCacheAnalysisReportListCallable(const Model::DescribeCacheAnalysisReportListRequest& request) const;
DescribeClusterMemberInfoOutcome describeClusterMemberInfo(const Model::DescribeClusterMemberInfoRequest &request)const;
void describeClusterMemberInfoAsync(const Model::DescribeClusterMemberInfoRequest& request, const DescribeClusterMemberInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeClusterMemberInfoOutcomeCallable describeClusterMemberInfoCallable(const Model::DescribeClusterMemberInfoRequest& request) const;
DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const;
void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const;

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_ADDSHARDINGNODEREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_ADDSHARDINGNODEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT AddShardingNodeRequest : public RpcServiceRequest
{
public:
AddShardingNodeRequest();
~AddShardingNodeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getCouponNo()const;
void setCouponNo(const std::string& couponNo);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
int getShardCount()const;
void setShardCount(int shardCount);
std::string getBusinessInfo()const;
void setBusinessInfo(const std::string& businessInfo);
bool getAutoPay()const;
void setAutoPay(bool autoPay);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getShardClass()const;
void setShardClass(const std::string& shardClass);
private:
long resourceOwnerId_;
std::string couponNo_;
std::string accessKeyId_;
std::string securityToken_;
int shardCount_;
std::string businessInfo_;
bool autoPay_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string shardClass_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_ADDSHARDINGNODEREQUEST_H_

View File

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

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DELETESHARDINGNODEREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_DELETESHARDINGNODEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT DeleteShardingNodeRequest : public RpcServiceRequest
{
public:
DeleteShardingNodeRequest();
~DeleteShardingNodeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getNodeId()const;
void setNodeId(const std::string& nodeId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string nodeId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DELETESHARDINGNODEREQUEST_H_

View File

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

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAcceptLanguage()const;
void setAcceptLanguage(const std::string& acceptLanguage);
std::string getZoneId()const;
void setZoneId(const std::string& zoneId);
std::string getOrderType()const;
@@ -74,6 +76,7 @@ namespace AlibabaCloud
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
std::string acceptLanguage_;
std::string zoneId_;
std::string orderType_;

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBECLUSTERMEMBERINFOREQUEST_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBECLUSTERMEMBERINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeClusterMemberInfoRequest : public RpcServiceRequest
{
public:
DescribeClusterMemberInfoRequest();
~DescribeClusterMemberInfoRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
void setSecurityToken(const std::string& securityToken);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string securityToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBECLUSTERMEMBERINFOREQUEST_H_

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBECLUSTERMEMBERINFORESULT_H_
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBECLUSTERMEMBERINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
namespace AlibabaCloud
{
namespace R_kvstore
{
namespace Model
{
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeClusterMemberInfoResult : public ServiceResult
{
public:
struct Children
{
long connections;
std::string primaryInsName;
std::string health;
std::string service;
std::string bizType;
std::string connType;
int diskSizeMB;
int creator;
std::string lockMode;
std::string name;
std::string insType;
int binlogRetentionDays;
long bandWidth;
std::string classCode;
long capacity;
std::string userId;
std::string serviceVersion;
long id;
std::string lockReason;
int modifier;
int replicaSize;
std::string nickname;
std::string resourceGroupName;
};
DescribeClusterMemberInfoResult();
explicit DescribeClusterMemberInfoResult(const std::string &payload);
~DescribeClusterMemberInfoResult();
std::vector<Children> getClusterChildren()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Children> clusterChildren_;
};
}
}
}
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBECLUSTERMEMBERINFORESULT_H_

View File

@@ -45,6 +45,7 @@ namespace AlibabaCloud
std::string config;
long port;
std::string hasRenewChangeOrder;
int shardCount;
std::string connectionDomain;
std::string maintainEndTime;
long capacity;

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
long port;
std::string destroyTime;
bool hasRenewChangeOrder;
int shardCount;
std::string connectionDomain;
long capacity;
long qPS;
@@ -72,6 +73,7 @@ namespace AlibabaCloud
std::string chargeType;
std::string nodeType;
std::string connectionMode;
int proxyCount;
std::string vpcCloudInstanceId;
std::string regionId;
};

View File

@@ -43,10 +43,10 @@ namespace AlibabaCloud
};
std::vector<std::string> ruleIds1;
std::string currency;
float tradeAmount;
std::string tradeAmount;
std::vector<Coupon> coupons;
float originalAmount;
float discountAmount;
std::string originalAmount;
std::string discountAmount;
};
struct Rule
{
@@ -58,9 +58,9 @@ namespace AlibabaCloud
{
std::string instanceId;
std::vector<std::string> ruleIds;
float tradeAmount;
float originalAmount;
float discountAmount;
std::string tradeAmount;
std::string originalAmount;
std::string discountAmount;
};

View File

@@ -51,6 +51,42 @@ R_kvstoreClient::R_kvstoreClient(const std::string & accessKeyId, const std::str
R_kvstoreClient::~R_kvstoreClient()
{}
R_kvstoreClient::AddShardingNodeOutcome R_kvstoreClient::addShardingNode(const AddShardingNodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddShardingNodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddShardingNodeOutcome(AddShardingNodeResult(outcome.result()));
else
return AddShardingNodeOutcome(outcome.error());
}
void R_kvstoreClient::addShardingNodeAsync(const AddShardingNodeRequest& request, const AddShardingNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addShardingNode(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::AddShardingNodeOutcomeCallable R_kvstoreClient::addShardingNodeCallable(const AddShardingNodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddShardingNodeOutcome()>>(
[this, request]()
{
return this->addShardingNode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::AllocateDirectConnectionOutcome R_kvstoreClient::allocateDirectConnection(const AllocateDirectConnectionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +591,42 @@ R_kvstoreClient::DeleteInstanceOutcomeCallable R_kvstoreClient::deleteInstanceCa
return task->get_future();
}
R_kvstoreClient::DeleteShardingNodeOutcome R_kvstoreClient::deleteShardingNode(const DeleteShardingNodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteShardingNodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteShardingNodeOutcome(DeleteShardingNodeResult(outcome.result()));
else
return DeleteShardingNodeOutcome(outcome.error());
}
void R_kvstoreClient::deleteShardingNodeAsync(const DeleteShardingNodeRequest& request, const DeleteShardingNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteShardingNode(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::DeleteShardingNodeOutcomeCallable R_kvstoreClient::deleteShardingNodeCallable(const DeleteShardingNodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteShardingNodeOutcome()>>(
[this, request]()
{
return this->deleteShardingNode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::DeleteUserClusterHostOutcome R_kvstoreClient::deleteUserClusterHost(const DeleteUserClusterHostRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -843,6 +915,42 @@ R_kvstoreClient::DescribeCacheAnalysisReportListOutcomeCallable R_kvstoreClient:
return task->get_future();
}
R_kvstoreClient::DescribeClusterMemberInfoOutcome R_kvstoreClient::describeClusterMemberInfo(const DescribeClusterMemberInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeClusterMemberInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeClusterMemberInfoOutcome(DescribeClusterMemberInfoResult(outcome.result()));
else
return DescribeClusterMemberInfoOutcome(outcome.error());
}
void R_kvstoreClient::describeClusterMemberInfoAsync(const DescribeClusterMemberInfoRequest& request, const DescribeClusterMemberInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeClusterMemberInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
R_kvstoreClient::DescribeClusterMemberInfoOutcomeCallable R_kvstoreClient::describeClusterMemberInfoCallable(const DescribeClusterMemberInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeClusterMemberInfoOutcome()>>(
[this, request]()
{
return this->describeClusterMemberInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
R_kvstoreClient::DescribeDBInstanceNetInfoOutcome R_kvstoreClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,161 @@
/*
* 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/r-kvstore/model/AddShardingNodeRequest.h>
using AlibabaCloud::R_kvstore::Model::AddShardingNodeRequest;
AddShardingNodeRequest::AddShardingNodeRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "AddShardingNode")
{
setMethod(HttpRequest::Method::Post);
}
AddShardingNodeRequest::~AddShardingNodeRequest()
{}
long AddShardingNodeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddShardingNodeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddShardingNodeRequest::getCouponNo()const
{
return couponNo_;
}
void AddShardingNodeRequest::setCouponNo(const std::string& couponNo)
{
couponNo_ = couponNo;
setParameter("CouponNo", couponNo);
}
std::string AddShardingNodeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddShardingNodeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddShardingNodeRequest::getSecurityToken()const
{
return securityToken_;
}
void AddShardingNodeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
int AddShardingNodeRequest::getShardCount()const
{
return shardCount_;
}
void AddShardingNodeRequest::setShardCount(int shardCount)
{
shardCount_ = shardCount;
setParameter("ShardCount", std::to_string(shardCount));
}
std::string AddShardingNodeRequest::getBusinessInfo()const
{
return businessInfo_;
}
void AddShardingNodeRequest::setBusinessInfo(const std::string& businessInfo)
{
businessInfo_ = businessInfo;
setParameter("BusinessInfo", businessInfo);
}
bool AddShardingNodeRequest::getAutoPay()const
{
return autoPay_;
}
void AddShardingNodeRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string AddShardingNodeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddShardingNodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddShardingNodeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddShardingNodeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddShardingNodeRequest::getOwnerId()const
{
return ownerId_;
}
void AddShardingNodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddShardingNodeRequest::getInstanceId()const
{
return instanceId_;
}
void AddShardingNodeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AddShardingNodeRequest::getShardClass()const
{
return shardClass_;
}
void AddShardingNodeRequest::setShardClass(const std::string& shardClass)
{
shardClass_ = shardClass;
setParameter("ShardClass", shardClass);
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/r-kvstore/model/DeleteShardingNodeRequest.h>
using AlibabaCloud::R_kvstore::Model::DeleteShardingNodeRequest;
DeleteShardingNodeRequest::DeleteShardingNodeRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "DeleteShardingNode")
{
setMethod(HttpRequest::Method::Post);
}
DeleteShardingNodeRequest::~DeleteShardingNodeRequest()
{}
long DeleteShardingNodeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteShardingNodeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteShardingNodeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteShardingNodeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteShardingNodeRequest::getSecurityToken()const
{
return securityToken_;
}
void DeleteShardingNodeRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DeleteShardingNodeRequest::getNodeId()const
{
return nodeId_;
}
void DeleteShardingNodeRequest::setNodeId(const std::string& nodeId)
{
nodeId_ = nodeId;
setParameter("NodeId", nodeId);
}
std::string DeleteShardingNodeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteShardingNodeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteShardingNodeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteShardingNodeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteShardingNodeRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteShardingNodeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteShardingNodeRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteShardingNodeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

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

View File

@@ -148,6 +148,17 @@ void DescribeAvailableResourceRequest::setInstanceId(const std::string& instance
setParameter("InstanceId", instanceId);
}
std::string DescribeAvailableResourceRequest::getAcceptLanguage()const
{
return acceptLanguage_;
}
void DescribeAvailableResourceRequest::setAcceptLanguage(const std::string& acceptLanguage)
{
acceptLanguage_ = acceptLanguage;
setParameter("AcceptLanguage", acceptLanguage);
}
std::string DescribeAvailableResourceRequest::getZoneId()const
{
return zoneId_;

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/r-kvstore/model/DescribeClusterMemberInfoRequest.h>
using AlibabaCloud::R_kvstore::Model::DescribeClusterMemberInfoRequest;
DescribeClusterMemberInfoRequest::DescribeClusterMemberInfoRequest() :
RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeClusterMemberInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeClusterMemberInfoRequest::~DescribeClusterMemberInfoRequest()
{}
long DescribeClusterMemberInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeClusterMemberInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeClusterMemberInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeClusterMemberInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeClusterMemberInfoRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeClusterMemberInfoRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeClusterMemberInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeClusterMemberInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeClusterMemberInfoRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeClusterMemberInfoRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DescribeClusterMemberInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeClusterMemberInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeClusterMemberInfoRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeClusterMemberInfoRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,101 @@
/*
* 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/r-kvstore/model/DescribeClusterMemberInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::R_kvstore;
using namespace AlibabaCloud::R_kvstore::Model;
DescribeClusterMemberInfoResult::DescribeClusterMemberInfoResult() :
ServiceResult()
{}
DescribeClusterMemberInfoResult::DescribeClusterMemberInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeClusterMemberInfoResult::~DescribeClusterMemberInfoResult()
{}
void DescribeClusterMemberInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allClusterChildrenNode = value["ClusterChildren"]["Children"];
for (auto valueClusterChildrenChildren : allClusterChildrenNode)
{
Children clusterChildrenObject;
if(!valueClusterChildrenChildren["Id"].isNull())
clusterChildrenObject.id = std::stol(valueClusterChildrenChildren["Id"].asString());
if(!valueClusterChildrenChildren["Name"].isNull())
clusterChildrenObject.name = valueClusterChildrenChildren["Name"].asString();
if(!valueClusterChildrenChildren["BizType"].isNull())
clusterChildrenObject.bizType = valueClusterChildrenChildren["BizType"].asString();
if(!valueClusterChildrenChildren["ReplicaSize"].isNull())
clusterChildrenObject.replicaSize = std::stoi(valueClusterChildrenChildren["ReplicaSize"].asString());
if(!valueClusterChildrenChildren["Modifier"].isNull())
clusterChildrenObject.modifier = std::stoi(valueClusterChildrenChildren["Modifier"].asString());
if(!valueClusterChildrenChildren["ServiceVersion"].isNull())
clusterChildrenObject.serviceVersion = valueClusterChildrenChildren["ServiceVersion"].asString();
if(!valueClusterChildrenChildren["ConnType"].isNull())
clusterChildrenObject.connType = valueClusterChildrenChildren["ConnType"].asString();
if(!valueClusterChildrenChildren["DiskSizeMB"].isNull())
clusterChildrenObject.diskSizeMB = std::stoi(valueClusterChildrenChildren["DiskSizeMB"].asString());
if(!valueClusterChildrenChildren["InsType"].isNull())
clusterChildrenObject.insType = valueClusterChildrenChildren["InsType"].asString();
if(!valueClusterChildrenChildren["Nickname"].isNull())
clusterChildrenObject.nickname = valueClusterChildrenChildren["Nickname"].asString();
if(!valueClusterChildrenChildren["PrimaryInsName"].isNull())
clusterChildrenObject.primaryInsName = valueClusterChildrenChildren["PrimaryInsName"].asString();
if(!valueClusterChildrenChildren["ClassCode"].isNull())
clusterChildrenObject.classCode = valueClusterChildrenChildren["ClassCode"].asString();
if(!valueClusterChildrenChildren["Creator"].isNull())
clusterChildrenObject.creator = std::stoi(valueClusterChildrenChildren["Creator"].asString());
if(!valueClusterChildrenChildren["ResourceGroupName"].isNull())
clusterChildrenObject.resourceGroupName = valueClusterChildrenChildren["ResourceGroupName"].asString();
if(!valueClusterChildrenChildren["LockMode"].isNull())
clusterChildrenObject.lockMode = valueClusterChildrenChildren["LockMode"].asString();
if(!valueClusterChildrenChildren["Health"].isNull())
clusterChildrenObject.health = valueClusterChildrenChildren["Health"].asString();
if(!valueClusterChildrenChildren["BinlogRetentionDays"].isNull())
clusterChildrenObject.binlogRetentionDays = std::stoi(valueClusterChildrenChildren["BinlogRetentionDays"].asString());
if(!valueClusterChildrenChildren["UserId"].isNull())
clusterChildrenObject.userId = valueClusterChildrenChildren["UserId"].asString();
if(!valueClusterChildrenChildren["LockReason"].isNull())
clusterChildrenObject.lockReason = valueClusterChildrenChildren["LockReason"].asString();
if(!valueClusterChildrenChildren["Service"].isNull())
clusterChildrenObject.service = valueClusterChildrenChildren["Service"].asString();
if(!valueClusterChildrenChildren["Capacity"].isNull())
clusterChildrenObject.capacity = std::stol(valueClusterChildrenChildren["Capacity"].asString());
if(!valueClusterChildrenChildren["BandWidth"].isNull())
clusterChildrenObject.bandWidth = std::stol(valueClusterChildrenChildren["BandWidth"].asString());
if(!valueClusterChildrenChildren["Connections"].isNull())
clusterChildrenObject.connections = std::stol(valueClusterChildrenChildren["Connections"].asString());
clusterChildren_.push_back(clusterChildrenObject);
}
}
std::vector<DescribeClusterMemberInfoResult::Children> DescribeClusterMemberInfoResult::getClusterChildren()const
{
return clusterChildren_;
}

View File

@@ -123,6 +123,8 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload)
instancesObject.instanceReleaseProtection = valueInstancesDBInstanceAttribute["InstanceReleaseProtection"].asString() == "true";
if(!valueInstancesDBInstanceAttribute["ResourceGroupId"].isNull())
instancesObject.resourceGroupId = valueInstancesDBInstanceAttribute["ResourceGroupId"].asString();
if(!valueInstancesDBInstanceAttribute["ShardCount"].isNull())
instancesObject.shardCount = std::stoi(valueInstancesDBInstanceAttribute["ShardCount"].asString());
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
for (auto allInstancesNodeTagsTag : allTagsNode)
{

View File

@@ -111,6 +111,10 @@ void DescribeInstancesResult::parse(const std::string &payload)
instancesObject.vpcCloudInstanceId = valueInstancesKVStoreInstance["VpcCloudInstanceId"].asString();
if(!valueInstancesKVStoreInstance["ResourceGroupId"].isNull())
instancesObject.resourceGroupId = valueInstancesKVStoreInstance["ResourceGroupId"].asString();
if(!valueInstancesKVStoreInstance["ShardCount"].isNull())
instancesObject.shardCount = std::stoi(valueInstancesKVStoreInstance["ShardCount"].asString());
if(!valueInstancesKVStoreInstance["ProxyCount"].isNull())
instancesObject.proxyCount = std::stoi(valueInstancesKVStoreInstance["ProxyCount"].asString());
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
for (auto allInstancesNodeTagsTag : allTagsNode)
{

View File

@@ -56,11 +56,11 @@ void DescribePriceResult::parse(const std::string &payload)
{
SubOrder subOrdersObject;
if(!valueSubOrdersSubOrder["OriginalAmount"].isNull())
subOrdersObject.originalAmount = std::stof(valueSubOrdersSubOrder["OriginalAmount"].asString());
subOrdersObject.originalAmount = valueSubOrdersSubOrder["OriginalAmount"].asString();
if(!valueSubOrdersSubOrder["TradeAmount"].isNull())
subOrdersObject.tradeAmount = std::stof(valueSubOrdersSubOrder["TradeAmount"].asString());
subOrdersObject.tradeAmount = valueSubOrdersSubOrder["TradeAmount"].asString();
if(!valueSubOrdersSubOrder["DiscountAmount"].isNull())
subOrdersObject.discountAmount = std::stof(valueSubOrdersSubOrder["DiscountAmount"].asString());
subOrdersObject.discountAmount = valueSubOrdersSubOrder["DiscountAmount"].asString();
if(!valueSubOrdersSubOrder["InstanceId"].isNull())
subOrdersObject.instanceId = valueSubOrdersSubOrder["InstanceId"].asString();
auto allRuleIds = value["RuleIds"]["RuleId"];
@@ -70,11 +70,11 @@ void DescribePriceResult::parse(const std::string &payload)
}
auto orderNode = value["Order"];
if(!orderNode["OriginalAmount"].isNull())
order_.originalAmount = std::stof(orderNode["OriginalAmount"].asString());
order_.originalAmount = orderNode["OriginalAmount"].asString();
if(!orderNode["TradeAmount"].isNull())
order_.tradeAmount = std::stof(orderNode["TradeAmount"].asString());
order_.tradeAmount = orderNode["TradeAmount"].asString();
if(!orderNode["DiscountAmount"].isNull())
order_.discountAmount = std::stof(orderNode["DiscountAmount"].asString());
order_.discountAmount = orderNode["DiscountAmount"].asString();
if(!orderNode["Currency"].isNull())
order_.currency = orderNode["Currency"].asString();
auto allCouponsNode = orderNode["Coupons"]["Coupon"];

View File

@@ -137,6 +137,8 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/ListPersonVisitCountResult.h
include/alibabacloud/vcs/model/ListPersonsRequest.h
include/alibabacloud/vcs/model/ListPersonsResult.h
include/alibabacloud/vcs/model/ListSubscribeDeviceRequest.h
include/alibabacloud/vcs/model/ListSubscribeDeviceResult.h
include/alibabacloud/vcs/model/ListUserGroupsRequest.h
include/alibabacloud/vcs/model/ListUserGroupsResult.h
include/alibabacloud/vcs/model/ListUsersRequest.h
@@ -159,6 +161,10 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/SearchObjectResult.h
include/alibabacloud/vcs/model/StopMonitorRequest.h
include/alibabacloud/vcs/model/StopMonitorResult.h
include/alibabacloud/vcs/model/SubscribeDeviceEventRequest.h
include/alibabacloud/vcs/model/SubscribeDeviceEventResult.h
include/alibabacloud/vcs/model/SubscribeSpaceEventRequest.h
include/alibabacloud/vcs/model/SubscribeSpaceEventResult.h
include/alibabacloud/vcs/model/SyncDeviceTimeRequest.h
include/alibabacloud/vcs/model/SyncDeviceTimeResult.h
include/alibabacloud/vcs/model/UnbindCorpGroupRequest.h
@@ -167,6 +173,10 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/UnbindPersonResult.h
include/alibabacloud/vcs/model/UnbindUserRequest.h
include/alibabacloud/vcs/model/UnbindUserResult.h
include/alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h
include/alibabacloud/vcs/model/UnsubscribeDeviceEventResult.h
include/alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h
include/alibabacloud/vcs/model/UnsubscribeSpaceEventResult.h
include/alibabacloud/vcs/model/UpdateCorpRequest.h
include/alibabacloud/vcs/model/UpdateCorpResult.h
include/alibabacloud/vcs/model/UpdateDeviceRequest.h
@@ -304,6 +314,8 @@ set(vcs_src
src/model/ListPersonVisitCountResult.cc
src/model/ListPersonsRequest.cc
src/model/ListPersonsResult.cc
src/model/ListSubscribeDeviceRequest.cc
src/model/ListSubscribeDeviceResult.cc
src/model/ListUserGroupsRequest.cc
src/model/ListUserGroupsResult.cc
src/model/ListUsersRequest.cc
@@ -326,6 +338,10 @@ set(vcs_src
src/model/SearchObjectResult.cc
src/model/StopMonitorRequest.cc
src/model/StopMonitorResult.cc
src/model/SubscribeDeviceEventRequest.cc
src/model/SubscribeDeviceEventResult.cc
src/model/SubscribeSpaceEventRequest.cc
src/model/SubscribeSpaceEventResult.cc
src/model/SyncDeviceTimeRequest.cc
src/model/SyncDeviceTimeResult.cc
src/model/UnbindCorpGroupRequest.cc
@@ -334,6 +350,10 @@ set(vcs_src
src/model/UnbindPersonResult.cc
src/model/UnbindUserRequest.cc
src/model/UnbindUserResult.cc
src/model/UnsubscribeDeviceEventRequest.cc
src/model/UnsubscribeDeviceEventResult.cc
src/model/UnsubscribeSpaceEventRequest.cc
src/model/UnsubscribeSpaceEventResult.cc
src/model/UpdateCorpRequest.cc
src/model/UpdateCorpResult.cc
src/model/UpdateDeviceRequest.cc

View File

@@ -138,6 +138,8 @@
#include "model/ListPersonVisitCountResult.h"
#include "model/ListPersonsRequest.h"
#include "model/ListPersonsResult.h"
#include "model/ListSubscribeDeviceRequest.h"
#include "model/ListSubscribeDeviceResult.h"
#include "model/ListUserGroupsRequest.h"
#include "model/ListUserGroupsResult.h"
#include "model/ListUsersRequest.h"
@@ -160,6 +162,10 @@
#include "model/SearchObjectResult.h"
#include "model/StopMonitorRequest.h"
#include "model/StopMonitorResult.h"
#include "model/SubscribeDeviceEventRequest.h"
#include "model/SubscribeDeviceEventResult.h"
#include "model/SubscribeSpaceEventRequest.h"
#include "model/SubscribeSpaceEventResult.h"
#include "model/SyncDeviceTimeRequest.h"
#include "model/SyncDeviceTimeResult.h"
#include "model/UnbindCorpGroupRequest.h"
@@ -168,6 +174,10 @@
#include "model/UnbindPersonResult.h"
#include "model/UnbindUserRequest.h"
#include "model/UnbindUserResult.h"
#include "model/UnsubscribeDeviceEventRequest.h"
#include "model/UnsubscribeDeviceEventResult.h"
#include "model/UnsubscribeSpaceEventRequest.h"
#include "model/UnsubscribeSpaceEventResult.h"
#include "model/UpdateCorpRequest.h"
#include "model/UpdateCorpResult.h"
#include "model/UpdateDeviceRequest.h"
@@ -369,6 +379,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListPersonsResult> ListPersonsOutcome;
typedef std::future<ListPersonsOutcome> ListPersonsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListPersonsRequest&, const ListPersonsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPersonsAsyncHandler;
typedef Outcome<Error, Model::ListSubscribeDeviceResult> ListSubscribeDeviceOutcome;
typedef std::future<ListSubscribeDeviceOutcome> ListSubscribeDeviceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListSubscribeDeviceRequest&, const ListSubscribeDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSubscribeDeviceAsyncHandler;
typedef Outcome<Error, Model::ListUserGroupsResult> ListUserGroupsOutcome;
typedef std::future<ListUserGroupsOutcome> ListUserGroupsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListUserGroupsRequest&, const ListUserGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserGroupsAsyncHandler;
@@ -402,6 +415,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StopMonitorResult> StopMonitorOutcome;
typedef std::future<StopMonitorOutcome> StopMonitorOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::StopMonitorRequest&, const StopMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMonitorAsyncHandler;
typedef Outcome<Error, Model::SubscribeDeviceEventResult> SubscribeDeviceEventOutcome;
typedef std::future<SubscribeDeviceEventOutcome> SubscribeDeviceEventOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::SubscribeDeviceEventRequest&, const SubscribeDeviceEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeDeviceEventAsyncHandler;
typedef Outcome<Error, Model::SubscribeSpaceEventResult> SubscribeSpaceEventOutcome;
typedef std::future<SubscribeSpaceEventOutcome> SubscribeSpaceEventOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::SubscribeSpaceEventRequest&, const SubscribeSpaceEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeSpaceEventAsyncHandler;
typedef Outcome<Error, Model::SyncDeviceTimeResult> SyncDeviceTimeOutcome;
typedef std::future<SyncDeviceTimeOutcome> SyncDeviceTimeOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::SyncDeviceTimeRequest&, const SyncDeviceTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncDeviceTimeAsyncHandler;
@@ -414,6 +433,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UnbindUserResult> UnbindUserOutcome;
typedef std::future<UnbindUserOutcome> UnbindUserOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UnbindUserRequest&, const UnbindUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindUserAsyncHandler;
typedef Outcome<Error, Model::UnsubscribeDeviceEventResult> UnsubscribeDeviceEventOutcome;
typedef std::future<UnsubscribeDeviceEventOutcome> UnsubscribeDeviceEventOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UnsubscribeDeviceEventRequest&, const UnsubscribeDeviceEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnsubscribeDeviceEventAsyncHandler;
typedef Outcome<Error, Model::UnsubscribeSpaceEventResult> UnsubscribeSpaceEventOutcome;
typedef std::future<UnsubscribeSpaceEventOutcome> UnsubscribeSpaceEventOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UnsubscribeSpaceEventRequest&, const UnsubscribeSpaceEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnsubscribeSpaceEventAsyncHandler;
typedef Outcome<Error, Model::UpdateCorpResult> UpdateCorpOutcome;
typedef std::future<UpdateCorpOutcome> UpdateCorpOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UpdateCorpRequest&, const UpdateCorpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCorpAsyncHandler;
@@ -620,6 +645,9 @@ namespace AlibabaCloud
ListPersonsOutcome listPersons(const Model::ListPersonsRequest &request)const;
void listPersonsAsync(const Model::ListPersonsRequest& request, const ListPersonsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPersonsOutcomeCallable listPersonsCallable(const Model::ListPersonsRequest& request) const;
ListSubscribeDeviceOutcome listSubscribeDevice(const Model::ListSubscribeDeviceRequest &request)const;
void listSubscribeDeviceAsync(const Model::ListSubscribeDeviceRequest& request, const ListSubscribeDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSubscribeDeviceOutcomeCallable listSubscribeDeviceCallable(const Model::ListSubscribeDeviceRequest& request) const;
ListUserGroupsOutcome listUserGroups(const Model::ListUserGroupsRequest &request)const;
void listUserGroupsAsync(const Model::ListUserGroupsRequest& request, const ListUserGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListUserGroupsOutcomeCallable listUserGroupsCallable(const Model::ListUserGroupsRequest& request) const;
@@ -653,6 +681,12 @@ namespace AlibabaCloud
StopMonitorOutcome stopMonitor(const Model::StopMonitorRequest &request)const;
void stopMonitorAsync(const Model::StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopMonitorOutcomeCallable stopMonitorCallable(const Model::StopMonitorRequest& request) const;
SubscribeDeviceEventOutcome subscribeDeviceEvent(const Model::SubscribeDeviceEventRequest &request)const;
void subscribeDeviceEventAsync(const Model::SubscribeDeviceEventRequest& request, const SubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubscribeDeviceEventOutcomeCallable subscribeDeviceEventCallable(const Model::SubscribeDeviceEventRequest& request) const;
SubscribeSpaceEventOutcome subscribeSpaceEvent(const Model::SubscribeSpaceEventRequest &request)const;
void subscribeSpaceEventAsync(const Model::SubscribeSpaceEventRequest& request, const SubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubscribeSpaceEventOutcomeCallable subscribeSpaceEventCallable(const Model::SubscribeSpaceEventRequest& request) const;
SyncDeviceTimeOutcome syncDeviceTime(const Model::SyncDeviceTimeRequest &request)const;
void syncDeviceTimeAsync(const Model::SyncDeviceTimeRequest& request, const SyncDeviceTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SyncDeviceTimeOutcomeCallable syncDeviceTimeCallable(const Model::SyncDeviceTimeRequest& request) const;
@@ -665,6 +699,12 @@ namespace AlibabaCloud
UnbindUserOutcome unbindUser(const Model::UnbindUserRequest &request)const;
void unbindUserAsync(const Model::UnbindUserRequest& request, const UnbindUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindUserOutcomeCallable unbindUserCallable(const Model::UnbindUserRequest& request) const;
UnsubscribeDeviceEventOutcome unsubscribeDeviceEvent(const Model::UnsubscribeDeviceEventRequest &request)const;
void unsubscribeDeviceEventAsync(const Model::UnsubscribeDeviceEventRequest& request, const UnsubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnsubscribeDeviceEventOutcomeCallable unsubscribeDeviceEventCallable(const Model::UnsubscribeDeviceEventRequest& request) const;
UnsubscribeSpaceEventOutcome unsubscribeSpaceEvent(const Model::UnsubscribeSpaceEventRequest &request)const;
void unsubscribeSpaceEventAsync(const Model::UnsubscribeSpaceEventRequest& request, const UnsubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnsubscribeSpaceEventOutcomeCallable unsubscribeSpaceEventCallable(const Model::UnsubscribeSpaceEventRequest& request) const;
UpdateCorpOutcome updateCorp(const Model::UpdateCorpRequest &request)const;
void updateCorpAsync(const Model::UpdateCorpRequest& request, const UpdateCorpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCorpOutcomeCallable updateCorpCallable(const Model::UpdateCorpRequest& request) const;

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setSubId(const std::string& subId);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getDataSourceId()const;
void setDataSourceId(const std::string& dataSourceId);
std::string getPersonId()const;
void setPersonId(const std::string& personId);
@@ -57,6 +59,7 @@ namespace AlibabaCloud
long pageNumber_;
std::string subId_;
long pageSize_;
std::string dataSourceId_;
std::string personId_;
};

View File

@@ -36,18 +36,14 @@ namespace AlibabaCloud
{
std::string picUrlPath;
std::string corpId;
long pageSize;
std::string subId;
std::string personId;
std::string rightBottomX;
std::string targetPicUrlPath;
std::string rightBottomY;
std::string shotTime;
std::string leftTopY;
std::string leftTopX;
long totalCount;
std::string subId;
long totalPage;
std::string personId;
long pageNumber;
std::string shotTime;
std::string dataSourceId;
};
@@ -55,14 +51,20 @@ namespace AlibabaCloud
ListPersonTraceDetailsResult();
explicit ListPersonTraceDetailsResult(const std::string &payload);
~ListPersonTraceDetailsResult();
long getTotalCount()const;
std::string getMessage()const;
long getPageSize()const;
long getPageNumber()const;
std::vector<Datas> getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
std::string message_;
long pageSize_;
long pageNumber_;
std::vector<Datas> data_;
std::string code_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICEREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListSubscribeDeviceRequest : public RpcServiceRequest
{
public:
ListSubscribeDeviceRequest();
~ListSubscribeDeviceRequest();
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNum()const;
void setPageNum(int pageNum);
private:
int pageSize_;
int pageNum_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICEREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICERESULT_H_
#define ALIBABACLOUD_VCS_MODEL_LISTSUBSCRIBEDEVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ListSubscribeDeviceResult : public ServiceResult
{
public:
struct Data
{
struct SubscribeListItem
{
std::string pushConfig;
std::string userId;
std::string deviceId;
std::string createTime;
std::string updateTime;
};
int totalCount;
std::vector<SubscribeListItem> subscribeList;
};
ListSubscribeDeviceResult();
explicit ListSubscribeDeviceResult(const std::string &payload);
~ListSubscribeDeviceResult();
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_VCS_MODEL_LISTSUBSCRIBEDEVICERESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT SubscribeDeviceEventRequest : public RpcServiceRequest
{
public:
SubscribeDeviceEventRequest();
~SubscribeDeviceEventRequest();
std::string getPushConfig()const;
void setPushConfig(const std::string& pushConfig);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
private:
std::string pushConfig_;
std::string deviceId_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_SUBSCRIBEDEVICEEVENTREQUEST_H_

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT SubscribeSpaceEventRequest : public RpcServiceRequest
{
public:
SubscribeSpaceEventRequest();
~SubscribeSpaceEventRequest();
std::string getSpaceId()const;
void setSpaceId(const std::string& spaceId);
std::string getPushConfig()const;
void setPushConfig(const std::string& pushConfig);
private:
std::string spaceId_;
std::string pushConfig_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_SUBSCRIBESPACEEVENTREQUEST_H_

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -2139,6 +2139,42 @@ VcsClient::ListPersonsOutcomeCallable VcsClient::listPersonsCallable(const ListP
return task->get_future();
}
VcsClient::ListSubscribeDeviceOutcome VcsClient::listSubscribeDevice(const ListSubscribeDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSubscribeDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSubscribeDeviceOutcome(ListSubscribeDeviceResult(outcome.result()));
else
return ListSubscribeDeviceOutcome(outcome.error());
}
void VcsClient::listSubscribeDeviceAsync(const ListSubscribeDeviceRequest& request, const ListSubscribeDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSubscribeDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::ListSubscribeDeviceOutcomeCallable VcsClient::listSubscribeDeviceCallable(const ListSubscribeDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSubscribeDeviceOutcome()>>(
[this, request]()
{
return this->listSubscribeDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListUserGroupsOutcome VcsClient::listUserGroups(const ListUserGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2535,6 +2571,78 @@ VcsClient::StopMonitorOutcomeCallable VcsClient::stopMonitorCallable(const StopM
return task->get_future();
}
VcsClient::SubscribeDeviceEventOutcome VcsClient::subscribeDeviceEvent(const SubscribeDeviceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubscribeDeviceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubscribeDeviceEventOutcome(SubscribeDeviceEventResult(outcome.result()));
else
return SubscribeDeviceEventOutcome(outcome.error());
}
void VcsClient::subscribeDeviceEventAsync(const SubscribeDeviceEventRequest& request, const SubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, subscribeDeviceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::SubscribeDeviceEventOutcomeCallable VcsClient::subscribeDeviceEventCallable(const SubscribeDeviceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubscribeDeviceEventOutcome()>>(
[this, request]()
{
return this->subscribeDeviceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::SubscribeSpaceEventOutcome VcsClient::subscribeSpaceEvent(const SubscribeSpaceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubscribeSpaceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubscribeSpaceEventOutcome(SubscribeSpaceEventResult(outcome.result()));
else
return SubscribeSpaceEventOutcome(outcome.error());
}
void VcsClient::subscribeSpaceEventAsync(const SubscribeSpaceEventRequest& request, const SubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, subscribeSpaceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::SubscribeSpaceEventOutcomeCallable VcsClient::subscribeSpaceEventCallable(const SubscribeSpaceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubscribeSpaceEventOutcome()>>(
[this, request]()
{
return this->subscribeSpaceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::SyncDeviceTimeOutcome VcsClient::syncDeviceTime(const SyncDeviceTimeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2679,6 +2787,78 @@ VcsClient::UnbindUserOutcomeCallable VcsClient::unbindUserCallable(const UnbindU
return task->get_future();
}
VcsClient::UnsubscribeDeviceEventOutcome VcsClient::unsubscribeDeviceEvent(const UnsubscribeDeviceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnsubscribeDeviceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnsubscribeDeviceEventOutcome(UnsubscribeDeviceEventResult(outcome.result()));
else
return UnsubscribeDeviceEventOutcome(outcome.error());
}
void VcsClient::unsubscribeDeviceEventAsync(const UnsubscribeDeviceEventRequest& request, const UnsubscribeDeviceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unsubscribeDeviceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::UnsubscribeDeviceEventOutcomeCallable VcsClient::unsubscribeDeviceEventCallable(const UnsubscribeDeviceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnsubscribeDeviceEventOutcome()>>(
[this, request]()
{
return this->unsubscribeDeviceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::UnsubscribeSpaceEventOutcome VcsClient::unsubscribeSpaceEvent(const UnsubscribeSpaceEventRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnsubscribeSpaceEventOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnsubscribeSpaceEventOutcome(UnsubscribeSpaceEventResult(outcome.result()));
else
return UnsubscribeSpaceEventOutcome(outcome.error());
}
void VcsClient::unsubscribeSpaceEventAsync(const UnsubscribeSpaceEventRequest& request, const UnsubscribeSpaceEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unsubscribeSpaceEvent(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::UnsubscribeSpaceEventOutcomeCallable VcsClient::unsubscribeSpaceEventCallable(const UnsubscribeSpaceEventRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnsubscribeSpaceEventOutcome()>>(
[this, request]()
{
return this->unsubscribeSpaceEvent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::UpdateCorpOutcome VcsClient::updateCorp(const UpdateCorpRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -93,6 +93,17 @@ void ListPersonTraceDetailsRequest::setPageSize(long pageSize)
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string ListPersonTraceDetailsRequest::getDataSourceId()const
{
return dataSourceId_;
}
void ListPersonTraceDetailsRequest::setDataSourceId(const std::string& dataSourceId)
{
dataSourceId_ = dataSourceId;
setBodyParameter("DataSourceId", dataSourceId);
}
std::string ListPersonTraceDetailsRequest::getPersonId()const
{
return personId_;

View File

@@ -43,14 +43,6 @@ void ListPersonTraceDetailsResult::parse(const std::string &payload)
for (auto valueDataDatas : allDataNode)
{
Datas dataObject;
if(!valueDataDatas["PageNumber"].isNull())
dataObject.pageNumber = std::stol(valueDataDatas["PageNumber"].asString());
if(!valueDataDatas["PageSize"].isNull())
dataObject.pageSize = std::stol(valueDataDatas["PageSize"].asString());
if(!valueDataDatas["TotalCount"].isNull())
dataObject.totalCount = std::stol(valueDataDatas["TotalCount"].asString());
if(!valueDataDatas["TotalPage"].isNull())
dataObject.totalPage = std::stol(valueDataDatas["TotalPage"].asString());
if(!valueDataDatas["TargetPicUrlPath"].isNull())
dataObject.targetPicUrlPath = valueDataDatas["TargetPicUrlPath"].asString();
if(!valueDataDatas["DataSourceId"].isNull())
@@ -79,14 +71,35 @@ void ListPersonTraceDetailsResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListPersonTraceDetailsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListPersonTraceDetailsResult::getMessage()const
{
return message_;
}
long ListPersonTraceDetailsResult::getPageSize()const
{
return pageSize_;
}
long ListPersonTraceDetailsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListPersonTraceDetailsResult::Datas> ListPersonTraceDetailsResult::getData()const
{
return data_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/ListSubscribeDeviceRequest.h>
using AlibabaCloud::Vcs::Model::ListSubscribeDeviceRequest;
ListSubscribeDeviceRequest::ListSubscribeDeviceRequest() :
RpcServiceRequest("vcs", "2020-05-15", "ListSubscribeDevice")
{
setMethod(HttpRequest::Method::Post);
}
ListSubscribeDeviceRequest::~ListSubscribeDeviceRequest()
{}
int ListSubscribeDeviceRequest::getPageSize()const
{
return pageSize_;
}
void ListSubscribeDeviceRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListSubscribeDeviceRequest::getPageNum()const
{
return pageNum_;
}
void ListSubscribeDeviceRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/ListSubscribeDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
ListSubscribeDeviceResult::ListSubscribeDeviceResult() :
ServiceResult()
{}
ListSubscribeDeviceResult::ListSubscribeDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSubscribeDeviceResult::~ListSubscribeDeviceResult()
{}
void ListSubscribeDeviceResult::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["TotalCount"].isNull())
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
auto allSubscribeListNode = dataNode["SubscribeList"]["SubscribeListItem"];
for (auto dataNodeSubscribeListSubscribeListItem : allSubscribeListNode)
{
Data::SubscribeListItem subscribeListItemObject;
if(!dataNodeSubscribeListSubscribeListItem["UserId"].isNull())
subscribeListItemObject.userId = dataNodeSubscribeListSubscribeListItem["UserId"].asString();
if(!dataNodeSubscribeListSubscribeListItem["DeviceId"].isNull())
subscribeListItemObject.deviceId = dataNodeSubscribeListSubscribeListItem["DeviceId"].asString();
if(!dataNodeSubscribeListSubscribeListItem["PushConfig"].isNull())
subscribeListItemObject.pushConfig = dataNodeSubscribeListSubscribeListItem["PushConfig"].asString();
if(!dataNodeSubscribeListSubscribeListItem["CreateTime"].isNull())
subscribeListItemObject.createTime = dataNodeSubscribeListSubscribeListItem["CreateTime"].asString();
if(!dataNodeSubscribeListSubscribeListItem["UpdateTime"].isNull())
subscribeListItemObject.updateTime = dataNodeSubscribeListSubscribeListItem["UpdateTime"].asString();
data_.subscribeList.push_back(subscribeListItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListSubscribeDeviceResult::getMessage()const
{
return message_;
}
ListSubscribeDeviceResult::Data ListSubscribeDeviceResult::getData()const
{
return data_;
}
std::string ListSubscribeDeviceResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/SubscribeDeviceEventRequest.h>
using AlibabaCloud::Vcs::Model::SubscribeDeviceEventRequest;
SubscribeDeviceEventRequest::SubscribeDeviceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "SubscribeDeviceEvent")
{
setMethod(HttpRequest::Method::Post);
}
SubscribeDeviceEventRequest::~SubscribeDeviceEventRequest()
{}
std::string SubscribeDeviceEventRequest::getPushConfig()const
{
return pushConfig_;
}
void SubscribeDeviceEventRequest::setPushConfig(const std::string& pushConfig)
{
pushConfig_ = pushConfig;
setParameter("PushConfig", pushConfig);
}
std::string SubscribeDeviceEventRequest::getDeviceId()const
{
return deviceId_;
}
void SubscribeDeviceEventRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}

View File

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

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/SubscribeSpaceEventRequest.h>
using AlibabaCloud::Vcs::Model::SubscribeSpaceEventRequest;
SubscribeSpaceEventRequest::SubscribeSpaceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "SubscribeSpaceEvent")
{
setMethod(HttpRequest::Method::Post);
}
SubscribeSpaceEventRequest::~SubscribeSpaceEventRequest()
{}
std::string SubscribeSpaceEventRequest::getSpaceId()const
{
return spaceId_;
}
void SubscribeSpaceEventRequest::setSpaceId(const std::string& spaceId)
{
spaceId_ = spaceId;
setParameter("SpaceId", spaceId);
}
std::string SubscribeSpaceEventRequest::getPushConfig()const
{
return pushConfig_;
}
void SubscribeSpaceEventRequest::setPushConfig(const std::string& pushConfig)
{
pushConfig_ = pushConfig;
setParameter("PushConfig", pushConfig);
}

View File

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

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/UnsubscribeDeviceEventRequest.h>
using AlibabaCloud::Vcs::Model::UnsubscribeDeviceEventRequest;
UnsubscribeDeviceEventRequest::UnsubscribeDeviceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "UnsubscribeDeviceEvent")
{
setMethod(HttpRequest::Method::Post);
}
UnsubscribeDeviceEventRequest::~UnsubscribeDeviceEventRequest()
{}
std::string UnsubscribeDeviceEventRequest::getDeviceId()const
{
return deviceId_;
}
void UnsubscribeDeviceEventRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
}

View File

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

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vcs/model/UnsubscribeSpaceEventRequest.h>
using AlibabaCloud::Vcs::Model::UnsubscribeSpaceEventRequest;
UnsubscribeSpaceEventRequest::UnsubscribeSpaceEventRequest() :
RpcServiceRequest("vcs", "2020-05-15", "UnsubscribeSpaceEvent")
{
setMethod(HttpRequest::Method::Post);
}
UnsubscribeSpaceEventRequest::~UnsubscribeSpaceEventRequest()
{}
std::string UnsubscribeSpaceEventRequest::getSpaceId()const
{
return spaceId_;
}
void UnsubscribeSpaceEventRequest::setSpaceId(const std::string& spaceId)
{
spaceId_ = spaceId;
setParameter("SpaceId", spaceId);
}

View File

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