Iot_20180120 old version sdk.

This commit is contained in:
sdk-team
2022-03-25 02:41:56 +00:00
parent fe5dcd30f9
commit 51a7c5171c
13 changed files with 590 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2022-03-25 Version: 1.36.1090
- Iot_20180120 old version sdk.
2022-03-24 Version: 1.36.1089
- Supported CreateLakeHouseSpace,AddLhMembers,DeleteLhMembers,ListLhTaskFlowAndScenario,ChangeLhDagOwner,ReDeployLhDagVersion API.

View File

@@ -1 +1 @@
1.36.1089
1.36.1090

View File

@@ -543,6 +543,10 @@ set(iot_public_header_model
include/alibabacloud/iot/model/QueryTopicRouteTableResult.h
include/alibabacloud/iot/model/RRpcRequest.h
include/alibabacloud/iot/model/RRpcResult.h
include/alibabacloud/iot/model/RecognizeCarNumRequest.h
include/alibabacloud/iot/model/RecognizeCarNumResult.h
include/alibabacloud/iot/model/RecognizePictureGeneralRequest.h
include/alibabacloud/iot/model/RecognizePictureGeneralResult.h
include/alibabacloud/iot/model/RefreshDeviceTunnelSharePasswordRequest.h
include/alibabacloud/iot/model/RefreshDeviceTunnelSharePasswordResult.h
include/alibabacloud/iot/model/RefreshStudioAppTokenOpenRequest.h
@@ -1174,6 +1178,10 @@ set(iot_src
src/model/QueryTopicRouteTableResult.cc
src/model/RRpcRequest.cc
src/model/RRpcResult.cc
src/model/RecognizeCarNumRequest.cc
src/model/RecognizeCarNumResult.cc
src/model/RecognizePictureGeneralRequest.cc
src/model/RecognizePictureGeneralResult.cc
src/model/RefreshDeviceTunnelSharePasswordRequest.cc
src/model/RefreshDeviceTunnelSharePasswordResult.cc
src/model/RefreshStudioAppTokenOpenRequest.cc

View File

@@ -544,6 +544,10 @@
#include "model/QueryTopicRouteTableResult.h"
#include "model/RRpcRequest.h"
#include "model/RRpcResult.h"
#include "model/RecognizeCarNumRequest.h"
#include "model/RecognizeCarNumResult.h"
#include "model/RecognizePictureGeneralRequest.h"
#include "model/RecognizePictureGeneralResult.h"
#include "model/RefreshDeviceTunnelSharePasswordRequest.h"
#include "model/RefreshDeviceTunnelSharePasswordResult.h"
#include "model/RefreshStudioAppTokenOpenRequest.h"
@@ -1442,6 +1446,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RRpcResult> RRpcOutcome;
typedef std::future<RRpcOutcome> RRpcOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::RRpcRequest&, const RRpcOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RRpcAsyncHandler;
typedef Outcome<Error, Model::RecognizeCarNumResult> RecognizeCarNumOutcome;
typedef std::future<RecognizeCarNumOutcome> RecognizeCarNumOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::RecognizeCarNumRequest&, const RecognizeCarNumOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeCarNumAsyncHandler;
typedef Outcome<Error, Model::RecognizePictureGeneralResult> RecognizePictureGeneralOutcome;
typedef std::future<RecognizePictureGeneralOutcome> RecognizePictureGeneralOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::RecognizePictureGeneralRequest&, const RecognizePictureGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizePictureGeneralAsyncHandler;
typedef Outcome<Error, Model::RefreshDeviceTunnelSharePasswordResult> RefreshDeviceTunnelSharePasswordOutcome;
typedef std::future<RefreshDeviceTunnelSharePasswordOutcome> RefreshDeviceTunnelSharePasswordOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::RefreshDeviceTunnelSharePasswordRequest&, const RefreshDeviceTunnelSharePasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshDeviceTunnelSharePasswordAsyncHandler;
@@ -2389,6 +2399,12 @@ namespace AlibabaCloud
RRpcOutcome rRpc(const Model::RRpcRequest &request)const;
void rRpcAsync(const Model::RRpcRequest& request, const RRpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RRpcOutcomeCallable rRpcCallable(const Model::RRpcRequest& request) const;
RecognizeCarNumOutcome recognizeCarNum(const Model::RecognizeCarNumRequest &request)const;
void recognizeCarNumAsync(const Model::RecognizeCarNumRequest& request, const RecognizeCarNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecognizeCarNumOutcomeCallable recognizeCarNumCallable(const Model::RecognizeCarNumRequest& request) const;
RecognizePictureGeneralOutcome recognizePictureGeneral(const Model::RecognizePictureGeneralRequest &request)const;
void recognizePictureGeneralAsync(const Model::RecognizePictureGeneralRequest& request, const RecognizePictureGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecognizePictureGeneralOutcomeCallable recognizePictureGeneralCallable(const Model::RecognizePictureGeneralRequest& request) const;
RefreshDeviceTunnelSharePasswordOutcome refreshDeviceTunnelSharePassword(const Model::RefreshDeviceTunnelSharePasswordRequest &request)const;
void refreshDeviceTunnelSharePasswordAsync(const Model::RefreshDeviceTunnelSharePasswordRequest& request, const RefreshDeviceTunnelSharePasswordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RefreshDeviceTunnelSharePasswordOutcomeCallable refreshDeviceTunnelSharePasswordCallable(const Model::RefreshDeviceTunnelSharePasswordRequest& request) const;

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_IOT_MODEL_RECOGNIZECARNUMREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_RECOGNIZECARNUMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT RecognizeCarNumRequest : public RpcServiceRequest
{
public:
RecognizeCarNumRequest();
~RecognizeCarNumRequest();
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string url_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_RECOGNIZECARNUMREQUEST_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_IOT_MODEL_RECOGNIZECARNUMRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_RECOGNIZECARNUMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT RecognizeCarNumResult : public ServiceResult
{
public:
RecognizeCarNumResult();
explicit RecognizeCarNumResult(const std::string &payload);
~RecognizeCarNumResult();
std::string getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_RECOGNIZECARNUMRESULT_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_IOT_MODEL_RECOGNIZEPICTUREGENERALREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_RECOGNIZEPICTUREGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT RecognizePictureGeneralRequest : public RpcServiceRequest
{
public:
RecognizePictureGeneralRequest();
~RecognizePictureGeneralRequest();
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string url_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_RECOGNIZEPICTUREGENERALREQUEST_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_IOT_MODEL_RECOGNIZEPICTUREGENERALRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_RECOGNIZEPICTUREGENERALRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT RecognizePictureGeneralResult : public ServiceResult
{
public:
RecognizePictureGeneralResult();
explicit RecognizePictureGeneralResult(const std::string &payload);
~RecognizePictureGeneralResult();
std::string getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_RECOGNIZEPICTUREGENERALRESULT_H_

View File

@@ -9447,6 +9447,78 @@ IotClient::RRpcOutcomeCallable IotClient::rRpcCallable(const RRpcRequest &reques
return task->get_future();
}
IotClient::RecognizeCarNumOutcome IotClient::recognizeCarNum(const RecognizeCarNumRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizeCarNumOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizeCarNumOutcome(RecognizeCarNumResult(outcome.result()));
else
return RecognizeCarNumOutcome(outcome.error());
}
void IotClient::recognizeCarNumAsync(const RecognizeCarNumRequest& request, const RecognizeCarNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizeCarNum(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::RecognizeCarNumOutcomeCallable IotClient::recognizeCarNumCallable(const RecognizeCarNumRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizeCarNumOutcome()>>(
[this, request]()
{
return this->recognizeCarNum(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::RecognizePictureGeneralOutcome IotClient::recognizePictureGeneral(const RecognizePictureGeneralRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RecognizePictureGeneralOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RecognizePictureGeneralOutcome(RecognizePictureGeneralResult(outcome.result()));
else
return RecognizePictureGeneralOutcome(outcome.error());
}
void IotClient::recognizePictureGeneralAsync(const RecognizePictureGeneralRequest& request, const RecognizePictureGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, recognizePictureGeneral(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::RecognizePictureGeneralOutcomeCallable IotClient::recognizePictureGeneralCallable(const RecognizePictureGeneralRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RecognizePictureGeneralOutcome()>>(
[this, request]()
{
return this->recognizePictureGeneral(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::RefreshDeviceTunnelSharePasswordOutcome IotClient::refreshDeviceTunnelSharePassword(const RefreshDeviceTunnelSharePasswordRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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/iot/model/RecognizeCarNumRequest.h>
using AlibabaCloud::Iot::Model::RecognizeCarNumRequest;
RecognizeCarNumRequest::RecognizeCarNumRequest() :
RpcServiceRequest("iot", "2018-01-20", "RecognizeCarNum")
{
setMethod(HttpRequest::Method::Post);
}
RecognizeCarNumRequest::~RecognizeCarNumRequest()
{}
std::string RecognizeCarNumRequest::getUrl()const
{
return url_;
}
void RecognizeCarNumRequest::setUrl(const std::string& url)
{
url_ = url;
setParameter("Url", url);
}
std::string RecognizeCarNumRequest::getApiProduct()const
{
return apiProduct_;
}
void RecognizeCarNumRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string RecognizeCarNumRequest::getApiRevision()const
{
return apiRevision_;
}
void RecognizeCarNumRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/iot/model/RecognizeCarNumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
RecognizeCarNumResult::RecognizeCarNumResult() :
ServiceResult()
{}
RecognizeCarNumResult::RecognizeCarNumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizeCarNumResult::~RecognizeCarNumResult()
{}
void RecognizeCarNumResult::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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string RecognizeCarNumResult::getData()const
{
return data_;
}
std::string RecognizeCarNumResult::getErrorMessage()const
{
return errorMessage_;
}
std::string RecognizeCarNumResult::getCode()const
{
return code_;
}
bool RecognizeCarNumResult::getSuccess()const
{
return success_;
}

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/iot/model/RecognizePictureGeneralRequest.h>
using AlibabaCloud::Iot::Model::RecognizePictureGeneralRequest;
RecognizePictureGeneralRequest::RecognizePictureGeneralRequest() :
RpcServiceRequest("iot", "2018-01-20", "RecognizePictureGeneral")
{
setMethod(HttpRequest::Method::Post);
}
RecognizePictureGeneralRequest::~RecognizePictureGeneralRequest()
{}
std::string RecognizePictureGeneralRequest::getUrl()const
{
return url_;
}
void RecognizePictureGeneralRequest::setUrl(const std::string& url)
{
url_ = url;
setParameter("Url", url);
}
std::string RecognizePictureGeneralRequest::getApiProduct()const
{
return apiProduct_;
}
void RecognizePictureGeneralRequest::setApiProduct(const std::string& apiProduct)
{
apiProduct_ = apiProduct;
setBodyParameter("ApiProduct", apiProduct);
}
std::string RecognizePictureGeneralRequest::getApiRevision()const
{
return apiRevision_;
}
void RecognizePictureGeneralRequest::setApiRevision(const std::string& apiRevision)
{
apiRevision_ = apiRevision;
setBodyParameter("ApiRevision", apiRevision);
}

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/iot/model/RecognizePictureGeneralResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
RecognizePictureGeneralResult::RecognizePictureGeneralResult() :
ServiceResult()
{}
RecognizePictureGeneralResult::RecognizePictureGeneralResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RecognizePictureGeneralResult::~RecognizePictureGeneralResult()
{}
void RecognizePictureGeneralResult::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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string RecognizePictureGeneralResult::getData()const
{
return data_;
}
std::string RecognizePictureGeneralResult::getErrorMessage()const
{
return errorMessage_;
}
std::string RecognizePictureGeneralResult::getCode()const
{
return code_;
}
bool RecognizePictureGeneralResult::getSuccess()const
{
return success_;
}