add make stage, preview url

This commit is contained in:
sdk-team
2023-08-28 08:34:52 +00:00
parent 06ad26c36a
commit 328f3a0eca
14 changed files with 429 additions and 1 deletions

View File

@@ -44,6 +44,8 @@
#include "model/QueryRunningInstanceResult.h"
#include "model/QueryTimedResetOperateStatusRequest.h"
#include "model/QueryTimedResetOperateStatusResult.h"
#include "model/QueryVideoTaskInfoRequest.h"
#include "model/QueryVideoTaskInfoResult.h"
#include "model/SendCommandRequest.h"
#include "model/SendCommandResult.h"
#include "model/SendMessageRequest.h"
@@ -110,6 +112,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryTimedResetOperateStatusResult> QueryTimedResetOperateStatusOutcome;
typedef std::future<QueryTimedResetOperateStatusOutcome> QueryTimedResetOperateStatusOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::QueryTimedResetOperateStatusRequest&, const QueryTimedResetOperateStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTimedResetOperateStatusAsyncHandler;
typedef Outcome<Error, Model::QueryVideoTaskInfoResult> QueryVideoTaskInfoOutcome;
typedef std::future<QueryVideoTaskInfoOutcome> QueryVideoTaskInfoOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::QueryVideoTaskInfoRequest&, const QueryVideoTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVideoTaskInfoAsyncHandler;
typedef Outcome<Error, Model::SendCommandResult> SendCommandOutcome;
typedef std::future<SendCommandOutcome> SendCommandOutcomeCallable;
typedef std::function<void(const AvatarClient*, const Model::SendCommandRequest&, const SendCommandOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendCommandAsyncHandler;
@@ -184,6 +189,9 @@ namespace AlibabaCloud
QueryTimedResetOperateStatusOutcome queryTimedResetOperateStatus(const Model::QueryTimedResetOperateStatusRequest &request)const;
void queryTimedResetOperateStatusAsync(const Model::QueryTimedResetOperateStatusRequest& request, const QueryTimedResetOperateStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryTimedResetOperateStatusOutcomeCallable queryTimedResetOperateStatusCallable(const Model::QueryTimedResetOperateStatusRequest& request) const;
QueryVideoTaskInfoOutcome queryVideoTaskInfo(const Model::QueryVideoTaskInfoRequest &request)const;
void queryVideoTaskInfoAsync(const Model::QueryVideoTaskInfoRequest& request, const QueryVideoTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryVideoTaskInfoOutcomeCallable queryVideoTaskInfoCallable(const Model::QueryVideoTaskInfoRequest& request) const;
SendCommandOutcome sendCommand(const Model::SendCommandRequest &request)const;
void sendCommandAsync(const Model::SendCommandRequest& request, const SendCommandAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendCommandOutcomeCallable sendCommandCallable(const Model::SendCommandRequest& request) const;

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
{
std::string alphaUrl;
int videoDuration;
std::string previewPic;
std::string failCode;
std::string subtitlesUrl;
std::string wordSubtitlesUrl;

View File

@@ -54,6 +54,7 @@ namespace AlibabaCloud
std::vector<OnlineItem> online;
};
std::string description;
std::string makeStage;
SupportedResolutions supportedResolutions;
std::string portrait;
std::string avatarType;

View File

@@ -52,12 +52,14 @@ namespace AlibabaCloud
std::vector<OnlineItem> online;
};
std::string description;
std::string makeStage;
SupportedResolutions supportedResolutions;
std::string portrait;
std::string modelType;
std::string avatarType;
std::string makeStatus;
std::string image;
std::string allLocateImages;
std::string name;
std::string makeFailReason;
};

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_AVATAR_MODEL_QUERYVIDEOTASKINFOREQUEST_H_
#define ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFOREQUEST_H_
#include <alibabacloud/avatar/AvatarExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Avatar {
namespace Model {
class ALIBABACLOUD_AVATAR_EXPORT QueryVideoTaskInfoRequest : public RpcServiceRequest {
public:
struct App {
std::string appId;
};
QueryVideoTaskInfoRequest();
~QueryVideoTaskInfoRequest();
App getApp() const;
void setApp(const App &app);
std::string getTitle() const;
void setTitle(const std::string &title);
int getType() const;
void setType(int type);
std::string getOrderById() const;
void setOrderById(const std::string &orderById);
int getPageNo() const;
void setPageNo(int pageNo);
long getTenantId() const;
void setTenantId(long tenantId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getTaskUuid() const;
void setTaskUuid(const std::string &taskUuid);
int getStatus() const;
void setStatus(int status);
private:
App app_;
std::string title_;
int type_;
std::string orderById_;
int pageNo_;
long tenantId_;
int pageSize_;
std::string taskUuid_;
int status_;
};
} // namespace Model
} // namespace Avatar
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFOREQUEST_H_

View File

@@ -0,0 +1,83 @@
/*
* 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_AVATAR_MODEL_QUERYVIDEOTASKINFORESULT_H_
#define ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/avatar/AvatarExport.h>
namespace AlibabaCloud
{
namespace Avatar
{
namespace Model
{
class ALIBABACLOUD_AVATAR_EXPORT QueryVideoTaskInfoResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
struct TaskResult
{
std::string alphaUrl;
int videoDuration;
std::string previewPic;
std::string failCode;
std::string subtitlesUrl;
std::string wordSubtitlesUrl;
std::string failReason;
std::string videoUrl;
};
int status;
int type;
std::string taskUuid;
TaskResult taskResult;
std::string title;
};
long totalCount;
int pageSize;
std::vector<ListItem> list;
int pageNo;
};
QueryVideoTaskInfoResult();
explicit QueryVideoTaskInfoResult(const std::string &payload);
~QueryVideoTaskInfoResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_AVATAR_MODEL_QUERYVIDEOTASKINFORESULT_H_