ClearDeviceDesiredProperty open Api.

This commit is contained in:
sdk-team
2023-01-13 03:58:52 +00:00
parent e174ddcab8
commit cf26b726ed
20 changed files with 528 additions and 9 deletions

View File

@@ -124,6 +124,8 @@
#include "model/CancelReleaseProductResult.h"
#include "model/CheckBindLicenseDeviceProgressRequest.h"
#include "model/CheckBindLicenseDeviceProgressResult.h"
#include "model/ClearDeviceDesiredPropertyRequest.h"
#include "model/ClearDeviceDesiredPropertyResult.h"
#include "model/ClearEdgeInstanceDriverConfigsRequest.h"
#include "model/ClearEdgeInstanceDriverConfigsResult.h"
#include "model/CloseDeviceTunnelRequest.h"
@@ -972,6 +974,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CheckBindLicenseDeviceProgressResult> CheckBindLicenseDeviceProgressOutcome;
typedef std::future<CheckBindLicenseDeviceProgressOutcome> CheckBindLicenseDeviceProgressOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CheckBindLicenseDeviceProgressRequest&, const CheckBindLicenseDeviceProgressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckBindLicenseDeviceProgressAsyncHandler;
typedef Outcome<Error, Model::ClearDeviceDesiredPropertyResult> ClearDeviceDesiredPropertyOutcome;
typedef std::future<ClearDeviceDesiredPropertyOutcome> ClearDeviceDesiredPropertyOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ClearDeviceDesiredPropertyRequest&, const ClearDeviceDesiredPropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClearDeviceDesiredPropertyAsyncHandler;
typedef Outcome<Error, Model::ClearEdgeInstanceDriverConfigsResult> ClearEdgeInstanceDriverConfigsOutcome;
typedef std::future<ClearEdgeInstanceDriverConfigsOutcome> ClearEdgeInstanceDriverConfigsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ClearEdgeInstanceDriverConfigsRequest&, const ClearEdgeInstanceDriverConfigsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ClearEdgeInstanceDriverConfigsAsyncHandler;
@@ -2159,6 +2164,9 @@ namespace AlibabaCloud
CheckBindLicenseDeviceProgressOutcome checkBindLicenseDeviceProgress(const Model::CheckBindLicenseDeviceProgressRequest &request)const;
void checkBindLicenseDeviceProgressAsync(const Model::CheckBindLicenseDeviceProgressRequest& request, const CheckBindLicenseDeviceProgressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CheckBindLicenseDeviceProgressOutcomeCallable checkBindLicenseDeviceProgressCallable(const Model::CheckBindLicenseDeviceProgressRequest& request) const;
ClearDeviceDesiredPropertyOutcome clearDeviceDesiredProperty(const Model::ClearDeviceDesiredPropertyRequest &request)const;
void clearDeviceDesiredPropertyAsync(const Model::ClearDeviceDesiredPropertyRequest& request, const ClearDeviceDesiredPropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ClearDeviceDesiredPropertyOutcomeCallable clearDeviceDesiredPropertyCallable(const Model::ClearDeviceDesiredPropertyRequest& request) const;
ClearEdgeInstanceDriverConfigsOutcome clearEdgeInstanceDriverConfigs(const Model::ClearEdgeInstanceDriverConfigsRequest &request)const;
void clearEdgeInstanceDriverConfigsAsync(const Model::ClearEdgeInstanceDriverConfigsRequest& request, const ClearEdgeInstanceDriverConfigsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ClearEdgeInstanceDriverConfigsOutcomeCallable clearEdgeInstanceDriverConfigsCallable(const Model::ClearEdgeInstanceDriverConfigsRequest& request) const;

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_CLEARDEVICEDESIREDPROPERTYREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_CLEARDEVICEDESIREDPROPERTYREQUEST_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 ClearDeviceDesiredPropertyRequest : public RpcServiceRequest
{
public:
ClearDeviceDesiredPropertyRequest();
~ClearDeviceDesiredPropertyRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::vector<std::string> getIdentifies()const;
void setIdentifies(const std::vector<std::string>& identifies);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::string getDeviceName()const;
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotId_;
std::string iotInstanceId_;
std::vector<std::string> identifies_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_CLEARDEVICEDESIREDPROPERTYREQUEST_H_

View File

@@ -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_IOT_MODEL_CLEARDEVICEDESIREDPROPERTYRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_CLEARDEVICEDESIREDPROPERTYRESULT_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 ClearDeviceDesiredPropertyResult : public ServiceResult
{
public:
struct Data
{
std::string versions;
};
ClearDeviceDesiredPropertyResult();
explicit ClearDeviceDesiredPropertyResult(const std::string &payload);
~ClearDeviceDesiredPropertyResult();
Data getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
Data data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_CLEARDEVICEDESIREDPROPERTYRESULT_H_

View File

@@ -65,6 +65,8 @@ namespace AlibabaCloud
void setFoundDeviceListFlag(bool foundDeviceListFlag);
bool getOtaJobFlag()const;
void setOtaJobFlag(bool otaJobFlag);
std::string getSubscribeFlags()const;
void setSubscribeFlags(const std::string& subscribeFlags);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
bool getDeviceDataFlag()const;
@@ -90,6 +92,7 @@ namespace AlibabaCloud
bool thingHistoryFlag_;
bool foundDeviceListFlag_;
bool otaJobFlag_;
std::string subscribeFlags_;
std::string apiProduct_;
bool deviceDataFlag_;
std::string apiRevision_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
CreateThingScriptRequest();
~CreateThingScriptRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getScriptType()const;
@@ -49,6 +53,8 @@ namespace AlibabaCloud
void setScriptContent(const std::string& scriptContent);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string scriptType_;
std::string productKey_;

View File

@@ -35,18 +35,24 @@ namespace AlibabaCloud
GetThingScriptRequest();
~GetThingScriptRequest();
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string productKey_;
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
std::string getCode()const;
bool getSuccess()const;
bool getThingHistoryFlag()const;
std::string getSubscribeFlags()const;
std::string getType()const;
bool getFoundDeviceListFlag()const;
bool getOtaJobFlag()const;
@@ -67,6 +68,7 @@ namespace AlibabaCloud
std::string code_;
bool success_;
bool thingHistoryFlag_;
std::string subscribeFlags_;
std::string type_;
bool foundDeviceListFlag_;
bool otaJobFlag_;

View File

@@ -61,6 +61,8 @@ namespace AlibabaCloud
void setFoundDeviceListFlag(bool foundDeviceListFlag);
bool getOtaJobFlag()const;
void setOtaJobFlag(bool otaJobFlag);
std::string getSubscribeFlags()const;
void setSubscribeFlags(const std::string& subscribeFlags);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
bool getDeviceDataFlag()const;
@@ -84,6 +86,7 @@ namespace AlibabaCloud
bool thingHistoryFlag_;
bool foundDeviceListFlag_;
bool otaJobFlag_;
std::string subscribeFlags_;
std::string apiProduct_;
bool deviceDataFlag_;
std::string apiRevision_;

View File

@@ -35,6 +35,10 @@ namespace AlibabaCloud
UpdateThingScriptRequest();
~UpdateThingScriptRequest();
std::string getRealTenantId()const;
void setRealTenantId(const std::string& realTenantId);
std::string getRealTripartiteKey()const;
void setRealTripartiteKey(const std::string& realTripartiteKey);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getScriptType()const;
@@ -49,6 +53,8 @@ namespace AlibabaCloud
void setScriptContent(const std::string& scriptContent);
private:
std::string realTenantId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string scriptType_;
std::string productKey_;