Supported Stream analyse.

This commit is contained in:
sdk-team
2019-11-13 20:41:28 +08:00
parent 27cd07c728
commit 5d643e91c9
78 changed files with 598 additions and 70 deletions

View File

@@ -44,6 +44,8 @@
#include "model/CreateOfficeConversionTaskResult.h"
#include "model/CreateSetRequest.h"
#include "model/CreateSetResult.h"
#include "model/CreateStreamAnalyseTaskRequest.h"
#include "model/CreateStreamAnalyseTaskResult.h"
#include "model/CreateVideoAbstractTaskRequest.h"
#include "model/CreateVideoAbstractTaskResult.h"
#include "model/CreateVideoAnalyseTaskRequest.h"
@@ -202,6 +204,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateSetResult> CreateSetOutcome;
typedef std::future<CreateSetOutcome> CreateSetOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::CreateSetRequest&, const CreateSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSetAsyncHandler;
typedef Outcome<Error, Model::CreateStreamAnalyseTaskResult> CreateStreamAnalyseTaskOutcome;
typedef std::future<CreateStreamAnalyseTaskOutcome> CreateStreamAnalyseTaskOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::CreateStreamAnalyseTaskRequest&, const CreateStreamAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateStreamAnalyseTaskAsyncHandler;
typedef Outcome<Error, Model::CreateVideoAbstractTaskResult> CreateVideoAbstractTaskOutcome;
typedef std::future<CreateVideoAbstractTaskOutcome> CreateVideoAbstractTaskOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::CreateVideoAbstractTaskRequest&, const CreateVideoAbstractTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoAbstractTaskAsyncHandler;
@@ -414,6 +419,9 @@ namespace AlibabaCloud
CreateSetOutcome createSet(const Model::CreateSetRequest &request)const;
void createSetAsync(const Model::CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSetOutcomeCallable createSetCallable(const Model::CreateSetRequest& request) const;
CreateStreamAnalyseTaskOutcome createStreamAnalyseTask(const Model::CreateStreamAnalyseTaskRequest &request)const;
void createStreamAnalyseTaskAsync(const Model::CreateStreamAnalyseTaskRequest& request, const CreateStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateStreamAnalyseTaskOutcomeCallable createStreamAnalyseTaskCallable(const Model::CreateStreamAnalyseTaskRequest& request) const;
CreateVideoAbstractTaskOutcome createVideoAbstractTask(const Model::CreateVideoAbstractTaskRequest &request)const;
void createVideoAbstractTaskAsync(const Model::CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVideoAbstractTaskOutcomeCallable createVideoAbstractTaskCallable(const Model::CreateVideoAbstractTaskRequest& request) const;

View File

@@ -0,0 +1,78 @@
/*
* 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_IMM_MODEL_CREATESTREAMANALYSETASKREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_CREATESTREAMANALYSETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT CreateStreamAnalyseTaskRequest : public RpcServiceRequest
{
public:
CreateStreamAnalyseTaskRequest();
~CreateStreamAnalyseTaskRequest();
std::string getGrabType()const;
void setGrabType(const std::string& grabType);
std::string getProject()const;
void setProject(const std::string& project);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getNotifyEndpoint()const;
void setNotifyEndpoint(const std::string& notifyEndpoint);
std::string getStreamUri()const;
void setStreamUri(const std::string& streamUri);
std::string getNotifyTopicName()const;
void setNotifyTopicName(const std::string& notifyTopicName);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
bool getSaveType()const;
void setSaveType(bool saveType);
std::string getInterval()const;
void setInterval(const std::string& interval);
std::string getTgtUri()const;
void setTgtUri(const std::string& tgtUri);
private:
std::string grabType_;
std::string project_;
std::string startTime_;
std::string accessKeyId_;
std::string notifyEndpoint_;
std::string streamUri_;
std::string notifyTopicName_;
std::string endTime_;
bool saveType_;
std::string interval_;
std::string tgtUri_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_CREATESTREAMANALYSETASKREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_IMM_MODEL_CREATESTREAMANALYSETASKRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_CREATESTREAMANALYSETASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT CreateStreamAnalyseTaskResult : public ServiceResult
{
public:
CreateStreamAnalyseTaskResult();
explicit CreateStreamAnalyseTaskResult(const std::string &payload);
~CreateStreamAnalyseTaskResult();
std::string getTaskId()const;
std::string getTaskType()const;
protected:
void parse(const std::string &payload);
private:
std::string taskId_;
std::string taskType_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_CREATESTREAMANALYSETASKRESULT_H_