diff --git a/CHANGELOG b/CHANGELOG index b11f9979d..0e3848013 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-13 Version: patch +- Generated 2018-12-12 for `vs`. + 2020-10-13 Version: patch - Release PedestrianDetectAttribute. diff --git a/vs/CMakeLists.txt b/vs/CMakeLists.txt index ebc1da338..bdce31525 100644 --- a/vs/CMakeLists.txt +++ b/vs/CMakeLists.txt @@ -165,6 +165,8 @@ set(vs_public_header_model include/alibabacloud/vs/model/DescribeVsDomainDetailResult.h include/alibabacloud/vs/model/DescribeVsDomainPvDataRequest.h include/alibabacloud/vs/model/DescribeVsDomainPvDataResult.h + include/alibabacloud/vs/model/DescribeVsDomainPvUvDataRequest.h + include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h include/alibabacloud/vs/model/DescribeVsDomainRecordDataRequest.h include/alibabacloud/vs/model/DescribeVsDomainRecordDataResult.h include/alibabacloud/vs/model/DescribeVsDomainRegionDataRequest.h @@ -404,6 +406,8 @@ set(vs_src src/model/DescribeVsDomainDetailResult.cc src/model/DescribeVsDomainPvDataRequest.cc src/model/DescribeVsDomainPvDataResult.cc + src/model/DescribeVsDomainPvUvDataRequest.cc + src/model/DescribeVsDomainPvUvDataResult.cc src/model/DescribeVsDomainRecordDataRequest.cc src/model/DescribeVsDomainRecordDataResult.cc src/model/DescribeVsDomainRegionDataRequest.cc diff --git a/vs/include/alibabacloud/vs/VsClient.h b/vs/include/alibabacloud/vs/VsClient.h index 6b5455205..5c208e972 100644 --- a/vs/include/alibabacloud/vs/VsClient.h +++ b/vs/include/alibabacloud/vs/VsClient.h @@ -166,6 +166,8 @@ #include "model/DescribeVsDomainDetailResult.h" #include "model/DescribeVsDomainPvDataRequest.h" #include "model/DescribeVsDomainPvDataResult.h" +#include "model/DescribeVsDomainPvUvDataRequest.h" +#include "model/DescribeVsDomainPvUvDataResult.h" #include "model/DescribeVsDomainRecordDataRequest.h" #include "model/DescribeVsDomainRecordDataResult.h" #include "model/DescribeVsDomainRegionDataRequest.h" @@ -483,6 +485,9 @@ namespace AlibabaCloud typedef Outcome DescribeVsDomainPvDataOutcome; typedef std::future DescribeVsDomainPvDataOutcomeCallable; typedef std::function&)> DescribeVsDomainPvDataAsyncHandler; + typedef Outcome DescribeVsDomainPvUvDataOutcome; + typedef std::future DescribeVsDomainPvUvDataOutcomeCallable; + typedef std::function&)> DescribeVsDomainPvUvDataAsyncHandler; typedef Outcome DescribeVsDomainRecordDataOutcome; typedef std::future DescribeVsDomainRecordDataOutcomeCallable; typedef std::function&)> DescribeVsDomainRecordDataAsyncHandler; @@ -842,6 +847,9 @@ namespace AlibabaCloud DescribeVsDomainPvDataOutcome describeVsDomainPvData(const Model::DescribeVsDomainPvDataRequest &request)const; void describeVsDomainPvDataAsync(const Model::DescribeVsDomainPvDataRequest& request, const DescribeVsDomainPvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVsDomainPvDataOutcomeCallable describeVsDomainPvDataCallable(const Model::DescribeVsDomainPvDataRequest& request) const; + DescribeVsDomainPvUvDataOutcome describeVsDomainPvUvData(const Model::DescribeVsDomainPvUvDataRequest &request)const; + void describeVsDomainPvUvDataAsync(const Model::DescribeVsDomainPvUvDataRequest& request, const DescribeVsDomainPvUvDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVsDomainPvUvDataOutcomeCallable describeVsDomainPvUvDataCallable(const Model::DescribeVsDomainPvUvDataRequest& request) const; DescribeVsDomainRecordDataOutcome describeVsDomainRecordData(const Model::DescribeVsDomainRecordDataRequest &request)const; void describeVsDomainRecordDataAsync(const Model::DescribeVsDomainRecordDataRequest& request, const DescribeVsDomainRecordDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVsDomainRecordDataOutcomeCallable describeVsDomainRecordDataCallable(const Model::DescribeVsDomainRecordDataRequest& request) const; diff --git a/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataRequest.h b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataRequest.h new file mode 100644 index 000000000..93606d1d2 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VS_MODEL_DESCRIBEVSDOMAINPVUVDATAREQUEST_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBEVSDOMAINPVUVDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeVsDomainPvUvDataRequest : public RpcServiceRequest + { + + public: + DescribeVsDomainPvUvDataRequest(); + ~DescribeVsDomainPvUvDataRequest(); + + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getShowLog()const; + void setShowLog(const std::string& showLog); + 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 showLog_; + std::string domainName_; + std::string endTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBEVSDOMAINPVUVDATAREQUEST_H_ \ No newline at end of file diff --git a/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h new file mode 100644 index 000000000..d3994eee0 --- /dev/null +++ b/vs/include/alibabacloud/vs/model/DescribeVsDomainPvUvDataResult.h @@ -0,0 +1,61 @@ +/* + * 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_VS_MODEL_DESCRIBEVSDOMAINPVUVDATARESULT_H_ +#define ALIBABACLOUD_VS_MODEL_DESCRIBEVSDOMAINPVUVDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Vs + { + namespace Model + { + class ALIBABACLOUD_VS_EXPORT DescribeVsDomainPvUvDataResult : public ServiceResult + { + public: + struct PvUvDataInfo + { + std::string uV; + std::string pV; + std::string timeStamp; + }; + + + DescribeVsDomainPvUvDataResult(); + explicit DescribeVsDomainPvUvDataResult(const std::string &payload); + ~DescribeVsDomainPvUvDataResult(); + std::string getDomainName()const; + std::string getStartTime()const; + std::vector getPvUvDataInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::string domainName_; + std::string startTime_; + std::vector pvUvDataInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_VS_MODEL_DESCRIBEVSDOMAINPVUVDATARESULT_H_ \ No newline at end of file diff --git a/vs/src/VsClient.cc b/vs/src/VsClient.cc index 217e97b28..58c51bd3e 100644 --- a/vs/src/VsClient.cc +++ b/vs/src/VsClient.cc @@ -2643,6 +2643,42 @@ VsClient::DescribeVsDomainPvDataOutcomeCallable VsClient::describeVsDomainPvData return task->get_future(); } +VsClient::DescribeVsDomainPvUvDataOutcome VsClient::describeVsDomainPvUvData(const DescribeVsDomainPvUvDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVsDomainPvUvDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVsDomainPvUvDataOutcome(DescribeVsDomainPvUvDataResult(outcome.result())); + else + return DescribeVsDomainPvUvDataOutcome(outcome.error()); +} + +void VsClient::describeVsDomainPvUvDataAsync(const DescribeVsDomainPvUvDataRequest& request, const DescribeVsDomainPvUvDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVsDomainPvUvData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +VsClient::DescribeVsDomainPvUvDataOutcomeCallable VsClient::describeVsDomainPvUvDataCallable(const DescribeVsDomainPvUvDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVsDomainPvUvData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + VsClient::DescribeVsDomainRecordDataOutcome VsClient::describeVsDomainRecordData(const DescribeVsDomainRecordDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/vs/src/model/DescribeVsDomainPvUvDataRequest.cc b/vs/src/model/DescribeVsDomainPvUvDataRequest.cc new file mode 100644 index 000000000..eb9c063e9 --- /dev/null +++ b/vs/src/model/DescribeVsDomainPvUvDataRequest.cc @@ -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 + +using AlibabaCloud::Vs::Model::DescribeVsDomainPvUvDataRequest; + +DescribeVsDomainPvUvDataRequest::DescribeVsDomainPvUvDataRequest() : + RpcServiceRequest("vs", "2018-12-12", "DescribeVsDomainPvUvData") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeVsDomainPvUvDataRequest::~DescribeVsDomainPvUvDataRequest() +{} + +std::string DescribeVsDomainPvUvDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeVsDomainPvUvDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeVsDomainPvUvDataRequest::getShowLog()const +{ + return showLog_; +} + +void DescribeVsDomainPvUvDataRequest::setShowLog(const std::string& showLog) +{ + showLog_ = showLog; + setParameter("ShowLog", showLog); +} + +std::string DescribeVsDomainPvUvDataRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeVsDomainPvUvDataRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +std::string DescribeVsDomainPvUvDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeVsDomainPvUvDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeVsDomainPvUvDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVsDomainPvUvDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/vs/src/model/DescribeVsDomainPvUvDataResult.cc b/vs/src/model/DescribeVsDomainPvUvDataResult.cc new file mode 100644 index 000000000..65df73231 --- /dev/null +++ b/vs/src/model/DescribeVsDomainPvUvDataResult.cc @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Vs; +using namespace AlibabaCloud::Vs::Model; + +DescribeVsDomainPvUvDataResult::DescribeVsDomainPvUvDataResult() : + ServiceResult() +{} + +DescribeVsDomainPvUvDataResult::DescribeVsDomainPvUvDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVsDomainPvUvDataResult::~DescribeVsDomainPvUvDataResult() +{} + +void DescribeVsDomainPvUvDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPvUvDataInfosNode = value["PvUvDataInfos"]["PvUvDataInfo"]; + for (auto valuePvUvDataInfosPvUvDataInfo : allPvUvDataInfosNode) + { + PvUvDataInfo pvUvDataInfosObject; + if(!valuePvUvDataInfosPvUvDataInfo["PV"].isNull()) + pvUvDataInfosObject.pV = valuePvUvDataInfosPvUvDataInfo["PV"].asString(); + if(!valuePvUvDataInfosPvUvDataInfo["UV"].isNull()) + pvUvDataInfosObject.uV = valuePvUvDataInfosPvUvDataInfo["UV"].asString(); + if(!valuePvUvDataInfosPvUvDataInfo["TimeStamp"].isNull()) + pvUvDataInfosObject.timeStamp = valuePvUvDataInfosPvUvDataInfo["TimeStamp"].asString(); + pvUvDataInfos_.push_back(pvUvDataInfosObject); + } + if(!value["DomainName"].isNull()) + domainName_ = value["DomainName"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + +} + +std::string DescribeVsDomainPvUvDataResult::getDomainName()const +{ + return domainName_; +} + +std::string DescribeVsDomainPvUvDataResult::getStartTime()const +{ + return startTime_; +} + +std::vector DescribeVsDomainPvUvDataResult::getPvUvDataInfos()const +{ + return pvUvDataInfos_; +} +