LUBANCLOUD SDK Auto Released By benxiang.hhq,Version:1.30.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-11-02 13:33:46 +08:00
parent d26289131f
commit f87f6a1649
31 changed files with 2515 additions and 2 deletions

View File

@@ -0,0 +1,94 @@
/*
* 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_LUBANCLOUD_LUBANCLOUDCLIENT_H_
#define ALIBABACLOUD_LUBANCLOUD_LUBANCLOUDCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "LubancloudExport.h"
#include "model/QueryCutoutTaskResultRequest.h"
#include "model/QueryCutoutTaskResultResult.h"
#include "model/SubmitGenerateTaskRequest.h"
#include "model/SubmitGenerateTaskResult.h"
#include "model/BuyOriginPicturesRequest.h"
#include "model/BuyOriginPicturesResult.h"
#include "model/SubmitCutoutTaskRequest.h"
#include "model/SubmitCutoutTaskResult.h"
#include "model/QueryGenerateTaskResultRequest.h"
#include "model/QueryGenerateTaskResultResult.h"
#include "model/GetStylesRequest.h"
#include "model/GetStylesResult.h"
namespace AlibabaCloud
{
namespace Lubancloud
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT LubancloudClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::QueryCutoutTaskResultResult> QueryCutoutTaskResultOutcome;
typedef std::future<QueryCutoutTaskResultOutcome> QueryCutoutTaskResultOutcomeCallable;
typedef std::function<void(const LubancloudClient*, const Model::QueryCutoutTaskResultRequest&, const QueryCutoutTaskResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCutoutTaskResultAsyncHandler;
typedef Outcome<Error, Model::SubmitGenerateTaskResult> SubmitGenerateTaskOutcome;
typedef std::future<SubmitGenerateTaskOutcome> SubmitGenerateTaskOutcomeCallable;
typedef std::function<void(const LubancloudClient*, const Model::SubmitGenerateTaskRequest&, const SubmitGenerateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitGenerateTaskAsyncHandler;
typedef Outcome<Error, Model::BuyOriginPicturesResult> BuyOriginPicturesOutcome;
typedef std::future<BuyOriginPicturesOutcome> BuyOriginPicturesOutcomeCallable;
typedef std::function<void(const LubancloudClient*, const Model::BuyOriginPicturesRequest&, const BuyOriginPicturesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BuyOriginPicturesAsyncHandler;
typedef Outcome<Error, Model::SubmitCutoutTaskResult> SubmitCutoutTaskOutcome;
typedef std::future<SubmitCutoutTaskOutcome> SubmitCutoutTaskOutcomeCallable;
typedef std::function<void(const LubancloudClient*, const Model::SubmitCutoutTaskRequest&, const SubmitCutoutTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitCutoutTaskAsyncHandler;
typedef Outcome<Error, Model::QueryGenerateTaskResultResult> QueryGenerateTaskResultOutcome;
typedef std::future<QueryGenerateTaskResultOutcome> QueryGenerateTaskResultOutcomeCallable;
typedef std::function<void(const LubancloudClient*, const Model::QueryGenerateTaskResultRequest&, const QueryGenerateTaskResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryGenerateTaskResultAsyncHandler;
typedef Outcome<Error, Model::GetStylesResult> GetStylesOutcome;
typedef std::future<GetStylesOutcome> GetStylesOutcomeCallable;
typedef std::function<void(const LubancloudClient*, const Model::GetStylesRequest&, const GetStylesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStylesAsyncHandler;
LubancloudClient(const Credentials &credentials, const ClientConfiguration &configuration);
LubancloudClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
LubancloudClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~LubancloudClient();
QueryCutoutTaskResultOutcome queryCutoutTaskResult(const Model::QueryCutoutTaskResultRequest &request)const;
void queryCutoutTaskResultAsync(const Model::QueryCutoutTaskResultRequest& request, const QueryCutoutTaskResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryCutoutTaskResultOutcomeCallable queryCutoutTaskResultCallable(const Model::QueryCutoutTaskResultRequest& request) const;
SubmitGenerateTaskOutcome submitGenerateTask(const Model::SubmitGenerateTaskRequest &request)const;
void submitGenerateTaskAsync(const Model::SubmitGenerateTaskRequest& request, const SubmitGenerateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitGenerateTaskOutcomeCallable submitGenerateTaskCallable(const Model::SubmitGenerateTaskRequest& request) const;
BuyOriginPicturesOutcome buyOriginPictures(const Model::BuyOriginPicturesRequest &request)const;
void buyOriginPicturesAsync(const Model::BuyOriginPicturesRequest& request, const BuyOriginPicturesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BuyOriginPicturesOutcomeCallable buyOriginPicturesCallable(const Model::BuyOriginPicturesRequest& request) const;
SubmitCutoutTaskOutcome submitCutoutTask(const Model::SubmitCutoutTaskRequest &request)const;
void submitCutoutTaskAsync(const Model::SubmitCutoutTaskRequest& request, const SubmitCutoutTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitCutoutTaskOutcomeCallable submitCutoutTaskCallable(const Model::SubmitCutoutTaskRequest& request) const;
QueryGenerateTaskResultOutcome queryGenerateTaskResult(const Model::QueryGenerateTaskResultRequest &request)const;
void queryGenerateTaskResultAsync(const Model::QueryGenerateTaskResultRequest& request, const QueryGenerateTaskResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryGenerateTaskResultOutcomeCallable queryGenerateTaskResultCallable(const Model::QueryGenerateTaskResultRequest& request) const;
GetStylesOutcome getStyles(const Model::GetStylesRequest &request)const;
void getStylesAsync(const Model::GetStylesRequest& request, const GetStylesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetStylesOutcomeCallable getStylesCallable(const Model::GetStylesRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_LUBANCLOUDCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* 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_LUBANCLOUD_LUBANCLOUDEXPORT_H_
#define ALIBABACLOUD_LUBANCLOUD_LUBANCLOUDEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_LUBANCLOUD_LIBRARY)
# define ALIBABACLOUD_LUBANCLOUD_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_LUBANCLOUD_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_LUBANCLOUD_EXPORT
#endif
#endif // !ALIBABACLOUD_LUBANCLOUD_LUBANCLOUDEXPORT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_LUBANCLOUD_MODEL_BUYORIGINPICTURESREQUEST_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_BUYORIGINPICTURESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT BuyOriginPicturesRequest : public RpcServiceRequest
{
public:
BuyOriginPicturesRequest();
~BuyOriginPicturesRequest();
bool getSecurity_transport()const;
void setSecurity_transport(bool security_transport);
std::string getApp_ip()const;
void setApp_ip(const std::string& app_ip);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
long getCallerParentId()const;
void setCallerParentId(long callerParentId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
std::string getCallerType()const;
void setCallerType(const std::string& callerType);
bool getAk_mfa_present()const;
void setAk_mfa_present(bool ak_mfa_present);
long getCallerUid()const;
void setCallerUid(long callerUid);
std::vector<long> getPictureId()const;
void setPictureId(const std::vector<long>& pictureId);
private:
bool security_transport_;
std::string app_ip_;
std::string regionId_;
long callerParentId_;
std::string requestId_;
std::string callerType_;
bool ak_mfa_present_;
long callerUid_;
std::vector<long> pictureId_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_BUYORIGINPICTURESREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* 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_LUBANCLOUD_MODEL_BUYORIGINPICTURESRESULT_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_BUYORIGINPICTURESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT BuyOriginPicturesResult : public ServiceResult
{
public:
struct Picture
{
long id;
std::string originalPictureUrl;
};
BuyOriginPicturesResult();
explicit BuyOriginPicturesResult(const std::string &payload);
~BuyOriginPicturesResult();
std::vector<Picture> getPictures()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Picture> pictures_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_BUYORIGINPICTURESRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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_LUBANCLOUD_MODEL_GETSTYLESREQUEST_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_GETSTYLESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT GetStylesRequest : public RpcServiceRequest
{
public:
GetStylesRequest();
~GetStylesRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
private:
std::string regionId_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_GETSTYLESREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* 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_LUBANCLOUD_MODEL_GETSTYLESRESULT_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_GETSTYLESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT GetStylesResult : public ServiceResult
{
public:
struct Style
{
struct SubStyle
{
long parentId;
std::string previewUrl;
long id;
std::string name;
};
long parentId;
std::string previewUrl;
std::vector<Style::SubStyle> subStyles;
long id;
std::string name;
};
GetStylesResult();
explicit GetStylesResult(const std::string &payload);
~GetStylesResult();
std::vector<Style> getStyles()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Style> styles_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_GETSTYLESRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_LUBANCLOUD_MODEL_QUERYCUTOUTTASKRESULTREQUEST_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYCUTOUTTASKRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT QueryCutoutTaskResultRequest : public RpcServiceRequest
{
public:
QueryCutoutTaskResultRequest();
~QueryCutoutTaskResultRequest();
bool getSecurity_transport()const;
void setSecurity_transport(bool security_transport);
std::string getApp_ip()const;
void setApp_ip(const std::string& app_ip);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
long getCallerParentId()const;
void setCallerParentId(long callerParentId);
std::string getCallerType()const;
void setCallerType(const std::string& callerType);
bool getAk_mfa_present()const;
void setAk_mfa_present(bool ak_mfa_present);
long getCallerUid()const;
void setCallerUid(long callerUid);
long getTaskId()const;
void setTaskId(long taskId);
private:
bool security_transport_;
std::string app_ip_;
std::string regionId_;
std::string requestId_;
long callerParentId_;
std::string callerType_;
bool ak_mfa_present_;
long callerUid_;
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYCUTOUTTASKRESULTREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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_LUBANCLOUD_MODEL_QUERYCUTOUTTASKRESULTRESULT_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYCUTOUTTASKRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT QueryCutoutTaskResultResult : public ServiceResult
{
public:
struct Picture
{
int status;
std::string cutoutUrl;
std::string originUrl;
int height;
std::string errorCode;
std::string errorMessage;
int width;
};
QueryCutoutTaskResultResult();
explicit QueryCutoutTaskResultResult(const std::string &payload);
~QueryCutoutTaskResultResult();
std::vector<Picture> getPictures()const;
int getStatus()const;
int getSuccessSize()const;
int getFailSize()const;
int getTotalSize()const;
int getWaitSize()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Picture> pictures_;
int status_;
int successSize_;
int failSize_;
int totalSize_;
int waitSize_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYCUTOUTTASKRESULTRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_LUBANCLOUD_MODEL_QUERYGENERATETASKRESULTREQUEST_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYGENERATETASKRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT QueryGenerateTaskResultRequest : public RpcServiceRequest
{
public:
QueryGenerateTaskResultRequest();
~QueryGenerateTaskResultRequest();
bool getSecurity_transport()const;
void setSecurity_transport(bool security_transport);
std::string getApp_ip()const;
void setApp_ip(const std::string& app_ip);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
long getCallerParentId()const;
void setCallerParentId(long callerParentId);
std::string getCallerType()const;
void setCallerType(const std::string& callerType);
bool getAk_mfa_present()const;
void setAk_mfa_present(bool ak_mfa_present);
long getCallerUid()const;
void setCallerUid(long callerUid);
long getTaskId()const;
void setTaskId(long taskId);
private:
bool security_transport_;
std::string app_ip_;
std::string regionId_;
std::string requestId_;
long callerParentId_;
std::string callerType_;
bool ak_mfa_present_;
long callerUid_;
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYGENERATETASKRESULTREQUEST_H_

View File

@@ -0,0 +1,70 @@
/*
* 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_LUBANCLOUD_MODEL_QUERYGENERATETASKRESULTRESULT_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYGENERATETASKRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT QueryGenerateTaskResultResult : public ServiceResult
{
public:
struct Picture
{
int status;
std::string previewUrl;
int height;
long id;
int width;
std::string name;
};
QueryGenerateTaskResultResult();
explicit QueryGenerateTaskResultResult(const std::string &payload);
~QueryGenerateTaskResultResult();
std::vector<Picture> getPictures()const;
int getStatus()const;
int getSuccessSize()const;
int getFailSize()const;
int getTotalSize()const;
int getWaitSize()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Picture> pictures_;
int status_;
int successSize_;
int failSize_;
int totalSize_;
int waitSize_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_QUERYGENERATETASKRESULTRESULT_H_

View File

@@ -0,0 +1,72 @@
/*
* 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_LUBANCLOUD_MODEL_SUBMITCUTOUTTASKREQUEST_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITCUTOUTTASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT SubmitCutoutTaskRequest : public RpcServiceRequest
{
public:
SubmitCutoutTaskRequest();
~SubmitCutoutTaskRequest();
bool getSecurity_transport()const;
void setSecurity_transport(bool security_transport);
std::string getApp_ip()const;
void setApp_ip(const std::string& app_ip);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
long getCallerParentId()const;
void setCallerParentId(long callerParentId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
std::string getCallerType()const;
void setCallerType(const std::string& callerType);
bool getAk_mfa_present()const;
void setAk_mfa_present(bool ak_mfa_present);
long getCallerUid()const;
void setCallerUid(long callerUid);
std::vector<std::string> getPictureUrl()const;
void setPictureUrl(const std::vector<std::string>& pictureUrl);
private:
bool security_transport_;
std::string app_ip_;
std::string regionId_;
long callerParentId_;
std::string requestId_;
std::string callerType_;
bool ak_mfa_present_;
long callerUid_;
std::vector<std::string> pictureUrl_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITCUTOUTTASKREQUEST_H_

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_LUBANCLOUD_MODEL_SUBMITCUTOUTTASKRESULT_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITCUTOUTTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT SubmitCutoutTaskResult : public ServiceResult
{
public:
SubmitCutoutTaskResult();
explicit SubmitCutoutTaskResult(const std::string &payload);
~SubmitCutoutTaskResult();
long getTaskId()const;
protected:
void parse(const std::string &payload);
private:
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITCUTOUTTASKRESULT_H_

View File

@@ -0,0 +1,96 @@
/*
* 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_LUBANCLOUD_MODEL_SUBMITGENERATETASKREQUEST_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITGENERATETASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT SubmitGenerateTaskRequest : public RpcServiceRequest
{
public:
SubmitGenerateTaskRequest();
~SubmitGenerateTaskRequest();
std::string getApp_ip()const;
void setApp_ip(const std::string& app_ip);
int getImageCount()const;
void setImageCount(int imageCount);
long getCallerParentId()const;
void setCallerParentId(long callerParentId);
std::string getActionPoint()const;
void setActionPoint(const std::string& actionPoint);
std::string getLogoImagePath()const;
void setLogoImagePath(const std::string& logoImagePath);
int getType()const;
void setType(int type);
std::string getCallerType()const;
void setCallerType(const std::string& callerType);
bool getAk_mfa_present()const;
void setAk_mfa_present(bool ak_mfa_present);
bool getSecurity_transport()const;
void setSecurity_transport(bool security_transport);
std::vector<std::string> getMajorImagePath()const;
void setMajorImagePath(const std::vector<std::string>& majorImagePath);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getRequestId()const;
void setRequestId(const std::string& requestId);
int getWidth()const;
void setWidth(int width);
std::vector<std::string> getCopyWrite()const;
void setCopyWrite(const std::vector<std::string>& copyWrite);
std::vector<long> getPropertyId()const;
void setPropertyId(const std::vector<long>& propertyId);
long getCallerUid()const;
void setCallerUid(long callerUid);
int getHeight()const;
void setHeight(int height);
private:
std::string app_ip_;
int imageCount_;
long callerParentId_;
std::string actionPoint_;
std::string logoImagePath_;
int type_;
std::string callerType_;
bool ak_mfa_present_;
bool security_transport_;
std::vector<std::string> majorImagePath_;
std::string regionId_;
std::string requestId_;
int width_;
std::vector<std::string> copyWrite_;
std::vector<long> propertyId_;
long callerUid_;
int height_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITGENERATETASKREQUEST_H_

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_LUBANCLOUD_MODEL_SUBMITGENERATETASKRESULT_H_
#define ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITGENERATETASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/lubancloud/LubancloudExport.h>
namespace AlibabaCloud
{
namespace Lubancloud
{
namespace Model
{
class ALIBABACLOUD_LUBANCLOUD_EXPORT SubmitGenerateTaskResult : public ServiceResult
{
public:
SubmitGenerateTaskResult();
explicit SubmitGenerateTaskResult(const std::string &payload);
~SubmitGenerateTaskResult();
long getTaskId()const;
protected:
void parse(const std::string &payload);
private:
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_LUBANCLOUD_MODEL_SUBMITGENERATETASKRESULT_H_