GREEN SDK Auto Released By Alibaba Cloud,Version:1.15.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-05-28 19:21:02 +08:00
parent b1d844c587
commit b333d4f03c
45 changed files with 789 additions and 102 deletions

View File

@@ -1,3 +1,6 @@
2018-05-28 Version: 1.15.0
1, Add face 1-N,1-1 scan interface.
2018-05-28 Version: 1.14.0
1, ValidateSecurityGroup API

View File

@@ -1 +1 @@
1.14.0
1.15.0

View File

@@ -33,6 +33,8 @@ set(green_public_header_model
include/alibabacloud/green/model/VideoFeedbackResult.h
include/alibabacloud/green/model/DeletePersonRequest.h
include/alibabacloud/green/model/DeletePersonResult.h
include/alibabacloud/green/model/VideoSyncScanRequest.h
include/alibabacloud/green/model/VideoSyncScanResult.h
include/alibabacloud/green/model/VideoAsyncScanResultsRequest.h
include/alibabacloud/green/model/VideoAsyncScanResultsResult.h
include/alibabacloud/green/model/AddGroupsRequest.h
@@ -43,8 +45,6 @@ set(green_public_header_model
include/alibabacloud/green/model/SetPersonResult.h
include/alibabacloud/green/model/TextFeedbackRequest.h
include/alibabacloud/green/model/TextFeedbackResult.h
include/alibabacloud/green/model/SearchRequest.h
include/alibabacloud/green/model/SearchResult.h
include/alibabacloud/green/model/FileAsyncScanResultsRequest.h
include/alibabacloud/green/model/FileAsyncScanResultsResult.h
include/alibabacloud/green/model/DeleteGroupsRequest.h
@@ -67,10 +67,16 @@ set(green_public_header_model
include/alibabacloud/green/model/TextScanResult.h
include/alibabacloud/green/model/ImageScanFeedbackRequest.h
include/alibabacloud/green/model/ImageScanFeedbackResult.h
include/alibabacloud/green/model/DeleteSimilarityImageRequest.h
include/alibabacloud/green/model/DeleteSimilarityImageResult.h
include/alibabacloud/green/model/SearchPersonRequest.h
include/alibabacloud/green/model/SearchPersonResult.h
include/alibabacloud/green/model/AddPersonRequest.h
include/alibabacloud/green/model/AddPersonResult.h
include/alibabacloud/green/model/AddFacesRequest.h
include/alibabacloud/green/model/AddFacesResult.h )
include/alibabacloud/green/model/AddFacesResult.h
include/alibabacloud/green/model/AddSimilarityImageRequest.h
include/alibabacloud/green/model/AddSimilarityImageResult.h )
set(green_src
src/GreenClient.cc
@@ -86,6 +92,8 @@ set(green_src
src/model/VideoFeedbackResult.cc
src/model/DeletePersonRequest.cc
src/model/DeletePersonResult.cc
src/model/VideoSyncScanRequest.cc
src/model/VideoSyncScanResult.cc
src/model/VideoAsyncScanResultsRequest.cc
src/model/VideoAsyncScanResultsResult.cc
src/model/AddGroupsRequest.cc
@@ -96,8 +104,6 @@ set(green_src
src/model/SetPersonResult.cc
src/model/TextFeedbackRequest.cc
src/model/TextFeedbackResult.cc
src/model/SearchRequest.cc
src/model/SearchResult.cc
src/model/FileAsyncScanResultsRequest.cc
src/model/FileAsyncScanResultsResult.cc
src/model/DeleteGroupsRequest.cc
@@ -120,10 +126,16 @@ set(green_src
src/model/TextScanResult.cc
src/model/ImageScanFeedbackRequest.cc
src/model/ImageScanFeedbackResult.cc
src/model/DeleteSimilarityImageRequest.cc
src/model/DeleteSimilarityImageResult.cc
src/model/SearchPersonRequest.cc
src/model/SearchPersonResult.cc
src/model/AddPersonRequest.cc
src/model/AddPersonResult.cc
src/model/AddFacesRequest.cc
src/model/AddFacesResult.cc )
src/model/AddFacesResult.cc
src/model/AddSimilarityImageRequest.cc
src/model/AddSimilarityImageResult.cc )
add_library(green ${LIB_TYPE}
${green_public_header}

View File

@@ -34,6 +34,8 @@
#include "model/VideoFeedbackResult.h"
#include "model/DeletePersonRequest.h"
#include "model/DeletePersonResult.h"
#include "model/VideoSyncScanRequest.h"
#include "model/VideoSyncScanResult.h"
#include "model/VideoAsyncScanResultsRequest.h"
#include "model/VideoAsyncScanResultsResult.h"
#include "model/AddGroupsRequest.h"
@@ -44,8 +46,6 @@
#include "model/SetPersonResult.h"
#include "model/TextFeedbackRequest.h"
#include "model/TextFeedbackResult.h"
#include "model/SearchRequest.h"
#include "model/SearchResult.h"
#include "model/FileAsyncScanResultsRequest.h"
#include "model/FileAsyncScanResultsResult.h"
#include "model/DeleteGroupsRequest.h"
@@ -68,10 +68,16 @@
#include "model/TextScanResult.h"
#include "model/ImageScanFeedbackRequest.h"
#include "model/ImageScanFeedbackResult.h"
#include "model/DeleteSimilarityImageRequest.h"
#include "model/DeleteSimilarityImageResult.h"
#include "model/SearchPersonRequest.h"
#include "model/SearchPersonResult.h"
#include "model/AddPersonRequest.h"
#include "model/AddPersonResult.h"
#include "model/AddFacesRequest.h"
#include "model/AddFacesResult.h"
#include "model/AddSimilarityImageRequest.h"
#include "model/AddSimilarityImageResult.h"
namespace AlibabaCloud
@@ -99,6 +105,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeletePersonResult> DeletePersonOutcome;
typedef std::future<DeletePersonOutcome> DeletePersonOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::DeletePersonRequest&, const DeletePersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePersonAsyncHandler;
typedef Outcome<Error, Model::VideoSyncScanResult> VideoSyncScanOutcome;
typedef std::future<VideoSyncScanOutcome> VideoSyncScanOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::VideoSyncScanRequest&, const VideoSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoSyncScanAsyncHandler;
typedef Outcome<Error, Model::VideoAsyncScanResultsResult> VideoAsyncScanResultsOutcome;
typedef std::future<VideoAsyncScanResultsOutcome> VideoAsyncScanResultsOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::VideoAsyncScanResultsRequest&, const VideoAsyncScanResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoAsyncScanResultsAsyncHandler;
@@ -114,9 +123,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TextFeedbackResult> TextFeedbackOutcome;
typedef std::future<TextFeedbackOutcome> TextFeedbackOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::TextFeedbackRequest&, const TextFeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TextFeedbackAsyncHandler;
typedef Outcome<Error, Model::SearchResult> SearchOutcome;
typedef std::future<SearchOutcome> SearchOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::SearchRequest&, const SearchOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAsyncHandler;
typedef Outcome<Error, Model::FileAsyncScanResultsResult> FileAsyncScanResultsOutcome;
typedef std::future<FileAsyncScanResultsOutcome> FileAsyncScanResultsOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::FileAsyncScanResultsRequest&, const FileAsyncScanResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FileAsyncScanResultsAsyncHandler;
@@ -150,12 +156,21 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ImageScanFeedbackResult> ImageScanFeedbackOutcome;
typedef std::future<ImageScanFeedbackOutcome> ImageScanFeedbackOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::ImageScanFeedbackRequest&, const ImageScanFeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImageScanFeedbackAsyncHandler;
typedef Outcome<Error, Model::DeleteSimilarityImageResult> DeleteSimilarityImageOutcome;
typedef std::future<DeleteSimilarityImageOutcome> DeleteSimilarityImageOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::DeleteSimilarityImageRequest&, const DeleteSimilarityImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSimilarityImageAsyncHandler;
typedef Outcome<Error, Model::SearchPersonResult> SearchPersonOutcome;
typedef std::future<SearchPersonOutcome> SearchPersonOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::SearchPersonRequest&, const SearchPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchPersonAsyncHandler;
typedef Outcome<Error, Model::AddPersonResult> AddPersonOutcome;
typedef std::future<AddPersonOutcome> AddPersonOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::AddPersonRequest&, const AddPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddPersonAsyncHandler;
typedef Outcome<Error, Model::AddFacesResult> AddFacesOutcome;
typedef std::future<AddFacesOutcome> AddFacesOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::AddFacesRequest&, const AddFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddFacesAsyncHandler;
typedef Outcome<Error, Model::AddSimilarityImageResult> AddSimilarityImageOutcome;
typedef std::future<AddSimilarityImageOutcome> AddSimilarityImageOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::AddSimilarityImageRequest&, const AddSimilarityImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddSimilarityImageAsyncHandler;
GreenClient(const Credentials &credentials, const ClientConfiguration &configuration);
GreenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -179,6 +194,9 @@ namespace AlibabaCloud
DeletePersonOutcome deletePerson(const Model::DeletePersonRequest &request)const;
void deletePersonAsync(const Model::DeletePersonRequest& request, const DeletePersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeletePersonOutcomeCallable deletePersonCallable(const Model::DeletePersonRequest& request) const;
VideoSyncScanOutcome videoSyncScan(const Model::VideoSyncScanRequest &request)const;
void videoSyncScanAsync(const Model::VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VideoSyncScanOutcomeCallable videoSyncScanCallable(const Model::VideoSyncScanRequest& request) const;
VideoAsyncScanResultsOutcome videoAsyncScanResults(const Model::VideoAsyncScanResultsRequest &request)const;
void videoAsyncScanResultsAsync(const Model::VideoAsyncScanResultsRequest& request, const VideoAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VideoAsyncScanResultsOutcomeCallable videoAsyncScanResultsCallable(const Model::VideoAsyncScanResultsRequest& request) const;
@@ -194,9 +212,6 @@ namespace AlibabaCloud
TextFeedbackOutcome textFeedback(const Model::TextFeedbackRequest &request)const;
void textFeedbackAsync(const Model::TextFeedbackRequest& request, const TextFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TextFeedbackOutcomeCallable textFeedbackCallable(const Model::TextFeedbackRequest& request) const;
SearchOutcome search(const Model::SearchRequest &request)const;
void searchAsync(const Model::SearchRequest& request, const SearchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchOutcomeCallable searchCallable(const Model::SearchRequest& request) const;
FileAsyncScanResultsOutcome fileAsyncScanResults(const Model::FileAsyncScanResultsRequest &request)const;
void fileAsyncScanResultsAsync(const Model::FileAsyncScanResultsRequest& request, const FileAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FileAsyncScanResultsOutcomeCallable fileAsyncScanResultsCallable(const Model::FileAsyncScanResultsRequest& request) const;
@@ -230,12 +245,21 @@ namespace AlibabaCloud
ImageScanFeedbackOutcome imageScanFeedback(const Model::ImageScanFeedbackRequest &request)const;
void imageScanFeedbackAsync(const Model::ImageScanFeedbackRequest& request, const ImageScanFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ImageScanFeedbackOutcomeCallable imageScanFeedbackCallable(const Model::ImageScanFeedbackRequest& request) const;
DeleteSimilarityImageOutcome deleteSimilarityImage(const Model::DeleteSimilarityImageRequest &request)const;
void deleteSimilarityImageAsync(const Model::DeleteSimilarityImageRequest& request, const DeleteSimilarityImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSimilarityImageOutcomeCallable deleteSimilarityImageCallable(const Model::DeleteSimilarityImageRequest& request) const;
SearchPersonOutcome searchPerson(const Model::SearchPersonRequest &request)const;
void searchPersonAsync(const Model::SearchPersonRequest& request, const SearchPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchPersonOutcomeCallable searchPersonCallable(const Model::SearchPersonRequest& request) const;
AddPersonOutcome addPerson(const Model::AddPersonRequest &request)const;
void addPersonAsync(const Model::AddPersonRequest& request, const AddPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddPersonOutcomeCallable addPersonCallable(const Model::AddPersonRequest& request) const;
AddFacesOutcome addFaces(const Model::AddFacesRequest &request)const;
void addFacesAsync(const Model::AddFacesRequest& request, const AddFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddFacesOutcomeCallable addFacesCallable(const Model::AddFacesRequest& request) const;
AddSimilarityImageOutcome addSimilarityImage(const Model::AddSimilarityImageRequest &request)const;
void addSimilarityImageAsync(const Model::AddSimilarityImageRequest& request, const AddSimilarityImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddSimilarityImageOutcomeCallable addSimilarityImageCallable(const Model::AddSimilarityImageRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_ADDSIMILARITYIMAGEREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_ADDSIMILARITYIMAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT AddSimilarityImageRequest : public RoaServiceRequest
{
public:
AddSimilarityImageRequest();
~AddSimilarityImageRequest();
std::string getClientInfo()const;
void setClientInfo(const std::string& clientInfo);
private:
std::string clientInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_ADDSIMILARITYIMAGEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_ADDSIMILARITYIMAGERESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_ADDSIMILARITYIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT AddSimilarityImageResult : public ServiceResult
{
public:
AddSimilarityImageResult();
explicit AddSimilarityImageResult(const std::string &payload);
~AddSimilarityImageResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_ADDSIMILARITYIMAGERESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_DELETESIMILARITYIMAGEREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_DELETESIMILARITYIMAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT DeleteSimilarityImageRequest : public RoaServiceRequest
{
public:
DeleteSimilarityImageRequest();
~DeleteSimilarityImageRequest();
std::string getClientInfo()const;
void setClientInfo(const std::string& clientInfo);
private:
std::string clientInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_DELETESIMILARITYIMAGEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_DELETESIMILARITYIMAGERESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_DELETESIMILARITYIMAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT DeleteSimilarityImageResult : public ServiceResult
{
public:
DeleteSimilarityImageResult();
explicit DeleteSimilarityImageResult(const std::string &payload);
~DeleteSimilarityImageResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_DELETESIMILARITYIMAGERESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_SEARCHREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_SEARCHREQUEST_H_
#ifndef ALIBABACLOUD_GREEN_MODEL_SEARCHPERSONREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_SEARCHPERSONREQUEST_H_
#include <string>
#include <vector>
@@ -28,12 +28,12 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT SearchRequest : public RoaServiceRequest
class ALIBABACLOUD_GREEN_EXPORT SearchPersonRequest : public RoaServiceRequest
{
public:
SearchRequest();
~SearchRequest();
SearchPersonRequest();
~SearchPersonRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
@@ -48,4 +48,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_SEARCHREQUEST_H_
#endif // !ALIBABACLOUD_GREEN_MODEL_SEARCHPERSONREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_SEARCHRESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_SEARCHRESULT_H_
#ifndef ALIBABACLOUD_GREEN_MODEL_SEARCHPERSONRESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_SEARCHPERSONRESULT_H_
#include <string>
#include <vector>
@@ -29,14 +29,14 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT SearchResult : public ServiceResult
class ALIBABACLOUD_GREEN_EXPORT SearchPersonResult : public ServiceResult
{
public:
SearchResult();
explicit SearchResult(const std::string &payload);
~SearchResult();
SearchPersonResult();
explicit SearchPersonResult(const std::string &payload);
~SearchPersonResult();
protected:
void parse(const std::string &payload);
@@ -46,4 +46,4 @@ namespace AlibabaCloud
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_SEARCHRESULT_H_
#endif // !ALIBABACLOUD_GREEN_MODEL_SEARCHPERSONRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_VIDEOSYNCSCANREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_VIDEOSYNCSCANREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT VideoSyncScanRequest : public RoaServiceRequest
{
public:
VideoSyncScanRequest();
~VideoSyncScanRequest();
std::string getClientInfo()const;
void setClientInfo(const std::string& clientInfo);
private:
std::string clientInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_VIDEOSYNCSCANREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_GREEN_MODEL_VIDEOSYNCSCANRESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_VIDEOSYNCSCANRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT VideoSyncScanResult : public ServiceResult
{
public:
VideoSyncScanResult();
explicit VideoSyncScanResult(const std::string &payload);
~VideoSyncScanResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_VIDEOSYNCSCANRESULT_H_

View File

@@ -267,6 +267,42 @@ GreenClient::DeletePersonOutcomeCallable GreenClient::deletePersonCallable(const
return task->get_future();
}
GreenClient::VideoSyncScanOutcome GreenClient::videoSyncScan(const VideoSyncScanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VideoSyncScanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VideoSyncScanOutcome(VideoSyncScanResult(outcome.result()));
else
return VideoSyncScanOutcome(outcome.error());
}
void GreenClient::videoSyncScanAsync(const VideoSyncScanRequest& request, const VideoSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, videoSyncScan(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::VideoSyncScanOutcomeCallable GreenClient::videoSyncScanCallable(const VideoSyncScanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VideoSyncScanOutcome()>>(
[this, request]()
{
return this->videoSyncScan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GreenClient::VideoAsyncScanResultsOutcome GreenClient::videoAsyncScanResults(const VideoAsyncScanResultsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -447,42 +483,6 @@ GreenClient::TextFeedbackOutcomeCallable GreenClient::textFeedbackCallable(const
return task->get_future();
}
GreenClient::SearchOutcome GreenClient::search(const SearchRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SearchOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SearchOutcome(SearchResult(outcome.result()));
else
return SearchOutcome(outcome.error());
}
void GreenClient::searchAsync(const SearchRequest& request, const SearchAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, search(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::SearchOutcomeCallable GreenClient::searchCallable(const SearchRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SearchOutcome()>>(
[this, request]()
{
return this->search(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GreenClient::FileAsyncScanResultsOutcome GreenClient::fileAsyncScanResults(const FileAsyncScanResultsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -879,6 +879,78 @@ GreenClient::ImageScanFeedbackOutcomeCallable GreenClient::imageScanFeedbackCall
return task->get_future();
}
GreenClient::DeleteSimilarityImageOutcome GreenClient::deleteSimilarityImage(const DeleteSimilarityImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSimilarityImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteSimilarityImageOutcome(DeleteSimilarityImageResult(outcome.result()));
else
return DeleteSimilarityImageOutcome(outcome.error());
}
void GreenClient::deleteSimilarityImageAsync(const DeleteSimilarityImageRequest& request, const DeleteSimilarityImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteSimilarityImage(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::DeleteSimilarityImageOutcomeCallable GreenClient::deleteSimilarityImageCallable(const DeleteSimilarityImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteSimilarityImageOutcome()>>(
[this, request]()
{
return this->deleteSimilarityImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GreenClient::SearchPersonOutcome GreenClient::searchPerson(const SearchPersonRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SearchPersonOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SearchPersonOutcome(SearchPersonResult(outcome.result()));
else
return SearchPersonOutcome(outcome.error());
}
void GreenClient::searchPersonAsync(const SearchPersonRequest& request, const SearchPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, searchPerson(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::SearchPersonOutcomeCallable GreenClient::searchPersonCallable(const SearchPersonRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SearchPersonOutcome()>>(
[this, request]()
{
return this->searchPerson(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GreenClient::AddPersonOutcome GreenClient::addPerson(const AddPersonRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,3 +1023,39 @@ GreenClient::AddFacesOutcomeCallable GreenClient::addFacesCallable(const AddFace
return task->get_future();
}
GreenClient::AddSimilarityImageOutcome GreenClient::addSimilarityImage(const AddSimilarityImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddSimilarityImageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddSimilarityImageOutcome(AddSimilarityImageResult(outcome.result()));
else
return AddSimilarityImageOutcome(outcome.error());
}
void GreenClient::addSimilarityImageAsync(const AddSimilarityImageRequest& request, const AddSimilarityImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addSimilarityImage(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::AddSimilarityImageOutcomeCallable GreenClient::addSimilarityImageCallable(const AddSimilarityImageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddSimilarityImageOutcome()>>(
[this, request]()
{
return this->addSimilarityImage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::AddFacesRequest;
AddFacesRequest::AddFacesRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
AddFacesRequest::~AddFacesRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::AddGroupsRequest;
AddGroupsRequest::AddGroupsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
AddGroupsRequest::~AddGroupsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::AddPersonRequest;
AddPersonRequest::AddPersonRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
AddPersonRequest::~AddPersonRequest()

View File

@@ -0,0 +1,38 @@
/*
* 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/green/model/AddSimilarityImageRequest.h>
using AlibabaCloud::Green::Model::AddSimilarityImageRequest;
AddSimilarityImageRequest::AddSimilarityImageRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
AddSimilarityImageRequest::~AddSimilarityImageRequest()
{}
std::string AddSimilarityImageRequest::getClientInfo()const
{
return clientInfo_;
}
void AddSimilarityImageRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/green/model/AddSimilarityImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Green;
using namespace AlibabaCloud::Green::Model;
AddSimilarityImageResult::AddSimilarityImageResult() :
ServiceResult()
{}
AddSimilarityImageResult::AddSimilarityImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddSimilarityImageResult::~AddSimilarityImageResult()
{}
void AddSimilarityImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::DeleteFacesRequest;
DeleteFacesRequest::DeleteFacesRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
DeleteFacesRequest::~DeleteFacesRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::DeleteGroupsRequest;
DeleteGroupsRequest::DeleteGroupsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
DeleteGroupsRequest::~DeleteGroupsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::DeletePersonRequest;
DeletePersonRequest::DeletePersonRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
DeletePersonRequest::~DeletePersonRequest()

View File

@@ -0,0 +1,38 @@
/*
* 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/green/model/DeleteSimilarityImageRequest.h>
using AlibabaCloud::Green::Model::DeleteSimilarityImageRequest;
DeleteSimilarityImageRequest::DeleteSimilarityImageRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
DeleteSimilarityImageRequest::~DeleteSimilarityImageRequest()
{}
std::string DeleteSimilarityImageRequest::getClientInfo()const
{
return clientInfo_;
}
void DeleteSimilarityImageRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/green/model/DeleteSimilarityImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Green;
using namespace AlibabaCloud::Green::Model;
DeleteSimilarityImageResult::DeleteSimilarityImageResult() :
ServiceResult()
{}
DeleteSimilarityImageResult::DeleteSimilarityImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSimilarityImageResult::~DeleteSimilarityImageResult()
{}
void DeleteSimilarityImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::FileAsyncScanRequest;
FileAsyncScanRequest::FileAsyncScanRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
FileAsyncScanRequest::~FileAsyncScanRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::FileAsyncScanResultsRequest;
FileAsyncScanResultsRequest::FileAsyncScanResultsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
FileAsyncScanResultsRequest::~FileAsyncScanResultsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::GetFacesRequest;
GetFacesRequest::GetFacesRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
GetFacesRequest::~GetFacesRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::GetGroupsRequest;
GetGroupsRequest::GetGroupsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
GetGroupsRequest::~GetGroupsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::GetPersonRequest;
GetPersonRequest::GetPersonRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
GetPersonRequest::~GetPersonRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::GetPersonsRequest;
GetPersonsRequest::GetPersonsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
GetPersonsRequest::~GetPersonsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::ImageAsyncScanRequest;
ImageAsyncScanRequest::ImageAsyncScanRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
ImageAsyncScanRequest::~ImageAsyncScanRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::ImageAsyncScanResultsRequest;
ImageAsyncScanResultsRequest::ImageAsyncScanResultsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
ImageAsyncScanResultsRequest::~ImageAsyncScanResultsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::ImageScanFeedbackRequest;
ImageScanFeedbackRequest::ImageScanFeedbackRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
ImageScanFeedbackRequest::~ImageScanFeedbackRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::ImageSyncScanRequest;
ImageSyncScanRequest::ImageSyncScanRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
ImageSyncScanRequest::~ImageSyncScanRequest()

View File

@@ -14,34 +14,34 @@
* limitations under the License.
*/
#include <alibabacloud/green/model/SearchRequest.h>
#include <alibabacloud/green/model/SearchPersonRequest.h>
using AlibabaCloud::Green::Model::SearchRequest;
using AlibabaCloud::Green::Model::SearchPersonRequest;
SearchRequest::SearchRequest() :
RoaServiceRequest("green", "2017-08-25")
SearchPersonRequest::SearchPersonRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
SearchRequest::~SearchRequest()
SearchPersonRequest::~SearchPersonRequest()
{}
std::string SearchRequest::getRegionId()const
std::string SearchPersonRequest::getRegionId()const
{
return regionId_;
}
void SearchRequest::setRegionId(const std::string& regionId)
void SearchPersonRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string SearchRequest::getClientInfo()const
std::string SearchPersonRequest::getClientInfo()const
{
return clientInfo_;
}
void SearchRequest::setClientInfo(const std::string& clientInfo)
void SearchPersonRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/green/model/SearchResult.h>
#include <alibabacloud/green/model/SearchPersonResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Green;
using namespace AlibabaCloud::Green::Model;
SearchResult::SearchResult() :
SearchPersonResult::SearchPersonResult() :
ServiceResult()
{}
SearchResult::SearchResult(const std::string &payload) :
SearchPersonResult::SearchPersonResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchResult::~SearchResult()
SearchPersonResult::~SearchPersonResult()
{}
void SearchResult::parse(const std::string &payload)
void SearchPersonResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::SetPersonRequest;
SetPersonRequest::SetPersonRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
SetPersonRequest::~SetPersonRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::TextFeedbackRequest;
TextFeedbackRequest::TextFeedbackRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
TextFeedbackRequest::~TextFeedbackRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::TextScanRequest;
TextScanRequest::TextScanRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
TextScanRequest::~TextScanRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::VideoAsyncScanRequest;
VideoAsyncScanRequest::VideoAsyncScanRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
VideoAsyncScanRequest::~VideoAsyncScanRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::VideoAsyncScanResultsRequest;
VideoAsyncScanResultsRequest::VideoAsyncScanResultsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
VideoAsyncScanResultsRequest::~VideoAsyncScanResultsRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::VideoFeedbackRequest;
VideoFeedbackRequest::VideoFeedbackRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
VideoFeedbackRequest::~VideoFeedbackRequest()

View File

@@ -0,0 +1,38 @@
/*
* 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/green/model/VideoSyncScanRequest.h>
using AlibabaCloud::Green::Model::VideoSyncScanRequest;
VideoSyncScanRequest::VideoSyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
VideoSyncScanRequest::~VideoSyncScanRequest()
{}
std::string VideoSyncScanRequest::getClientInfo()const
{
return clientInfo_;
}
void VideoSyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);
}

View File

@@ -0,0 +1,45 @@
/*
* 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/green/model/VideoSyncScanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Green;
using namespace AlibabaCloud::Green::Model;
VideoSyncScanResult::VideoSyncScanResult() :
ServiceResult()
{}
VideoSyncScanResult::VideoSyncScanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
VideoSyncScanResult::~VideoSyncScanResult()
{}
void VideoSyncScanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::VoiceAsyncScanRequest;
VoiceAsyncScanRequest::VoiceAsyncScanRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
VoiceAsyncScanRequest::~VoiceAsyncScanRequest()

View File

@@ -19,7 +19,7 @@
using AlibabaCloud::Green::Model::VoiceAsyncScanResultsRequest;
VoiceAsyncScanResultsRequest::VoiceAsyncScanResultsRequest() :
RoaServiceRequest("green", "2017-08-25")
RoaServiceRequest("green", "2018-05-09")
{}
VoiceAsyncScanResultsRequest::~VoiceAsyncScanResultsRequest()