Release GenerateSuperResolutionImage.
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
#include "model/GenerateImageWithTextResult.h"
|
||||
#include "model/GenerateImageWithTextAndImageRequest.h"
|
||||
#include "model/GenerateImageWithTextAndImageResult.h"
|
||||
#include "model/GenerateSuperResolutionImageRequest.h"
|
||||
#include "model/GenerateSuperResolutionImageResult.h"
|
||||
#include "model/GetAsyncJobResultRequest.h"
|
||||
#include "model/GetAsyncJobResultResult.h"
|
||||
#include "model/ImageBlindCharacterWatermarkRequest.h"
|
||||
@@ -111,6 +113,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GenerateImageWithTextAndImageResult> GenerateImageWithTextAndImageOutcome;
|
||||
typedef std::future<GenerateImageWithTextAndImageOutcome> GenerateImageWithTextAndImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GenerateImageWithTextAndImageRequest&, const GenerateImageWithTextAndImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateImageWithTextAndImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateSuperResolutionImageResult> GenerateSuperResolutionImageOutcome;
|
||||
typedef std::future<GenerateSuperResolutionImageOutcome> GenerateSuperResolutionImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GenerateSuperResolutionImageRequest&, const GenerateSuperResolutionImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateSuperResolutionImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAsyncJobResultResult> GetAsyncJobResultOutcome;
|
||||
typedef std::future<GetAsyncJobResultOutcome> GetAsyncJobResultOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GetAsyncJobResultRequest&, const GetAsyncJobResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAsyncJobResultAsyncHandler;
|
||||
@@ -182,6 +187,9 @@ namespace AlibabaCloud
|
||||
GenerateImageWithTextAndImageOutcome generateImageWithTextAndImage(const Model::GenerateImageWithTextAndImageRequest &request)const;
|
||||
void generateImageWithTextAndImageAsync(const Model::GenerateImageWithTextAndImageRequest& request, const GenerateImageWithTextAndImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateImageWithTextAndImageOutcomeCallable generateImageWithTextAndImageCallable(const Model::GenerateImageWithTextAndImageRequest& request) const;
|
||||
GenerateSuperResolutionImageOutcome generateSuperResolutionImage(const Model::GenerateSuperResolutionImageRequest &request)const;
|
||||
void generateSuperResolutionImageAsync(const Model::GenerateSuperResolutionImageRequest& request, const GenerateSuperResolutionImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateSuperResolutionImageOutcomeCallable generateSuperResolutionImageCallable(const Model::GenerateSuperResolutionImageRequest& request) const;
|
||||
GetAsyncJobResultOutcome getAsyncJobResult(const Model::GetAsyncJobResultRequest &request)const;
|
||||
void getAsyncJobResultAsync(const Model::GetAsyncJobResultRequest& request, const GetAsyncJobResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAsyncJobResultOutcomeCallable getAsyncJobResultCallable(const Model::GetAsyncJobResultRequest& request) const;
|
||||
|
||||
@@ -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_IMAGEENHAN_MODEL_GENERATESUPERRESOLUTIONIMAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATESUPERRESOLUTIONIMAGEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Imageenhan {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT GenerateSuperResolutionImageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenerateSuperResolutionImageRequest();
|
||||
~GenerateSuperResolutionImageRequest();
|
||||
int getScale() const;
|
||||
void setScale(int scale);
|
||||
std::string getUserData() const;
|
||||
void setUserData(const std::string &userData);
|
||||
std::string getOutputFormat() const;
|
||||
void setOutputFormat(const std::string &outputFormat);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::string getImageUrl() const;
|
||||
void setImageUrl(const std::string &imageUrl);
|
||||
int getOutputQuality() const;
|
||||
void setOutputQuality(int outputQuality);
|
||||
|
||||
private:
|
||||
int scale_;
|
||||
std::string userData_;
|
||||
std::string outputFormat_;
|
||||
bool async_;
|
||||
std::string imageUrl_;
|
||||
int outputQuality_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageenhan
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATESUPERRESOLUTIONIMAGEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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_IMAGEENHAN_MODEL_GENERATESUPERRESOLUTIONIMAGERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATESUPERRESOLUTIONIMAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imageenhan/ImageenhanExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imageenhan
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMAGEENHAN_EXPORT GenerateSuperResolutionImageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string resultUrl;
|
||||
};
|
||||
|
||||
|
||||
GenerateSuperResolutionImageResult();
|
||||
explicit GenerateSuperResolutionImageResult(const std::string &payload);
|
||||
~GenerateSuperResolutionImageResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATESUPERRESOLUTIONIMAGERESULT_H_
|
||||
Reference in New Issue
Block a user