Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2020-10-13 03:06:08 +00:00
parent 1a9c4d4d9c
commit 4830e8821e
20 changed files with 1236 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
2020-10-13 Version: patch
- Generated 2016-11-01 for `live`.
2020-10-13 Version: patch
- Generated 2018-01-11 for `rtc`.

View File

@@ -37,6 +37,8 @@ set(live_public_header_model
include/alibabacloud/live/model/AddCasterVideoResourceResult.h
include/alibabacloud/live/model/AddCustomLiveStreamTranscodeRequest.h
include/alibabacloud/live/model/AddCustomLiveStreamTranscodeResult.h
include/alibabacloud/live/model/AddLiveASRConfigRequest.h
include/alibabacloud/live/model/AddLiveASRConfigResult.h
include/alibabacloud/live/model/AddLiveAppRecordConfigRequest.h
include/alibabacloud/live/model/AddLiveAppRecordConfigResult.h
include/alibabacloud/live/model/AddLiveAppSnapshotConfigRequest.h
@@ -119,6 +121,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DeleteCasterVideoResourceResult.h
include/alibabacloud/live/model/DeleteHtmlResourceRequest.h
include/alibabacloud/live/model/DeleteHtmlResourceResult.h
include/alibabacloud/live/model/DeleteLiveASRConfigRequest.h
include/alibabacloud/live/model/DeleteLiveASRConfigResult.h
include/alibabacloud/live/model/DeleteLiveAppRecordConfigRequest.h
include/alibabacloud/live/model/DeleteLiveAppRecordConfigResult.h
include/alibabacloud/live/model/DeleteLiveAppSnapshotConfigRequest.h
@@ -191,6 +195,8 @@ set(live_public_header_model
include/alibabacloud/live/model/DescribeHlsLiveStreamRealTimeBpsDataResult.h
include/alibabacloud/live/model/DescribeHtmlResourceRequest.h
include/alibabacloud/live/model/DescribeHtmlResourceResult.h
include/alibabacloud/live/model/DescribeLiveAsrConfigRequest.h
include/alibabacloud/live/model/DescribeLiveAsrConfigResult.h
include/alibabacloud/live/model/DescribeLiveAudioAuditConfigRequest.h
include/alibabacloud/live/model/DescribeLiveAudioAuditConfigResult.h
include/alibabacloud/live/model/DescribeLiveAudioAuditNotifyConfigRequest.h
@@ -421,6 +427,8 @@ set(live_public_header_model
include/alibabacloud/live/model/UpdateCasterSceneAudioResult.h
include/alibabacloud/live/model/UpdateCasterSceneConfigRequest.h
include/alibabacloud/live/model/UpdateCasterSceneConfigResult.h
include/alibabacloud/live/model/UpdateLiveASRConfigRequest.h
include/alibabacloud/live/model/UpdateLiveASRConfigResult.h
include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigRequest.h
include/alibabacloud/live/model/UpdateLiveAppSnapshotConfigResult.h
include/alibabacloud/live/model/UpdateLiveAudioAuditConfigRequest.h
@@ -456,6 +464,8 @@ set(live_src
src/model/AddCasterVideoResourceResult.cc
src/model/AddCustomLiveStreamTranscodeRequest.cc
src/model/AddCustomLiveStreamTranscodeResult.cc
src/model/AddLiveASRConfigRequest.cc
src/model/AddLiveASRConfigResult.cc
src/model/AddLiveAppRecordConfigRequest.cc
src/model/AddLiveAppRecordConfigResult.cc
src/model/AddLiveAppSnapshotConfigRequest.cc
@@ -538,6 +548,8 @@ set(live_src
src/model/DeleteCasterVideoResourceResult.cc
src/model/DeleteHtmlResourceRequest.cc
src/model/DeleteHtmlResourceResult.cc
src/model/DeleteLiveASRConfigRequest.cc
src/model/DeleteLiveASRConfigResult.cc
src/model/DeleteLiveAppRecordConfigRequest.cc
src/model/DeleteLiveAppRecordConfigResult.cc
src/model/DeleteLiveAppSnapshotConfigRequest.cc
@@ -610,6 +622,8 @@ set(live_src
src/model/DescribeHlsLiveStreamRealTimeBpsDataResult.cc
src/model/DescribeHtmlResourceRequest.cc
src/model/DescribeHtmlResourceResult.cc
src/model/DescribeLiveAsrConfigRequest.cc
src/model/DescribeLiveAsrConfigResult.cc
src/model/DescribeLiveAudioAuditConfigRequest.cc
src/model/DescribeLiveAudioAuditConfigResult.cc
src/model/DescribeLiveAudioAuditNotifyConfigRequest.cc
@@ -840,6 +854,8 @@ set(live_src
src/model/UpdateCasterSceneAudioResult.cc
src/model/UpdateCasterSceneConfigRequest.cc
src/model/UpdateCasterSceneConfigResult.cc
src/model/UpdateLiveASRConfigRequest.cc
src/model/UpdateLiveASRConfigResult.cc
src/model/UpdateLiveAppSnapshotConfigRequest.cc
src/model/UpdateLiveAppSnapshotConfigResult.cc
src/model/UpdateLiveAudioAuditConfigRequest.cc

View File

@@ -38,6 +38,8 @@
#include "model/AddCasterVideoResourceResult.h"
#include "model/AddCustomLiveStreamTranscodeRequest.h"
#include "model/AddCustomLiveStreamTranscodeResult.h"
#include "model/AddLiveASRConfigRequest.h"
#include "model/AddLiveASRConfigResult.h"
#include "model/AddLiveAppRecordConfigRequest.h"
#include "model/AddLiveAppRecordConfigResult.h"
#include "model/AddLiveAppSnapshotConfigRequest.h"
@@ -120,6 +122,8 @@
#include "model/DeleteCasterVideoResourceResult.h"
#include "model/DeleteHtmlResourceRequest.h"
#include "model/DeleteHtmlResourceResult.h"
#include "model/DeleteLiveASRConfigRequest.h"
#include "model/DeleteLiveASRConfigResult.h"
#include "model/DeleteLiveAppRecordConfigRequest.h"
#include "model/DeleteLiveAppRecordConfigResult.h"
#include "model/DeleteLiveAppSnapshotConfigRequest.h"
@@ -192,6 +196,8 @@
#include "model/DescribeHlsLiveStreamRealTimeBpsDataResult.h"
#include "model/DescribeHtmlResourceRequest.h"
#include "model/DescribeHtmlResourceResult.h"
#include "model/DescribeLiveAsrConfigRequest.h"
#include "model/DescribeLiveAsrConfigResult.h"
#include "model/DescribeLiveAudioAuditConfigRequest.h"
#include "model/DescribeLiveAudioAuditConfigResult.h"
#include "model/DescribeLiveAudioAuditNotifyConfigRequest.h"
@@ -422,6 +428,8 @@
#include "model/UpdateCasterSceneAudioResult.h"
#include "model/UpdateCasterSceneConfigRequest.h"
#include "model/UpdateCasterSceneConfigResult.h"
#include "model/UpdateLiveASRConfigRequest.h"
#include "model/UpdateLiveASRConfigResult.h"
#include "model/UpdateLiveAppSnapshotConfigRequest.h"
#include "model/UpdateLiveAppSnapshotConfigResult.h"
#include "model/UpdateLiveAudioAuditConfigRequest.h"
@@ -471,6 +479,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddCustomLiveStreamTranscodeResult> AddCustomLiveStreamTranscodeOutcome;
typedef std::future<AddCustomLiveStreamTranscodeOutcome> AddCustomLiveStreamTranscodeOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddCustomLiveStreamTranscodeRequest&, const AddCustomLiveStreamTranscodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCustomLiveStreamTranscodeAsyncHandler;
typedef Outcome<Error, Model::AddLiveASRConfigResult> AddLiveASRConfigOutcome;
typedef std::future<AddLiveASRConfigOutcome> AddLiveASRConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddLiveASRConfigRequest&, const AddLiveASRConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLiveASRConfigAsyncHandler;
typedef Outcome<Error, Model::AddLiveAppRecordConfigResult> AddLiveAppRecordConfigOutcome;
typedef std::future<AddLiveAppRecordConfigOutcome> AddLiveAppRecordConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::AddLiveAppRecordConfigRequest&, const AddLiveAppRecordConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddLiveAppRecordConfigAsyncHandler;
@@ -594,6 +605,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteHtmlResourceResult> DeleteHtmlResourceOutcome;
typedef std::future<DeleteHtmlResourceOutcome> DeleteHtmlResourceOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DeleteHtmlResourceRequest&, const DeleteHtmlResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHtmlResourceAsyncHandler;
typedef Outcome<Error, Model::DeleteLiveASRConfigResult> DeleteLiveASRConfigOutcome;
typedef std::future<DeleteLiveASRConfigOutcome> DeleteLiveASRConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DeleteLiveASRConfigRequest&, const DeleteLiveASRConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLiveASRConfigAsyncHandler;
typedef Outcome<Error, Model::DeleteLiveAppRecordConfigResult> DeleteLiveAppRecordConfigOutcome;
typedef std::future<DeleteLiveAppRecordConfigOutcome> DeleteLiveAppRecordConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DeleteLiveAppRecordConfigRequest&, const DeleteLiveAppRecordConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLiveAppRecordConfigAsyncHandler;
@@ -702,6 +716,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeHtmlResourceResult> DescribeHtmlResourceOutcome;
typedef std::future<DescribeHtmlResourceOutcome> DescribeHtmlResourceOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeHtmlResourceRequest&, const DescribeHtmlResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHtmlResourceAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveAsrConfigResult> DescribeLiveAsrConfigOutcome;
typedef std::future<DescribeLiveAsrConfigOutcome> DescribeLiveAsrConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveAsrConfigRequest&, const DescribeLiveAsrConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveAsrConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeLiveAudioAuditConfigResult> DescribeLiveAudioAuditConfigOutcome;
typedef std::future<DescribeLiveAudioAuditConfigOutcome> DescribeLiveAudioAuditConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::DescribeLiveAudioAuditConfigRequest&, const DescribeLiveAudioAuditConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLiveAudioAuditConfigAsyncHandler;
@@ -1047,6 +1064,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateCasterSceneConfigResult> UpdateCasterSceneConfigOutcome;
typedef std::future<UpdateCasterSceneConfigOutcome> UpdateCasterSceneConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateCasterSceneConfigRequest&, const UpdateCasterSceneConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCasterSceneConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateLiveASRConfigResult> UpdateLiveASRConfigOutcome;
typedef std::future<UpdateLiveASRConfigOutcome> UpdateLiveASRConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveASRConfigRequest&, const UpdateLiveASRConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveASRConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateLiveAppSnapshotConfigResult> UpdateLiveAppSnapshotConfigOutcome;
typedef std::future<UpdateLiveAppSnapshotConfigOutcome> UpdateLiveAppSnapshotConfigOutcomeCallable;
typedef std::function<void(const LiveClient*, const Model::UpdateLiveAppSnapshotConfigRequest&, const UpdateLiveAppSnapshotConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLiveAppSnapshotConfigAsyncHandler;
@@ -1100,6 +1120,9 @@ namespace AlibabaCloud
AddCustomLiveStreamTranscodeOutcome addCustomLiveStreamTranscode(const Model::AddCustomLiveStreamTranscodeRequest &request)const;
void addCustomLiveStreamTranscodeAsync(const Model::AddCustomLiveStreamTranscodeRequest& request, const AddCustomLiveStreamTranscodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddCustomLiveStreamTranscodeOutcomeCallable addCustomLiveStreamTranscodeCallable(const Model::AddCustomLiveStreamTranscodeRequest& request) const;
AddLiveASRConfigOutcome addLiveASRConfig(const Model::AddLiveASRConfigRequest &request)const;
void addLiveASRConfigAsync(const Model::AddLiveASRConfigRequest& request, const AddLiveASRConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLiveASRConfigOutcomeCallable addLiveASRConfigCallable(const Model::AddLiveASRConfigRequest& request) const;
AddLiveAppRecordConfigOutcome addLiveAppRecordConfig(const Model::AddLiveAppRecordConfigRequest &request)const;
void addLiveAppRecordConfigAsync(const Model::AddLiveAppRecordConfigRequest& request, const AddLiveAppRecordConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddLiveAppRecordConfigOutcomeCallable addLiveAppRecordConfigCallable(const Model::AddLiveAppRecordConfigRequest& request) const;
@@ -1223,6 +1246,9 @@ namespace AlibabaCloud
DeleteHtmlResourceOutcome deleteHtmlResource(const Model::DeleteHtmlResourceRequest &request)const;
void deleteHtmlResourceAsync(const Model::DeleteHtmlResourceRequest& request, const DeleteHtmlResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteHtmlResourceOutcomeCallable deleteHtmlResourceCallable(const Model::DeleteHtmlResourceRequest& request) const;
DeleteLiveASRConfigOutcome deleteLiveASRConfig(const Model::DeleteLiveASRConfigRequest &request)const;
void deleteLiveASRConfigAsync(const Model::DeleteLiveASRConfigRequest& request, const DeleteLiveASRConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLiveASRConfigOutcomeCallable deleteLiveASRConfigCallable(const Model::DeleteLiveASRConfigRequest& request) const;
DeleteLiveAppRecordConfigOutcome deleteLiveAppRecordConfig(const Model::DeleteLiveAppRecordConfigRequest &request)const;
void deleteLiveAppRecordConfigAsync(const Model::DeleteLiveAppRecordConfigRequest& request, const DeleteLiveAppRecordConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLiveAppRecordConfigOutcomeCallable deleteLiveAppRecordConfigCallable(const Model::DeleteLiveAppRecordConfigRequest& request) const;
@@ -1331,6 +1357,9 @@ namespace AlibabaCloud
DescribeHtmlResourceOutcome describeHtmlResource(const Model::DescribeHtmlResourceRequest &request)const;
void describeHtmlResourceAsync(const Model::DescribeHtmlResourceRequest& request, const DescribeHtmlResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeHtmlResourceOutcomeCallable describeHtmlResourceCallable(const Model::DescribeHtmlResourceRequest& request) const;
DescribeLiveAsrConfigOutcome describeLiveAsrConfig(const Model::DescribeLiveAsrConfigRequest &request)const;
void describeLiveAsrConfigAsync(const Model::DescribeLiveAsrConfigRequest& request, const DescribeLiveAsrConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveAsrConfigOutcomeCallable describeLiveAsrConfigCallable(const Model::DescribeLiveAsrConfigRequest& request) const;
DescribeLiveAudioAuditConfigOutcome describeLiveAudioAuditConfig(const Model::DescribeLiveAudioAuditConfigRequest &request)const;
void describeLiveAudioAuditConfigAsync(const Model::DescribeLiveAudioAuditConfigRequest& request, const DescribeLiveAudioAuditConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLiveAudioAuditConfigOutcomeCallable describeLiveAudioAuditConfigCallable(const Model::DescribeLiveAudioAuditConfigRequest& request) const;
@@ -1676,6 +1705,9 @@ namespace AlibabaCloud
UpdateCasterSceneConfigOutcome updateCasterSceneConfig(const Model::UpdateCasterSceneConfigRequest &request)const;
void updateCasterSceneConfigAsync(const Model::UpdateCasterSceneConfigRequest& request, const UpdateCasterSceneConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCasterSceneConfigOutcomeCallable updateCasterSceneConfigCallable(const Model::UpdateCasterSceneConfigRequest& request) const;
UpdateLiveASRConfigOutcome updateLiveASRConfig(const Model::UpdateLiveASRConfigRequest &request)const;
void updateLiveASRConfigAsync(const Model::UpdateLiveASRConfigRequest& request, const UpdateLiveASRConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveASRConfigOutcomeCallable updateLiveASRConfigCallable(const Model::UpdateLiveASRConfigRequest& request) const;
UpdateLiveAppSnapshotConfigOutcome updateLiveAppSnapshotConfig(const Model::UpdateLiveAppSnapshotConfigRequest &request)const;
void updateLiveAppSnapshotConfigAsync(const Model::UpdateLiveAppSnapshotConfigRequest& request, const UpdateLiveAppSnapshotConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLiveAppSnapshotConfigOutcomeCallable updateLiveAppSnapshotConfigCallable(const Model::UpdateLiveAppSnapshotConfigRequest& request) const;

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_LIVE_MODEL_ADDLIVEASRCONFIGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT AddLiveASRConfigRequest : public RpcServiceRequest
{
public:
AddLiveASRConfigRequest();
~AddLiveASRConfigRequest();
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getMnsTopic()const;
void setMnsTopic(const std::string& mnsTopic);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
int getPeriod()const;
void setPeriod(int period);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getHttpCallbackURL()const;
void setHttpCallbackURL(const std::string& httpCallbackURL);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getMnsRegion()const;
void setMnsRegion(const std::string& mnsRegion);
private:
std::string appName_;
std::string mnsTopic_;
std::string streamName_;
int period_;
std::string domainName_;
std::string httpCallbackURL_;
long ownerId_;
std::string mnsRegion_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_LIVE_MODEL_ADDLIVEASRCONFIGRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT AddLiveASRConfigResult : public ServiceResult
{
public:
AddLiveASRConfigResult();
explicit AddLiveASRConfigResult(const std::string &payload);
~AddLiveASRConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_ADDLIVEASRCONFIGRESULT_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_LIVE_MODEL_DELETELIVEASRCONFIGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DeleteLiveASRConfigRequest : public RpcServiceRequest
{
public:
DeleteLiveASRConfigRequest();
~DeleteLiveASRConfigRequest();
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string appName_;
std::string streamName_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_LIVE_MODEL_DELETELIVEASRCONFIGRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DeleteLiveASRConfigResult : public ServiceResult
{
public:
DeleteLiveASRConfigResult();
explicit DeleteLiveASRConfigResult(const std::string &payload);
~DeleteLiveASRConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DELETELIVEASRCONFIGRESULT_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_LIVE_MODEL_DESCRIBELIVEASRCONFIGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DescribeLiveAsrConfigRequest : public RpcServiceRequest
{
public:
DescribeLiveAsrConfigRequest();
~DescribeLiveAsrConfigRequest();
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getOwnerId()const;
void setOwnerId(long ownerId);
private:
std::string appName_;
std::string streamName_;
std::string domainName_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGREQUEST_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_LIVE_MODEL_DESCRIBELIVEASRCONFIGRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT DescribeLiveAsrConfigResult : public ServiceResult
{
public:
struct LiveAsrConfigList
{
std::string streamName;
std::string mnsTopic;
std::string httpCallbackURL;
int domainName;
std::string mnsRegion;
int period;
std::string appName;
};
DescribeLiveAsrConfigResult();
explicit DescribeLiveAsrConfigResult(const std::string &payload);
~DescribeLiveAsrConfigResult();
std::vector<LiveAsrConfigList> getLiveAsrConfig()const;
protected:
void parse(const std::string &payload);
private:
std::vector<LiveAsrConfigList> liveAsrConfig_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_DESCRIBELIVEASRCONFIGRESULT_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_LIVE_MODEL_UPDATELIVEASRCONFIGREQUEST_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT UpdateLiveASRConfigRequest : public RpcServiceRequest
{
public:
UpdateLiveASRConfigRequest();
~UpdateLiveASRConfigRequest();
std::string getAppName()const;
void setAppName(const std::string& appName);
std::string getMnsTopic()const;
void setMnsTopic(const std::string& mnsTopic);
std::string getStreamName()const;
void setStreamName(const std::string& streamName);
int getPeriod()const;
void setPeriod(int period);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getHttpCallbackURL()const;
void setHttpCallbackURL(const std::string& httpCallbackURL);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getMnsRegion()const;
void setMnsRegion(const std::string& mnsRegion);
private:
std::string appName_;
std::string mnsTopic_;
std::string streamName_;
int period_;
std::string domainName_;
std::string httpCallbackURL_;
long ownerId_;
std::string mnsRegion_;
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_LIVE_MODEL_UPDATELIVEASRCONFIGRESULT_H_
#define ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/live/LiveExport.h>
namespace AlibabaCloud
{
namespace Live
{
namespace Model
{
class ALIBABACLOUD_LIVE_EXPORT UpdateLiveASRConfigResult : public ServiceResult
{
public:
UpdateLiveASRConfigResult();
explicit UpdateLiveASRConfigResult(const std::string &payload);
~UpdateLiveASRConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_LIVE_MODEL_UPDATELIVEASRCONFIGRESULT_H_

View File

@@ -339,6 +339,42 @@ LiveClient::AddCustomLiveStreamTranscodeOutcomeCallable LiveClient::addCustomLiv
return task->get_future();
}
LiveClient::AddLiveASRConfigOutcome LiveClient::addLiveASRConfig(const AddLiveASRConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddLiveASRConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddLiveASRConfigOutcome(AddLiveASRConfigResult(outcome.result()));
else
return AddLiveASRConfigOutcome(outcome.error());
}
void LiveClient::addLiveASRConfigAsync(const AddLiveASRConfigRequest& request, const AddLiveASRConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addLiveASRConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::AddLiveASRConfigOutcomeCallable LiveClient::addLiveASRConfigCallable(const AddLiveASRConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddLiveASRConfigOutcome()>>(
[this, request]()
{
return this->addLiveASRConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::AddLiveAppRecordConfigOutcome LiveClient::addLiveAppRecordConfig(const AddLiveAppRecordConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1815,6 +1851,42 @@ LiveClient::DeleteHtmlResourceOutcomeCallable LiveClient::deleteHtmlResourceCall
return task->get_future();
}
LiveClient::DeleteLiveASRConfigOutcome LiveClient::deleteLiveASRConfig(const DeleteLiveASRConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLiveASRConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLiveASRConfigOutcome(DeleteLiveASRConfigResult(outcome.result()));
else
return DeleteLiveASRConfigOutcome(outcome.error());
}
void LiveClient::deleteLiveASRConfigAsync(const DeleteLiveASRConfigRequest& request, const DeleteLiveASRConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLiveASRConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeleteLiveASRConfigOutcomeCallable LiveClient::deleteLiveASRConfigCallable(const DeleteLiveASRConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLiveASRConfigOutcome()>>(
[this, request]()
{
return this->deleteLiveASRConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeleteLiveAppRecordConfigOutcome LiveClient::deleteLiveAppRecordConfig(const DeleteLiveAppRecordConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3111,6 +3183,42 @@ LiveClient::DescribeHtmlResourceOutcomeCallable LiveClient::describeHtmlResource
return task->get_future();
}
LiveClient::DescribeLiveAsrConfigOutcome LiveClient::describeLiveAsrConfig(const DescribeLiveAsrConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveAsrConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveAsrConfigOutcome(DescribeLiveAsrConfigResult(outcome.result()));
else
return DescribeLiveAsrConfigOutcome(outcome.error());
}
void LiveClient::describeLiveAsrConfigAsync(const DescribeLiveAsrConfigRequest& request, const DescribeLiveAsrConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveAsrConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveAsrConfigOutcomeCallable LiveClient::describeLiveAsrConfigCallable(const DescribeLiveAsrConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveAsrConfigOutcome()>>(
[this, request]()
{
return this->describeLiveAsrConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveAudioAuditConfigOutcome LiveClient::describeLiveAudioAuditConfig(const DescribeLiveAudioAuditConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7251,6 +7359,42 @@ LiveClient::UpdateCasterSceneConfigOutcomeCallable LiveClient::updateCasterScene
return task->get_future();
}
LiveClient::UpdateLiveASRConfigOutcome LiveClient::updateLiveASRConfig(const UpdateLiveASRConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLiveASRConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLiveASRConfigOutcome(UpdateLiveASRConfigResult(outcome.result()));
else
return UpdateLiveASRConfigOutcome(outcome.error());
}
void LiveClient::updateLiveASRConfigAsync(const UpdateLiveASRConfigRequest& request, const UpdateLiveASRConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLiveASRConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateLiveASRConfigOutcomeCallable LiveClient::updateLiveASRConfigCallable(const UpdateLiveASRConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLiveASRConfigOutcome()>>(
[this, request]()
{
return this->updateLiveASRConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UpdateLiveAppSnapshotConfigOutcome LiveClient::updateLiveAppSnapshotConfig(const UpdateLiveAppSnapshotConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,117 @@
/*
* 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/live/model/AddLiveASRConfigRequest.h>
using AlibabaCloud::Live::Model::AddLiveASRConfigRequest;
AddLiveASRConfigRequest::AddLiveASRConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "AddLiveASRConfig")
{
setMethod(HttpRequest::Method::Post);
}
AddLiveASRConfigRequest::~AddLiveASRConfigRequest()
{}
std::string AddLiveASRConfigRequest::getAppName()const
{
return appName_;
}
void AddLiveASRConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string AddLiveASRConfigRequest::getMnsTopic()const
{
return mnsTopic_;
}
void AddLiveASRConfigRequest::setMnsTopic(const std::string& mnsTopic)
{
mnsTopic_ = mnsTopic;
setParameter("MnsTopic", mnsTopic);
}
std::string AddLiveASRConfigRequest::getStreamName()const
{
return streamName_;
}
void AddLiveASRConfigRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
int AddLiveASRConfigRequest::getPeriod()const
{
return period_;
}
void AddLiveASRConfigRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string AddLiveASRConfigRequest::getDomainName()const
{
return domainName_;
}
void AddLiveASRConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string AddLiveASRConfigRequest::getHttpCallbackURL()const
{
return httpCallbackURL_;
}
void AddLiveASRConfigRequest::setHttpCallbackURL(const std::string& httpCallbackURL)
{
httpCallbackURL_ = httpCallbackURL;
setParameter("HttpCallbackURL", httpCallbackURL);
}
long AddLiveASRConfigRequest::getOwnerId()const
{
return ownerId_;
}
void AddLiveASRConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddLiveASRConfigRequest::getMnsRegion()const
{
return mnsRegion_;
}
void AddLiveASRConfigRequest::setMnsRegion(const std::string& mnsRegion)
{
mnsRegion_ = mnsRegion;
setParameter("MnsRegion", mnsRegion);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/live/model/AddLiveASRConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddLiveASRConfigResult::AddLiveASRConfigResult() :
ServiceResult()
{}
AddLiveASRConfigResult::AddLiveASRConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddLiveASRConfigResult::~AddLiveASRConfigResult()
{}
void AddLiveASRConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* 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/live/model/DeleteLiveASRConfigRequest.h>
using AlibabaCloud::Live::Model::DeleteLiveASRConfigRequest;
DeleteLiveASRConfigRequest::DeleteLiveASRConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "DeleteLiveASRConfig")
{
setMethod(HttpRequest::Method::Post);
}
DeleteLiveASRConfigRequest::~DeleteLiveASRConfigRequest()
{}
std::string DeleteLiveASRConfigRequest::getAppName()const
{
return appName_;
}
void DeleteLiveASRConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DeleteLiveASRConfigRequest::getStreamName()const
{
return streamName_;
}
void DeleteLiveASRConfigRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string DeleteLiveASRConfigRequest::getDomainName()const
{
return domainName_;
}
void DeleteLiveASRConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteLiveASRConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveASRConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,44 @@
/*
* 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/live/model/DeleteLiveASRConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DeleteLiveASRConfigResult::DeleteLiveASRConfigResult() :
ServiceResult()
{}
DeleteLiveASRConfigResult::DeleteLiveASRConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLiveASRConfigResult::~DeleteLiveASRConfigResult()
{}
void DeleteLiveASRConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,73 @@
/*
* 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/live/model/DescribeLiveAsrConfigRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveAsrConfigRequest;
DescribeLiveAsrConfigRequest::DescribeLiveAsrConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveAsrConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveAsrConfigRequest::~DescribeLiveAsrConfigRequest()
{}
std::string DescribeLiveAsrConfigRequest::getAppName()const
{
return appName_;
}
void DescribeLiveAsrConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DescribeLiveAsrConfigRequest::getStreamName()const
{
return streamName_;
}
void DescribeLiveAsrConfigRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string DescribeLiveAsrConfigRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveAsrConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLiveAsrConfigRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveAsrConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

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.
*/
#include <alibabacloud/live/model/DescribeLiveAsrConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveAsrConfigResult::DescribeLiveAsrConfigResult() :
ServiceResult()
{}
DescribeLiveAsrConfigResult::DescribeLiveAsrConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveAsrConfigResult::~DescribeLiveAsrConfigResult()
{}
void DescribeLiveAsrConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveAsrConfigNode = value["LiveAsrConfig"]["LiveAsrConfigList"];
for (auto valueLiveAsrConfigLiveAsrConfigList : allLiveAsrConfigNode)
{
LiveAsrConfigList liveAsrConfigObject;
if(!valueLiveAsrConfigLiveAsrConfigList["DomainName"].isNull())
liveAsrConfigObject.domainName = std::stoi(valueLiveAsrConfigLiveAsrConfigList["DomainName"].asString());
if(!valueLiveAsrConfigLiveAsrConfigList["AppName"].isNull())
liveAsrConfigObject.appName = valueLiveAsrConfigLiveAsrConfigList["AppName"].asString();
if(!valueLiveAsrConfigLiveAsrConfigList["StreamName"].isNull())
liveAsrConfigObject.streamName = valueLiveAsrConfigLiveAsrConfigList["StreamName"].asString();
if(!valueLiveAsrConfigLiveAsrConfigList["Period"].isNull())
liveAsrConfigObject.period = std::stoi(valueLiveAsrConfigLiveAsrConfigList["Period"].asString());
if(!valueLiveAsrConfigLiveAsrConfigList["MnsTopic"].isNull())
liveAsrConfigObject.mnsTopic = valueLiveAsrConfigLiveAsrConfigList["MnsTopic"].asString();
if(!valueLiveAsrConfigLiveAsrConfigList["MnsRegion"].isNull())
liveAsrConfigObject.mnsRegion = valueLiveAsrConfigLiveAsrConfigList["MnsRegion"].asString();
if(!valueLiveAsrConfigLiveAsrConfigList["HttpCallbackURL"].isNull())
liveAsrConfigObject.httpCallbackURL = valueLiveAsrConfigLiveAsrConfigList["HttpCallbackURL"].asString();
liveAsrConfig_.push_back(liveAsrConfigObject);
}
}
std::vector<DescribeLiveAsrConfigResult::LiveAsrConfigList> DescribeLiveAsrConfigResult::getLiveAsrConfig()const
{
return liveAsrConfig_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/live/model/UpdateLiveASRConfigRequest.h>
using AlibabaCloud::Live::Model::UpdateLiveASRConfigRequest;
UpdateLiveASRConfigRequest::UpdateLiveASRConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "UpdateLiveASRConfig")
{
setMethod(HttpRequest::Method::Post);
}
UpdateLiveASRConfigRequest::~UpdateLiveASRConfigRequest()
{}
std::string UpdateLiveASRConfigRequest::getAppName()const
{
return appName_;
}
void UpdateLiveASRConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string UpdateLiveASRConfigRequest::getMnsTopic()const
{
return mnsTopic_;
}
void UpdateLiveASRConfigRequest::setMnsTopic(const std::string& mnsTopic)
{
mnsTopic_ = mnsTopic;
setParameter("MnsTopic", mnsTopic);
}
std::string UpdateLiveASRConfigRequest::getStreamName()const
{
return streamName_;
}
void UpdateLiveASRConfigRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
int UpdateLiveASRConfigRequest::getPeriod()const
{
return period_;
}
void UpdateLiveASRConfigRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
std::string UpdateLiveASRConfigRequest::getDomainName()const
{
return domainName_;
}
void UpdateLiveASRConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string UpdateLiveASRConfigRequest::getHttpCallbackURL()const
{
return httpCallbackURL_;
}
void UpdateLiveASRConfigRequest::setHttpCallbackURL(const std::string& httpCallbackURL)
{
httpCallbackURL_ = httpCallbackURL;
setParameter("HttpCallbackURL", httpCallbackURL);
}
long UpdateLiveASRConfigRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateLiveASRConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateLiveASRConfigRequest::getMnsRegion()const
{
return mnsRegion_;
}
void UpdateLiveASRConfigRequest::setMnsRegion(const std::string& mnsRegion)
{
mnsRegion_ = mnsRegion;
setParameter("MnsRegion", mnsRegion);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/live/model/UpdateLiveASRConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
UpdateLiveASRConfigResult::UpdateLiveASRConfigResult() :
ServiceResult()
{}
UpdateLiveASRConfigResult::UpdateLiveASRConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateLiveASRConfigResult::~UpdateLiveASRConfigResult()
{}
void UpdateLiveASRConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}