Release first version.

This commit is contained in:
sdk-team
2019-10-21 11:23:43 +08:00
parent e3c9867b49
commit 63f8b47b8d
42 changed files with 2818 additions and 1 deletions

View File

@@ -0,0 +1,118 @@
/*
* 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_IQA_IQACLIENT_H_
#define ALIBABACLOUD_IQA_IQACLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "IqaExport.h"
#include "model/CreateProjectRequest.h"
#include "model/CreateProjectResult.h"
#include "model/DeleteProjectRequest.h"
#include "model/DeleteProjectResult.h"
#include "model/DeployServiceRequest.h"
#include "model/DeployServiceResult.h"
#include "model/DescribeProjectRequest.h"
#include "model/DescribeProjectResult.h"
#include "model/GetPredictResultRequest.h"
#include "model/GetPredictResultResult.h"
#include "model/ListProjectsRequest.h"
#include "model/ListProjectsResult.h"
#include "model/ModifiyProjectRequest.h"
#include "model/ModifiyProjectResult.h"
#include "model/UploadDictionaryRequest.h"
#include "model/UploadDictionaryResult.h"
#include "model/UploadDocumentRequest.h"
#include "model/UploadDocumentResult.h"
namespace AlibabaCloud
{
namespace Iqa
{
class ALIBABACLOUD_IQA_EXPORT IqaClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
typedef Outcome<Error, Model::DeleteProjectResult> DeleteProjectOutcome;
typedef std::future<DeleteProjectOutcome> DeleteProjectOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::DeleteProjectRequest&, const DeleteProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteProjectAsyncHandler;
typedef Outcome<Error, Model::DeployServiceResult> DeployServiceOutcome;
typedef std::future<DeployServiceOutcome> DeployServiceOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::DeployServiceRequest&, const DeployServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployServiceAsyncHandler;
typedef Outcome<Error, Model::DescribeProjectResult> DescribeProjectOutcome;
typedef std::future<DescribeProjectOutcome> DescribeProjectOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::DescribeProjectRequest&, const DescribeProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectAsyncHandler;
typedef Outcome<Error, Model::GetPredictResultResult> GetPredictResultOutcome;
typedef std::future<GetPredictResultOutcome> GetPredictResultOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::GetPredictResultRequest&, const GetPredictResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPredictResultAsyncHandler;
typedef Outcome<Error, Model::ListProjectsResult> ListProjectsOutcome;
typedef std::future<ListProjectsOutcome> ListProjectsOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::ListProjectsRequest&, const ListProjectsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectsAsyncHandler;
typedef Outcome<Error, Model::ModifiyProjectResult> ModifiyProjectOutcome;
typedef std::future<ModifiyProjectOutcome> ModifiyProjectOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::ModifiyProjectRequest&, const ModifiyProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifiyProjectAsyncHandler;
typedef Outcome<Error, Model::UploadDictionaryResult> UploadDictionaryOutcome;
typedef std::future<UploadDictionaryOutcome> UploadDictionaryOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::UploadDictionaryRequest&, const UploadDictionaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadDictionaryAsyncHandler;
typedef Outcome<Error, Model::UploadDocumentResult> UploadDocumentOutcome;
typedef std::future<UploadDocumentOutcome> UploadDocumentOutcomeCallable;
typedef std::function<void(const IqaClient*, const Model::UploadDocumentRequest&, const UploadDocumentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadDocumentAsyncHandler;
IqaClient(const Credentials &credentials, const ClientConfiguration &configuration);
IqaClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
IqaClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~IqaClient();
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const;
void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const;
DeployServiceOutcome deployService(const Model::DeployServiceRequest &request)const;
void deployServiceAsync(const Model::DeployServiceRequest& request, const DeployServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeployServiceOutcomeCallable deployServiceCallable(const Model::DeployServiceRequest& request) const;
DescribeProjectOutcome describeProject(const Model::DescribeProjectRequest &request)const;
void describeProjectAsync(const Model::DescribeProjectRequest& request, const DescribeProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeProjectOutcomeCallable describeProjectCallable(const Model::DescribeProjectRequest& request) const;
GetPredictResultOutcome getPredictResult(const Model::GetPredictResultRequest &request)const;
void getPredictResultAsync(const Model::GetPredictResultRequest& request, const GetPredictResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPredictResultOutcomeCallable getPredictResultCallable(const Model::GetPredictResultRequest& request) const;
ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const;
void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const;
ModifiyProjectOutcome modifiyProject(const Model::ModifiyProjectRequest &request)const;
void modifiyProjectAsync(const Model::ModifiyProjectRequest& request, const ModifiyProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifiyProjectOutcomeCallable modifiyProjectCallable(const Model::ModifiyProjectRequest& request) const;
UploadDictionaryOutcome uploadDictionary(const Model::UploadDictionaryRequest &request)const;
void uploadDictionaryAsync(const Model::UploadDictionaryRequest& request, const UploadDictionaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UploadDictionaryOutcomeCallable uploadDictionaryCallable(const Model::UploadDictionaryRequest& request) const;
UploadDocumentOutcome uploadDocument(const Model::UploadDocumentRequest &request)const;
void uploadDocumentAsync(const Model::UploadDocumentRequest& request, const UploadDocumentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UploadDocumentOutcomeCallable uploadDocumentCallable(const Model::UploadDocumentRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_IQA_IQACLIENT_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_IQA_IQAEXPORT_H_
#define ALIBABACLOUD_IQA_IQAEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_IQA_LIBRARY)
# define ALIBABACLOUD_IQA_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_IQA_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_IQA_EXPORT
#endif
#endif // !ALIBABACLOUD_IQA_IQAEXPORT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_IQA_MODEL_CREATEPROJECTREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_CREATEPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT CreateProjectRequest : public RpcServiceRequest
{
public:
CreateProjectRequest();
~CreateProjectRequest();
std::string getProjectName()const;
void setProjectName(const std::string& projectName);
std::string getModelId()const;
void setModelId(const std::string& modelId);
std::string getProjectType()const;
void setProjectType(const std::string& projectType);
private:
std::string projectName_;
std::string modelId_;
std::string projectType_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_CREATEPROJECTREQUEST_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_IQA_MODEL_CREATEPROJECTRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_CREATEPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT CreateProjectResult : public ServiceResult
{
public:
CreateProjectResult();
explicit CreateProjectResult(const std::string &payload);
~CreateProjectResult();
std::string getProjectId()const;
protected:
void parse(const std::string &payload);
private:
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_CREATEPROJECTRESULT_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_IQA_MODEL_DELETEPROJECTREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_DELETEPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT DeleteProjectRequest : public RpcServiceRequest
{
public:
DeleteProjectRequest();
~DeleteProjectRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_DELETEPROJECTREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_IQA_MODEL_DELETEPROJECTRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_DELETEPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT DeleteProjectResult : public ServiceResult
{
public:
DeleteProjectResult();
explicit DeleteProjectResult(const std::string &payload);
~DeleteProjectResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_DELETEPROJECTRESULT_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_IQA_MODEL_DEPLOYSERVICEREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_DEPLOYSERVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT DeployServiceRequest : public RpcServiceRequest
{
public:
DeployServiceRequest();
~DeployServiceRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_DEPLOYSERVICEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_IQA_MODEL_DEPLOYSERVICERESULT_H_
#define ALIBABACLOUD_IQA_MODEL_DEPLOYSERVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT DeployServiceResult : public ServiceResult
{
public:
DeployServiceResult();
explicit DeployServiceResult(const std::string &payload);
~DeployServiceResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_DEPLOYSERVICERESULT_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_IQA_MODEL_DESCRIBEPROJECTREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_DESCRIBEPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT DescribeProjectRequest : public RpcServiceRequest
{
public:
DescribeProjectRequest();
~DescribeProjectRequest();
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_DESCRIBEPROJECTREQUEST_H_

View File

@@ -0,0 +1,73 @@
/*
* 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_IQA_MODEL_DESCRIBEPROJECTRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_DESCRIBEPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT DescribeProjectResult : public ServiceResult
{
public:
DescribeProjectResult();
explicit DescribeProjectResult(const std::string &payload);
~DescribeProjectResult();
int getQuestionCount()const;
std::string getModelName()const;
std::string getDeployAvailable()const;
std::string getProjectName()const;
long getDeployTime()const;
std::string getProjectType()const;
long getCreateTime()const;
std::string getProjectId()const;
std::string getDataStatus()const;
std::string getModelId()const;
std::string getOnlineServiceStatus()const;
std::string getTestServiceStatus()const;
protected:
void parse(const std::string &payload);
private:
int questionCount_;
std::string modelName_;
std::string deployAvailable_;
std::string projectName_;
long deployTime_;
std::string projectType_;
long createTime_;
std::string projectId_;
std::string dataStatus_;
std::string modelId_;
std::string onlineServiceStatus_;
std::string testServiceStatus_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_DESCRIBEPROJECTRESULT_H_

View File

@@ -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_IQA_MODEL_GETPREDICTRESULTREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_GETPREDICTRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT GetPredictResultRequest : public RpcServiceRequest
{
public:
GetPredictResultRequest();
~GetPredictResultRequest();
int getTopK()const;
void setTopK(int topK);
std::string getTraceTag()const;
void setTraceTag(const std::string& traceTag);
std::string getQuestion()const;
void setQuestion(const std::string& question);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
int topK_;
std::string traceTag_;
std::string question_;
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_GETPREDICTRESULTREQUEST_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_IQA_MODEL_GETPREDICTRESULTRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_GETPREDICTRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT GetPredictResultResult : public ServiceResult
{
public:
struct PredictResult
{
std::string answer;
float score;
std::string questionId;
int rank;
std::string question;
};
GetPredictResultResult();
explicit GetPredictResultResult(const std::string &payload);
~GetPredictResultResult();
long getCostTime()const;
std::string getTrace()const;
int getTopK()const;
std::string getTraceTag()const;
std::string getProjectId()const;
std::string getQuestion()const;
std::vector<PredictResult> getPredictResults()const;
protected:
void parse(const std::string &payload);
private:
long costTime_;
std::string trace_;
int topK_;
std::string traceTag_;
std::string projectId_;
std::string question_;
std::vector<PredictResult> predictResults_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_GETPREDICTRESULTRESULT_H_

View File

@@ -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_IQA_MODEL_LISTPROJECTSREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_LISTPROJECTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT ListProjectsRequest : public RpcServiceRequest
{
public:
ListProjectsRequest();
~ListProjectsRequest();
std::string getFilterParam()const;
void setFilterParam(const std::string& filterParam);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getProjectType()const;
void setProjectType(const std::string& projectType);
private:
std::string filterParam_;
int pageNumber_;
int pageSize_;
std::string projectType_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_LISTPROJECTSREQUEST_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_IQA_MODEL_LISTPROJECTSRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_LISTPROJECTSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT ListProjectsResult : public ServiceResult
{
public:
struct Project
{
int questionCount;
std::string deployAvailable;
std::string modelName;
std::string projectName;
long deployTime;
std::string projectType;
long createTime;
std::string projectId;
std::string dataStatus;
std::string modelId;
std::string onlineServiceStatus;
std::string testServiceStatus;
};
ListProjectsResult();
explicit ListProjectsResult(const std::string &payload);
~ListProjectsResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<Project> getProjects()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<Project> projects_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_LISTPROJECTSRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_IQA_MODEL_MODIFIYPROJECTREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_MODIFIYPROJECTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT ModifiyProjectRequest : public RpcServiceRequest
{
public:
ModifiyProjectRequest();
~ModifiyProjectRequest();
std::string getProjectName()const;
void setProjectName(const std::string& projectName);
std::string getModelId()const;
void setModelId(const std::string& modelId);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string projectName_;
std::string modelId_;
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_MODIFIYPROJECTREQUEST_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_IQA_MODEL_MODIFIYPROJECTRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_MODIFIYPROJECTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT ModifiyProjectResult : public ServiceResult
{
public:
ModifiyProjectResult();
explicit ModifiyProjectResult(const std::string &payload);
~ModifiyProjectResult();
std::string getProjectId()const;
protected:
void parse(const std::string &payload);
private:
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_MODIFIYPROJECTRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_IQA_MODEL_UPLOADDICTIONARYREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_UPLOADDICTIONARYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT UploadDictionaryRequest : public RpcServiceRequest
{
public:
UploadDictionaryRequest();
~UploadDictionaryRequest();
std::string getDictionaryFileUrl()const;
void setDictionaryFileUrl(const std::string& dictionaryFileUrl);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getDictionaryData()const;
void setDictionaryData(const std::string& dictionaryData);
private:
std::string dictionaryFileUrl_;
std::string projectId_;
std::string dictionaryData_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_UPLOADDICTIONARYREQUEST_H_

View File

@@ -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_IQA_MODEL_UPLOADDICTIONARYRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_UPLOADDICTIONARYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT UploadDictionaryResult : public ServiceResult
{
public:
UploadDictionaryResult();
explicit UploadDictionaryResult(const std::string &payload);
~UploadDictionaryResult();
int getTotalCount()const;
std::string getProjectId()const;
int getFileDataCount()const;
int getJsonDataCount()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string projectId_;
int fileDataCount_;
int jsonDataCount_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_UPLOADDICTIONARYRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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_IQA_MODEL_UPLOADDOCUMENTREQUEST_H_
#define ALIBABACLOUD_IQA_MODEL_UPLOADDOCUMENTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT UploadDocumentRequest : public RpcServiceRequest
{
public:
UploadDocumentRequest();
~UploadDocumentRequest();
std::string getDocumentData()const;
void setDocumentData(const std::string& documentData);
std::string getDocumentFileUrl()const;
void setDocumentFileUrl(const std::string& documentFileUrl);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string documentData_;
std::string documentFileUrl_;
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_UPLOADDOCUMENTREQUEST_H_

View File

@@ -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_IQA_MODEL_UPLOADDOCUMENTRESULT_H_
#define ALIBABACLOUD_IQA_MODEL_UPLOADDOCUMENTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iqa/IqaExport.h>
namespace AlibabaCloud
{
namespace Iqa
{
namespace Model
{
class ALIBABACLOUD_IQA_EXPORT UploadDocumentResult : public ServiceResult
{
public:
UploadDocumentResult();
explicit UploadDocumentResult(const std::string &payload);
~UploadDocumentResult();
int getTotalCount()const;
std::string getProjectId()const;
int getFileDataCount()const;
int getJsonDataCount()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string projectId_;
int fileDataCount_;
int jsonDataCount_;
};
}
}
}
#endif // !ALIBABACLOUD_IQA_MODEL_UPLOADDOCUMENTRESULT_H_