Add Api ResetDeviceTimeline.

This commit is contained in:
sdk-team
2023-09-25 03:02:02 +00:00
parent 5021fa7e0a
commit 7eb4574903
16 changed files with 695 additions and 1 deletions

View File

@@ -632,6 +632,8 @@
#include "model/QuerySceneRuleResult.h"
#include "model/QuerySchedulePeriodListRequest.h"
#include "model/QuerySchedulePeriodListResult.h"
#include "model/QueryShareProductNameByProductKeyRequest.h"
#include "model/QueryShareProductNameByProductKeyResult.h"
#include "model/QuerySharePromotionActivityAuditResultRequest.h"
#include "model/QuerySharePromotionActivityAuditResultResult.h"
#include "model/QueryShareTaskDeviceListRequest.h"
@@ -722,6 +724,8 @@
#include "model/RerunJobResult.h"
#include "model/ResetConsumerGroupPositionRequest.h"
#include "model/ResetConsumerGroupPositionResult.h"
#include "model/ResetDeviceTimelineRequest.h"
#include "model/ResetDeviceTimelineResult.h"
#include "model/ResetThingRequest.h"
#include "model/ResetThingResult.h"
#include "model/RetrySoundCodeLabelBatchRequest.h"
@@ -1766,6 +1770,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QuerySchedulePeriodListResult> QuerySchedulePeriodListOutcome;
typedef std::future<QuerySchedulePeriodListOutcome> QuerySchedulePeriodListOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QuerySchedulePeriodListRequest&, const QuerySchedulePeriodListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySchedulePeriodListAsyncHandler;
typedef Outcome<Error, Model::QueryShareProductNameByProductKeyResult> QueryShareProductNameByProductKeyOutcome;
typedef std::future<QueryShareProductNameByProductKeyOutcome> QueryShareProductNameByProductKeyOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryShareProductNameByProductKeyRequest&, const QueryShareProductNameByProductKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryShareProductNameByProductKeyAsyncHandler;
typedef Outcome<Error, Model::QuerySharePromotionActivityAuditResultResult> QuerySharePromotionActivityAuditResultOutcome;
typedef std::future<QuerySharePromotionActivityAuditResultOutcome> QuerySharePromotionActivityAuditResultOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QuerySharePromotionActivityAuditResultRequest&, const QuerySharePromotionActivityAuditResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySharePromotionActivityAuditResultAsyncHandler;
@@ -1901,6 +1908,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ResetConsumerGroupPositionResult> ResetConsumerGroupPositionOutcome;
typedef std::future<ResetConsumerGroupPositionOutcome> ResetConsumerGroupPositionOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ResetConsumerGroupPositionRequest&, const ResetConsumerGroupPositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetConsumerGroupPositionAsyncHandler;
typedef Outcome<Error, Model::ResetDeviceTimelineResult> ResetDeviceTimelineOutcome;
typedef std::future<ResetDeviceTimelineOutcome> ResetDeviceTimelineOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ResetDeviceTimelineRequest&, const ResetDeviceTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetDeviceTimelineAsyncHandler;
typedef Outcome<Error, Model::ResetThingResult> ResetThingOutcome;
typedef std::future<ResetThingOutcome> ResetThingOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ResetThingRequest&, const ResetThingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetThingAsyncHandler;
@@ -3001,6 +3011,9 @@ namespace AlibabaCloud
QuerySchedulePeriodListOutcome querySchedulePeriodList(const Model::QuerySchedulePeriodListRequest &request)const;
void querySchedulePeriodListAsync(const Model::QuerySchedulePeriodListRequest& request, const QuerySchedulePeriodListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySchedulePeriodListOutcomeCallable querySchedulePeriodListCallable(const Model::QuerySchedulePeriodListRequest& request) const;
QueryShareProductNameByProductKeyOutcome queryShareProductNameByProductKey(const Model::QueryShareProductNameByProductKeyRequest &request)const;
void queryShareProductNameByProductKeyAsync(const Model::QueryShareProductNameByProductKeyRequest& request, const QueryShareProductNameByProductKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryShareProductNameByProductKeyOutcomeCallable queryShareProductNameByProductKeyCallable(const Model::QueryShareProductNameByProductKeyRequest& request) const;
QuerySharePromotionActivityAuditResultOutcome querySharePromotionActivityAuditResult(const Model::QuerySharePromotionActivityAuditResultRequest &request)const;
void querySharePromotionActivityAuditResultAsync(const Model::QuerySharePromotionActivityAuditResultRequest& request, const QuerySharePromotionActivityAuditResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySharePromotionActivityAuditResultOutcomeCallable querySharePromotionActivityAuditResultCallable(const Model::QuerySharePromotionActivityAuditResultRequest& request) const;
@@ -3136,6 +3149,9 @@ namespace AlibabaCloud
ResetConsumerGroupPositionOutcome resetConsumerGroupPosition(const Model::ResetConsumerGroupPositionRequest &request)const;
void resetConsumerGroupPositionAsync(const Model::ResetConsumerGroupPositionRequest& request, const ResetConsumerGroupPositionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetConsumerGroupPositionOutcomeCallable resetConsumerGroupPositionCallable(const Model::ResetConsumerGroupPositionRequest& request) const;
ResetDeviceTimelineOutcome resetDeviceTimeline(const Model::ResetDeviceTimelineRequest &request)const;
void resetDeviceTimelineAsync(const Model::ResetDeviceTimelineRequest& request, const ResetDeviceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetDeviceTimelineOutcomeCallable resetDeviceTimelineCallable(const Model::ResetDeviceTimelineRequest& request) const;
ResetThingOutcome resetThing(const Model::ResetThingRequest &request)const;
void resetThingAsync(const Model::ResetThingRequest& request, const ResetThingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ResetThingOutcomeCallable resetThingCallable(const Model::ResetThingRequest& request) const;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getQos()const;
void setQos(int qos);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getIdentifier()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
private:
std::string accessKeyId_;
int qos_;
std::string iotInstanceId_;
std::string identifier_;
std::string productKey_;

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_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYREQUEST_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 QueryShareProductNameByProductKeyRequest : public RpcServiceRequest
{
public:
QueryShareProductNameByProductKeyRequest();
~QueryShareProductNameByProductKeyRequest();
std::string getShareTaskCode()const;
void setShareTaskCode(const std::string& shareTaskCode);
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 shareTaskCode_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYREQUEST_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_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYRESULT_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 QueryShareProductNameByProductKeyResult : public ServiceResult
{
public:
struct Data
{
std::string productName;
};
QueryShareProductNameByProductKeyResult();
explicit QueryShareProductNameByProductKeyResult(const std::string &payload);
~QueryShareProductNameByProductKeyResult();
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_QUERYSHAREPRODUCTNAMEBYPRODUCTKEYRESULT_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_IOT_MODEL_RESETDEVICETIMELINEREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINEREQUEST_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 ResetDeviceTimelineRequest : public RpcServiceRequest
{
public:
ResetDeviceTimelineRequest();
~ResetDeviceTimelineRequest();
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 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);
std::string getDeviceName()const;
void setDeviceName(const std::string& deviceName);
private:
std::string realTenantId_;
std::string accessKeyId_;
std::string realTripartiteKey_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;
std::string apiRevision_;
std::string deviceName_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINEREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_RESETDEVICETIMELINERESULT_H_
#define ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINERESULT_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 ResetDeviceTimelineResult : public ServiceResult
{
public:
ResetDeviceTimelineResult();
explicit ResetDeviceTimelineResult(const std::string &payload);
~ResetDeviceTimelineResult();
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_RESETDEVICETIMELINERESULT_H_

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
int getQos()const;
void setQos(int qos);
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getProductKey()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
private:
std::string accessKeyId_;
int qos_;
std::string iotInstanceId_;
std::string productKey_;
std::string apiProduct_;