Compare commits

..

22 Commits

Author SHA1 Message Date
sdk-team
3a88e60d04 Update SearchImage. 2020-08-08 17:13:38 +08:00
sdk-team
83bb5be02b GetTitleDiagnose GetTitleGenerate GetImageTranslate supported. 2020-08-07 17:35:54 +08:00
sdk-team
beacaac234 Generated 2020-05-18 for dataworks-public. 2020-08-07 16:43:09 +08:00
sdk-team
52ee14ba5d GetTitleDiagnose GetTitleGenerate GetImageTranslate supported. 2020-08-07 16:09:08 +08:00
sdk-team
b257cba9c3 Add FindServiceList and GetService qps. 2020-08-07 11:54:10 +08:00
sdk-team
55baab421e Add Smart Cloudauth API. 2020-08-06 10:45:10 +08:00
sdk-team
67f50165c9 Update RecognizeTable. 2020-08-04 16:27:21 +08:00
sdk-team
1cce84c75f Add Image Url parameter for invoke motor algorithm. 2020-08-04 09:35:57 +08:00
sdk-team
90e4ddb22a Add source picture url for Monitor. 2020-08-04 09:16:59 +08:00
sdk-team
d412a52735 Add source picture url for Monitor. 2020-08-03 23:41:58 +08:00
sdk-team
2960652dcb Fix Some API Response Define. 2020-08-03 21:09:33 +08:00
sdk-team
48a3320ae9 Add source picture url for Monitor. 2020-08-03 17:40:57 +08:00
sdk-team
60539f067e Add Voice Synchronous Scan API. 2020-08-03 14:28:04 +08:00
sdk-team
d486d13814 Add ExtractPedestrianFeatureAttribute. 2020-08-03 12:03:09 +08:00
sdk-team
2de462bea7 Update DetectCelebrity. 2020-07-31 16:02:49 +08:00
sdk-team
5d7cb923d0 Edit GetStack api. 2020-07-31 11:39:38 +08:00
sdk-team
8520626698 Add Smart Cloudauth API. 2020-07-30 17:10:00 +08:00
sdk-team
9d57625a58 Supported ChatApp for SDK. 2020-07-30 14:14:04 +08:00
sdk-team
b60a834a97 Generated 2020-06-29 for alinlp. 2020-07-30 14:05:55 +08:00
sdk-team
49e97628f4 Add CreateGetDBListFromAgentTask. 2020-07-29 17:42:31 +08:00
sdk-team
5b5f0128c9 API GetTaskStatus return task detail. 2020-07-29 15:56:24 +08:00
sdk-team
b5ed975753 Generated 2020-05-18 for dataworks-public. 2020-07-29 10:47:59 +08:00
534 changed files with 30503 additions and 177 deletions

View File

@@ -1,3 +1,70 @@
2020-08-08 Version: 1.36.562
- Update SearchImage.
2020-08-07 Version: 1.36.561
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
2020-08-07 Version: 1.36.560
- Generated 2020-05-18 for `dataworks-public`.
2020-08-07 Version: 1.36.559
- GetTitleDiagnose GetTitleGenerate GetImageTranslate supported.
2020-08-07 Version: 1.36.558
- Add FindServiceList and GetService qps.
2020-08-06 Version: 1.36.557
- Add Smart Cloudauth API.
2020-08-04 Version: 1.36.556
- Update RecognizeTable.
2020-08-04 Version: 1.36.555
- Add Image Url parameter for invoke motor algorithm.
2020-08-04 Version: 1.36.554
- Add source picture url for Monitor.
2020-08-03 Version: 1.36.553
- Add source picture url for Monitor.
2020-08-03 Version: 1.36.552
- Fix Some API Response Define.
2020-08-03 Version: 1.36.551
- Add source picture url for Monitor.
2020-08-03 Version: 1.36.550
- Add Voice Synchronous Scan API.
2020-08-03 Version: 1.36.549
- Add ExtractPedestrianFeatureAttribute.
2020-07-31 Version: 1.36.548
- Update DetectCelebrity.
2020-07-31 Version: 1.36.547
- Edit GetStack api.
2020-07-30 Version: 1.36.546
- Add Smart Cloudauth API.
2020-07-30 Version: 1.36.545
- Supported ChatApp for SDK.
2020-07-30 Version: 1.36.544
- Generated 2020-06-29 for `alinlp`.
2020-07-29 Version: 1.36.543
- Add CreateGetDBListFromAgentTask.
- Add GetDBListFromAgent.
2020-07-29 Version: 1.36.542
- API GetTaskStatus return task detail.
2020-07-29 Version: 1.36.541
- Generated 2020-05-18 for `dataworks-public`.
2020-07-27 Version: 1.36.540
- Supported CheckCloudResourceAuthorized API.

View File

@@ -1 +1 @@
1.36.540
1.36.562

View File

