Iot_20180120 TeaDSL SDK.

This commit is contained in:
sdk-team
2023-03-06 11:19:16 +00:00
parent 159a3aa236
commit eb9e915503
14 changed files with 630 additions and 4 deletions

View File

@@ -362,6 +362,8 @@
#include "model/GetRuleActionResult.h"
#include "model/GetSceneRuleRequest.h"
#include "model/GetSceneRuleResult.h"
#include "model/GetShareSpeechModelAudioRequest.h"
#include "model/GetShareSpeechModelAudioResult.h"
#include "model/GetShareTaskByDeviceOpenRequest.h"
#include "model/GetShareTaskByDeviceOpenResult.h"
#include "model/GetSoundCodeAudioRequest.h"
@@ -632,6 +634,8 @@
#include "model/QuerySpeechResult.h"
#include "model/QuerySpeechDeviceRequest.h"
#include "model/QuerySpeechDeviceResult.h"
#include "model/QuerySpeechLicenseAvailableQuotaRequest.h"
#include "model/QuerySpeechLicenseAvailableQuotaResult.h"
#include "model/QuerySpeechLicenseDeviceListRequest.h"
#include "model/QuerySpeechLicenseDeviceListResult.h"
#include "model/QuerySpeechListRequest.h"
@@ -1335,6 +1339,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetSceneRuleResult> GetSceneRuleOutcome;
typedef std::future<GetSceneRuleOutcome> GetSceneRuleOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::GetSceneRuleRequest&, const GetSceneRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSceneRuleAsyncHandler;
typedef Outcome<Error, Model::GetShareSpeechModelAudioResult> GetShareSpeechModelAudioOutcome;
typedef std::future<GetShareSpeechModelAudioOutcome> GetShareSpeechModelAudioOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::GetShareSpeechModelAudioRequest&, const GetShareSpeechModelAudioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetShareSpeechModelAudioAsyncHandler;
typedef Outcome<Error, Model::GetShareTaskByDeviceOpenResult> GetShareTaskByDeviceOpenOutcome;
typedef std::future<GetShareTaskByDeviceOpenOutcome> GetShareTaskByDeviceOpenOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::GetShareTaskByDeviceOpenRequest&, const GetShareTaskByDeviceOpenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetShareTaskByDeviceOpenAsyncHandler;
@@ -1740,6 +1747,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QuerySpeechDeviceResult> QuerySpeechDeviceOutcome;
typedef std::future<QuerySpeechDeviceOutcome> QuerySpeechDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QuerySpeechDeviceRequest&, const QuerySpeechDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySpeechDeviceAsyncHandler;
typedef Outcome<Error, Model::QuerySpeechLicenseAvailableQuotaResult> QuerySpeechLicenseAvailableQuotaOutcome;
typedef std::future<QuerySpeechLicenseAvailableQuotaOutcome> QuerySpeechLicenseAvailableQuotaOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QuerySpeechLicenseAvailableQuotaRequest&, const QuerySpeechLicenseAvailableQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySpeechLicenseAvailableQuotaAsyncHandler;
typedef Outcome<Error, Model::QuerySpeechLicenseDeviceListResult> QuerySpeechLicenseDeviceListOutcome;
typedef std::future<QuerySpeechLicenseDeviceListOutcome> QuerySpeechLicenseDeviceListOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QuerySpeechLicenseDeviceListRequest&, const QuerySpeechLicenseDeviceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySpeechLicenseDeviceListAsyncHandler;
@@ -2531,6 +2541,9 @@ namespace AlibabaCloud
GetSceneRuleOutcome getSceneRule(const Model::GetSceneRuleRequest &request)const;
void getSceneRuleAsync(const Model::GetSceneRuleRequest& request, const GetSceneRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSceneRuleOutcomeCallable getSceneRuleCallable(const Model::GetSceneRuleRequest& request) const;
GetShareSpeechModelAudioOutcome getShareSpeechModelAudio(const Model::GetShareSpeechModelAudioRequest &request)const;
void getShareSpeechModelAudioAsync(const Model::GetShareSpeechModelAudioRequest& request, const GetShareSpeechModelAudioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetShareSpeechModelAudioOutcomeCallable getShareSpeechModelAudioCallable(const Model::GetShareSpeechModelAudioRequest& request) const;
GetShareTaskByDeviceOpenOutcome getShareTaskByDeviceOpen(const Model::GetShareTaskByDeviceOpenRequest &request)const;
void getShareTaskByDeviceOpenAsync(const Model::GetShareTaskByDeviceOpenRequest& request, const GetShareTaskByDeviceOpenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetShareTaskByDeviceOpenOutcomeCallable getShareTaskByDeviceOpenCallable(const Model::GetShareTaskByDeviceOpenRequest& request) const;
@@ -2936,6 +2949,9 @@ namespace AlibabaCloud
QuerySpeechDeviceOutcome querySpeechDevice(const Model::QuerySpeechDeviceRequest &request)const;
void querySpeechDeviceAsync(const Model::QuerySpeechDeviceRequest& request, const QuerySpeechDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySpeechDeviceOutcomeCallable querySpeechDeviceCallable(const Model::QuerySpeechDeviceRequest& request) const;
QuerySpeechLicenseAvailableQuotaOutcome querySpeechLicenseAvailableQuota(const Model::QuerySpeechLicenseAvailableQuotaRequest &request)const;
void querySpeechLicenseAvailableQuotaAsync(const Model::QuerySpeechLicenseAvailableQuotaRequest& request, const QuerySpeechLicenseAvailableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySpeechLicenseAvailableQuotaOutcomeCallable querySpeechLicenseAvailableQuotaCallable(const Model::QuerySpeechLicenseAvailableQuotaRequest& request) const;
QuerySpeechLicenseDeviceListOutcome querySpeechLicenseDeviceList(const Model::QuerySpeechLicenseDeviceListRequest &request)const;
void querySpeechLicenseDeviceListAsync(const Model::QuerySpeechLicenseDeviceListRequest& request, const QuerySpeechLicenseDeviceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QuerySpeechLicenseDeviceListOutcomeCallable querySpeechLicenseDeviceListCallable(const Model::QuerySpeechLicenseDeviceListRequest& request) const;

View File

@@ -34,8 +34,11 @@ namespace AlibabaCloud
public:
struct Data
{
std::string failedResultCsvFile;
int progress;
std::string progressId;
int failSum;
int successSum;
};

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_IOT_MODEL_GETSHARESPEECHMODELAUDIOREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_GETSHARESPEECHMODELAUDIOREQUEST_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 GetShareSpeechModelAudioRequest : public RpcServiceRequest
{
public:
GetShareSpeechModelAudioRequest();
~GetShareSpeechModelAudioRequest();
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getShareTaskId()const;
void setShareTaskId(const std::string& shareTaskId);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
std::vector<std::string> getSpeechModelCodeList()const;
void setSpeechModelCodeList(const std::vector<std::string>& speechModelCodeList);
private:
std::string iotInstanceId_;
std::string shareTaskId_;
std::string apiProduct_;
std::string apiRevision_;
std::vector<std::string> speechModelCodeList_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_GETSHARESPEECHMODELAUDIOREQUEST_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_GETSHARESPEECHMODELAUDIORESULT_H_
#define ALIBABACLOUD_IOT_MODEL_GETSHARESPEECHMODELAUDIORESULT_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 GetShareSpeechModelAudioResult : public ServiceResult
{
public:
GetShareSpeechModelAudioResult();
explicit GetShareSpeechModelAudioResult(const std::string &payload);
~GetShareSpeechModelAudioResult();
std::vector<std::string> getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_GETSHARESPEECHMODELAUDIORESULT_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_QUERYSPEECHLICENSEAVAILABLEQUOTAREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEAVAILABLEQUOTAREQUEST_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 QuerySpeechLicenseAvailableQuotaRequest : public RpcServiceRequest
{
public:
QuerySpeechLicenseAvailableQuotaRequest();
~QuerySpeechLicenseAvailableQuotaRequest();
std::string getIotInstanceId()const;
void setIotInstanceId(const std::string& iotInstanceId);
std::string getApiProduct()const;
void setApiProduct(const std::string& apiProduct);
std::string getApiRevision()const;
void setApiRevision(const std::string& apiRevision);
private:
std::string iotInstanceId_;
std::string apiProduct_;
std::string apiRevision_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEAVAILABLEQUOTAREQUEST_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_QUERYSPEECHLICENSEAVAILABLEQUOTARESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEAVAILABLEQUOTARESULT_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 QuerySpeechLicenseAvailableQuotaResult : public ServiceResult
{
public:
QuerySpeechLicenseAvailableQuotaResult();
explicit QuerySpeechLicenseAvailableQuotaResult(const std::string &payload);
~QuerySpeechLicenseAvailableQuotaResult();
long getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYSPEECHLICENSEAVAILABLEQUOTARESULT_H_