Add GetImageInfos api.

This commit is contained in:
sdk-team
2022-07-28 06:42:44 +00:00
parent 29faefa1ab
commit 58b8b52591
9 changed files with 347 additions and 1 deletions

View File

@@ -160,6 +160,8 @@
#include "model/GetEditingProjectMaterialsResult.h"
#include "model/GetImageInfoRequest.h"
#include "model/GetImageInfoResult.h"
#include "model/GetImageInfosRequest.h"
#include "model/GetImageInfosResult.h"
#include "model/GetMediaAuditAudioResultDetailRequest.h"
#include "model/GetMediaAuditAudioResultDetailResult.h"
#include "model/GetMediaAuditResultRequest.h"
@@ -526,6 +528,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetImageInfoResult> GetImageInfoOutcome;
typedef std::future<GetImageInfoOutcome> GetImageInfoOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::GetImageInfoRequest&, const GetImageInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageInfoAsyncHandler;
typedef Outcome<Error, Model::GetImageInfosResult> GetImageInfosOutcome;
typedef std::future<GetImageInfosOutcome> GetImageInfosOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::GetImageInfosRequest&, const GetImageInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageInfosAsyncHandler;
typedef Outcome<Error, Model::GetMediaAuditAudioResultDetailResult> GetMediaAuditAudioResultDetailOutcome;
typedef std::future<GetMediaAuditAudioResultDetailOutcome> GetMediaAuditAudioResultDetailOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::GetMediaAuditAudioResultDetailRequest&, const GetMediaAuditAudioResultDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMediaAuditAudioResultDetailAsyncHandler;
@@ -963,6 +968,9 @@ namespace AlibabaCloud
GetImageInfoOutcome getImageInfo(const Model::GetImageInfoRequest &request)const;
void getImageInfoAsync(const Model::GetImageInfoRequest& request, const GetImageInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetImageInfoOutcomeCallable getImageInfoCallable(const Model::GetImageInfoRequest& request) const;
GetImageInfosOutcome getImageInfos(const Model::GetImageInfosRequest &request)const;
void getImageInfosAsync(const Model::GetImageInfosRequest& request, const GetImageInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetImageInfosOutcomeCallable getImageInfosCallable(const Model::GetImageInfosRequest& request) const;
GetMediaAuditAudioResultDetailOutcome getMediaAuditAudioResultDetail(const Model::GetMediaAuditAudioResultDetailRequest &request)const;
void getMediaAuditAudioResultDetailAsync(const Model::GetMediaAuditAudioResultDetailRequest& request, const GetMediaAuditAudioResultDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMediaAuditAudioResultDetailOutcomeCallable getMediaAuditAudioResultDetailCallable(const Model::GetMediaAuditAudioResultDetailRequest& request) const;

View File

@@ -0,0 +1,51 @@
/*
* 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_VOD_MODEL_GETIMAGEINFOSREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_GETIMAGEINFOSREQUEST_H_
#include <alibabacloud/vod/VodExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Vod {
namespace Model {
class ALIBABACLOUD_VOD_EXPORT GetImageInfosRequest : public RpcServiceRequest {
public:
GetImageInfosRequest();
~GetImageInfosRequest();
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getOutputType() const;
void setOutputType(const std::string &outputType);
long getAuthTimeout() const;
void setAuthTimeout(long authTimeout);
std::string getImageIds() const;
void setImageIds(const std::string &imageIds);
private:
std::string accessKeyId_;
std::string outputType_;
long authTimeout_;
std::string imageIds_;
};
} // namespace Model
} // namespace Vod
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_VOD_MODEL_GETIMAGEINFOSREQUEST_H_

View File

@@ -0,0 +1,79 @@
/*
* 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_VOD_MODEL_GETIMAGEINFOSRESULT_H_
#define ALIBABACLOUD_VOD_MODEL_GETIMAGEINFOSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT GetImageInfosResult : public ServiceResult
{
public:
struct Image
{
struct Mezzanine
{
std::string fileURL;
std::string originalFileName;
int height;
int width;
std::string fileSize;
};
std::string status;
std::string description;
Mezzanine mezzanine;
std::string title;
long cateId;
std::string cateName;
std::string uRL;
std::string imageType;
std::string auditStatus;
std::string appId;
std::string creationTime;
std::string imageId;
std::string regionId;
std::string storageLocation;
std::string tags;
};
GetImageInfosResult();
explicit GetImageInfosResult(const std::string &payload);
~GetImageInfosResult();
std::vector<std::string> getNonExistImageIds()const;
std::vector<Image> getImageInfo()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> nonExistImageIds_;
std::vector<Image> imageInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_GETIMAGEINFOSRESULT_H_