@@ -27,6 +27,14 @@ set(alimt_public_header_model
include/alibabacloud/alimt/model/GetDetectLanguageResult.h
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
include/alibabacloud/alimt/model/GetDocTranslateTaskResult.h
include/alibabacloud/alimt/model/GetImageDiagnoseRequest.h
include/alibabacloud/alimt/model/GetImageDiagnoseResult.h
include/alibabacloud/alimt/model/GetImageTranslateRequest.h
include/alibabacloud/alimt/model/GetImageTranslateResult.h
include/alibabacloud/alimt/model/GetTitleDiagnoseRequest.h
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
include/alibabacloud/alimt/model/TranslateRequest.h
include/alibabacloud/alimt/model/TranslateResult.h
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
@@ -44,6 +52,14 @@ set(alimt_src
src/model/GetDetectLanguageResult.cc
src/model/GetDocTranslateTaskRequest.cc
src/model/GetDocTranslateTaskResult.cc
src/model/GetImageDiagnoseRequest.cc
src/model/GetImageDiagnoseResult.cc
src/model/GetImageTranslateRequest.cc
src/model/GetImageTranslateResult.cc
src/model/GetTitleDiagnoseRequest.cc
src/model/GetTitleDiagnoseResult.cc
src/model/GetTitleGenerateRequest.cc
src/model/GetTitleGenerateResult.cc
src/model/TranslateRequest.cc
src/model/TranslateResult.cc
src/model/TranslateCertificateRequest.cc

View File

@@ -28,6 +28,14 @@
#include "model/GetDetectLanguageResult.h"
#include "model/GetDocTranslateTaskRequest.h"
#include "model/GetDocTranslateTaskResult.h"
#include "model/GetImageDiagnoseRequest.h"
#include "model/GetImageDiagnoseResult.h"
#include "model/GetImageTranslateRequest.h"
#include "model/GetImageTranslateResult.h"
#include "model/GetTitleDiagnoseRequest.h"
#include "model/GetTitleDiagnoseResult.h"
#include "model/GetTitleGenerateRequest.h"
#include "model/GetTitleGenerateResult.h"
#include "model/TranslateRequest.h"
#include "model/TranslateResult.h"
#include "model/TranslateCertificateRequest.h"
@@ -54,6 +62,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetDocTranslateTaskResult> GetDocTranslateTaskOutcome;
typedef std::future<GetDocTranslateTaskOutcome> GetDocTranslateTaskOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetDocTranslateTaskRequest&, const GetDocTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocTranslateTaskAsyncHandler;
typedef Outcome<Error, Model::GetImageDiagnoseResult> GetImageDiagnoseOutcome;
typedef std::future<GetImageDiagnoseOutcome> GetImageDiagnoseOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetImageDiagnoseRequest&, const GetImageDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageDiagnoseAsyncHandler;
typedef Outcome<Error, Model::GetImageTranslateResult> GetImageTranslateOutcome;
typedef std::future<GetImageTranslateOutcome> GetImageTranslateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetImageTranslateRequest&, const GetImageTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageTranslateAsyncHandler;
typedef Outcome<Error, Model::GetTitleDiagnoseResult> GetTitleDiagnoseOutcome;
typedef std::future<GetTitleDiagnoseOutcome> GetTitleDiagnoseOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleDiagnoseRequest&, const GetTitleDiagnoseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleDiagnoseAsyncHandler;
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
@@ -80,6 +100,18 @@ namespace AlibabaCloud
GetDocTranslateTaskOutcome getDocTranslateTask(const Model::GetDocTranslateTaskRequest &request)const;
void getDocTranslateTaskAsync(const Model::GetDocTranslateTaskRequest& request, const GetDocTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDocTranslateTaskOutcomeCallable getDocTranslateTaskCallable(const Model::GetDocTranslateTaskRequest& request) const;
GetImageDiagnoseOutcome getImageDiagnose(const Model::GetImageDiagnoseRequest &request)const;
void getImageDiagnoseAsync(const Model::GetImageDiagnoseRequest& request, const GetImageDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetImageDiagnoseOutcomeCallable getImageDiagnoseCallable(const Model::GetImageDiagnoseRequest& request) const;
GetImageTranslateOutcome getImageTranslate(const Model::GetImageTranslateRequest &request)const;
void getImageTranslateAsync(const Model::GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetImageTranslateOutcomeCallable getImageTranslateCallable(const Model::GetImageTranslateRequest& request) const;
GetTitleDiagnoseOutcome getTitleDiagnose(const Model::GetTitleDiagnoseRequest &request)const;
void getTitleDiagnoseAsync(const Model::GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleDiagnoseOutcomeCallable getTitleDiagnoseCallable(const Model::GetTitleDiagnoseRequest& request) const;
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
TranslateOutcome translate(const Model::TranslateRequest &request)const;
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& 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_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseRequest : public RpcServiceRequest
{
public:
GetImageDiagnoseRequest();
~GetImageDiagnoseRequest();
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
private:
std::string url_;
std::string extra_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSEREQUEST_H_

View File

@@ -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_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageDiagnoseResult : public ServiceResult
{
public:
struct Data
{
std::string language;
};
GetImageDiagnoseResult();
explicit GetImageDiagnoseResult(const std::string &payload);
~GetImageDiagnoseResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGEDIAGNOSERESULT_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_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateRequest : public RpcServiceRequest
{
public:
GetImageTranslateRequest();
~GetImageTranslateRequest();
std::string getSourceLanguage()const;
void setSourceLanguage(const std::string& sourceLanguage);
std::string getUrl()const;
void setUrl(const std::string& url);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getTargetLanguage()const;
void setTargetLanguage(const std::string& targetLanguage);
private:
std::string sourceLanguage_;
std::string url_;
std::string extra_;
std::string targetLanguage_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATEREQUEST_H_

View File

@@ -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_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetImageTranslateResult : public ServiceResult
{
public:
struct Data
{
std::string url;
};
GetImageTranslateResult();
explicit GetImageTranslateResult(const std::string &payload);
~GetImageTranslateResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETIMAGETRANSLATERESULT_H_

View File

@@ -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_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseRequest : public RpcServiceRequest
{
public:
GetTitleDiagnoseRequest();
~GetTitleDiagnoseRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSEREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* 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_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleDiagnoseResult : public ServiceResult
{
public:
struct Data
{
std::string noFirstUppercaseList;
std::string containCoreClasses;
std::string disableWords;
std::string wordCount;
std::string overLengthLimit;
std::string totalScore;
std::string duplicateWords;
std::string wordSpelledCorrectError;
std::string allUppercaseWords;
std::string languageQualityScore;
};
GetTitleDiagnoseResult();
explicit GetTitleDiagnoseResult(const std::string &payload);
~GetTitleDiagnoseResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEDIAGNOSERESULT_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_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateRequest : public RpcServiceRequest
{
public:
GetTitleGenerateRequest();
~GetTitleGenerateRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getTitle()const;
void setTitle(const std::string& title);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getExtra()const;
void setExtra(const std::string& extra);
std::string getAttributes()const;
void setAttributes(const std::string& attributes);
std::string getHotWords()const;
void setHotWords(const std::string& hotWords);
std::string getCategoryId()const;
void setCategoryId(const std::string& categoryId);
private:
std::string language_;
std::string title_;
std::string platform_;
std::string extra_;
std::string attributes_;
std::string hotWords_;
std::string categoryId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATEREQUEST_H_

View File

@@ -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_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alimt/AlimtExport.h>
namespace AlibabaCloud
{
namespace Alimt
{
namespace Model
{
class ALIBABACLOUD_ALIMT_EXPORT GetTitleGenerateResult : public ServiceResult
{
public:
struct Data
{
std::string titles;
};
GetTitleGenerateResult();
explicit GetTitleGenerateResult(const std::string &payload);
~GetTitleGenerateResult();
std::string getMessage()const;
Data getData()const;
int getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
int code_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEGENERATERESULT_H_

View File

@@ -159,6 +159,150 @@ AlimtClient::GetDocTranslateTaskOutcomeCallable AlimtClient::getDocTranslateTask
return task->get_future();
}
AlimtClient::GetImageDiagnoseOutcome AlimtClient::getImageDiagnose(const GetImageDiagnoseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetImageDiagnoseOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetImageDiagnoseOutcome(GetImageDiagnoseResult(outcome.result()));
else
return GetImageDiagnoseOutcome(outcome.error());
}
void AlimtClient::getImageDiagnoseAsync(const GetImageDiagnoseRequest& request, const GetImageDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getImageDiagnose(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetImageDiagnoseOutcomeCallable AlimtClient::getImageDiagnoseCallable(const GetImageDiagnoseRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetImageDiagnoseOutcome()>>(
[this, request]()
{
return this->getImageDiagnose(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetImageTranslateOutcome AlimtClient::getImageTranslate(const GetImageTranslateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetImageTranslateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetImageTranslateOutcome(GetImageTranslateResult(outcome.result()));
else
return GetImageTranslateOutcome(outcome.error());
}
void AlimtClient::getImageTranslateAsync(const GetImageTranslateRequest& request, const GetImageTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getImageTranslate(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetImageTranslateOutcomeCallable AlimtClient::getImageTranslateCallable(const GetImageTranslateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetImageTranslateOutcome()>>(
[this, request]()
{
return this->getImageTranslate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetTitleDiagnoseOutcome AlimtClient::getTitleDiagnose(const GetTitleDiagnoseRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTitleDiagnoseOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTitleDiagnoseOutcome(GetTitleDiagnoseResult(outcome.result()));
else
return GetTitleDiagnoseOutcome(outcome.error());
}
void AlimtClient::getTitleDiagnoseAsync(const GetTitleDiagnoseRequest& request, const GetTitleDiagnoseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTitleDiagnose(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetTitleDiagnoseOutcomeCallable AlimtClient::getTitleDiagnoseCallable(const GetTitleDiagnoseRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTitleDiagnoseOutcome()>>(
[this, request]()
{
return this->getTitleDiagnose(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::GetTitleGenerateOutcome AlimtClient::getTitleGenerate(const GetTitleGenerateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTitleGenerateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTitleGenerateOutcome(GetTitleGenerateResult(outcome.result()));
else
return GetTitleGenerateOutcome(outcome.error());
}
void AlimtClient::getTitleGenerateAsync(const GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTitleGenerate(request), context);
};
asyncExecute(new Runnable(fn));
}
AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallable(const GetTitleGenerateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTitleGenerateOutcome()>>(
[this, request]()
{
return this->getTitleGenerate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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.
*/
#include <alibabacloud/alimt/model/GetImageDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetImageDiagnoseRequest;
GetImageDiagnoseRequest::GetImageDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetImageDiagnoseRequest::~GetImageDiagnoseRequest()
{}
std::string GetImageDiagnoseRequest::getUrl()const
{
return url_;
}
void GetImageDiagnoseRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
}
std::string GetImageDiagnoseRequest::getExtra()const
{
return extra_;
}
void GetImageDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}

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.
*/
#include <alibabacloud/alimt/model/GetImageDiagnoseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetImageDiagnoseResult::GetImageDiagnoseResult() :
ServiceResult()
{}
GetImageDiagnoseResult::GetImageDiagnoseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetImageDiagnoseResult::~GetImageDiagnoseResult()
{}
void GetImageDiagnoseResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Language"].isNull())
data_.language = dataNode["Language"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetImageDiagnoseResult::getMessage()const
{
return message_;
}
GetImageDiagnoseResult::Data GetImageDiagnoseResult::getData()const
{
return data_;
}
int GetImageDiagnoseResult::getCode()const
{
return code_;
}

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.
*/
#include <alibabacloud/alimt/model/GetImageTranslateRequest.h>
using AlibabaCloud::Alimt::Model::GetImageTranslateRequest;
GetImageTranslateRequest::GetImageTranslateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetImageTranslate")
{
setMethod(HttpRequest::Method::Post);
}
GetImageTranslateRequest::~GetImageTranslateRequest()
{}
std::string GetImageTranslateRequest::getSourceLanguage()const
{
return sourceLanguage_;
}
void GetImageTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
{
sourceLanguage_ = sourceLanguage;
setBodyParameter("SourceLanguage", sourceLanguage);
}
std::string GetImageTranslateRequest::getUrl()const
{
return url_;
}
void GetImageTranslateRequest::setUrl(const std::string& url)
{
url_ = url;
setBodyParameter("Url", url);
}
std::string GetImageTranslateRequest::getExtra()const
{
return extra_;
}
void GetImageTranslateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}
std::string GetImageTranslateRequest::getTargetLanguage()const
{
return targetLanguage_;
}
void GetImageTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
{
targetLanguage_ = targetLanguage;
setBodyParameter("TargetLanguage", targetLanguage);
}

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.
*/
#include <alibabacloud/alimt/model/GetImageTranslateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetImageTranslateResult::GetImageTranslateResult() :
ServiceResult()
{}
GetImageTranslateResult::GetImageTranslateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetImageTranslateResult::~GetImageTranslateResult()
{}
void GetImageTranslateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Url"].isNull())
data_.url = dataNode["Url"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetImageTranslateResult::getMessage()const
{
return message_;
}
GetImageTranslateResult::Data GetImageTranslateResult::getData()const
{
return data_;
}
int GetImageTranslateResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetTitleDiagnoseRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleDiagnoseRequest;
GetTitleDiagnoseRequest::GetTitleDiagnoseRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleDiagnose")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleDiagnoseRequest::~GetTitleDiagnoseRequest()
{}
std::string GetTitleDiagnoseRequest::getLanguage()const
{
return language_;
}
void GetTitleDiagnoseRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
}
std::string GetTitleDiagnoseRequest::getTitle()const
{
return title_;
}
void GetTitleDiagnoseRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
}
std::string GetTitleDiagnoseRequest::getPlatform()const
{
return platform_;
}
void GetTitleDiagnoseRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
}
std::string GetTitleDiagnoseRequest::getExtra()const
{
return extra_;
}
void GetTitleDiagnoseRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}
std::string GetTitleDiagnoseRequest::getCategoryId()const
{
return categoryId_;
}
void GetTitleDiagnoseRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
}

View File

@@ -0,0 +1,84 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetTitleDiagnoseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetTitleDiagnoseResult::GetTitleDiagnoseResult() :
ServiceResult()
{}
GetTitleDiagnoseResult::GetTitleDiagnoseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTitleDiagnoseResult::~GetTitleDiagnoseResult()
{}
void GetTitleDiagnoseResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ContainCoreClasses"].isNull())
data_.containCoreClasses = dataNode["ContainCoreClasses"].asString();
if(!dataNode["OverLengthLimit"].isNull())
data_.overLengthLimit = dataNode["OverLengthLimit"].asString();
if(!dataNode["WordSpelledCorrectError"].isNull())
data_.wordSpelledCorrectError = dataNode["WordSpelledCorrectError"].asString();
if(!dataNode["AllUppercaseWords"].isNull())
data_.allUppercaseWords = dataNode["AllUppercaseWords"].asString();
if(!dataNode["NoFirstUppercaseList"].isNull())
data_.noFirstUppercaseList = dataNode["NoFirstUppercaseList"].asString();
if(!dataNode["DuplicateWords"].isNull())
data_.duplicateWords = dataNode["DuplicateWords"].asString();
if(!dataNode["DisableWords"].isNull())
data_.disableWords = dataNode["DisableWords"].asString();
if(!dataNode["WordCount"].isNull())
data_.wordCount = dataNode["WordCount"].asString();
if(!dataNode["TotalScore"].isNull())
data_.totalScore = dataNode["TotalScore"].asString();
if(!dataNode["LanguageQualityScore"].isNull())
data_.languageQualityScore = dataNode["LanguageQualityScore"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetTitleDiagnoseResult::getMessage()const
{
return message_;
}
GetTitleDiagnoseResult::Data GetTitleDiagnoseResult::getData()const
{
return data_;
}
int GetTitleDiagnoseResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,106 @@
/*
* 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.
*/
#include <alibabacloud/alimt/model/GetTitleGenerateRequest.h>
using AlibabaCloud::Alimt::Model::GetTitleGenerateRequest;
GetTitleGenerateRequest::GetTitleGenerateRequest() :
RpcServiceRequest("alimt", "2018-10-12", "GetTitleGenerate")
{
setMethod(HttpRequest::Method::Post);
}
GetTitleGenerateRequest::~GetTitleGenerateRequest()
{}
std::string GetTitleGenerateRequest::getLanguage()const
{
return language_;
}
void GetTitleGenerateRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
}
std::string GetTitleGenerateRequest::getTitle()const
{
return title_;
}
void GetTitleGenerateRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
}
std::string GetTitleGenerateRequest::getPlatform()const
{
return platform_;
}
void GetTitleGenerateRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setBodyParameter("Platform", platform);
}
std::string GetTitleGenerateRequest::getExtra()const
{
return extra_;
}
void GetTitleGenerateRequest::setExtra(const std::string& extra)
{
extra_ = extra;
setBodyParameter("Extra", extra);
}
std::string GetTitleGenerateRequest::getAttributes()const
{
return attributes_;
}
void GetTitleGenerateRequest::setAttributes(const std::string& attributes)
{
attributes_ = attributes;
setBodyParameter("Attributes", attributes);
}
std::string GetTitleGenerateRequest::getHotWords()const
{
return hotWords_;
}
void GetTitleGenerateRequest::setHotWords(const std::string& hotWords)
{
hotWords_ = hotWords;
setBodyParameter("HotWords", hotWords);
}
std::string GetTitleGenerateRequest::getCategoryId()const
{
return categoryId_;
}
void GetTitleGenerateRequest::setCategoryId(const std::string& categoryId)
{
categoryId_ = categoryId;
setBodyParameter("CategoryId", categoryId);
}

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.
*/
#include <alibabacloud/alimt/model/GetTitleGenerateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alimt;
using namespace AlibabaCloud::Alimt::Model;
GetTitleGenerateResult::GetTitleGenerateResult() :
ServiceResult()
{}
GetTitleGenerateResult::GetTitleGenerateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTitleGenerateResult::~GetTitleGenerateResult()
{}
void GetTitleGenerateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Titles"].isNull())
data_.titles = dataNode["Titles"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetTitleGenerateResult::getMessage()const
{
return message_;
}
GetTitleGenerateResult::Data GetTitleGenerateResult::getData()const
{
return data_;
}
int GetTitleGenerateResult::getCode()const
{
return code_;
}

122
alinlp/CMakeLists.txt Normal file
View File

@@ -0,0 +1,122 @@
#
# 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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(alinlp_public_header
include/alibabacloud/alinlp/AlinlpClient.h
include/alibabacloud/alinlp/AlinlpExport.h )
set(alinlp_public_header_model
include/alibabacloud/alinlp/model/GetDpChEcomRequest.h
include/alibabacloud/alinlp/model/GetDpChEcomResult.h
include/alibabacloud/alinlp/model/GetEcChGeneralRequest.h
include/alibabacloud/alinlp/model/GetEcChGeneralResult.h
include/alibabacloud/alinlp/model/GetNerChMedicalRequest.h
include/alibabacloud/alinlp/model/GetNerChMedicalResult.h
include/alibabacloud/alinlp/model/GetNerCustomizedChEcomRequest.h
include/alibabacloud/alinlp/model/GetNerCustomizedChEcomResult.h
include/alibabacloud/alinlp/model/GetPosChEcomRequest.h
include/alibabacloud/alinlp/model/GetPosChEcomResult.h
include/alibabacloud/alinlp/model/GetSummaryChEcomRequest.h
include/alibabacloud/alinlp/model/GetSummaryChEcomResult.h
include/alibabacloud/alinlp/model/GetTsChEcomRequest.h
include/alibabacloud/alinlp/model/GetTsChEcomResult.h
include/alibabacloud/alinlp/model/GetWeChEcomRequest.h
include/alibabacloud/alinlp/model/GetWeChEcomResult.h
include/alibabacloud/alinlp/model/GetWsCustomizedChGeneralRequest.h
include/alibabacloud/alinlp/model/GetWsCustomizedChGeneralResult.h
include/alibabacloud/alinlp/model/GetWsCustomizedSeaGeneralRequest.h
include/alibabacloud/alinlp/model/GetWsCustomizedSeaGeneralResult.h )
set(alinlp_src
src/AlinlpClient.cc
src/model/GetDpChEcomRequest.cc
src/model/GetDpChEcomResult.cc
src/model/GetEcChGeneralRequest.cc
src/model/GetEcChGeneralResult.cc
src/model/GetNerChMedicalRequest.cc
src/model/GetNerChMedicalResult.cc
src/model/GetNerCustomizedChEcomRequest.cc
src/model/GetNerCustomizedChEcomResult.cc
src/model/GetPosChEcomRequest.cc
src/model/GetPosChEcomResult.cc
src/model/GetSummaryChEcomRequest.cc
src/model/GetSummaryChEcomResult.cc
src/model/GetTsChEcomRequest.cc
src/model/GetTsChEcomResult.cc
src/model/GetWeChEcomRequest.cc
src/model/GetWeChEcomResult.cc
src/model/GetWsCustomizedChGeneralRequest.cc
src/model/GetWsCustomizedChGeneralResult.cc
src/model/GetWsCustomizedSeaGeneralRequest.cc
src/model/GetWsCustomizedSeaGeneralResult.cc )
add_library(alinlp ${LIB_TYPE}
${alinlp_public_header}
${alinlp_public_header_model}
${alinlp_src})
set_target_properties(alinlp
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}alinlp
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(alinlp
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_ALINLP_LIBRARY)
endif()
target_include_directories(alinlp
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(alinlp
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(alinlp
jsoncpp)
target_include_directories(alinlp
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(alinlp
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(alinlp
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(alinlp
PRIVATE /usr/include/jsoncpp)
target_link_libraries(alinlp
jsoncpp)
endif()
install(FILES ${alinlp_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alinlp)
install(FILES ${alinlp_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/alinlp/model)
install(TARGETS alinlp
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,126 @@
/*
* 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_ALINLP_ALINLPCLIENT_H_
#define ALIBABACLOUD_ALINLP_ALINLPCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "AlinlpExport.h"
#include "model/GetDpChEcomRequest.h"
#include "model/GetDpChEcomResult.h"
#include "model/GetEcChGeneralRequest.h"
#include "model/GetEcChGeneralResult.h"
#include "model/GetNerChMedicalRequest.h"
#include "model/GetNerChMedicalResult.h"
#include "model/GetNerCustomizedChEcomRequest.h"
#include "model/GetNerCustomizedChEcomResult.h"
#include "model/GetPosChEcomRequest.h"
#include "model/GetPosChEcomResult.h"
#include "model/GetSummaryChEcomRequest.h"
#include "model/GetSummaryChEcomResult.h"
#include "model/GetTsChEcomRequest.h"
#include "model/GetTsChEcomResult.h"
#include "model/GetWeChEcomRequest.h"
#include "model/GetWeChEcomResult.h"
#include "model/GetWsCustomizedChGeneralRequest.h"
#include "model/GetWsCustomizedChGeneralResult.h"
#include "model/GetWsCustomizedSeaGeneralRequest.h"
#include "model/GetWsCustomizedSeaGeneralResult.h"
namespace AlibabaCloud
{
namespace Alinlp
{
class ALIBABACLOUD_ALINLP_EXPORT AlinlpClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::GetDpChEcomResult> GetDpChEcomOutcome;
typedef std::future<GetDpChEcomOutcome> GetDpChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetDpChEcomRequest&, const GetDpChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDpChEcomAsyncHandler;
typedef Outcome<Error, Model::GetEcChGeneralResult> GetEcChGeneralOutcome;
typedef std::future<GetEcChGeneralOutcome> GetEcChGeneralOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetEcChGeneralRequest&, const GetEcChGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEcChGeneralAsyncHandler;
typedef Outcome<Error, Model::GetNerChMedicalResult> GetNerChMedicalOutcome;
typedef std::future<GetNerChMedicalOutcome> GetNerChMedicalOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetNerChMedicalRequest&, const GetNerChMedicalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNerChMedicalAsyncHandler;
typedef Outcome<Error, Model::GetNerCustomizedChEcomResult> GetNerCustomizedChEcomOutcome;
typedef std::future<GetNerCustomizedChEcomOutcome> GetNerCustomizedChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetNerCustomizedChEcomRequest&, const GetNerCustomizedChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNerCustomizedChEcomAsyncHandler;
typedef Outcome<Error, Model::GetPosChEcomResult> GetPosChEcomOutcome;
typedef std::future<GetPosChEcomOutcome> GetPosChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetPosChEcomRequest&, const GetPosChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPosChEcomAsyncHandler;
typedef Outcome<Error, Model::GetSummaryChEcomResult> GetSummaryChEcomOutcome;
typedef std::future<GetSummaryChEcomOutcome> GetSummaryChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetSummaryChEcomRequest&, const GetSummaryChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSummaryChEcomAsyncHandler;
typedef Outcome<Error, Model::GetTsChEcomResult> GetTsChEcomOutcome;
typedef std::future<GetTsChEcomOutcome> GetTsChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetTsChEcomRequest&, const GetTsChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTsChEcomAsyncHandler;
typedef Outcome<Error, Model::GetWeChEcomResult> GetWeChEcomOutcome;
typedef std::future<GetWeChEcomOutcome> GetWeChEcomOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetWeChEcomRequest&, const GetWeChEcomOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWeChEcomAsyncHandler;
typedef Outcome<Error, Model::GetWsCustomizedChGeneralResult> GetWsCustomizedChGeneralOutcome;
typedef std::future<GetWsCustomizedChGeneralOutcome> GetWsCustomizedChGeneralOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetWsCustomizedChGeneralRequest&, const GetWsCustomizedChGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWsCustomizedChGeneralAsyncHandler;
typedef Outcome<Error, Model::GetWsCustomizedSeaGeneralResult> GetWsCustomizedSeaGeneralOutcome;
typedef std::future<GetWsCustomizedSeaGeneralOutcome> GetWsCustomizedSeaGeneralOutcomeCallable;
typedef std::function<void(const AlinlpClient*, const Model::GetWsCustomizedSeaGeneralRequest&, const GetWsCustomizedSeaGeneralOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetWsCustomizedSeaGeneralAsyncHandler;
AlinlpClient(const Credentials &credentials, const ClientConfiguration &configuration);
AlinlpClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
AlinlpClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~AlinlpClient();
GetDpChEcomOutcome getDpChEcom(const Model::GetDpChEcomRequest &request)const;
void getDpChEcomAsync(const Model::GetDpChEcomRequest& request, const GetDpChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDpChEcomOutcomeCallable getDpChEcomCallable(const Model::GetDpChEcomRequest& request) const;
GetEcChGeneralOutcome getEcChGeneral(const Model::GetEcChGeneralRequest &request)const;
void getEcChGeneralAsync(const Model::GetEcChGeneralRequest& request, const GetEcChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEcChGeneralOutcomeCallable getEcChGeneralCallable(const Model::GetEcChGeneralRequest& request) const;
GetNerChMedicalOutcome getNerChMedical(const Model::GetNerChMedicalRequest &request)const;
void getNerChMedicalAsync(const Model::GetNerChMedicalRequest& request, const GetNerChMedicalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNerChMedicalOutcomeCallable getNerChMedicalCallable(const Model::GetNerChMedicalRequest& request) const;
GetNerCustomizedChEcomOutcome getNerCustomizedChEcom(const Model::GetNerCustomizedChEcomRequest &request)const;
void getNerCustomizedChEcomAsync(const Model::GetNerCustomizedChEcomRequest& request, const GetNerCustomizedChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNerCustomizedChEcomOutcomeCallable getNerCustomizedChEcomCallable(const Model::GetNerCustomizedChEcomRequest& request) const;
GetPosChEcomOutcome getPosChEcom(const Model::GetPosChEcomRequest &request)const;
void getPosChEcomAsync(const Model::GetPosChEcomRequest& request, const GetPosChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetPosChEcomOutcomeCallable getPosChEcomCallable(const Model::GetPosChEcomRequest& request) const;
GetSummaryChEcomOutcome getSummaryChEcom(const Model::GetSummaryChEcomRequest &request)const;
void getSummaryChEcomAsync(const Model::GetSummaryChEcomRequest& request, const GetSummaryChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSummaryChEcomOutcomeCallable getSummaryChEcomCallable(const Model::GetSummaryChEcomRequest& request) const;
GetTsChEcomOutcome getTsChEcom(const Model::GetTsChEcomRequest &request)const;
void getTsChEcomAsync(const Model::GetTsChEcomRequest& request, const GetTsChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTsChEcomOutcomeCallable getTsChEcomCallable(const Model::GetTsChEcomRequest& request) const;
GetWeChEcomOutcome getWeChEcom(const Model::GetWeChEcomRequest &request)const;
void getWeChEcomAsync(const Model::GetWeChEcomRequest& request, const GetWeChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetWeChEcomOutcomeCallable getWeChEcomCallable(const Model::GetWeChEcomRequest& request) const;
GetWsCustomizedChGeneralOutcome getWsCustomizedChGeneral(const Model::GetWsCustomizedChGeneralRequest &request)const;
void getWsCustomizedChGeneralAsync(const Model::GetWsCustomizedChGeneralRequest& request, const GetWsCustomizedChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetWsCustomizedChGeneralOutcomeCallable getWsCustomizedChGeneralCallable(const Model::GetWsCustomizedChGeneralRequest& request) const;
GetWsCustomizedSeaGeneralOutcome getWsCustomizedSeaGeneral(const Model::GetWsCustomizedSeaGeneralRequest &request)const;
void getWsCustomizedSeaGeneralAsync(const Model::GetWsCustomizedSeaGeneralRequest& request, const GetWsCustomizedSeaGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetWsCustomizedSeaGeneralOutcomeCallable getWsCustomizedSeaGeneralCallable(const Model::GetWsCustomizedSeaGeneralRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_ALINLP_ALINLPCLIENT_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_ALINLP_ALINLPEXPORT_H_
#define ALIBABACLOUD_ALINLP_ALINLPEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_ALINLP_LIBRARY)
# define ALIBABACLOUD_ALINLP_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_ALINLP_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_ALINLP_EXPORT
#endif
#endif // !ALIBABACLOUD_ALINLP_ALINLPEXPORT_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_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetDpChEcomRequest : public RpcServiceRequest
{
public:
GetDpChEcomRequest();
~GetDpChEcomRequest();
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getText()const;
void setText(const std::string& text);
private:
std::string serviceCode_;
std::string text_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMREQUEST_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_ALINLP_MODEL_GETDPCHECOMRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetDpChEcomResult : public ServiceResult
{
public:
GetDpChEcomResult();
explicit GetDpChEcomResult(const std::string &payload);
~GetDpChEcomResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETDPCHECOMRESULT_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_ALINLP_MODEL_GETECCHGENERALREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetEcChGeneralRequest : public RpcServiceRequest
{
public:
GetEcChGeneralRequest();
~GetEcChGeneralRequest();
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getText()const;
void setText(const std::string& text);
private:
std::string serviceCode_;
std::string text_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALREQUEST_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_ALINLP_MODEL_GETECCHGENERALRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetEcChGeneralResult : public ServiceResult
{
public:
GetEcChGeneralResult();
explicit GetEcChGeneralResult(const std::string &payload);
~GetEcChGeneralResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETECCHGENERALRESULT_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_ALINLP_MODEL_GETNERCHMEDICALREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetNerChMedicalRequest : public RpcServiceRequest
{
public:
GetNerChMedicalRequest();
~GetNerChMedicalRequest();
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getText()const;
void setText(const std::string& text);
private:
std::string serviceCode_;
std::string text_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALREQUEST_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_ALINLP_MODEL_GETNERCHMEDICALRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetNerChMedicalResult : public ServiceResult
{
public:
GetNerChMedicalResult();
explicit GetNerChMedicalResult(const std::string &payload);
~GetNerChMedicalResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCHMEDICALRESULT_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_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetNerCustomizedChEcomRequest : public RpcServiceRequest
{
public:
GetNerCustomizedChEcomRequest();
~GetNerCustomizedChEcomRequest();
std::string getLexerId()const;
void setLexerId(const std::string& lexerId);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getText()const;
void setText(const std::string& text);
private:
std::string lexerId_;
std::string serviceCode_;
std::string text_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMREQUEST_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_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetNerCustomizedChEcomResult : public ServiceResult
{
public:
GetNerCustomizedChEcomResult();
explicit GetNerCustomizedChEcomResult(const std::string &payload);
~GetNerCustomizedChEcomResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETNERCUSTOMIZEDCHECOMRESULT_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_ALINLP_MODEL_GETPOSCHECOMREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetPosChEcomRequest : public RpcServiceRequest
{
public:
GetPosChEcomRequest();
~GetPosChEcomRequest();
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getTokenizerId()const;
void setTokenizerId(const std::string& tokenizerId);
std::string getText()const;
void setText(const std::string& text);
std::string getOutType()const;
void setOutType(const std::string& outType);
private:
std::string serviceCode_;
std::string tokenizerId_;
std::string text_;
std::string outType_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMREQUEST_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_ALINLP_MODEL_GETPOSCHECOMRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetPosChEcomResult : public ServiceResult
{
public:
GetPosChEcomResult();
explicit GetPosChEcomResult(const std::string &payload);
~GetPosChEcomResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETPOSCHECOMRESULT_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_ALINLP_MODEL_GETSUMMARYCHECOMREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetSummaryChEcomRequest : public RpcServiceRequest
{
public:
GetSummaryChEcomRequest();
~GetSummaryChEcomRequest();
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getText()const;
void setText(const std::string& text);
private:
std::string serviceCode_;
std::string text_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMREQUEST_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_ALINLP_MODEL_GETSUMMARYCHECOMRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetSummaryChEcomResult : public ServiceResult
{
public:
GetSummaryChEcomResult();
explicit GetSummaryChEcomResult(const std::string &payload);
~GetSummaryChEcomResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETSUMMARYCHECOMRESULT_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_ALINLP_MODEL_GETTSCHECOMREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetTsChEcomRequest : public RpcServiceRequest
{
public:
GetTsChEcomRequest();
~GetTsChEcomRequest();
std::string getType()const;
void setType(const std::string& type);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getOriginT()const;
void setOriginT(const std::string& originT);
std::string getOriginQ()const;
void setOriginQ(const std::string& originQ);
private:
std::string type_;
std::string serviceCode_;
std::string originT_;
std::string originQ_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMREQUEST_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_ALINLP_MODEL_GETTSCHECOMRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetTsChEcomResult : public ServiceResult
{
public:
GetTsChEcomResult();
explicit GetTsChEcomResult(const std::string &payload);
~GetTsChEcomResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETTSCHECOMRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_ALINLP_MODEL_GETWECHECOMREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetWeChEcomRequest : public RpcServiceRequest
{
public:
GetWeChEcomRequest();
~GetWeChEcomRequest();
std::string getWordVectorDelimiter()const;
void setWordVectorDelimiter(const std::string& wordVectorDelimiter);
std::string getType()const;
void setType(const std::string& type);
std::string getUuid()const;
void setUuid(const std::string& uuid);
std::string getDelimiter()const;
void setDelimiter(const std::string& delimiter);
std::string getText()const;
void setText(const std::string& text);
std::string getToken()const;
void setToken(const std::string& token);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getSize()const;
void setSize(const std::string& size);
std::string getWordDelimiter()const;
void setWordDelimiter(const std::string& wordDelimiter);
std::string getOperation()const;
void setOperation(const std::string& operation);
private:
std::string wordVectorDelimiter_;
std::string type_;
std::string uuid_;
std::string delimiter_;
std::string text_;
std::string token_;
std::string serviceCode_;
std::string size_;
std::string wordDelimiter_;
std::string operation_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMREQUEST_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_ALINLP_MODEL_GETWECHECOMRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetWeChEcomResult : public ServiceResult
{
public:
GetWeChEcomResult();
explicit GetWeChEcomResult(const std::string &payload);
~GetWeChEcomResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWECHECOMRESULT_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_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedChGeneralRequest : public RpcServiceRequest
{
public:
GetWsCustomizedChGeneralRequest();
~GetWsCustomizedChGeneralRequest();
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getTokenizerId()const;
void setTokenizerId(const std::string& tokenizerId);
std::string getText()const;
void setText(const std::string& text);
std::string getOutType()const;
void setOutType(const std::string& outType);
private:
std::string serviceCode_;
std::string tokenizerId_;
std::string text_;
std::string outType_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALREQUEST_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_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedChGeneralResult : public ServiceResult
{
public:
GetWsCustomizedChGeneralResult();
explicit GetWsCustomizedChGeneralResult(const std::string &payload);
~GetWsCustomizedChGeneralResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDCHGENERALRESULT_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_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALREQUEST_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedSeaGeneralRequest : public RpcServiceRequest
{
public:
GetWsCustomizedSeaGeneralRequest();
~GetWsCustomizedSeaGeneralRequest();
std::string getLanguage()const;
void setLanguage(const std::string& language);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getText()const;
void setText(const std::string& text);
private:
std::string language_;
std::string serviceCode_;
std::string text_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALREQUEST_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_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALRESULT_H_
#define ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alinlp/AlinlpExport.h>
namespace AlibabaCloud
{
namespace Alinlp
{
namespace Model
{
class ALIBABACLOUD_ALINLP_EXPORT GetWsCustomizedSeaGeneralResult : public ServiceResult
{
public:
GetWsCustomizedSeaGeneralResult();
explicit GetWsCustomizedSeaGeneralResult(const std::string &payload);
~GetWsCustomizedSeaGeneralResult();
std::string getData()const;
protected:
void parse(const std::string &payload);
private:
std::string data_;
};
}
}
}
#endif // !ALIBABACLOUD_ALINLP_MODEL_GETWSCUSTOMIZEDSEAGENERALRESULT_H_

413
alinlp/src/AlinlpClient.cc Normal file
View File

@@ -0,0 +1,413 @@
/*
* 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.
*/
#include <alibabacloud/alinlp/AlinlpClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
namespace
{
const std::string SERVICE_NAME = "alinlp";
}
AlinlpClient::AlinlpClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alinlp");
}
AlinlpClient::AlinlpClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alinlp");
}
AlinlpClient::AlinlpClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "alinlp");
}
AlinlpClient::~AlinlpClient()
{}
AlinlpClient::GetDpChEcomOutcome AlinlpClient::getDpChEcom(const GetDpChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDpChEcomOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDpChEcomOutcome(GetDpChEcomResult(outcome.result()));
else
return GetDpChEcomOutcome(outcome.error());
}
void AlinlpClient::getDpChEcomAsync(const GetDpChEcomRequest& request, const GetDpChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDpChEcom(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetDpChEcomOutcomeCallable AlinlpClient::getDpChEcomCallable(const GetDpChEcomRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDpChEcomOutcome()>>(
[this, request]()
{
return this->getDpChEcom(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetEcChGeneralOutcome AlinlpClient::getEcChGeneral(const GetEcChGeneralRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetEcChGeneralOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetEcChGeneralOutcome(GetEcChGeneralResult(outcome.result()));
else
return GetEcChGeneralOutcome(outcome.error());
}
void AlinlpClient::getEcChGeneralAsync(const GetEcChGeneralRequest& request, const GetEcChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getEcChGeneral(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetEcChGeneralOutcomeCallable AlinlpClient::getEcChGeneralCallable(const GetEcChGeneralRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetEcChGeneralOutcome()>>(
[this, request]()
{
return this->getEcChGeneral(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetNerChMedicalOutcome AlinlpClient::getNerChMedical(const GetNerChMedicalRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetNerChMedicalOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetNerChMedicalOutcome(GetNerChMedicalResult(outcome.result()));
else
return GetNerChMedicalOutcome(outcome.error());
}
void AlinlpClient::getNerChMedicalAsync(const GetNerChMedicalRequest& request, const GetNerChMedicalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getNerChMedical(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetNerChMedicalOutcomeCallable AlinlpClient::getNerChMedicalCallable(const GetNerChMedicalRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetNerChMedicalOutcome()>>(
[this, request]()
{
return this->getNerChMedical(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetNerCustomizedChEcomOutcome AlinlpClient::getNerCustomizedChEcom(const GetNerCustomizedChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetNerCustomizedChEcomOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetNerCustomizedChEcomOutcome(GetNerCustomizedChEcomResult(outcome.result()));
else
return GetNerCustomizedChEcomOutcome(outcome.error());
}
void AlinlpClient::getNerCustomizedChEcomAsync(const GetNerCustomizedChEcomRequest& request, const GetNerCustomizedChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getNerCustomizedChEcom(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetNerCustomizedChEcomOutcomeCallable AlinlpClient::getNerCustomizedChEcomCallable(const GetNerCustomizedChEcomRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetNerCustomizedChEcomOutcome()>>(
[this, request]()
{
return this->getNerCustomizedChEcom(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetPosChEcomOutcome AlinlpClient::getPosChEcom(const GetPosChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetPosChEcomOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetPosChEcomOutcome(GetPosChEcomResult(outcome.result()));
else
return GetPosChEcomOutcome(outcome.error());
}
void AlinlpClient::getPosChEcomAsync(const GetPosChEcomRequest& request, const GetPosChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getPosChEcom(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetPosChEcomOutcomeCallable AlinlpClient::getPosChEcomCallable(const GetPosChEcomRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetPosChEcomOutcome()>>(
[this, request]()
{
return this->getPosChEcom(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetSummaryChEcomOutcome AlinlpClient::getSummaryChEcom(const GetSummaryChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetSummaryChEcomOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetSummaryChEcomOutcome(GetSummaryChEcomResult(outcome.result()));
else
return GetSummaryChEcomOutcome(outcome.error());
}
void AlinlpClient::getSummaryChEcomAsync(const GetSummaryChEcomRequest& request, const GetSummaryChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getSummaryChEcom(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetSummaryChEcomOutcomeCallable AlinlpClient::getSummaryChEcomCallable(const GetSummaryChEcomRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetSummaryChEcomOutcome()>>(
[this, request]()
{
return this->getSummaryChEcom(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetTsChEcomOutcome AlinlpClient::getTsChEcom(const GetTsChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetTsChEcomOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetTsChEcomOutcome(GetTsChEcomResult(outcome.result()));
else
return GetTsChEcomOutcome(outcome.error());
}
void AlinlpClient::getTsChEcomAsync(const GetTsChEcomRequest& request, const GetTsChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getTsChEcom(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetTsChEcomOutcomeCallable AlinlpClient::getTsChEcomCallable(const GetTsChEcomRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetTsChEcomOutcome()>>(
[this, request]()
{
return this->getTsChEcom(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetWeChEcomOutcome AlinlpClient::getWeChEcom(const GetWeChEcomRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetWeChEcomOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetWeChEcomOutcome(GetWeChEcomResult(outcome.result()));
else
return GetWeChEcomOutcome(outcome.error());
}
void AlinlpClient::getWeChEcomAsync(const GetWeChEcomRequest& request, const GetWeChEcomAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getWeChEcom(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetWeChEcomOutcomeCallable AlinlpClient::getWeChEcomCallable(const GetWeChEcomRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetWeChEcomOutcome()>>(
[this, request]()
{
return this->getWeChEcom(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetWsCustomizedChGeneralOutcome AlinlpClient::getWsCustomizedChGeneral(const GetWsCustomizedChGeneralRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetWsCustomizedChGeneralOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetWsCustomizedChGeneralOutcome(GetWsCustomizedChGeneralResult(outcome.result()));
else
return GetWsCustomizedChGeneralOutcome(outcome.error());
}
void AlinlpClient::getWsCustomizedChGeneralAsync(const GetWsCustomizedChGeneralRequest& request, const GetWsCustomizedChGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getWsCustomizedChGeneral(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetWsCustomizedChGeneralOutcomeCallable AlinlpClient::getWsCustomizedChGeneralCallable(const GetWsCustomizedChGeneralRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetWsCustomizedChGeneralOutcome()>>(
[this, request]()
{
return this->getWsCustomizedChGeneral(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlinlpClient::GetWsCustomizedSeaGeneralOutcome AlinlpClient::getWsCustomizedSeaGeneral(const GetWsCustomizedSeaGeneralRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetWsCustomizedSeaGeneralOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetWsCustomizedSeaGeneralOutcome(GetWsCustomizedSeaGeneralResult(outcome.result()));
else
return GetWsCustomizedSeaGeneralOutcome(outcome.error());
}
void AlinlpClient::getWsCustomizedSeaGeneralAsync(const GetWsCustomizedSeaGeneralRequest& request, const GetWsCustomizedSeaGeneralAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getWsCustomizedSeaGeneral(request), context);
};
asyncExecute(new Runnable(fn));
}
AlinlpClient::GetWsCustomizedSeaGeneralOutcomeCallable AlinlpClient::getWsCustomizedSeaGeneralCallable(const GetWsCustomizedSeaGeneralRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetWsCustomizedSeaGeneralOutcome()>>(
[this, request]()
{
return this->getWsCustomizedSeaGeneral(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

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.
*/
#include <alibabacloud/alinlp/model/GetDpChEcomRequest.h>
using AlibabaCloud::Alinlp::Model::GetDpChEcomRequest;
GetDpChEcomRequest::GetDpChEcomRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetDpChEcom")
{
setMethod(HttpRequest::Method::Post);
}
GetDpChEcomRequest::~GetDpChEcomRequest()
{}
std::string GetDpChEcomRequest::getServiceCode()const
{
return serviceCode_;
}
void GetDpChEcomRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetDpChEcomRequest::getText()const
{
return text_;
}
void GetDpChEcomRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}

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.
*/
#include <alibabacloud/alinlp/model/GetDpChEcomResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetDpChEcomResult::GetDpChEcomResult() :
ServiceResult()
{}
GetDpChEcomResult::GetDpChEcomResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDpChEcomResult::~GetDpChEcomResult()
{}
void GetDpChEcomResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetDpChEcomResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/alinlp/model/GetEcChGeneralRequest.h>
using AlibabaCloud::Alinlp::Model::GetEcChGeneralRequest;
GetEcChGeneralRequest::GetEcChGeneralRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetEcChGeneral")
{
setMethod(HttpRequest::Method::Post);
}
GetEcChGeneralRequest::~GetEcChGeneralRequest()
{}
std::string GetEcChGeneralRequest::getServiceCode()const
{
return serviceCode_;
}
void GetEcChGeneralRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetEcChGeneralRequest::getText()const
{
return text_;
}
void GetEcChGeneralRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}

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.
*/
#include <alibabacloud/alinlp/model/GetEcChGeneralResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetEcChGeneralResult::GetEcChGeneralResult() :
ServiceResult()
{}
GetEcChGeneralResult::GetEcChGeneralResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEcChGeneralResult::~GetEcChGeneralResult()
{}
void GetEcChGeneralResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetEcChGeneralResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/alinlp/model/GetNerChMedicalRequest.h>
using AlibabaCloud::Alinlp::Model::GetNerChMedicalRequest;
GetNerChMedicalRequest::GetNerChMedicalRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetNerChMedical")
{
setMethod(HttpRequest::Method::Post);
}
GetNerChMedicalRequest::~GetNerChMedicalRequest()
{}
std::string GetNerChMedicalRequest::getServiceCode()const
{
return serviceCode_;
}
void GetNerChMedicalRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetNerChMedicalRequest::getText()const
{
return text_;
}
void GetNerChMedicalRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}

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.
*/
#include <alibabacloud/alinlp/model/GetNerChMedicalResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetNerChMedicalResult::GetNerChMedicalResult() :
ServiceResult()
{}
GetNerChMedicalResult::GetNerChMedicalResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNerChMedicalResult::~GetNerChMedicalResult()
{}
void GetNerChMedicalResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetNerChMedicalResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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.
*/
#include <alibabacloud/alinlp/model/GetNerCustomizedChEcomRequest.h>
using AlibabaCloud::Alinlp::Model::GetNerCustomizedChEcomRequest;
GetNerCustomizedChEcomRequest::GetNerCustomizedChEcomRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetNerCustomizedChEcom")
{
setMethod(HttpRequest::Method::Post);
}
GetNerCustomizedChEcomRequest::~GetNerCustomizedChEcomRequest()
{}
std::string GetNerCustomizedChEcomRequest::getLexerId()const
{
return lexerId_;
}
void GetNerCustomizedChEcomRequest::setLexerId(const std::string& lexerId)
{
lexerId_ = lexerId;
setBodyParameter("LexerId", lexerId);
}
std::string GetNerCustomizedChEcomRequest::getServiceCode()const
{
return serviceCode_;
}
void GetNerCustomizedChEcomRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetNerCustomizedChEcomRequest::getText()const
{
return text_;
}
void GetNerCustomizedChEcomRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}

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.
*/
#include <alibabacloud/alinlp/model/GetNerCustomizedChEcomResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetNerCustomizedChEcomResult::GetNerCustomizedChEcomResult() :
ServiceResult()
{}
GetNerCustomizedChEcomResult::GetNerCustomizedChEcomResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNerCustomizedChEcomResult::~GetNerCustomizedChEcomResult()
{}
void GetNerCustomizedChEcomResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetNerCustomizedChEcomResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/alinlp/model/GetPosChEcomRequest.h>
using AlibabaCloud::Alinlp::Model::GetPosChEcomRequest;
GetPosChEcomRequest::GetPosChEcomRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetPosChEcom")
{
setMethod(HttpRequest::Method::Post);
}
GetPosChEcomRequest::~GetPosChEcomRequest()
{}
std::string GetPosChEcomRequest::getServiceCode()const
{
return serviceCode_;
}
void GetPosChEcomRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetPosChEcomRequest::getTokenizerId()const
{
return tokenizerId_;
}
void GetPosChEcomRequest::setTokenizerId(const std::string& tokenizerId)
{
tokenizerId_ = tokenizerId;
setBodyParameter("TokenizerId", tokenizerId);
}
std::string GetPosChEcomRequest::getText()const
{
return text_;
}
void GetPosChEcomRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}
std::string GetPosChEcomRequest::getOutType()const
{
return outType_;
}
void GetPosChEcomRequest::setOutType(const std::string& outType)
{
outType_ = outType;
setBodyParameter("OutType", outType);
}

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.
*/
#include <alibabacloud/alinlp/model/GetPosChEcomResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetPosChEcomResult::GetPosChEcomResult() :
ServiceResult()
{}
GetPosChEcomResult::GetPosChEcomResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPosChEcomResult::~GetPosChEcomResult()
{}
void GetPosChEcomResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetPosChEcomResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/alinlp/model/GetSummaryChEcomRequest.h>
using AlibabaCloud::Alinlp::Model::GetSummaryChEcomRequest;
GetSummaryChEcomRequest::GetSummaryChEcomRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetSummaryChEcom")
{
setMethod(HttpRequest::Method::Post);
}
GetSummaryChEcomRequest::~GetSummaryChEcomRequest()
{}
std::string GetSummaryChEcomRequest::getServiceCode()const
{
return serviceCode_;
}
void GetSummaryChEcomRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetSummaryChEcomRequest::getText()const
{
return text_;
}
void GetSummaryChEcomRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}

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.
*/
#include <alibabacloud/alinlp/model/GetSummaryChEcomResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetSummaryChEcomResult::GetSummaryChEcomResult() :
ServiceResult()
{}
GetSummaryChEcomResult::GetSummaryChEcomResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSummaryChEcomResult::~GetSummaryChEcomResult()
{}
void GetSummaryChEcomResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetSummaryChEcomResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/alinlp/model/GetTsChEcomRequest.h>
using AlibabaCloud::Alinlp::Model::GetTsChEcomRequest;
GetTsChEcomRequest::GetTsChEcomRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetTsChEcom")
{
setMethod(HttpRequest::Method::Post);
}
GetTsChEcomRequest::~GetTsChEcomRequest()
{}
std::string GetTsChEcomRequest::getType()const
{
return type_;
}
void GetTsChEcomRequest::setType(const std::string& type)
{
type_ = type;
setBodyParameter("Type", type);
}
std::string GetTsChEcomRequest::getServiceCode()const
{
return serviceCode_;
}
void GetTsChEcomRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetTsChEcomRequest::getOriginT()const
{
return originT_;
}
void GetTsChEcomRequest::setOriginT(const std::string& originT)
{
originT_ = originT;
setBodyParameter("OriginT", originT);
}
std::string GetTsChEcomRequest::getOriginQ()const
{
return originQ_;
}
void GetTsChEcomRequest::setOriginQ(const std::string& originQ)
{
originQ_ = originQ;
setBodyParameter("OriginQ", originQ);
}

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.
*/
#include <alibabacloud/alinlp/model/GetTsChEcomResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetTsChEcomResult::GetTsChEcomResult() :
ServiceResult()
{}
GetTsChEcomResult::GetTsChEcomResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTsChEcomResult::~GetTsChEcomResult()
{}
void GetTsChEcomResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetTsChEcomResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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.
*/
#include <alibabacloud/alinlp/model/GetWeChEcomRequest.h>
using AlibabaCloud::Alinlp::Model::GetWeChEcomRequest;
GetWeChEcomRequest::GetWeChEcomRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetWeChEcom")
{
setMethod(HttpRequest::Method::Post);
}
GetWeChEcomRequest::~GetWeChEcomRequest()
{}
std::string GetWeChEcomRequest::getWordVectorDelimiter()const
{
return wordVectorDelimiter_;
}
void GetWeChEcomRequest::setWordVectorDelimiter(const std::string& wordVectorDelimiter)
{
wordVectorDelimiter_ = wordVectorDelimiter;
setBodyParameter("WordVectorDelimiter", wordVectorDelimiter);
}
std::string GetWeChEcomRequest::getType()const
{
return type_;
}
void GetWeChEcomRequest::setType(const std::string& type)
{
type_ = type;
setBodyParameter("Type", type);
}
std::string GetWeChEcomRequest::getUuid()const
{
return uuid_;
}
void GetWeChEcomRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setBodyParameter("Uuid", uuid);
}
std::string GetWeChEcomRequest::getDelimiter()const
{
return delimiter_;
}
void GetWeChEcomRequest::setDelimiter(const std::string& delimiter)
{
delimiter_ = delimiter;
setBodyParameter("Delimiter", delimiter);
}
std::string GetWeChEcomRequest::getText()const
{
return text_;
}
void GetWeChEcomRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}
std::string GetWeChEcomRequest::getToken()const
{
return token_;
}
void GetWeChEcomRequest::setToken(const std::string& token)
{
token_ = token;
setBodyParameter("Token", token);
}
std::string GetWeChEcomRequest::getServiceCode()const
{
return serviceCode_;
}
void GetWeChEcomRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetWeChEcomRequest::getSize()const
{
return size_;
}
void GetWeChEcomRequest::setSize(const std::string& size)
{
size_ = size;
setBodyParameter("Size", size);
}
std::string GetWeChEcomRequest::getWordDelimiter()const
{
return wordDelimiter_;
}
void GetWeChEcomRequest::setWordDelimiter(const std::string& wordDelimiter)
{
wordDelimiter_ = wordDelimiter;
setBodyParameter("WordDelimiter", wordDelimiter);
}
std::string GetWeChEcomRequest::getOperation()const
{
return operation_;
}
void GetWeChEcomRequest::setOperation(const std::string& operation)
{
operation_ = operation;
setBodyParameter("Operation", operation);
}

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.
*/
#include <alibabacloud/alinlp/model/GetWeChEcomResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetWeChEcomResult::GetWeChEcomResult() :
ServiceResult()
{}
GetWeChEcomResult::GetWeChEcomResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetWeChEcomResult::~GetWeChEcomResult()
{}
void GetWeChEcomResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetWeChEcomResult::getData()const
{
return data_;
}

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.
*/
#include <alibabacloud/alinlp/model/GetWsCustomizedChGeneralRequest.h>
using AlibabaCloud::Alinlp::Model::GetWsCustomizedChGeneralRequest;
GetWsCustomizedChGeneralRequest::GetWsCustomizedChGeneralRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetWsCustomizedChGeneral")
{
setMethod(HttpRequest::Method::Post);
}
GetWsCustomizedChGeneralRequest::~GetWsCustomizedChGeneralRequest()
{}
std::string GetWsCustomizedChGeneralRequest::getServiceCode()const
{
return serviceCode_;
}
void GetWsCustomizedChGeneralRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetWsCustomizedChGeneralRequest::getTokenizerId()const
{
return tokenizerId_;
}
void GetWsCustomizedChGeneralRequest::setTokenizerId(const std::string& tokenizerId)
{
tokenizerId_ = tokenizerId;
setBodyParameter("TokenizerId", tokenizerId);
}
std::string GetWsCustomizedChGeneralRequest::getText()const
{
return text_;
}
void GetWsCustomizedChGeneralRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}
std::string GetWsCustomizedChGeneralRequest::getOutType()const
{
return outType_;
}
void GetWsCustomizedChGeneralRequest::setOutType(const std::string& outType)
{
outType_ = outType;
setBodyParameter("OutType", outType);
}

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.
*/
#include <alibabacloud/alinlp/model/GetWsCustomizedChGeneralResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetWsCustomizedChGeneralResult::GetWsCustomizedChGeneralResult() :
ServiceResult()
{}
GetWsCustomizedChGeneralResult::GetWsCustomizedChGeneralResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetWsCustomizedChGeneralResult::~GetWsCustomizedChGeneralResult()
{}
void GetWsCustomizedChGeneralResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetWsCustomizedChGeneralResult::getData()const
{
return data_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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.
*/
#include <alibabacloud/alinlp/model/GetWsCustomizedSeaGeneralRequest.h>
using AlibabaCloud::Alinlp::Model::GetWsCustomizedSeaGeneralRequest;
GetWsCustomizedSeaGeneralRequest::GetWsCustomizedSeaGeneralRequest() :
RpcServiceRequest("alinlp", "2020-06-29", "GetWsCustomizedSeaGeneral")
{
setMethod(HttpRequest::Method::Post);
}
GetWsCustomizedSeaGeneralRequest::~GetWsCustomizedSeaGeneralRequest()
{}
std::string GetWsCustomizedSeaGeneralRequest::getLanguage()const
{
return language_;
}
void GetWsCustomizedSeaGeneralRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
}
std::string GetWsCustomizedSeaGeneralRequest::getServiceCode()const
{
return serviceCode_;
}
void GetWsCustomizedSeaGeneralRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setBodyParameter("ServiceCode", serviceCode);
}
std::string GetWsCustomizedSeaGeneralRequest::getText()const
{
return text_;
}
void GetWsCustomizedSeaGeneralRequest::setText(const std::string& text)
{
text_ = text;
setBodyParameter("Text", text);
}

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.
*/
#include <alibabacloud/alinlp/model/GetWsCustomizedSeaGeneralResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alinlp;
using namespace AlibabaCloud::Alinlp::Model;
GetWsCustomizedSeaGeneralResult::GetWsCustomizedSeaGeneralResult() :
ServiceResult()
{}
GetWsCustomizedSeaGeneralResult::GetWsCustomizedSeaGeneralResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetWsCustomizedSeaGeneralResult::~GetWsCustomizedSeaGeneralResult()
{}
void GetWsCustomizedSeaGeneralResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string GetWsCustomizedSeaGeneralResult::getData()const
{
return data_;
}

View File

@@ -39,12 +39,15 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
std::string getAppId()const;
void setAppId(const std::string& appId);
std::string getPid()const;
void setPid(const std::string& pid);
std::string getType()const;
void setType(const std::string& type);
private:
std::string regionId_;
std::string appId_;
std::string pid_;
std::string type_;
};

View File

@@ -41,11 +41,14 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
std::string getRpcID()const;
void setRpcID(const std::string& rpcID);
std::string getPid()const;
void setPid(const std::string& pid);
private:
std::string traceID_;
std::string regionId_;
std::string rpcID_;
std::string pid_;
};
}

View File

@@ -34,14 +34,14 @@ namespace AlibabaCloud
public:
struct StackInfoItem
{
struct ExtInfoItem
struct ExtInfo
{
std::string type;
std::string info;
};
std::string line;
std::string serviceName;
std::vector<StackInfoItem::ExtInfoItem> extInfo;
ExtInfo extInfo;
std::string rpcId;
long startTime;
long duration;

View File

@@ -41,17 +41,17 @@ namespace AlibabaCloud
void setRegionId(const std::string& regionId);
std::string getContactGroupIds()const;
void setContactGroupIds(const std::string& contactGroupIds);
std::string getTemplateAlertConfig()const;
void setTemplateAlertConfig(const std::string& templateAlertConfig);
std::string getProxyUserId()const;
void setProxyUserId(const std::string& proxyUserId);
std::string getTemplageAlertConfig()const;
void setTemplageAlertConfig(const std::string& templageAlertConfig);
private:
bool isAutoStart_;
std::string regionId_;
std::string contactGroupIds_;
std::string templateAlertConfig_;
std::string proxyUserId_;
std::string templageAlertConfig_;
};
}

View File

@@ -40,6 +40,8 @@ namespace AlibabaCloud
{
std::string alarmContentTemplate;
std::string alarmContentSubTitle;
std::string content;
std::string subTitle;
};
struct AlertRule
{
@@ -80,11 +82,14 @@ namespace AlibabaCloud
MetricParam metricParam;
int alertVersion;
long taskId;
std::string contactGroupIds;
std::string config;
long createTime;
std::vector<std::string> alertWays;
std::string title;
std::string taskStatus;
AlarmContext alarmContext;
std::vector<std::string> alertWay;
int alertType;
std::string contactGroupIdList;
Notice notice;

View File

@@ -49,6 +49,17 @@ void DeleteTraceAppRequest::setAppId(const std::string& appId)
setParameter("AppId", appId);
}
std::string DeleteTraceAppRequest::getPid()const
{
return pid_;
}
void DeleteTraceAppRequest::setPid(const std::string& pid)
{
pid_ = pid;
setParameter("Pid", pid);
}
std::string DeleteTraceAppRequest::getType()const
{
return type_;

View File

@@ -60,3 +60,14 @@ void GetStackRequest::setRpcID(const std::string& rpcID)
setParameter("RpcID", rpcID);
}
std::string GetStackRequest::getPid()const
{
return pid_;
}
void GetStackRequest::setPid(const std::string& pid)
{
pid_ = pid;
setParameter("Pid", pid);
}

View File

@@ -57,16 +57,11 @@ void GetStackResult::parse(const std::string &payload)
stackInfoObject.exception = valueStackInfoStackInfoItem["Exception"].asString();
if(!valueStackInfoStackInfoItem["Line"].isNull())
stackInfoObject.line = valueStackInfoStackInfoItem["Line"].asString();
auto allExtInfoNode = allStackInfoNode["ExtInfo"]["ExtInfoItem"];
for (auto allStackInfoNodeExtInfoExtInfoItem : allExtInfoNode)
{
StackInfoItem::ExtInfoItem extInfoObject;
if(!allStackInfoNodeExtInfoExtInfoItem["Type"].isNull())
extInfoObject.type = allStackInfoNodeExtInfoExtInfoItem["Type"].asString();
if(!allStackInfoNodeExtInfoExtInfoItem["Info"].isNull())
extInfoObject.info = allStackInfoNodeExtInfoExtInfoItem["Info"].asString();
stackInfoObject.extInfo.push_back(extInfoObject);
}
auto extInfoNode = value["ExtInfo"];
if(!extInfoNode["Type"].isNull())
stackInfoObject.extInfo.type = extInfoNode["Type"].asString();
if(!extInfoNode["Info"].isNull())
stackInfoObject.extInfo.info = extInfoNode["Info"].asString();
stackInfo_.push_back(stackInfoObject);
}

View File

@@ -60,6 +60,17 @@ void ImportCustomAlertRulesRequest::setContactGroupIds(const std::string& contac
setParameter("ContactGroupIds", contactGroupIds);
}
std::string ImportCustomAlertRulesRequest::getTemplateAlertConfig()const
{
return templateAlertConfig_;
}
void ImportCustomAlertRulesRequest::setTemplateAlertConfig(const std::string& templateAlertConfig)
{
templateAlertConfig_ = templateAlertConfig;
setParameter("TemplateAlertConfig", templateAlertConfig);
}
std::string ImportCustomAlertRulesRequest::getProxyUserId()const
{
return proxyUserId_;
@@ -71,14 +82,3 @@ void ImportCustomAlertRulesRequest::setProxyUserId(const std::string& proxyUserI
setParameter("ProxyUserId", proxyUserId);
}
std::string ImportCustomAlertRulesRequest::getTemplageAlertConfig()const
{
return templageAlertConfig_;
}
void ImportCustomAlertRulesRequest::setTemplageAlertConfig(const std::string& templageAlertConfig)
{
templageAlertConfig_ = templageAlertConfig;
setParameter("TemplageAlertConfig", templageAlertConfig);
}

View File

@@ -78,11 +78,19 @@ void SearchAlertRulesResult::parse(const std::string &payload)
alertRuleEntityObject.updateTime = std::stol(pageBeanNodeAlertRulesAlertRuleEntity["UpdateTime"].asString());
if(!pageBeanNodeAlertRulesAlertRuleEntity["UserId"].isNull())
alertRuleEntityObject.userId = pageBeanNodeAlertRulesAlertRuleEntity["UserId"].asString();
if(!pageBeanNodeAlertRulesAlertRuleEntity["Title"].isNull())
alertRuleEntityObject.title = pageBeanNodeAlertRulesAlertRuleEntity["Title"].asString();
if(!pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIds"].isNull())
alertRuleEntityObject.contactGroupIds = pageBeanNodeAlertRulesAlertRuleEntity["ContactGroupIds"].asString();
auto alarmContextNode = value["AlarmContext"];
if(!alarmContextNode["AlarmContentTemplate"].isNull())
alertRuleEntityObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();
if(!alarmContextNode["AlarmContentSubTitle"].isNull())
alertRuleEntityObject.alarmContext.alarmContentSubTitle = alarmContextNode["AlarmContentSubTitle"].asString();
if(!alarmContextNode["Content"].isNull())
alertRuleEntityObject.alarmContext.content = alarmContextNode["Content"].asString();
if(!alarmContextNode["SubTitle"].isNull())
alertRuleEntityObject.alarmContext.subTitle = alarmContextNode["SubTitle"].asString();
auto alertRuleNode = value["AlertRule"];
if(!alertRuleNode["Operator"].isNull())
alertRuleEntityObject.alertRule._operator = alertRuleNode["Operator"].asString();
@@ -137,6 +145,9 @@ void SearchAlertRulesResult::parse(const std::string &payload)
auto allAlertWays = value["AlertWays"]["AlertWay"];
for (auto value : allAlertWays)
alertRuleEntityObject.alertWays.push_back(value.asString());
auto allAlertWay = value["AlertWay"]["AlertWay"];
for (auto value : allAlertWay)
alertRuleEntityObject.alertWay.push_back(value.asString());
pageBean_.alertRules.push_back(alertRuleEntityObject);
}

86
cams/CMakeLists.txt Normal file
View File

@@ -0,0 +1,86 @@
#
# 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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(cams_public_header
include/alibabacloud/cams/CamsClient.h
include/alibabacloud/cams/CamsExport.h )
set(cams_public_header_model
include/alibabacloud/cams/model/SendMessageRequest.h
include/alibabacloud/cams/model/SendMessageResult.h )
set(cams_src
src/CamsClient.cc
src/model/SendMessageRequest.cc
src/model/SendMessageResult.cc )
add_library(cams ${LIB_TYPE}
${cams_public_header}
${cams_public_header_model}
${cams_src})
set_target_properties(cams
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cams
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(cams
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_CAMS_LIBRARY)
endif()
target_include_directories(cams
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(cams
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(cams
jsoncpp)
target_include_directories(cams
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(cams
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(cams
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(cams
PRIVATE /usr/include/jsoncpp)
target_link_libraries(cams
jsoncpp)
endif()
install(FILES ${cams_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cams)
install(FILES ${cams_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cams/model)
install(TARGETS cams
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

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_CAMS_CAMSCLIENT_H_
#define ALIBABACLOUD_CAMS_CAMSCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "CamsExport.h"
#include "model/SendMessageRequest.h"
#include "model/SendMessageResult.h"
namespace AlibabaCloud
{
namespace Cams
{
class ALIBABACLOUD_CAMS_EXPORT CamsClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::SendMessageResult> SendMessageOutcome;
typedef std::future<SendMessageOutcome> SendMessageOutcomeCallable;
typedef std::function<void(const CamsClient*, const Model::SendMessageRequest&, const SendMessageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SendMessageAsyncHandler;
CamsClient(const Credentials &credentials, const ClientConfiguration &configuration);
CamsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
CamsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~CamsClient();
SendMessageOutcome sendMessage(const Model::SendMessageRequest &request)const;
void sendMessageAsync(const Model::SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SendMessageOutcomeCallable sendMessageCallable(const Model::SendMessageRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_CAMS_CAMSCLIENT_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_CAMS_CAMSEXPORT_H_
#define ALIBABACLOUD_CAMS_CAMSEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_CAMS_LIBRARY)
# define ALIBABACLOUD_CAMS_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_CAMS_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_CAMS_EXPORT
#endif
#endif // !ALIBABACLOUD_CAMS_CAMSEXPORT_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_CAMS_MODEL_SENDMESSAGEREQUEST_H_
#define ALIBABACLOUD_CAMS_MODEL_SENDMESSAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT SendMessageRequest : public RpcServiceRequest
{
public:
SendMessageRequest();
~SendMessageRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getTemplateBodyParams()const;
void setTemplateBodyParams(const std::string& templateBodyParams);
std::string getType()const;
void setType(const std::string& type);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getChannelType()const;
void setChannelType(const std::string& channelType);
std::string getFrom()const;
void setFrom(const std::string& from);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getTo()const;
void setTo(const std::string& to);
std::string getTemplateCode()const;
void setTemplateCode(const std::string& templateCode);
private:
long resourceOwnerId_;
std::string templateBodyParams_;
std::string type_;
std::string accessKeyId_;
std::string channelType_;
std::string from_;
std::string resourceOwnerAccount_;
long ownerId_;
std::string to_;
std::string templateCode_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_SENDMESSAGEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CAMS_MODEL_SENDMESSAGERESULT_H_
#define ALIBABACLOUD_CAMS_MODEL_SENDMESSAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cams/CamsExport.h>
namespace AlibabaCloud
{
namespace Cams
{
namespace Model
{
class ALIBABACLOUD_CAMS_EXPORT SendMessageResult : public ServiceResult
{
public:
struct Module
{
std::string toId;
std::string fromId;
std::string messageId;
};
SendMessageResult();
explicit SendMessageResult(const std::string &payload);
~SendMessageResult();
Module getModule()const;
std::string getResultMessage()const;
std::string getResultCode()const;
protected:
void parse(const std::string &payload);
private:
Module module_;
std::string resultMessage_;
std::string resultCode_;
};
}
}
}
#endif // !ALIBABACLOUD_CAMS_MODEL_SENDMESSAGERESULT_H_

89
cams/src/CamsClient.cc Normal file
View File

@@ -0,0 +1,89 @@
/*
* 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.
*/
#include <alibabacloud/cams/CamsClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Cams;
using namespace AlibabaCloud::Cams::Model;
namespace
{
const std::string SERVICE_NAME = "cams";
}
CamsClient::CamsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cams");
}
CamsClient::CamsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cams");
}
CamsClient::CamsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cams");
}
CamsClient::~CamsClient()
{}
CamsClient::SendMessageOutcome CamsClient::sendMessage(const SendMessageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SendMessageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SendMessageOutcome(SendMessageResult(outcome.result()));
else
return SendMessageOutcome(outcome.error());
}
void CamsClient::sendMessageAsync(const SendMessageRequest& request, const SendMessageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, sendMessage(request), context);
};
asyncExecute(new Runnable(fn));
}
CamsClient::SendMessageOutcomeCallable CamsClient::sendMessageCallable(const SendMessageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SendMessageOutcome()>>(
[this, request]()
{
return this->sendMessage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,139 @@
/*
* 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.
*/
#include <alibabacloud/cams/model/SendMessageRequest.h>
using AlibabaCloud::Cams::Model::SendMessageRequest;
SendMessageRequest::SendMessageRequest() :
RpcServiceRequest("cams", "2020-06-06", "SendMessage")
{
setMethod(HttpRequest::Method::Post);
}
SendMessageRequest::~SendMessageRequest()
{}
long SendMessageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SendMessageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SendMessageRequest::getTemplateBodyParams()const
{
return templateBodyParams_;
}
void SendMessageRequest::setTemplateBodyParams(const std::string& templateBodyParams)
{
templateBodyParams_ = templateBodyParams;
setParameter("TemplateBodyParams", templateBodyParams);
}
std::string SendMessageRequest::getType()const
{
return type_;
}
void SendMessageRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string SendMessageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SendMessageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SendMessageRequest::getChannelType()const
{
return channelType_;
}
void SendMessageRequest::setChannelType(const std::string& channelType)
{
channelType_ = channelType;
setParameter("ChannelType", channelType);
}
std::string SendMessageRequest::getFrom()const
{
return from_;
}
void SendMessageRequest::setFrom(const std::string& from)
{
from_ = from;
setParameter("From", from);
}
std::string SendMessageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SendMessageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long SendMessageRequest::getOwnerId()const
{
return ownerId_;
}
void SendMessageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SendMessageRequest::getTo()const
{
return to_;
}
void SendMessageRequest::setTo(const std::string& to)
{
to_ = to;
setParameter("To", to);
}
std::string SendMessageRequest::getTemplateCode()const
{
return templateCode_;
}
void SendMessageRequest::setTemplateCode(const std::string& templateCode)
{
templateCode_ = templateCode;
setParameter("TemplateCode", templateCode);
}

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.
*/
#include <alibabacloud/cams/model/SendMessageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cams;
using namespace AlibabaCloud::Cams::Model;
SendMessageResult::SendMessageResult() :
ServiceResult()
{}
SendMessageResult::SendMessageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SendMessageResult::~SendMessageResult()
{}
void SendMessageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto moduleNode = value["Module"];
if(!moduleNode["FromId"].isNull())
module_.fromId = moduleNode["FromId"].asString();
if(!moduleNode["ToId"].isNull())
module_.toId = moduleNode["ToId"].asString();
if(!moduleNode["MessageId"].isNull())
module_.messageId = moduleNode["MessageId"].asString();
if(!value["ResultCode"].isNull())
resultCode_ = value["ResultCode"].asString();
if(!value["ResultMessage"].isNull())
resultMessage_ = value["ResultMessage"].asString();
}
SendMessageResult::Module SendMessageResult::getModule()const
{
return module_;
}
std::string SendMessageResult::getResultMessage()const
{
return resultMessage_;
}
std::string SendMessageResult::getResultCode()const
{
return resultCode_;
}

View File

@@ -49,6 +49,8 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/DescribeRPSDKResult.h
include/alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h
include/alibabacloud/cloudauth/model/DescribeSdkUrlResult.h
include/alibabacloud/cloudauth/model/DescribeSmartVerifyRequest.h
include/alibabacloud/cloudauth/model/DescribeSmartVerifyResult.h
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h
include/alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h
@@ -79,6 +81,8 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/InitDeviceResult.h
include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
@@ -124,6 +128,8 @@ set(cloudauth_src
src/model/DescribeRPSDKResult.cc
src/model/DescribeSdkUrlRequest.cc
src/model/DescribeSdkUrlResult.cc
src/model/DescribeSmartVerifyRequest.cc
src/model/DescribeSmartVerifyResult.cc
src/model/DescribeUpdatePackageResultRequest.cc
src/model/DescribeUpdatePackageResultResult.cc
src/model/DescribeUploadInfoRequest.cc
@@ -154,6 +160,8 @@ set(cloudauth_src
src/model/InitDeviceResult.cc
src/model/InitFaceVerifyRequest.cc
src/model/InitFaceVerifyResult.cc
src/model/InitSmartVerifyRequest.cc
src/model/InitSmartVerifyResult.cc
src/model/ModifyDeviceInfoRequest.cc
src/model/ModifyDeviceInfoResult.cc
src/model/SubmitMaterialsRequest.cc

View File

@@ -50,6 +50,8 @@
#include "model/DescribeRPSDKResult.h"
#include "model/DescribeSdkUrlRequest.h"
#include "model/DescribeSdkUrlResult.h"
#include "model/DescribeSmartVerifyRequest.h"
#include "model/DescribeSmartVerifyResult.h"
#include "model/DescribeUpdatePackageResultRequest.h"
#include "model/DescribeUpdatePackageResultResult.h"
#include "model/DescribeUploadInfoRequest.h"
@@ -80,6 +82,8 @@
#include "model/InitDeviceResult.h"
#include "model/InitFaceVerifyRequest.h"
#include "model/InitFaceVerifyResult.h"
#include "model/InitSmartVerifyRequest.h"
#include "model/InitSmartVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
#include "model/ModifyDeviceInfoResult.h"
#include "model/SubmitMaterialsRequest.h"
@@ -145,6 +149,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSdkUrlResult> DescribeSdkUrlOutcome;
typedef std::future<DescribeSdkUrlOutcome> DescribeSdkUrlOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeSdkUrlRequest&, const DescribeSdkUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSdkUrlAsyncHandler;
typedef Outcome<Error, Model::DescribeSmartVerifyResult> DescribeSmartVerifyOutcome;
typedef std::future<DescribeSmartVerifyOutcome> DescribeSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeSmartVerifyRequest&, const DescribeSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::DescribeUpdatePackageResultResult> DescribeUpdatePackageResultOutcome;
typedef std::future<DescribeUpdatePackageResultOutcome> DescribeUpdatePackageResultOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUpdatePackageResultRequest&, const DescribeUpdatePackageResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpdatePackageResultAsyncHandler;
@@ -190,6 +197,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
@@ -258,6 +268,9 @@ namespace AlibabaCloud
DescribeSdkUrlOutcome describeSdkUrl(const Model::DescribeSdkUrlRequest &request)const;
void describeSdkUrlAsync(const Model::DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSdkUrlOutcomeCallable describeSdkUrlCallable(const Model::DescribeSdkUrlRequest& request) const;
DescribeSmartVerifyOutcome describeSmartVerify(const Model::DescribeSmartVerifyRequest &request)const;
void describeSmartVerifyAsync(const Model::DescribeSmartVerifyRequest& request, const DescribeSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSmartVerifyOutcomeCallable describeSmartVerifyCallable(const Model::DescribeSmartVerifyRequest& request) const;
DescribeUpdatePackageResultOutcome describeUpdatePackageResult(const Model::DescribeUpdatePackageResultRequest &request)const;
void describeUpdatePackageResultAsync(const Model::DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUpdatePackageResultOutcomeCallable describeUpdatePackageResultCallable(const Model::DescribeUpdatePackageResultRequest& request) const;
@@ -303,6 +316,9 @@ namespace AlibabaCloud
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& 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_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartVerifyRequest : public RpcServiceRequest
{
public:
DescribeSmartVerifyRequest();
~DescribeSmartVerifyRequest();
long getSceneId()const;
void setSceneId(long sceneId);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
private:
long sceneId_;
std::string certifyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string passed;
std::string materialInfo;
std::string subCode;
};
DescribeSmartVerifyResult();
explicit DescribeSmartVerifyResult(const std::string &payload);
~DescribeSmartVerifyResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
ResultObject resultObject_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_

View File

@@ -49,8 +49,11 @@ namespace AlibabaCloud
std::string name;
};
std::string idCardName;
std::string faceGlobalUrl;
std::string faceQuality;
std::string idCardNumber;
std::vector<std::string> videoUrls;
bool faceMask;
IdCardInfo idCardInfo;
std::string faceImageUrl;
};

View File

@@ -47,10 +47,14 @@ namespace AlibabaCloud
void setDeviceToken(const std::string& deviceToken);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getWebUmidToken()const;
void setWebUmidToken(const std::string& webUmidToken);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getProduceNode()const;
void setProduceNode(const std::string& produceNode);
std::string getUaToken()const;
void setUaToken(const std::string& uaToken);
std::string getProductName()const;
void setProductName(const std::string& productName);
std::string getCertifyPrincipal()const;
@@ -65,8 +69,10 @@ namespace AlibabaCloud
std::string appVersion_;
std::string deviceToken_;
std::string certifyId_;
std::string webUmidToken_;
std::string outerOrderNo_;
std::string produceNode_;
std::string uaToken_;
std::string productName_;
std::string certifyPrincipal_;
std::string metaInfo_;

View File

@@ -39,9 +39,11 @@ namespace AlibabaCloud
std::string message;
std::string extParams;
std::string accessKeySecret;
std::string fileName;
std::string ossEndPoint;
std::string securityToken;
std::string bucketName;
std::string presignedUrl;
std::string retCode;
std::string fileNamePrefix;
std::string accessKeyId;

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct ResultObject
{
std::string certifyId;
std::string certifyUrl;
};

View File

@@ -0,0 +1,69 @@
/*
* 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_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitSmartVerifyRequest : public RpcServiceRequest
{
public:
InitSmartVerifyRequest();
~InitSmartVerifyRequest();
std::string getIp()const;
void setIp(const std::string& ip);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getMode()const;
void setMode(const std::string& mode);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getCertType()const;
void setCertType(const std::string& certType);
long getSceneId()const;
void setSceneId(long sceneId);
std::string getMetaInfo()const;
void setMetaInfo(const std::string& metaInfo);
private:
std::string ip_;
std::string mobile_;
std::string userId_;
std::string mode_;
std::string outerOrderNo_;
std::string certType_;
long sceneId_;
std::string metaInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_

View File

@@ -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_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitSmartVerifyResult : public ServiceResult
{
public:
struct ResultObject
{
std::string certifyId;
};
InitSmartVerifyResult();
explicit InitSmartVerifyResult(const std::string &payload);
~InitSmartVerifyResult();
ResultObject getResultObject()const;
std::string getMessage()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
ResultObject resultObject_;
std::string message_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_

View File

@@ -49,7 +49,10 @@ namespace AlibabaCloud
std::string name;
};
std::string idCardName;
std::string faceGlobalUrl;
std::string faceQuality;
std::string idCardNumber;
std::string faceMask;
IdCardInfo idCardInfo;
std::string faceImageUrl;
};
@@ -62,7 +65,6 @@ namespace AlibabaCloud
Material getMaterial()const;
float getAuthorityComparisionScore()const;
std::string getVerifyToken()const;
float getFaceComparisonScore()const;
float getIdCardFaceComparisonScore()const;
protected:
@@ -72,7 +74,6 @@ namespace AlibabaCloud
Material material_;
float authorityComparisionScore_;
std::string verifyToken_;
float faceComparisonScore_;
float idCardFaceComparisonScore_;
};

View File

@@ -555,6 +555,42 @@ CloudauthClient::DescribeSdkUrlOutcomeCallable CloudauthClient::describeSdkUrlCa
return task->get_future();
}
CloudauthClient::DescribeSmartVerifyOutcome CloudauthClient::describeSmartVerify(const DescribeSmartVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSmartVerifyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSmartVerifyOutcome(DescribeSmartVerifyResult(outcome.result()));
else
return DescribeSmartVerifyOutcome(outcome.error());
}
void CloudauthClient::describeSmartVerifyAsync(const DescribeSmartVerifyRequest& request, const DescribeSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSmartVerify(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeSmartVerifyOutcomeCallable CloudauthClient::describeSmartVerifyCallable(const DescribeSmartVerifyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSmartVerifyOutcome()>>(
[this, request]()
{
return this->describeSmartVerify(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUpdatePackageResultOutcome CloudauthClient::describeUpdatePackageResult(const DescribeUpdatePackageResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1131,42 @@ CloudauthClient::InitFaceVerifyOutcomeCallable CloudauthClient::initFaceVerifyCa
return task->get_future();
}
CloudauthClient::InitSmartVerifyOutcome CloudauthClient::initSmartVerify(const InitSmartVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InitSmartVerifyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InitSmartVerifyOutcome(InitSmartVerifyResult(outcome.result()));
else
return InitSmartVerifyOutcome(outcome.error());
}
void CloudauthClient::initSmartVerifyAsync(const InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, initSmartVerify(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::InitSmartVerifyOutcomeCallable CloudauthClient::initSmartVerifyCallable(const InitSmartVerifyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InitSmartVerifyOutcome()>>(
[this, request]()
{
return this->initSmartVerify(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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.
*/
#include <alibabacloud/cloudauth/model/DescribeSmartVerifyRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeSmartVerifyRequest;
DescribeSmartVerifyRequest::DescribeSmartVerifyRequest() :
RpcServiceRequest("cloudauth", "2020-06-18", "DescribeSmartVerify")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSmartVerifyRequest::~DescribeSmartVerifyRequest()
{}
long DescribeSmartVerifyRequest::getSceneId()const
{
return sceneId_;
}
void DescribeSmartVerifyRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setBodyParameter("SceneId", std::to_string(sceneId));
}
std::string DescribeSmartVerifyRequest::getCertifyId()const
{
return certifyId_;
}
void DescribeSmartVerifyRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setBodyParameter("CertifyId", certifyId);
}

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.
*/
#include <alibabacloud/cloudauth/model/DescribeSmartVerifyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeSmartVerifyResult::DescribeSmartVerifyResult() :
ServiceResult()
{}
DescribeSmartVerifyResult::DescribeSmartVerifyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSmartVerifyResult::~DescribeSmartVerifyResult()
{}
void DescribeSmartVerifyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultObjectNode = value["ResultObject"];
if(!resultObjectNode["Passed"].isNull())
resultObject_.passed = resultObjectNode["Passed"].asString();
if(!resultObjectNode["SubCode"].isNull())
resultObject_.subCode = resultObjectNode["SubCode"].asString();
if(!resultObjectNode["MaterialInfo"].isNull())
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
DescribeSmartVerifyResult::ResultObject DescribeSmartVerifyResult::getResultObject()const
{
return resultObject_;
}
std::string DescribeSmartVerifyResult::getMessage()const
{
return message_;
}
std::string DescribeSmartVerifyResult::getCode()const
{
return code_;
}

View File

@@ -46,6 +46,12 @@ void DescribeVerifyResultResult::parse(const std::string &payload)
material_.idCardName = materialNode["IdCardName"].asString();
if(!materialNode["IdCardNumber"].isNull())
material_.idCardNumber = materialNode["IdCardNumber"].asString();
if(!materialNode["FaceQuality"].isNull())
material_.faceQuality = materialNode["FaceQuality"].asString();
if(!materialNode["FaceGlobalUrl"].isNull())
material_.faceGlobalUrl = materialNode["FaceGlobalUrl"].asString();
if(!materialNode["FaceMask"].isNull())
material_.faceMask = materialNode["FaceMask"].asString() == "true";
auto idCardInfoNode = materialNode["IdCardInfo"];
if(!idCardInfoNode["Number"].isNull())
material_.idCardInfo.number = idCardInfoNode["Number"].asString();

View File

@@ -93,6 +93,17 @@ void InitDeviceRequest::setCertifyId(const std::string& certifyId)
setParameter("CertifyId", certifyId);
}
std::string InitDeviceRequest::getWebUmidToken()const
{
return webUmidToken_;
}
void InitDeviceRequest::setWebUmidToken(const std::string& webUmidToken)
{
webUmidToken_ = webUmidToken;
setBodyParameter("WebUmidToken", webUmidToken);
}
std::string InitDeviceRequest::getOuterOrderNo()const
{
return outerOrderNo_;
@@ -115,6 +126,17 @@ void InitDeviceRequest::setProduceNode(const std::string& produceNode)
setParameter("ProduceNode", produceNode);
}
std::string InitDeviceRequest::getUaToken()const
{
return uaToken_;
}
void InitDeviceRequest::setUaToken(const std::string& uaToken)
{
uaToken_ = uaToken;
setBodyParameter("UaToken", uaToken);
}
std::string InitDeviceRequest::getProductName()const
{
return productName_;

View File

@@ -66,6 +66,10 @@ void InitDeviceResult::parse(const std::string &payload)
resultObject_.bucketName = resultObjectNode["BucketName"].asString();
if(!resultObjectNode["FileNamePrefix"].isNull())
resultObject_.fileNamePrefix = resultObjectNode["FileNamePrefix"].asString();
if(!resultObjectNode["FileName"].isNull())
resultObject_.fileName = resultObjectNode["FileName"].asString();
if(!resultObjectNode["PresignedUrl"].isNull())
resultObject_.presignedUrl = resultObjectNode["PresignedUrl"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())

Some files were not shown because too many files have changed in this diff Show More