Release GenerateImageWithText GenerateImageWithTextAndImage.
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
#include "model/ExtendImageStyleResult.h"
|
||||
#include "model/GenerateDynamicImageRequest.h"
|
||||
#include "model/GenerateDynamicImageResult.h"
|
||||
#include "model/GenerateImageWithTextRequest.h"
|
||||
#include "model/GenerateImageWithTextResult.h"
|
||||
#include "model/GenerateImageWithTextAndImageRequest.h"
|
||||
#include "model/GenerateImageWithTextAndImageResult.h"
|
||||
#include "model/GetAsyncJobResultRequest.h"
|
||||
#include "model/GetAsyncJobResultResult.h"
|
||||
#include "model/ImageBlindCharacterWatermarkRequest.h"
|
||||
@@ -96,6 +100,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GenerateDynamicImageResult> GenerateDynamicImageOutcome;
|
||||
typedef std::future<GenerateDynamicImageOutcome> GenerateDynamicImageOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GenerateDynamicImageRequest&, const GenerateDynamicImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateDynamicImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateImageWithTextResult> GenerateImageWithTextOutcome;
|
||||
typedef std::future<GenerateImageWithTextOutcome> GenerateImageWithTextOutcomeCallable;
|
||||
typedef std::function<void(const ImageenhanClient*, const Model::GenerateImageWithTextRequest&, const GenerateImageWithTextOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateImageWithTextAsyncHandler;
|
||||
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::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;
|
||||
@@ -158,6 +168,12 @@ namespace AlibabaCloud
|
||||
GenerateDynamicImageOutcome generateDynamicImage(const Model::GenerateDynamicImageRequest &request)const;
|
||||
void generateDynamicImageAsync(const Model::GenerateDynamicImageRequest& request, const GenerateDynamicImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateDynamicImageOutcomeCallable generateDynamicImageCallable(const Model::GenerateDynamicImageRequest& request) const;
|
||||
GenerateImageWithTextOutcome generateImageWithText(const Model::GenerateImageWithTextRequest &request)const;
|
||||
void generateImageWithTextAsync(const Model::GenerateImageWithTextRequest& request, const GenerateImageWithTextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateImageWithTextOutcomeCallable generateImageWithTextCallable(const Model::GenerateImageWithTextRequest& request) const;
|
||||
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;
|
||||
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,60 @@
|
||||
/*
|
||||
* 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_GENERATEIMAGEWITHTEXTANDIMAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTANDIMAGEREQUEST_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 GenerateImageWithTextAndImageRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenerateImageWithTextAndImageRequest();
|
||||
~GenerateImageWithTextAndImageRequest();
|
||||
std::string getResolution() const;
|
||||
void setResolution(const std::string &resolution);
|
||||
int getNumber() const;
|
||||
void setNumber(int number);
|
||||
float getSimilarity() const;
|
||||
void setSimilarity(float similarity);
|
||||
std::string getAspectRatioMode() const;
|
||||
void setAspectRatioMode(const std::string &aspectRatioMode);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
std::string getRefImageUrl() const;
|
||||
void setRefImageUrl(const std::string &refImageUrl);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::string resolution_;
|
||||
int number_;
|
||||
float similarity_;
|
||||
std::string aspectRatioMode_;
|
||||
std::string text_;
|
||||
std::string refImageUrl_;
|
||||
bool async_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageenhan
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTANDIMAGEREQUEST_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_GENERATEIMAGEWITHTEXTANDIMAGERESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTANDIMAGERESULT_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 GenerateImageWithTextAndImageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::vector<std::string> imageUrls;
|
||||
};
|
||||
|
||||
|
||||
GenerateImageWithTextAndImageResult();
|
||||
explicit GenerateImageWithTextAndImageResult(const std::string &payload);
|
||||
~GenerateImageWithTextAndImageResult();
|
||||
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_GENERATEIMAGEWITHTEXTANDIMAGERESULT_H_
|
||||
@@ -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_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTREQUEST_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTREQUEST_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 GenerateImageWithTextRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GenerateImageWithTextRequest();
|
||||
~GenerateImageWithTextRequest();
|
||||
std::string getResolution() const;
|
||||
void setResolution(const std::string &resolution);
|
||||
int getNumber() const;
|
||||
void setNumber(int number);
|
||||
std::string getText() const;
|
||||
void setText(const std::string &text);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
|
||||
private:
|
||||
std::string resolution_;
|
||||
int number_;
|
||||
std::string text_;
|
||||
bool async_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Imageenhan
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTREQUEST_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_GENERATEIMAGEWITHTEXTRESULT_H_
|
||||
#define ALIBABACLOUD_IMAGEENHAN_MODEL_GENERATEIMAGEWITHTEXTRESULT_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 GenerateImageWithTextResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::vector<std::string> imageUrls;
|
||||
};
|
||||
|
||||
|
||||
GenerateImageWithTextResult();
|
||||
explicit GenerateImageWithTextResult(const std::string &payload);
|
||||
~GenerateImageWithTextResult();
|
||||
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_GENERATEIMAGEWITHTEXTRESULT_H_
|
||||
Reference in New Issue
Block a user